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AUt0K,MAAK,WAC7B,IAAIrW,EAAI,IAAI4xH,MAAM,uBAAyB44D,EAAM,KAEjD,MADAxqL,EAAE7F,KAAO,mBACH6F,CACP,IAGD,IAAIiqC,EAAM7wC,EAAIoxL,GAAMt5L,EAAK+4C,EAAI,GAC7B,OAAOwgJ,EAAoBzqL,EAAEiqC,EAAI,IAAI5zB,MAAK,WACzC,OAAOo0K,EAAoBv5L,EAC5B,GACD,CACAq5L,EAAoBl+G,KAAO,WAAa,OAAOJ,OAAOI,KAAKjzE,EAAM,EACjEmxL,EAAoBr5L,GAAK,MACzByyL,EAAOwG,QAAUI,C,wBC1BjB,IAAInxL,EAAM,CACT,sCAAuC,CACtC,MACA,MAED,6CAA8C,CAC7C,MACA,OAGF,SAASmxL,EAAoBC,GAC5B,IAAIC,EAAoBhuI,EAAErjD,EAAKoxL,GAC9B,OAAOE,QAAQC,UAAUt0K,MAAK,WAC7B,IAAIrW,EAAI,IAAI4xH,MAAM,uBAAyB44D,EAAM,KAEjD,MADAxqL,EAAE7F,KAAO,mBACH6F,CACP,IAGD,IAAIiqC,EAAM7wC,EAAIoxL,GAAMt5L,EAAK+4C,EAAI,GAC7B,OAAOwgJ,EAAoBzqL,EAAEiqC,EAAI,IAAI5zB,MAAK,WACzC,OAAOo0K,EAAoBv5L,EAC5B,GACD,CACAq5L,EAAoBl+G,KAAO,WAAa,OAAOJ,OAAOI,KAAKjzE,EAAM,EACjEmxL,EAAoBr5L,GAAK,MACzByyL,EAAOwG,QAAUI,C","sources":["webpack://groot/./src/components/active_filter/ActiveFilter.js","webpack://groot/./src/containers/ActiveFilter.js","webpack://groot/./src/containers/darknet/ActiveFilter.js","webpack://groot/./src/containers/content_desk_new/ActiveFilter.js","webpack://groot/./src/containers/contact_management/ActiveFilter.js","webpack://groot/./src/containers/themax/ActiveFilter.js","webpack://groot/./src/components/active_filter_list/ActiveFilterList.js","webpack://groot/./src/components/administration/saved_charts/saved_chart_form/SavedChartForm.js","webpack://groot/./src/components/card/Card.js","webpack://groot/./src/components/center_message/CenterMessage.js","webpack://groot/./src/components/channel_icon/ChannelIcon.js","webpack://groot/./src/components/color_picker/ColorPicker.js","webpack://groot/./src/components/contact_management/distribution_list_create_dialog/DistributionListCreateDialog.js","webpack://groot/./src/components/content_container/ContentContainer.js","webpack://groot/./src/components/custom_tags/filterable_custom_tag_list/custom_tag/CustomTag.js","webpack://groot/./src/components/darknet/network_icon/NetworkIcon.js","webpack://groot/./src/components/dialogs/confirm_dialog/ConfirmDialog.js","webpack://groot/./src/components/dummy_card_icon/DummyCardIcon.js","webpack://groot/./src/components/export_filename_input/ExportFilenameInput.js","webpack://groot/./src/components/flex_list/FlexList.js","webpack://groot/./src/components/flex_list/flex_list_item/FlexListItem.js","webpack://groot/./src/components/key_figure/change_icon/ChangeIcon.js","webpack://groot/./src/components/key_figure/KeyFigure.js","webpack://groot/./src/components/mail_autocomplete/alpha_navigation/AlphaNavigation.js","webpack://groot/./src/components/media_reviews/media_review_detail/custom_tag_dialog/CustomTagDialog.js","webpack://groot/./src/components/multi_language_name_form/MultiLanguageNameForm.js","webpack://groot/./src/components/new_item_card/NewItemCard.js","webpack://groot/./src/components/nrx_progress_bar/NrxProgressBar.js","webpack://groot/./src/components/photo_upload/PhotoUpload.js","webpack://groot/./src/components/sms_autocomplete/SmsAutocomplete.js","webpack://groot/./src/containers/SmsAutocomplete.js","webpack://groot/./src/components/saved_searches/edit_dialog/alert_options/webhook_option/WebhookOption.js","webpack://groot/./src/components/saved_searches/edit_dialog/alert_options/AlertOptions.js","webpack://groot/./src/containers/saved_searches/edit_dialog/AlertOptions.js","webpack://groot/./src/components/saved_searches/edit_dialog/EditDialog.js","webpack://groot/./src/components/selected_app_bar/SelectedAppBar.js","webpack://groot/./src/components/shopping_cart/custom_tag_dialog/CustomTagDialog.js","webpack://groot/./src/components/staggered_list/StaggeredList.js","webpack://groot/./src/components/staggered_list/staggered_list_item/StaggeredListItem.js","webpack://groot/./src/components/transition_component/TransitionComponent.js","webpack://groot/./src/components/app_bar/AppBar.js","webpack://groot/./src/containers/AppBar.js","webpack://groot/./src/containers/CapSafe.js","webpack://groot/./src/containers/CenterMessage.js","webpack://groot/./src/components/export_menu/ExportMenu.js","webpack://groot/./src/containers/ExportMenu.js","webpack://groot/./src/components/mail_autocomplete/MailAutocomplete.js","webpack://groot/./src/containers/MailAutocomplete.js","webpack://groot/./src/components/newsguard_info/NewsguardInfo.js","webpack://groot/./src/containers/NewsguardInfo.js","webpack://groot/./src/components/password_input/PasswordInput.js","webpack://groot/./src/containers/PasswordInput.js","webpack://groot/./src/components/administration/external_accounts/linked_in_popup/LinkedInPopup.js","webpack://groot/./src/containers/administration/external_accounts/LinkedInPopup.js","webpack://groot/./src/containers/NewsView.js","webpack://groot/./src/components/custom_tags/actions/Actions.js","webpack://groot/./src/components/restriction_hint/RestrictionHint.js","webpack://groot/./src/containers/RestrictionHint.js","webpack://groot/./src/components/custom_tags/group/Group.js","webpack://groot/./src/containers/custom_tags/Group.js","webpack://groot/./src/components/custom_tags/group_mode/GroupMode.js","webpack://groot/./src/containers/custom_tags/GroupMode.js","webpack://groot/./src/components/custom_tags/CustomTags.js","webpack://groot/./src/containers/custom_tags/CustomTags.js","webpack://groot/./src/components/dashboard/Dashboard.js","webpack://groot/./src/containers/dashboard/Dashboard.js","webpack://groot/./src/components/administration/mailing_lists/mailing_list/MailingList.js","webpack://groot/./src/containers/administration/mailing_lists/MailingList.js","webpack://groot/./src/components/administration/mailing_lists/MailingLists.js","webpack://groot/./src/containers/administration/mailing_lists/MailingLists.js","webpack://groot/./src/components/administration/external_accounts/deepl_button/DeeplButton.js","webpack://groot/./src/containers/administration/external_accounts/DeeplButton.js","webpack://groot/./src/components/administration/external_accounts/deepl_button/deepl_api_key_card/DeeplApiKeyCard.js","webpack://groot/./src/containers/administration/external_accounts/DeeplApiKeyCard.js","webpack://groot/./src/components/administration/external_accounts/journalist_search/JournalistSearch.js","webpack://groot/./src/containers/administration/external_accounts/AnewstipApiKey.js","webpack://groot/./src/components/administration/external_accounts/login_button/LoginButton.js","webpack://groot/./src/components/administration/external_accounts/profile_info/ProfileInfo.js","webpack://groot/./src/components/administration/external_accounts/description/Description.js","webpack://groot/./src/components/administration/external_accounts/ExternalAccounts.js","webpack://groot/./src/containers/administration/ExternalAccounts.js","webpack://groot/./src/components/media_reviews/media_review_detail/app_bar_actions/AppBarActions.js","webpack://groot/./src/containers/media_reviews/media_review_detail/AppBarActions.js","webpack://groot/./src/components/media_reviews/media_review_detail/summary/Summary.js","webpack://groot/./src/containers/media_reviews/media_review_detail/Summary.js","webpack://groot/./src/components/media_reviews/media_review_stats/codes/Codes.js","webpack://groot/./src/components/media_reviews/media_review_stats/channel_bar/ChannelBar.js","webpack://groot/./src/components/media_reviews/media_review_detail/news_list_item/article_text/ArticleText.js","webpack://groot/./src/components/nrx_reactions/assigned_reactions/users/Users.js","webpack://groot/./src/components/nrx_reactions/assigned_reactions/reaction_indicator/ReactionIndicator.js","webpack://groot/./src/components/nrx_reactions/assigned_reactions/AssignedReactions.js","webpack://groot/./src/components/nrx_reactions/replace_reaction/reaction_select/ReactionSelect.js","webpack://groot/./src/components/nrx_reactions/replace_reaction/reaction_select_trigger/ReactionSelectTrigger.js","webpack://groot/./src/components/nrx_reactions/replace_reaction/ReplaceReaction.js","webpack://groot/./src/components/nrx_reactions/NrxReactions.js","webpack://groot/./src/containers/NrxReactions.js","webpack://groot/./src/containers/media_reviews/media_review_detail/news_list_item/Reactions.js","webpack://groot/./src/components/media_reviews/media_review_detail/news_list_item/headline/Headline.js","webpack://groot/./src/components/media_reviews/media_review_detail/news_list_item/item/Item.js","webpack://groot/./src/containers/media_reviews/media_review_detail/news_list_item/Item.js","webpack://groot/./src/components/media_reviews/media_review_detail/news_list_item/summary/Summary.js","webpack://groot/./src/components/media_reviews/media_review_detail/news_list_item/topical_cluster/TopicalCluster.js","webpack://groot/./src/components/media_reviews/media_review_detail/news_list_item/NewsListItem.js","webpack://groot/./src/containers/media_reviews/media_review_detail/NewsListItem.js","webpack://groot/./src/components/sortable/sortable_item/SortableItem.js","webpack://groot/./src/components/sortable/multisort_news_list/item/Item.js","webpack://groot/./src/components/sortable/multisort_news_list/MultisortNewsList.js","webpack://groot/./src/components/media_reviews/media_review_detail/grouped_news_sublist/GroupedNewsSublist.js","webpack://groot/./src/containers/media_reviews/media_review_detail/GroupedNewsSublist.js","webpack://groot/./src/components/media_reviews/media_review_detail/grouped_news_list_item/GroupedNewsListItem.js","webpack://groot/./src/containers/media_reviews/media_review_detail/GroupedNewsListItem.js","webpack://groot/./src/components/sortable/simple_sortable_list/item/Item.js","webpack://groot/./src/components/sortable/simple_sortable_list/SimpleSortableList.js","webpack://groot/./src/components/media_reviews/media_review_detail/grouped_news_list/GroupedNewsList.js","webpack://groot/./src/containers/media_reviews/media_review_detail/GroupedNewsList.js","webpack://groot/./src/components/media_reviews/media_review_detail/sortbar/Sortbar.js","webpack://groot/./src/containers/media_reviews/media_review_detail/SortBar.js","webpack://groot/./src/components/media_reviews/media_review_detail/selected_news_bar/SelectedNewsBar.js","webpack://groot/./src/containers/media_reviews/media_review_detail/Selected.js","webpack://groot/./src/containers/media_reviews/media_review_detail/RemoveCustomTagDialog.js","webpack://groot/./src/components/media_reviews/media_review_detail/management_summary/ManagementSummary.js","webpack://groot/./src/containers/media_reviews/media_review_detail/ManagementSummary.js","webpack://groot/./src/components/media_reviews/media_review_detail/MediaReviewDetail.js","webpack://groot/./src/containers/media_reviews/media_review_detail/MediaReviewDetail.js","webpack://groot/./src/components/media_reviews/actions/Actions.js","webpack://groot/./src/components/media_reviews/media_review/channel_bar/ChannelBar.js","webpack://groot/./src/components/media_reviews/media_review/MediaReview.js","webpack://groot/./src/containers/media_reviews/MediaReview.js","webpack://groot/./src/components/media_reviews/media_review_stats/MediaReviewStats.js","webpack://groot/./src/containers/media_reviews/MediaReviewStats.js","webpack://groot/./src/components/media_reviews/media_review_item/MediaReviewItem.js","webpack://groot/./src/containers/media_reviews/MediaReviewItem.js","webpack://groot/./src/components/media_reviews/MediaReviews.js","webpack://groot/./src/containers/media_reviews/MediaReviews.js","webpack://groot/./src/components/search_bar/SearchBar.js","webpack://groot/./src/utils/luminate.js","webpack://groot/./src/containers/SearchBar.js","webpack://groot/./src/components/query_type_dropdown/QueryTypeDropdown.js","webpack://groot/./src/containers/QueryTypeDropdown.js","webpack://groot/./src/components/news_page/selected_date_range/SelectedDateRange.js","webpack://groot/./src/containers/news_page/SelectedDateRange.js","webpack://groot/./src/components/news_page/date_filter_button/DateFilterButton.js","webpack://groot/./src/containers/news_page/DateFilterButton.js","webpack://groot/./src/components/search_form/action_bar/ActionBar.js","webpack://groot/./src/components/search_form/SearchForm.js","webpack://groot/./src/containers/search_form/SearchForm.js","webpack://groot/./src/components/help_dialog/HelpDialog.js","webpack://groot/./src/containers/HelpDialog.js","webpack://groot/./src/components/date_form/filter_timeline/FilterTimeline.js","webpack://groot/./src/containers/date_form/FilterTimeline.js","webpack://groot/./src/components/date_form/DateForm.js","webpack://groot/./src/containers/date_form/DateForm.js","webpack://groot/./src/components/news_page_app_bar/NewsPageAppBar.js","webpack://groot/./src/containers/NewsPageAppBar.js","webpack://groot/./src/components/filterable_menu/FilterableMenu.js","webpack://groot/./src/containers/news_page/SavedSearchesMenu.js","webpack://groot/./src/containers/news_page/CustomTagsMenu.js","webpack://groot/./src/components/news_page/NewsPage.js","webpack://groot/./src/containers/news_page/NewsPage.js","webpack://groot/./src/components/personal_settings/password_form/PasswordForm.js","webpack://groot/./src/containers/personal_settings/PasswordForm.js","webpack://groot/./src/components/personal_settings/basic_settings/BasicSettings.js","webpack://groot/./src/containers/personal_settings/BasicSettings.js","webpack://groot/./src/components/personal_settings/misc_settings/MiscSettings.js","webpack://groot/./src/containers/personal_settings/MiscSettings.js","webpack://groot/./src/components/personal_settings/specific_settings/SpecificSettings.js","webpack://groot/./src/containers/personal_settings/SpecificSettings.js","webpack://groot/./src/components/personal_settings/PersonalSettings.js","webpack://groot/./src/containers/personal_settings/PersonalSettings.js","webpack://groot/./src/components/saved_searches/actions/Actions.js","webpack://groot/./src/components/saved_searches/SavedSearches.js","webpack://groot/./src/containers/saved_searches/SavedSearches.js","webpack://groot/./src/components/administration/settings/preview/Preview.js","webpack://groot/./src/components/administration/settings/Settings.js","webpack://groot/./src/containers/administration/Settings.js","webpack://groot/./src/components/shopping_cart/selected_news_bar/SelectedNewsBar.js","webpack://groot/./src/containers/shopping_cart/Selected.js","webpack://groot/./src/containers/shopping_cart/RemoveCustomTagDialog.js","webpack://groot/./src/components/shopping_cart/cluster_dialog/ClusterDialog.js","webpack://groot/./src/containers/shopping_cart/ClusterDialog.js","webpack://groot/./src/components/shopping_cart/app_bar/actions/Actions.js","webpack://groot/./src/containers/shopping_cart/app_bar/Actions.js","webpack://groot/./src/components/shopping_cart/app_bar/AppBar.js","webpack://groot/./src/containers/shopping_cart/app_bar/AppBar.js","webpack://groot/./src/components/shopping_cart/news_list_item/codes/Codes.js","webpack://groot/./src/components/shopping_cart/news_list_item/headline/Headline.js","webpack://groot/./src/components/shopping_cart/news_list_item/NewsListItem.js","webpack://groot/./src/containers/shopping_cart/NewsListItem.js","webpack://groot/./src/components/shopping_cart/grouped_news_sublist/GroupedNewsSublist.js","webpack://groot/./src/containers/shopping_cart/GroupedNewsSublist.js","webpack://groot/./src/components/shopping_cart/grouped_news_list_item/GroupedNewsListItem.js","webpack://groot/./src/containers/shopping_cart/GroupedNewsListItem.js","webpack://groot/./src/components/shopping_cart/enum.js","webpack://groot/./src/components/shopping_cart/sortbar/Sortbar.js","webpack://groot/./src/containers/shopping_cart/Sortbar.js","webpack://groot/./src/components/shopping_cart/toolbar/Toolbar.js","webpack://groot/./src/containers/shopping_cart/Toolbar.js","webpack://groot/./src/components/shopping_cart/grouped_news_list/GroupedNewsList.js","webpack://groot/./src/containers/shopping_cart/GroupedNewsList.js","webpack://groot/./src/components/shopping_cart/news_list/NewsList.js","webpack://groot/./src/containers/shopping_cart/NewsList.js","webpack://groot/./src/components/shopping_cart/ShoppingCart.js","webpack://groot/./src/containers/shopping_cart/ShoppingCart.js","webpack://groot/./src/components/checkbox_card/CheckboxCard.js","webpack://groot/./src/components/subscriptions/topics/Topics.js","webpack://groot/./src/containers/subscriptions/Topics.js","webpack://groot/./src/components/subscriptions/editions/Editions.js","webpack://groot/./src/containers/subscriptions/Editions.js","webpack://groot/./src/components/subscriptions/Subscriptions.js","webpack://groot/./src/containers/subscriptions/index.js","webpack://groot/./src/containers/darknet/SearchBar.js","webpack://groot/./src/components/darknet/sorting/Sorting.js","webpack://groot/./src/containers/darknet/Sorting.js","webpack://groot/./src/components/darknet/dashboard/actions/Actions.js","webpack://groot/./src/containers/darknet/DashboardActions.js","webpack://groot/./src/components/darknet/dashboard/average_statistics/AverageStatistics.js","webpack://groot/./src/containers/darknet/AverageStatistics.js","webpack://groot/./src/components/darknet/dashboard/entry/info_summary/InfoSummary.js","webpack://groot/./src/containers/darknet/InfoSummary.js","webpack://groot/./src/components/darknet/dashboard/entry/fulltext_dialog/FulltextDialog.js","webpack://groot/./src/components/darknet/dashboard/entry/source_dialog/SourceDialog.js","webpack://groot/./src/components/darknet/dashboard/entry/Entry.js","webpack://groot/./src/components/darknet/scroll_to_top/ScrollToTop.js","webpack://groot/./src/components/darknet/dashboard/search_results/titles/Titles.js","webpack://groot/./src/components/darknet/dashboard/search_results/SearchResults.js","webpack://groot/./src/containers/darknet/SearchResults.js","webpack://groot/./src/containers/darknet/ActiveFilterList.js","webpack://groot/./src/components/darknet/navigation/Navigation.js","webpack://groot/./src/containers/darknet/Navigation.js","webpack://groot/./src/containers/darknet/DateForm.js","webpack://groot/./src/components/darknet/dashboard/date_drawer/DateDrawer.js","webpack://groot/./src/containers/darknet/DateDrawer.js","webpack://groot/./src/components/darknet/search_form/hackishness_slider/HackishnessSlider.js","webpack://groot/./src/components/darknet/search_form/SearchForm.js","webpack://groot/./src/containers/darknet/SearchForm.js","webpack://groot/./src/components/darknet/dashboard/filter_drawer/FilterDrawer.js","webpack://groot/./src/containers/darknet/FilterDrawer.js","webpack://groot/./src/components/news_page/filter_button/FilterButton.js","webpack://groot/./src/containers/news_page/FilterButton.js","webpack://groot/./src/components/darknet/charts/chart/Chart.js","webpack://groot/./src/components/darknet/grid_item/GridItem.js","webpack://groot/./src/components/darknet/static_charts/languages_chart/LanguagesChart.js","webpack://groot/./src/containers/darknet/charts/LanguagesChart.js","webpack://groot/./src/components/darknet/static_charts/mentions_total_chart/MentionsTotalChart.js","webpack://groot/./src/containers/darknet/charts/MentionsTotalChart.js","webpack://groot/./src/components/darknet/static_charts/mentions_timeline_chart/MentionsTimelineChart.js","webpack://groot/./src/containers/darknet/charts/MentionsTimelineChart.js","webpack://groot/./src/components/darknet/static_charts/avg_hackishness_timeline_chart/AvgHackishnessTimelineChart.js","webpack://groot/./src/containers/darknet/charts/AvgHackishnessTimelineChart.js","webpack://groot/./src/components/darknet/static_charts/avg_hackishness_chart/AvgHackishnessChart.js","webpack://groot/./src/containers/darknet/charts/AvgHackishnessChart.js","webpack://groot/./src/components/darknet/static_charts/avg_hackishness_networks_chart/AvgHackishnessNetworksChart.js","webpack://groot/./src/containers/darknet/charts/AvgHackishnessNetworksChart.js","webpack://groot/./src/components/darknet/static_charts/networks_chart/NetworksChart.js","webpack://groot/./src/containers/darknet/charts/NetworksChart.js","webpack://groot/./src/components/darknet/static_charts/networks_timeline_chart/NetworksTimelineChart.js","webpack://groot/./src/containers/darknet/charts/NetworksTimelineChart.js","webpack://groot/./src/components/darknet/static_charts/search_queries_timeline_chart/SearchQueriesTimelineChart.js","webpack://groot/./src/containers/darknet/charts/SearchQueriesTimelineChart.js","webpack://groot/./src/components/darknet/static_charts/score_result_timeline_chart/ScoreResultTimelineChart.js","webpack://groot/./src/containers/darknet/charts/ScoreResultTimelineChart.js","webpack://groot/./src/components/darknet/static_charts/StaticCharts.js","webpack://groot/./src/containers/darknet/StaticCharts.js","webpack://groot/./src/components/darknet/dashboard/Dashboard.js","webpack://groot/./src/containers/darknet/Dashboard.js","webpack://groot/./src/components/darknet/query_manager/confirmation_dialog/ConfirmationDialog.js","webpack://groot/./src/components/darknet/query_manager/queries_table/QueriesTable.js","webpack://groot/./src/containers/darknet/QueriesTable.js","webpack://groot/./src/components/darknet/query_manager/score_query_dialog/ScoreQueryDialog.js","webpack://groot/./src/containers/darknet/ScoreQueryDialog.js","webpack://groot/./src/components/darknet/query_manager/search_query_dialog/SearchQueryDialog.js","webpack://groot/./src/containers/darknet/SearchQueryDialog.js","webpack://groot/./src/components/darknet/query_manager/type_dialog/TypeDialog.js","webpack://groot/./src/components/darknet/query_manager/QueryManager.js","webpack://groot/./src/containers/darknet/QueryManager.js","webpack://groot/./src/components/darknet/charts/chart_export/ChartExport.js","webpack://groot/./src/components/darknet/external_charts/score_result_timeline_chart/ScoreResultTimelineChart.js","webpack://groot/./src/containers/darknet/external_charts/ScoreResultTimelineChart.js","webpack://groot/./src/components/darknet/external_charts/external_chart/ExternalChart.js","webpack://groot/./src/containers/darknet/ExternalChart.js","webpack://groot/./src/components/nrx_progress_backdrop/NrxProgressBackdrop.js","webpack://groot/./src/containers/content_desk/SearchBar.js","webpack://groot/./src/containers/content_desk/QueryTypeDropdown.js","webpack://groot/./src/components/content_desk_new/actions/Actions.js","webpack://groot/./src/containers/content_desk_new/Actions.js","webpack://groot/./src/components/content_desk_new/app_bar/AppBar.js","webpack://groot/./src/containers/content_desk_new/AppBar.js","webpack://groot/./src/containers/content_desk_new/ActiveFilterList.js","webpack://groot/./src/components/content_desk_new/campaigns/campaign/campaign_name/CampaignName.js","webpack://groot/./src/containers/content_desk_new/campaigns/campaign/CampaignName.js","webpack://groot/./src/components/content_desk_new/campaigns/campaign/campaign_status/CampaignStatus.js","webpack://groot/./src/containers/content_desk_new/campaigns/campaign/CampaignStatus.js","webpack://groot/./src/components/content_desk_new/campaigns/campaign/campaign_progress/CampaignProgress.js","webpack://groot/./src/containers/content_desk_new/campaigns/campaign/CampaignProgress.js","webpack://groot/./src/components/content_desk_new/campaigns/short_campaigns/short_campaign/ShortCampaign.js","webpack://groot/./src/containers/content_desk_new/campaigns/short_campaigns/ShortCampaign.js","webpack://groot/./src/components/content_desk_new/campaigns/short_campaigns/ShortCampaigns.js","webpack://groot/./src/containers/content_desk_new/campaigns/short_campaigns/ShortCampaigns.js","webpack://groot/./src/components/content_desk_new/contents/content/content_title/ContentTitle.js","webpack://groot/./src/containers/content_desk_new/contents/content/ContentTitle.js","webpack://groot/./src/components/content_desk_new/contents/content/content_status/ContentStatus.js","webpack://groot/./src/containers/content_desk_new/contents/content/ContentStatus.js","webpack://groot/./src/components/content_desk_new/contents/publish_confirm_dialog/PublishConfirmDialog.js","webpack://groot/./src/containers/content_desk_new/contents/PublishConfirmDialog.js","webpack://groot/./src/components/content_desk_new/contents/content/content_actions/ContentDelete.js","webpack://groot/./src/containers/content_desk_new/contents/content/ContentDelete.js","webpack://groot/./src/components/content_desk_new/contents/content/content_actions/ContentActions.js","webpack://groot/./src/containers/content_desk_new/contents/content/ContentActions.js","webpack://groot/./src/components/content_desk_new/contents/short_contents/short_content/ShortContent.js","webpack://groot/./src/containers/content_desk_new/contents/short_contents/ShortContent.js","webpack://groot/./src/components/content_desk_new/contents/short_contents/ShortContents.js","webpack://groot/./src/containers/content_desk_new/contents/short_contents/ShortContents.js","webpack://groot/./src/components/content_desk_new/calendar_events/CalendarEvents.js","webpack://groot/./src/containers/content_desk_new/CalendarEvents.js","webpack://groot/./src/components/content_desk_new/calendar_widget/CalendarWidget.js","webpack://groot/./src/utils/calendar_events.js","webpack://groot/./src/containers/content_desk_new/CalendarWidget.js","webpack://groot/./src/components/content_desk_new/primary_navigation/PrimaryNavigation.js","webpack://groot/./src/containers/content_desk_new/PrimaryNavigation.js","webpack://groot/./src/components/content_desk_new/content_header/tabs/Tabs.js","webpack://groot/./src/containers/content_desk_new/content_header/Tabs.js","webpack://groot/./src/components/content_desk_new/content_header/kpi_date_filter/KpiDateFilter.js","webpack://groot/./src/containers/content_desk_new/content_header/KpiDateFilter.js","webpack://groot/./src/components/content_desk_new/content_header/ContentHeader.js","webpack://groot/./src/containers/content_desk_new/ContentHeader.js","webpack://groot/./src/components/content_desk_new/kpi_statistics/statistics_card/StatisticsCard.js","webpack://groot/./src/components/content_desk_new/kpi_statistics/KpiStatistics.js","webpack://groot/./src/containers/content_desk_new/KpiStatistics.js","webpack://groot/./src/components/content_desk_new/calendar_dialog/CalendarDialog.js","webpack://groot/./src/containers/content_desk_new/CalendarDialog.js","webpack://groot/./src/hooks/useBeforeUnload.js","webpack://groot/./src/components/content_desk/close_confirm_dialog/CloseConfirmDialog.js","webpack://groot/./src/components/content_desk/publish_confirm_dialog/PublishConfirmDialog.js","webpack://groot/./src/components/content_desk/content_edit_dialog/navigation/Navigation.js","webpack://groot/./src/containers/content_desk/content_edit_dialog/Navigation.js","webpack://groot/./src/components/content_desk/content_edit_dialog/content_form/ContentForm.js","webpack://groot/./src/containers/content_desk/content_edit_dialog/ContentForm.js","webpack://groot/./src/components/content_desk/content_edit_dialog/select_recipients_form/SelectRecipientsForm.js","webpack://groot/./src/containers/content_desk/content_edit_dialog/SelectRecipientsForm.js","webpack://groot/./src/components/content_desk/contents/content_preview/linked_in/LinkedIn.js","webpack://groot/./src/components/content_desk/contents/content_preview/facebook/Facebook.js","webpack://groot/./src/components/content_desk/contents/content_preview/ContentPreview.js","webpack://groot/./src/containers/content_desk/ContentPreview.js","webpack://groot/./src/utils/content_desk.js","webpack://groot/./src/components/content_desk/content_edit_dialog/distribute_form/DistributeForm.js","webpack://groot/./src/containers/content_desk/content_edit_dialog/DistributeForm.js","webpack://groot/./src/components/email_templates_library/templates_list_item/TemplatesListItem.js","webpack://groot/./src/containers/email_templates_library/TemplatesListItem.js","webpack://groot/./src/components/email_templates_library/templates_list/TemplatesList.js","webpack://groot/./src/containers/email_templates_library/TemplatesList.js","webpack://groot/./src/components/email_templates_library/templates_wrapper/TemplatesWrapper.js","webpack://groot/./src/containers/email_templates_library/TemplatesWrapper.js","webpack://groot/./src/components/email_templates_library/templates_picker_dialog/TemplatePickerDialog.js","webpack://groot/./src/containers/email_templates_library/TemplatesPickerDialog.js","webpack://groot/./src/components/content_desk/content_edit_dialog/content_editor/email_editor/save_template_dialog/SaveTemplateDialog.js","webpack://groot/./src/containers/content_desk/content_edit_dialog/SaveTemplateDialog.js","webpack://groot/./src/components/email_templates_library/templates_editor_variables/TemplatesEditorVariables.js","webpack://groot/./src/containers/email_templates_library/TemplatesEditorVariables.js","webpack://groot/./src/components/content_desk/content_edit_dialog/content_editor/email_editor/EmailEditor.js","webpack://groot/./src/containers/content_desk/content_edit_dialog/EmailEditor.js","webpack://groot/./src/components/content_desk/content_edit_dialog/content_editor/linked_in_editor/media_gallery/MediaGallery.js","webpack://groot/./src/containers/content_desk/content_edit_dialog/linked_in_editor/MediaGallery.js","webpack://groot/./src/utils/ai_editor.js","webpack://groot/./src/components/content_desk/editor_ai_workspace/EditorAiWorkspace.js","webpack://groot/./src/containers/content_desk/EditorAiWorkspace.js","webpack://groot/./src/components/content_desk/prompt_history/PromptHistory.js","webpack://groot/./src/containers/content_desk/PromptHistory.js","webpack://groot/./src/components/unsplash/Unsplash.js","webpack://groot/./src/containers/Unsplash.js","webpack://groot/./src/components/content_desk/content_edit_dialog/content_editor/linked_in_editor/LinkedInEditor.js","webpack://groot/./src/containers/content_desk/content_edit_dialog/linked_in_editor/LinkedInEditor.js","webpack://groot/./src/components/themed/switch/Switch.js","webpack://groot/./src/components/content_desk/content_edit_dialog/content_editor/facebook_editor/media_gallery/MediaGallery.js","webpack://groot/./src/containers/content_desk/content_edit_dialog/facebook_editor/FacebookMediaGallery.js","webpack://groot/./src/components/content_desk/content_edit_dialog/content_editor/facebook_editor/FacebookEditor.js","webpack://groot/./src/containers/content_desk/content_edit_dialog/facebook_editor/FacebookEditor.js","webpack://groot/./src/components/content_desk/content_edit_dialog/content_editor/ContentEditor.js","webpack://groot/./src/containers/content_desk/content_edit_dialog/ContentEditor.js","webpack://groot/./src/components/content_desk/content_edit_dialog/content_plan_dialog/ContentPlanDialog.js","webpack://groot/./src/containers/content_desk/content_edit_dialog/ContentPlanDialog.js","webpack://groot/./src/components/content_desk/content_edit_dialog/content_schedule_dialog/ContentScheduleDialog.js","webpack://groot/./src/containers/content_desk/content_edit_dialog/ContentScheduleDialog.js","webpack://groot/./src/components/content_desk/content_edit_dialog/attachments/Attachments.js","webpack://groot/./src/containers/content_desk/content_edit_dialog/Attachments.js","webpack://groot/./src/utils/regex.js","webpack://groot/./src/components/content_desk/content_edit_dialog/ContentEditDialog.js","webpack://groot/./src/containers/content_desk/ContentEditDialog.js","webpack://groot/./src/components/content_desk/delete_dialog/DeleteDialog.js","webpack://groot/./src/containers/content_desk/DeleteDialog.js","webpack://groot/./src/components/content_desk_new/campaigns/campaign_form/close_confirm_dialog/CloseConfirmDialog.js","webpack://groot/./src/containers/content_desk_new/campaigns/campaign_form/CloseConfirmDialog.js","webpack://groot/./src/components/content_desk_new/campaigns/campaign_form/CampaignForm.js","webpack://groot/./src/containers/content_desk_new/campaigns/CampaignForm.js","webpack://groot/./src/components/content_desk_new/content_new_dialog/ContentNewDialog.js","webpack://groot/./src/containers/content_desk_new/ContentNewDialog.js","webpack://groot/./src/components/content_desk_new/campaigns/campaign/campaign_actions/CampaignDelete.js","webpack://groot/./src/containers/content_desk_new/campaigns/campaign/CampaignDelete.js","webpack://groot/./src/components/content_desk_new/campaigns/campaign/campaign_actions/CampaignActions.js","webpack://groot/./src/containers/content_desk_new/campaigns/campaign/CampaignActions.js","webpack://groot/./src/components/content_desk_new/contents/content_approval_status_select/ContentApprovalStatusSelect.js","webpack://groot/./src/containers/content_desk_new/contents/content/ContentApprovalStatusSelect.js","webpack://groot/./src/components/content_desk_new/contents/content/Content.js","webpack://groot/./src/containers/content_desk_new/contents/content/Content.js","webpack://groot/./src/components/content_desk_new/contents/Contents.js","webpack://groot/./src/components/content_desk_new/campaigns/campaign/Campaign.js","webpack://groot/./src/containers/content_desk_new/campaigns/campaign/Campaign.js","webpack://groot/./src/components/content_desk_new/campaigns/Campaigns.js","webpack://groot/./src/containers/content_desk_new/campaigns/Campaigns.js","webpack://groot/./src/components/content_desk_new/campaigns/mobile_campaigns/mobile_campaign/MobileCampaign.js","webpack://groot/./src/containers/content_desk_new/campaigns/mobile_campaigns/MobileCampaign.js","webpack://groot/./src/components/content_desk_new/campaigns/mobile_campaigns/MobileCampaigns.js","webpack://groot/./src/containers/content_desk_new/campaigns/mobile_campaigns/MobileCampaigns.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/schedule_dialog/ScheduleDialog.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/ScheduleDialog.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/test_mail_dialog/TestMailDialog.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/TestMailDialog.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/ContentApprovalStatusSelect.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/toolbar/Toolbar.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/Toolbar.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/close_confirm_dialog/CloseConfirmDialog.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/CloseConfirmDialog.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/recipients_selection/RecipientsList.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/RecipientsList.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/recipients_selection/DistributionLists.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/DistributionLists.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/recipients_selection/RecipientsSelection.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/RecipientsSelection.js","webpack://groot/./src/components/content_desk_new/contents/content_preview/linked_in/LinkedIn.js","webpack://groot/./src/components/content_desk_new/contents/content_preview/facebook/Facebook.js","webpack://groot/./src/components/content_desk_new/contents/content_preview/ContentPreview.js","webpack://groot/./src/containers/content_desk_new/contents/ContentPreview.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/overview/Overview.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/Overview.js","webpack://groot/./src/components/content_desk_new/recipients/Recipients.js","webpack://groot/./src/containers/content_desk_new/Recipients.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/recipients_browser/clear_all_confirm_dialog/ClearAllConfirmDialog.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/recipients_browser/ClearAllConfirmDialog.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/recipients_browser/RecipientsBrowser.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/RecipientsBrowser.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/navigation/Navigation.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/Navigation.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/campaign_selection/CampaignSelection.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/CampaignSelection.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/settings/closed_campaign_dialog/ClosedCampaignDialog.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/settings/ClosedCampaignDialog.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/settings/Settings.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/Settings.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/templates/template_confirm_dialog/TemplateConfirmDialog.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/templates/TemplateConfirmDialog.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/templates/template_preview_dialog/TemplatePreviewDialog.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/templates/TemplatePreviewDialog.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/templates/Templates.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/Templates.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/editor/email_editor/save_template_dialog/SaveTemplateDialog.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/editor/email_editor/SaveTemplateDialog.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/editor/email_editor/EmailEditor.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/editor/EmailEditor.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/editor/Editor.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/Editor.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/attachments/storage_limit/StorageLimit.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/attachments/StorageLimit.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/attachments/select_media/SelectMedia.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/attachments/SelectMedia.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/attachments/storage_warning/StorageWarning.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/attachments/StorageWarning.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/attachments/files_gallery/upload_media/UploadMedia.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/attachments/files_gallery/UploadMedia.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/attachments/files_gallery/pdf_media/PdfMedia.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/attachments/files_gallery/PdfMedia.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/attachments/files_gallery/media_actions/MediaActions.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/attachments/files_gallery/MediaActions.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/attachments/files_gallery/FilesGallery.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/attachments/FilesGallery.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/attachments/delete_file_dialog/DeleteFileDialog.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/attachments/DeleteFileDialog.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/attachments/image_preview_dialog/ImagePreviewDialog.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/attachments/ImagePreviewDialog.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/attachments/Attachments.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/Attachments.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/choose_content/ChooseContent.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/ChooseContent.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/ui/divider/Divider.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/toolbar_plugin/toolbar_options/options/UndoRedo.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/ui/dropdown/DropDown.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/toolbar_plugin/toolbar_options/options/TextFormat.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/toolbar_plugin/toolbar_options/options/TextStyle.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/toolbar_plugin/toolbar_options/options/LinkFormat.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/toolbar_plugin/toolbar_options/ToolbarOptions.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/toolbar_plugin/ToolbarPlugin.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/state_plugin/StatePlugin.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/max_length_plugin/MaxLengthPlugin.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/nodes/ExtendedLinkNode.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/empty_link_plugin/EmptyLinkPlugin.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/story_text_plugin/StoryTextPlugin.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/contact_text_plugin/ContactTextPlugin.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/RichTextEditor.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/themes/EditorTheme.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/nodes/ExtendedParagraphNode.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/nodes/ExtendedTextNode.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/nodes/ExtendedAutoLinkNode.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/nodes/ExtendedListNode.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/nodes/ExtendedListItemNode.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/editorConfig.js","webpack://groot/./src/components/content_desk_new/ots_guidelines_dialog/OtsGuidelinesDialog.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ots_editor/OtsEditor.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/OtsEditor.js","webpack://groot/./src/components/content_desk_new/contents/content_edit_dialog/ContentEditDialog.js","webpack://groot/./src/containers/content_desk_new/contents/content_edit_dialog/ContentEditDialog.js","webpack://groot/./src/components/content_desk_new/contents/contents_edit_block_dialog/ContentsEditBlockDialog.js","webpack://groot/./src/containers/content_desk_new/contents/ContentsEditBlockDialog.js","webpack://groot/./src/components/contact_management/tag_chip/TagChip.js","webpack://groot/./src/components/contact_management/contact_details_dialog/contact_tags/ContactTags.js","webpack://groot/./src/components/contact_management/contact_details_dialog/sm_icon/SmIcon.js","webpack://groot/./src/components/contact_management/contact_details_dialog/contact_channels/ContactChannels.js","webpack://groot/./src/components/contact_management/contact_image/ContactImage.js","webpack://groot/./src/components/contact_management/contact_details_dialog/contact_profile/ContactProfile.js","webpack://groot/./src/components/contact_management/contact_details_dialog/contact_info/ContactInfo.js","webpack://groot/./src/components/contact_management/contact_details_dialog/contact_topics/ContactTopics.js","webpack://groot/./src/components/contact_management/contact_details_dialog/contact_languages/ContactLanguages.js","webpack://groot/./src/components/contact_management/contact_details_dialog/contact_media_types/ContactMediaTypes.js","webpack://groot/./src/components/contact_management/contact_details_dialog/contact_supplier/ContactSupplier.js","webpack://groot/./src/components/contact_management/contact_details_dialog/ContactDetailsDialog.js","webpack://groot/./src/containers/contact_management/ContactDetailsDialog.js","webpack://groot/./src/utils/contact_management.js","webpack://groot/./src/components/contact_management/contact_edit_dialog/edit_contact_profile/EditContactProfile.js","webpack://groot/./src/components/contact_management/contact_edit_dialog/edit_contact_tags/EditContactTags.js","webpack://groot/./src/components/contact_management/contact_edit_dialog/edit_contact_info/EditContactInfo.js","webpack://groot/./src/components/contact_management/contact_edit_dialog/edit_contact_channels/EditContactChannels.js","webpack://groot/./src/components/contact_management/contact_edit_dialog/edit_dialog_actions/EditDialogActions.js","webpack://groot/./src/components/contact_management/contact_edit_dialog/edit_contact_topics/EditContactTopics.js","webpack://groot/./src/components/contact_management/contact_edit_dialog/edit_contact_languages/EditContactLanguages.js","webpack://groot/./src/components/contact_management/contact_edit_dialog/edit_contact_media_types/EditContactMediaTypes.js","webpack://groot/./src/components/contact_management/contact_edit_dialog/ContactEditDialog.js","webpack://groot/./src/containers/contact_management/ContactEditDialog.js","webpack://groot/./src/components/content_desk_new/contents/content_notes_dialog/ContentNotesDialog.js","webpack://groot/./src/containers/content_desk_new/contents/ContentNotesDialog.js","webpack://groot/./src/containers/content_desk_new/contents/Contents.js","webpack://groot/./src/components/content_desk_new/contents/mobile_contents/mobile_content/MobileContent.js","webpack://groot/./src/containers/content_desk_new/contents/mobile_contents/MobileContent.js","webpack://groot/./src/components/content_desk_new/contents/mobile_contents/MobileContents.js","webpack://groot/./src/containers/content_desk_new/contents/mobile_contents/MobileContents.js","webpack://groot/./src/components/multi_filters/MultiFilters.js","webpack://groot/./src/components/content_desk_new/campaigns/campaigns_filters/CampaignsFilters.js","webpack://groot/./src/containers/content_desk_new/campaigns/CampaignsFilters.js","webpack://groot/./src/components/content_desk_new/contents/contents_filters/ContentsFilters.js","webpack://groot/./src/containers/content_desk_new/contents/ContentsFilters.js","webpack://groot/./src/components/content_desk_new/contents_campaigns_tabs/ContentsCampaignsTabs.js","webpack://groot/./src/containers/content_desk_new/ContentsCampaignsTabs.js","webpack://groot/./src/utils/mailgunCalc.js","webpack://groot/./src/components/content_desk_new/contents/content_view/statistics_data/email/Email.js","webpack://groot/./src/containers/content_desk_new/contents/content_view/statistics_data/Email.js","webpack://groot/./src/components/content_desk_new/contents/content_view/statistics_data/linked_in/LinkedIn.js","webpack://groot/./src/containers/content_desk_new/contents/content_view/statistics_data/LinkedIn.js","webpack://groot/./src/components/content_desk_new/contents/content_view/statistics_data/facebook/Facebook.js","webpack://groot/./src/containers/content_desk_new/contents/content_view/statistics_data/Facebook.js","webpack://groot/./src/components/content_desk_new/contents/content_view/statistics_data/ots_press_release/OtsPressRelease.js","webpack://groot/./src/containers/content_desk_new/contents/content_view/statistics_data/OtsPressRelease.js","webpack://groot/./src/components/content_desk_new/contents/content_view/statistics_data/news/News.js","webpack://groot/./src/containers/content_desk_new/contents/content_view/statistics_data/News.js","webpack://groot/./src/components/content_desk_new/contents/content_view/statistics_data/StatisticsData.js","webpack://groot/./src/containers/content_desk_new/contents/content_view/StatisticsData.js","webpack://groot/./src/components/content_desk/contents/content_view/recipients_table/collapsable_row/CollapsableRow.js","webpack://groot/./src/components/content_desk/contents/content_view/recipients_table/RecipientsTable.js","webpack://groot/./src/containers/content_desk_new/contents/content_view/RecipientsTable.js","webpack://groot/./src/components/content_desk_new/contents/content_view/ContentView.js","webpack://groot/./src/containers/content_desk_new/contents/content_view/ContentView.js","webpack://groot/./src/components/content_desk_new/contents_campaigns_overview/ContentsCampaignsOverview.js","webpack://groot/./src/containers/content_desk_new/contents_campaigns_overview/ContentsCamapaignsOverview.js","webpack://groot/./src/components/content_desk_new/ots_welcome_dialog/OtsWelcomeDialog.js","webpack://groot/./src/containers/content_desk_new/OtsWelcomeDialog.js","webpack://groot/./src/components/content_desk_new/ots_success_dialog/OtsSuccessDialog.js","webpack://groot/./src/containers/content_desk_new/OtsSuccessDialog.js","webpack://groot/./src/components/content_desk_new/ots_error_dialog/OtsErrorDialog.js","webpack://groot/./src/containers/content_desk_new/OtsErrorDialog.js","webpack://groot/./src/components/content_desk_new/ContentDesk.js","webpack://groot/./src/containers/content_desk_new/ContentDesk.js","webpack://groot/./src/components/content_desk_new/contents_campaigns_show_all/contents_campaigns_pagination/ContentsCampaignsPagination.js","webpack://groot/./src/containers/content_desk_new/contents_campaigns_show_all/CampaignsPagination.js","webpack://groot/./src/containers/content_desk_new/contents_campaigns_show_all/ContentsPagination.js","webpack://groot/./src/components/content_desk_new/contents_campaigns_show_all/ContentsCampaignsShowAll.js","webpack://groot/./src/containers/content_desk_new/contents_campaigns_show_all/ContentsCampaignsShowAll.js","webpack://groot/./src/containers/contact_management/SearchBar.js","webpack://groot/./src/containers/contact_management/QueryTypeDropdown.js","webpack://groot/./src/components/contact_management/actions/Actions.js","webpack://groot/./src/containers/contact_management/Actions.js","webpack://groot/./src/components/contact_management/app_bar/AppBar.js","webpack://groot/./src/containers/contact_management/AppBar.js","webpack://groot/./src/components/contact_management/contacts/contacts_sortbar/ContactsSortbar.js","webpack://groot/./src/containers/contact_management/ContactsSortbar.js","webpack://groot/./src/components/contact_management/contacts/contacts_item/ContactsItem.js","webpack://groot/./src/containers/contact_management/ContactsItem.js","webpack://groot/./src/components/contact_management/contacts/upload_contacts/import_help_dialog/ImportHelpDialog.js","webpack://groot/./src/containers/contact_management/ImportHelpDialog.js","webpack://groot/./src/components/contact_management/contacts/Contacts.js","webpack://groot/./src/containers/contact_management/Contacts.js","webpack://groot/./src/components/contact_management/distribution_lists/distribution_lists_sortbar/DistributionListsSortbar.js","webpack://groot/./src/containers/contact_management/DistributionListsSortbar.js","webpack://groot/./src/components/contact_management/distribution_lists/distribution_lists_item/distribution_lists_delete/DistributionListsDelete.js","webpack://groot/./src/containers/contact_management/DistributionListsDelete.js","webpack://groot/./src/components/contact_management/distribution_lists/distribution_lists_item/distribution_lists_filter/DistributionListsFilter.js","webpack://groot/./src/containers/contact_management/DistributionListsFilter.js","webpack://groot/./src/components/contact_management/distribution_lists/distribution_lists_item/DistributionListItem.js","webpack://groot/./src/containers/contact_management/DistributionListItem.js","webpack://groot/./src/components/contact_management/distribution_lists/DistributionLists.js","webpack://groot/./src/containers/contact_management/DistributionLists.js","webpack://groot/./src/components/contact_management/contact_delete_dialog/ContactDeleteDialog.js","webpack://groot/./src/containers/contact_management/ContactDeleteDialog.js","webpack://groot/./src/components/contact_management/tags_dialog/tag_rename_dialog/TagRenameDialog.js","webpack://groot/./src/containers/contact_management/TagRenameDialog.js","webpack://groot/./src/components/contact_management/tags_dialog/tag_delete_dialog/TagDeleteDialog.js","webpack://groot/./src/containers/contact_management/TagDeleteDialog.js","webpack://groot/./src/components/contact_management/tags_dialog/tag_sortbar/TagSortbar.js","webpack://groot/./src/containers/contact_management/TagSortbar.js","webpack://groot/./src/components/contact_management/tags_dialog/tag_list/TagList.js","webpack://groot/./src/containers/contact_management/TagList.js","webpack://groot/./src/components/contact_management/tags_dialog/TagsDialog.js","webpack://groot/./src/containers/contact_management/TagsDialog.js","webpack://groot/./src/containers/contact_management/DistributionListCreateDialog.js","webpack://groot/./src/components/contact_management/distribution_list_edit_dialog/contacts_list_item/ContactsListItem.js","webpack://groot/./src/containers/contact_management/ContactsListItem.js","webpack://groot/./src/components/contact_management/distribution_list_edit_dialog/DistributionListEditDialog.js","webpack://groot/./src/containers/contact_management/DistributionListEditDialog.js","webpack://groot/./src/components/contact_management/distribution_list_view_dialog/distribution_list_table/DistributionListTable.js","webpack://groot/./src/containers/contact_management/DistributionListTable.js","webpack://groot/./src/components/contact_management/distribution_list_view_dialog/DistributionListViewDialog.js","webpack://groot/./src/containers/contact_management/DistributionListViewDialog.js","webpack://groot/./src/components/contact_management/selected_distribution_lists_bar/selected_distribution_lists_table/SelectedDistributionListsTable.js","webpack://groot/./src/containers/contact_management/SelectedDistributionListsTable.js","webpack://groot/./src/components/contact_management/distribution_list_merge_dialog/DistributionListMergeDialog.js","webpack://groot/./src/containers/contact_management/DistributionListMergeDialog.js","webpack://groot/./src/containers/contact_management/ActiveFilterList.js","webpack://groot/./src/components/contact_management/contacts/upload_contacts/UploadContacts.js","webpack://groot/./src/containers/contact_management/UploadContacts.js","webpack://groot/./src/components/contact_management/contact_edit_dialog/email_existing_dialog/EmailExistingDialog.js","webpack://groot/./src/containers/contact_management/EmailExistingDialog.js","webpack://groot/./src/components/contact_management/contacts/upload_contacts/upload_result_dialog/UploadResultDialog.js","webpack://groot/./src/containers/contact_management/UploadResultDialog.js","webpack://groot/./src/components/contact_management/selected_contacts_bar/SelectedContactsBar.js","webpack://groot/./src/containers/contact_management/SelectedContactsBar.js","webpack://groot/./src/components/contact_management/selected_distribution_lists_bar/SelectedDistributionListsBar.js","webpack://groot/./src/containers/contact_management/SelectedDistributionListsBar.js","webpack://groot/./src/components/contact_management/ContactManagement.js","webpack://groot/./src/containers/contact_management/ContactManagement.js","webpack://groot/./src/components/anewstip/actions/Actions.js","webpack://groot/./src/containers/anewstip/Actions.js","webpack://groot/./src/containers/anewstip/AppBar.js","webpack://groot/./src/components/anewstip/app_bar/AppBar.js","webpack://groot/./src/components/anewstip/results/blurred_social_handles/BlurredSocialHandles.js","webpack://groot/./src/components/anewstip/results/journalists/Journalist.js","webpack://groot/./src/containers/anewstip/results/Journalist.js","webpack://groot/./src/components/anewstip/results/outlet/Outlet.js","webpack://groot/./src/containers/anewstip/results/Outlet.js","webpack://groot/./src/components/anewstip/results/article/Article.js","webpack://groot/./src/containers/anewstip/results/Article.js","webpack://groot/./src/components/anewstip/results/pagination/Pagination.js","webpack://groot/./src/containers/anewstip/results/Pagination.js","webpack://groot/./src/components/anewstip/results/facets/Facets.js","webpack://groot/./src/containers/anewstip/results/Facets.js","webpack://groot/./src/components/anewstip/results/filter_button/FilterButton.js","webpack://groot/./src/components/anewstip/results/result/Result.js","webpack://groot/./src/containers/anewstip/results/Result.js","webpack://groot/./src/components/anewstip/results/pr_article/PrArticle.js","webpack://groot/./src/components/anewstip/results/dialog/Dialog.js","webpack://groot/./src/containers/anewstip/results/Dialog.js","webpack://groot/./src/components/anewstip/results/Results.js","webpack://groot/./src/containers/anewstip/Results.js","webpack://groot/./src/components/anewstip/search/Search.js","webpack://groot/./src/containers/anewstip/search/Search.js","webpack://groot/./src/components/anewstip/duplicate_contacts_dialog/duplicate_contact_item/contact_card/ContactCard.js","webpack://groot/./src/containers/anewstip/duplicate_contacts_dialog/ContactCard.js","webpack://groot/./src/components/anewstip/duplicate_contacts_dialog/duplicate_contact_item/DuplicateContactItem.js","webpack://groot/./src/containers/anewstip/duplicate_contacts_dialog/DuplicateContactItem.js","webpack://groot/./src/components/anewstip/duplicate_contacts_dialog/DuplicateContactsDialog.js","webpack://groot/./src/containers/anewstip/DuplicateContactsDialog.js","webpack://groot/./src/containers/anewstip/DistributionListCreateDialog.js","webpack://groot/./src/components/anewstip/Anewstip.js","webpack://groot/./src/containers/anewstip/Anewstip.js","webpack://groot/./src/components/administration/content_desk_settings/allowed_domains/info_dialog/InfoDialog.js","webpack://groot/./src/containers/administration/content_desk_settings/allowed_domains/InfoDialog.js","webpack://groot/./src/components/administration/content_desk_settings/allowed_domains/status_dialog/StatusDialog.js","webpack://groot/./src/containers/administration/content_desk_settings/allowed_domains/StatusDialog.js","webpack://groot/./src/components/administration/content_desk_settings/allowed_domains/AllowedDomains.js","webpack://groot/./src/containers/administration/content_desk_settings/AllowedDomains.js","webpack://groot/./src/components/administration/content_desk_settings/ContentDeskSettings.js","webpack://groot/./src/containers/administration/ContentDeskSettings.js","webpack://groot/./src/components/email_templates_library/templates_editor_dialog/TemplatesEditorDialog.js","webpack://groot/./src/containers/email_templates_library/TemplatesEditorDialog.js","webpack://groot/./src/components/email_templates_library/actions/Actions.js","webpack://groot/./src/containers/email_templates_library/Actions.js","webpack://groot/./src/components/email_templates_library/app_bar/AppBar.js","webpack://groot/./src/containers/email_templates_library/AppBar.js","webpack://groot/./src/components/email_templates_library/EmailTemplatesLibrary.js","webpack://groot/./src/containers/email_templates_library/EmailTemplatesLibrary.js","webpack://groot/./src/containers/administration/saved_charts/SavedChartForm.js","webpack://groot/./src/components/administration/saved_charts/saved_chart/SavedChart.js","webpack://groot/./src/containers/administration/saved_charts/SavedChart.js","webpack://groot/./src/components/administration/saved_charts/SavedCharts.js","webpack://groot/./src/containers/administration/SavedCharts.js","webpack://groot/./src/components/administration/dispatch_log/module_name/ModuleName.js","webpack://groot/./src/containers/administration/dispatch_log/ModuleName.js","webpack://groot/./src/components/administration/dispatch_log/app_bar/AppBar.js","webpack://groot/./src/containers/administration/dispatch_log/AppBar.js","webpack://groot/./src/components/administration/dispatch_log/attachments/Attachments.js","webpack://groot/./src/components/administration/dispatch_log/recipient_stats/RecipientStats.js","webpack://groot/./src/components/administration/dispatch_log/recipients/Recipients.js","webpack://groot/./src/components/administration/dispatch_log/user/User.js","webpack://groot/./src/components/administration/dispatch_log/DispatchLog.js","webpack://groot/./src/containers/administration/DispatchLog.js","webpack://groot/./src/components/themax/welcome_dialog/WelcomeDialog.js","webpack://groot/./src/containers/themax/WelcomeDialog.js","webpack://groot/./src/components/themax/order_dialog/OrderDialog.js","webpack://groot/./src/containers/themax/OrderDialog.js","webpack://groot/./src/components/themax/order_success_dialog/OrderSuccessDialog.js","webpack://groot/./src/containers/themax/OrderSuccessDialog.js","webpack://groot/./src/containers/themax/saved_searches/SavedSearchesMenu.js","webpack://groot/./src/components/themax/saved_searches/SavedSearchesActions.js","webpack://groot/./src/containers/themax/saved_searches/SavedSearchesActions.js","webpack://groot/./src/components/themax/actions/Actions.js","webpack://groot/./src/containers/themax/Actions.js","webpack://groot/./src/containers/themax/SearchBar.js","webpack://groot/./src/containers/themax/QueryTypeDropdown.js","webpack://groot/./src/components/themax/date_filter_button/DateFilterButton.js","webpack://groot/./src/containers/themax/DateFilterButton.js","webpack://groot/./src/utils/slider.js","webpack://groot/./src/components/themax/search_form/SearchForm.js","webpack://groot/./src/containers/themax/SearchForm.js","webpack://groot/./src/containers/themax/DateForm.js","webpack://groot/./src/components/themax/app_bar/AppBar.js","webpack://groot/./src/containers/themax/AppBar.js","webpack://groot/./src/components/themax/order_progress/OrderProgress.js","webpack://groot/./src/containers/themax/OrderProgress.js","webpack://groot/./src/containers/themax/saved_searches/UpdateDialog.js","webpack://groot/./src/components/themax/saved_searches/SavedSearchesOptions.js","webpack://groot/./src/containers/themax/saved_searches/SavedSearchesOptions.js","webpack://groot/./src/containers/themax/ActiveFilterList.js","webpack://groot/./src/components/themax/navigation/Navigation.js","webpack://groot/./src/containers/themax/Navigation.js","webpack://groot/./src/components/themax/hidden_content/LockedContentTooltip.js","webpack://groot/./src/components/themax/hidden_content/BlurredSection.js","webpack://groot/./src/components/themax/editorial_plans/editorial_plans_item/EditorialPlansItem.js","webpack://groot/./src/containers/themax/editorial_plans/editorial_plans_item/EditorialPlansItem.js","webpack://groot/./src/components/themax/editorial_plans/EditorialPlans.js","webpack://groot/./src/containers/themax/editorial_plans/EditorialPlans.js","webpack://groot/./src/components/themax/media_profiles/media_profiles_item/MediaProfilesItem.js","webpack://groot/./src/containers/themax/media_profiles/MediaProfilesItem.js","webpack://groot/./src/components/themax/media_profiles/MediaProfiles.js","webpack://groot/./src/containers/themax/MediaProfiles.js","webpack://groot/./src/components/themax/calendar/sidebar/Sidebar.js","webpack://groot/./src/containers/themax/calendar/Sidebar.js","webpack://groot/./src/components/themax/calendar/event_content/EventContent.js","webpack://groot/./src/containers/themax/calendar/EventContent.js","webpack://groot/./src/components/themax/calendar/Calendar.js","webpack://groot/./src/containers/themax/Calendar.js","webpack://groot/./src/components/themax/detailed_view_dialog/DetailedViewDialog.js","webpack://groot/./src/containers/themax/DetailedViewDialog.js","webpack://groot/./src/components/themax/sorting/Sorting.js","webpack://groot/./src/containers/themax/EditorialPlansSorting.js","webpack://groot/./src/containers/themax/PublicationsSorting.js","webpack://groot/./src/components/themax/excel_download_button/ExcelDownloadButton.js","webpack://groot/./src/containers/themax/ExcelDownloadButton.js","webpack://groot/./src/components/themax/Themax.js","webpack://groot/./src/containers/themax/Themax.js","webpack://groot/./src/containers/themax/SavedSearches.js","webpack://groot/./src/routes.js","webpack://groot/./src/containers/Root.js","webpack://groot/./src/containers/WithColors.js","webpack://groot/./src/containers/WithDevice.js","webpack://groot/./src/components/administration/mailing_lists/edit_dialog/EditDialog.js","webpack://groot/./src/containers/administration/mailing_lists/dialogs/EditDialog.js","webpack://groot/./src/containers/administration/mailing_lists/dialogs/RemoveDialog.js","webpack://groot/./src/components/custom_tags/custom_tag/CustomTag.js","webpack://groot/./src/containers/custom_tags/CustomTag.js","webpack://groot/./src/components/custom_tags/custom_tag_dialog/custom_tag_assistant/query/Query.js","webpack://groot/./src/components/custom_tags/custom_tag_dialog/custom_tag_assistant/CustomTagAssistant.js","webpack://groot/./src/containers/custom_tags/custom_tag_dialog/CustomTagAssistant.js","webpack://groot/./src/components/custom_tags/custom_tag_dialog/CustomTagDialog.js","webpack://groot/./src/containers/custom_tags/CustomTagDialog.js","webpack://groot/./src/components/custom_tags/filterable_custom_tag_list/FilterableCustomTagList.js","webpack://groot/./src/containers/custom_tags/FilterableCustomTagList.js","webpack://groot/./src/containers/media_reviews/media_review_detail/RemoveDialog.js","webpack://groot/./src/components/news_page/no_hits/NoHits.js","webpack://groot/./src/containers/news_page/NoHits.js","webpack://groot/./src/components/notifications/button/Button.js","webpack://groot/./src/containers/notifications/NotificationsButton.js","webpack://groot/./src/components/paid_features/order_form/OrderForm.js","webpack://groot/./src/containers/paid_features/OrderForm.js","webpack://groot/./src/components/paid_features/ai_summaries_order_form/AiSummariesOrderForm.js","webpack://groot/./src/containers/paid_features/AiSummariesOrderForm.js","webpack://groot/./src/containers/themax/saved_searches/EditDialog.js","webpack://groot/./src/hooks/useColors.js","webpack://groot/./src/hooks/useDashboard.js","webpack://groot/./src/hooks/useDevice.js","webpack://groot/./src/utils/autocomplete.js","webpack://groot/./src/utils/channel.js","webpack://groot/./src/utils/color.js","webpack://groot/./src/utils/custom_tags.js","webpack://groot/./src/utils/html.js","webpack://groot/./src/utils/number.js","webpack://groot/./src/utils/pdf.js","webpack://groot/./src/utils/translation.js","webpack://groot/./src/containers/ lazy ^\\.\\/.*\\/EditDialog$ chunkName: SavedSearchesEditDialog namespace object","webpack://groot/./src/containers/ lazy ^\\.\\/.*\\/RemoveDialog$ chunkName: SavedSearchesRemoveDialog namespace object","webpack://groot/./src/containers/ lazy ^\\.\\/.*\\/card_view\\/CardView$ chunkName: SavedSearchesCardView namespace object","webpack://groot/./src/containers/ lazy ^\\.\\/.*\\/card_view\\/SavedSearch$ chunkName: SavedSearchesCardViewSavedSearch namespace object","webpack://groot/./src/containers/ lazy ^\\.\\/.*\\/list_view\\/ListView$ chunkName: SavedSearchesListView namespace object"],"sourcesContent":["import React, { useState, useRef, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport decamelize from 'decamelize'\nimport pixelWidth from 'string-pixel-width'\nimport GroupIcon from '@mui/icons-material/Group'\nimport SearchIcon from '@mui/icons-material/Search'\nimport LocationOnIcon from '@mui/icons-material/LocationOn'\nimport ShortTextIcon from '@mui/icons-material/ShortText'\nimport PersonIcon from '@mui/icons-material/Person'\nimport LocalOfferIcon from '@mui/icons-material/LocalOffer'\nimport FilterListIcon from '@mui/icons-material/FilterList'\nimport CheckIcon from '@mui/icons-material/Check'\nimport LanguageIcon from '@mui/icons-material/Language'\nimport LoyaltyIcon from '@mui/icons-material/Loyalty'\nimport CollectionsBookmarkIcon from '@mui/icons-material/CollectionsBookmark'\nimport SentimentVerySatisfiedIcon from '@mui/icons-material/SentimentVerySatisfied'\nimport SentimentVeryDissatisfiedIcon from '@mui/icons-material/SentimentVeryDissatisfied'\nimport Brightness1Icon from '@mui/icons-material/Brightness1'\nimport RemoveCircleOutlineIcon from '@mui/icons-material/RemoveCircleOutline'\nimport AddIcon from '@mui/icons-material/Add'\nimport RemoveIcon from '@mui/icons-material/Remove'\nimport FlagIcon from '@mui/icons-material/Flag'\nimport OutlinedFlagIcon from '@mui/icons-material/OutlinedFlag'\nimport LocalShippingIcon from '@mui/icons-material/LocalShipping'\nimport EditIcon from '@mui/icons-material/Edit'\nimport BarChartIcon from '@mui/icons-material/BarChart'\nimport ChatBubbleOutlineIcon from '@mui/icons-material/ChatBubbleOutline'\nimport SwapHorizIcon from '@mui/icons-material/SwapHoriz'\nimport LinkIcon from '@mui/icons-material/Link'\nimport WebIcon from '@mui/icons-material/Web'\nimport MessageIcon from '@mui/icons-material/Message'\nimport TitleIcon from '@mui/icons-material/Title'\nimport CampaignIcon from '@mui/icons-material/Campaign'\nimport ContactsIcon from '@mui/icons-material/Contacts'\nimport PeopleAltOutlinedIcon from '@mui/icons-material/PeopleAltOutlined'\nimport OutboundIcon from '@mui/icons-material/Outbound'\nimport NumbersIcon from '@mui/icons-material/Numbers'\nimport SwapVerticalCircleIcon from '@mui/icons-material/SwapVerticalCircle'\nimport TagIcon from '@mui/icons-material/Tag'\nimport AutoAwesomeIcon from '@mui/icons-material/AutoAwesome'\nimport { makeStyles } from 'tss-react/mui'\nimport { keyframes } from 'tss-react'\n\nimport { Input } from 'containers/themed'\nimport ChannelIcon from 'components/channel_icon'\nimport NewsguardInfo from 'containers/NewsguardInfo'\n\nimport { getAiEntityName, isAiEntity } from 'utils/ai_entities'\nimport masterConfig from 'static/master_config'\nimport {\n SearchFields,\n ContentDeskSearchFields,\n ContactManagementSearchFields,\n DarknetSearchFields,\n ThemaxSearchFields\n} from 'static/constants'\nimport NetworkIcon from 'components/darknet/network_icon'\n\nimport { green, red, teal, lightBlue } from '@mui/material/colors'\n\nimport { Avatar, Chip, Icon } from '@mui/material'\n\nconst useStyles = makeStyles()({\n container: {\n position: 'relative',\n display: 'inline-block'\n },\n unavailable: {\n filter: 'grayscale(100%)',\n opacity: 0.5\n },\n activeFilter: {\n marginRight: 10,\n marginTop: 10,\n transition: 'all 1s cubic-bezier(0.38, 0.8, 0.56, 1.12)'\n },\n label: {\n userSelect: 'auto'\n },\n labelText: {\n maxWidth: 200,\n overflow: 'hidden',\n textOverflow: 'ellipsis'\n },\n defaultLabel: {\n display: 'flex',\n alignItems: 'center'\n },\n prefix: {\n userSelect: 'none'\n },\n invertIcon: {\n cursor: 'pointer',\n color: green[700]\n },\n editableLabel: {\n cursor: 'pointer'\n },\n inverted: {\n color: red[700],\n animation: `${keyframes`\n from {\n opacity: 0;\n transform: rotate(90deg);\n }\n to {\n opacity: 1;\n }\n `} 225ms;`\n },\n notInverted: {\n animation: `${keyframes`\n from {\n opacity: 0;\n transform: rotate(-90deg);\n }\n to {\n opacity: 1;\n }\n `} 225ms;`\n },\n editIcon: {\n cursor: 'pointer',\n width: '30px !important',\n height: '30px !important',\n marginLeft: '0 !important',\n animation: `${keyframes`\n 0% {\n transform: scale(2);\n }\n 100% {\n transform: scale(1);\n }\n `} 500ms;`\n },\n statementCode: {\n color: lightBlue[700]\n },\n groupedStatementCode: {\n color: lightBlue[300]\n },\n channelIcon: {\n fontSize: '13px !important',\n marginLeft: '0 !important'\n },\n editInput: {\n fontSize: 13\n },\n newsguardIcon: {\n display: 'flex',\n alignItems: 'center',\n marginTop: 7,\n marginLeft: 9\n },\n newsOutlinkIcon: {\n color: teal[300]\n },\n outlinkIcon: {\n color: teal[500]\n },\n networkIcon: {\n width: 28,\n height: 28\n },\n networkIconTag: {\n width: 26,\n height: 26,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n },\n mediaReviewTypeIcon: {\n marginLeft: 5,\n marginBottom: 3,\n fontSize: 20\n },\n mediaReviewTypeIconContainer: {\n height: 20,\n display: 'flex !important'\n }\n})\n\nconst getCountryIcon = filter => {\n const shortName = filter.get('shortName')\n\n if (!shortName) {\n return \n }\n\n return \n}\n\nconst getTonalityIcon = filter => {\n if (filter.get('id') === 'positive') {\n return \n }\n\n if (filter.get('id') === 'negative') {\n return \n }\n\n if (filter.get('id') === 'unknown') {\n return \n }\n\n return \n}\n\nconst getStatementTonalityIcon = filter => \nconst notInvertableFilters = [\n SearchFields.BOOLEANS,\n SearchFields.AUTHOR_QUERIES,\n SearchFields.GEO_BOUNDING_BOX,\n SearchFields.OUTLINK_URLS,\n SearchFields.OUTLINKS,\n SearchFields.SIMILARITY_CCD_CONTENTS,\n SearchFields.SIMILARITY_CCD_CAMPAIGNS,\n DarknetSearchFields.MIN_HACKISHNESS,\n ContentDeskSearchFields.CONTENT_PLAIN_TEXT,\n ContentDeskSearchFields.CONTENT_TITLE,\n ContentDeskSearchFields.CAMPAIGN_NAME,\n ContactManagementSearchFields.CONTACT_NAME,\n ContactManagementSearchFields.CONTACT_TAG,\n ContactManagementSearchFields.DISTRIBUTION_LIST_NAME,\n ContactManagementSearchFields.DISTRIBUTION_LIST_CONTACTS,\n ThemaxSearchFields.REACH_MIN,\n ThemaxSearchFields.REACH_MAX,\n ThemaxSearchFields.PAGE_AVE_MIN,\n ThemaxSearchFields.PAGE_AVE_MAX\n]\n\nconst editableFilters = [\n SearchFields.NEWS_QUERIES,\n SearchFields.PUBLICATION_QUERIES,\n SearchFields.AUTHOR_QUERIES,\n DarknetSearchFields.DARKNET_SEARCH_QUERIES,\n ContentDeskSearchFields.CONTENT_PLAIN_TEXT,\n ContentDeskSearchFields.CONTENT_TITLE,\n ContentDeskSearchFields.CAMPAIGN_NAME,\n ContactManagementSearchFields.CONTACT_NAME,\n ContactManagementSearchFields.CONTACT_TAG,\n ContactManagementSearchFields.DISTRIBUTION_LIST_NAME,\n ThemaxSearchFields.TOPIC_PLAN,\n ThemaxSearchFields.PUBLICATION_NAME,\n ThemaxSearchFields.PUBLICATION_INFO\n]\n\nexport default function ActiveFilter({ hidden, filter, index, i18n, device, onRemove, onInvert, onUpdate }) {\n const { classes, cx } = useStyles()\n const [queryValue, setQueryValue] = useState(filter.get('value'))\n const [editing, setEditing] = useState(false)\n const [showEditMode, setShowEditMode] = useState(false)\n const [style, setStyle] = useState((device.get('mobile') || filter.get('updated')) ? {} : { display: 'none' })\n const [containerStyle, setContainerStyle] = useState((device.get('mobile') || filter.get('updated')) ? {} : { zIndex: 5000 })\n const compEl = useRef(null)\n\n const getMediaReviewTypeIcon = mediaReviewTypeFilter => (\n \n \n \n )\n\n const getChannelIcon = channelFilter => (\n \n )\n\n const getNewsguardIcon = newsguardFilter => (\n
\n \n
\n )\n\n const getDarknetNetworkIcon = network => (\n \n )\n\n const iconConfig = {\n [SearchFields.AI_ENTITIES]: ,\n [SearchFields.IDENTITIES]: ,\n [SearchFields.INFLUENCERS]: ,\n [SearchFields.PUBLICATIONS]: masterConfig.getIn(['icons', 'publications']),\n [SearchFields.MEDIA_REVIEW_CODES]: ,\n [SearchFields.CUSTOM_TAGS]: ,\n [SearchFields.CUSTOM_TAG_GROUPS]: ,\n [SearchFields.LANGUAGES]: ,\n [SearchFields.COUNTRIES]: getCountryIcon,\n [SearchFields.STATES]: ,\n [SearchFields.TONALITIES]: getTonalityIcon,\n [SearchFields.SENTIMENTS]: getTonalityIcon,\n [SearchFields.CHANNELS]: getChannelIcon,\n [SearchFields.HASHTAGS]: ,\n [SearchFields.MENTIONS]: ,\n [SearchFields.EMOJIS]: null,\n [SearchFields.ENTITIES]: ,\n [SearchFields.ENTITIES_PERSON]: ,\n [SearchFields.ENTITIES_ORGANIZATION]: ,\n [SearchFields.ENTITIES_TOPIC]: ,\n [SearchFields.ENTITIES_PRODUCT]: ,\n [SearchFields.ENTITIES_LOCATION]: ,\n [SearchFields.MEDIA_TYPES]: ,\n [SearchFields.MEDIA_TOPICS]: ,\n [SearchFields.NEWS_QUERIES]: ,\n [SearchFields.PUBLICATION_QUERIES]: ,\n [SearchFields.AUTHOR_QUERIES]: ,\n [SearchFields.GEO_BOUNDING_BOX]: ,\n [SearchFields.PAGE_IDENTITIES]: getChannelIcon,\n [SearchFields.IDENTITY_SETS]: ,\n [SearchFields.BOOLEANS]: ,\n [SearchFields.STATEMENT_CODES]: ,\n [SearchFields.NEWS_STATEMENT_TONALITIES]: getStatementTonalityIcon,\n [SearchFields.GROUPED_STATEMENT_CODES]: ,\n [SearchFields.NEWSGUARD_RANKS]: getNewsguardIcon,\n [SearchFields.NEWSGUARD_ORIENTATIONS]: ,\n [SearchFields.DOMAINS]: ,\n [SearchFields.OUTLINKS]: ,\n [SearchFields.OUTLINK_DOMAINS]: ,\n [SearchFields.OUTLINK_URLS]: ,\n [SearchFields.MEDIA_REVIEW_TYPES]: getMediaReviewTypeIcon,\n [SearchFields.SIMILARITY_CCD_CONTENTS]: ,\n [SearchFields.SIMILARITY_CCD_CAMPAIGNS]: ,\n [SearchFields.INTERFACES]: ,\n [SearchFields.SUPPLIERS]: ,\n [DarknetSearchFields.NETWORKS]: getDarknetNetworkIcon,\n [ContentDeskSearchFields.CONTENT_PLAIN_TEXT]: ,\n [ContentDeskSearchFields.CONTENT_TITLE]: ,\n [ContentDeskSearchFields.CAMPAIGN_NAME]: ,\n [ContactManagementSearchFields.CONTACT_NAME]: ,\n [ContactManagementSearchFields.CONTACT_TAG]: ,\n [ContactManagementSearchFields.DISTRIBUTION_LIST_NAME]: ,\n [ContactManagementSearchFields.DISTRIBUTION_LIST_CONTACTS]: ,\n [ThemaxSearchFields.REACH_MAX]: ,\n [ThemaxSearchFields.REACH_MIN]: ,\n [ThemaxSearchFields.PAGE_AVE_MAX]: ,\n [ThemaxSearchFields.PAGE_AVE_MIN]: ,\n default: \n }\n\n useEffect(() => {\n if (compEl && compEl.current && !device.get('mobile') && !filter.get('updated')) {\n const { top, left } = compEl.current.getBoundingClientRect()\n\n setStyle({\n position: 'absolute',\n transform: `translate(${global.mouseX - left}px, ${global.mouseY - top}px)`,\n zIndex: 5000\n })\n\n setTimeout(() => {\n setStyle({\n transform: 'translate(0, 0)',\n zIndex: 5000\n })\n }, 100)\n\n setTimeout(() => {\n setStyle({})\n setContainerStyle({})\n }, 1050)\n }\n }, [])\n\n if (hidden) {\n return null\n }\n\n const saveQuery = () => {\n const newValue = (queryValue || '').trim()\n\n if (newValue && filter.get('value') !== newValue) {\n onUpdate({\n filter: filter.merge({\n value: newValue,\n label: newValue\n }),\n index\n })\n }\n\n setEditing(false)\n }\n\n const onQueryChange = event => {\n setQueryValue(event.target.value)\n }\n\n const isChannelFilter = [SearchFields.CHANNELS, SearchFields.PAGE_IDENTITIES].indexOf(filter.get('field')) !== -1\n const isInvertable = notInvertableFilters.indexOf(filter.get('field')) === -1 && filter.get('id') !== -1\n const isEditable = editableFilters.indexOf(filter.get('field')) !== -1\n\n let icon = iconConfig[filter.get('field')]\n\n if (isAiEntity(filter.get('field'))) {\n icon = iconConfig[SearchFields.AI_ENTITIES]\n }\n\n if (icon === undefined) {\n icon = iconConfig.default\n } else if (typeof icon === 'function') {\n icon = icon(filter)\n }\n\n let avatar = \n\n if (showEditMode || editing) {\n avatar = (\n (editing ? saveQuery() : setEditing(true))}\n >\n {editing ? : }\n \n )\n icon = null\n } else if (isChannelFilter || !filter.get('photo') || filter.get('field') === SearchFields.NEWSGUARD_RANKS) {\n avatar = null\n } else {\n icon = null\n }\n\n let invertIcon\n\n if (isInvertable) {\n let IconComp = AddIcon\n\n if (filter.get('inverted')) {\n IconComp = RemoveIcon\n }\n\n invertIcon = (\n onInvert({ field: filter.get('field'), index })}\n />\n )\n }\n\n let onDelete = () => onRemove({ field: filter.get('field'), index })\n let className = classes.container\n let title = i18n.get(decamelize(filter.get('title') || filter.get('field')))\n\n if (filter.get('locked')) {\n onDelete = undefined\n className = `${classes.container} ${classes.unavailable}`\n title = i18n.get('restricted_filter')\n }\n\n if (isAiEntity(filter.get('field'))) {\n title = getAiEntityName(filter.get('field'))\n }\n\n let onMouseMove\n let onMouseLeave\n let onKeyUp\n\n if (isEditable) {\n onMouseMove = () => setShowEditMode(true)\n onMouseLeave = () => setShowEditMode(false)\n onKeyUp = event => {\n if (event.key === 'Escape') {\n setEditing(false)\n setQueryValue(filter.get('value'))\n } else if (event.key === 'Enter') {\n saveQuery()\n }\n }\n }\n\n const labelText = filter.get('label') || i18n.get(decamelize(filter.get('name'))) || ''\n\n let label = (\n <>\n {invertIcon}\n\n {filter.get('prefix') && (\n setEditing(true) : undefined}\n className={cx(classes.prefix, isEditable && classes.editableLabel)}\n >\n {filter.get('prefix')}: \n
\n )}\n\n setEditing(true) : undefined}\n className={cx(classes.labelText, isEditable && classes.editableLabel)}\n title={labelText}\n >\n {labelText}\n \n \n )\n\n if (editing) {\n let inputWidth = pixelWidth(queryValue, { size: 13 })\n inputWidth += 20\n\n if (inputWidth < 200) {\n inputWidth = 200\n }\n\n if (inputWidth > 500) {\n inputWidth = 500\n }\n\n label = (\n \n )\n }\n\n return (\n \n \n \n \n \n )\n}\n\nActiveFilter.defaultProps = {\n hidden: false\n}\n\nActiveFilter.propTypes = {\n hidden: PropTypes.bool,\n filter: PropTypes.object.isRequired,\n index: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string\n ]),\n i18n: PropTypes.object.isRequired,\n device: PropTypes.object.isRequired,\n\n onRemove: PropTypes.func.isRequired,\n onInvert: PropTypes.func,\n onUpdate: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ActiveFilter from 'components/active_filter'\nimport { uiRemoveFilter, uiInvertFilter, uiUpdateFilter } from 'actions/ui'\nimport { getI18n, getDevice } from 'selectors'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n device: getDevice(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onRemove: uiRemoveFilter,\n onInvert: uiInvertFilter,\n onUpdate: uiUpdateFilter\n }\n)(ActiveFilter)\n","import { connect } from 'react-redux'\n\nimport ActiveFilter from 'components/active_filter'\nimport { uiRemoveFilter, uiInvertFilter, uiUpdateFilter } from 'actions/darknet'\nimport { getI18n, getDevice } from 'selectors'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n device: getDevice(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onRemove: uiRemoveFilter,\n onInvert: uiInvertFilter,\n onUpdate: uiUpdateFilter\n }\n)(ActiveFilter)\n","import { connect } from 'react-redux'\n\nimport ActiveFilter from 'components/active_filter'\nimport { uiRemoveFilter, uiInvertFilter, uiUpdateFilter } from 'actions/content_desk'\nimport { getI18n, getDevice } from 'selectors'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n device: getDevice(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onRemove: uiRemoveFilter,\n onInvert: uiInvertFilter,\n onUpdate: uiUpdateFilter\n }\n)(ActiveFilter)\n","import { connect } from 'react-redux'\n\nimport ActiveFilter from 'components/active_filter'\nimport { uiRemoveFilter, uiUpdateFilter } from 'actions/contact_management'\nimport { getI18n, getDevice } from 'selectors'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n device: getDevice(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onRemove: uiRemoveFilter,\n onUpdate: uiUpdateFilter\n }\n)(ActiveFilter)\n","import { connect } from 'react-redux'\n\nimport ActiveFilter from 'components/active_filter'\nimport { uiRemoveFilter, uiInvertFilter, uiUpdateFilter } from 'actions/themax'\nimport { getI18n, getDevice } from 'selectors'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n device: getDevice(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onRemove: uiRemoveFilter,\n onInvert: uiInvertFilter,\n onUpdate: uiUpdateFilter\n }\n)(ActiveFilter)\n","import React, { Fragment, memo, useEffect, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { fromJS, Map } from 'immutable'\nimport decamelize from 'decamelize'\n\nimport KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'\nimport KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { SearchFields } from 'static/constants'\nimport { formatNumber } from 'utils/number'\n\nimport ActiveFilter from 'containers/ActiveFilter'\nimport DarknetActiveFilter from 'containers/darknet/ActiveFilter'\nimport ContentDeskActiveFilter from 'containers/content_desk_new/ActiveFilter'\nimport ContactManagementActiveFilter from 'containers/contact_management/ActiveFilter'\nimport ThemaxActiveFilter from 'containers/themax/ActiveFilter'\n\nimport { Button } from 'containers/themed'\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()(theme => ({\n activeFilterList: {\n [theme.breakpoints.only('xs')]: {\n padding: '0 10px'\n }\n },\n collapsed: {\n maxHeight: 50,\n overflow: 'hidden'\n },\n collapseIconContainer: {\n width: '100%',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n }\n}))\n\nconst maxFiltersToDisplay = 10\n\nconst ActiveFilterList = ({\n collapsed,\n onCollapseClick,\n filterCount,\n activeFilters,\n activeBooleanFilters,\n activeGeoFilter,\n activeFilterType,\n activeNumberFilters\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const [autoCollapsed, setAutoCollapsed] = useState(false)\n const isCollapsible = filterCount >= maxFiltersToDisplay\n\n const renderActiveFilter = props => {\n if (activeFilterType === 'darknet') {\n return \n }\n\n if (activeFilterType === 'contentDesk') {\n return \n }\n\n if (activeFilterType === 'contactManagement') {\n return \n }\n\n if (activeFilterType === 'themax') {\n return \n }\n\n return \n }\n\n useEffect(() => {\n if (!autoCollapsed && isCollapsible && !collapsed) {\n onCollapseClick()\n setAutoCollapsed(true)\n }\n }, [isCollapsible, autoCollapsed])\n\n return (\n
\n
\n {activeFilters\n .keySeq()\n .map(field => activeFilters.get(field).map((filter, index) => (\n renderActiveFilter({ key: `${filter.get('field')} ${filter.get('id')} ${filter.get('value')}`, filter, index })\n ))).toList().flatten(true)}\n\n {activeBooleanFilters.keySeq().map(key => {\n const value = activeBooleanFilters.get(key)\n\n return (\n \n {value ? (\n renderActiveFilter({\n key: `${SearchFields.BOOLEANS} ${key} ${value}`,\n filter: fromJS({\n id: key,\n name: key,\n title: key,\n value,\n field: SearchFields.BOOLEANS\n }),\n index: key\n })\n\n ) : null}\n \n )\n }).toList().flatten(true)}\n\n {activeGeoFilter && (\n renderActiveFilter({\n key: SearchFields.GEO_BOUNDING_BOX,\n filter: fromJS({\n label: i18n.get('location'),\n title: [\n activeGeoFilter.getIn(['topLeft', 'lat']),\n activeGeoFilter.getIn(['topLeft', 'lon']),\n activeGeoFilter.getIn(['bottomRight', 'lat']),\n activeGeoFilter.getIn(['bottomRight', 'lon'])\n ].join(','),\n field: SearchFields.GEO_BOUNDING_BOX\n })\n })\n )}\n\n {activeNumberFilters.keySeq().map(key => {\n const value = activeNumberFilters.get(key)\n\n return (\n value !== 0\n && renderActiveFilter({\n key: `${key}-${value}`,\n filter: fromJS({\n id: key,\n name: key,\n title: key,\n label: `${i18n.get(decamelize(key))}: ${formatNumber(value)}`,\n value,\n field: key\n }),\n index: key\n })\n )\n })}\n
\n\n {isCollapsible && (\n
\n {!collapsed ? null : i18n.get('filter_count_selected', { count: filterCount })}\n\n \n
\n )}\n
\n )\n}\n\nActiveFilterList.propTypes = {\n activeFilterType: PropTypes.string,\n activeFilters: PropTypes.object.isRequired,\n activeNumberFilters: PropTypes.object,\n activeBooleanFilters: PropTypes.object.isRequired,\n activeGeoFilter: PropTypes.instanceOf(Map),\n collapsed: PropTypes.bool.isRequired,\n filterCount: PropTypes.number.isRequired,\n\n onCollapseClick: PropTypes.func.isRequired\n}\n\nActiveFilterList.defaultProps = {\n activeFilterType: 'news',\n activeNumberFilters: Map()\n}\n\nexport default memo(ActiveFilterList)\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport moment from 'moment-timezone'\nimport copyToClipboard from 'copy-to-clipboard'\nimport fetch from 'cross-fetch'\n\nimport ContentCopyIcon from '@mui/icons-material/ContentCopy'\nimport DeleteIcon from '@mui/icons-material/Delete'\nimport SaveIcon from '@mui/icons-material/Save'\nimport { makeStyles } from 'tss-react/mui'\nimport { isFeedChart, isRectangleChart } from 'utils/chart'\n\nimport { IconButton, Button, DatePicker } from 'containers/themed'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Typography, Card, CardContent, CardActions } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n code: {\n width: '100%',\n backgroundColor: theme.nrx.paper.backgroundPaperColor,\n display: 'flex',\n alignItems: 'center',\n\n '& > pre': {\n fontSize: '90%',\n padding: 10,\n width: '100%',\n margin: 0,\n overflowY: 'auto',\n overflowX: 'hidden',\n color: 'inherit',\n backgroundColor: 'transparent'\n }\n },\n actions: {\n justifyContent: 'flex-end'\n }\n}))\n\nconst buildDynamicImageLink = (savedChart, baseUrl, timezone) => {\n const params = new URLSearchParams()\n params.set('width', 750)\n params.set('height', 300)\n params.set('timezone', timezone)\n\n if (isFeedChart(savedChart.get('chart'))) {\n params.set('width', 500)\n params.set('height', 1000)\n }\n\n if (isRectangleChart(savedChart.get('chart'))) {\n params.set('width', 300)\n params.set('height', 300)\n }\n\n return `${baseUrl}/bff/saved_charts/${savedChart.get('id')}/image.png?${params}`\n}\n\nconst buildDynamicImageCode = (savedChart, baseUrl, timezone) => ``\n\nexport default function SavedChartForm({\n savedChart: savedChartFromProps,\n baseUrl,\n saving,\n savable,\n timezone,\n labels,\n onDelete,\n onSave\n}) {\n const { classes } = useStyles()\n const [codeToCopy, setCodeToCopy] = useState('')\n const [savedChart, setSavedChart] = useState(savedChartFromProps)\n const i18n = useI18n()\n const chart = savedChart.get('chart')\n const interactiveChartLink = `${baseUrl}/#/charts/${savedChart.get('id')}/embed`\n const interactiveChartCode = (\n ``\n )\n\n const dynamicImageCode = buildDynamicImageCode(savedChart, baseUrl, timezone)\n const dynamicImageLink = buildDynamicImageLink(savedChart, baseUrl, timezone)\n\n useEffect(() => {\n if (savedChartFromProps.getIn(['chart', 'loading']) !== chart.get('loading')) {\n setSavedChart(savedChart.setIn(['chart', 'loading'], savedChartFromProps.getIn(['chart', 'loading'])))\n }\n }, [savedChartFromProps.getIn(['chart', 'loading']), chart.get('loading')])\n\n useEffect(() => {\n fetch(dynamicImageLink.replace('image.png', 'update_cache'))\n }, [dynamicImageLink])\n\n const handleCopyClick = code => {\n copyToClipboard(code)\n setCodeToCopy(code)\n\n setTimeout(() => {\n setCodeToCopy('')\n }, 500)\n }\n\n const handleExpiresAtChange = value => {\n setSavedChart(savedChart.set('expiresAt', moment(value).format()))\n }\n\n return (\n \n \n {i18n.get('paste_to_html_page', { type: `1. ${i18n.get('interactive_chart')} - ` })}\n\n
\n
\n            {interactiveChartCode}\n          
\n\n }\n onClick={() => handleCopyClick(interactiveChartCode)}\n saving={codeToCopy === interactiveChartCode}\n />\n
\n\n
\n\n 2. {i18n.get('interactive_chart')} Link\n\n
\n
\n            {interactiveChartLink}\n          
\n\n }\n onClick={() => handleCopyClick(interactiveChartLink)}\n saving={codeToCopy === interactiveChartLink}\n />\n
\n\n
\n\n {i18n.get('paste_to_html_page', { type: `3. ${i18n.get('image')} - ` })}\n\n
\n
\n            {dynamicImageCode}\n          
\n\n }\n onClick={() => handleCopyClick(dynamicImageCode)}\n saving={codeToCopy === dynamicImageCode}\n />\n
\n\n
\n\n 4. {i18n.get('image')} Link\n\n
\n
\n            {dynamicImageLink}\n          
\n\n }\n onClick={() => handleCopyClick(dynamicImageLink)}\n saving={codeToCopy === dynamicImageLink}\n />\n
\n\n
\n\n \n
\n\n \n }\n color=\"secondary\"\n onClick={() => onDelete(savedChart)}\n >\n {labels.delete || i18n.get('delete')}\n \n }\n variant=\"contained\"\n color=\"primary\"\n onClick={() => onSave(savedChart)}\n saving={saving}\n >\n {labels.save || i18n.get('save')}\n \n \n
\n )\n}\n\nSavedChartForm.defaultProps = {\n labels: {},\n savable: true\n}\n\nSavedChartForm.propTypes = {\n savedChart: PropTypes.instanceOf(Map).isRequired,\n baseUrl: PropTypes.string.isRequired,\n timezone: PropTypes.string.isRequired,\n saving: PropTypes.bool.isRequired,\n savable: PropTypes.bool,\n labels: PropTypes.object,\n\n onDelete: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired\n}\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport CheckCircleIcon from '@mui/icons-material/CheckCircle'\nimport CheckCircleOutlineIcon from '@mui/icons-material/CheckCircleOutline'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Card as MuiCard, Checkbox } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n cardContainer: {\n position: 'relative'\n },\n icon: {\n position: 'absolute',\n zIndex: 100,\n top: -15,\n left: -15,\n transition: 'left 500ms',\n display: 'flex',\n alignItems: 'center',\n width: '100%',\n [theme.breakpoints.only('xs')]: {\n left: 0,\n justifyContent: 'center'\n }\n },\n selectedIcon: {\n left: 1,\n [theme.breakpoints.only('xs')]: {\n justifyContent: 'center'\n }\n },\n iconCenter: {\n left: 0,\n justifyContent: 'center'\n },\n checkboxContainer: {\n position: 'absolute',\n zIndex: 100,\n top: -14,\n left: -14,\n backgroundColor: 'inherit',\n width: 30,\n height: 30,\n borderRadius: '50%',\n [theme.breakpoints.only('xs')]: {\n left: '45%'\n },\n '&:hover': {\n backgroundColor: 'inherit'\n }\n },\n checkboxIcon: {\n fontSize: 38\n },\n selectOverlay: {\n transition: 'all 500ms',\n border: '5px solid transparent',\n borderRadius: 10,\n position: 'absolute',\n zIndex: -1,\n top: -1,\n left: -2,\n height: '102%',\n width: '101.5%'\n },\n overlayActive: {\n zIndex: 50,\n cursor: 'pointer'\n },\n selected: {\n borderColor: theme.palette.grey[500]\n },\n iconRight: {\n [theme.breakpoints.up('sm')]: {\n right: -15,\n left: 'auto',\n justifyContent: 'flex-end'\n }\n },\n checkboxContainerRight: {\n [theme.breakpoints.up('sm')]: {\n right: -14,\n left: 'auto'\n }\n }\n}))\n\nexport default function Card({\n checkboxPosition,\n children,\n className,\n icon,\n iconPosition,\n onClick,\n onSelect,\n raiseOnHover,\n selected,\n selectedBorder,\n selectOverlayClassName,\n showSelect,\n style\n}) {\n const { classes, cx } = useStyles()\n const [hovered, setHovered] = useState(false)\n\n let onMouseEnter\n let onMouseLeave\n\n if (raiseOnHover) {\n onMouseEnter = () => setHovered(true)\n onMouseLeave = () => setHovered(false)\n }\n\n const isSelectVisible = onSelect && (showSelect || hovered || selected)\n\n const handleClick = e => {\n if (showSelect) {\n e.preventDefault()\n e.stopPropagation()\n e.nativeEvent.stopImmediatePropagation()\n onSelect()\n }\n }\n\n const renderIcon = () => {\n if (!icon) {\n return null\n }\n\n let iconClass = classes.icon\n\n if (isSelectVisible) {\n iconClass = `${iconClass} ${classes.selectedIcon}`\n } else if (iconPosition === 'center') {\n iconClass = `${iconClass} ${classes.iconCenter}`\n }\n\n if (iconPosition === 'right') {\n iconClass = `${iconClass} ${classes.iconRight}`\n }\n\n return (\n
\n {icon}\n
\n )\n }\n\n const renderSelectOverlay = () => {\n const overlayClassName = cx(\n classes.selectOverlay,\n selected && selectedBorder && classes.selected,\n showSelect && classes.overlayActive,\n selectOverlayClassName\n )\n\n return (\n \n )\n }\n\n const renderSelect = () => {\n if (!isSelectVisible) {\n return null\n }\n\n let selectClassName = classes.checkboxContainer\n\n if (checkboxPosition === 'right') {\n selectClassName = `${selectClassName} ${classes.checkboxContainerRight}`\n }\n\n return (\n }\n icon={}\n checked={selected}\n onChange={() => onSelect()}\n />\n )\n }\n\n return (\n
\n \n {renderIcon()}\n {renderSelect()}\n {renderSelectOverlay()}\n\n {children}\n \n
\n )\n}\n\nCard.defaultProps = {\n selectedBorder: true,\n checkboxPosition: 'left',\n iconPosition: 'left',\n raiseOnHover: true\n}\n\nCard.propTypes = {\n icon: PropTypes.any,\n children: PropTypes.any,\n style: PropTypes.object,\n showSelect: PropTypes.bool,\n selected: PropTypes.bool,\n raiseOnHover: PropTypes.bool,\n onSelect: PropTypes.func,\n className: PropTypes.string,\n selectOverlayClassName: PropTypes.string,\n selectedBorder: PropTypes.bool,\n checkboxPosition: PropTypes.string,\n iconPosition: PropTypes.string,\n onClick: PropTypes.func\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport { keyframes } from 'tss-react'\n\nimport { Typography, Icon } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n position: 'absolute',\n height: '100%',\n width: '100%',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n },\n content: {\n zIndex: 1\n },\n info: {\n display: 'flex',\n alignItems: 'center',\n [theme.breakpoints.only('xs')]: {\n flexDirection: 'column'\n }\n },\n icon: {\n fontSize: '100px !important',\n [theme.breakpoints.only('xs')]: {\n fontSize: '200px !important'\n }\n },\n background: {\n position: 'absolute',\n height: '100%',\n width: '100%',\n display: 'none'\n },\n flash: {\n display: 'block',\n animation: `${keyframes`\n 0% {\n opacity: 0.75;\n }\n 50% {\n opacity: 1;\n }\n 100% {\n opacity: 0.75;\n }\n `} 5s linear infinite;`\n },\n actions: {\n width: '100%',\n marginTop: 20,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n },\n header: {\n [theme.breakpoints.only('xs')]: {\n textAlign: 'center',\n fontSize: 30\n }\n },\n body: {\n [theme.breakpoints.only('xs')]: {\n textAlign: 'center',\n fontSize: 20\n }\n }\n}))\n\nexport default function CenterMessage({\n title,\n message,\n colors,\n icon,\n flash,\n actions,\n backgroundClass,\n contentClass\n}) {\n const { classes, cx } = useStyles()\n const textStyle = {\n color: colors.get('accent')\n }\n\n let backgroundClassName = classes.background\n const backgroundStyle = {}\n\n if (flash) {\n backgroundClassName = `${backgroundClassName} ${classes.flash}`\n backgroundStyle.backgroundColor = colors.get('primary')\n }\n\n return (\n
\n \n\n
\n
\n \n {icon || 'error'}\n \n\n
\n \n {title}\n \n \n {message}\n \n
\n
\n\n
\n {actions}\n
\n
\n
\n )\n}\n\nCenterMessage.defaultProps = {\n backgroundClass: '',\n flash: false,\n actions: []\n}\n\nCenterMessage.propTypes = {\n backgroundClass: PropTypes.string,\n contentClass: PropTypes.string,\n title: PropTypes.string,\n message: PropTypes.string,\n icon: PropTypes.string,\n flash: PropTypes.bool,\n actions: PropTypes.array,\n colors: PropTypes.object.isRequired\n}\n","import React, { forwardRef } from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nimport masterConfig from 'static/master_config'\n\nimport { getChannelColor } from 'utils/channel'\n\nconst useStyles = makeStyles()({\n icon: {\n fontSize: '12pt',\n color: '#ffffff'\n }\n})\n\nconst channelIcons = masterConfig.getIn(['icons', 'channels'])\n\nconst ChannelIcon = ({ className, id, circle, color }) => {\n const { classes, cx } = useStyles()\n const newClasses = cx(classes.stack, className)\n let channelIconClass = cx(channelIcons.get(id.toString()), 'fa-stack-1x', classes.icon)\n\n const style = {}\n\n if (color) {\n style.color = getChannelColor(id)\n }\n\n if (!circle) {\n channelIconClass = cx(channelIcons.get(id.toString()), classes.icon, className)\n\n return (\n \n )\n }\n\n return (\n \n \n \n \n )\n}\n\nconst ChannelIconWrapper = (props, ref) => (\n \n)\n\nexport default forwardRef(ChannelIconWrapper)\n\nChannelIcon.defaultProps = {\n circle: true,\n color: true\n}\n\nChannelIcon.propTypes = {\n className: PropTypes.string,\n id: PropTypes.number,\n circle: PropTypes.bool,\n color: PropTypes.bool\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { SketchPicker } from 'react-color'\nimport tinycolor from 'tinycolor2'\nimport { makeStyles } from 'tss-react/mui'\nimport useI18n from 'hooks/useI18n'\n\nimport { Menu } from 'containers/themed'\nimport { Chip } from '@mui/material'\n\nconst useStyles = makeStyles()({\n chip: {\n backgroundColor: '#ffffff'\n },\n deleteIcon: {\n color: '#ffffff'\n },\n deleteIconLight: {\n color: '#616161 !important'\n },\n menu: {\n padding: 0\n }\n})\n\nexport default function ColorPicker({ onChange, onReset, value, defaultValue, useRgb, handle }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleColorChange = ({ hex, rgb: { r, g, b, a } }) => {\n if (useRgb && a < 1) {\n onChange(`rgba(${r}, ${g}, ${b}, ${a})`)\n } else {\n onChange(hex)\n }\n }\n\n let handleColorReset\n\n if (onReset) {\n handleColorReset = () => {\n onReset()\n }\n }\n\n const realValue = value || defaultValue\n const isLight = tinycolor(realValue).getBrightness() > 152\n\n return (\n \n )}\n >\n
\n \n
\n \n )\n}\n\nColorPicker.defaultProps = {\n useRgb: true\n}\n\nColorPicker.propTypes = {\n value: PropTypes.string,\n defaultValue: PropTypes.string.isRequired,\n useRgb: PropTypes.bool,\n handle: PropTypes.any,\n\n onChange: PropTypes.func.isRequired,\n onReset: PropTypes.func\n}\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { List as ImmutableList } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Autocomplete,\n Dialog,\n DialogTitle,\n DialogContent,\n DialogActions,\n Typography,\n TextField,\n Table,\n TableRow,\n TableCell,\n TableContainer,\n TableBody,\n Divider,\n Box,\n LinearProgress\n} from '@mui/material'\n\nimport CloseIcon from '@mui/icons-material/Close'\nimport RemoveIcon from '@mui/icons-material/Remove'\n\nimport {\n RaisedPrimaryButton,\n Button,\n IconButton\n} from 'containers/themed'\n\nimport { mapToOptions } from 'utils/autocomplete'\n\nconst useStyles = makeStyles()(() => ({\n autocomplete: {\n marginTop: '1em'\n },\n newList: {\n marginTop: '1em'\n }\n}))\n\nexport default function DistributionListCreateDialog({\n contacts,\n open,\n lists,\n title,\n loading,\n searchRequestRunning,\n onClose,\n onSelectOption,\n onSubmit,\n onFormUpdate,\n onRemove,\n searchDistributionListStart\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const [createListDisabled, setCreateListDisabled] = useState(false)\n const [selected, setSelected] = useState(null)\n const [newName, setNewName] = useState(null)\n const [timerID, setTimerID] = useState(null)\n\n useEffect(() => {\n searchDistributionListStart({ filter: [] })\n }, [open])\n\n const options = lists ? mapToOptions(lists) : []\n\n const handleAutocompleteChange = (_event, option) => {\n setSelected(option)\n\n if (option) {\n setCreateListDisabled(true)\n onSelectOption(option.value)\n } else {\n setCreateListDisabled(false)\n onSelectOption(null)\n }\n }\n\n const handleFormDataUpdate = e => {\n const { value, name } = e.target\n\n if (name === 'name') {\n setNewName(value)\n setSelected(null)\n }\n\n onFormUpdate({ key: name, value })\n }\n\n const handleSave = () => {\n setSelected(null)\n setCreateListDisabled(false)\n onSubmit()\n }\n\n const handleClose = () => {\n setCreateListDisabled(false)\n setSelected(null)\n onClose()\n }\n\n const handleSuggestList = (_event, v) => {\n if (v.length >= 2) {\n clearTimeout(timerID)\n const id = setTimeout(() => searchDistributionListStart({ filter: [{ field: 'name', value: v }] }), 300)\n setTimerID(id)\n }\n\n if (v === '' && v.length < 2) {\n searchDistributionListStart({ filter: [] })\n }\n }\n\n const renderContact = contact => (\n \n \n {contacts.size > 1 && (\n onRemove(contact)}\n >\n \n \n )}\n \n {contact.get('firstName')}\n {contact.get('lastName')}\n {contact.get('mail')}\n {contact.getIn(['country', 'name'])}\n {contact.get('externalPublication')}\n \n )\n\n return (\n \n t.spacing(2),\n color: t => t.palette.grey[800]\n }}\n >\n {contacts.size ? i18n.get('add_edit_list') : i18n.get('create_distribution_list')}\n !t.isDark && t.palette.grey[800]\n }}\n >\n \n \n \n\n t.spacing(3) }}\n >\n {contacts.size\n ? (\n <>\n t.palette.grey[200] }}>\n \n \n {contacts.map(renderContact)}\n \n
\n
\n\n \n\n \n {i18n.get('add_to_existing_distribution_list')}\n \n\n \n {searchRequestRunning && (\n \n )}\n\n option.label}\n onChange={handleAutocompleteChange}\n options={options}\n value={selected}\n isOptionEqualToValue={(option, value) => option.value === value.value}\n onInputChange={handleSuggestList}\n renderInput={params => (\n \n )}\n />\n \n\n \n\n {i18n.get('create_a_new_list')}\n \n ) : null}\n\n \n {!contacts.size && (\n \n )}\n \n t.spacing(2) }}>\n \n {i18n.get('cancel')}\n \n \n {i18n.get('save')}\n \n \n \n )\n}\n\nDistributionListCreateDialog.propTypes = {\n contacts: PropTypes.instanceOf(ImmutableList).isRequired,\n lists: PropTypes.instanceOf(ImmutableList).isRequired,\n title: PropTypes.string.isRequired,\n\n open: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n searchRequestRunning: PropTypes.bool.isRequired,\n\n onClose: PropTypes.func.isRequired,\n onSelectOption: PropTypes.func.isRequired,\n onSubmit: PropTypes.func.isRequired,\n onFormUpdate: PropTypes.func.isRequired,\n onRemove: PropTypes.func.isRequired,\n searchDistributionListStart: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n padding: '0 40px 40px',\n minHeight: '94%',\n width: '100%',\n position: 'absolute',\n [theme.breakpoints.only('xs')]: {\n paddingLeft: 0,\n paddingRight: 0\n }\n },\n noHeader: {\n paddingTop: 40,\n [theme.breakpoints.only('xs')]: {\n paddingTop: 10\n }\n },\n header: {\n paddingBottom: 40,\n [theme.breakpoints.only('xs')]: {\n paddingBottom: 20\n }\n }\n}))\n\nexport default function ContentContainer({ children, header, className, style }) {\n const { classes, cx } = useStyles()\n let containerClass = cx(classes.container, className)\n\n if (!header) {\n containerClass = cx(classes.container, classes.noHeader, className)\n }\n\n const renderHeader = () => {\n if (!header) {\n return null\n }\n\n return (\n
\n {header}\n
\n )\n }\n\n return (\n \n {renderHeader()}\n {children}\n \n )\n}\n\nContentContainer.propTypes = {\n children: PropTypes.any,\n header: PropTypes.any,\n className: PropTypes.string,\n style: PropTypes.object\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport LoyaltyIcon from '@mui/icons-material/Loyalty'\nimport { makeStyles } from 'tss-react/mui'\n\nimport Tag from 'containers/custom_tags/CustomTag'\nimport { Button, IconButton } from 'containers/themed'\n\nimport useDevice from 'hooks/useDevice'\n\nconst useStyles = makeStyles()({\n customTag: {\n display: 'flex',\n alignItems: 'center',\n '& > button': {\n width: 100\n },\n '&:hover': {\n backgroundColor: 'rgba(245, 245, 245, 0.7)'\n }\n },\n customTagImage: {\n width: 40,\n height: 20,\n marginLeft: 10,\n marginRight: 10\n },\n spacer: {\n flex: 1\n }\n})\n\nexport default function CustomTag({\n assignedLabel,\n assignLabel,\n customTag,\n isAssigned,\n isSaving,\n onAddClick,\n onRemoveClick\n}) {\n const { classes } = useStyles()\n const device = useDevice()\n\n let buttonLabel = assignLabel\n let onClick = () => onAddClick(customTag)\n let color = 'default'\n\n if (isAssigned) {\n onClick = () => onRemoveClick(customTag)\n buttonLabel = assignedLabel\n color = 'secondary'\n }\n\n let name = customTag.get('name').slice(0, 45)\n\n if (name.length !== customTag.get('name').length) {\n name = `${name}...`\n }\n\n return (\n \n
\n \n
\n\n {name}\n\n \n\n {device.get('xs') ? (\n
\n \n \n \n
\n ) : (\n \n {buttonLabel}\n \n )}\n \n )\n}\n\nCustomTag.defaultProps = {\n assignedLabel: 'unassign',\n assignLabel: 'assign'\n}\n\nCustomTag.propTypes = {\n customTag: PropTypes.instanceOf(Map).isRequired,\n assignedLabel: PropTypes.string,\n assignLabel: PropTypes.string,\n isAssigned: PropTypes.bool.isRequired,\n isSaving: PropTypes.bool,\n\n onAddClick: PropTypes.func.isRequired,\n onRemoveClick: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport { PropTypes } from 'prop-types'\nimport MoreHorizIcon from '@mui/icons-material/MoreHoriz'\n\nconst BASE_URL = 'https://static.pressrelations.de/pics/groot/plotlights/network_icons/'\n\nexport default function NetworkIcon({ network, className }) {\n let icon = network.toLowerCase()\n\n if (icon.includes('onion')) {\n icon = 'onion'\n }\n\n if (icon === 'unclassified') {\n return \n }\n\n return (\n \n )\n}\n\nNetworkIcon.propTypes = {\n network: PropTypes.string.isRequired,\n className: PropTypes.any.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport { Dialog, Button } from 'containers/themed'\n\nimport { DialogContent, DialogContentText } from '@mui/material'\n\nexport default function ConfirmDialog({\n active,\n deleting,\n i18n,\n title,\n payload,\n text,\n actionText,\n autoHide,\n onSubmit,\n onHide\n}) {\n const handleOk = () => {\n onSubmit(payload)\n\n if (autoHide) {\n onHide()\n }\n }\n\n const renderActions = () => {\n const actions = [\n onHide()}\n >\n {i18n.get('cancel')}\n ,\n handleOk()}\n >\n {actionText || i18n.get('delete')}\n \n ]\n\n return actions\n }\n\n return (\n \n \n \n {text}\n \n \n \n )\n}\n\nConfirmDialog.propTypes = {\n active: PropTypes.bool.isRequired,\n deleting: PropTypes.bool,\n i18n: PropTypes.object.isRequired,\n title: PropTypes.string,\n payload: PropTypes.any,\n text: PropTypes.string.isRequired,\n actionText: PropTypes.string,\n autoHide: PropTypes.bool,\n\n onSubmit: PropTypes.func.isRequired,\n onHide: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nimport WithColors from 'containers/WithColors'\n\nimport { Icon, CardMedia } from '@mui/material'\n\nconst useStyles = makeStyles()({\n dummyIconContainer: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n width: '100%',\n height: '100%'\n },\n dummyIcon: {\n color: '#ffffff',\n fontSize: '70pt !important'\n },\n dummyIconPreview: {\n color: '#ffffff',\n fontSize: '10pt !important'\n },\n media: {\n height: '100%',\n width: '100%'\n }\n})\n\nconst DummyCardIcon = ({ icon, accentColor, image, preview, className, style, onClick }) => {\n const { classes, cx } = useStyles()\n const newStyle = { backgroundColor: accentColor, ...(style || {}) }\n\n if (!image && icon) {\n return (\n \n
\n \n {icon}\n \n
\n \n )\n }\n\n return (\n \n )\n}\n\nDummyCardIcon.defaultProps = {\n preview: false\n}\n\nDummyCardIcon.propTypes = {\n icon: PropTypes.string,\n image: PropTypes.string,\n accentColor: PropTypes.string.isRequired,\n preview: PropTypes.bool,\n className: PropTypes.string,\n style: PropTypes.object,\n onClick: PropTypes.func\n}\n\nexport default WithColors()(DummyCardIcon)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport moment from 'moment-timezone'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Input } from 'containers/themed'\nimport TransitionComponent from 'components/transition_component'\nimport Card from 'components/card'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { FormControl, FormHelperText } from '@mui/material'\n\nconst useStyles = makeStyles()({\n info: {\n top: 70,\n position: 'absolute',\n zIndex: 300,\n textAlign: 'center',\n backgroundColor: 'rgba(97, 97, 97, 0.9)',\n color: '#ffffff',\n width: '100%'\n },\n container: {\n position: 'relative'\n }\n})\n\nexport default function ExportFilenameInput({\n value,\n variant,\n onChange,\n disabled,\n validate,\n valid,\n condensed\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const [state, setState] = useState({ showInfo: false })\n\n const handleChange = event => {\n if (validate) {\n validate(event.target.value)\n }\n\n onChange(event.target.value)\n }\n\n const onFocus = () => {\n setState({ ...state, showInfo: true })\n }\n\n const onBlur = () => {\n setState({ ...state, showInfo: false })\n }\n\n const errorText = () => {\n if (valid !== undefined && valid) {\n return null\n }\n\n return (\n \n {i18n.get('filename_error_text')}\n \n )\n }\n\n const formatFilename = () => {\n let result = value || ''\n result = result.replace(/%year%/g, moment().format('YYYY'))\n result = result.replace(/%month%/g, moment().format('MM'))\n result = result.replace(/%day%/g, moment().format('DD'))\n result = result.replace(/%jahr%/g, moment().format('YYYY'))\n result = result.replace(/%monat%/g, moment().format('MM'))\n result = result.replace(/%tag%/g, moment().format('DD'))\n\n return result\n }\n\n const renderInfo = () => {\n if (!state.showInfo || condensed) {\n return null\n }\n\n return (\n \n

{i18n.get('preview')}: {formatFilename()}[.pdf/.xlsx]

\n

{i18n.get('allowed_placeholders')}

\n
\n )\n }\n\n return (\n
\n \n {renderInfo()}\n \n \n \n {errorText()}\n \n
\n )\n}\n\nExportFilenameInput.defaultProps = {\n disabled: false,\n condensed: false\n}\n\nExportFilenameInput.propTypes = {\n value: PropTypes.string.isRequired,\n variant: PropTypes.string,\n onChange: PropTypes.func.isRequired,\n disabled: PropTypes.bool,\n validate: PropTypes.func,\n valid: PropTypes.bool,\n condensed: PropTypes.bool\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n display: 'flex',\n flexWrap: 'wrap',\n [theme.breakpoints.up('sm')]: {\n marginLeft: -10,\n marginRight: -10\n }\n }\n}))\n\nexport default function FlexList({ children, className, columns }) {\n const { classes, cx } = useStyles()\n const columnCount = columns || 4\n\n const hiddenElements = []\n for (let i = 0; i < columnCount; i += 1) {\n hiddenElements.push((\n
\n ))\n }\n\n const childrenWithProps = React.Children.map(\n children,\n child => React.cloneElement(child, {\n columns: columnCount\n })\n )\n\n return (\n
\n {childrenWithProps}\n {hiddenElements}\n
\n )\n}\n\nFlexList.propTypes = {\n children: PropTypes.any.isRequired,\n className: PropTypes.string,\n columns: PropTypes.number\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()(theme => ({\n item1: {\n width: 'calc(100% / 1) !important',\n padding: 10\n },\n hidden1: {\n width: 'calc(100% / 1) !important',\n padding: 10,\n height: 0,\n visibility: 'hidden'\n },\n item2: {\n width: 'calc(100% / 2) !important',\n padding: 10,\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n }\n },\n hidden2: {\n width: 'calc(100% / 2) !important',\n padding: 10,\n height: 0,\n visibility: 'hidden',\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n }\n },\n item3: {\n width: 'calc(100% / 3) !important',\n padding: 10,\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n },\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3) !important'\n }\n },\n hidden3: {\n width: 'calc(100% / 3) !important',\n padding: 10,\n height: 0,\n visibility: 'hidden',\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n },\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3) !important'\n }\n },\n item4: {\n width: 'calc(100% / 4) !important',\n padding: 10,\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n },\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3) !important'\n },\n [theme.breakpoints.only('lg')]: {\n width: 'calc(100% / 4) !important'\n }\n },\n hidden4: {\n width: 'calc(100% / 4) !important',\n padding: 10,\n height: 0,\n visibility: 'hidden',\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n },\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3) !important'\n },\n [theme.breakpoints.only('lg')]: {\n width: 'calc(100% / 4) !important'\n }\n },\n item5: {\n width: 'calc(100% / 5) !important',\n padding: 10,\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n },\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3) !important'\n },\n [theme.breakpoints.only('lg')]: {\n width: 'calc(100% / 4) !important'\n }\n },\n hidden5: {\n width: 'calc(100% / 5) !important',\n padding: 10,\n height: 0,\n visibility: 'hidden',\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n },\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3) !important'\n },\n [theme.breakpoints.only('lg')]: {\n width: 'calc(100% / 4) !important'\n }\n },\n item6: {\n width: 'calc(100% / 6) !important',\n padding: 10,\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n },\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3) !important'\n },\n [theme.breakpoints.only('lg')]: {\n width: 'calc(100% / 4) !important'\n }\n },\n hidden6: {\n width: 'calc(100% / 6) !important',\n padding: 10,\n height: 0,\n visibility: 'hidden',\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n },\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3) !important'\n },\n [theme.breakpoints.only('lg')]: {\n width: 'calc(100% / 4) !important'\n }\n },\n item7: {\n width: 'calc(100% / 7) !important',\n padding: 10,\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n },\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3) !important'\n },\n [theme.breakpoints.only('lg')]: {\n width: 'calc(100% / 4) !important'\n }\n },\n hidden7: {\n width: 'calc(100% / 7) !important',\n padding: 10,\n height: 0,\n visibility: 'hidden',\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n },\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3) !important'\n },\n [theme.breakpoints.only('lg')]: {\n width: 'calc(100% / 4) !important'\n }\n },\n item8: {\n width: 'calc(100% / 8) !important',\n padding: 10,\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n },\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3) !important'\n },\n [theme.breakpoints.only('lg')]: {\n width: 'calc(100% / 4) !important'\n }\n },\n hidden8: {\n width: 'calc(100% / 8) !important',\n padding: 10,\n height: 0,\n visibility: 'hidden',\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n },\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3) !important'\n },\n [theme.breakpoints.only('lg')]: {\n width: 'calc(100% / 4) !important'\n }\n },\n item9: {\n width: 'calc(100% / 9) !important',\n padding: 10,\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n },\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3) !important'\n },\n [theme.breakpoints.only('lg')]: {\n width: 'calc(100% / 4) !important'\n }\n },\n hidden9: {\n width: 'calc(100% / 9) !important',\n padding: 10,\n height: 0,\n visibility: 'hidden',\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n },\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3) !important'\n },\n [theme.breakpoints.only('lg')]: {\n width: 'calc(100% / 4) !important'\n }\n },\n item10: {\n width: 'calc(100% / 10) !important',\n padding: 10,\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n },\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3) !important'\n },\n [theme.breakpoints.only('lg')]: {\n width: 'calc(100% / 4) !important'\n }\n },\n hidden10: {\n width: 'calc(100% / 10) !important',\n padding: 10,\n height: 0,\n visibility: 'hidden',\n [theme.breakpoints.only('sm')]: {\n width: 'calc(100% / 2) !important'\n },\n [theme.breakpoints.only('xs')]: {\n padding: '0 0 10px',\n width: '100% !important'\n },\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3) !important'\n },\n [theme.breakpoints.only('lg')]: {\n width: 'calc(100% / 4) !important'\n }\n }\n}))\n\nexport default function FlexListItem(props) {\n const { classes, cx } = useStyles()\n const { children, className, columns } = props\n\n const itemClass = classes[`item${columns}`]\n\n const newProps = { ...props }\n delete newProps.children\n delete newProps.className\n delete newProps.columns\n\n return (\n \n {children}\n
\n )\n}\n\nFlexListItem.defaultProps = {\n columns: 4\n}\n\nFlexListItem.propTypes = {\n children: PropTypes.any.isRequired,\n columns: PropTypes.number,\n className: PropTypes.string\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nexport default function ChangeIcon({ current, previous }) {\n let icon = '+'\n\n if (current < previous) {\n icon = '-'\n }\n\n return {icon}\n}\n\nChangeIcon.propTypes = {\n current: PropTypes.number.isRequired,\n previous: PropTypes.number.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport { red, grey, green } from '@mui/material/colors'\n\nimport { formatNumber, separate } from 'utils/number'\n\nimport ChangeIcon from './change_icon'\n\nconst useStyles = makeStyles()(theme => ({\n keyFigure: {\n fontWeight: 400,\n fontSize: '11pt',\n color: theme.isDark ? undefined : grey[800],\n whiteSpace: 'nowrap'\n },\n keyFigureTitle: {\n fontWeight: 500,\n fontSize: '10pt',\n color: theme.isDark ? undefined : grey[500],\n marginBottom: 0\n },\n keyFigureTitleHorizontal: {\n marginBottom: '0',\n fontWeight: '400',\n color: theme.isDark ? undefined : grey[700],\n fontSize: '11pt'\n },\n numberHorizontal: {\n fontSize: '11pt',\n fontWeight: '400',\n color: theme.isDark ? undefined : grey[900],\n paddingLeft: '10px'\n },\n previous: {\n marginLeft: '5px',\n fontSize: '10pt'\n },\n negative: {\n color: red[700]\n },\n positive: {\n color: green[700]\n },\n compact: {\n display: 'flex'\n },\n horizontal: {\n display: 'flex',\n alignItems: 'flex-end'\n }\n}))\n\nexport default function KeyFigure({\n className,\n compact,\n decimals,\n icon,\n name,\n previous,\n title,\n titleClassName,\n numberClassName,\n horizontalClassName,\n unit,\n value,\n variant\n}) {\n const { classes, cx } = useStyles()\n\n let previousValue = null\n\n if (typeof value !== 'string' && previous !== undefined) {\n let cssClasses = `${classes.previous} ${classes.positive}`\n\n if ((value - previous) < 0) {\n cssClasses = `${classes.previous} ${classes.negative}`\n }\n\n const factor = Math.pow(10, decimals) // eslint-disable-line\n\n let diff = value - previous\n const formattedDiff = Math.round(Math.abs(diff) * factor) / factor\n\n if (diff % 1 !== 0) {\n diff = formattedDiff\n }\n\n previousValue = (\n \n \n \n {formatNumber(formattedDiff)}\n \n \n )\n }\n\n let cssClasses = classes.keyFigure\n\n if (compact) {\n cssClasses = `${cssClasses} ${classes.compact}`\n }\n\n return (\n \n
\n {icon ? (\n
\n {icon}\n
\n ) : (\n
\n {name}\n
\n )}\n\n \n {typeof number !== 'string' ? formatNumber(value) : value}{unit || ''}\n \n\n {previousValue}\n
\n \n )\n}\n\nKeyFigure.defaultProps = {\n className: '',\n unit: '',\n titleClassName: '',\n decimals: 4,\n compact: false,\n variant: 'vertical'\n}\n\nKeyFigure.propTypes = {\n icon: PropTypes.any,\n name: PropTypes.string,\n value: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.number\n ]),\n unit: PropTypes.string,\n previous: PropTypes.number,\n className: PropTypes.string,\n titleClassName: PropTypes.string,\n numberClassName: PropTypes.string,\n horizontalClassName: PropTypes.string,\n title: PropTypes.string,\n decimals: PropTypes.number,\n compact: PropTypes.bool,\n variant: PropTypes.string\n}\n","/* global document */\nimport React, { memo } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, List } from 'immutable'\nimport { v4 } from 'uuid'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { red } from '@mui/material/colors'\nimport { IconButton } from '@mui/material'\nimport HighlightOffIcon from '@mui/icons-material/HighlightOff'\n\nconst useStyles = makeStyles()({\n values: {\n marginTop: 20,\n display: 'flex'\n },\n nav: {\n width: 50\n },\n navElement: {\n cursor: 'pointer',\n opacity: 0.5,\n '&:hover': {\n opacity: 1\n }\n },\n navGroups: {\n maxHeight: 400,\n width: '100%',\n overflowY: 'auto'\n },\n navGroup: {\n marginBottom: 10\n },\n navSubElement: {\n display: 'flex',\n alignItems: 'center',\n '& > span:first-of-type': {\n minWidth: 300\n },\n '& > span:last-of-type': {\n cursor: 'pointer',\n color: red[500],\n opacity: 0.7,\n\n '&:hover': {\n opacity: 1\n }\n }\n },\n deleteButton: {\n '&:hover': {\n color: red[500]\n }\n }\n})\n\nconst areEqual = (prevProps, nextProps) => {\n if (!nextProps.groups.equals(prevProps.groups)) {\n return false\n }\n\n if (!nextProps.alpha.equals(prevProps.alpha)) {\n return false\n }\n\n return true\n}\n\nconst AlphaNavigation = ({ alpha, groups, onDelete }) => {\n const { classes } = useStyles()\n const id = v4()\n const anchor = a => `${a}_${id}`\n\n return (\n
\n
\n {alpha.map(a => (\n document.getElementById(anchor(a)).scrollIntoView()}\n >\n {a}\n
\n ))}\n
\n
\n {groups.keySeq().sortBy(key => key.toLowerCase()).map(key => (\n \n {key}\n
\n {groups.get(key).map(a => (\n \n {a}\n \n onDelete(a)}\n size=\"small\"\n >\n \n \n \n
\n ))}\n \n ))}\n \n \n )\n}\n\nAlphaNavigation.propTypes = {\n groups: PropTypes.instanceOf(Map).isRequired,\n alpha: PropTypes.instanceOf(List).isRequired,\n\n onDelete: PropTypes.func.isRequired\n}\n\nexport default memo(AlphaNavigation, areEqual)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { DialogContent, Grid, Typography, DialogActions, Switch, FormControlLabel } from '@mui/material'\n\nimport { Dialog, RaisedPrimaryButton } from 'containers/themed'\nimport FilterableCustomTagList from 'containers/custom_tags/FilterableCustomTagList'\nimport useI18n from 'hooks/useI18n'\nimport NewCustomTagDialog from 'containers/custom_tags/CustomTagDialog'\n\nexport default function CustomTagDialog({\n actionLabelKey,\n active,\n createActive,\n onHide,\n onCreateClick,\n onHideCreateClick,\n onSave,\n titleKey,\n setAutoAddMediaReviewsNews\n}) {\n const i18n = useI18n()\n\n const handleShowCreate = () => {\n if (!createActive) {\n setAutoAddMediaReviewsNews(true)\n onCreateClick()\n } else {\n setAutoAddMediaReviewsNews(false)\n onHideCreateClick()\n }\n }\n\n const handleOk = customTag => {\n onHide()\n onSave({ customTag })\n }\n\n return (\n \n \n \n \n \n {createActive ? i18n.get('create_pin_board') : i18n.get('choose_pin_board')}\n \n \n {actionLabelKey === 'pin' && (\n \n \n )}\n label={i18n.get('create_pin_board')}\n />\n \n )}\n \n
\n {!createActive && (\n false}\n isSaving={() => false}\n />\n )}\n\n {createActive && (\n \n )}\n \n \n {!createActive && (\n onHide()}>\n {i18n.get('close')}\n \n )}\n \n \n )\n}\n\nCustomTagDialog.defaultProps = {\n actionLabelKey: 'pin'\n}\n\nCustomTagDialog.propTypes = {\n active: PropTypes.bool.isRequired,\n actionLabelKey: PropTypes.string,\n titleKey: PropTypes.string,\n createActive: PropTypes.bool,\n\n onHide: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired,\n onCreateClick: PropTypes.func,\n onHideCreateClick: PropTypes.func,\n setAutoAddMediaReviewsNews: PropTypes.func\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport { Typography, Grid, Accordion, AccordionDetails, AccordionSummary } from '@mui/material'\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\n\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()({\n additionalLanguages: {\n marginTop: 10\n }\n})\n\nexport default function MultiLanguageNameForm({\n renderNameInput\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n return (\n <>\n \n \n {renderNameInput('nameEn', true)}\n \n\n \n {renderNameInput('nameDe')}\n \n \n\n \n }>\n \n {i18n.get('additional_languages')}\n \n \n \n \n \n {renderNameInput('nameFr')}\n \n\n \n {renderNameInput('nameRu')}\n \n\n \n {renderNameInput('nameZh')}\n \n\n \n {renderNameInput('nameJa')}\n \n \n \n \n \n )\n}\n\nMultiLanguageNameForm.propTypes = {\n renderNameInput: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nimport Card from 'components/card'\nimport DummyCardIcon from 'components/dummy_card_icon'\n\nimport { CardActionArea, CardHeader } from '@mui/material'\n\nconst useStyles = makeStyles()({\n icon: {\n height: 200\n }\n})\n\nexport default function NewItemCard({ onClick, label, iconClassName }) {\n const { classes, cx } = useStyles()\n\n return (\n \n \n
\n \n
\n
\n\n \n
\n )\n}\n\nNewItemCard.propTypes = {\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n iconClassName: PropTypes.string\n}\n","import React from 'react'\nimport { useSelector } from 'react-redux'\nimport { makeStyles } from 'tss-react/mui'\nimport { keyframes } from 'tss-react'\nimport { getWhitelabelProgressLetters } from 'selectors'\n\nimport { CircularProgress } from '@mui/material'\n\nconst useStyles = makeStyles()({\n progressBar: {\n position: 'relative',\n width: 80,\n height: 80\n },\n progressBarItem: {\n position: 'absolute',\n width: '100%',\n height: '100%',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n },\n loading: {\n position: 'fixed',\n zIndex: 300,\n top: 0,\n width: '100%'\n },\n nrx0: {\n animation: `${keyframes`\n 0% {\n transform: scale(1) translate(-10px) rotate(-10deg);\n },\n 10% {\n transform: scale(1) translate(-10px) rotate(-20deg);\n },\n 20% {\n transform: scale(1) translate(-10px) rotate(0deg);\n },\n 50% {\n transform: scale(0.5) translate(10px);\n },\n 60% {\n transform: scale(1) translate(10px);\n },\n 80% {\n transform: scale(1.5) translate(0);\n },\n 100% {\n transform: scale(1) translate(-10px);\n }\n `} 2s linear infinite;`\n },\n nrx1: {\n animation: `${keyframes`\n 0% {\n transform: translate(0, 0) rotate(0);\n }\n 10% {\n transform: translate(0, -10px) rotate(-40deg);\n }\n 15% {\n transform: translate(0, -5px) rotate(-20deg);\n }\n 20% {\n transform: translate(0, 0);\n }\n `} 2s linear infinite;`\n },\n nrx2: {\n animation: `${keyframes`\n 0% {\n transform: scale(1) translate(10px) rotate(10deg);\n }\n 10% {\n transform: scale(1) translate(10px) rotate(20deg);\n }\n 20% {\n transform: scale(1) translate(10px) rotate(0);\n }\n 50% {\n transform: scale(1.5) translate(-10px);\n }\n 60% {\n transform: scale(1) translate(-10px);\n }\n 80% {\n transform: scale(0.5) translate(0);\n }\n 100% {\n transform: scale(1) translate(10px);\n }\n `} 2s linear infinite;`\n }\n})\n\nexport default function NrxProgressBar() {\n const { classes } = useStyles()\n const letters = useSelector(getWhitelabelProgressLetters)\n\n return (\n
\n
\n \n
\n\n {letters.map((l, i) => {\n const className = classes[`nrx${i}`]\n\n return (\n \n {l}\n \n )\n })}\n
\n )\n}\n","/* global FileReader */\nimport React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport CloudUploadIcon from '@mui/icons-material/CloudUpload'\nimport { makeStyles } from 'tss-react/mui'\nimport DeleteIcon from '@mui/icons-material/Delete'\nimport { BrowseButton, IconButton } from 'containers/themed'\nimport useI18n from 'hooks/useI18n'\nimport { red } from '@mui/material/colors'\n\nconst useStyles = makeStyles()({\n withDelete: {\n display: 'flex',\n alignItems: 'center',\n\n '& > div:first-of-type': {\n marginRight: 5\n }\n },\n fileSizeError: {\n marginTop: 5,\n fontSize: 14,\n color: red[500]\n }\n})\n\nexport default function PhotoUpload({\n buttonProps,\n label,\n maxSize,\n onFileChange,\n onFileUrlChange,\n photoUrl,\n onDelete\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const [fileSizeError, setFileSizeError] = useState(false)\n\n const changePhoto = ({ target: { files: [file] } }) => {\n let doChange = true\n\n if (!file) {\n doChange = false\n }\n\n if (file && maxSize && file.size > maxSize) {\n doChange = false\n setFileSizeError(true)\n }\n\n if (doChange) {\n onFileChange(file)\n const reader = new FileReader()\n reader.onload = event => {\n if (photoUrl !== event.target.result) {\n onFileUrlChange(event.target.result)\n }\n }\n\n reader.readAsDataURL(file)\n setFileSizeError(false)\n }\n }\n\n const uploadButton = (\n \n  {label || i18n.get('upload_photo')}\n \n )\n\n const handleDelete = () => {\n onFileChange(null)\n onFileUrlChange('')\n onDelete()\n setFileSizeError(false)\n }\n\n if (!onDelete) {\n return (\n <>\n
\n {uploadButton}\n
\n {fileSizeError && (\n
{i18n.get('error_filesize_exceeded')}
\n )}\n \n )\n }\n\n return (\n <>\n
\n {uploadButton}\n\n \n \n \n
\n {fileSizeError && (\n
{i18n.get('error_filesize_exceeded')}
\n )}\n \n )\n}\n\nPhotoUpload.defaultProps = {\n buttonProps: {\n variant: 'contained',\n color: 'primary'\n },\n maxSize: null,\n onFileUrlChange: () => null\n}\n\nPhotoUpload.propTypes = {\n photoUrl: PropTypes.string,\n buttonProps: PropTypes.object,\n label: PropTypes.string,\n maxSize: PropTypes.number,\n\n onFileChange: PropTypes.func.isRequired,\n onFileUrlChange: PropTypes.func,\n onDelete: PropTypes.func\n}\n","import React, { useEffect, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { fromJS } from 'immutable'\n\nimport { Input, RaisedPrimaryButton } from 'containers/themed'\n\nimport AlphaNavigation from '../mail_autocomplete/alpha_navigation'\n\nconst split = value => value.split(/;|,|\\n/)\n\nexport default function SmsAutocomplete({\n onChange,\n value,\n disabled,\n i18n\n}) {\n const [state, setState] = useState({\n invalidPhoneNumbers: [],\n newValue: '',\n value\n })\n\n useEffect(() => {\n setState({ ...state, value })\n }, [value])\n\n const handleChange = e => {\n setState({ ...state, newValue: e.target.value })\n }\n\n const handleSubmit = res => {\n import(/* webpackChunkName libphonenumber */ 'libphonenumber-js').then(({ parsePhoneNumberFromString }) => {\n let newValue = res.map(v => v.trim())\n const invalidPhoneNumbers = []\n newValue = newValue.map(v => {\n const phoneNumber = parsePhoneNumberFromString(v, 'DE')\n\n if (!phoneNumber) {\n invalidPhoneNumbers.push(v)\n }\n\n return phoneNumber\n })\n newValue = newValue.map(v => v && v.format('E.164')).filter(v => v)\n setState({ ...state, newValue: '', invalidPhoneNumbers })\n onChange(newValue)\n })\n }\n\n const handleAdd = () => {\n const result = split(state.newValue).concat(state.value)\n handleSubmit(result)\n }\n\n const handleDelete = index => {\n handleSubmit(value.filter(v => v !== index))\n }\n\n const renderError = () => {\n const { invalidPhoneNumbers } = state\n\n if (!invalidPhoneNumbers.length) {\n return null\n }\n\n return `${i18n.get('invalid_phone_numbers')}: ${invalidPhoneNumbers}`\n }\n\n const renderInput = () => {\n const { newValue } = state\n\n const values = fromJS(state.value)\n\n const alpha = values.map(v => v.slice(0, 3)).toSet().toList().sortBy(a => a)\n const groups = values.groupBy(v => v.slice(0, 3))\n\n return (\n
\n \n\n
\n
\n\n \n {i18n.get('add')}\n \n\n \n
\n )\n }\n\n return (\n
\n {renderError()}\n {renderInput()}\n
\n )\n}\n\nSmsAutocomplete.defaultProps = {\n disabled: false\n}\n\nSmsAutocomplete.propTypes = {\n onChange: PropTypes.func.isRequired,\n value: PropTypes.array.isRequired,\n disabled: PropTypes.bool,\n\n i18n: PropTypes.object.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport SmsAutocomplete from 'components/sms_autocomplete'\nimport { getI18n } from 'selectors'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state)\n})\n\nexport default connect(mapStateToProps)(SmsAutocomplete)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport { faSlack } from '@fortawesome/free-brands-svg-icons/faSlack'\nimport { faMicrosoft } from '@fortawesome/free-brands-svg-icons/faMicrosoft'\nimport { faCircleExclamation } from '@fortawesome/pro-solid-svg-icons/faCircleExclamation'\n\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()({\n webhookOption: {\n display: 'flex',\n alignItems: 'center'\n },\n platformIcon: {\n marginRight: 5\n },\n teams: {\n width: 26\n }\n})\n\nexport default function WebhookOption({ url }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n let icon = \n let title = i18n.get('webhook_not_supported')\n\n if (url.includes('webhook.office.com')) {\n icon = \n title = 'Microsoft Teams'\n }\n\n if (url.includes('hooks.slack.com')) {\n icon = \n title = 'Slack'\n }\n\n const shortUrl = `${url.slice(0, 25)}...`\n title = `[${title}] ${url}`\n\n return (\n \n \n {icon}\n \n \n {shortUrl}\n \n \n )\n}\n\nWebhookOption.propTypes = {\n url: PropTypes.string.isRequired\n}\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { fromJS, Map } from 'immutable'\nimport moment from 'moment-timezone'\nimport { makeStyles } from 'tss-react/mui'\nimport { keyframes } from 'tss-react'\nimport AutoAwesomeIcon from '@mui/icons-material/AutoAwesome'\nimport {\n Typography,\n Accordion,\n AccordionSummary,\n AccordionDetails,\n Checkbox,\n FormControlLabel,\n Radio,\n RadioGroup,\n Divider as MuiDivider,\n Grid,\n Autocomplete as MuiAutocomplete,\n TextField,\n FormHelperText\n} from '@mui/material'\n\nimport TimeZones from 'static/time_zones'\n\nimport { AlertTypes, Capabilities } from 'static/constants'\n\nimport MailAutocomplete from 'containers/MailAutocomplete'\nimport SmsAutocomplete from 'containers/SmsAutocomplete'\nimport { Select, Input, Autocomplete } from 'containers/themed'\nimport AiSummariesOrderForm from 'containers/paid_features/AiSummariesOrderForm'\nimport CapSafe from 'containers/CapSafe'\n\nimport WebhookOption from './webhook_option'\n\nconst useStyles = makeStyles()(theme => ({\n hint: {\n fontSize: '12pt !important'\n },\n alertDescription: {\n marginTop: -10,\n marginBottom: 0,\n fontSize: '12pt'\n },\n timezoneOptions: {\n display: 'flex',\n alignItems: 'center',\n marginTop: -20,\n marginBottom: -10,\n '& > div:last-child': {\n width: 300\n }\n },\n threshold: {\n width: 150\n },\n hiddenPopper: {\n display: 'none'\n },\n aiIcon: {\n color: theme.palette.primary.main,\n marginRight: 5,\n animation: `${keyframes`\n 0% {\n transform: translateY(0);\n }\n 10% {\n transform: translateY(-10px);\n }\n 20% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(0);\n }\n `} 4s infinite;`\n }\n}))\n\nconst options = TimeZones.map(t => ({ value: t, label: t }))\n\nconst defaultLimit = 100\nconst limitOptions = [10, 25, 50, 75, 100, 150, 200, 250, 300].map(n => ({ value: n, label: n.toString() }))\n\nconst Divider = () => (\n
\n
\n \n
\n
\n)\n\nconst SmsAutocompleteCapSafe = CapSafe(SmsAutocomplete, Capabilities.HAS_NEWS_POOL_SAVED_SEARCHES_SMS_ALERTING_FEATURE)\nconst SmsDivider = CapSafe(Divider, Capabilities.HAS_NEWS_POOL_SAVED_SEARCHES_SMS_ALERTING_FEATURE)\n\nconst locales = ['de', 'en']\n\nconst dayOptions = [1, 2, 3, 4, 5, 6, 0].map(day => ({\n value: day === 0 ? 7 : day,\n label: moment().day(day).format('dddd')\n}))\n\nconst emptyAlertConfig = fromJS({\n type: AlertTypes.NONE,\n threshold: 0,\n times: [],\n days: [],\n timezone: 'Europe/Berlin',\n recipients: [],\n recipientsSms: [],\n webhooks: [],\n mailingListIds: [],\n sendNoResultsMail: false,\n groupBy: null\n})\n\nconst validTimeValueFormat = value => value.match(/^\\d\\d:\\d\\d$/)\n\nconst filterTimeValues = values => values.filter(value => {\n const validFormat = validTimeValueFormat(value)\n\n if (validFormat) {\n let [hours, minutes] = value.split(':')\n\n hours = parseInt(hours, 10)\n minutes = parseInt(minutes, 10)\n\n return hours <= 24 && hours >= 0 && minutes <= 59 && minutes >= 0\n }\n\n return false\n})\n\nconst renderWebhookOption = option => \n\nexport default function AlertOptions({\n i18n,\n hasPaidVersion,\n hasAdminVersion,\n savedSearch,\n mailingLists,\n locale,\n timezone,\n onChange\n}) {\n const { classes } = useStyles()\n const getAlertConfig = () => emptyAlertConfig.merge(savedSearch.get('alertConfig', fromJS({})))\n const [timesInputValue, setTimesInputValue] = useState('')\n\n const handleChange = (key, value) => {\n onChange(savedSearch.set(key, value))\n }\n\n const handleAlertConfigChange = (key, value) => {\n const alertConfig = getAlertConfig().set(key, value)\n handleChange('alertConfig', alertConfig)\n }\n\n const handleTimeValueChange = value => {\n const currentTimes = getAlertConfig().get('times')\n const newTimes = currentTimes.push(value).toSet().toList()\n\n handleAlertConfigChange('times', newTimes)\n }\n\n const handleMailingListChange = values => {\n const mailingListIds = (values || fromJS([])).map(({ value }) => value)\n handleAlertConfigChange('mailingListIds', fromJS(mailingListIds))\n }\n\n const renderTimezoneDropdown = () => {\n const alertConfig = getAlertConfig()\n\n const selected = {\n label: alertConfig.get('timezone'),\n value: alertConfig.get('timezone')\n }\n\n return (\n <>\n
\n
\n
\n
{i18n.get('alert_in_timezone')}:   
\n handleAlertConfigChange('timezone', value)}\n />\n
\n
\n \n )\n }\n\n const renderInstantOptions = () => {\n const alertConfig = getAlertConfig()\n\n if ([AlertTypes.INSTANTLY, AlertTypes.HOURLY].indexOf(alertConfig.get('type')) === -1) {\n return null\n }\n\n return (\n <>\n \n\n
{i18n.get('alert_type_interval')}:
\n handleAlertConfigChange('type', event.target.value)}\n >\n }\n />\n }\n />\n \n\n {!hasPaidVersion && !hasAdminVersion ? (\n \n \n \n {i18n.get('use_ai_filter')}\n \n \n \n \n \n ) : (\n <>\n handleAlertConfigChange('usePrompt', e.target.checked)}\n />\n )}\n />\n \n {i18n.get('use_ai_filter_hint')}\n \n\n {!hasPaidVersion && hasAdminVersion && (\n <>\n \n {i18n.get('ai_admin_version_info')}\n \n
\n \n )}\n\n handleAlertConfigChange('prompt', event.target.value)}\n variant=\"outlined\"\n />\n \n )}\n \n )\n }\n\n const renderTimeOptions = () => {\n const alertConfig = getAlertConfig()\n const times = alertConfig.get('times')\n const days = alertConfig.get('days') || fromJS([])\n\n if (alertConfig.get('type') !== AlertTypes.DAILY) {\n return null\n }\n\n const selectedTimezone = alertConfig.get('timezone')\n let info\n\n if (selectedTimezone !== timezone) {\n const formattedTimes = times.map(time => {\n const [hours, minutes] = time.split(':').map(t => parseInt(t, 10))\n\n return moment()\n .tz(selectedTimezone)\n .hours(hours)\n .minutes(minutes)\n .tz(timezone)\n .format('HH:mm')\n })\n .sort()\n .join(', ')\n\n info = (\n
\n {i18n.get('in_your_timezone', { timezone })}: {formattedTimes}\n
\n
\n
\n )\n }\n\n const limitReached = times.size >= 3\n\n const dayValues = days.map(day => {\n const found = dayOptions.find(d => d.value === day)\n\n if (found) {\n return found\n }\n\n return null\n }).filter(d => d).toJS()\n\n return (\n <>\n \n\n \n \n option.label}\n value={dayValues}\n isOptionEqualToValue={(option, value) => option.value === value.value}\n onChange={(event, values) => {\n handleAlertConfigChange('days', fromJS(values.map(v => v.value)))\n }}\n renderInput={params => (\n \n )}\n />\n \n {i18n.get('select_alert_days', { name: i18n.get('alert_type_daily') })}\n \n \n\n \n option}\n value={times.toJS()}\n inputValue={timesInputValue}\n freeSolo={!limitReached}\n isOptionEqualToValue={(option, value) => option === value}\n classes={{\n popper: classes.hiddenPopper,\n popupIndicator: classes.hiddenPopper\n }}\n onChange={(event, values) => {\n const newValues = filterTimeValues(values)\n\n handleAlertConfigChange('times', fromJS(newValues))\n }}\n onInputChange={(_event, value) => {\n setTimesInputValue(value)\n\n if (validTimeValueFormat(value)) {\n handleTimeValueChange(value)\n setTimesInputValue('')\n }\n }}\n renderInput={params => (\n \n )}\n />\n \n {i18n.get('select_alert_times', { name: i18n.get('alert_type_daily') })}\n \n \n \n\n {renderTimezoneDropdown()}\n\n {info}\n \n )\n }\n\n const renderThresholdOptions = () => {\n const alertConfig = getAlertConfig()\n const threshold = alertConfig.get('threshold') || 0\n\n if (alertConfig.get('type') !== AlertTypes.DAILY_THRESHOLD) {\n return null\n }\n\n return (\n <>\n \n\n
\n handleAlertConfigChange('threshold', parseInt(event.target.value, 10))}\n variant=\"outlined\"\n />\n
\n\n {renderTimezoneDropdown()}\n \n )\n }\n\n const renderKpiOptions = () => {\n const alertConfig = getAlertConfig()\n\n if (alertConfig.get('type') === AlertTypes.NONE) {\n return null\n }\n\n return (\n <>\n \n\n
{i18n.get('kpi_options')}:
\n\n handleAlertConfigChange('showReach', e.target.checked)}\n />\n )}\n />\n handleAlertConfigChange('showAve', e.target.checked)}\n />\n )}\n />\n handleAlertConfigChange('showVisits', e.target.checked)}\n />\n )}\n />\n handleAlertConfigChange('showCirculation', e.target.checked)}\n />\n )}\n />\n handleAlertConfigChange('showDuration', e.target.checked)}\n />\n )}\n />\n \n )\n }\n\n const renderMailOptions = () => {\n const alertConfig = getAlertConfig()\n const mailingListIds = alertConfig.get('mailingListIds')\n const hasSms = !alertConfig.get('recipientsSms').isEmpty()\n\n if (alertConfig.get('type') === AlertTypes.NONE) {\n return null\n }\n\n const recipients = alertConfig.get('recipients').toJS()\n const recipientsSms = alertConfig.get('recipientsSms').toJS()\n const mailingListsForAutocomplete = mailingLists\n .toList()\n .map(ml => ({ value: ml.get('id'), label: ml.get('name') }))\n .toJS()\n const selectedMailingLists = mailingLists\n .toList()\n .filter(m => mailingListIds.includes(m.get('id')))\n .map(ml => ({ value: ml.get('id'), label: ml.get('name') }))\n .toJS()\n const localeOptions = locales.map(l => ({\n value: l,\n label: i18n.get(`language_${l}`)\n }))\n\n const groupByOptions = [\n {\n value: 'ungrouped',\n label: i18n.get('ungrouped')\n },\n {\n value: 'media_review_codes',\n label: i18n.get('topics')\n }\n ]\n\n return (\n <>\n \n\n {alertConfig.get('type') === AlertTypes.DAILY && (\n

\n handleAlertConfigChange('sendNoResultsMail', e.target.checked)}\n />\n )}\n />\n

\n )}\n\n \n \n handleChange('locale', value.value)}\n variant=\"outlined\"\n />\n \n \n handleAlertConfigChange('limit', value.value)}\n variant=\"outlined\"\n />\n \n {savedSearch.get('moduleName') === 'news' && (\n \n handleAlertConfigChange('groupBy', value.value)}\n variant=\"outlined\"\n />\n \n )}\n \n\n \n\n \n

\n handleAlertConfigChange('recipients', fromJS(value))}\n value={recipients}\n variant=\"outlined\"\n />\n\n \n\n option === value}\n classes={{\n popper: classes.hiddenPopper,\n popupIndicator: classes.hiddenPopper\n }}\n onChange={(event, values) => {\n handleAlertConfigChange('webhooks', fromJS(values))\n }}\n renderInput={params => (\n \n )}\n />\n \n {i18n.get('webhooks_help')}\n \n\n {hasSms && (\n <>\n \n\n \n {i18n.get('feature_is_deprecated')}\n \n handleAlertConfigChange('recipientsSms', fromJS(value))}\n value={recipientsSms}\n variant=\"outlined\"\n />\n \n )}\n \n )\n }\n\n const alertConfig = getAlertConfig()\n\n return (\n

\n

\n {i18n.get('alert_options')}\n

\n\n
\n\n handleAlertConfigChange('type', event.target.value)}\n >\n }\n />\n
\n }\n />\n

{i18n.get('alert_type_instantly_description')}

\n
\n }\n />\n

{i18n.get('alert_type_daily_description')}

\n
\n }\n />\n

{i18n.get('alert_type_daily_threshold_description')}

\n
\n \n\n {renderInstantOptions()}\n {renderTimeOptions()}\n {renderThresholdOptions()}\n {renderKpiOptions()}\n {renderMailOptions()}\n
\n )\n}\n\nAlertOptions.propTypes = {\n hasPaidVersion: PropTypes.bool.isRequired,\n hasAdminVersion: PropTypes.bool.isRequired,\n i18n: PropTypes.object.isRequired,\n savedSearch: PropTypes.instanceOf(Map).isRequired,\n mailingLists: PropTypes.instanceOf(Map).isRequired,\n locale: PropTypes.string.isRequired,\n timezone: PropTypes.string.isRequired,\n\n onChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport AlertOptions from 'components/saved_searches/edit_dialog/alert_options'\n\nimport {\n getI18n,\n getSelectedSavedSearch,\n getMailingLists,\n getUserLocale,\n getTimezone,\n getHasAiSummariesPaidVersion,\n getIsEmployee\n} from 'selectors'\nimport { updateSelectedSavedSearch } from 'actions/saved_searches'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n savedSearch: getSelectedSavedSearch(state),\n mailingLists: getMailingLists(state).get('data'),\n locale: getUserLocale(state),\n timezone: getTimezone(state),\n hasPaidVersion: getHasAiSummariesPaidVersion(state),\n hasAdminVersion: getIsEmployee(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: updateSelectedSavedSearch\n }\n)(AlertOptions)\n","import React, { useState, useMemo } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport { Capabilities } from 'static/constants'\nimport { Typography } from '@mui/material'\nimport decamelize from 'decamelize'\n\nimport { Dialog, Button, Input } from 'containers/themed'\nimport PhotoUpload from 'components/photo_upload'\nimport ColorPicker from 'components/color_picker'\nimport CapSafe from 'containers/CapSafe'\nimport AlertOptions from 'containers/saved_searches/edit_dialog/AlertOptions'\nimport MultiLanguageNameForm from 'components/multi_language_name_form'\n\nimport { createLoadable } from 'utils/loadable'\n\nconst ColorPickerContainer = CapSafe(props =>
, Capabilities.HAS_CHARTS_MODULE, Capabilities.HAS_DASHBOARD_MODULE)\n\nconst useStyles = makeStyles()({\n preview: {\n width: '50%'\n },\n additionalLanguages: {\n marginTop: 10\n }\n})\n\nconst SavedSearch = ({ loadThrough, ...props }) => {\n const Comp = useMemo(() => createLoadable(() => (\n import(/* webpackChunkName: \"SavedSearchesCardViewSavedSearch\" */ `containers/${loadThrough}/card_view/SavedSearch`)\n )), [loadThrough])\n\n return \n}\n\nSavedSearch.propTypes = {\n loadThrough: PropTypes.string.isRequired\n}\n\nexport default function EditDialog({\n active,\n i18n,\n savedSearch,\n savedSearches,\n allowedSavedSearchesCount,\n hasLimit,\n showChartOptions,\n showPhotoUpload,\n showAlertOptions,\n loadThrough,\n onHide,\n onSubmit,\n onChange,\n onPhotoChange\n}) {\n const { classes } = useStyles()\n const [state, setState] = useState({ previewUrl: '' })\n\n const handlePreviewUrlChange = previewUrl => {\n setState({ ...state, previewUrl })\n }\n\n const handleChange = (field, value) => {\n onChange(savedSearch.set(field, value))\n }\n\n const hide = () => {\n setState({ ...state, previewUrl: '' })\n onHide()\n }\n\n const handleSave = () => {\n hide()\n onSubmit(savedSearch)\n }\n\n const nameExistsByKey = key => {\n const dup = savedSearches.find(s => (s.get(key).toLowerCase() !== '')\n && (s.get(key).toLowerCase() === savedSearch.get(key).toLowerCase()))\n\n return dup && dup.get('id') !== savedSearch.get('id')\n }\n\n const limitReached = () => hasLimit && !savedSearch.get('id') && allowedSavedSearchesCount <= savedSearches.size\n\n const isValid = () => {\n const namePresent = savedSearch.get('nameEn').length > 0\n\n const limit = limitReached()\n\n let recipientsPreset = true\n\n if (savedSearch.get('alertConfig') && savedSearch.getIn(['alertConfig', 'type']) !== 'none') {\n recipientsPreset = !savedSearch.getIn(['alertConfig', 'recipients']).isEmpty()\n recipientsPreset = recipientsPreset || !savedSearch.getIn(['alertConfig', 'mailingListIds']).isEmpty()\n recipientsPreset = recipientsPreset || !savedSearch.getIn(['alertConfig', 'recipientsSms']).isEmpty()\n recipientsPreset = recipientsPreset || !savedSearch.getIn(['alertConfig', 'webhooks']).isEmpty()\n }\n\n return namePresent && recipientsPreset && !limit\n }\n\n const renderPhoto = () => {\n const { previewUrl } = state\n\n return (\n
\n \n
\n )\n }\n\n const renderActions = () => {\n const actions = [\n hide()}\n >\n {i18n.get('cancel')}\n ,\n handleSave()}\n disabled={!isValid()}\n >\n {i18n.get('save')}\n \n ]\n\n return actions\n }\n\n const renderNameInput = (key, required) => {\n let error = null\n\n if (limitReached()) {\n error = i18n.get('saved_search_limit_reached', { count: allowedSavedSearchesCount })\n } else if (nameExistsByKey(key)) {\n error = i18n.get('saved_search_exists')\n }\n\n return (\n handleChange(key, e.target.value)}\n error={!!error}\n helperText={error}\n variant=\"outlined\"\n required={required}\n />\n )\n }\n\n const renderBody = () => {\n const { previewUrl } = state\n\n return (\n <>\n
\n\n \n\n
\n
\n\n handleChange('description', e.target.value)}\n variant=\"outlined\"\n />\n\n {showChartOptions && (\n \n
\n {i18n.get('color_in_charts')}:\n handleChange('color', color)}\n onReset={() => handleChange('color', null)}\n defaultValue=\"#FFFFFF\"\n value={savedSearch.get('color')}\n />\n
\n )}\n\n {showPhotoUpload && (\n <>\n
\n
\n\n {\n handleChange('photo', null)\n }}\n />\n\n
\n
\n\n {renderPhoto()}\n \n )}\n\n {showAlertOptions && (\n <>\n
\n\n \n \n )}\n \n )\n }\n\n let title = i18n.get('create_saved_search')\n\n if (savedSearch.get('id')) {\n title = i18n.get('edit_saved_search')\n }\n\n return (\n hide()}\n >\n {renderBody()}\n \n )\n}\n\nEditDialog.defaultProps = {\n showChartOptions: true,\n showPhotoUpload: true,\n showAlertOptions: true,\n loadThrough: 'saved_searches'\n}\n\nEditDialog.propTypes = {\n active: PropTypes.bool.isRequired,\n i18n: PropTypes.object.isRequired,\n savedSearch: PropTypes.instanceOf(Map).isRequired,\n savedSearches: PropTypes.instanceOf(List).isRequired,\n allowedSavedSearchesCount: PropTypes.number.isRequired,\n hasLimit: PropTypes.bool.isRequired,\n showChartOptions: PropTypes.bool,\n showPhotoUpload: PropTypes.bool,\n showAlertOptions: PropTypes.bool,\n loadThrough: PropTypes.string,\n\n onHide: PropTypes.func.isRequired,\n onSubmit: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onPhotoChange: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport KeyboardBackspaceIcon from '@mui/icons-material/KeyboardBackspace'\nimport { makeStyles } from 'tss-react/mui'\nimport { Button, IconButton } from 'containers/themed'\n\nimport WithI18n from 'containers/WithI18n'\nimport WithDevice from 'containers/WithDevice'\nimport { Paper } from '@mui/material'\n\nconst useStyles = makeStyles()({\n selected: {\n display: 'flex',\n alignItems: 'center',\n paddingLeft: 20,\n width: '100%',\n height: 0,\n position: 'fixed',\n top: 0,\n left: 0,\n zIndex: 0,\n opacity: 0,\n transition: 'all 500ms',\n borderRadius: 0\n },\n active: {\n height: 65,\n zIndex: 300,\n opacity: 1\n },\n selectedText: {\n marginLeft: 20\n },\n spacer: {\n flex: 1\n },\n icon: {\n cursor: 'pointer',\n '&:hover': {\n opacity: 0.5\n }\n },\n actions: {\n '& > *': {\n marginRight: 10\n }\n }\n})\n\nconst SelectedAppBar = ({ count, actions, onReset, i18n, device }) => {\n const { classes } = useStyles()\n let className = classes.selected\n\n if (count) {\n className = `${className} ${classes.active}`\n }\n\n return (\n \n onReset()}\n size=\"large\"\n >\n \n \n\n
\n {count} {i18n.get('selected')}\n
\n\n
\n\n
\n {actions.map((action, index) => {\n if (action.comp) {\n return React.cloneElement(\n action.comp,\n {\n key: index,\n onClick: action.onClick\n }\n )\n }\n\n if (device.get('lt-sm')) {\n const { icon, label, ...iconButtonProps } = action\n\n return (\n \n {icon}\n \n )\n }\n\n return (\n \n {action.label}\n \n )\n })}\n
\n \n )\n}\n\nSelectedAppBar.propTypes = {\n count: PropTypes.number.isRequired,\n i18n: PropTypes.object.isRequired,\n actions: PropTypes.array.isRequired,\n device: PropTypes.instanceOf(Map).isRequired,\n\n onReset: PropTypes.func.isRequired\n}\n\nexport default WithDevice()(WithI18n()(SelectedAppBar))\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { DialogContent, Grid, Typography, DialogActions, Switch, FormControlLabel } from '@mui/material'\n\nimport { Dialog, RaisedPrimaryButton } from 'containers/themed'\nimport FilterableCustomTagList from 'containers/custom_tags/FilterableCustomTagList'\nimport useI18n from 'hooks/useI18n'\nimport NewCustomTagDialog from 'containers/custom_tags/CustomTagDialog'\n\nexport default function CustomTagDialog({\n actionLabelKey,\n active,\n createActive,\n onHide,\n onCreateClick,\n onHideCreateClick,\n onSave,\n titleKey,\n setAutoAddShoppingCartNews\n}) {\n const i18n = useI18n()\n\n const handleShowCreate = () => {\n if (!createActive) {\n setAutoAddShoppingCartNews(true)\n onCreateClick()\n } else {\n setAutoAddShoppingCartNews(false)\n onHideCreateClick()\n }\n }\n\n const handleOk = customTag => {\n onHide()\n onSave({ customTag })\n }\n\n return (\n \n \n \n \n \n {createActive ? i18n.get('create_pin_board') : i18n.get('choose_pin_board')}\n \n \n { actionLabelKey === 'pin' && (\n \n \n )}\n label={i18n.get('create_pin_board')}\n />\n \n ) }\n \n
\n {!createActive && (\n false}\n isSaving={() => false}\n />\n )}\n\n {createActive && (\n \n )}\n \n \n {!createActive && (\n onHide()}>\n {i18n.get('close')}\n \n )}\n \n \n )\n}\n\nCustomTagDialog.defaultProps = {\n actionLabelKey: 'pin'\n}\n\nCustomTagDialog.propTypes = {\n active: PropTypes.bool.isRequired,\n actionLabelKey: PropTypes.string,\n titleKey: PropTypes.string,\n createActive: PropTypes.bool,\n\n onHide: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired,\n onCreateClick: PropTypes.func,\n onHideCreateClick: PropTypes.func,\n setAutoAddShoppingCartNews: PropTypes.func\n}\n","import React, { Fragment } from 'react'\nimport PropTypes from 'prop-types'\n\nexport default function StaggeredList(props) {\n const { children } = props\n\n return (\n \n {children}\n \n )\n}\n\nStaggeredList.propTypes = {\n children: PropTypes.any.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport { keyframes } from 'tss-react'\n\nconst useRightToLeft = makeStyles()({\n item: {\n opacity: 0,\n animation: `${keyframes`\n 0% {\n transform: translateX(100px);\n opacity: 0;\n }\n 100% {\n opacity: 1;\n transform: translateX(0);\n }\n `} 500ms`,\n animationFillMode: 'forwards'\n }\n})\n\nconst useLeftToRight = makeStyles()({\n item: {\n opacity: 0,\n animation: `${keyframes`\n 0% {\n transform: translateX(-25%);\n opacity: 0;\n }\n 100% {\n opacity: 1;\n transform: translateX(0);\n }\n `} 500ms`,\n animationFillMode: 'forwards'\n }\n})\n\nconst useWave = makeStyles()({\n item: {\n animation: `${keyframes`\n 0% {\n transform: translateY(0);\n }\n 50% {\n transform: translateY(-10px);\n }\n 100% {\n transform: translateY(0);\n }\n `} 500ms`,\n animationFillMode: 'forwards'\n }\n})\n\nconst useBottomToTop = makeStyles()({\n item: {\n opacity: 0,\n animation: `${keyframes`\n 0% {\n transform: translateY(100px);\n opacity: 0;\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n `} 500ms`,\n animationFillMode: 'forwards'\n },\n itemNoFill: {\n animation: `${keyframes`\n 0% {\n transform: translateY(100px);\n opacity: 0;\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n `} 500ms`\n }\n})\n\nconst useFade = makeStyles()({\n item: {\n opacity: 0,\n animation: `${keyframes`\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n `} 500ms`,\n animationFillMode: 'forwards'\n }\n})\n\nexport default function StaggeredListItem(props) {\n const { classes: bottomToTop, cx } = useBottomToTop()\n const { classes: wave } = useWave()\n const { classes: rightToLeft } = useRightToLeft()\n const { classes: leftToRight } = useLeftToRight()\n const { classes: fade } = useFade()\n const { delay, children, className, type, hideInitial } = props\n const newProps = { ...props }\n delete newProps.delay\n delete newProps.children\n delete newProps.className\n delete newProps.hideInitial\n\n let theme = bottomToTop\n\n if (type === 'rightToLeft') {\n theme = rightToLeft\n }\n\n if (type === 'leftToRight') {\n theme = leftToRight\n }\n\n if (type === 'wave') {\n theme = wave\n }\n\n if (type === 'fade') {\n theme = fade\n }\n\n let itemClass = theme.item\n\n if (!hideInitial) {\n itemClass = theme.itemNoFill\n }\n\n return (\n \n {children}\n
\n )\n}\n\nStaggeredListItem.defaultProps = {\n hideInitial: true,\n delay: 0\n}\n\nStaggeredListItem.propTypes = {\n children: PropTypes.any.isRequired,\n delay: PropTypes.number,\n className: PropTypes.string,\n hideInitial: PropTypes.bool,\n type: PropTypes.string\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { TransitionGroup, CSSTransition } from 'react-transition-group'\nimport { makeStyles } from 'tss-react/mui'\n\nconst useGrow = makeStyles()(theme => ({\n enter: {\n [theme.breakpoints.up('md')]: {\n opacity: 0,\n transformOrigin: '50% top',\n transform: 'scale(0)'\n }\n },\n enterActive: {\n [theme.breakpoints.up('md')]: {\n opacity: 1,\n transform: 'scale(1)',\n transition: 'all 200ms ease-in-out'\n }\n },\n exit: {\n [theme.breakpoints.up('md')]: {\n opacity: 1,\n transformOrigin: '50% top',\n transform: 'scale(1)'\n }\n },\n exitActive: {\n [theme.breakpoints.up('md')]: {\n opacity: 0,\n transform: 'scale(0)',\n transition: 'all 200ms ease-in-out'\n }\n }\n}))\n\nconst useFadeSlow = makeStyles()({\n enter: {\n opacity: 0\n },\n enterActive: {\n opacity: 1,\n transition: 'all 750ms ease-in-out'\n },\n appear: {\n opacity: 0\n },\n appearActive: {\n opacity: 1,\n transition: 'all 750ms ease-in-out'\n },\n exit: {\n opacity: 1\n },\n exitActive: {\n opacity: 0,\n transition: 'all 750ms ease-in-out'\n }\n})\n\nconst useFadeUp = makeStyles()({\n enter: {\n opacity: 0,\n transform: 'translateY(30px)'\n },\n enterActive: {\n opacity: 1,\n transform: 'translateY(0)',\n transition: 'all 230ms ease-in-out'\n },\n appear: {\n opacity: 0,\n transform: 'translateY(30px)'\n },\n appearActive: {\n opacity: 1,\n transform: 'translateY(0)',\n transition: 'all 230ms ease-in-out'\n },\n exit: {\n opacity: 1,\n transform: 'translateY(0)'\n },\n exitActive: {\n opacity: 0,\n transform: 'translateY(30px)',\n transition: 'all 230ms ease-in-out'\n }\n})\n\nconst useFade = makeStyles()({\n enter: {\n opacity: 0\n },\n enterActive: {\n opacity: 1,\n transition: 'all 250ms ease-in-out'\n },\n appear: {\n opacity: 0\n },\n appearActive: {\n opacity: 1,\n transition: 'all 250ms ease-in-out'\n },\n exit: {\n opacity: 1\n },\n exitActive: {\n opacity: 0,\n transition: 'all 250ms ease-in-out'\n }\n})\n\nconst useRotateFade = makeStyles()({\n enter: {\n opacity: 0,\n transform: 'scale(0) rotate(360deg)'\n },\n enterActive: {\n opacity: 1,\n transition: 'all 250ms ease-in-out',\n transform: 'scale(1) rotate(0)'\n },\n appear: {\n opacity: 0,\n transform: 'scale(0) rotate(360deg)'\n },\n appearActive: {\n opacity: 1,\n transition: 'all 250ms ease-in-out',\n transform: 'scale(1) rotate(0)'\n },\n exit: {\n opacity: 1,\n transform: 'scale(1) rotate(0)'\n },\n exitActive: {\n opacity: 0,\n transition: 'all 250ms ease-in-out',\n transform: 'scale(0) rotate(360deg)'\n }\n})\n\nconst useSlideFadeDown = makeStyles()({\n enter: {\n opacity: 0,\n transform: 'translateY(-50px)'\n },\n enterActive: {\n opacity: 1,\n transition: 'all 250ms ease-in-out',\n transform: 'translateY(0)'\n },\n appear: {\n opacity: 0,\n transform: 'translateY(-50px)'\n },\n appearActive: {\n opacity: 1,\n transition: 'all 250ms ease-in-out',\n transform: 'translateY(0)'\n },\n exit: {\n opacity: 1,\n transform: 'translateY(0)'\n },\n exitActive: {\n opacity: 0,\n transition: 'all 250ms ease-in-out',\n transform: 'translateY(-50px)'\n }\n})\n\nconst useSlideFadeRight = makeStyles()({\n enter: {\n opacity: 0,\n transform: 'translateX(50px)'\n },\n enterActive: {\n opacity: 1,\n transition: 'all 500ms ease-in-out',\n transform: 'translateX(0)'\n },\n appear: {\n opacity: 0,\n transform: 'translateX(50px)'\n },\n appearActive: {\n opacity: 1,\n transition: 'all 500ms ease-in-out',\n transform: 'translateX(0)'\n },\n exit: {\n opacity: 1,\n transform: 'translateX(0)'\n },\n exitActive: {\n opacity: 0,\n transition: 'all 250ms ease-in-out',\n transform: 'translateX(50px)'\n }\n})\n\nconst useSlideFade = makeStyles()({\n enter: {\n opacity: 0,\n transform: 'translateY(50px)'\n },\n enterActive: {\n opacity: 1,\n transition: 'all 250ms ease-in-out',\n transform: 'translateY(0)'\n },\n appear: {\n opacity: 0,\n transform: 'translateY(50px)'\n },\n appearActive: {\n opacity: 1,\n transition: 'all 250ms ease-in-out',\n transform: 'translateY(0)'\n },\n exit: {\n opacity: 1,\n transform: 'translateY(0)'\n },\n exitActive: {\n opacity: 0,\n transition: 'all 250ms ease-in-out',\n transform: 'translateY(50px)'\n }\n})\n\nconst TransitionComponent = props => {\n const { classes: grow } = useGrow()\n const { classes: fadeSlow } = useFadeSlow()\n const { classes: fade } = useFade()\n const { classes: fadeUp } = useFadeUp()\n const { classes: rotateFade } = useRotateFade()\n const { classes: slideFadeDown } = useSlideFadeDown()\n const { classes: slideFade } = useSlideFade()\n const { classes: slideFadeRight } = useSlideFadeRight()\n\n const { children, type, useKeys } = props\n let theme = grow\n let enter = 250\n let exit = 250\n\n if (type === 'fade') {\n theme = fade\n }\n\n if (type === 'fadeSlow') {\n enter = 750\n exit = 750\n theme = fadeSlow\n }\n\n if (type === 'fadeUp') {\n theme = fadeUp\n }\n\n if (type === 'slideFade') {\n theme = slideFade\n }\n\n if (type === 'slideFadeDown') {\n theme = slideFadeDown\n }\n\n if (type === 'rotateFade') {\n theme = rotateFade\n }\n\n if (type === 'slideFadeRight') {\n theme = slideFadeRight\n }\n\n let items = children\n\n if (!children) {\n items = []\n } else if (!children.map) {\n items = [children]\n }\n\n return (\n \n {\n items.map((item, index) => (\n \n {item}\n \n ))\n }\n \n )\n}\n\nTransitionComponent.propTypes = {\n children: PropTypes.any,\n useKeys: PropTypes.bool,\n type: PropTypes.string\n}\n\nexport default TransitionComponent\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport KeyboardBackspaceIcon from '@mui/icons-material/KeyboardBackspace'\nimport MenuIcon from '@mui/icons-material/Menu'\nimport { makeStyles } from 'tss-react/mui'\nimport { keyframes } from 'tss-react'\n\nimport { IconButton } from 'containers/themed'\n\nimport { AppBar as MuiAppBar, Toolbar, Fade } from '@mui/material'\n\nconst useStyles = makeStyles()({\n appBar: {\n zIndex: '200 !important'\n },\n noShadow: {\n boxShadow: 'none !important'\n },\n fadeIn: {\n animation: `${keyframes`\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n `} 500ms;`\n },\n title: {\n fontSize: '15pt',\n marginLeft: 24,\n marginRight: 24\n },\n spacer: {\n flex: 1\n },\n messageBar: {\n display: 'flex',\n justifyContent: 'center'\n },\n hiddenAppBar: {\n visibility: 'hidden'\n },\n button: {\n marginLeft: -12,\n marginRight: -12\n }\n})\n\nexport default function AppBar({\n isBackButtonPage,\n onNavigationToggle,\n message,\n back,\n onBackClick,\n color,\n title,\n actions,\n children\n}) {\n const { classes } = useStyles()\n\n const renderBurger = () => {\n if (message) {\n return null\n }\n\n if (isBackButtonPage) {\n return (\n (onBackClick ? onBackClick() : back())}\n size=\"large\"\n >\n \n \n )\n }\n\n return (\n onNavigationToggle()}\n size=\"large\"\n >\n \n \n )\n }\n\n const renderContentBar = () => {\n if (message) {\n return (\n \n \n \n
\n \n \n \n )\n }\n\n let titleComp = null\n\n if (title) {\n titleComp = (
{title}
)\n }\n\n return (\n \n \n {renderBurger()}\n {titleComp}\n {children ||
}\n
\n {actions}\n \n \n )\n }\n\n return (\n <>\n {renderContentBar()}\n\n \n \n \n \n )\n}\n\nAppBar.propTypes = {\n children: PropTypes.any,\n isBackButtonPage: PropTypes.bool.isRequired,\n title: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.object\n ]),\n color: PropTypes.string,\n message: PropTypes.any,\n actions: PropTypes.oneOfType([\n PropTypes.array,\n PropTypes.object\n ]),\n\n onNavigationToggle: PropTypes.func.isRequired,\n back: PropTypes.func.isRequired,\n onBackClick: PropTypes.func\n}\n","import { connect } from 'react-redux'\n\nimport AppBar from 'components/app_bar'\nimport { toggleNavigation, logoutRequestStart } from 'actions/app'\nimport { back } from 'actions/navigation'\nimport { getI18n, getUser, isBackButtonPage, getAppBarMessage, getWhitelabelTheme } from 'selectors'\n\nconst getColor = state => (getWhitelabelTheme(state) === 'plotlights' ? 'inherit' : 'primary')\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n user: getUser(state),\n isBackButtonPage: isBackButtonPage(state),\n message: getAppBarMessage(state),\n color: getColor(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onLogout: logoutRequestStart,\n onNavigationToggle: toggleNavigation,\n back\n }\n)(AppBar)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { connect } from 'react-redux'\nimport { Map } from 'immutable'\n\nimport { getCapabilities, getViewConfigCapabilities } from 'selectors'\n\nconst CapSafeComp = (Comp, props, capNames, fallBackComp = null) => {\n const allowed = capNames.some(val => {\n if (val === undefined) {\n return false\n }\n\n if (typeof val === 'string') {\n return props.caps.get(val)\n }\n\n return val.every(capName => props.caps.get(capName))\n })\n\n if (!allowed) {\n return fallBackComp || props.fallBackComp || null\n }\n\n const compProps = { ...props }\n delete compProps.caps\n delete compProps.viewConfigCaps\n delete compProps.dispatch\n delete compProps.fallBackComp\n\n return \n}\n\nCapSafeComp.defaultProps = {\n caps: Map({})\n}\n\nCapSafeComp.propTypes = {\n caps: PropTypes.instanceOf(Map),\n fallBackComp: PropTypes.any\n}\n\nexport default function CapSafe(Comp, ...capNames) {\n const WrapperComponent = props => CapSafeComp(Comp, props, capNames)\n WrapperComponent.displayName = 'CapSafe'\n\n WrapperComponent.defaultProps = {\n caps: Map({})\n }\n\n WrapperComponent.propTypes = {\n caps: PropTypes.instanceOf(Map)\n }\n\n const mapStateToProps = state => ({\n caps: getCapabilities(state)\n })\n\n return connect(mapStateToProps)(WrapperComponent)\n}\n\nexport function ViewConfigCapSafe(Comp, key, fallBackComp) {\n const WrapperComponent = props => {\n const capNames = props.viewConfigCaps.get(key).toJS()\n\n return CapSafeComp(Comp, props, capNames, fallBackComp)\n }\n\n WrapperComponent.displayName = 'ViewConfigCapSafe'\n\n WrapperComponent.defaultProps = {\n viewConfigCaps: Map({}),\n caps: Map({})\n }\n\n WrapperComponent.propTypes = {\n viewConfigCaps: PropTypes.instanceOf(Map),\n caps: PropTypes.instanceOf(Map)\n }\n\n const mapStateToProps = state => ({\n viewConfigCaps: getViewConfigCapabilities(state),\n caps: getCapabilities(state)\n })\n\n return connect(mapStateToProps)(WrapperComponent)\n}\n","import { connect } from 'react-redux'\n\nimport CenterMessage from 'components/center_message'\n\nimport { getColors } from 'selectors'\n\nconst mapStateToProps = state => ({\n colors: getColors(state)\n})\n\nexport default connect(mapStateToProps)(CenterMessage)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport SaveAltIcion from '@mui/icons-material/SaveAlt'\nimport { makeStyles } from 'tss-react/mui'\nimport { Button, IconButton } from 'containers/themed'\n\nimport { MenuItem } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n disabled: {\n color: `${theme.palette.grey[300]} !important`,\n cursor: 'default !important'\n }\n}))\n\nexport default function ExportMenu(props) {\n const { classes } = useStyles()\n const {\n color,\n disabled,\n i18n,\n icon,\n iconButton,\n label,\n menu,\n onBeforeClick,\n onClick,\n variant,\n payload\n } = props\n\n let className = ''\n\n if (disabled) {\n className = classes.disabled\n }\n\n if (menu) {\n return (\n {\n if (onBeforeClick) {\n onBeforeClick()\n }\n\n if (!disabled) {\n onClick(payload)\n }\n }}\n >\n {label || i18n.get('export')}\n \n )\n }\n\n let Comp = Button\n\n if (iconButton) {\n Comp = IconButton\n }\n\n return (\n {\n if (onBeforeClick) {\n onBeforeClick()\n }\n\n if (!disabled) {\n onClick(payload)\n }\n }}\n >\n {iconButton && icon}\n {iconButton ? null : label || i18n.get('export')}\n \n )\n}\n\nExportMenu.defaultProps = {\n menu: false,\n color: 'secondary',\n variant: 'contained',\n icon: ,\n iconButton: false\n}\n\nExportMenu.propTypes = {\n i18n: PropTypes.object.isRequired,\n disabled: PropTypes.bool.isRequired,\n menu: PropTypes.bool,\n label: PropTypes.string,\n color: PropTypes.string,\n variant: PropTypes.string,\n icon: PropTypes.any,\n iconButton: PropTypes.bool,\n payload: PropTypes.string,\n\n onClick: PropTypes.func.isRequired,\n onBeforeClick: PropTypes.func\n}\n","import { connect } from 'react-redux'\n\nimport ExportMenu from 'components/export_menu'\nimport { showExportDialog } from 'actions/export'\n\nimport { getExportOptions, getNewsIdsForExport, getI18n } from 'selectors'\n\nconst mapStateToProps = (state, { disabled }) => ({\n disabled: disabled !== undefined ? disabled : getExportOptions(state).get('isRunning') || !getNewsIdsForExport(state).size,\n i18n: getI18n(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClick: showExportDialog\n }\n)(ExportMenu)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { fromJS } from 'immutable'\nimport isEmail from 'validator/lib/isEmail'\n\nimport { Input, RaisedPrimaryButton, Dialog, Button } from 'containers/themed'\nimport { CardContent } from '@mui/material'\n\nimport AlphaNavigation from './alpha_navigation'\n\nconst maxRenderSize = 350\n\nexport default function MailAutocomplete({ i18n, disabled, onChange, value, variant }) {\n const [newValue, setNewValue] = useState('')\n const [invalidAddresses, setInvalidAddresses] = useState([])\n const [deleteConfState, setDeleteConfState] = useState({ open: false, index: null })\n\n const values = fromJS(value)\n\n const alpha = values.map(v => v.slice(0, 1).toUpperCase()).toSet().toList().sortBy(a => a)\n const groups = values.groupBy(v => v.slice(0, 1).toUpperCase())\n\n const handleSubmit = vv => {\n let result = vv.map(v => v.trim())\n result = result.filter(v => v.length)\n\n let invalid = []\n\n if (result.length <= maxRenderSize) {\n invalid = result.filter(v => !isEmail(v))\n result = result.filter(v => v && isEmail(v))\n }\n\n setNewValue('')\n setInvalidAddresses(invalid)\n\n onChange(result)\n }\n\n const closeConfDialog = () => setDeleteConfState({ open: false, index: null })\n\n const renderActions = () => {\n const actions = [\n \n {i18n.get('no')}\n ,\n {\n handleSubmit(value.filter(v => v !== deleteConfState.index))\n closeConfDialog()\n }}\n >\n {i18n.get('yes')}\n \n ]\n\n return actions\n }\n\n return (\n (\n
\n {Boolean(invalidAddresses.length) && (\n
\n {i18n.get('invalid_mail_addresses')}: {invalidAddresses}\n
\n )}\n
\n setNewValue(e.target.value)}\n variant={variant}\n />\n\n
\n
\n\n handleSubmit(newValue.split(/;|,|\\n/).concat(value))}\n >\n {i18n.get('add')}\n \n\n setDeleteConfState({ open: true, index })}\n />\n \n \n {i18n.get('delete_content')}\n \n \n
\n
\n )\n )\n}\n\nMailAutocomplete.defaultProps = {\n disabled: false\n}\n\nMailAutocomplete.propTypes = {\n onChange: PropTypes.func.isRequired,\n value: PropTypes.array.isRequired,\n disabled: PropTypes.bool,\n variant: PropTypes.string,\n\n i18n: PropTypes.object.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport MailAutocomplete from 'components/mail_autocomplete'\nimport { getI18n } from 'selectors'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state)\n})\n\nexport default connect(mapStateToProps)(MailAutocomplete)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()({\n newsguardInfo: {\n '&:hover': {\n opacity: 0.7\n },\n verticalAlign: 'inherit'\n },\n img: {\n height: 20,\n verticalAlign: 'inherit'\n }\n})\n\nexport default function NewsguardInfo({ rank, ranks, baseUrl, url }) {\n const { classes } = useStyles()\n const found = ranks.find(r => r.get('id') === rank)\n\n if (!found) {\n return null\n }\n\n if (url) {\n return (\n \n \n \n )\n }\n\n return (\n \n )\n}\n\nNewsguardInfo.propTypes = {\n rank: PropTypes.string,\n url: PropTypes.string,\n baseUrl: PropTypes.string.isRequired,\n ranks: PropTypes.instanceOf(List).isRequired\n}\n","import { connect } from 'react-redux'\n\nimport NewsguardInfo from 'components/newsguard_info'\n\nimport { getBaseUrl, getStaticNewsguardRanks } from 'selectors'\n\nconst mapStateToProps = state => ({\n baseUrl: getBaseUrl(state),\n ranks: getStaticNewsguardRanks(state)\n})\n\nexport default connect(mapStateToProps)(NewsguardInfo)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport VisibilityIcon from '@mui/icons-material/Visibility'\nimport VisibilityOffIcon from '@mui/icons-material/VisibilityOff'\nimport CheckIcon from '@mui/icons-material/Check'\nimport CloseIcon from '@mui/icons-material/Close'\nimport { makeStyles } from 'tss-react/mui'\nimport { InputAdornment, IconButton, LinearProgress } from '@mui/material'\nimport { red, green } from '@mui/material/colors'\n\nimport { Input } from 'containers/themed'\nimport TransitionComponent from 'components/transition_component'\n\nconst useStyles = makeStyles()({\n error: {\n color: red[500]\n },\n success: {\n color: green[500]\n },\n passwordPart: {\n display: 'flex',\n alignItems: 'center',\n marginLeft: 10\n },\n container: {\n position: 'relative'\n },\n 'container input': {\n height: 32\n }\n})\n\nexport default function PasswordInput(props) {\n const { classes } = useStyles()\n const [state, setState] = useState({\n type: 'password',\n strength: 0,\n color: 'secondary',\n label: props.i18n.get('password_weak'),\n hasNumber: false,\n hasChar: false,\n hasCapitalizedChar: false,\n has8Chars: false\n })\n\n const handleEyeClick = () => {\n const { type } = state\n setState(prevState => ({ ...prevState, type: (type === 'password' ? 'text' : 'password') }))\n }\n\n const handleChange = value => {\n const { i18n, onChange } = props\n\n const newState = {\n strength: 0,\n hasNumber: false,\n hasChar: false,\n hasCapitalizedChar: false,\n has8Chars: false\n }\n\n if (value.match(/\\d/)) {\n newState.strength += 25\n newState.hasNumber = true\n }\n\n if (value.match(/[a-z]/)) {\n newState.strength += 25\n newState.hasChar = true\n }\n\n if (value.match(/[A-Z]/)) {\n newState.strength += 25\n newState.hasCapitalizedChar = true\n }\n\n if (value.length >= 8) {\n newState.strength += 25\n newState.has8Chars = true\n }\n\n newState.label = i18n.get('password_very_strong')\n newState.color = 'primary'\n\n if (newState.strength <= 25) {\n newState.label = i18n.get('password_weak')\n newState.color = 'secondary'\n }\n\n if (newState.strength === 50) {\n newState.label = i18n.get('password_medium')\n newState.color = 'secondary'\n }\n\n if (newState.strength === 75) {\n newState.label = i18n.get('password_strong')\n newState.color = 'secondary'\n }\n\n setState(prevState => ({ ...prevState, ...newState }))\n\n onChange(value)\n }\n\n const passwordPartClass = flag => {\n if (flag) {\n return `${classes.passwordPart} ${classes.success}`\n }\n\n return `${classes.passwordPart} ${classes.error}`\n }\n\n const passwordPartIcon = flag => {\n if (flag) {\n return (\n \n )\n }\n\n return (\n \n )\n }\n\n const renderStrength = () => {\n const { i18n, value, validateStrength } = props\n const { label, color, strength, hasNumber, hasChar, hasCapitalizedChar, has8Chars } = state\n\n if (!value || validateStrength !== true) {\n return null\n }\n\n return (\n <>\n
\n {i18n.get('password_strength')}: {label}\n \n

\n {i18n.get('password_contains')}:\n
    \n
  • \n {passwordPartIcon(hasNumber)}\n {i18n.get('password_has_number')}\n
  • \n
  • \n {passwordPartIcon(hasChar)}\n {i18n.get('password_has_char')}\n
  • \n
  • \n {passwordPartIcon(hasCapitalizedChar)}\n {i18n.get('password_has_capitalized_char')}\n
  • \n
  • \n {passwordPartIcon(has8Chars)}\n {i18n.get('password_has_8_chars')}\n
  • \n
\n \n )\n }\n\n const { type } = state\n const newProps = { ...props }\n delete newProps.i18n\n delete newProps.onChange\n delete newProps.validateStrength\n delete newProps.dispatch\n\n return (\n
\n handleChange(event.target.value)}\n onPaste={() => null}\n InputProps={{\n endAdornment: (\n \n \n {type === 'text' ? : }\n \n \n )\n }}\n {...newProps}\n />\n\n \n {renderStrength()}\n \n
\n )\n}\n\nPasswordInput.propTypes = {\n i18n: PropTypes.object.isRequired,\n value: PropTypes.string,\n validateStrength: PropTypes.bool,\n\n onChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport PasswordInput from 'components/password_input'\n\nimport { getI18n } from 'selectors'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state)\n})\n\nexport default connect(mapStateToProps)(PasswordInput)\n","/* global window */\nimport React, { useEffect } from 'react'\nimport PropTypes from 'prop-types'\n\nexport default function LinkedInPopUp({ params }) {\n useEffect(() => {\n if (params.error) {\n const errorMessage = params.error_description || 'Login failed. Please try again.'\n /* eslint-disable no-unused-expressions */\n window.opener && window.opener.postMessage(\n { error: params.error, state: params.state, errorMessage, from: 'Linked In' },\n window.location.origin\n )\n\n // if (params.error === 'user_cancelled_login') {\n // window.close()\n // }\n }\n\n if (params.code) {\n window.opener && window.opener.postMessage({ code: params.code, state: params.state, from: 'Linked In' }, window.location.origin)\n }\n\n if (params.linkedin_redirect_url) {\n window.location.href = params.linkedin_redirect_url\n }\n })\n\n return (\n <>\n Code: {params.code}\n

\n Error: {params.error && params.error_description}\n \n )\n}\n\nLinkedInPopUp.propTypes = {\n params: PropTypes.object.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport LinkedInPopUp from 'components/administration/external_accounts/linked_in_popup'\n\nimport {\n getQueryParamsFromUrl\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n params: getQueryParamsFromUrl(state)\n})\n\nexport default connect(mapStateToProps, {})(LinkedInPopUp)\n","import React, { useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { connect } from 'react-redux'\n\nimport { selectViewConfigPreset } from 'actions/news'\nimport { getGroupingSettingId } from 'selectors'\n\nexport default function NewsView(Comp, presetName, options = {}) {\n const WrapperComponent = ({ groupingSettingId, selectPreset, ...props }) => {\n useEffect(() => {\n let selectedPresetName = presetName\n\n if (groupingSettingId && presetName.startsWith('earned')) {\n switch (groupingSettingId) {\n case 1:\n selectedPresetName = 'earned'\n break\n case 2:\n selectedPresetName = 'earnedByCode'\n break\n case 3:\n selectedPresetName = 'earnedByCustomTag'\n break\n default:\n break\n }\n } else if (groupingSettingId === 4 && presetName === 'searchPool') {\n selectedPresetName = 'searchPoolByNewsguardRank'\n }\n\n selectPreset({\n name: selectedPresetName,\n ...options\n })\n }, [])\n\n return \n }\n\n WrapperComponent.displayName = `NewsView(${Comp.name || Comp.displayName}[${presetName}])`\n\n WrapperComponent.propTypes = {\n groupingSettingId: PropTypes.number,\n selectPreset: PropTypes.func.isRequired\n }\n\n const mapStateToProps = state => ({\n groupingSettingId: getGroupingSettingId(state)\n })\n\n return connect(\n mapStateToProps,\n {\n selectPreset: selectViewConfigPreset\n }\n )(WrapperComponent)\n}\n","import React from 'react'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { StaggeredList, StaggeredListItem } from 'components/staggered_list'\n\nimport NotificationsButton from 'containers/notifications/NotificationsButton'\n\nconst useStyles = makeStyles()({\n actionsWrapper: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center'\n },\n actionIcon: {\n color: '#ffffff'\n }\n})\n\nconst Actions = () => {\n const { classes } = useStyles()\n const actions = []\n\n actions.push(\n \n )\n\n return (\n \n
\n {actions.map((action, index) => (\n \n {action}\n \n ))}\n
\n
\n )\n}\n\nexport default Actions\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport WarningIcon from '@mui/icons-material/Warning'\nimport { Popover, Typography, Button } from '@mui/material'\nimport { red } from '@mui/material/colors'\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()(theme => ({\n popover: {\n padding: theme.spacing(2)\n },\n button: {\n color: red[500]\n },\n hintWrapper: {\n marginTop: '25px',\n marginBottom: '25px'\n }\n}))\n\nexport default function RestrictionHint({\n mediaReviewCodes,\n channels,\n countries,\n hasCodeRestriction,\n hasChannelRestriction,\n hasCountryRestriction\n}) {\n const [anchorEl, setAnchorEl] = useState(null)\n const { classes } = useStyles()\n const i18n = useI18n()\n\n if (!(hasCodeRestriction || hasChannelRestriction || hasCountryRestriction)) {\n return null\n }\n\n const handleClick = event => setAnchorEl(event.currentTarget)\n const handleClose = () => setAnchorEl(null)\n\n return (\n
\n \n  {i18n.get('restriction_hint')}\n \n\n \n \n {i18n.get('restriction_hint_headline')}\n \n\n
\n\n {hasCodeRestriction && (\n <>\n \n {i18n.get('media_review_codes')}:\n \n {mediaReviewCodes.map(c => (\n
\n {c.get('name')}\n
\n ))}\n \n )}\n\n {hasChannelRestriction && (\n <>\n
\n \n {i18n.get('channels')}:\n \n {channels.map(c => (\n
\n {c.get('name')}\n
\n ))}\n \n )}\n\n {hasCountryRestriction && (\n <>\n
\n \n {i18n.get('countries')}:\n \n {countries.map(c => (\n
\n {c.get('name')}\n
\n ))}\n \n )}\n \n
\n )\n}\n\nRestrictionHint.propTypes = {\n mediaReviewCodes: PropTypes.instanceOf(List).isRequired,\n channels: PropTypes.instanceOf(List).isRequired,\n countries: PropTypes.instanceOf(List).isRequired,\n hasCodeRestriction: PropTypes.bool.isRequired,\n hasChannelRestriction: PropTypes.bool.isRequired,\n hasCountryRestriction: PropTypes.bool.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport RestrictionHint from 'components/restriction_hint'\nimport {\n getRestrictedStaticMediaReviewCodes,\n getRestrictedStaticChannels,\n getRestrictedStaticCountries,\n getNewsAllowedCodeIds,\n getNewsAllowedChannelIds,\n getNewsAllowedCountryIds\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n mediaReviewCodes: getRestrictedStaticMediaReviewCodes(state),\n channels: getRestrictedStaticChannels(state),\n countries: getRestrictedStaticCountries(state),\n hasCodeRestriction: !getNewsAllowedCodeIds(state).isEmpty(),\n hasChannelRestriction: !getNewsAllowedChannelIds(state).isEmpty(),\n hasCountryRestriction: !getNewsAllowedCountryIds(state).isEmpty()\n})\n\nexport default connect(mapStateToProps)(RestrictionHint)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport DeleteIcon from '@mui/icons-material/DeleteForever'\nimport EditIcon from '@mui/icons-material/Edit'\nimport PlaylistAddIcon from '@mui/icons-material/PlaylistAdd'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { IconButton } from 'containers/themed'\nimport DummyCardIcon from 'components/dummy_card_icon'\nimport Card from 'components/card'\n\nimport masterConfig from 'static/master_config'\n\nimport { Typography, Tooltip, CardContent, CardActions, CardActionArea } from '@mui/material'\n\nconst useStyles = makeStyles()({\n cardMedia: {\n minHeight: 200\n },\n images: {\n display: 'flex',\n flexWrap: 'wrap'\n },\n image: {\n width: '50%',\n height: 'calc(200px / 3)'\n },\n disabled: {\n opacity: 0.2\n }\n})\n\nexport default function Group({\n i18n,\n group,\n disabled,\n onDeleteClick,\n onEditClick,\n onAddCustomTagClick,\n onFilterClick,\n filterBySelectedCustomTagGroup\n}) {\n const { classes } = useStyles()\n const getCustomTags = () => group.get('customTagsCustomTagGroups').map(c => c.get('customTag'))\n\n const handleClick = onClick => () => onClick(group)\n\n const renderImages = () => {\n const customTags = getCustomTags()\n\n const images = customTags.sortBy(c => (c.get('photo') ? 0 : 1)).slice(0, 6)\n\n return (\n
\n {images.map(c => (\n \n ))}\n
\n )\n }\n\n const renderInfo = () => {\n const customTags = getCustomTags()\n\n if (customTags.isEmpty()) {\n return (\n \n {i18n.get('no_custom_tags_in_group')}\n \n )\n }\n\n return (\n \n {i18n.get('custom_tags_count', { n: customTags.size })}\n \n )\n }\n\n return (\n \n onFilterClick(group.get('id'))}>\n
\n {renderImages()}\n
\n \n \n {group.get('name')}\n \n\n {renderInfo()}\n \n
\n\n \n \n filterBySelectedCustomTagGroup(group)}\n size=\"large\"\n />\n \n \n
\n \n \n \n
\n
\n \n
\n \n \n \n
\n
\n \n
\n onAddCustomTagClick(group.get('id'))}\n size=\"large\"\n >\n \n \n
\n
\n
\n
\n )\n}\n\nGroup.propTypes = {\n i18n: PropTypes.object.isRequired,\n group: PropTypes.instanceOf(Map),\n disabled: PropTypes.bool.isRequired,\n\n onDeleteClick: PropTypes.func.isRequired,\n onEditClick: PropTypes.func.isRequired,\n onAddCustomTagClick: PropTypes.func.isRequired,\n onFilterClick: PropTypes.func.isRequired,\n filterBySelectedCustomTagGroup: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Group from 'components/custom_tags/group'\nimport {\n showDeleteGroupDialog,\n showGroupDialog,\n showAssignCustomTagsToGroupDialog,\n setFilteredGroupId,\n filterBySelectedCustomTagGroup\n} from 'actions/custom_tags'\nimport { getI18n, getFilteredCustomTagGroupId } from 'selectors'\n\nconst mapStateToProps = (state, { group }) => ({\n i18n: getI18n(state),\n group,\n disabled: getFilteredCustomTagGroupId(state) !== null && getFilteredCustomTagGroupId(state) !== group.get('id')\n})\n\nexport default connect(\n mapStateToProps,\n {\n onDeleteClick: showDeleteGroupDialog,\n onEditClick: showGroupDialog,\n onAddCustomTagClick: showAssignCustomTagsToGroupDialog,\n onFilterClick: setFilteredGroupId,\n filterBySelectedCustomTagGroup\n }\n)(Group)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport Group from 'containers/custom_tags/Group'\nimport { StaggeredListItem } from 'components/staggered_list'\nimport { FlexList, FlexListItem } from 'components/flex_list'\nimport NewItemCard from 'components/new_item_card'\nimport WithI18n from 'containers/WithI18n'\n\nconst useStyles = makeStyles()({\n groups: {\n width: '102%'\n },\n newItem: {\n '& > div': {\n height: '100%',\n '& > div': {\n height: '100%'\n }\n }\n }\n})\n\nconst GroupMode = ({ i18n, groups, onNewClick }) => {\n const { classes } = useStyles()\n\n return (\n \n \n onNewClick()}\n label={i18n.get('create_pin_board_group')}\n />\n \n\n {groups.map((group, index) => (\n \n \n \n \n \n ))}\n \n )\n}\n\nGroupMode.propTypes = {\n i18n: PropTypes.object.isRequired,\n groups: PropTypes.instanceOf(List).isRequired,\n\n onNewClick: PropTypes.func.isRequired\n}\n\nexport default WithI18n()(GroupMode)\n","import { connect } from 'react-redux'\n\nimport GroupMode from 'components/custom_tags/group_mode'\nimport { getCustomTagGroups } from 'selectors'\nimport { showGroupDialog } from 'actions/custom_tags'\n\nconst mapStateToProps = state => ({\n groups: getCustomTagGroups(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onNewClick: showGroupDialog\n }\n)(GroupMode)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Icon, Accordion, AccordionSummary, AccordionDetails, Typography } from '@mui/material'\nimport { makeStyles } from 'tss-react/mui'\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\n\nimport { createLoadable } from 'utils/loadable'\n\nimport NrxProgressBar from 'components/nrx_progress_bar'\nimport ContentContainer from 'components/content_container'\nimport ErrorBoundary from 'components/error_boundary'\nimport Actions from 'components/custom_tags/actions'\n\nimport AppBar from 'containers/AppBar'\nimport RestrictionHint from 'containers/RestrictionHint'\nimport GroupMode from 'containers/custom_tags/GroupMode'\n\nconst useStyles = makeStyles()(theme => ({\n centered: {\n position: 'absolute',\n height: '100%',\n width: '100%',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n },\n customTagsViewIcon: {\n fontSize: '30px !important',\n cursor: 'pointer',\n [theme.breakpoints.only('xs')]: {\n display: 'none'\n }\n },\n customTagsView: {\n [theme.breakpoints.only('xs')]: {\n paddingLeft: '1em'\n }\n }\n}))\n\nconst CustomTagMode = createLoadable(() => (\n import(/* webpackChunkName: \"CustomTagsCustomTagMode\" */ 'containers/custom_tags/CustomTagMode')\n))\nconst CustomTagDialog = createLoadable(() => (\n import(/* webpackChunkName: \"CustomTagsCustomTagDialog\" */ 'containers/custom_tags/CustomTagDialog')\n))\nconst RemoveDialog = createLoadable(() => (\n import(/* webpackChunkName: \"CustomTagsRemoveDialog\" */ 'containers/custom_tags/RemoveDialog')\n))\nconst EmptyCustomTagDialog = createLoadable(() => (\n import(/* webpackChunkName: \"CustomTagsEmptyCustomTagDialog\" */ 'containers/custom_tags/EmptyCustomTagDialog')\n))\nconst EditGroupDialog = createLoadable(() => (\n import(/* webpackChunkName: \"CustomTagsEditGroupDialog\" */ 'containers/custom_tags/EditGroupDialog')\n))\nconst DeleteGroupDialog = createLoadable(() => (\n import(/* webpackChunkName: \"CustomTagsDeleteGroupDialog\" */ 'containers/custom_tags/DeleteGroupDialog')\n))\nconst AssignCustomTagsToGroupDialog = createLoadable(() => (\n import(/* webpackChunkName: \"CustomTagsAssignCustomTagsToGroupDialog\" */ 'containers/custom_tags/AssignCustomTagsToGroupDialog')\n))\n\nexport default function CustomTags({ i18n, loading, showRestrictionHint, showGroups, viewType, onViewChange }) {\n const { classes } = useStyles()\n\n const renderCustomTagsViewSwitch = () => {\n let listIconColor = 'disabled'\n let columnIconColor = 'secondary'\n\n if (viewType === 'list') {\n listIconColor = 'secondary'\n columnIconColor = 'disabled'\n }\n\n return (\n
\n onViewChange('list')}\n color={listIconColor}\n >\n list\n \n onViewChange('card')}\n color={columnIconColor}\n >\n view_column\n \n
\n )\n }\n\n return (\n <>\n }\n />\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {\n loading\n ?
\n : (\n \n {renderCustomTagsViewSwitch()}\n {(showGroups && viewType === 'card') && (\n \n }>\n \n {i18n.get('custom_tag_groups')}\n \n \n \n \n \n \n \n \n )}\n\n
\n {showRestrictionHint && }\n
\n\n \n \n \n
\n )\n }\n \n )\n}\n\nCustomTags.propTypes = {\n i18n: PropTypes.object.isRequired,\n loading: PropTypes.bool.isRequired,\n showRestrictionHint: PropTypes.bool.isRequired,\n showGroups: PropTypes.bool.isRequired,\n viewType: PropTypes.string.isRequired,\n\n onViewChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport { NewsPageModules } from 'static/constants'\n\nimport CustomTags from 'components/custom_tags'\nimport { getI18n, getCustomtagsToShoppingCartLoading, getViewConfigModuleName, getCustomTagsViewType } from 'selectors'\nimport { setCustomTagsViewType } from 'actions/custom_tags'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n loading: getCustomtagsToShoppingCartLoading(state),\n showRestrictionHint: getViewConfigModuleName(state) === NewsPageModules.NEWS,\n showGroups: getViewConfigModuleName(state) !== NewsPageModules.NEWS_POOL,\n viewType: getCustomTagsViewType(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onViewChange: setCustomTagsViewType\n }\n)(CustomTags)\n","/* global document */\nimport React, { useMemo, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport screenfull from 'screenfull'\nimport { useParams } from 'react-router-dom'\nimport { makeStyles } from 'tss-react/mui'\nimport { keyframes } from 'tss-react'\n\nimport { createLoadable } from 'utils/loadable'\nimport { Capabilities } from 'static/constants'\n\nimport AppBar from 'containers/AppBar'\nimport ContentContainer from 'components/content_container'\nimport CenterMessage from 'containers/CenterMessage'\nimport WithDevice from 'containers/WithDevice'\nimport WithI18n from 'containers/WithI18n'\nimport ErrorBoundary from 'components/error_boundary'\nimport TransitionComponent from 'components/transition_component'\nimport RestrictionHint from 'containers/RestrictionHint'\nimport { RaisedPrimaryButton } from 'containers/themed'\nimport CapSafe from 'containers/CapSafe'\n\nimport useDashboard from 'hooks/useDashboard'\n\nconst EditDialog = createLoadable(() => (\n import(/* webpackChunkName: \"DashboardEditDialog\" */ 'containers/dashboard/EditDialog')\n))\nconst DeleteDialog = createLoadable(() => (\n import(/* webpackChunkName: \"DashboardDeleteDialog\" */ 'containers/dashboard/DeleteDialog')\n))\nconst DrilldownDialog = createLoadable(() => (\n import(/* webpackChunkName: \"DashboardDrilldownDialog\" */ 'containers/dashboard/DrilldownDialog')\n))\nconst SavedDashboardDialog = createLoadable(() => (\n import(/* webpackChunkName: \"DashboardSavedDashboardDialog\" */ 'containers/saved_dashboard/Dialog')\n))\nconst DashboardCharts = createLoadable(() => (\n import(/* webpackChunkName: \"DashboardCharts\" */ 'containers/dashboard/DashboardCharts')\n))\nconst Actions = createLoadable(() => (\n import(/* webpackChunkName: \"DashboardActions\" */ 'containers/dashboard/actions/Actions')\n))\nconst Dropdown = createLoadable(() => (\n import(/* webpackChunkName: \"DashboardDropdown\" */ 'containers/dashboard/Dropdown')\n))\nconst AiChartAnalysisDialog = createLoadable(() => (\n import(/* webpackChunkName: \"DashboardAiChartAnalysisDialog\" */ 'containers/charts/AiChartAnalysisDialog')\n))\n\nconst resetBodyStyles = () => {\n document.body.style.removeProperty('overflow')\n document.body.style.removeProperty('width')\n document.body.style.removeProperty('height')\n}\n\nconst NewDashboardButton = CapSafe(RaisedPrimaryButton, Capabilities.HAS_DASHBOARD_EDITING_FEATURE)\n\nconst useStyles = makeStyles()(theme => ({\n presentationActions: {\n display: 'flex',\n width: '100%',\n justifyContent: 'center',\n alignItems: 'center',\n position: 'absolute',\n left: 0,\n zIndex: 300,\n color: theme.palette.grey[700],\n top: -3\n },\n presentationActionsContent: {\n animation: `${keyframes`\n 0% {\n opacity: 1;\n transform: scale(4) translateY(50px);\n },\n 30% {\n opacity: 1;\n transform: scale(4) translateY(50px);\n },\n 70% {\n opacity: 1;\n transform: scale(4) translateY(50px);\n },\n 100% {\n opacity: 0.1;\n }\n `} 10s;`,\n opacity: 0.1,\n borderRadius: '50%',\n '&:hover': {\n opacity: 1\n }\n },\n presentationActionsInfo: {\n display: 'flex',\n width: '100%',\n justifyContent: 'center',\n alignItems: 'center',\n position: 'absolute',\n left: 0,\n zIndex: 300,\n color: theme.palette.grey[700],\n top: 300,\n opacity: 0,\n fontSize: 36,\n textAlign: 'center',\n fontWeight: 500,\n animation: `${keyframes`\n 0% {\n opacity: 0;\n }\n 50% {\n opacity: 1;\n backgroundColor: ${theme.palette.grey[300]};\n }\n 100% {\n opacity: 0;\n }\n `} 8s;`\n },\n loading: {\n position: 'absolute',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '97%',\n width: '93%',\n [theme.breakpoints.only('xs')]: {\n height: '100%',\n width: '100%'\n }\n },\n lastEdit: {\n marginTop: '1%',\n display: 'flex',\n float: 'right'\n },\n centerMessage: {\n width: '100%',\n height: '100%'\n },\n dashboardContent: {\n overflow: 'hidden'\n },\n message: {\n animation: `${keyframes`\n 0% {\n opacity: 0;\n }\n 100%: {\n opacity: 1;\n }\n `} 10s;`\n }\n}))\n\nconst Dashboard = ({\n autoRefresh,\n dashboardId,\n dashboardName,\n config,\n device,\n hasDashboards,\n height,\n i18n,\n onExitFullscreen,\n onDashboardChange,\n onMount,\n onUnmount,\n onNewClick,\n width,\n hide\n}) => {\n const { classes } = useStyles()\n const { id: dashboardIdFromUrl } = useParams()\n\n useDashboard(config)\n\n useEffect(() => {\n if (autoRefresh && !screenfull.isFullscreen) {\n onExitFullscreen()\n }\n }, [screenfull.isFullscreen])\n\n useEffect(() => {\n onMount()\n\n return () => onUnmount()\n }, [onMount, onUnmount])\n\n useEffect(() => {\n onDashboardChange(dashboardIdFromUrl)\n }, [dashboardIdFromUrl])\n\n useEffect(() => {\n if (autoRefresh) {\n document.body.style.width = `${width}px`\n document.body.style.height = `${height}px`\n document.body.style.overflow = 'hidden'\n } else {\n resetBodyStyles()\n }\n\n return resetBodyStyles\n }, [autoRefresh])\n\n const title = useMemo(() => {\n if (device.get('lt-sm')) {\n return null\n }\n\n if (!dashboardId) {\n return i18n.get('dashboard')\n }\n\n return dashboardName\n }, [device.get('lt-sm'), dashboardId, dashboardName])\n\n return (\n <>\n \n \n \n \n \n\n {autoRefresh && (\n
\n
\n
\n \n
\n
\n\n
\n {i18n.get('refresh_every_five_minutes')}\n
\n
\n )}\n\n \n {!autoRefresh ? (\n }\n >\n \n \n ) : null}\n \n\n {!hide && (\n \n \n {!hasDashboards && (\n onNewClick()}\n >\n {i18n.get('new_dashboard')}\n \n ]}\n />\n )}\n\n {hasDashboards && !dashboardId && (\n
\n \n
\n )}\n\n {dashboardId && hasDashboards && (\n <>\n \n \n \n )}\n
\n
\n )}\n \n )\n}\n\nDashboard.propTypes = {\n i18n: PropTypes.object.isRequired,\n device: PropTypes.instanceOf(Map).isRequired,\n dashboardId: PropTypes.string,\n dashboardName: PropTypes.string,\n hasDashboards: PropTypes.bool.isRequired,\n autoRefresh: PropTypes.bool.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n config: PropTypes.instanceOf(Map),\n hide: PropTypes.bool.isRequired,\n\n onDashboardChange: PropTypes.func.isRequired,\n onMount: PropTypes.func.isRequired,\n onUnmount: PropTypes.func.isRequired,\n onNewClick: PropTypes.func.isRequired,\n onExitFullscreen: PropTypes.func.isRequired\n}\n\nexport default WithI18n()(WithDevice()(Dashboard))\n","import { connect } from 'react-redux'\n\nimport Dashboard from 'components/dashboard'\n\nimport {\n getSelectedDashboard,\n getDashboards,\n getDashboardIsEditing,\n getDashboardAutoRefresh,\n getWidth,\n getHeight,\n getSelectedDashboardConfig,\n getSavedDashboardShowDialog,\n getDashboardShowEditDialog\n} from 'selectors'\nimport { loadDashboard, stopAutoRefresh, toggleAutoRefresh, showEditDialog, startAutoRefresh } from 'actions/dashboard'\n\nconst mapStateToProps = state => {\n const selectedDashboard = getSelectedDashboard(state)\n\n return {\n dashboardId: selectedDashboard.get('id'),\n dashboardName: selectedDashboard.get('name'),\n config: getSelectedDashboardConfig(state),\n hasDashboards: !getDashboards(state).isEmpty(),\n isEditing: getDashboardIsEditing(state),\n autoRefresh: getDashboardAutoRefresh(state),\n width: getWidth(state),\n height: getHeight(state),\n hide: getSavedDashboardShowDialog(state) || getDashboardShowEditDialog(state)\n }\n}\n\nexport default connect(\n mapStateToProps,\n {\n onDashboardChange: loadDashboard,\n onMount: startAutoRefresh,\n onUnmount: stopAutoRefresh,\n onNewClick: showEditDialog,\n onExitFullscreen: toggleAutoRefresh\n }\n)(Dashboard)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport copyToClipboard from 'copy-to-clipboard'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { CardActions, CardHeader, CardContent, Tooltip } from '@mui/material'\nimport DeleteIcon from '@mui/icons-material/DeleteOutline'\nimport EditIcon from '@mui/icons-material/Edit'\nimport ContentCopyIcon from '@mui/icons-material/ContentCopy'\n\nimport Card from 'components/card'\nimport DummyCardIcon from 'components/dummy_card_icon'\n\nimport WithI18n from 'containers/WithI18n'\nimport { IconButton } from 'containers/themed'\n\nimport imageLinks from 'static/image_links'\n\nconst useStyles = makeStyles()({\n media: {\n height: 200\n },\n spacer: {\n flex: 1\n }\n})\n\nconst MailingList = ({ mailingList, i18n, onEditClick, onRemoveClick }) => {\n const { classes } = useStyles()\n\n const onCopyRecipientsClick = () => {\n const recipients = mailingList.get('recipients').toJS()\n\n copyToClipboard(recipients.join(', '))\n }\n\n return (\n \n
\n \n
\n\n \n\n \n {mailingList.get('recipients').size} {i18n.get('recipients')}\n \n\n \n \n\n \n onCopyRecipientsClick()}\n size=\"large\"\n >\n \n \n \n\n \n onEditClick(mailingList)}\n size=\"large\"\n >\n \n \n \n\n \n onRemoveClick(mailingList)}\n size=\"large\"\n >\n \n \n \n \n
\n )\n}\n\nMailingList.propTypes = {\n i18n: PropTypes.object.isRequired,\n mailingList: PropTypes.instanceOf(Map).isRequired,\n\n onEditClick: PropTypes.func.isRequired,\n onRemoveClick: PropTypes.func.isRequired\n}\n\nexport default WithI18n()(MailingList)\n","import { connect } from 'react-redux'\n\nimport MailingList from 'components/administration/mailing_lists/mailing_list'\n\nimport {\n showMailingListDialog,\n showRemoveMailingListDialog\n} from 'actions/mailing_lists'\n\nconst mapStateToProps = (state, { mailingList }) => ({\n mailingList\n})\n\nexport default connect(\n mapStateToProps,\n {\n onEditClick: showMailingListDialog,\n onRemoveClick: showRemoveMailingListDialog\n }\n)(MailingList)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nimport AppBar from 'containers/AppBar'\nimport ContentContainer from 'components/content_container'\nimport EditDialog from 'containers/administration/mailing_lists/dialogs/EditDialog'\nimport RemoveDialog from 'containers/administration/mailing_lists/dialogs/RemoveDialog'\nimport { StaggeredListItem } from 'components/staggered_list'\nimport { FlexList, FlexListItem } from 'components/flex_list'\nimport NewItemCard from 'components/new_item_card'\nimport MailingList from 'containers/administration/mailing_lists/MailingList'\n\nimport WithI18n from 'containers/WithI18n'\n\nconst useStyles = makeStyles()({\n content: {\n paddingTop: 10\n },\n container: {\n marginTop: 30\n }\n})\n\nconst MailingLists = ({\n i18n,\n mailingLists,\n onNewClick\n}) => {\n const { classes } = useStyles()\n const renderNewCard = () => (\n \n onNewClick()}\n />\n \n )\n\n const renderContent = () => mailingLists.valueSeq().map((mailingList, listIndex) => (\n \n \n \n \n \n ))\n\n return (\n
\n \n\n \n \n {renderNewCard()}\n \n \n {renderContent()}\n \n \n\n \n \n
\n )\n}\n\nMailingLists.propTypes = {\n i18n: PropTypes.object.isRequired,\n mailingLists: PropTypes.object.isRequired,\n\n onNewClick: PropTypes.func.isRequired\n}\n\nexport default WithI18n()(MailingLists)\n","import { connect } from 'react-redux'\n\nimport MailingLists from 'components/administration/mailing_lists'\nimport { getMailingLists } from 'selectors'\n\nimport { showMailingListDialog } from 'actions/mailing_lists'\nimport { navigate } from 'actions/navigation'\n\nconst mapStateToProps = state => ({\n mailingLists: getMailingLists(state).get('data')\n})\n\nexport default connect(\n mapStateToProps,\n {\n navigate,\n onNewClick: showMailingListDialog\n }\n)(MailingLists)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\n\nimport useI18n from 'hooks/useI18n'\nimport { useSnackbar } from 'notistack'\n\nimport CheckIcon from '@mui/icons-material/Check'\nimport CancelIcon from '@mui/icons-material/Cancel'\nimport red from '@mui/material/colors/red'\nimport green from '@mui/material/colors/green'\nimport grey from '@mui/material/colors/grey'\n\nimport { IconButton, Button, Input } from 'containers/themed'\n\nconst DeeplButton = ({ onSubmit, loading }) => {\n const i18n = useI18n()\n const [open, setOpen] = useState(false)\n const [input, setInput] = useState('')\n const { enqueueSnackbar, closeSnackbar } = useSnackbar()\n\n const handleCancel = () => {\n setOpen(false)\n closeSnackbar()\n setInput('')\n }\n\n const handleSubmit = () => {\n if (input) {\n onSubmit({ name: input, typeId: 1 })\n\n return closeSnackbar()\n }\n\n return enqueueSnackbar(`${i18n.get('missing_api_key')}`, {\n variant: 'error',\n preventDuplicate: true\n })\n }\n\n return (\n
\n {!open && (\n setOpen(true)}\n >\n {i18n.get('enter_deepl_key')}\n \n )}\n {open && (\n
\n {\n setInput(event.target.value)\n }}\n label=\"DeepL API Key\"\n disabled={loading}\n />\n \n \n \n \n \n \n
\n )}\n
\n )\n}\n\nDeeplButton.propTypes = {\n onSubmit: PropTypes.func.isRequired,\n loading: PropTypes.bool.isRequired\n}\n\nexport default DeeplButton\n","import { connect } from 'react-redux'\n\nimport DeeplButton from 'components/administration/external_accounts/deepl_button/DeeplButton'\n\nimport {\n getApiKeyRequestRunning\n} from 'selectors'\n\nimport {\n submitApiKeyStart\n} from 'actions/api_keys'\n\nconst mapStateToProps = state => ({\n loading: getApiKeyRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSubmit: submitApiKeyStart\n }\n)(DeeplButton)\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport useI18n from 'hooks/useI18n'\n\nimport CloseIcon from '@mui/icons-material/Close'\nimport red from '@mui/material/colors/red'\nimport grey from '@mui/material/colors/grey'\n\nimport { IconButton } from 'containers/themed'\n\nconst DeeplApiKeyCard = ({ deeplApiKey, loading, onDelete }) => {\n const i18n = useI18n()\n\n return (\n
\n {`API Key: ${deeplApiKey.get('key')}`}\n onDelete(deeplApiKey.get('id'))}\n title={i18n.get('delete')}\n disabled={loading}\n >\n \n \n
\n )\n}\n\nDeeplApiKeyCard.propTypes = {\n deeplApiKey: PropTypes.object.isRequired,\n loading: PropTypes.bool.isRequired,\n onDelete: PropTypes.func.isRequired\n}\n\nexport default DeeplApiKeyCard\n","import { connect } from 'react-redux'\n\nimport DeeplApiKeyCard from 'components/administration/external_accounts/deepl_button/deepl_api_key_card/DeeplApiKeyCard'\n\nimport {\n getDeeplApiKey,\n getApiKeyRequestRunning\n} from 'selectors'\n\nimport {\n deleteApiKeyStart\n} from 'actions/api_keys'\n\nconst mapStateToProps = state => ({\n deeplApiKey: getDeeplApiKey(state),\n loading: getApiKeyRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onDelete: deleteApiKeyStart\n }\n)(DeeplApiKeyCard)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nimport useI18n from 'hooks/useI18n'\nimport { useSnackbar } from 'notistack'\nimport { Map } from 'immutable'\n\nimport { Card, CardHeader, CardContent, Grid } from '@mui/material'\n\nimport { IconButton, Input } from 'containers/themed'\nimport CheckIcon from '@mui/icons-material/Check'\nimport CancelIcon from '@mui/icons-material/Cancel'\nimport CloseIcon from '@mui/icons-material/Close'\nimport red from '@mui/material/colors/red'\nimport green from '@mui/material/colors/green'\nimport grey from '@mui/material/colors/grey'\n\nconst useStyles = makeStyles()({\n input: {\n display: 'flex',\n alignContent: 'center'\n }\n})\n\nfunction ShowKey({ apiKey, onDelete, loading }) {\n const i18n = useI18n()\n\n return (\n <>\n {apiKey.get('key')}\n onDelete(apiKey.get('id'))}\n title={i18n.get('delete')}\n disabled={loading}\n >\n \n \n \n )\n}\n\nfunction AddKey({ onSubmit, loading }) {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const [input, setInput] = useState('')\n const { enqueueSnackbar, closeSnackbar } = useSnackbar()\n\n const handleCancel = () => {\n closeSnackbar()\n setInput('')\n }\n const handleChange = e => setInput(e.target.value)\n\n const handleSubmit = () => {\n if (input) {\n onSubmit({ name: input, typeId: 2 })\n\n return closeSnackbar()\n }\n\n return enqueueSnackbar(`${i18n.get('missing_access_token')}`, {\n variant: 'error',\n preventDuplicate: true\n })\n }\n\n return (\n
\n \n \n \n \n \n \n \n
\n )\n}\n\nexport default function JournalistSearch({\n anewstipApiKey,\n loading,\n onSubmit,\n onDelete\n}) {\n const { classes } = useStyles()\n\n return (\n \n \n \n \n \n JournalistSearch\n\n {/* */}\n
\n )}\n />\n\n \n {!anewstipApiKey && }\n {anewstipApiKey && (\n \n )}\n \n\n \n \n \n \n )\n}\n\nJournalistSearch.propTypes = {\n anewstipApiKey: PropTypes.instanceOf(Map),\n loading: PropTypes.bool.isRequired,\n onSubmit: PropTypes.func.isRequired,\n onDelete: PropTypes.func.isRequired\n}\n\nAddKey.propTypes = {\n onSubmit: PropTypes.func.isRequired,\n loading: PropTypes.bool.isRequired\n}\n\nShowKey.propTypes = {\n apiKey: PropTypes.instanceOf(Map),\n onDelete: PropTypes.func.isRequired,\n loading: PropTypes.bool.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport AnewstipApiKey from 'components/administration/external_accounts/journalist_search'\n\nimport {\n getApiKeyRequestRunning,\n getAnewstipApiKey\n} from 'selectors'\n\nimport {\n submitApiKeyStart as onSubmit,\n deleteApiKeyStart as onDelete\n} from 'actions/api_keys'\n\nconst mapStateToProps = state => ({\n loading: getApiKeyRequestRunning(state),\n anewstipApiKey: getAnewstipApiKey(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSubmit,\n onDelete\n }\n)(AnewstipApiKey)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Button } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n root: {\n backgroundColor: theme.palette.common.white,\n textTransform: 'none'\n }\n}))\n\nconst GoogleIcon = (\n \n \n \n \n \n \n \n \n \n)\n\nexport default function LoginButton({ onClick, icon, text, disabled }) {\n const { classes } = useStyles()\n\n return (\n \n {text}\n \n )\n}\n\nLoginButton.defaultProps = {\n icon: GoogleIcon,\n text: 'Sign in with Google'\n}\n\nLoginButton.propTypes = {\n onClick: PropTypes.func,\n icon: PropTypes.any,\n disabled: PropTypes.bool,\n text: PropTypes.string\n}\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport moment from 'moment-timezone'\nimport CloseIcon from '@mui/icons-material/Close'\nimport WarningIcon from '@mui/icons-material/Warning'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport red from '@mui/material/colors/red'\nimport green from '@mui/material/colors/green'\n\nimport { IconButton } from 'containers/themed'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Avatar, CardHeader } from '@mui/material'\n\nconst useStyles = makeStyles()({\n signOut: {\n color: red[500]\n },\n validSubheader: {\n color: green[500]\n },\n invalidSubheader: {\n color: red[500],\n display: 'flex',\n alignItems: 'center',\n\n '& > span:first-of-type': {\n marginRight: 5\n }\n }\n})\n\nexport default function ProfileInfo({ profile, onRemove }) {\n const i18n = useI18n()\n const { classes } = useStyles()\n const [imgError, setImgError] = useState(false)\n\n if (!profile) {\n return null\n }\n\n const hasValidPhoto = !imgError && profile.get('photo')\n\n let avatar = (\n \n )\n\n if (hasValidPhoto) {\n avatar = \n }\n\n let subheader\n\n if (profile.get('expiresAt')) {\n const date = moment(profile.get('expiresAt'))\n subheader = `${i18n.get('expires_at')}: ${date.format('LLL')}`\n\n if (date.diff(moment()) <= 432000000) {\n subheader = (\n
\n \n {subheader}\n
\n )\n }\n }\n\n return (\n <>\n \n {profile.get('username') || 'User'} \n\n \n \n \n \n )}\n subheader={subheader}\n />\n\n {hasValidPhoto && (\n setImgError(true)}\n alt=\"\"\n />\n )}\n \n )\n}\n\nProfileInfo.propTypes = {\n profile: PropTypes.instanceOf(Map),\n\n onRemove: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport InfoIcon from '@mui/icons-material/Info'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Typography, Tooltip } from '@mui/material'\n\nexport default function Description({\n socialListening,\n ownedChannelAnalytics\n}) {\n const i18n = useI18n()\n\n const renderTextItem = (title, text) => (\n <>\n \n {title}\n \n\n \n {text}\n \n\n
\n \n )\n\n return (\n \n {Boolean(socialListening) && renderTextItem(i18n.get('social_listening'), socialListening)}\n {Boolean(ownedChannelAnalytics) && renderTextItem(i18n.get('owned_channel_analytics'), ownedChannelAnalytics)}\n {renderTextItem(i18n.get('privacy_notice'), i18n.get('external_accounts_privacy_notice'))}\n
\n )}\n >\n \n \n )\n}\n\nDescription.propTypes = {\n socialListening: PropTypes.string,\n ownedChannelAnalytics: PropTypes.string\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport GoogleAuthorize from 'react-google-authorize'\nimport FacebookLogin from 'react-facebook-login/dist/facebook-login-render-props'\nimport { LinkedIn } from 'react-linkedin-login-oauth2'\nimport { makeStyles } from 'tss-react/mui'\n\nimport AppBar from 'containers/AppBar'\nimport ContentContainer from 'components/content_container'\n\nimport { Capabilities } from 'static/constants'\n\nimport useI18n from 'hooks/useI18n'\nimport DeeplButton from 'containers/administration/external_accounts/DeeplButton'\nimport DeeplApiKeyCard from 'containers/administration/external_accounts/DeeplApiKeyCard'\nimport JournalistSearch from 'containers/administration/external_accounts/AnewstipApiKey'\nimport { Icon, Card, CardContent, CardHeader, Grid } from '@mui/material'\nimport LoginButton from './login_button'\nimport ProfileInfo from './profile_info'\nimport Description from './description'\n\nconst useStyles = makeStyles()(theme => ({\n buttonCardHeader: {\n paddingBottom: 0\n },\n container: {\n backgroundColor: theme.nrx.paper.backgroundPaperColor,\n margin: '0 auto',\n width: '75%',\n\n [theme.breakpoints.up('lg')]: {\n width: '50%'\n }\n },\n apiContainer: {\n backgroundColor: theme.nrx.paper.backgroundPaperColor,\n margin: '0 auto',\n marginTop: '1em',\n width: '75%',\n\n [theme.breakpoints.up('lg')]: {\n width: '50%'\n }\n },\n facebook: {\n color: '#4267b2'\n },\n linkedIn: {\n color: '#2867b2'\n },\n twitter: {\n color: '#000000'\n },\n title: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between'\n }\n}))\n\nconst googleScopes = [\n 'profile',\n 'email',\n 'https://www.googleapis.com/auth/analytics.readonly'\n].join(' ')\n\nconst youtubeScopes = [\n 'profile',\n 'email',\n 'https://www.googleapis.com/auth/yt-analytics.readonly',\n 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly'\n].join(' ')\n\nconst linkedInAnalyticsScopes = [\n 'r_basicprofile',\n 'rw_organization_admin',\n 'r_organization_social'\n].join(' ')\n\nconst linkedInContentDeskScopes = `${[\n 'w_organization_social',\n 'w_member_social'\n].join(' ')} ${linkedInAnalyticsScopes}`\n\nexport default function ExternalAccounts({\n facebookAccountConnected,\n facebookAnalyticsClientId,\n googleAnalyticsClientId,\n googleAnalyticsEnabled,\n youtubeAnalyticsEnabled,\n onFacebookSubmit,\n onFacebookRevoke,\n onGoogleAnalyticsSubmit,\n onGoogleAnalyticsRevoke,\n onYoutubeAnalyticsSubmit,\n onYoutubeAnalyticsRevoke,\n onLinkedInSubmit,\n onLinkedInRevoke,\n onTwitterRevoke,\n linkedInAnalyticsEnabled,\n linkedInClientId,\n deeplApiKey,\n externalAccounts,\n baseUrl,\n capabilities\n}) {\n const i18n = useI18n()\n const { classes } = useStyles()\n const facebookScopes = [\n 'pages_show_list',\n 'read_insights',\n 'instagram_basic',\n 'instagram_manage_insights',\n 'pages_read_engagement',\n 'pages_manage_posts',\n 'business_management'\n ]\n\n const facebookAccount = externalAccounts.getIn([1, 0])\n const googleAnalyticsAccount = externalAccounts.getIn([2, 0])\n const youtubeAnalyticsAccount = externalAccounts.getIn([3, 0])\n const linkedinAnalyticsAccount = externalAccounts.getIn([4, 0])\n // as soon as it is settled that twitter sucks and we won't integrate external accounts,\n // this and bff code can be deleted\n const twitterAnalyticsAccount = externalAccounts.getIn([5, 0])\n\n const linkedInButton = scope => (\n onLinkedInSubmit({ code })}\n onFailure={() => onLinkedInSubmit()}\n redirectUri={`${baseUrl}/linked_in`}\n className={classes.googleButton}\n scope={scope}\n >\n {({ linkedInLogin }) => (\n \n )}\n text=\"Sign in with LinkedIn\"\n />\n )}\n \n )\n\n return (\n <>\n \n \n \n \n\n \n \n {Boolean(googleAnalyticsClientId) && (\n \n \n \n Google Analytics\n\n \n
\n )}\n />\n\n {!googleAnalyticsEnabled && (\n \n (\n \n )}\n />\n \n )}\n\n {googleAnalyticsEnabled && (\n \n )}\n \n \n )}\n\n {Boolean(googleAnalyticsClientId) && (\n \n \n \n YouTube\n\n \n
\n )}\n />\n\n {!youtubeAnalyticsEnabled && (\n \n (\n \n )}\n />\n \n )}\n\n {youtubeAnalyticsEnabled && (\n \n )}\n \n \n )}\n\n {Boolean(linkedInClientId) && (\n \n \n \n LinkedIn\n\n \n \n )}\n />\n\n {!linkedInAnalyticsEnabled && (\n \n {capabilities.get(Capabilities.HAS_CONTENT_DESK_LINKED_IN)\n ? linkedInButton(linkedInContentDeskScopes) : linkedInButton(linkedInAnalyticsScopes)}\n \n )}\n\n {linkedInAnalyticsEnabled && (\n \n )}\n \n \n )}\n\n {Boolean(facebookAnalyticsClientId) && (\n \n \n \n Facebook / Instagram\n\n \n \n )}\n />\n\n {!facebookAccountConnected && (\n \n (\n \n )}\n text=\"Sign in with Facebook\"\n />\n )}\n />\n \n )}\n\n {facebookAccountConnected && (\n \n )}\n \n \n )}\n\n {Boolean(twitterAnalyticsAccount) && (\n\n \n \n \n X / Twitter\n\n \n \n )}\n />\n \n \n \n )}\n \n \n \n \n \n\n \n \n \n \n \n DeepL\n\n \n \n )}\n />\n\n \n {!deeplApiKey && }\n {deeplApiKey && }\n \n\n \n \n \n \n {capabilities.get(Capabilities.HAS_CONTACTS_MANAGEMENT_ANEWSTIP_API_KEY_EDITING_FEATURE) && }\n \n \n \n )\n}\n\nExternalAccounts.propTypes = {\n googleAnalyticsEnabled: PropTypes.bool.isRequired,\n youtubeAnalyticsEnabled: PropTypes.bool.isRequired,\n googleAnalyticsClientId: PropTypes.string,\n facebookAccountConnected: PropTypes.bool.isRequired,\n facebookAnalyticsClientId: PropTypes.string,\n linkedInAnalyticsEnabled: PropTypes.bool.isRequired,\n linkedInClientId: PropTypes.string,\n deeplApiKey: PropTypes.object,\n externalAccounts: PropTypes.instanceOf(Map).isRequired,\n baseUrl: PropTypes.string.isRequired,\n capabilities: PropTypes.instanceOf(Map).isRequired,\n\n onGoogleAnalyticsSubmit: PropTypes.func.isRequired,\n onGoogleAnalyticsRevoke: PropTypes.func.isRequired,\n onYoutubeAnalyticsSubmit: PropTypes.func.isRequired,\n onYoutubeAnalyticsRevoke: PropTypes.func.isRequired,\n onFacebookSubmit: PropTypes.func.isRequired,\n onFacebookRevoke: PropTypes.func.isRequired,\n onLinkedInSubmit: PropTypes.func.isRequired,\n onLinkedInRevoke: PropTypes.func.isRequired,\n onTwitterRevoke: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ExternalAccounts from 'components/administration/external_accounts'\n\nimport {\n getGoogleAnalyticsEnabled,\n getYoutubeAnalyticsEnabled,\n getGoogleAnalyticsClientId,\n getFacebookAccountConnected,\n getFacebookAnalyticsClientId,\n getLinkedInClientId,\n getLinkedInAnalyticsEnabled,\n getDeeplApiKey,\n getStaticExternalAccounts,\n getBaseUrl,\n getCapabilities\n} from 'selectors'\n\nimport {\n authenticateGoogleAnalyticsStart,\n authenticateYoutubeAnalyticsStart,\n authenticateFacebookStart,\n authenticateLinkedInStart,\n revokeGoogleAnalyticsStart,\n revokeYoutubeAnalyticsStart,\n revokeLinkedInStart,\n revokeTwitterStart,\n revokeFacebookStart\n} from 'actions/auth'\n\nconst mapStateToProps = state => ({\n googleAnalyticsEnabled: getGoogleAnalyticsEnabled(state),\n youtubeAnalyticsEnabled: getYoutubeAnalyticsEnabled(state),\n googleAnalyticsClientId: getGoogleAnalyticsClientId(state),\n facebookAccountConnected: getFacebookAccountConnected(state),\n facebookAnalyticsClientId: getFacebookAnalyticsClientId(state),\n linkedInAnalyticsEnabled: getLinkedInAnalyticsEnabled(state),\n linkedInClientId: getLinkedInClientId(state),\n deeplApiKey: getDeeplApiKey(state),\n externalAccounts: getStaticExternalAccounts(state),\n baseUrl: getBaseUrl(state),\n capabilities: getCapabilities(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onGoogleAnalyticsSubmit: authenticateGoogleAnalyticsStart,\n onGoogleAnalyticsRevoke: revokeGoogleAnalyticsStart,\n onYoutubeAnalyticsSubmit: authenticateYoutubeAnalyticsStart,\n onYoutubeAnalyticsRevoke: revokeYoutubeAnalyticsStart,\n onFacebookSubmit: authenticateFacebookStart,\n onFacebookRevoke: revokeFacebookStart,\n onLinkedInSubmit: authenticateLinkedInStart,\n onLinkedInRevoke: revokeLinkedInStart,\n onTwitterRevoke: revokeTwitterStart\n }\n)(ExternalAccounts)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport MoreVertIcon from '@mui/icons-material/MoreVert'\nimport AutoAwesomeIcon from '@mui/icons-material/AutoAwesome'\nimport { makeStyles } from 'tss-react/mui'\nimport { Map } from 'immutable'\n\nimport { createLoadable } from 'utils/loadable'\n\nimport { Capabilities } from 'static/constants'\n\nimport { IconButton, Menu, Button } from 'containers/themed'\nimport CapSafe from 'containers/CapSafe'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { MenuItem } from '@mui/material'\n\nconst useStyles = makeStyles()({\n actions: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n '& > *': {\n marginRight: 5,\n '&:last-child': {\n marginRight: 0\n }\n }\n }\n})\n\nconst ExportMenu = createLoadable(() => (\n import(/* webpackChunkName: \"MediaReviewDetailExportMenu\" */ 'containers/ExportMenu')\n))\n\nconst ExportButton = CapSafe(ExportMenu, Capabilities.HAS_MEDIA_REVIEW_DISPATCH_FEATURE)\nconst AiAnalysis = CapSafe(Button, Capabilities.HAS_AI_SUMMARY_FEATURE)\n\nexport default function Actions({\n onCustomTagClick,\n onRemoveCustomTagClick,\n onAiAnalysisClick,\n capabilities\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const menuActions = []\n\n if (capabilities.get(Capabilities.HAS_CUSTOM_TAGS)) {\n menuActions.push(\n onCustomTagClick()}\n >\n {i18n.get('pin')}\n ,\n onRemoveCustomTagClick()}\n >\n {i18n.get('unpin')}\n \n )\n }\n\n return (\n
\n }\n color=\"inherit\"\n onClick={() => onAiAnalysisClick()}\n >\n {i18n.get('ai_analysis')}\n \n\n
\n \n
\n\n {menuActions.length > 0 && (\n \n \n \n )\n }\n >\n {menuActions}\n \n )}\n
\n )\n}\n\nActions.propTypes = {\n capabilities: PropTypes.instanceOf(Map).isRequired,\n\n onCustomTagClick: PropTypes.func.isRequired,\n onRemoveCustomTagClick: PropTypes.func.isRequired,\n onAiAnalysisClick: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Actions from 'components/media_reviews/media_review_detail/app_bar_actions'\nimport {\n showCustomTagDialog,\n showRemoveCustomTagDialog\n} from 'actions/media_reviews'\nimport { showAiAnalysisDialog } from 'actions/ai'\nimport {\n getCapabilities\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n capabilities: getCapabilities(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onCustomTagClick: showCustomTagDialog,\n onRemoveCustomTagClick: showRemoveCustomTagDialog,\n onAiAnalysisClick: showAiAnalysisDialog\n }\n)(Actions)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Typography, Paper } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n summaryPaper: {\n padding: 10,\n backgroundColor: theme.palette.grey[300]\n },\n summary: {\n textAlign: 'justify',\n columns: '100px 4',\n [theme.breakpoints.down('lg')]: {\n columns: '100px 3'\n },\n [theme.breakpoints.down('md')]: {\n columns: '100px 2'\n },\n [theme.breakpoints.only('xs')]: {\n columns: '100px 1'\n },\n p: {\n marginBlockEnd: 0,\n marginBlockStart: 0\n }\n }\n}))\n\nexport default function Summary({ summary }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n if (!summary) {\n return null\n }\n\n return (\n \n \n {i18n.get('summary')}\n \n \n \n )\n}\n\nSummary.propTypes = {\n summary: PropTypes.string\n}\n","import { connect } from 'react-redux'\n\nimport Summary from 'components/media_reviews/media_review_detail/summary'\n\nimport { getMediaReviewSummary } from 'selectors'\n\nconst mapStateToProps = state => ({\n summary: getMediaReviewSummary(state)\n})\n\nexport default connect(mapStateToProps)(Summary)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport { Chip } from '@mui/material'\n\nconst useStyles = makeStyles()({\n codes: {\n display: 'flex',\n flexWrap: 'wrap',\n width: '100%'\n },\n code: {\n margin: '0 5px 5px 0',\n textAlign: 'center'\n }\n})\n\nexport default function Codes({ mediaReview }) {\n const { classes } = useStyles()\n const codes = mediaReview.getIn(['stats', 'codes'])\n\n return (\n
\n {codes.map(code => (\n \n {code.get('count')} {code.get('name')}\n \n )}\n />\n ))}\n
\n )\n}\n\nCodes.propTypes = {\n mediaReview: PropTypes.instanceOf(Map).isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, fromJS } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { getChannelColor } from 'utils/channel'\n\nconst useStyles = makeStyles()({\n bar: {\n display: 'flex',\n width: '100%'\n },\n barContent: {\n width: '100%',\n height: 20\n },\n barText: {\n fontSize: 14,\n marginTop: 10\n },\n barTextNumber: {\n fontWeight: 500\n }\n})\n\nexport default function ChannelBar({ mediaReview }) {\n const { classes } = useStyles()\n const channels = mediaReview.getIn(['stats', 'channels'])\n const totalCount = channels.reduce((acc, channel) => acc + channel.get('count'), 0)\n\n const channelPercentages = channels.reduce(\n (acc, value) => acc.set(value.get('id'), fromJS({\n percent: (value.get('count', 0) / totalCount) * 100,\n data: value\n })),\n fromJS({})\n )\n\n return (\n
\n {channelPercentages.keySeq().map(key => {\n const channel = channelPercentages.getIn([key, 'data'])\n const percent = channelPercentages.getIn([key, 'percent'])\n\n return (\n \n \n\n {percent > 2 && channel.get('name') && (\n
\n \n {channel.get('count')} \n \n {percent > 10 && channel.get('name')}\n
\n )}\n
\n )\n })}\n \n )\n}\n\nChannelBar.propTypes = {\n mediaReview: PropTypes.instanceOf(Map).isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()({\n articleTextContainer: {\n padding: '1rem 2rem'\n },\n articleText: {\n lineHeight: '1.7rem',\n fontSize: '0.9rem',\n columns: '3 auto'\n },\n articleTextNoColumns: {\n lineHeight: '1.7rem',\n fontSize: '0.9rem',\n whiteSpace: 'pre-line'\n }\n})\n\nexport default function ArticleText({ text, useColumns }) {\n const { classes } = useStyles()\n const formattedText = (\n \n )\n\n return (\n \n {formattedText}\n \n )\n}\n\nArticleText.propTypes = {\n text: PropTypes.string.isRequired,\n useColumns: PropTypes.bool\n}\n\nArticleText.defaultProps = {\n useColumns: false\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()({\n header: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n\n '& > div:first-of-type': {\n display: 'flex',\n alignItems: 'center'\n }\n },\n name: {\n marginLeft: 5\n },\n users: {\n fontSize: 12,\n marginBottom: 10\n }\n})\n\nexport default function Users({\n users,\n reactionType\n}) {\n const { classes, cx } = useStyles()\n\n return (\n <>\n
\n
\n \n\n \n {reactionType.get('name')}\n \n
\n\n {users.size}\n
\n\n
\n {users.map(user => (\n
\n {user.get('name')}\n
\n ))}\n
\n \n )\n}\n\nUsers.propTypes = {\n users: PropTypes.instanceOf(List).isRequired,\n reactionType: PropTypes.instanceOf(Map).isRequired\n}\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport { keyframes } from 'tss-react'\n\nimport { IconButton } from 'containers/themed'\n\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n display: 'flex',\n alignItems: 'center'\n },\n reactionIndicator: {\n fontSize: 24\n },\n reactionIndicatorContainer: {\n position: 'relative'\n },\n total: {\n position: 'absolute',\n width: '100%',\n height: '100%',\n top: -1,\n left: 0,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n fontSize: 12,\n color: theme.isDark ? theme.palette.grey[700] : theme.palette.common.white\n },\n totalChanged: {\n animation: `${keyframes`\n 0% {\n transform: scale(1);\n },\n 50% {\n transform: scale(2);\n },\n 100% {\n transform: scale(1);\n }\n `} 1s;`\n }\n}))\n\nexport default function ReactionIndicator({ total: totalFromProps, className }) {\n const [total, setTotal] = useState(totalFromProps)\n const [totalChanged, setTotalChanged] = useState(false)\n const { classes, cx } = useStyles()\n const i18n = useI18n()\n\n useEffect(() => {\n if (total !== totalFromProps) {\n setTotal(totalFromProps)\n setTotalChanged(true)\n\n setTimeout(() => {\n setTotalChanged(false)\n }, 1225)\n }\n }, [total, totalFromProps, setTotal])\n\n return (\n 0 ? i18n.get('nrx_reactions') : i18n.get('nrx_reactions_missing')}\n size=\"small\"\n icon={(\n \n \n\n \n {total}\n \n \n )}\n />\n )\n}\n\nReactionIndicator.propTypes = {\n total: PropTypes.number.isRequired,\n className: PropTypes.string\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Popover } from 'containers/themed'\n\nimport useI18n from 'hooks/useI18n'\nimport Users from './users'\nimport ReactionIndicator from './reaction_indicator'\n\nconst useStyles = makeStyles()({\n container: {\n display: 'flex',\n alignItems: 'center'\n },\n popover: {\n padding: 10,\n width: 200\n },\n reactPopover: {\n padding: 10\n }\n})\n\nexport default function AssignedReactions({\n indicatorClassName,\n reactions,\n reactionTypes\n}) {\n const { classes, cx } = useStyles()\n const i18n = useI18n()\n\n const assignedReactionTypeIds = reactions.keySeq().toSet()\n const total = reactions.valueSeq().toList().flatten(true).size\n const filteredReactionTypes = reactionTypes.filter(rt => assignedReactionTypeIds.has(rt.get('id').toString()))\n\n return (\n \n \n \n )}\n >\n {!total && i18n.get('nrx_reactions_missing')}\n\n {filteredReactionTypes.map(reactionType => (\n \n ))}\n \n )\n}\n\nAssignedReactions.propTypes = {\n indicatorClassName: PropTypes.string,\n reactions: PropTypes.instanceOf(Map).isRequired,\n reactionTypes: PropTypes.instanceOf(List).isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { List } from 'immutable'\nimport { Icon } from '@mui/material'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n icon: {\n opacity: 0.5,\n '&:hover': {\n opacity: 1,\n transition: 'transform 225ms',\n transform: 'scale(1.5) translateY(-5px)'\n }\n },\n selected: {\n opacity: 1\n }\n})\n\nexport default function ReactionSelect({\n reactionTypes,\n selectedId,\n onClick\n}) {\n const { classes, cx } = useStyles()\n\n return (\n <>\n {reactionTypes.map(reactionType => (\n onClick(reactionType)}\n >\n \n \n ))}\n \n )\n}\n\nReactionSelect.defaultProps = {\n onClick: () => null\n}\n\nReactionSelect.propTypes = {\n reactionTypes: PropTypes.instanceOf(List).isRequired,\n selectedId: PropTypes.string,\n\n onClick: PropTypes.func\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { Icon } from '@mui/material'\n\nimport { IconButton } from 'containers/themed'\n\nimport useI18n from 'hooks/useI18n'\n\nexport default function ReactionSelectTrigger({ reactionType }) {\n const i18n = useI18n()\n\n return (\n \n {reactionType ? (\n \n ) : }\n \n )\n}\n\nReactionSelectTrigger.propTypes = {\n reactionType: PropTypes.instanceOf(Map)\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Popover } from 'containers/themed'\n\nimport ReactionSelect from './reaction_select'\nimport ReactionSelectTrigger from './reaction_select_trigger'\n\nconst useStyles = makeStyles()({\n reactPopover: {\n overflow: 'visible',\n padding: 10\n }\n})\n\nexport default function ReplaceReaction({\n reactions,\n reactionTypes,\n onReactionClick,\n user\n}) {\n const { classes } = useStyles()\n\n const myReactionTypeId = reactions.findKey(r => r.find(u => u.get('id') === user.get('id')))\n const myReactionType = reactionTypes.find(rt => rt.get('id').toString() === myReactionTypeId)\n\n return (\n \n \n \n )}\n >\n \n \n )\n}\n\nReplaceReaction.propTypes = {\n reactions: PropTypes.instanceOf(Map).isRequired,\n user: PropTypes.instanceOf(Map).isRequired,\n reactionTypes: PropTypes.instanceOf(List).isRequired,\n\n onReactionClick: PropTypes.func\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport AssignedReactions from './assigned_reactions'\nimport ReplaceReaction from './replace_reaction'\n\nconst useStyles = makeStyles()({\n container: {\n display: 'flex',\n alignItems: 'center'\n }\n})\n\nexport default function NrxReactions({\n indicatorClassName,\n reactions: reactionsFromProps,\n reactionTypes,\n onReactionClick,\n user\n}) {\n const { classes } = useStyles()\n const reactions = reactionsFromProps || Map({})\n\n return (\n
\n \n\n \n
\n )\n}\n\nNrxReactions.propTypes = {\n indicatorClassName: PropTypes.string,\n reactions: PropTypes.instanceOf(Map),\n user: PropTypes.instanceOf(Map).isRequired,\n reactionTypes: PropTypes.instanceOf(List).isRequired,\n\n onReactionClick: PropTypes.func\n}\n","import { connect } from 'react-redux'\n\nimport NrxReactions from 'components/nrx_reactions'\nimport { getStaticReactionTypes, getUser } from 'selectors'\n\nconst mapStateToProps = state => ({\n reactionTypes: getStaticReactionTypes(state),\n user: getUser(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(NrxReactions)\n","import { connect } from 'react-redux'\n\nimport Reactions from 'containers/NrxReactions'\n\nimport { getMediaReviewReactions } from 'selectors'\n\nconst mapStateToProps = (state, { codeId, news }) => ({\n codeId,\n reactions: getMediaReviewReactions(state).get(`${codeId || ''}||${news.get('id')}`)\n})\n\nexport default connect(\n mapStateToProps\n)(Reactions)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport { blue } from '@mui/material/colors'\n\nconst useStyles = makeStyles()(theme => ({\n headline: {\n a: {\n transition: 'color 225ms',\n color: blue[theme.isDark ? 200 : 900],\n textDecoration: 'none',\n\n '&:hover': {\n color: blue[theme.isDark ? 300 : 700]\n }\n }\n }\n}))\n\nexport default function Headline({ news, useSummaryHeadline }) {\n const target = news.get('url')\n const { classes } = useStyles()\n\n let headline = useSummaryHeadline ? news.get('summaryHeadline') : news.get('headline')\n headline = (headline || news.get('headline')).slice(0, 100)\n\n if (target) {\n return (\n
\n \n
\n )\n }\n\n return (\n \n )\n}\n\nHeadline.propTypes = {\n news: PropTypes.object.isRequired,\n useSummaryHeadline: PropTypes.bool\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport moment from 'moment-timezone'\nimport { fromJS } from 'immutable'\nimport CloseIcon from '@mui/icons-material/Close'\nimport EditIcon from '@mui/icons-material/Edit'\nimport ShortTextIcon from '@mui/icons-material/ShortText'\nimport SummarizeIcon from '@mui/icons-material/Summarize'\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Grid,\n Icon,\n ListItem,\n ListItemText,\n Checkbox,\n ListItemSecondaryAction\n} from '@mui/material'\nimport { blue } from '@mui/material/colors'\n\nimport { getTonalityColor, getAverageTonalityOfNews } from 'utils/tonality'\n\nimport ChannelIcon from 'components/channel_icon'\nimport { IconButton } from 'containers/themed'\nimport CapSafe from 'containers/CapSafe'\nimport { Capabilities } from 'static/constants'\nimport Reactions from 'containers/media_reviews/media_review_detail/news_list_item/Reactions'\n\nimport useI18n from 'hooks/useI18n'\nimport Headline from '../headline'\n\nconst useStyles = makeStyles()(theme => ({\n col: {\n display: 'flex',\n alignItems: 'center'\n },\n publication: {\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n fontSize: '14px',\n textOverflow: 'ellipsis',\n\n [theme.breakpoints.down('lg')]: {\n marginLeft: 45\n }\n },\n headline: {\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n fontSize: '14px',\n textOverflow: 'ellipsis',\n fontWeight: '500',\n marginLeft: '10px'\n },\n text: {\n [theme.breakpoints.down('md')]: {\n fontSize: '12px'\n }\n },\n date: {\n [theme.breakpoints.down('md')]: {\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis'\n },\n\n marginLeft: '50%',\n fontSize: '14px'\n },\n channelIcon: {\n color: 'rgb(112, 112, 112)',\n fontSize: 'x-large',\n display: 'flex',\n alignItems: 'center',\n width: '100%',\n height: '100%',\n\n [theme.breakpoints.down('md')]: {\n fontSize: 'small'\n }\n },\n listItem: {\n transition: 'background-color 0.3s',\n height: '41px',\n padding: '0 5px',\n marginBottom: '10px',\n backgroundColor: theme.isDark ? theme.palette.background.paper : theme.palette.common.white,\n borderLeft: `10px solid ${theme.palette.grey[400]}`,\n WebkitUserSelect: 'none',\n MozUserSelect: 'none',\n MsUserSelect: 'none',\n userSelect: 'none'\n },\n selectedForSorting: {\n backgroundColor: `${theme.isDark ? theme.palette.grey[600] : blue[100]} !important`\n },\n actions: {\n display: 'flex',\n alignItems: 'center',\n borderLeft: `1px solid ${theme.palette.grey[500]}`,\n height: '80%'\n },\n listItemRow: {\n width: '90%',\n [theme.breakpoints.down('lg')]: {\n width: '80%'\n },\n [theme.breakpoints.down('md')]: {\n width: '75%'\n }\n },\n hidden: {\n visibility: 'hidden'\n },\n clusteredListItem: {\n marginBottom: 0\n },\n reactions: {\n marginLeft: 5,\n padding: 5\n }\n}))\n\nconst SafeEditButton = CapSafe(IconButton, [Capabilities.HAS_EDITING_FEATURE, Capabilities.HAS_MEDIA_REVIEW_EDITING_FEATURE])\nconst SafeDeleteButton = CapSafe(IconButton, Capabilities.HAS_MEDIA_REVIEW_EDITING_FEATURE)\nconst SafeReactions = CapSafe(Reactions, Capabilities.HAS_MEDIA_REVIEW_EDITING_FEATURE)\n\nconst Row = props => (\n \n)\n\nconst Col = props => (\n \n)\n\nexport default function Item({\n news,\n subsequentlyLoadedFullText,\n expanded,\n summaryExpanded,\n codeId,\n onRemoveClick,\n onEditClick,\n onSelect,\n showSnippet,\n hideSnippet,\n showSummary,\n hideSummary,\n selected,\n selectedForSorting,\n selectNewsForSorting,\n shiftSelectNewsForSorting,\n onFullTextClick,\n fullTextVisible,\n loadFullText,\n onReactionClick\n}) {\n const { classes, cx } = useStyles()\n const i18n = useI18n()\n const isClusteredNews = news.getIn(['flags', 'clusteredNews'])\n const isTopicalCluster = news.get('clusterType') === 'topical' && !isClusteredNews\n\n const getPublicationNameOrAuthor = () => {\n if (isTopicalCluster) {\n return `${news.get('clusteredNews').size} ${i18n.get('publications')}`\n }\n\n const authors = news.get('authors')\n const hasAuthors = authors.size > 0\n const isSocialMedia = news.getIn(['flags', 'socialMedia'])\n\n let result = ''\n\n if (isSocialMedia && hasAuthors) {\n result = authors.first().get('name')\n } else {\n result = news.getIn(['publication', 'name'])\n }\n\n return result\n }\n\n const handleFullTextIconClick = () => {\n onFullTextClick(!fullTextVisible)\n\n if (!subsequentlyLoadedFullText) {\n loadFullText(news)\n }\n }\n\n const tonalityStyle = () => {\n let tonality = news.get('tonality')\n\n if (isTopicalCluster) {\n tonality = getAverageTonalityOfNews(news)\n }\n\n if (tonality !== null) {\n return {\n borderLeft: `10px solid ${getTonalityColor(tonality)}`\n }\n }\n\n return {}\n }\n\n const renderEssentialData = () => {\n let date = moment(news.get('articleDate'))\n\n if (news.getIn(['flags', 'germanTime'])) {\n date = date.tz('Europe/Berlin')\n }\n\n let clusteredNewsLabel = null\n\n if (news.get('clusteredNews').size && !isTopicalCluster && !isClusteredNews) {\n clusteredNewsLabel = (\n \n +{news.get('clusteredNews').size}\n \n )\n }\n\n const onSnippetClick = expanded ? hideSnippet : showSnippet\n const onSummaryClick = summaryExpanded ? hideSummary : showSummary\n\n let summaryLabel = summaryExpanded ? 'hide_summary' : 'show_summary'\n\n if (isTopicalCluster) {\n summaryLabel = summaryExpanded ? 'hide_newsflash' : 'show_newsflash'\n }\n\n return (\n \n \n \n \n \n {\n event.stopPropagation()\n\n onSelect({\n codeId,\n newsIds: news.get('clusteredNews').map(c => c.get('id')).unshift(news.get('id')),\n omitIntersection: false\n })\n }}\n checked={selected}\n />\n\n \n \n \n
\n {getPublicationNameOrAuthor()} {clusteredNewsLabel}\n
\n \n
\n \n \n onSummaryClick(fromJS([{ newsId: news.get('id'), codeId }]))}\n >\n {isTopicalCluster ? : }\n \n onSnippetClick(fromJS([{ newsId: news.get('id'), codeId }]))}\n >\n \n \n \n \n \n\n
\n \n
\n \n \n {!isClusteredNews && (\n
\n {date.format('L')}\n
\n )}\n \n
\n
\n )\n }\n\n const renderRightActions = () => {\n const actions = [\n onEditClick(news)}\n size=\"small\"\n >\n \n \n ]\n\n if (isClusteredNews) {\n return actions\n }\n\n if (onRemoveClick) {\n actions.push(\n onRemoveClick(news)}\n size=\"small\"\n >\n \n \n )\n }\n\n return (\n \n onReactionClick({\n newsId: news.get('id'),\n codeId,\n reactionTypeId: reactionType.get('id')\n })}\n />\n\n {actions}\n \n )\n }\n\n const handleOnClick = event => {\n const item = fromJS([{\n codeId,\n newsId: news.get('id')\n }])\n\n const keyPress = {\n shiftKey: event.shiftKey,\n ctrlKey: event.ctrlKey,\n metaKey: event.metaKey\n }\n\n if (keyPress.shiftKey) {\n shiftSelectNewsForSorting({ newsIds: item, isReplace: false, keyPress })\n } else {\n selectNewsForSorting({ newsIds: item, isReplace: !keyPress.ctrlKey && !keyPress.metaKey, keyPress })\n }\n }\n\n return (\n
\n \n {renderEssentialData()}\n {renderRightActions()}\n \n
\n )\n}\n\nItem.propTypes = {\n news: PropTypes.object.isRequired,\n expanded: PropTypes.bool.isRequired,\n summaryExpanded: PropTypes.bool.isRequired,\n codeId: PropTypes.number,\n selectedForSorting: PropTypes.bool.isRequired,\n selected: PropTypes.bool.isRequired,\n subsequentlyLoadedFullText: PropTypes.object,\n fullTextVisible: PropTypes.bool,\n\n onRemoveClick: PropTypes.func,\n onFullTextClick: PropTypes.func,\n onEditClick: PropTypes.func,\n onSelect: PropTypes.func.isRequired,\n showSnippet: PropTypes.func,\n hideSnippet: PropTypes.func,\n showSummary: PropTypes.func,\n hideSummary: PropTypes.func,\n selectNewsForSorting: PropTypes.func,\n shiftSelectNewsForSorting: PropTypes.func,\n loadFullText: PropTypes.func.isRequired,\n onReactionClick: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Item from 'components/media_reviews/media_review_detail/news_list_item/item'\n\nimport {\n showRemoveNewsDialog,\n showSnippet,\n hideSnippet,\n showSummary,\n selectNews,\n hideSummary,\n selectNewsForSorting,\n shiftSelectNewsForSorting,\n loadFullTextStart,\n replaceMediaReviewReactionStart\n} from 'actions/media_reviews'\nimport { showEditNewsDialog } from 'actions/news'\nimport {\n getDevice,\n isExpandedMediaReviewNewsByCode,\n isSummaryExpandedMediaReviewNewsByCode,\n isMediaReviewSelectedNewsForSorting,\n isMediaReviewNewsSelected,\n getMediaReviewSelectedNews,\n getFullTextById\n} from 'selectors'\n\nconst mapStateToProps = (state, { codeId, news }) => ({\n device: getDevice(state),\n codeId,\n\n subsequentlyLoadedFullText: getFullTextById(state, news.get('id')) || null,\n expanded: isExpandedMediaReviewNewsByCode(state, news.get('id'), codeId),\n summaryExpanded: isSummaryExpandedMediaReviewNewsByCode(state, news.get('id'), codeId),\n selectedForSorting: isMediaReviewSelectedNewsForSorting(state, news.get('id'), codeId),\n selected: isMediaReviewNewsSelected(state, news.get('id'), codeId) || getMediaReviewSelectedNews(state).isEmpty()\n})\n\nexport default connect(\n mapStateToProps,\n {\n onRemoveClick: showRemoveNewsDialog,\n onEditClick: showEditNewsDialog,\n onSelect: selectNews,\n showSnippet,\n hideSnippet,\n showSummary,\n hideSummary,\n selectNewsForSorting,\n shiftSelectNewsForSorting,\n loadFullText: loadFullTextStart,\n onReactionClick: replaceMediaReviewReactionStart\n }\n)(Item)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Grid, ListItem } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n text: {\n [theme.breakpoints.down('md')]: {\n fontSize: '12px'\n }\n },\n summary: {\n padding: '1rem 2rem',\n lineHeight: '1.7rem',\n fontSize: '0.9rem',\n whiteSpace: 'pre-line'\n },\n summaryHeadline: {\n fontWeight: 500\n },\n summaryContainer: {\n paddingTop: '0 !important'\n }\n}))\n\nexport default function Summary({ news, className }) {\n const { classes } = useStyles()\n\n return (\n \n \n \n \n \n
\n {news.get('summaryHeadline') && (\n \n )}\n \n
\n \n \n \n\n \n \n \n )\n}\n\nSummary.propTypes = {\n news: PropTypes.instanceOf(Map).isRequired,\n className: PropTypes.string\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport { getAverageTonalityColorOfNews } from 'utils/tonality'\n\nimport Item from 'containers/media_reviews/media_review_detail/news_list_item/Item'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Grid, List, ListItem, Divider } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n text: {\n [theme.breakpoints.down('md')]: {\n fontSize: '12px'\n }\n },\n topicalCluster: {\n padding: '10px 17px',\n lineHeight: '1.7rem',\n fontSize: '0.9rem',\n whiteSpace: 'pre-line'\n },\n topicalClusterItem: {\n marginTop: -10,\n marginBottom: 0,\n backgroundColor: theme.isDark ? theme.palette.grey[500] : theme.palette.grey[100]\n },\n topicalClusterList: {\n paddingTop: 0\n }\n}))\n\nexport default function TopicalCluster({ news, codeId }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const cluster = news.get('clusteredNews')\n const tonalityColor = getAverageTonalityColorOfNews(news)\n\n return (\n <>\n \n \n \n \n \n
\n {i18n.get('newsflash')}
\n {news.get('summary')}\n
\n \n \n \n\n \n \n \n\n \n\n \n {cluster.map((n, index) => (\n
\n \n {index < cluster.size - 1 && }\n
\n ))}\n
\n \n )\n}\n\nTopicalCluster.propTypes = {\n news: PropTypes.instanceOf(Map).isRequired,\n codeId: PropTypes.number\n}\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nimport ArticleText from 'components/media_reviews/media_review_detail/news_list_item/article_text'\nimport Item from 'containers/media_reviews/media_review_detail/news_list_item/Item'\n\nimport { Grid, ListItem, ListItemText } from '@mui/material'\nimport Summary from './summary'\nimport TopicalCluster from './topical_cluster'\n\nconst useStyles = makeStyles()(theme => ({\n itemImage: {\n marginBottom: '10px'\n },\n text: {\n [theme.breakpoints.down('md')]: {\n fontSize: '12px'\n }\n },\n snippet: {\n marginTop: '5px',\n marginBottom: '15px',\n overflow: 'hidden',\n whiteSpace: 'normal',\n fontSize: '0.9rem'\n },\n snippetNoImage: {\n paddingLeft: '2rem',\n paddingRight: '2rem'\n },\n fullText: {\n paddingTop: '0',\n marginTop: '-10px',\n borderTop: `1px solid ${theme.palette.grey[400]}`\n },\n detailData: {\n marginTop: '-10px',\n borderTop: `1px solid ${theme.palette.grey[400]}`\n },\n newsListItem: {\n backgroundColor: theme.isDark ? theme.palette.grey[500] : theme.palette.grey[100]\n },\n detailDataOnly: {\n marginBottom: '10px'\n }\n}))\n\nconst Row = props => (\n \n)\n\nconst Col = props => (\n \n)\n\nexport default function NewsListItem({\n news,\n subsequentlyLoadedFullText,\n expanded,\n codeId,\n summaryExpanded\n}) {\n const { classes, cx } = useStyles()\n const [fullTextVisible, setFullTextVisible] = useState(false)\n const isTopicalCluster = news.get('clusterType') === 'topical'\n\n const renderDetailData = () => {\n if (!expanded || isTopicalCluster) {\n return null\n }\n\n let image = null\n\n if (news.get('image')) {\n image = (\n \n )\n }\n\n return (\n \n \n {!!image && (\n \n \n \n \n
\n {image}\n
\n \n
\n \n )}\n \n \n \n \n \n \n \n \n
\n \n )\n }\n\n const renderSummary = () => {\n if (isTopicalCluster) {\n return (\n \n )\n }\n\n return (\n \n )\n }\n\n const maybeRenderFullText = () => {\n if (!fullTextVisible || !subsequentlyLoadedFullText) {\n return null\n }\n\n const text = subsequentlyLoadedFullText.get('text')\n\n return (\n \n \n 100}\n />\n \n \n )\n }\n\n return (\n
\n \n\n {expanded && renderDetailData()}\n {summaryExpanded && !!news.get('summary') && renderSummary()}\n {maybeRenderFullText()}\n
\n )\n}\n\nNewsListItem.propTypes = {\n news: PropTypes.object.isRequired,\n codeId: PropTypes.number,\n expanded: PropTypes.bool.isRequired,\n summaryExpanded: PropTypes.bool.isRequired,\n subsequentlyLoadedFullText: PropTypes.object\n}\n","import { connect } from 'react-redux'\n\nimport MediaReviewNewsListItem from 'components/media_reviews/media_review_detail/news_list_item'\nimport {\n isExpandedMediaReviewNewsByCode,\n isSummaryExpandedMediaReviewNewsByCode,\n getFullTextById\n} from 'selectors'\n\nconst mapStateToProps = (state, { codeId, news }) => ({\n codeId,\n news,\n subsequentlyLoadedFullText: getFullTextById(state, news.get('id')) || null,\n expanded: isExpandedMediaReviewNewsByCode(state, news.get('id'), codeId),\n summaryExpanded: isSummaryExpandedMediaReviewNewsByCode(state, news.get('id'), codeId)\n})\n\nexport default connect(mapStateToProps)(MediaReviewNewsListItem)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { CSS } from '@dnd-kit/utilities'\nimport { useSortable } from '@dnd-kit/sortable'\n\nexport default function SortableItem({ id, children, disabled }) {\n const {\n attributes,\n listeners,\n setNodeRef,\n transform,\n transition\n } = useSortable({ id, disabled })\n\n const style = {\n transform: CSS.Transform.toString(transform),\n transition\n }\n\n return (\n \n {children}\n \n )\n}\n\nSortableItem.defaultProps = {\n disabled: false\n}\n\nSortableItem.propTypes = {\n id: PropTypes.string.isRequired,\n children: PropTypes.any.isRequired,\n disabled: PropTypes.bool\n}\n","import React, { forwardRef } from 'react'\nimport PropTypes from 'prop-types'\nimport { List } from 'immutable'\nimport { equals as stringEquals } from 'utils/string'\n\nexport const Item = ({ id, news, NewsComponent, NewsComponentProps, ...props }, ref) => {\n const item = news.find(i => stringEquals(i.get('id'), id))\n\n return (\n \n {!!item && (\n \n )}\n \n )\n}\n\nexport default forwardRef(Item)\n\nItem.propTypes = {\n id: PropTypes.string.isRequired,\n news: PropTypes.instanceOf(List).isRequired,\n sortingItemKey: PropTypes.instanceOf(Map).isRequired,\n selectedNewsForSorting: PropTypes.instanceOf(Set).isRequired,\n NewsComponent: PropTypes.any.isRequired,\n NewsComponentProps: PropTypes.object,\n codeId: PropTypes.any\n}\n","/* global document */\nimport React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { fromJS, Set } from 'immutable'\nimport {\n DndContext,\n closestCenter,\n PointerSensor,\n TouchSensor,\n useSensor,\n useSensors,\n DragOverlay\n} from '@dnd-kit/core'\nimport {\n SortableContext,\n verticalListSortingStrategy\n} from '@dnd-kit/sortable'\n\nimport { equals as stringEquals } from 'utils/string'\nimport SortableItem from '../sortable_item'\nimport Item from './item'\n\nexport default function MultisortNewsList({\n news,\n NewsComponent,\n NewsComponentProps,\n onSortEnd,\n onReset,\n selectedNews,\n codeId,\n useOverlay,\n sortingDisabled\n}) {\n const [activeId, setActiveId] = useState(null)\n\n const filterNews = value => {\n if (!activeId) {\n return true\n }\n\n if (useOverlay) {\n return stringEquals(activeId, value.get('id')) || !(selectedNews.find(n => n.get('newsId') === value.get('id')))\n }\n\n return !(selectedNews.find(n => n.get('newsId') === value.get('id') && !stringEquals(n.get('newsId'), activeId)))\n }\n\n const filteredNews = news.filter(filterNews)\n const items = filteredNews.map(n => `${n.get('id')}`).toJS()\n\n const sensors = useSensors(\n useSensor(PointerSensor, {\n activationConstraint: {\n distance: 10\n }\n }),\n useSensor(TouchSensor, {\n activationConstraint: {\n distance: 10\n }\n })\n )\n\n const onDragStart = event => {\n document.body.style.cursor = 'grabbing'\n\n const { active } = event\n\n setActiveId(active.id)\n\n if (!selectedNews.isEmpty() && !selectedNews.find(n => stringEquals(n.get('newsId'), active.id))) {\n onReset()\n }\n }\n\n const onDragEnd = event => {\n const { active, over } = event\n\n if ((active && over) && active.id !== over.id) {\n const oldIndex = filteredNews.findIndex(n => stringEquals(n.get('id'), active.id))\n const newIndex = filteredNews.findIndex(n => stringEquals(n.get('id'), over.id))\n\n onSortEnd({ codeId, oldIndex, newIndex, selectedNews })\n }\n\n setActiveId(null)\n\n document.body.style.cursor = ''\n }\n\n const onDragCancel = () => {\n document.body.style.cursor = ''\n\n setActiveId(null)\n }\n\n return (\n \n \n {filteredNews.map(n => (\n \n
\n \n
\n \n ))}\n \n\n {useOverlay && (\n \n {activeId ? (\n \n ) : null}\n \n )}\n \n )\n}\n\nMultisortNewsList.defaultProps = {\n NewsComponentProps: {},\n useOverlay: true,\n sortingDisabled: false\n}\n\nMultisortNewsList.propTypes = {\n news: PropTypes.object.isRequired,\n selectedNews: PropTypes.instanceOf(Set).isRequired,\n NewsComponent: PropTypes.any.isRequired,\n NewsComponentProps: PropTypes.object,\n codeId: PropTypes.any,\n useOverlay: PropTypes.bool,\n sortingDisabled: PropTypes.bool,\n\n onSortEnd: PropTypes.func.isRequired,\n onReset: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport NewsListItem from 'containers/media_reviews/media_review_detail/NewsListItem'\n\nimport MultisortNewsList from 'components/sortable/multisort_news_list'\nimport { List } from '@mui/material'\n\nconst useStyles = makeStyles()({\n list: {\n padding: 0\n }\n})\n\nexport default function GroupedNewsSublist({\n codeId,\n news,\n onSortEnd,\n onReset,\n selectedNews,\n sortingDisabled\n}) {\n const { classes } = useStyles()\n\n return (\n \n \n \n )\n}\n\nGroupedNewsSublist.propTypes = {\n news: PropTypes.object.isRequired,\n codeId: PropTypes.number,\n selectedNews: PropTypes.object.isRequired,\n sortingDisabled: PropTypes.bool.isRequired,\n\n onSortEnd: PropTypes.func.isRequired,\n onReset: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport GroupedNewsSublist from 'components/media_reviews/media_review_detail/grouped_news_sublist'\nimport { moveNewsInMediaReviewStart, resetSortingSelection } from 'actions/media_reviews'\nimport { getCapabilities, getMediaReviewSelectedNewsForSorting } from 'selectors'\nimport { Capabilities } from 'static/constants'\n\nconst mapStateToProps = state => ({\n selectedNews: getMediaReviewSelectedNewsForSorting(state),\n sortingDisabled: !getCapabilities(state).get(Capabilities.HAS_MEDIA_REVIEW_EDITING_FEATURE)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSortEnd: moveNewsInMediaReviewStart,\n onReset: resetSortingSelection\n }\n)(GroupedNewsSublist)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { List } from 'immutable'\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\nimport ExpandLessIcon from '@mui/icons-material/ExpandLess'\nimport { makeStyles } from 'tss-react/mui'\nimport GroupedNewsSublist from 'containers/media_reviews/media_review_detail/GroupedNewsSublist'\nimport { Card, ListItem, ListItemText, Badge, Checkbox } from '@mui/material'\nimport { blue } from '@mui/material/colors'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n item: {\n padding: '0'\n },\n itemContent: {\n width: '100%'\n },\n listItemText: {\n margin: 0\n },\n group: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n backgroundColor: theme.isDark ? theme.nrx.paper.backgroundPaperColor : theme.palette.grey[300],\n height: '50px',\n paddingLeft: 35,\n\n '& > div:first-of-type': {\n display: 'flex',\n alignItems: 'center',\n height: '100%'\n }\n },\n groupLabel: {\n fontWeight: 400\n },\n groupName: {\n paddingLeft: 5,\n fontWeight: '500'\n },\n news: {\n padding: '12px 20px',\n backgroundColor: theme.isDark ? theme.nrx.paper.backgroundPaperColor : theme.palette.grey[300],\n borderTop: `1px solid ${theme.palette.grey[500]}`\n },\n card: {\n marginBottom: '20px'\n },\n actions: {\n top: '50%',\n display: 'flex',\n alignItems: 'center',\n fontSize: 'large',\n borderLeft: `1px solid ${theme.palette.grey[500]}`,\n height: '80%'\n },\n badgeStyle: {\n backgroundColor: blue[900],\n color: theme.palette.common.white\n }\n}))\n\nexport default function GroupedNewsListItem({\n code,\n expanded,\n i18n,\n newsCount,\n collapseTopics,\n expandTopics,\n selected,\n selectedCount,\n newsClusterIds,\n indeterminate,\n onSelect\n}) {\n const { classes } = useStyles()\n const clickHandler = expanded ? collapseTopics : expandTopics\n\n return (\n \n \n \n
\n
\n
\n onSelect({\n codeId: code.get('id'),\n newsIds: newsClusterIds,\n omitIntersection: !selected\n })}\n checked={selected}\n indeterminate={indeterminate}\n />\n \n {i18n.get('topic').toUpperCase()}:\n \n {code.get('id') ? code.get('name') : i18n.get('ungrouped')}\n \n
\n\n
\n clickHandler([code.get('id')])}\n size=\"large\"\n >\n {expanded ? : }\n \n
\n
\n\n {expanded && (\n
\n \n
\n )}\n
\n
\n
\n
\n )\n}\n\nGroupedNewsListItem.propTypes = {\n expanded: PropTypes.bool.isRequired,\n code: PropTypes.object.isRequired,\n i18n: PropTypes.object.isRequired,\n newsCount: PropTypes.number.isRequired,\n selected: PropTypes.bool.isRequired,\n selectedCount: PropTypes.number.isRequired,\n indeterminate: PropTypes.bool.isRequired,\n newsClusterIds: PropTypes.instanceOf(List).isRequired,\n\n expandTopics: PropTypes.func.isRequired,\n onSelect: PropTypes.func.isRequired,\n collapseTopics: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport GroupedNewsListItem from 'components/media_reviews/media_review_detail/grouped_news_list_item'\nimport { expandTopics, collapseTopics, selectNews } from 'actions/media_reviews'\n\nimport {\n getI18n,\n getDevice,\n isExpanded,\n getMediaReviewNewsByCodeId,\n getMediaReviewSelectedNews,\n isMediaReviewGroupedNewsListSelected\n} from 'selectors'\n\nconst mapStateToProps = (state, { code }) => {\n const selectedNews = getMediaReviewSelectedNews(state)\n const selectedCount = selectedNews.filter(n => parseInt(n.split('_')[0], 10) === code.get('id')).size\n const newsByCodeId = getMediaReviewNewsByCodeId(state, code.get('id'))\n const newsClusterIds = newsByCodeId.map(n => n.get('clusteredNews').map(c => c.get('id')).unshift(n.get('id'))).flatten(true)\n\n return ({\n expanded: isExpanded(state, code.get('id')),\n i18n: getI18n(state),\n device: getDevice(state),\n newsCount: newsClusterIds.size,\n selected: isMediaReviewGroupedNewsListSelected(state, code.get('id')) || selectedNews.isEmpty(),\n selectedCount,\n indeterminate: selectedCount > 0 && selectedCount !== newsClusterIds.size,\n newsClusterIds\n })\n}\n\nexport default connect(\n mapStateToProps,\n {\n onSelect: selectNews,\n expandTopics,\n collapseTopics\n }\n)(GroupedNewsListItem)\n","import React, { forwardRef } from 'react'\nimport PropTypes from 'prop-types'\nimport { List } from 'immutable'\n\nexport const Item = ({ id, items, Component, ComponentProps, ...props }, ref) => {\n const item = items.find(i => `${i.get('id')}` === id)\n\n return (\n \n {!!item && (\n \n )}\n \n )\n}\n\nexport default forwardRef(Item)\n\nItem.propTypes = {\n id: PropTypes.string.isRequired,\n items: PropTypes.instanceOf(List).isRequired,\n Component: PropTypes.any.isRequired,\n ComponentProps: PropTypes.object\n}\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { List } from 'immutable'\nimport {\n DndContext,\n closestCenter,\n PointerSensor,\n TouchSensor,\n useSensor,\n useSensors,\n DragOverlay\n} from '@dnd-kit/core'\nimport {\n SortableContext,\n verticalListSortingStrategy\n} from '@dnd-kit/sortable'\n\nimport { equals as stringEquals } from 'utils/string'\nimport SortableItem from '../sortable_item'\nimport Item from './item'\n\nexport default function SimpleSortableList({\n items,\n Component,\n ComponentProps,\n disabled,\n onSortEnd\n}) {\n const [activeId, setActiveId] = useState(null)\n\n const sensors = useSensors(\n useSensor(PointerSensor, {\n activationConstraint: {\n distance: 10\n }\n }),\n useSensor(TouchSensor, {\n activationConstraint: {\n distance: 10\n }\n })\n )\n\n const onDragStart = event => {\n const { active } = event\n\n setActiveId(active.id)\n }\n\n const onDragEnd = event => {\n const { active, over } = event\n\n if ((active && over) && active.id !== over.id) {\n const oldIndex = items.findIndex(i => stringEquals(i.get('id'), active.id))\n const newIndex = items.findIndex(i => stringEquals(i.get('id'), over.id))\n\n onSortEnd({ oldIndex, newIndex })\n }\n\n setActiveId(null)\n }\n\n const onDragCancel = () => {\n setActiveId(null)\n }\n\n const ids = items.map(i => `${i.get('id')}`).toJS()\n\n return (\n \n \n {items.map(i => (\n \n
\n \n
\n \n ))}\n \n\n \n {activeId ? (\n \n ) : null}\n \n \n )\n}\n\nSimpleSortableList.defaultProps = {\n ComponentProps: {},\n disabled: false\n}\n\nSimpleSortableList.propTypes = {\n items: PropTypes.instanceOf(List).isRequired,\n Component: PropTypes.any.isRequired,\n ComponentProps: PropTypes.object,\n disabled: PropTypes.bool,\n\n onSortEnd: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport GroupedNewsListItem from 'containers/media_reviews/media_review_detail/GroupedNewsListItem'\n\nimport SimpleSortableList from 'components/sortable/simple_sortable_list'\nimport { List } from '@mui/material'\n\nconst SortableItem = ({ item }) => \n\nSortableItem.propTypes = {\n item: PropTypes.any.isRequired\n}\n\nexport default function GroupedNewsList({ codes, sortingDisabled, onSortEnd }) {\n return (\n \n \n \n )\n}\n\nGroupedNewsList.propTypes = {\n codes: PropTypes.object.isRequired,\n sortingDisabled: PropTypes.bool.isRequired,\n\n onSortEnd: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport GroupedNewsList from 'components/media_reviews/media_review_detail/grouped_news_list'\nimport { moveCodeInMediaReviewStart } from 'actions/media_reviews'\nimport { getMediaReviewCodes, getI18n, getCapabilities } from 'selectors'\nimport { Capabilities } from 'static/constants'\n\nconst mapStateToProps = state => ({\n codes: getMediaReviewCodes(state),\n i18n: getI18n(state),\n sortingDisabled: !getCapabilities(state).get(Capabilities.HAS_MEDIA_REVIEW_EDITING_FEATURE)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSortEnd: moveCodeInMediaReviewStart\n }\n)(GroupedNewsList)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport HelpIcon from '@mui/icons-material/Help'\nimport { makeStyles } from 'tss-react/mui'\nimport { Button, Popover, IconButton } from 'containers/themed'\n\nimport { Typography } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n leftActions: {\n display: 'flex',\n alignItems: 'center',\n [theme.breakpoints.only('xs')]: {\n width: '100%',\n justifyContent: 'space-between'\n },\n '& > span:first-of-type': {\n [theme.breakpoints.only('xs')]: {\n marginRight: 5\n }\n },\n '& > button': {\n [theme.breakpoints.only('xs')]: {\n minWidth: 32,\n fontSize: 10,\n padding: 2\n }\n }\n },\n help: {\n maxWidth: 400,\n padding: 10\n }\n}))\n\nconst defaultSortingDirections = {\n articleDate: 'shuffle',\n publicationName: 'shuffle',\n headline: 'shuffle',\n channelId: 'shuffle',\n topic: 'shuffle'\n}\n\nexport default function Sortbar({ i18n, onSortBy }) {\n const { classes } = useStyles()\n const [sortingDirections, setSortingDirections] = useState(defaultSortingDirections)\n const [selectedField, setSelectedField] = useState(null)\n\n const handleSortingClick = field => {\n const order = sortingDirections[field] !== 'desc' ? 'desc' : 'asc'\n\n setSortingDirections({ ...defaultSortingDirections, [field]: order })\n setSelectedField(field)\n onSortBy({ field, order })\n }\n\n const sortButtonIcon = () => {\n if (sortingDirections[selectedField] === 'desc') {\n return (\n handleSortingClick(selectedField)}\n />\n )\n }\n\n if (sortingDirections[selectedField] === 'asc') {\n return (\n handleSortingClick(selectedField)}\n />\n )\n }\n\n return \n }\n\n return (\n
\n \n {sortButtonIcon()}\n \n handleSortingClick('articleDate')}\n color={selectedField === 'articleDate' ? 'secondary' : undefined}\n >\n {i18n.get('sort_by_article_date')}\n \n handleSortingClick('channelId')}\n color={selectedField === 'channelId' ? 'secondary' : undefined}\n >\n {i18n.get('channel')}\n \n handleSortingClick('publicationName')}\n color={selectedField === 'publicationName' ? 'secondary' : undefined}\n >\n {i18n.get('sort_by_publication')}\n \n handleSortingClick('headline')}\n color={selectedField === 'headline' ? 'secondary' : undefined}\n >\n {i18n.get('sort_by_title')}\n \n handleSortingClick('topic')}\n color={selectedField === 'topic' ? 'secondary' : undefined}\n >\n {i18n.get('topic')}\n \n\n \n \n \n )}\n >\n \n \n
\n )\n}\n\nSortbar.propTypes = {\n i18n: PropTypes.object.isRequired,\n\n onSortBy: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Sortbar from 'components/media_reviews/media_review_detail/sortbar'\nimport { sortBy } from 'actions/media_reviews'\nimport { getI18n } from 'selectors'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSortBy: sortBy\n }\n)(Sortbar)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport LoyaltyIcon from '@mui/icons-material/Loyalty'\nimport SwapHorizIcon from '@mui/icons-material/SwapHoriz'\nimport { Map } from 'immutable'\n\nimport SelectedAppBar from 'components/selected_app_bar'\nimport ExportMenu from 'containers/ExportMenu'\nimport CapSafe from 'containers/CapSafe'\n\nimport { Capabilities } from 'static/constants'\n\nimport useDevice from 'hooks/useDevice'\nimport useI18n from 'hooks/useI18n'\n\nconst ExportButton = CapSafe(ExportMenu, Capabilities.HAS_MEDIA_REVIEW_DISPATCH_FEATURE)\n\nexport default function SelectedNewsBar({\n count,\n onReset,\n onPinClick,\n onUnpinClick,\n capabilities,\n onInvertSelectionClick\n}) {\n const device = useDevice()\n const i18n = useI18n()\n\n const actions = [\n {\n onClick: () => onInvertSelectionClick(),\n label: i18n.get('invert_selection'),\n color: device.get('lt-sm') ? 'secondary' : undefined,\n icon: \n }\n ]\n\n if (capabilities.get(Capabilities.HAS_CUSTOM_TAGS)) {\n actions.push(\n {\n onClick: () => onPinClick(),\n label: i18n.get('pin'),\n color: device.get('lt-sm') ? 'primary' : undefined,\n icon: \n },\n {\n onClick: () => onUnpinClick(),\n label: i18n.get('unpin'),\n color: device.get('lt-sm') ? 'secondary' : undefined,\n icon: \n }\n )\n }\n\n actions.push(\n {\n comp: (\n \n )\n }\n )\n\n return (\n <>\n \n \n )\n}\n\nSelectedNewsBar.propTypes = {\n count: PropTypes.number.isRequired,\n capabilities: PropTypes.instanceOf(Map).isRequired,\n\n onReset: PropTypes.func.isRequired,\n onPinClick: PropTypes.func.isRequired,\n onUnpinClick: PropTypes.func.isRequired,\n onInvertSelectionClick: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Selected from 'components/media_reviews/media_review_detail/selected_news_bar'\n\nimport { getMediaReviewSelectedNews, getCapabilities } from 'selectors'\n\nimport {\n showRemoveCustomTagDialog,\n showCustomTagDialog,\n resetNewsSelection,\n invertNewsSelection\n} from 'actions/media_reviews'\n\nconst mapStateToProps = state => {\n const selectedNews = getMediaReviewSelectedNews(state)\n\n return {\n count: selectedNews.size,\n capabilities: getCapabilities(state)\n }\n}\n\nexport default connect(\n mapStateToProps,\n {\n onReset: resetNewsSelection,\n onPinClick: showCustomTagDialog,\n onUnpinClick: showRemoveCustomTagDialog,\n onInvertSelectionClick: invertNewsSelection\n }\n)(Selected)\n","import { connect } from 'react-redux'\n\nimport CapSafe from 'containers/CapSafe'\nimport { Capabilities } from 'static/constants'\n\nimport CustomTagDialog from 'components/media_reviews/media_review_detail/custom_tag_dialog'\nimport { getShowMediaReviewsRemoveCustomTagDialog } from 'selectors'\nimport { unpinAll, hideRemoveCustomTagDialog } from 'actions/media_reviews'\n\nconst mapStateToProps = state => ({\n active: getShowMediaReviewsRemoveCustomTagDialog(state),\n actionLabelKey: 'unpin_short',\n titleKey: 'unpin'\n})\n\nconst result = connect(\n mapStateToProps,\n {\n onHide: hideRemoveCustomTagDialog,\n onSave: unpinAll\n }\n)(CustomTagDialog)\n\nexport default CapSafe(result, Capabilities.HAS_CUSTOM_TAGS_MODULE)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Typography, Accordion, AccordionSummary, AccordionDetails } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n display: 'flex',\n width: '100%',\n padding: 15\n },\n accordion: {\n marginBottom: 20,\n backgroundColor: theme.isDark ? theme.palette.grey[800] : theme.palette.grey[300]\n },\n element__single: {\n padding: '10px 0',\n width: '100%'\n },\n element__multi: {\n paddingRight: 20,\n flexGrow: 1,\n flexBasis: 'auto',\n minWidth: 170,\n '&:last-child': {\n paddingRight: 0\n }\n },\n element__2: {\n flexBasis: '50%'\n },\n element__3: {\n flexBasis: '33%'\n },\n element__image: {\n paddingTop: 20\n },\n element__text: {\n paddingTop: 10,\n paddingBottom: 10\n },\n image: {\n width: '100%',\n minWidth: 150,\n '& img': {\n width: '100%'\n }\n },\n text: {}\n}))\n\nexport default function ManagementSummary({ mediaReview }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n if (mediaReview.get('summaryContainers').length === 0) {\n return null\n }\n\n const containers = mediaReview.get('summaryContainers').sort((a, b) => a.sorting - b.sorting)\n\n const renderText = element => {\n const { text, textAlign, fontSize } = element\n const html = text ? text.replace(/(\\n|\\r|\\s+(\\n|\\r)|(\\n|\\r)\\s+)+/g, '

') : ''\n\n return (\n \n )\n }\n\n const renderImage = element => {\n const { imageUrl, imageLink, textAlign } = element\n\n return (\n <>\n {imageLink && (\n \n \n \n \n \n )}\n {!imageLink && (\n \n \n \n )}\n \n )\n }\n\n const renderElement = (element, size, containerSorting) => {\n const { type, sorting } = element\n const style = size > 1 ? 'multi' : 'single'\n\n return (\n \n {type === 'image' && renderImage(element)}\n {type === 'text' && renderText(element)}\n \n )\n }\n\n const renderContainer = container => {\n const elements = container.mediaReviewSummaryElements.sort((a, b) => a.sorting - b.sorting)\n const { borderTop, borderRight, borderBottom, borderLeft, borderStyle, borderColor, sorting } = container\n\n const styles = {\n borderTop: borderTop ? `${borderTop}px ${borderStyle} ${borderColor}` : 'medium none transparent',\n borderRight: borderRight ? `${borderRight}px ${borderStyle} ${borderColor}` : 'medium none transparent',\n borderBottom: borderBottom ? `${borderBottom}px ${borderStyle} ${borderColor}` : 'medium none transparent',\n borderLeft: borderLeft ? `${borderLeft}px ${borderStyle} ${borderColor}` : 'medium none transparent'\n }\n\n return (\n \n {elements.map(e => renderElement(e, elements.size, sorting))}\n \n )\n }\n\n return (\n \n }\n >\n {i18n.get('summary')}\n \n \n {containers.map(renderContainer)}\n \n \n )\n}\n\nManagementSummary.propTypes = {\n mediaReview: PropTypes.instanceOf(Map).isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ManagementSummary from 'components/media_reviews/media_review_detail/management_summary/ManagementSummary'\n\nimport {\n getMediaReviewDetailData\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n mediaReview: getMediaReviewDetailData(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(ManagementSummary)\n","import React, { useEffect } from 'react'\nimport { List, Map } from 'immutable'\nimport PropTypes from 'prop-types'\nimport moment from 'moment-timezone'\nimport MoreHorizIcon from '@mui/icons-material/MoreHoriz'\nimport { makeStyles } from 'tss-react/mui'\nimport { useSelector } from 'react-redux'\nimport { useParams } from 'react-router-dom'\nimport { Backdrop, MenuItem, Typography, Paper } from '@mui/material'\n\nimport { getMediaReviewById } from 'selectors'\n\nimport { createLoadable } from 'utils/loadable'\n\nimport { StaggeredListItem } from 'components/staggered_list'\nimport CapSafe from 'containers/CapSafe'\nimport { Capabilities } from 'static/constants'\nimport AppBar from 'containers/AppBar'\nimport AppBarActions from 'containers/media_reviews/media_review_detail/AppBarActions'\nimport { Menu, IconButton, Button } from 'containers/themed'\nimport Summary from 'containers/media_reviews/media_review_detail/Summary'\nimport Codes from 'components/media_reviews/media_review_stats/codes'\nimport ChannelBar from 'components/media_reviews/media_review_stats/channel_bar'\nimport ContentContainer from 'components/content_container'\nimport NrxProgressBar from 'components/nrx_progress_bar'\nimport CenterMessage from 'containers/CenterMessage'\nimport GroupedNewsList from 'containers/media_reviews/media_review_detail/GroupedNewsList'\nimport SortBar from 'containers/media_reviews/media_review_detail/SortBar'\nimport RemoveDialog from 'containers/media_reviews/media_review_detail/RemoveDialog'\nimport Selected from 'containers/media_reviews/media_review_detail/Selected'\nimport RemoveCustomTagDialog from 'containers/media_reviews/media_review_detail/RemoveCustomTagDialog'\nimport ManagementSummary from 'containers/media_reviews/media_review_detail/ManagementSummary'\n\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n position: 'relative'\n },\n actions: {\n display: 'flex',\n justifyContent: 'space-between',\n '& > div': {\n marginLeft: 10\n }\n },\n codes: {\n minHeight: 37\n },\n iconMenu: {\n position: 'absolute',\n zIndex: 1,\n right: 0,\n top: 0\n },\n loading: {\n height: '100%',\n width: '100%',\n position: 'absolute',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n },\n mediaReviewHeader: {\n display: 'flex',\n alignItems: 'flex-start',\n marginBottom: 20,\n '& > div:first-of-type': {\n width: '25%'\n },\n '& > :last-child': {\n width: '75%',\n display: 'flex',\n flexFlow: 'column'\n }\n },\n toolbar: {\n display: 'flex',\n alignItems: 'center',\n padding: '7px 20px',\n marginBottom: 20\n },\n backdrop: {\n fontSize: 28,\n color: theme.palette.common.white,\n zIndex: theme.zIndex.drawer,\n flexDirection: 'column'\n },\n backdropButtons: {\n marginTop: 20,\n '& > *:first-of-type': {\n marginRight: 20\n }\n }\n}))\n\nconst ExportMenuDialogs = createLoadable(() => (\n import(/* webpackChunkName: \"MediaReviewDetailExportMenuDialogs\" */ 'containers/export_menu/ExportMenuDialogs')\n))\nconst EditDialog = createLoadable(() => (\n import(/* webpackChunkName: \"MediaReviewDetailEditDialog\" */ 'containers/news/edit_dialog/EditDialog')\n))\nconst CustomTagDialog = createLoadable(() => (\n import(/* webpackChunkName: \"MediaReviewDetailCustomTagDialog\" */ 'containers/media_reviews/media_review_detail/CustomTagDialog')\n))\nconst AiAnalysisDialog = createLoadable(() => (\n import(/* webpackChunkName: \"MediaReviewDetailAiAnalysisDialog\" */ 'containers/media_reviews/media_review_detail/AiAnalysisDialog')\n))\n\nconst SafeAddMenuItem = CapSafe(MenuItem, [Capabilities.HAS_EDITING_FEATURE, Capabilities.HAS_MEDIA_REVIEW_EDITING_FEATURE])\nconst ExportDialogs = CapSafe(ExportMenuDialogs, Capabilities.HAS_MEDIA_REVIEW_DISPATCH_FEATURE)\nconst SafeSortbar = CapSafe(SortBar, Capabilities.HAS_MEDIA_REVIEW_EDITING_FEATURE)\n\nexport default function MediaReviewDetail({\n exportFormats,\n loading,\n collapseAllTopics,\n expandAllTopics,\n showAllSnippets,\n hideAllSnippets,\n showAllSummaries,\n hideAllSummaries,\n showEditNewsDialog,\n totalCount,\n newsCount,\n onMount,\n onUnmount,\n onAcceptDiff,\n onRejectDiff,\n setValueInSettings,\n pdfCoverTitle,\n showDiffWarning,\n config,\n capabilities\n}) {\n const { id } = useParams()\n const mediaReview = useSelector(state => getMediaReviewById(state, id))\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const shouldAutoCollapseTopics = !config.get('expandTopics')\n const shouldAutoShowSummaries = config.get('showSummaries')\n const shouldAutoShowSnippets = config.get('showSnippets')\n\n useEffect(() => {\n if (mediaReview) {\n onMount(mediaReview.get('id'))\n setValueInSettings({ name: 'pdfCoverTitle', value: mediaReview.get('name') })\n }\n\n return () => {\n setValueInSettings({ name: 'pdfCoverTitle', value: pdfCoverTitle })\n onUnmount()\n }\n }, [onMount, setValueInSettings])\n\n useEffect(() => {\n if (!loading) {\n if (shouldAutoCollapseTopics) {\n collapseAllTopics()\n }\n\n if (shouldAutoShowSummaries) {\n showAllSummaries()\n }\n\n if (shouldAutoShowSnippets) {\n showAllSnippets()\n }\n }\n }, [loading])\n\n if (!mediaReview) {\n return (\n

\n \n \n
\n )\n }\n\n const startDate = moment(mediaReview.get('startDate'))\n const endDate = moment(mediaReview.get('endDate'))\n\n let date = `${startDate.format('L')} - ${endDate.format('L')}`\n\n if (startDate.isSame(endDate, 'day')) {\n date = startDate.format('L')\n }\n\n let headerLabel = i18n.get('media_review_headline', { count: `${newsCount}` })\n\n if (totalCount !== newsCount) {\n headerLabel = `${headerLabel} (${totalCount} ${i18n.get('hits')})`\n }\n\n return (\n <>\n \n }\n title={i18n.get('media_review_of', {\n name: mediaReview.get('name'),\n date\n })}\n />\n\n \n \n \n \n \n \n\n \n {i18n.get('media_review_diff_warning')}\n\n
\n onAcceptDiff()}\n >\n {i18n.get('save_and_overwrite')}\n \n onRejectDiff()}\n >\n {i18n.get('cancel_and_reload')}\n \n
\n \n\n {loading && (\n
\n \n
\n )}\n\n {!loading && (\n \n
\n \n \n \n )}\n >\n collapseAllTopics()}>\n {i18n.get('collapse_all_topics')}\n \n expandAllTopics()}>\n {i18n.get('expand_all_topics')}\n \n showAllSnippets()}>\n {i18n.get('show_snippets')}\n \n hideAllSnippets()}>\n {i18n.get('hide_snippets')}\n \n showAllSummaries()}>\n {i18n.get('show_summaries')}\n \n hideAllSummaries()}>\n {i18n.get('hide_summaries')}\n \n showEditNewsDialog()}>\n {i18n.get('new_news')}\n \n \n\n
\n \n \n \n\n \n
\n \n
\n
\n \n
\n
\n
\n\n \n \n \n {capabilities.get(Capabilities.HAS_MEDIA_REVIEW_EDITING_FEATURE) && (\n \n \n \n )}\n\n \n \n
\n
\n )}\n \n )\n}\n\nMediaReviewDetail.propTypes = {\n exportFormats: PropTypes.instanceOf(List).isRequired,\n pdfCoverTitle: PropTypes.string.isRequired,\n newsCount: PropTypes.number.isRequired,\n totalCount: PropTypes.number.isRequired,\n loading: PropTypes.bool.isRequired,\n showDiffWarning: PropTypes.bool.isRequired,\n config: PropTypes.instanceOf(Map).isRequired,\n capabilities: PropTypes.instanceOf(Map).isRequired,\n\n onMount: PropTypes.func.isRequired,\n onUnmount: PropTypes.func.isRequired,\n setValueInSettings: PropTypes.func.isRequired,\n collapseAllTopics: PropTypes.func.isRequired,\n expandAllTopics: PropTypes.func.isRequired,\n showAllSnippets: PropTypes.func.isRequired,\n hideAllSnippets: PropTypes.func.isRequired,\n showAllSummaries: PropTypes.func.isRequired,\n hideAllSummaries: PropTypes.func.isRequired,\n showEditNewsDialog: PropTypes.func.isRequired,\n onAcceptDiff: PropTypes.func.isRequired,\n onRejectDiff: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\nimport { List } from 'immutable'\n\nimport { DefaultExportFormats } from 'static/constants'\nimport MediaReviewDetail from 'components/media_reviews/media_review_detail'\nimport {\n collapseAllTopics,\n expandAllTopics,\n showAllSnippets,\n hideAllSnippets,\n showAllSummaries,\n hideAllSummaries,\n fetchNewsForMediaReviewStart,\n checkMediaReviewReactionsStop,\n acceptDiff,\n rejectDiff\n} from 'actions/media_reviews'\n\nimport { showEditNewsDialog } from 'actions/news'\nimport { setValueInSettings } from 'actions/export'\n\nimport {\n getMediaReviewTotalNewsCount,\n getMediaReviewNewsCount,\n getMediaReviewDetailRunning,\n getPdfCoverTitle,\n getMediaReviewDetialShowDiffWarning,\n getConfig,\n getCapabilities\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n exportFormats: List(DefaultExportFormats),\n pdfCoverTitle: getPdfCoverTitle(state),\n totalCount: getMediaReviewTotalNewsCount(state),\n newsCount: getMediaReviewNewsCount(state),\n loading: getMediaReviewDetailRunning(state),\n showDiffWarning: getMediaReviewDetialShowDiffWarning(state),\n config: getConfig(state),\n capabilities: getCapabilities(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onMount: fetchNewsForMediaReviewStart,\n onUnmount: checkMediaReviewReactionsStop,\n onAcceptDiff: acceptDiff,\n onRejectDiff: rejectDiff,\n setValueInSettings,\n collapseAllTopics,\n expandAllTopics,\n showAllSnippets,\n hideAllSnippets,\n showAllSummaries,\n hideAllSummaries,\n showEditNewsDialog\n }\n)(MediaReviewDetail)\n","import React from 'react'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { StaggeredList, StaggeredListItem } from 'components/staggered_list'\n\nimport NotificationsButton from 'containers/notifications/NotificationsButton'\n\nconst useStyles = makeStyles()({\n actionsWrapper: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center'\n },\n actionIcon: {\n color: '#ffffff'\n }\n})\n\nconst Actions = () => {\n const { classes } = useStyles()\n const actions = []\n\n actions.push(\n \n )\n\n return (\n \n
\n {actions.map((action, index) => (\n \n {action}\n \n ))}\n
\n
\n )\n}\n\nexport default Actions\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, fromJS } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { getChannelColor } from 'utils/channel'\n\nconst useStyles = makeStyles()({\n bar: {\n display: 'flex',\n width: '100%',\n height: 10\n }\n})\n\nexport default function ChannelBar({ mediaReview }) {\n const { classes } = useStyles()\n const channels = mediaReview.getIn(['stats', 'channels'])\n const newsCount = mediaReview.get('newsCount')\n\n const channelPercentages = channels.reduce(\n (acc, value) => acc.set(value.get('id'), (value.get('count', 0) / newsCount) * 100),\n fromJS({})\n )\n\n return (\n
\n {channelPercentages.keySeq().map(key => (\n \n ))}\n
\n )\n}\n\nChannelBar.propTypes = {\n mediaReview: PropTypes.instanceOf(Map).isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport moment from 'moment-timezone'\nimport { makeStyles } from 'tss-react/mui'\n\nimport Card from 'components/card'\n\nimport { CardContent, CardHeader } from '@mui/material'\nimport ChannelBar from './channel_bar'\n\nconst useStyles = makeStyles()({\n channelBar: {\n position: 'absolute',\n left: 0,\n bottom: 0,\n width: '100%'\n },\n cardText: {\n fontSize: 18,\n paddingTop: 0\n },\n cardTitle: {\n fontSize: 14,\n paddingBottom: '0 !important'\n }\n})\n\nexport default function MediaReview({ i18n, mediaReview, showChannels, className }) {\n const { classes } = useStyles()\n const startDate = moment(mediaReview.get('startDate'))\n const endDate = moment(mediaReview.get('endDate'))\n\n let date = `${startDate.format('L')} - ${endDate.format('L')}`\n\n if (startDate.isSame(endDate, 'day')) {\n date = startDate.format('L')\n }\n\n let channels = null\n\n if (showChannels) {\n channels = (\n
\n \n
\n )\n }\n\n return (\n \n \n\n \n\n \n {date}\n \n\n \n \n {mediaReview.get('newsCount')}\n \n\n {channels}\n \n )\n}\n\nMediaReview.defaultProps = {\n showChannels: true\n}\n\nMediaReview.propTypes = {\n i18n: PropTypes.object.isRequired,\n mediaReview: PropTypes.instanceOf(Map).isRequired,\n showChannels: PropTypes.bool,\n className: PropTypes.string\n}\n","import { connect } from 'react-redux'\n\nimport MediaReview from 'components/media_reviews/media_review'\nimport { getI18n } from 'selectors'\n\nconst mapStateToProps = (state, { mediaReview }) => ({\n i18n: getI18n(state),\n mediaReview\n})\n\nexport default connect(mapStateToProps)(MediaReview)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport Card from 'components/card'\n\nimport { CardContent, CardHeader, Divider } from '@mui/material'\nimport ChannelBar from './channel_bar'\nimport Codes from './codes'\n\nconst useStyles = makeStyles()({\n cardTitle: {\n paddingBottom: '0 !important'\n },\n cardText: {\n fontSize: 16,\n paddingBottom: 0\n },\n codes: {\n '& > div:first-of-type': {\n marginBottom: 10\n }\n }\n})\n\nexport default function MediaReviewStats({ i18n, mediaReview, className }) {\n const { classes, cx } = useStyles()\n\n return (\n \n \n\n \n \n \n \n\n \n\n \n \n \n \n )\n}\n\nMediaReviewStats.propTypes = {\n i18n: PropTypes.object.isRequired,\n mediaReview: PropTypes.instanceOf(Map).isRequired,\n className: PropTypes.string\n}\n","import { connect } from 'react-redux'\n\nimport MediaReviewStats from 'components/media_reviews/media_review_stats'\nimport { getI18n } from 'selectors'\n\nconst mapStateToProps = (state, { mediaReview }) => ({\n i18n: getI18n(state),\n mediaReview\n})\n\nexport default connect(mapStateToProps)(MediaReviewStats)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { StaggeredListItem } from 'components/staggered_list'\nimport { FlexListItem } from 'components/flex_list'\nimport MediaReview from 'containers/media_reviews/MediaReview'\n\nconst useStyles = makeStyles()({\n mediaReview: {\n cursor: 'pointer'\n },\n item: {\n height: 260\n }\n})\n\nexport default function MediaReviewItem({ mediaReview, index, navigate, delay, initialDelay, columns }) {\n const { classes } = useStyles()\n\n return (\n \n navigate(`/app/media_reviews/${mediaReview.get('id')}`)}\n >\n \n \n \n )\n}\n\nMediaReviewItem.defaultProps = {\n initialDelay: 0,\n delay: 50\n}\n\nMediaReviewItem.propTypes = {\n mediaReview: PropTypes.instanceOf(Map).isRequired,\n index: PropTypes.number.isRequired,\n delay: PropTypes.number,\n initialDelay: PropTypes.number,\n columns: PropTypes.number,\n\n navigate: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport MediaReviewItem from 'components/media_reviews/media_review_item'\nimport { navigate } from 'actions/navigation'\n\nexport default connect(null, { navigate })(MediaReviewItem)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { List, Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport { mapToOptions } from 'utils/autocomplete'\nimport { Autocomplete, RaisedPrimaryButton } from 'containers/themed'\nimport AppBar from 'containers/AppBar'\n\nimport ContentContainer from 'components/content_container'\nimport { StaggeredListItem } from 'components/staggered_list'\n\nimport { FlexList } from 'components/flex_list'\nimport Actions from 'components/media_reviews/actions'\nimport MediaReview from 'containers/media_reviews/MediaReview'\n\nimport MediaReviewStats from 'containers/media_reviews/MediaReviewStats'\nimport MediaReviewItem from 'containers/media_reviews/MediaReviewItem'\nimport SearchIcon from '@mui/icons-material/Search'\n\nimport { MediaReviewFilterSizes } from 'static/constants'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Typography } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n subtitle: {\n marginTop: 10,\n fontWeight: 300\n },\n newestMediaReviewContainer: {\n marginTop: 10,\n marginBottom: 20,\n display: 'flex',\n flexWrap: 'wrap',\n width: '100%'\n },\n item: {\n minHeight: 260\n },\n newestMediaReview: {\n width: '20%',\n paddingRight: 15,\n cursor: 'pointer',\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3)'\n },\n [theme.breakpoints.down('md')]: {\n paddingRight: 0,\n width: '100%',\n marginBottom: 10\n }\n },\n newestMediaReviewStats: {\n width: '80%',\n paddingLeft: 5,\n minHeight: 260,\n cursor: 'pointer',\n [theme.breakpoints.only('md')]: {\n width: 'calc(100% / 3 * 2)'\n },\n [theme.breakpoints.down('md')]: {\n paddingLeft: 0,\n width: '100%'\n }\n },\n headline: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'flex-start',\n marginBottom: 10,\n [theme.breakpoints.down('md')]: {\n flexDirection: 'column',\n alignItems: 'flex-start'\n }\n },\n filters: {\n flex: 1,\n display: 'flex',\n justifyContent: 'flex-end',\n alignItems: 'center',\n [theme.breakpoints.down('md')]: {\n flexDirection: 'column',\n alignItems: 'flex-end'\n }\n },\n sizeSelect: {\n width: '10%',\n marginRight: 10,\n [theme.breakpoints.down('md')]: {\n width: '100%'\n }\n },\n templateSelect: {\n width: '20%',\n marginRight: 10,\n [theme.breakpoints.down('md')]: {\n width: '100%'\n }\n }\n}))\n\nexport default function MediaReviews({\n mediaReviews,\n mediaReviewTypes,\n filter,\n loading,\n setMediaReviewFilter,\n setMediaReviewFilterSize,\n onFilterClick,\n navigate\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const templateOptions = mapToOptions(mediaReviewTypes)\n const sizeOptions = MediaReviewFilterSizes.map(value => ({ value, label: value.toString() }))\n const olderMediaReviews = mediaReviews.slice(1)\n\n return (\n
\n \n }\n />\n\n \n
\n
\n \n {i18n.get('media_reviews')}\n \n \n {i18n.get('newest_media_review')}\n \n
\n\n
\n setMediaReviewFilterSize(option.value)}\n placeholder=\"\"\n label={i18n.get('editions')}\n value={sizeOptions.find(el => el.value === filter.get('size'))}\n options={sizeOptions}\n />\n setMediaReviewFilter(value.map(el => el.value))}\n placeholder=\"\"\n label={i18n.get('select_media_review_types')}\n options={templateOptions}\n />\n
\n onFilterClick()}\n startIcon={}\n >{i18n.get('search')}\n \n
\n
\n
\n\n
\n {\n mediaReviews.slice(0, 1).map(\n (mediaReview, index) => (\n navigate(`/app/media_reviews/${mediaReview.get('id')}`)}\n >\n \n \n )\n )\n }\n\n {\n mediaReviews.slice(0, 1).map(\n (mediaReview, index) => (\n navigate(`/app/media_reviews/${mediaReview.get('id')}`)}\n >\n \n \n )\n )\n }\n
\n\n {!olderMediaReviews.isEmpty() && (\n <>\n \n {i18n.get('last_media_reviews', { count: olderMediaReviews.size })}\n \n\n \n {olderMediaReviews.map((mediaReview, index) => (\n \n ))}\n \n \n )}\n
\n
\n )\n}\n\nMediaReviews.propTypes = {\n mediaReviews: PropTypes.instanceOf(List).isRequired,\n mediaReviewTypes: PropTypes.instanceOf(List).isRequired,\n filter: PropTypes.instanceOf(Map).isRequired,\n loading: PropTypes.bool.isRequired,\n\n setMediaReviewFilter: PropTypes.func.isRequired,\n setMediaReviewFilterSize: PropTypes.func.isRequired,\n onFilterClick: PropTypes.func.isRequired,\n navigate: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport MediaReviews from 'components/media_reviews'\nimport {\n getMediaReviewsData,\n getStaticMediaReviewTypes,\n getMediaReviewsFilter,\n getMediaReviewsFilterRequestRunning,\n getUser\n} from 'selectors'\nimport { setMediaReviewFilter, setMediaReviewFilterSize, filterMediaReviewsStart } from 'actions/media_reviews'\nimport { navigate } from 'actions/navigation'\n\nconst mapStateToProps = state => ({\n mediaReviews: getMediaReviewsData(state),\n mediaReviewTypes: getStaticMediaReviewTypes(state),\n filter: getMediaReviewsFilter(state),\n loading: getMediaReviewsFilterRequestRunning(state),\n user: getUser(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n setMediaReviewFilter,\n setMediaReviewFilterSize,\n onFilterClick: filterMediaReviewsStart,\n navigate\n }\n)(MediaReviews)\n","import React, { useEffect, useState, useMemo } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport YoutubeSearchedForIcon from '@mui/icons-material/YoutubeSearchedFor'\nimport luminate from 'utils/luminate'\nimport { InputBase, Paper, Divider, IconButton } from '@mui/material'\nimport { useTheme } from '@mui/material/styles'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport WithDevice from 'containers/WithDevice'\nimport useDevice from 'hooks/useDevice'\n\nconst useStyles = makeStyles()({\n searchBar: {\n display: 'flex',\n alignItems: 'center',\n color: '#ffffff'\n },\n input: {\n flex: 1,\n color: '#ffffff',\n width: '100%',\n '&::placeholder': {\n color: '#ffffff',\n opacity: '0.7 !important'\n }\n },\n divider: {\n width: 1,\n height: 28,\n margin: '4px 4px 4px 0',\n backgroundColor: 'rgba(255, 255, 255, 0.12)'\n },\n searchIcon: {\n padding: 6\n }\n})\n\nconst calculateBgColor = color => luminate(color, -0.27)\n\nconst SearchBar = ({\n i18n,\n label,\n colors,\n queryTypeDropdown,\n onFocus,\n onBlur,\n onSubmit,\n onError,\n loading,\n accent,\n inherit,\n whitelabelTheme,\n autoFocus\n}) => {\n const { classes } = useStyles()\n const theme = useTheme()\n const [query, setQuery] = useState('')\n const device = useDevice()\n\n useEffect(() => {\n if (loading && query !== '') {\n setQuery('')\n }\n }, [loading, query])\n\n const submit = () => {\n if (query.charAt(0) === '-') {\n return onError({ text: i18n.get('invalid_query'), success: false })\n }\n\n return onSubmit(query.trim())\n }\n\n const style = useMemo(() => {\n let color = whitelabelTheme === 'plotlights' ? theme.palette.background.paper : colors.get('primary')\n color = accent ? colors.get('accent') : color\n color = inherit ? theme.palette.background.paper : color\n\n return ({\n backgroundColor: calculateBgColor(color)\n })\n }, [colors.get('primary')])\n\n return (\n \n {queryTypeDropdown}\n \n setQuery(e.target.value)}\n autoFocus={autoFocus}\n onKeyUp={e => {\n if (e.keyCode === 13) {\n submit()\n }\n }}\n type=\"text\"\n value={query}\n onFocus={onFocus}\n onBlur={onBlur}\n inputProps={{\n className: classes.inputElement\n }}\n />\n \n \n \n \n )\n}\n\nSearchBar.propTypes = {\n i18n: PropTypes.object.isRequired,\n label: PropTypes.string.isRequired,\n colors: PropTypes.instanceOf(Map).isRequired,\n onSubmit: PropTypes.func.isRequired,\n onError: PropTypes.func.isRequired,\n loading: PropTypes.bool.isRequired,\n accent: PropTypes.bool,\n inherit: PropTypes.bool,\n whitelabelTheme: PropTypes.string,\n autoFocus: PropTypes.bool,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n queryTypeDropdown: PropTypes.element\n}\n\nexport default WithDevice()(SearchBar)\n","export default function luminate(h, l) {\n if (!l) {\n return h\n }\n\n // validate hex string\n let hex = String(h).replace(/[^0-9a-f]/gi, '')\n\n if (hex.length < 6) {\n hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2]\n }\n\n const lum = l || 0\n\n // convert to decimal and change luminosity\n let rgb = '#'\n let c\n for (let i = 0; i < 3; i += 1) {\n c = parseInt(hex.substr(i * 2, 2), 16)\n c = Math.round(Math.min(Math.max(0, c + (c * lum)), 255)).toString(16)\n rgb += (`00${c}`).substr(c.length)\n }\n\n return rgb\n}\n","import { connect } from 'react-redux'\n\nimport SearchBar from 'components/search_bar'\nimport { uiEnteredQuery } from 'actions/ui'\nimport { showAppMessage } from 'actions/app'\n\nimport { getI18n, getSearchBarLabel, getColors, getNewsRequestIsRunning, getWhitelabelTheme } from 'selectors'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n colors: getColors(state),\n whitelabelTheme: getWhitelabelTheme(state),\n label: getSearchBarLabel(state),\n loading: getNewsRequestIsRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSubmit: uiEnteredQuery,\n onError: showAppMessage\n }\n)(SearchBar)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'\nimport PeopleIcon from '@mui/icons-material/People'\nimport MessageIcon from '@mui/icons-material/Message'\nimport TitleIcon from '@mui/icons-material/Title'\nimport CampaignIcon from '@mui/icons-material/Campaign'\nimport ContactsIcon from '@mui/icons-material/Contacts'\nimport PeopleAltOutlinedIcon from '@mui/icons-material/PeopleAltOutlined'\nimport TagIcon from '@mui/icons-material/Tag'\nimport SwitchAccountIcon from '@mui/icons-material/SwitchAccount'\nimport StickyNote2Icon from '@mui/icons-material/StickyNote2'\nimport FeedIcon from '@mui/icons-material/Feed'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n NewsPageModules,\n ContentDeskSearchFields,\n ContactManagementSearchFields,\n ThemaxSearchFields\n} from 'static/constants'\n\nimport { Menu, IconButton } from 'containers/themed'\nimport masterConfig from 'static/master_config'\n\nimport { MenuItem, Icon, ListItemIcon } from '@mui/material'\n\nconst useStyles = makeStyles()({\n icon: {\n color: '#ffffff'\n },\n button: {\n padding: 6\n }\n})\n\nexport default function QueryTypeDropdown({ i18n, onChange, value, moduleName }) {\n const { classes } = useStyles()\n\n // default options for news page modules\n let queyTypeOptions = [\n onChange(moduleName === NewsPageModules.PROFILE_MONITORING ? 'post' : 'news')}\n >\n \n \n \n\n {i18n.get(moduleName === NewsPageModules.PROFILE_MONITORING ? 'posts' : 'news')}\n ,\n onChange(moduleName === NewsPageModules.PROFILE_MONITORING ? 'profile' : 'author')}\n >\n \n \n \n\n {i18n.get(moduleName === NewsPageModules.PROFILE_MONITORING ? 'profiles' : 'authors')}\n ,\n onChange('publication')}\n >\n \n \n {masterConfig.getIn(['icons', 'publications'])}\n \n \n\n {i18n.get('publications')}\n \n ]\n\n if (moduleName === 'contentDesk') {\n queyTypeOptions = [\n onChange(ContentDeskSearchFields.CONTENT_PLAIN_TEXT)}\n >\n \n \n \n\n {i18n.get(ContentDeskSearchFields.CONTENT_PLAIN_TEXT)}\n ,\n onChange(ContentDeskSearchFields.CONTENT_TITLE)}\n >\n \n \n \n\n {i18n.get(ContentDeskSearchFields.CONTENT_TITLE)}\n ,\n onChange(ContentDeskSearchFields.CAMPAIGN_NAME)}\n >\n \n \n \n\n {i18n.get(ContentDeskSearchFields.CAMPAIGN_NAME)}\n \n ]\n }\n\n if (moduleName === 'contactManagement') {\n queyTypeOptions = [\n onChange(ContactManagementSearchFields.CONTACT_NAME)}\n >\n \n \n \n\n {i18n.get(ContactManagementSearchFields.CONTACT_NAME)}\n ,\n onChange(ContactManagementSearchFields.CONTACT_TAG)}\n >\n \n \n \n\n {i18n.get(ContactManagementSearchFields.CONTACT_TAG)}\n ,\n onChange(ContactManagementSearchFields.DISTRIBUTION_LIST_NAME)}\n >\n \n \n \n\n {i18n.get(ContactManagementSearchFields.DISTRIBUTION_LIST_NAME)}\n \n ]\n }\n\n if (moduleName === 'themax') {\n queyTypeOptions = [\n onChange(ThemaxSearchFields.TOPIC_PLAN)}\n >\n \n \n \n\n {i18n.get(ThemaxSearchFields.TOPIC_PLAN)}\n ,\n onChange(ThemaxSearchFields.PUBLICATION_NAME)}\n >\n \n \n \n\n {i18n.get(ThemaxSearchFields.PUBLICATION_NAME)}\n ,\n onChange(ThemaxSearchFields.PUBLICATION_INFO)}\n >\n \n \n \n\n {i18n.get(ThemaxSearchFields.PUBLICATION_INFO)}\n \n ]\n }\n\n return (\n \n \n \n )}\n >\n {queyTypeOptions}\n \n )\n}\n\nQueryTypeDropdown.propTypes = {\n value: PropTypes.string.isRequired,\n moduleName: PropTypes.string.isRequired,\n i18n: PropTypes.object.isRequired,\n\n onChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport QueryTypeDropdown from 'components/query_type_dropdown'\nimport { setSelectedQueryType } from 'actions/filter'\nimport { getSelectedQueryType, getI18n, getViewConfigModuleName } from 'selectors'\n\nconst mapStateToProps = state => ({\n value: getSelectedQueryType(state),\n i18n: getI18n(state),\n moduleName: getViewConfigModuleName(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: setSelectedQueryType\n }\n)(QueryTypeDropdown)\n","import React, { memo } from 'react'\nimport PropTypes from 'prop-types'\n\nimport WithI18n from 'containers/WithI18n'\n\nimport { getDateString } from 'utils/date'\n\nconst SelectedDateRange = ({ dateRange, dateFrom, dateTo, i18n }) => (\n \n {getDateString(dateRange, dateFrom, dateTo, i18n)}\n \n)\n\nSelectedDateRange.propTypes = {\n dateFrom: PropTypes.object,\n dateTo: PropTypes.object,\n dateRange: PropTypes.string,\n i18n: PropTypes.object\n}\n\nexport default memo(WithI18n()(SelectedDateRange))\n","import { connect } from 'react-redux'\n\nimport SelectedDateRange from 'components/news_page/selected_date_range'\nimport {\n getSelectedDateFrom,\n getSelectedDateTo,\n getSelectedDateRange\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n dateFrom: getSelectedDateFrom(state),\n dateTo: getSelectedDateTo(state),\n dateRange: getSelectedDateRange(state)\n})\n\nexport default connect(mapStateToProps)(SelectedDateRange)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport SelectedDateRange from 'containers/news_page/SelectedDateRange'\nimport { Button, IconButton } from 'containers/themed'\nimport ScheduleIcon from '@mui/icons-material/Schedule'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()(theme => ({\n iconButton: {\n [theme.breakpoints.only('sm')]: {\n padding: 8\n }\n }\n}))\n\nexport default function DateFilterButton({ whitelabelTheme, active, device, onClick }) {\n const { classes } = useStyles()\n const color = whitelabelTheme === 'plotlights' ? 'primary' : 'secondary'\n const renderDateButton = () => {\n let comp = (\n
\n\n }\n >\n \n \n
\n )\n\n if (device.get('lt-md')) {\n comp = (\n \n \n \n )\n }\n\n return comp\n }\n\n return (<>{renderDateButton()})\n}\n\nDateFilterButton.propTypes = {\n onClick: PropTypes.func.isRequired,\n whitelabelTheme: PropTypes.string.isRequired,\n active: PropTypes.bool.isRequired,\n device: PropTypes.instanceOf(Map)\n}\n","import { connect } from 'react-redux'\n\nimport DateFilterButton from 'components/news_page/date_filter_button'\n\nimport { getDevice, getWhitelabelTheme } from 'selectors'\n\nconst mapStateToProps = state => ({\n device: getDevice(state),\n whitelabelTheme: getWhitelabelTheme(state)\n})\n\nexport default connect(mapStateToProps, {})(DateFilterButton)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()(theme => ({\n actionBar: {\n display: 'flex',\n flexWrap: 'wrap',\n justifyContent: 'flex-end',\n width: '100%',\n\n '& button': {\n marginLeft: 10\n },\n\n '& button:first-of-type': {\n marginLeft: 0\n },\n\n [theme.breakpoints.up('lg')]: {\n position: 'fixed',\n bottom: 0,\n right: 0,\n padding: 10,\n width: 500,\n backgroundColor: theme.nrx.paper.backgroundPaperColor\n }\n }\n}))\n\nexport default function ActionBar({ children, className }) {\n const { classes, cx } = useStyles()\n\n return (\n
\n {children}\n
\n )\n}\n\nActionBar.propTypes = {\n children: PropTypes.any,\n className: PropTypes.string\n}\n","import React, { useState, Fragment } from 'react'\nimport PropTypes from 'prop-types'\nimport { List, Map, fromJS } from 'immutable'\nimport HelpIcon from '@mui/icons-material/Help'\nimport KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight'\nimport KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp'\nimport CloseIcon from '@mui/icons-material/Close'\nimport SettingsBackupRestoreIcon from '@mui/icons-material/SettingsBackupRestore'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { SearchFields, Capabilities } from 'static/constants'\n\nimport { mapToOptions } from 'utils/autocomplete'\nimport { RaisedPrimaryButton, Button, Autocomplete, IconButton } from 'containers/themed'\nimport CapSafe from 'containers/CapSafe'\nimport ActionBar from 'components/search_form/action_bar'\n\nimport { Typography, Grid, Checkbox, FormControlLabel, FormGroup, Switch, Divider } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n buttonContainer: {\n backgroundColor: theme.nrx.paper.paperOnBackgroundColor,\n justifyContent: 'space-between',\n [theme.breakpoints.up('lg')]: {\n width: 750\n },\n '& > div:last-child': {\n '& > *': {\n marginRight: 10\n },\n '& > *:last-child': {\n marginRight: 0\n }\n },\n '& > div:first-of-type': {\n marginRight: 0\n }\n },\n outlinksTitle: {\n marginBottom: 10\n },\n spacer: {\n flex: 0.9,\n [theme.breakpoints.only('xs')]: {\n display: 'none'\n }\n },\n searchForm: {\n overflow: 'visible',\n padding: 20,\n [theme.breakpoints.up('lg')]: {\n height: '90%',\n overflowY: 'auto'\n }\n },\n tonality: {\n padding: '0 12px'\n },\n divider: {\n marginBottom: 10\n },\n header: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n '& > *:last-child': {\n marginRight: -5\n }\n }\n}))\n\nconst mapToEntity = (entities, values, propsValues) => (values || List([]))\n .map(value => {\n const { value: id } = value\n\n const found = entities.find(entity => entity.get('id') === id)\n\n if (found) {\n return found.toJS()\n }\n\n const foundDefault = propsValues.find(pv => pv.get('id') === id)\n\n if (id === -1 && List.isList(propsValues)) {\n return foundDefault.toJS()\n }\n\n return null\n })\n .filter(e => e)\n\nconst Row = props => (\n \n)\n\nconst Col = props => (\n \n)\n\nconst CustomTagsCol = CapSafe(Col, Capabilities.HAS_CUSTOM_TAGS)\nconst NewsguardCol = CapSafe(Col, Capabilities.HAS_NEWSGUARD)\nconst CampaignsCol = CapSafe(Col, Capabilities.HAS_CONTENT_DESK_MODULE)\n\nconst SearchForm = props => {\n const { classes } = useStyles()\n const {\n mediaReviewCodes,\n countries,\n languages,\n mediaTypes,\n channels,\n filterGroups,\n distributionAreas,\n customTags,\n customTagGroups,\n newsguardRanks,\n newsguardOrientations,\n identitySets,\n mediaReviewTypes,\n ccdCampaigns,\n interfaces,\n suppliers,\n hasTonality,\n allowedFilterFields,\n i18n,\n device,\n toggleHelpDialog,\n uiApplyFilters,\n uiResetFilters,\n setSelectedFilters,\n onClose\n } = props\n\n const [selectedMediaReviewCodes, setSelectedMediaReviewCodes] = useState(mapToOptions(props.selectedMediaReviewCodes))\n const [selectedMediaTypes, setSelectedMediaTypes] = useState(mapToOptions(props.selectedMediaTypes))\n const [selectedLanguages, setSelectedLanguages] = useState(mapToOptions(props.selectedLanguages))\n const [selectedCountries, setSelectedCountries] = useState(mapToOptions(props.selectedCountries))\n const [selectedChannels, setSelectedChannels] = useState(mapToOptions(props.selectedChannels))\n const [selectedFilterGroups, setSelectedFilterGroups] = useState(mapToOptions(props.selectedFilterGroups))\n const [selectedDistributionAreas, setSelectedDistributionAreas] = useState(mapToOptions(props.selectedDistributionAreas))\n const [selectedCustomTags, setSelectedCustomTags] = useState(mapToOptions(props.selectedCustomTags))\n const [selectedCustomTagGroups, setSelectedCustomTagGroups] = useState(mapToOptions(props.selectedCustomTagGroups))\n const [selectedNewsguardRanks, setSelectedNewsguardRanks] = useState(mapToOptions(props.selectedNewsguardRanks))\n const [selectedNewsguardOrientations, setSelectedNewsguardOrientations] = useState(mapToOptions(props.selectedNewsguardOrientations))\n const [selectedIdentitySets, setSelectedIdentitySets] = useState(mapToOptions(props.selectedIdentitySets))\n const [selectedOutlinkDomains, setSelectedOutlinkDomains] = useState(mapToOptions(props.selectedOutlinkDomains))\n const [selectedOutlinkUrls, setSelectedOutlinkUrls] = useState(mapToOptions(props.selectedOutlinkUrls))\n const [selectedMediaReviewTypes, setSelectedMediaReviewTypes] = useState(mapToOptions(props.selectedMediaReviewTypes))\n const [selectedCcdCampaigns, setSelectedCcdCampaigns] = useState(mapToOptions(props.selectedCcdCampaigns))\n const [selectedInterfaces, setSelectedInterfaces] = useState(mapToOptions(props.selectedInterfaces))\n const [selectedSuppliers, setSelectedSuppliers] = useState(mapToOptions(props.selectedSuppliers))\n const [negative, setNegative] = useState(props.negative)\n const [neutral, setNeutral] = useState(props.neutral)\n const [positive, setPositive] = useState(props.positive)\n const [unknown, setUnknown] = useState(props.unknown)\n const [booleans, setBooleans] = useState(props.booleans)\n const [active, setActive] = useState(props.active)\n const [previousActive, setPreviousActive] = useState(null)\n\n if (active !== previousActive) {\n setSelectedMediaReviewCodes(mapToOptions(props.selectedMediaReviewCodes))\n setSelectedMediaTypes(mapToOptions(props.selectedMediaTypes))\n setSelectedLanguages(mapToOptions(props.selectedLanguages))\n setSelectedCountries(mapToOptions(props.selectedCountries))\n setSelectedChannels(mapToOptions(props.selectedChannels))\n setSelectedOutlinkDomains(mapToOptions(props.selectedOutlinkDomains))\n setSelectedOutlinkUrls(mapToOptions(props.selectedOutlinkUrls))\n setSelectedFilterGroups(mapToOptions(props.selectedFilterGroups))\n setSelectedDistributionAreas(mapToOptions(props.selectedDistributionAreas))\n setSelectedCustomTags(mapToOptions(props.selectedCustomTags))\n setSelectedCustomTagGroups(mapToOptions(props.selectedCustomTagGroups))\n setSelectedNewsguardRanks(mapToOptions(props.selectedNewsguardRanks))\n setSelectedNewsguardOrientations(mapToOptions(props.selectedNewsguardOrientations))\n setSelectedIdentitySets(mapToOptions(props.selectedIdentitySets))\n setSelectedMediaReviewTypes(mapToOptions(props.selectedMediaReviewTypes))\n setSelectedCcdCampaigns(mapToOptions(props.selectedCcdCampaigns))\n setNegative(props.negative)\n setNeutral(props.neutral)\n setPositive(props.positive)\n setUnknown(props.unknown)\n setBooleans(props.booleans)\n setPreviousActive(active)\n setActive(props.active)\n }\n\n const handleBooleans = newBooleans => {\n const overrides = {}\n\n if (newBooleans.get('withOutlinksOnly') && !booleans.get('withOutlinksOnly')) {\n overrides.withoutOutlinksOnly = false\n }\n\n if (newBooleans.get('withoutOutlinksOnly') && !booleans.get('withoutOutlinksOnly')) {\n overrides.withOutlinksOnly = false\n }\n\n setBooleans(newBooleans.merge(overrides))\n }\n\n const handleApply = () => {\n const oDomains = selectedOutlinkDomains.map(o => ({\n id: o.value,\n name: o.value\n }))\n const oUrls = selectedOutlinkUrls.map(o => ({\n id: o.value,\n name: o.value\n }))\n\n setSelectedFilters({\n channels: mapToEntity(channels, selectedChannels),\n outlinkDomains: booleans.get('withOutlinksOnly') ? oDomains : [],\n outlinkUrls: booleans.get('withOutlinksOnly') ? oUrls : [],\n filterGroups: mapToEntity(filterGroups, selectedFilterGroups),\n distributionAreas: mapToEntity(distributionAreas, selectedDistributionAreas),\n customTags: mapToEntity(customTags, selectedCustomTags, props.selectedCustomTags),\n customTagGroups: mapToEntity(customTagGroups, selectedCustomTagGroups),\n newsguardRanks: mapToEntity(newsguardRanks, selectedNewsguardRanks),\n newsguardOrientations: mapToEntity(newsguardOrientations, selectedNewsguardOrientations),\n identitySets: mapToEntity(identitySets, selectedIdentitySets),\n countries: mapToEntity(countries, selectedCountries),\n languages: mapToEntity(languages, selectedLanguages),\n mediaReviewCodes: mapToEntity(mediaReviewCodes, selectedMediaReviewCodes, props.selectedMediaReviewCodes),\n mediaTypes: mapToEntity(mediaTypes, selectedMediaTypes),\n mediaReviewTypes: mapToEntity(mediaReviewTypes, selectedMediaReviewTypes),\n interfaces: mapToEntity(interfaces, selectedInterfaces),\n suppliers: mapToEntity(suppliers, selectedSuppliers),\n similarity: {\n ccdCampaigns: mapToEntity(ccdCampaigns, selectedCcdCampaigns)\n },\n tonalities: {\n negative,\n neutral,\n positive,\n unknown\n },\n booleans\n })\n\n uiApplyFilters()\n }\n\n const handleCreateBacklink = inputValue => {\n let domain\n\n try {\n const url = new URL(inputValue)\n\n domain = url.hostname.replace('www.', '')\n } catch (e) {\n domain = inputValue\n }\n\n setSelectedOutlinkDomains(selectedOutlinkDomains.concat({\n value: domain,\n label: domain\n }))\n }\n\n const renderFilter = (comp, ...names) => {\n if (allowedFilterFields && !names.some(name => allowedFilterFields.includes(name))) {\n return null\n }\n\n return comp\n }\n\n const renderAutocomplete = (\n labelKey,\n onChange,\n source,\n value,\n name,\n helperText,\n creatable,\n allowEmptySource,\n onCreateOption,\n disableOptionsSelect\n ) => {\n if (!source.size && !allowEmptySource) {\n return null\n }\n\n return renderFilter((\n <>\n `${i18n.get('add')}: ${inputValue}`}\n onCreateOption={onCreateOption}\n disableOptionsSelect={disableOptionsSelect}\n textFieldProps={{\n helperText\n }}\n />\n
\n \n ), name)\n }\n\n const renderCol = (children, Comp = Col) => {\n if (!children) {\n return null\n }\n\n return {children}\n }\n\n const renderTonalitiesFilter = () => {\n if (!hasTonality) {\n return null\n }\n\n return renderFilter((\n \n \n {i18n.get('tonality')}:\n \n \n setNegative(e.target.checked)}\n classes={{ root: classes.tonality }}\n />\n )}\n />\n setNeutral(e.target.checked)}\n classes={{ root: classes.tonality }}\n />\n )}\n />\n setPositive(e.target.checked)}\n classes={{ root: classes.tonality }}\n />\n )}\n />\n setUnknown(e.target.checked)}\n classes={{ root: classes.tonality }}\n />\n )}\n />\n \n \n ), SearchFields.TONALITIES)\n }\n\n const renderArticleOptions = () => {\n const hasFacebook = channels.some(c => c.get('id') === 6)\n const hasTwitter = channels.some(c => c.get('id') === 7)\n\n return renderFilter((\n \n \n {i18n.get('article_options')}:\n \n\n \n {renderFilter((\n handleBooleans(booleans.set('summarizedOnly', e.target.checked))}\n />\n )}\n />\n ), SearchFields.SUMMARIZED_ONLY)}\n\n {renderFilter((\n handleBooleans(booleans.set('globalClusters', !e.target.checked))}\n />\n )}\n />\n ), SearchFields.GLOBAL_CLUSTERS)}\n\n {hasFacebook && renderFilter((\n handleBooleans(booleans.set('excludeVisitorPosts', e.target.checked))}\n />\n )}\n />\n ), SearchFields.EXCLUDE_VISITOR_POSTS)}\n\n {renderFilter((\n handleBooleans(booleans.set('excludeComments', e.target.checked))}\n />\n )}\n />\n ), SearchFields.EXCLUDE_COMMENTS)}\n\n {hasTwitter && renderFilter((\n handleBooleans(booleans.set('excludeRetweets', e.target.checked))}\n />\n )}\n />\n ), SearchFields.EXCLUDE_RETWEETS)}\n \n \n ), SearchFields.BOOLEANS,\n SearchFields.GLOBAL_CLUSTERS,\n SearchFields.EXCLUDE_VISITOR_POSTS,\n SearchFields.EXCLUDE_COMMENTS)\n }\n\n const channelsWithCountry = channels.filter(c => c.get('hasCountry')).map(c => c.get('name')).join(', ')\n\n return (\n
\n
\n \n {i18n.get('advanced_search')}\n \n onClose()}\n title={i18n.get('close')}\n size=\"large\"\n >\n {device.get('lt-lg') ? : }\n \n
\n \n\n \n {renderCol(\n renderAutocomplete(\n 'select_topics',\n value => setSelectedMediaReviewCodes(value),\n mediaReviewCodes,\n selectedMediaReviewCodes,\n SearchFields.MEDIA_REVIEW_CODES\n )\n )}\n {renderCol(\n renderAutocomplete(\n 'select_custom_tags',\n value => setSelectedCustomTags(value),\n customTags,\n selectedCustomTags,\n SearchFields.CUSTOM_TAGS\n ),\n CustomTagsCol\n )}\n {renderCol(\n renderAutocomplete(\n 'select_channels',\n value => setSelectedChannels(value),\n channels,\n selectedChannels,\n SearchFields.CHANNELS\n )\n )}\n {renderCol(\n renderAutocomplete(\n 'select_custom_tag_groups',\n value => setSelectedCustomTagGroups(value),\n customTagGroups,\n selectedCustomTagGroups,\n SearchFields.CUSTOM_TAG_GROUPS\n ),\n CustomTagsCol\n )}\n {renderCol(\n renderAutocomplete(\n 'select_languages',\n value => setSelectedLanguages(value),\n languages,\n selectedLanguages,\n SearchFields.LANGUAGES\n )\n )}\n {renderCol(\n renderAutocomplete(\n 'select_countries',\n value => setSelectedCountries(value),\n countries,\n selectedCountries,\n SearchFields.COUNTRIES,\n (selectedCountries && selectedCountries.length && channelsWithCountry\n ? i18n.get('for_channels_only', { channels: channelsWithCountry }) : undefined\n )\n )\n )}\n {renderCol(\n renderAutocomplete(\n 'select_media_types',\n value => setSelectedMediaTypes(value),\n mediaTypes,\n selectedMediaTypes,\n SearchFields.MEDIA_TYPES\n )\n )}\n {renderCol(\n renderAutocomplete(\n 'select_filter_groups',\n value => setSelectedFilterGroups(value),\n filterGroups,\n selectedFilterGroups,\n SearchFields.FILTER_GROUPS\n )\n )}\n {renderCol(\n renderAutocomplete(\n 'select_distribution_areas',\n value => setSelectedDistributionAreas(value),\n distributionAreas,\n selectedDistributionAreas,\n SearchFields.DISTRIBUTION_AREAS\n )\n )}\n {renderCol(\n renderAutocomplete(\n 'select_identity_sets',\n value => setSelectedIdentitySets(value),\n identitySets,\n selectedIdentitySets,\n SearchFields.IDENTITY_SETS\n )\n )}\n {renderCol(\n renderAutocomplete(\n 'select_newsguard_ranks',\n value => setSelectedNewsguardRanks(value),\n newsguardRanks,\n selectedNewsguardRanks,\n SearchFields.NEWSGUARD_RANKS\n ),\n NewsguardCol\n )}\n {renderCol(\n renderAutocomplete(\n 'select_newsguard_orientations',\n value => setSelectedNewsguardOrientations(value),\n newsguardOrientations,\n selectedNewsguardOrientations,\n SearchFields.NEWSGUARD_ORIENTATIONS\n ),\n NewsguardCol\n )}\n {renderCol(\n renderAutocomplete(\n 'select_media_review_types',\n value => setSelectedMediaReviewTypes(value),\n mediaReviewTypes,\n selectedMediaReviewTypes,\n SearchFields.MEDIA_REVIEW_TYPES\n )\n )}\n {renderCol(\n renderAutocomplete(\n 'select_ccd_campaigns',\n value => setSelectedCcdCampaigns(value),\n ccdCampaigns,\n selectedCcdCampaigns,\n SearchFields.SIMILARITY_CCD_CAMPAIGNS\n ),\n CampaignsCol\n )}\n {renderCol(\n renderAutocomplete(\n 'select_interfaces',\n value => setSelectedInterfaces(value),\n interfaces,\n selectedInterfaces,\n SearchFields.INTERFACES\n )\n )}\n {renderCol(\n renderAutocomplete(\n 'select_suppliers',\n value => setSelectedSuppliers(value),\n suppliers,\n selectedSuppliers,\n SearchFields.SUPPLIERS\n )\n )}\n \n\n \n {renderTonalitiesFilter()}\n {renderArticleOptions()}\n \n\n <>\n \n {i18n.get('outlinks')}\n \n\n \n\n \n {renderCol(\n <>\n {renderFilter((\n handleBooleans(booleans.set('withOutlinksOnly', e.target.checked))}\n />\n )}\n />\n ), SearchFields.WITH_OUTLINKS_ONLY)}\n\n {renderFilter((\n handleBooleans(booleans.set('withoutOutlinksOnly', e.target.checked))}\n />\n )}\n />\n ), SearchFields.WITHOUT_OUTLINKS_ONLY)}\n \n )}\n\n {booleans.get('withOutlinksOnly') && renderCol(\n <>\n {renderAutocomplete(\n 'select_outlink_domains',\n value => setSelectedOutlinkDomains(value || []),\n fromJS([]),\n selectedOutlinkDomains,\n SearchFields.OUTLINK_DOMAINS,\n i18n.get('domains_tooltip'),\n true,\n true,\n handleCreateBacklink,\n true\n )}\n {renderAutocomplete(\n 'select_outlinks',\n value => setSelectedOutlinkUrls(value || []),\n fromJS([]),\n selectedOutlinkUrls,\n SearchFields.OUTLINK_URLS,\n i18n.get('outlinks_tooltip'),\n true,\n true,\n undefined,\n true\n )}\n \n )}\n \n \n\n {device.get('lt-lg') && (\n <>\n
\n \n
\n \n )}\n\n \n {device.get('lt-sm') && (\n toggleHelpDialog()}\n size=\"large\"\n >\n \n \n )}\n\n {device.get('gt-xs') && (\n toggleHelpDialog()}\n startIcon={}\n >\n {i18n.get('help')}\n \n )}\n\n
\n\n
\n {device.get('lt-sm') && (\n onClose()}\n size=\"large\"\n >\n \n \n )}\n\n {device.get('gt-xs') && (\n \n )}\n\n {device.get('lt-sm') && (\n uiResetFilters()}\n size=\"large\"\n >\n \n \n )}\n\n {device.get('gt-xs') && (\n uiResetFilters()}\n >\n {i18n.get('reset_filters')}\n \n )}\n\n \n {i18n.get('apply_filters')}\n \n
\n \n
\n )\n}\n\nexport default React.memo(SearchForm, (prevProps, nextProps) => (nextProps.active))\n\nSearchForm.propTypes = {\n active: PropTypes.bool.isRequired,\n\n mediaReviewCodes: PropTypes.instanceOf(List).isRequired,\n selectedMediaReviewCodes: PropTypes.instanceOf(List).isRequired,\n\n countries: PropTypes.instanceOf(List).isRequired,\n selectedCountries: PropTypes.instanceOf(List).isRequired,\n\n languages: PropTypes.instanceOf(List).isRequired,\n selectedLanguages: PropTypes.instanceOf(List).isRequired,\n\n mediaTypes: PropTypes.instanceOf(List).isRequired,\n selectedMediaTypes: PropTypes.instanceOf(List).isRequired,\n\n channels: PropTypes.instanceOf(List).isRequired,\n selectedChannels: PropTypes.instanceOf(List).isRequired,\n\n filterGroups: PropTypes.instanceOf(List).isRequired,\n selectedFilterGroups: PropTypes.instanceOf(List).isRequired,\n\n distributionAreas: PropTypes.instanceOf(List).isRequired,\n selectedDistributionAreas: PropTypes.instanceOf(List).isRequired,\n\n customTags: PropTypes.instanceOf(List).isRequired,\n selectedCustomTags: PropTypes.instanceOf(List).isRequired,\n\n customTagGroups: PropTypes.instanceOf(List).isRequired,\n selectedCustomTagGroups: PropTypes.instanceOf(List).isRequired,\n\n identitySets: PropTypes.instanceOf(List).isRequired,\n selectedIdentitySets: PropTypes.instanceOf(List).isRequired,\n\n selectedOutlinkDomains: PropTypes.instanceOf(List).isRequired,\n selectedOutlinkUrls: PropTypes.instanceOf(List).isRequired,\n\n mediaReviewTypes: PropTypes.instanceOf(List).isRequired,\n selectedMediaReviewTypes: PropTypes.instanceOf(List).isRequired,\n\n ccdCampaigns: PropTypes.instanceOf(List).isRequired,\n selectedCcdCampaigns: PropTypes.instanceOf(List).isRequired,\n\n interfaces: PropTypes.instanceOf(List).isRequired,\n selectedInterfaces: PropTypes.instanceOf(List).isRequired,\n\n suppliers: PropTypes.instanceOf(List).isRequired,\n selectedSuppliers: PropTypes.instanceOf(List).isRequired,\n\n newsguardRanks: PropTypes.instanceOf(List).isRequired,\n selectedNewsguardRanks: PropTypes.instanceOf(List).isRequired,\n newsguardOrientations: PropTypes.instanceOf(List).isRequired,\n selectedNewsguardOrientations: PropTypes.instanceOf(List).isRequired,\n\n hasTonality: PropTypes.bool.isRequired,\n\n booleans: PropTypes.instanceOf(Map).isRequired,\n\n negative: PropTypes.bool.isRequired,\n neutral: PropTypes.bool.isRequired,\n positive: PropTypes.bool.isRequired,\n unknown: PropTypes.bool.isRequired,\n\n allowedFilterFields: PropTypes.instanceOf(List),\n\n i18n: PropTypes.object.isRequired,\n device: PropTypes.instanceOf(Map).isRequired,\n\n toggleHelpDialog: PropTypes.func.isRequired,\n uiApplyFilters: PropTypes.func.isRequired,\n uiResetFilters: PropTypes.func.isRequired,\n setSelectedFilters: PropTypes.func.isRequired,\n onClose: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport { toggleHelpDialog, toggleAdvancedSearch } from 'actions/news'\nimport SearchForm from 'components/search_form'\nimport { setSelectedFilters } from 'actions/filter'\nimport { uiApplyFilters, uiResetFilters } from 'actions/ui'\nimport {\n getStaticMediaReviewCodes,\n getStaticCountries,\n getStaticLanguages,\n getStaticMediaTypes,\n getStaticChannels,\n getStaticFilterGroups,\n getStaticDistributionAreas,\n getCustomTags,\n getCustomTagGroups,\n getStaticNewsguardRanks,\n getStaticNewsguardOrientations,\n getIdentitySets,\n getStaticMediaReviewTypesForFiltering,\n getCDeskCampaigns,\n getStaticInterfaces,\n getStaticSuppliers,\n\n getSelectedMediaReviewCodes,\n getSelectedCountries,\n getSelectedLanguages,\n getSelectedMediaTypes,\n getSelectedChannels,\n getSelectedOutlinkDomains,\n getSelectedOutlinkUrls,\n getSelectedFilterGroups,\n getSelectedDistributionAreas,\n getSelectedCustomTags,\n getSelectedCustomTagGroups,\n getSelectedNewsguardRanks,\n getSelectedNewsguardOrientations,\n getSelectedIdentitySets,\n getSelectedMediaReviewTypes,\n getSelectedCDCampaigns,\n getSelectedInterfaces,\n getSelectedSuppliers,\n\n getSelectedTonalities,\n\n getSelectedBooleans,\n\n getAllowedFilterFields,\n\n getSelectedGeoBoundingBox,\n\n getI18n,\n getDevice,\n getConfig,\n getNewsUi\n} from 'selectors'\n\nconst mapStateToProps = state => {\n const selectedTonalities = getSelectedTonalities(state).map(x => x.get('id'))\n\n return {\n active: getNewsUi(state).get('showAdvancedSearch'),\n\n mediaReviewCodes: getStaticMediaReviewCodes(state),\n countries: getStaticCountries(state),\n languages: getStaticLanguages(state),\n mediaTypes: getStaticMediaTypes(state),\n channels: getStaticChannels(state),\n filterGroups: getStaticFilterGroups(state),\n distributionAreas: getStaticDistributionAreas(state),\n customTags: getCustomTags(state),\n customTagGroups: getCustomTagGroups(state),\n newsguardRanks: getStaticNewsguardRanks(state),\n newsguardOrientations: getStaticNewsguardOrientations(state),\n identitySets: getIdentitySets(state),\n mediaReviewTypes: getStaticMediaReviewTypesForFiltering(state),\n ccdCampaigns: getCDeskCampaigns(state).get('items'),\n interfaces: getStaticInterfaces(state),\n suppliers: getStaticSuppliers(state),\n\n selectedMediaReviewCodes: getSelectedMediaReviewCodes(state),\n selectedCountries: getSelectedCountries(state),\n selectedLanguages: getSelectedLanguages(state),\n selectedMediaTypes: getSelectedMediaTypes(state),\n selectedChannels: getSelectedChannels(state),\n selectedOutlinkDomains: getSelectedOutlinkDomains(state),\n selectedOutlinkUrls: getSelectedOutlinkUrls(state),\n selectedFilterGroups: getSelectedFilterGroups(state),\n selectedDistributionAreas: getSelectedDistributionAreas(state),\n selectedCustomTags: getSelectedCustomTags(state),\n selectedCustomTagGroups: getSelectedCustomTagGroups(state),\n selectedNewsguardRanks: getSelectedNewsguardRanks(state),\n selectedNewsguardOrientations: getSelectedNewsguardOrientations(state),\n selectedIdentitySets: getSelectedIdentitySets(state),\n selectedMediaReviewTypes: getSelectedMediaReviewTypes(state),\n selectedCcdCampaigns: getSelectedCDCampaigns(state),\n selectedInterfaces: getSelectedInterfaces(state),\n selectedSuppliers: getSelectedSuppliers(state),\n\n negative: selectedTonalities.includes('negative'),\n neutral: selectedTonalities.includes('neutral'),\n positive: selectedTonalities.includes('positive'),\n unknown: selectedTonalities.includes('unknown'),\n\n hasTonality: getConfig(state).get('hasTonality'),\n\n booleans: getSelectedBooleans(state),\n\n geoBoundingBox: getSelectedGeoBoundingBox(state),\n\n allowedFilterFields: getAllowedFilterFields(state),\n\n i18n: getI18n(state),\n device: getDevice(state)\n }\n}\n\nexport default connect(\n mapStateToProps,\n {\n setSelectedFilters,\n toggleHelpDialog,\n uiApplyFilters,\n uiResetFilters,\n onClose: toggleAdvancedSearch\n }\n)(SearchForm)\n","/* eslint-disable max-len, react/no-unescaped-entities */\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport { Dialog } from 'containers/themed'\nimport { makeStyles } from 'tss-react/mui'\nimport { red } from '@mui/material/colors'\n\nconst useStyles = makeStyles()({\n helpText: {\n '& > h5': {\n marginBottom: 10\n },\n '& > pre': {\n fontSize: '90%',\n fontFamily: '\"Courier 10 Pitch\", Courier, monospace',\n whiteSpace: 'pre-wrap',\n height: '1%',\n width: 'auto',\n display: 'block',\n clear: 'both',\n color: '#555555',\n padding: 10,\n margin: '10px 20px',\n background: '#f4f4f4',\n border: 'solid 1px #e1e1e1',\n\n '& > code': {\n fontSize: '90%',\n height: '1%',\n fontFamily:\n 'Monaco, Consolas, \"Andale Mono\", \"DejaVu Sans Mono\", monospace',\n display: 'inline',\n color: '#555555',\n padding: 10,\n background: '#f4f4f4'\n }\n },\n '& > operator': {\n color: red[600]\n }\n }\n})\n\nconst headlineLabel = resultType => {\n if (resultType === 'darknet') {\n return 'title'\n }\n\n return 'headline'\n}\n\nconst entryLabel = (resultType, languageId) => {\n if (resultType === 'darknet') {\n if (languageId === 1) {\n return 'Einträge'\n }\n\n return 'entries'\n }\n\n if (languageId === 1) {\n return 'News'\n }\n\n return 'news'\n}\nexport default function HelpDialog({\n i18n,\n showHelpDialog,\n languageId,\n resultType,\n toggleHelpDialog\n}) {\n const { classes } = useStyles()\n\n const renderHelpText = () => {\n if (languageId === 1) {\n return (\n
\n
Die Liste zeigt Ihnen, welche Operatoren Sie in der Suche verwenden können. Groß- und Kleinschreibung hat keinen Einfluß auf die Suchergebnisse. Kombinationen sind möglich. Mit Klammern () können außerdem Formeln gebildet werden.
\n
\n
Verknüpfungen:
\n
Wald AND Baum
\n
Suchergebnisse: {entryLabel(resultType, languageId)} in denen beide Begriffe vorkommen. Entspricht der Suche +Wald +Baum
\n
Wald OR Baum
\n
Suchergebnisse: {entryLabel(resultType, languageId)} in denen mindestens einer der Begriffe vorkommen. Entspricht der Suche Wald Baum
\n
Wald NOT Baum
\n
Suchergebnisse: {entryLabel(resultType, languageId)} in denen Wald, aber nicht Baum vorkommt. Entspricht der Suche +Wald -Baum
\n
\n
Phrase:
\n
\"Wald und Baum\"
\n
Suchergebnisse: {entryLabel(resultType, languageId)} mit der Phrase in entsprechender Reiheinfolge der Begriffe.
\n
\n
Wildcards:
\n
Wald*
\n
Suchergebnisse: {entryLabel(resultType, languageId)} mit Wörtern wie Waldmeister, Waldschrat etc.
\n
W??d
\n
Suchergebnisse: {entryLabel(resultType, languageId)} mit Wörtern wie Wald, wird, wild etc.
\n
\n
Nearby:
\n
\"Wald Baum\"~3
\n
Suchergebnisse: {entryLabel(resultType, languageId)} in denen die Worte Wald und Baum maximal drei Worte auseinander stehen. Die Zahl ist beliebig wählbar.
\n
\n
Suche in der Überschrift:
\n
{headlineLabel(resultType)}:wald
\n
Suchergebnisse: {entryLabel(resultType, languageId)} in deren Überschrift Wald vorkommt.
\n
\n )\n }\n\n if (languageId === 5) {\n return (\n
\n
При осуществлении поиска можно использовать следующие операторы. На результаты поиска не влияют заглавные или строчные буквы. Поисковые запросы также могут быть сформированы с помощью скобок ().
\n
\n
Операторы поиска:
\n
лес AND дерево
\n
Результаты поиска: статьи, в которых встречаются оба ключевых слова. Также соответствует поиску +лес +дерево
\n
лес OR дерево
\n
Результаты поиска: статьи, в которых встречается хотя бы одно ключевое слово. Также соответствует поиску лес дерево
\n
лес NOT дерево
\n
Результаты поиска: статьи, в которых встречается ключевое слово лес, но не дерево. Также соответствует поиску +лес -дерево
\n
\n
Фразы
\n
\"сосновый лес\"
\n
Результаты поиска: статьи, в которых слова, поставленные в кавычки, идут подряд и согласно указанному порядку.
\n
\n
Символы:
\n
дерев*
\n
Результаты поиска: статьи, в которых встречаются любые ключевые слова, начинающиеся на дерев-, например, деревья, деревянный.
\n
д??в*
\n
Результаты поиска: статьи, в которых встречается слова, начинающиеся и заканчивающиеся определенным образом.
\n
\n
Рядом:
\n
\"сосновый лес\"~3
\n
Результаты поиска: статьи, в которых слова сосновый лес разделены максимум 3 другими словами.
\n
\n )\n }\n\n return (\n
\n
This list shows the operators you can use for your query. The search results are not affected by upper and lower case letters. Combinations are possible. Formulas can also be formed using brackets ().
\n
\n
Connectors:
\n
forest AND tree
\n
Search results: {entryLabel(resultType, languageId)} in which both terms occur. Corresponds to search +Forest +Tree
\n
forest OR tree
\n
Search results: {entryLabel(resultType, languageId)} in which at least one of the terms occurs. Corresponds to the search forest tree
\n
forest NOT tree
\n
Search results: {entryLabel(resultType, languageId)} in which forest but not tree occurs. Corresponds to search +Forest -Tree
\n
\n
Phrase:
\n
\"forest and tree\"
\n
Search results: {entryLabel(resultType, languageId)} with the phrase in the corresponding order of the terms.
\n
\n
Wildcards:
\n
wood*
\n
Search results: {entryLabel(resultType, languageId)} with words like woodstock, woodpecker etc.
\n
w??d
\n
Search results: {entryLabel(resultType, languageId)} with words like wood, wild, word etc.
\n
\n
Nearby:
\n
\"Forest tree\"~3
\n
Search results: {entryLabel(resultType, languageId)} in which the words forest and tree are separated by a maximum of three words. The limit is freely selectable.
\n
Search in {headlineLabel(resultType)}:
\n
{headlineLabel(resultType)}:forest
\n
Search result: {entryLabel(resultType, languageId)} whose headline contains forest.
\n
\n )\n }\n\n return (\n \n
\n
\n {renderHelpText()}\n \n )\n}\n\nHelpDialog.propTypes = {\n languageId: PropTypes.number.isRequired,\n toggleHelpDialog: PropTypes.func.isRequired,\n resultType: PropTypes.string,\n showHelpDialog: PropTypes.bool.isRequired,\n\n i18n: PropTypes.object.isRequired\n}\n\nHelpDialog.defaultProps = {\n resultType: 'default'\n}\n","import { connect } from 'react-redux'\n\nimport HelpDialog from 'components/help_dialog'\nimport { toggleHelpDialog } from 'actions/news'\nimport { getNewsUi, getUser, getI18n } from 'selectors'\n\nconst mapStateToProps = state => ({\n showHelpDialog: getNewsUi(state).get('showHelpDialog'),\n languageId: getUser(state).get('languageId'),\n i18n: getI18n(state)\n})\n\nexport default connect(mapStateToProps, { toggleHelpDialog })(HelpDialog)\n","import React, { useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport Chart from 'containers/charts/Chart'\nimport useI18n from 'hooks/useI18n'\n\nimport { Card, Typography } from '@mui/material'\n\nconst useStyles = makeStyles()({\n title: {\n margin: '10px 0 0 10px'\n },\n chart: {\n width: '100%',\n height: 150\n }\n})\n\nexport default function FilterTimeline({\n chart,\n active,\n onClick,\n dateFrom,\n dateTo,\n onDateChange,\n hidden\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n useEffect(() => {\n if (active) {\n onDateChange({\n dateFrom,\n dateTo\n })\n }\n }, [dateFrom, dateTo, onDateChange, active])\n\n if (hidden) {\n return null\n }\n\n return (\n \n \n {i18n.get('filter_timeline_hint')}\n \n\n
\n onClick({ chart, d, secondFilter })}\n />\n
\n
\n )\n}\n\nFilterTimeline.propTypes = {\n chart: PropTypes.instanceOf(Map).isRequired,\n dateFrom: PropTypes.object,\n dateTo: PropTypes.object,\n active: PropTypes.bool,\n hidden: PropTypes.bool,\n\n onClick: PropTypes.func.isRequired,\n onDateChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport FilterTimeline from 'components/date_form/filter_timeline'\nimport { drilldown } from 'actions/charts'\nimport { getFilterTimeline, getShowFilterTimeline } from 'selectors'\nimport { fetchFilterTimelineStart } from 'actions/news'\n\nconst mapStateToProps = state => ({\n chart: getFilterTimeline(state),\n hidden: !getShowFilterTimeline(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClick: drilldown,\n onDateChange: fetchFilterTimelineStart\n }\n)(FilterTimeline)\n","import React, { useState, useEffect } from 'react'\nimport { Map, List } from 'immutable'\nimport PropTypes from 'prop-types'\nimport moment from 'moment-timezone'\nimport { makeStyles } from 'tss-react/mui'\nimport KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight'\nimport KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp'\nimport {\n RaisedSecondaryButton,\n RaisedPrimaryButton,\n InlineDatePicker,\n InlineDateTimePicker,\n Button,\n IconButton\n} from 'containers/themed'\nimport { Grid, Link, Typography, RadioGroup, Radio, FormControlLabel, Divider } from '@mui/material'\nimport { red } from '@mui/material/colors'\n\nimport FilterTimeline from 'containers/date_form/FilterTimeline'\nimport ActionBar from 'components/search_form/action_bar'\nimport { getDateQuickselects } from 'utils/date'\n\nconst useStyles = makeStyles()(theme => ({\n dateForm: {\n padding: 20,\n [theme.breakpoints.up('lg')]: {\n maxHeight: '90%',\n overflowY: 'auto'\n }\n },\n dateTypeRow: {\n marginBottom: -5,\n '& > div': {\n display: 'inline'\n }\n },\n dateRestrictionInfo: {\n color: red[500],\n marginBottom: 10\n },\n link: {\n marginBottom: 10,\n cursor: 'pointer',\n color: theme.nrx.drawer.linkColor\n },\n activeLink: {\n marginBottom: 10,\n cursor: 'pointer',\n color: theme.nrx.drawer.activeLinkColor\n },\n divider: {\n marginBottom: 10\n },\n close: {\n position: 'absolute',\n top: 10,\n right: 10\n },\n inputs: {\n '& > div': {\n width: '100%',\n '&:first-of-type': {\n marginBottom: 20\n }\n }\n },\n actionBar: {\n backgroundColor: theme.nrx.paper.paperOnBackgroundColor\n }\n}))\n\nconst Row = props => (\n \n)\n\nconst Col = props => (\n \n)\n\nconst DateForm = ({\n active,\n primary,\n secondary,\n allowedDateTypes,\n dateRange,\n dateType,\n device,\n hasTimelineFilter,\n hasDateRestriction,\n i18n,\n locale,\n onChangeDateType,\n onClose,\n timeLimit,\n timeUnit,\n uiApplyDateFilter,\n uiChooseQuickSelect,\n dateFrom: dateFromFromProps,\n dateTo: dateToFromProps\n}) => {\n const { classes } = useStyles()\n const [dateFrom, setDateFrom] = useState(dateFromFromProps)\n const [dateTo, setDateTo] = useState(dateToFromProps)\n const [open, setOpen] = useState(false)\n\n useEffect(() => {\n if (active) {\n setDateFrom(dateFrom)\n setDateTo(dateTo)\n setOpen(false)\n }\n }, [active])\n\n const handleApply = () => {\n let newDateFrom = dateFrom\n let newDateTo = dateTo\n\n if (dateType === 'article') {\n if (newDateFrom) {\n newDateFrom = moment(newDateFrom).startOf('minute').toDate()\n }\n\n if (newDateTo) {\n newDateTo = moment(newDateTo).endOf('minute').toDate()\n }\n }\n\n uiApplyDateFilter({\n dateFrom: newDateFrom,\n dateTo: newDateTo\n })\n }\n\n const handleChange = (name, value) => {\n if (name === 'dateFrom') {\n setDateFrom(value)\n } else {\n setDateTo(value)\n }\n }\n\n // const handleReset = name => e => {\n // e.preventDefault()\n // e.stopPropagation()\n\n // if (name === 'dateFrom') {\n // setDateFrom(null)\n // } else {\n // setDateTo(null)\n // }\n // }\n\n const renderTimeRangeCol = () => {\n let PickerComp = InlineDatePicker\n let ampm\n\n if (dateType === 'article') {\n ampm = locale === 'en-us'\n PickerComp = InlineDateTimePicker\n }\n\n return (\n \n \n {i18n.get('time_range')}\n \n \n\n
\n {\n handleChange('dateFrom', value)\n }}\n onOpen={() => setOpen(true)}\n onClose={() => setOpen(false)}\n resettable\n />\n\n {\n handleChange('dateTo', value)\n }}\n onOpen={() => setOpen(true)}\n onClose={() => setOpen(false)}\n resettable\n />\n
\n \n )\n }\n\n const renderQuickSelectItem = range => (\n uiChooseQuickSelect(range)}\n >\n {i18n.get(range)}\n \n )\n\n const renderQuickSelectCol = () => (\n \n \n {i18n.get('quick_ranges')}\n \n \n\n \n \n {\n getDateQuickselects(dateType)[0].map(renderQuickSelectItem)\n }\n \n \n {\n getDateQuickselects(dateType)[1].map(renderQuickSelectItem)\n }\n \n \n \n )\n\n const renderDateType = () => {\n const radios = []\n\n if (allowedDateTypes.includes('mediareview')) {\n radios.push(\n }\n label={i18n.get('media_review_date')}\n />\n )\n }\n\n if (allowedDateTypes.includes('article')) {\n radios.push(\n }\n label={i18n.get('article_date')}\n />\n )\n }\n\n if (radios.length <= 1) {\n return null\n }\n\n return (\n <>\n \n {i18n.get('date_type')}\n \n \n\n
\n onChangeDateType(event.target.value)}\n >\n {radios}\n \n
\n\n
\n \n )\n }\n\n const renderRestrictionInfo = () => {\n if (!hasDateRestriction) {\n return null\n }\n\n const time = moment().subtract(timeLimit, timeUnit).fromNow()\n\n return (\n
\n {i18n.get('date_restriction_info')}: {i18n.get('today')} {i18n.get('till').toLowerCase()} {time}.\n
\n )\n }\n\n const ButtonComp = !primary || secondary ? RaisedSecondaryButton : RaisedPrimaryButton\n\n return (\n
\n {renderDateType()}\n {renderQuickSelectCol()}\n {renderTimeRangeCol()}\n
\n\n {renderRestrictionInfo()}\n\n {hasTimelineFilter && (\n \n )}\n
\n\n \n \n\n \n {i18n.get('apply_filters')}\n \n \n\n
\n onClose()}\n title={i18n.get('close')}\n size=\"large\"\n >\n {device.get('lt-lg') ? : }\n \n
\n
\n )\n}\n\nDateForm.defaultProps = {\n primary: true,\n secondary: false,\n hasTimelineFilter: true\n}\n\nDateForm.propTypes = {\n active: PropTypes.bool.isRequired,\n primary: PropTypes.bool,\n secondary: PropTypes.bool,\n dateFrom: PropTypes.object, // eslint-disable-line\n dateTo: PropTypes.object, // eslint-disable-line\n dateRange: PropTypes.string, // eslint-disable-line\n dateType: PropTypes.string,\n locale: PropTypes.string, // eslint-disable-line\n i18n: PropTypes.object.isRequired,\n allowedDateTypes: PropTypes.instanceOf(List).isRequired, // eslint-disable-line\n hasDateRestriction: PropTypes.bool, // eslint-disable-line\n timeLimit: PropTypes.number.isRequired, // eslint-disable-line\n timeUnit: PropTypes.string.isRequired, // eslint-disable-line\n device: PropTypes.instanceOf(Map).isRequired,\n hasTimelineFilter: PropTypes.bool,\n\n uiApplyDateFilter: PropTypes.func.isRequired,\n uiChooseQuickSelect: PropTypes.func.isRequired, // eslint-disable-line\n onChangeDateType: PropTypes.func.isRequired, // eslint-disable-line\n onClose: PropTypes.func.isRequired\n}\n\nexport default React.memo(DateForm, (prevProps, nextProps) => !nextProps.active)\n","import { connect } from 'react-redux'\n\nimport DateForm from 'components/date_form'\nimport { uiApplyDateFilter, uiChooseQuickSelect } from 'actions/ui'\nimport { changeDateType } from 'actions/filter'\nimport { toggleDateForm } from 'actions/news'\nimport {\n getSelectedDateFrom,\n getSelectedDateTo,\n getSelectedDateRange,\n getSelectedDateType,\n getLocale,\n getI18n,\n getDevice,\n getAllowedDateTypes,\n getViewConfigHasDateRestriction,\n getNewsPoolTimeLimit,\n getNewsPoolTimeUnit,\n getNewsUi\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n active: getNewsUi(state).get('showDateForm'),\n dateFrom: getSelectedDateFrom(state),\n dateTo: getSelectedDateTo(state),\n dateRange: getSelectedDateRange(state),\n dateType: getSelectedDateType(state),\n locale: getLocale(state),\n i18n: getI18n(state),\n device: getDevice(state),\n allowedDateTypes: getAllowedDateTypes(state),\n hasDateRestriction: getViewConfigHasDateRestriction(state),\n timeLimit: getNewsPoolTimeLimit(state),\n timeUnit: getNewsPoolTimeUnit(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n uiApplyDateFilter,\n uiChooseQuickSelect,\n onChangeDateType: changeDateType,\n onClose: toggleDateForm\n }\n)(DateForm)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport FilterListIcon from '@mui/icons-material/FilterList'\nimport { makeStyles } from 'tss-react/mui'\nimport SearchBar from 'containers/SearchBar'\n\nimport QueryTypeDropdown from 'containers/QueryTypeDropdown'\nimport DateFilterButton from 'containers/news_page/DateFilterButton'\nimport AppBar from 'containers/AppBar'\nimport SearchForm from 'containers/search_form/SearchForm'\nimport HelpDialog from 'containers/HelpDialog'\nimport DateForm from 'containers/date_form/DateForm'\nimport NotificationsButton from 'containers/notifications/NotificationsButton'\nimport { Button, IconButton } from 'containers/themed'\nimport { Drawer } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n searchBar: {\n transition: 'width 150ms',\n width: '25%',\n [theme.breakpoints.only('md')]: {\n width: '25%'\n },\n [theme.breakpoints.down('md')]: {\n width: '45%',\n marginLeft: 10\n },\n [theme.breakpoints.only('xs')]: {\n marginLeft: 5\n }\n },\n searchActions: {\n marginRight: 10,\n display: 'flex',\n [theme.breakpoints.only('xs')]: {\n marginLeft: 5,\n marginRight: 0\n },\n [theme.breakpoints.up('sm')]: {\n marginLeft: 20\n },\n '& > div:first-of-type': {\n marginRight: 10\n }\n },\n iconButton: {\n padding: 0\n },\n drawer: {\n overflowY: 'auto',\n [theme.breakpoints.up('lg')]: {\n width: 500\n }\n },\n searchFormDrawer: {\n [theme.breakpoints.up('lg')]: {\n width: 750\n }\n }\n}))\n\nexport default function NewsPageAppBar({\n showDateForm,\n showAdvancedSearch,\n device,\n i18n,\n titleKey,\n actions,\n toggleAdvancedSearch,\n toggleDateForm\n}) {\n const { classes, cx } = useStyles()\n const [barStyle, setBarStyle] = useState(null)\n const NotificationButton = \n\n const handleFocus = () => {\n let width = '100%'\n\n if (device.get('gt-md')) {\n width = '50%'\n }\n\n setBarStyle({ width })\n }\n\n const handleBlur = () => {\n setTimeout(() => setBarStyle(null), 500)\n }\n\n const renderForms = () => {\n const anchor = device.get('lt-lg') ? 'top' : 'right'\n\n return (\n <>\n toggleAdvancedSearch()}\n >\n \n \n toggleDateForm()}\n >\n \n \n \n )\n }\n\n const renderFilterButton = () => {\n let comp = (\n
\n toggleAdvancedSearch()}\n startIcon={}\n >\n {i18n.get('filter')}\n \n
\n )\n\n if (device.get('lt-sm')) {\n comp = (\n toggleAdvancedSearch()}\n size=\"large\"\n >\n \n \n )\n }\n\n return comp\n }\n\n const renderActions = acts => {\n if (device.get('lt-lg') && barStyle) {\n return null\n }\n\n return acts\n }\n\n const renderAppBarActions = () => renderActions([...actions, NotificationButton])\n\n const renderSearchActions = () => renderActions(\n
\n {renderFilterButton()}\n toggleDateForm()}\n active={showDateForm}\n />\n
\n )\n\n let title\n\n if (device.get('gt-sm')) {\n title = i18n.get(titleKey)\n }\n\n return (\n <>\n \n \n }\n />\n
\n\n {renderSearchActions()}\n \n\n {renderForms()}\n\n \n \n )\n}\n\nNewsPageAppBar.propTypes = {\n showDateForm: PropTypes.bool.isRequired,\n showAdvancedSearch: PropTypes.bool.isRequired,\n device: PropTypes.object.isRequired,\n i18n: PropTypes.object.isRequired,\n titleKey: PropTypes.string,\n actions: PropTypes.array,\n\n toggleAdvancedSearch: PropTypes.func.isRequired,\n toggleDateForm: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport NewsPageAppBar from 'components/news_page_app_bar'\nimport { toggleDateForm, toggleAdvancedSearch } from 'actions/news'\nimport {\n getNewsUi,\n getDevice,\n getI18n,\n getViewConfigAppBarTitleKey\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n showDateForm: getNewsUi(state).get('showDateForm'),\n showAdvancedSearch: getNewsUi(state).get('showAdvancedSearch'),\n i18n: getI18n(state),\n device: getDevice(state),\n titleKey: getViewConfigAppBarTitleKey(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n toggleAdvancedSearch,\n toggleDateForm\n }\n)(NewsPageAppBar)\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { List as iList } from 'immutable'\nimport ChevronRightIcon from '@mui/icons-material/ChevronRight'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Input, Button } from 'containers/themed'\nimport NrxProgressBar from 'components/nrx_progress_bar'\n\nimport useI18n from 'hooks/useI18n'\nimport usePrevious from 'hooks/usePrevious'\n\nimport { List, Divider, Popover } from '@mui/material'\n\nimport ListItemButton from '@mui/material/ListItemButton'\n\nconst useStyles = makeStyles()(theme => ({\n highlight: {\n color: theme.palette.primary.main,\n fontWeight: 700\n },\n list: {\n maxHeight: '50vh',\n overflowY: 'auto'\n },\n inputContainer: {\n padding: 10\n },\n buttonContainer: {\n display: 'flex',\n justifyContent: 'flex-end'\n },\n loading: {\n display: 'flex',\n width: '100%',\n height: '100%',\n justifyContent: 'center',\n alignItems: 'center',\n position: 'absolute'\n }\n}))\n\nexport default function FilterableMenu({ items, onItemClick, onMainClick, handle, loading }) {\n const [value, setValue] = useState('')\n const [anchorEl, setAnchorEl] = useState(null)\n const { classes } = useStyles()\n const i18n = useI18n()\n const previousLoading = usePrevious(loading)\n\n useEffect(() => {\n if (previousLoading && !loading && anchorEl) {\n setAnchorEl(null)\n setValue('')\n }\n }, [loading, previousLoading, anchorEl, setAnchorEl])\n\n const newHandle = React.cloneElement(handle, {\n onClick: event => setAnchorEl(event.currentTarget)\n })\n\n const handleItemClick = item => {\n if (loading === undefined) {\n setAnchorEl(null)\n }\n\n return onItemClick && onItemClick(item)\n }\n const handleValueChange = event => setValue(event.target.value)\n\n const highlightName = name => {\n if (value) {\n return name.replace(new RegExp(`(${value})`, 'gi'), `$1`)\n }\n\n return name\n }\n\n const filteredItems = items.filter(item => item.get('name').toLowerCase().indexOf(value.toLowerCase()) !== -1)\n\n return (\n <>\n {newHandle}\n\n setAnchorEl(null)}\n open={Boolean(anchorEl)}\n >\n {loading && (\n
\n \n
\n )}\n\n {!items.isEmpty() && (\n <>\n
\n \n
\n\n \n\n \n {filteredItems.map(item => (\n handleItemClick(item)}\n disabled={loading}\n >\n \n \n ))}\n \n \n )}\n\n {items.isEmpty() && (\n \n \n {i18n.get('no_items_yet')}\n \n \n )}\n\n {onMainClick && (\n <>\n \n\n
\n }\n onClick={onMainClick}\n disabled={loading}\n >\n {i18n.get('overview')}\n \n
\n \n )}\n \n \n )\n}\n\nFilterableMenu.propTypes = {\n items: PropTypes.instanceOf(iList).isRequired,\n handle: PropTypes.node.isRequired,\n loading: PropTypes.bool,\n\n onItemClick: PropTypes.func,\n onMainClick: PropTypes.func\n}\n","import { connect } from 'react-redux'\n\nimport FilterableMenu from 'components/filterable_menu'\n\nimport { getSavedSearches, getSavedSearchResolving } from 'selectors'\n\nimport { executeSavedSearch } from 'actions/saved_searches'\nimport { navigate } from 'actions/navigation'\n\nconst mapStateToProps = state => ({\n items: getSavedSearches(state),\n loading: getSavedSearchResolving(state)\n})\n\nconst mapDispatchToProps = dispatch => ({\n onItemClick: item => dispatch(executeSavedSearch(item)),\n onMainClick: () => dispatch(navigate('saved_searches'))\n})\n\nexport default connect(mapStateToProps, mapDispatchToProps)(FilterableMenu)\n","import { connect } from 'react-redux'\n\nimport { SearchFields } from 'static/constants'\n\nimport FilterableMenu from 'components/filterable_menu'\n\nimport { getCustomTags } from 'selectors'\n\nimport { uiAddFilters } from 'actions/ui'\nimport { navigate } from 'actions/navigation'\n\nconst mapStateToProps = state => ({\n items: getCustomTags(state)\n})\n\nconst mapDispatchToProps = dispatch => ({\n onItemClick: item => dispatch(uiAddFilters([\n {\n field: SearchFields.CUSTOM_TAGS,\n filter: item\n }\n ])),\n onMainClick: () => dispatch(navigate('pin_boards'))\n})\n\nexport default connect(mapStateToProps, mapDispatchToProps)(FilterableMenu)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport { createLoadable } from 'utils/loadable'\n\nimport { NewsPageViews, Capabilities } from 'static/constants'\n\nimport { Button, IconButton } from 'containers/themed'\n\nimport TransitionComponent from 'components/transition_component'\nimport CapSafe, { ViewConfigCapSafe } from 'containers/CapSafe'\nimport NewsPageAppBar from 'containers/NewsPageAppBar'\nimport ErrorBoundary from 'components/error_boundary'\nimport SearchBar from 'containers/SearchBar'\nimport QueryTypeDropdown from 'containers/QueryTypeDropdown'\nimport SavedSearchesMenu from 'containers/news_page/SavedSearchesMenu'\nimport CustomTagsMenu from 'containers/news_page/CustomTagsMenu'\nimport masterConfig from 'static/master_config'\n\nimport { Icon } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n content: {\n paddingTop: '0 !important',\n transition: 'filter 500ms, opacity 500ms',\n [theme.breakpoints.only('xs')]: {\n paddingTop: 0\n }\n },\n invalid: {\n filter: 'blur(4px) grayscale(100%)',\n '@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)': {\n opacity: 0.1\n }\n },\n actionBar: {\n display: 'flex',\n alignItems: 'center',\n [theme.breakpoints.only('xs')]: {\n flex: 1\n },\n [theme.breakpoints.up('sm')]: {\n justifyContent: 'flex-end'\n },\n [theme.breakpoints.down('md')]: {\n marginTop: 10\n }\n },\n charts: {\n marginTop: 10\n },\n subheader: {\n display: 'flex',\n justifyContent: 'space-between',\n fontSize: '14pt',\n padding: '20px 10px 10px',\n color: theme.palette.grey[600]\n },\n timeline: {\n height: 250,\n marginBottom: 40\n },\n iconButton: {\n padding: 0\n }\n}))\n\nconst ActiveFilterList = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageActiveFilterList\" */ 'containers/ActiveFilterList')\n))\nconst AnalysisQueries = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageAnalysisQueries\" */ 'containers/news_page/analysis_queries/AnalysisQueries')\n))\nconst CenterMessage = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageCenterMessage\" */ 'containers/CenterMessage')\n))\nconst ContentContainer = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageContentContainer\" */ 'components/content_container')\n))\nconst Charts = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageCharts\" */ 'containers/news_page/Charts')\n))\nconst StaticCharts = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageStaticCharts\" */ 'containers/news_page/StaticCharts')\n))\nconst DefaultNewsView = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageDefaultNewsView\" */ 'containers/news_page/DefaultNewsView')\n))\nconst DocumentDownloadDialog = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageDocumentDownloadDialog\" */ 'containers/DocumentDownloadDialog')\n))\nconst EditDialog = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageEditDialog\" */ 'containers/news/edit_dialog/EditDialog')\n))\nconst InfluencerDetailsDialog = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageInfluencerDetailsDialog\" */ 'containers/influencer/details_dialog/DetailsDialog')\n))\nconst AddInfluencerToContactsDialog = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageAddInfluencerToContactsDialog\" */ 'containers/influencer/AddInfluencerToContactsDialog')\n))\nconst DistributionListCreateDialog = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageDistributionListCreateDialog\" */ 'containers/influencer/DistributionListCreateDialog')\n))\nconst Influencers = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageInfluencers\" */ 'containers/news_page/influencers/Influencers')\n))\nconst JumpMark = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageJumpMark\" */ 'containers/news_page/NewsPageJumpMark')\n))\nconst Navigation = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageNavigation\" */ 'containers/news_page/Navigation')\n))\nconst AssignCustomTagsToNewsDialog = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageAssignCustomTagsToNewsDialog\" */ 'containers/custom_tags/AssignCustomTagsToNewsDialog')\n))\nconst PageIdentities = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPagePageIdentities\" */ 'containers/news_page/page_identities/PageIdentities')\n))\nconst PageIdentityStatistics = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPagePageIdentityStatistics\" */ 'containers/news_page/page_identity_statistics/PageIdentityStatistics')\n))\nconst Publications = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPagePublications\" */ 'containers/news_page/publications/Publications')\n))\nconst RemoveDialog = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageRemoveNewsDialog\" */ 'containers/news/RemoveDialog')\n))\nconst SavedSearchesOptions = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageSavedSearchesOptions\" */ 'containers/news_page/SavedSearchesOptions')\n))\nconst ShoppingCartButton = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageShoppingCartButton\" */ 'containers/shopping_cart/Button')\n))\nconst ShoppingDialog = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageShoppingDialog\" */ 'containers/news/shopping_dialog/ShoppingDialog')\n))\nconst AiChartAnalysisDialog = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageAiChartAnalysisDialog\" */ 'containers/charts/AiChartAnalysisDialog')\n))\nconst AiAnalysisDialog = createLoadable(() => (\n import(/* webpackChunkName: \"NewsPageAiAnalysisDialog\" */ 'containers/news_page/AiAnalysisDialog')\n))\n\nconst CustomTagsIcon = CapSafe(IconButton, Capabilities.HAS_CUSTOM_TAGS_MODULE)\nconst CustomTagsButton = CapSafe(Button, Capabilities.HAS_CUSTOM_TAGS_MODULE)\nconst CustomTagsMenuComp = CapSafe(CustomTagsMenu, Capabilities.HAS_CUSTOM_TAGS_MODULE)\nconst SavedSearchesIcon = ViewConfigCapSafe(IconButton, 'savedSearches')\nconst SavedSearchesButton = ViewConfigCapSafe(Button, 'savedSearches')\nconst SavedSearchesMenuComp = ViewConfigCapSafe(SavedSearchesMenu, 'savedSearches')\nconst SavedSearchesOptionsComp = ViewConfigCapSafe(() => (\n <>\n
\n \n
\n \n), 'savedSearches',
)\n\nconst viewComps = {\n [NewsPageViews.CHARTS]: ,\n [NewsPageViews.STATIC_CHARTS]: ,\n [NewsPageViews.INFLUENCERS]: ,\n [NewsPageViews.PUBLICATIONS]: ,\n [NewsPageViews.PROFILES]: ,\n [NewsPageViews.STATISTICS]: ,\n [NewsPageViews.BACKWARDS_NEWS]: ,\n [NewsPageViews.NEWS]: ,\n [NewsPageViews.POSTS]: ,\n [NewsPageViews.ANALYSIS_QUERIES]: \n}\n\nexport default function NewsPage({\n isValidSearch,\n hasFilters,\n i18n,\n onInvalidSearch,\n view,\n device,\n allowedViews\n}) {\n const { classes } = useStyles()\n const renderCenterMessage = () => {\n if (isValidSearch) {\n return null\n }\n\n setTimeout(() => onInvalidSearch(), 50)\n\n return (\n }\n key=\"search_bar\"\n />\n ]}\n />\n )\n }\n\n const renderAppBarAction = (actionView, name, Comp, IconComp, icon, MenuComp) => {\n if (allowedViews.indexOf(actionView) === -1) {\n return null\n }\n\n let handle = (\n {icon}
}\n >\n {i18n.get(name)}\n \n )\n\n if (device.get('lt-lg')) {\n handle = (\n \n \n {icon}\n \n \n )\n }\n\n return (\n \n )\n }\n\n const appBarActions = [\n renderAppBarAction(\n NewsPageViews.PIN_BOARDS,\n NewsPageViews.PIN_BOARDS,\n CustomTagsButton,\n CustomTagsIcon,\n masterConfig.getIn(['icons', 'customTags']),\n CustomTagsMenuComp\n ),\n renderAppBarAction(\n NewsPageViews.SAVED_SEARCHES,\n `${NewsPageViews.SAVED_SEARCHES}_short`,\n SavedSearchesButton,\n SavedSearchesIcon,\n masterConfig.getIn(['icons', 'savedSearches']),\n SavedSearchesMenuComp\n )\n ].filter(a => a !== null)\n\n let containerClass = classes.content\n\n if (!isValidSearch) {\n containerClass = `${containerClass} ${classes.invalid}`\n }\n\n return (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\n \n\n \n \n\n {hasFilters && (\n <>\n \n
\n \n )}\n\n \n \n {viewComps[view] ? viewComps[view] :
}\n \n \n \n\n \n {renderCenterMessage()}\n \n \n )\n}\n\nNewsPage.propTypes = {\n i18n: PropTypes.object.isRequired,\n view: PropTypes.string.isRequired,\n device: PropTypes.object.isRequired,\n allowedViews: PropTypes.instanceOf(List).isRequired,\n isValidSearch: PropTypes.bool.isRequired,\n hasFilters: PropTypes.bool.isRequired,\n\n onInvalidSearch: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport NewsPage from 'components/news_page'\nimport {\n getI18n,\n getNewsView,\n getDevice,\n getAllowedNewsViews,\n isValidSearch,\n hasFilters\n} from 'selectors'\nimport { invalidSearch } from 'actions/news'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n view: getNewsView(state),\n device: getDevice(state),\n allowedViews: getAllowedNewsViews(state),\n isValidSearch: isValidSearch(state),\n hasFilters: hasFilters(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onInvalidSearch: invalidSearch\n }\n)(NewsPage)\n","import React, { useState } from 'react'\nimport { Map } from 'immutable'\nimport PropTypes from 'prop-types'\nimport SaveIcon from '@mui/icons-material/Save'\nimport { makeStyles } from 'tss-react/mui'\nimport { Button } from 'containers/themed'\nimport { CardContent, Typography } from '@mui/material'\nimport { red } from '@mui/material/colors'\n\nimport PasswordInput from 'containers/PasswordInput'\nimport TransitionComponent from 'components/transition_component'\n\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()({\n error: {\n color: red[500]\n }\n})\n\nexport default function PasswordForm({ user, onSave }) {\n const { classes } = useStyles()\n const [state, setState] = useState({ oldPassword: '', newPassword1: '', newPassword2: '' })\n const i18n = useI18n()\n\n const handleChange = (name, value) => {\n setState({ ...state, [name]: value })\n }\n\n const handleSaveClick = () => {\n const { newPassword1, oldPassword } = state\n\n onSave({\n newPassword: newPassword1,\n oldPassword\n })\n }\n\n const isValid = () => {\n const { oldPassword, newPassword1, newPassword2 } = state\n\n if (!(oldPassword && newPassword1 && newPassword2)) {\n return false\n }\n\n if (newPassword1 !== newPassword2) {\n return false\n }\n\n return true\n }\n\n const renderUnequalPasswordsError = () => {\n const { newPassword1, newPassword2 } = state\n\n if ((newPassword1 === newPassword2) || !(newPassword1 && newPassword2)) {\n return null\n }\n\n return (\n
\n {i18n.get('passwords_do_not_match')}\n
\n
\n
\n )\n }\n\n const { oldPassword, newPassword1, newPassword2 } = state\n\n return (\n \n \n {i18n.get('change_password')}\n \n\n handleChange('oldPassword', value)}\n />\n\n
\n\n handleChange('newPassword1', value)}\n validateStrength\n />\n\n
\n\n handleChange('newPassword2', value)}\n />\n\n
\n\n \n {renderUnequalPasswordsError()}\n \n\n }\n >\n {i18n.get('save')}\n \n
\n )\n}\n\nPasswordForm.propTypes = {\n user: PropTypes.instanceOf(Map).isRequired,\n\n onSave: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport PasswordForm from 'components/personal_settings/password_form'\nimport { getUser } from 'selectors'\nimport { updateUserRequestStart } from 'actions/user'\n\nconst mapStateToProps = state => ({\n user: getUser(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSave: updateUserRequestStart\n }\n)(PasswordForm)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport PersonIcon from '@mui/icons-material/Person'\nimport SaveIcon from '@mui/icons-material/Save'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Button, Input } from 'containers/themed'\nimport { guessLocale } from 'utils/locale'\nimport PhotoUpload from 'components/photo_upload'\n\nimport { CardContent, Typography, Avatar } from '@mui/material'\nimport { LanguageOptions } from 'static/constants'\n\nconst useStyles = makeStyles()({\n flags: {\n display: 'flex'\n },\n flag: {\n cursor: 'pointer',\n fontSize: 50,\n marginRight: 10,\n opacity: 0.5\n },\n active: {\n opacity: 1\n },\n photo: {\n display: 'flex',\n marginBottom: 10\n }\n})\n\nconst locale = guessLocale()\n\nexport default function BasicSettings({\n i18n,\n user,\n previewUrl,\n uploadedPhoto,\n onSave,\n onChange,\n onPreviewUrlChange,\n onImageUpload\n}) {\n const { classes } = useStyles()\n\n const handlePreviewUrlChange = url => onPreviewUrlChange(url)\n const handleUploadedPhotoChange = photo => onImageUpload(photo)\n const handleChange = (name, value) => onChange(user.set(name, value).toJS())\n const handleSaveClick = () => onSave({ ...user.toJS(), uploadedPhoto })\n\n const handleLanguageChange = language => {\n onChange(user.merge(language).toJS())\n\n onSave({ ...user.merge(language).toJS(), uploadedPhoto })\n }\n\n const renderFlag = language => {\n let className = ''\n\n if (language.languageId === user.get('languageId')) {\n className = classes.active\n }\n\n const countryCode = language.localeMapping[locale] || language.countryCode\n\n return (\n handleLanguageChange(language)}\n />\n )\n }\n\n return (\n \n \n {i18n.get('basic_information')}\n \n\n
\n \n \n \n\n \n
\n\n handleChange('firstName', value)}\n />\n\n
\n
\n\n handleChange('lastName', value)}\n />\n\n
\n
\n\n \n {i18n.get('language')}\n \n\n
\n {LanguageOptions.map(l => renderFlag(l))}\n
\n\n
\n\n handleSaveClick()}\n saving={user.get('updating')}\n startIcon={}\n >\n {i18n.get('save')}\n \n
\n )\n}\n\nBasicSettings.propTypes = {\n i18n: PropTypes.object.isRequired,\n user: PropTypes.instanceOf(Map).isRequired,\n previewUrl: PropTypes.string.isRequired,\n uploadedPhoto: PropTypes.object,\n\n onSave: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onPreviewUrlChange: PropTypes.func.isRequired,\n onImageUpload: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport BasicSettings from 'components/personal_settings/basic_settings'\nimport { getI18n, getUser, getPreviewUrl, getUserImage } from 'selectors'\nimport { updateUserRequestStart, setUser } from 'actions/user'\nimport { uiSetPreviewUrl, uiSetUserImage } from 'actions/personal_settings'\n\nconst mapStateToProps = state => ({\n user: getUser(state),\n i18n: getI18n(state),\n previewUrl: getPreviewUrl(state),\n uploadedPhoto: getUserImage(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSave: updateUserRequestStart,\n onChange: setUser,\n onPreviewUrlChange: uiSetPreviewUrl,\n onImageUpload: uiSetUserImage\n }\n)(BasicSettings)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport SaveIcon from '@mui/icons-material/Save'\n\nimport { Select, Button } from 'containers/themed'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { CardContent, Typography, FormControlLabel, Switch } from '@mui/material'\n\nexport default function MiscSettings({\n config,\n onDarkModeChange,\n onSave,\n onChange\n}) {\n const i18n = useI18n()\n\n const darkModeOptions = [\n {\n value: 1,\n realValue: true,\n label: i18n.get('always')\n },\n {\n value: 2,\n realValue: false,\n label: i18n.get('never')\n },\n {\n value: 3,\n realValue: null,\n label: i18n.get('dark_mode_automatically')\n }\n ]\n\n const darkMode = darkModeOptions.find(({ realValue }) => config.get('darkMode') === realValue)?.value || 2\n const preferSummaries = config.get('preferSummaries')\n const globalClusterDefault = config.get('globalClusterDefault')\n const disableNotificationAlerts = config.get('disableNotificationAlerts')\n const preferMedia = config.get('preferMedia')\n\n return (\n \n \n {i18n.get('misc_settings')}\n \n
\n\n onDarkModeChange(realValue)}\n value={darkMode}\n />\n\n
\n
\n\n onChange({\n field: 'preferSummaries',\n value: !preferSummaries\n })}\n />\n )}\n />\n\n
\n\n onChange({\n field: 'globalClusterDefault',\n value: !globalClusterDefault\n })}\n />\n )}\n />\n\n
\n\n onChange({\n field: 'disableNotificationAlerts',\n value: !disableNotificationAlerts\n })}\n />\n )}\n />\n\n
\n\n onChange({\n field: 'preferMedia',\n value: !preferMedia\n })}\n />\n )}\n />\n\n
\n
\n\n onSave({\n darkMode: config.get('darkMode'),\n preferSummaries,\n globalClusterDefault,\n disableNotificationAlerts,\n preferMedia\n })}\n startIcon={}\n saving={config.get('updating')}\n >\n {i18n.get('save')}\n \n
\n )\n}\n\nMiscSettings.propTypes = {\n config: PropTypes.instanceOf(Map),\n\n onDarkModeChange: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport MiscSettings from 'components/personal_settings/misc_settings'\nimport { setDarkMode, setField, updateUserRequestStart } from 'actions/user'\n\nimport { getUser } from 'selectors'\n\nconst mapStateToProps = state => ({\n config: getUser(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onDarkModeChange: setDarkMode,\n onChange: setField,\n onSave: updateUserRequestStart\n }\n)(MiscSettings)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport SaveIcon from '@mui/icons-material/Save'\nimport { CardContent, FormControlLabel, Switch, Typography } from '@mui/material'\n\nimport { getContentLanguageOptions } from 'utils/translation'\n\nimport { Select, Button } from 'containers/themed'\n\nimport useI18n from 'hooks/useI18n'\n\nexport default function SpecificSettings({\n user,\n userConfig,\n onSave,\n onChange\n}) {\n const i18n = useI18n()\n\n const translateSearchResults = userConfig.get('translateSearchResults') || false\n const translateSearchResultsTargetLang = userConfig.get('translateSearchResultsTargetLang') || user.get('languageShort')\n const contentLanguageOptions = getContentLanguageOptions()\n\n return (\n \n \n {i18n.get('newsradar_specific_user_settings')}\n \n\n onChange({\n field: 'translateSearchResults',\n value: !translateSearchResults\n })}\n />\n )}\n />\n\n {translateSearchResults && (\n <>\n
\n
\n\n onChange({\n field: 'translateSearchResultsTargetLang',\n value\n })}\n value={translateSearchResultsTargetLang}\n />\n \n )}\n\n
\n
\n\n onSave()}\n startIcon={}\n >\n {i18n.get('save')}\n \n
\n )\n}\n\nSpecificSettings.propTypes = {\n user: PropTypes.instanceOf(Map).isRequired,\n userConfig: PropTypes.instanceOf(Map).isRequired,\n\n onChange: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport SpecificSettings from 'components/personal_settings/specific_settings'\nimport { setUserConfigField, updateUserConfigRequestStart } from 'actions/config'\n\nimport { getUser, getUserConfig } from 'selectors'\n\nconst mapStateToProps = state => ({\n user: getUser(state),\n userConfig: getUserConfig(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: setUserConfigField,\n onSave: updateUserConfigRequestStart\n }\n)(SpecificSettings)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport { Map } from 'immutable'\nimport AppBar from 'containers/AppBar'\n\nimport { Capabilities } from 'static/constants'\n\nimport { StaggeredList, StaggeredListItem } from 'components/staggered_list'\nimport PasswordForm from 'containers/personal_settings/PasswordForm'\n\nimport BasicSettings from 'containers/personal_settings/BasicSettings'\nimport MiscSettings from 'containers/personal_settings/MiscSettings'\nimport SpecificSettings from 'containers/personal_settings/SpecificSettings'\nimport CapSafe from 'containers/CapSafe'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Card } from '@mui/material'\n\nconst SpecificSettingsComp = CapSafe(StaggeredListItem, Capabilities.HAS_AUTOMATIC_SEARCH_RESULT_TRANSLATIONS)\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n [theme.breakpoints.up('md')]: {\n width: '50%',\n margin: '0 auto'\n }\n }\n}))\n\nexport default function PersonalSettings({ user, hasDeeplApiKey }) {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n return (\n <>\n \n v{process.env.VERSION}\n
\n ]}\n />\n
\n\n \n {user.get('loginTypeId') === 1 && (\n \n \n \n \n \n )}\n\n
\n\n \n \n \n \n \n\n
\n\n \n \n \n \n \n\n {hasDeeplApiKey && (\n <>\n
\n \n \n \n \n \n \n )}\n\n
\n
\n \n )\n}\n\nPersonalSettings.propTypes = {\n user: PropTypes.instanceOf(Map).isRequired,\n hasDeeplApiKey: PropTypes.bool.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport PersonalSettings from 'components/personal_settings'\nimport { getUser, getDeeplApiKey } from 'selectors'\nimport { updateUserRequestStart } from 'actions/user'\n\nconst mapStateToProps = state => ({\n user: getUser(state),\n hasDeeplApiKey: !!getDeeplApiKey(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSave: updateUserRequestStart\n }\n)(PersonalSettings)\n","import React from 'react'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { StaggeredList, StaggeredListItem } from 'components/staggered_list'\n\nimport NotificationsButton from 'containers/notifications/NotificationsButton'\n\nconst useStyles = makeStyles()({\n actionsWrapper: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center'\n },\n actionIcon: {\n color: '#ffffff'\n }\n})\n\nconst Actions = () => {\n const { classes } = useStyles()\n const actions = []\n\n actions.push(\n \n )\n\n return (\n \n
\n {actions.map((action, index) => (\n \n {action}\n \n ))}\n
\n
\n )\n}\n\nexport default Actions\n","import React, { Fragment, useEffect, useMemo } from 'react'\nimport PropTypes from 'prop-types'\nimport { createLoadable } from 'utils/loadable'\nimport { Icon, Tabs as MuiTabs, Tab, Paper } from '@mui/material'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport Actions from 'components/saved_searches/actions'\n\nimport AppBar from 'containers/AppBar'\nimport RestrictionHint from 'containers/RestrictionHint'\nimport { ViewConfigCapSafe } from 'containers/CapSafe'\n\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\nconst Tabs = ViewConfigCapSafe(Fragment, 'savedSearchesFeeds')\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n marginTop: 30\n },\n timeline: {\n height: 300,\n marginBottom: theme.spacing(2)\n },\n customTagsViewIcon: {\n fontSize: '30px !important',\n cursor: 'pointer'\n },\n customTagsView: {\n [theme.breakpoints.up('sm')]: {\n marginRight: 10,\n paddingRight: 10\n }\n },\n tabs: {\n marginBottom: theme.spacing(2)\n }\n}))\n\nconst ContentContainer = createLoadable(() => (\n import(/* webpackChunkName: \"SavedSearchesContentContainer\" */ 'components/content_container')\n))\n\nconst EditDialog = ({ loadThrough }) => {\n const Comp = useMemo(() => createLoadable(() => (\n import(/* webpackChunkName: \"SavedSearchesEditDialog\" */ `containers/${loadThrough}/EditDialog`)\n )), [loadThrough])\n\n return \n}\n\nEditDialog.propTypes = {\n loadThrough: PropTypes.string.isRequired\n}\n\nconst RemoveDialog = ({ loadThrough }) => {\n const Comp = useMemo(() => createLoadable(() => (\n import(/* webpackChunkName: \"SavedSearchesRemoveDialog\" */ `containers/${loadThrough}/RemoveDialog`)\n )), [loadThrough])\n\n return \n}\n\nRemoveDialog.propTypes = {\n loadThrough: PropTypes.string.isRequired\n}\n\nconst AffectedDashboardsDialog = createLoadable(() => (\n import(/* webpackChunkName: \"SavedSearchesAffectedDashboardsDialog\" */ 'containers/saved_searches/AffectedDashboardsDialog')\n))\n\nconst Timeline = createLoadable(() => (\n import(/* webpackChunkName: \"SavedSearchesTimeline\" */ 'containers/saved_searches/Timeline')\n))\n\nconst CardView = ({ loadThrough }) => {\n const Comp = useMemo(() => createLoadable(() => (\n import(/* webpackChunkName: \"SavedSearchesCardView\" */ `containers/${loadThrough}/card_view/CardView`)\n )), [loadThrough])\n\n return \n}\n\nCardView.propTypes = {\n loadThrough: PropTypes.string.isRequired\n}\n\nconst ListView = ({ loadThrough }) => {\n const Comp = useMemo(() => createLoadable(() => (\n import(/* webpackChunkName: \"SavedSearchesListView\" */ `containers/${loadThrough}/list_view/ListView`)\n )), [loadThrough])\n\n return \n}\n\nListView.propTypes = {\n loadThrough: PropTypes.string.isRequired\n}\n\nconst DispatchesDialog = createLoadable(() => (\n import(/* webpackChunkName: \"SavedSearchesDispatchesDialog\" */ 'containers/saved_searches/DispatchesDialog')\n))\n\nconst Feeds = createLoadable(() => (\n import(/* webpackChunkName: \"SavedSearchesFeeds\" */ 'containers/saved_searches/feeds/Feeds')\n))\n\nexport default function SavedSearches({\n loadThrough,\n hasSavedSearches,\n onMount,\n onTabChange,\n onViewChange,\n showRestrictionHint,\n tab,\n viewType,\n showFeed,\n showTimeline\n}) {\n const { classes } = useStyles()\n const device = useDevice()\n const i18n = useI18n()\n\n useEffect(() => {\n onMount()\n }, [onMount])\n\n const renderViewSwitch = () => {\n if (device.get('xs')) {\n return null\n }\n\n let listIconColor = 'disabled'\n let columnIconColor = 'secondary'\n\n if (viewType === 'list') {\n listIconColor = 'secondary'\n columnIconColor = 'disabled'\n }\n\n return (\n
\n onViewChange('list')}\n color={listIconColor}\n >\n list\n \n onViewChange('card')}\n color={columnIconColor}\n >\n view_column\n \n
\n )\n }\n\n const renderSavedSearches = () => (\n <>\n {showTimeline && (\n
\n \n
\n )}\n\n {showRestrictionHint && }\n {renderViewSwitch()}\n {viewType === 'list' && }\n {viewType === 'card' && }\n \n )\n\n return (\n
\n }\n />\n\n \n \n {hasSavedSearches && showFeed && (\n onTabChange(tabValue)}\n variant=\"fullWidth\"\n indicatorColor=\"primary\"\n classes={{ root: classes.tabs }}\n >\n \n \n \n )}\n\n {(!hasSavedSearches || tab === 'saved_searches') && renderSavedSearches()}\n {hasSavedSearches && tab === 'feeds' && }\n \n \n\n \n \n \n \n
\n )\n}\n\nSavedSearches.defaultProps = {\n loadThrough: 'saved_searches',\n showTimeline: true,\n showFeed: true\n}\n\nSavedSearches.propTypes = {\n loadThrough: PropTypes.string,\n showRestrictionHint: PropTypes.bool.isRequired,\n hasSavedSearches: PropTypes.bool.isRequired,\n viewType: PropTypes.string.isRequired,\n tab: PropTypes.string.isRequired,\n showTimeline: PropTypes.bool,\n showFeed: PropTypes.bool,\n\n onMount: PropTypes.func.isRequired,\n onViewChange: PropTypes.func.isRequired,\n onTabChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport { NewsPageModules } from 'static/constants'\n\nimport SavedSearches from 'components/saved_searches'\n\nimport { fetchSavedSearchesTimelinesStart, setViewType, setTab } from 'actions/saved_searches'\nimport {\n getViewConfigModuleName,\n getSavedSearchViewType,\n getSavedSearchesTab,\n getSavedSearches\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n hasSavedSearches: !getSavedSearches(state).isEmpty(),\n showRestrictionHint: getViewConfigModuleName(state) === NewsPageModules.NEWS,\n viewType: getSavedSearchViewType(state),\n tab: getSavedSearchesTab(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onMount: fetchSavedSearchesTimelinesStart,\n onViewChange: setViewType,\n onTabChange: setTab\n }\n)(SavedSearches)\n","import React from 'react'\nimport MenuIcon from '@mui/icons-material/Menu'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Button } from 'containers/themed'\nimport useI18n from 'hooks/useI18n'\n\nimport { AppBar, Toolbar, CardActions } from '@mui/material'\n\nconst useStyles = makeStyles()({\n spacer: {\n flex: 1\n }\n})\n\nexport default function Preview() {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n return (\n
\n \n \n \n\n \n\n \n \n {`${i18n.get('button')} 02`}\n \n \n \n\n \n \n {i18n.get('selected')}\n \n \n {i18n.get('pin')}\n \n \n
\n )\n}\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { fromJS, List } from 'immutable'\nimport EditIcon from '@mui/icons-material/Edit'\nimport SaveIcon from '@mui/icons-material/Save'\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\nimport SettingsBackupRestoreIcon from '@mui/icons-material/SettingsBackupRestore'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { createLoadable } from 'utils/loadable'\nimport ContentContainer from 'components/content_container'\nimport { FlexList, FlexListItem } from 'components/flex_list'\nimport Preview from 'components/administration/settings/preview'\n\nimport AppBar from 'containers/AppBar'\nimport { Button, Select, Input } from 'containers/themed'\nimport ExportFilenameInput from 'components/export_filename_input'\nimport { Capabilities, DateTypes, NewsPageViewTypes, InitialRoutes } from 'static/constants'\nimport ColorPicker from 'components/color_picker'\n\nimport {\n Divider,\n FormControlLabel,\n Switch,\n Accordion,\n AccordionSummary,\n AccordionDetails,\n AccordionActions,\n Typography,\n Grid\n} from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n content: {\n paddingTop: 10\n },\n cardContent: {\n paddingBottom: 0\n },\n colorPickerHeader: {\n marginBottom: 10\n },\n editIcon: {\n color: 'white',\n marginRight: 5,\n height: '100%'\n },\n whiteEditIcon: {\n color: theme.palette.grey[700]\n },\n card: {\n marginBottom: 10\n },\n colorContainer: {\n cursor: 'pointer'\n },\n color: {\n borderRadius: 4,\n width: '100%',\n minWidth: 'auto',\n height: 30,\n display: 'flex',\n justifyContent: 'flex-end'\n },\n whiteColor: {\n border: `1px solid ${theme.palette.grey[700]}`\n },\n chart: {\n height: 200\n },\n panelDetails: {\n flexDirection: 'column'\n },\n container: {\n [theme.breakpoints.up('md')]: {\n width: '75%',\n margin: '0 auto'\n },\n [theme.breakpoints.up('lg')]: {\n width: '50%'\n }\n },\n chartColorButton: {\n [theme.breakpoints.up('sm')]: {\n float: 'right'\n }\n }\n}))\n\nconst colorIndices = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\n\nconst Chart = createLoadable(() => import(/* webpackChunkName: \"Chart\" */ 'containers/charts/Chart'))\n\nconst listData = [3, 8, 6, 2, 1, 4, 5, 6, 1, 2, 10].map((count, index) => ({\n name: `data_${index + 1}`,\n count,\n stats: {\n buzz: count\n }\n}))\n\nconst charts = fromJS([\n {\n chart: {\n type: 'area'\n },\n data: listData\n },\n {\n chart: {\n type: 'treemap'\n },\n data: listData\n },\n {\n chart: {\n type: 'bar'\n },\n data: listData\n },\n {\n chart: {\n type: 'pie'\n },\n data: listData\n },\n {\n chart: {\n firstLevel: 'data',\n type: 'rectangle'\n },\n data: {\n current: 3,\n previous: 4\n }\n }\n])\n\nexport default function Settings({\n caps,\n config,\n i18n,\n isValidFilename,\n pdfDispatchConfigs,\n darkmode,\n isPlotlights,\n onChange,\n onSave,\n onThemeClick,\n reset,\n resetColors,\n themes,\n updateConfigRequestStarted,\n validateFilename\n}) {\n const { classes, cx } = useStyles()\n const [themeName, setThemeName] = useState(null)\n const dateType = config.get('defaultDateType')\n const mode = darkmode ? 'dark' : 'light'\n\n const handleChange = (name, value) => onChange(config.remove('isValidFilename').set(name, value))\n\n const handleColorChange = (type, color) => {\n const newColors = config.get('colors').setIn(type, color)\n const newConfig = config.mergeIn(['colors'], newColors)\n onChange(newConfig)\n }\n\n const renderColorPicker = (colorKeys, useRgb = true) => {\n const newColor = config.getIn(['colors'].concat(colorKeys)) || '#FFFFFF'\n\n return (\n \n \n \n \n \n )}\n value={newColor}\n defaultValue=\"#FFFFFF\"\n useRgb={useRgb}\n onChange={color => {\n handleColorChange(colorKeys, color)\n }}\n />\n )\n }\n\n const renderPdfDispatchConfigSelect = () => {\n const pdfDispatchConfigOptions = pdfDispatchConfigs.map(dc => (\n { value: dc.get('id'), label: dc.get('name') }\n ))\n\n return (\n <>\n
\n
\n handleChange('defaultPdfDispatchConfigId', value.value)}\n options={pdfDispatchConfigOptions.toJS()}\n value={config.get('defaultPdfDispatchConfigId')}\n label={i18n.get('select_dispatch_config_for_single_article_pdf')}\n />\n \n )\n }\n\n const dateFilterSettings = [\n { value: 0, label: i18n.get('no_preferences') },\n { value: 1, label: i18n.get('today') },\n { value: 2, label: dateType === DateTypes.MEDIA_REVIEW ? i18n.get('last_mediareview') : i18n.get('newest_article_date') },\n { value: 3, label: i18n.get('this_week') },\n { value: 4, label: i18n.get('this_month') },\n { value: 5, label: i18n.get('this_quarter') },\n { value: 6, label: i18n.get('this_year') },\n { value: 7, label: i18n.get('last_7_days') },\n { value: 8, label: i18n.get('last_30_days') },\n { value: 9, label: i18n.get('last_60_days') },\n { value: 10, label: i18n.get('last_90_days') }\n ]\n\n const dateTypeFilterSettings = [\n { value: DateTypes.MEDIA_REVIEW, label: i18n.get('media_review_date') },\n { value: DateTypes.ARTICLE, label: i18n.get('article_date') }\n ]\n\n const groupingSetting = [\n { value: 1, label: i18n.get('channel') },\n { value: 2, label: i18n.get('media_review_codes') }\n ]\n\n const sortingSettings = [\n { value: 1, label: i18n.get('date') },\n { value: 2, label: i18n.get('reach') },\n { value: 3, label: i18n.get('interactions') }\n ]\n\n if (caps.get(Capabilities.HAS_CUSTOM_TAGS_MODULE)) {\n groupingSetting.push({ value: 3, label: i18n.get('pin_board') })\n }\n\n if (caps.get(Capabilities.HAS_NEWSGUARD)) {\n groupingSetting.push({ value: 4, label: i18n.get('newsguard_ranks') })\n }\n\n const newsPageViewSettings = [\n { value: NewsPageViewTypes.LISTVIEW, label: i18n.get('list_view') },\n { value: NewsPageViewTypes.CARDVIEW, label: i18n.get('card_view') }\n ]\n\n const initialRouteSettings = [\n { value: '', label: i18n.get('default') }\n ]\n\n if (caps.get('HAS_DASHBOARD_MODULE')) {\n initialRouteSettings.push({\n value: InitialRoutes.DASHBOARD, label: i18n.get('dashboard')\n })\n }\n\n if (caps.get('HAS_NEWS_MODULE')) {\n initialRouteSettings.push({\n value: InitialRoutes.NEWSBOARD, label: i18n.get('news_board')\n })\n }\n\n if (caps.get('HAS_PROFILE_MONITORING_MODULE')) {\n initialRouteSettings.push({\n value: InitialRoutes.PROFILE_MONITORING, label: i18n.get('profile_monitoring')\n })\n }\n\n if (caps.get('HAS_NEWS_POOL_MODULE')) {\n initialRouteSettings.push({\n value: isPlotlights ? InitialRoutes.MEDIA_MONITORING : InitialRoutes.SEARCH_POOL, label: i18n.get('search_pool')\n })\n }\n\n if (caps.get('HAS_MEDIA_REVIEW_MODULE')) {\n initialRouteSettings.push({\n value: InitialRoutes.MEDIA_REVIEWS, label: i18n.get('media_reviews')\n })\n }\n\n if (caps.get('HAS_CONTENT_DESK_MODULE')) {\n initialRouteSettings.push({\n value: InitialRoutes.CONTENT_DESK, label: i18n.get('content_desk')\n })\n }\n\n if (caps.get('HAS_CONTACTS_MANAGEMENT_MODULE')) {\n initialRouteSettings.push({\n value: InitialRoutes.CONTACT_DATABASE_MODULE, label: i18n.get('my_contacts')\n })\n }\n\n if (caps.get('HAS_CONTACTS_MANAGEMENT_ANEWSTIP')) {\n initialRouteSettings.push({\n value: InitialRoutes.ANEWSTIP, label: i18n.get('journalist_search')\n })\n }\n\n if (caps.get('HAS_THE_MAX_MODULE')) {\n initialRouteSettings.push({\n value: InitialRoutes.THEMAX, label: i18n.get('themax')\n })\n }\n\n const renderActions = () => (\n \n }\n disabled={updateConfigRequestStarted}\n onClick={() => reset()}\n >\n {i18n.get('reset_defaults')}\n \n }\n variant=\"contained\"\n color=\"primary\"\n loading={updateConfigRequestStarted}\n disabled={updateConfigRequestStarted || !isValidFilename}\n onClick={() => onSave()}\n >\n {i18n.get('save')}\n \n \n )\n\n return (\n <>\n \n\n \n
\n \n }>\n {i18n.get('general')}\n \n\n \n \n \n handleChange('dateFilterSettingId', value.value)}\n options={dateFilterSettings}\n value={config.get('dateFilterSettingId')}\n label={i18n.get('initial_mediareview_date')}\n />\n \n \n handleChange('defaultDateType', value.value)}\n options={dateTypeFilterSettings}\n value={dateType}\n label={i18n.get('initial_mediareview_date_type')}\n />\n \n \n handleChange('grootGroupingSettingId', value.value)}\n options={groupingSetting}\n value={config.get('grootGroupingSettingId')}\n label={i18n.get('initial_mediareview_theme')}\n />\n \n \n handleChange('defaultSortingId', value.value)}\n options={sortingSettings}\n value={config.get('defaultSortingId')}\n label={i18n.get('initial_sorting')}\n />\n \n \n handleChange('defaultNewsPageView', value.value)}\n options={newsPageViewSettings}\n value={config.get('defaultNewsPageView')}\n label={i18n.get('initial_news_page_view')}\n />\n \n \n handleChange('initialRoute', value.value)}\n options={initialRouteSettings}\n value={config.get('initialRoute') || ''}\n label={i18n.get('initial_page')}\n displayEmpty\n />\n \n \n \n\n {renderActions()}\n \n\n \n }>\n {i18n.get('color_scheme')}\n \n\n \n
\n {\n themes.map(\n (t, key) => (\n {\n setThemeName(t.get('name'))\n onThemeClick({ name: t.get('name'), mode })\n }\n }\n >\n {i18n.get(t.get('labelKey'), { number: key }).toUpperCase()}\n \n )\n )\n }\n\n {!config.get('selectedTheme') && (\n \n {i18n.get('customized')}\n \n )}\n\n resetColors({ name: (themeName || 'Default'), mode })}\n classes={{ root: classes.chartColorButton }}\n >\n {i18n.get('back_to_standard')}\n \n
\n\n
\n \n
\n\n \n \n

{`${i18n.get('primary_color')}`}

\n {renderColorPicker(['primary'], false)}\n
\n \n

{`${i18n.get('accent_color')}`}

\n {renderColorPicker(['accent'], false)}\n
\n \n

{i18n.get('highlighting_color')}

\n {renderColorPicker(['highlighting'])}\n
\n \n

{i18n.get('highlighting_background_color')}

\n {renderColorPicker(['highlightingBackground'])}\n
\n
\n\n
\n \n
\n\n {i18n.get('chart_colors')}\n\n \n {colorIndices.map(i => (\n \n

{`${i18n.get('color')} ${i}`}

\n {renderColorPicker(['charts', `color${i >= 10 ? '' : 0}${i}`])}\n
\n ))}\n
\n\n
\n \n
\n\n \n {i18n.get('preview')}\n \n\n \n\n \n {charts.map((chart, index) => (\n \n \n \n ))}\n \n
\n\n {renderActions()}\n
\n\n \n }>\n {i18n.get('news_layout')}\n \n\n \n handleChange('showFlags', e.target.checked)}\n />\n )}\n />\n \n\n {renderActions()}\n \n\n \n }>\n {i18n.get('export_settings')}\n \n\n \n handleChange('exportFilename', value)}\n validate={validateFilename}\n valid={isValidFilename}\n />\n
\n handleChange('pdfCoverTitle', event.target.value)}\n />\n {renderPdfDispatchConfigSelect()}\n
\n\n {renderActions()}\n
\n\n \n }>\n {i18n.get('media_reviews')}\n \n\n \n handleChange('expandTopics', e.target.checked)}\n />\n )}\n />\n handleChange('showSummaries', e.target.checked)}\n />\n )}\n />\n handleChange('showSnippets', e.target.checked)}\n />\n )}\n />\n \n\n {renderActions()}\n \n
\n
\n \n )\n}\n\nSettings.propTypes = {\n config: PropTypes.object.isRequired,\n i18n: PropTypes.object.isRequired,\n themes: PropTypes.object.isRequired,\n caps: PropTypes.object.isRequired,\n updateConfigRequestStarted: PropTypes.bool.isRequired,\n darkmode: PropTypes.bool.isRequired,\n isValidFilename: PropTypes.bool.isRequired,\n pdfDispatchConfigs: PropTypes.instanceOf(List).isRequired,\n isPlotlights: PropTypes.bool.isRequired,\n\n onSave: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n reset: PropTypes.func.isRequired,\n resetColors: PropTypes.func.isRequired,\n validateFilename: PropTypes.func.isRequired,\n onThemeClick: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Settings from 'components/administration/settings'\nimport {\n updateConfigRequestStart,\n updateConfig,\n resetConfigToDefault,\n validateFilenameInConfig,\n resetColors,\n setTheme\n} from 'actions/config'\nimport {\n getConfig,\n getCapabilities,\n getI18n,\n getDarkMode,\n getThemes,\n getStaticPdfDispatchConfigs,\n getWhitelabelTheme,\n isPlotlights\n} from 'selectors'\n\nconst getWhitelabeledThemes = state => getThemes(state).filter(\n t => t.get('theme') === undefined || t.get('theme') === 'default' || t.get('theme') === getWhitelabelTheme(state)\n)\n\nconst mapStateToProps = state => ({\n config: getConfig(state),\n i18n: getI18n(state),\n caps: getCapabilities(state),\n darkmode: getDarkMode(state),\n updateConfigRequestStarted: getConfig(state).get('updateConfigRequestStarted'),\n isValidFilename: getConfig(state).get('isValidFilename'),\n themes: getWhitelabeledThemes(state),\n isPlotlights: isPlotlights(state),\n pdfDispatchConfigs: getStaticPdfDispatchConfigs(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSave: updateConfigRequestStart,\n onChange: updateConfig,\n reset: resetConfigToDefault,\n resetColors,\n validateFilename: validateFilenameInConfig,\n onThemeClick: setTheme\n }\n)(Settings)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport LoyaltyIcon from '@mui/icons-material/Loyalty'\nimport SwapHorizIcon from '@mui/icons-material/SwapHoriz'\nimport { Map, List } from 'immutable'\n\nimport SelectedAppBar from 'components/selected_app_bar'\nimport ExportMenu from 'containers/ExportMenu'\nimport { ViewConfigCapSafe } from 'containers/CapSafe'\n\nimport { Capabilities, NewsPageViews } from 'static/constants'\n\nimport useDevice from 'hooks/useDevice'\nimport useI18n from 'hooks/useI18n'\n\nconst ExportButton = ViewConfigCapSafe(ExportMenu, 'export')\n\nexport default function SelectedNewsBar({\n count,\n onReset,\n onPinClick,\n onUnpinClick,\n capabilities,\n allowedViews,\n onInvertSelectionClick\n}) {\n const device = useDevice()\n const i18n = useI18n()\n\n const actions = [\n {\n onClick: () => onInvertSelectionClick(),\n label: i18n.get('invert_selection'),\n color: device.get('lt-sm') ? 'secondary' : undefined,\n icon: \n }\n ]\n\n if (allowedViews.includes(NewsPageViews.PIN_BOARDS) && capabilities.get(Capabilities.HAS_CUSTOM_TAGS)) {\n actions.push(\n {\n onClick: () => onPinClick(),\n label: i18n.get('pin'),\n color: device.get('lt-sm') ? 'primary' : undefined,\n icon: \n },\n {\n onClick: () => onUnpinClick(),\n label: i18n.get('unpin'),\n color: device.get('lt-sm') ? 'secondary' : undefined,\n icon: \n }\n )\n }\n\n actions.push(\n {\n comp: (\n \n )\n }\n )\n\n return (\n <>\n \n \n )\n}\n\nSelectedNewsBar.propTypes = {\n count: PropTypes.number.isRequired,\n capabilities: PropTypes.instanceOf(Map).isRequired,\n allowedViews: PropTypes.instanceOf(List).isRequired,\n\n onReset: PropTypes.func.isRequired,\n onPinClick: PropTypes.func.isRequired,\n onUnpinClick: PropTypes.func.isRequired,\n onInvertSelectionClick: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Selected from 'components/shopping_cart/selected_news_bar'\n\nimport { getShoppingCartSelectedNewsIds, getCapabilities, getAllowedNewsViews } from 'selectors'\n\nimport {\n showRemoveCustomTagDialog,\n showCustomTagDialog,\n resetNewsSelection,\n invertNewsSelection\n} from 'actions/shopping_cart'\n\nconst mapStateToProps = state => {\n const newsIds = getShoppingCartSelectedNewsIds(state)\n\n return {\n count: newsIds.size,\n capabilities: getCapabilities(state),\n allowedViews: getAllowedNewsViews(state),\n newsIds\n }\n}\n\nexport default connect(\n mapStateToProps,\n {\n onReset: resetNewsSelection,\n onPinClick: showCustomTagDialog,\n onUnpinClick: showRemoveCustomTagDialog,\n onInvertSelectionClick: invertNewsSelection\n }\n)(Selected)\n","import { connect } from 'react-redux'\n\nimport CapSafe from 'containers/CapSafe'\nimport { Capabilities } from 'static/constants'\n\nimport CustomTagDialog from 'components/shopping_cart/custom_tag_dialog'\nimport { getShowShoppingCartRemoveCustomTagDialog } from 'selectors'\nimport { unpinAll, hideRemoveCustomTagDialog } from 'actions/shopping_cart'\n\nconst mapStateToProps = state => ({\n active: getShowShoppingCartRemoveCustomTagDialog(state),\n actionLabelKey: 'unpin_short',\n titleKey: 'unpin'\n})\n\nconst result = connect(\n mapStateToProps,\n {\n onHide: hideRemoveCustomTagDialog,\n onSave: unpinAll\n }\n)(CustomTagDialog)\n\nexport default CapSafe(result, Capabilities.HAS_CUSTOM_TAGS_MODULE)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { List } from 'immutable'\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward'\nimport ArrowDownwardIcon from '@mui/icons-material/ArrowDownward'\nimport DoubleArrowIcon from '@mui/icons-material/DoubleArrow'\nimport { makeStyles } from 'tss-react/mui'\nimport NrxProgressBar from 'components/nrx_progress_bar'\n\nimport { Dialog, IconButton, Button } from 'containers/themed'\nimport ChannelIcon from 'components/channel_icon'\nimport { StaggeredListItem } from 'components/staggered_list'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Grid, Divider } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n channelIcon: {\n marginRight: 5\n },\n divider: {\n marginTop: 5,\n marginBottom: 5\n },\n loading: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: 250,\n width: '100%'\n },\n content: {\n minHeight: 250,\n overflowX: 'hidden'\n },\n news: {\n padding: 5,\n transition: 'background-color 300ms',\n borderRadius: 5\n },\n firstNews: {\n backgroundColor: theme.palette.primary.main\n },\n secondNews: {\n backgroundColor: theme.palette.secondary.main\n },\n hoveredFirstNews: {\n backgroundColor: theme.palette.primary.light\n },\n hoveredSecondNews: {\n backgroundColor: theme.palette.secondary.light\n },\n doubleArrowUp: {\n transform: 'rotate(-90deg)'\n },\n doubleArrowDown: {\n transform: 'rotate(+90deg)'\n }\n}))\n\nexport default function ClusterDialog({\n active,\n news,\n newsIds,\n loading,\n activeNewsIdFirst,\n activeNewsIdSecond,\n hoveredNewsIdFirst,\n hoveredNewsIdSecond,\n onHide,\n onMoveClick,\n onMoveStart,\n onHover,\n onSaveClick\n}) {\n const i18n = useI18n()\n const { classes, cx } = useStyles()\n\n const resetHoveredNewsIds = () => onHover({\n first: null,\n second: null\n })\n\n const setHoveredNewsIds = (id, newIndex) => onHover({\n first: id,\n second: news.getIn([newIndex, 'id'])\n })\n\n const startAnimation = (id, newIndex) => {\n onMoveStart({\n first: id,\n second: news.getIn([newIndex, 'id'])\n })\n\n setTimeout(() => {\n onMoveClick({ id, newIndex })\n }, 500)\n\n setTimeout(() => {\n onMoveStart({\n first: null,\n second: null\n })\n }, 1000)\n }\n\n const handleTopClick = id => startAnimation(id, 0)\n const handleUpClick = (id, index) => startAnimation(id, index - 1)\n const handleDownClick = (id, index) => startAnimation(id, index + 1)\n const handleBottomClick = id => startAnimation(id, news.size - 1)\n const isMoving = Boolean(activeNewsIdFirst && activeNewsIdSecond)\n\n return (\n onHide()}\n >\n {i18n.get('cancel')}\n ,\n {\n onSaveClick({\n oldIds: newsIds,\n news\n })\n onHide()\n }}\n >\n {i18n.get('save')}\n \n ]}\n >\n {loading && (\n
\n \n
\n )}\n\n {!loading && (\n <>\n {news.map((n, index) => (\n \n \n \n \n \n \n \n\n \n {n.getIn(['publication', 'name'])}\n \n \n \n {n.get('headline')}\n \n \n\n \n handleTopClick(n.get('id'), index)}\n onMouseEnter={() => setHoveredNewsIds(n.get('id'), 0)}\n onMouseLeave={() => resetHoveredNewsIds()}\n size=\"large\"\n >\n \n \n \n\n \n handleUpClick(n.get('id'), index)}\n onMouseEnter={() => setHoveredNewsIds(n.get('id'), index - 1)}\n onMouseLeave={() => resetHoveredNewsIds()}\n size=\"large\"\n >\n \n \n \n\n \n handleDownClick(n.get('id'), index)}\n onMouseEnter={() => setHoveredNewsIds(n.get('id'), index + 1)}\n onMouseLeave={() => resetHoveredNewsIds()}\n size=\"large\"\n >\n \n \n \n\n \n handleBottomClick(n.get('id'), index)}\n onMouseEnter={() => setHoveredNewsIds(n.get('id'), news.size - 1)}\n onMouseLeave={() => resetHoveredNewsIds()}\n size=\"large\"\n >\n \n \n \n \n\n {index < news.size - 1 && }\n \n ))}\n \n )}\n \n )\n}\n\nClusterDialog.propTypes = {\n active: PropTypes.bool.isRequired,\n news: PropTypes.instanceOf(List).isRequired,\n newsIds: PropTypes.instanceOf(List).isRequired,\n activeNewsIdFirst: PropTypes.number,\n activeNewsIdSecond: PropTypes.number,\n hoveredNewsIdFirst: PropTypes.number,\n hoveredNewsIdSecond: PropTypes.number,\n loading: PropTypes.bool.isRequired,\n\n onHide: PropTypes.func.isRequired,\n onSaveClick: PropTypes.func.isRequired,\n onMoveClick: PropTypes.func.isRequired,\n onMoveStart: PropTypes.func.isRequired,\n onHover: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ClusterDialog from 'components/shopping_cart/cluster_dialog'\nimport {\n getShowShoppingCartClusterDialog,\n getShoppingCartClusterNews,\n getShoppingCartClusterNewsIds,\n getShoppingCartClusterLoading,\n getShoppingActiveNewsIdFirst,\n getShoppingActiveNewsIdSecond,\n getShoppingHoveredNewsIdFirst,\n getShoppingHoveredNewsIdSecond\n} from 'selectors'\nimport {\n hideClusterDialog,\n moveNewsInCluster,\n replaceCluster,\n setActiveNewsIdsInCluster,\n setHoveredNewsIdsInCluster\n} from 'actions/shopping_cart'\n\nconst mapStateToProps = state => ({\n active: getShowShoppingCartClusterDialog(state),\n newsIds: getShoppingCartClusterNewsIds(state),\n news: getShoppingCartClusterNews(state),\n loading: getShoppingCartClusterLoading(state),\n activeNewsIdFirst: getShoppingActiveNewsIdFirst(state),\n activeNewsIdSecond: getShoppingActiveNewsIdSecond(state),\n hoveredNewsIdFirst: getShoppingHoveredNewsIdFirst(state),\n hoveredNewsIdSecond: getShoppingHoveredNewsIdSecond(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onHide: hideClusterDialog,\n onMoveClick: moveNewsInCluster,\n onMoveStart: setActiveNewsIdsInCluster,\n onHover: setHoveredNewsIdsInCluster,\n onSaveClick: replaceCluster\n }\n)(ClusterDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport ClearAllIcon from '@mui/icons-material/ClearAll'\nimport MoreVertIcon from '@mui/icons-material/MoreVert'\nimport AutoAwesomeIcon from '@mui/icons-material/AutoAwesome'\nimport { makeStyles } from 'tss-react/mui'\nimport { List, Map } from 'immutable'\n\nimport { createLoadable } from 'utils/loadable'\n\nimport CapSafe, { ViewConfigCapSafe } from 'containers/CapSafe'\nimport { Capabilities, NewsPageViews } from 'static/constants'\n\nimport { Button, IconButton, Menu } from 'containers/themed'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { MenuItem, Divider } from '@mui/material'\n\nconst useStyles = makeStyles()({\n actions: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n '& > *': {\n marginRight: 5,\n '&:last-child': {\n marginRight: 0\n }\n }\n }\n})\n\nconst ExportMenu = createLoadable(() => (\n import(/* webpackChunkName: \"ShoppingCartExportMenu\" */ 'containers/ExportMenu')\n))\n\nconst ExportButton = ViewConfigCapSafe(ExportMenu, 'export')\nconst AiAnalysis = CapSafe(Button, Capabilities.HAS_AI_SUMMARY_FEATURE)\n\nexport default function Actions({\n onCustomTagClick,\n onRemoveCustomTagClick,\n onReset,\n onNewNewsClick,\n onAiAnalysisClick,\n customTagMode,\n allowedViews,\n capabilities,\n viewConfigCaps\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n if (customTagMode) {\n return (\n
\n \n
\n )\n }\n\n const menuActions = []\n\n if (allowedViews.includes(NewsPageViews.PIN_BOARDS) && capabilities.get(Capabilities.HAS_CUSTOM_TAGS)) {\n menuActions.push(\n onCustomTagClick()}\n >\n {i18n.get('pin')}\n ,\n onRemoveCustomTagClick()}\n >\n {i18n.get('unpin')}\n \n )\n }\n\n if (viewConfigCaps.get('editing').some(c => capabilities.get(c))) {\n if (menuActions.length > 0) {\n menuActions.push(\n \n )\n }\n\n menuActions.push(\n onNewNewsClick()}\n >\n {i18n.get('new_news')}\n \n )\n }\n\n return (\n
\n }\n color=\"inherit\"\n onClick={() => onReset({\n navigateBack: true,\n resetCustomTag: true\n })}\n >\n {i18n.get('empty_shopping_cart')}\n \n\n }\n color=\"inherit\"\n onClick={() => onAiAnalysisClick()}\n >\n {i18n.get('ai_analysis')}\n \n\n
\n \n
\n\n {menuActions.length > 0 && (\n \n \n \n )\n }\n >\n {menuActions}\n \n )}\n
\n )\n}\n\nActions.propTypes = {\n customTagMode: PropTypes.bool.isRequired,\n allowedViews: PropTypes.instanceOf(List).isRequired,\n capabilities: PropTypes.instanceOf(Map).isRequired,\n viewConfigCaps: PropTypes.instanceOf(Map).isRequired,\n\n onCustomTagClick: PropTypes.func.isRequired,\n onRemoveCustomTagClick: PropTypes.func.isRequired,\n onReset: PropTypes.func.isRequired,\n onNewNewsClick: PropTypes.func.isRequired,\n onAiAnalysisClick: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Actions from 'components/shopping_cart/app_bar/actions'\nimport { showEditNewsDialog } from 'actions/news'\nimport {\n showCustomTagDialog,\n showRemoveCustomTagDialog,\n resetShoppingCart\n} from 'actions/shopping_cart'\nimport { showAiAnalysisDialog } from 'actions/ai'\nimport {\n getShoppingCartIsStructuredExport,\n getAllowedNewsViews,\n getCapabilities,\n getViewConfigCapabilities\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n customTagMode: getShoppingCartIsStructuredExport(state),\n allowedViews: getAllowedNewsViews(state),\n capabilities: getCapabilities(state),\n viewConfigCaps: getViewConfigCapabilities(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onCustomTagClick: showCustomTagDialog,\n onRemoveCustomTagClick: showRemoveCustomTagDialog,\n onReset: resetShoppingCart,\n onNewNewsClick: showEditNewsDialog,\n onAiAnalysisClick: showAiAnalysisDialog\n }\n)(Actions)\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport { Map } from 'immutable'\n\nimport { structuredFormatByCustomTag } from 'utils/custom_tags'\n\nimport MuiAppBar from 'containers/AppBar'\nimport Actions from 'containers/shopping_cart/app_bar/Actions'\n\nimport useDevice from 'hooks/useDevice'\nimport useI18n from 'hooks/useI18n'\n\nexport default function AppBar({\n count,\n progress,\n shoppingCartCustomTag,\n onCustomTagBackClick,\n onReset\n}) {\n const i18n = useI18n()\n const device = useDevice()\n\n let actions\n let title = `${progress}%`\n\n if (!progress) {\n actions = \n title = device.get('lt-sm') ? '' : `${count} ${i18n.get('news')}`\n }\n\n const structuredFormat = structuredFormatByCustomTag(shoppingCartCustomTag)\n\n if (structuredFormat) {\n title = device.get('lt-sm') ? i18n.get(structuredFormat) : i18n.get(`${structuredFormat}_export_title`)\n }\n\n if (shoppingCartCustomTag.get('name') && device.get('gt-sm')) {\n title = `${title}: ${shoppingCartCustomTag.get('name')}`\n }\n\n let handleBackClick\n\n if (shoppingCartCustomTag.get('id')) {\n handleBackClick = () => {\n onCustomTagBackClick(2)\n onReset()\n }\n }\n\n return (\n \n )\n}\n\nAppBar.propTypes = {\n count: PropTypes.number.isRequired,\n progress: PropTypes.number,\n shoppingCartCustomTag: PropTypes.instanceOf(Map),\n\n onCustomTagBackClick: PropTypes.func.isRequired,\n onReset: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport AppBar from 'components/shopping_cart/app_bar'\n\nimport {\n getShoppingCartNewsCount,\n getShoppingCartPinAllProgress,\n getShoppingCartCustomTag\n} from 'selectors'\n\nimport { back } from 'actions/navigation'\nimport { resetShoppingCart } from 'actions/shopping_cart'\n\nconst mapStateToProps = state => ({\n count: getShoppingCartNewsCount(state),\n progress: getShoppingCartPinAllProgress(state),\n shoppingCartCustomTag: getShoppingCartCustomTag(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onCustomTagBackClick: back,\n onReset: resetShoppingCart\n }\n)(AppBar)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()(theme => ({\n codes: {\n color: theme.palette.grey[600],\n fontSize: '8pt',\n fontWeight: 300\n }\n}))\n\nexport default function Codes({ news }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const codes = news.get('codes')\n\n if (codes.isEmpty()) {\n return null\n }\n\n return (\n
\n {i18n.get('media_review_codes')}: {codes.sortBy(code => code.get('sortcode')).map(code => code.get('name')).join(' | ')}\n
\n )\n}\n\nCodes.propTypes = {\n news: PropTypes.object.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()(theme => ({\n headline: {\n fontWeight: '500',\n color: theme.isDark ? '#ffffff' : theme.palette.grey[800],\n userSelect: 'auto',\n a: {\n transition: 'color 500ms',\n color: theme.palette.grey[theme.isDark ? 200 : 900],\n textDecoration: 'none',\n\n '&:hover': {\n color: theme.palette.grey[theme.isDark ? 500 : 900]\n }\n }\n }\n}))\n\nexport default function Headline({ news }) {\n const { classes } = useStyles()\n const target = news.get('url')\n\n const headline = news.get('headline')\n\n if (target) {\n return (\n \n \n \n )\n }\n\n return (\n \n )\n}\n\nHeadline.propTypes = {\n news: PropTypes.object.isRequired\n}\n","import React, { memo } from 'react'\nimport PropTypes from 'prop-types'\nimport moment from 'moment-timezone'\nimport CloseIcon from '@mui/icons-material/Close'\nimport EditIcon from '@mui/icons-material/Edit'\nimport { List, fromJS } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport { separate } from 'utils/number'\nimport { blue } from '@mui/material/colors'\n\nimport { getTonalityColor } from 'utils/tonality'\nimport ChannelIcon from 'components/channel_icon'\nimport { ViewConfigCapSafe } from 'containers/CapSafe'\nimport { IconButton } from 'containers/themed'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Checkbox, Icon, Grid, ListItem, ListItemText, Divider } from '@mui/material'\nimport Codes from './codes'\nimport Headline from './headline'\n\nconst useStyles = makeStyles()(theme => ({\n newsListItem: {\n borderLeft: `5px solid ${theme.nrx.paper.paperOnBackgroundColor}`,\n fontSize: '10pt'\n },\n itemContent: {\n width: '100%'\n },\n snippet: {\n backgroundColor: theme.nrx.paper.backgroundPaperColor,\n borderRadius: '10px',\n padding: '10px',\n margin: '10px',\n overflow: 'hidden',\n whiteSpace: 'normal'\n },\n divider: {\n marginTop: '0 !important',\n marginBottom: '0 !important',\n backgroundColor: theme.nrx.paper.backgroundPaperColor\n },\n listItem: {\n transition: 'background-color 0.3s',\n padding: '0',\n WebkitUserSelect: 'none',\n MozUserSelect: 'none',\n MsUserSelect: 'none',\n userSelect: 'none'\n },\n listItemText: {\n fontSize: '10pt',\n margin: '0'\n },\n actions: {\n textAlign: 'end',\n paddingRight: 5\n },\n action: {\n padding: '2px'\n },\n text: {\n fontSize: '10pt',\n\n [theme.breakpoints.only('xs')]: {\n fontSize: '8pt'\n }\n },\n date: {\n color: theme.isDark ? theme.palette.common.white : theme.palette.grey[700],\n fontSize: '8pt',\n\n [theme.breakpoints.only('xs')]: {\n fontSize: '7pt'\n }\n },\n publication: {\n display: 'flex',\n justifyContent: 'flex-start',\n alignItems: 'flex-start',\n\n [theme.breakpoints.only('xs')]: {\n fontSize: '8pt'\n },\n\n '& > i:first-of-type': {\n paddingTop: '0.5px'\n },\n\n '& > *:last-child': {\n marginLeft: '5px'\n }\n },\n meta: {\n display: 'flex',\n alignItems: 'center'\n },\n cluster: {\n fontWeight: '500',\n marginLeft: 3,\n cursor: 'pointer',\n\n '&:hover': {\n opacity: 0.8\n }\n },\n clusterIcon: {\n fontSize: '22px !important'\n },\n flag: {\n fontSize: '10pt',\n marginLeft: '0.5em'\n },\n publicationName: {\n wordBreak: 'break-word'\n },\n keyFigures: {\n color: theme.palette.grey[600],\n fontSize: '8pt',\n fontWeight: 300\n },\n selectedForSorting: {\n backgroundColor: `${theme.isDark ? theme.palette.grey[600] : blue[100]} !important`\n }\n}))\n\nconst EditButton = ViewConfigCapSafe(IconButton, 'editing')\n\nconst areEqual = (prevProps, nextProps) => {\n if (!nextProps.news.equals(prevProps.news)) {\n return false\n }\n\n if (!nextProps.newsClusterIds.equals(prevProps.newsClusterIds)) {\n return false\n }\n\n if (nextProps.isMobile !== prevProps.isMobile) {\n return false\n }\n\n if (nextProps.showCodes !== prevProps.showCodes) {\n return false\n }\n\n if (nextProps.showSnippets !== prevProps.showSnippets) {\n return false\n }\n\n if (nextProps.selectedForSorting !== prevProps.selectedForSorting) {\n return false\n }\n\n if (nextProps.selected !== prevProps.selected) {\n return false\n }\n\n return true\n}\n\nconst NewsListItem = ({\n codeId,\n isMobile,\n news,\n newsClusterIds,\n onEditClick,\n onRemove,\n onSelect,\n onShiftSortingSelect,\n onSortingSelect,\n onClusterClick,\n selected,\n selectedForSorting,\n showCodes,\n showSnippets\n}) => {\n const { classes, cx } = useStyles()\n const i18n = useI18n()\n\n let date = moment(news.get('articleDate'))\n\n if (news.getIn(['flags', 'germanTime'])) {\n date = date.tz('Europe/Berlin')\n }\n\n const tonality = news.get('tonality')\n let tonalityStyle = {}\n\n if (tonality !== null) {\n tonalityStyle = {\n borderLeft: `5px solid ${getTonalityColor(tonality)}`\n }\n }\n\n const handleOnClick = event => {\n const item = fromJS([{\n codeId,\n newsId: news.get('id')\n }])\n\n const keyPress = {\n shiftKey: event.shiftKey,\n ctrlKey: event.ctrlKey,\n metaKey: event.metaKey\n }\n\n if (keyPress.shiftKey) {\n onShiftSortingSelect({\n newsIds: item,\n isReplace: false,\n keyPress\n })\n } else {\n onSortingSelect({\n news: item,\n isReplace: !keyPress.ctrlKey && !keyPress.metaKey,\n keyPress\n })\n }\n }\n\n const getCountryIcon = () => {\n const shortName = news.getIn(['publication', 'country', 'shortName'])\n\n if (!shortName) {\n return null\n }\n\n return \n }\n\n const keyFigures = [\n {\n label: i18n.get('reach'),\n value: news.getIn(['keyFigures', 'reach'])\n },\n {\n label: i18n.get('interactions'),\n value: news.getIn(['keyFigures', 'interactions'])\n }\n ].filter(({ value }) => value !== null && value !== undefined).map(({ label, value }) => `${label}: ${separate(value)}`)\n\n return (\n \n \n \n \n \n {\n event.stopPropagation()\n\n onSelect({\n codeId,\n newsIds: newsClusterIds,\n omitIntersection: false\n })\n }}\n checked={selected}\n />\n\n
\n {date.format('L')} | {date.format('LT')}\n
\n \n \n \n {news.getIn(['publication', 'name'])}\n \n\n {newsClusterIds.size > 1 && (\n onClusterClick(newsClusterIds)}\n title={i18n.get('reorder_cluster')}\n >\n +{newsClusterIds.size - 1}\n \n )}\n \n
\n
\n \n\n \n {getCountryIcon()}\n \n\n \n \n\n {showCodes && }\n\n \n {keyFigures.join(' | ')}\n \n \n\n \n {!isMobile && newsClusterIds.size > 1 && (\n onClusterClick(newsClusterIds)}\n title={i18n.get('reorder_cluster')}\n size=\"large\"\n >\n \n \n )}\n\n {!isMobile && (\n onEditClick(news)}\n >\n \n \n )}\n\n {!!onRemove && (\n onRemove({\n newsIds: [news.get('id')],\n codeIds: codeId ? [codeId] : undefined\n })}\n size=\"large\"\n >\n \n \n )}\n \n \n
\n \n\n {showSnippets && (\n \n \n \n \n \n )}\n\n \n \n )\n}\n\nNewsListItem.defaultProps = {\n showCodes: true\n}\n\nNewsListItem.propTypes = {\n news: PropTypes.object.isRequired,\n isMobile: PropTypes.bool.isRequired,\n showCodes: PropTypes.bool,\n showSnippets: PropTypes.bool.isRequired,\n selected: PropTypes.bool.isRequired,\n newsClusterIds: PropTypes.instanceOf(List).isRequired,\n codeId: PropTypes.number,\n selectedForSorting: PropTypes.bool,\n\n onRemove: PropTypes.func.isRequired,\n onSelect: PropTypes.func.isRequired,\n onEditClick: PropTypes.func.isRequired,\n onSortingSelect: PropTypes.func.isRequired,\n onShiftSortingSelect: PropTypes.func.isRequired,\n onClusterClick: PropTypes.func.isRequired\n}\n\nexport default memo(NewsListItem, areEqual)\n","import { connect } from 'react-redux'\n\nimport ShoppingCartNewsListItem from 'components/shopping_cart/news_list_item'\n\nimport {\n removeNewsFromShoppingCart,\n selectNews,\n selectNewsForSorting,\n shiftSelectNewsForSorting,\n showClusterDialog\n} from 'actions/shopping_cart'\n\nimport { showEditNewsDialog } from 'actions/news'\nimport {\n getDevice,\n getShowSnippetsInShoppingCart,\n isShoppingCartNewsSelected,\n getNewsClusterIdsOfNewsInShoppingCart,\n getShoppingCartSelectedNews\n} from 'selectors'\n\nconst mapStateToProps = (state, { news, codeId }) => ({\n isMobile: getDevice(state).get('mobile'),\n showSnippets: getShowSnippetsInShoppingCart(state),\n selected: isShoppingCartNewsSelected(state, news.get('id'), codeId) || getShoppingCartSelectedNews(state).isEmpty(),\n newsClusterIds: getNewsClusterIdsOfNewsInShoppingCart(state, news.get('id'))\n})\n\nexport default connect(\n mapStateToProps,\n {\n onRemove: removeNewsFromShoppingCart,\n onSelect: selectNews,\n onEditClick: showEditNewsDialog,\n onSortingSelect: selectNewsForSorting,\n onShiftSortingSelect: shiftSelectNewsForSorting,\n onClusterClick: showClusterDialog\n }\n)(ShoppingCartNewsListItem)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Set } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport NewsListItem from 'containers/shopping_cart/NewsListItem'\n\nimport MultisortNewsList from 'components/sortable/multisort_news_list'\nimport { List } from '@mui/material'\n\nconst useStyles = makeStyles()({\n list: {\n padding: 0\n }\n})\n\nexport default function GroupedNewsSublist({\n codeId,\n news,\n onSortEnd,\n onReset,\n selectedNews\n}) {\n const { classes } = useStyles()\n\n return (\n \n \n \n )\n}\n\nGroupedNewsSublist.propTypes = {\n news: PropTypes.object.isRequired,\n codeId: PropTypes.number,\n selectedNews: PropTypes.instanceOf(Set).isRequired,\n\n onSortEnd: PropTypes.func.isRequired,\n onReset: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ShoppingCartGroupedNewsSublist from 'components/shopping_cart/grouped_news_sublist'\n\nimport { getShoppingCartSelectedNewsForSorting } from 'selectors'\n\nimport { moveNewsInShoppingCartSublist, resetSortingSelection } from 'actions/shopping_cart'\n\nconst mapStateToProps = state => ({\n selectedNews: getShoppingCartSelectedNewsForSorting(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSortEnd: moveNewsInShoppingCartSublist,\n onReset: resetSortingSelection\n }\n)(ShoppingCartGroupedNewsSublist)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\nimport ExpandLessIcon from '@mui/icons-material/ExpandLess'\nimport { List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport { ListItem, ListItemText, Checkbox, Card } from '@mui/material'\n\nimport ShoppingCartGroupedNewsSublist from 'containers/shopping_cart/GroupedNewsSublist'\nimport { IconButton } from 'containers/themed'\n\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()(theme => ({\n itemContent: {\n width: '100%'\n },\n group: {\n paddingLeft: '5px',\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n backgroundColor: theme.nrx.paper.paperOnBackgroundColor\n },\n groupHeader: {\n display: 'flex',\n alignItems: 'center'\n },\n listItem: {\n padding: 0,\n alignItems: 'flex-start',\n WebkitUserSelect: 'none',\n MozUserSelect: 'none',\n MsUserSelect: 'none',\n userSelect: 'none'\n },\n listItemText: {\n margin: 0\n },\n name: {\n position: 'relative'\n },\n spacer: {\n flex: 1\n },\n action: {\n padding: '2px'\n },\n dragAction: {\n padding: '2px',\n color: 'rgba(0, 0, 0, 0.54) !important'\n },\n card: {\n margin: '5px 0'\n }\n}))\n\nexport default function GroupedNewsListItem({\n code,\n onToggle,\n selected,\n onSelect,\n selectedCount,\n indeterminate,\n newsClusterIds\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n return (\n \n \n \n
\n
\n \n onSelect({\n codeId: code.get('id'),\n newsIds: newsClusterIds,\n omitIntersection: !selected\n })}\n checked={selected}\n indeterminate={indeterminate}\n />\n\n {code.get('name') ? `${i18n.get('topic')}: ${code.get('name')}` : i18n.get('ungrouped')}\n\n {selectedCount > 0 && (\n <>\n   ({selectedCount})\n \n )}\n \n\n \n\n onToggle(code.get('id'))}\n size=\"large\"\n >\n {code.get('showNews') ? : }\n \n
\n\n {code.get('showNews') ? (\n \n ) : null}\n
\n
\n
\n
\n )\n}\n\nGroupedNewsListItem.propTypes = {\n code: PropTypes.object.isRequired,\n selected: PropTypes.bool.isRequired,\n selectedCount: PropTypes.number.isRequired,\n indeterminate: PropTypes.bool.isRequired,\n newsClusterIds: PropTypes.instanceOf(List).isRequired,\n\n onSelect: PropTypes.func.isRequired,\n onToggle: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ShoppingCartGroupedNewsListItem from 'components/shopping_cart/grouped_news_list_item'\n\nimport { toggleNewsList, selectNews } from 'actions/shopping_cart'\nimport {\n isShoppingCartGroupedNewsListSelected,\n getShoppingCartSelectedNews,\n getNewsClusterIdsOfCodeInShoppingCart\n} from 'selectors'\n\nconst mapStateToProps = (state, { code }) => {\n const selectedNews = getShoppingCartSelectedNews(state)\n const selectedCount = selectedNews.filter(n => parseInt(n.split('_')[0], 10) === code.get('id')).size\n const newsClusterIds = getNewsClusterIdsOfCodeInShoppingCart(state, code)\n\n return ({\n selected: isShoppingCartGroupedNewsListSelected(state, code.get('id')) || selectedNews.isEmpty(),\n selectedCount: selectedNews.filter(n => parseInt(n.split('_')[0], 10) === code.get('id')).size,\n indeterminate: selectedCount > 0 && selectedCount !== newsClusterIds.size,\n newsClusterIds\n })\n}\n\nexport default connect(\n mapStateToProps,\n {\n onSelect: selectNews,\n onToggle: toggleNewsList\n }\n)(ShoppingCartGroupedNewsListItem)\n","export const UNGROUPED = 'UNGROUPED'\nexport const GROUPED = 'GROUPED'\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport ArrowDownwardIcon from '@mui/icons-material/ArrowDownward'\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward'\n\nimport { Select, IconButton } from 'containers/themed'\nimport { UNGROUPED, GROUPED } from 'components/shopping_cart/enum'\n\nconst useStyles = makeStyles()(theme => ({\n leftActions: {\n display: 'flex',\n alignItems: 'center',\n [theme.breakpoints.only('xs')]: {\n width: '100%',\n justifyContent: 'space-between'\n },\n '& > span:first-of-type': {\n [theme.breakpoints.only('xs')]: {\n marginRight: 5\n }\n },\n '& > button': {\n [theme.breakpoints.only('xs')]: {\n minWidth: 32,\n fontSize: 10,\n padding: 2\n }\n },\n minWidth: 200\n },\n sortDirectionButton: {\n marginLeft: 5\n }\n}))\n\nexport default function Sortbar({\n i18n,\n tab,\n onUngroupedSortBy,\n onSortBy\n}) {\n const { classes } = useStyles()\n const [sortDirection, setSortDirection] = useState('asc')\n const [selectedField, setSelectedField] = useState('-')\n\n useEffect(() => {\n if (selectedField !== '-') {\n if (tab === GROUPED) {\n onSortBy({ field: selectedField, order: sortDirection })\n } else if (tab === UNGROUPED) {\n onUngroupedSortBy({ field: selectedField, order: sortDirection })\n }\n }\n }, [sortDirection, selectedField])\n\n const options = [\n {\n value: '-',\n label: i18n.get('none')\n },\n {\n value: 'articleDate',\n label: i18n.get('article_date')\n },\n {\n value: 'channelId',\n label: i18n.get('channel')\n },\n {\n value: 'publicationName',\n label: i18n.get('sort_by_publication')\n },\n {\n value: 'headline',\n label: i18n.get('sort_by_title')\n },\n {\n value: 'country',\n label: i18n.get('country')\n },\n {\n value: 'reach',\n label: i18n.get('reach')\n },\n {\n value: 'interactions',\n label: i18n.get('interactions')\n }\n ]\n\n if (tab === GROUPED) {\n options.push({\n value: 'topic',\n label: i18n.get('topic')\n })\n }\n\n return (\n
\n {\n setSelectedField(value)\n }}\n label={i18n.get('sort_by')}\n variant=\"outlined\"\n />\n\n setSortDirection(sortDirection === 'asc' ? 'desc' : 'asc')}\n size=\"small\"\n >\n {sortDirection === 'desc' ? : }\n \n
\n )\n}\n\nSortbar.propTypes = {\n i18n: PropTypes.object.isRequired,\n tab: PropTypes.string.isRequired,\n\n onUngroupedSortBy: PropTypes.func.isRequired,\n onSortBy: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Sortbar from 'components/shopping_cart/sortbar'\nimport { sortBy, sortByUngrouped } from 'actions/shopping_cart'\nimport { getI18n } from 'selectors'\n\nconst mapStateToProps = (state, { tab }) => ({\n i18n: getI18n(state),\n tab\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSortBy: sortBy,\n onUngroupedSortBy: sortByUngrouped\n }\n)(Sortbar)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport HelpIcon from '@mui/icons-material/Help'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Button, Popover, IconButton } from 'containers/themed'\nimport Sortbar from 'containers/shopping_cart/Sortbar'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Paper, Box, Typography } from '@mui/material'\n\nconst useStyles = makeStyles()({\n toolbar: {\n display: 'flex',\n alignItems: 'center',\n padding: '0 5px 0 10px'\n },\n spacer: {\n flex: 1\n },\n help: {\n maxWidth: 400,\n padding: 10\n }\n})\n\nexport default function Toolbar({ rightActions, showSnippets, onToggleSnippets, tab }) {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n return (\n \n \n\n
\n\n \n \n \n )}\n >\n \n \n\n \n onToggleSnippets()}\n >\n {i18n.get(`${showSnippets ? 'hide' : 'show'}_snippets`)}\n \n \n {rightActions}\n \n )\n}\n\nToolbar.propTypes = {\n rightActions: PropTypes.array,\n showSnippets: PropTypes.bool.isRequired,\n tab: PropTypes.string.isRequired,\n\n onToggleSnippets: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Toolbar from 'components/shopping_cart/toolbar'\nimport { toggleSnippets } from 'actions/shopping_cart'\nimport { getShowSnippetsInShoppingCart } from 'selectors'\n\nconst mapStateToProps = (state, { tab }) => ({\n showSnippets: getShowSnippetsInShoppingCart(state),\n tab\n})\n\nexport default connect(\n mapStateToProps,\n {\n onToggleSnippets: toggleSnippets\n }\n)(Toolbar)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport ShoppingCartGroupedNewsListItem from 'containers/shopping_cart/GroupedNewsListItem'\n\nimport { IconButton } from 'containers/themed'\nimport Toolbar from 'containers/shopping_cart/Toolbar'\nimport { GROUPED } from 'components/shopping_cart/enum'\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\nimport ExpandLessIcon from '@mui/icons-material/ExpandLess'\nimport SimpleSortableList from 'components/sortable/simple_sortable_list'\n\nimport { List } from '@mui/material'\n\nconst useStyles = makeStyles()({\n action: {\n padding: 2\n },\n list: {\n padding: 0\n }\n})\n\nconst SortableItem = ({ item }) => \n\nSortableItem.propTypes = {\n item: PropTypes.any.isRequired\n}\n\nexport default function GroupedNewsList({ codes, onSortEnd, onExpand, onCollapse, allExpanded }) {\n const { classes } = useStyles()\n\n return (\n
\n \n (allExpanded ? onCollapse() : onExpand())}\n size=\"large\"\n >\n {allExpanded ? : }\n \n
\n ]\n }\n />\n\n \n \n \n
\n )\n}\n\nGroupedNewsList.propTypes = {\n codes: PropTypes.object.isRequired,\n allExpanded: PropTypes.bool.isRequired,\n\n onSortEnd: PropTypes.func.isRequired,\n onExpand: PropTypes.func.isRequired,\n onCollapse: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ShoppingCartGroupedNewsList from 'components/shopping_cart/grouped_news_list'\nimport { moveCodeInShoppingCart, expandAllNewsLists, collapseAllNewsLists, sortBy } from 'actions/shopping_cart'\nimport { getShoppingCartCodes, isAllExpanded } from 'selectors'\n\nconst mapStateToProps = state => ({\n codes: getShoppingCartCodes(state),\n allExpanded: isAllExpanded(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSortEnd: moveCodeInShoppingCart,\n onExpand: expandAllNewsLists,\n onCollapse: collapseAllNewsLists,\n onSortBy: sortBy\n }\n)(ShoppingCartGroupedNewsList)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Set } from 'immutable'\nimport NewsListItem from 'containers/shopping_cart/NewsListItem'\n\nimport Toolbar from 'containers/shopping_cart/Toolbar'\nimport { UNGROUPED } from 'components/shopping_cart/enum'\nimport MultisortNewsList from 'components/sortable/multisort_news_list'\n\nimport { List } from '@mui/material'\n\nexport default function NewsList({\n news,\n onSortEnd,\n onReset,\n selectedNews\n}) {\n return (\n
\n \n\n \n \n \n
\n )\n}\n\nNewsList.propTypes = {\n news: PropTypes.object.isRequired,\n selectedNews: PropTypes.instanceOf(Set).isRequired,\n\n onSortEnd: PropTypes.func.isRequired,\n onReset: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ShoppingCartNewsList from 'components/shopping_cart/news_list'\n\nimport { moveNewsInShoppingCart, resetSortingSelection } from 'actions/shopping_cart'\n\nimport { getShoppingCartNews, getShoppingCartSelectedNewsForSorting } from 'selectors'\n\nconst mapStateToProps = state => ({\n news: getShoppingCartNews(state),\n selectedNews: getShoppingCartSelectedNewsForSorting(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSortEnd: moveNewsInShoppingCart,\n onReset: resetSortingSelection\n }\n)(ShoppingCartNewsList)\n","import React, { useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { createLoadable } from 'utils/loadable'\nimport { makeStyles } from 'tss-react/mui'\nimport { useParams } from 'react-router-dom'\n\nimport { ViewConfigCapSafe } from 'containers/CapSafe'\nimport Selected from 'containers/shopping_cart/Selected'\nimport RemoveCustomTagDialog from 'containers/shopping_cart/RemoveCustomTagDialog'\nimport ClusterDialog from 'containers/shopping_cart/ClusterDialog'\nimport AppBar from 'containers/shopping_cart/app_bar/AppBar'\nimport GroupedNewsList from 'containers/shopping_cart/GroupedNewsList'\nimport NewsList from 'containers/shopping_cart/NewsList'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Tabs, Tab } from '@mui/material'\n\nconst width = 1200\nconst breakpoint = `@media (max-width: ${width - 1}px)`\n\nconst useStyles = makeStyles()(theme => ({\n centered: {\n position: 'absolute',\n height: '100%',\n width: '100%',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n },\n tabs: {\n marginTop: 5\n },\n container: {\n display: 'flex',\n justifyContent: 'center'\n },\n news: {\n minWidth: width,\n width,\n [breakpoint]: {\n width: '100%',\n minWidth: '100%'\n }\n },\n dummyIcon: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '93vh',\n flex: 1,\n color: theme.palette.grey[200],\n [theme.breakpoints.down('xl')]: {\n display: 'none'\n },\n '& > *': {\n fontSize: '20vw'\n }\n }\n}))\n\nconst DocumentDownloadDialog = createLoadable(() => (\n import(/* webpackChunkName: \"ShoppingCartDocumentDownloadDialog\" */ 'containers/DocumentDownloadDialog')\n))\nconst ExportMenuDialogs = createLoadable(() => (\n import(/* webpackChunkName: \"ShoppingCartExportMenuDialogs\" */ 'containers/export_menu/ExportMenuDialogs')\n))\nconst NrxProgressBar = createLoadable(() => (\n import(/* webpackChunkName: \"ShoppingCartNrxProgressBar\" */ 'components/nrx_progress_bar/NrxProgressBar')\n))\nconst CustomTagDialog = createLoadable(() => (\n import(/* webpackChunkName: \"ShoppingCartCustomTagDialog\" */ 'containers/shopping_cart/CustomTagDialog')\n))\nconst EditDialog = createLoadable(() => (\n import(/* webpackChunkName: \"ShoppingCartEditDialog\" */ 'containers/news/edit_dialog/EditDialog')\n))\nconst CenterMessage = createLoadable(() => (\n import(/* webpackChunkName: \"ShoppingCartCenterMessage\" */ 'containers/CenterMessage')\n))\nconst AiAnalysisDialog = createLoadable(() => (\n import(/* webpackChunkName: \"ShoppingCartAiAnalysisDialog\" */ 'containers/shopping_cart/AiAnalysisDialog')\n))\n\nconst ExportDialogs = ViewConfigCapSafe(ExportMenuDialogs, 'export')\n\nexport default function ShoppingCart({\n count,\n loading,\n onTabChange,\n onCustomTagIdChange,\n show,\n tabIndex,\n ungroupedOnly\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const { custom_tag_id: customTagId } = useParams()\n\n useEffect(() => {\n onCustomTagIdChange(customTagId)\n }, [customTagId, onCustomTagIdChange])\n\n const showBody = Boolean(show && count && !loading)\n\n return (\n <>\n \n \n \n \n \n \n \n\n \n\n {loading && (\n
\n \n
\n )}\n\n {!loading && !count && (\n \n )}\n\n
\n
\n \n
\n\n
\n {ungroupedOnly && showBody && (\n <>\n
\n \n \n )}\n\n {!ungroupedOnly && showBody && (\n <>\n onTabChange(index)}\n variant=\"fullWidth\"\n indicatorColor=\"primary\"\n className={classes.tabs}\n >\n \n \n \n\n
\n {tabIndex === 0 && }\n {tabIndex === 1 && }\n
\n \n )}\n
\n\n
\n \n
\n
\n\n {\n /*\n This may seem odd, because the DownloadDialog is rendered in the ExportMenu as well.\n This is to ensure you can see the DownloadDialog while the AppBar is used to show\n the progress of deleting News from RSS pin boards.\n */\n }\n \n \n )\n}\n\nShoppingCart.propTypes = {\n tabIndex: PropTypes.number.isRequired,\n count: PropTypes.number.isRequired,\n ungroupedOnly: PropTypes.bool.isRequired,\n show: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n\n onTabChange: PropTypes.func.isRequired,\n onCustomTagIdChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ShoppingCart from 'components/shopping_cart'\nimport { updateTabIndex, setCustomTagId } from 'actions/shopping_cart'\nimport {\n getShoppingCartTabIndex,\n getShoppingCartNewsCount,\n getShoppingCartUngroupedOnly,\n getAppLoading,\n getShoppingCartRunning,\n getExportOptions\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n tabIndex: getShoppingCartTabIndex(state),\n count: getShoppingCartNewsCount(state),\n ungroupedOnly: getShoppingCartUngroupedOnly(state),\n show: !getExportOptions(state).get('showExportDialog'),\n loading: getAppLoading(state) || getShoppingCartRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onTabChange: updateTabIndex,\n onCustomTagIdChange: setCustomTagId\n }\n)(ShoppingCart)\n","import React, { isValidElement } from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { FormControlLabel, Checkbox, CardContent, Card } from '@mui/material'\n\nconst useStyles = makeStyles()({\n checked: {\n fontWeight: 500\n },\n root: {\n paddingLeft: 10\n },\n card: {\n cursor: 'pointer',\n width: '100%'\n },\n cardText: {\n paddingBottom: '14px !important',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between'\n },\n icon: {\n }\n})\n\nexport default function CheckboxCard({ label, className, disabled, checked, onChange, accent, icon }) {\n const { classes } = useStyles()\n\n const renderLabel = () => {\n if (!checked) {\n return
\n }\n\n return (\n \n )\n }\n\n const renderIcon = () => {\n if (!isValidElement(icon)) {\n return null\n }\n\n return icon\n }\n\n return (\n {\n e.preventDefault()\n e.stopPropagation()\n\n if (!disabled) {\n onChange(!checked)\n }\n }}\n >\n \n onChange(e.target.checked)}\n />\n )}\n />\n {renderIcon()}\n \n \n )\n}\n\nCheckboxCard.propTypes = {\n label: PropTypes.string,\n disabled: PropTypes.bool,\n accent: PropTypes.bool,\n checked: PropTypes.bool,\n icon: PropTypes.any,\n className: PropTypes.string,\n onChange: PropTypes.func\n}\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport { listChunk } from 'utils/immutable'\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\nimport { List as ImmutableList, Set as ImmutableSet } from 'immutable'\n\nimport { Button, Input } from 'containers/themed'\nimport CheckboxCard from 'components/checkbox_card'\nimport { StaggeredListItem } from 'components/staggered_list'\nimport { Typography, Box, Grid } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n topicGroups: {\n marginTop: 30,\n display: 'flex',\n width: '100%',\n [theme.breakpoints.only('xs')]: {\n marginTop: 0\n }\n },\n topics: {\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n [theme.breakpoints.only('xs')]: {\n paddingRight: 0\n },\n '&:last-child': {\n paddingRight: 0\n }\n },\n topic: {\n marginBottom: 20,\n [theme.breakpoints.only('xs')]: {\n marginBottom: 0\n }\n },\n selectButton: {\n marginTop: 20,\n [theme.breakpoints.only('xs')]: {\n marginBottom: 20\n }\n },\n header: {\n marginBottom: 10,\n [theme.breakpoints.only('xs')]: {\n marginLeft: 25,\n marginRight: 25\n }\n }\n}))\n\nexport default function Topics({\n topics,\n selectedTopicIds,\n selectedEditionIds,\n selectedCodeFilters,\n onSelect,\n onSelectAll,\n onDeselectAll\n}) {\n const { classes } = useStyles()\n const [filter, setFilter] = useState('')\n const i18n = useI18n()\n const device = useDevice()\n\n const byCustomFilter = topic => {\n if (filter.length <= 2) {\n return true\n }\n\n return topic.get('name').toLowerCase().includes(filter.toLowerCase())\n }\n\n const byCodeFilter = topic => {\n if (selectedCodeFilters.isEmpty()) {\n return true\n }\n\n return selectedCodeFilters.includes(topic.get('id'))\n }\n\n const filteredTopics = topics\n .filter(topic => !topic.get('topnews'))\n .filter(byCustomFilter)\n .filter(byCodeFilter)\n .sortBy(topic => topic.get('name').toLowerCase())\n\n const filteredTopTopics = topics\n .filter(byCodeFilter)\n .filter(topic => topic.get('topnews'))\n .sortBy(topic => topic.get('name').toLowerCase())\n\n const getGroupSize = () => {\n if (device.get('sm')) {\n return 2\n }\n\n if (device.get('xs')) {\n return 1\n }\n\n return 3\n }\n\n const getTopics = () => listChunk(filteredTopics, getGroupSize(), true)\n const getTopTopics = () => listChunk(filteredTopTopics, getGroupSize(), true)\n\n const allSelected = (filteredTopics.push(filteredTopTopics)).size === selectedTopicIds.size\n const selectableTopics = topics.filter(topic => !topic.get('topnews')).filter(byCodeFilter)\n\n const handleFilterChange = value => setFilter(value)\n const handleSelectAll = () => {\n if (allSelected) {\n onDeselectAll()\n } else {\n setFilter('')\n onSelectAll()\n }\n }\n\n const renderTopic = (topic, delay, top) => (\n \n {top && (\n \n )}\n {!top && (\n (!selectedEditionIds.isEmpty() && onSelect({ topic, selected }))}\n />\n )}\n \n )\n\n const renderGroup = (group, gIndex, xs, top) => (\n \n {group.map((topic, tIndex) => {\n const delay = (gIndex + tIndex + 1) * 50\n\n return renderTopic(topic, delay, top)\n })}\n \n )\n\n const renderGroups = (groups, top) => {\n const xs = parseInt((12 / groups.size), 10)\n\n return (\n \n {groups.map((group, groupIndex) => renderGroup(group, groupIndex, xs, top))}\n \n )\n }\n\n const renderTopics = top => {\n const groups = top ? getTopTopics() : getTopics()\n\n if (groups.isEmpty()) {\n return null\n }\n\n return (\n \n {renderGroups(groups, top)}\n \n )\n }\n\n const renderSelectButton = () => (\n \n {allSelected ? i18n.get('deselect_all') : i18n.get('select_all')}\n \n )\n\n const renderFilter = () => (\n handleFilterChange(event.target.value)}\n disabled={allSelected}\n />\n )\n\n if (selectedEditionIds.isEmpty() || selectableTopics.isEmpty()) {\n return null\n }\n\n return (\n \n
\n \n {i18n.get('select_your_topics_subtitle')}\n \n {renderFilter()}\n {renderSelectButton()}\n
\n {renderTopics(true)}\n {renderTopics(false)}\n \n )\n}\n\nTopics.propTypes = {\n topics: PropTypes.instanceOf(ImmutableList).isRequired,\n selectedTopicIds: PropTypes.object.isRequired,\n selectedEditionIds: PropTypes.instanceOf(ImmutableSet).isRequired,\n selectedCodeFilters: PropTypes.instanceOf(ImmutableList).isRequired,\n\n onSelect: PropTypes.func.isRequired,\n onSelectAll: PropTypes.func.isRequired,\n onDeselectAll: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Topics from 'components/subscriptions/topics'\nimport {\n getAllowedStaticMediaReviewCodes,\n getSelectedEditionIds,\n getSelectedTopicIds,\n getSelectedCodeFilters\n} from 'selectors'\nimport { updateTopicSelection, selectAllTopics, deselectAllTopics } from 'actions/subscriptions'\n\nconst mapStateToProps = state => ({\n topics: getAllowedStaticMediaReviewCodes(state),\n selectedTopicIds: getSelectedTopicIds(state),\n selectedEditionIds: getSelectedEditionIds(state),\n selectedCodeFilters: getSelectedCodeFilters(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSelect: updateTopicSelection,\n onSelectAll: selectAllTopics,\n onDeselectAll: deselectAllTopics\n }\n)(Topics)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport moment from 'moment-timezone'\nimport AccessTimeIcon from '@mui/icons-material/AccessTime'\nimport { makeStyles } from 'tss-react/mui'\nimport CheckboxCard from 'components/checkbox_card'\nimport useI18n from 'hooks/useI18n'\n\nimport { StaggeredListItem } from 'components/staggered_list'\nimport { Typography, Box, Grid } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n timeIcon: {\n fontSize: '24pt',\n color: theme.palette.grey[500],\n marginRight: 10,\n marginLeft: 10,\n [theme.breakpoints.only('xs')]: {\n fontSize: '18pt'\n }\n },\n checkBoxCard: {\n marginBottom: 10,\n [theme.breakpoints.only('xs')]: {\n width: '100%'\n }\n },\n bold: {\n fontWeight: 500\n },\n schedule: {\n paddingLeft: 25\n },\n editions: {\n [theme.breakpoints.only('xs')]: {\n width: '100%',\n marginBottom: 10\n }\n },\n selection: {\n [theme.breakpoints.only('xs')]: {\n marginLeft: 25,\n marginRight: 25\n }\n },\n header: {\n marginBottom: 10,\n [theme.breakpoints.only('xs')]: {\n marginLeft: 25,\n marginRight: 25\n }\n }\n}))\n\nconst Header = ({ title }) => {\n const { classes } = useStyles()\n\n return (\n
\n \n {title}\n \n
\n )\n}\n\nconst formatTime = time => {\n if (!time) {\n return 'X'\n }\n\n let [hours, minutes] = (time || '').split(':')\n hours = parseInt(hours, 10)\n minutes = parseInt(minutes, 10)\n const date = moment().set({ hours, minutes })\n\n return date.format('LT')\n}\n\nexport default function Editions({ editions, selectedEditionIds, onSelect }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const selectedEditions = editions.filter(edition => selectedEditionIds.has(edition.get('id')))\n\n const renderEdition = (edition, index) => {\n const timeSet = Boolean(edition.get('dispatchTime'))\n const icon = timeSet ? : undefined\n\n return (\n \n \n onSelect({ edition, selected })}\n icon={icon}\n />\n {timeSet && (\n {formatTime(edition.get('dispatchTime'))} {edition.get('timezone')}\n \n )}\n {!timeSet && (\n {i18n.get('no_time_set')}\n \n )}\n \n \n )\n }\n\n const renderEditions = () => (\n editions.valueSeq().map((edition, index) => renderEdition(edition, index))\n )\n\n const renderSelectedEdition = edition => (\n `\n ${edition.get('name')}\n ${i18n.get('at')}\n ${formatTime(edition.get('dispatchTime'))} CET\n `\n )\n\n const renderSelectedEditions = () => {\n if (selectedEditions.isEmpty()) {\n return i18n.get('no_edition_selected')\n }\n\n const editionNames = selectedEditions.map(renderSelectedEdition)\n const separator = selectedEditions.size <= 2 ? ` ${i18n.get('and')} ` : ','\n const content = {\n __html: i18n.get(\n 'your_selection_description',\n {\n editions: editionNames.join(separator)\n }\n )\n }\n\n return (\n \n )\n }\n\n return (\n \n
\n \n \n {renderEditions()}\n \n \n {i18n.get('your_selection')}\n

{renderSelectedEditions()}

\n \n \n \n )\n}\n\nEditions.propTypes = {\n editions: PropTypes.object.isRequired,\n selectedEditionIds: PropTypes.object.isRequired,\n\n onSelect: PropTypes.func.isRequired\n}\n\nHeader.propTypes = {\n title: PropTypes.string.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Editions from 'components/subscriptions/editions'\nimport { getI18n, getStaticMediaReviewTypesForSubscription, getSelectedEditionIds } from 'selectors'\nimport { updateEditionSelection } from 'actions/subscriptions'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n editions: getStaticMediaReviewTypesForSubscription(state),\n selectedEditionIds: getSelectedEditionIds(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSelect: updateEditionSelection\n }\n)(Editions)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport Actions from 'components/saved_searches/actions'\nimport useI18n from 'hooks/useI18n'\nimport { Map as ImmutableMap } from 'immutable'\n\nimport ContentContainer from 'components/content_container'\nimport AppBar from 'containers/AppBar'\n\nimport Topics from 'containers/subscriptions/Topics'\nimport Editions from 'containers/subscriptions/Editions'\nimport { Typography } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n introduction: {\n marginTop: 10,\n maxWidth: 1000,\n fontWeight: 400,\n fontSize: '16px',\n [theme.breakpoints.only('xs')]: {\n margin: '0 30px'\n }\n },\n container: {\n [theme.breakpoints.up('sm')]: {\n paddingLeft: 76,\n paddingRight: 76\n }\n },\n greeting: {\n [theme.breakpoints.only('xs')]: {\n margin: 30\n }\n }\n}))\n\nconst Intro = ({ user }) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n return (\n <>\n \n {i18n.get('hello')} {user.get('firstName')} {user.get('lastName')},\n \n
\n \n \n )\n}\n\nexport default function Subscriptions({ user }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n return (\n <>\n }\n />\n \n \n \n \n \n \n )\n}\n\nSubscriptions.propTypes = {\n user: PropTypes.instanceOf(ImmutableMap).isRequired\n}\nIntro.propTypes = {\n user: PropTypes.instanceOf(ImmutableMap).isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Subscriptions from 'components/subscriptions'\nimport { getUser } from 'selectors'\nimport { navigate } from 'actions/navigation'\n\nconst mapStateToProps = state => ({\n user: getUser(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n navigate\n }\n)(Subscriptions)\n","import { connect } from 'react-redux'\n\nimport SearchBar from 'components/search_bar'\nimport { uiEnteredQuery } from 'actions/darknet'\nimport { showAppMessage } from 'actions/app'\n\nimport { getI18n, getColors, getDarknetRequestRunning, getWhitelabelTheme } from 'selectors'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n colors: getColors(state),\n label: 'Search',\n loading: getDarknetRequestRunning(state),\n whitelabelTheme: getWhitelabelTheme(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSubmit: uiEnteredQuery,\n onError: showAppMessage\n }\n)(SearchBar)\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport { makeStyles } from 'tss-react/mui'\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward'\nimport ArrowDownwardIcon from '@mui/icons-material/ArrowDownward'\n\nimport { Select, IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n sorting: {\n display: 'flex',\n maxWidth: 250,\n marginRight: 15,\n marginTop: 10,\n marginBottom: 10,\n alignItems: 'center',\n '& > div:first-of-type': {\n minWidth: 200,\n [theme.breakpoints.only('xs')]: {\n minWidth: '30vw'\n }\n },\n '& > *:last-child': {\n top: 10\n }\n },\n wrapper: {\n display: 'flex',\n justifyContent: 'flex-end'\n }\n}))\n\nexport default function Sorting({ i18n, sortBy, sortDirection, noHits, onSortByChange, onSortDirectionChange }) {\n if (noHits) {\n return null\n }\n\n const { classes } = useStyles()\n\n const options = [\n { value: 'crawlDate', label: i18n.get('date') },\n { value: 'hackishness', label: i18n.get('hackishness') },\n {\n value: 'relevance', label: i18n.get('relevance'), title: i18n.get('relevance_description')\n }\n ]\n\n const selected = options.find(opt => {\n if (sortBy === '' && opt.value === 'crawl_date') {\n return true\n }\n\n if (sortBy === opt.value) {\n return true\n }\n\n return false\n })\n\n if (!selected) {\n onSortByChange(options[0].value)\n\n return null\n }\n\n return (\n
\n
\n onSortByChange(value.value)}\n value={selected.value}\n />\n onSortDirectionChange(sortDirection === 'desc' ? 'asc' : 'desc')}\n size=\"large\"\n >\n {sortDirection === 'desc' ? : }\n \n
\n\n
\n )\n}\n\nSorting.propTypes = {\n i18n: PropTypes.object.isRequired,\n sortBy: PropTypes.string.isRequired,\n sortDirection: PropTypes.string.isRequired,\n noHits: PropTypes.bool.isRequired,\n onSortByChange: PropTypes.func.isRequired,\n onSortDirectionChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Sorting from 'components/darknet/sorting'\n\nimport { getDarknetSortBy, getDarknetSortDirection, getI18n, getDarknetResults } from 'selectors'\nimport { onSortDirectionChange, onSortByChange } from 'actions/darknet'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n sortBy: getDarknetSortBy(state),\n sortDirection: getDarknetSortDirection(state),\n noHits: getDarknetResults(state).isEmpty()\n})\n\nexport default connect(mapStateToProps, {\n onSortByChange,\n onSortDirectionChange\n})(Sorting)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\n\nimport { Capabilities } from 'static/constants'\nimport CapSafe from 'containers/CapSafe'\nimport { Button, IconButton } from 'containers/themed'\n\nimport SettingsIcon from '@mui/icons-material/Settings'\nimport { makeStyles } from 'tss-react/mui'\n\nconst QmIcon = CapSafe(IconButton, Capabilities.HAS_DARKNET_QUERY_MANAGER)\nconst QmButton = CapSafe(Button, Capabilities.HAS_DARKNET_QUERY_MANAGER)\n\nconst useStyles = makeStyles()(theme => ({\n settingsButton: {\n marginLeft: 15,\n color: theme.palette.text.secondary\n },\n iconButton: {\n [theme.breakpoints.only('sm')]: {\n padding: 8\n }\n }\n}))\n\nexport default function Actions({ device, onQueryManagerClick }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const renderQueryManagerButton = () => {\n let comp = (\n
\n }\n >\n {i18n.get('query_manager')}\n \n
\n )\n\n if (device.get('lt-md')) {\n comp = (\n \n \n \n )\n }\n\n return comp\n }\n\n return renderQueryManagerButton()\n}\n\nActions.propTypes = {\n onQueryManagerClick: PropTypes.func.isRequired,\n device: PropTypes.instanceOf(Map)\n}\n","import { connect } from 'react-redux'\n\nimport { navigate } from 'actions/navigation'\nimport { getDevice } from 'selectors'\n\nimport Actions from 'components/darknet/dashboard/actions'\n\nconst mapStateToProps = state => ({\n device: getDevice(state)\n})\n\nconst mapDispatchToProps = dispatch => ({\n onQueryManagerClick: () => dispatch(navigate('query_manager'))\n})\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(Actions)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { Typography } from '@mui/material'\n\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n marginLeft: '2em'\n },\n keyFigure: {\n fontSize: 'smaller',\n color: theme.palette.text.secondary\n },\n value: {\n }\n}))\n\nconst usePercent = value => `${Math.round(value * 100)}%`\n\nexport default function AverageStatistics({ avgHackishness }) {\n if (!avgHackishness) {\n return null\n }\n\n const { classes } = useStyles()\n const i18n = useI18n()\n\n return (\n
\n \n {i18n.get('hackishness')}\n \n \n {usePercent(avgHackishness)}\n \n
\n )\n}\n\nAverageStatistics.propTypes = {\n avgHackishness: PropTypes.number\n}\n","import { connect } from 'react-redux'\n\nimport AverageStatistics from 'components/darknet/dashboard/average_statistics'\nimport { getDarknetStats } from 'selectors'\n\nconst mapStateToProps = state => ({\n avgHackishness: getDarknetStats(state).get('avgHackishness')\n})\n\nexport default connect(mapStateToProps, {})(AverageStatistics)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport moment from 'moment'\nimport { Map } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport { capitalize } from 'utils/string'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { Typography, Chip, Grid, Popover, Card, CardContent } from '@mui/material'\nimport NetworkIcon from 'components/darknet/network_icon'\n\nconst useStyles = makeStyles()(theme => ({\n networkIcon: {\n width: 26,\n height: 26\n },\n hackishness: {\n color: theme.palette.primary.light,\n fontSize: 14\n },\n hackishnessBackground: {\n fontSize: 14,\n color: theme.palette.text.disabled\n },\n label: {\n color: theme.palette.text.secondary,\n fontSize: 14\n },\n languagesWrapper: {\n display: 'flex',\n flexFlow: 'row wrap'\n },\n popover: {\n pointerEvents: 'none',\n width: 400,\n marginLeft: '0.5em'\n },\n cardContent: {\n '&:last-child': {\n padding: 10\n }\n },\n networkInfo: {\n fontSize: 14\n }\n}))\n\nexport default function InfoSummary({ entry, query, searchResultDrilldown }) {\n const { crawlDate, network, hackishness, languages } = entry.toJS()\n\n const [anchorEl, setAnchorEl] = useState(null)\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const roundHack = Math.round(hackishness * 100)\n\n const renderHackIcons = score => {\n const m = Math.round(score / 25) + 1\n\n return (\n \n \n \n \n )\n }\n\n const handleClickNetworkFilter = () => {\n searchResultDrilldown({ filterType: 'networks', value: network, name: capitalize(network) })\n }\n const handleClickLanguageFilter = el => {\n searchResultDrilldown({ filterType: 'languages', value: el.shortName, name: capitalize(el.name) })\n }\n const handleClickQueryFilter = () => {\n searchResultDrilldown({ filterType: 'searchQueries', value: query.get('id'), name: query.get('name') })\n }\n const handlePopoverOpen = event => setAnchorEl(event.currentTarget)\n const handlePopoverClose = () => setAnchorEl(null)\n\n const renderQuery = () => query && (\n \n \n \n )\n\n return (\n <>\n \n \n \n )}\n label={i18n.get(network)}\n variant=\"outlined\"\n />\n \n\n \n \n {moment(crawlDate).format('lll')}\n \n \n\n \n {languages.map((el, index) => (\n handleClickLanguageFilter(el)}\n label={capitalize(el.name)}\n variant=\"outlined\"\n key={`${el.name}-${index}`}\n />\n ))}\n \n\n \n \n \n \n {`${i18n.get('hackishness')} ${roundHack}%`}\n \n \n \n {renderHackIcons(roundHack)}\n \n \n \n\n {renderQuery()}\n \n\n {network !== 'unclassified' && (\n \n \n \n \n {i18n.get(`${network}_network_info`)}\n \n \n \n \n )}\n \n )\n}\n\nInfoSummary.propTypes = {\n entry: PropTypes.instanceOf(Map),\n query: PropTypes.instanceOf(Map),\n searchResultDrilldown: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\nimport InfoSummary from 'components/darknet/dashboard/entry/info_summary'\n\nimport {\n searchResultDrilldown\n} from 'actions/darknet'\n\nexport default connect(\n null,\n {\n searchResultDrilldown\n }\n)(InfoSummary)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Dialog, Typography, DialogTitle, DialogContent, DialogActions, Fade } from '@mui/material'\nimport { makeStyles } from 'tss-react/mui'\nimport { Button } from 'containers/themed'\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()(theme => ({\n content: {\n display: 'flex',\n alignItems: 'center'\n },\n defaultColor: {\n backgroundColor: theme.palette.background.default\n },\n textWrapper: {\n marginTop: 'auto',\n fontSize: 'inherit',\n lineHeight: '1.25',\n '& .clip': {\n color: theme.nrx.colors.highlighting\n }\n }\n}))\n\nconst TransitionComponent = React.forwardRef((props, ref) => (\n \n))\n\nTransitionComponent.displayName = 'Transition'\n\nexport default function FulltextDialog({ open, text, onClose }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n return (\n (\n \n {i18n.get('text')}\n \n ')\n }}\n />\n \n \n {i18n.get('close')}\n \n \n \n )\n )\n}\n\nFulltextDialog.defaultProps = {\n open: false,\n text: ''\n}\n\nFulltextDialog.propTypes = {\n open: PropTypes.bool,\n text: PropTypes.string,\n\n onClose: PropTypes.func.isRequired\n}\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { Dialog, Typography, DialogTitle, DialogContent, DialogActions, Fade, Icon } from '@mui/material'\nimport { makeStyles } from 'tss-react/mui'\nimport { Button, RaisedSecondaryButton } from 'containers/themed'\nimport useI18n from 'hooks/useI18n'\nimport copyToClipboard from 'copy-to-clipboard'\nimport { v4 } from 'uuid'\n\nconst useStyles = makeStyles()(theme => ({\n label: {\n color: theme.palette.text.secondary,\n fontSize: 14,\n marginRight: 15\n },\n copyBtn: {\n marginLeft: '2em'\n },\n defaultColor: {\n backgroundColor: theme.palette.background.default\n },\n source: {\n cursor: 'not-allowed',\n maxWidth: '84%',\n color: theme.palette.text.main\n },\n onionDisclaimer: {\n marginBottom: '2em'\n },\n checkIcon: {\n color: 'green'\n }\n}))\n\nconst TransitionComponent = React.forwardRef((props, ref) => (\n \n))\n\nTransitionComponent.displayName = 'Transition'\n\nexport default function SourceDialog({ open, source, network, onClose }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const id = `dialog-content-${v4()}`\n const [copied, setCopied] = useState(false)\n\n const handleCopy = () => {\n setCopied(true)\n copyToClipboard(source, id)\n }\n\n useEffect(() => {\n const timer = setTimeout(() => {\n setCopied(false)\n }, 3000)\n\n return () => {\n clearTimeout(timer)\n }\n }, [copied])\n\n const renderOnionWarning = () => {\n if (network !== 'onion') {\n return null\n }\n\n return (\n
\n \n {i18n.get('onion_disclaimer_header')}\n \n \n {i18n.get('onion_disclaimer_1')}\n \n \n {i18n.get('onion_disclaimer_2')}\n \n \n {i18n.get('onion_disclaimer_3')}\n \n
\n )\n }\n\n const endIcon = copied ? : \n\n return (\n \n {i18n.get('source')}\n \n {renderOnionWarning()}\n \n {i18n.get('source')}: {source}\n \n \n \n {i18n.get('close')}\n \n \n {i18n.get('copy')}\n \n \n \n )\n}\n\nSourceDialog.defaultProps = {\n open: false,\n source: ''\n}\n\nSourceDialog.propTypes = {\n open: PropTypes.bool,\n source: PropTypes.string,\n network: PropTypes.string.isRequired,\n\n onClose: PropTypes.func.isRequired\n}\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\n\nimport { Typography, Grid, MenuItem, Paper } from '@mui/material'\nimport { makeStyles } from 'tss-react/mui'\nimport { IconButton, Menu } from 'containers/themed'\nimport InfoSummary from 'containers/darknet/InfoSummary'\n\nimport useI18n from 'hooks/useI18n'\nimport MoreVertIcon from '@mui/icons-material/MoreVert'\nimport FulltextDialog from './fulltext_dialog'\nimport SourceDialog from './source_dialog'\n\nconst InfoSummaryGrid = props => (\n \n)\n\nconst TitleGrid = props => (\n \n)\n\nconst SnippetGrid = props => (\n \n)\n\nconst useStyles = makeStyles()(theme => ({\n label: {\n color: theme.palette.text.secondary,\n fontSize: 14,\n marginRight: 15\n },\n entryContainer: {\n '&:not(:last-child)': {\n margin: '0 0 1rem 0'\n },\n position: 'relative'\n },\n entry: {\n padding: '1em 2em 1em 1em',\n backgroundColor: theme.palette.background.default,\n '&:hover': {\n backgroundColor: theme.palette.background.paper\n }\n },\n textWrapper: {\n padding: '0 1em 0 0',\n whiteSpace: 'break-spaces',\n overflow: 'hidden',\n fontSize: 'inherit',\n lineHeight: '1.25',\n '& .clip': {\n color: theme.nrx.colors.highlighting\n },\n [theme.breakpoints.down('lg')]: {\n padding: '2em 1em 0 0'\n }\n },\n menuContainer: {\n position: 'absolute',\n top: 0,\n right: 0\n }\n}))\n\nexport default function Entry({ entry, query, location }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const { title, snippet, body, network } = entry.toJS()\n\n const [showFulltext, setShowFulltext] = useState(false)\n const [showSource, setShowSource] = useState(false)\n\n const handleFulltextClick = () => setShowFulltext(true)\n const handleSourceClick = () => setShowSource(true)\n\n const handleClose = () => {\n setShowFulltext(false)\n setShowSource(false)\n }\n\n return (\n \n \n \n \n \n\n \n \n \n\n \n \n \n \n\n
\n \n \n \n )\n }\n >\n handleSourceClick()}>\n {i18n.get('show_source')}\n \n handleFulltextClick()}>\n {i18n.get('show_fulltext')}\n \n \n
\n\n \n \n
\n )\n}\n\nEntry.propTypes = {\n entry: PropTypes.instanceOf(Map),\n query: PropTypes.instanceOf(Map),\n location: PropTypes.string\n}\n","/* global window */\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport { Grow, useScrollTrigger } from '@mui/material/'\n\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()(theme => ({\n root: {\n position: 'fixed',\n bottom: theme.spacing(2),\n right: theme.spacing(2)\n }\n}))\n\nexport default function ScrollToTop(props) {\n const { classes } = useStyles()\n\n const trigger = useScrollTrigger({\n target: props.window ? props.window() : undefined,\n disableHysteresis: true,\n threshold: 1200\n })\n\n return (\n \n window.scrollTo({\n top: 0,\n left: 0,\n behavior: 'smooth'\n })}\n role=\"presentation\"\n className={classes.root}\n >\n {props.children}\n
\n \n )\n}\n\nScrollToTop.propTypes = {\n children: PropTypes.element.isRequired,\n window: PropTypes.func\n}\n","import React from 'react'\nimport useI18n from 'hooks/useI18n'\nimport { Grid, Typography } from '@mui/material'\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()(theme => ({\n titles: {\n [theme.breakpoints.down('lg')]: {\n display: 'none'\n }\n }\n}))\n\nexport default function Titles() {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n return (\n \n \n\n \n \n {i18n.get('title')}\n \n \n\n \n \n {i18n.get('snippet')}\n \n \n \n )\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { List, Map } from 'immutable'\nimport useI18n from 'hooks/useI18n'\n\nimport { Paper, Fab } from '@mui/material'\nimport { makeStyles } from 'tss-react/mui'\nimport KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp'\n\nimport NoHits from 'containers/news_page/NoHits'\nimport AverageStatistics from 'containers/darknet/AverageStatistics'\nimport { Button } from 'containers/themed'\n\nimport Entry from 'components/darknet/dashboard/entry'\nimport ScrollToTop from 'components/darknet/scroll_to_top'\n\nimport Titles from './titles'\n\nconst useStyles = makeStyles()(theme => ({\n paper: {\n padding: '1em',\n margin: '1em 2em 2em 1em',\n [theme.breakpoints.only('xs')]: {\n margin: 0,\n padding: '1em 0'\n }\n },\n loadMoreBtn: {\n padding: '0 80px 20px 0',\n textAlign: 'right'\n }\n}))\n\nconst byQueryId = (query, id) => id === query.get('id')\nconst getMatchingQuery = (queries, id) => queries.find(q => byQueryId(q, id)) || Map()\n\nexport default function SearchResults({ searchResults, total, loadingMore, darkowlSearchQueries, onLoadMoreClick }) {\n const i18n = useI18n()\n\n if (!searchResults.size) {\n return (\n <>\n
\n
\n \n \n )\n }\n\n const { classes } = useStyles()\n\n const renderEntries = () => (searchResults.map((entry, index) => {\n const queryId = entry.get('darkowlSearchQueryId')\n const matchingQuery = getMatchingQuery(darkowlSearchQueries, queryId)\n const location = entry.get('location')\n\n return (\n \n )\n }))\n\n const renderLoadMore = () => {\n const remaining = total - searchResults.size\n\n if (remaining < 1) {\n return null\n }\n\n return (\n
\n onLoadMoreClick()}\n >\n {i18n.get('load_more_remaining', { remaining })}\n \n
\n )\n }\n\n return (\n <>\n \n \n \n {renderEntries()}\n \n \n \n \n \n \n {renderLoadMore()}\n \n )\n}\n\nSearchResults.propTypes = {\n searchResults: PropTypes.instanceOf(List),\n total: PropTypes.number.isRequired,\n loadingMore: PropTypes.bool.isRequired,\n darkowlSearchQueries: PropTypes.instanceOf(List),\n\n onLoadMoreClick: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport SearchResults from 'components/darknet/dashboard/search_results'\n\nimport {\n getDarknetResults,\n getDarknetTotalCount,\n getDarknetLoadingMore,\n getDarkowlSearchQueries\n} from 'selectors'\n\nimport { loadMoreDarknetEntriesStart } from 'actions/darknet'\n\nconst mapStateToProps = state => ({\n searchResults: getDarknetResults(state),\n total: getDarknetTotalCount(state),\n loadingMore: getDarknetLoadingMore(state),\n darkowlSearchQueries: getDarkowlSearchQueries(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onLoadMoreClick: loadMoreDarknetEntriesStart\n }\n)(SearchResults)\n","import { connect } from 'react-redux'\nimport { List } from 'immutable'\n\nimport ActiveFilterList from 'components/active_filter_list'\nimport {\n getActiveDarknetFilters, getActiveDarknetFiltersCollapsed, getActiveDarknetNumberFilters\n} from 'selectors'\nimport { toggleActiveFilters } from 'actions/news'\n\nconst mapStateToProps = state => ({\n activeFilters: getActiveDarknetFilters(state),\n activeNumberFilters: getActiveDarknetNumberFilters(state),\n activeBooleanFilters: List(),\n activeGeoFilter: null,\n filterCount: getActiveDarknetFilters(state).size,\n collapsed: getActiveDarknetFiltersCollapsed(state),\n activeFilterType: 'darknet'\n})\n\nexport default connect(\n mapStateToProps,\n {\n onCollapseClick: toggleActiveFilters\n }\n)(ActiveFilterList)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport { keyframes } from 'tss-react'\nimport { separate } from 'utils/number'\nimport { Paper, CircularProgress } from '@mui/material'\nimport { grey } from '@mui/material/colors'\n\nimport { Button } from 'containers/themed'\nimport useI18n from 'hooks/useI18n'\n\nimport useColors from 'hooks/useColors'\n\nconst ButtonContainer = props =>
\n\nconst useStyles = makeStyles()(theme => ({\n chartsButton: {},\n switchActionsContainer: {\n display: 'flex',\n margin: '3em 2em 1.5em 1em',\n [theme.breakpoints.only('xs')]: {\n margin: '3em 0 1.5em 0'\n }\n },\n switchActions: {\n display: 'flex',\n width: '100%',\n height: '64px !important'\n },\n switchAction: {\n position: 'relative',\n flexGrow: 1,\n flexBasis: 0,\n\n '& > button': {\n minWidth: '100%',\n minHeight: '100%',\n\n [theme.breakpoints.only('xs')]: {\n fontSize: '7pt'\n }\n }\n },\n switchActionContent: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center'\n },\n buttonLabel: {\n color: '#ffffff'\n },\n activeBorder: {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%',\n height: 3,\n animation: `${keyframes`\n from {\n transform: scale(0);\n }\n to {\n transform: scale(1);\n }\n `} 300ms;`\n },\n count: {\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n fontSize: 16,\n fontWeight: 300\n },\n iconContainer: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: 28\n },\n chartsActive: {\n opacity: 0.4\n },\n total: {\n color: grey[800],\n fontSize: '9pt',\n fontWeight: 500,\n textAlign: 'center'\n }\n}))\n\nexport default function Navigation({\n requestRunning,\n total,\n view,\n\n onChange\n}) {\n const i18n = useI18n()\n const colors = useColors()\n const { classes } = useStyles()\n\n const SpinIcon = (\n
\n \n
\n )\n\n const renderNavigationAction = (buttonView, label, isRunning, counts, icon, Comp = ButtonContainer) => {\n let totalCount = null\n let count = null\n\n if (typeof counts === 'number') {\n totalCount = counts\n count = counts\n } else if (Array.isArray(counts)) {\n const [t] = counts\n totalCount = t\n count = t\n }\n\n let number = separate(count)\n const title = null\n\n if (totalCount > count) {\n totalCount = separate(totalCount)\n number = `${number} (${totalCount})`\n }\n\n let iconComp = (\n
\n {number}\n
\n )\n\n if (isRunning) {\n iconComp = SpinIcon\n } else if (icon) {\n iconComp = (\n
\n {icon}\n
\n )\n }\n\n let active\n\n if (view === buttonView) {\n active = (\n \n )\n }\n\n return (\n \n onChange(buttonView)}\n >\n
\n {iconComp}\n {label}\n
\n \n\n {active}\n \n )\n }\n\n const buttons = []\n\n buttons.push(\n renderNavigationAction(\n 'statistics',\n i18n.get('statistics'),\n requestRunning,\n total\n )\n )\n\n buttons.push(\n renderNavigationAction(\n 'search_results',\n i18n.get('search_results'),\n requestRunning,\n total\n )\n )\n\n if (buttons.length <= 1) {\n return null\n }\n\n return (\n \n
\n {buttons}\n
\n \n )\n}\n\nNavigation.propTypes = {\n total: PropTypes.number.isRequired,\n requestRunning: PropTypes.bool.isRequired,\n view: PropTypes.string.isRequired,\n\n onChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Navigation from 'components/darknet/navigation'\nimport { changeDarknetView } from 'actions/darknet'\nimport { getI18n, getDarknetRequestRunning, getDarknetView, getDevice, getDarknetTotalCount } from 'selectors'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n requestRunning: getDarknetRequestRunning(state),\n total: getDarknetTotalCount(state),\n view: getDarknetView(state),\n device: getDevice(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: changeDarknetView\n }\n)(Navigation)\n","import { connect } from 'react-redux'\n\nimport DateForm from 'components/date_form'\nimport { uiApplyDateFilter, uiChooseQuickSelect } from 'actions/darknet'\nimport { changeDateType } from 'actions/filter'\nimport { toggleDateForm } from 'actions/news'\nimport {\n getSelectedDateFrom,\n getSelectedDateTo,\n getSelectedDateRange,\n getSelectedDateType,\n getLocale,\n getI18n,\n getDevice,\n getAllowedDateTypes,\n getViewConfigHasDateRestriction,\n getNewsPoolTimeLimit,\n getNewsPoolTimeUnit,\n getNewsUi\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n active: getNewsUi(state).get('showDateForm'),\n dateFrom: getSelectedDateFrom(state),\n dateTo: getSelectedDateTo(state),\n dateRange: getSelectedDateRange(state),\n dateType: getSelectedDateType(state),\n locale: getLocale(state),\n i18n: getI18n(state),\n device: getDevice(state),\n allowedDateTypes: getAllowedDateTypes(state),\n hasDateRestriction: getViewConfigHasDateRestriction(state),\n timeLimit: getNewsPoolTimeLimit(state),\n timeUnit: getNewsPoolTimeUnit(state),\n hasTimelineFilter: false,\n secondary: true\n})\n\nexport default connect(\n mapStateToProps,\n {\n uiApplyDateFilter,\n uiChooseQuickSelect,\n onChangeDateType: changeDateType,\n onClose: toggleDateForm\n }\n)(DateForm)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport DateForm from 'containers/darknet/DateForm'\nimport { Drawer } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n drawer: {\n overflowY: 'auto',\n [theme.breakpoints.up('lg')]: {\n width: 500\n }\n }\n}))\n\nexport default function DateDrawer({ open, onClose }) {\n const { classes } = useStyles()\n\n return (\n onClose()}\n >\n \n \n )\n}\n\nDateDrawer.propTypes = {\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport DateDrawer from 'components/darknet/dashboard/date_drawer'\n\nimport { toggleDateForm as onClose } from 'actions/news'\n\nimport { getNewsUi } from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getNewsUi(state).get('showDateForm')\n})\n\nexport default connect(\n mapStateToProps, {\n onClose\n }\n)(DateDrawer)\n","import React from 'react'\nimport { PropTypes } from 'prop-types'\n\nimport { Slider, Typography } from '@mui/material'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()(theme => ({\n title: {\n color: theme.palette.text.secondary\n }\n}))\n\nfunction valueText(value) {\n return `${value}%`\n}\n\nconst marks = [\n {\n value: 0,\n label: '0%'\n },\n {\n value: 20,\n label: '20%'\n },\n {\n value: 40,\n label: '40%'\n },\n {\n value: 60,\n label: '60%'\n },\n {\n value: 80,\n label: '80%'\n },\n {\n value: 100,\n label: '100%'\n }\n]\n\nexport default function HackishnessSlider({ hackishness, setHackishness, showTitle }) {\n const { classes } = useStyles()\n const handleChange = (event, minHackishness) => {\n setHackishness({ minHackishness })\n }\n const i18n = useI18n()\n\n return (\n <>\n {showTitle\n && (\n \n {i18n.get('min_hackishness')}\n \n )}\n \n \n\n )\n}\n\nHackishnessSlider.defaultProps = {\n showTitle: false\n}\n\nHackishnessSlider.propTypes = {\n hackishness: PropTypes.number.isRequired,\n setHackishness: PropTypes.func.isRequired,\n showTitle: PropTypes.bool\n}\n","import React, { useState } from 'react'\nimport { PropTypes } from 'prop-types'\nimport { List, fromJS } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\nimport { Networks } from 'static/constants'\n\nimport { mapToOptions } from 'utils/autocomplete'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { Grid, Typography, Divider, FormLabel, FormControl } from '@mui/material'\nimport KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight'\nimport KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp'\nimport CloseIcon from '@mui/icons-material/Close'\nimport HelpIcon from '@mui/icons-material/Help'\nimport SettingsBackupRestoreIcon from '@mui/icons-material/SettingsBackupRestore'\n\nimport { Button, Autocomplete, IconButton, RaisedSecondaryButton } from 'containers/themed'\n\nimport ActionBar from 'components/search_form/action_bar'\nimport HackishnessSlider from 'components/darknet/search_form/hackishness_slider'\n\nconst useStyles = makeStyles()(theme => ({\n actionBar: {\n backgroundColor: 'inherit'\n },\n spacer: {\n flex: 0.9,\n [theme.breakpoints.only('xs')]: {\n display: 'none'\n }\n },\n searchForm: {\n padding: 20,\n [theme.breakpoints.up('lg')]: {\n height: '90%',\n overflowY: 'auto'\n }\n },\n tonality: {\n padding: '0 12px'\n },\n divider: {\n marginBottom: 10\n },\n header: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n '& > *:last-child': {\n marginRight: -5\n }\n },\n hackishnessFilter: {\n padding: '0px 20px 0px 11px',\n width: '100%'\n }\n}))\n\nconst mapToEntity = (entities, values) => (values || List([]))\n .map(({ value }) => {\n const found = entities.find(entity => entity.get('id') === value)\n\n if (found) {\n return found.toJS()\n }\n\n return null\n })\n .filter(e => e)\n\nconst Item = props => (\n \n)\n\nexport default function SearchForm(props) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const device = useDevice()\n\n const networks = fromJS(Networks.map(network => ({ ...network, name: i18n.get(network.id) })))\n\n const { uiApplyFilters, setSelectedFilters, uiResetFilters, onClose, languages, searchQueries } = props\n\n const [selectedNetworks, setSelectedNetworks] = useState(mapToOptions(props.selectedNetworks))\n const [selectedLanguages, setSelectedLanguages] = useState(mapToOptions(props.selectedLanguages))\n const [selectedHackishness, setSelectedHackishness] = useState({ minHackishness: props.selectedMinHackishness })\n const [selectedSearchQueries, setSelectedSearchQueries] = useState(mapToOptions(props.selectedSearchQueries))\n const [active, setActive] = useState(props.active)\n const [previousActive, setPreviousActive] = useState(null)\n\n if (active !== previousActive) {\n setSelectedNetworks(mapToOptions(props.selectedNetworks))\n setSelectedLanguages(mapToOptions(props.selectedLanguages))\n setSelectedSearchQueries(mapToOptions(props.selectedSearchQueries))\n setSelectedHackishness({ minHackishness: props.selectedMinHackishness })\n setPreviousActive(active)\n setActive(props.active)\n }\n\n const handleApply = () => {\n setSelectedFilters({\n networks: mapToEntity(networks, selectedNetworks),\n languages: mapToEntity(languages, selectedLanguages),\n searchQueries: mapToEntity(searchQueries, selectedSearchQueries),\n minHackishness: selectedHackishness.minHackishness\n })\n\n uiApplyFilters()\n }\n\n const handleResetFilters = () => {\n uiResetFilters()\n }\n\n const renderAutocomplete = (labelKey, onChange, source, value, helperText) => {\n if (!source.size) {\n return null\n }\n\n return (\n \n )\n }\n\n return (\n
\n
\n \n {i18n.get('advanced_search')}\n \n onClose()}\n title={i18n.get('close')}\n size=\"large\"\n >\n {device.get('lt-lg') ? : }\n \n
\n\n \n\n \n \n {renderAutocomplete(\n 'select_networks',\n value => setSelectedNetworks(value),\n networks,\n selectedNetworks,\n ''\n )}\n \n\n \n {renderAutocomplete(\n 'select_languages',\n value => setSelectedLanguages(value),\n languages,\n selectedLanguages,\n ''\n )}\n \n\n \n {renderAutocomplete(\n 'select_search_queries',\n value => setSelectedSearchQueries(value),\n searchQueries,\n selectedSearchQueries,\n ''\n )}\n \n\n \n \n {i18n.get('min_hackishness')}\n \n \n \n \n \n\n {device.get('lt-lg') && (\n <>\n
\n \n
\n \n )}\n\n \n {device.get('lt-sm') && (\n props.toggleHelpDialog()}\n size=\"large\"\n >\n \n \n )}\n\n {device.get('gt-xs') && (\n props.toggleHelpDialog()}\n startIcon={}\n >\n {i18n.get('help')}\n \n )}\n\n
\n\n
\n {device.get('lt-sm') && (\n \n \n \n )}\n {device.get('gt-xs') && (\n \n {i18n.get('close')}\n \n )}\n\n {device.get('lt-sm') && (\n \n \n \n )}\n {device.get('gt-xs') && (\n \n {i18n.get('reset_filters')}\n \n )}\n\n \n {i18n.get('apply_filters')}\n \n
\n \n\n
\n )\n}\n\nSearchForm.propTypes = {\n languages: PropTypes.instanceOf(List).isRequired,\n searchQueries: PropTypes.instanceOf(List).isRequired,\n selectedMinHackishness: PropTypes.number.isRequired,\n selectedNetworks: PropTypes.instanceOf(List).isRequired,\n selectedLanguages: PropTypes.instanceOf(List).isRequired,\n selectedSearchQueries: PropTypes.instanceOf(List).isRequired,\n active: PropTypes.bool.isRequired,\n uiApplyFilters: PropTypes.func.isRequired,\n setSelectedFilters: PropTypes.func.isRequired,\n uiResetFilters: PropTypes.func.isRequired,\n toggleHelpDialog: PropTypes.func.isRequired,\n onClose: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\nimport SearchForm from 'components/darknet/search_form'\nimport { fromJS } from 'immutable'\nimport { capitalize } from 'utils/string'\n\nimport {\n toggleAdvancedSearch, uiResetFilters,\n uiApplyFilters,\n setSelectedFilters\n} from 'actions/darknet'\n\nimport { toggleHelpDialog } from 'actions/news'\n\nimport {\n getDarknetShowAdvancedSearch,\n getDarknetSearchFilters,\n getStaticDarkowlLanguages,\n getDarkowlSearchQueries\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n active: getDarknetShowAdvancedSearch(state),\n languages: getStaticDarkowlLanguages(state).map(el => (\n fromJS({ id: el.get('shortName'), name: capitalize(el.get('name')), value: el.get('shortName') })\n )),\n searchQueries: getDarkowlSearchQueries(state),\n selectedLanguages: getDarknetSearchFilters(state).get('languages'),\n selectedMinHackishness: getDarknetSearchFilters(state).get('minHackishness'),\n selectedNetworks: getDarknetSearchFilters(state).get('networks'),\n selectedSearchQueries: getDarknetSearchFilters(state).get('searchQueries')\n})\n\nexport default connect(\n mapStateToProps,\n {\n uiResetFilters,\n uiApplyFilters,\n setSelectedFilters,\n onClose: toggleAdvancedSearch,\n toggleHelpDialog\n }\n)(SearchForm)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport SearchForm from 'containers/darknet/SearchForm'\nimport { Map } from 'immutable'\nimport { Drawer } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n drawer: {\n overflowY: 'auto',\n [theme.breakpoints.up('lg')]: {\n width: 500\n }\n }\n}))\n\nexport default function DateDrawer({ device, open, onClose }) {\n const { classes, cx } = useStyles()\n const anchor = device.get('lt-lg') ? 'top' : 'right'\n\n return (\n onClose()}\n >\n \n \n )\n}\n\nDateDrawer.propTypes = {\n device: PropTypes.instanceOf(Map),\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport FilterDrawer from 'components/darknet/dashboard/filter_drawer'\n\nimport { toggleAdvancedSearch as onClose } from 'actions/darknet'\n\nimport { getDarknetShowAdvancedSearch, getDevice } from 'selectors'\n\nconst mapStateToProps = state => ({\n device: getDevice(state),\n open: getDarknetShowAdvancedSearch(state)\n})\n\nexport default connect(\n mapStateToProps, {\n onClose\n }\n)(FilterDrawer)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Button, IconButton } from 'containers/themed'\nimport FilterListIcon from '@mui/icons-material/FilterList'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()(theme => ({\n button: {\n marginLeft: 15\n },\n iconButton: {\n [theme.breakpoints.only('sm')]: {\n padding: 8\n }\n }\n}))\n\nexport default function FilterButton({ active, color, device, onClick }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const activeColor = 'secondary'\n const renderButton = () => {\n let comp = (\n
\n\n }\n >\n {i18n.get('filter')}\n \n
\n )\n\n if (device.get('lt-md')) {\n comp = (\n \n \n \n )\n }\n\n return comp\n }\n\n return (\n <>\n {renderButton()}\n \n )\n}\nFilterButton.defaultProps = {\n color: 'inherit'\n}\n\nFilterButton.propTypes = {\n onClick: PropTypes.func.isRequired,\n active: PropTypes.bool.isRequired,\n color: PropTypes.string,\n device: PropTypes.instanceOf(Map)\n}\n","import { connect } from 'react-redux'\n\nimport FilterButton from 'components/news_page/filter_button'\n\nimport { getDevice, getWhitelabelTheme } from 'selectors'\n\nconst mapStateToProps = state => ({\n device: getDevice(state),\n whitelabelTheme: getWhitelabelTheme(state)\n})\n\nexport default connect(mapStateToProps, {})(FilterButton)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport Chart from 'containers/charts/Chart'\nimport { makeStyles } from 'tss-react/mui'\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()(() => ({\n chart: {\n padding: '1em',\n height: 250,\n width: '100%'\n }\n}))\n\nexport default function DarknetChart({ chart, drilldown }) {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const clickHandler = drilldown ? d => drilldown({\n data: d,\n chartId: chart.get('id')\n }) : undefined\n\n const layout = chart.get('layout', Map()).toJS()\n const chartOpts = chart.get('opts', Map()).toJS()\n const data = chart.get('data')\n const chartWithTranslations = chart.update('label', label => `${i18n.get(label)}`)\n\n return (\n \n \n
\n )\n}\n\nDarknetChart.propTypes = {\n chart: PropTypes.instanceOf(Map),\n drilldown: PropTypes.func\n}\n\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Grid } from '@mui/material'\n\nconst lg = size => size\nconst md = size => (size > 6 ? 12 : 6)\nconst sm = size => (size > 6 ? 12 : 6)\nconst xs = _size => 12\n\nexport default function GridItem({ size, children }) {\n return (\n \n {children}\n \n )\n}\n\nGridItem.defaultProps = {\n size: 4\n}\n\nGridItem.propTypes = {\n size: PropTypes.number,\n children: PropTypes.any\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport Chart from 'components/darknet/charts/chart'\nimport { addStylesToChart } from 'utils/darknet'\nimport GridItem from 'components/darknet/grid_item/GridItem'\n\nconst opts = {\n innerRadius: 45\n}\n\nexport default function LanguagesChart({ chart, size, drilldown }) {\n const chartWithStyles = addStylesToChart(chart, {}, opts)\n\n return (\n \n \n \n )\n}\n\nLanguagesChart.propTypes = {\n chart: PropTypes.any,\n size: PropTypes.number,\n drilldown: PropTypes.func\n}\n","import { connect } from 'react-redux'\n\nimport LanguagesChart from 'components/darknet/static_charts/languages_chart'\n\nimport { getDarknetCharts } from 'selectors'\nimport { DarknetCharts, getChartById } from 'utils/darknet'\nimport { chartDrilldown } from 'actions/darknet'\n\nconst mapStateToProps = state => ({\n chart: getChartById(getDarknetCharts(state), DarknetCharts.LANGUAGES)\n})\n\nexport default connect(mapStateToProps, {\n drilldown: chartDrilldown\n})(LanguagesChart)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport Chart from 'components/darknet/charts/chart'\nimport { addStylesToChart } from 'utils/darknet'\nimport GridItem from 'components/darknet/grid_item/GridItem'\nimport { useTheme } from '@mui/material/styles'\n\nconst opts = theme => ({\n backgroundColor: theme.palette.background.paper\n})\n\nexport default function MentionsTotalChart({ chart, size }) {\n const theme = useTheme()\n const chartWithStyles = addStylesToChart(chart, {}, opts(theme))\n\n return (\n \n \n \n )\n}\n\nMentionsTotalChart.defaultProps = {\n size: 2\n}\n\nMentionsTotalChart.propTypes = {\n chart: PropTypes.any,\n size: PropTypes.number\n}\n","import { connect } from 'react-redux'\n\nimport MentionsTotalChart from 'components/darknet/static_charts/mentions_total_chart'\n\nimport { getDarknetCharts } from 'selectors'\nimport { DarknetCharts, getChartById } from 'utils/darknet'\n\nconst mapStateToProps = state => ({\n chart: getChartById(getDarknetCharts(state), DarknetCharts.MENTIONS_TOTAL)\n})\n\nexport default connect(mapStateToProps, {})(MentionsTotalChart)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport Chart from 'components/darknet/charts/chart'\nimport { addStylesToChart } from 'utils/darknet'\nimport GridItem from 'components/darknet/grid_item/GridItem'\n\nconst opts = {\n domain: [dataMin => Math.floor(dataMin / 10) * 10, dataMax => Math.ceil(dataMax / 100) * 100]\n}\n\nexport default function MentionsTimelineChart({ chart, size, drilldown }) {\n const chartWithStyles = addStylesToChart(chart, {}, opts)\n\n return (\n \n \n \n )\n}\n\nMentionsTimelineChart.defaultProps = {\n size: 6\n}\n\nMentionsTimelineChart.propTypes = {\n chart: PropTypes.any,\n size: PropTypes.number,\n drilldown: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport MentionsTimelineChart from 'components/darknet/static_charts/mentions_timeline_chart'\n\nimport { getDarknetCharts } from 'selectors'\nimport { DarknetCharts, getChartById } from 'utils/darknet'\nimport { chartDrilldown } from 'actions/darknet'\n\nconst mapStateToProps = state => ({\n chart: getChartById(getDarknetCharts(state), DarknetCharts.MENTIONS_TIMELINE)\n})\n\nexport default connect(mapStateToProps, {\n drilldown: chartDrilldown\n})(MentionsTimelineChart)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport Chart from 'components/darknet/charts/chart'\nimport { addStylesToChart } from 'utils/darknet'\nimport GridItem from 'components/darknet/grid_item/GridItem'\n\nconst opts = {\n domain: [dataMin => Math.floor(dataMin / 10) * 10, dataMax => Math.ceil(dataMax / 10) * 10],\n addPercentSign: true\n}\n\nexport default function AvgHackishnessTimelineChart({ chart, size, drilldown }) {\n const chartWithStyles = addStylesToChart(chart, {}, opts)\n\n return (\n \n \n \n )\n}\n\nAvgHackishnessTimelineChart.defaultProps = {\n size: 6\n}\n\nAvgHackishnessTimelineChart.propTypes = {\n chart: PropTypes.any,\n size: PropTypes.number,\n drilldown: PropTypes.func\n}\n","import { connect } from 'react-redux'\n\nimport AvgHackishnessTimelineChart from 'components/darknet/static_charts/avg_hackishness_timeline_chart'\n\nimport { getDarknetCharts } from 'selectors'\nimport { DarknetCharts, getChartById } from 'utils/darknet'\nimport { chartDrilldown } from 'actions/darknet'\n\nconst mapStateToProps = state => ({\n chart: getChartById(getDarknetCharts(state), DarknetCharts.HACKISHNESS_TIMELINE)\n})\n\nexport default connect(mapStateToProps, {\n drilldown: chartDrilldown\n})(AvgHackishnessTimelineChart)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport Chart from 'components/darknet/charts/chart'\nimport { addStylesToChart } from 'utils/darknet'\nimport GridItem from 'components/darknet/grid_item/GridItem'\nimport { useTheme } from '@mui/material/styles'\n\nconst opts = theme => ({\n backgroundColor: theme.palette.background.paper\n})\n\nexport default function AvgHackishnessChart({ chart, size }) {\n const theme = useTheme()\n const chartWithStyles = addStylesToChart(chart, {}, opts(theme))\n\n return (\n \n \n \n )\n}\n\nAvgHackishnessChart.defaultProps = {\n size: 2\n}\n\nAvgHackishnessChart.propTypes = {\n chart: PropTypes.any,\n size: PropTypes.number\n}\n","import { connect } from 'react-redux'\n\nimport AvgHackishnessChart from 'components/darknet/static_charts/avg_hackishness_chart'\n\nimport { getDarknetCharts } from 'selectors'\nimport { DarknetCharts, getChartById } from 'utils/darknet'\n\nconst mapStateToProps = state => ({\n chart: getChartById(getDarknetCharts(state), DarknetCharts.HACKISHNESS_TOTAL)\n})\n\nexport default connect(mapStateToProps, {})(AvgHackishnessChart)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport Chart from 'components/darknet/charts/chart'\nimport { addStylesToChart } from 'utils/darknet'\nimport GridItem from 'components/darknet/grid_item/GridItem'\n\nconst opts = {\n domain: [0, 100],\n usePercentAsValue: true,\n innerRadius: 45\n}\n\nexport default function AvgHackishnessNetworksChart({ chart, size, drilldown }) {\n const chartWithStyles = addStylesToChart(chart, {}, opts)\n\n return (\n \n \n \n )\n}\n\nAvgHackishnessNetworksChart.defaultProps = {\n size: 4\n}\n\nAvgHackishnessNetworksChart.propTypes = {\n chart: PropTypes.any,\n size: PropTypes.number,\n drilldown: PropTypes.func\n}\n","import { connect } from 'react-redux'\n\nimport AvgHackishnessNetworksChart from 'components/darknet/static_charts/avg_hackishness_networks_chart'\n\nimport { getDarknetCharts } from 'selectors'\nimport { DarknetCharts, getChartById } from 'utils/darknet'\nimport { chartDrilldown } from 'actions/darknet'\n\nconst mapStateToProps = state => ({\n chart: getChartById(getDarknetCharts(state), DarknetCharts.HACKISHNESS_NETWORKS)\n})\n\nexport default connect(mapStateToProps, {\n drilldown: chartDrilldown\n})(AvgHackishnessNetworksChart)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport Chart from 'components/darknet/charts/chart'\nimport { addStylesToChart } from 'utils/darknet'\nimport GridItem from 'components/darknet/grid_item/GridItem'\n\nconst opts = {\n innerRadius: 45\n}\n\nexport default function NetworksChart({ chart, size, drilldown }) {\n const chartWithStyles = addStylesToChart(chart, {}, opts)\n\n return (\n \n \n \n )\n}\n\nNetworksChart.propTypes = {\n chart: PropTypes.any,\n size: PropTypes.number,\n drilldown: PropTypes.func\n}\n","import { connect } from 'react-redux'\n\nimport NetworksChart from 'components/darknet/static_charts/networks_chart'\n\nimport { getDarknetCharts } from 'selectors'\nimport { DarknetCharts, getChartById } from 'utils/darknet'\nimport { chartDrilldown } from 'actions/darknet'\n\nconst mapStateToProps = state => ({\n chart: getChartById(getDarknetCharts(state), DarknetCharts.NETWORKS)\n})\n\nexport default connect(mapStateToProps, {\n drilldown: chartDrilldown\n})(NetworksChart)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport Chart from 'components/darknet/charts/chart'\nimport GridItem from 'components/darknet/grid_item/GridItem'\n\nexport default function NetworksTimelineChart({ chart, size, drilldown }) {\n return (\n \n \n \n )\n}\n\nNetworksTimelineChart.defaultProps = {\n size: 8\n}\n\nNetworksTimelineChart.propTypes = {\n chart: PropTypes.any,\n size: PropTypes.number,\n drilldown: PropTypes.func\n}\n","import { connect } from 'react-redux'\n\nimport NetworksTimelineChart from 'components/darknet/static_charts/networks_timeline_chart'\n\nimport { getDarknetCharts } from 'selectors'\nimport { DarknetCharts, getChartById } from 'utils/darknet'\nimport { chartDrilldown } from 'actions/darknet'\n\nconst mapStateToProps = state => ({\n chart: getChartById(getDarknetCharts(state), DarknetCharts.NETWORKS_TIMELINE)\n})\n\nexport default connect(mapStateToProps, {\n drilldown: chartDrilldown\n})(NetworksTimelineChart)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport Chart from 'components/darknet/charts/chart'\nimport GridItem from 'components/darknet/grid_item/GridItem'\n\nexport default function SearchQueriesTimelineChart({ chart, size, drilldown }) {\n return (\n \n \n \n )\n}\n\nSearchQueriesTimelineChart.defaultProps = {\n size: 6\n}\n\nSearchQueriesTimelineChart.propTypes = {\n chart: PropTypes.any,\n size: PropTypes.number,\n drilldown: PropTypes.func\n}\n","import { connect } from 'react-redux'\n\nimport SearchQueriesTimelineChart from 'components/darknet/static_charts/search_queries_timeline_chart'\n\nimport { getDarknetCharts } from 'selectors'\nimport { DarknetCharts, getChartById } from 'utils/darknet'\nimport { chartDrilldown } from 'actions/darknet'\n\nconst mapStateToProps = state => ({\n chart: getChartById(getDarknetCharts(state), DarknetCharts.SEARCH_QUERIES_TIMELINE)\n})\n\nexport default connect(mapStateToProps, {\n drilldown: chartDrilldown\n})(SearchQueriesTimelineChart)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport Chart from 'components/darknet/charts/chart'\nimport GridItem from 'components/darknet/grid_item/GridItem'\n\nexport default function ScoreResultTimelineChart({ charts, size }) {\n return (\n charts.map((chart, index) => (\n \n \n \n ))\n )\n}\n\nScoreResultTimelineChart.defaultProps = {\n size: 6\n}\n\nScoreResultTimelineChart.propTypes = {\n charts: PropTypes.any,\n size: PropTypes.number\n}\n","import { connect } from 'react-redux'\n\nimport ScoreResultTimelineChart from 'components/darknet/static_charts/score_result_timeline_chart'\n\nimport { getDarknetCharts } from 'selectors'\nimport { DarknetCharts, getChartsById } from 'utils/darknet'\n\nconst mapStateToProps = state => ({\n charts: getChartsById(getDarknetCharts(state), DarknetCharts.SCORE_RESULT_TIMELINE)\n})\n\nexport default connect(mapStateToProps, {})(ScoreResultTimelineChart)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Grid } from '@mui/material'\nimport { OrderedSet } from 'immutable'\n\nimport LanguagesChart from 'containers/darknet/charts/LanguagesChart'\nimport MentionsTotalChart from 'containers/darknet/charts/MentionsTotalChart'\nimport MentionsTimelineChart from 'containers/darknet/charts/MentionsTimelineChart'\nimport AvgHackishnessTimelineChart from 'containers/darknet/charts/AvgHackishnessTimelineChart'\nimport AvgHackishnessChart from 'containers/darknet/charts/AvgHackishnessChart'\nimport AvgHackishnessNetworksChart from 'containers/darknet/charts/AvgHackishnessNetworksChart'\nimport NetworksChart from 'containers/darknet/charts/NetworksChart'\nimport NetworksTimelineChart from 'containers/darknet/charts/NetworksTimelineChart'\nimport SearchQueriesTimelineChart from 'containers/darknet/charts/SearchQueriesTimelineChart'\nimport ScoreResultTimelineChart from 'containers/darknet/charts/ScoreResultTimelineChart'\nimport NoHits from 'containers/news_page/NoHits'\n\nimport { DarknetCharts } from 'utils/darknet'\n\nconst chartComponents = {\n [DarknetCharts.LANGUAGES]: LanguagesChart,\n [DarknetCharts.MENTIONS_TIMELINE]: MentionsTimelineChart,\n [DarknetCharts.MENTIONS_TOTAL]: MentionsTotalChart,\n [DarknetCharts.HACKISHNESS_TOTAL]: AvgHackishnessChart,\n [DarknetCharts.HACKISHNESS_TIMELINE]: AvgHackishnessTimelineChart,\n [DarknetCharts.HACKISHNESS_NETWORKS]: AvgHackishnessNetworksChart,\n [DarknetCharts.NETWORKS]: NetworksChart,\n [DarknetCharts.NETWORKS_TIMELINE]: NetworksTimelineChart,\n [DarknetCharts.SEARCH_QUERIES_TIMELINE]: SearchQueriesTimelineChart,\n [DarknetCharts.SCORE_RESULT_TIMELINE]: ScoreResultTimelineChart\n}\n\nconst getChartOrder = breakpoint => {\n let order\n\n switch (breakpoint) {\n case 'xs':\n case 'sm':\n case 'md': order = OrderedSet([\n DarknetCharts.HACKISHNESS_TOTAL,\n DarknetCharts.MENTIONS_TOTAL,\n DarknetCharts.HACKISHNESS_NETWORKS,\n DarknetCharts.NETWORKS,\n DarknetCharts.HACKISHNESS_TIMELINE,\n DarknetCharts.MENTIONS_TIMELINE,\n DarknetCharts.NETWORKS_TIMELINE,\n DarknetCharts.LANGUAGES,\n DarknetCharts.SEARCH_QUERIES_TIMELINE,\n DarknetCharts.SCORE_RESULT_TIMELINE\n ]); break\n case 'lg':\n default: order = OrderedSet([\n DarknetCharts.HACKISHNESS_TOTAL,\n DarknetCharts.HACKISHNESS_TIMELINE,\n DarknetCharts.HACKISHNESS_NETWORKS,\n DarknetCharts.MENTIONS_TOTAL,\n DarknetCharts.MENTIONS_TIMELINE,\n DarknetCharts.NETWORKS,\n DarknetCharts.NETWORKS_TIMELINE,\n DarknetCharts.LANGUAGES,\n DarknetCharts.SEARCH_QUERIES_TIMELINE,\n DarknetCharts.SCORE_RESULT_TIMELINE\n ])\n }\n\n return order\n}\n\nexport default function StaticCharts({ noHits, breakpoint }) {\n const chartOrder = getChartOrder(breakpoint)\n\n const renderChart = (chartId, index) => {\n const Comp = chartComponents[chartId]\n\n return \n }\n\n if (noHits) {\n return (\n <>\n
\n
\n \n \n )\n }\n\n return (\n (\n \n {chartOrder.map((chartId, index) => renderChart(chartId, index))}\n \n )\n )\n}\n\nStaticCharts.propTypes = {\n noHits: PropTypes.bool.isRequired,\n breakpoint: PropTypes.string\n}\n","import { connect } from 'react-redux'\n\nimport StaticCharts from 'components/darknet/static_charts'\n\nimport { getDarknetResults, getBreakpoint } from 'selectors'\n\nconst mapStateToProps = state => ({\n noHits: getDarknetResults(state).isEmpty(),\n breakpoint: getBreakpoint(state)\n})\n\nexport default connect(\n mapStateToProps,\n {}\n)(StaticCharts)\n","/* eslint-disable no-underscore-dangle */\nimport React, { useEffect, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useDevice from 'hooks/useDevice'\nimport useI18n from 'hooks/useI18n'\n\nimport AppBar from 'containers/AppBar'\nimport SearchBar from 'containers/darknet/SearchBar'\nimport Sorting from 'containers/darknet/Sorting'\nimport Actions from 'containers/darknet/DashboardActions'\nimport SearchResults from 'containers/darknet/SearchResults'\nimport ActiveFilterList from 'containers/darknet/ActiveFilterList'\nimport Navigation from 'containers/darknet/Navigation'\nimport DateDrawer from 'containers/darknet/DateDrawer'\nimport FilterDrawer from 'containers/darknet/FilterDrawer'\nimport DateFilterButton from 'containers/news_page/DateFilterButton'\nimport FilterButton from 'containers/news_page/FilterButton'\nimport StaticCharts from 'containers/darknet/StaticCharts'\nimport HelpDialog from 'containers/HelpDialog'\n\nimport TransitionComponent from 'components/transition_component'\nimport NrxProgressBar from 'components/nrx_progress_bar/NrxProgressBar'\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()(theme => ({\n searchBar: {\n transition: 'width 150ms',\n width: '25%',\n [theme.breakpoints.only('md')]: {\n marginLeft: '1em',\n width: '25%'\n },\n [theme.breakpoints.down('md')]: {\n width: '45%',\n marginLeft: '1em'\n },\n [theme.breakpoints.only('xs')]: {\n marginLeft: '1em'\n }\n },\n root: {\n width: '100%'\n },\n progressBar: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n flexBasis: '100%',\n height: '80vh'\n },\n activeFilters: {\n marginTop: 15,\n marginLeft: 15\n },\n dateButton: {\n marginLeft: 10\n }\n}))\n\nexport default function Dashboard({\n requestRunning,\n view,\n showAdvancedSearch,\n showDateForm,\n\n onMountSearch,\n onMountScores,\n toggleDateForm,\n toggleAdvancedSearch\n}) {\n const i18n = useI18n()\n const { classes } = useStyles()\n const device = useDevice()\n const [barStyle, setBarStyle] = useState(null)\n\n useEffect(() => {\n onMountSearch()\n onMountScores()\n }, [])\n\n const handleFocus = () => {\n let width = '100%'\n\n if (device.get('gt-md')) {\n width = '50%'\n }\n\n if (device.get('md')) {\n width = '40%'\n }\n\n setBarStyle({ width })\n }\n\n const handleBlur = () => {\n setTimeout(() => setBarStyle(null), 500)\n }\n\n let title\n\n if (device.get('gt-md')) {\n title = i18n.get('darknet_dashboard')\n }\n\n return (\n <>\n \n }\n >\n \n \n
\n toggleAdvancedSearch()}\n color=\"secondary\"\n active={showAdvancedSearch}\n />\n
\n toggleDateForm()}\n active={showDateForm}\n />\n
\n
\n \n \n \n \n\n
\n \n
\n\n \n\n {requestRunning ? (\n
\n \n
\n ) : (\n <>\n {view === 'statistics' && }\n {view === 'search_results' && (\n <>\n \n \n \n )}\n \n )}\n \n )\n}\n\nDashboard.propTypes = {\n requestRunning: PropTypes.bool.isRequired,\n view: PropTypes.string.isRequired,\n showAdvancedSearch: PropTypes.bool.isRequired,\n showDateForm: PropTypes.bool.isRequired,\n\n onMountSearch: PropTypes.func.isRequired,\n onMountScores: PropTypes.func.isRequired,\n toggleDateForm: PropTypes.func.isRequired,\n toggleAdvancedSearch: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Dashboard from 'components/darknet/dashboard'\n\nimport {\n searchRequestStart as onMountSearch,\n scoresRequestStart as onMountScores,\n toggleAdvancedSearch\n} from 'actions/darknet'\n\nimport { toggleDateForm } from 'actions/news'\n\nimport {\n getDarknetRequestRunning,\n getDarknetView,\n getDarkowlSearchQueries,\n getDarknetShowAdvancedSearch,\n getNewsUi\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n view: getDarknetView(state),\n requestRunning: getDarknetRequestRunning(state),\n darkowlSearchQueries: getDarkowlSearchQueries(state),\n showDateForm: getNewsUi(state).get('showDateForm'),\n showAdvancedSearch: getDarknetShowAdvancedSearch(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onMountSearch,\n onMountScores,\n toggleAdvancedSearch,\n toggleDateForm\n }\n)(Dashboard)\n","import React from 'react'\n\nimport PropTypes from 'prop-types'\nimport { Dialog, DialogContent, DialogTitle, DialogActions, DialogContentText } from '@mui/material'\nimport { grey } from '@mui/material/colors'\nimport { makeStyles } from 'tss-react/mui'\nimport { Button, RaisedSecondaryButton } from 'containers/themed'\n\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()({\n dialogTitle: {\n borderBottomStyle: 'solid',\n borderBottomColor: grey[400],\n borderBottomWidth: '1px',\n marginBottom: '1em'\n }\n})\n\nexport default function ConfirmationDialog({ open, onClose, onConfirm }) {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n return (\n \n \n {i18n.get('please_confirm')}\n \n\n \n \n {i18n.get('delete_query_text')}\n \n \n\n \n \n {i18n.get('cancel')}\n \n \n {i18n.get('delete')}\n \n \n \n )\n}\n\nConfirmationDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n onConfirm: PropTypes.func.isRequired\n}\n","import React, { useState } from 'react'\nimport { PropTypes } from 'prop-types'\nimport { List } from 'immutable'\nimport moment from 'moment-timezone'\n\nimport {\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n Paper,\n IconButton,\n Divider,\n Switch\n} from '@mui/material'\nimport { makeStyles } from 'tss-react/mui'\nimport EditOutlinedIcon from '@mui/icons-material/EditOutlined'\nimport DeleteOutlinedIcon from '@mui/icons-material/DeleteOutlined'\nimport { Intervals } from 'static/constants'\nimport { capitalize } from 'utils/string'\n\nimport NrxProgressBar from 'components/nrx_progress_bar/NrxProgressBar'\n\nimport useI18n from 'hooks/useI18n'\nimport ConfirmationDialog from '../confirmation_dialog/ConfirmationDialog'\n\nconst useStyles = makeStyles()(theme => ({\n table: {\n minWidth: 650\n },\n tableNameColumn: {\n minWidth: 100\n },\n activatedColumn: {\n padding: '4px 16px 4px 16px'\n },\n deactivatedColumn: {\n padding: '4px 16px 4px 16px',\n color: '#888888'\n },\n tableWrapper: {\n display: 'flex',\n justifyContent: 'center',\n marginTop: theme.spacing(5)\n },\n tableContainer: {\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2),\n position: 'relative',\n overflow: 'hidden'\n },\n tableActionColumn: {\n width: 90,\n padding: '4px 16px 4px 16px'\n },\n actionsDivider: {\n backgroundColor: 'rgba(81, 81, 81, 1)',\n float: 'left',\n height: 45\n },\n actionGroup: {\n display: 'flex'\n },\n activationSwitch: {\n marginTop: 5\n },\n confirmationWrapper: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center'\n },\n closeButton: {\n marginRight: 10\n },\n searchRow: {\n borderLeft: '20px solid #3498A4'\n },\n scoreRow: {\n borderLeft: '20px solid #EB711F'\n },\n deactivatedRow: {\n borderLeft: '20px solid #445C68'\n },\n overlay: {\n zIndex: 1,\n position: 'absolute',\n height: '100%',\n width: '100%',\n backgroundColor: 'rgba(255, 255, 255, 0.2)'\n },\n progressBar: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n width: '100%',\n height: '90%'\n }\n}))\n\nfunction mapIntervals(timeInMinutes) {\n const interval = Object.keys(Intervals).find(key => Intervals[key] === timeInMinutes)\n\n if (interval === undefined) {\n return `${timeInMinutes / 60} hours`\n }\n\n return interval\n}\n\nexport default function QueriesTable({\n queries,\n requestRunning,\n\n onScoreQueryDialogOpen,\n onSearchQueryDialogOpen,\n onDelete,\n onDeactivate,\n onActivate\n}) {\n const [confirmationDialog, setConfirmationDialog] = useState({ row: null, isOpen: false })\n const { classes, cx } = useStyles()\n const i18n = useI18n()\n\n const toggleConfirmationDialog = (row = null) => {\n setConfirmationDialog({ row, isOpen: !confirmationDialog.isOpen })\n }\n\n const handleDelete = () => {\n onDelete({ type: confirmationDialog.row.get('type'), id: confirmationDialog.row.get('id') })\n toggleConfirmationDialog()\n }\n\n const handleDeactivate = row => {\n onDeactivate({ type: row.get('type'), id: row.get('id') })\n }\n\n const handleActivate = row => {\n onActivate({ type: row.get('type'), id: row.get('id') })\n }\n\n const handleEdit = row => {\n if (row.get('type') === 'score') {\n onScoreQueryDialogOpen(row)\n }\n\n if (row.get('type') === 'search') {\n onSearchQueryDialogOpen(row)\n }\n }\n\n function renderActionButtons(row) {\n const activated = !row.get('deactivatedAt')\n\n return (\n
\n toggleConfirmationDialog(row)}\n size=\"large\"\n >\n \n \n handleEdit(row)}\n size=\"large\"\n >\n \n \n (activated ? handleDeactivate(row) : handleActivate(row))}\n color=\"primary\"\n />\n
\n )\n }\n\n const formatDomains = query => query.get('domains')\n .reduce((acc, obj) => {\n const domainType = obj.get('type')\n\n return {\n ...acc, [domainType]: (acc[domainType] || []).concat(obj.get('domain'))\n }\n }, {})\n\n const stringifyDomains = domains => Object.entries(domains).map(([key, value], index) => (\n
\n
\n {key === 'web' && `Web domains: ${value.join(', ')}`}\n
\n
\n {key === 'email' && `Email domains: ${value.join(', ')}`}\n
\n
\n ))\n\n const cellClass = el => (el.get('deactivatedAt') ? classes.deactivatedColumn : classes.activatedColumn)\n const rowTypeClass = el => {\n if (el.get('deactivatedAt')) {\n return classes.deactivatedRow\n }\n\n return el.get('type') === 'score' ? classes.scoreRow : classes.searchRow\n }\n\n return (\n <>\n
\n \n {requestRunning && (\n
\n
\n \n
\n
\n )}\n \n \n \n {i18n.get('name')}\n {i18n.get('type')}\n {i18n.get('search_phrase')}\n {i18n.get('requests')}\n \n {i18n.get('interval')}\n \n {i18n.get('last_run')}\n \n {i18n.get('next_run')}\n \n \n \n \n \n {queries.map((el, index) => (\n \n \n {el.get('name')}\n \n \n {el.get('type') === 'search' ? i18n.get('exposure') : i18n.get('risk_assessment')}\n \n \n {el.get('query') || stringifyDomains(formatDomains(el))}\n \n \n {el.get('successfulRunsCount')}\n \n \n {capitalize(i18n.get(mapIntervals(el.get('crawlingInterval'))))}\n \n \n {el.get('lastCrawledAt') ? moment(el.get('lastCrawledAt')).calendar() : 'N/A'}\n \n \n {\n el.get('lastCrawledAt')\n ? moment(el.get('lastCrawledAt'))\n .add(el.get('crawlingInterval'), 'minutes')\n .calendar()\n : 'N/A'\n }\n \n \n \n {renderActionButtons(el)}\n \n \n ))}\n \n \n \n
\n\n toggleConfirmationDialog()}\n onConfirm={handleDelete}\n />\n \n )\n}\n\nQueriesTable.propTypes = {\n queries: PropTypes.instanceOf(List).isRequired,\n requestRunning: PropTypes.bool.isRequired,\n\n onScoreQueryDialogOpen: PropTypes.func.isRequired,\n onSearchQueryDialogOpen: PropTypes.func.isRequired,\n onDelete: PropTypes.func.isRequired,\n onDeactivate: PropTypes.func.isRequired,\n onActivate: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport QueriesTable from 'components/darknet/query_manager/queries_table'\n\nimport {\n openScoreQueryDialog as onScoreQueryDialogOpen,\n openSearchQueryDialog as onSearchQueryDialogOpen,\n deleteQueryRequestStart,\n deactivateQueryRequestStart,\n activateQueryRequestStart\n} from 'actions/darknet'\n\nimport {\n getDarknetQueries,\n getDarknetRequestRunning\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n requestRunning: getDarknetRequestRunning(state),\n queries: getDarknetQueries(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onScoreQueryDialogOpen,\n onSearchQueryDialogOpen,\n onDelete: deleteQueryRequestStart,\n onDeactivate: deactivateQueryRequestStart,\n onActivate: activateQueryRequestStart\n }\n)(QueriesTable)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport {\n Dialog,\n DialogTitle,\n DialogContent,\n DialogActions,\n TextField,\n Chip,\n InputAdornment,\n InputLabel,\n OutlinedInput,\n FormControl,\n FormHelperText\n} from '@mui/material'\nimport { grey } from '@mui/material/colors'\n\nimport { Map, List } from 'immutable'\n\nimport useI18n from 'hooks/useI18n'\nimport { validDomain } from 'utils/darknet'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { Button, RaisedSecondaryButton } from 'containers/themed'\n\nconst MAIL_DOMAINS = 'emailDomains'\nconst WEB_DOMAINS = 'webDomains'\n\nconst useStyles = makeStyles()(theme => ({\n root: {\n display: 'flex',\n flexWrap: 'wrap'\n },\n margin: {\n marginTop: theme.spacing(3)\n },\n chip: {\n backgroundColor: theme.palette.background.default\n },\n chips: {\n marginTop: theme.spacing(1),\n '& > div': {\n marginRight: theme.spacing(1)\n }\n },\n dialogTitle: {\n borderBottomStyle: 'solid',\n borderBottomColor: grey[400],\n borderBottomWidth: '1px',\n marginBottom: '1em'\n },\n dialogContent: {\n paddingTop: '20px !important'\n }\n}))\n\nexport default function ScoreQueryDialog({ data, open, onClose, onSave, onUpdate, editing }) {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const [webDomainData, setWebDomainData] = useState('')\n const [emailDomainData, setEmailDomainData] = useState('')\n const [error, setError] = useState({ email: false, web: false })\n\n const fieldsAreEmpty = !data.get('name') || !data.get(WEB_DOMAINS).size || !data.get(MAIL_DOMAINS).size\n const disabled = error.email || error.web || fieldsAreEmpty\n const isValid = (value, context) => value !== '' && (!validDomain(value) || data.get(context).includes(value))\n\n const handleSubmit = () => {\n onSave()\n onClose()\n }\n\n const handleChange = e => {\n const { name, value } = e.target\n onUpdate({ [name]: value })\n }\n\n const handleWebDelete = chipToDelete => () => {\n onUpdate({ webDomains: data.get(WEB_DOMAINS).filter(domain => domain !== chipToDelete.label) })\n }\n\n const handleEmailDelete = chipToDelete => () => {\n onUpdate({ emailDomains: data.get(MAIL_DOMAINS).filter(domain => domain !== chipToDelete.label) })\n }\n\n const handleDomainClick = () => {\n if (isValid(webDomainData, WEB_DOMAINS)) {\n setError({ ...error, web: true })\n\n return\n }\n\n setError({ ...error, web: false })\n onUpdate({ webDomains: List([...data.get(WEB_DOMAINS), webDomainData]) })\n setWebDomainData('')\n }\n\n const handleMailClick = () => {\n if (isValid(emailDomainData, MAIL_DOMAINS)) {\n setError({ ...error, email: true })\n\n return\n }\n\n setError({ ...error, email: false })\n onUpdate({ emailDomains: List([...data.get(MAIL_DOMAINS), emailDomainData]) })\n setEmailDomainData('')\n }\n\n const handleMail = e => {\n if (e.key === 'Enter') {\n handleMailClick()\n }\n }\n const handleDomain = e => {\n if (e.key === 'Enter') {\n handleDomainClick()\n }\n }\n\n const renderChips = (chipsData, deleteFun) => {\n const formattedChips = chipsData.map((chip, index) => ({\n label: chip,\n key: index\n }))\n\n return (\n
\n {formattedChips.map(d => (\n \n ))}\n
\n )\n }\n\n const renderForm = () => (\n
\n \n \n \n\n \n {i18n.get('web_domains')} *\n setWebDomainData(e.target.value)}\n value={webDomainData}\n error={error.web}\n endAdornment={(\n Add\n \n )}\n />\n {error.web && (\n \n {i18n.get('invalid_domain')}\n \n )}\n\n {renderChips(data.get(WEB_DOMAINS), handleWebDelete)}\n \n\n \n {i18n.get('email_domains')} *\n setEmailDomainData(e.target.value)}\n error={error.email}\n endAdornment={(\n Add\n \n )}\n />\n {error.email && (\n \n {i18n.get('invalid_domain')}\n \n )}\n {renderChips(data.get(MAIL_DOMAINS), handleEmailDelete)}\n \n
\n )\n\n return (\n \n \n {editing ? i18n.get('edit') : i18n.get('create_query')}\n \n \n {renderForm()}\n \n \n onClose()}\n >\n {i18n.get('close')}\n \n\n \n {i18n.get('save')}\n \n \n \n )\n}\n\nScoreQueryDialog.defaultProps = {\n editing: true\n}\n\nScoreQueryDialog.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired,\n editing: PropTypes.bool,\n open: PropTypes.bool.isRequired,\n\n onClose: PropTypes.func.isRequired,\n onUpdate: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ScoreQueryDialog from 'components/darknet/query_manager/score_query_dialog'\nimport { getDarknetScoreQueryFormData } from 'selectors'\n\nimport {\n saveScoreQueryRequestStart as onSave,\n updateScoreQueryFormData as onUpdate\n} from 'actions/darknet'\n\nconst mapStateToProps = state => ({\n data: getDarknetScoreQueryFormData(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSave,\n onUpdate\n }\n)(ScoreQueryDialog)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport { validDomain, validEmail } from 'utils/darknet'\nimport {\n Dialog,\n DialogTitle,\n DialogActions,\n DialogContent,\n Typography,\n Checkbox,\n Chip,\n Grid,\n FormControl,\n FormLabel,\n FormGroup,\n TextField,\n FormControlLabel,\n FormHelperText,\n OutlinedInput,\n InputAdornment,\n InputLabel\n} from '@mui/material'\nimport { grey } from '@mui/material/colors'\nimport PlayArrowIcon from '@mui/icons-material/PlayArrow'\n\nimport HackishnessSlider from 'components/darknet/search_form/hackishness_slider'\n\nimport { Networks } from 'static/constants'\n\nimport { Button, RaisedSecondaryButton, RaisedPrimaryButton } from 'containers/themed'\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()(theme => ({\n root: {\n display: 'flex',\n flexWrap: 'wrap'\n },\n margin: {\n marginBottom: theme.spacing(2)\n },\n fieldsetLabel: {\n fontSize: 'unset'\n },\n chips: {\n marginTop: theme.spacing(1),\n '& > div': {\n marginRight: theme.spacing(1)\n }\n },\n chip: {\n backgroundColor: theme.palette.background.default\n },\n networks: {\n backgroundColor: theme.palette.background.default,\n borderRadius: 10,\n padding: 25,\n marginRight: 15\n },\n hackishness: {\n backgroundColor: theme.palette.background.default,\n borderRadius: 10,\n padding: 25\n },\n network: {\n width: 150\n },\n dialogTitle: {\n borderBottomStyle: 'solid',\n borderBottomColor: grey[400],\n borderBottomWidth: '1px',\n marginBottom: '1em'\n }\n}))\n\nexport default function SearchQueryDialog({\n onClose,\n onSave,\n onUpdate,\n onTest,\n data,\n testRunning,\n testDisabled,\n testResult,\n open,\n editing\n}) {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const [emailData, setEmailData] = useState('')\n const [emailDomainData, setEmailDomainData] = useState('')\n const [error, setError] = useState({ email: false, emailDomain: false })\n\n const isValidEmail = (value, context) => value !== '' && (!validEmail(value) || data.get(context).includes(value))\n const isValidDomain = (value, context) => value !== '' && (!validDomain(value) || data.get(context).includes(value))\n\n const networks = Networks.filter(n => n.forDarkowlSearchQuery)\n\n const handleSubmit = () => {\n onSave()\n onClose()\n }\n\n const handleNetworkChange = e => {\n const { name, checked } = e.target\n const newNetworks = { ...data.get('networks'), [name]: checked }\n onUpdate({ networks: newNetworks })\n }\n\n const handleChange = e => {\n const { name, value } = e.target\n onUpdate({ [name]: value })\n }\n\n const handleEmailDelete = chipToDelete => () => {\n onUpdate({ emails: data.get('emails').filter(domain => domain !== chipToDelete.label) })\n }\n\n const handleEmailDomainDelete = chipToDelete => () => {\n onUpdate({ emailDomains: data.get('emailDomains').filter(domain => domain !== chipToDelete.label) })\n }\n\n const handleEmailClick = () => {\n if (isValidEmail(emailData, 'emails')) {\n setError({ ...error, email: true })\n\n return\n }\n\n setError({ ...error, email: false })\n onUpdate({ emails: [...data.get('emails'), emailData] })\n setEmailData('')\n }\n\n const handleDomainClick = () => {\n if (isValidDomain(emailDomainData, 'emailDomains')) {\n setError({ ...error, emailDomain: true })\n\n return\n }\n\n setError({ ...error, emailDomain: false })\n onUpdate({ emailDomains: [...data.get('emailDomains'), emailDomainData] })\n setEmailDomainData('')\n }\n\n const handleMailKeyDown = ({ key }) => (key === 'Enter' && handleEmailClick())\n\n const handleDomainKeyDown = ({ key }) => (key === 'Enter' && handleDomainClick())\n\n const renderChips = (chipsData, deleteFun) => {\n const formattedChips = chipsData.map((chip, index) => ({\n label: chip,\n key: index\n }))\n\n return (\n
\n {formattedChips.map(d => (\n \n ))}\n
\n )\n }\n\n const renderNetworks = () => {\n const renderedNetworks = networks.map((n, index) => (\n }\n label={n.name}\n labelPlacement=\"end\"\n onChange={handleNetworkChange}\n className={classes.network}\n />\n ))\n\n return (<>{renderedNetworks})\n }\n\n const renderForm = () => (\n <>\n \n \n \n\n \n \n \n\n \n {i18n.get('filters')}\n \n\n \n {i18n.get('emails')}\n setEmailData(e.target.value)}\n endAdornment={(\n Add\n \n )}\n />\n {error.email && (\n \n {i18n.get('invalid_mail_address')}\n \n )}\n {renderChips(data.get('emails'), handleEmailDelete)}\n \n\n \n {i18n.get('email_domains')}\n setEmailDomainData(e.target.value)}\n endAdornment={(\n Add\n \n )}\n />\n {error.emailDomain && (\n \n {i18n.get('invalid_domain')}\n \n )}\n {renderChips(data.get('emailDomains'), handleEmailDomainDelete)}\n \n\n \n \n \n {i18n.get('networks')}\n \n\n \n {renderNetworks()}\n \n \n \n\n \n \n {i18n.get('min_hackishness')}\n \n \n \n \n \n\n {!testRunning && testResult && (\n \n {testResult.get('message')}\n \n\n )}\n \n )\n\n const disabled = testDisabled || !data.get('searchQuery') || testRunning\n\n return (\n \n \n {editing ? i18n.get('edit') : i18n.get('create_query')}\n \n\n \n {renderForm()}\n \n\n \n onClose()}\n >\n {i18n.get('close')}\n \n\n }\n loading={testRunning}\n >\n {i18n.get('test')}\n \n\n \n {i18n.get('save')}\n \n \n \n )\n}\n\nSearchQueryDialog.defaultProps = {\n editing: true\n}\n\nSearchQueryDialog.propTypes = {\n onClose: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired,\n onUpdate: PropTypes.func.isRequired,\n onTest: PropTypes.func.isRequired,\n\n testRunning: PropTypes.bool.isRequired,\n testDisabled: PropTypes.bool.isRequired,\n testResult: PropTypes.instanceOf(Map),\n data: PropTypes.instanceOf(Map),\n\n open: PropTypes.bool.isRequired,\n editing: PropTypes.bool\n}\n","import { connect } from 'react-redux'\n\nimport SearchQueryDialog from 'components/darknet/query_manager/search_query_dialog'\n\nimport {\n getDarknetSearchQueryFormData,\n getDarknetTestSearchQueryRunning,\n getDarknetTestSearchQueryDisabled,\n getDarknetSearchQueryFormTestResult\n} from 'selectors'\n\nimport {\n saveSearchQueryRequestStart as onSave,\n updateSearchQueryFormData as onUpdate,\n testSearchQueryStart as onTest\n} from 'actions/darknet'\n\nconst mapStateToProps = state => ({\n data: getDarknetSearchQueryFormData(state),\n testRunning: getDarknetTestSearchQueryRunning(state),\n testDisabled: getDarknetTestSearchQueryDisabled(state),\n testResult: getDarknetSearchQueryFormTestResult(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSave,\n onUpdate,\n onTest\n }\n)(SearchQueryDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport {\n Dialog,\n DialogContent,\n DialogTitle,\n DialogActions,\n Card,\n CardContent,\n CardActions,\n Typography,\n Grid\n} from '@mui/material'\nimport { grey } from '@mui/material/colors'\nimport { makeStyles } from 'tss-react/mui'\nimport AddIcon from '@mui/icons-material/Add'\nimport { Button } from 'containers/themed'\n\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()(theme => ({\n dialogTitle: {\n borderBottomStyle: 'solid',\n borderBottomColor: grey[400],\n borderBottomWidth: '1px',\n marginBottom: '1em'\n },\n dialogCard: {\n backgroundColor: theme.palette.background.default,\n maxWidth: '300px'\n },\n cardContent: {\n minHeight: '150px'\n }\n}))\n\nexport default function TypeDialog({ open, onClose, onSearchClick, onScoreClick }) {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n return (\n \n \n {i18n.get('new_search')}\n \n\n \n \n \n \n \n \n {i18n.get('see_exposure')}\n \n\n \n {i18n.get('search_query_card_description')}\n \n \n \n }\n onClick={onSearchClick}\n style={{ color: '#3498A4' }}\n >\n {i18n.get('create_query')}\n \n \n \n \n \n \n \n \n {i18n.get('risk_assessment')}\n \n\n \n {i18n.get('score_query_card_description')}\n \n \n \n }\n onClick={onScoreClick}\n >\n {i18n.get('create_query')}\n \n\n \n \n \n \n\n \n\n \n \n {i18n.get('close')}\n \n \n \n )\n}\n\nTypeDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n onScoreClick: PropTypes.func.isRequired,\n onSearchClick: PropTypes.func.isRequired\n}\n","import React, { useState } from 'react'\nimport { PropTypes } from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport AddIcon from '@mui/icons-material/Add'\n\nimport AppBar from 'containers/AppBar'\nimport QueriesTable from 'containers/darknet/QueriesTable'\nimport { Button } from 'containers/themed'\nimport ScoreQueryDialog from 'containers/darknet/ScoreQueryDialog'\nimport SearchQueryDialog from 'containers/darknet/SearchQueryDialog'\n\nimport TransitionComponent from 'components/transition_component'\n\nimport TypeDialog from './type_dialog'\n\nconst useStyles = makeStyles()(theme => ({\n button: {\n marginLeft: theme.spacing(2),\n marginTop: theme.spacing(2)\n }\n}))\n\nexport default function QueryManager({\n scoreQueryDialogOpen,\n searchQueryDialogOpen,\n testRunning,\n onScoreDialogClose,\n onSearchDialogClose,\n onScoreDialogOpen,\n onSearchDialogOpen\n}) {\n const i18n = useI18n()\n const { classes } = useStyles()\n const [typeDialogOpen, setTypeDialogOpen] = useState(false)\n const [editing, setEditing] = useState(true)\n const handleCreateClick = () => {\n setEditing(false)\n setTypeDialogOpen(true)\n }\n\n const handleTypeDialogClose = () => {\n setEditing(true)\n setTypeDialogOpen(false)\n }\n\n const handleOpenScoreQueryDialog = () => {\n setTypeDialogOpen(false)\n onScoreDialogOpen()\n }\n\n const handleOpenSearchQueryDialog = () => {\n setTypeDialogOpen(false)\n onSearchDialogOpen()\n }\n\n const handleScoreDialogClose = () => {\n setEditing(true)\n onScoreDialogClose()\n }\n\n const handleSearchDialogClose = () => {\n if (testRunning) {\n return\n }\n\n setEditing(true)\n onSearchDialogClose()\n }\n\n return (\n <>\n \n \n \n\n \n\n }\n onClick={handleCreateClick}\n >\n {i18n.get('new')}\n \n\n \n\n \n\n \n \n )\n}\n\nQueryManager.propTypes = {\n scoreQueryDialogOpen: PropTypes.bool.isRequired,\n searchQueryDialogOpen: PropTypes.bool.isRequired,\n testRunning: PropTypes.bool.isRequired,\n\n onScoreDialogClose: PropTypes.func.isRequired,\n onSearchDialogClose: PropTypes.func.isRequired,\n onScoreDialogOpen: PropTypes.func.isRequired,\n onSearchDialogOpen: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport QueryManager from 'components/darknet/query_manager'\n\nimport {\n getScoreQueryDialogOpen,\n getSearchQueryDialogOpen,\n getDarknetTestSearchQueryRunning,\n getUserLocale\n} from 'selectors'\nimport {\n closeScoreQueryDialog as onScoreDialogClose,\n openScoreQueryDialog as onScoreDialogOpen,\n closeSearchQueryDialog as onSearchDialogClose,\n openSearchQueryDialog as onSearchDialogOpen\n} from 'actions/darknet'\n\nconst mapStateToProps = state => ({\n scoreQueryDialogOpen: getScoreQueryDialogOpen(state),\n searchQueryDialogOpen: getSearchQueryDialogOpen(state),\n testRunning: getDarknetTestSearchQueryRunning(state),\n userLocale: getUserLocale(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onScoreDialogClose,\n onSearchDialogClose,\n onScoreDialogOpen,\n onSearchDialogOpen\n }\n)(QueryManager)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport Chart from 'containers/charts/Chart'\nimport { makeStyles } from 'tss-react/mui'\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()(() => ({\n chart: {\n height: 250,\n width: '100%'\n }\n}))\n\nexport default function ChartExport({ chart, colors }) {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const layout = chart.get('layout', Map()).toJS()\n const chartOpts = chart.get('opts', Map()).toJS()\n const data = chart.get('data')\n const chartWithTranslations = chart.update('label', label => `${i18n.get(label)}`)\n\n return (\n \n \n \n )\n}\n\nChartExport.propTypes = {\n chart: PropTypes.instanceOf(Map),\n colors: PropTypes.instanceOf(Map)\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport Chart from 'components/darknet/charts/chart_export'\nimport { List, Map } from 'immutable'\n\nexport default function ScoreResultTimelineChart({ charts, colors }) {\n return (\n charts.map((chart, index) => (\n \n ))\n )\n}\n\nScoreResultTimelineChart.propTypes = {\n charts: PropTypes.instanceOf(List),\n colors: PropTypes.instanceOf(Map)\n}\n","import { connect } from 'react-redux'\n\nimport ScoreResultTimelineChart from 'components/darknet/external_charts/score_result_timeline_chart'\n\nimport { getThemes, getDarknetCharts } from 'selectors'\nimport { DarknetCharts, getChartsById } from 'utils/darknet'\n\nconst getDefaultPlotlightsColors = themes => {\n const plotlights = themes.find(t => t.get('theme') === 'plotlights').getIn(['colors', 'dark'])\n\n return plotlights\n}\n\nconst mapStateToProps = state => ({\n charts: getChartsById(getDarknetCharts(state), DarknetCharts.EXTERNAL_SCORE_CHART),\n colors: getDefaultPlotlightsColors(getThemes(state))\n})\n\nexport default connect(mapStateToProps, {})(ScoreResultTimelineChart)\n","import React, { useEffect } from 'react'\nimport { PropTypes } from 'prop-types'\n\nimport ScoreResultTimelineChart from 'containers/darknet/external_charts/ScoreResultTimelineChart'\n\nexport default function ExternalChart({ onMount }) {\n useEffect(() => {\n onMount(true)\n }, [])\n\n return (\n \n )\n}\n\nExternalChart.propTypes = {\n onMount: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ExternalChart from 'components/darknet/external_charts/external_chart'\n\nimport { scoresRequestStart as onMount } from 'actions/darknet'\n\nexport default connect(null, {\n onMount\n})(ExternalChart)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Backdrop } from '@mui/material'\n\nimport NrxProgressBar from 'components/nrx_progress_bar/NrxProgressBar'\n\nconst useStyles = makeStyles()({\n backdrop: {\n zIndex: 10\n }\n})\n\nexport default function NrxProgressBackdrop({ open }) {\n const { classes } = useStyles()\n\n return (\n \n \n \n )\n}\n\nNrxProgressBackdrop.propTypes = {\n open: PropTypes.bool.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport SearchBar from 'components/search_bar'\nimport { uiEnteredQuery } from 'actions/content_desk'\nimport { showAppMessage } from 'actions/app'\n\nimport {\n getI18n,\n getColors,\n getCDesksearchBarLabel,\n getCDeskSearchCampaignsRunning,\n getCDeskSearchContentsRunning,\n getWhitelabelTheme\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n colors: getColors(state),\n whitelabelTheme: getWhitelabelTheme(state),\n label: getCDesksearchBarLabel(state),\n loading: getCDeskSearchCampaignsRunning(state) || getCDeskSearchContentsRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSubmit: uiEnteredQuery,\n onError: showAppMessage\n }\n)(SearchBar)\n","import { connect } from 'react-redux'\n\nimport QueryTypeDropdown from 'components/query_type_dropdown'\nimport { setSelectedQueryType } from 'actions/content_desk'\nimport { getCDeskSelectedQueryType, getI18n } from 'selectors'\n\nconst mapStateToProps = state => ({\n value: getCDeskSelectedQueryType(state),\n i18n: getI18n(state),\n moduleName: 'contentDesk'\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: setSelectedQueryType\n }\n)(QueryTypeDropdown)\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\nimport { IconButton } from 'containers/themed'\nimport CalendarMonthIcon from '@mui/icons-material/CalendarMonth'\n\nimport { StaggeredList, StaggeredListItem } from 'components/staggered_list'\n\nimport NotificationsButton from 'containers/notifications/NotificationsButton'\n\nconst useStyles = makeStyles()({\n actionsWrapper: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center'\n },\n actionIcon: {\n color: '#ffffff'\n }\n})\n\nconst Actions = ({ openCalendarDialog, isSubmodule }) => {\n const i18n = useI18n()\n const device = useDevice()\n const { classes } = useStyles()\n const actions = []\n\n if (!device.get('mobile')) {\n if (isSubmodule) {\n actions.push(\n openCalendarDialog()}\n >\n \n \n )\n }\n }\n\n actions.push(\n \n )\n\n return (\n \n
\n {actions.map((action, index) => (\n \n {action}\n \n ))}\n
\n
\n )\n}\n\nActions.propTypes = {\n isSubmodule: PropTypes.bool.isRequired,\n\n openCalendarDialog: PropTypes.func.isRequired\n}\n\nexport default Actions\n","import { connect } from 'react-redux'\n\nimport { openCalendarDialog } from 'actions/content_desk'\n\nimport { isContentDeskContentsAndCampaigns } from 'selectors'\n\nimport Actions from 'components/content_desk_new/actions/Actions'\n\nconst mapStateToProps = state => ({\n isSubmodule: isContentDeskContentsAndCampaigns(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n openCalendarDialog\n }\n)(Actions)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\nimport ThemedAppBar from 'containers/AppBar'\n\n/* Caution: these components are still in the old directory */\nimport SearchBar from 'containers/content_desk/SearchBar'\nimport QueryTypeDropdown from 'containers/content_desk/QueryTypeDropdown'\n\nimport Actions from 'containers/content_desk_new/Actions'\nimport TransitionComponent from 'components/transition_component'\n\nconst useStyles = makeStyles()(theme => ({\n searchBar: {\n transition: 'width 150ms',\n width: '25%',\n [theme.breakpoints.only('md')]: {\n marginLeft: '1em',\n width: '25%'\n },\n [theme.breakpoints.down('md')]: {\n width: '45%',\n marginLeft: '1em'\n },\n [theme.breakpoints.only('xs')]: {\n marginLeft: '1em'\n }\n }\n}))\n\nconst AppBar = ({ hasDomain }) => {\n const { classes } = useStyles()\n const [barStyle, setBarStyle] = useState(null)\n const i18n = useI18n()\n const device = useDevice()\n\n const handleFocus = () => {\n let width = '100%'\n\n if (device.get('gt-md')) {\n width = '50%'\n }\n\n if (device.get('md')) {\n width = '40%'\n }\n\n setBarStyle({ width })\n }\n\n const handleBlur = () => {\n setTimeout(() => setBarStyle(null), 500)\n }\n\n const title = device.get('gt-md') ? {i18n.get('content_management')} : undefined\n\n return (\n
\n \n : null}\n >\n {hasDomain && (\n \n }\n />\n
\n )}\n \n \n \n )\n}\n\nAppBar.propTypes = {\n hasDomain: PropTypes.bool.isRequired\n}\n\nexport default AppBar\n","import { connect } from 'react-redux'\n\nimport AppBar from 'components/content_desk_new/app_bar/AppBar'\n\nimport { getCDeskConfig } from 'selectors'\n\nconst mapStateToProps = state => ({\n hasDomain: !!getCDeskConfig(state).get('domain') || false\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(AppBar)\n","import { connect } from 'react-redux'\nimport { List } from 'immutable'\n\nimport ActiveFilterList from 'components/active_filter_list'\nimport {\n getCDeskActiveFilters, getCDeskActiveFiltersCollapsed\n} from 'selectors'\nimport { toggleActiveFilters } from 'actions/content_desk'\n\nconst mapStateToProps = state => ({\n activeFilters: getCDeskActiveFilters(state),\n activeBooleanFilters: List(),\n filterCount: getCDeskActiveFilters(state).size,\n collapsed: getCDeskActiveFiltersCollapsed(state),\n activeFilterType: 'contentDesk'\n})\n\nexport default connect(\n mapStateToProps,\n {\n onCollapseClick: toggleActiveFilters\n }\n)(ActiveFilterList)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\n\nimport {\n Tooltip\n} from '@mui/material'\n\nimport useI18n from 'hooks/useI18n'\nimport { shorten } from 'utils/string'\n\nconst CampaignName = ({\n campaign,\n maxLength\n}) => {\n const i18n = useI18n()\n\n let campaignName = campaign.get('name') || ''\n\n if (campaignName.toLowerCase() === 'no campaign') {\n campaignName = i18n.get('no_campaign')\n }\n\n return (\n \n \n {shorten(campaignName, maxLength)}\n \n \n )\n}\n\nCampaignName.propTypes = {\n campaign: PropTypes.instanceOf(Map).isRequired,\n maxLength: PropTypes.number.isRequired\n}\n\nexport default CampaignName\n","import { connect } from 'react-redux'\n\nimport CampaignName from 'components/content_desk_new/campaigns/campaign/campaign_name'\n\nconst mapStateToProps = (_state, ownProps) => ({\n campaign: ownProps.campaign,\n maxLength: ownProps.maxLength\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(CampaignName)\n\n","import React, { useEffect, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport moment from 'moment-timezone'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Box,\n Chip,\n MenuItem\n} from '@mui/material'\n\nimport useI18n from 'hooks/useI18n'\n\nimport ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown'\n\nimport { blue, blueGrey } from '@mui/material/colors'\n\nimport { Menu } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n statusWrapper: {\n display: 'flex',\n alignItems: 'center',\n color: !theme.isDark && '#404040'\n },\n chipLabel: {\n display: 'flex',\n alignItems: 'center',\n [theme.breakpoints.only('xs')]: {\n fontSize: 12\n }\n },\n active: {\n background: blue[500],\n color: 'white'\n },\n inactive: {\n background: blueGrey[500],\n color: 'white'\n }\n}))\n\nconst CampaignStatus = ({\n campaign,\n requestRunning,\n onChange\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n const [isStatusDisabled, setIsStatusDisabled] = useState(false)\n const campaignActive = campaign.get('active') && !campaign.get('defaultAssigned')\n\n useEffect(() => {\n const endDate = campaign.get('endDate')\n\n if ((endDate && moment(endDate).isBefore(moment())) || campaign.get('defaultAssigned')) {\n setIsStatusDisabled(true)\n } else {\n setIsStatusDisabled(false)\n }\n }, [campaign])\n\n const handleStatusChange = status => onChange({\n ...campaign.toJS(),\n active: status\n })\n\n let label\n\n if (campaignActive) {\n label = (\n
\n {i18n.get('active')}\n \n
\n )\n } else {\n label = (\n
\n {i18n.get('closed')}\n \n
\n )\n }\n\n const renderStatusChip = () => (\n
\n \n )}\n >\n handleStatusChange(true)}\n >\n {i18n.get('active')}\n \n handleStatusChange(false)}\n >\n {i18n.get('closed')}\n \n \n
\n )\n\n return (\n \n {renderStatusChip()}\n \n )\n}\n\nCampaignStatus.propTypes = {\n campaign: PropTypes.instanceOf(Map).isRequired,\n requestRunning: PropTypes.bool.isRequired,\n\n onChange: PropTypes.func.isRequired\n}\n\nexport default CampaignStatus\n","import { connect } from 'react-redux'\n\nimport {\n saveCampaignFormlessStart\n} from 'actions/content_desk'\n\nimport {\n getCDeskCalendarLoadingCampaignIds\n} from 'selectors'\n\nimport CampaignStatus from 'components/content_desk_new/campaigns/campaign/campaign_status'\n\nconst mapStateToProps = (state, ownProps) => ({\n campaign: ownProps.campaign,\n requestRunning: !!getCDeskCalendarLoadingCampaignIds(state).get(ownProps.campaign.get('id'))\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: saveCampaignFormlessStart\n }\n)(CampaignStatus)\n\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport moment from 'moment-timezone'\n\nimport {\n Box,\n LinearProgress,\n Typography\n} from '@mui/material'\n\nconst useStyles = makeStyles()({\n duration: {\n fontSize: '0.7rem'\n },\n progress: {\n alignItems: 'center',\n display: 'flex',\n minWidth: 100\n },\n progressBar: {\n width: '100%',\n marginRight: 4\n }\n})\n\nconst CampaignProgress = ({\n campaign\n}) => {\n const { classes } = useStyles()\n const campaignStart = campaign.get('startDate') ? moment(campaign.get('startDate')).format('L') : '-'\n const campaignEnd = campaign.get('endDate') ? moment(campaign.get('endDate')).format('L') : '-'\n const value = campaign.get('progress')\n\n return (\n <>\n \n {`${campaignStart} - ${campaignEnd}`}\n \n \n \n \n \n \n {`${Math.round(\n value\n )}%`}\n \n \n \n \n )\n}\n\nCampaignProgress.propTypes = {\n campaign: PropTypes.instanceOf(Map).isRequired\n}\n\nexport default CampaignProgress\n","import { connect } from 'react-redux'\n\nimport CampaignProgress from 'components/content_desk_new/campaigns/campaign/campaign_progress'\n\nconst mapStateToProps = (_state, ownProps) => ({\n campaign: ownProps.campaign\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(CampaignProgress)\n\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport useDevice from 'hooks/useDevice'\n\nimport {\n Chip,\n TableCell,\n TableRow\n} from '@mui/material'\n\nimport { blue, blueGrey } from '@mui/material/colors'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport CampaignName from 'containers/content_desk_new/campaigns/campaign/CampaignName'\nimport CampaignStatus from 'containers/content_desk_new/campaigns/campaign/CampaignStatus'\nimport CampaignProgress from 'containers/content_desk_new/campaigns/campaign/CampaignProgress'\n\nconst useStyles = makeStyles()(theme => ({\n chipUnselected: {\n '&:hover': {\n color: theme.palette.secondary.main,\n borderColor: theme.palette.secondary.main\n }\n },\n chipSelected: {\n '&:hover': {\n backgroundColor: theme.palette.secondary.main\n }\n },\n active: {\n borderLeft: '5px solid',\n borderColor: blue[500]\n },\n inactive: {\n borderLeft: '5px solid',\n borderColor: blueGrey[500]\n }\n}))\n\nconst ShortCampaign = ({\n campaign,\n selectedCampaignId,\n onContentsClick\n}) => {\n const { classes } = useStyles()\n const campaignSelected = selectedCampaignId === campaign.get('id')\n const campaignActive = campaign.get('active') && !campaign.get('defaultAssigned')\n\n let maxLength = 16\n\n const device = useDevice()\n\n if (device.get('xl')) {\n maxLength = 32\n } else if (device.get('lg')) {\n maxLength = 24\n }\n\n return (\n \n \n \n \n \n \n \n \n onContentsClick(campaignSelected ? null : campaign.get('id'))}\n />\n \n \n \n \n \n )\n}\n\nShortCampaign.propTypes = {\n campaign: PropTypes.instanceOf(Map).isRequired,\n selectedCampaignId: PropTypes.number,\n\n onContentsClick: PropTypes.func.isRequired\n}\n\nexport default ShortCampaign\n","import { connect } from 'react-redux'\n\nimport {\n setCalendarSelectedCampaignId\n} from 'actions/content_desk'\n\nimport {\n getCDeskCalendarSelectedCampaignId,\n getCDeskCalendarLoadingCampaignIds\n} from 'selectors'\n\nimport ShortCampaign from 'components/content_desk_new/campaigns/short_campaigns/short_campaign'\n\nconst mapStateToProps = (state, ownProps) => ({\n selectedCampaignId: getCDeskCalendarSelectedCampaignId(state),\n requestRunning: !!getCDeskCalendarLoadingCampaignIds(state).get(ownProps.campaign.get('id'))\n})\n\nexport default connect(\n mapStateToProps,\n {\n onContentsClick: setCalendarSelectedCampaignId\n }\n)(ShortCampaign)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map, List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Table,\n TableHead,\n TableCell,\n TableRow,\n TableBody\n} from '@mui/material'\n\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward'\nimport ArrowDownwardIcon from '@mui/icons-material/ArrowDownward'\nimport SwapVertIcon from '@mui/icons-material/SwapVert'\n\nimport ShortCampaign from 'containers/content_desk_new/campaigns/short_campaigns/ShortCampaign'\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n sortIconActive: {\n fontSize: '0.6rem !important'\n },\n sortIconInActive: {\n fontSize: '0.6rem !important',\n opacity: 0.5\n }\n})\n\nconst ShortCampaigns = ({\n campaigns,\n campaignsSorting,\n sortCampaigns\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n if (campaigns.isEmpty()) {\n return null\n }\n\n const renderSortIcon = field => {\n const sorting = campaignsSorting\n const sortFunc = sortCampaigns\n let title = i18n.get('sort')\n let icon = \n let iconClass = classes.sortIconInActive\n\n if (field === sorting.get('field')) {\n if (sorting.get('order') === 'asc') {\n iconClass = classes.sortIconActive\n icon = \n title = i18n.get('ascending')\n }\n\n if (sorting.get('order') === 'desc') {\n iconClass = classes.sortIconActive\n icon = \n title = i18n.get('descending')\n }\n\n return (\n sortFunc({\n field,\n order: (sorting.get('order') === 'asc') ? 'desc' : 'asc'\n })}\n />\n )\n }\n\n return (\n sortFunc({\n field,\n order: (field === 'name') ? 'asc' : 'desc'\n })}\n />\n )\n }\n\n return (\n \n \n \n {i18n.get('name')} {renderSortIcon('name')}\n {i18n.get('duration')} {renderSortIcon('startDate')}\n {i18n.get('contents')}\n {i18n.get('status')}\n \n \n \n {campaigns\n .map((el, index) => (\n \n ))}\n \n
\n )\n}\n\nShortCampaigns.propTypes = {\n campaigns: PropTypes.instanceOf(List).isRequired,\n campaignsSorting: PropTypes.instanceOf(Map).isRequired,\n\n sortCampaigns: PropTypes.func.isRequired\n}\n\nexport default ShortCampaigns\n","import { connect } from 'react-redux'\n\nimport {\n getCDeskSelectedCalendarEvents,\n getCDeskCalendarCampaignsSorting\n} from 'selectors'\n\nimport {\n sortCampaigns\n} from 'actions/content_desk'\n\nimport ShortCampaigns from 'components/content_desk_new/campaigns/short_campaigns/'\n\nconst mapStateToProps = state => {\n const events = getCDeskSelectedCalendarEvents(state)\n\n return {\n campaigns: events.get('campaigns'),\n campaignsSorting: getCDeskCalendarCampaignsSorting(state)\n }\n}\n\nexport default connect(\n mapStateToProps,\n {\n sortCampaigns\n }\n)(ShortCampaigns)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Tooltip\n} from '@mui/material'\nimport { green, purple, grey, orange } from '@mui/material/colors'\nimport MailIcon from '@mui/icons-material/MailOutline'\nimport LinkedInIcon from '@mui/icons-material/LinkedIn'\nimport FacebookIcon from '@mui/icons-material/Facebook'\n\nimport useI18n from 'hooks/useI18n'\nimport { shorten } from 'utils/string'\n\nconst useStyles = makeStyles()(() => ({\n icon: {\n fontSize: 20,\n margin: '-2px'\n },\n draft: {\n borderLeft: '5px solid',\n borderColor: grey[500]\n },\n reviewPending: {\n borderLeft: '5px solid',\n borderColor: purple[500]\n },\n revisionsNeeded: {\n borderLeft: '5px solid',\n borderColor: orange[500]\n },\n approved: {\n borderLeft: '5px solid',\n borderColor: green[500]\n }\n}))\n\nconst ContentTitle = ({\n content,\n maxLength\n}) => {\n const { classes } = useStyles()\n const type = content.get('type')\n const i18n = useI18n()\n const contentType = content.get('type').toLowerCase()\n const isOtsContent = contentType === 'ots_press_release'\n const otsPressRelease = content.get('otsPressRelease')\n\n let title = content.get('title')\n\n if (isOtsContent && otsPressRelease) {\n if (otsPressRelease.get('title') && otsPressRelease.get('title') !== '') {\n title = otsPressRelease.get('title')\n }\n }\n\n return (\n
\n
\n {type === 'email' && (\n \n )}\n {type === 'linkedin' && (\n \n )}\n {type === 'facebook' && (\n \n )}\n {type === 'ots_press_release' && (\n \n \n \n )}\n
\n \n \n {shorten(title, maxLength)}\n \n \n
\n )\n}\n\nContentTitle.propTypes = {\n content: PropTypes.instanceOf(Map).isRequired,\n maxLength: PropTypes.number.isRequired\n}\n\nexport default ContentTitle\n","import { connect } from 'react-redux'\n\nimport ContentTitle from 'components/content_desk_new/contents/content/content_title'\n\nconst mapStateToProps = (_state, ownProps) => ({\n content: ownProps.content,\n maxLength: ownProps.maxLength\n})\n\nexport default connect(\n mapStateToProps,\n {}\n)(ContentTitle)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport moment from 'moment-timezone'\nimport { Map as ImmutableMap } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Box,\n Tooltip,\n Typography\n} from '@mui/material'\n\nimport AccessTimeIcon from '@mui/icons-material/AccessTime'\nimport CheckCircleIcon from '@mui/icons-material/CheckCircle'\nimport CancelIcon from '@mui/icons-material/Cancel'\nimport TimerOutlinedIcon from '@mui/icons-material/TimerOutlined'\nimport RemoveOutlinedIcon from '@mui/icons-material/RemoveOutlined'\n\nimport { red, green, grey, blue, pink } from '@mui/material/colors'\n\nconst useStyles = makeStyles()(theme => ({\n contentActions: {\n display: 'flex',\n justifyContent: 'center'\n },\n moreActionsButton: {\n paddingLeft: '10px',\n paddingRight: '10px'\n },\n select: {\n borderRadius: 25,\n fontSize: '0.70rem',\n color: 'white',\n '& .MuiSelect-icon': {\n color: 'white'\n }\n },\n statusWrapper: {\n display: 'flex',\n alignItems: 'center',\n gap: '5px',\n color: !theme.isDark && grey[800]\n },\n status: {\n marginLeft: '0.2em'\n },\n deleted: {\n color: red[500]\n }\n}))\n\nconst renderStatusIcon = status => {\n switch (status) {\n case 'failed':\n return \n case 'released':\n return \n case 'scheduled':\n return \n case 'planned':\n return \n default:\n return \n }\n}\n\nfunction ColumnFooter({ text, fontColor }) {\n return (\n \n !theme.isDark && '#757575') }}\n >\n {text}\n \n \n )\n}\n\nexport default function ContentStatus({\n content,\n mode\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const status = content.get('status')\n const plannedForDate = content.get('plannedFor')\n const isPlannedForBeforeNow = moment(plannedForDate).isBefore(moment())\n\n const getStatusDate = () => {\n if (status === 'released') {\n return moment(content.get('releasedAt')).format('lll')\n }\n\n if (status === 'scheduled') {\n return moment(content.get('scheduledFor')).format('lll')\n }\n\n if (status === 'planned') {\n return moment(content.get('plannedFor')).format('lll')\n }\n\n return null\n }\n\n const renderStatus = () => {\n if (mode === 'short') {\n return (\n \n \n {renderStatusIcon(status)}\n
{i18n.get(status)}
\n {content.get('deletedExternally') && (\n
 | {i18n.get('deleted')}
\n )}\n
\n \n )\n }\n\n return (\n \n
\n
{i18n.get(status)}
\n {content.get('deletedExternally') && (\n
 | {i18n.get('deleted')}
\n )}\n
\n\n
\n {renderStatusIcon(status)}\n {status === 'scheduled' && (\n \n )}\n {status === 'released' && (\n \n )}\n {status === 'planned' && (\n \n )}\n
\n
\n )\n }\n\n return (\n \n {renderStatus()}\n \n )\n}\n\nContentStatus.defaultProps = {\n mode: 'full'\n}\n\nContentStatus.propTypes = {\n content: PropTypes.instanceOf(ImmutableMap).isRequired,\n mode: PropTypes.string\n}\n\nColumnFooter.propTypes = {\n text: PropTypes.string,\n fontColor: PropTypes.string\n}\n\n","import { connect } from 'react-redux'\n\nimport ContentStatus from 'components/content_desk_new/contents/content/content_status'\n\nconst mapStateToProps = (_state, ownProps) => ({\n content: ownProps.content,\n mode: ownProps.mode\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(ContentStatus)\n\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport moment from 'moment-timezone'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Typography,\n Box,\n Checkbox\n} from '@mui/material'\n\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { RaisedPrimaryButton, Button, IconButton } from 'containers/themed'\n\nimport WarningIcon from '@mui/icons-material/Warning'\nimport { red } from '@mui/material/colors'\n\nconst useStyles = makeStyles()(theme => ({\n dialogTitle: {\n paddingBottom: theme.spacing(2),\n color: theme.palette.grey[800]\n },\n closeButton: {\n position: 'absolute',\n right: 8,\n top: 8,\n color: !theme.isDark && theme.palette.grey[800]\n },\n dialogActions: {\n padding: '25px'\n },\n warningWrapper: {\n display: 'flex',\n alignItems: 'center',\n color: red[500],\n marginTop: '1em'\n },\n warning: {\n marginLeft: '0.3em'\n },\n otsInfo: {\n '& ul': {\n paddingLeft: '1em',\n listStyleType: 'disc'\n },\n '& li': {\n listStyleType: 'disc'\n }\n }\n}))\n\nconst PublishConfirmDialog = ({\n open,\n content,\n approvalStatus,\n onChange,\n onClose,\n onSave,\n createOtsDraft,\n closeEditContentDialog\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const [approveOnPublish, setApproveOnPublish] = useState(true)\n const notApproved = ['draft', 'review_pending', 'revisions_needed'].includes(approvalStatus)\n const isMailContent = content.get('type') === 'email' || content.getIn(['type', 'id']) === 'email'\n const isOtsContent = content.get('type') === 'ots_press_release' || content.getIn(['type', 'id']) === 'ots_press_release'\n\n const handlePublish = () => {\n const currentDateAndTime = moment.utc().local()\n\n if (onChange) {\n onChange({ key: 'scheduledFor', value: currentDateAndTime })\n\n if (approveOnPublish) {\n onChange({ key: 'approvalStatus', value: 'approved' })\n }\n }\n\n if (onSave) {\n onSave({ closeEditContentDialog: true })\n }\n\n onClose()\n }\n\n const handleCreateOtsDraft = () => {\n createOtsDraft({ id: content.get('id') })\n onClose()\n closeEditContentDialog()\n }\n\n const renderWarning = () => (\n
\n \n {i18n.get('content_not_approved')}\n
\n )\n\n const renderSetAsApproved = () => (\n <>\n
\n setApproveOnPublish(e.target.checked)}\n />\n {i18n.get('set_content_as_approved')}\n \n )\n\n return (\n \n \n {isMailContent && i18n.get('please_confirm')}\n {isOtsContent && i18n.get('please_confirm_ots')}\n \n \n \n \n \n {isMailContent && i18n.get('publish_confirmation')}\n {isOtsContent && (\n \n )}\n {notApproved && renderWarning()}\n {notApproved && isMailContent && renderSetAsApproved()}\n \n \n {isMailContent && (\n <>\n \n \n {i18n.get('yes')}\n \n \n )}\n {isOtsContent && (\n <>\n \n \n {i18n.get('submit_draft')}\n \n \n )}\n \n \n )\n}\n\nPublishConfirmDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n content: PropTypes.instanceOf(Map).isRequired,\n approvalStatus: PropTypes.string,\n onClose: PropTypes.func.isRequired,\n createOtsDraft: PropTypes.func.isRequired,\n closeEditContentDialog: PropTypes.func.isRequired,\n\n onChange: PropTypes.func,\n onSave: PropTypes.func\n}\n\nexport default PublishConfirmDialog\n","import { connect } from 'react-redux'\n\nimport PublishConfirmDialog from 'components/content_desk_new/contents/publish_confirm_dialog'\n\nimport {\n createOtsDraftStart,\n closeEditContentDialog\n} from 'actions/content_desk'\n\nconst mapStateToProps = (_state, ownProps) => ({\n open: ownProps.open,\n content: ownProps.content,\n approvalStatus: ownProps.approvalStatus,\n onClose: ownProps.onClose,\n onChange: ownProps.onChange,\n onSave: ownProps.onSave\n})\n\nexport default connect(\n mapStateToProps,\n {\n createOtsDraft: createOtsDraftStart,\n closeEditContentDialog\n }\n)(PublishConfirmDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { MenuItem, ListItemIcon, ListItemText } from '@mui/material'\nimport DeleteOutlineIcon from '@mui/icons-material/DeleteOutline'\n\nconst useStyles = makeStyles()(() => ({\n actionIcon: {\n color: 'rgba(0, 0, 0, 0.54)',\n marginRight: 8\n }\n}))\n\nconst ContentDelete = ({\n deleteDisabled,\n deleteData,\n onOpen,\n setDeleteData,\n onClick\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const handleOpen = () => {\n onClick()\n setDeleteData(deleteData)\n onOpen()\n }\n\n return (\n \n \n \n \n \n {i18n.get('delete')}\n \n \n )\n}\n\nContentDelete.propTypes = {\n deleteDisabled: PropTypes.bool.isRequired,\n deleteData: PropTypes.object.isRequired,\n\n onOpen: PropTypes.func.isRequired,\n setDeleteData: PropTypes.func.isRequired,\n onClick: PropTypes.func.isRequired\n}\n\nexport default ContentDelete\n","import { connect } from 'react-redux'\n\nimport ContentDelete from 'components/content_desk_new/contents/content/content_actions/ContentDelete'\n\nimport { openDeleteDialog, setDeleteContentData } from 'actions/content_desk'\n\nconst mapStateToProps = (_state, { deleteDisabled, deleteData }) => ({\n deleteDisabled,\n deleteData\n})\n\nexport default connect(\n mapStateToProps,\n {\n onOpen: () => openDeleteDialog('content'),\n setDeleteData: setDeleteContentData\n }\n)(ContentDelete)\n","import React, { useState, useEffect } from 'react'\n/* globals window */\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport moment from 'moment-timezone'\nimport { fromJS, List, Map as ImmutableMap } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { Badge, ListItemIcon, ListItemText, MenuItem, Tooltip } from '@mui/material'\nimport { grey } from '@mui/material/colors'\n\nimport ContentCopyIcon from '@mui/icons-material/ContentCopy'\nimport EditIcon from '@mui/icons-material/Edit'\nimport RemoveRedEyeIcon from '@mui/icons-material/RemoveRedEye'\nimport PoolIcon from '@mui/icons-material/Pool'\nimport NotesIcon from '@mui/icons-material/Notes'\nimport MoreVertIcon from '@mui/icons-material/MoreVert'\nimport SendIcon from '@mui/icons-material/Send'\nimport InfoIcon from '@mui/icons-material/Info'\n\nimport { Capabilities } from 'static/constants'\nimport { listUniqueById } from 'utils/immutable'\n\nimport PublishConfirmDialog from 'containers/content_desk_new/contents/PublishConfirmDialog'\nimport ContentDelete from 'containers/content_desk_new/contents/content/ContentDelete'\nimport { IconButton, Menu } from 'containers/themed'\nimport CapSafe from 'containers/CapSafe'\n\nconst SwitchToSearchMenuItem = CapSafe(MenuItem, Capabilities.HAS_NEWS_POOL_MODULE)\n\nconst useStyles = makeStyles()(() => ({\n menu: {\n zIndex: 10005 // needsto be higher than the zindex in Typeform\n },\n tooltip: {\n zIndex: 10006\n },\n actionIcon: {\n color: 'rgba(0, 0, 0, 0.54)',\n marginRight: 8\n },\n infoIcon: {\n color: grey[600]\n },\n actionName: {\n marginLeft: 12\n },\n resubmitContainer: {\n display: 'flex',\n justifyContent: 'space-between'\n }\n}))\n\nconst newEditorContentTypes = ['email', 'ots_press_release']\n\nexport default function ContentActions({\n content,\n contentDeskContentTypes,\n onEditClick,\n onCloneClick,\n onViewClick,\n onSwitchToSearchPoolClick,\n saveContentStart\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const scheduledForDate = content.get('scheduledFor')\n const campaignName = content.getIn(['ccdCampaign', 'name'])\n const status = content.get('status') || content.get('approvalStatus')\n const contentType = content.get('type').toLowerCase()\n const isOtsContent = contentType === 'ots_press_release'\n const otsPressRelease = content.get('otsPressRelease')\n const deletedExternally = content.get('deletedExternally')\n const showSearchPoolButton = (content.get('plainText') || '').length >= 1200\n const [editDisabled, setEditDisabled] = useState(moment.duration(moment(scheduledForDate).diff(moment())).minutes() < 2)\n const [deleteDisabled, setDeleteDisabled] = useState(false)\n const [publishConfDialogOpen, setPublishConfDialogOpen] = useState(false)\n\n const disableEdit = () => setEditDisabled(moment.duration(moment(scheduledForDate).diff(moment())).minutes() < 2)\n const disableDelete = () => setDeleteDisabled(moment.duration(moment(scheduledForDate).diff(moment())).minutes() < 2)\n\n useEffect(() => {\n if (status === 'released') {\n setEditDisabled(true)\n setDeleteDisabled(false)\n\n return () => null\n }\n\n if (status === 'scheduled' && moment.duration(moment(scheduledForDate).diff(moment())).minutes() < 15 && !editDisabled) {\n const intervalEdit = setInterval(() => disableEdit(), 5000)\n\n return () => {\n clearInterval(intervalEdit)\n }\n }\n\n if (status === 'scheduled' && moment.duration(moment(scheduledForDate).diff(moment())).minutes() < 15 && !deleteDisabled) {\n const intervalDelete = setInterval(() => disableDelete(), 5000)\n\n return () => {\n clearInterval(intervalDelete)\n }\n }\n\n setEditDisabled(false)\n setDeleteDisabled(false)\n\n return () => null\n }, [status])\n\n const handleNotes = () => onEditClick({ id: content.get('id'), openContentNotesDialog: true })\n const handleEdit = () => {\n if (newEditorContentTypes.includes(contentType)) {\n onEditClick({ id: content.get('id'), openEditContentDialog: true })\n } else {\n onEditClick({ id: content.get('id'), openOldEditContentDialog: true })\n }\n }\n const handleOtsEdit = () => {\n window.open('https://go.newsaktuell.de', '_blank', 'noopener,noreferrer')\n }\n const handleViewClick = () => onViewClick(content)\n\n const currentType = contentDeskContentTypes.find(c => c.get('id') === content.get('type').toLowerCase())\n\n const resetLinkedInSpecificFields = () => {\n let linkedInPost = content.get('linkedInPost').delete('createdPostId')\n\n const mediaFiles = content.get('ccdMediaFiles')\n\n // this could be an image post or an video post\n // field id needs to be reset to our internal id instead of the linkedIn image ID\n if (mediaFiles.size === 1) {\n linkedInPost = linkedInPost.setIn(['content', 'media', 'id'], String(mediaFiles.first().get('id')))\n }\n\n // for multi_image\n if (mediaFiles.size > 1) {\n let linkedInImages = mediaFiles.map(selected => (fromJS({\n altText: selected.get('filename'),\n id: String(selected.get('id'))\n })))\n\n linkedInImages = listUniqueById(linkedInImages)\n\n const mediaContent = fromJS({\n multiImage: {\n images: linkedInImages\n }\n })\n\n linkedInPost = linkedInPost.set('content', mediaContent)\n }\n\n return linkedInPost\n }\n\n const resetFacebookSpecificFields = () => {\n const facebookPost = content\n .get('facebookPost')\n .delete('createdPostId')\n const mediaAttachments = facebookPost\n .get('mediaAttachments')\n .map(attachment => attachment.delete('fbid'))\n\n return facebookPost.set('mediaAttachments', mediaAttachments)\n }\n\n const handleClone = () => {\n let linkedInPost\n let facebookPost\n\n if (content.get('type').toLowerCase() === 'linkedin') {\n linkedInPost = resetLinkedInSpecificFields()\n }\n\n if (content.get('type').toLowerCase() === 'facebook') {\n facebookPost = resetFacebookSpecificFields()\n }\n\n onCloneClick(\n content\n .set('ccdCampaign', fromJS({ value: content.getIn(['ccdCampaign', 'id']), label: campaignName }))\n .set('type', fromJS({ id: currentType.get('id'), value: currentType.get('id'), label: currentType.get('name') }))\n .set('id', null)\n .set('scheduledFor', null)\n .set('recipients', List())\n .set('linkedInPost', linkedInPost)\n .set('facebookPost', facebookPost)\n .set('title', `${content.get('title')} - duplicate(1)`)\n .set('scheduledJobName', null)\n .set('scheduledEventsJobName', null)\n .set('status', null)\n )\n\n saveContentStart({ openEditContentDialog: true })\n }\n\n const renderEditAction = () => {\n if (isOtsContent && otsPressRelease && status !== 'released') {\n return (\n \n \n \n \n \n {i18n.get('edit_in_na')}\n \n \n )\n }\n\n return (\n \n \n \n \n \n {i18n.get('edit')}\n \n \n )\n }\n\n const renderNoteAction = () => {\n const notes = content.get('notes')\n\n if (notes.isEmpty()) {\n return (\n <>\n \n \n \n \n {i18n.get('notes')}\n \n \n )\n }\n\n return (\n <>\n \n \n \n \n \n \n {i18n.get('notes')}\n \n \n )\n }\n\n const renderResubmitOtsAction = () => {\n if (isOtsContent && otsPressRelease && status !== 'released') {\n return (\n setPublishConfDialogOpen(true)}\n disabled={deletedExternally}\n >\n \n \n \n \n {i18n.get('resubmit_ots_content')}\n \n \n \n \n \n )\n }\n\n return null\n }\n\n return (\n <>\n \n \n \n )}\n >\n \n \n \n \n \n {i18n.get('overview_and_kpis')}\n \n \n {renderEditAction()}\n {renderResubmitOtsAction()}\n \n \n \n \n \n {i18n.get('duplicate')}\n \n \n \n {renderNoteAction()}\n \n {showSearchPoolButton && (\n onSwitchToSearchPoolClick({\n field: 'ccdContents',\n value: content\n })}\n >\n \n \n \n \n {i18n.get('view_earned_media')}\n \n \n )}\n { /* to provoke menu close */ }}\n deleteDisabled={deleteDisabled}\n title={content.get('title')}\n deleteData={{\n id: content.get('id')\n }}\n />\n \n setPublishConfDialogOpen(false)}\n />\n \n )\n}\n\nContentActions.propTypes = {\n content: PropTypes.instanceOf(ImmutableMap).isRequired,\n contentDeskContentTypes: PropTypes.instanceOf(List).isRequired,\n\n onCloneClick: PropTypes.func.isRequired,\n onEditClick: PropTypes.func.isRequired,\n onSwitchToSearchPoolClick: PropTypes.func.isRequired,\n onViewClick: PropTypes.func.isRequired,\n saveContentStart: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ContentActions from 'components/content_desk_new/contents/content/content_actions'\n\nimport { getStaticCdContentTypes } from 'selectors'\n\nimport {\n createOtsDraftStart,\n lockContentStart as onEditClick,\n cloneContentsFormData as onCloneClick,\n openViewContentDialog as onViewClick,\n switchToSearchPool as onSwitchToSearchPoolClick,\n saveContentStart\n} from 'actions/content_desk'\n\nconst mapStateToProps = (state, { content }) => ({\n content,\n contentDeskContentTypes: getStaticCdContentTypes(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onEditClick,\n onCloneClick,\n onViewClick,\n onSwitchToSearchPoolClick,\n saveContentStart,\n createOtsDraft: createOtsDraftStart\n }\n)(ContentActions)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport moment from 'moment-timezone'\nimport { Map } from 'immutable'\nimport camelcase from 'camelcase'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Box,\n CircularProgress,\n TableCell,\n TableRow,\n Typography\n} from '@mui/material'\nimport { green, purple, grey, orange } from '@mui/material/colors'\n\nimport useDevice from 'hooks/useDevice'\n\nimport ContentTitle from 'containers/content_desk_new/contents/content/ContentTitle'\nimport ContentStatus from 'containers/content_desk_new/contents/content/ContentStatus'\nimport ContentActions from 'containers/content_desk_new/contents/content/ContentActions'\n\nconst useStyles = makeStyles()(() => ({\n icon: {\n fontSize: 20,\n margin: '-2px'\n },\n draft: {\n borderLeft: '5px solid',\n borderColor: grey[500]\n },\n reviewPending: {\n borderLeft: '5px solid',\n borderColor: orange[500]\n },\n revisionsNeeded: {\n borderLeft: '5px solid',\n borderColor: purple[500]\n },\n approved: {\n borderLeft: '5px solid',\n borderColor: green[500]\n }\n}))\n\nfunction ColumnFooter({ text }) {\n return (\n \n !theme.isDark && '#757575' }}\n >\n {text}\n \n \n )\n}\n\nconst ShortContent = ({\n content,\n requestRunning\n}) => {\n const device = useDevice()\n const { classes } = useStyles()\n const editor = `${content.getIn(['lastEditor', 'firstName'])} ${content.getIn(['lastEditor', 'lastName'])}`\n const lastEditedDate = `${moment(content.get('updatedAt')).format('L')}, ${moment(content.get('updatedAt')).format('LT')}`\n const status = camelcase(content.get('approvalStatus'))\n const statusClass = classes[status]\n let maxLength = 16\n\n if (device.get('xl')) {\n maxLength = 24\n } else if (device.get('lg')) {\n maxLength = 20\n }\n\n return (\n \n \n \n \n \n {editor}\n \n \n \n {requestRunning ? (\n \n ) : (\n \n )}\n \n \n \n \n \n )\n}\n\nShortContent.propTypes = {\n content: PropTypes.instanceOf(Map).isRequired,\n requestRunning: PropTypes.bool.isRequired\n}\n\nColumnFooter.propTypes = {\n text: PropTypes.string\n}\n\nexport default ShortContent\n","import { connect } from 'react-redux'\n\nimport {\n getCDeskCalendarLoadingContentIds\n} from 'selectors'\n\nimport ShortContent from 'components/content_desk_new/contents/short_contents/short_content'\n\nconst mapStateToProps = (state, ownProps) => ({\n requestRunning: !!getCDeskCalendarLoadingContentIds(state).get(ownProps.content.get('id'))\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(ShortContent)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map, List } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Table,\n TableHead,\n TableCell,\n TableRow,\n TableBody\n} from '@mui/material'\n\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward'\nimport ArrowDownwardIcon from '@mui/icons-material/ArrowDownward'\nimport SwapVertIcon from '@mui/icons-material/SwapVert'\n\nimport ShortContent from 'containers/content_desk_new/contents/short_contents/ShortContent'\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n lastEditedLabel: {\n minWidth: 200\n },\n sortIconActive: {\n fontSize: '0.6rem !important'\n },\n sortIconInActive: {\n fontSize: '0.6rem !important',\n opacity: 0.5\n }\n})\n\nconst ShortContents = ({\n contents,\n contentsSorting,\n sortContents\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n if (contents.isEmpty()) {\n return null\n }\n\n const renderSortIcon = field => {\n const sorting = contentsSorting\n const sortFunc = sortContents\n let title = i18n.get('sort')\n let icon = \n let iconClass = classes.sortIconInActive\n\n if (field === sorting.get('field')) {\n if (sorting.get('order') === 'asc') {\n iconClass = classes.sortIconActive\n icon = \n title = i18n.get('ascending')\n }\n\n if (sorting.get('order') === 'desc') {\n iconClass = classes.sortIconActive\n icon = \n title = i18n.get('descending')\n }\n\n return (\n sortFunc({\n field,\n order: (sorting.get('order') === 'asc') ? 'desc' : 'asc'\n })}\n />\n )\n }\n\n return (\n sortFunc({\n field,\n order: (field === 'name') ? 'asc' : 'desc'\n })}\n />\n )\n }\n\n return (\n \n \n \n {i18n.get('name')} {renderSortIcon('name')}\n {i18n.get('last_edited')} {renderSortIcon('updatedAt')}\n {i18n.get('sending_status')}\n \n \n \n \n {contents\n .map((el, index) => (\n \n ))}\n \n
\n )\n}\n\nShortContents.propTypes = {\n contents: PropTypes.instanceOf(List).isRequired,\n contentsSorting: PropTypes.instanceOf(Map).isRequired,\n\n sortContents: PropTypes.func.isRequired\n}\n\nexport default ShortContents\n","import { connect } from 'react-redux'\n\nimport {\n getCDeskSelectedCalendarEvents,\n getCDeskCalendarContentsSorting\n} from 'selectors'\nimport {\n sortContents\n} from 'actions/content_desk'\n\nimport ShortContents from 'components/content_desk_new/contents/short_contents'\n\nconst mapStateToProps = state => {\n const events = getCDeskSelectedCalendarEvents(state)\n\n return {\n contents: events.get('contents'),\n contentsSorting: getCDeskCalendarContentsSorting(state)\n }\n}\n\nexport default connect(\n mapStateToProps,\n {\n sortContents\n }\n)(ShortContents)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport moment from 'moment-timezone'\nimport {\n Accordion,\n AccordionSummary,\n AccordionDetails,\n Box,\n Paper,\n Typography\n} from '@mui/material'\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\n\nimport ShortCampaigns from 'containers/content_desk_new/campaigns/short_campaigns/ShortCampaigns'\nimport ShortContents from 'containers/content_desk_new/contents/short_contents/ShortContents'\n\nconst useStyles = makeStyles()({\n detailsContainer: {\n overflowX: 'auto'\n },\n title: {\n margin: '16px 0 8px 16px'\n },\n sortIconActive: {\n fontSize: '0.8rem !important'\n },\n sortIconInActive: {\n fontSize: '0.8rem',\n opacity: 0.5\n },\n accordionSummary: {\n fontSize: 16\n }\n})\n\nconst CalendarEvents = ({\n selectedDay\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const renderCampaigns = () => (\n \n \n )}\n >\n {i18n.get('campaigns')}\n \n \n \n \n \n )\n\n const renderContents = () => (\n \n \n )}\n >\n {i18n.get('contents')}\n \n \n \n \n \n )\n\n return (\n <>\n \n \n \n {moment(selectedDay).calendar(null, {\n sameDay: `[${i18n.get('today')}]`,\n nextDay: `[${i18n.get('tomorrow')}]`,\n nextWeek: 'dddd',\n lastDay: `[${i18n.get('yesterday')}]`,\n lastWeek: `[${i18n.get('last_calendar')}] dddd`,\n sameElse: 'll'\n })}\n \n {renderCampaigns()}\n {renderContents()}\n \n \n \n )\n}\n\nCalendarEvents.propTypes = {\n selectedDay: PropTypes.string.isRequired\n}\n\nexport default CalendarEvents\n","import { connect } from 'react-redux'\n\nimport {\n getCDeskCalendarSelectedDay\n} from 'selectors'\n\nimport {\n sortCampaigns,\n sortContents\n} from 'actions/content_desk'\n\nimport CalendarEvents from 'components/content_desk_new/calendar_events'\n\nconst mapStateToProps = state => ({\n selectedDay: getCDeskCalendarSelectedDay(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n sortContents,\n sortCampaigns\n }\n)(CalendarEvents)\n","import React, { useRef, useEffect, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\nimport moment from 'moment-timezone'\n\nimport FullCalendar from '@fullcalendar/react'\nimport dayGridPlugin from '@fullcalendar/daygrid'\nimport interactionPlugin from '@fullcalendar/interaction'\nimport allLocales from '@fullcalendar/core/locales-all'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { useTheme } from '@mui/material/styles'\nimport { grey } from '@mui/material/colors'\n\nimport { Box, Menu, MenuItem } from '@mui/material'\n\nimport NrxProgressBar from 'components/nrx_progress_bar/NrxProgressBar'\nimport CalendarEvents from 'containers/content_desk_new/CalendarEvents'\n\nimport { calendarWidgetEvents } from 'utils/calendar_events'\n\nexport const getLocale = () => (moment.locale() || 'de')\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n backgroundColor: theme.palette.background.paper,\n padding: '20px 20px 20px 20px',\n borderRadius: 20,\n position: 'relative',\n '& .fc-button': {\n backgroundColor: `${theme.palette.primary.main} !important`,\n textTransform: 'uppercase',\n border: 'none',\n '&:hover': {\n backgroundColor: `${theme.palette.primary.main} !important`,\n opacity: 0.8\n },\n '&:focus': {\n boxShadow: 'none !important'\n },\n '&:active': {\n backgroundColor: `${theme.palette.primary.main} !important`,\n opacity: 0.8\n }\n },\n '& .fc-day-other': {\n backgroundColor: grey[100]\n },\n '& .fc-day-today': {\n backgroundColor: 'transparent !important',\n outline: '2px solid black',\n outlineOffset: '-2px',\n '& .fc-daygrid-day-number': {\n fontWeight: 'bold'\n }\n },\n '& .fc-icon.fa': {\n font: 'normal normal normal 14px/1 FontAwesome !important',\n marginBottom: '2px'\n }\n },\n overlay: {\n zIndex: 10,\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: 'rgba(255, 255, 255, 0.4)'\n },\n progressBar: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n }\n}))\n\nconst CalendarWidget = ({\n contents,\n calendarDate,\n selectedDay,\n onNewContentClick,\n onNewCampaignClick,\n fetchContents,\n setCalendarDate,\n requestRunning,\n selectedCampaignId,\n setSelectedDay,\n openCalendarDialog\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const theme = useTheme()\n\n const wrapperRef = useRef(null)\n const [newEventTop, setNewEventTop] = useState(200)\n const [newEventLeft, setNewEventLeft] = useState(200)\n const [newEventOpen, setNewEventOpen] = useState(false)\n const [newEventStartDate, setNewEventStartDate] = useState(new Date())\n const [newEventEndDate, setNewEventEndDate] = useState(new Date())\n\n const events = calendarWidgetEvents(contents.get('items'), selectedCampaignId, theme)\n\n useEffect(() => {\n if (calendarDate) {\n fetchContents(calendarDate)\n }\n }, [calendarDate])\n\n const handleNewEventClose = () => {\n setNewEventOpen(false)\n }\n\n const handleNewContentClick = () => {\n onNewContentClick({\n scheduledFor: moment(newEventEndDate).subtract(12, 'hours').toDate()\n })\n handleNewEventClose()\n }\n\n const handleNewCampaignClick = () => {\n onNewCampaignClick({\n startDate: moment(newEventStartDate).add(12, 'hours').toDate(),\n endDate: moment(newEventEndDate).subtract(12, 'hours').toDate()\n })\n handleNewEventClose()\n }\n\n const onCalendarNavClick = calendarApi => {\n setCalendarDate(moment(calendarApi.getDate()).format('YYYY-MM-DD'))\n }\n\n const onDaySelect = info => {\n setNewEventStartDate(info.start)\n setNewEventEndDate(info.end)\n const newSelectedDay = moment(info.start).format('YYYY-MM-DD')\n\n if (info.jsEvent) {\n setNewEventTop(info.jsEvent.clientY)\n setNewEventLeft(info.jsEvent.clientX)\n\n if (selectedDay === newSelectedDay) {\n setNewEventOpen(true)\n }\n }\n\n setSelectedDay(newSelectedDay)\n }\n\n const calendarConfig = {\n customButtons: {\n prevButton: {\n text: i18n.get('previous'),\n click() {\n const calendarApi = wrapperRef.current.getApi()\n calendarApi.prev()\n onCalendarNavClick(calendarApi)\n }\n },\n nextButton: {\n text: i18n.get('next'),\n click() {\n const calendarApi = wrapperRef.current.getApi()\n calendarApi.next()\n onCalendarNavClick(calendarApi)\n }\n },\n todayButton: {\n text: i18n.get('today'),\n click() {\n const calendarApi = wrapperRef.current.getApi()\n calendarApi.today()\n onCalendarNavClick(calendarApi)\n }\n },\n expandButton: {\n text: i18n.get('expand'),\n icon: ' fa fa-expand',\n click() {\n openCalendarDialog()\n }\n }\n },\n headerToolbar: {\n left: 'title',\n center: '',\n right: 'prevButton,nextButton todayButton expandButton'\n },\n buttonIcons: {\n prevButton: 'chevron-left',\n nextButton: 'chevron-right'\n },\n titleFormat: {\n month: 'long'\n },\n initialDate: (() => {\n if (events.isEmpty()) {\n return moment().format('YYYY-MM-DD')\n }\n\n return moment(events.last().start).format('YYYY-MM-DD')\n })(),\n plugins: [dayGridPlugin, interactionPlugin],\n firstDay: 1,\n editable: false,\n selectable: true,\n select: onDaySelect,\n contentHeight: 500\n }\n\n return (\n \n {requestRunning && (\n \n \n \n \n \n )}\n \n \n {i18n.get('create_content')}\n {i18n.get('create_campaign')}\n \n \n \n )\n}\n\nCalendarWidget.propTypes = {\n contents: PropTypes.instanceOf(Map).isRequired,\n calendarDate: PropTypes.string.isRequired,\n selectedDay: PropTypes.string.isRequired,\n requestRunning: PropTypes.bool.isRequired,\n selectedCampaignId: PropTypes.number,\n\n onNewContentClick: PropTypes.func.isRequired,\n onNewCampaignClick: PropTypes.func.isRequired,\n fetchContents: PropTypes.func.isRequired,\n setCalendarDate: PropTypes.func.isRequired,\n setSelectedDay: PropTypes.func.isRequired,\n openCalendarDialog: PropTypes.func.isRequired\n}\n\nexport default CalendarWidget\n","import moment from 'moment-timezone'\n// import { List } from 'immutable'\nimport { rgbaColorFromHex } from 'utils/color'\nimport { blue, blueGrey } from '@mui/material/colors'\nimport camelcase from 'camelcase'\n\n// const enumerateDaysBetweenDates = (startDate, endDate) => {\n// const now = moment(startDate).startOf('day')\n// const endD = moment(endDate).endOf('day')\n\n// const dates = []\n\n// while (now.isBefore(endD) || now.isSame(endD)) {\n// dates.push(now.startOf('day').toDate())\n// now.add(1, 'days')\n// }\n\n// return List(dates)\n// }\n\nexport const calendarEvents = events => events\n .filter(c => (c.get('scheduledFor') || c.get('plannedFor')) || (c.get('startDate') && c.get('endDate')))\n .map(event => {\n const title = event.get('name')\n const campaignName = event.getIn(['ccdCampaign', 'name']) || event.get('name')\n\n const eventType = event.get('eventType')\n\n if (eventType === 'content') {\n const type = event.get('type')\n const scheduledForDate = event.get('scheduledFor')\n const plannedForDate = event.get('plannedFor')\n const approvalStatus = camelcase(event.get('approvalStatus'))\n\n let time\n let status\n let date\n\n if (!scheduledForDate && plannedForDate) {\n status = 'planned'\n date = moment(plannedForDate).toDate()\n time = moment(plannedForDate).format('LT')\n } else {\n status = event.get('status')\n date = moment(scheduledForDate).toDate()\n time = moment(scheduledForDate).format('LT')\n }\n\n return {\n title,\n display: 'list-item',\n extendedProps: {\n type,\n eventType,\n campaignName,\n time,\n status,\n approvalStatus,\n content: event\n },\n date,\n start: date\n }\n }\n\n const start = moment(event.get('startDate')).toDate()\n const end = moment(event.get('endDate')).toDate()\n\n const active = event.get('active')\n const color = active ? blue[500] : blueGrey[500]\n\n return {\n title,\n display: 'block',\n extendedProps: {\n eventType,\n campaignName,\n campaign: event,\n color: rgbaColorFromHex(color, 1)\n },\n date: start,\n start,\n end\n }\n })\n\nexport const calendarWidgetEvents = (contents, selectedCampaignId, theme) => contents\n .filter(c => (c.get('scheduledFor') || c.get('plannedFor')) || (c.get('startDate') && c.get('endDate')))\n .filter(event => !selectedCampaignId || (\n event.getIn(['ccdCampaign', 'id']) === selectedCampaignId\n ))\n .map(event => {\n // if (event.get('eventType') === 'content') {\n const scheduledForDate = event.get('scheduledFor')\n const plannedForDate = event.get('plannedFor')\n\n let date\n\n if (!scheduledForDate && plannedForDate) {\n date = moment(plannedForDate).startOf('day').format('YYYY-MM-DD')\n } else {\n date = moment(scheduledForDate).format('YYYY-MM-DD')\n }\n\n return {\n start: date,\n end: moment(date).add(1, 'day').format('YYYY-MM-DD'),\n display: 'background',\n overlap: true,\n color: theme.palette.primary.main\n }\n }).filter(e => e)\n","import { connect } from 'react-redux'\n\nimport {\n getCDeskCalendarContents,\n getCDeskRequestRunning,\n getCDeskCalendarDate,\n getCDeskCalendarSelectedDay,\n getCDeskCalendarSelectedCampaignId\n} from 'selectors'\nimport {\n openNewContentDialog,\n fetchCalendarEventsStart,\n openCampaignForm,\n setCalendarDate,\n setCalendarSelectedDay as setSelectedDay,\n openCalendarDialog\n} from 'actions/content_desk'\n\nimport CalendarWidget from 'components/content_desk_new/calendar_widget'\n\nconst mapStateToProps = state => ({\n contents: getCDeskCalendarContents(state),\n calendarDate: getCDeskCalendarDate(state),\n requestRunning: getCDeskRequestRunning(state),\n selectedDay: getCDeskCalendarSelectedDay(state),\n selectedCampaignId: getCDeskCalendarSelectedCampaignId(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onNewContentClick: openNewContentDialog,\n onNewCampaignClick: openCampaignForm,\n fetchContents: fetchCalendarEventsStart,\n setCalendarDate,\n setSelectedDay,\n openCalendarDialog\n }\n)(CalendarWidget)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Box,\n Paper,\n Grid,\n Typography,\n Card,\n CardContent\n} from '@mui/material'\nimport { grey } from '@mui/material/colors'\nimport { lighten } from '@mui/material/styles'\nimport AddIcon from '@mui/icons-material/Add'\nimport MailIcon from '@mui/icons-material/MailOutline'\nimport LinkedInIcon from '@mui/icons-material/LinkedIn'\nimport FacebookIcon from '@mui/icons-material/Facebook'\nimport InfoIcon from '@mui/icons-material/Info'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n borderRadius: 20,\n minHeight: 200,\n backgroundColor: lighten(theme.palette.primary.main, 0.8)\n },\n loadingContainer: {\n textAlign: 'center'\n },\n card: {\n borderRadius: 20,\n cursor: 'pointer',\n boxShadow: 'none',\n height: 150,\n backgroundColor: lighten(theme.palette.primary.main, 0.9),\n '&:hover': {\n boxShadow: '0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)'\n }\n },\n title: {\n backgroundColor: '#FFFFFF',\n color: theme.palette.primary.main,\n borderRadius: 8,\n height: '1.6em',\n width: '1.6em',\n display: 'block',\n textAlign: 'center',\n marginBottom: 10\n },\n mailIcon: {\n fontSize: 16,\n verticalAlign: 'middle'\n },\n socialIcon: {\n fontSize: 12,\n margin: -1\n },\n otsLogo: {\n width: 20,\n height: 10\n },\n infoButton: {\n marginTop: -5\n },\n infoIcon: {\n color: grey[600]\n }\n}))\n\nexport default function PrimaryNavigation({\n hasContactsManagement,\n hasLinkedIn,\n hasFacebook,\n hasOts,\n openContent,\n openCampaignForm,\n openContentDialog,\n openOtsWelcomeDialog\n}) {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const renderEmailCreateCard = () => {\n if (!hasContactsManagement) {\n return null\n }\n\n return (\n \n openContent({ type: 'email' })}\n className={classes.card}\n >\n \n \n \n \n \n {i18n.get('send_mail_content')}\n \n \n {i18n.get('send_mail_content_description')}\n \n \n \n \n )\n }\n\n const renderSocialMediaCreateCard = () => {\n if (!hasLinkedIn && !hasFacebook) {\n return null\n }\n\n return (\n \n openContentDialog({ socialOnly: true })}\n className={classes.card}\n >\n \n \n {hasLinkedIn && ()}\n {hasFacebook && ()}\n \n \n {i18n.get('create_social_content')}\n \n \n {i18n.get('create_social_content_description')}\n \n \n \n \n )\n }\n\n const renderOtsCreateCard = () => {\n if (hasOts) {\n return (\n \n openContent({ type: 'ots_press_release' })}\n className={classes.card}\n >\n \n \n \n \n \n \n {\n event.stopPropagation()\n openOtsWelcomeDialog()\n }}\n >\n \n \n \n \n \n {i18n.get('create_ots_release')}\n \n \n {i18n.get('create_ots_release_description')}\n \n \n \n \n )\n }\n\n return null\n }\n\n return (\n \n \n {i18n.get('what_to_do')}\n \n \n \n \n openCampaignForm()}\n className={classes.card}\n >\n \n \n \n \n \n {i18n.get('create_campaign')}\n \n \n {i18n.get('create_campaign_description')}\n \n \n \n \n {renderEmailCreateCard()}\n {renderOtsCreateCard()}\n {renderSocialMediaCreateCard()}\n \n \n \n )\n}\n\nPrimaryNavigation.propTypes = {\n hasContactsManagement: PropTypes.bool.isRequired,\n hasLinkedIn: PropTypes.bool.isRequired,\n hasFacebook: PropTypes.bool.isRequired,\n hasOts: PropTypes.bool.isRequired,\n openContent: PropTypes.func.isRequired,\n openContentDialog: PropTypes.func.isRequired,\n openCampaignForm: PropTypes.func.isRequired,\n openOtsWelcomeDialog: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport { Capabilities } from 'static/constants'\n\nimport PrimaryNavigation from 'components/content_desk_new/primary_navigation/'\n\nimport {\n openNewContent as openContent,\n openNewContentDialog as openContentDialog,\n openCampaignForm,\n openOtsWelcomeDialog\n} from 'actions/content_desk'\n\nimport { hasCapability } from 'selectors'\n\nconst mapStateToProps = state => ({\n hasContactsManagement: !!hasCapability(state, Capabilities.HAS_CONTACTS_MANAGEMENT_MODULE),\n hasLinkedIn: !!hasCapability(state, Capabilities.HAS_CONTENT_DESK_LINKED_IN),\n hasFacebook: !!hasCapability(state, Capabilities.HAS_CONTENT_DESK_FACEBOOK),\n hasOts: !!hasCapability(state, Capabilities.HAS_CONTENT_DESK_OTS_PR)\n})\n\nexport default connect(\n mapStateToProps,\n {\n openContent,\n openContentDialog,\n openCampaignForm,\n openOtsWelcomeDialog\n }\n)(PrimaryNavigation)\n","import React, { useCallback, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport useColors from 'hooks/useColors'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { keyframes } from 'tss-react'\n\nimport { Box } from '@mui/material'\n\nimport { Button } from 'containers/themed'\n\nconst ButtonContainer = props =>
\n\nconst useStyles = makeStyles()(theme => ({\n switchActions: {\n display: 'flex',\n height: '45px !important',\n width: '100%'\n },\n switchAction: {\n display: 'flex',\n position: 'relative',\n width: '100%',\n flexBasis: 0,\n '& > button': {\n minHeight: '100%',\n [theme.breakpoints.only('xs')]: {\n fontSize: '3.5dvw'\n }\n },\n [theme.breakpoints.only('xs')]: {\n flexGrow: 1,\n justifyContent: 'center'\n }\n },\n switchActionContent: {\n paddingTop: '4px',\n paddingLeft: '5px',\n paddingRight: '5px',\n whiteSpace: 'nowrap',\n opacity: 0.7,\n [theme.breakpoints.only('xs')]: {\n paddingLeft: '3px',\n paddingRight: '3px'\n }\n },\n activeBorder: {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%',\n height: 3,\n animation: `${keyframes`\n from {\n transform: scale(0);\n }\n to {\n transform: scale(1);\n }\n `} 225ms;`\n },\n iconContainer: {\n position: 'absolute',\n display: 'flex',\n width: '100%',\n alignItems: 'center',\n height: 25,\n marginRight: 5\n }\n}))\n\nexport default function Tabs({\n hasFacebook,\n hasLinkedIn,\n hasOtsPr,\n view,\n requestRunning,\n changeContentTabView,\n resetFilters,\n search,\n setContentFilters,\n setKpiFilters,\n fetchKpiStatistics\n}) {\n const i18n = useI18n()\n const colors = useColors()\n const { classes } = useStyles()\n\n if (!hasLinkedIn && !hasFacebook) {\n return null\n }\n\n const onTabChange = useCallback(buttonView => {\n changeContentTabView(buttonView)\n setKpiFilters({ key: 'type', value: buttonView })\n fetchKpiStatistics()\n\n let conditions = []\n\n if (buttonView === 'all') {\n resetFilters()\n }\n\n if (buttonView === 'email') {\n conditions.push({ field: 'type', name: 'type', value: 'email', comparison: 'equals' })\n\n if (hasOtsPr) {\n conditions.push({ field: 'type', name: 'type', value: 'ots_press_release', comparison: 'equals' })\n }\n\n conditions = conditions.map((condition, index) => ({ ...condition, index }))\n\n setContentFilters({\n operator: 'or',\n conditions\n })\n }\n\n if (buttonView === 'social_media') {\n if (hasLinkedIn) {\n conditions.push({ field: 'type', name: 'type', value: 'linkedin', comparison: 'equals' })\n }\n\n if (hasFacebook) {\n conditions.push({ field: 'type', name: 'type', value: 'facebook', comparison: 'equals' })\n }\n\n conditions = conditions.map((condition, index) => ({ ...condition, index }))\n\n setContentFilters({\n operator: 'or',\n conditions\n })\n }\n\n search()\n }, [view])\n\n useEffect(() => {\n onTabChange(view)\n }, [view])\n\n const handleTabChange = newButtonView => {\n if (view !== newButtonView) {\n onTabChange(newButtonView)\n }\n }\n\n const renderNavigationAction = (currentButtonView, label, isDisabled = false, Comp = ButtonContainer) => {\n const title = null\n\n let active\n\n if (view === currentButtonView) {\n active = (\n \n )\n }\n\n const tabButton = () => (\n handleTabChange(currentButtonView)}\n disabled={isDisabled}\n loading={requestRunning}\n >\n \n {label}\n \n \n )\n\n return (\n \n {tabButton()}\n {active}\n \n )\n }\n\n const buttons = []\n\n buttons.push(\n renderNavigationAction(\n 'all',\n `${i18n.get('all_contents')}`\n )\n )\n\n buttons.push(\n renderNavigationAction(\n 'email',\n `${i18n.get('email')}`\n )\n )\n\n buttons.push(\n renderNavigationAction(\n 'social_media',\n `${i18n.get('social_media')}`\n )\n )\n\n if (buttons.length <= 1) {\n return null\n }\n\n return (\n <>\n
\n {buttons}\n
\n \n )\n}\n\nTabs.propTypes = {\n hasFacebook: PropTypes.bool.isRequired,\n hasLinkedIn: PropTypes.bool.isRequired,\n hasOtsPr: PropTypes.bool.isRequired,\n view: PropTypes.string.isRequired,\n requestRunning: PropTypes.bool.isRequired,\n\n changeContentTabView: PropTypes.func.isRequired,\n resetFilters: PropTypes.func.isRequired,\n search: PropTypes.func.isRequired,\n setContentFilters: PropTypes.func.isRequired,\n setKpiFilters: PropTypes.func.isRequired,\n fetchKpiStatistics: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport { Capabilities } from 'static/constants'\n\nimport Tabs from 'components/content_desk_new/content_header/tabs'\n\nimport {\n changeContentTabView,\n resetFilters,\n search,\n setContentFilters,\n setKpiStatisticsFilters,\n fetchKpiStatisticsStart\n} from 'actions/content_desk'\n\nimport {\n getCDeskContentTabView,\n getCDeskRequestRunning,\n hasCapability\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n hasLinkedIn: !!hasCapability(state, Capabilities.HAS_CONTENT_DESK_LINKED_IN),\n hasFacebook: !!hasCapability(state, Capabilities.HAS_CONTENT_DESK_FACEBOOK),\n hasOtsPr: !!hasCapability(state, Capabilities.HAS_CONTENT_DESK_OTS_PR),\n requestRunning: getCDeskRequestRunning(state),\n view: getCDeskContentTabView(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n changeContentTabView,\n fetchKpiStatistics: fetchKpiStatisticsStart,\n resetFilters,\n setContentFilters,\n search,\n setKpiFilters: setKpiStatisticsFilters\n }\n)(Tabs)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { Box, Select, MenuItem, InputAdornment } from '@mui/material'\nimport { grey } from '@mui/material/colors'\n\nimport AccessTimeIcon from '@mui/icons-material/AccessTime'\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n width: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-end'\n },\n select: {\n boxShadow: 'none',\n '.MuiOutlinedInput-notchedOutline': {\n border: 0\n },\n '&.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline': {\n border: 0\n },\n '&.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline': {\n border: 0\n },\n [theme.breakpoints.only('xs')]: {\n fontSize: '4dvw'\n }\n },\n icon: {\n [theme.breakpoints.only('xs')]: {\n fontSize: '6dvw'\n }\n },\n colors: {\n fontWeight: '500',\n color: grey[900]\n }\n}))\n\nexport default function KpiDateFilter({\n requestRunning,\n dateRange,\n fetchKpiStatistics,\n search,\n setKpiFilters\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleChange = event => {\n setKpiFilters({ key: 'dateRange', value: event.target.value })\n fetchKpiStatistics()\n search()\n }\n\n return (\n \n \n \n \n )}\n >\n {i18n.get('last_7_days')}\n {i18n.get('last_30_days')}\n {i18n.get('last_3_months')}\n \n \n )\n}\n\nKpiDateFilter.propTypes = {\n requestRunning: PropTypes.bool.isRequired,\n dateRange: PropTypes.string.isRequired,\n\n fetchKpiStatistics: PropTypes.func.isRequired,\n search: PropTypes.func.isRequired,\n setKpiFilters: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport KpiDateFilter from 'components/content_desk_new/content_header/kpi_date_filter'\n\nimport {\n fetchKpiStatisticsStart,\n search,\n setKpiStatisticsFilters\n} from 'actions/content_desk'\n\nimport {\n getCDeskKpiStatisticsFilters,\n getCDeskRequestRunning\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n requestRunning: getCDeskRequestRunning(state),\n dateRange: getCDeskKpiStatisticsFilters(state).get('dateRange')\n})\n\nexport default connect(\n mapStateToProps,\n {\n fetchKpiStatistics: fetchKpiStatisticsStart,\n search,\n setKpiFilters: setKpiStatisticsFilters\n }\n)(KpiDateFilter)\n","import React from 'react'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { Box } from '@mui/material'\n\nimport Tabs from 'containers/content_desk_new/content_header/Tabs'\nimport KpiDateFilter from 'containers/content_desk_new/content_header/KpiDateFilter'\n\nconst useStyles = makeStyles()(theme => ({\n header: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n gap: '0',\n [theme.breakpoints.only('xs')]: {\n flexDirection: 'column',\n gap: '20px'\n }\n }\n}))\n\nexport default function ContentHeader() {\n const { classes } = useStyles()\n\n return (\n \n \n \n \n )\n}\n","import { connect } from 'react-redux'\n\nimport ContentHeader from 'components/content_desk_new/content_header'\n\nconst mapStateToProps = _state => ({})\n\nexport default connect(\n mapStateToProps,\n {}\n)(ContentHeader)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { alpha } from '@mui/material/styles'\nimport {\n Card,\n CardContent,\n Typography,\n Tooltip,\n Box,\n Chip,\n CircularProgress\n} from '@mui/material'\nimport { grey, red, green } from '@mui/material/colors'\nimport InfoIcon from '@mui/icons-material/Info'\nimport TrendingUpIcon from '@mui/icons-material/TrendingUp'\nimport TrendingDownIcon from '@mui/icons-material/TrendingDown'\nimport TrendingFlatIcon from '@mui/icons-material/TrendingFlat'\n\nconst useStyles = makeStyles()({\n card: {\n borderRadius: 20,\n minHeight: 147,\n boxShadow: 'none',\n border: '1px solid',\n borderColor: grey[200]\n },\n cardContent: {\n padding: '15px'\n },\n titleWrapper: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n minHeight: '28px',\n gap: '10px'\n },\n title: {\n fontSize: '13px',\n fontWeight: '500',\n marginBottom: 0,\n opacity: 0.8,\n lineHeight: '1.1'\n },\n infoIcon: {\n color: grey[600]\n },\n diffWrapper: {\n display: 'flex',\n alignItems: 'center',\n gap: '8px'\n },\n value: {\n fontSize: '28px',\n fontWeight: 500,\n marginBottom: 10\n }\n})\n\nconst StatisticsCard = ({\n title,\n info,\n value,\n difference,\n trend,\n type,\n timePeriod,\n loadingKpiStatistics\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n let comparedToLabel = ''\n switch (timePeriod) {\n case 'last_7_days':\n comparedToLabel = i18n.get('compared_to_previous_7_days')\n break\n case 'last_30_days':\n comparedToLabel = i18n.get('compared_to_previous_30_days')\n break\n case 'last_3_months':\n comparedToLabel = i18n.get('compared_to_previous_3_months')\n break\n default:\n break\n }\n\n const renderValue = () => ((value !== null && value !== undefined)\n ? `${value}${type === 'percentage' ? '%' : ''}`\n : '-')\n\n const renderChip = () => {\n let chipBackgroundColor\n let color\n let icon\n\n /* eslint-disable prefer-destructuring */\n if (trend === 'up') {\n chipBackgroundColor = alpha(green[100], 0.3)\n color = green[800]\n icon = \n }\n\n if (trend === 'down') {\n chipBackgroundColor = alpha(red[100], 0.3)\n color = red[800]\n icon = \n }\n\n if (trend === 'neutral') {\n chipBackgroundColor = alpha(grey[300], 0.3)\n color = grey[800]\n icon = \n }\n /* eslint-enable prefer-destructuring */\n\n const label = (difference !== null && difference !== undefined) ? `${trend === 'up' ? '+' : ''}${Math.round(difference)}%` : '-'\n\n return (\n \n \n \n )\n }\n\n return (\n \n \n \n \n {i18n.get(title)}\n \n \n \n \n \n \n {loadingKpiStatistics\n ? (\n \n )\n : (\n renderValue()\n )}\n \n \n {\n loadingKpiStatistics ? (\n \n ) : (\n <>\n {/* {(difference !== null && difference !== undefined) ? renderChip() : '-'} */}\n {renderChip()}\n \n {comparedToLabel}\n \n \n )\n }\n \n \n \n )\n}\n\nStatisticsCard.propTypes = {\n title: PropTypes.string,\n info: PropTypes.string,\n value: PropTypes.number,\n difference: PropTypes.number,\n trend: PropTypes.string,\n type: PropTypes.string,\n timePeriod: PropTypes.string.isRequired,\n loadingKpiStatistics: PropTypes.bool.isRequired\n}\n\nexport default StatisticsCard\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\n\nimport { Grid } from '@mui/material'\n\nimport StatisticsCard from 'components/content_desk_new/kpi_statistics/statistics_card'\n\nimport { toSnakeCase } from 'utils/string'\n\nconst statisticsConfig = {\n email: [\n 'openRate',\n 'clickRate',\n 'deliverabilityRate',\n 'mailsSent'\n ],\n socialMedia: [\n 'pageViews',\n 'pageFollowersGain',\n 'postEngagements',\n 'postImpressions'\n ],\n combined: [\n 'openRate',\n 'clickRate',\n 'postEngagements',\n 'pageFollowersGain'\n ]\n}\n\nexport default function KpiStatistics({\n hasSocialMedia,\n kpiStatistics,\n view,\n timePeriod,\n loadingKpiStatistics\n}) {\n const getMetricsForView = tabView => {\n if (hasSocialMedia) {\n if (tabView === 'email') {\n return statisticsConfig.email\n }\n\n if (tabView === 'social_media') {\n return statisticsConfig.socialMedia\n }\n\n return statisticsConfig.combined\n }\n\n return statisticsConfig.email\n }\n\n const buildKpiCards = (metrics, statistics) => (\n metrics.map(metric => {\n const emailMetric = statistics.getIn(['email', metric])\n const socialMediaMetric = statistics.getIn(['socialMedia', metric])\n const metricData = emailMetric || socialMediaMetric || Map()\n\n return (\n \n \n \n )\n })\n )\n\n const metrics = getMetricsForView(view)\n const kpiCards = buildKpiCards(metrics, kpiStatistics)\n\n return (\n \n {kpiCards}\n \n )\n}\n\nKpiStatistics.propTypes = {\n hasSocialMedia: PropTypes.bool.isRequired,\n kpiStatistics: PropTypes.instanceOf(Map).isRequired,\n view: PropTypes.string.isRequired,\n timePeriod: PropTypes.string.isRequired,\n loadingKpiStatistics: PropTypes.bool.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport { Capabilities } from 'static/constants'\n\nimport KpiStatistics from 'components/content_desk_new/kpi_statistics/'\n\nimport {\n} from 'actions/content_desk'\n\nimport {\n getCDeskKpiStatistics,\n getCDeskContentTabView,\n getCDeskKpiStatisticsFilters,\n getCDeskLoadingKpiStatistics,\n hasCapability\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n hasSocialMedia: (\n !!hasCapability(state, Capabilities.HAS_CONTENT_DESK_LINKED_IN)\n || !!hasCapability(state, Capabilities.HAS_CONTENT_DESK_FACEBOOK)\n ),\n kpiStatistics: getCDeskKpiStatistics(state),\n view: getCDeskContentTabView(state),\n timePeriod: getCDeskKpiStatisticsFilters(state).get('dateRange'),\n loadingKpiStatistics: getCDeskLoadingKpiStatistics(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(KpiStatistics)\n","import React, { useRef, useEffect, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map, fromJS } from 'immutable'\nimport moment from 'moment-timezone'\n\nimport FullCalendar from '@fullcalendar/react'\nimport dayGridPlugin from '@fullcalendar/daygrid'\nimport interactionPlugin from '@fullcalendar/interaction'\nimport allLocales from '@fullcalendar/core/locales-all'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { blue, green, grey, orange, blueGrey, purple } from '@mui/material/colors'\n\nimport {\n Dialog,\n DialogContent,\n DialogTitle,\n IconButton,\n Slide,\n Tooltip,\n Typography,\n Box,\n Divider,\n Menu,\n MenuItem\n} from '@mui/material'\n\nimport MailIcon from '@mui/icons-material/MailOutline'\nimport LinkedInIcon from '@mui/icons-material/LinkedIn'\nimport FacebookIcon from '@mui/icons-material/Facebook'\nimport CampaignIcon from '@mui/icons-material/Campaign'\nimport AccessTimeIcon from '@mui/icons-material/AccessTime'\nimport CheckCircleOutlineIcon from '@mui/icons-material/CheckCircleOutline'\nimport CancelOutlinedIcon from '@mui/icons-material/CancelOutlined'\nimport TimerOutlinedIcon from '@mui/icons-material/TimerOutlined'\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport NrxProgressBar from 'components/nrx_progress_bar/NrxProgressBar'\n\nimport { calendarEvents } from 'utils/calendar_events'\n\nimport { getLocale } from 'utils/date'\n\nconst Transition = React.forwardRef((props, ref) => (\n \n))\nTransition.displayName = 'Transition'\n\nconst useStyles = makeStyles()(theme => ({\n content: {\n '& .fc-event-past': {\n marginLeft: '2px',\n marginRight: '2px'\n },\n '& .fc-button': {\n backgroundColor: `${theme.palette.primary.main} !important`,\n textTransform: 'uppercase',\n border: 'none',\n '&:hover': {\n backgroundColor: `${theme.palette.primary.main} !important`,\n opacity: 0.8\n },\n '&:focus': {\n boxShadow: 'none !important'\n },\n '&:active': {\n backgroundColor: `${theme.palette.primary.main} !important`,\n opacity: 0.8\n }\n },\n '& .fc-day-other': {\n backgroundColor: grey[100]\n },\n '& .fc-day-today': {\n backgroundColor: 'transparent !important',\n outline: '2px solid black',\n outlineOffset: '-2px',\n '& .fc-daygrid-day-number': {\n fontWeight: 'bold'\n }\n }\n },\n fullCalendarEvent: {\n border: 'none !important',\n borderColor: 'transparent !important',\n backgroundColor: 'transparent !important'\n },\n dialogTitle: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between'\n },\n tooltipTitle: {\n whiteSpace: 'pre-line'\n },\n draft: {\n backgroundColor: grey[500]\n },\n reviewPending: {\n backgroundColor: orange[500]\n },\n revisionsNeeded: {\n backgroundColor: purple[500]\n },\n approved: {\n backgroundColor: green[500]\n },\n active: {\n backgroundColor: blue[500]\n },\n closed: {\n backgroundColor: blueGrey[500]\n },\n typeIcon: {\n marginRight: 5,\n fontSize: '20px'\n },\n statusIcon: {\n marginRight: 5,\n fontSize: '20px'\n },\n campaignEvent: {\n borderRadius: 6,\n padding: '2px 5px 2px 5px',\n display: 'flex',\n alignItems: 'center',\n cursor: 'pointer'\n },\n contentEvent: {\n paddingLeft: '5px',\n paddingRight: '5px',\n height: '25px',\n display: 'flex',\n alignItems: 'center',\n width: '100%',\n '&:hover': {\n borderRadius: 6,\n backgroundColor: grey[200]\n },\n cursor: 'pointer'\n },\n contentInfoWrapper: {\n width: '100%',\n display: 'flex',\n alignItems: 'center',\n minWidth: 0\n },\n contentStatusCircle: {\n marginRight: '5px',\n width: '14px',\n minWidth: '14px',\n height: '14px',\n borderRadius: '50%'\n },\n eventLabel: {\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n cursor: 'pointer',\n fontSize: '14px'\n },\n overlay: {\n zIndex: 10,\n position: 'fixed',\n height: '100%',\n width: '100%',\n backgroundColor: 'rgba(255, 255, 255, 0.2)'\n },\n progressBar: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n width: '100%',\n height: '90%'\n },\n infoContainer: {\n display: 'flex',\n gap: '20px'\n },\n calendarInfo: {\n display: 'flex',\n alignItems: 'center',\n gap: '10px'\n },\n calendarInfoItem: {\n display: 'flex',\n alignItems: 'center',\n gap: '5px'\n },\n calendarInfoItemColor: {\n borderRadius: '50%',\n width: '14px',\n height: '14px'\n },\n calendarInfoItemTitle: {\n fontSize: '14px',\n fontWeight: 500\n },\n calendarInfoItemLabel: {\n fontSize: '14px',\n fontWeight: 400\n },\n campaignEventProgressLabel: {\n cursor: 'pointer',\n marginLeft: '10px',\n fontSize: '14px'\n },\n campaignEventLabelContainer: {\n width: '100%',\n display: 'flex',\n justifyContent: 'space-between',\n overflow: 'hidden',\n textOverflow: 'ellipsis'\n },\n contentStatusWrapper: {\n display: 'flex',\n alignItems: 'center'\n },\n otsIconWrapper: {\n display: 'flex',\n alignItems: 'center',\n height: '14px',\n marginLeft: '3px',\n marginRight: '5px'\n }\n}))\n\nconst CalendarDialog = ({\n events,\n open,\n hasContentDeskModule,\n calendarDate,\n onClose,\n onContentClick,\n onCampaignClick,\n onNewContentClick,\n onNewCampaignClick,\n fetchContents,\n setCalendarDate,\n requestRunning\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const wrapperRef = useRef(null)\n const [newEventTop, setNewEventTop] = useState(200)\n const [newEventLeft, setNewEventLeft] = useState(200)\n const [newEventOpen, setNewEventOpen] = useState(false)\n const [newEventStartDate, setNewEventStartDate] = useState(new Date())\n const [newEventEndDate, setNewEventEndDate] = useState(new Date())\n const [showOuterTooltip, setShowOuterTooltip] = useState(true)\n\n const convertedEvents = calendarEvents(events.get('items'))\n\n useEffect(() => {\n if (open && calendarDate) {\n fetchContents(calendarDate)\n }\n }, [open, calendarDate])\n\n const handleNewEventClose = () => {\n setNewEventOpen(false)\n }\n\n const handleNewContentClick = () => {\n onNewContentClick({\n plannedFor: moment(newEventEndDate).subtract(12, 'hours').toDate()\n })\n handleNewEventClose()\n }\n\n const handleNewCampaignClick = () => {\n onNewCampaignClick({\n startDate: moment(newEventStartDate).add(12, 'hours').toDate(),\n endDate: moment(newEventEndDate).subtract(12, 'hours').toDate()\n })\n handleNewEventClose()\n }\n\n const handleEventClick = extendedProps => {\n if (extendedProps.eventType === 'content') {\n return onContentClick(fromJS(extendedProps.content))\n }\n\n return onCampaignClick(extendedProps.campaign)\n }\n\n const onCalendarNavClick = calendarApi => {\n setCalendarDate(moment(calendarApi.getDate()).format('YYYY-MM-DD'))\n }\n\n const onDaySelect = info => {\n setNewEventStartDate(info.start)\n setNewEventEndDate(info.end)\n\n if (info.jsEvent) {\n setNewEventTop(info.jsEvent.clientY)\n setNewEventLeft(info.jsEvent.clientX)\n setNewEventOpen(true)\n }\n }\n\n const renderCampaign = eventInfo => {\n const campaignSummary = eventInfo.event.extendedProps.campaign.summary\n\n const campaign = () => (\n \n \n \n \n {eventInfo.event.title}\n \n \n {eventInfo.event.extendedProps.campaign.progress}%\n \n \n \n )\n\n if (!campaignSummary) {\n return campaign()\n }\n\n const tooltipTitle = (\n \n {campaignSummary}\n \n )\n\n return (\n \n {campaign()}\n \n )\n }\n\n const renderContent = eventInfo => {\n const statusClass = classes[eventInfo.event.extendedProps.approvalStatus]\n const tooltipTitle = (\n \n {`Campaign: ${eventInfo.event.extendedProps.campaignName} \\n Content: ${eventInfo.event.title}`}\n \n )\n\n const tooltipStatus = (\n \n {i18n.get(eventInfo.event.extendedProps.status)} {`(${eventInfo.event.extendedProps.time})`}\n \n )\n\n return (\n \n \n setShowOuterTooltip(true)}\n onMouseLeave={() => setShowOuterTooltip(false)}\n >\n {eventInfo.event.extendedProps.type === 'email' && }\n {eventInfo.event.extendedProps.type === 'linkedin' && }\n {eventInfo.event.extendedProps.type === 'facebook' && }\n {eventInfo.event.extendedProps.type === 'ots_press_release' && (\n \n \n \n )}\n \n setShowOuterTooltip(false)}\n onMouseLeave={() => setShowOuterTooltip(true)}\n >\n {eventInfo.event.extendedProps.status === 'planned' && }\n {eventInfo.event.extendedProps.status === 'scheduled' && }\n {eventInfo.event.extendedProps.status === 'released' && }\n {eventInfo.event.extendedProps.status === 'failed' && }\n \n \n \n {eventInfo.event.title}\n \n \n \n\n )\n }\n\n const renderEventContent = eventInfo => {\n if (eventInfo.event.extendedProps.eventType === 'campaign') {\n return renderCampaign(eventInfo)\n }\n\n return renderContent(eventInfo)\n }\n\n const renderInfo = () => (\n \n \n {i18n.get('campaign')}:\n \n \n {i18n.get('active')}\n \n \n \n {i18n.get('closed')}\n \n \n \n \n {i18n.get('content')}:\n \n \n {i18n.get('draft')}\n \n \n \n {i18n.get('revisions_needed')}\n \n \n \n {i18n.get('review_pending')}\n \n \n \n {i18n.get('approved')}\n \n \n \n )\n\n const calendarConfig = {\n customButtons: {\n prevButton: {\n text: 'prev',\n click() {\n const calendarApi = wrapperRef.current.getApi()\n calendarApi.prev()\n onCalendarNavClick(calendarApi)\n }\n },\n nextButton: {\n text: 'next',\n click() {\n const calendarApi = wrapperRef.current.getApi()\n calendarApi.next()\n onCalendarNavClick(calendarApi)\n }\n },\n todayButton: {\n text: i18n.get('today'),\n click() {\n const calendarApi = wrapperRef.current.getApi()\n calendarApi.today()\n onCalendarNavClick(calendarApi)\n }\n }\n },\n headerToolbar: {\n left: 'title',\n center: '',\n right: 'prevButton,nextButton,todayButton'\n },\n buttonIcons: {\n prevButton: 'chevron-left',\n nextButton: 'chevron-right'\n },\n titleFormat: {\n year: 'numeric',\n month: 'long'\n },\n initialDate: (() => {\n if (convertedEvents.isEmpty()) {\n return moment().format('YYYY-MM-DD')\n }\n\n return moment(convertedEvents.last().start).format('YYYY-MM-DD')\n })(),\n plugins: [dayGridPlugin, interactionPlugin],\n firstDay: 1,\n dayMaxEventRows: true,\n editable: false,\n selectable: true,\n select: onDaySelect\n }\n\n const renderActionMenu = () => {\n if (hasContentDeskModule) {\n return (\n \n {i18n.get('new_content')}\n {i18n.get('new_campaign')}\n \n )\n }\n\n return null\n }\n\n return (\n \n onClose()}\n fullWidth\n fullScreen\n TransitionComponent={Transition}\n >\n \n onClose()}\n >\n \n \n {renderInfo()}\n \n \n {requestRunning && (\n \n \n \n \n \n )}\n {\n if (hasContentDeskModule) {\n handleEventClick(e.event.extendedProps)\n }\n }}\n eventTimeFormat={{\n hour: '2-digit',\n minute: '2-digit',\n meridiem: false\n }}\n eventClassNames={() => [classes.fullCalendarEvent]}\n {...calendarConfig}\n />\n \n \n {renderActionMenu()}\n \n )\n}\n\nCalendarDialog.propTypes = {\n events: PropTypes.instanceOf(Map).isRequired,\n open: PropTypes.bool.isRequired,\n hasContentDeskModule: PropTypes.bool.isRequired,\n calendarDate: PropTypes.string.isRequired,\n requestRunning: PropTypes.bool.isRequired,\n\n onClose: PropTypes.func.isRequired,\n onContentClick: PropTypes.func.isRequired,\n onCampaignClick: PropTypes.func.isRequired,\n onNewContentClick: PropTypes.func.isRequired,\n onNewCampaignClick: PropTypes.func.isRequired,\n fetchContents: PropTypes.func.isRequired,\n setCalendarDate: PropTypes.func.isRequired\n}\n\nexport default CalendarDialog\n","import { connect } from 'react-redux'\n\nimport { Capabilities } from 'static/constants'\n\nimport CalendarDialog from 'components/content_desk_new/calendar_dialog'\n\nimport {\n getCDeskCalendarEvents,\n getCDeskShowCalendarDialog,\n getCDeskRequestRunning,\n getCDeskCalendarDate,\n hasCapability\n} from 'selectors'\n\nimport {\n closeCalendarDialog,\n openNewContentDialog,\n onCalendarContentClick,\n fetchCalendarEventsStart,\n openCampaignForm,\n setCalendarDate\n} from 'actions/content_desk'\n\nconst mapStateToProps = state => ({\n events: getCDeskCalendarEvents(state),\n hasContentDeskModule: !!hasCapability(state, Capabilities.HAS_CONTENT_DESK_MODULE),\n open: getCDeskShowCalendarDialog(state),\n calendarDate: getCDeskCalendarDate(state),\n requestRunning: getCDeskRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose: closeCalendarDialog,\n onContentClick: onCalendarContentClick,\n onCampaignClick: openCampaignForm,\n onNewContentClick: openNewContentDialog,\n onNewCampaignClick: openCampaignForm,\n fetchContents: fetchCalendarEventsStart,\n setCalendarDate\n }\n)(CalendarDialog)\n","/* global window */\nimport { useEffect, useRef } from 'react'\n\n/* eslint-disable no-param-reassign */\nexport default function useBeforeUnload(fn, unsavedChanges = false) {\n const eventListenerRef = useRef()\n\n /* istanbul ignore next */\n useEffect(() => {\n eventListenerRef.current = event => {\n const returnValue = fn?.(event)\n\n // Handle legacy `event.returnValue` property\n // https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event\n if (typeof returnValue === 'string') {\n event.returnValue = returnValue\n }\n\n // Chrome doesn't support `event.preventDefault()` on `BeforeUnloadEvent`,\n // instead it requires `event.returnValue` to be set\n // https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload#browser_compatibility\n if (event.defaultPrevented) {\n event.returnValue = ''\n }\n\n return event\n }\n }, [fn])\n\n useEffect(() => {\n const eventListener = e => eventListenerRef.current(e)\n\n if (unsavedChanges) {\n window.addEventListener('beforeunload', eventListener)\n }\n\n return () => {\n window.removeEventListener('beforeunload', eventListener)\n }\n }, [unsavedChanges])\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle\n} from '@mui/material'\n\nimport { Button } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n dialog: {\n padding: '25px',\n margin: '1em 1em 1em 0em'\n },\n title: {\n color: !theme.isDark && '#404040'\n },\n button: {\n marginBottom: '0.5em',\n width: '120px'\n },\n contentText: {\n color: !theme.isDark && '#757575'\n }\n}))\n\nconst CloseConfirmDialog = ({ open, onBack, onClose }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleBack = () => {\n onBack()\n }\n\n const handleClose = () => {\n onBack()\n onClose()\n }\n\n return (\n \n \n {i18n.get('not_saved_warning')}\n \n \n \n {i18n.get('confirm_close')}\n \n \n \n \n {i18n.get('yes')}\n \n \n {i18n.get('no')}\n \n \n \n )\n}\n\nCloseConfirmDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n onBack: PropTypes.func.isRequired,\n onClose: PropTypes.func.isRequired\n}\n\nexport default CloseConfirmDialog\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport moment from 'moment-timezone'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Dialog, RaisedPrimaryButton, Button } from 'containers/themed'\n\nimport { DialogActions, Typography } from '@mui/material'\nimport WarningIcon from '@mui/icons-material/Warning'\nimport { red } from '@mui/material/colors'\n\nconst useStyles = makeStyles()({\n warningWrapper: {\n display: 'flex',\n alignItems: 'center',\n color: red[500],\n marginTop: '1em'\n },\n warning: {\n marginLeft: '0.3em'\n }\n})\n\nconst PublishConfirmDialog = ({\n open,\n status,\n onChange,\n onCloseDialog,\n onSave\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const notApproved = ['draft', 'review_pending', 'revisions_needed'].includes(status)\n\n const handlePublish = () => {\n const currentDateAndTime = moment.utc().local()\n\n onChange({ key: 'scheduledFor', value: currentDateAndTime })\n onSave({ closeOldEditContentDialog: true })\n onCloseDialog()\n }\n\n const renderWarning = () => (\n
\n \n {i18n.get('content_not_approved')}\n
\n )\n\n return (\n \n {i18n.get('publish_confirmation')}\n {notApproved && renderWarning()}\n \n \n \n {i18n.get('yes')}\n \n \n \n )\n}\n\nPublishConfirmDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n status: PropTypes.string.isRequired,\n onChange: PropTypes.func.isRequired,\n onCloseDialog: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired\n}\n\nexport default PublishConfirmDialog\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport useColors from 'hooks/useColors'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { keyframes } from 'tss-react'\nimport { Paper, Divider } from '@mui/material'\n\nimport { Button } from 'containers/themed'\n\nconst ButtonContainer = props =>
\n\nconst useStyles = makeStyles()(theme => ({\n switchActionsContainer: {\n display: 'flex',\n margin: '3em 2em 0em 1em',\n [theme.breakpoints.only('xs')]: {\n margin: '3em 0 1.5em 0'\n }\n },\n switchActions: {\n display: 'flex',\n width: '100%',\n height: '64px !important'\n },\n switchAction: {\n position: 'relative',\n flexGrow: 1,\n flexBasis: 0,\n\n '& > button': {\n minWidth: '100%',\n minHeight: '100%',\n\n [theme.breakpoints.only('xs')]: {\n fontSize: '7pt'\n }\n }\n },\n switchActionContent: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center'\n },\n activeBorder: {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%',\n height: 3,\n animation: `${keyframes`\n from {\n transform: scale(0);\n }\n to {\n transform: scale(1);\n }\n `} 300ms;`\n },\n divider: {\n marginBottom: '1.5em'\n }\n}))\n\nexport default function Navigation({\n view,\n content,\n onChange\n}) {\n const i18n = useI18n()\n const colors = useColors()\n const { classes } = useStyles()\n\n const renderNavigationAction = (buttonView, label, isDisabled = false, Comp = ButtonContainer) => {\n const title = null\n\n let active\n\n if (view === buttonView) {\n active = (\n \n )\n }\n\n return (\n \n onChange(buttonView)}\n disabled={isDisabled}\n >\n
\n {label}\n
\n \n\n {active}\n \n )\n }\n\n const buttons = []\n\n buttons.push(\n renderNavigationAction(\n 'create_content',\n `${i18n.get('setting')}`\n )\n )\n\n buttons.push(\n renderNavigationAction(\n 'content_editor',\n `${i18n.get('content_editor')}`,\n content.get('type') === null\n )\n )\n\n buttons.push(\n renderNavigationAction(\n 'attachments',\n `${i18n.get('attachments')}`,\n content.getIn(['type', 'id']) !== 'email'\n )\n )\n\n buttons.push(\n renderNavigationAction(\n 'select_recipients',\n `${i18n.get('recipients')}`,\n content.getIn(['type', 'id']) !== 'email'\n )\n )\n\n buttons.push(\n renderNavigationAction(\n 'distribute',\n i18n.get('overview')\n )\n )\n\n if (buttons.length <= 1) {\n return null\n }\n\n return (\n <>\n \n
\n {buttons}\n
\n \n \n \n )\n}\n\nNavigation.propTypes = {\n view: PropTypes.string.isRequired,\n content: PropTypes.instanceOf(Map).isRequired,\n\n onChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Navigation from 'components/content_desk/content_edit_dialog/navigation'\nimport { changeNewContentDialogView } from 'actions/content_desk'\nimport { getCDeskNewDialogView, getCDeskContentFormData } from 'selectors'\n\nconst mapStateToProps = state => ({\n view: getCDeskNewDialogView(state),\n content: getCDeskContentFormData(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: changeNewContentDialogView\n }\n)(Navigation)\n","import React, { useEffect, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { fromJS, Map, List } from 'immutable'\nimport useI18n from 'hooks/useI18n'\n\nimport {\n TextField,\n Grid,\n CircularProgress,\n Autocomplete as MuiAutocomplete,\n InputAdornment,\n Tooltip\n} from '@mui/material'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { styled } from '@mui/material/styles'\nimport { green, red } from '@mui/material/colors'\n\nimport AddIcon from '@mui/icons-material/Add'\nimport InfoIcon from '@mui/icons-material/Info'\n\nimport { Autocomplete, IconButton, Input } from 'containers/themed'\n\nimport { mapToOptions } from 'utils/autocomplete'\n\nconst useStyles = makeStyles()({\n titleGridContainer: {\n marginBottom: '18px'\n },\n campaignAutocomplete: {\n width: '93%'\n },\n campaignAutocompleteContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center'\n },\n circularLoader: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '60vh'\n },\n bottomActionsContainer: {\n display: 'flex',\n justifyContent: 'flex-end',\n padding: '0em 2em 0em 2em',\n marginTop: '2em',\n marginBottom: '0.5em'\n },\n picker: {\n '& > div': {\n width: '100%'\n }\n },\n subjectLengthInfo: {\n marginTop: '0.5em',\n textAlign: 'right'\n },\n validSubjectLength: {\n color: green[500]\n },\n invalidSubjectLength: {\n fontWeight: 'bold',\n color: red[500]\n }\n})\n\nexport const GridBreak = styled('div')({ width: '100%' })\n\nconst mapDomainsToOptions = domains => domains.map(d => ({\n value: d.get('name'),\n label: '@'.concat(d.get('name'))\n})).toJS()\n\nexport default function ContentForm({\n campaignOptionsLoading,\n data,\n config,\n defaultDomains,\n campaigns,\n types,\n emailEditorLoading,\n onChange,\n openCampaignForm,\n resetSocialMediaPostsAndUploads\n}) {\n if (!data.get('ccdCampaign')) {\n return null\n }\n\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const title = data.get('title')\n const preHeader = data.get('preHeader')\n\n const [campaign, setCampaign] = useState(data.get('ccdCampaign').toJS())\n const [type, setType] = useState(data.get('type', types.first()).toJS())\n const [subject, setSubject] = useState(data.get('subject') || '')\n const [senderEmailLocal, setSenderEmailLocal] = useState((data.get('senderMail') || '').split('@')[0])\n const [senderEmailDomain, setSenderEmailDomain] = useState((data.get('senderMail') || '').split('@')[1])\n const [senderMail, setSenderMail] = useState(data.get('senderMail'))\n const [senderName, setSenderName] = useState(data.get('senderName'))\n\n const typeIsMail = type.value === 1\n const activeCampaigns = campaigns.filter(c => c.get('active') === true)\n\n const typeOptions = mapToOptions(types)\n const campaignOptions = mapToOptions(activeCampaigns)\n\n const domainsOptions = defaultDomains.toJS()\n .map(o => ({ value: o.domain, label: '@'.concat(o.domain) }))\n .concat(mapDomainsToOptions(config.get('ccdAllowedDomains') || List()))\n\n useEffect(() => {\n onChange({\n subject,\n senderMail,\n senderName,\n title,\n ccdCampaign: fromJS(campaign),\n type: fromJS(type),\n preHeader\n })\n }, [campaign, type, subject, senderMail, senderName])\n\n const handleSubjectChange = e => setSubject(e.target.value)\n const handlePreHeaderChange = e => onChange({ preHeader: e.target.value })\n const handleNameChange = e => setSenderName(e.target.value)\n const handleTitleChange = e => onChange({ title: e.target.value })\n const handleCampaignChange = value => setCampaign(value)\n const handleTypeChange = value => {\n resetSocialMediaPostsAndUploads()\n setType(value)\n }\n\n const handleMailChange = value => {\n setSenderEmailLocal(value)\n setSenderMail(value.concat('@').concat(senderEmailDomain))\n }\n\n const handleSenderEmailDomainChange = value => {\n setSenderEmailDomain(value)\n setSenderMail(senderEmailLocal.concat('@').concat(value))\n }\n\n const maxSubjectLength = 255\n const subjectLength = subject.length\n let subjectLengthClasses = `${classes.subjectLengthInfo} ${classes.validSubjectLength}`\n\n if (subjectLength > maxSubjectLength) {\n subjectLengthClasses = `${classes.subjectLengthInfo} ${classes.invalidSubjectLength}`\n }\n\n const renderSubjectGridItem = () => {\n if (!typeIsMail) {\n return null\n }\n\n return (\n \n \n
\n {subjectLength}/{maxSubjectLength}\n
\n \n )\n }\n\n const renderPreHeaderGridItem = () => {\n if (!typeIsMail) {\n return null\n }\n\n return (\n \n \n {emailEditorLoading ? (\n
\n \n
\n ) : (\n \n \n \n )}\n \n )\n }}\n />\n \n )\n }\n\n const renderMailGridItem = () => {\n if (!typeIsMail) {\n return null\n }\n\n return (\n \n handleMailChange(event.target.value)}\n InputProps={{\n endAdornment: (\n \n option.value === senderEmailDomain) || domainsOptions[0]}\n onChange={(_event, option) => handleSenderEmailDomainChange(option.value)}\n sx={{ width: '100%' }}\n renderInput={params => (\n \n )}\n />\n \n \n \n \n )\n }}\n />\n \n )\n }\n\n const renderNameGridItem = () => {\n if (!typeIsMail) {\n return null\n }\n\n return (\n \n \n \n )\n }\n\n const renderTitleGridItem = () => (\n \n \n \n )\n\n const renderCampaignGridItem = () => (\n \n
\n handleCampaignChange(value)}\n options={campaignOptions}\n value={campaign}\n placeholder=\"\"\n label={i18n.get('choose_campaign')}\n />\n openCampaignForm()}\n title={i18n.get('new_campaign')}\n >\n \n \n
\n \n )\n\n const renderTypeGridItem = () => (\n \n handleTypeChange(value)}\n options={typeOptions}\n value={type}\n placeholder=\"\"\n label={i18n.get('channel')}\n />\n \n )\n\n if (campaignOptionsLoading) {\n return (\n
\n \n
\n )\n }\n\n return (\n <>\n \n\n {renderCampaignGridItem()}\n {renderTypeGridItem()}\n {renderTitleGridItem()}\n \n {renderNameGridItem()}\n {renderMailGridItem()}\n {renderSubjectGridItem()}\n {renderPreHeaderGridItem()}\n \n \n )\n}\n\nContentForm.propTypes = {\n campaignOptionsLoading: PropTypes.bool.isRequired,\n data: PropTypes.instanceOf(Map).isRequired,\n config: PropTypes.instanceOf(Map).isRequired,\n defaultDomains: PropTypes.instanceOf(List).isRequired,\n campaigns: PropTypes.instanceOf(List).isRequired,\n types: PropTypes.instanceOf(List).isRequired,\n emailEditorLoading: PropTypes.bool.isRequired,\n\n onChange: PropTypes.func.isRequired,\n openCampaignForm: PropTypes.func.isRequired,\n resetSocialMediaPostsAndUploads: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\nimport { getDefaultDomains } from 'utils/mailgun'\n\nimport ContentForm from 'components/content_desk/content_edit_dialog/content_form'\nimport {\n updateContent as onChange,\n openCampaignForm,\n resetSocialMediaPostsAndUploads\n} from 'actions/content_desk'\n\nimport {\n getCDeskCampaignDropdownOptionsLoading,\n getCDeskContentFormData,\n getUserLocale,\n getCDeskCampaignDropdownOptions,\n getStaticCdContentTypes,\n getCDeskConfig,\n getCDeskEmailEditorLoadingStatus\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n campaignOptionsLoading: getCDeskCampaignDropdownOptionsLoading(state),\n data: getCDeskContentFormData(state),\n config: getCDeskConfig(state),\n defaultDomains: getDefaultDomains(),\n locale: getUserLocale(state),\n campaigns: getCDeskCampaignDropdownOptions(state),\n types: getStaticCdContentTypes(state),\n emailEditorLoading: getCDeskEmailEditorLoadingStatus(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange,\n openCampaignForm,\n resetSocialMediaPostsAndUploads\n }\n)(ContentForm)\n","import React, { useState, useEffect, useRef } from 'react'\nimport { fromJS, List } from 'immutable'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Grid,\n TextField,\n Autocomplete,\n CircularProgress,\n Chip,\n Collapse,\n FormControlLabel,\n Switch,\n Tooltip,\n Alert\n} from '@mui/material'\nimport { red } from '@mui/material/colors'\nimport DeleteForeverIcon from '@mui/icons-material/DeleteForever'\n\nimport { listUniqueByKeyName } from 'utils/immutable'\n\nimport { Button } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n recipientList: {\n display: 'flex',\n flexWrap: 'wrap',\n gap: 5,\n marginBottom: '1em'\n },\n row1: {\n opacity: 1\n },\n row2: {\n opacity: 0.7\n },\n row3: {\n opacity: 0.4,\n WebkitMaskImage: 'linear-gradient(to bottom, white 30%, transparent 100%)',\n maskImage: 'linear-gradient(to bottom, white 30%, transparent 100%)'\n },\n switchButton: {\n textAlign: 'right'\n },\n switchButtonHint: {\n fontSize: '10pt',\n color: '#7C7C7C',\n marginTop: '8px'\n },\n bottomActionsContainer: {\n marginTop: '2em',\n padding: '0em 0em 0em 2em',\n display: 'flex',\n justifyContent: 'flex-end'\n },\n nextButton: {\n marginLeft: '1em'\n },\n recipientsActions: {\n display: 'flex',\n gap: 20,\n marginBottom: '1em'\n }\n})\n\nconst SelectRecipientsForm = ({\n recipients,\n contactDropdownOptions,\n contactDropdownOptionsLoading,\n distributionListDropdownOptions,\n distributionListDropdownOptionsLoading,\n isDistListsLocked,\n fetchContactDropdownOptionsStart,\n fetchDistributionListDropdownOptionsStart,\n setContentFormData,\n saveContentStart\n}) => {\n const recipientsRef = useRef(null)\n const collapsedSize = 110\n const [contactOpen, setContactOpen] = useState(false)\n const [contactOptions, setContactOptions] = useState(contactDropdownOptions.filter(contact => !contact.get('unsubscribed')).toJS())\n const [contactValue, setContactValue] = useState(null)\n const [contactInputValue, setContactInputValue] = useState('')\n const [dlOpen, setDlOpen] = useState(false)\n const [dlOptions, setDlOptions] = useState(distributionListDropdownOptions.toJS())\n const [dlValue, setDlValue] = useState(null)\n const [dlInputValue, setDlInputValue] = useState('')\n const [showRecipients, setShowRecipients] = useState(false)\n const [recipientsHeight, setRecipientsHeight] = useState(0)\n const { classes } = useStyles()\n const i18n = useI18n()\n\n useEffect(() => {\n fetchDistributionListDropdownOptionsStart({ searchString: dlInputValue })\n }, [dlInputValue])\n\n useEffect(() => {\n fetchContactDropdownOptionsStart({ searchString: contactInputValue })\n }, [contactInputValue])\n\n useEffect(() => {\n setContactOptions(contactDropdownOptions.filter(contact => !contact.get('unsubscribed')).toJS())\n setDlOptions(distributionListDropdownOptions.toJS())\n }, [distributionListDropdownOptions, contactDropdownOptions])\n\n useEffect(() => {\n setRecipientsHeight(recipientsRef.current.clientHeight)\n })\n\n const handleShowAllRecipients = () => setShowRecipients(prevState => !prevState)\n\n const handleClearAll = () => setContentFormData({ key: 'recipients', value: List() })\n\n const handleDelete = currentRecipient => {\n const newRecipients = recipients.filter(\n r => r.get('id') !== currentRecipient.get('id') && r.get('contactId') !== currentRecipient.get('contactId')\n )\n\n setContentFormData({\n key: 'recipients',\n value: newRecipients\n })\n }\n\n const dlHandleOnChange = (_event, value) => {\n if (value) {\n const selectedRecipients = value.contacts.map(c => {\n const contact = c\n contact.contactId = contact.id\n contact.distributionListId = value.id\n contact.new = true\n contact.distributionListName = value.name\n delete contact.createdAt\n\n return contact\n })\n const newRecipients = [...selectedRecipients, ...recipients.toJS()]\n const uniqueRecipients = listUniqueByKeyName(fromJS(newRecipients), 'contactId')\n\n setContentFormData({ key: 'recipients', value: uniqueRecipients })\n }\n\n setDlValue(null)\n setDlInputValue('')\n }\n\n const contactHandleOnChange = (_event, value) => {\n if (value) {\n const contact = value\n contact.contactId = value.id\n contact.new = true\n\n const newRecipients = [contact, ...recipients.toJS()]\n const uniqueRecipients = listUniqueByKeyName(fromJS(newRecipients), 'contactId')\n\n setContentFormData({ key: 'recipients', value: uniqueRecipients })\n }\n\n setContactValue(null)\n setContactInputValue('')\n }\n\n const onSwitchClick = (_event, _value) => {\n saveContentStart({ switchToContactManagement: true })\n }\n\n const renderDlAutocomplete = () => (\n {\n setDlOpen(true)\n }}\n onClose={() => {\n setDlOpen(false)\n }}\n filterOptions={x => x}\n getOptionLabel={option => option.name}\n options={dlOptions}\n loading={distributionListDropdownOptionsLoading}\n onChange={dlHandleOnChange}\n onInputChange={(_event, newInputValue) => {\n setDlInputValue(newInputValue)\n }}\n renderInput={params => (\n \n {distributionListDropdownOptionsLoading ? (\n \n ) : null}\n {params.InputProps.endAdornment}\n \n )\n }}\n />\n )}\n />\n )\n\n const renderContactAutocomplete = () => (\n {\n setContactOpen(true)\n }}\n onClose={() => {\n setContactOpen(false)\n }}\n filterOptions={x => x}\n getOptionLabel={option => `${option.firstName || ''} ${option.lastName} [${option.mail}]`}\n options={contactOptions}\n loading={contactDropdownOptionsLoading}\n onChange={contactHandleOnChange}\n onInputChange={(_event, newInputValue) => {\n setContactInputValue(newInputValue)\n }}\n renderInput={params => (\n \n {contactDropdownOptionsLoading ? (\n \n ) : null}\n {params.InputProps.endAdornment}\n \n )\n }}\n />\n )}\n />\n )\n\n const renderRecipients = () => recipients.map(\n currentRecipient => (\n \n \n handleDelete(currentRecipient)}\n />\n \n
\n )\n )\n\n useEffect(() => {\n const recipientsNode = recipientsRef.current\n let lastTop = -1\n let totalRows = 0\n\n Array.from(recipientsNode.children).forEach(child => {\n if (child.offsetTop !== lastTop) {\n totalRows += 1\n lastTop = child.offsetTop\n }\n\n // eslint-disable-next-line no-param-reassign\n child.className = ''\n })\n\n if (!showRecipients && totalRows >= 3) {\n lastTop = -1\n let row = 0\n Array.from(recipientsNode.children).forEach(child => {\n if (child.offsetTop !== lastTop) {\n row += 1\n lastTop = child.offsetTop\n }\n\n // eslint-disable-next-line no-param-reassign\n child.className = classes[`row${row}`]\n })\n }\n }, [recipients, showRecipients])\n\n return (\n <>\n \n \n {renderDlAutocomplete()}\n {isDistListsLocked && (\n \n {i18n.get('distribution_lists_limit_reached')}\n \n )}\n \n \n {renderContactAutocomplete()}\n \n \n \n {i18n.get('contactManagement')}\n \n
{i18n.get('ccd_switch_button_hint')}
\n \n \n
\n {recipients.size > 2 && (\n }\n >\n\n {i18n.get('clear_all')}\n \n )}\n {recipientsHeight > 70 && (\n \n )}\n label={i18n.get('show_all')}\n />\n )}\n
\n \n \n {renderRecipients()}\n
\n \n \n \n \n )\n}\n\nSelectRecipientsForm.propTypes = {\n recipients: PropTypes.instanceOf(List).isRequired,\n contactDropdownOptions: PropTypes.instanceOf(List).isRequired,\n contactDropdownOptionsLoading: PropTypes.bool.isRequired,\n distributionListDropdownOptions: PropTypes.instanceOf(List).isRequired,\n distributionListDropdownOptionsLoading: PropTypes.bool.isRequired,\n isDistListsLocked: PropTypes.bool.isRequired,\n\n fetchContactDropdownOptionsStart: PropTypes.func.isRequired,\n fetchDistributionListDropdownOptionsStart: PropTypes.func.isRequired,\n setContentFormData: PropTypes.func.isRequired,\n saveContentStart: PropTypes.func.isRequired\n}\n\nexport default SelectRecipientsForm\n","import { connect } from 'react-redux'\n\nimport SelectRecipientsForm from 'components/content_desk/content_edit_dialog/select_recipients_form'\n\nimport {\n getCDeskContentFormDataRecipients,\n getCDeskContactDropdownOptions,\n getCDeskContactDropdownOptionsLoading,\n getCDeskDistributionListDropdownOptions,\n getCDeskDistributionListDropdownOptionsLoading,\n getCDeskIsDistributionListsLocked\n} from 'selectors'\n\nimport {\n fetchContactDropdownOptionsStart,\n fetchDistributionListDropdownOptionsStart,\n setContentFormData,\n saveContentStart\n} from 'actions/content_desk'\n\nconst mapStateToProps = state => ({\n recipients: getCDeskContentFormDataRecipients(state),\n contactDropdownOptions: getCDeskContactDropdownOptions(state),\n contactDropdownOptionsLoading: getCDeskContactDropdownOptionsLoading(state),\n distributionListDropdownOptions: getCDeskDistributionListDropdownOptions(state),\n distributionListDropdownOptionsLoading: getCDeskDistributionListDropdownOptionsLoading(state),\n isDistListsLocked: getCDeskIsDistributionListsLocked(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n fetchContactDropdownOptionsStart,\n fetchDistributionListDropdownOptionsStart,\n setContentFormData,\n saveContentStart\n }\n)(SelectRecipientsForm)\n","/* global window */\nimport React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, fromJS } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport { ImageList, ImageListItemBar, ImageListItem, Typography } from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\nimport { grey } from '@mui/material/colors'\nimport useI18n from 'hooks/useI18n'\nimport { Document, Page } from 'utils/pdf'\n\nimport { IconButton } from 'containers/themed'\nimport { linkedInPost } from 'static/linked_in_post_config'\n\nconst useStyles = makeStyles()({\n postContainer: {\n display: 'block',\n backgroundColor: 'white',\n verticalAlign: 'baseline',\n color: 'rgba(0, 0, 0, 0.9)',\n direction: 'ltr',\n fontSize: '14px',\n minWidth: '555px',\n width: '555px',\n lineHeight: '20px',\n borderRadius: '0.5rem',\n border: '1px solid #ccc',\n padding: '6px',\n whiteSpace: 'pre-wrap',\n wordBreak: 'break-word'\n },\n showMore: {\n float: 'right',\n color: 'rgb(0, 0, 0, 0.6)',\n cursor: 'pointer'\n },\n mediaGallery: {\n marginTop: '8px'\n },\n mediaImg: {\n maxHeight: 350,\n objectFit: 'cover'\n },\n transparentLayer: {\n height: '100%',\n textAlign: 'center'\n },\n video: {\n width: '100%'\n },\n pdfCanvas: {\n '& .react-pdf__Page__canvas': {\n height: '100% !important',\n width: '100% !important'\n }\n },\n linkContainer: {\n marginTop: '8px',\n position: 'relative',\n cursor: 'pointer'\n },\n linkImg: {\n width: '100%',\n height: 'auto',\n objectFit: 'cover',\n borderTopLeftRadius: '8px',\n borderTopRightRadius: '8px'\n },\n linkData: {\n backgroundColor: '#edf3f8',\n padding: '10px',\n borderBottomLeftRadius: '8px',\n borderBottomRightRadius: '8px'\n },\n linkRemoveBtn: {\n position: 'absolute',\n top: 5,\n right: 5,\n opacity: 0.7,\n backgroundColor: grey[800],\n '&:hover': {\n backgroundColor: grey[900]\n }\n }\n})\n\nconst LinkedIn = ({\n content,\n showContentDetailsView,\n editorDialogView,\n onChange\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const currentLinkedInPost = content.get('linkedInPost') || fromJS(linkedInPost)\n const postText = currentLinkedInPost.get('commentary') || ''\n\n const [showMore, setShowMore] = useState(false)\n\n let displayedText; let showMoreLink\n\n if (showMore) {\n displayedText = postText.replaceAll(/@\\[(.*?)]\\(urn:li:organization:\\d+\\)/gi, '@$1')\n } else {\n displayedText = postText.replaceAll(/@\\[(.*?)]\\(urn:li:organization:\\d+\\)/gi, '@$1').substring(0, 129)\n }\n\n if (postText.length > 130) {\n showMoreLink = (\n setShowMore(!showMore)}\n > ...{i18n.get('show_more').toLowerCase()}\n
\n )\n }\n\n const handleRemoveLink = e => {\n e.stopPropagation()\n onChange({ key: 'linkedInPost', value: currentLinkedInPost.set('content', Map({})).set('type', 'text_only') })\n }\n\n const renderLinkedInGallery = () => {\n const images = content.get('ccdMediaFiles').filter(f => f.get('mimeType').startsWith('image'))\n const videos = content.get('ccdMediaFiles').filter(f => f.get('mimeType').startsWith('video'))\n const documents = content.get('ccdMediaFiles').filter(f => f.get('mimeType').startsWith('application'))\n\n // post type: link\n if (content.getIn(['linkedInPost', 'type']) === 'link') {\n const articleContent = content.getIn(['linkedInPost', 'content', 'article'])\n const source = articleContent.get('source')\n const imageUrl = articleContent.get('imageUrl')\n\n return (\n window.open(source, '_blank', 'noopener,noreferrer')}\n className={classes.linkContainer}\n >\n {(!showContentDetailsView && editorDialogView !== 'distribute') && (\n \n \n \n )}\n {imageUrl && (\n \n )}\n
\n {articleContent.get('title')}\n \n {articleContent.get('host')}\n \n
\n \n )\n }\n\n // post type: video\n if (content.getIn(['linkedInPost', 'content', 'media', 'id']) && videos.first()) {\n const video = videos.first()\n\n return (\n
\n \n \n \n
\n )\n }\n\n // post type: image\n if (content.getIn(['linkedInPost', 'content', 'media']) && images.first()) {\n const image = images.first()\n\n return (\n
\n \n
\n )\n }\n\n // post type: document\n if (content.getIn(['linkedInPost', 'content', 'media']) && documents.first()) {\n const document = documents.first()\n\n return (\n
\n \n \n \n
\n )\n }\n\n // post type: multi_image\n if (content.getIn(['linkedInPost', 'content', 'multiImage', 'images'])) {\n if (images.size === 2) {\n return (\n \n \n \n \n \n \n \n \n )\n }\n\n if (images.size > 4) {\n const restCounter = images.size - 5\n\n return (\n <>\n \n {images.slice(0, 2).map(item => (\n \n \n \n ))}\n \n \n {images.slice(2, 5).map(item => (\n \n {item === images.get(4) && restCounter > 0\n && (\n \n )}\n \n \n ))}\n \n \n )\n }\n\n if (images.size > 2) {\n const columnCount = (images.size - 1) >= 3 ? 3 : (images.size - 1)\n\n return (\n \n {images.slice(0, 5).map(item => (\n \n \n \n ))}\n \n )\n }\n }\n\n return null\n }\n\n return (\n
\n
\n {!showMore && showMoreLink}\n {renderLinkedInGallery()}\n
\n )\n}\n\nLinkedIn.propTypes = {\n content: PropTypes.instanceOf(Map).isRequired,\n showContentDetailsView: PropTypes.bool.isRequired,\n editorDialogView: PropTypes.string,\n\n onChange: PropTypes.func\n}\n\nexport default LinkedIn\n","/* global window */\nimport React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, fromJS } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { ImageList, ImageListItemBar, ImageListItem, Typography } from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\nimport { grey } from '@mui/material/colors'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { IconButton } from 'containers/themed'\nimport { facebookPost as defaultFacebookPost } from 'static/facebook_post_config'\n\nconst useStyles = makeStyles()({\n postContainer: {\n display: 'block',\n backgroundColor: 'white',\n verticalAlign: 'baseline',\n color: 'rgba(0, 0, 0, 0.9)',\n direction: 'ltr',\n fontSize: '14px',\n minWidth: '555px',\n width: '555px',\n lineHeight: '20px',\n borderRadius: '0.5rem',\n border: '1px solid #ccc',\n padding: '6px',\n whiteSpace: 'pre-wrap',\n wordBreak: 'break-word'\n },\n showMore: {\n float: 'right',\n color: 'rgb(0, 0, 0, 0.6)',\n cursor: 'pointer'\n },\n mediaGallery: {\n marginTop: '8px'\n },\n mediaImg: {\n maxHeight: 350,\n objectFit: 'cover'\n },\n transparentLayer: {\n height: '100%',\n textAlign: 'center'\n },\n video: {\n width: '100%'\n },\n linkContainer: {\n marginTop: '8px',\n position: 'relative',\n cursor: 'pointer'\n },\n linkImg: {\n width: '100%',\n height: 'auto',\n objectFit: 'cover',\n borderTopLeftRadius: '8px',\n borderTopRightRadius: '8px'\n },\n linkData: {\n backgroundColor: '#edf3f8',\n padding: '10px',\n borderBottomLeftRadius: '8px',\n borderBottomRightRadius: '8px'\n },\n linkRemoveBtn: {\n position: 'absolute',\n top: 5,\n right: 5,\n opacity: 0.7,\n backgroundColor: grey[800],\n '&:hover': {\n backgroundColor: grey[900]\n }\n }\n})\n\nconst Facebook = ({\n content,\n showContentDetailsView,\n editorDialogView,\n onChange\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const currentFacebookPost = content.get('facebookPost') || fromJS(defaultFacebookPost)\n const postText = currentFacebookPost.get('message') || ''\n\n const [showMore, setShowMore] = useState(false)\n\n let displayedText; let\n showMoreLink\n\n if (showMore) {\n displayedText = postText\n } else {\n displayedText = postText.substring(0, 129)\n }\n\n if (postText.length > 130) {\n showMoreLink = (\n setShowMore(!showMore)}\n > ...{i18n.get('show_more').toLowerCase()}\n \n )\n }\n\n const handleRemoveLink = e => {\n e.stopPropagation()\n onChange({ key: 'facebookPost', value: currentFacebookPost.set('link', '').set('linkMetadata', Map({})) })\n }\n\n const renderFacebookGallery = () => {\n const facebookPost = content.get('facebookPost') || currentFacebookPost\n const facebookPostType = facebookPost.get('type')\n const link = facebookPost.get('link')\n const images = facebookPost.get('mediaAttachments')\n const video = facebookPost.getIn(['mediaAttachments', 0])\n\n if (facebookPostType === 'text' && link.length !== 0) {\n const linkMetadata = currentFacebookPost.get('linkMetadata')\n const source = linkMetadata.get('source')\n const imageUrl = linkMetadata.get('imageUrl')\n\n return (\n window.open(source, '_blank', 'noopener,noreferrer')}\n className={classes.linkContainer}\n >\n {(!showContentDetailsView && editorDialogView !== 'distribute') && (\n \n \n \n )}\n {imageUrl && (\n \n )}\n
\n {linkMetadata.get('host').toUpperCase()}\n \n {linkMetadata.get('title')}\n \n {linkMetadata.get('description')}\n \n
\n
\n )\n }\n\n if (facebookPost.get('type') === 'video' && video) {\n return (\n
\n \n \n \n
\n )\n }\n\n if (images.size === 1) {\n const image = images.first()\n\n return (\n
\n \n
\n )\n }\n\n if (images) {\n if (images.size === 2) {\n return (\n \n \n \n \n \n \n \n \n )\n }\n\n if (images.size > 4) {\n const restCounter = images.size - 5\n\n return (\n <>\n \n {images.slice(0, 2).map(item => (\n \n \n \n ))}\n \n \n {images.slice(2, 5).map(item => (\n \n {item === images.get(4)\n && (\n \n )}\n \n \n ))}\n \n \n )\n }\n\n if (images.size > 2) {\n const columnCount = (images.size - 1) >= 3 ? 3 : (images.size - 1)\n\n return (\n \n {images.slice(0, 5).map(item => (\n \n \n \n ))}\n \n )\n }\n }\n\n return null\n }\n\n return (\n
\n {displayedText}\n {!showMore && showMoreLink}\n {renderFacebookGallery()}\n
\n )\n}\n\nFacebook.propTypes = {\n content: PropTypes.instanceOf(Map).isRequired,\n showContentDetailsView: PropTypes.bool.isRequired,\n editorDialogView: PropTypes.string,\n\n onChange: PropTypes.func\n}\n\nexport default Facebook\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport useI18n from 'hooks/useI18n'\n\nimport LinkedIn from 'components/content_desk/contents/content_preview/linked_in'\nimport Facebook from 'components/content_desk/contents/content_preview/facebook'\n\nconst useStyles = makeStyles()(theme => ({\n noPreviewContainer: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n },\n noPreviewBox: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n border: '1px dotted #757575',\n borderRadius: '10px',\n height: '60px',\n width: '350px',\n fontStyle: 'italic',\n color: !theme.isDark && '#757575'\n },\n htmlPreview: {\n width: '100%',\n height: '530px',\n border: 'none'\n }\n}))\n\nconst ContentPreview = ({\n content,\n showContentDetailsView,\n editorDialogView,\n onChange\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n let contentType = content.getIn(['type', 'id']) || content.get('type') || ''\n contentType = contentType.toLowerCase()\n\n const renderMain = () => {\n if (contentType === 'email') {\n const body = content.get('body') || ''\n\n if (body.length > 5000) {\n return (\n \n )\n }\n }\n\n if (contentType === 'linkedin') {\n return (\n \n )\n }\n\n if (contentType === 'facebook') {\n return (\n \n )\n }\n\n return (\n
\n
\n {i18n.get('no_preview_available')}\n
\n
\n )\n }\n\n return (\n <>\n {renderMain()}\n \n )\n}\n\nContentPreview.propTypes = {\n content: PropTypes.instanceOf(Map).isRequired,\n showContentDetailsView: PropTypes.bool.isRequired,\n editorDialogView: PropTypes.string,\n\n onChange: PropTypes.func\n}\n\nexport default ContentPreview\n","import { connect } from 'react-redux'\n\nimport ContentPreview from 'components/content_desk/contents/content_preview'\n\nimport { getCDeskSelectedContent, getCDeskShowViewContentDialog, getCDeskNewDialogView } from 'selectors'\n\nconst mapStateToProps = (state, ownProps) => ({\n content: ownProps.content ? ownProps.content : getCDeskSelectedContent(state),\n showContentDetailsView: getCDeskShowViewContentDialog(state),\n editorDialogView: getCDeskNewDialogView(state),\n onChange: ownProps.onChange\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(ContentPreview)\n","import sanitizeHtml from 'sanitize-html'\n\nconst emailVariables = [\n '%recipient.full_name%',\n '%recipient.first_name%',\n '%recipient.last_name%',\n '%tag_unsubscribe_url%'\n]\n\nexport const getMediaFileSrcAndFit = mf => {\n let src\n let style = { objectFit: 'fill' }\n\n switch (mf.get('mimeType')) {\n case 'application/msword':\n src = 'https://static.pressrelations.de/pics/groot/ccd/doc-icon.svg'\n break\n case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document':\n src = 'https://static.pressrelations.de/pics/groot/ccd/docx-icon.svg'\n break\n case 'application/vnd.ms-excel':\n src = 'https://static.pressrelations.de/pics/groot/ccd/xls-icon.svg'\n break\n case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet':\n src = 'https://static.pressrelations.de/pics/groot/ccd/xlsx-icon.svg'\n break\n case 'text/csv':\n src = 'https://static.pressrelations.de/pics/groot/ccd/csv-icon.svg'\n break\n case mf.get('mimeType').match(/^image/)?.input:\n src = mf.get('url')\n style = { objectFit: 'contain' }\n break\n default:\n src = 'https://static.pressrelations.de/pics/groot/ccd/unknown-format-icon.svg'\n break\n }\n\n return { src, style }\n}\n\nexport const isEditorDesignBlank = editorDesign => {\n if (!editorDesign) {\n return true\n }\n\n const rows = editorDesign.getIn(['body', 'rows'])\n\n let isEmpty = true\n\n rows.forEach(row => {\n const columns = row.get('columns')\n columns.forEach(column => {\n const contents = column.get('contents')\n\n if (!contents.isEmpty()) {\n isEmpty = false\n }\n })\n })\n\n return isEmpty\n}\n\nexport const emailExtractImageLinks = html => {\n const regex = /https:\\/\\/public-api\\.pressrelations\\.de\\/files-api\\/stored_files\\/[a-zA-Z0-9-]+/g\n\n return html?.match(regex) || []\n}\n\nexport const emailToOtsPlainText = html => {\n if (!html) {\n return ''\n }\n\n const allowedTags = ['p', 'ol', 'ul', 'li', 'b', 'strong', 'i', 'em', 'u', 'a']\n\n let sanitizedHtml = sanitizeHtml(\n html\n .replace(/<\\/?span[^>]*>/g, '')\n .replace(/]*>/g, '

')\n .replace(/<\\/h[1-9]>/g, '

')\n .replace(/[\\r\\n]+/g, '')\n .replace(//g, '

')\n .replace(/<(\\w+)(\\s*[^>]*)>\\s*<\\/\\1>/g, ''), // remove empty tags\n {\n allowedTags,\n allowedClasses: {},\n allowedAttributes: {\n a: ['href']\n },\n disallowedTagsMode: 'completelyDiscard'\n }\n )\n\n emailVariables.forEach(variable => {\n sanitizedHtml = sanitizedHtml.replace(variable, '')\n })\n\n return sanitizedHtml\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport moment from 'moment-timezone'\nimport { Map } from 'immutable'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { Grid, Divider, Chip, ImageListItem, ImageList, ImageListItemBar } from '@mui/material'\n\nimport ContentPreview from 'containers/content_desk/ContentPreview'\n\nimport { formatBytes } from 'utils/number'\nimport { getMediaFileSrcAndFit } from 'utils/content_desk'\nimport { Document, Page } from 'utils/pdf'\n\nconst useStyles = makeStyles()(theme => ({\n label: {\n color: !theme.isDark && '#757575',\n fontSize: '11pt',\n fontWeight: 500\n },\n previewContent: {\n display: 'flex',\n alignItems: 'center',\n marginBottom: '10px'\n },\n divider: {\n margin: '0px 10px 0px 0px',\n height: '40px',\n borderRightWidth: '5px',\n borderColor: theme.isDark ? '#ffffff' : '#757575',\n borderRadius: '10px'\n },\n bottomActionsContainer: {\n marginTop: '2em',\n marginBottom: '2em',\n padding: '0em 2em 0em 2em',\n display: 'flex',\n justifyContent: 'flex-end'\n },\n releaseButton: {\n marginLeft: '1em'\n },\n recipients: {\n marginTop: 5,\n marginRight: 10\n },\n previewContainer: {\n display: 'block',\n borderRadius: '10px',\n padding: '1em',\n width: '100%'\n },\n previewInnerContainer: {\n margin: 'auto'\n },\n previewLabel: {\n fontStyle: 'italic',\n color: !theme.isDark && '#757575',\n fontSize: '11pt',\n fontWeight: 500\n },\n recipientsContainer: {\n display: 'flex',\n maxWidth: 600,\n flexWrap: 'wrap',\n alignItems: 'center',\n marginBottom: '20px'\n },\n mediaListBox: {\n height: 580\n }\n}))\n\nconst VerticalDivider = () => {\n const { classes } = useStyles()\n\n return (\n \n )\n}\n\nconst DistributeForm = ({ data }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const preHeader = data.get('preHeader')\n const body = data.get('body') || ''\n\n const checkIfHasUnsubscribeLink = () => {\n const plainText = data.get('plainText') || ''\n\n return plainText.includes('%tag_unsubscribe_url%')\n }\n\n const renderFileImage = mf => {\n const { src, style } = getMediaFileSrcAndFit(mf)\n\n if (mf.get('mimeType') === 'application/pdf') {\n return (\n \n \n \n )\n }\n\n return (\n \n )\n }\n\n const renderMediaFiles = () => {\n if (data.getIn(['type', 'id']) !== 'email') {\n return null\n }\n\n return (\n <>\n

\n {`${i18n.get('attachments')}:`}\n
\n
\n {data.get('ccdMediaFiles').size ? (\n \n {data.get('ccdMediaFiles').map(mf => (\n \n \n {renderFileImage(mf)}\n \n ))}\n \n ) : (\n <>\n \n -\n \n )}\n
\n \n )\n }\n\n const renderRecipients = () => {\n if (data.getIn(['type', 'id']) !== 'email') {\n return null\n }\n\n const recipients = data.get('recipients').map(\n currentRecipient => (\n \n \n \n )\n )\n\n return (\n <>\n
\n {`${i18n.get('recipients')}:`}\n
\n
\n {recipients.size ? recipients : (\n <>\n \n -\n \n )}\n
\n \n )\n }\n\n return (\n <>\n \n \n \n
\n {`${i18n.get('title')}:`}\n
\n
\n \n {data.get('title') || '-'}\n
\n
\n {data.getIn(['type', 'id']) === 'email' && (\n <>\n \n
\n {`${i18n.get('email_subject')}:`}\n
\n
\n \n {data.get('subject') || '-'}\n
\n
\n \n
\n {`${i18n.get('email_pre_header')}:`}\n
\n
\n \n {preHeader || '-'}\n
\n
\n \n )}\n \n
\n {`${i18n.get('campaign')}:`}\n
\n
\n \n {data.getIn(['ccdCampaign', 'label']) || '-'}\n
\n
\n \n
\n {`${i18n.get('content_type')}:`}\n
\n
\n \n {data.getIn(['type', 'label']) || '-'}\n
\n
\n \n
\n {`${i18n.get('planned_for')}:`}\n
\n
\n \n {data.get('plannedFor') ? moment(data.get('plannedFor')).format('lll') : '-'}\n
\n
\n \n
\n {`${i18n.get('scheduled_for')}:`}\n
\n
\n \n {data.get('scheduledFor') ? moment(data.get('scheduledFor')).format('lll') : '-'}\n
\n
\n {data.getIn(['type', 'id']) === 'email' && (\n \n
\n {`${i18n.get('has_unsubscribe_link')}`}\n
\n
\n \n {checkIfHasUnsubscribeLink() ? i18n.get('yes') : i18n.get('no')}\n
\n
\n )}\n \n {renderMediaFiles()}\n \n \n {renderRecipients()}\n \n \n 5000) && 'center'}\n >\n
\n
\n
\n {`${i18n.get('preview')}:`}\n
\n \n
\n
\n \n \n \n )\n}\n\nDistributeForm.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired\n}\n\nexport default DistributeForm\n","import { connect } from 'react-redux'\n\nimport DistributeForm from 'components/content_desk/content_edit_dialog/distribute_form'\n\nimport { getCDeskContentFormData } from 'selectors'\n\nconst mapStateToProps = state => ({\n data: getCDeskContentFormData(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(DistributeForm)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { Paper, Typography, Menu, MenuItem, Tooltip } from '@mui/material'\n\nimport MoreVertIcon from '@mui/icons-material/MoreVert'\nimport ReportGmailerrorredIcon from '@mui/icons-material/ReportGmailerrorred'\n\nimport { orange } from '@mui/material/colors'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n templateItemPaper: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center'\n },\n templateItemPaperClickable: {\n display: 'flex',\n flexDirection: 'column',\n '&:hover': {\n cursor: 'pointer'\n },\n alignItems: 'center'\n },\n moreOptionsIcon: {\n display: 'flex',\n justifyContent: 'flex-end',\n alignItems: 'center',\n width: '100%',\n paddingTop: '10px',\n paddingRight: '10px'\n },\n templateName: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '65px',\n paddingLeft: '20px',\n paddingRight: '20px',\n textAlign: 'justify'\n },\n htmlContainer: {\n pointerEvents: 'auto',\n marginTop: '10px',\n height: '200px',\n width: '200px',\n position: 'relative'\n },\n htmlPreview: {\n position: 'absolute',\n top: '0',\n left: '0',\n width: '100%',\n height: '100%',\n border: 'none',\n transformOrigin: '0 0',\n pointerEvents: 'none'\n }\n})\n\nconst TemplatesListItem = ({\n loadTemplate,\n template,\n activeNewsradarId,\n readMode,\n onDelete,\n openDialog,\n loadSelectedTemplate,\n closePickerDialog,\n setTemplatesReadModeOnly,\n onTemplateClone\n}) => {\n const [anchorEl, setAnchorEl] = useState(null)\n const open = Boolean(anchorEl)\n const { classes } = useStyles()\n const i18n = useI18n()\n const isReleased = template.get('released')\n\n const handleClose = () => {\n setAnchorEl(null)\n }\n\n const handleEdit = () => {\n setAnchorEl(null)\n openDialog()\n loadSelectedTemplate(template)\n }\n\n const handleClone = () => {\n setAnchorEl(null)\n onTemplateClone({ id: template.get('id') })\n }\n\n const handleDelete = () => {\n setAnchorEl(null)\n onDelete({ id: template.get('id') })\n }\n\n const handleLoadTemplate = () => {\n if (!readMode) {\n return\n }\n\n closePickerDialog()\n loadTemplate(template.get('json'))\n setTimeout(() => setTemplatesReadModeOnly(false), 500)\n }\n\n const htmlContent = `\n \n
\n ${template.get('html')}\n
\n `\n\n return (\n \n {!readMode && (\n <>\n
\n {!isReleased\n && (\n \n \n \n )}\n setAnchorEl(event.currentTarget)}\n >\n \n \n
\n \n \n {i18n.get('edit')}\n \n \n {i18n.get('duplicate')}\n \n \n {i18n.get('delete')}\n \n \n \n )}\n
\n \n
\n \n {template.get('name')}\n \n \n )\n}\n\nTemplatesListItem.propTypes = {\n template: PropTypes.object,\n loadTemplate: PropTypes.func,\n\n activeNewsradarId: PropTypes.number,\n readMode: PropTypes.bool.isRequired,\n\n onDelete: PropTypes.func.isRequired,\n openDialog: PropTypes.func.isRequired,\n loadSelectedTemplate: PropTypes.func.isRequired,\n closePickerDialog: PropTypes.func.isRequired,\n setTemplatesReadModeOnly: PropTypes.func.isRequired,\n onTemplateClone: PropTypes.func.isRequired\n}\n\nexport default TemplatesListItem\n","import { connect } from 'react-redux'\n\nimport TemplatesListItem from 'components/email_templates_library/templates_list_item'\n\nimport {\n deleteTemplateStart as onDelete,\n loadSelectedTemplate,\n openEditorDialog as openDialog,\n closePickerDialog,\n setReadMode as setTemplatesReadModeOnly,\n cloneTemplateStart as onTemplateClone\n} from 'actions/email_templates_library'\n\nimport {\n getNewsradarId,\n getETLibraryReadMode\n} from 'selectors'\n\nconst mapStateToProps = (state, { template, loadTemplate }) => ({\n loadTemplate,\n template,\n activeNewsradarId: getNewsradarId(state),\n readMode: getETLibraryReadMode(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onDelete,\n openDialog,\n loadSelectedTemplate,\n closePickerDialog,\n setTemplatesReadModeOnly,\n onTemplateClone\n }\n)(TemplatesListItem)\n","import React from 'react'\nimport { List } from 'immutable'\nimport PropTypes from 'prop-types'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport TemplatesListItem from 'containers/email_templates_library/TemplatesListItem'\n\nimport { StaggeredListItem, StaggeredList } from 'components/staggered_list'\n\nconst useStyles = makeStyles()({\n listItemWrapper: {\n display: 'grid',\n gridTemplateColumns: 'repeat(auto-fill, 240px)',\n gridAutoRows: '300px',\n justifyContent: 'center',\n columnGap: '30px',\n rowGap: '50px',\n margin: 'auto'\n },\n listItem: {\n height: '300px',\n width: '240px'\n }\n})\n\nconst TemplatesList = ({ loadTemplate, templates, readMode }) => {\n const { classes } = useStyles({ readMode })\n\n const filteredTemplates = readMode ? templates.filter(el => el.get('released') !== false) : templates\n\n return (\n \n
\n {filteredTemplates.map((el, index) => (\n \n \n \n ))}\n
\n
\n )\n}\n\nTemplatesList.propTypes = {\n loadTemplate: PropTypes.func,\n templates: PropTypes.instanceOf(List).isRequired,\n readMode: PropTypes.bool.isRequired\n}\n\nexport default TemplatesList\n","import { connect } from 'react-redux'\n\nimport TemplatesList from 'components/email_templates_library/templates_list'\n\nimport { getETLibraryTemplates, getETLibraryReadMode } from 'selectors'\n\nconst mapStateToProps = (state, { loadTemplate }) => ({\n loadTemplate,\n templates: getETLibraryTemplates(state).get('items'),\n readMode: getETLibraryReadMode(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(TemplatesList)\n","import React, { useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map as ImmutableMap } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Paper,\n CircularProgress,\n FormControlLabel,\n Switch\n} from '@mui/material'\n\nimport TemplatesList from 'containers/email_templates_library/TemplatesList'\nimport { RaisedPrimaryButton } from 'containers/themed'\nimport ContentContainer from 'components/content_container/'\n\nimport { Capabilities } from 'static/constants'\n\nconst useStyles = makeStyles()((_theme, { readMode }) => ({\n container: {\n paddingTop: '20px',\n paddingBottom: '20px',\n position: 'relative',\n height: readMode ? '90%' : '95%',\n minHeight: '90%',\n overflow: 'auto'\n },\n paper: {\n height: '88vh'\n },\n circularLoader: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '65vh'\n },\n loadMoreButtonContainer: {\n paddingTop: '20px',\n paddingBottom: '20px',\n justifyContent: 'center',\n display: 'flex',\n width: '100%',\n overflow: 'hidden'\n }\n}))\n\nconst TemplatesWrapper = ({\n loadTemplate,\n hasMore,\n loading,\n isPublicOnly,\n capabilities,\n readMode,\n onMount,\n onUnmount,\n togglePublicTemplates,\n onLoadMore\n}) => {\n const { classes } = useStyles({ readMode })\n const i18n = useI18n()\n const hasPublicReadRights = capabilities.get(Capabilities.HAS_CONTENT_DESK_PUBLIC_TEMPLATES_READ_RIGHTS)\n\n useEffect(() => {\n onMount({ shared: isPublicOnly })\n\n return () => {\n onUnmount()\n }\n }, [])\n\n return (\n \n \n {(readMode && hasPublicReadRights) && (\n togglePublicTemplates()}\n disabled={loading}\n />\n )}\n label={isPublicOnly ? i18n.get('show_my_templates') : i18n.get('show_public_templates')}\n />\n )}\n {loading ? (\n
\n \n
\n ) : }\n\n
\n
\n \n {i18n.get('load_more')}\n \n
\n \n )\n}\n\nTemplatesWrapper.propTypes = {\n loadTemplate: PropTypes.func,\n hasMore: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n isPublicOnly: PropTypes.bool.isRequired,\n capabilities: PropTypes.instanceOf(ImmutableMap).isRequired,\n readMode: PropTypes.bool.isRequired,\n\n onMount: PropTypes.func.isRequired,\n onUnmount: PropTypes.func.isRequired,\n togglePublicTemplates: PropTypes.func.isRequired,\n onLoadMore: PropTypes.func.isRequired\n}\n\nexport default TemplatesWrapper\n","import { connect } from 'react-redux'\n\nimport TemplatesWrapper from 'components/email_templates_library/templates_wrapper'\n\nimport {\n fetchTemplatesStart as onMount,\n resetTemplatesModule as onUnmount,\n togglePublicTemplates,\n fetchMoreTemplatesStart as onLoadMore\n} from 'actions/email_templates_library'\n\nimport {\n getETLibraryTemplates,\n getETLibraryFetchRequestRunning,\n getETLibraryShowPublic,\n getETLibraryDeleteRequestRunning,\n getCapabilities,\n getETLibraryReadMode\n} from 'selectors'\n\nconst mapStateToProps = (state, { loadTemplate }) => ({\n loadTemplate,\n hasMore: getETLibraryTemplates(state).get('hasMore'),\n loading: getETLibraryFetchRequestRunning(state) || getETLibraryDeleteRequestRunning(state),\n isPublicOnly: getETLibraryShowPublic(state),\n capabilities: getCapabilities(state),\n readMode: getETLibraryReadMode(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onMount,\n onUnmount,\n togglePublicTemplates,\n onLoadMore\n }\n)(TemplatesWrapper)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Dialog,\n DialogContent,\n DialogTitle,\n Slide\n} from '@mui/material'\n\nimport { Button, IconButton } from 'containers/themed'\nimport TemplatesWrapper from 'containers/email_templates_library/TemplatesWrapper'\n\nconst useStyles = makeStyles()({\n dialogTitleAndActions: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n paddingBottom: 0\n },\n dialogActions: {\n display: 'flex',\n alignItems: 'center',\n gap: '25px'\n },\n dialogContent: {\n paddingBottom: 0\n }\n})\n\nconst TemplatePickerDialog = ({ loadTemplate, isOpen, closePickerDialog, setTemplatesReadModeOnly, saveCcdContent }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleClose = () => {\n closePickerDialog()\n setTemplatesReadModeOnly(false)\n }\n\n return (\n \n \n {i18n.get('template_library')}\n
\n saveCcdContent({ switchToEmailTemplatesLibrary: true })}\n size=\"small\"\n >\n {`${i18n.get('manage_templates')}`}\n \n \n
\n
\n \n \n \n \n )\n}\n\nTemplatePickerDialog.propTypes = {\n loadTemplate: PropTypes.func,\n isOpen: PropTypes.bool.isRequired,\n closePickerDialog: PropTypes.func.isRequired,\n setTemplatesReadModeOnly: PropTypes.func.isRequired,\n\n saveCcdContent: PropTypes.func.isRequired\n}\n\nexport default TemplatePickerDialog\n","import { connect } from 'react-redux'\n\nimport TemplatesPickerDialog from 'components/email_templates_library/templates_picker_dialog'\n\nimport {\n saveContentStart\n} from 'actions/content_desk'\n\nimport {\n closePickerDialog,\n setReadMode as setTemplatesReadModeOnly\n} from 'actions/email_templates_library'\n\nimport {\n getETLibraryShowPickerDialog\n} from 'selectors'\n\nconst mapStateToProps = (state, { loadTemplate }) => ({\n loadTemplate,\n isOpen: getETLibraryShowPickerDialog(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n closePickerDialog,\n setTemplatesReadModeOnly,\n saveCcdContent: saveContentStart\n }\n)(TemplatesPickerDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Dialog,\n DialogContent,\n DialogTitle,\n DialogActions,\n Slide,\n TextField,\n FormControlLabel,\n Checkbox\n} from '@mui/material'\n\nimport { Button, IconButton, RaisedPrimaryButton } from 'containers/themed'\n\nimport { Capabilities } from 'static/constants'\n\nconst useStyles = makeStyles()({\n closeSaveDialogButton: {\n position: 'absolute',\n right: 7,\n top: 7\n }\n})\n\nconst SaveTemplateDialog = ({ open, loading, capabilities, onClose, onChange, onSave }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const hasPublicWriteRights = capabilities.get(Capabilities.HAS_CONTENT_DESK_PUBLIC_TEMPLATES_WRITE_RIGHTS)\n\n const handleChange = e => onChange({ key: e.target.name, value: e.target.value })\n const handleChangeCheckbox = e => onChange({ key: e.target.name, value: e.target.checked })\n\n const handleSave = () => onSave('emailEditor')\n\n return (\n \n onClose()}\n size=\"normal\"\n disabled={loading}\n />\n \n {`${i18n.get('save')} ${i18n.get('template')}`}\n \n \n \n {hasPublicWriteRights && (\n \n )}\n label={i18n.get('public')}\n />\n )}\n \n )}\n label={i18n.get('released')}\n />\n \n \n onClose()}\n >\n {i18n.get('cancel')}\n \n \n {i18n.get('confirm')}\n \n \n \n )\n}\n\nSaveTemplateDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n capabilities: PropTypes.instanceOf(Map).isRequired,\n onClose: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired\n}\n\nexport default SaveTemplateDialog\n","import { connect } from 'react-redux'\n\nimport SaveTemplateDialog from\n 'components/content_desk/content_edit_dialog/content_editor/email_editor/save_template_dialog/SaveTemplateDialog'\n\nimport { getCDeskShowSaveTemplateDialog, getETLibrarySaveRequestRunning, getCapabilities } from 'selectors'\n\nimport { closeSaveTemplateDialog } from 'actions/content_desk'\n\nimport {\n setTemplateFormData as onChange,\n saveTemplateStart as onSave\n} from 'actions/email_templates_library'\n\nconst mapStateToProps = state => ({\n open: getCDeskShowSaveTemplateDialog(state),\n loading: getETLibrarySaveRequestRunning(state),\n capabilities: getCapabilities(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose: closeSaveTemplateDialog,\n onChange,\n onSave\n }\n)(SaveTemplateDialog)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport copyToClipboard from 'copy-to-clipboard'\nimport { useSnackbar } from 'notistack'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Card,\n CardMedia,\n Dialog,\n DialogContent,\n Slide,\n Typography,\n Toolbar,\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableRow\n} from '@mui/material'\n\nimport ContentCopyIcon from '@mui/icons-material/ContentCopy'\nimport PlayCircleIcon from '@mui/icons-material/PlayCircle'\n\nimport { Button, IconButton, RaisedPrimaryButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n dialogContent: {\n minHeight: '200px'\n },\n contentHelperText: {\n whiteSpace: 'break-spaces'\n },\n spacer: {\n flex: 1\n },\n tableHeader: {\n backgroundColor: theme.palette.grey[50]\n },\n tableCell: {\n borderBottom: 'none'\n },\n needHelpButton: {\n marginTop: '30px',\n gap: '10px',\n border: 'none',\n '&:hover': {\n border: 'none'\n }\n }\n}))\n\nconst mergeTags = [\n { name: 'full_name', value: '%recipient.full_name%', example: 'variables_helper_full_name_example' },\n { name: 'first_name', value: '%recipient.first_name%', example: 'variables_helper_first_name_example' },\n { name: 'last_name', value: '%recipient.last_name%', example: 'variables_helper_last_name_example' }\n]\n\nconst variables = [\n { name: 'unsubscribe', value: '%tag_unsubscribe_url%', example: 'variables_helper_unsubscribe_example' }\n]\n\nconst columnWidths = {\n type: '20%',\n variable: '30%',\n example: '40%',\n action: '10%'\n}\n\nconst TemplatesEditorVariables = ({\n raisedBtn,\n userLocale\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const { enqueueSnackbar } = useSnackbar()\n\n const [open, setOpen] = useState(false)\n const [openHelp, setOpenHelp] = useState(false)\n const helpVideoSrc = userLocale === 'de' ? 'https://static.pressrelations.de/pics/groot/ccd/unsubscribe_video_de.gif'\n : 'https://static.pressrelations.de/pics/groot/ccd/unsubscribe_video_en.gif'\n\n const handleOpen = () => setOpen(true)\n const handleClose = () => setOpen(false)\n\n const handleCopyVariable = variable => {\n copyToClipboard(variable, { format: 'text/plain' })\n\n enqueueSnackbar(\n `${i18n.get('copied')}`,\n { variant: 'info', preventDuplicate: true }\n )\n }\n\n const handleOpenHelpVideo = () => {\n setOpen(false)\n setOpenHelp(true)\n }\n\n return (\n <>\n {raisedBtn ? (\n {i18n.get('personalization')}\n \n )\n : (\n \n {i18n.get('personalization')}\n \n )}\n \n \n \n {`${i18n.get('personalization')}`}\n \n
\n \n \n \n \n
\n \n {i18n.get('merge_tags')}\n \n \n \n \n {i18n.get('type')}\n {i18n.get('variable')}\n {i18n.get('example')}\n {i18n.get('action')}\n \n \n \n {mergeTags.map((mergeTag, index) => (\n \n {i18n.get(mergeTag.name)}\n {i18n.get(mergeTag.value)}\n {i18n.get(mergeTag.example)}\n }\n onClick={() => handleCopyVariable(mergeTag.value)}\n size=\"small\"\n />\n \n \n ))}\n \n
\n \n {i18n.get('variables')}\n \n \n \n \n {i18n.get('type')}\n {i18n.get('variable')}\n {i18n.get('example')}\n {i18n.get('action')}\n \n \n \n {variables.map((variable, index) => (\n \n {i18n.get(variable.name)}\n {i18n.get(variable.value)}\n {i18n.get(variable.example)}\n }\n onClick={() => handleCopyVariable(variable.value)}\n size=\"small\"\n />\n \n \n ))}\n \n
\n handleOpenHelpVideo()}\n >\n {i18n.get('need_help_to_create_an_unsubscribed_link')}\n \n \n
\n \n setOpenHelp(false)}\n >\n \n \n {`${i18n.get('help')}`}\n \n
\n setOpenHelp(false)}\n size=\"normal\"\n />\n \n \n \n \n \n \n \n \n )\n}\n\nTemplatesEditorVariables.defaultProps = {\n raisedBtn: false\n}\n\nTemplatesEditorVariables.propTypes = {\n raisedBtn: PropTypes.bool,\n userLocale: PropTypes.string.isRequired\n}\n\nexport default TemplatesEditorVariables\n","import { connect } from 'react-redux'\n\nimport TemplatesEditorVariables from 'components/email_templates_library/templates_editor_variables'\n\nimport {\n getUserLocale\n} from 'selectors'\n\nconst mapStateToProps = (state, ownProps) => ({\n userLocale: getUserLocale(state),\n raisedBtn: ownProps.raisedBtn\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(TemplatesEditorVariables)\n","import React, { useRef, useEffect, useCallback, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { debounce } from 'throttle-debounce'\nimport { fromJS, Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { useTheme } from '@mui/material/styles'\nimport { useMediaQuery } from '@mui/material'\n\nimport ReactEmailEditor from 'react-email-editor'\n\nimport { isEditorDesignBlank } from 'utils/content_desk'\n\nimport { RaisedPrimaryButton } from 'containers/themed'\nimport TemplatePickerDialog from 'containers/email_templates_library/TemplatesPickerDialog'\nimport SaveTemplateDialog from 'containers/content_desk/content_edit_dialog/SaveTemplateDialog'\nimport TemplatesEditorVariables from 'containers/email_templates_library/TemplatesEditorVariables'\n\nconst useStyles = makeStyles()({\n templatesPickerButton: {\n display: 'flex',\n justifyContent: 'flex-end',\n gap: '5px',\n marginBottom: '15px'\n }\n})\n\nconst EmailEditor = ({\n editorHeight,\n onChange,\n moduleScope,\n editorDesign,\n json,\n preHeader,\n newsradarId,\n imageUrl,\n onEditorLoadingStart,\n onEditorLoadingStop,\n onImageUpload,\n resetImageUrl,\n setTemplatesReadModeOnly,\n openPickerDialog,\n onSaveTemplateClick,\n fetchMoreMediaFilesStart,\n onMediaFileDelete\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const emailEditorRef = useRef(null)\n const theme = useTheme()\n const userIsMax = useMediaQuery(theme.breakpoints.up('xl'))\n const [uploadImageCallback, setUploadImageCallback] = useState(null)\n\n const handleOpenTemplates = () => {\n setTemplatesReadModeOnly(true)\n openPickerDialog()\n }\n\n useEffect(() => {\n if (moduleScope === 'contents' && emailEditorRef.current.editor) {\n emailEditorRef.current.editor.setBodyValues({ preheaderText: preHeader })\n }\n }, [preHeader])\n\n const handleDesignUpdate = useCallback(debounce(500, () => {\n emailEditorRef.current.editor.exportHtml(editorData => {\n const { design, html } = editorData\n\n if (moduleScope === 'contents') {\n onChange({ key: 'editorDesign', value: fromJS(design) })\n onChange({ key: 'body', value: html })\n onChange({ key: 'preHeader', value: design.body.values.preheaderText })\n }\n\n if (moduleScope === 'templates') {\n onChange({ key: 'json', value: fromJS(design) })\n onChange({ key: 'html', value: html })\n }\n })\n\n emailEditorRef.current.editor.exportPlainText(editorData => {\n if (moduleScope === 'contents') {\n const { text } = editorData\n\n onChange({ key: 'plainText', value: text })\n }\n })\n }), [onChange])\n\n useEffect(() => {\n if (imageUrl) {\n uploadImageCallback.done({ progress: 100, url: imageUrl })\n resetImageUrl()\n setUploadImageCallback(null)\n }\n\n return () => onEditorLoadingStop()\n }, [imageUrl])\n\n const onLoad = () => {\n onEditorLoadingStart()\n }\n\n const loadTemplate = j => {\n emailEditorRef.current.editor.loadDesign(j)\n }\n\n const onReady = () => {\n let currentEditorDesign\n\n if (moduleScope === 'contents' && !isEditorDesignBlank(editorDesign)) {\n currentEditorDesign = editorDesign.toJS()\n } else if (!isEditorDesignBlank(json)) {\n currentEditorDesign = json.toJS()\n }\n\n emailEditorRef.current.editor.loadDesign(currentEditorDesign)\n emailEditorRef.current.editor.registerCallback('image:removed', (image, done) => {\n onMediaFileDelete({ id: image.id })\n done()\n })\n emailEditorRef.current.editor.registerCallback('image', (file, done) => {\n done({ progress: 30 })\n onImageUpload({ file })\n setUploadImageCallback({ done })\n })\n emailEditorRef.current.editor.registerProvider('userUploads', (params, done) => {\n fetchMoreMediaFilesStart({ params, done })\n })\n\n if (moduleScope === 'contents') {\n emailEditorRef.current.editor.exportHtml(editorData => {\n const { design } = editorData\n onChange({ key: 'preHeader', value: design.body.values.preheaderText })\n })\n }\n\n emailEditorRef.current.editor.addEventListener('design:loaded', handleDesignUpdate)\n emailEditorRef.current.editor.addEventListener('design:updated', handleDesignUpdate)\n\n onEditorLoadingStop()\n }\n /* possibly working: 1.52.0 (if problems occur), leaving this out will result in\n stable version being used which doesn't contain important bugfixes (see for instance\n https://github.com/unlayer/react-email-editor/issues/398 */\n\n /* Set version to 1.52.0 because of a bug in the switch for more options in the editor content padding settings */\n\n return (\n <>\n {moduleScope === 'contents' && (\n <>\n
\n \n onSaveTemplateClick()}\n size=\"small\"\n >{i18n.get('save_as_template')}\n \n {`${i18n.get('templates_library')}`}\n \n
\n \n \n \n )}\n
'\n }\n },\n projectId: process.env.DEPLOYMENT_TYPE === 'production' ? 156689 : 162808\n }}\n />\n \n )\n}\n\nEmailEditor.propTypes = {\n onChange: PropTypes.func.isRequired,\n moduleScope: PropTypes.string.isRequired,\n editorDesign: PropTypes.instanceOf(Map),\n json: PropTypes.instanceOf(Map),\n preHeader: PropTypes.string,\n newsradarId: PropTypes.number.isRequired,\n\n imageUrl: PropTypes.string,\n onEditorLoadingStart: PropTypes.func.isRequired,\n onEditorLoadingStop: PropTypes.func.isRequired,\n onImageUpload: PropTypes.func.isRequired,\n resetImageUrl: PropTypes.func.isRequired,\n setTemplatesReadModeOnly: PropTypes.func.isRequired,\n openPickerDialog: PropTypes.func.isRequired,\n onSaveTemplateClick: PropTypes.func.isRequired,\n fetchMoreMediaFilesStart: PropTypes.func.isRequired,\n onMediaFileDelete: PropTypes.func.isRequired,\n\n editorHeight: PropTypes.string.isRequired\n}\n\nexport default EmailEditor\n","import { connect } from 'react-redux'\n\nimport EmailEditor from 'components/content_desk/content_edit_dialog/content_editor/email_editor'\n\nimport {\n emailEditorLoadingStart,\n emailEditorLoadingStop,\n uploadEditorImageStart,\n resetUploadedImageUrl,\n openSaveTemplateDialog,\n fetchMoreMediaFilesStart,\n deleteMediaFileStart as onMediaFileDelete\n} from 'actions/content_desk'\n\nimport {\n openPickerDialog,\n setReadMode as setTemplatesReadModeOnly\n} from 'actions/email_templates_library'\n\nimport { getCDeskContentUploadedImageUrl, getNewsradarId } from 'selectors'\n\nconst mapStateToProps = (state, { onChange, moduleScope, data }) => ({\n onChange,\n moduleScope,\n editorDesign: data.get('editorDesign'),\n json: data.get('json'),\n preHeader: data.get('preHeader'),\n imageUrl: getCDeskContentUploadedImageUrl(state),\n newsradarId: getNewsradarId(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onEditorLoadingStart: emailEditorLoadingStart,\n onEditorLoadingStop: emailEditorLoadingStop,\n onImageUpload: uploadEditorImageStart,\n resetImageUrl: resetUploadedImageUrl,\n setTemplatesReadModeOnly,\n openPickerDialog,\n onSaveTemplateClick: openSaveTemplateDialog,\n fetchMoreMediaFilesStart,\n onMediaFileDelete\n }\n)(EmailEditor)\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport { List, Map, fromJS } from 'immutable'\nimport { Alert, ImageList, ImageListItem, ImageListItemBar, Box, Grid, IconButton, Tooltip } from '@mui/material'\nimport CheckCircleRoundedIcon from '@mui/icons-material/CheckCircleRounded'\nimport NavigateNextIcon from '@mui/icons-material/NavigateNext'\nimport NavigateBeforeIcon from '@mui/icons-material/NavigateBefore'\n\nimport useI18n from 'hooks/useI18n'\nimport TransitionComponent from 'components/transition_component'\nimport { Select, Button } from 'containers/themed'\nimport DeleteIcon from '@mui/icons-material/Delete'\nimport { green, grey } from '@mui/material/colors'\n\nimport { listUniqueById } from 'utils/immutable'\nimport { Document, Page } from 'utils/pdf'\nimport { formatBytes } from 'utils/number'\n\nimport { linkedInPost as initialLinkedInPost } from 'static/linked_in_post_config'\n\nconst useStyles = makeStyles()(theme => ({\n video: {\n width: '100%',\n height: 260\n },\n galleryControls: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n marginBottom: '1em'\n },\n imageListBox: {\n overflowY: 'scroll',\n height: 460\n },\n lastUploaded: {\n [theme.breakpoints.down('md')]: {\n marginBottom: '1em'\n }\n },\n document: {\n marginRight: '0.5em',\n marginBottom: '0.5em'\n },\n loadMoreButton: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '281px !important'\n },\n pdfPaging: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n height: '25px',\n marginTop: '2px'\n }\n}))\n\nconst MediaGallery = ({\n contentFormData,\n uploadedMediaFiles,\n onChange,\n loadMoreDisabled,\n requestRunning,\n fetchMoreMediaFilesStart,\n onImageDelete\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const mediaTypeOptions = [\n { value: 'image', label: i18n.get('image') },\n { value: 'video', label: i18n.get('video') },\n { value: 'document', label: i18n.get('document') }\n ]\n\n const currentLinkedInPost = contentFormData.get('linkedInPost') || fromJS(initialLinkedInPost)\n const currentSelectedMediaFiles = contentFormData.get('ccdMediaFiles')\n const currentSelectedMediaFileIds = currentSelectedMediaFiles.map(f => f.get('id'))\n const linkedInContentType = currentLinkedInPost.get('type')\n\n const [uploadedImages, setUploadedImages] = useState(uploadedMediaFiles.filter(f => f.get('mimeType').startsWith('image')))\n const [uploadedVideos, setUploadedVideos] = useState(uploadedMediaFiles.filter(f => f.get('mimeType').startsWith('video')))\n const [uploadedDocuments, setUploadedDocuments] = useState(uploadedMediaFiles.filter(f => f.get('mimeType') === 'application/pdf'))\n const [mediaType, setMediaType] = useState('image')\n const [multiImageValid, setMultiImageValid] = useState(true)\n const [hoveredImageId, setHoveredImageId] = useState(null)\n const [totalPages, setTotalPages] = useState({})\n const [pageNumbers, setPageNumbers] = useState({})\n\n const onDocumentLoadSuccess = (documentId, { numPages }) => {\n setPageNumbers(prevPageNumbers => ({\n ...prevPageNumbers,\n [documentId]: 1\n }))\n setTotalPages(prevTotalPages => ({\n ...prevTotalPages,\n [documentId]: numPages\n }))\n }\n\n const changePage = (documentId, offset) => {\n setPageNumbers(prevPageNumbers => ({\n ...prevPageNumbers,\n [documentId]: prevPageNumbers[documentId] + offset\n }))\n }\n const previousPage = (documentId, e) => {\n e.stopPropagation()\n changePage(documentId, -1)\n }\n const nextPage = (documentId, e) => {\n e.stopPropagation()\n changePage(documentId, 1)\n }\n\n const handleDeleteImage = id => {\n onImageDelete({ id })\n }\n\n useEffect(() => {\n const allUploadedImageFiles = uploadedMediaFiles\n .filter(f => f.get('mimeType').startsWith('image'))\n .concat(contentFormData.get('ccdMediaFiles').filter(f => f.get('mimeType').startsWith('image')))\n .reduce((acc, current) => {\n if (!acc.find(item => item.get('id') === current.get('id'))) {\n return acc.push(current)\n }\n\n return acc\n }, fromJS([]))\n\n const allUploadedVideoFiles = uploadedMediaFiles\n .filter(f => f.get('mimeType').startsWith('video'))\n .concat(contentFormData.get('ccdMediaFiles').filter(f => f.get('mimeType').startsWith('video')))\n .reduce((acc, current) => {\n if (!acc.find(item => item.get('id') === current.get('id'))) {\n return acc.push(current)\n }\n\n return acc\n }, fromJS([]))\n\n const allUploadedDocumentFiles = uploadedMediaFiles\n .filter(f => f.get('mimeType') === 'application/pdf')\n .concat(uploadedDocuments)\n .concat(contentFormData.get('ccdMediaFiles').filter(f => f.get('mimeType') === 'application/pdf'))\n .reduce((acc, current) => {\n if (!acc.find(item => item.get('id') === current.get('id'))) {\n return acc.push(current)\n }\n\n return acc\n }, fromJS([]))\n\n if (linkedInContentType === 'multi_image') {\n if (currentSelectedMediaFiles.size <= 9) {\n setMultiImageValid(true)\n } else {\n setMultiImageValid(false)\n }\n }\n\n setUploadedImages(allUploadedImageFiles)\n setUploadedVideos(allUploadedVideoFiles)\n setUploadedDocuments(allUploadedDocumentFiles)\n }, [uploadedMediaFiles, contentFormData])\n\n useEffect(() => {\n if (currentSelectedMediaFiles.find(f => f.get('mimeType').startsWith('video'))) {\n return setMediaType('video')\n }\n\n if (currentSelectedMediaFiles.find(f => f.get('mimeType') === 'application/pdf')) {\n return setMediaType('document')\n }\n\n return setMediaType('image')\n }, [])\n\n const toggleImageSelect = selectedMediaFile => {\n let mediaContent = Map({})\n let newSelected = List()\n let linkedInImages = List()\n\n if (currentSelectedMediaFileIds.includes(selectedMediaFile.get('id'))) {\n newSelected = currentSelectedMediaFiles.filter(selected => selected.get('id') !== selectedMediaFile.get('id'))\n } else {\n newSelected = currentSelectedMediaFiles.unshift(fromJS(selectedMediaFile))\n }\n\n linkedInImages = newSelected.map(selected => (fromJS({\n altText: selected.get('filename'),\n id: String(selected.get('id'))\n })))\n linkedInImages = listUniqueById(linkedInImages)\n\n if (newSelected.size > 1) {\n mediaContent = fromJS({\n multiImage: {\n images: linkedInImages\n }\n })\n\n onChange({ key: 'linkedInPost', value: currentLinkedInPost.set('content', mediaContent).set('type', 'multi_image') })\n onChange({ key: 'ccdMediaFiles', value: newSelected })\n }\n\n if (newSelected.size === 1) {\n mediaContent = fromJS({\n media: {\n altText: selectedMediaFile.get('filename'),\n id: String(selectedMediaFile.get('id'))\n }\n })\n\n onChange({ key: 'linkedInPost', value: currentLinkedInPost.set('content', mediaContent).set('type', 'image') })\n onChange({ key: 'ccdMediaFiles', value: newSelected })\n }\n\n if (!newSelected.size) {\n onChange({ key: 'linkedInPost', value: currentLinkedInPost.set('content', mediaContent).set('type', 'text_only') })\n onChange({ key: 'ccdMediaFiles', value: newSelected })\n }\n\n if (currentSelectedMediaFiles.size <= 9) {\n setMultiImageValid(true)\n } else {\n setMultiImageValid(false)\n }\n }\n\n const toggleVideoSelect = selectedMediaFile => {\n let newSelected = List()\n let mediaContent = Map({})\n\n if (!currentSelectedMediaFileIds.includes(selectedMediaFile.get('id'))) {\n newSelected = newSelected.push(selectedMediaFile)\n\n mediaContent = fromJS({\n media: {\n title: currentLinkedInPost.getIn(['content', 'media', 'title'], ''),\n id: String(selectedMediaFile.get('id'))\n }\n })\n\n onChange({ key: 'linkedInPost', value: currentLinkedInPost.set('content', mediaContent).set('type', 'video') })\n onChange({ key: 'ccdMediaFiles', value: newSelected })\n } else {\n onChange({ key: 'linkedInPost', value: currentLinkedInPost.set('content', mediaContent).set('type', 'text_only') })\n onChange({ key: 'ccdMediaFiles', value: newSelected })\n }\n }\n\n const toggleDocumentSelect = selectedMediaFile => {\n let newSelected = List()\n let mediaContent = Map({})\n\n if (!currentSelectedMediaFileIds.includes(selectedMediaFile.get('id'))) {\n newSelected = newSelected.push(selectedMediaFile)\n\n mediaContent = fromJS({\n media: {\n title: currentLinkedInPost.getIn(['content', 'media', 'title'], ''),\n id: String(selectedMediaFile.get('id'))\n }\n })\n\n onChange({ key: 'linkedInPost', value: currentLinkedInPost.set('content', mediaContent).set('type', 'document') })\n onChange({ key: 'ccdMediaFiles', value: newSelected })\n } else {\n onChange({ key: 'linkedInPost', value: currentLinkedInPost.set('content', mediaContent).set('type', 'text_only') })\n onChange({ key: 'ccdMediaFiles', value: newSelected })\n }\n }\n\n const renderMultiImageValidInfo = () => {\n if (mediaType !== 'image') {\n return null\n }\n\n if (multiImageValid === true) {\n return null\n }\n\n return (\n \n {i18n.get('linked_in_multi_image_info')}\n \n )\n }\n\n const renderImageGallery = () => {\n if (mediaType !== 'image') {\n return null\n }\n\n if (!uploadedImages.size && !contentFormData.get('ccdMediaFiles').size) {\n return null\n }\n\n return (\n \n \n {uploadedImages.map(item => (\n setHoveredImageId(item.get('id'))}\n onMouseLeave={() => setHoveredImageId(null)}\n >\n {(hoveredImageId === item.get('id')) && (\n \n {item.get('filename')}\n \n )}\n subtitle={formatBytes(item.get('size'))}\n actionIcon={(\n handleDeleteImage(item.get('id'))}\n >\n \n \n )}\n actionPosition=\"right\"\n />\n )}\n {currentSelectedMediaFileIds.includes(item.get('id'))\n && (\n }\n />\n )}\n {/* eslint-disable-next-line */}\n toggleImageSelect(item)}\n src={`${item.get('url')}`}\n srcSet={`${item.get('url')}`}\n alt={item.get('id')}\n loading=\"lazy\"\n style={{ objectFit: 'contain' }}\n />\n \n ))}\n \n {i18n.get('load_more')}\n \n \n \n \n )\n }\n\n const getVideoSelectedColor = item => {\n if (currentSelectedMediaFileIds.includes(item.get('id'))) {\n return green[300]\n }\n\n return grey[400]\n }\n\n const renderVideoValidInfo = () => {\n if (mediaType !== 'video') {\n return null\n }\n\n if (currentSelectedMediaFileIds.size === 1) {\n return null\n }\n\n return (\n \n {i18n.get('linked_in_video_info')}\n \n )\n }\n\n const renderVideoGallery = () => {\n if (mediaType !== 'video') {\n return null\n }\n\n if (!uploadedVideos.size && !contentFormData.get('ccdMediaFiles').size) {\n return null\n }\n\n return (\n <>\n \n {uploadedVideos.map(item => {\n if (currentSelectedMediaFiles.size && !currentSelectedMediaFileIds.includes(item.get('id'))) {\n return null\n }\n\n return (\n \n \n \n \n toggleVideoSelect(item)}\n subtitle={i18n.get('click_here_to_select')}\n position=\"below\"\n actionPosition=\"left\"\n actionIcon={}\n />\n \n )\n })}\n \n \n )\n }\n\n const renderDocumentGallery = () => {\n if (mediaType !== 'document') {\n return null\n }\n\n if (!uploadedDocuments.size && !contentFormData.get('ccdMediaFiles').size) {\n return null\n }\n\n return (\n \n \n {uploadedDocuments.map(item => {\n const documentId = item.get('id')\n\n return (\n toggleDocumentSelect(item)}\n >\n onDocumentLoadSuccess(documentId, props)}\n >\n \n \n
\n

\n {i18n.get('page')} {pageNumbers[documentId]\n || (totalPages[documentId] ? 1 : '--')} {i18n.get('of')} {totalPages[documentId] || '--'}\n

\n {(totalPages[documentId] !== 1) && (\n
\n previousPage(documentId, e)}\n title={i18n.get('previous')}\n size=\"small\"\n >\n \n \n = totalPages[documentId]}\n onClick={e => nextPage(documentId, e)}\n size=\"small\"\n >\n \n \n
\n )}\n
\n {currentSelectedMediaFileIds.includes(documentId)\n && (\n }\n />\n )}\n \n )\n })}\n \n \n )\n }\n\n return (\n <>\n \n {i18n.get('last_uploaded')}\n \n \n = 1}\n onChange={({ value: v }) => setMediaType(v)}\n options={mediaTypeOptions}\n value={mediaType}\n label={i18n.get('media_type')}\n />\n \n \n \n {renderMultiImageValidInfo()}\n \n \n {renderVideoValidInfo()}\n \n {renderImageGallery()}\n {renderVideoGallery()}\n {renderDocumentGallery()}\n \n )\n}\n\nMediaGallery.propTypes = {\n contentFormData: PropTypes.instanceOf(Map).isRequired,\n uploadedMediaFiles: PropTypes.instanceOf(List).isRequired,\n loadMoreDisabled: PropTypes.bool.isRequired,\n requestRunning: PropTypes.bool.isRequired,\n\n onChange: PropTypes.func.isRequired,\n fetchMoreMediaFilesStart: PropTypes.func.isRequired,\n onImageDelete: PropTypes.func.isRequired\n}\n\nexport default MediaGallery\n","import { connect } from 'react-redux'\n\nimport MediaGallery from 'components/content_desk/content_edit_dialog/content_editor/linked_in_editor/media_gallery'\nimport {\n setContentFormData,\n fetchMoreMediaFilesStart,\n deleteMediaFileStart\n} from 'actions/content_desk'\nimport {\n getCDeskContentFormData,\n getCDeskUploadedMediaFiles,\n getCDeskUploadedMediaFilesTotal,\n getCDeskMediaFilesPage,\n getCDeskMediaFilesLimit,\n getCDeskMediaFilesLoading\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n contentFormData: getCDeskContentFormData(state),\n uploadedMediaFiles: getCDeskUploadedMediaFiles(state),\n loadMoreDisabled: getCDeskUploadedMediaFilesTotal(state) < (getCDeskMediaFilesPage(state) - 1) * getCDeskMediaFilesLimit(state),\n requestRunning: getCDeskMediaFilesLoading(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: setContentFormData,\n fetchMoreMediaFilesStart,\n onImageDelete: deleteMediaFileStart\n }\n)(MediaGallery)\n","export const renderMood = mood => {\n if (mood === 'optimistic but not exaggerated') {\n return 'optimistic'\n }\n\n if (mood === 'pessimistic but not exaggerated') {\n return 'pessimistic'\n }\n\n return mood\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\n\nimport KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'\nimport { Button, Menu } from 'containers/themed'\n\nimport { getContentLanguageOptions } from 'utils/translation'\n\nimport { CdEditorMoods } from 'static/constants'\nimport { renderMood } from 'utils/ai_editor'\nimport { MenuItem } from '@mui/material'\n\nconst useStyles = makeStyles()({\n wrapper: {\n display: 'flex',\n marginTop: '1em'\n },\n actionButton: {\n marginRight: '0.5em',\n marginBottom: '0.5em'\n }\n})\n\nconst EditorAiWorkspace = ({ contentType, loading, onButtonClick }) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const handleTranslateClick = language => {\n onButtonClick({ contentType, actionType: 'TRANSLATE', language })\n }\n\n const handleCreateMoodClick = mood => {\n onButtonClick({ contentType, actionType: 'CREATE_MOOD', mood })\n }\n\n const renderTranslationOptions = option => (\n handleTranslateClick(option.label)}\n key={option.value}\n >\n {option.label}\n \n )\n\n const renderMoodOptions = option => (\n handleCreateMoodClick(option.label)}\n key={option.id}\n >\n {i18n.get(`${renderMood(option.label)}`)}\n \n )\n\n const translationOptions = getContentLanguageOptions().map(option => renderTranslationOptions(option))\n const moodOptions = CdEditorMoods.map(option => renderMoodOptions(option))\n\n return (\n
\n
\n onButtonClick({ contentType, actionType: 'PROLONG_TEXT' })}\n variant=\"contained\"\n color=\"primary\"\n >\n {i18n.get('prolong_text')}\n \n onButtonClick({ contentType, actionType: 'SHORTEN_TEXT' })}\n variant=\"contained\"\n color=\"primary\"\n >\n {i18n.get('shorten_text')}\n \n onButtonClick({ contentType, actionType: 'SPELL_CHECK' })}\n variant=\"contained\"\n color=\"primary\"\n >\n {i18n.get('spell_check')}\n \n }\n disabled={loading}\n variant=\"contained\"\n color=\"primary\"\n >{i18n.get('translate')}\n \n )}\n >\n {translationOptions}\n \n }\n disabled={loading}\n variant=\"contained\"\n color=\"primary\"\n >{i18n.get('create_mood')}\n \n )}\n >\n {moodOptions}\n \n onButtonClick({ contentType, actionType: 'CREATE_HASHTAGS' })}\n variant=\"contained\"\n color=\"primary\"\n >\n {i18n.get('create_hashtags')}\n \n {contentType === 'facebook' && (\n onButtonClick({ contentType, actionType: 'CREATE_FACEBOOK_POST' })}\n variant=\"contained\"\n color=\"primary\"\n >\n {i18n.get('create_facebook_post')}\n \n )}\n {contentType === 'linkedIn' && (\n onButtonClick({ contentType, actionType: 'CREATE_LINKEDIN_POST' })}\n variant=\"contained\"\n color=\"primary\"\n >\n {i18n.get('create_linkedin_post')}\n \n ) }\n
\n
\n )\n}\n\nEditorAiWorkspace.propTypes = {\n contentType: PropTypes.string.isRequired,\n loading: PropTypes.bool.isRequired,\n onButtonClick: PropTypes.func.isRequired\n}\n\nexport default EditorAiWorkspace\n","import { connect } from 'react-redux'\n\nimport EditorAiWorkspace from 'components/content_desk/editor_ai_workspace'\n\nimport { editorAiRequestStart } from 'actions/content_desk'\n\nimport { getCDeskEditorAiRequestRunning } from 'selectors'\n\nconst mapStateToProps = (state, { contentType }) => ({\n contentType,\n loading: getCDeskEditorAiRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onButtonClick: editorAiRequestStart\n }\n)(EditorAiWorkspace)\n","/* global navigator */\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport { List } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\nimport { useSnackbar } from 'notistack'\n\nimport { Paper, Typography, CircularProgress } from '@mui/material'\n\nimport RemoveRedEyeIcon from '@mui/icons-material/RemoveRedEye'\nimport ContentCopyIcon from '@mui/icons-material/ContentCopy'\n\nimport { IconButton, Popover } from 'containers/themed'\n\nimport { renderMood } from 'utils/ai_editor'\n\nconst useStyles = makeStyles()({\n heading: {\n display: 'flex',\n marginBottom: '0.5em'\n },\n resultHeading: {\n display: 'flex',\n alignItems: 'center'\n\n },\n resultHeadingText: {\n fontStyle: 'italic'\n },\n circularProgress: {\n marginLeft: '1em'\n },\n noResults: {\n marginBottom: '0.5em'\n },\n resultEntry: {\n padding: 10,\n marginBottom: '0.5em'\n },\n source: {\n padding: 10\n }\n})\n\nconst PromptHistory = ({ entries, loading }) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n const { enqueueSnackbar } = useSnackbar()\n\n const handleCopyClick = entry => {\n navigator.clipboard.writeText(entry.get('text'))\n\n return enqueueSnackbar(`${i18n.get('result_copied')}`, {\n variant: 'success',\n preventDuplicate: true,\n autoHideDuration: 2000\n })\n }\n\n const renderResult = entry => (\n \n
\n \n {`${entry.get('resultId')}. ${i18n.get(`${entry.get('action')}`)} ${\n entry.get('mood')\n ? `(${i18n.get(`${renderMood(entry.get('mood'))}`)})`\n : ''\n }`}\n \n \n \n \n )}\n >\n \n {`${i18n.get('source')} ${i18n.get('text')}: ${entry.get('source')}`}\n \n \n handleCopyClick(entry)}\n >\n \n \n\n
\n {entry.get('text')}\n \n )\n\n return (\n
\n
\n {i18n.get('ai_suggestions')}\n {loading && (\n \n )}\n
\n
\n {!entries.size && (\n \n {i18n.get('editor_ai_no_results')}\n \n )}\n {entries.map(el => renderResult(el))}\n
\n
\n
\n )\n}\n\nPromptHistory.propTypes = {\n entries: PropTypes.instanceOf(List).isRequired,\n loading: PropTypes.bool.isRequired\n}\n\nexport default PromptHistory\n","import { connect } from 'react-redux'\n\nimport PromptHistory from 'components/content_desk/prompt_history'\n\nimport { getCDeskAiRequestResults, getCDeskEditorAiRequestRunning } from 'selectors'\n\nconst mapStateToProps = state => ({\n entries: getCDeskAiRequestResults(state),\n loading: getCDeskEditorAiRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(PromptHistory)\n","import React, { useEffect } from 'react'\nimport { Map } from 'immutable'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport useI18n from 'hooks/useI18n'\n\nimport {\n CircularProgress,\n Box,\n ImageList,\n ImageListItem,\n ImageListItemBar,\n IconButton,\n TextField,\n InputAdornment,\n Tooltip\n} from '@mui/material'\n\nimport CloudDownloadIcon from '@mui/icons-material/CloudDownload'\nimport SearchIcon from '@mui/icons-material/Search'\n\nimport { Button } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n circularLoader: {\n width: '100%',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '460px'\n },\n searchField: {\n marginBottom: '15px'\n },\n imageListBox: {\n overflowY: 'scroll',\n height: 460\n },\n loadMoreButton: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '300px !important'\n },\n hotlink: {\n textDecoration: 'underline',\n color: 'white'\n },\n subtitleWrapper: {\n fontSize: '9pt'\n }\n})\n\nconst Unsplash = ({\n photosData,\n requestRunning,\n downloadRequestRunning,\n formData,\n isRandomSearch,\n loadMoreDisabled,\n selectedImageId,\n startUnsplashSearch,\n fetchRandomPhotos,\n onChange,\n resetUnsplashPhotos,\n addToLibrary\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleLoadMore = () => {\n if (isRandomSearch) {\n return fetchRandomPhotos()\n }\n\n return startUnsplashSearch()\n }\n\n const handleMainSearch = () => {\n resetUnsplashPhotos()\n\n return startUnsplashSearch()\n }\n\n const handleChange = e => onChange({ name: e.target.name, value: e.target.value })\n\n const handleOnEnter = e => {\n if (e.code === 'Enter') {\n handleMainSearch()\n }\n }\n\n useEffect(() => {\n if (photosData.get('items').size === 0) {\n fetchRandomPhotos()\n }\n }, [])\n\n const renderLoader = () => (\n
\n \n
\n )\n\n const renderSubtitle = item => (\n
\n Photo by \n \n {`${item.getIn(['user', 'first_name'])} ${item.getIn(['user', 'last_name']) || ''}`}\n  on \n Unsplash\n \n
\n )\n\n return (\n <>\n \n \n \n \n \n )\n }}\n />\n {(requestRunning && photosData.get('items').size === 0) ? renderLoader() : (\n \n \n {photosData.get('items').map(item => (\n \n \n null}\n sx={{\n '& .MuiImageListItemBar-title': { fontSize: '9pt' }\n }}\n title={item.get('description') || item.get('alt_description')}\n subtitle={renderSubtitle(item)}\n actionIcon={(\n \n addToLibrary({\n url: item.getIn(['links', 'download_location']),\n filename: item.get('slug'),\n id: item.get('id')\n })}\n disabled={downloadRequestRunning}\n >\n {(downloadRequestRunning && selectedImageId === item.get('id')) ? (\n \n )\n : }\n \n \n )}\n />\n \n ))}\n \n {i18n.get('load_more')}\n \n \n \n \n )}\n \n )\n}\n\nUnsplash.propTypes = {\n photosData: PropTypes.instanceOf(Map).isRequired,\n requestRunning: PropTypes.bool.isRequired,\n formData: PropTypes.instanceOf(Map).isRequired,\n isRandomSearch: PropTypes.bool.isRequired,\n loadMoreDisabled: PropTypes.bool.isRequired,\n downloadRequestRunning: PropTypes.bool.isRequired,\n selectedImageId: PropTypes.string,\n\n startUnsplashSearch: PropTypes.func.isRequired,\n fetchRandomPhotos: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n resetUnsplashPhotos: PropTypes.func.isRequired,\n addToLibrary: PropTypes.func.isRequired\n}\n\nexport default Unsplash\n","import { connect } from 'react-redux'\n\nimport Unsplash from 'components/unsplash'\n\nimport {\n searchUnsplashPhotosStart as startUnsplashSearch,\n fetchRandomUnsplashPhotosStart as fetchRandomPhotos,\n setUnsplashFormData as onChange,\n resetUnsplashPhotos,\n addImageToLibraryStart as addToLibrary\n} from 'actions/unsplash'\n\nimport {\n getUnsplashRequestRunning,\n getUnsplashPhotos,\n getUnsplashFormData,\n getIsRandomSearch,\n getUnsplashPage,\n getUnsplashDownloadRequestRunning,\n getUnsplashSelectedImageId\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n requestRunning: getUnsplashRequestRunning(state),\n photosData: getUnsplashPhotos(state),\n formData: getUnsplashFormData(state),\n isRandomSearch: getIsRandomSearch(state),\n loadMoreDisabled: getUnsplashPage(state) >= getUnsplashPhotos(state).get('totalPages'),\n downloadRequestRunning: getUnsplashDownloadRequestRunning(state),\n selectedImageId: getUnsplashSelectedImageId(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n startUnsplashSearch,\n fetchRandomPhotos,\n onChange,\n resetUnsplashPhotos,\n addToLibrary\n }\n)(Unsplash)\n","/* global window */\nimport React, { useState, useRef, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { List, Map, fromJS } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport { debounce } from 'throttle-debounce'\nimport { useSnackbar } from 'notistack'\nimport useI18n from 'hooks/useI18n'\nimport getUrls from 'get-urls'\nimport ApartmentIcon from '@mui/icons-material/Apartment'\n\nimport EmojiPicker from 'emoji-picker-react'\n\nimport { Alert,\n Grid,\n Switch,\n FormControlLabel,\n List as MuiList, ListItem, ListItemAvatar, ListItemText, ListItemButton,\n LinearProgress } from '@mui/material'\n\nimport CircularProgress from '@mui/material/CircularProgress'\nimport YoutubeSearchedFor from '@mui/icons-material/YoutubeSearchedFor'\n\nimport ImageOutlinedIcon from '@mui/icons-material/ImageOutlined'\nimport InsertEmoticonIcon from '@mui/icons-material/InsertEmoticon'\nimport ImageSearchIcon from '@mui/icons-material/ImageSearch'\nimport PhotoLibraryIcon from '@mui/icons-material/PhotoLibrary'\n\nimport { Autocomplete, BrowseButton, Input, IconButton, Popover, Button } from 'containers/themed'\nimport { green, red } from '@mui/material/colors'\nimport TextField from '@mui/material/TextField'\n\nimport MediaGallery from 'containers/content_desk/content_edit_dialog/linked_in_editor/MediaGallery'\nimport ContentPreview from 'containers/content_desk/ContentPreview'\nimport EditorAiWorkspace from 'containers/content_desk/EditorAiWorkspace'\nimport PromptHistory from 'containers/content_desk/PromptHistory'\nimport Unsplash from 'containers/Unsplash'\n\nimport { linkedInPost as initialLinkedInPost, linkedInRequiredPermissions } from 'static/linked_in_post_config'\n\nimport { mapToOptions } from 'utils/autocomplete'\nimport { formatBytes } from 'utils/number'\nimport { UploadedMediaFilesSizeLimit } from 'static/constants'\n\nconst useStyles = makeStyles()(theme => ({\n postLengthInfo: {\n marginTop: '0.5em',\n textAlign: 'right'\n },\n validPostLength: {\n color: green[500]\n },\n invalidPostLength: {\n fontWeight: 'bold',\n color: red[500]\n },\n uploadButton: {\n width: '205px',\n height: '56px'\n },\n previewContainer: {\n display: 'flex',\n borderRadius: '10px',\n backgroundColor: theme.isDark ? '#1E1E1E' : '#F0F0F0',\n padding: '1em',\n width: '100%',\n marginTop: '0.5em'\n },\n previewInnerContainer: {\n display: 'flex',\n justifyContent: 'center',\n width: '50%',\n margin: 'auto'\n },\n previewLabel: {\n fontStyle: 'italic',\n color: !theme.isDark && '#757575',\n fontSize: '11pt',\n fontWeight: 500\n },\n aiModeSwitch: {\n float: 'left'\n },\n compaynSearchPopOver: {\n padding: 10,\n minWidth: 350\n },\n linkLoader: {\n marginTop: 5,\n height: 5\n }\n}))\n\nconst LinkedInEditor = ({\n contentFormData,\n organizations,\n permissions,\n profile,\n mediaFileUploading,\n uploadedMediaFilesTotalSize,\n linkLoading,\n socialMediaLinkBuildFailed,\n aiMode,\n onChange,\n onUpload,\n onSelect,\n toggleEditorAiMode,\n unsplashIsVisible,\n toggleUnsplash,\n navigate,\n companySearchStart,\n companySearchResults,\n buildSocialMediaLink\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n const { enqueueSnackbar } = useSnackbar()\n\n const inputRef = useRef(0)\n const [cursorPosition, setCursorPosition] = useState(0)\n const [isEmojiClick, setIsEmojiClick] = useState(false)\n const [emojiLength, setEmojiLength] = useState(0)\n const [inputRows, setInputRows] = useState(6)\n const [matchedUrl, setMatchedUrl] = useState(null)\n const [companySearchValue, setCompanySearchValue] = useState('')\n const [companySearchOpen, setCompanySearchOpen] = useState(false)\n const [results, setResults] = useState(fromJS([]))\n const [loading, setLoading] = useState(false)\n\n const profileName = profile.get('name')\n const profileUrn = profile.get('urn')\n\n const currentLinkedInPost = contentFormData.get('linkedInPost') || fromJS(initialLinkedInPost)\n const currentPostDestination = contentFormData.getIn(['linkedInPost', 'author'], '')\n const contentType = contentFormData.getIn(['linkedInPost', 'type'])\n\n const postDestinations = List([\n ...(profileUrn ? [fromJS({ id: 0, urn: profileUrn, name: profileName })] : []),\n ...organizations\n ])\n\n const postDestinationOptions = [\n ...(profileUrn ? [{ label: profileName, value: 0 }] : []),\n {\n label: i18n.get('organizations'),\n options: mapToOptions(organizations)\n }\n ]\n\n const handleSelectionChange = () => {\n const selection = window.getSelection().toString()\n onSelect(selection)\n }\n\n useEffect(() => {\n setLoading(false)\n setResults(companySearchResults.map(r => ({ label: r.get('id'),\n title: r.get('localizedName'),\n logo: r.get('logoUrl') }\n )).toJS())\n }, [companySearchResults])\n\n useEffect(() => {\n inputRef.current.focus()\n\n if (inputRef.current && !isEmojiClick) {\n setCursorPosition(inputRef.current.selectionStart)\n }\n\n if (inputRef.current && isEmojiClick) {\n setCursorPosition(current => current + emojiLength)\n }\n\n setIsEmojiClick(false)\n setEmojiLength(0)\n }, [currentLinkedInPost])\n\n useEffect(() => {\n if (contentType !== 'text_only' || !matchedUrl) {\n return () => { }\n }\n\n const timer = setTimeout(() => {\n buildSocialMediaLink({ url: matchedUrl, socialMedia: 'linkedin' })\n setMatchedUrl(null)\n }, 1000)\n\n return () => {\n clearTimeout(timer)\n }\n }, [matchedUrl])\n\n useEffect(() => {\n if (socialMediaLinkBuildFailed) {\n enqueueSnackbar(\n `${i18n.get('error_building_social_media_link')}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n }, [socialMediaLinkBuildFailed])\n\n let selectedPostDestination\n\n if (currentPostDestination) {\n selectedPostDestination = postDestinations.find(o => o.get('urn') === currentPostDestination)\n\n if (selectedPostDestination) {\n selectedPostDestination = { id: selectedPostDestination.get('id'), label: selectedPostDestination.get('name') }\n }\n }\n\n const handleCompanySearch = () => {\n setLoading(true)\n companySearchStart(companySearchValue)\n }\n\n const handleChange = e => {\n const { name, value } = e.target\n\n if (contentType === 'text_only') {\n const urls = Array.from(getUrls(value, { forceHttps: true, stripWWW: false }))\n const url = urls.length > 0 ? urls[0] : null\n\n if (url) {\n setMatchedUrl(url)\n }\n }\n\n if (name === 'commentary') {\n onChange({ key: 'plainText', value })\n }\n\n onChange({ key: 'linkedInPost', value: currentLinkedInPost.set(name, value) })\n }\n\n const handleChannelChange = option => {\n const newLinkedInPost = currentLinkedInPost.set('author', postDestinations.find(o => o.get('id') === option.value).get('urn'))\n\n onChange({ key: 'linkedInPost', value: newLinkedInPost })\n }\n\n const handleMediaTitleChange = e => {\n onChange({ key: 'linkedInPost', value: currentLinkedInPost.setIn(['content', 'media', 'title'], e.target.value) })\n }\n\n const handleInputClick = () => {\n if (inputRef.current) {\n setCursorPosition(inputRef.current.selectionStart)\n setInputRows(12)\n }\n }\n\n const handleBlur = () => {\n setInputRows(6)\n }\n\n const handleEmojiClick = (emoji, _event) => {\n onChange({\n key: 'linkedInPost',\n value: currentLinkedInPost\n .set('commentary', `${currentLinkedInPost.get('commentary')\n .slice(0, cursorPosition) + emoji.emoji + currentLinkedInPost.get('commentary')\n .slice(cursorPosition)}`)\n })\n setIsEmojiClick(true)\n setEmojiLength(emoji.emoji.length)\n }\n\n const onMediaUpload = debounce(50, file => {\n const maxSize = 209715200 // max video file size 200MB\n let doUpload = true\n\n if (!file) {\n doUpload = false\n }\n\n if (file && ((file.size + uploadedMediaFilesTotalSize) > UploadedMediaFilesSizeLimit)) {\n doUpload = false\n\n enqueueSnackbar(\n `${i18n.get('exceeding_upload_storage_size_warning')}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n if (file && file.size > maxSize) {\n doUpload = false\n\n enqueueSnackbar(\n `${i18n.get('media_file_too_large', { size: formatBytes(maxSize) })}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n if (doUpload) {\n onUpload({ file })\n }\n }) // BrowseButton calls onChange twice, so debounce\n\n const renderMediaGallery = () => {\n if (contentType === 'link') {\n return null\n }\n\n return (\n \n {unsplashIsVisible ? : (\n \n )}\n \n )\n }\n\n const renderWarning = () => {\n const hasRequiredPermissions = linkedInRequiredPermissions.every(p => permissions.split(',').includes(p))\n\n if (hasRequiredPermissions) {\n return null\n }\n\n return (\n \n \n {i18n.get('linked_in_facebook_permission_warning')}\n navigate('/app/administration/external_accounts')}\n color=\"primary\"\n variant=\"outlined\"\n >{i18n.get('external_accounts')}\n \n \n \n )\n }\n\n const maxLength = 6000\n const postTextLength = currentLinkedInPost.get('commentary').length\n let postLengthClasses = `${classes.postLengthInfo} ${classes.validPostLength}`\n\n if (postTextLength > maxLength) {\n postLengthClasses = `${classes.postLengthInfo} ${classes.invalidPostLength}`\n }\n\n return (\n \n {renderWarning()}\n \n\n \n
\n {linkLoading ? (\n \n ) : null}\n
\n toggleEditorAiMode()}\n color=\"primary\"\n />\n )}\n label={i18n.get('ai_suggestions')}\n />\n \n setCompanySearchOpen(false)}\n open={companySearchOpen}\n handle={(\n \n {\n setCompanySearchOpen(true)\n }}\n />\n \n )}\n >\n
\n input && input.focus()}\n value={companySearchValue}\n onChange={e => setCompanySearchValue(e.target.value)}\n InputProps={{\n endAdornment: (\n <>\n {loading ? (\n \n ) : (\n \n handleCompanySearch()}\n />\n \n )}\n \n )\n }}\n />\n\n \n { results.map(r => (\n \n {\n onChange({\n key: 'linkedInPost',\n value: currentLinkedInPost\n .set(\n 'commentary',\n `${\n currentLinkedInPost.get('commentary').slice(0, cursorPosition)\n } @[${\n r.title\n }](urn:li:organization:${\n r.label\n }) ${currentLinkedInPost.get('commentary').slice(cursorPosition)}`\n )\n })\n setCompanySearchOpen(false)\n }}\n >\n \n \n \n \n \n \n ))}\n \n \n \n \n \n )}\n >\n \n \n {postTextLength}/{maxLength}\n
\n {aiMode && (\n \n )}\n {!aiMode && (\n <>\n
\n {`${i18n.get('preview')}:`}\n
\n
\n
\n \n
\n
\n \n )}\n \n \n {aiMode && (\n \n \n \n )}\n {!aiMode && (\n \n \n handleChannelChange(option)}\n options={postDestinationOptions}\n placeholder=\"\"\n value={selectedPostDestination}\n label={i18n.get('choose_linked_in_channel')}\n />\n \n \n
\n onMediaUpload(e.target.files[0])}\n >\n  {i18n.get('upload_media')}\n \n : }\n color=\"primary\"\n variant=\"outlined\"\n onClick={toggleUnsplash}\n >\n {`${i18n.get('image')} ${i18n.get(unsplashIsVisible ? 'library' : 'search')}`}\n \n
\n \n \n \n \n {renderMediaGallery()}\n \n )}\n \n \n )\n}\n\nLinkedInEditor.propTypes = {\n contentFormData: PropTypes.instanceOf(Map).isRequired,\n organizations: PropTypes.instanceOf(List).isRequired,\n permissions: PropTypes.string.isRequired,\n profile: PropTypes.instanceOf(Map).isRequired,\n aiMode: PropTypes.bool.isRequired,\n mediaFileUploading: PropTypes.bool.isRequired,\n unsplashIsVisible: PropTypes.bool.isRequired,\n uploadedMediaFilesTotalSize: PropTypes.number.isRequired,\n linkLoading: PropTypes.bool.isRequired,\n socialMediaLinkBuildFailed: PropTypes.bool.isRequired,\n companySearchResults: PropTypes.instanceOf(List).isRequired,\n\n onChange: PropTypes.func.isRequired,\n onUpload: PropTypes.func.isRequired,\n onSelect: PropTypes.func.isRequired,\n toggleEditorAiMode: PropTypes.func.isRequired,\n toggleUnsplash: PropTypes.func.isRequired,\n navigate: PropTypes.func.isRequired,\n buildSocialMediaLink: PropTypes.func.isRequired,\n companySearchStart: PropTypes.func.isRequired\n}\n\nexport default LinkedInEditor\n","import { connect } from 'react-redux'\n\nimport LinkedInEditor from 'components/content_desk/content_edit_dialog/content_editor/linked_in_editor'\nimport {\n setContentFormData,\n uploadLinkedInMediaFileStart,\n toggleEditorAiMode,\n setAiSelectedText,\n linkedInCompanySearchStart,\n buildSocialMediaLinkStart\n} from 'actions/content_desk'\n\nimport {\n toggleUnsplashComponent as toggleUnsplash\n} from 'actions/unsplash'\n\nimport { navigate } from 'actions/navigation'\n\nimport {\n getCDeskContentFormData,\n getStaticLinkedInAnalyticsOrganizations,\n getLinkedInPermissions,\n getLinkedInProfile,\n getCDeskMediaFileUploading,\n getCDeskEditorAiMode,\n getShowUnsplashComponent,\n getCDeskUploadedMediaFilesTotalSize,\n getSocialMediaLinkLoading,\n getSocialMediaLinkBuildFailed,\n getCDeskLinkedInCompanySearchResults\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n contentFormData: getCDeskContentFormData(state),\n companySearchResults: getCDeskLinkedInCompanySearchResults(state),\n organizations: getStaticLinkedInAnalyticsOrganizations(state),\n aiMode: getCDeskEditorAiMode(state),\n permissions: getLinkedInPermissions(state) || '',\n profile: getLinkedInProfile(state),\n mediaFileUploading: getCDeskMediaFileUploading(state),\n unsplashIsVisible: getShowUnsplashComponent(state),\n uploadedMediaFilesTotalSize: getCDeskUploadedMediaFilesTotalSize(state),\n linkLoading: getSocialMediaLinkLoading(state),\n socialMediaLinkBuildFailed: getSocialMediaLinkBuildFailed(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: setContentFormData,\n onUpload: uploadLinkedInMediaFileStart,\n onSelect: setAiSelectedText,\n toggleEditorAiMode,\n toggleUnsplash,\n navigate,\n companySearchStart: linkedInCompanySearchStart,\n buildSocialMediaLink: buildSocialMediaLinkStart\n }\n)(LinkedInEditor)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { FormControlLabel, Switch } from '@mui/material'\nimport { styled } from '@mui/material/styles'\n\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()(theme => ({\n iconWrapper: {\n backgroundColor: theme.palette.primary.main,\n width: 30,\n height: 30,\n borderRadius: '50%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n alignContent: 'center'\n }\n\n}))\n\nconst MaterialUISwitch = styled(Switch)(() => ({\n width: 62,\n height: 32,\n padding: 7,\n '& .MuiSwitch-switchBase': {\n margin: 1,\n padding: 0,\n transform: 'translateX(6px)',\n '&.Mui-checked': {\n color: '#fff',\n transform: 'translateX(25px)',\n '& + .MuiSwitch-track': {\n opacity: 1,\n backgroundColor: '#8796A5'\n }\n }\n },\n '& .MuiSwitch-thumb': {\n backgroundColor: '#003892',\n width: 40,\n height: 40\n },\n '& .MuiSwitch-track': {\n opacity: 1,\n backgroundColor: '#8796A5',\n borderRadius: 20 / 2\n }\n}))\n\nconst ThemedSwitch = ({ LeftIcon, RightIcon, iconColor, label, checked, disabled, handleChange }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n return (\n \n \n
\n )}\n checkedIcon={(\n
\n \n
\n )}\n sx={{\n m: 1\n }}\n />\n )}\n label={i18n.get(label)}\n />\n )\n}\n\nThemedSwitch.propTypes = {\n LeftIcon: PropTypes.any,\n RightIcon: PropTypes.any,\n iconColor: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n\n checked: PropTypes.bool.isRequired,\n disabled: PropTypes.bool.isRequired,\n handleChange: PropTypes.func.isRequired\n}\n\nexport default ThemedSwitch\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport { List, Map, fromJS } from 'immutable'\nimport useI18n from 'hooks/useI18n'\n\nimport { ImageList, ImageListItem, ImageListItemBar, Box, IconButton, Tooltip } from '@mui/material'\nimport CheckCircleRoundedIcon from '@mui/icons-material/CheckCircleRounded'\nimport CameraAltIcon from '@mui/icons-material/CameraAlt'\nimport TheatersIcon from '@mui/icons-material/Theaters'\nimport DeleteIcon from '@mui/icons-material/Delete'\nimport { green, grey } from '@mui/material/colors'\n\nimport Switch from 'components/themed/switch'\nimport { Button } from 'containers/themed'\n\nimport { facebookPost as initialFacebookPost } from 'static/facebook_post_config'\n\nimport { formatBytes } from 'utils/number'\n\nconst useStyles = makeStyles()({\n video: {\n width: '100%',\n maxHeight: 235\n },\n galleryControls: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center'\n },\n imageListBox: {\n overflowY: 'scroll',\n height: 460\n },\n loadMoreButton: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '281px !important'\n }\n})\n\nconst MediaGallery = ({\n contentType,\n contentFormData,\n uploadedMediaFiles,\n loadMoreDisabled,\n requestRunning,\n onChange,\n fetchMoreMediaFilesStart,\n onImageDelete\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const currentFacebookPost = contentFormData.get('facebookPost') || fromJS(initialFacebookPost)\n const currentAttachments = currentFacebookPost.get('mediaAttachments')\n const currentSelectedMediaFiles = contentFormData.get('ccdMediaFiles')\n const currentSelectedMediaFileIds = currentSelectedMediaFiles.map(f => f.get('id'))\n\n const [uploadedImages, setUploadedImages] = useState(uploadedMediaFiles.filter(f => f.get('mimeType').startsWith('image')))\n const [uploadedVideos, setUploadedVideos] = useState(uploadedMediaFiles.filter(f => f.get('mimeType').startsWith('video')))\n const [mediaType, setMediaType] = useState(contentType)\n const [hoveredImageId, setHoveredImageId] = useState(null)\n\n const handleDeleteImage = id => {\n onImageDelete({ id })\n }\n\n useEffect(() => {\n const allUploadedImageFiles = uploadedMediaFiles\n .filter(f => f.get('mimeType').startsWith('image'))\n .concat(contentFormData.get('ccdMediaFiles').filter(f => f.get('mimeType').startsWith('image')))\n .reduce((acc, current) => {\n if (!acc.find(item => item.get('id') === current.get('id'))) {\n return acc.push(current)\n }\n\n return acc\n }, fromJS([]))\n\n const allUploadedVideoFiles = uploadedMediaFiles\n .filter(f => f.get('mimeType').startsWith('video'))\n .concat(contentFormData.get('ccdMediaFiles').filter(f => f.get('mimeType').startsWith('video')))\n .reduce((acc, current) => {\n if (!acc.find(item => item.get('id') === current.get('id'))) {\n return acc.push(current)\n }\n\n return acc\n }, fromJS([]))\n\n setUploadedImages(allUploadedImageFiles)\n setUploadedVideos(allUploadedVideoFiles)\n }, [uploadedMediaFiles, contentFormData])\n\n const toggleImageSelect = selectedMediaFile => {\n let newSelected = List()\n let facebookImages = List()\n\n if (mediaType === 'image' || mediaType === 'text') {\n if (currentSelectedMediaFileIds.includes(selectedMediaFile.get('id'))) {\n newSelected = currentSelectedMediaFiles.filter(selected => selected.get('id') !== selectedMediaFile.get('id'))\n } else {\n newSelected = currentSelectedMediaFiles.unshift(fromJS(selectedMediaFile))\n }\n\n facebookImages = newSelected.map(selected => (fromJS({\n name: selected.get('filename'),\n url: selected.get('url'),\n id: selected.get('id'),\n message: ''\n })))\n\n onChange({\n key: 'facebookPost',\n value: currentFacebookPost.set('mediaAttachments', facebookImages).set('type', 'image')\n })\n onChange({ key: 'ccdMediaFiles', value: newSelected })\n }\n }\n\n const toggleVideoSelect = selectedMediaFile => {\n let newSelected = List()\n let facebookVideos = List()\n\n if (!currentSelectedMediaFileIds.includes(selectedMediaFile.get('id'))) {\n newSelected = newSelected.push(selectedMediaFile)\n }\n\n facebookVideos = newSelected.map(selected => (fromJS({\n name: selected.get('filename'),\n url: selected.get('url'),\n id: selected.get('id'),\n message: ''\n })))\n\n onChange({ key: 'facebookPost', value: currentFacebookPost.set('mediaAttachments', facebookVideos).set('type', 'video') })\n onChange({ key: 'ccdMediaFiles', value: newSelected })\n }\n\n const renderImageGallery = () => {\n if (mediaType !== 'image' && mediaType !== 'text') {\n return null\n }\n\n if (!uploadedImages.size && !contentFormData.get('ccdMediaFiles').size) {\n return null\n }\n\n return (\n \n \n {uploadedImages.map(item => (\n setHoveredImageId(item.get('id'))}\n onMouseLeave={() => setHoveredImageId(null)}\n >\n {(hoveredImageId === item.get('id')) && (\n \n {item.get('filename')}\n \n )}\n subtitle={formatBytes(item.get('size'))}\n actionIcon={(\n handleDeleteImage(item.get('id'))}\n >\n \n \n )}\n actionPosition=\"right\"\n />\n )}\n {currentSelectedMediaFileIds.includes(item.get('id'))\n && (\n }\n />\n )}\n {/* eslint-disable-next-line */}\n toggleImageSelect(item)}\n src={`${item.get('url')}?w=199&h=199&fit=crop&auto=format`}\n srcSet={`${item.get('url')}?w=199&h=199&fit=crop&auto=format&dpr=2 2x`}\n alt={item.get('id')}\n loading=\"lazy\"\n style={{ objectFit: 'contain' }}\n />\n \n ))}\n \n {i18n.get('load_more')}\n \n \n \n \n )\n }\n\n const getVideoSelectedColor = item => {\n if (currentSelectedMediaFileIds.includes(item.get('id'))) {\n return green[300]\n }\n\n return grey[400]\n }\n\n const renderVideoGallery = () => {\n if (mediaType !== 'video') {\n return null\n }\n\n if (!uploadedVideos.size && !contentFormData.get('ccdMediaFiles').size) {\n return null\n }\n\n return (\n \n \n {uploadedVideos.map((item, index) => (\n \n \n \n \n toggleVideoSelect(item)}\n subtitle={i18n.get('click_here_to_select')}\n position=\"below\"\n actionPosition=\"left\"\n actionIcon={}\n />\n \n ))}\n \n \n )\n }\n\n return (\n <>\n
\n
{i18n.get('last_uploaded')}
\n = 1}\n checked={mediaType === 'video'}\n handleChange={() => setMediaType((mediaType === 'text' || mediaType === 'image') ? 'video' : 'image')}\n />\n
\n {renderImageGallery()}\n {renderVideoGallery()}\n \n )\n}\n\nMediaGallery.propTypes = {\n contentType: PropTypes.string.isRequired,\n contentFormData: PropTypes.instanceOf(Map).isRequired,\n uploadedMediaFiles: PropTypes.instanceOf(List).isRequired,\n loadMoreDisabled: PropTypes.bool.isRequired,\n requestRunning: PropTypes.bool.isRequired,\n\n onChange: PropTypes.func.isRequired,\n fetchMoreMediaFilesStart: PropTypes.func.isRequired,\n onImageDelete: PropTypes.func.isRequired\n}\n\nexport default MediaGallery\n","import { connect } from 'react-redux'\n\nimport FacebookMediaGallery from 'components/content_desk/content_edit_dialog/content_editor/facebook_editor/media_gallery'\nimport {\n setContentFormData,\n fetchMoreMediaFilesStart,\n deleteMediaFileStart\n} from 'actions/content_desk'\nimport {\n getCDeskContentFormData,\n getCDeskUploadedMediaFiles,\n getCDeskUploadedMediaFilesTotal,\n getCDeskMediaFilesPage,\n getCDeskMediaFilesLimit,\n getCDeskMediaFilesLoading\n} from 'selectors'\n\nconst mapStateToProps = (state, { contentType }) => ({\n contentType,\n contentFormData: getCDeskContentFormData(state),\n uploadedMediaFiles: getCDeskUploadedMediaFiles(state),\n loadMoreDisabled: getCDeskUploadedMediaFilesTotal(state) < (getCDeskMediaFilesPage(state) - 1) * getCDeskMediaFilesLimit(state),\n requestRunning: getCDeskMediaFilesLoading(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: setContentFormData,\n fetchMoreMediaFilesStart,\n onImageDelete: deleteMediaFileStart\n }\n)(FacebookMediaGallery)\n","/* global window */\nimport React, { useState, useEffect, useRef } from 'react'\nimport PropTypes from 'prop-types'\nimport { List, Map, fromJS } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport useI18n from 'hooks/useI18n'\nimport { useSnackbar } from 'notistack'\nimport { debounce } from 'throttle-debounce'\nimport getUrls from 'get-urls'\n\nimport { Grid, TextField, Switch, FormControlLabel, Alert, LinearProgress } from '@mui/material'\nimport { green, red } from '@mui/material/colors'\nimport EmojiPicker from 'emoji-picker-react'\n\nimport ImageOutlinedIcon from '@mui/icons-material/ImageOutlined'\nimport CancelIcon from '@mui/icons-material/Cancel'\nimport ImageSearchIcon from '@mui/icons-material/ImageSearch'\nimport PhotoLibraryIcon from '@mui/icons-material/PhotoLibrary'\n\nimport InsertEmoticonIcon from '@mui/icons-material/InsertEmoticon'\n\nimport { Autocomplete, BrowseButton, Input, IconButton, Popover, Button } from 'containers/themed'\nimport FacebookMediaGallery from 'containers/content_desk/content_edit_dialog/facebook_editor/FacebookMediaGallery'\nimport ContentPreview from 'containers/content_desk/ContentPreview'\nimport EditorAiWorkspace from 'containers/content_desk/EditorAiWorkspace'\nimport PromptHistory from 'containers/content_desk/PromptHistory'\nimport Unsplash from 'containers/Unsplash'\n\nimport { facebookPost as initialFacebookPost } from 'static/facebook_post_config'\n\nimport { formatBytes } from 'utils/number'\nimport { mapToOptions } from 'utils/autocomplete'\nimport { UploadedMediaFilesSizeLimit } from 'static/constants'\n\nconst useStyles = makeStyles()(theme => ({\n postLengthInfo: {\n marginTop: '0.5em',\n textAlign: 'right'\n },\n validPostLength: {\n color: green[500]\n },\n invalidPostLength: {\n fontWeight: 'bold',\n color: red[500]\n },\n uploadButton: {\n width: '205px',\n height: '56px'\n },\n attachmentsContainer: {\n display: 'flex',\n alignContent: 'center',\n alignItems: 'center',\n '&:last-child': {\n marginBottom: '15px'\n }\n },\n attachmentName: {\n marginLeft: '10px',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n width: '30%'\n },\n attachmentMessageInput: {\n width: '60%'\n },\n removeAttachmentButton: {\n marginLeft: '10px'\n },\n previewContainer: {\n display: 'flex',\n borderRadius: '10px',\n backgroundColor: theme.isDark ? '#1E1E1E' : '#F0F0F0',\n padding: '1em',\n width: '100%',\n marginTop: '0.5em'\n },\n previewInnerContainer: {\n display: 'flex',\n justifyContent: 'center',\n width: '50%',\n margin: 'auto'\n },\n previewLabel: {\n fontStyle: 'italic',\n color: !theme.isDark && '#757575',\n fontSize: '11pt',\n fontWeight: 500\n },\n aiModeSwitch: {\n float: 'left'\n },\n linkLoader: {\n marginTop: 5,\n height: 5\n }\n}))\n\nconst FacebookEditor = ({\n contentFormData,\n pages,\n mediaFileUploading,\n aiMode,\n unsplashIsVisible,\n facebookAccountConnected,\n uploadedMediaFilesTotalSize,\n linkLoading,\n socialMediaLinkBuildFailed,\n onChange,\n onUpload,\n onSelect,\n toggleEditorAiMode,\n toggleUnsplash,\n navigate,\n buildSocialMediaLink\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n const { enqueueSnackbar } = useSnackbar()\n\n const inputRef = useRef(0)\n const [cursorPosition, setCursorPosition] = useState(0)\n const [isEmojiClick, setIsEmojiClick] = useState(false)\n const [emojiLength, setEmojiLength] = useState(0)\n const [inputRows, setInputRows] = useState(6)\n const [matchedUrl, setMatchedUrl] = useState(null)\n\n const currentFacebookPost = contentFormData.get('facebookPost') || fromJS(initialFacebookPost)\n const currentPage = contentFormData.getIn(['facebookPost', 'pageId'], '')\n const currentAttachments = currentFacebookPost.get('mediaAttachments')\n const facebookPostType = currentFacebookPost.get('type')\n const currentSelectedMediaFiles = contentFormData.get('ccdMediaFiles')\n const facebookPages = pages.filter(p => p.get('instagram') !== true)\n\n const handleSelectionChange = () => {\n const selection = window.getSelection().toString()\n onSelect(selection)\n }\n\n let selectedPage\n\n if (currentPage) {\n selectedPage = facebookPages.filter(p => p.get('instagram') !== true).find(o => o.get('id') === currentPage)\n\n if (selectedPage) {\n selectedPage = { id: selectedPage.get('id'), label: selectedPage.get('name') }\n }\n }\n\n useEffect(() => {\n if (currentAttachments.size === 0) {\n onChange({ key: 'facebookPost', value: currentFacebookPost.set('type', 'text') })\n }\n }, [currentAttachments])\n\n useEffect(() => {\n if (inputRef.current && !isEmojiClick) {\n setCursorPosition(inputRef.current.selectionStart)\n }\n\n if (inputRef.current && isEmojiClick) {\n setCursorPosition(current => current + emojiLength)\n }\n\n setIsEmojiClick(false)\n setEmojiLength(0)\n }, [currentFacebookPost])\n\n useEffect(() => {\n if (facebookPostType !== 'text' || !matchedUrl) {\n return () => { }\n }\n\n const timer = setTimeout(() => {\n buildSocialMediaLink({ url: matchedUrl, socialMedia: 'facebook' })\n setMatchedUrl(null)\n }, 1000)\n\n return () => {\n clearTimeout(timer)\n }\n }, [matchedUrl])\n\n useEffect(() => {\n if (socialMediaLinkBuildFailed) {\n enqueueSnackbar(\n `${i18n.get('error_building_social_media_link')}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n }, [socialMediaLinkBuildFailed])\n\n const handleChange = (e, index) => {\n const { name, value } = e.target\n\n if (name === 'message') {\n if (facebookPostType === 'text' && currentFacebookPost.get('link').length === 0) {\n const urls = Array.from(getUrls(value, { forceHttps: true, stripWWW: false }))\n const url = urls.length > 0 ? urls[0] : null\n\n if (url) {\n setMatchedUrl(url)\n }\n }\n\n onChange({ key: 'plainText', value })\n onChange({ key: 'facebookPost', value: currentFacebookPost.set(name, value) })\n }\n\n if (name === 'attachmentMessage') {\n onChange({\n key: 'facebookPost',\n value: currentFacebookPost.setIn(['mediaAttachments', index],\n currentFacebookPost.getIn(['mediaAttachments', index]).set('message', value))\n })\n }\n }\n\n const handleRemove = index => {\n const updatedAttachments = currentAttachments.filter((_, i) => i !== index)\n const updatedSelectedMediaFiles = currentSelectedMediaFiles.filter((_, i) => i !== index)\n\n onChange({ key: 'ccdMediaFiles', value: updatedSelectedMediaFiles })\n onChange({ key: 'facebookPost', value: currentFacebookPost.set('mediaAttachments', updatedAttachments) })\n }\n\n const handlePageChange = option => {\n const pageId = facebookPages.find(o => o.get('id') === option.value).get('id')\n const accessToken = facebookPages.find(o => o.get('id') === option.value).get('accessToken')\n\n const newFacebookPost = currentFacebookPost\n .set('pageId', pageId)\n .set('accessToken', accessToken)\n\n onChange({ key: 'facebookPost', value: newFacebookPost })\n }\n\n const handleInputClick = () => {\n if (inputRef.current) {\n setCursorPosition(inputRef.current.selectionStart)\n setInputRows(12)\n }\n }\n\n const handleBlur = () => {\n setInputRows(6)\n }\n\n const handleEmojiClick = (emoji, _event) => {\n onChange({\n key: 'facebookPost',\n value: currentFacebookPost.set('message', `${currentFacebookPost.get('message')\n .slice(0, cursorPosition) + emoji.emoji + currentFacebookPost.get('message')\n .slice(cursorPosition)}`)\n })\n setIsEmojiClick(true)\n setEmojiLength(emoji.emoji.length)\n }\n\n const onMediaUpload = debounce(50, file => {\n const videoMaxSize = 1073741824 // max video file size 1GB\n const imageMaxSize = 10485760 // max image file size 10MB\n let doUpload = true\n\n if (!file) {\n doUpload = false\n }\n\n if (file && ((file.size + uploadedMediaFilesTotalSize) > UploadedMediaFilesSizeLimit)) {\n doUpload = false\n\n enqueueSnackbar(\n `${i18n.get('exceeding_upload_storage_size_warning')}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n if ((file.type.substr(0, 5) === 'video') && file.size > videoMaxSize) {\n doUpload = false\n\n enqueueSnackbar(\n `${i18n.get('media_file_too_large', { size: formatBytes(videoMaxSize) })}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n if ((file.type.substr(0, 5) === 'image') && file.size > imageMaxSize) {\n doUpload = false\n\n enqueueSnackbar(\n `${i18n.get('media_file_too_large', { size: formatBytes(imageMaxSize) })}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n if (doUpload) {\n onUpload({ file })\n }\n }) // BrowseButton calls onChange twice, so debounce\n\n const renderAttachments = () => currentAttachments.map((a, i) => (\n \n
\n handleChange(e, i)}\n />\n
\n \n {a.get('name')}\n \n handleRemove(i)}\n title={i18n.get('remove')}\n >\n \n \n \n ))\n\n const renderWarning = () => {\n const hasRequiredPermissions = facebookAccountConnected || pages.size > 0\n\n if (hasRequiredPermissions) {\n return null\n }\n\n return (\n \n \n {i18n.get('linked_in_facebook_permission_warning')}\n navigate('/app/administration/external_accounts')}\n color=\"primary\"\n variant=\"outlined\"\n >{i18n.get('external_accounts')}\n \n \n \n )\n }\n\n const renderMediaGallery = () => (\n \n {unsplashIsVisible ? : }\n \n )\n\n const maxLength = 63206\n const postTextLength = currentFacebookPost.get('message').length\n let postLengthClasses = `${classes.postLengthInfo} ${classes.validPostLength}`\n\n if (postTextLength > maxLength) {\n postLengthClasses = `${classes.postLengthInfo} ${classes.invalidPostLength}`\n }\n\n return (\n \n {renderWarning()}\n \n \n \n
\n {linkLoading ? (\n \n ) : null}\n
\n toggleEditorAiMode()}\n color=\"primary\"\n />\n )}\n label={i18n.get('ai_suggestions')}\n />\n \n \n \n \n )}\n >\n \n \n {postTextLength}/{maxLength}\n \n \n {aiMode && (\n \n \n \n )}\n {!aiMode && (\n \n {renderAttachments()}\n \n )}\n {!aiMode && (\n <>\n
\n {`${i18n.get('preview')}:`}\n
\n
\n
\n \n
\n
\n \n )}\n \n \n {aiMode && (\n \n \n \n )}\n {!aiMode && (\n \n \n handlePageChange(option)}\n options={mapToOptions(facebookPages)}\n placeholder=\"\"\n value={selectedPage}\n label={i18n.get('choose_facebook_page')}\n />\n \n \n
\n onMediaUpload(e.target.files[0])}\n >\n  {i18n.get('upload_media')}\n \n : }\n color=\"primary\"\n variant=\"outlined\"\n onClick={toggleUnsplash}\n >\n {`${i18n.get('image')} ${i18n.get(unsplashIsVisible ? 'library' : 'search')}`}\n \n
\n \n {currentFacebookPost.get('link').length !== 0 ? null : renderMediaGallery()}\n \n )}\n \n \n )\n}\n\nFacebookEditor.propTypes = {\n contentFormData: PropTypes.instanceOf(Map).isRequired,\n pages: PropTypes.instanceOf(List).isRequired,\n mediaFileUploading: PropTypes.bool.isRequired,\n aiMode: PropTypes.bool.isRequired,\n unsplashIsVisible: PropTypes.bool.isRequired,\n facebookAccountConnected: PropTypes.bool.isRequired,\n uploadedMediaFilesTotalSize: PropTypes.number.isRequired,\n linkLoading: PropTypes.bool.isRequired,\n socialMediaLinkBuildFailed: PropTypes.bool.isRequired,\n\n onChange: PropTypes.func.isRequired,\n onUpload: PropTypes.func.isRequired,\n onSelect: PropTypes.func.isRequired,\n toggleEditorAiMode: PropTypes.func.isRequired,\n toggleUnsplash: PropTypes.func.isRequired,\n navigate: PropTypes.func.isRequired,\n buildSocialMediaLink: PropTypes.func.isRequired\n}\n\nexport default FacebookEditor\n","import { connect } from 'react-redux'\n\nimport FacebookEditor from 'components/content_desk/content_edit_dialog/content_editor/facebook_editor'\n\nimport {\n setContentFormData,\n uploadFacebookMediaFileStart,\n toggleEditorAiMode,\n setAiSelectedText,\n buildSocialMediaLinkStart\n} from 'actions/content_desk'\n\nimport {\n toggleUnsplashComponent as toggleUnsplash\n} from 'actions/unsplash'\n\nimport { navigate } from 'actions/navigation'\n\nimport {\n getCDeskContentFormData,\n getStaticFacebookAnalyticsPages,\n getCDeskMediaFileUploading,\n getCDeskEditorAiMode,\n getShowUnsplashComponent,\n getFacebookAccountConnected,\n getCDeskUploadedMediaFilesTotalSize,\n getSocialMediaLinkLoading,\n getSocialMediaLinkBuildFailed\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n contentFormData: getCDeskContentFormData(state),\n pages: getStaticFacebookAnalyticsPages(state),\n mediaFileUploading: getCDeskMediaFileUploading(state),\n aiMode: getCDeskEditorAiMode(state),\n unsplashIsVisible: getShowUnsplashComponent(state),\n facebookAccountConnected: getFacebookAccountConnected(state),\n uploadedMediaFilesTotalSize: getCDeskUploadedMediaFilesTotalSize(state),\n linkLoading: getSocialMediaLinkLoading(state),\n socialMediaLinkBuildFailed: getSocialMediaLinkBuildFailed(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: setContentFormData,\n onUpload: uploadFacebookMediaFileStart,\n onSelect: setAiSelectedText,\n toggleEditorAiMode,\n toggleUnsplash,\n navigate,\n buildSocialMediaLink: buildSocialMediaLinkStart\n }\n)(FacebookEditor)\n","import React from 'react'\nimport { Map } from 'immutable'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport { CircularProgress } from '@mui/material'\n\nimport EmailEditor from 'containers/content_desk/content_edit_dialog/EmailEditor'\nimport LinkedInEditor from 'containers/content_desk/content_edit_dialog/linked_in_editor/LinkedInEditor'\nimport FacebookEditor from 'containers/content_desk/content_edit_dialog/facebook_editor/FacebookEditor'\n\nconst useStyles = makeStyles()({\n hidden: {\n position: 'absolute !important',\n left: '-9999px !important',\n top: '-9999px !important'\n },\n editorContainer: {\n marginTop: '10px',\n marginBottom: '20px'\n },\n circularLoader: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '60vh'\n }\n})\n\nconst ContentEditor = ({\n emailEditorLoading,\n content,\n onChange\n}) => {\n const { classes } = useStyles()\n\n return (\n <> {\n emailEditorLoading && (\n
\n \n
\n )\n }\n \n {content.getIn(['type', 'id']) === 'email' && (\n \n )}\n {content.getIn(['type', 'id']) === 'linkedin' && }\n {content.getIn(['type', 'id']) === 'facebook' && }\n \n \n )\n}\n\nContentEditor.propTypes = {\n emailEditorLoading: PropTypes.bool.isRequired,\n content: PropTypes.instanceOf(Map).isRequired,\n\n onChange: PropTypes.func.isRequired\n}\n\nexport default ContentEditor\n","import { connect } from 'react-redux'\n\nimport ContentEditor from 'components/content_desk/content_edit_dialog/content_editor'\n\nimport {\n setContentFormData\n} from 'actions/content_desk'\n\nimport {\n getCDeskEmailEditorLoadingStatus,\n getCDeskContentFormData\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n emailEditorLoading: getCDeskEmailEditorLoadingStatus(state),\n content: getCDeskContentFormData(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: setContentFormData\n }\n)(ContentEditor)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { InlineDateTimePicker, Dialog, RaisedPrimaryButton, Button } from 'containers/themed'\n\nimport { DialogActions, Typography } from '@mui/material'\n\nconst useStyles = makeStyles()({\n picker: {\n margin: '1em 0em 1em 0em',\n '& > div': {\n width: '100%'\n }\n }\n})\n\nconst ContentPlanDialog = ({\n data,\n locale,\n isOpen,\n onChange,\n onSave,\n closePlanDialog\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const [plannedFor, setPlannedFor] = useState(data.get('plannedFor'))\n\n const handlePlan = () => {\n onChange({ key: 'plannedFor', value: plannedFor })\n onSave({ closeOldEditContentDialog: true })\n closePlanDialog()\n }\n\n const handleClose = () => {\n setPlannedFor(data.get('plannedFor'))\n closePlanDialog()\n }\n\n return (\n \n {i18n.get('plan_content_info')}\n
\n setPlannedFor(v)}\n />\n
\n \n \n \n {i18n.get('plan')}\n \n \n \n )\n}\n\nContentPlanDialog.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired,\n locale: PropTypes.string.isRequired,\n isOpen: PropTypes.bool.isRequired,\n\n onChange: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired,\n closePlanDialog: PropTypes.func.isRequired\n}\n\nexport default ContentPlanDialog\n","import { connect } from 'react-redux'\n\nimport ContentPlanDialog from 'components/content_desk/content_edit_dialog/content_plan_dialog'\n\nimport {\n setContentFormData,\n closePlanDialog,\n saveContentStart\n} from 'actions/content_desk'\n\nimport {\n getCDeskContentFormData,\n getCDeskShowPlanDialog,\n getUserLocale\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n data: getCDeskContentFormData(state),\n locale: getUserLocale(state),\n isOpen: getCDeskShowPlanDialog(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: setContentFormData,\n onSave: saveContentStart,\n closePlanDialog\n }\n)(ContentPlanDialog)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { InlineDateTimePicker, Dialog, RaisedPrimaryButton, Button } from 'containers/themed'\n\nimport { DialogActions, Typography } from '@mui/material'\nimport WarningIcon from '@mui/icons-material/Warning'\nimport { red } from '@mui/material/colors'\n\nconst useStyles = makeStyles()({\n picker: {\n margin: '1em 0em 1em 0em',\n '& > div': {\n width: '100%'\n }\n },\n warningWrapper: {\n display: 'flex',\n alignItems: 'center',\n color: red[500]\n },\n warning: {\n marginLeft: '0.3em'\n }\n})\n\nconst ContentScheduleDialog = ({\n data,\n locale,\n isOpen,\n onChange,\n closeScheduleDialog,\n onSave\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const notApproved = ['draft', 'review_pending', 'revisions_needed'].includes(data.get('status'))\n\n const [scheduledFor, setScheduledFor] = useState(data.get('scheduledFor'))\n\n const handleSchedule = () => {\n onChange({ key: 'scheduledFor', value: scheduledFor })\n onSave({ closeOldEditContentDialog: true })\n closeScheduleDialog()\n }\n\n const handleClose = () => {\n setScheduledFor(data.get('scheduledFor'))\n closeScheduleDialog()\n }\n\n const renderWarning = () => (\n
\n \n {i18n.get('content_not_approved')}\n
\n )\n\n return (\n \n {i18n.get('schedule_content_info')}\n
\n setScheduledFor(v)}\n />\n
\n {notApproved && renderWarning()}\n \n \n \n {i18n.get('schedule')}\n \n \n \n )\n}\n\nContentScheduleDialog.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired,\n locale: PropTypes.string.isRequired,\n isOpen: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired,\n closeScheduleDialog: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired\n}\n\nexport default ContentScheduleDialog\n","import { connect } from 'react-redux'\n\nimport ContentScheduleDialog from 'components/content_desk/content_edit_dialog/content_schedule_dialog'\n\nimport {\n setContentFormData,\n closeOldScheduleDialog as closeScheduleDialog,\n saveContentStart as onSave\n} from 'actions/content_desk'\n\nimport {\n getCDeskContentFormData,\n getCDeskShowOldScheduleDialog,\n getUserLocale\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n data: getCDeskContentFormData(state),\n locale: getUserLocale(state),\n isOpen: getCDeskShowOldScheduleDialog(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: setContentFormData,\n closeScheduleDialog,\n onSave\n }\n)(ContentScheduleDialog)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { List, Map, fromJS } from 'immutable'\nimport { debounce } from 'throttle-debounce'\nimport { useSnackbar } from 'notistack'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n ImageList,\n ImageListItem,\n ImageListItemBar,\n Box,\n IconButton,\n Tooltip,\n Dialog,\n DialogActions,\n DialogTitle,\n DialogContent,\n Typography\n} from '@mui/material'\nimport DeleteIcon from '@mui/icons-material/Delete'\nimport { green } from '@mui/material/colors'\n\nimport ImageOutlinedIcon from '@mui/icons-material/ImageOutlined'\nimport CheckCircleRoundedIcon from '@mui/icons-material/CheckCircleRounded'\nimport CloseIcon from '@mui/icons-material/CloseRounded'\nimport NavigateNextIcon from '@mui/icons-material/NavigateNext'\nimport NavigateBeforeIcon from '@mui/icons-material/NavigateBefore'\n\nimport { BrowseButton, Button, Select, RaisedPrimaryButton } from 'containers/themed'\n\nimport { formatBytes } from 'utils/number'\nimport { getMediaFileSrcAndFit } from 'utils/content_desk'\nimport { Document, Page } from 'utils/pdf'\nimport { UploadedMediaFilesSizeLimit } from 'static/constants'\n\nconst useStyles = makeStyles()({\n uploadButton: {\n width: '205px',\n height: '56px'\n },\n mediaListBox: {\n height: 580\n },\n loadMoreButton: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n maxHeight: '180px !important'\n },\n attachmentsActions: {\n display: 'flex',\n justifyContent: 'space-between'\n },\n selectWrapper: {\n width: '200px'\n },\n pdfPaging: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n position: 'absolute',\n bottom: 'calc(100% - 50px)',\n left: 0,\n right: 0,\n marginBottom: 20\n },\n pdfPagingButton: {\n '&:hover': {\n backgroundColor: 'transparent'\n }\n }\n})\n\nconst allowedMimeTypes = [\n 'image/*',\n 'application/pdf',\n 'application/msword',\n 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n 'application/vnd.ms-excel',\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n 'text/csv'\n]\n\nconst allowedTotalAttachmentsSize = 12582912 // 12MB\nconst allowedTotalAttachments = 3\n\nconst Attachments = ({\n contentFormData,\n uploadedMediaFiles,\n loadMoreDisabled,\n requestRunning,\n mediaFileUploading,\n uploadedMediaFilesTotalSize,\n fetchMore,\n onMediaDelete,\n onChange,\n onUpload\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const [filesFilter, setFilesFilter] = useState('')\n const [hoveredMediaId, setHoveredMediaId] = useState(null)\n const [deleteState, setDeleteState] = useState({ mediaId: null, open: false })\n const { enqueueSnackbar } = useSnackbar()\n const [totalPages, setTotalPages] = useState({})\n const [pageNumbers, setPageNumbers] = useState({})\n\n const mediaTypeOptions = [\n { value: 'all', label: i18n.get('all') },\n { value: 'image', label: i18n.get('image') },\n { value: 'document', label: i18n.get('document') }\n ]\n\n const currentSelectedMediaFiles = contentFormData.get('ccdMediaFiles')\n const currentSelectedMediaFileIds = currentSelectedMediaFiles.map(f => f.get('id'))\n const currentAttachmentsSize = currentSelectedMediaFiles.reduce((acc, selectedMediaFile) => acc + selectedMediaFile.get('size'), 0)\n\n const onDocumentLoadSuccess = (documentId, { numPages }) => {\n setPageNumbers(prevPageNumbers => ({\n ...prevPageNumbers,\n [documentId]: 1\n }))\n setTotalPages(prevTotalPages => ({\n ...prevTotalPages,\n [documentId]: numPages\n }))\n }\n\n const changePage = (documentId, offset) => {\n setPageNumbers(prevPageNumbers => ({\n ...prevPageNumbers,\n [documentId]: prevPageNumbers[documentId] + offset\n }))\n }\n const previousPage = (documentId, e) => {\n e.stopPropagation()\n changePage(documentId, -1)\n }\n const nextPage = (documentId, e) => {\n e.stopPropagation()\n changePage(documentId, 1)\n }\n\n function filterMediaFiles() {\n if (filesFilter === 'image') {\n return uploadedMediaFiles.filter(f => f.get('mimeType').startsWith('image'))\n }\n\n if (filesFilter === 'document') {\n return uploadedMediaFiles.filter(f => !f.get('mimeType').startsWith('image'))\n }\n\n return uploadedMediaFiles\n }\n\n const mediaFiles = filterMediaFiles()\n\n const onMediaUpload = debounce(50, file => {\n let doUpload = true\n\n if (!file) {\n doUpload = false\n }\n\n if (file && ((file.size + uploadedMediaFilesTotalSize) > UploadedMediaFilesSizeLimit)) {\n doUpload = false\n\n enqueueSnackbar(\n `${i18n.get('exceeding_upload_storage_size_warning')}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n if (doUpload) {\n onUpload({ file })\n }\n })\n\n const exceedsSizeLimit = (deselecting, selectedMediaFile) => {\n if (deselecting) {\n return false\n }\n\n return allowedTotalAttachmentsSize < (currentAttachmentsSize + selectedMediaFile.get('size'))\n }\n\n const exceedsFileLimit = deselecting => {\n if (!deselecting && currentSelectedMediaFileIds.size + 1 > allowedTotalAttachments) {\n return true\n }\n\n return false\n }\n\n const toggleMediaSelect = selectedMediaFile => {\n const deselecting = currentSelectedMediaFileIds.includes(selectedMediaFile.get('id'))\n\n if (exceedsFileLimit(deselecting)) {\n return enqueueSnackbar(\n `${i18n.get('attachments_file_limit_warning', { number: allowedTotalAttachments })}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n if (exceedsSizeLimit(deselecting, selectedMediaFile)) {\n return enqueueSnackbar(\n `${i18n.get('attachments_size_limit_warning', { size: formatBytes(allowedTotalAttachmentsSize) })}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n let newSelected = List()\n\n if (deselecting) {\n newSelected = currentSelectedMediaFiles.filter(selected => selected.get('id') !== selectedMediaFile.get('id'))\n } else {\n newSelected = currentSelectedMediaFiles.unshift(fromJS(selectedMediaFile))\n }\n\n return onChange({ key: 'ccdMediaFiles', value: newSelected })\n }\n\n const handleOpenDeleteDialog = id => setDeleteState({ mediaId: id, open: true })\n const handleCloseDeleteDialog = () => setDeleteState({ mediaId: null, open: false })\n\n const handleDeleteMedia = () => {\n onMediaDelete({ id: deleteState.mediaId })\n onChange({\n key: 'ccdMediaFiles',\n value: currentSelectedMediaFiles\n .filter(selected => selected.get('id') !== deleteState.mediaId)\n })\n handleCloseDeleteDialog()\n }\n\n const renderFileImage = mf => {\n const { src, style } = getMediaFileSrcAndFit(mf)\n\n if (mf.get('mimeType') === 'application/pdf') {\n const documentId = mf.get('id')\n\n return (\n
\n toggleMediaSelect(mf)}\n onLoadSuccess={props => onDocumentLoadSuccess(documentId, props)}\n >\n \n
\n

\n {i18n.get('page')} {pageNumbers[documentId]\n || (totalPages[documentId] ? 1 : '--')} {i18n.get('of')} {totalPages[documentId] || '--'}\n

\n {(totalPages[documentId] !== 1) && (\n
\n previousPage(documentId, e)}\n title={i18n.get('previous')}\n size=\"small\"\n className={classes.pdfPagingButton}\n disableRipple\n >\n \n \n = totalPages[documentId]}\n onClick={e => nextPage(documentId, e)}\n size=\"small\"\n className={classes.pdfPagingButton}\n disableRipple\n >\n \n \n
\n )}\n
\n \n
\n )\n }\n\n return (\n /* eslint-disable-next-line */\n ( toggleMediaSelect(mf)}\n src={src}\n srcSet={src}\n alt={mf.get('id')}\n loading=\"lazy\"\n style={style}\n />)\n )\n }\n\n const renderFilesGallery = () => (\n \n \n {mediaFiles.map(mf => (\n setHoveredMediaId(mf.get('id'))}\n onMouseLeave={() => setHoveredMediaId(null)}\n >\n {(hoveredMediaId === mf.get('id')) && (\n \n {mf.get('filename')}\n \n )}\n subtitle={formatBytes(mf.get('size'))}\n actionIcon={(\n handleOpenDeleteDialog(mf.get('id'))}\n >\n \n \n )}\n actionPosition=\"right\"\n />\n )}\n {currentSelectedMediaFileIds.includes(mf.get('id'))\n && (\n }\n />\n )}\n {renderFileImage(mf)}\n \n ))}\n \n {i18n.get('load_more')}\n \n \n \n \n )\n\n const renderDeleteDialog = () => (\n \n t.spacing(3),\n color: t => t.palette.grey[800]\n }}\n >\n {i18n.get('are_you_sure')}\n !t.isDark && t.palette.grey[800]\n }}\n >\n \n \n \n t.spacing(3) }}\n >\n {i18n.get('delete_file_text')}\n \n \n \n \n \n {i18n.get('close')}\n \n \n {i18n.get('delete')}\n \n \n \n \n )\n\n return (\n <>\n
\n onMediaUpload(e.target.files[0])}\n >\n  {i18n.get('upload_media')}\n \n
\n setFilesFilter(v)}\n options={mediaTypeOptions}\n value={filesFilter}\n label={i18n.get('media_type')}\n />\n
\n
\n {renderFilesGallery()}\n {renderDeleteDialog()}\n \n )\n}\n\nAttachments.propTypes = {\n contentFormData: PropTypes.instanceOf(Map).isRequired,\n uploadedMediaFiles: PropTypes.instanceOf(List).isRequired,\n loadMoreDisabled: PropTypes.bool.isRequired,\n requestRunning: PropTypes.bool.isRequired,\n mediaFileUploading: PropTypes.bool.isRequired,\n uploadedMediaFilesTotalSize: PropTypes.number.isRequired,\n\n fetchMore: PropTypes.func.isRequired,\n onMediaDelete: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onUpload: PropTypes.func.isRequired\n}\n\nexport default Attachments\n","import { connect } from 'react-redux'\n\nimport Attachments from 'components/content_desk/content_edit_dialog/attachments'\n\nimport {\n deleteMediaFileStart as onMediaDelete,\n fetchMoreMediaFilesStart as fetchMore,\n setContentFormData as onChange,\n uploadFacebookMediaFileStart as onUpload\n} from 'actions/content_desk'\n\nimport {\n getCDeskUploadedMediaFiles,\n getCDeskContentFormData,\n getCDeskUploadedMediaFilesTotal,\n getCDeskMediaFilesPage,\n getCDeskMediaFilesLimit,\n getCDeskMediaFilesLoading,\n getCDeskMediaFileUploading,\n getCDeskUploadedMediaFilesTotalSize\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n contentFormData: getCDeskContentFormData(state),\n uploadedMediaFiles: getCDeskUploadedMediaFiles(state).filter(f => !f.get('mimeType').startsWith('video')),\n loadMoreDisabled: getCDeskUploadedMediaFilesTotal(state) < (getCDeskMediaFilesPage(state) - 1) * getCDeskMediaFilesLimit(state),\n requestRunning: getCDeskMediaFilesLoading(state),\n mediaFileUploading: getCDeskMediaFileUploading(state),\n uploadedMediaFilesTotalSize: getCDeskUploadedMediaFilesTotalSize(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n fetchMore,\n onMediaDelete,\n onChange,\n onUpload\n }\n)(Attachments)\n","/* eslint-disable max-len, no-useless-escape */\nconst domainValidationRegex = /(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$/g\nconst emailValidationRegex = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/g\nconst topLevelDomainRegex = /@[\\w]+\\.([\\w.]+)/\n/* eslint-enable max-len, no-useless-escape */\n\nexport const validDomain = domain => (domain && !!domain.match(domainValidationRegex))\nexport const validEmail = email => (email && !!email.match(emailValidationRegex))\nexport const getTopLevelDomain = email => topLevelDomainRegex.test(email) && topLevelDomainRegex.exec(email)[1]\n","import React, { forwardRef, useEffect, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport useBeforeUnload from 'hooks/useBeforeUnload'\nimport { useSnackbar } from 'notistack'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Alert,\n Dialog,\n Typography,\n Toolbar,\n AppBar,\n LinearProgress,\n Slide,\n MenuItem,\n Tooltip\n} from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\nimport PendingOutlinedIcon from '@mui/icons-material/PendingOutlined'\nimport CheckCircleIcon from '@mui/icons-material/CheckCircle'\nimport AlarmOnIcon from '@mui/icons-material/AlarmOn'\nimport ChangeCircleIcon from '@mui/icons-material/ChangeCircle'\nimport AccessTimeIcon from '@mui/icons-material/AccessTime'\nimport CancelIcon from '@mui/icons-material/Cancel'\nimport HelpOutlineOutlinedIcon from '@mui/icons-material/HelpOutlineOutlined'\n\nimport { orange, blue, green, grey } from '@mui/material/colors'\n\nimport CloseConfirmDialog from 'components/content_desk/close_confirm_dialog'\nimport PublishConfirmDialog from 'components/content_desk/publish_confirm_dialog'\n\nimport Navigation from 'containers/content_desk/content_edit_dialog/Navigation'\nimport ContentForm from 'containers/content_desk/content_edit_dialog/ContentForm'\nimport SelectRecipientsForm from 'containers/content_desk/content_edit_dialog/SelectRecipientsForm'\nimport DistributeForm from 'containers/content_desk/content_edit_dialog/DistributeForm'\nimport ContentEditor from 'containers/content_desk/content_edit_dialog/ContentEditor'\nimport ContentPlanDialog from 'containers/content_desk/content_edit_dialog/ContentPlanDialog'\nimport ContentScheduleDialog from 'containers/content_desk/content_edit_dialog/ContentScheduleDialog'\n// import ContentTestMailDialog from 'containers/content_desk/content_edit_dialog/ContentTestMailDialog'\nimport Attachments from 'containers/content_desk/content_edit_dialog/Attachments'\nimport { Button, IconButton, Menu } from 'containers/themed'\n\nimport { validEmail } from 'utils/regex'\n\nconst useStyles = makeStyles()(theme => ({\n formContainer: {\n marginBottom: '4em',\n paddingLeft: '3em',\n paddingRight: '3em'\n },\n button: {\n marginLeft: '1em'\n },\n buttonDisabled: {\n color: `${theme.palette.grey[300]} !important`,\n cursor: 'default !important'\n },\n overlay: {\n position: 'fixed',\n top: 69,\n right: 0,\n bottom: 0,\n left: 0,\n backgroundColor: '#D3D3D3',\n opacity: '.60',\n zIndex: 9999999\n },\n linearProgress: {\n width: '100vw',\n position: 'absolute',\n right: 0,\n left: 0,\n bottom: 0\n },\n warning: {\n margin: '0 3em'\n },\n status: {\n display: 'flex',\n alignItems: 'center'\n },\n statusButton: {\n marginLeft: '1em',\n marginRight: '1em'\n },\n statusView: {\n marginLeft: '1em',\n marginRight: '1em',\n pointerEvents: 'none'\n },\n footerToolbar: {\n display: 'flex',\n justifyContent: 'space-between'\n },\n footerRightActions: {\n display: 'flex'\n }\n}))\n\nconst TransitionComponent = forwardRef((props, ref) => (\n \n))\n\nTransitionComponent.displayName = 'Transition'\n\nexport default function ContentEditDialog({\n open,\n view,\n isLoading,\n isInCloneMode,\n contentFormData,\n onUnlock,\n onRelock,\n onClose,\n onSave,\n onTestMail,\n openScheduleDialog,\n openPlanDialog,\n duplicateError,\n onChange\n}) {\n const i18n = useI18n()\n const { classes } = useStyles()\n const { enqueueSnackbar } = useSnackbar()\n const [confDialogOpen, setConfDialogOpen] = useState(false)\n const [publishConfDialogOpen, setPublishConfDialogOpen] = useState(false)\n const contentFormType = contentFormData.getIn(['type', 'id'])\n const status = contentFormData.get('status') || contentFormData.get('approvalStatus')\n\n useEffect(() => { // eslint-disable-line\n if (open) {\n const interval = setInterval(() => onRelock(), 30000)\n\n return () => clearInterval(interval)\n }\n }, [open])\n\n useBeforeUnload(e => {\n e.preventDefault()\n onUnlock()\n }, open)\n\n const handleExit = () => onClose({ closeOldEditContentDialog: true })\n\n const handleClose = () => {\n if (contentFormData.get('isDirty')) {\n setConfDialogOpen(true)\n } else {\n onClose({ closeOldEditContentDialog: true })\n }\n }\n\n const requiredFields = ['title', 'type']\n\n if (contentFormType === 'email') {\n requiredFields.push('body')\n requiredFields.push('subject')\n }\n\n if (contentFormType === 2) {\n requiredFields.push('linkedInPost')\n }\n\n const isFormValid = ({ action }) => {\n if (requiredFields.map(field => !!contentFormData.get(field)).some(value => !value)) {\n requiredFields.map(field => {\n let translationKey = field\n\n if (field === 'body' || field === 'linkedInPost') {\n translationKey = 'ccd_editor_content'\n }\n\n if (!contentFormData.get(field)) {\n enqueueSnackbar(\n `${i18n.get(translationKey)} ${i18n.get('is_required')}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n return true\n })\n\n return false\n }\n\n if ((contentFormType === 1)) {\n if (contentFormData.get('subject').length > 255) {\n enqueueSnackbar(\n `${i18n.get('email_subject_too_long')}`,\n { variant: 'error', preventDuplicate: true }\n )\n\n return false\n }\n\n if (!validEmail(contentFormData.get('senderMail'))) {\n enqueueSnackbar(\n `${i18n.get('email_invalid')}`,\n { variant: 'error', preventDuplicate: true }\n )\n\n return false\n }\n }\n\n if ((contentFormType === 2) && (action !== 'save')) {\n if (!contentFormData.getIn(['linkedInPost', 'author']) || contentFormData.getIn(['linkedInPost', 'author']) === '') {\n enqueueSnackbar(\n `${i18n.get('linked_in_organization')} ${i18n.get('is_required')}`,\n { variant: 'error', preventDuplicate: true }\n )\n\n return false\n }\n\n if (\n contentFormData.getIn(['linkedInPost', 'type']) !== 'link' && (contentFormData.getIn(['linkedInPost', 'content'])\n && !contentFormData.getIn(['linkedInPost', 'content', 'media'])\n && !contentFormData.getIn(['linkedInPost', 'content', 'multiImage', 'images']))\n ) {\n enqueueSnackbar(\n `${i18n.get('linked_in_media_files_missing')}`,\n { variant: 'error', preventDuplicate: true }\n )\n\n return false\n }\n\n if (\n contentFormData.getIn(['linkedInPost', 'type']) !== 'link' && (contentFormData.getIn(['linkedInPost', 'content'])\n && !contentFormData.getIn(['linkedInPost', 'content', 'multiImage', 'images'])\n && !contentFormData.getIn(['linkedInPost', 'content', 'media', 'altText'])\n && !contentFormData.getIn(['linkedInPost', 'content', 'media', 'title']))\n\n ) {\n enqueueSnackbar(\n `${i18n.get('linked_in_title_missing')}`,\n { variant: 'error', preventDuplicate: true }\n )\n\n return false\n }\n }\n\n if ((contentFormType === 3) && (action !== 'save')) {\n if (contentFormData.getIn(['facebookPost', 'pageId']) === '') {\n enqueueSnackbar(\n `${i18n.get('page')} ${i18n.get('is_required')}`,\n { variant: 'error', preventDuplicate: true }\n )\n\n return false\n }\n }\n\n return true\n }\n\n const onScheduleClick = ({ releaseNow = false }) => {\n if (contentFormData.get('recipients').size < 1 && contentFormType === 1) {\n enqueueSnackbar(\n `${i18n.get('recipients')} ${i18n.get('is_required')}`,\n { variant: 'error', preventDuplicate: true }\n )\n } else if (isFormValid({ action: 'schedule' }) && !releaseNow) {\n return openScheduleDialog()\n } else if (isFormValid({ action: 'publishNow' })) {\n return setPublishConfDialogOpen(true)\n }\n\n return null\n }\n\n let dialogTitle = i18n.get('edit_content')\n\n if (isInCloneMode) {\n dialogTitle = i18n.get('duplicate_content')\n }\n\n const handleSave = () => {\n if (isFormValid({ action: 'save' })) {\n return onSave({ closeOldEditContentDialog: false })\n }\n\n return null\n }\n\n const handleStatusChange = newStatus => {\n onChange({ key: 'approvalStatus', value: newStatus })\n }\n\n const renderCloseConfirmDialog = () => {\n if (!contentFormData.get('isDirty')) {\n return null\n }\n\n return (\n setConfDialogOpen(false)}\n onClose={handleExit}\n />\n )\n }\n\n const renderPublishConfirmDialog = () => (\n setPublishConfDialogOpen(false)}\n onSave={onSave}\n />\n )\n\n const renderDuplicateError = () => {\n if (!duplicateError) {\n return null\n }\n\n return (\n \n {i18n.get('ccd_content_duplicate_error')}\n \n )\n }\n\n const renderStatusIcon = () => {\n switch (status) {\n case 'failed':\n return \n case 'released':\n return \n case 'scheduled':\n return \n case 'draft':\n return \n case 'review_pending':\n return \n case 'revisions_needed':\n return \n case 'approved':\n return \n default:\n return \n }\n }\n\n const renderStatusView = () => (\n {i18n.get(status)}\n \n )\n\n const renderStatusMenu = () => (\n {i18n.get(status)}\n \n )}\n >\n handleStatusChange('draft')}>\n \n {i18n.get('draft')}\n \n handleStatusChange('review_pending')}>\n \n {i18n.get('review_pending')}\n \n handleStatusChange('revisions_needed')}>\n \n {i18n.get('revisions_needed')}\n \n handleStatusChange('approved')}>\n \n {i18n.get('approved')}\n \n \n )\n\n const renderStatus = () => {\n const releasedStatuses = ['released', 'scheduled', 'failed']\n\n if (releasedStatuses.includes(status)) {\n return renderStatusView()\n }\n\n return renderStatusMenu()\n }\n\n const testMailDisabled = isLoading || contentFormData.get('body') === null || contentFormData.get('isDirty')\n\n const testMailTooltipTitle = () => {\n if (!testMailDisabled) {\n return ''\n }\n\n if (contentFormData.get('body') === null) {\n return (\n
{i18n.get('test_email_no_content')}
\n )\n }\n\n return (\n
{i18n.get('test_email_dirty')}
\n )\n }\n\n let classNameButton = ''\n\n if (testMailDisabled) {\n classNameButton = classes.buttonDisabled\n }\n\n return (\n <>\n {renderCloseConfirmDialog()}\n {renderPublishConfirmDialog()}\n \n \n \n \n \n \n \n {dialogTitle}\n \n \n\n {isLoading && }\n \n\n {isLoading &&
}\n\n \n\n {renderDuplicateError()}\n\n
\n {view === 'create_content' && }\n
\n \n
\n {view === 'attachments' && }\n {view === 'select_recipients' && }\n {view === 'distribute' && }\n
\n \n \n
\n {contentFormType === 1 && (\n \n \n onTestMail()}\n autoFocus\n className={classNameButton}\n >\n {i18n.get('test_email')}\n \n \n \n )}\n
\n
\n {!isLoading\n && (\n
\n \n {`${i18n.get('content')} ${i18n.get('status')}`}\n \n {renderStatus()}\n
\n )}\n \n {i18n.get('cancel')}\n \n \n {i18n.get('save')}\n \n openPlanDialog()}\n className={classes.button}\n disabled={isLoading}\n >\n {i18n.get('plan')}\n \n \n {i18n.get('schedule')}\n \n onScheduleClick({ releaseNow: true })}\n className={classes.button}\n disabled={isLoading}\n >\n {`${contentFormType === 1 ? i18n.get('send_now') : i18n.get('publish_now')}`}\n \n
\n
\n \n \n \n \n { /* we have it in content_desk_new, so we don't need it here\n \n */}\n \n )\n}\n\nContentEditDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n view: PropTypes.string.isRequired,\n isLoading: PropTypes.bool.isRequired,\n isInCloneMode: PropTypes.bool.isRequired,\n contentFormData: PropTypes.instanceOf(Map).isRequired,\n\n onClose: PropTypes.func.isRequired,\n onUnlock: PropTypes.func.isRequired,\n onRelock: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired,\n onTestMail: PropTypes.func.isRequired,\n openScheduleDialog: PropTypes.func.isRequired,\n openPlanDialog: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n\n duplicateError: PropTypes.bool.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ContentEditDialog from 'components/content_desk/content_edit_dialog'\nimport {\n lockContentStart,\n saveContentStart as onSave,\n unlockContentStart as onClose,\n openTestMailDialog as onTestMail,\n openOldScheduleDialog as openScheduleDialog,\n openPlanDialog,\n setContentFormData\n} from 'actions/content_desk'\nimport {\n getCDeskShowOldEditContentDialog,\n getCDeskNewDialogView,\n getCDeskContentIsLoading,\n getCDeskContentDialogCloneMode,\n getCDeskContentFormData,\n getCDeskDuplicateError\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getCDeskShowOldEditContentDialog(state),\n view: getCDeskNewDialogView(state),\n isLoading: getCDeskContentIsLoading(state),\n isInCloneMode: getCDeskContentDialogCloneMode(state),\n contentFormData: getCDeskContentFormData(state),\n duplicateError: getCDeskDuplicateError(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onRelock: () => lockContentStart(),\n onUnlock: () => onClose(),\n onSave,\n onClose,\n onTestMail,\n openScheduleDialog,\n openPlanDialog,\n onChange: setContentFormData\n }\n)(ContentEditDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Dialog,\n DialogTitle,\n DialogActions,\n CircularProgress,\n DialogContent\n} from '@mui/material'\n\nimport { Button } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n deleteButton: {\n width: 100\n },\n progress: {\n color: 'white'\n }\n})\n\nconst DeleteDialog = ({\n entity,\n requestRunning,\n open,\n deleteData,\n deleteContent,\n deleteCampaign,\n onClose\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleDelete = () => {\n if (entity === 'content') {\n deleteContent(deleteData)\n }\n\n if (entity === 'campaign') {\n deleteCampaign(deleteData)\n }\n }\n\n return (\n \n \n {entity === 'content' && i18n.get('delete_content')}\n {entity === 'campaign' && i18n.get('delete_campaign')}\n \n {entity === 'campaign' && (\n \n {i18n.get('campaign_delete_message')}\n \n )}\n \n \n {i18n.get('cancel')}\n \n \n {requestRunning ? (\n \n ) : i18n.get('delete')}\n \n \n \n )\n}\n\nDeleteDialog.propTypes = {\n entity: PropTypes.string.isRequired,\n requestRunning: PropTypes.bool.isRequired,\n open: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.bool\n ]).isRequired,\n deleteData: PropTypes.object.isRequired,\n\n deleteContent: PropTypes.func.isRequired,\n deleteCampaign: PropTypes.func.isRequired,\n onClose: PropTypes.func.isRequired\n}\n\nexport default DeleteDialog\n","import { connect } from 'react-redux'\n\nimport DeleteDialog from 'components/content_desk/delete_dialog'\n\nimport { getCDeskRequestRunning, getCDeskShowDeleteDialog, getCDeskDeleteData } from 'selectors/content_desk'\n\nimport { deleteContentStart, deleteCampaignStart, closeDeleteDialog } from 'actions/content_desk'\n\nconst mapStateToProps = (state, { entity }) => ({\n entity,\n requestRunning: getCDeskRequestRunning(state),\n open: getCDeskShowDeleteDialog(state),\n deleteData: getCDeskDeleteData(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n deleteContent: deleteContentStart,\n deleteCampaign: deleteCampaignStart,\n onClose: closeDeleteDialog\n }\n)(DeleteDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle\n} from '@mui/material'\n\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { Button, IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n title: {\n color: !theme.isDark && '#404040'\n },\n button: {\n marginBottom: '0.5em',\n minWidth: 120\n },\n contentText: {\n color: !theme.isDark && '#757575'\n }\n}))\n\nconst CloseConfirmDialog = ({\n open,\n\n onClose,\n onSave\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleClose = () => {\n onClose()\n }\n\n const handleSave = () => {\n onSave()\n }\n\n return (\n \n \n {i18n.get('not_saved_warning')}\n \n onClose()}\n sx={{\n position: 'absolute',\n right: 8,\n top: 8,\n color: theme => theme.palette.grey[500]\n }}\n >\n \n \n \n \n {i18n.get('content_not_saved')}\n \n \n \n \n {i18n.get('close_without_saving')}\n \n \n {i18n.get('save_changes')}\n \n \n \n )\n}\n\nCloseConfirmDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n\n onClose: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired\n}\n\nexport default CloseConfirmDialog\n","import { connect } from 'react-redux'\n\nimport CloseConfirmDialog from 'components/content_desk_new/campaigns/campaign_form/close_confirm_dialog'\n\nconst mapStateToProps = (_state, ownProps) => ({\n open: ownProps.open,\n onClose: ownProps.onClose,\n onSave: ownProps.onSave\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(CloseConfirmDialog)\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\n\nimport { Map, List } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport moment from 'moment-timezone'\n\nimport { useSnackbar } from 'notistack'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { useTheme } from '@mui/material/styles'\n\nimport {\n Grid,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n TextField,\n FormControl,\n Autocomplete,\n useMediaQuery\n} from '@mui/material'\n\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport CloseConfirmDialog from 'containers/content_desk_new/campaigns/campaign_form/CloseConfirmDialog'\n\nimport { InlineDatePicker, Button, IconButton, Select } from 'containers/themed'\n\nimport { mapToOptions } from 'utils/autocomplete'\n\nconst useStyles = makeStyles()(theme => ({\n dialogTitle: {\n paddingBottom: theme.spacing(2),\n color: theme.palette.grey[800]\n },\n closeButton: {\n position: 'absolute',\n right: 8,\n top: 8,\n color: !theme.isDark && theme.palette.grey[800]\n },\n form: {\n paddingTop: '10px',\n maxWidth: '700px'\n },\n datePicker: {\n minWidth: '100%'\n },\n dialogActions: {\n padding: '25px'\n }\n}))\n\nconst CampaignForm = ({ data,\n onUpdate,\n open,\n isInEditMode,\n assignees,\n campaignNameValid,\n onClose,\n onSave,\n resetForm }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const theme = useTheme()\n const mobile = useMediaQuery(theme.breakpoints.down('sm'))\n\n const { enqueueSnackbar, closeSnackbar } = useSnackbar()\n const [formHasChanged, setFormHasChanged] = useState(false)\n const [isStatusDisabled, setIsStatusDisabled] = useState(false)\n\n const statusOptions = [\n { value: true, label: i18n.get('active') },\n { value: false, label: i18n.get('closed') }\n ]\n\n useEffect(() => {\n const endDate = data.get('endDate')\n\n if (endDate && moment(endDate).isBefore(moment())) {\n setIsStatusDisabled(true)\n } else {\n setIsStatusDisabled(false)\n }\n }, [data])\n\n const handleChange = e => {\n setFormHasChanged(true)\n const { name, value } = e.target\n onUpdate({ [name]: value })\n }\n\n const handleAutocompleteChange = (name, el) => {\n setFormHasChanged(true)\n\n if (!el) {\n onUpdate({ [name]: null })\n } else {\n const { value } = el\n onUpdate({ [name]: value })\n }\n }\n\n const handleDateChange = (name, value) => {\n setFormHasChanged(true)\n let newValue = null\n\n if (value) {\n // NOTE: Not proud of this, but otherwise campaigns someone created in Sofia will be shifted one day for Berlin.\n newValue = value.add(12, 'hours')\n }\n\n if (name === 'endDate' && moment(value).isBefore(moment())) {\n onUpdate({ active: false })\n setIsStatusDisabled(true)\n } else if (name === 'endDate' && moment(value).isAfter(moment())) {\n onUpdate({ active: true })\n setIsStatusDisabled(false)\n }\n\n onUpdate({ [name]: newValue })\n }\n\n const handleStatusChange = option => {\n setFormHasChanged(true)\n onUpdate({ active: option.value })\n }\n\n const [confDialogOpen, setConfDialogOpen] = useState(false)\n\n const onExit = () => {\n onClose()\n closeSnackbar()\n setFormHasChanged(false)\n resetForm()\n setConfDialogOpen(false)\n }\n\n const handleClose = () => {\n if (formHasChanged) {\n setConfDialogOpen(true)\n } else {\n closeSnackbar()\n onClose()\n setFormHasChanged(false)\n resetForm()\n }\n }\n\n const handleSave = () => {\n if (!data.get('name')) {\n return enqueueSnackbar(\n `${i18n.get('campaign')} ${i18n.get('name')} ${i18n.get('is_required')}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n if ((!data.get('startDate') && data.get('endDate'))) {\n return enqueueSnackbar(\n `${i18n.get('start_date')} ${i18n.get('is_required')}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n if ((data.get('startDate') && !data.get('endDate'))) {\n return enqueueSnackbar(\n `${i18n.get('end_date')} ${i18n.get('is_required')}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n onSave()\n onClose()\n closeSnackbar()\n setFormHasChanged(false)\n setConfDialogOpen(false)\n\n return resetForm()\n }\n\n const userOptions = mapToOptions(assignees)\n\n return (\n <>\n onExit()}\n onSave={() => handleSave()}\n />\n \n \n {isInEditMode ? i18n.get('edit') : i18n.get('create_campaign')}\n \n \n \n \n \n \n \n \n \n \n \n option.label}\n value={userOptions.find(o => o.value === data.get('assignedUserId')) || null}\n onChange={(_event, newValue) => handleAutocompleteChange('assignedUserId', newValue)}\n renderInput={params => (\n \n )}\n isOptionEqualToValue={(option, value) => option.value === value.value}\n />\n \n \n o.value === data.get('active')) || {}).value}\n label={i18n.get('status')}\n />\n \n \n handleDateChange('startDate', value)}\n maxDate={moment(data.get('endDate'))}\n renderInput={params => (\n \n )}\n autoComplete=\"off\"\n />\n \n \n handleDateChange('endDate', value)}\n minDate={moment(data.get('startDate'))}\n renderInput={params => (\n \n )}\n autoComplete=\"off\"\n />\n \n \n \n \n \n \n \n \n \n {i18n.get('cancel')}\n \n \n {i18n.get('save')}\n \n \n \n \n )\n}\n\nCampaignForm.defaultProps = {\n assignees: List()\n}\n\nCampaignForm.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired,\n open: PropTypes.bool.isRequired,\n isInEditMode: PropTypes.bool.isRequired,\n assignees: PropTypes.instanceOf(List),\n campaignNameValid: PropTypes.bool.isRequired,\n\n onUpdate: PropTypes.func.isRequired,\n onClose: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired,\n resetForm: PropTypes.func.isRequired\n}\n\nexport default CampaignForm\n","import { connect } from 'react-redux'\n\nimport CampaignForm from 'components/content_desk_new/campaigns/campaign_form/CampaignForm'\n\nimport {\n getCDeskCampaignFormData,\n getCDeskShowNewCampaignDialog,\n getCDeskCampaignDialogEditMode,\n getCDeskAssignees,\n getCDeskCampaignNameValid\n} from 'selectors'\nimport {\n updateCampaignFormData as onUpdate,\n closeCampaignForm as onClose,\n saveCampaignStart as onSave,\n resetCampaignForm as resetForm\n} from 'actions/content_desk'\n\nconst mapStateToProps = state => ({\n data: getCDeskCampaignFormData(state),\n open: getCDeskShowNewCampaignDialog(state),\n isInEditMode: getCDeskCampaignDialogEditMode(state),\n campaignNameValid: getCDeskCampaignNameValid(state),\n assignees: getCDeskAssignees(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onUpdate,\n onClose,\n onSave,\n resetForm\n }\n)(CampaignForm)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { List, fromJS, Map } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport moment from 'moment-timezone'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Dialog, DialogActions, DialogContent, DialogTitle, Avatar, Stack } from '@mui/material'\nimport MailIcon from '@mui/icons-material/Mail'\nimport LinkedInIcon from '@mui/icons-material/LinkedIn'\nimport FacebookIcon from '@mui/icons-material/Facebook'\n\nimport { Button, IconButton } from 'containers/themed'\n\nimport { facebookPost as initialFacebookPost } from 'static/facebook_post_config'\nimport { linkedInPost as initialLinkedInPost } from 'static/linked_in_post_config'\nimport { otsBody as initialOtsBody } from 'static/ots_body_config'\n\nconst newEditorContentTypes = ['email', 'ots_press_release']\n\nconst useStyles = makeStyles()(theme => ({\n dialog: {\n padding: '25px',\n margin: '1em 1em 1em 1em'\n },\n title: {\n color: !theme.isDark && '#404040'\n },\n otsLogo: {\n width: 20,\n height: 10\n }\n}))\n\nconst ContentNewDialog = ({\n contentDeskContentTypes,\n hasContactsManagement,\n hasFacebook,\n hasLinkedIn,\n hasOts,\n open,\n pages,\n profile,\n socialOnly,\n config,\n closeNewContentDialog,\n setContentFormData,\n saveContentStart\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleBtnClick = type => {\n const filteredType = contentDeskContentTypes.filter(t => t.get('id').toLowerCase() === type).first()\n let title = i18n.get('new_content_title', { type: i18n.get(type), timestamp: moment().format() })\n\n if (type === 'ots_press_release') {\n setContentFormData({ key: 'body', value: JSON.stringify(initialOtsBody) })\n }\n\n if (type === 'linkedin') {\n title = i18n.get('new_content_title', { type: i18n.get('linked_in'), timestamp: moment().format() })\n const linkedInPost = fromJS(initialLinkedInPost)\n .set('author', profile.get('urn') || '')\n\n setContentFormData({ key: 'linkedInPost', value: linkedInPost })\n }\n\n if (type === 'facebook') {\n const defaultPage = pages.filter(p => p.get('instagram') !== true).first() || Map()\n const facebookPost = fromJS(initialFacebookPost)\n .set('pageId', defaultPage.get('id') || '')\n .set('accessToken', defaultPage.get('accessToken') || '')\n\n setContentFormData({ key: 'facebookPost', value: facebookPost })\n }\n\n if (type === 'email') {\n setContentFormData({ key: 'domain', value: config.get('domain') })\n setContentFormData({ key: 'domainRegion', value: config.get('domainRegion') })\n }\n\n setContentFormData({ key: 'title', value: title })\n\n if (filteredType) {\n setContentFormData({ key: 'type', value: filteredType, id: filteredType.get('id') })\n }\n\n if (newEditorContentTypes.includes(type)) {\n saveContentStart({ openEditContentDialog: true })\n } else {\n saveContentStart({ openOldEditContentDialog: true })\n }\n\n closeNewContentDialog()\n }\n\n return (\n closeNewContentDialog()}\n >\n \n {i18n.get('content_type')}\n \n \n \n {!socialOnly && (\n <>\n {hasContactsManagement && (\n \n handleBtnClick('email')}\n >\n \n \n \n )}\n {hasOts && (\n \n handleBtnClick('ots_press_release')}\n >\n \n \n \n )}\n \n )}\n {hasLinkedIn && (\n \n handleBtnClick('linkedin')}\n >\n \n \n \n )}\n {hasFacebook && (\n \n handleBtnClick('facebook')}\n >\n \n \n \n )}\n \n \n \n \n {i18n.get('cancel')}\n \n \n \n )\n}\n\nContentNewDialog.propTypes = {\n contentDeskContentTypes: PropTypes.instanceOf(List).isRequired,\n hasContactsManagement: PropTypes.bool.isRequired,\n hasFacebook: PropTypes.bool.isRequired,\n hasLinkedIn: PropTypes.bool.isRequired,\n hasOts: PropTypes.bool.isRequired,\n open: PropTypes.bool.isRequired,\n pages: PropTypes.instanceOf(List).isRequired,\n profile: PropTypes.instanceOf(Map).isRequired,\n socialOnly: PropTypes.bool.isRequired,\n config: PropTypes.instanceOf(Map).isRequired,\n\n closeNewContentDialog: PropTypes.func.isRequired,\n saveContentStart: PropTypes.func.isRequired,\n setContentFormData: PropTypes.func.isRequired\n}\n\nexport default ContentNewDialog\n","import { connect } from 'react-redux'\n\nimport { Capabilities } from 'static/constants'\n\nimport ContentNewDialog from 'components/content_desk_new/content_new_dialog'\n\nimport {\n closeNewContentDialog,\n setContentFormData,\n saveContentStart\n} from 'actions/content_desk'\n\nimport {\n getCDeskShowNewContentDialog,\n getStaticCdContentTypes,\n getStaticFacebookAnalyticsPages,\n getLinkedInProfile,\n getCDeskNewContentDialogSocialOnly,\n hasCapability,\n getCDeskConfig\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n contentDeskContentTypes: getStaticCdContentTypes(state),\n hasContactsManagement: !!hasCapability(state, Capabilities.HAS_CONTACTS_MANAGEMENT_MODULE),\n hasFacebook: !!hasCapability(state, Capabilities.HAS_CONTENT_DESK_FACEBOOK),\n hasLinkedIn: !!hasCapability(state, Capabilities.HAS_CONTENT_DESK_LINKED_IN),\n hasOts: !!hasCapability(state, Capabilities.HAS_CONTENT_DESK_OTS_PR),\n open: getCDeskShowNewContentDialog(state),\n pages: getStaticFacebookAnalyticsPages(state),\n profile: getLinkedInProfile(state),\n socialOnly: getCDeskNewContentDialogSocialOnly(state),\n config: getCDeskConfig(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n closeNewContentDialog,\n setContentFormData,\n saveContentStart\n }\n)(ContentNewDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { Tooltip, MenuItem } from '@mui/material'\n\nimport DeleteOutlineIcon from '@mui/icons-material/DeleteOutline'\n\nconst useStyles = makeStyles()(() => ({\n actionIcon: {\n color: 'rgba(0, 0, 0, 0.54)',\n marginRight: 8\n },\n actionName: {\n marginLeft: 12\n }\n}))\n\nconst CampaignDelete = ({\n campaign,\n onOpen,\n setDeleteData\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const ccdContents = campaign.get('ccdContents')\n const hasScheduledContents = ccdContents.some(el => el.get('status') === 'scheduled')\n const isDefaultCampaign = campaign.get('defaultAssigned')\n const deleteDisabled = isDefaultCampaign || hasScheduledContents\n\n let deleteTooltipTitle = ''\n\n if (hasScheduledContents) {\n deleteTooltipTitle = i18n.get('campaign_has_scheduled_contents')\n }\n\n if (isDefaultCampaign) {\n deleteTooltipTitle = i18n.get('campaign_default_cannot_be_deleted')\n }\n\n const handleDeleteDialogOpen = e => {\n if (deleteDisabled) {\n e.preventDefault()\n\n return\n }\n\n e.stopPropagation()\n setDeleteData({ id: campaign.get('id') })\n onOpen()\n }\n\n return (\n \n \n \n \n
\n {i18n.get('delete')}\n
\n
\n \n \n )\n}\n\nCampaignDelete.propTypes = {\n campaign: PropTypes.object.isRequired,\n\n onOpen: PropTypes.func.isRequired,\n setDeleteData: PropTypes.func.isRequired\n}\n\nexport default CampaignDelete\n","import { connect } from 'react-redux'\n\nimport CampaignDelete from 'components/content_desk_new/campaigns/campaign/campaign_actions/CampaignDelete'\n\nimport { openDeleteDialog, setDeleteContentData } from 'actions/content_desk'\n\nconst mapStateToProps = (_state, { campaign }) => ({\n campaign\n})\n\nexport default connect(\n mapStateToProps,\n {\n onOpen: () => openDeleteDialog('campaign'),\n setDeleteData: setDeleteContentData\n }\n)(CampaignDelete)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map as ImmutableMap } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { MenuItem } from '@mui/material'\n\nimport EditIcon from '@mui/icons-material/Edit'\nimport PoolIcon from '@mui/icons-material/Pool'\nimport MoreVertIcon from '@mui/icons-material/MoreVert'\n\nimport { Capabilities } from 'static/constants'\n\nimport { IconButton, Menu } from 'containers/themed'\nimport CampaignDelete from 'containers/content_desk_new/campaigns/campaign/CampaignDelete'\nimport CapSafe from 'containers/CapSafe'\n\nconst SwitchToSearchMenuItem = CapSafe(MenuItem, Capabilities.HAS_NEWS_POOL_MODULE)\n\nconst useStyles = makeStyles()(() => ({\n actionIcon: {\n color: 'rgba(0, 0, 0, 0.54)',\n marginRight: 8\n },\n actionName: {\n marginLeft: 12\n }\n}))\n\nexport default function CampaignActions({\n campaign,\n onEditClick,\n onSwitchToSearchPoolClick,\n setEditMode\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleEdit = e => {\n e.stopPropagation()\n\n setEditMode()\n onEditClick(campaign)\n }\n\n return (\n <>\n \n \n \n )}\n >\n \n \n
\n {i18n.get('edit')}\n
\n \n onSwitchToSearchPoolClick({\n field: 'ccdCampaigns',\n value: campaign\n })}\n >\n \n
\n {i18n.get('view_earned_media')}\n
\n \n \n \n \n )\n}\n\nCampaignActions.propTypes = {\n campaign: PropTypes.instanceOf(ImmutableMap).isRequired,\n\n onEditClick: PropTypes.func.isRequired,\n onSwitchToSearchPoolClick: PropTypes.func.isRequired,\n setEditMode: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport CampaignActions from 'components/content_desk_new/campaigns/campaign/campaign_actions'\n\nimport {\n openCampaignForm,\n setCampaignDialogEditMode,\n switchToSearchPool\n} from 'actions/content_desk'\n\nconst mapStateToProps = (_state, ownProps) => ({\n campaign: ownProps.campaign\n})\n\nexport default connect(\n mapStateToProps,\n {\n onEditClick: openCampaignForm,\n onSwitchToSearchPoolClick: switchToSearchPool,\n setEditMode: setCampaignDialogEditMode\n }\n)(CampaignActions)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map as ImmutableMap } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { useTheme } from '@mui/material/styles'\nimport {\n Box,\n Chip,\n MenuItem\n} from '@mui/material'\n\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\nimport ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown'\nimport TripOriginRoundedIcon from '@mui/icons-material/TripOriginRounded'\nimport CheckCircleIcon from '@mui/icons-material/CheckCircle'\nimport HelpOutlineOutlinedIcon from '@mui/icons-material/HelpOutlineOutlined'\nimport WatchLaterRoundedIcon from '@mui/icons-material/WatchLaterRounded'\nimport SwapVerticalCircleIcon from '@mui/icons-material/SwapVerticalCircle'\nimport LanguageIcon from '@mui/icons-material/Language'\nimport RemoveCircleIcon from '@mui/icons-material/RemoveCircle'\n\nimport { indigo, green, purple, grey, orange, red } from '@mui/material/colors'\n\nimport { Button, Menu } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n contentActions: {\n display: 'flex',\n justifyContent: 'center'\n },\n moreActionsButton: {\n paddingLeft: '10px',\n paddingRight: '10px'\n },\n chipLabel: {\n display: 'flex',\n alignItems: 'center'\n },\n statusWrapper: {\n display: 'flex',\n alignItems: 'center',\n color: !theme.isDark && '#404040'\n }\n}))\n\nconst statusColor = status => {\n switch (status) {\n case 'draft':\n return grey[500]\n case 'review_pending':\n return orange[500]\n case 'revisions_needed':\n return purple[500]\n case 'approved':\n return green[500]\n default:\n return grey[300]\n }\n}\nconst renderStatusIcon = (status, color) => {\n switch (status) {\n case 'draft':\n return \n case 'review_pending':\n return \n case 'revisions_needed':\n return \n case 'approved':\n return \n default:\n return \n }\n}\nconst otsStatusColor = status => {\n switch (status) {\n case 'draft':\n return grey[500]\n case 'review':\n return orange[500]\n case 'declined':\n return red[700]\n case 'approved':\n return green[500]\n case 'distributed':\n return indigo[500]\n default:\n return grey[300]\n }\n}\nconst renderOtsStatusIcon = (status, color) => {\n switch (status) {\n case 'draft':\n return \n case 'review':\n return \n case 'declined':\n return \n case 'approved':\n return \n case 'distributed':\n return \n default:\n return \n }\n}\n\nexport default function ContentApprovalStatusSelect({\n buttonClass,\n content,\n mode,\n onChange\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const device = useDevice()\n const campaignId = content.getIn(['ccdCampaign', 'id'])\n const status = content.get('approvalStatus')\n const otsStatus = content.getIn(['otsPressRelease', 'status'])\n const theme = useTheme()\n\n const handleStatusChange = value => {\n onChange({\n id: content.get('id'),\n title: content.get('title'),\n plannedFor: content.get('plannedFor'),\n scheduledFor: content.get('scheduledFor'),\n scheduledForJobName: content.get('scheduledJobName'),\n scheduledEventsJobName: content.get('scheduledEventsJobName'),\n approvalStatus: value,\n ccdCampaignId: campaignId\n })\n }\n\n const label = (\n
\n {device.get('mobile') ? null : i18n.get(status)}\n \n
\n )\n\n const handleComp = mode === 'chip' ? (\n \n ) : (\n {i18n.get('status')}: {i18n.get(status)}\n \n )\n\n const renderStatusChip = () => (\n
\n \n handleStatusChange('draft')}>\n \n {i18n.get('draft')}\n \n handleStatusChange('review_pending')}>\n \n {i18n.get('review_pending')}\n \n handleStatusChange('revisions_needed')}>\n \n {i18n.get('revisions_needed')}\n \n handleStatusChange('approved')}>\n \n {i18n.get('approved')}\n \n \n
\n )\n\n const renderOtsStatusChip = () => {\n const otsLabel = device.get('mobile') ? null : i18n.get(`ots_${otsStatus.toLowerCase()}`)\n\n return (\n \n )\n }\n\n return (\n \n {otsStatus ? renderOtsStatusChip() : renderStatusChip()}\n \n )\n}\n\nContentApprovalStatusSelect.defaultProps = {\n buttonClass: null,\n mode: 'chip'\n}\n\nContentApprovalStatusSelect.propTypes = {\n buttonClass: PropTypes.string,\n content: PropTypes.instanceOf(ImmutableMap).isRequired,\n mode: PropTypes.oneOf(['chip', 'button']),\n onChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport {\n saveContentFormlessStart as onChange\n} from 'actions/content_desk'\n\nimport ContentApprovalStatusSelect from 'components/content_desk_new/contents/content_approval_status_select'\n\nconst mapStateToProps = (_state, ownProps) => ({\n content: ownProps.content\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange\n }\n)(ContentApprovalStatusSelect)\n\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport moment from 'moment-timezone'\nimport { Map } from 'immutable'\nimport camelcase from 'camelcase'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Box,\n TableCell,\n TableRow,\n Typography\n} from '@mui/material'\nimport { indigo, green, purple, grey, orange, red } from '@mui/material/colors'\n\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\nimport ContentTitle from 'containers/content_desk_new/contents/content/ContentTitle'\nimport ContentApprovalStatusSelect from 'containers/content_desk_new/contents/content/ContentApprovalStatusSelect'\nimport ContentStatus from 'containers/content_desk_new/contents/content/ContentStatus'\nimport ContentActions from 'containers/content_desk_new/contents/content/ContentActions'\n\nconst useStyles = makeStyles()(() => ({\n icon: {\n fontSize: 20,\n margin: '-2px'\n },\n draft: {\n borderLeft: '5px solid',\n borderColor: grey[500]\n },\n declined: {\n borderLeft: '5px solid',\n borderColor: red[700]\n },\n distributed: {\n borderLeft: '5px solid',\n borderColor: indigo[500]\n },\n review: {\n borderLeft: '5px solid',\n borderColor: orange[500]\n },\n reviewPending: {\n borderLeft: '5px solid',\n borderColor: orange[500]\n },\n revisionsNeeded: {\n borderLeft: '5px solid',\n borderColor: purple[500]\n },\n approved: {\n borderLeft: '5px solid',\n borderColor: green[500]\n }\n}))\n\nfunction ColumnFooter({ text }) {\n return (\n \n !theme.isDark && '#757575' }}\n >\n {text}\n \n \n )\n}\n\nconst Content = ({\n content,\n showCampaigns\n}) => {\n const i18n = useI18n()\n const device = useDevice()\n const { classes } = useStyles()\n const editor = `${content.getIn(['lastEditor', 'firstName'])} ${content.getIn(['lastEditor', 'lastName'])}`\n const lastEditedDate = moment(content.get('updatedAt')).format('lll')\n const status = camelcase(content.get('approvalStatus'))\n const statusClass = classes[status]\n const otsStatus = content.getIn(['otsPressRelease', 'status'])\n\n let otsStatusClass\n\n if (otsStatus) {\n otsStatusClass = classes[otsStatus.toLowerCase()]\n }\n\n let maxLength = 16\n\n if (device.get('xl')) {\n maxLength = 32\n } else if (device.get('lg')) {\n maxLength = 24\n }\n\n const renderCampaigName = () => {\n if (showCampaigns) {\n let campaignName = content.getIn(['ccdCampaign', 'name']) || ''\n\n if (campaignName.toLowerCase() === 'no campaign') {\n campaignName = i18n.get('no_campaign')\n }\n\n return (\n \n {campaignName}\n \n )\n }\n\n return null\n }\n\n return (\n \n \n \n \n \n {editor}\n \n \n {renderCampaigName()}\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nContent.defaultProps = {\n showCampaigns: true\n}\n\nContent.propTypes = {\n content: PropTypes.instanceOf(Map).isRequired,\n showCampaigns: PropTypes.bool\n}\n\nColumnFooter.propTypes = {\n text: PropTypes.string\n}\n\nexport default Content\n","import { connect } from 'react-redux'\n\nimport Content from 'components/content_desk_new/contents/content'\n\nconst mapStateToProps = (_state, ownProps) => ({\n content: ownProps.content\n})\n\nexport default connect(\n mapStateToProps,\n {}\n)(Content)\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\nimport camelcase from 'camelcase'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n CircularProgress,\n Table,\n TableHead,\n TableCell,\n TableRow,\n TableBody\n} from '@mui/material'\n\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward'\nimport ArrowDownwardIcon from '@mui/icons-material/ArrowDownward'\nimport SwapVertIcon from '@mui/icons-material/SwapVert'\n\nimport Content from 'containers/content_desk_new/contents/content/Content'\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n tableContainer: {\n position: 'relative',\n width: '100%',\n paddingBottom: '20px'\n },\n lastEditedLabel: {\n minWidth: 200\n },\n loadingContainer: {\n zIndex: 1,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n backgroundColor: 'rgba(255, 255, 255, 0.7)'\n },\n sortIconActive: {\n fontSize: '0.6rem !important'\n },\n sortIconInActive: {\n fontSize: '0.6rem !important',\n opacity: 0.5\n }\n})\n\nconst Contents = ({\n contents,\n loading,\n showCampaigns,\n sortBy,\n sortOrder,\n\n onSortBy,\n setPage\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n const [sortedContents, setSortedContents] = useState(contents.get('items'))\n const [currentSortBy, setCurrentSortBy] = useState(sortBy)\n const [currentSortOrder, setCurrentSortOrder] = useState(sortOrder)\n\n useEffect(() => {\n setSortedContents(contents.get('items'))\n }, [contents])\n\n let handleSortingClick = field => {\n let newSortOrder = ''\n let newSortField = camelcase(field)\n\n if (field === currentSortBy) {\n if (currentSortOrder === '') {\n newSortOrder = 'asc'\n }\n\n if (currentSortOrder === 'asc') {\n newSortOrder = 'desc'\n }\n\n if (currentSortOrder === 'desc') {\n newSortOrder = ''\n newSortField = ''\n }\n } else {\n newSortOrder = 'asc'\n }\n\n if (newSortField === '') {\n setSortedContents(contents.get('items'))\n setCurrentSortBy('')\n setCurrentSortOrder('')\n\n return\n }\n\n const sorted = sortedContents.sort((a, b) => {\n if (a.get(newSortField) < b.get(newSortField)) {\n return newSortOrder === 'asc' ? -1 : 1\n }\n\n if (a.get(newSortField) > b.get(newSortField)) {\n return newSortOrder === 'asc' ? 1 : -1\n }\n\n return 0\n })\n\n setSortedContents(sorted)\n setCurrentSortBy(field)\n setCurrentSortOrder(newSortOrder)\n }\n\n if (setPage && onSortBy) {\n handleSortingClick = field => {\n let newSortOrder = ''\n let newSortField = field\n\n if (field === currentSortBy) {\n if (currentSortOrder === '') {\n newSortOrder = 'asc'\n }\n\n if (currentSortOrder === 'asc') {\n newSortOrder = 'desc'\n }\n\n if (currentSortOrder === 'desc') {\n newSortOrder = ''\n newSortField = ''\n }\n } else {\n newSortOrder = 'asc'\n }\n\n setPage({ key: 'contentPage', value: 1 })\n onSortBy({ type: 'contents', sortBy: newSortField, sortOrder: newSortOrder })\n setCurrentSortBy(field)\n setCurrentSortOrder(newSortOrder)\n }\n }\n\n const renderSortIcon = field => {\n if (sortedContents.size === 1) {\n return null\n }\n\n let title = i18n.get('sort')\n let icon = \n let iconClass = classes.sortIconInActive\n\n if (field === currentSortBy) {\n if (currentSortOrder === 'asc') {\n iconClass = classes.sortIconActive\n icon = \n title = i18n.get('ascending')\n }\n\n if (currentSortOrder === 'desc') {\n iconClass = classes.sortIconActive\n icon = \n title = i18n.get('descending')\n }\n }\n\n return (\n handleSortingClick(field)}\n />\n )\n }\n\n const renderContents = () => sortedContents.map((el, index) => (\n \n ))\n\n return (\n
\n {loading && (\n
\n \n
\n )}\n \n \n \n \n {i18n.get('name')} {renderSortIcon('title')}\n \n \n {i18n.get('last_edited')} {renderSortIcon('updated_at')}\n \n {showCampaigns && (\n \n {i18n.get('campaign')}\n \n )}\n \n {i18n.get('editing_status')}\n \n \n {i18n.get('sending_status')} {renderSortIcon('scheduled_for')}\n \n \n \n \n \n {renderContents()}\n \n
\n
\n )\n}\n\nContents.defaultProps = {\n showCampaigns: true,\n loading: false,\n sortBy: null,\n sortOrder: 'asc'\n}\n\nContents.propTypes = {\n contents: PropTypes.instanceOf(Map).isRequired,\n loading: PropTypes.bool,\n showCampaigns: PropTypes.bool,\n sortBy: PropTypes.string,\n sortOrder: PropTypes.string,\n\n onSortBy: PropTypes.func,\n setPage: PropTypes.func\n}\n\nexport default Contents\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { fromJS, Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Chip,\n Collapse,\n Paper,\n TableCell,\n TableRow\n} from '@mui/material'\n\nimport { blue, blueGrey } from '@mui/material/colors'\n\nimport useDevice from 'hooks/useDevice'\n\nimport KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'\nimport KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp'\n\nimport { IconButton } from 'containers/themed'\nimport CampaignName from 'containers/content_desk_new/campaigns/campaign/CampaignName'\nimport CampaignStatus from 'containers/content_desk_new/campaigns/campaign/CampaignStatus'\nimport CampaignProgress from 'containers/content_desk_new/campaigns/campaign/CampaignProgress'\nimport CampaignActions from 'containers/content_desk_new/campaigns/campaign/CampaignActions'\n\nimport Contents from 'components/content_desk_new/contents/Contents'\n\nconst useStyles = makeStyles()({\n tableCell: {\n paddingTop: 8,\n paddingBottom: 8\n },\n active: {\n borderLeft: '5px solid',\n borderColor: blue[500]\n },\n inactive: {\n borderLeft: '5px solid',\n borderColor: blueGrey[500]\n }\n})\n\nconst Campaign = ({\n campaign\n}) => {\n const { classes } = useStyles()\n const device = useDevice()\n const [showContents, setShowContents] = useState(false)\n const contents = fromJS({\n total: campaign.get('ccdContentsCount'),\n items: campaign.get('ccdContents')\n })\n const campaignActive = campaign.get('active') && !campaign.get('defaultAssigned')\n\n let maxLength = 16\n\n if (device.get('xl')) {\n maxLength = 54\n } else if (device.get('lg')) {\n maxLength = 34\n }\n\n let assignedUserName = ''\n\n if (campaign.get('assignedUser')) {\n assignedUserName = `${campaign.getIn(['assignedUser', 'firstName'])} ${campaign.getIn(['assignedUser', 'lastName'])}`\n }\n\n return (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {assignedUserName}\n \n \n setShowContents(!showContents)}\n >\n {showContents ? : }\n \n \n \n \n *': { borderBottom: 'unset !important' } }}\n selected={showContents}\n className={campaignActive ? classes.active : classes.inactive}\n >\n \n \n \n \n \n \n \n \n \n )\n}\n\nCampaign.propTypes = {\n campaign: PropTypes.instanceOf(Map).isRequired\n}\n\nexport default Campaign\n","import { connect } from 'react-redux'\n\nimport Campaign from 'components/content_desk_new/campaigns/campaign'\n\nconst mapStateToProps = (_state, ownProps) => ({\n campaign: ownProps.campaign\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(Campaign)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n CircularProgress,\n Table,\n TableHead,\n TableCell,\n TableRow,\n TableBody\n} from '@mui/material'\n\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward'\nimport ArrowDownwardIcon from '@mui/icons-material/ArrowDownward'\nimport SwapVertIcon from '@mui/icons-material/SwapVert'\n\nimport Campaign from 'containers/content_desk_new/campaigns/campaign/Campaign'\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n tableContainer: {\n position: 'relative',\n width: '100%',\n height: '100%',\n paddingBottom: '20px'\n },\n loadingContainer: {\n zIndex: 1,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n backgroundColor: 'rgba(255, 255, 255, 0.7)'\n },\n sortIconActive: {\n fontSize: '0.8rem !important'\n },\n sortIconInActive: {\n fontSize: '0.8rem',\n opacity: 0.5\n }\n})\n\nconst Campaigns = ({\n campaigns,\n loading,\n sortBy,\n sortOrder,\n\n onSortBy,\n setPage\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const handleSortingClick = field => {\n let newSortOrder = ''\n let newSortField = field\n\n if (field === sortBy) {\n if (sortOrder === '') {\n newSortOrder = 'asc'\n }\n\n if (sortOrder === 'asc') {\n newSortOrder = 'desc'\n }\n\n if (sortOrder === 'desc') {\n newSortOrder = ''\n newSortField = ''\n }\n } else {\n newSortOrder = 'asc'\n }\n\n setPage({ key: 'campaignPage', value: 1 })\n onSortBy({ type: 'campaigns', sortBy: newSortField, sortOrder: newSortOrder })\n }\n\n const renderSortIcon = field => {\n let title = i18n.get('sort')\n let icon = \n let iconClass = classes.sortIconInActive\n\n if (field === sortBy) {\n if (sortOrder === 'asc') {\n iconClass = classes.sortIconActive\n icon = \n title = i18n.get('ascending')\n }\n\n if (sortOrder === 'desc') {\n iconClass = classes.sortIconActive\n icon = \n title = i18n.get('descending')\n }\n }\n\n return (\n handleSortingClick(field)}\n />\n )\n }\n\n const renderCampaigns = () => campaigns.get('items').map((el, index) => (\n \n ))\n\n return (\n
\n {loading && (\n
\n \n
\n )}\n \n \n \n \n {i18n.get('name')} {renderSortIcon('name')}\n \n \n {i18n.get('duration')} {renderSortIcon('start_date')}\n \n \n {i18n.get('contents')}\n \n \n {i18n.get('status')}\n \n \n {i18n.get('assigned_user')}\n \n \n \n \n \n {renderCampaigns()}\n \n
\n
\n )\n}\n\nCampaigns.propTypes = {\n campaigns: PropTypes.instanceOf(Map).isRequired,\n loading: PropTypes.bool.isRequired,\n sortBy: PropTypes.string.isRequired,\n sortOrder: PropTypes.string.isRequired,\n\n onSortBy: PropTypes.func.isRequired,\n setPage: PropTypes.func.isRequired\n}\n\nexport default Campaigns\n","import { connect } from 'react-redux'\n\nimport {\n setSortBy,\n setPage\n} from 'actions/content_desk'\nimport {\n getCDeskCampaigns,\n getCDeskCampaignSortBy,\n getCDeskCampaignSortOrder,\n getCDeskSearchCampaignsRunning\n} from 'selectors'\n\nimport Campaigns from 'components/content_desk_new/campaigns'\n\nconst mapStateToProps = state => ({\n campaigns: getCDeskCampaigns(state),\n loading: getCDeskSearchCampaignsRunning(state),\n sortBy: getCDeskCampaignSortBy(state),\n sortOrder: getCDeskCampaignSortOrder(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSortBy: setSortBy,\n setPage\n }\n)(Campaigns)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Accordion,\n AccordionDetails,\n AccordionSummary,\n Box,\n Chip,\n Divider,\n Grid,\n List,\n ListItem\n} from '@mui/material'\n\nimport { blue, blueGrey } from '@mui/material/colors'\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\n\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\nimport CampaignName from 'containers/content_desk_new/campaigns/campaign/CampaignName'\nimport CampaignStatus from 'containers/content_desk_new/campaigns/campaign/CampaignStatus'\nimport CampaignProgress from 'containers/content_desk_new/campaigns/campaign/CampaignProgress'\nimport ContentTitle from 'containers/content_desk_new/contents/content/ContentTitle'\n\nconst useStyles = makeStyles()({\n summaryHeader: {\n width: '95%',\n display: 'flex',\n justifyContent: 'space-between'\n },\n detailsContainer: {\n marginTop: 10,\n fontSize: 12\n },\n label: {\n fontWeight: 600\n },\n active: {\n borderLeft: '5px solid',\n borderColor: blue[500]\n },\n inactive: {\n borderLeft: '5px solid',\n borderColor: blueGrey[500]\n }\n})\n\nconst Campaign = ({\n campaign\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const device = useDevice()\n const campaignActive = campaign.get('active') && !campaign.get('defaultAssigned')\n const maxContentTitleLength = 38\n\n let maxLength = 16\n\n if (device.get('sm') || device.get('gt-sm')) {\n maxLength = 50\n }\n\n let assignedUserName = ''\n\n if (campaign.get('assignedUser')) {\n assignedUserName = `${campaign.getIn(['assignedUser', 'firstName'])} ${campaign.getIn(['assignedUser', 'lastName'])}`\n }\n\n const renderContent = content => (\n <>\n \n \n \n \n \n )\n\n return (\n \n }\n >\n \n \n \n \n \n \n \n \n {i18n.get('duration')}:\n \n \n \n \n\n \n {i18n.get('status')}:\n \n \n \n \n\n \n {i18n.get('assigned_user')}:\n \n \n {assignedUserName}\n \n\n \n {i18n.get('contents')}:\n \n \n \n {campaign.get('ccdContents').map(content => (\n renderContent(content)\n ))}\n \n \n \n \n \n )\n}\n\nCampaign.propTypes = {\n campaign: PropTypes.instanceOf(Map).isRequired\n}\n\nexport default Campaign\n","import { connect } from 'react-redux'\n\nimport MobileCampaign from 'components/content_desk_new/campaigns/mobile_campaigns/mobile_campaign'\n\nconst mapStateToProps = (_state, ownProps) => ({\n campaign: ownProps.campaign\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(MobileCampaign)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Box,\n CircularProgress\n} from '@mui/material'\n\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward'\nimport ArrowDownwardIcon from '@mui/icons-material/ArrowDownward'\nimport SwapVertIcon from '@mui/icons-material/SwapVert'\n\nimport MobileCampaign from 'containers/content_desk_new/campaigns/mobile_campaigns/MobileCampaign'\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n container: {\n position: 'relative',\n width: '100%',\n padding: 10\n },\n loadingContainer: {\n zIndex: 1,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n backgroundColor: 'rgba(255, 255, 255, 0.7)'\n },\n header: {\n display: 'flex',\n justifyContent: 'space-between',\n marginRight: 30\n },\n sortIconActive: {\n fontSize: '0.8rem !important'\n },\n sortIconInActive: {\n fontSize: '0.8rem',\n opacity: 0.5\n }\n})\n\nconst MobileCampaigns = ({\n campaigns,\n loading,\n sortBy,\n sortOrder,\n\n onSortBy,\n setPage\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const handleSortingClick = field => {\n let newSortOrder = ''\n let newSortField = field\n\n if (field === sortBy) {\n if (sortOrder === '') {\n newSortOrder = 'asc'\n }\n\n if (sortOrder === 'asc') {\n newSortOrder = 'desc'\n }\n\n if (sortOrder === 'desc') {\n newSortOrder = ''\n newSortField = ''\n }\n } else {\n newSortOrder = 'asc'\n }\n\n setPage({ key: 'campaignPage', value: 1 })\n onSortBy({ type: 'campaigns', sortBy: newSortField, sortOrder: newSortOrder })\n }\n\n const renderSortIcon = field => {\n let title = i18n.get('sort')\n let icon = \n let iconClass = classes.sortIconInActive\n\n if (field === sortBy) {\n if (sortOrder === 'asc') {\n iconClass = classes.sortIconActive\n icon = \n title = i18n.get('ascending')\n }\n\n if (sortOrder === 'desc') {\n iconClass = classes.sortIconActive\n icon = \n title = i18n.get('descending')\n }\n }\n\n return (\n handleSortingClick(field)}\n />\n )\n }\n\n const renderCampaigns = () => campaigns.get('items').map((el, index) => (\n \n ))\n\n return (\n \n {loading && (\n \n \n \n )}\n \n \n {i18n.get('name')} {renderSortIcon('name')}\n \n \n {renderCampaigns()}\n \n )\n}\n\nMobileCampaigns.propTypes = {\n campaigns: PropTypes.instanceOf(Map).isRequired,\n loading: PropTypes.bool.isRequired,\n sortBy: PropTypes.string.isRequired,\n sortOrder: PropTypes.string.isRequired,\n\n onSortBy: PropTypes.func.isRequired,\n setPage: PropTypes.func.isRequired\n}\n\nexport default MobileCampaigns\n","import { connect } from 'react-redux'\n\nimport {\n setSortBy,\n setPage\n} from 'actions/content_desk'\nimport {\n getCDeskCampaigns,\n getCDeskCampaignSortBy,\n getCDeskCampaignSortOrder,\n getCDeskSearchCampaignsRunning\n} from 'selectors'\n\nimport MobileCampaigns from 'components/content_desk_new/campaigns/mobile_campaigns'\n\nconst mapStateToProps = state => ({\n campaigns: getCDeskCampaigns(state),\n loading: getCDeskSearchCampaignsRunning(state),\n sortBy: getCDeskCampaignSortBy(state),\n sortOrder: getCDeskCampaignSortOrder(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSortBy: setSortBy,\n setPage\n }\n)(MobileCampaigns)\n","import React, { useEffect, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport moment from 'moment'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Box,\n Checkbox,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Divider,\n Tooltip,\n Typography,\n useMediaQuery\n} from '@mui/material'\n\nimport CloseIcon from '@mui/icons-material/Close'\nimport AlarmOffIcon from '@mui/icons-material/AlarmOff'\n\nimport { StaticDatePicker, StaticTimePicker, Button, IconButton } from 'containers/themed'\n\nimport { isEditorDesignBlank } from 'utils/content_desk'\n\nconst useStyles = makeStyles()((theme, { mobile }) => ({\n dialogPaper: {\n minWidth: mobile ? '100%' : '670px',\n maxWidth: mobile ? '100%' : '670px'\n },\n dialogTitle: {\n paddingBottom: theme.spacing(2),\n color: theme.palette.grey[800]\n },\n dateTimePickerWrapper: {\n display: 'flex',\n justifyContent: 'center',\n flexDirection: mobile ? 'column' : 'row'\n },\n dateTimePicker: {\n '& .MuiPickersToolbar-penIconButton': {\n display: 'none'\n },\n '& .MuiPickersToolbar-root': {\n alignItems: 'center'\n },\n '& .MuiPickersToolbar-content': {\n justifyContent: 'center'\n },\n '& .MuiClock-root': {\n paddingTop: '20px'\n },\n '& .MuiPickersLayout-actionBar': {\n display: 'none'\n }\n },\n publishInfo: {\n fontSize: '10px',\n fontWeight: '500',\n width: '100%',\n opacity: '0.7',\n paddingLeft: '40px'\n },\n closeButton: {\n position: 'absolute',\n right: 8,\n top: 8,\n color: !theme.isDark && theme.palette.grey[800]\n },\n dialogActions: {\n display: 'flex',\n justifyContent: 'space-between',\n padding: '25px'\n },\n unscheduleButton: {\n gap: '10px'\n },\n cancelSaveButtonsWrapper: {\n display: 'flex',\n gap: '10px'\n }\n}))\n\nconst ScheduleDialog = ({\n open,\n content,\n locale,\n isPublishable,\n closeScheduleDialog,\n onChange,\n onSave\n}) => {\n const mobile = useMediaQuery('(max-width:700px)')\n const { classes } = useStyles({ mobile })\n const i18n = useI18n()\n\n const status = content.get('approvalStatus')\n const notApproved = ['draft', 'review_pending', 'revisions_needed'].includes(status)\n const isMailContent = content.getIn(['type', 'id']) === 'email'\n const title = content.get('title')\n const senderMail = content.get('senderMail')\n const senderMailLocal = senderMail?.split('@')[0]\n const subject = content.get('subject')\n const recipients = content.get('recipients')\n const editorDesign = content.get('editorDesign')\n const plannedFor = content.get('plannedFor')\n const scheduledFor = content.get('scheduledFor')\n\n const initialDate = () => {\n if (plannedFor) {\n return moment(plannedFor)\n }\n\n if (scheduledFor) {\n return moment(scheduledFor)\n }\n\n return moment()\n }\n\n const [approveOnPublish, setApproveOnPublish] = useState(true)\n const [isSchedule, setIsSchedule] = useState(!!scheduledFor)\n const [date, setDate] = useState(initialDate())\n\n const isToday = date.isSame(moment(), 'day')\n const minTime = isToday ? moment().startOf('minute') : null\n\n useEffect(() => {\n if (open) {\n setIsSchedule(!!scheduledFor)\n setDate(initialDate())\n }\n }, [open, plannedFor, scheduledFor])\n\n const handlePlan = () => {\n onChange({ key: 'scheduledFor', value: null })\n onChange({ key: 'plannedFor', value: date.milliseconds(0) })\n onSave()\n closeScheduleDialog()\n }\n\n const handleSchedule = () => {\n onChange({ key: 'plannedFor', value: null })\n onChange({ key: 'scheduledFor', value: date.milliseconds(0) })\n\n if (approveOnPublish) {\n onChange({ key: 'approvalStatus', value: 'approved' })\n }\n\n onSave()\n closeScheduleDialog()\n }\n\n const handleUnschedule = () => {\n onChange({ key: 'plannedFor', value: null })\n onChange({ key: 'scheduledFor', value: null })\n onSave()\n closeScheduleDialog()\n }\n\n const handleClose = () => {\n setDate(initialDate())\n closeScheduleDialog()\n }\n\n const mailTooltipTitle = () => {\n if (isMailContent) {\n if (senderMailLocal === null || senderMailLocal === '') {\n return (\n
{i18n.get('email_no_sender_mail')}
\n )\n }\n\n if (subject === null || subject === '') {\n return (\n
{i18n.get('email_no_subject')}
\n )\n }\n\n if (recipients === null || recipients.isEmpty()) {\n return (\n
{i18n.get('email_no_recipients')}
\n )\n }\n\n if (isEditorDesignBlank(editorDesign)) {\n return (\n
{i18n.get('email_no_content')}
\n )\n }\n\n if (content.get('isDirty')) {\n return (\n
{i18n.get('email_content_dirty')}
\n )\n }\n }\n\n return ''\n }\n\n const renderUnscheduleButton = () => {\n if (mobile) {\n return (\n \n \n \n )\n }\n\n return (\n \n \n {i18n.get('remove_plan_or_schedule')}\n \n )\n }\n\n const renderScheduleCheckbox = () => {\n if (isMailContent) {\n return (\n <>\n setIsSchedule(!isSchedule)}\n />\n {i18n.get('publish_automatically')}\n \n {i18n.get('publish_content_automatically_info')}\n \n \n )\n }\n\n return null\n }\n\n const renderSetAsApproved = () => (\n <>\n setApproveOnPublish(e.target.checked)}\n />\n {i18n.get('set_content_as_approved')}\n \n )\n\n const renderSaveButton = () => {\n if (isSchedule) {\n return (\n \n \n \n {i18n.get('schedule')}\n \n \n \n )\n }\n\n return (\n \n {i18n.get('plan')}\n \n )\n }\n\n return (\n \n \n {isSchedule ? i18n.get('publish_at', { datetime: moment(date).format('lll') }) : i18n.get('plan')}\n \n \n \n \n \n \n setDate(v)}\n localeText={{\n toolbarTitle: i18n.get('select_date')\n }}\n componentsProps={{\n toolbar: {\n hidden: false\n }\n }}\n />\n \n setDate(v)}\n components={{\n LeftArrowButton: Boolean,\n RightArrowButton: Boolean\n }}\n localeText={{\n toolbarTitle: i18n.get('select_time')\n }}\n componentsProps={{\n toolbar: {\n hidden: false\n }\n }}\n />\n \n {renderScheduleCheckbox()}\n {notApproved && isSchedule && renderSetAsApproved()}\n \n \n \n {(plannedFor || scheduledFor) && renderUnscheduleButton()}\n \n \n \n {i18n.get('cancel')}\n \n {renderSaveButton()}\n \n \n \n )\n}\n\nScheduleDialog.propTypes = {\n content: PropTypes.instanceOf(Map).isRequired,\n isPublishable: PropTypes.bool.isRequired,\n locale: PropTypes.string.isRequired,\n open: PropTypes.bool.isRequired,\n\n closeScheduleDialog: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired\n}\n\nexport default ScheduleDialog\n","import { connect } from 'react-redux'\n\nimport ScheduleDialog from 'components/content_desk_new/contents/content_edit_dialog/schedule_dialog'\n\nimport {\n setContentFormData,\n closeScheduleDialog,\n saveContentStart\n} from 'actions/content_desk'\n\nimport {\n getCDeskContentFormData,\n getCDeskContentIsPublishable,\n getCDeskShowScheduleDialog,\n getUserLocale\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n content: getCDeskContentFormData(state),\n isPublishable: getCDeskContentIsPublishable(state),\n locale: getUserLocale(state),\n open: getCDeskShowScheduleDialog(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n closeScheduleDialog,\n onChange: setContentFormData,\n onSave: saveContentStart\n }\n)(ScheduleDialog)\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Typography\n} from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport useI18n from 'hooks/useI18n'\n\nimport {\n RaisedPrimaryButton,\n Button,\n IconButton,\n Input\n} from 'containers/themed'\n\nimport { validEmail } from 'utils/regex'\n\nconst useStyles = makeStyles()(theme => ({\n dialogTitle: {\n paddingBottom: theme.spacing(2),\n color: theme.palette.grey[800]\n },\n closeButton: {\n position: 'absolute',\n right: 8,\n top: 8,\n color: !theme.isDark && theme.palette.grey[800]\n },\n input: {\n marginTop: 15\n }\n}))\n\nconst TestMailDialog = ({\n sender,\n isOpen,\n requestRunning,\n onClose,\n onDispatch\n}) => {\n const [recipient, setRecipient] = useState('')\n\n useEffect(() => {\n if (sender) {\n setRecipient(sender)\n }\n }, [sender])\n\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const validateEmail = () => (\n recipient.split(/,\\s*|;\\s*/).reduce((acc, e) => acc && validEmail(e), true) && recipient.split(/,|;/).length < 6\n )\n\n const handleDispatch = () => {\n onDispatch({ test: true, recipient })\n onClose()\n }\n\n const handleChange = value => {\n setRecipient(value)\n }\n\n return (\n onClose()}\n open={isOpen}\n >\n \n {i18n.get('test_email')}\n onClose()}\n >\n \n \n \n \n {i18n.get('choose_recipient_test_mail')}\n handleChange(event.target.value)}\n disabled={requestRunning}\n className={classes.input}\n />\n \n \n \n \n {i18n.get('send_now')}\n \n \n \n )\n}\n\nTestMailDialog.propTypes = {\n sender: PropTypes.string.isRequired,\n isOpen: PropTypes.bool.isRequired,\n requestRunning: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n onDispatch: PropTypes.func.isRequired\n}\n\nexport default TestMailDialog\n","import { connect } from 'react-redux'\n\nimport TestMailDialog from 'components/content_desk_new/contents/content_edit_dialog/test_mail_dialog'\n\nimport {\n closeTestMailDialog as onClose,\n dispatchContentRequestStart as onDispatch\n} from 'actions/content_desk'\n\nimport {\n getCDeskContentFormData,\n getCDeskShowTestMailDialog,\n getCmRequestRunning\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n sender: getCDeskContentFormData(state).get('senderMail', ''),\n requestRunning: getCmRequestRunning(state),\n isOpen: getCDeskShowTestMailDialog(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose,\n onDispatch\n }\n)(TestMailDialog)\n","import { connect } from 'react-redux'\n\nimport {\n saveContentFormlessStart as onChange\n} from 'actions/content_desk'\n\nimport ContentApprovalStatusSelect from 'components/content_desk_new/contents/content_approval_status_select'\n\nconst mapStateToProps = (_state, ownProps) => ({\n content: ownProps.content\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange\n }\n)(ContentApprovalStatusSelect)\n\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\nimport moment from 'moment'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { lighten } from '@mui/material/styles'\nimport {\n AppBar,\n Toolbar as MuiToolbar,\n Tooltip,\n Typography\n} from '@mui/material'\nimport AccessTimeIcon from '@mui/icons-material/AccessTime'\n\nimport ContentApprovalStatusSelect from 'containers/content_desk_new/contents/content_edit_dialog/ContentApprovalStatusSelect'\nimport PublishConfirmDialog from 'containers/content_desk_new/contents/PublishConfirmDialog'\n\nimport { Button } from 'containers/themed'\n\nimport { isEditorDesignBlank } from 'utils/content_desk'\n\nconst useStyles = makeStyles()(theme => ({\n appBar: {\n position: 'fixed',\n top: 'auto',\n bottom: 0,\n backgroundColor: lighten(theme.palette.primary.main, 0.8)\n },\n statusButton: {\n borderColor: theme.palette.primary.main,\n color: theme.palette.primary.main\n },\n footerToolbar: {\n display: 'flex',\n justifyContent: 'center'\n },\n actionsContainer: {\n width: '70%',\n display: 'flex',\n justifyContent: 'space-between'\n },\n actions: {\n display: 'flex',\n alignItems: 'center',\n gap: '20px'\n },\n scheduleIcon: {\n marginRight: '0.5em'\n }\n}))\n\nexport default function Toolbar({\n contentFormData,\n isLoading,\n isPublishable,\n view,\n onChange,\n onSave,\n onTestMail,\n openScheduleDialog,\n setContentIsPublishable,\n onNavigationChange\n}) {\n const i18n = useI18n()\n const { classes } = useStyles()\n const [publishConfDialogOpen, setPublishConfDialogOpen] = useState(false)\n const title = contentFormData.get('title')\n const isMailContent = contentFormData.getIn(['type', 'id']) === 'email'\n const isOtsContent = contentFormData.getIn(['type', 'id']) === 'ots_press_release'\n const senderMail = contentFormData.get('senderMail')\n const senderMailLocal = senderMail?.split('@')[0]\n const subject = contentFormData.get('subject')\n const recipients = contentFormData.get('recipients')\n const approvalStatus = contentFormData.get('approvalStatus')\n const plannedFor = contentFormData.get('plannedFor')\n const scheduledFor = contentFormData.get('scheduledFor')\n const editorDesign = contentFormData.get('editorDesign')\n const contentType = contentFormData.getIn(['type', 'id'])\n const body = contentFormData.get('body')\n\n useEffect(() => {\n let isValid = true\n\n if (isMailContent) {\n if (contentFormData.get('isDirty')) {\n isValid = false\n }\n\n if (senderMailLocal === null || senderMailLocal === '') {\n isValid = false\n }\n\n if (subject === null || subject === '') {\n isValid = false\n }\n\n if (isEditorDesignBlank(editorDesign)) {\n isValid = false\n }\n\n if (recipients === null || recipients.isEmpty()) {\n isValid = false\n }\n }\n\n if (isOtsContent) {\n if (body) {\n const { location, text } = JSON.parse(body)\n\n if (contentFormData.get('isDirty')) {\n isValid = false\n }\n\n if (location === '') {\n isValid = false\n }\n\n if (text === '') {\n isValid = false\n }\n } else {\n isValid = false\n }\n }\n\n setContentIsPublishable(isValid)\n }, [contentFormData])\n\n const onPublishNow = () => {\n setPublishConfDialogOpen(true)\n }\n\n const handleSave = () => onSave({ closeEditContentDialog: false })\n\n const sendTestMailValid = () => {\n let isValid = true\n\n if (isMailContent) {\n if (contentFormData.get('isDirty')) {\n isValid = false\n }\n\n if (senderMailLocal === null || senderMailLocal === '') {\n isValid = false\n }\n\n if (subject === null || subject === '') {\n isValid = false\n }\n\n if (isEditorDesignBlank(editorDesign)) {\n isValid = false\n }\n }\n\n return isValid\n }\n\n const mailTooltipTitle = type => {\n if (isMailContent) {\n if (senderMailLocal === null || senderMailLocal === '') {\n return (\n
{i18n.get('email_no_sender_mail')}
\n )\n }\n\n if (subject === null || subject === '') {\n return (\n
{i18n.get('email_no_subject')}
\n )\n }\n\n if (type === 'send_now' && (recipients === null || recipients.isEmpty())) {\n return (\n
{i18n.get('email_no_recipients')}
\n )\n }\n\n if (isEditorDesignBlank(editorDesign)) {\n return (\n
{i18n.get('email_no_content')}
\n )\n }\n\n if (contentFormData.get('isDirty')) {\n return (\n
{i18n.get('email_content_dirty')}
\n )\n }\n }\n\n return ''\n }\n\n const otsTooltipTitle = () => {\n if (isOtsContent) {\n if (body) {\n const { location, text } = JSON.parse(body)\n\n if (location === '') {\n return (\n
{i18n.get('ots_no_location')}
\n )\n }\n\n if (text === '') {\n return (\n
{i18n.get('ots_no_text')}
\n )\n }\n\n if (contentFormData.get('isDirty')) {\n return (\n
{i18n.get('email_content_dirty')}
\n )\n }\n } else {\n return
{i18n.get('ots_no_location')}
\n }\n }\n\n return ''\n }\n\n const saveEmailIsValid = () => {\n let isValid = true\n\n if (isMailContent) {\n if (title === '') {\n isValid = false\n }\n\n if (scheduledFor !== null && scheduledFor !== '') {\n isValid = isPublishable || contentFormData.get('isDirty')\n }\n }\n\n return isValid\n }\n\n const saveOtsIsValid = () => {\n let isValid = true\n\n if (isOtsContent) {\n if (title === '') {\n isValid = false\n }\n }\n\n return isValid\n }\n\n const saveMailTooltipTitle = () => {\n if (isMailContent) {\n if (title === '') {\n return (\n
{i18n.get('title')} {i18n.get('is_required')}
\n )\n }\n\n if (scheduledFor !== null && scheduledFor !== '') {\n if (!isPublishable) {\n return mailTooltipTitle('send_now')\n }\n }\n }\n\n return ''\n }\n\n const saveOtsTooltipTitle = () => {\n if (isOtsContent) {\n if (title === '') {\n return (\n
{i18n.get('title')} {i18n.get('is_required')}
\n )\n }\n }\n\n return ''\n }\n\n const renderPublishConfirmDialog = () => (\n setPublishConfDialogOpen(false)}\n onSave={onSave}\n />\n )\n\n const renderTestMailButton = () => {\n if (!isMailContent) {\n return null\n }\n\n return (\n \n \n onTestMail()}\n autoFocus\n >\n {i18n.get('send_test_email')}\n \n \n \n )\n }\n\n const renderPublishNowButton = () => {\n if (isMailContent) {\n return (\n \n \n onPublishNow()}\n disabled={isLoading || !saveEmailIsValid() || !isPublishable}\n >\n {i18n.get('send_now')}\n \n \n \n )\n }\n\n return (\n onPublishNow()}\n disabled={isLoading || !saveEmailIsValid() || !isPublishable}\n >\n {i18n.get('publish_now')}\n \n )\n }\n\n const renderCreateOtsDraftButton = () => (\n \n \n onPublishNow()}\n disabled={isLoading || !isPublishable}\n >\n {i18n.get('create_ots_draft')}\n \n \n \n )\n\n const renderEmailActions = () => (\n
\n
\n \n \n \n {i18n.get('save')}\n \n \n \n \n
\n
\n {renderTestMailButton()}\n openScheduleDialog()}\n className={classes.button}\n disabled={isLoading || title === ''}\n >\n \n {(!plannedFor && !scheduledFor) && i18n.get('plan')}\n {plannedFor && `${i18n.get('planned')}: ${moment(plannedFor).format('lll')}`}\n {scheduledFor && `${i18n.get('scheduled')}: ${moment(scheduledFor).format('lll')}`}\n \n {renderPublishNowButton()}\n
\n
\n )\n\n const rendertOtsActions = () => (\n
\n
\n \n
\n
\n openScheduleDialog()}\n className={classes.button}\n disabled={isLoading || title === ''}\n >\n \n {(!plannedFor && !scheduledFor) && i18n.get('plan')}\n {plannedFor && `${i18n.get('planned')}: ${moment(plannedFor).format('lll')}`}\n \n \n \n \n {i18n.get('save')}\n \n \n \n {view === 'ots_editor' && renderCreateOtsDraftButton()}\n {view !== 'ots_editor' && (\n onNavigationChange('ots_editor')}\n disabled={isLoading}\n >\n {i18n.get('next')}\n \n )}\n
\n
\n )\n\n return (\n <>\n {renderPublishConfirmDialog()}\n \n \n {contentType === 'email' && renderEmailActions()}\n {contentType === 'ots_press_release' && rendertOtsActions()}\n \n \n \n )\n}\n\nToolbar.propTypes = {\n contentFormData: PropTypes.instanceOf(Map).isRequired,\n isLoading: PropTypes.bool.isRequired,\n isPublishable: PropTypes.bool.isRequired,\n view: PropTypes.string,\n\n onChange: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired,\n onTestMail: PropTypes.func.isRequired,\n openScheduleDialog: PropTypes.func.isRequired,\n setContentIsPublishable: PropTypes.func.isRequired,\n onNavigationChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Toolbar from 'components/content_desk_new/contents/content_edit_dialog/toolbar'\nimport {\n saveContentStart as onSave,\n openTestMailDialog as onTestMail,\n openScheduleDialog,\n setContentFormData,\n setContentIsPublishable,\n changeContentEditTabView\n} from 'actions/content_desk'\n\nimport {\n getCDeskContentIsLoading,\n getCDeskContentFormData,\n getCDeskContentIsPublishable,\n getCDeskContentEditTabView\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n contentFormData: getCDeskContentFormData(state),\n isLoading: getCDeskContentIsLoading(state),\n isPublishable: getCDeskContentIsPublishable(state),\n view: getCDeskContentEditTabView(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: setContentFormData,\n onSave,\n onTestMail,\n openScheduleDialog,\n setContentIsPublishable,\n onNavigationChange: changeContentEditTabView\n }\n)(Toolbar)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle\n} from '@mui/material'\n\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { Button, IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n title: {\n color: !theme.isDark && '#404040'\n },\n button: {\n marginBottom: '0.5em',\n minWidth: 120\n },\n contentText: {\n color: !theme.isDark && '#757575'\n }\n}))\n\nconst CloseConfirmDialog = ({\n open,\n onClose,\n saveContentStart,\n unlockContentStart\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleClose = () => {\n onClose()\n unlockContentStart({ closeEditContentDialog: true })\n }\n\n const handleSave = () => {\n onClose()\n saveContentStart()\n unlockContentStart({ closeEditContentDialog: true })\n }\n\n return (\n \n \n {i18n.get('not_saved_warning')}\n \n onClose()}\n sx={{\n position: 'absolute',\n right: 8,\n top: 8,\n color: theme => theme.palette.grey[500]\n }}\n >\n \n \n \n \n {i18n.get('content_not_saved')}\n \n \n \n \n {i18n.get('close_without_saving')}\n \n \n {i18n.get('save_changes')}\n \n \n \n )\n}\n\nCloseConfirmDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n saveContentStart: PropTypes.func.isRequired,\n unlockContentStart: PropTypes.func.isRequired\n}\n\nexport default CloseConfirmDialog\n","import { connect } from 'react-redux'\n\nimport CloseConfirmDialog from 'components/content_desk_new/contents/content_edit_dialog/close_confirm_dialog'\n\nimport {\n saveContentStart,\n unlockContentStart\n} from 'actions/content_desk'\n\nconst mapStateToProps = (_state, ownProps) => ({\n open: ownProps.open,\n onClose: ownProps.onClose\n})\n\nexport default connect(\n mapStateToProps,\n {\n saveContentStart,\n unlockContentStart\n }\n)(CloseConfirmDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Chip,\n Button,\n Tooltip\n} from '@mui/material'\n\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\nconst useStyles = makeStyles()({\n list: {\n flexWrap: 'wrap',\n gap: 5,\n minHeight: 50\n }\n})\n\nconst RecipientsList = ({\n recipients,\n setContentFormData,\n openRecipientsBrowser,\n maxRecipients,\n withOpenAllLink,\n hideOnEmpty\n}) => {\n const i18n = useI18n()\n const device = useDevice()\n const { classes } = useStyles()\n const maxRecip = maxRecipients || (device.get('gt-md') ? 7 : 4)\n const minOtherRecipients = 2\n const showOtherRecipients = recipients.size > maxRecip\n const displayedRecipients = showOtherRecipients ? Math.min(maxRecip - 1, recipients.size - minOtherRecipients) : maxRecip\n\n const hide = (hideOnEmpty && recipients.size === 0)\n\n const handleDelete = currentRecipient => {\n const newRecipients = recipients.filter(\n r => r.get('id') !== currentRecipient.get('id') && r.get('contactId') !== currentRecipient.get('contactId')\n )\n\n setContentFormData({\n key: 'recipients',\n value: newRecipients\n })\n }\n\n const renderRecipients = () => recipients.slice(0, displayedRecipients).map(\n currentRecipient => (\n \n \n handleDelete(currentRecipient)}\n />\n \n
\n )\n )\n\n const renderOtherRecipients = () => (showOtherRecipients ? (\n \n \n \n\n ) : null)\n\n return (\n <>\n \n {renderRecipients()}\n {renderOtherRecipients()}\n \n {withOpenAllLink && (\n \n {i18n.get('see_all_recipients')} ({recipients.size})\n \n )}\n \n )\n}\n\nRecipientsList.defaultProps = {\n withOpenAllLink: false,\n hideOnEmpty: false\n}\n\nRecipientsList.propTypes = {\n recipients: PropTypes.instanceOf(List).isRequired,\n setContentFormData: PropTypes.func.isRequired,\n openRecipientsBrowser: PropTypes.func.isRequired,\n maxRecipients: PropTypes.number,\n withOpenAllLink: PropTypes.bool,\n hideOnEmpty: PropTypes.bool\n}\n\nexport default RecipientsList\n","import { connect } from 'react-redux'\n\nimport RecipientsList from 'components/content_desk_new/contents/content_edit_dialog/recipients_selection/RecipientsList'\n\nimport {\n getCDeskContentFormDataRecipients\n} from 'selectors'\n\nimport {\n setContentFormData,\n setRecipientBrowserOpen\n} from 'actions/content_desk'\n\nconst mapStateToProps = state => ({\n recipients: getCDeskContentFormDataRecipients(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n setContentFormData,\n openRecipientsBrowser: () => setRecipientBrowserOpen(true)\n }\n)(RecipientsList)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Chip\n} from '@mui/material'\n\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()({\n list: {\n flexWrap: 'wrap',\n gap: 5,\n minHeight: 50,\n marginBottom: 15\n }\n})\n\nconst DistributionLists = ({\n recipients,\n setContentFormData,\n selectedDistributionLists,\n hideOnEmpty\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const displayDistributionLists = 10\n const [showAll, setShowAll] = useState(false)\n const displayedDistributionList = showAll ? selectedDistributionLists : selectedDistributionLists.slice(0, displayDistributionLists)\n\n const hide = (hideOnEmpty && selectedDistributionLists.size === 0)\n\n const handleDeleteList = distributionList => {\n const newRecipients = recipients.filter(\n r => !r.get('distributionLists').some(dl => dl.get('id') === distributionList.get('id'))\n )\n\n setContentFormData({\n key: 'recipients',\n value: newRecipients\n })\n }\n\n const renderOtherDistributionLists = () => {\n if (selectedDistributionLists.size <= displayDistributionLists) {\n return null\n }\n\n if (showAll) {\n return (\n \n setShowAll(false)}\n />\n \n )\n }\n\n return (\n \n setShowAll(true)}\n />\n \n )\n }\n\n return (\n \n {displayedDistributionList.map(\n dlist => (\n
\n handleDeleteList(dlist)}\n />\n
\n )\n )}\n {renderOtherDistributionLists()}\n \n )\n}\n\nDistributionLists.defaultProps = {\n hideOnEmpty: false\n}\n\nDistributionLists.propTypes = {\n selectedDistributionLists: PropTypes.instanceOf(List).isRequired,\n recipients: PropTypes.instanceOf(List).isRequired,\n setContentFormData: PropTypes.func.isRequired,\n hideOnEmpty: PropTypes.bool\n}\n\nexport default DistributionLists\n","import { connect } from 'react-redux'\n\nimport DistributionLists from 'components/content_desk_new/contents/content_edit_dialog/recipients_selection/DistributionLists'\n\nimport {\n getCDeskContentFormDataRecipients,\n getCDeskContentFormSelectedDistributionLists\n} from 'selectors'\n\nimport {\n setContentFormData\n} from 'actions/content_desk'\n\nconst mapStateToProps = (state, { hideOnEmpty }) => ({\n recipients: getCDeskContentFormDataRecipients(state),\n selectedDistributionLists: getCDeskContentFormSelectedDistributionLists(state),\n hideOnEmpty\n})\n\nexport default connect(\n mapStateToProps,\n {\n setContentFormData\n }\n)(DistributionLists)\n","import React, { useState, useEffect } from 'react'\nimport { fromJS, List } from 'immutable'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport useColors from 'hooks/useColors'\nimport { rgbaColorFromHex } from 'utils/color'\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Alert,\n Autocomplete,\n Box,\n CircularProgress,\n TextField,\n Typography\n} from '@mui/material'\nimport CheckIcon from '@mui/icons-material/Check'\n\nimport { listUniqueByKeyName } from 'utils/immutable'\nimport RecipientsList from 'containers/content_desk_new/contents/content_edit_dialog/RecipientsList'\nimport DistributionLists from 'containers/content_desk_new/contents/content_edit_dialog/DistributionLists'\n\nconst useStyles = makeStyles()({\n container: {\n padding: '40px 20px 0px 20px'\n },\n list: {\n display: 'flex',\n flexWrap: 'wrap',\n gap: 5,\n marginTop: '1em',\n marginBottom: '1em',\n minHeight: 50\n },\n recipientsActions: {\n display: 'flex',\n gap: 20,\n marginBottom: '1em'\n },\n recipientsHeader: {\n marginTop: '1em'\n },\n loadingContainer: {\n zIndex: 1,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n backgroundColor: 'rgba(255, 255, 255, 0.7)'\n }\n})\n\nconst RecipientsSelection = ({\n recipients,\n distributionListSearchQuery,\n contactDropdownOptions,\n contactDropdownOptionsLoading,\n selectedDistributionLists,\n distributionListDropdownOptions,\n distributionListDropdownOptionsLoading,\n isDistListsLocked,\n fetchContactDropdownOptionsStart,\n fetchDistributionListDropdownOptionsStart,\n setContentFormData,\n setDistributionListSearchQuery\n}) => {\n const colors = useColors()\n const { classes } = useStyles()\n const i18n = useI18n()\n const [contactOpen, setContactOpen] = useState(false)\n const [contactOptions, setContactOptions] = useState(contactDropdownOptions.filter(contact => !contact.get('unsubscribed')).toJS())\n const [contactInputValue, setContactInputValue] = useState('')\n const [dlOpen, setDlOpen] = useState(false)\n const [dlOptions, setDlOptions] = useState(distributionListDropdownOptions.toJS())\n // const anythingLoading = distributionListDropdownOptionsLoading || contactDropdownOptionsLoading\n\n useEffect(() => {\n fetchDistributionListDropdownOptionsStart()\n }, [])\n\n useEffect(() => {\n fetchContactDropdownOptionsStart({ searchString: contactInputValue })\n }, [contactInputValue])\n\n useEffect(() => {\n setContactOptions(contactDropdownOptions.filter(contact => !contact.get('unsubscribed'))\n .map(c => c.set('contactId', c.get('id'))).toJS())\n setDlOptions(distributionListDropdownOptions\n .filter(dl => !dl.get('contacts').isEmpty())\n .map(dl => {\n const selected = selectedDistributionLists.find(sdl => sdl.get('id') === dl.get('id'))\n\n return dl.set('selectedContacts', selected ? selected.get('contacts').filter(\n s => selected.get('recipients').some(r => r.get('contactId') === s.get('id'))\n ) : List())\n }).toJS())\n }, [distributionListDropdownOptions, contactDropdownOptions, recipients])\n\n const dlHandleOnChange = (_event, value, changeType, opt) => {\n if (changeType === 'clear') {\n return setContentFormData({ key: 'recipients', value: recipients.filter(r => r.get('distributionLists').isEmpty()) })\n }\n\n if (!value) {\n return null\n }\n\n const selectedRecipients = value.map(dl => (\n dl.contacts.map(contact => (\n fromJS(contact).set('distributionListId', dl.id)\n .set('contactId', contact.id)\n .set('new', !recipients.some(r => r.get('contactId') === contact.id))\n .set('distributionListName', dl.name)\n .set('distributionListId', dl.id)\n .toJS()\n ))\n )).flat(1)\n .map(r => (\n r.contact ? r : (\n {\n ...r,\n contact: {\n searchable: r.searchable,\n externalPublication: r.externalPublication\n }\n }\n )\n ))\n\n let newRecipients = fromJS([...selectedRecipients, ...recipients.toJS()])\n\n if (changeType === 'removeOption') {\n const { option } = opt\n newRecipients = newRecipients.filter(r => (\n r.get('distributionLists').every(dl => (\n dl.get('id') !== option.id\n ))\n ))\n }\n\n const uniqueRecipients = listUniqueByKeyName(newRecipients, 'contactId')\n\n return setContentFormData({ key: 'recipients', value: uniqueRecipients })\n }\n\n const contactHandleOnChange = (_event, value, changeType, opt) => {\n if (changeType === 'clear') {\n return\n }\n\n if (value) {\n let newRecipients\n\n const { option } = opt\n\n if (changeType === 'removeOption') {\n newRecipients = recipients.filter(r => r.get('contactId') !== option.id)\n } else {\n const newOne = fromJS(option)\n .set('new', true)\n .set('contact', fromJS({\n searchable: option.searchable,\n externalPublication: option.externalPublication\n }))\n\n newRecipients = recipients.push(newOne)\n }\n\n const uniqueRecipients = listUniqueByKeyName(newRecipients, 'contactId')\n\n setContentFormData({ key: 'recipients', value: uniqueRecipients })\n }\n }\n\n const selectedOptions = dlOptions.filter(option => option.contacts.length === (option.selectedContacts || []).length)\n const getDlOptionLabel = option => {\n const suffix = ((option.contacts.length === option.selectedContacts.length)\n || option.selectedContacts.length === 0) ? (\n ` (${option.contacts.length})`\n ) : (\n ` (${option.selectedContacts.length}/${option.contacts.length})`\n )\n\n return `${option.name}${suffix}`\n }\n\n const dlOptionStyle = partiallySelected => (\n partiallySelected ? ({\n backgroundColor: rgbaColorFromHex(colors.get('primary'), 0.06)\n }) : ({})\n )\n\n const renderDlAutocomplete = () => (\n {\n setDlOpen(true)\n }}\n onClose={() => {\n setDlOpen(false)\n }}\n getOptionLabel={option => option.name}\n options={dlOptions}\n loading={distributionListDropdownOptionsLoading}\n onChange={dlHandleOnChange}\n onInputChange={(_event, newInputValue, reason) => {\n if (reason !== 'reset') {\n setDistributionListSearchQuery(newInputValue)\n }\n }}\n renderOption={(props, option, { selected }) => {\n const partiallySelected = option.selectedContacts.length > 0\n && option.selectedContacts.length < option.contacts.length\n\n return (\n \n \n {getDlOptionLabel(option)}\n \n {selected && (\n \n )}\n {partiallySelected && (\n (\n \n )\n )}\n \n )\n }}\n renderInput={params => (\n \n {distributionListDropdownOptionsLoading ? (\n \n ) : null}\n {params.InputProps.endAdornment}\n \n )\n }}\n />\n )}\n renderTags={() => null}\n disableClearable\n />\n )\n\n const getOptionLabel = option => `${option.firstName || ''} ${option.lastName} [${option.mail}]`\n const value = contactOptions.filter(option => recipients.some(r => option.id === r.get('contactId')))\n\n const renderContactAutocomplete = () => (\n {\n setContactOpen(true)\n }}\n onClose={() => {\n setContactOpen(false)\n }}\n getOptionLabel={getOptionLabel}\n options={contactOptions}\n loading={contactDropdownOptionsLoading}\n onChange={contactHandleOnChange}\n onInputChange={(_event, newInputValue, reason) => {\n if (reason !== 'reset') {\n setContactInputValue(newInputValue)\n }\n }}\n renderOption={(props, option, { selected }) => (\n \n \n {getOptionLabel(option)}\n \n {selected && (\n \n )}\n \n )}\n renderInput={params => (\n \n {contactDropdownOptionsLoading ? (\n \n ) : null}\n {params.InputProps.endAdornment}\n \n )\n }}\n />\n )}\n renderTags={() => null}\n disableClearable\n />\n )\n\n return (\n \n {/* {anythingLoading && (\n
\n \n
\n )} */}\n \n {i18n.get('add_distribution_lists')}\n \n {renderDlAutocomplete()}\n {isDistListsLocked && (\n \n {i18n.get('distribution_lists_limit_reached')}\n \n )}\n \n \n {i18n.get('add_recipients')}\n \n {renderContactAutocomplete()}\n \n
\n )\n}\n\nRecipientsSelection.propTypes = {\n recipients: PropTypes.instanceOf(List).isRequired,\n distributionListSearchQuery: PropTypes.string.isRequired,\n contactDropdownOptions: PropTypes.instanceOf(List).isRequired,\n contactDropdownOptionsLoading: PropTypes.bool.isRequired,\n selectedDistributionLists: PropTypes.instanceOf(List).isRequired,\n distributionListDropdownOptions: PropTypes.instanceOf(List).isRequired,\n distributionListDropdownOptionsLoading: PropTypes.bool.isRequired,\n isDistListsLocked: PropTypes.bool.isRequired,\n\n fetchContactDropdownOptionsStart: PropTypes.func.isRequired,\n fetchDistributionListDropdownOptionsStart: PropTypes.func.isRequired,\n setContentFormData: PropTypes.func.isRequired,\n setDistributionListSearchQuery: PropTypes.func.isRequired\n}\n\nexport default RecipientsSelection\n","import { connect } from 'react-redux'\n\nimport RecipientsSelection from 'components/content_desk_new/contents/content_edit_dialog/recipients_selection'\n\nimport {\n getCDeskContentFormDataRecipients,\n getCDeskContactDropdownOptions,\n getCDeskContactDropdownOptionsLoading,\n getCDeskContentFormFilteredDistributionLists,\n getCDeskDistributionListDropdownOptionsLoading,\n getCDeskIsDistributionListsLocked,\n getCDeskContentFormSelectedDistributionLists,\n getCDeskDistributionListSearchQuery\n} from 'selectors'\n\nimport {\n fetchContactDropdownOptionsStart,\n fetchDistributionListDropdownOptionsStart,\n setContentFormData,\n setDistributionListSearchQuery\n} from 'actions/content_desk'\n\nconst mapStateToProps = state => ({\n recipients: getCDeskContentFormDataRecipients(state),\n distributionListSearchQuery: getCDeskDistributionListSearchQuery(state),\n selectedDistributionLists: getCDeskContentFormSelectedDistributionLists(state),\n contactDropdownOptions: getCDeskContactDropdownOptions(state),\n contactDropdownOptionsLoading: getCDeskContactDropdownOptionsLoading(state),\n distributionListDropdownOptions: getCDeskContentFormFilteredDistributionLists(state),\n distributionListDropdownOptionsLoading: getCDeskDistributionListDropdownOptionsLoading(state),\n isDistListsLocked: getCDeskIsDistributionListsLocked(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n fetchContactDropdownOptionsStart,\n fetchDistributionListDropdownOptionsStart,\n setContentFormData,\n setDistributionListSearchQuery\n }\n)(RecipientsSelection)\n","/* global window */\nimport React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, fromJS } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport { ImageList, ImageListItemBar, ImageListItem, Typography } from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\nimport { grey } from '@mui/material/colors'\nimport useI18n from 'hooks/useI18n'\nimport { Document, Page } from 'utils/pdf'\n\nimport { IconButton } from 'containers/themed'\nimport { linkedInPost } from 'static/linked_in_post_config'\n\nconst useStyles = makeStyles()({\n postContainer: {\n display: 'block',\n backgroundColor: 'white',\n verticalAlign: 'baseline',\n color: 'rgba(0, 0, 0, 0.9)',\n direction: 'ltr',\n fontSize: '14px',\n minWidth: '555px',\n width: '555px',\n lineHeight: '20px',\n borderRadius: '0.5rem',\n border: '1px solid #ccc',\n padding: '6px',\n whiteSpace: 'pre-wrap',\n wordBreak: 'break-word'\n },\n showMore: {\n float: 'right',\n color: 'rgb(0, 0, 0, 0.6)',\n cursor: 'pointer'\n },\n mediaGallery: {\n marginTop: '8px'\n },\n mediaImg: {\n maxHeight: 350,\n objectFit: 'cover'\n },\n transparentLayer: {\n height: '100%',\n textAlign: 'center'\n },\n video: {\n width: '100%'\n },\n pdfCanvas: {\n '& .react-pdf__Page__canvas': {\n height: '100% !important',\n width: '100% !important'\n }\n },\n linkContainer: {\n marginTop: '8px',\n position: 'relative',\n cursor: 'pointer'\n },\n linkImg: {\n width: '100%',\n height: 'auto',\n objectFit: 'cover',\n borderTopLeftRadius: '8px',\n borderTopRightRadius: '8px'\n },\n linkData: {\n backgroundColor: '#edf3f8',\n padding: '10px',\n borderBottomLeftRadius: '8px',\n borderBottomRightRadius: '8px'\n },\n linkRemoveBtn: {\n position: 'absolute',\n top: 5,\n right: 5,\n opacity: 0.7,\n backgroundColor: grey[800],\n '&:hover': {\n backgroundColor: grey[900]\n }\n }\n})\n\nconst LinkedIn = ({\n content,\n showContentDetailsView,\n editorDialogView,\n onChange\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const currentLinkedInPost = content.get('linkedInPost') || fromJS(linkedInPost)\n const postText = currentLinkedInPost.get('commentary') || ''\n\n const [showMore, setShowMore] = useState(false)\n\n let displayedText; let showMoreLink\n\n if (showMore) {\n displayedText = postText.replaceAll(/@\\[(.*?)]\\(urn:li:organization:\\d+\\)/gi, '@$1')\n } else {\n displayedText = postText.replaceAll(/@\\[(.*?)]\\(urn:li:organization:\\d+\\)/gi, '@$1').substring(0, 129)\n }\n\n if (postText.length > 130) {\n showMoreLink = (\n setShowMore(!showMore)}\n > ...{i18n.get('show_more').toLowerCase()}\n
\n )\n }\n\n const handleRemoveLink = e => {\n e.stopPropagation()\n onChange({ key: 'linkedInPost', value: currentLinkedInPost.set('content', Map({})).set('type', 'text_only') })\n }\n\n const renderLinkedInGallery = () => {\n const images = content.get('ccdMediaFiles').filter(f => f.get('mimeType').startsWith('image'))\n const videos = content.get('ccdMediaFiles').filter(f => f.get('mimeType').startsWith('video'))\n const documents = content.get('ccdMediaFiles').filter(f => f.get('mimeType').startsWith('application'))\n\n // post type: link\n if (content.getIn(['linkedInPost', 'type']) === 'link') {\n const articleContent = content.getIn(['linkedInPost', 'content', 'article'])\n const source = articleContent.get('source')\n const imageUrl = articleContent.get('imageUrl')\n\n return (\n window.open(source, '_blank', 'noopener,noreferrer')}\n className={classes.linkContainer}\n >\n {(!showContentDetailsView && editorDialogView !== 'distribute') && (\n \n \n \n )}\n {imageUrl && (\n \n )}\n
\n {articleContent.get('title')}\n \n {articleContent.get('host')}\n \n
\n \n )\n }\n\n // post type: video\n if (content.getIn(['linkedInPost', 'content', 'media', 'id']) && videos.first()) {\n const video = videos.first()\n\n return (\n
\n \n \n \n
\n )\n }\n\n // post type: image\n if (content.getIn(['linkedInPost', 'content', 'media']) && images.first()) {\n const image = images.first()\n\n return (\n
\n \n
\n )\n }\n\n // post type: document\n if (content.getIn(['linkedInPost', 'content', 'media']) && documents.first()) {\n const document = documents.first()\n\n return (\n
\n \n \n \n
\n )\n }\n\n // post type: multi_image\n if (content.getIn(['linkedInPost', 'content', 'multiImage', 'images'])) {\n if (images.size === 2) {\n return (\n \n \n \n \n \n \n \n \n )\n }\n\n if (images.size > 4) {\n const restCounter = images.size - 5\n\n return (\n <>\n \n {images.slice(0, 2).map(item => (\n \n \n \n ))}\n \n \n {images.slice(2, 5).map(item => (\n \n {item === images.get(4) && restCounter > 0\n && (\n \n )}\n \n \n ))}\n \n \n )\n }\n\n if (images.size > 2) {\n const columnCount = (images.size - 1) >= 3 ? 3 : (images.size - 1)\n\n return (\n \n {images.slice(0, 5).map(item => (\n \n \n \n ))}\n \n )\n }\n }\n\n return null\n }\n\n return (\n
\n
\n {!showMore && showMoreLink}\n {renderLinkedInGallery()}\n
\n )\n}\n\nLinkedIn.propTypes = {\n content: PropTypes.instanceOf(Map).isRequired,\n showContentDetailsView: PropTypes.bool.isRequired,\n editorDialogView: PropTypes.string,\n\n onChange: PropTypes.func\n}\n\nexport default LinkedIn\n","/* global window */\nimport React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, fromJS } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { ImageList, ImageListItemBar, ImageListItem, Typography } from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\nimport { grey } from '@mui/material/colors'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { IconButton } from 'containers/themed'\nimport { facebookPost as defaultFacebookPost } from 'static/facebook_post_config'\n\nconst useStyles = makeStyles()({\n postContainer: {\n display: 'block',\n backgroundColor: 'white',\n verticalAlign: 'baseline',\n color: 'rgba(0, 0, 0, 0.9)',\n direction: 'ltr',\n fontSize: '14px',\n minWidth: '555px',\n width: '555px',\n lineHeight: '20px',\n borderRadius: '0.5rem',\n border: '1px solid #ccc',\n padding: '6px',\n whiteSpace: 'pre-wrap',\n wordBreak: 'break-word'\n },\n showMore: {\n float: 'right',\n color: 'rgb(0, 0, 0, 0.6)',\n cursor: 'pointer'\n },\n mediaGallery: {\n marginTop: '8px'\n },\n mediaImg: {\n maxHeight: 350,\n objectFit: 'cover'\n },\n transparentLayer: {\n height: '100%',\n textAlign: 'center'\n },\n video: {\n width: '100%'\n },\n linkContainer: {\n marginTop: '8px',\n position: 'relative',\n cursor: 'pointer'\n },\n linkImg: {\n width: '100%',\n height: 'auto',\n objectFit: 'cover',\n borderTopLeftRadius: '8px',\n borderTopRightRadius: '8px'\n },\n linkData: {\n backgroundColor: '#edf3f8',\n padding: '10px',\n borderBottomLeftRadius: '8px',\n borderBottomRightRadius: '8px'\n },\n linkRemoveBtn: {\n position: 'absolute',\n top: 5,\n right: 5,\n opacity: 0.7,\n backgroundColor: grey[800],\n '&:hover': {\n backgroundColor: grey[900]\n }\n }\n})\n\nconst Facebook = ({\n content,\n showContentDetailsView,\n editorDialogView,\n onChange\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const currentFacebookPost = content.get('facebookPost') || fromJS(defaultFacebookPost)\n const postText = currentFacebookPost.get('message') || ''\n\n const [showMore, setShowMore] = useState(false)\n\n let displayedText; let\n showMoreLink\n\n if (showMore) {\n displayedText = postText\n } else {\n displayedText = postText.substring(0, 129)\n }\n\n if (postText.length > 130) {\n showMoreLink = (\n setShowMore(!showMore)}\n > ...{i18n.get('show_more').toLowerCase()}\n \n )\n }\n\n const handleRemoveLink = e => {\n e.stopPropagation()\n onChange({ key: 'facebookPost', value: currentFacebookPost.set('link', '').set('linkMetadata', Map({})) })\n }\n\n const renderFacebookGallery = () => {\n const facebookPost = content.get('facebookPost') || currentFacebookPost\n const facebookPostType = facebookPost.get('type')\n const link = facebookPost.get('link')\n const images = facebookPost.get('mediaAttachments')\n const video = facebookPost.getIn(['mediaAttachments', 0])\n\n if (facebookPostType === 'text' && link.length !== 0) {\n const linkMetadata = currentFacebookPost.get('linkMetadata')\n const source = linkMetadata.get('source')\n const imageUrl = linkMetadata.get('imageUrl')\n\n return (\n window.open(source, '_blank', 'noopener,noreferrer')}\n className={classes.linkContainer}\n >\n {(!showContentDetailsView && editorDialogView !== 'distribute') && (\n \n \n \n )}\n {imageUrl && (\n \n )}\n
\n {linkMetadata.get('host').toUpperCase()}\n \n {linkMetadata.get('title')}\n \n {linkMetadata.get('description')}\n \n
\n
\n )\n }\n\n if (facebookPost.get('type') === 'video' && video) {\n return (\n
\n \n \n \n
\n )\n }\n\n if (images.size === 1) {\n const image = images.first()\n\n return (\n
\n \n
\n )\n }\n\n if (images) {\n if (images.size === 2) {\n return (\n \n \n \n \n \n \n \n \n )\n }\n\n if (images.size > 4) {\n const restCounter = images.size - 5\n\n return (\n <>\n \n {images.slice(0, 2).map(item => (\n \n \n \n ))}\n \n \n {images.slice(2, 5).map(item => (\n \n {item === images.get(4)\n && (\n \n )}\n \n \n ))}\n \n \n )\n }\n\n if (images.size > 2) {\n const columnCount = (images.size - 1) >= 3 ? 3 : (images.size - 1)\n\n return (\n \n {images.slice(0, 5).map(item => (\n \n \n \n ))}\n \n )\n }\n }\n\n return null\n }\n\n return (\n
\n {displayedText}\n {!showMore && showMoreLink}\n {renderFacebookGallery()}\n
\n )\n}\n\nFacebook.propTypes = {\n content: PropTypes.instanceOf(Map).isRequired,\n showContentDetailsView: PropTypes.bool.isRequired,\n editorDialogView: PropTypes.string,\n\n onChange: PropTypes.func\n}\n\nexport default Facebook\n","import React, { useRef, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport useI18n from 'hooks/useI18n'\n\nimport LinkedIn from 'components/content_desk_new/contents/content_preview/linked_in'\nimport Facebook from 'components/content_desk_new/contents/content_preview/facebook'\n\nconst useStyles = makeStyles()(theme => ({\n noPreviewContainer: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n },\n noPreviewBox: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n border: '1px dotted #757575',\n borderRadius: '10px',\n height: '60px',\n width: '350px',\n fontStyle: 'italic',\n color: !theme.isDark && '#757575'\n },\n htmlPreview: {\n width: '100%',\n border: 'none',\n overflow: 'hidden'\n }\n}))\n\nconst ContentPreview = ({\n content,\n showContentDetailsView,\n editorDialogView,\n onChange\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const iframeRef = useRef(null)\n\n let contentType = content.getIn(['type', 'id']) || content.get('type') || ''\n contentType = contentType.toLowerCase()\n\n useEffect(() => {\n const iframe = iframeRef.current\n\n if (iframe) {\n const onLoad = () => {\n iframe.style.height = `${iframe.contentWindow.document.body.scrollHeight + 50}px`\n }\n\n iframe.addEventListener('load', onLoad)\n\n return () => {\n iframe.removeEventListener('load', onLoad)\n }\n }\n\n return () => {}\n }, [content])\n\n const renderMain = () => {\n if (contentType === 'email') {\n const body = content.get('body') || ''\n\n if (body.length > 5000) {\n // scrolling is deprecated in HTML5 but chrome does not work without it\n return (\n \n )\n }\n }\n\n if (contentType === 'ots_press_release') {\n const body = content.getIn(['otsPressRelease', 'htmlBody']) || ''\n\n // scrolling is deprecated in HTML5 but chrome does not work without it\n return (\n \n )\n }\n\n if (contentType === 'linkedin') {\n return (\n \n )\n }\n\n if (contentType === 'facebook') {\n return (\n \n )\n }\n\n return (\n
\n
\n {i18n.get('no_preview_available')}\n
\n
\n )\n }\n\n return (\n <>\n {renderMain()}\n \n )\n}\n\nContentPreview.propTypes = {\n content: PropTypes.instanceOf(Map).isRequired,\n showContentDetailsView: PropTypes.bool.isRequired,\n editorDialogView: PropTypes.string,\n\n onChange: PropTypes.func\n}\n\nexport default ContentPreview\n","import { connect } from 'react-redux'\n\nimport ContentPreview from 'components/content_desk_new/contents/content_preview'\n\nimport { getCDeskSelectedContent, getCDeskShowViewContentDialog, getCDeskNewDialogView } from 'selectors'\n\nconst mapStateToProps = (state, ownProps) => ({\n content: ownProps.content ? ownProps.content : getCDeskSelectedContent(state),\n showContentDetailsView: getCDeskShowViewContentDialog(state),\n editorDialogView: getCDeskNewDialogView(state),\n onChange: ownProps.onChange\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(ContentPreview)\n","import React, { useEffect } from 'react'\nimport { Map } from 'immutable'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\nimport { Alert, AlertTitle, Box, LinearProgress, Grid, Typography } from '@mui/material'\nimport { red } from '@mui/material/colors'\n\nimport RecipientsList from 'containers/content_desk_new/contents/content_edit_dialog/RecipientsList'\nimport DistributionLists from 'containers/content_desk_new/contents/content_edit_dialog/DistributionLists'\nimport ContentPreview from 'containers/content_desk_new/contents/ContentPreview'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n padding: '40px 20px 0px 20px'\n },\n limitContainer: {\n display: 'flex',\n alignItems: 'center',\n gap: '10px'\n },\n progress: {\n alignItems: 'center',\n display: 'flex',\n minWidth: '200px'\n },\n progressBar: {\n width: '100%'\n },\n usageLimitLabel: {\n alignSelf: 'center',\n fontSize: '12px',\n opacity: '0.5'\n },\n content: {\n color: theme.palette.grey[600]\n },\n label: {\n fontSize: 16\n },\n previewContainer: {\n display: 'block',\n borderRadius: '10px',\n width: '100%'\n },\n previewInnerContainer: {\n margin: 'auto'\n },\n error: {\n color: theme.palette.error.main\n }\n}))\n\nconst Overview = ({\n config,\n contentFormData,\n fetchDistributionListDropdownOptionsStart\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n const emailsSendLimit = config.getIn(['ccdPlan', 'emailsSendLimit'], 0)\n const emailsSendUsage = config.getIn(['ccdPlanUsage', 'emailsSendUsage'], 0)\n const usageLimitDisplay = `${emailsSendUsage} / ${emailsSendLimit}`\n const percentage = Math.round((100 * emailsSendUsage) / emailsSendLimit)\n const isMax = percentage >= 100\n const showWarning = percentage >= 80\n\n useEffect(() => {\n fetchDistributionListDropdownOptionsStart({ searchString: '' })\n }, [])\n\n const fieldIsValid = field => !(\n contentFormData.get(field) === undefined\n || contentFormData.get(field) === null\n || contentFormData.get(field) === ''\n )\n const hasRecipients = !contentFormData.get('recipients').isEmpty()\n\n return (\n \n \n \n \n \n {i18n.get('sent_emails')}\n \n \n \n \n \n \n \n {usageLimitDisplay}\n \n \n \n \n {showWarning && (\n \n \n \n {i18n.get('email_limit_warning_title')}\n \n \n \n \n )}\n \n \n {i18n.get('info')}\n \n \n {i18n.get('internal_title')} *: {contentFormData.get('title')}\n \n \n {i18n.get('campaign')}: {contentFormData.getIn(['ccdCampaign', 'label'])}\n \n \n {i18n.get('sender_details')}\n \n\n \n {i18n.get('name')}: {contentFormData.get('senderName')}\n \n\n \n {i18n.get('mail')} *: {contentFormData.get('senderMail')}\n \n\n \n {i18n.get('email_subject')}\n \n\n \n {i18n.get('subject')} *: {contentFormData.get('subject')}\n \n\n \n {i18n.get('email_pre_header')}: {contentFormData.get('preHeader')}\n \n \n \n \n {i18n.get('recipients')} * ({contentFormData.get('recipients').size})\n \n \n \n\n \n {i18n.get('unsubscribe_link')}\n \n\n \n {(contentFormData.get('plainText') || '').includes('%tag_unsubscribe_url%') ? i18n.get('yes') : i18n.get('no')}\n \n \n 5000) && 'center'}\n >\n \n \n \n {`${i18n.get('preview')} *:`}\n \n \n \n \n \n \n \n )\n}\n\nOverview.propTypes = {\n config: PropTypes.instanceOf(Map).isRequired,\n contentFormData: PropTypes.instanceOf(Map).isRequired,\n fetchDistributionListDropdownOptionsStart: PropTypes.func.isRequired\n}\n\nexport default Overview\n","import { connect } from 'react-redux'\n\nimport Overview from 'components/content_desk_new/contents/content_edit_dialog/overview'\n\nimport {\n getCDeskConfig,\n getCDeskContentFormData\n} from 'selectors'\n\nimport {\n fetchDistributionListDropdownOptionsStart\n} from 'actions/content_desk'\n\nconst mapStateToProps = state => ({\n config: getCDeskConfig(state),\n contentFormData: getCDeskContentFormData(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n fetchDistributionListDropdownOptionsStart\n }\n)(Overview)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { List } from 'immutable'\nimport { DataGrid } from '@mui/x-data-grid'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { IconButton } from 'containers/themed'\nimport ClearIcon from '@mui/icons-material/Clear'\nimport RemoveRedEyeIcon from '@mui/icons-material/RemoveRedEye'\n\nconst useStyles = makeStyles()({\n tableContainer: {\n position: 'relative',\n width: '100%',\n paddingBottom: '20px'\n },\n actions: {\n display: 'flex',\n height: '100%',\n alignItems: 'center'\n }\n})\n\nconst Recipients = ({\n recipients,\n removeRecipient,\n onViewClick\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const handleRemove = row => {\n removeRecipient(row.id)\n }\n\n const renderRemove = params => (\n handleRemove(params)}\n title={i18n.get('remove')}\n >\n \n \n )\n\n const renderView = params => (\n onViewClick(params.row)}\n title={i18n.get('view')}\n >\n \n \n )\n\n const renderActions = params => (\n
\n {renderView(params)}\n {renderRemove(params)}\n
\n )\n\n const distributionName = row => {\n const dl = row.distributionLists || []\n\n if (dl.length < 1) {\n return ''\n }\n\n let { name } = dl[0]\n\n if (row.distributionListName) {\n name = row.distributionListName\n }\n\n if (dl.length > 1) {\n name += `, ${dl.length - 1}+`\n }\n\n return name\n }\n const columns = [\n {\n field: 'name',\n headerName: i18n.get('name'),\n width: 150,\n valueGetter: (_value, row) => (\n `${row.firstName} ${row.lastName}`\n )\n },\n {\n field: 'mail',\n headerName: i18n.get('email'),\n width: 150\n },\n {\n field: 'distribution_list',\n headerName: i18n.get('distribution_list'),\n width: 150,\n valueGetter: (_value, row) => distributionName(row)\n },\n {\n field: 'action',\n headerName: i18n.get('action'),\n width: 80,\n renderCell: renderActions,\n sortable: false\n }\n ]\n\n return (\n
\n \n
\n )\n}\n\nRecipients.propTypes = {\n recipients: PropTypes.instanceOf(List).isRequired,\n removeRecipient: PropTypes.func.isRequired,\n onViewClick: PropTypes.func.isRequired\n}\n\nexport default Recipients\n","import { connect } from 'react-redux'\n\nimport Recipients from 'components/content_desk_new/recipients'\n\nimport {\n getCDeskContentFormDataFilteredRecipients\n} from 'selectors'\n\nimport {\n removeRecipient,\n fetchRecipientContactStart\n} from 'actions/content_desk'\n\nconst mapStateToProps = state => ({\n recipients: getCDeskContentFormDataFilteredRecipients(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n removeRecipient,\n onViewClick: ({ contactId: id }) => fetchRecipientContactStart({ id })\n }\n)(Recipients)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { List } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Dialog,\n DialogActions,\n DialogTitle\n} from '@mui/material'\n\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { Button, IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n dialogTitle: {\n paddingBottom: theme.spacing(2),\n paddingRight: theme.spacing(8),\n color: theme.palette.grey[800]\n },\n closeButton: {\n position: 'absolute',\n right: 8,\n top: 8,\n color: !theme.isDark && theme.palette.grey[800]\n },\n dialogActions: {\n padding: '25px'\n }\n}))\n\nconst ClearAllConfirmDialog = ({\n open,\n closeDialog,\n onChange\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleCloseDialog = () => closeDialog()\n\n const handleClearAll = () => {\n onChange({ key: 'recipients', value: List() })\n closeDialog()\n }\n\n return (\n \n \n {i18n.get('ccd_recipients_clear_all_confirm')}\n \n \n \n \n \n \n {i18n.get('close')}\n \n \n {i18n.get('clear_all')}\n \n \n \n )\n}\n\nClearAllConfirmDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n\n closeDialog: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired\n}\n\nexport default ClearAllConfirmDialog\n","import { connect } from 'react-redux'\n\nimport ClearAllConfirmDialog from 'components/content_desk_new/contents/content_edit_dialog/recipients_browser/clear_all_confirm_dialog'\n\nimport {\n setContentFormData as onChange,\n closeRecipientsClearAllConfirmDialog as closeDialog\n} from 'actions/content_desk'\n\nimport {\n getCDeskShowRecipientsClearAllConfirmDialog\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getCDeskShowRecipientsClearAllConfirmDialog(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange,\n closeDialog\n }\n)(ClearAllConfirmDialog)\n","import React from 'react'\nimport { List } from 'immutable'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\nimport {\n TextField,\n Dialog,\n DialogContent,\n DialogTitle,\n Grid,\n Button\n} from '@mui/material'\n\nimport { IconButton } from 'containers/themed'\nimport Recipients from 'containers/content_desk_new/Recipients'\nimport CloseIcon from '@mui/icons-material/Close'\nimport DeleteIcon from '@mui/icons-material/Delete'\n\nimport ClearAllConfirmDialog from 'containers/content_desk_new/contents/content_edit_dialog/recipients_browser/ClearAllConfirmDialog'\n\nconst useStyles = makeStyles()({\n title: {\n color: '#404040'\n },\n container: {\n marginBottom: '1rem',\n textAlign: 'center'\n }\n})\n\nconst RecipientsBrowser = ({\n recipients,\n open,\n query,\n onClose,\n onQueryChange,\n openClearAllConfirmDialog\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleChange = e => {\n onQueryChange(e.target.value)\n }\n\n return (\n <>\n \n \n {i18n.get('all_recipients')} ({recipients.size})\n \n onClose()}\n sx={{\n position: 'absolute',\n right: 8,\n top: 8,\n color: theme => theme.palette.grey[500]\n }}\n >\n \n \n \n \n \n\n \n \n \n \n openClearAllConfirmDialog()}\n startIcon={}\n sx={{\n height: '100%'\n }}\n >\n\n {i18n.get('clear_all')}\n \n \n \n \n \n \n \n \n \n )\n}\n\nRecipientsBrowser.propTypes = {\n recipients: PropTypes.instanceOf(List).isRequired,\n open: PropTypes.bool.isRequired,\n query: PropTypes.string.isRequired,\n onClose: PropTypes.func.isRequired,\n onQueryChange: PropTypes.func.isRequired,\n openClearAllConfirmDialog: PropTypes.func.isRequired\n}\n\nexport default RecipientsBrowser\n","import { connect } from 'react-redux'\n\nimport RecipientsBrowser from 'components/content_desk_new/contents/content_edit_dialog/recipients_browser'\n\nimport {\n getCDeskContentFormDataRecipients,\n getCDeskRecipientBrowserOpen,\n getCDeskRecipientBrowserQuery\n} from 'selectors'\n\nimport {\n setRecipientBrowserOpen,\n setRecipientBrowserQuery as onQueryChange,\n openRecipientsClearAllConfirmDialog as openClearAllConfirmDialog\n} from 'actions/content_desk'\n\nconst mapStateToProps = state => ({\n recipients: getCDeskContentFormDataRecipients(state),\n open: getCDeskRecipientBrowserOpen(state),\n query: getCDeskRecipientBrowserQuery(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose: () => setRecipientBrowserOpen(false),\n onQueryChange,\n openClearAllConfirmDialog\n }\n)(RecipientsBrowser)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport useColors from 'hooks/useColors'\nimport Avatar from '@mui/material/Avatar'\nimport { Map } from 'immutable'\n\nimport { orange } from '@mui/material/colors'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Button } from 'containers/themed'\n\nimport { isEditorDesignBlank } from 'utils/content_desk'\nimport { Typography } from '@mui/material'\n\nconst ButtonContainer = props =>
\n\nconst useStyles = makeStyles()((theme, { contentType }) => ({\n switchActions: {\n display: 'flex',\n justifyContent: contentType === 'email' ? 'space-between' : 'center',\n ...(contentType === 'ots_press_release' && { gap: '30px' }),\n flexWrap: 'wrap'\n },\n switchAction: {\n position: 'relative',\n flexBasis: 0,\n '& > button': {\n minHeight: '100%',\n [theme.breakpoints.only('xs')]: {\n fontSize: '7pt'\n }\n }\n },\n switchActionContent: {\n display: 'flex',\n alignItems: 'center',\n paddingTop: '4px',\n paddingLeft: '10px',\n paddingRight: '10px',\n whiteSpace: 'nowrap',\n opacity: 0.7\n },\n avatarStep: {\n marginRight: 5,\n width: 24,\n height: 24,\n fontSize: 12,\n [theme.breakpoints.only('xs')]: {\n fontSize: 8\n }\n },\n warnClass: {\n color: theme.palette.warning.main\n },\n avatarWarnClass: {\n backgroundColor: theme.palette.warning.main\n },\n requiredLabel: {\n marginLeft: '5px',\n fontSize: '16px',\n color: orange[500]\n }\n}))\n\nexport default function Navigation({\n contentFormData,\n contentsLoading,\n view,\n onNavigationChange\n}) {\n const i18n = useI18n()\n const colors = useColors()\n const contentType = contentFormData.getIn(['type', 'id'])\n const { classes } = useStyles({ contentType })\n let recipientsLabel = i18n.get('recipients')\n const recipientsSize = contentFormData.get('recipients').size\n\n if (recipientsSize > 0) {\n recipientsLabel = `${recipientsLabel} (${recipientsSize})`\n }\n\n const emailTabs = [\n {\n id: 1,\n name: 'settings',\n label: `${i18n.get('setting')}`,\n loading: contentsLoading,\n disabled: contentsLoading\n },\n {\n id: 2,\n name: 'recipients',\n label: recipientsLabel,\n loading: contentsLoading,\n disabled: contentsLoading\n },\n {\n id: 3,\n name: 'templates',\n label: `${i18n.get('template')}`,\n loading: contentsLoading,\n disabled: contentsLoading\n },\n {\n id: 4,\n name: 'editor',\n label: `${i18n.get('editor')}`,\n loading: contentsLoading,\n disabled: contentsLoading\n },\n {\n id: 5,\n name: 'attachments',\n label: `${i18n.get('attachments')}`,\n loading: contentsLoading,\n disabled: contentsLoading\n },\n {\n id: 6,\n name: 'overview',\n label: `${i18n.get('overview')}`,\n loading: contentsLoading,\n disabled: contentsLoading\n }\n ]\n\n const otsTabs = [\n {\n id: 1,\n name: 'choose_content',\n label: `${i18n.get('choose_content')}`,\n loading: contentsLoading,\n disabled: contentsLoading\n },\n {\n id: 2,\n name: 'ots_editor',\n label: `${i18n.get('editor')}`,\n loading: contentsLoading,\n disabled: contentsLoading\n }\n ]\n\n const handleTabChange = buttonView => {\n if (view === buttonView) {\n return\n }\n\n onNavigationChange(buttonView)\n }\n\n const renderNavigationAction = (\n step,\n buttonView,\n label,\n loading,\n isDisabled = false,\n Comp = ButtonContainer\n ) => {\n const warnIcon = (\n *\n )\n\n let showWarnIcon = false\n let warnClass\n let avatarWarnClass\n let active\n\n if (view === buttonView) {\n active = (\n \n )\n }\n\n if (buttonView === 'settings') {\n const title = contentFormData.get('title')\n const subject = contentFormData.get('subject') || ''\n const senderMail = contentFormData.get('senderMail') || ''\n\n if (!subject || !title || !senderMail) {\n showWarnIcon = true\n warnClass = classes.warnClass\n avatarWarnClass = classes.avatarWarnClass\n }\n }\n\n if (buttonView === 'recipients') {\n if (contentFormData.get('recipients').size === 0) {\n showWarnIcon = true\n warnClass = classes.warnClass\n avatarWarnClass = classes.avatarWarnClass\n }\n }\n\n if (buttonView === 'editor') {\n if (isEditorDesignBlank(contentFormData.get('editorDesign'))) {\n showWarnIcon = true\n warnClass = classes.warnClass\n avatarWarnClass = classes.avatarWarnClass\n }\n }\n\n const tabButton = () => (\n handleTabChange(buttonView)}\n disabled={isDisabled}\n loading={loading}\n >\n \n \n {step}\n \n {label}\n {showWarnIcon && warnIcon}\n
\n \n )\n\n return (\n \n {tabButton()}\n {active}\n \n )\n }\n\n const buttons = []\n\n if (contentType === 'email') {\n emailTabs.forEach(tab => {\n buttons.push(\n renderNavigationAction(\n tab.id,\n tab.name,\n tab.label,\n tab.loading,\n tab.disabled\n )\n )\n })\n }\n\n if (contentType === 'ots_press_release') {\n otsTabs.forEach(tab => {\n buttons.push(\n renderNavigationAction(\n tab.id,\n tab.name,\n tab.label,\n tab.loading,\n tab.disabled\n )\n )\n })\n }\n\n return (\n
\n {buttons}\n
\n )\n}\n\nNavigation.propTypes = {\n contentFormData: PropTypes.instanceOf(Map).isRequired,\n contentsLoading: PropTypes.bool.isRequired,\n view: PropTypes.string,\n\n onNavigationChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Navigation from 'components/content_desk_new/contents/content_edit_dialog/navigation'\n\nimport {\n changeContentEditTabView\n} from 'actions/content_desk'\n\nimport {\n getCDeskContentFormData,\n getCDeskSearchContentsRunning,\n getCDeskContentEditTabView\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n contentFormData: getCDeskContentFormData(state),\n contentsLoading: getCDeskSearchContentsRunning(state),\n view: getCDeskContentEditTabView(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onNavigationChange: changeContentEditTabView\n }\n)(Navigation)\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, List, fromJS } from 'immutable'\nimport useDevice from 'hooks/useDevice'\nimport useI18n from 'hooks/useI18n'\nimport moment from 'moment'\nimport { grey } from '@mui/material/colors'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Box, Autocomplete, TextField } from '@mui/material'\n\nimport AddIcon from '@mui/icons-material/Add'\n\nimport { Button, IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n container: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: '40px'\n },\n autocompleteContainer: {\n width: '100%'\n },\n newCampaignButton: {\n gap: '5px',\n textWrap: 'nowrap'\n },\n listItem: {\n paddingLeft: 10\n },\n groupHeader: {\n color: grey[500],\n fontWeight: 700\n }\n})\n\nconst CampaignSelection = ({\n campaigns,\n campaignOptionsLoading,\n content,\n updateContent,\n openCampaignForm,\n updateCampaignFormData,\n openClosedCampaignDialog\n}) => {\n if (!content.get('ccdCampaign')) {\n return null\n }\n\n const { classes } = useStyles()\n const i18n = useI18n()\n const device = useDevice()\n\n const translateCampaignName = campaignName => (campaignName.toLowerCase() === 'no campaign' ? i18n.get('no_campaign') : campaignName)\n\n const initialCampaign = content.get('ccdCampaign').toJS()\n initialCampaign.label = translateCampaignName(initialCampaign.label)\n\n const [selectedCampaign, setSelectedCampaign] = useState(initialCampaign)\n const [sortedOptions, setSortedOptions] = useState(List())\n const [noCampaingOption, setNoCampaignOption] = useState(null)\n const [selectedNoCampaign, setSelectedNoCampaign] = useState(null)\n\n const mapToOptions = options => options.map(campaign => {\n const campaignName = translateCampaignName(campaign.get('name'))\n\n return (\n {\n label: campaignName,\n value: campaign.get('id'),\n category: (campaign.get('active') ? i18n.get('active') : i18n.get('closed')).toUpperCase()\n }\n )\n })\n\n useEffect(() => {\n if (!campaignOptionsLoading && campaigns) {\n const sorted = campaigns.filter(c => c.get('name').toLowerCase() !== 'no campaign')\n .unshift(campaigns.find(c => c.get('name').toLowerCase() === 'no campaign'))\n const noCampaign = campaigns.find(c => c.get('name').toLowerCase() === 'no campaign')\n\n const selectedOption = {\n label: i18n.get('no_campaign'),\n value: noCampaign.get('id'),\n category: (noCampaign.get('active') ? i18n.get('active') : i18n.get('closed')).toUpperCase()\n }\n\n setSortedOptions(mapToOptions(sorted))\n setSelectedNoCampaign(selectedOption)\n setNoCampaignOption(noCampaign)\n }\n }, [campaignOptionsLoading, campaigns])\n\n const handleCampaignChange = (_event, option) => {\n let campaign = noCampaingOption\n let selectedOption = selectedNoCampaign\n\n if (option) {\n campaign = campaigns.find(c => c.get('id') === option.value)\n\n selectedOption = option\n }\n\n const endDate = campaign.get('endDate')\n\n if (endDate && !campaign.get('active') && moment(endDate).isBefore(moment())) {\n updateCampaignFormData(campaign)\n openClosedCampaignDialog()\n }\n\n setSelectedCampaign(selectedOption)\n updateContent({ ccdCampaign: fromJS(selectedOption) })\n }\n\n const renderNewCampaignButton = () => {\n if (device.get('lt-sm')) {\n return (\n openCampaignForm()}\n title={i18n.get('create_campaign')}\n >\n \n \n )\n }\n\n return (\n openCampaignForm()}\n >\n \n {i18n.get('create_campaign')}\n \n )\n }\n\n return (\n \n \n -b.category.localeCompare(a.category)).toJS()}\n groupBy={option => option.category}\n isOptionEqualToValue={(option, value) => option.value === value.value}\n loading={campaignOptionsLoading}\n getOptionLabel={option => option.label}\n value={selectedCampaign}\n onChange={handleCampaignChange}\n renderGroup={params => (\n \n
{params.group}
\n
{params.children}
\n \n )}\n renderOption={(props, option) => {\n if (option.label === i18n.get('no_campaign')) {\n return (\n
  • \n {option.label}\n
  • \n )\n }\n\n return (\n
  • \n {option.label}\n
  • \n )\n }}\n renderInput={params => (\n \n )}\n />\n
    \n \n {renderNewCampaignButton()}\n \n
    \n )\n}\n\nCampaignSelection.propTypes = {\n campaigns: PropTypes.instanceOf(List).isRequired,\n campaignOptionsLoading: PropTypes.bool.isRequired,\n content: PropTypes.instanceOf(Map).isRequired,\n\n updateContent: PropTypes.func.isRequired,\n openCampaignForm: PropTypes.func.isRequired,\n updateCampaignFormData: PropTypes.func.isRequired,\n openClosedCampaignDialog: PropTypes.func.isRequired\n}\n\nexport default CampaignSelection\n","import { connect } from 'react-redux'\n\nimport CampaignSelection from 'components/content_desk_new/contents/content_edit_dialog/campaign_selection'\n\nimport {\n updateContent,\n openCampaignForm,\n updateCampaignFormData,\n openClosedCampaignDialog\n} from 'actions/content_desk'\n\nimport {\n getCDeskCampaignDropdownOptionsLoading,\n getCDeskCampaignDropdownOptions,\n getCDeskContentFormData\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n campaignOptionsLoading: getCDeskCampaignDropdownOptionsLoading(state),\n campaigns: getCDeskCampaignDropdownOptions(state),\n content: getCDeskContentFormData(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n updateContent,\n openCampaignForm,\n updateCampaignFormData,\n openClosedCampaignDialog\n }\n)(CampaignSelection)\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport moment from 'moment'\nimport { useSnackbar } from 'notistack'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Dialog, DialogContent, DialogTitle, DialogActions, Grid } from '@mui/material'\nimport { Button, InlineDatePicker, Select } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n dialogActions: {\n padding: '25px'\n }\n})\n\nconst ClosedCampaignDialog = ({\n open,\n campaign,\n requestRunning,\n updateCampaignFormData,\n closeClosedCampaignDialog,\n resetCampaignForm,\n saveCampaign\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const { enqueueSnackbar, closeSnackbar } = useSnackbar()\n const [isStatusDisabled, setIsStatusDisabled] = useState(false)\n const [status, setStatus] = useState(campaign.get('active'))\n const [endDate, setEndDate] = useState(campaign.get('endDate'))\n\n const statusOptions = [\n { value: true, label: i18n.get('active') },\n { value: false, label: i18n.get('closed') }\n ]\n\n useEffect(() => {\n if (endDate && moment(endDate).isBefore(moment())) {\n setIsStatusDisabled(true)\n } else {\n setIsStatusDisabled(false)\n }\n }, [endDate])\n\n useEffect(() => {\n if (open) {\n setStatus(campaign.get('active'))\n setEndDate(campaign.get('endDate'))\n }\n }, [open, campaign])\n\n const handleDateChange = value => {\n if (moment(value).isBefore(moment())) {\n setStatus(false)\n updateCampaignFormData({ active: false })\n setIsStatusDisabled(true)\n } else if (moment(value).isAfter(moment())) {\n setStatus(true)\n updateCampaignFormData({ active: true })\n setIsStatusDisabled(false)\n }\n\n setEndDate(value)\n updateCampaignFormData({ endDate: value })\n }\n\n const handleStatusChange = option => {\n setStatus(option.value)\n updateCampaignFormData({ active: option.value })\n }\n\n const handleClose = () => {\n closeClosedCampaignDialog()\n resetCampaignForm()\n }\n\n const handleSave = () => {\n if ((!campaign.get('endDate'))) {\n return enqueueSnackbar(\n `${i18n.get('end_date')} ${i18n.get('is_required')}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n saveCampaign()\n closeSnackbar()\n\n return resetCampaignForm()\n }\n\n return (\n \n \n {i18n.get('closed_campaign_selected')}\n \n \n {i18n.get('closed_campaign_selected_info')}\n \n \n o.value === status)).value}\n label={i18n.get('status')}\n />\n \n \n \n \n \n \n \n \n {i18n.get('close')}\n \n \n {i18n.get('save')}\n \n \n \n )\n}\n\nClosedCampaignDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n campaign: PropTypes.instanceOf(Map).isRequired,\n requestRunning: PropTypes.bool.isRequired,\n\n updateCampaignFormData: PropTypes.func.isRequired,\n closeClosedCampaignDialog: PropTypes.func.isRequired,\n resetCampaignForm: PropTypes.func.isRequired,\n saveCampaign: PropTypes.func.isRequired\n}\n\nexport default ClosedCampaignDialog\n","import { connect } from 'react-redux'\n\nimport ClosedCampaignDialog from 'components/content_desk_new/contents/content_edit_dialog/settings/closed_campaign_dialog'\n\nimport {\n updateCampaignFormData,\n closeClosedCampaignDialog,\n resetCampaignForm,\n saveCampaignStart\n} from 'actions/content_desk'\n\nimport {\n getCDeskShowClosedCampaignDialog,\n getCDeskCampaignFormData,\n getCDeskRequestRunning\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getCDeskShowClosedCampaignDialog(state),\n campaign: getCDeskCampaignFormData(state),\n requestRunning: getCDeskRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n updateCampaignFormData,\n closeClosedCampaignDialog,\n resetCampaignForm,\n saveCampaign: saveCampaignStart\n }\n)(ClosedCampaignDialog)\n","import React, { useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map, List } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Autocomplete as MuiAutocomplete,\n Box,\n CircularProgress,\n InputAdornment,\n TextField,\n Tooltip,\n Typography\n} from '@mui/material'\n\nimport InfoIcon from '@mui/icons-material/Info'\n\nimport { Input } from 'containers/themed'\n\nimport CampaignSelection from 'containers/content_desk_new/contents/content_edit_dialog/CampaignSelection'\nimport ClosedCampaignDialog from 'containers/content_desk_new/contents/content_edit_dialog/settings/ClosedCampaignDialog'\n\nconst useStyles = makeStyles()({\n container: {\n padding: '40px 20px 0px 20px'\n },\n header: {\n marginBottom: 20\n },\n formContainer: {\n marginBottom: 40\n },\n formField: {\n marginBottom: 20\n }\n})\n\nconst mapDomainsToOptions = domains => domains.map(d => {\n const senderDomains = d.get('senderDomains')\n\n return senderDomains.map(sd => ({\n value: { name: sd, domain: d.get('name'), region: d.get('region') },\n label: '@'.concat(sd).concat(sd !== d.get('name') ? ` (${d.get('name')})` : '')\n }))\n}).flatten().toJS()\n\nconst Settings = ({\n config,\n contentFormData,\n emailEditorLoading,\n fetchDistributionLists,\n onChange\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const title = contentFormData.get('title')\n const senderName = contentFormData.get('senderName') || ''\n const subject = contentFormData.get('subject') || ''\n const preHeader = contentFormData.get('preHeader') || ''\n const senderEmailLocal = contentFormData.get('senderMail').split('@')[0]\n const senderEmailDomain = contentFormData.get('senderMail').split('@')[1]\n const senderDomain = contentFormData.get('domain')\n const allowedDomains = config.get('ccdAllowedDomains') || List()\n\n useEffect(() => {\n fetchDistributionLists()\n }, [])\n\n const domainsOptions = mapDomainsToOptions(allowedDomains)\n\n const handleMailChange = value => {\n onChange({ senderMail: value.concat('@').concat(senderEmailDomain) })\n }\n\n const handleSenderEmailDomainChange = value => {\n const { name, domain, region } = value\n\n onChange({\n domain,\n domainRegion: region,\n senderMail: senderEmailLocal.concat('@').concat(name)\n })\n }\n\n const basicInformation = (\n \n \n {i18n.get('info')}\n \n\n onChange({ title: e.target.value })}\n />\n\n \n \n )\n\n const senderDetails = (\n \n \n {i18n.get('sender_details')}\n \n\n onChange({ senderName: e.target.value })}\n />\n\n handleMailChange(event.target.value)}\n InputProps={{\n endAdornment: (\n \n {\n const { name, domain } = option.value\n\n return name === senderEmailDomain && domain === senderDomain\n }) || domainsOptions[0]}\n onChange={(_event, option) => handleSenderEmailDomainChange(option.value)}\n sx={{ width: '100%' }}\n renderInput={params => (\n \n )}\n />\n \n )}\n placement=\"bottom-end\"\n PopperProps={{\n modifiers: [\n {\n name: 'offset',\n options: {\n offset: [15, 10]\n }\n }\n ]\n }}\n >\n \n \n \n )\n }}\n />\n \n )\n\n const emailSubject = (\n \n \n {i18n.get('email_subject')}\n \n\n onChange({ subject: e.target.value })}\n />\n\n onChange({ preHeader: e.target.value })}\n InputProps={{\n endAdornment: (\n \n {emailEditorLoading ? (\n \n ) : (\n \n \n \n )}\n \n )\n }}\n />\n \n )\n\n return (\n <>\n \n {basicInformation}\n {senderDetails}\n {emailSubject}\n \n \n \n )\n}\n\nSettings.propTypes = {\n config: PropTypes.instanceOf(Map).isRequired,\n contentFormData: PropTypes.instanceOf(Map).isRequired,\n emailEditorLoading: PropTypes.bool.isRequired,\n\n fetchDistributionLists: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired\n}\n\nexport default Settings\n","import { connect } from 'react-redux'\n\nimport Settings from 'components/content_desk_new/contents/content_edit_dialog/settings'\n\nimport {\n updateContent,\n fetchDistributionListDropdownOptionsStart\n} from 'actions/content_desk'\n\nimport {\n getCDeskConfig,\n getCDeskContentFormData,\n getCDeskEmailEditorLoadingStatus\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n config: getCDeskConfig(state),\n contentFormData: getCDeskContentFormData(state),\n emailEditorLoading: getCDeskEmailEditorLoadingStatus(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: updateContent,\n fetchDistributionLists: () => fetchDistributionListDropdownOptionsStart({ searchString: '' })\n }\n)(Settings)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Dialog,\n DialogActions,\n DialogTitle\n} from '@mui/material'\n\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { Button, IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n dialogTitle: {\n paddingBottom: theme.spacing(2),\n color: theme.palette.grey[800]\n },\n closeButton: {\n position: 'absolute',\n right: 8,\n top: 8,\n color: !theme.isDark && theme.palette.grey[800]\n },\n dialogActions: {\n padding: '25px'\n }\n}))\n\nconst TemplateConfirmDialog = ({\n open,\n editorDesign,\n closeConfirmDialog,\n onChange,\n onNavigationChange,\n forceLoadDesign\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleCloseDialog = () => closeConfirmDialog()\n\n const handleChangeTemplate = () => {\n onChange({ editorDesign })\n handleCloseDialog()\n forceLoadDesign()\n onNavigationChange('editor')\n }\n\n return (\n \n \n {i18n.get('template_change_dialog_title')}\n \n \n \n \n \n \n {i18n.get('cancel')}\n \n \n {i18n.get('overwrite')}\n \n \n \n )\n}\n\nTemplateConfirmDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n editorDesign: PropTypes.instanceOf(Map),\n\n closeConfirmDialog: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onNavigationChange: PropTypes.func.isRequired,\n forceLoadDesign: PropTypes.func.isRequired\n}\n\nexport default TemplateConfirmDialog\n","import { connect } from 'react-redux'\n\nimport TemplateConfirmDialog from 'components/content_desk_new/contents/content_edit_dialog/templates/template_confirm_dialog'\n\nimport {\n updateContent as onChange,\n closeTemplateConfirmDialog as closeConfirmDialog,\n changeContentEditTabView as onNavigationChange,\n emailEditorForceLoadDesignStart as forceLoadDesign\n} from 'actions/content_desk'\n\nimport {\n getCDeskTemplateConfirmDialogOpen,\n getCDeskTemplateDesign\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getCDeskTemplateConfirmDialogOpen(state),\n editorDesign: getCDeskTemplateDesign(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange,\n closeConfirmDialog,\n onNavigationChange,\n forceLoadDesign\n }\n)(TemplateConfirmDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Dialog,\n DialogContent,\n DialogTitle\n} from '@mui/material'\n\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n dialogTitle: {\n paddingBottom: theme.spacing(2),\n color: theme.palette.grey[800]\n },\n closeButton: {\n position: 'absolute',\n right: 8,\n top: 8,\n color: !theme.isDark && theme.palette.grey[800]\n },\n htmlPreview: {\n border: 'none',\n transformOrigin: '0 0',\n width: '100%',\n height: '82vh',\n overflow: 'auto'\n },\n dialogContent: {\n minHeight: '82vh'\n }\n}))\n\nconst TemplatePreviewDialog = ({\n open,\n editorDesign,\n closePreviewDialog\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleCloseDialog = () => closePreviewDialog()\n\n const htmlContent = html => `\n \n
    \n ${html}\n
    \n`\n\n return (\n \n \n {i18n.get('preview')}\n \n \n \n \n \n \n \n \n )\n}\n\nTemplatePreviewDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n editorDesign: PropTypes.string,\n\n closePreviewDialog: PropTypes.func.isRequired\n}\n\nexport default TemplatePreviewDialog\n","import { connect } from 'react-redux'\n\nimport TemplatePreviewDialog from 'components/content_desk_new/contents/content_edit_dialog/templates/template_preview_dialog'\n\nimport {\n closeTemplatePreviewDialog as closePreviewDialog\n} from 'actions/content_desk'\n\nimport {\n getCDeskTemplatePreviewDialogOpen,\n getCDeskTemplateDesign\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getCDeskTemplatePreviewDialogOpen(state),\n editorDesign: getCDeskTemplateDesign(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n closePreviewDialog\n }\n)(TemplatePreviewDialog)\n","/* global window */\nimport React, { useEffect, useRef, useState } from 'react'\nimport { Waypoint } from 'react-waypoint'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { List, Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { lighten, alpha } from '@mui/material/styles'\nimport { grey } from '@mui/material/colors'\n\nimport { Box, Grid, Typography, CircularProgress, Tabs, Tab, LinearProgress } from '@mui/material'\n\nimport AddIcon from '@mui/icons-material/Add'\n\nimport { Button } from 'containers/themed'\n\nimport TemplateConfirmDialog from 'containers/content_desk_new/contents/content_edit_dialog/templates/TemplateConfirmDialog'\nimport TemplatePreviewDialog from 'containers/content_desk_new/contents/content_edit_dialog/templates/TemplatePreviewDialog'\n\nimport { Capabilities } from 'static/constants'\n\nimport { isEditorDesignBlank } from 'utils/content_desk'\n\nconst useStyles = makeStyles()((theme, _props, classes) => ({\n container: {\n padding: '40px 20px 0px 20px'\n },\n titleContainer: {\n marginBottom: '15px'\n },\n circularLoader: {\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n },\n overlay: {\n position: 'absolute',\n top: '0',\n left: '0',\n width: '100%',\n height: '100%',\n border: '2px solid transparent',\n borderRadius: '10px',\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n gap: '10px',\n paddingLeft: '20px',\n paddingRight: '20px',\n visibility: 'hidden'\n },\n templateContainer: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n width: '100%',\n aspectRatio: '1 / 1',\n position: 'relative',\n backgroundColor: grey[200],\n borderRadius: '10px',\n border: '1px solid',\n borderColor: grey[300],\n marginBottom: '10px',\n [`&:hover .${classes.overlay}`]: {\n visibility: 'visible',\n backgroundColor: alpha(lighten(theme.palette.primary.main, 0.95), 0.9),\n borderColor: theme.palette.primary.main\n }\n },\n htmlPreview: {\n width: '75%',\n height: '75%',\n border: 'none',\n transformOrigin: '0 0',\n pointerEvents: 'none',\n borderRadius: '10px',\n boxShadow: '0px 2px 2px 2px rgba(0,0,0,0.2)'\n },\n newTemplateButton: {\n padding: '0',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n width: '100%',\n aspectRatio: '1 / 1',\n borderRadius: '10px',\n border: '2px dashed',\n borderColor: grey[400],\n marginBottom: '10px'\n },\n addIcon: {\n fontSize: '3vw',\n color: grey[400]\n },\n lastRow: {\n justifyContent: 'flex-start'\n },\n templateName: {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n },\n newTemplateLabel: {\n fontSize: '16px',\n fontWeight: '500',\n textAlign: 'center'\n }\n}))\n\nconst Template = ({\n content,\n loading,\n singleRequestRunning,\n capabilities,\n publicTemplates,\n hasMorePublicTemplates,\n privateTemplates,\n hasMorePrivateTemplates,\n onMount,\n onUnmount,\n openConfirmDialog,\n openPreviewDialog,\n onNavigationChange,\n onChange,\n onLoadMore,\n forceLoadDesign\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const hasPublicTemplates = capabilities.get(Capabilities.HAS_CONTENT_DESK_PUBLIC_TEMPLATES_READ_RIGHTS)\n\n const currentEditorDesign = content.get('editorDesign')\n\n const parentDivRef = useRef(null)\n const [scale, setScale] = useState(1)\n const [scaleCalculated, setScaleCalculated] = useState(false)\n const [tab, setTab] = useState(0)\n const iframeWidth = 660\n\n const calculateScale = () => {\n if (parentDivRef.current) {\n const { offsetWidth } = parentDivRef.current\n setScale((offsetWidth * 0.75) / iframeWidth)\n setScaleCalculated(true)\n }\n }\n\n useEffect(() => {\n onMount()\n\n return () => {\n onUnmount()\n }\n }, [onMount, onUnmount])\n\n useEffect(() => {\n setTimeout(calculateScale, 0)\n window.addEventListener('resize', calculateScale)\n\n return () => {\n window.removeEventListener('resize', calculateScale)\n }\n }, [parentDivRef.current])\n\n const handleOpenConfirmDialog = editorDesign => {\n if (isEditorDesignBlank(currentEditorDesign)) {\n onChange({ editorDesign })\n forceLoadDesign()\n onNavigationChange('editor')\n } else {\n openConfirmDialog(editorDesign)\n }\n }\n\n const onEnterWaypoint = () => {\n if (hasPublicTemplates) {\n if (tab === 0 && hasMorePublicTemplates) {\n onLoadMore({ shared: true })\n }\n\n if (tab === 1 && hasMorePrivateTemplates) {\n onLoadMore({ shared: false })\n }\n } else if (hasMorePrivateTemplates) {\n onLoadMore({ shared: false })\n }\n }\n\n const htmlContent = template => `\n \n
    \n ${template.get('html')}\n
    \n `\n\n const renderTemplates = templates => (\n templates.map((template, index) => (\n \n \n \n \n openPreviewDialog(template.get('html'))}\n >\n {i18n.get('preview')}\n \n handleOpenConfirmDialog(template.get('json'))}\n >\n {i18n.get('use_this_template')}\n \n \n \n \n {template.get('name')}\n \n \n ))\n )\n\n const renderLoader = () => (\n
    \n \n
    \n )\n\n const renderCreateNew = () => (\n \n handleOpenConfirmDialog(null)}\n >\n \n \n \n {i18n.get('create_new')}\n \n \n )\n\n const renderTemplatesSection = () => (\n \n \n {renderCreateNew()}\n\n {(hasPublicTemplates && scaleCalculated && !loading) && (\n <>\n {tab === 0 && renderTemplates(publicTemplates)}\n {tab === 1 && renderTemplates(privateTemplates)}\n \n )}\n {(!hasPublicTemplates && scaleCalculated && !loading) && renderTemplates(privateTemplates)}\n \n \n )\n\n return (\n \n {!hasPublicTemplates && (\n \n \n {i18n.get('saved_templates')}\n \n \n )}\n {hasPublicTemplates && (\n setTab(newValue)}\n TabIndicatorProps={{ style: { display: 'none' } }}\n >\n \n \n \n )}\n
    \n {loading && renderLoader()}\n {renderTemplatesSection()}\n \n
    \n {(!loading && singleRequestRunning) && }\n
    \n \n \n
    \n )\n}\n\nTemplate.propTypes = {\n content: PropTypes.instanceOf(Map).isRequired,\n loading: PropTypes.bool.isRequired,\n singleRequestRunning: PropTypes.bool.isRequired,\n capabilities: PropTypes.instanceOf(Map).isRequired,\n publicTemplates: PropTypes.instanceOf(List).isRequired,\n hasMorePublicTemplates: PropTypes.bool.isRequired,\n privateTemplates: PropTypes.instanceOf(List).isRequired,\n hasMorePrivateTemplates: PropTypes.bool.isRequired,\n\n onMount: PropTypes.func.isRequired,\n onUnmount: PropTypes.func.isRequired,\n openConfirmDialog: PropTypes.func.isRequired,\n openPreviewDialog: PropTypes.func.isRequired,\n onNavigationChange: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onLoadMore: PropTypes.func.isRequired,\n forceLoadDesign: PropTypes.func.isRequired\n}\n\nexport default Template\n","import { connect } from 'react-redux'\n\nimport Templates from 'components/content_desk_new/contents/content_edit_dialog/templates'\n\nimport {\n fetchReleasedTemplatesStart as onMount,\n resetTemplatesModule as onUnmount,\n fetchMoreTemplatesStart as onLoadMore\n} from 'actions/email_templates_library'\n\nimport {\n openTemplateConfirmDialog as openConfirmDialog,\n openTemplatePreviewDialog as openPreviewDialog,\n changeContentEditTabView as onNavigationChange,\n updateContent as onChange,\n emailEditorForceLoadDesignStart as forceLoadDesign\n} from 'actions/content_desk'\n\nimport {\n getCDeskContentFormData,\n getETLibraryFetchAllRequestRunning,\n getETLibraryFetchRequestRunning,\n getETLibraryPublicTemplates,\n getETLibraryPrivateTemplates,\n getCapabilities\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n content: getCDeskContentFormData(state),\n loading: getETLibraryFetchAllRequestRunning(state),\n singleRequestRunning: getETLibraryFetchRequestRunning(state),\n capabilities: getCapabilities(state),\n publicTemplates: getETLibraryPublicTemplates(state).get('items'),\n hasMorePublicTemplates: getETLibraryPublicTemplates(state).get('hasMore'),\n privateTemplates: getETLibraryPrivateTemplates(state).get('items'),\n hasMorePrivateTemplates: getETLibraryPrivateTemplates(state).get('hasMore')\n})\n\nexport default connect(\n mapStateToProps,\n {\n onMount,\n onUnmount,\n openConfirmDialog,\n openPreviewDialog,\n onNavigationChange,\n onChange,\n onLoadMore,\n forceLoadDesign\n }\n)(Templates)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Box,\n Dialog,\n DialogContent,\n DialogTitle,\n DialogActions,\n Slide,\n TextField,\n FormControlLabel,\n Checkbox,\n Tooltip\n} from '@mui/material'\n\nimport CloseIcon from '@mui/icons-material/Close'\nimport InfoIcon from '@mui/icons-material/Info'\n\nimport { Button, IconButton } from 'containers/themed'\n\nimport { Capabilities } from 'static/constants'\n\nconst useStyles = makeStyles()(theme => ({\n dialogTitle: {\n paddingBottom: theme.spacing(2),\n color: theme.palette.grey[800]\n },\n closeButton: {\n position: 'absolute',\n right: 8,\n top: 8,\n color: !theme.isDark && theme.palette.grey[800]\n },\n dialogActions: {\n padding: '25px'\n },\n tooltip: {\n maxWidth: '280px'\n }\n}))\n\nconst SaveTemplateDialog = ({ open, loading, capabilities, onClose, onChange, onSave }) => {\n const { classes } = useStyles()\n\n const i18n = useI18n()\n const hasPublicWriteRights = capabilities.get(Capabilities.HAS_CONTENT_DESK_PUBLIC_TEMPLATES_WRITE_RIGHTS)\n\n const handleChange = e => onChange({ key: e.target.name, value: e.target.value })\n const handleChangeCheckbox = e => onChange({ key: e.target.name, value: e.target.checked })\n\n const handleSave = () => onSave('emailEditor')\n\n return (\n \n \n {i18n.get('save_template')}\n onClose()}\n disabled={loading}\n >\n \n \n \n \n \n \n {hasPublicWriteRights && (\n \n )}\n label={i18n.get('public')}\n />\n )}\n \n )}\n label={i18n.get('released')}\n />\n \n \n \n \n \n \n onClose()}\n >\n {i18n.get('cancel')}\n \n \n {i18n.get('confirm')}\n \n \n \n )\n}\n\nSaveTemplateDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n capabilities: PropTypes.instanceOf(Map).isRequired,\n onClose: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired\n}\n\nexport default SaveTemplateDialog\n","import { connect } from 'react-redux'\n\nimport SaveTemplateDialog from\n 'components/content_desk_new/contents/content_edit_dialog/editor/email_editor/save_template_dialog/SaveTemplateDialog'\n\nimport {\n closeSaveTemplateDialog\n} from 'actions/content_desk'\n\nimport {\n setTemplateFormData as onChange,\n saveTemplateStart as onSave\n} from 'actions/email_templates_library'\n\nimport {\n getCDeskShowSaveTemplateDialog,\n getETLibrarySaveRequestRunning,\n getCapabilities\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getCDeskShowSaveTemplateDialog(state),\n loading: getETLibrarySaveRequestRunning(state),\n capabilities: getCapabilities(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose: closeSaveTemplateDialog,\n onChange,\n onSave\n }\n)(SaveTemplateDialog)\n","import React, { useRef, useEffect, useCallback, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { debounce } from 'throttle-debounce'\nimport { fromJS, Map } from 'immutable'\nimport ReactEmailEditor from 'react-email-editor'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { useTheme } from '@mui/material/styles'\nimport { Box, useMediaQuery } from '@mui/material'\n\nimport { RaisedPrimaryButton } from 'containers/themed'\n\nimport SaveTemplateDialog from 'containers/content_desk_new/contents/content_edit_dialog/editor/email_editor/SaveTemplateDialog'\nimport TemplatesEditorVariables from 'containers/email_templates_library/TemplatesEditorVariables'\n\nimport { UnlayerEmailEditor } from 'static/constants'\nimport { isEditorDesignBlank } from 'utils/content_desk'\n\nconst useStyles = makeStyles()({\n templatesPickerButton: {\n display: 'flex',\n justifyContent: 'space-between',\n marginBottom: '15px'\n }\n})\n\nconst EmailEditor = ({\n editorHeight,\n onChange,\n moduleScope,\n editorDesign,\n json,\n preHeader,\n newsradarId,\n signature,\n forceLoadDesign,\n imageUrl,\n env,\n onEditorLoadingStart,\n onEditorLoadingStop,\n onImageUpload,\n resetImageUrl,\n onSaveTemplateClick,\n fetchMoreMediaFilesStart,\n onMediaFileDelete,\n forceLoadDesignStop\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const emailEditorRef = useRef(null)\n const theme = useTheme()\n const userIsMax = useMediaQuery(theme.breakpoints.up('xl'))\n const [uploadImageCallback, setUploadImageCallback] = useState(null)\n\n useEffect(() => {\n if (moduleScope === 'contents' && emailEditorRef.current.editor) {\n emailEditorRef.current.editor.setBodyValues({ preheaderText: preHeader })\n }\n }, [preHeader])\n\n useEffect(() => {\n if (forceLoadDesign) {\n forceLoadDesignStop()\n\n if (moduleScope === 'contents' && emailEditorRef.current.editor) {\n if (!editorDesign) {\n emailEditorRef.current.editor.loadBlank({})\n } else {\n emailEditorRef.current.editor.loadDesign(editorDesign.toJS())\n }\n\n emailEditorRef.current.editor.setBodyValues({ preheaderText: preHeader })\n }\n }\n }, [forceLoadDesign])\n\n useEffect(() => {\n if (imageUrl) {\n uploadImageCallback.done({ progress: 100, url: imageUrl })\n resetImageUrl()\n setUploadImageCallback(null)\n }\n\n return () => onEditorLoadingStop()\n }, [imageUrl])\n\n const handleDesignUpdate = useCallback(debounce(500, (_params, isInitialLoad = false) => {\n emailEditorRef.current.editor.exportHtml(editorData => {\n const { design, html } = editorData\n\n if (moduleScope === 'contents') {\n onChange({ key: 'editorDesign', value: fromJS(design) })\n onChange({ key: 'body', value: html })\n onChange({ key: 'preHeader', value: design.body.values.preheaderText })\n\n if (isInitialLoad) {\n onChange({ key: 'isDirty', value: false })\n }\n }\n\n if (moduleScope === 'templates') {\n onChange({ key: 'json', value: fromJS(design) })\n onChange({ key: 'html', value: html })\n\n if (isInitialLoad) {\n onChange({ key: 'isDirty', value: false })\n }\n }\n })\n\n emailEditorRef.current.editor.exportPlainText(editorData => {\n if (moduleScope === 'contents') {\n const { text } = editorData\n\n onChange({ key: 'plainText', value: text })\n\n if (isInitialLoad) {\n onChange({ key: 'isDirty', value: false })\n }\n }\n })\n }), [onChange])\n\n const onLoad = () => {\n onEditorLoadingStart()\n }\n\n const onReady = () => {\n let currentEditorDesign\n\n if (moduleScope === 'contents' && !isEditorDesignBlank(editorDesign)) {\n currentEditorDesign = editorDesign.toJS()\n } else if (!isEditorDesignBlank(json)) {\n currentEditorDesign = json.toJS()\n }\n\n emailEditorRef.current.editor.loadDesign(currentEditorDesign)\n emailEditorRef.current.editor.registerCallback('image:removed', (image, done) => {\n onMediaFileDelete({ id: image.id })\n done()\n })\n emailEditorRef.current.editor.registerCallback('image', (file, done) => {\n done({ progress: 30 })\n onImageUpload({ file })\n setUploadImageCallback({ done })\n })\n emailEditorRef.current.editor.registerProvider('userUploads', (params, done) => {\n fetchMoreMediaFilesStart({ params, done })\n })\n\n if (moduleScope === 'contents') {\n emailEditorRef.current.editor.exportHtml(editorData => {\n const { design } = editorData\n onChange({ key: 'preHeader', value: design.body.values.preheaderText })\n })\n }\n\n emailEditorRef.current.editor.addEventListener('design:loaded', handleDesignUpdate(null, true))\n emailEditorRef.current.editor.addEventListener('design:updated', handleDesignUpdate)\n\n onEditorLoadingStop()\n }\n\n /*\n Possibly working: 1.52.0\n (If problems occur), leaving this out will result in stable version being used which doesn't contain important bugfixes\n See for instance :https://github.com/unlayer/react-email-editor/issues/398\n\n Set version to 1.52.0 because of a bug in the switch for more options in the editor content padding settings\n */\n\n const scriptUrl = () => {\n if (env === 'development') {\n return UnlayerEmailEditor.defaultScriptUrl\n }\n\n return UnlayerEmailEditor.customScriptUrl\n }\n\n return (\n <>\n {moduleScope === 'contents' && (\n <>\n \n onSaveTemplateClick()}\n size=\"small\"\n >{i18n.get('save_as_template')}\n \n \n \n \n \n )}\n '\n }\n },\n projectId: env === 'development' ? UnlayerEmailEditor.defaultProjectId : UnlayerEmailEditor.customProjectId\n }}\n />\n \n )\n}\n\nEmailEditor.propTypes = {\n onChange: PropTypes.func.isRequired,\n moduleScope: PropTypes.string.isRequired,\n editorDesign: PropTypes.instanceOf(Map),\n json: PropTypes.string,\n preHeader: PropTypes.string,\n newsradarId: PropTypes.number.isRequired,\n signature: PropTypes.string.isRequired,\n editorHeight: PropTypes.string.isRequired,\n forceLoadDesign: PropTypes.bool.isRequired,\n env: PropTypes.string.isRequired,\n\n imageUrl: PropTypes.string,\n onEditorLoadingStart: PropTypes.func.isRequired,\n onEditorLoadingStop: PropTypes.func.isRequired,\n onImageUpload: PropTypes.func.isRequired,\n resetImageUrl: PropTypes.func.isRequired,\n onSaveTemplateClick: PropTypes.func.isRequired,\n fetchMoreMediaFilesStart: PropTypes.func.isRequired,\n onMediaFileDelete: PropTypes.func.isRequired,\n forceLoadDesignStop: PropTypes.func.isRequired\n}\n\nexport default EmailEditor\n","import { connect } from 'react-redux'\n\nimport EmailEditor from 'components/content_desk_new/contents/content_edit_dialog/editor/email_editor'\n\nimport {\n emailEditorLoadingStart,\n emailEditorLoadingStop,\n uploadEditorImageStart,\n resetUploadedImageUrl,\n openSaveTemplateDialog,\n fetchMoreMediaFilesStart,\n deleteMediaFileStart as onMediaFileDelete,\n emailEditorForceLoadDesignStop as forceLoadDesignStop\n} from 'actions/content_desk'\n\nimport {\n getCDeskContentUploadedImageUrl,\n getNewsradarId,\n getCDeskEmailEditorForceLoadDesign,\n getStage,\n getCDeskConfig\n} from 'selectors'\n\nconst mapStateToProps = (state, { onChange, moduleScope, data }) => ({\n onChange,\n moduleScope,\n editorDesign: data.get('editorDesign'),\n json: data.get('json'),\n preHeader: data.get('preHeader'),\n imageUrl: getCDeskContentUploadedImageUrl(state),\n newsradarId: getNewsradarId(state),\n signature: getCDeskConfig(state).get('emailEditorSignature'),\n forceLoadDesign: getCDeskEmailEditorForceLoadDesign(state),\n env: getStage(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onEditorLoadingStart: emailEditorLoadingStart,\n onEditorLoadingStop: emailEditorLoadingStop,\n onImageUpload: uploadEditorImageStart,\n resetImageUrl: resetUploadedImageUrl,\n onSaveTemplateClick: openSaveTemplateDialog,\n fetchMoreMediaFilesStart,\n onMediaFileDelete,\n forceLoadDesignStop\n }\n)(EmailEditor)\n","import React from 'react'\nimport { Map } from 'immutable'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport { Box, CircularProgress } from '@mui/material'\n\n/* Caution: These components are still in the old directory */\nimport LinkedInEditor from 'containers/content_desk/content_edit_dialog/linked_in_editor/LinkedInEditor'\nimport FacebookEditor from 'containers/content_desk/content_edit_dialog/facebook_editor/FacebookEditor'\n\nimport EmailEditor from 'containers/content_desk_new/contents/content_edit_dialog/editor/EmailEditor'\n\nconst useStyles = makeStyles()({\n container: {\n padding: '40px 20px 0px 20px'\n },\n hidden: {\n position: 'absolute !important',\n left: '-9999px !important',\n top: '-9999px !important'\n },\n editorContainer: {\n marginTop: '10px',\n marginBottom: '20px'\n },\n circularLoader: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '60vh'\n }\n})\n\nconst Editor = ({\n emailEditorLoading,\n content,\n onChange\n}) => {\n const { classes } = useStyles()\n\n return (\n {\n emailEditorLoading && (\n
    \n \n
    \n )\n }\n \n {content.getIn(['type', 'id']) === 'email' && (\n \n )}\n {content.getIn(['type', 'id']) === 'linkedin' && }\n {content.getIn(['type', 'id']) === 'facebook' && }\n \n
    \n )\n}\n\nEditor.propTypes = {\n emailEditorLoading: PropTypes.bool.isRequired,\n content: PropTypes.instanceOf(Map).isRequired,\n\n onChange: PropTypes.func.isRequired\n}\n\nexport default Editor\n","import { connect } from 'react-redux'\n\nimport Editor from 'components/content_desk_new/contents/content_edit_dialog/editor'\n\nimport {\n setContentFormData\n} from 'actions/content_desk'\n\nimport {\n getCDeskEmailEditorLoadingStatus,\n getCDeskContentFormData\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n emailEditorLoading: getCDeskEmailEditorLoadingStatus(state),\n content: getCDeskContentFormData(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: setContentFormData\n }\n)(Editor)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { red } from '@mui/material/colors'\n\nimport {\n Box,\n LinearProgress,\n Typography\n} from '@mui/material'\n\nimport { UploadedMediaFilesSizeLimit } from 'static/constants'\nimport { formatBytes } from 'utils/number'\n\nconst useStyles = makeStyles()({\n container: {\n display: 'flex',\n alignItems: 'center',\n gap: '10px'\n },\n storageLabel: {\n fontSize: '16px'\n },\n progress: {\n alignItems: 'center',\n display: 'flex',\n minWidth: '200px'\n },\n progressBar: {\n width: '100%'\n },\n usageLimitLabel: {\n fontSize: '12px',\n opacity: '0.5'\n }\n})\n\nconst StorageLimit = ({\n uploadedMediaFilesTotalSize\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const calcPercentage = () => {\n const percentage = Math.round((100 * uploadedMediaFilesTotalSize) / UploadedMediaFilesSizeLimit)\n\n return percentage > 100 ? 100 : percentage\n }\n\n const isMax = calcPercentage() >= 100\n\n return (\n \n \n {i18n.get('storage')}\n \n \n \n \n \n \n \n {formatBytes(uploadedMediaFilesTotalSize)} / {formatBytes(UploadedMediaFilesSizeLimit)}\n \n \n )\n}\n\nStorageLimit.propTypes = {\n uploadedMediaFilesTotalSize: PropTypes.number.isRequired\n}\n\nexport default StorageLimit\n","import { connect } from 'react-redux'\n\nimport StorageLimit from 'components/content_desk_new/contents/content_edit_dialog/attachments/storage_limit/StorageLimit'\n\nimport {\n} from 'actions/content_desk'\n\nimport {\n getCDeskUploadedMediaFilesTotalSize\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n uploadedMediaFilesTotalSize: getCDeskUploadedMediaFilesTotalSize(state)\n})\n\nexport default connect(\n mapStateToProps,\n {}\n)(StorageLimit)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Select, MenuItem, InputAdornment, Typography } from '@mui/material'\n\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\n\nconst useStyles = makeStyles()(theme => ({\n select: {\n boxShadow: 'none',\n '.MuiOutlinedInput-notchedOutline': {\n border: 0\n },\n '&.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline': {\n border: 0\n },\n '&.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline': {\n border: 0\n }\n },\n mediaTypeLabel: {\n fontSize: '18px',\n color: theme.palette.grey[900]\n }\n}))\n\nconst SelectMedia = ({ mediaType, onChange }) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const mediaTypeOptions = [\n { value: 'all', label: i18n.get('all') },\n { value: 'image', label: i18n.get('image') },\n { value: 'document', label: i18n.get('document') }\n ]\n\n return (\n onChange(e.target.value)}\n value={mediaType}\n startAdornment={(\n \n \n {i18n.get('media_type')}:\n \n \n )}\n inputProps={{\n sx: {\n fontWeight: '500'\n }\n }}\n >\n {mediaTypeOptions.map(({ value, label }) => (\n \n {label}\n \n ))}\n \n )\n}\n\nSelectMedia.propTypes = {\n mediaType: PropTypes.string.isRequired,\n\n onChange: PropTypes.func.isRequired\n}\n\nexport default SelectMedia\n","import { connect } from 'react-redux'\n\nimport SelectMedia from 'components/content_desk_new/contents/content_edit_dialog/attachments/select_media'\n\nimport {\n changeAttachmentsMediaType\n} from 'actions/content_desk'\n\nimport {\n getCDeskAttachmentsMediaType\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n mediaType: getCDeskAttachmentsMediaType(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: changeAttachmentsMediaType\n }\n)(SelectMedia)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { orange } from '@mui/material/colors'\nimport { lighten, darken } from '@mui/material/styles'\n\nimport {\n Box,\n Typography\n} from '@mui/material'\n\nimport WarningAmberIcon from '@mui/icons-material/WarningAmber'\n\nimport { UploadedMediaFilesSizeLimit } from 'static/constants'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n display: 'flex',\n width: '100%',\n gap: '15px',\n backgroundColor: lighten(orange[50], 0.5),\n border: '1px solid',\n borderRadius: '5px',\n borderColor: orange[800],\n padding: '20px'\n },\n titleLabel: {\n fontSize: '18px',\n fontWeight: '500',\n color: darken(orange[800], 0.5),\n marginBottom: '5px'\n },\n infoLabel: {\n fontSize: '14px',\n color: theme.palette.text.secondary\n },\n icon: {\n color: orange[800]\n }\n}))\n\nconst StorageWarning = ({\n uploadedMediaFilesTotalSize\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n const device = useDevice()\n\n const calcPercentage = () => {\n const percentage = Math.round((100 * uploadedMediaFilesTotalSize) / UploadedMediaFilesSizeLimit)\n\n return percentage > 100 ? 100 : percentage\n }\n\n const show = () => {\n if (device.get('mobile')) {\n return calcPercentage() >= 85\n }\n\n return calcPercentage() >= 90\n }\n\n if (!show()) {\n return null\n }\n\n return (\n \n \n \n \n {i18n.get('not_enough_storage')}?\n \n \n \n \n )\n}\n\nStorageWarning.propTypes = {\n uploadedMediaFilesTotalSize: PropTypes.number.isRequired\n}\n\nexport default StorageWarning\n","import { connect } from 'react-redux'\n\nimport StorageWarning from 'components/content_desk_new/contents/content_edit_dialog/attachments/storage_warning/StorageWarning'\n\nimport {\n} from 'actions/content_desk'\n\nimport {\n getCDeskUploadedMediaFilesTotalSize\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n uploadedMediaFilesTotalSize: getCDeskUploadedMediaFilesTotalSize(state)\n})\n\nexport default connect(\n mapStateToProps,\n {}\n)(StorageWarning)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { debounce } from 'throttle-debounce'\nimport { useSnackbar } from 'notistack'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { grey } from '@mui/material/colors'\n\nimport AddIcon from '@mui/icons-material/Add'\n\nimport { BrowseButton } from 'containers/themed'\n\nimport { UploadedMediaFilesSizeLimit, UploadedMediaSingleFileSizeLimit } from 'static/constants'\n\nconst allowedMimeTypes = [\n 'image/*',\n 'application/pdf',\n 'application/msword',\n 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n 'application/vnd.ms-excel',\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n 'text/csv'\n]\n\nconst useStyles = makeStyles()({\n uploadButton: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n width: '100%',\n aspectRatio: '1 / 1',\n borderRadius: '10px',\n border: '2px dashed',\n borderColor: grey[400]\n },\n uploadButtonInnerContent: {\n textAlign: 'center'\n },\n addIcon: {\n fontSize: '3vw',\n color: grey[400]\n },\n fileSizeHint: {\n fontSize: 10,\n color: grey[400]\n }\n})\n\nconst UploadMedia = ({\n mediaFileUploading,\n uploadedMediaFilesTotalSize,\n onUpload\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const { enqueueSnackbar } = useSnackbar()\n\n const onMediaUpload = debounce(50, file => {\n let doUpload = true\n\n if (!file) {\n doUpload = false\n }\n\n if (file && (file.size > UploadedMediaSingleFileSizeLimit)) {\n doUpload = false\n\n enqueueSnackbar(\n `${i18n.get('error_filesize_exceeded')}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n if (file && ((file.size + uploadedMediaFilesTotalSize) > UploadedMediaFilesSizeLimit)) {\n doUpload = false\n\n enqueueSnackbar(\n `${i18n.get('exceeding_upload_storage_size_warning')}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n if (doUpload) {\n onUpload({ file })\n }\n })\n\n return (\n onMediaUpload(e.target.files[0])}\n >\n {!mediaFileUploading && (\n
    \n \n
    \n {i18n.get('upload_file_limit', { n: 5 })}\n
    \n
    \n )}\n \n )\n}\n\nUploadMedia.propTypes = {\n mediaFileUploading: PropTypes.bool.isRequired,\n uploadedMediaFilesTotalSize: PropTypes.number.isRequired,\n\n onUpload: PropTypes.func.isRequired\n}\n\nexport default UploadMedia\n","import { connect } from 'react-redux'\n\nimport UploadMedia from 'components/content_desk_new/contents/content_edit_dialog/attachments/files_gallery/upload_media'\n\nimport {\n uploadFacebookMediaFileStart as onUpload\n} from 'actions/content_desk'\n\nimport {\n getCDeskMediaFileUploading,\n getCDeskUploadedMediaFilesTotalSize\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n mediaFileUploading: getCDeskMediaFileUploading(state),\n uploadedMediaFilesTotalSize: getCDeskUploadedMediaFilesTotalSize(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onUpload\n }\n)(UploadMedia)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Box, CircularProgress } from '@mui/material'\n\nimport ArrowCircleLeftIcon from '@mui/icons-material/ArrowCircleLeft'\nimport ArrowCircleRightIcon from '@mui/icons-material/ArrowCircleRight'\n\nimport { IconButton } from 'containers/themed'\n\nimport { Document, Page } from 'utils/pdf'\n\nconst useStyles = makeStyles()({\n pdfPaging: {\n display: 'flex',\n justifyContent: 'flex-end',\n alignItems: 'center',\n position: 'absolute',\n bottom: 'calc(100% - 50px)',\n left: '0',\n right: '5px',\n zIndex: '1',\n marginBottom: '12px'\n },\n pdfPagingButton: {\n '&:hover': {\n backgroundColor: 'transparent'\n }\n },\n loader: {\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)'\n }\n})\n\nconst PdfMedia = ({\n mediaFile,\n width,\n height\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const [totalPages, setTotalPages] = useState({})\n const [pageNumbers, setPageNumbers] = useState({})\n\n const documentId = mediaFile.get('id')\n\n const onDocumentLoadSuccess = (id, { numPages }) => {\n setPageNumbers(prevPageNumbers => ({\n ...prevPageNumbers,\n [id]: 1\n }))\n setTotalPages(prevTotalPages => ({\n ...prevTotalPages,\n [id]: numPages\n }))\n }\n\n const changePage = (id, offset) => {\n setPageNumbers(prevPageNumbers => ({\n ...prevPageNumbers,\n [id]: prevPageNumbers[id] + offset\n }))\n }\n\n const previousPage = (id, e) => {\n e.preventDefault()\n e.stopPropagation()\n changePage(id, -1)\n }\n\n const nextPage = (id, e) => {\n e.preventDefault()\n e.stopPropagation()\n changePage(id, 1)\n }\n\n return (\n onDocumentLoadSuccess(documentId, props)}\n loading={(\n \n \n \n )}\n >\n \n \n {(totalPages[documentId] !== 1) && (\n e.stopPropagation()}>\n previousPage(documentId, e)}\n title={i18n.get('previous')}\n size=\"small\"\n className={classes.pdfPagingButton}\n disableRipple\n >\n \n \n = totalPages[documentId]}\n onClick={e => nextPage(documentId, e)}\n size=\"small\"\n className={classes.pdfPagingButton}\n disableRipple\n >\n \n \n \n )}\n \n \n )\n}\n\nPdfMedia.propTypes = {\n mediaFile: PropTypes.instanceOf(Map).isRequired,\n width: PropTypes.number,\n height: PropTypes.number\n}\n\nexport default PdfMedia\n","import { connect } from 'react-redux'\n\nimport PdfMedia from 'components/content_desk_new/contents/content_edit_dialog/attachments/files_gallery/pdf_media'\n\nconst mapStateToProps = (_state, { mediaFile, width, height }) => ({\n mediaFile,\n width,\n height\n})\n\nexport default connect(\n mapStateToProps,\n {}\n)(PdfMedia)\n","/* globals window */\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Box } from '@mui/material'\n\nimport { Button } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n container: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n width: '90%',\n gap: '10px'\n },\n button: {\n borderWidth: '2px',\n '&:hover': {\n borderWidth: '2px'\n }\n }\n})\n\nconst MediaActions = ({\n deleteDisabled,\n mediaFile,\n isPdf,\n openDeleteDialog,\n openImagePreviewDialog\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const handlePdfPreview = e => {\n e.preventDefault()\n e.stopPropagation()\n window.open(mediaFile.get('url'), '_blank', 'noopener,noreferrer')\n }\n\n const handleImagePreviewDialog = e => {\n e.preventDefault()\n e.stopPropagation()\n openImagePreviewDialog(mediaFile.get('url'))\n }\n\n const handleDeleteDialog = e => {\n e.preventDefault()\n e.stopPropagation()\n openDeleteDialog(mediaFile.get('id'))\n }\n\n return (\n \n \n {i18n.get('preview')}\n \n {!deleteDisabled && (\n \n {i18n.get('delete')}\n \n )}\n \n )\n}\n\nMediaActions.propTypes = {\n deleteDisabled: PropTypes.bool,\n mediaFile: PropTypes.instanceOf(Map).isRequired,\n isPdf: PropTypes.bool.isRequired,\n\n openDeleteDialog: PropTypes.func.isRequired,\n openImagePreviewDialog: PropTypes.func.isRequired\n}\n\nexport default MediaActions\n","import { connect } from 'react-redux'\n\nimport MediaActions from 'components/content_desk_new/contents/content_edit_dialog/attachments/files_gallery/media_actions'\n\nimport {\n openAttachmentsDeleteDialog as openDeleteDialog,\n openAttachmentsImagePreviewDialog as openImagePreviewDialog\n} from 'actions/content_desk'\n\nconst mapStateToProps = (_state, { mediaFile, isPdf }) => ({\n mediaFile,\n isPdf\n})\n\nexport default connect(\n mapStateToProps,\n {\n openDeleteDialog,\n openImagePreviewDialog\n }\n)(MediaActions)\n","/* global Image */\nimport React, { useState, useEffect, useRef } from 'react'\nimport { Waypoint } from 'react-waypoint'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\nimport { useSnackbar } from 'notistack'\nimport { Map, List, fromJS } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { lighten, alpha, useTheme } from '@mui/material/styles'\n\nimport {\n Box,\n ImageList,\n ImageListItem,\n ImageListItemBar,\n Tooltip,\n Typography,\n LinearProgress\n} from '@mui/material'\n\nimport CheckCircleRoundedIcon from '@mui/icons-material/CheckCircleRounded'\n\nimport UploadMedia from 'containers/content_desk_new/contents/content_edit_dialog/attachments/files_gallery/UploadMedia'\nimport PdfMedia from 'containers/content_desk_new/contents/content_edit_dialog/attachments/files_gallery/PdfMedia'\nimport MediaActions from 'containers/content_desk_new/contents/content_edit_dialog/attachments/files_gallery/MediaActions'\n\nimport { formatBytes } from 'utils/number'\nimport { getMediaFileSrcAndFit } from 'utils/content_desk'\n\nconst allowedDocumentMimeTypes = [\n 'application/pdf',\n 'application/msword',\n 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n 'application/vnd.ms-excel',\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n 'text/csv'\n]\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n marginTop: '20px',\n paddingBottom: '20px',\n display: 'flex',\n alignItems: 'center'\n },\n innerContainer: {\n overflow: 'hidden',\n width: '100%'\n },\n pdfContainer: {\n position: 'relative',\n aspectRatio: '1 / 1',\n width: '100%',\n overflow: 'hidden'\n },\n imageContainer: {\n position: 'relative',\n width: '100%',\n paddingTop: '100%',\n overflow: 'hidden',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n },\n image: {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n objectFit: 'cover'\n },\n imageListItem: {\n overflow: 'inherit',\n cursor: 'pointer'\n },\n overlay: {\n position: 'absolute',\n top: '0',\n left: '0',\n width: '100%',\n height: '100%',\n border: '2px solid',\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center'\n },\n tooltip: {\n backgroundColor: theme.palette.grey[700],\n padding: '10px',\n borderRadius: '5px'\n },\n tooltipInfo: {\n wordBreak: 'break-all',\n fontSize: '14px'\n },\n fileNameLabel: {\n color: theme.palette.text.secondary,\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis'\n },\n uploadMediaLabel: {\n fontWeight: '500'\n },\n statusBar: {\n backgroundColor: 'transparent',\n zIndex: '1',\n padding: '10px'\n },\n checkIcon: {\n backgroundColor: 'white',\n borderRadius: '50%'\n },\n spacerListItem: {\n overflow: 'inherit'\n },\n spacerItem: {\n minHeight: '215px',\n aspectRatio: '1 / 1'\n },\n uploadListItem: {\n overflow: 'inherit'\n },\n uploadListItemBar: {\n textAlign: 'center'\n }\n}))\n\nconst FilesGallery = ({\n srcSort,\n srcFilter,\n mimeTypeFilter,\n totalAttachmentsLimit,\n totalAttachmentsSizeLimit,\n uploadDisabled,\n deleteDisabled,\n forceLoadAll,\n contentFormData,\n uploadedMediaFiles,\n attachmentsMediaType,\n loadMoreDisabled,\n requestRunning,\n fetchMore,\n onChange\n}) => {\n const i18n = useI18n()\n const theme = useTheme()\n const { classes } = useStyles()\n const { enqueueSnackbar } = useSnackbar()\n const device = useDevice()\n\n const parentDivRef = useRef(null)\n const [dimensions, setDimensions] = useState({ width: 0, height: 0 })\n const [hoveredMediaId, setHoveredMediaId] = useState(null)\n const [imageDimensions, setImageDimensions] = useState(Map())\n\n const currentSelectedMediaFiles = contentFormData.get('ccdMediaFiles')\n const currentSelectedMediaFileIds = currentSelectedMediaFiles.map(f => f.get('id'))\n const currentAttachmentsSize = currentSelectedMediaFiles.reduce((acc, selectedMediaFile) => acc + selectedMediaFile.get('size'), 0)\n\n const files = uploadedMediaFiles.filter(f => f.get('mimeType') !== null)\n\n let mediaFiles\n\n if (attachmentsMediaType === 'image') {\n mediaFiles = files.filter(f => f.get('mimeType').startsWith('image/'))\n } else if (attachmentsMediaType === 'document') {\n mediaFiles = files.filter(f => allowedDocumentMimeTypes.includes(f.get('mimeType')))\n } else {\n mediaFiles = files.filter(f => allowedDocumentMimeTypes.includes(f.get('mimeType')) || f.get('mimeType').startsWith('image/'))\n }\n\n if (mimeTypeFilter) {\n let newMediaFiles = List()\n\n mimeTypeFilter.forEach(mimeType => {\n newMediaFiles = newMediaFiles.concat(mediaFiles.filter(f => f.get('mimeType') === mimeType))\n })\n\n mediaFiles = newMediaFiles\n }\n\n if (srcFilter) {\n let newMediaFiles = List()\n\n srcFilter.forEach(src => {\n newMediaFiles = newMediaFiles.concat(mediaFiles.filter(f => f.get('url') === src))\n })\n\n mediaFiles = newMediaFiles\n }\n\n if (srcSort) {\n mediaFiles = mediaFiles.sort((a, b) => {\n const aIndex = srcSort.indexOf(a.get('url'))\n const bIndex = srcSort.indexOf(b.get('url'))\n\n if (aIndex !== -1 && bIndex !== -1) {\n return aIndex - bIndex\n }\n\n if (aIndex !== -1) {\n return -1\n }\n\n if (bIndex !== -1) {\n return 1\n }\n\n return 0\n })\n }\n\n let galleryColumns\n\n if (device.get('md')) {\n galleryColumns = 4\n } else if (device.get('sm')) {\n galleryColumns = 3\n } else if (device.get('xs')) {\n galleryColumns = 2\n } else {\n galleryColumns = 5\n }\n\n const allowedTotalAttachmentsSize = totalAttachmentsSizeLimit || 12582912 // 12MB\n const allowedTotalAttachments = totalAttachmentsLimit || 3\n\n useEffect(() => {\n if (parentDivRef.current) {\n const { offsetWidth, offsetHeight } = parentDivRef.current\n setDimensions({ width: offsetWidth, height: offsetHeight })\n }\n }, [uploadedMediaFiles])\n\n useEffect(() => {\n const allDimensionsFetched = mediaFiles.every(mediaFile => imageDimensions.has(mediaFile.get('id')))\n\n if (!allDimensionsFetched) {\n mediaFiles.forEach(mediaFile => {\n const { src } = getMediaFileSrcAndFit(mediaFile)\n const img = new Image()\n img.onload = () => {\n setImageDimensions(prevState => prevState.set(mediaFile.get('id'), { width: img.width, height: img.height }))\n }\n img.src = src\n })\n }\n }, [mediaFiles])\n\n useEffect(() => {\n if (forceLoadAll && !loadMoreDisabled && !requestRunning) {\n fetchMore({})\n }\n })\n\n const isHovered = mediaFile => hoveredMediaId === mediaFile.get('id')\n const isSelected = mediaFile => currentSelectedMediaFileIds.includes(mediaFile.get('id'))\n const isPdf = mediaFile => mediaFile.get('mimeType') === 'application/pdf'\n const isImage = mediaFile => mediaFile.get('mimeType').startsWith('image/')\n\n const onEnterWaypoint = () => {\n if (!loadMoreDisabled && !requestRunning) {\n fetchMore({})\n }\n }\n\n const exceedsSizeLimit = (deselecting, selectedMediaFile) => {\n if (deselecting) {\n return false\n }\n\n return allowedTotalAttachmentsSize < (currentAttachmentsSize + selectedMediaFile.get('size'))\n }\n\n const exceedsFileLimit = deselecting => {\n if (!deselecting && currentSelectedMediaFileIds.size + 1 > allowedTotalAttachments) {\n return true\n }\n\n return false\n }\n\n const toggleMediaSelect = selectedMediaFile => {\n const deselecting = currentSelectedMediaFileIds.includes(selectedMediaFile.get('id'))\n\n if (exceedsFileLimit(deselecting) || exceedsSizeLimit(deselecting, selectedMediaFile)) {\n return enqueueSnackbar(\n `${i18n.get('attachments_limit_warning', { number: allowedTotalAttachments, size: formatBytes(allowedTotalAttachmentsSize) })}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n let newSelected = List()\n\n if (deselecting) {\n newSelected = currentSelectedMediaFiles.filter(selected => selected.get('id') !== selectedMediaFile.get('id'))\n } else {\n newSelected = currentSelectedMediaFiles.unshift(fromJS(selectedMediaFile))\n }\n\n return onChange({ key: 'ccdMediaFiles', value: newSelected })\n }\n\n const renderOverlay = mediaFile => (\n \n {isHovered(mediaFile) && (\n \n )}\n \n )\n\n const renderFileImage = mediaFile => {\n const { src } = getMediaFileSrcAndFit(mediaFile)\n\n if (isPdf(mediaFile)) {\n return (\n \n \n {renderOverlay(mediaFile)}\n \n )\n }\n\n return (\n \n \n {renderOverlay(mediaFile)}\n \n )\n }\n\n const renderSpacer = size => {\n if (size > 0) {\n return null\n }\n\n return (\n \n \n \n )\n }\n\n const renderStatusIcon = mediaFile => {\n if (isHovered(mediaFile) || isSelected(mediaFile)) {\n return (\n {\n if (isSelected(mediaFile)) {\n return theme.palette.primary.main\n }\n\n if (isHovered(mediaFile)) {\n return theme.palette.grey[500]\n }\n\n return 'transparent'\n }\n }}\n />\n )}\n />\n )\n }\n\n return null\n }\n\n const renderTooltip = mediaFile => (\n \n \n {i18n.get('file_name')}: {mediaFile.get('filename')}\n \n \n {i18n.get('file_size')}: {formatBytes(mediaFile.get('size'))}\n \n {isImage(mediaFile) && imageDimensions.get(mediaFile.get('id')) && (\n \n {i18n.get('dimensions')}: \n {imageDimensions.get(mediaFile.get('id')).width} x {imageDimensions.get(mediaFile.get('id')).height}\n \n )}\n \n )\n\n if (uploadDisabled && mediaFiles.size === 0) {\n return null\n }\n\n return (\n \n \n \n {!uploadDisabled && (\n \n \n {i18n.get('upload_file')}}\n />\n \n )}\n {renderSpacer(mediaFiles.size)}\n {mediaFiles.map(mediaFile => (\n toggleMediaSelect(mediaFile)}\n onMouseEnter={() => setHoveredMediaId(mediaFile.get('id'))}\n onMouseLeave={() => setHoveredMediaId(null)}\n >\n {renderStatusIcon(mediaFile)}\n {renderFileImage(mediaFile)}\n \n \n {mediaFile.get('filename')}\n \n \n )}\n />\n \n ))}\n \n \n {requestRunning && }\n \n \n )\n}\n\nFilesGallery.propTypes = {\n srcSort: PropTypes.array,\n srcFilter: PropTypes.array,\n mimeTypeFilter: PropTypes.array,\n totalAttachmentsLimit: PropTypes.number,\n totalAttachmentsSizeLimit: PropTypes.number,\n uploadDisabled: PropTypes.bool,\n deleteDisabled: PropTypes.bool,\n forceLoadAll: PropTypes.bool,\n contentFormData: PropTypes.instanceOf(Map).isRequired,\n uploadedMediaFiles: PropTypes.instanceOf(List).isRequired,\n attachmentsMediaType: PropTypes.string.isRequired,\n loadMoreDisabled: PropTypes.bool.isRequired,\n requestRunning: PropTypes.bool.isRequired,\n\n fetchMore: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired\n}\n\nexport default FilesGallery\n","import { connect } from 'react-redux'\n\nimport FilesGallery from 'components/content_desk_new/contents/content_edit_dialog/attachments/files_gallery/FilesGallery'\n\nimport {\n deleteMediaFileStart as onMediaDelete,\n fetchMoreMediaFilesStart as fetchMore,\n setContentFormData as onChange,\n uploadFacebookMediaFileStart as onUpload\n} from 'actions/content_desk'\n\nimport {\n getCDeskContentFormData,\n getCDeskUploadedMediaFiles,\n getCDeskUploadedMediaFilesTotal,\n getCDeskMediaFilesPage,\n getCDeskMediaFilesLimit,\n getCDeskMediaFilesLoading,\n getCDeskMediaFileUploading,\n getCDeskUploadedMediaFilesTotalSize,\n getCDeskAttachmentsMediaType\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n contentFormData: getCDeskContentFormData(state),\n uploadedMediaFiles: getCDeskUploadedMediaFiles(state),\n attachmentsMediaType: getCDeskAttachmentsMediaType(state),\n loadMoreDisabled: getCDeskUploadedMediaFilesTotal(state) < (getCDeskMediaFilesPage(state) - 1) * getCDeskMediaFilesLimit(state),\n requestRunning: getCDeskMediaFilesLoading(state),\n mediaFileUploading: getCDeskMediaFileUploading(state),\n uploadedMediaFilesTotalSize: getCDeskUploadedMediaFilesTotalSize(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n fetchMore,\n onMediaDelete,\n onChange,\n onUpload\n }\n)(FilesGallery)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle\n} from '@mui/material'\n\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { Button, IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n dialogTitle: {\n paddingBottom: theme.spacing(2),\n color: theme.palette.grey[800]\n },\n closeButton: {\n position: 'absolute',\n right: 8,\n top: 8,\n color: !theme.isDark && theme.palette.grey[800]\n },\n dialogActions: {\n padding: '25px'\n }\n}))\n\nconst DeleteFileDialog = ({\n open,\n contentFormData,\n mediaFileId,\n closeDeleteDialog,\n onChange,\n onMediaDelete\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const currentSelectedMediaFiles = contentFormData.get('ccdMediaFiles')\n\n const handleCloseDeleteDialog = () => closeDeleteDialog()\n\n const handleDeleteMedia = () => {\n onMediaDelete({ id: mediaFileId })\n onChange({\n key: 'ccdMediaFiles',\n value: currentSelectedMediaFiles.filter(selected => selected.get('id') !== mediaFileId)\n })\n handleCloseDeleteDialog()\n }\n\n return (\n \n \n {i18n.get('are_you_sure')}\n \n \n \n \n \n {i18n.get('delete_file_text')}\n \n \n \n {i18n.get('close')}\n \n \n {i18n.get('delete')}\n \n \n \n )\n}\n\nDeleteFileDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n contentFormData: PropTypes.instanceOf(Map).isRequired,\n mediaFileId: PropTypes.number,\n\n closeDeleteDialog: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onMediaDelete: PropTypes.func.isRequired\n}\n\nexport default DeleteFileDialog\n","import { connect } from 'react-redux'\n\nimport DeleteFileDialog from 'components/content_desk_new/contents/content_edit_dialog/attachments/delete_file_dialog'\n\nimport {\n deleteMediaFileStart as onMediaDelete,\n setContentFormData as onChange,\n closeAttachmentsDeleteDialog as closeDeleteDialog\n} from 'actions/content_desk'\n\nimport {\n getCDeskAttachmentsDeleteDialogOpen,\n getCDeskContentFormData,\n getCDeskAttachmentsDeleteMediaFileId\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getCDeskAttachmentsDeleteDialogOpen(state),\n contentFormData: getCDeskContentFormData(state),\n mediaFileId: getCDeskAttachmentsDeleteMediaFileId(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onMediaDelete,\n onChange,\n closeDeleteDialog\n }\n)(DeleteFileDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Dialog, DialogContent } from '@mui/material'\n\nconst useStyles = makeStyles()({\n dialogPaper: {\n backgroundColor: 'transparent',\n border: 'none',\n borderRadius: '0',\n boxShadow: 'none'\n },\n dialogContent: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: 'transparent',\n padding: 0\n },\n imagePreview: {\n maxWidth: '100%',\n maxHeight: '80vh'\n }\n})\n\nconst ImagePreviewDialog = ({\n open,\n imageSrc,\n closeImagePreviewDialog\n}) => {\n const { classes } = useStyles()\n\n const handleCloseImagePreview = e => {\n e.preventDefault()\n e.stopPropagation()\n closeImagePreviewDialog()\n }\n\n return (\n \n {\n e.preventDefault()\n e.stopPropagation()\n }}\n >\n \n \n \n )\n}\n\nImagePreviewDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n imageSrc: PropTypes.string,\n\n closeImagePreviewDialog: PropTypes.func.isRequired\n}\n\nexport default ImagePreviewDialog\n","import { connect } from 'react-redux'\n\nimport ImagePreviewDialog from 'components/content_desk_new/contents/content_edit_dialog/attachments/image_preview_dialog'\n\nimport {\n closeAttachmentsImagePreviewDialog as closeImagePreviewDialog\n} from 'actions/content_desk'\n\nimport {\n getCDeskAttachmentsImagePreviewOpen,\n getCDeskAttachmentsImagePreviewSrc\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getCDeskAttachmentsImagePreviewOpen(state),\n imageSrc: getCDeskAttachmentsImagePreviewSrc(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n closeImagePreviewDialog\n }\n)(ImagePreviewDialog)\n","import React from 'react'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Box } from '@mui/material'\n\nimport StorageLimit from 'containers/content_desk_new/contents/content_edit_dialog/attachments/StorageLimit'\nimport SelectMedia from 'containers/content_desk_new/contents/content_edit_dialog/attachments/SelectMedia'\nimport StorageWarning from 'containers/content_desk_new/contents/content_edit_dialog/attachments/StorageWarning'\nimport FilesGallery from 'containers/content_desk_new/contents/content_edit_dialog/attachments/FilesGallery'\nimport DeleteFileDialog from 'containers/content_desk_new/contents/content_edit_dialog/attachments/DeleteFileDialog'\nimport ImagePreviewDialog from 'containers/content_desk_new/contents/content_edit_dialog/attachments/ImagePreviewDialog'\n\nconst useStyles = makeStyles()({\n container: {\n padding: '40px 20px 0px 20px'\n },\n innerContainer: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between'\n }\n})\n\nconst Attachments = () => {\n const { classes } = useStyles()\n\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nexport default Attachments\n","import { connect } from 'react-redux'\n\nimport Attachments from 'components/content_desk_new/contents/content_edit_dialog/attachments'\n\nconst mapStateToProps = _state => ({\n})\n\nexport default connect(\n mapStateToProps,\n {}\n)(Attachments)\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { List, Map } from 'immutable'\nimport useDevice from 'hooks/useDevice'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { Box, Autocomplete, TextField } from '@mui/material'\n\nimport AddIcon from '@mui/icons-material/Add'\n\nimport { Button, IconButton } from 'containers/themed'\nimport CampaignSelection from 'containers/content_desk_new/contents/content_edit_dialog/CampaignSelection'\nimport ContentPreview from 'containers/content_desk_new/contents/ContentPreview'\n\nimport { mapToOptions } from 'utils/autocomplete'\nimport { emailToOtsPlainText } from 'utils/content_desk'\n\nconst useStyles = makeStyles()({\n container: {\n padding: '40px 20px 0px 20px'\n },\n campaignSelectionContainer: {\n margin: '20px 0px'\n },\n contentSelectionContainer: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: '40px',\n margin: '20px 0px'\n },\n autocompleteContainer: {\n width: '100%'\n },\n createButton: {\n padding: 0,\n gap: '5px'\n }\n})\n\nconst ChooseContent = ({\n contents,\n contentFormData,\n updateContent,\n fetchContents,\n onNavigationChange\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n const device = useDevice()\n\n const otsBody = JSON.parse(contentFormData.get('body'))\n const contentId = otsBody.content.id\n const contentTitle = otsBody.content.title\n\n const otsContent = contentFormData.get('otsContent')\n\n const [value, setValue] = useState(otsContent ? { label: otsContent.get('title'), value: otsContent.get('id') } : null)\n const [inputValue, setInputValue] = useState('')\n const [isFirstRender, setIsFirstRender] = useState(true)\n const options = mapToOptions(contents)\n\n useEffect(() => {\n if (!otsContent && contentId && contentTitle) {\n const content = contents.find(c => c.get('id') === contentId)\n\n if (content) {\n updateContent({ otsContent: content, isDirty: !isFirstRender })\n setValue({ label: content.get('title'), value: content.get('id') })\n setIsFirstRender(false)\n }\n }\n }, [contents])\n\n useEffect(() => {\n if (!otsContent && contentId && contentTitle) {\n fetchContents({ title: contentTitle, type: 'email' })\n } else {\n fetchContents({ title: '', type: 'email' })\n }\n }, [])\n\n const handleInputChange = val => {\n if (val.length === 0 || val.length > 2) {\n fetchContents({ title: val, type: 'email' })\n }\n\n setInputValue(val)\n }\n\n const handleChange = option => {\n if (!option) {\n updateContent({ otsContent: null })\n setInputValue('')\n setValue(null)\n\n otsBody.content.id = null\n otsBody.content.title = ''\n\n updateContent({ body: JSON.stringify(otsBody) })\n\n return\n }\n\n if (option) {\n const content = option ? contents.find(c => c.get('id') === option.value) : null\n updateContent({ otsContent: content })\n setValue(option)\n\n if (content) {\n const optionBody = content.get('body')\n\n otsBody.content.id = content.get('id')\n otsBody.content.title = content.get('title')\n otsBody.text = emailToOtsPlainText(optionBody)\n\n updateContent({ body: JSON.stringify(otsBody) })\n }\n }\n }\n\n const handleNewButtonClick = () => {\n updateContent({ otsContent: null })\n setValue(null)\n\n otsBody.content.id = null\n otsBody.content.title = ''\n otsBody.text = ''\n\n updateContent({ body: JSON.stringify(otsBody) })\n onNavigationChange('ots_editor')\n }\n\n const renderNewButton = () => {\n if (device.get('lt-sm')) {\n return (\n handleNewButtonClick()}\n title={i18n.get('create_campaign')}\n >\n \n \n )\n }\n\n return (\n handleNewButtonClick()}\n >\n \n {i18n.get('start_from_scratch')}\n \n )\n }\n\n return (\n \n \n \n \n \n \n option.value === val.value}\n getOptionLabel={option => option.label}\n onInputChange={(_event, newInputValue) => handleInputChange(newInputValue)}\n onChange={(_event, option) => handleChange(option)}\n renderInput={params => (\n \n )}\n />\n \n \n {renderNewButton()}\n \n \n \n \n \n \n )\n}\n\nChooseContent.propTypes = {\n contents: PropTypes.instanceOf(List).isRequired,\n contentFormData: PropTypes.instanceOf(Map).isRequired,\n\n fetchContents: PropTypes.func.isRequired,\n onNavigationChange: PropTypes.func.isRequired,\n updateContent: PropTypes.func.isRequired\n}\n\nexport default ChooseContent\n","import { connect } from 'react-redux'\n\nimport ChooseContent from 'components/content_desk_new/contents/content_edit_dialog/choose_content'\n\nimport {\n getCDeskContentDropdownOptions,\n getCDeskContentFormData\n} from 'selectors'\n\nimport {\n fetchContentDropdownOptionsStart,\n changeContentEditTabView,\n updateContent\n} from 'actions/content_desk'\n\nconst mapStateToProps = state => ({\n contents: getCDeskContentDropdownOptions(state),\n contentFormData: getCDeskContentFormData(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n fetchContents: fetchContentDropdownOptionsStart,\n onNavigationChange: changeContentEditTabView,\n updateContent\n }\n)(ChooseContent)\n","import React from 'react'\n\nconst Divider = () => (
    )\nexport default Divider\n","/* eslint-disable */\nimport React from 'react'\nimport useI18n from 'hooks/useI18n'\n\nimport {\n REDO_COMMAND,\n UNDO_COMMAND\n} from 'lexical'\n\nconst UndoRedo = ({ editor, undoDisabled, redoDisabled }) => {\n const i18n = useI18n()\n\n return (\n <>\n {\n editor.dispatchCommand(UNDO_COMMAND)\n }}\n className=\"toolbar-item spaced\"\n title={i18n.get('undo')}\n >\n \n \n {\n editor.dispatchCommand(REDO_COMMAND)\n }}\n className=\"toolbar-item\"\n title={i18n.get('redo')}\n >\n \n \n \n )\n}\n\nexport default UndoRedo\n","/* global window document */\n/* eslint-disable */\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'\nimport { createPortal } from 'react-dom'\n\nconst DropDownContext = React.createContext(null)\n\nconst dropDownPadding = 4\n\nexport const DropDownItem = ({\n children,\n className,\n onClick,\n title\n}) => {\n const ref = useRef(null)\n\n const dropDownContext = React.useContext(DropDownContext)\n\n if (dropDownContext === null) {\n throw new Error('DropDownItem must be used within a DropDown')\n }\n\n const { registerItem } = dropDownContext\n\n useEffect(() => {\n if (ref && ref.current) {\n registerItem(ref)\n }\n }, [ref, registerItem])\n\n return (\n \n {children}\n \n )\n}\n\nconst DropDownItems = ({\n toolbarTrackerRef,\n children,\n dropDownRef,\n onClose\n}) => {\n const [items, setItems] = useState()\n const [highlightedItem, setHighlightedItem] = useState()\n\n\n const registerItem = useCallback(\n itemRef => {\n setItems(prev => (prev ? [...prev, itemRef] : [itemRef]))\n },\n [setItems]\n )\n\n const handleKeyDown = event => {\n if (!items) return\n\n const { key } = event\n\n if (['Escape', 'ArrowUp', 'ArrowDown', 'Tab'].includes(key)) {\n event.preventDefault()\n }\n\n if (key === 'Escape' || key === 'Tab') {\n onClose()\n } else if (key === 'ArrowUp') {\n setHighlightedItem(prev => {\n if (!prev) return items[0]\n\n const index = items.indexOf(prev) - 1\n\n return items[index === -1 ? items.length - 1 : index]\n })\n } else if (key === 'ArrowDown') {\n setHighlightedItem(prev => {\n if (!prev) return items[0]\n\n return items[items.indexOf(prev) + 1]\n })\n }\n }\n\n const contextValue = useMemo(\n () => ({\n registerItem\n }),\n [registerItem]\n )\n\n useEffect(() => {\n if (items && !highlightedItem) {\n setHighlightedItem(items[0])\n }\n\n if (highlightedItem && highlightedItem.current) {\n highlightedItem.current.focus()\n }\n }, [items, highlightedItem])\n\n return (\n \n { dropDownRef.current = el; toolbarTrackerRef.current = el; }}\n onKeyDown={handleKeyDown}\n >\n {children}\n
    \n \n )\n}\n\nexport const DropDown = ({\n toolbarTrackerRef,\n disabled = false,\n buttonLabel,\n title,\n buttonClassName,\n buttonIconClassName,\n children,\n stopCloseOnClickSelf,\n}) => {\n const dropDownRef = useRef(null)\n const buttonRef = useRef(null)\n const [showDropDown, setShowDropDown] = useState(false)\n\n const handleClose = () => {\n setShowDropDown(false)\n\n if (buttonRef && buttonRef.current) {\n buttonRef.current.focus()\n }\n }\n\n useEffect(() => {\n const button = buttonRef.current\n const dropDown = dropDownRef.current\n\n if (showDropDown && button !== null && dropDown !== null) {\n const { top, left, height } = button.getBoundingClientRect();\n const scrollTop = window.pageYOffset || document.documentElement.scrollTop;\n const scrollLeft = window.pageXOffset || document.documentElement.scrollLeft;\n\n dropDown.style.top = `${top + height + scrollTop + dropDownPadding}px`;\n dropDown.style.left = `${Math.min(\n left + scrollLeft,\n window.innerWidth - dropDown.offsetWidth - 20\n )}px`;\n }\n }, [dropDownRef, buttonRef, showDropDown])\n\n useEffect(() => {\n const button = buttonRef.current\n\n if (button !== null && showDropDown) {\n const handle = event => {\n const { target } = event\n\n if (stopCloseOnClickSelf) {\n if (\n dropDownRef.current\n && dropDownRef.current.contains(target)\n ) return\n }\n\n if (!button.contains(target)) {\n setShowDropDown(false)\n }\n }\n document.addEventListener('click', handle)\n\n return () => {\n document.removeEventListener('click', handle)\n }\n }\n }, [dropDownRef, buttonRef, showDropDown, stopCloseOnClickSelf])\n\n useEffect(() => {\n const handleButtonPositionUpdate = () => {\n if (showDropDown) {\n const button = buttonRef.current\n const dropDown = dropDownRef.current\n\n if (button !== null && dropDown !== null) {\n const { top } = button.getBoundingClientRect()\n const newPosition = top + button.offsetHeight + dropDownPadding\n\n if (newPosition !== dropDown.getBoundingClientRect().top) {\n dropDown.style.top = `${newPosition}px`\n }\n }\n }\n }\n\n document.addEventListener('scroll', handleButtonPositionUpdate)\n\n return () => {\n document.removeEventListener('scroll', handleButtonPositionUpdate)\n }\n }, [buttonRef, dropDownRef, showDropDown])\n\n return (\n <>\n setShowDropDown(!showDropDown)}\n ref={buttonRef}\n >\n {buttonIconClassName && }\n {buttonLabel && (\n {buttonLabel}\n )}\n \n \n\n {showDropDown\n &&\n createPortal(\n \n {children}\n ,\n document.body\n )\n }\n \n )\n}\n","/* eslint-disable */\nimport React from 'react'\nimport useI18n from 'hooks/useI18n'\n\nimport {\n $getSelection,\n $isRangeSelection,\n $createParagraphNode\n} from 'lexical'\n\nimport {\n INSERT_UNORDERED_LIST_COMMAND,\n INSERT_ORDERED_LIST_COMMAND,\n REMOVE_LIST_COMMAND\n} from '@lexical/list'\n\nimport {\n $setBlocksType\n} from '@lexical/selection'\n\nimport { DropDown, DropDownItem } from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/ui/dropdown'\n\nconst blockTypeToBlockName = {\n paragraph: 'paragraph',\n ul: 'unordered_list',\n ol: 'ordered_list'\n}\n\nconst TextFormat = ({\n editor,\n toolbarTrackerRef,\n isEditable,\n blockType\n}) => {\n const i18n = useI18n()\n\n const capitalizeEach = string => {\n const strArray = string.split(' ')\n\n for (let i = 0; i < strArray.length; i += 1) {\n strArray[i] = strArray[i][0].toUpperCase() + strArray[i].slice(1)\n }\n\n return strArray.join(' ')\n }\n\n let adjustedBlockType = blockType\n\n if (blockType === 'root') {\n adjustedBlockType = 'paragraph'\n }\n\n if (blockType === 'extended-paragraph') {\n adjustedBlockType = 'paragraph'\n }\n\n const formatParagraph = () => {\n if (adjustedBlockType !== 'paragraph') {\n editor.update(() => {\n const selection = $getSelection()\n\n if ($isRangeSelection(selection)) {\n $setBlocksType(selection, () => $createParagraphNode())\n }\n })\n }\n }\n\n const formatUnorderedList = () => {\n if (adjustedBlockType !== 'ul') {\n editor.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND, undefined)\n } else {\n editor.dispatchCommand(REMOVE_LIST_COMMAND, undefined)\n }\n }\n\n const formatOrderedList = () => {\n if (adjustedBlockType !== 'ol') {\n editor.dispatchCommand(INSERT_ORDERED_LIST_COMMAND, undefined)\n } else {\n editor.dispatchCommand(REMOVE_LIST_COMMAND, undefined)\n }\n }\n\n let adjustedIconName = adjustedBlockType\n\n if (blockType === 'ul') {\n adjustedIconName = 'list-ul'\n }\n\n if (blockType === 'ol') {\n adjustedIconName = 'list-ol'\n }\n\n return (\n \n \n \n {i18n.get('paragraph')}\n \n \n \n {capitalizeEach(i18n.get('ordered_list'))}\n \n \n \n {capitalizeEach(i18n.get('unordered_list'))}\n \n \n )\n}\n\nexport default TextFormat\n","/* eslint-disable */\nimport React from 'react'\nimport useI18n from 'hooks/useI18n'\n\nimport {\n FORMAT_TEXT_COMMAND\n} from 'lexical'\n\nconst TextStyle = ({ editor, blockType, isBold, isItalic, isUnderline }) => {\n const i18n = useI18n()\n\n const isDisabled = blockType === 'h1' || blockType === 'h2' || blockType === 'h3' || blockType === 'h4' || blockType === 'h5' || blockType === 'h6'\n\n return (\n <>\n {\n editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'bold')\n }}\n className={`toolbar-item spaced ${isBold ? 'active' : ''}`}\n title={i18n.get('bold')}\n >\n \n \n {\n editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'italic')\n }}\n className={`toolbar-item spaced ${isItalic ? 'active' : ''}`}\n title={i18n.get('italic')}\n >\n \n \n {\n editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'underline')\n }}\n className={`toolbar-item spaced ${isUnderline ? 'active' : ''}`}\n title={i18n.get('underline')}\n >\n \n \n \n )\n}\n\nexport default TextStyle\n","/* global document window */\n/* eslint-disable */\nimport React, { useCallback, useEffect, useRef, useState } from 'react'\nimport { createPortal } from 'react-dom'\nimport useI18n from 'hooks/useI18n'\n\nimport {\n $getSelection,\n $isRangeSelection,\n SELECTION_CHANGE_COMMAND,\n COMMAND_PRIORITY_LOW\n} from 'lexical'\n\nimport { $isLinkNode, TOGGLE_LINK_COMMAND } from '@lexical/link'\n\nimport { getSelectedNode, setFloatingElemPosition } from 'utils/lexicalEditorHelper'\n\nconst FloatingLinkEditor = ({\n toolbarTrackerRef,\n editor,\n linkUrl,\n setLinkUrl,\n isEditMode,\n setEditMode,\n lastSelection,\n setLastSelection\n}) => {\n const i18n = useI18n()\n const editorRef = useRef(null)\n const inputRef = useRef(null)\n const mouseDownRef = useRef(false)\n\n const updateLinkEditor = useCallback(() => {\n const selection = $getSelection()\n\n if ($isRangeSelection(selection)) {\n const node = getSelectedNode(selection)\n const parent = node.getParent()\n\n if ($isLinkNode(parent)) {\n setLinkUrl(parent.getURL())\n } else if ($isLinkNode(node)) {\n setLinkUrl(node.getURL())\n } else {\n setLinkUrl('')\n }\n }\n\n const editorElem = editorRef.current\n const nativeSelection = window.getSelection()\n const { activeElement } = document\n\n if (editorElem === null) {\n return\n }\n\n const rootElement = editor.getRootElement()\n\n if (\n selection !== null\n && !nativeSelection.isCollapsed\n && rootElement !== null\n && rootElement.contains(nativeSelection.anchorNode)\n ) {\n const domRange = nativeSelection.getRangeAt(0)\n let rect\n\n if (nativeSelection.anchorNode === rootElement) {\n let inner = rootElement\n while (inner.firstElementChild != null) {\n inner = inner.firstElementChild\n }\n rect = inner.getBoundingClientRect()\n } else {\n rect = domRange.getBoundingClientRect()\n }\n\n if (!mouseDownRef.current) {\n setFloatingElemPosition(rect, editorElem, rootElement.parentElement)\n }\n\n setLastSelection(selection)\n } else if (!activeElement || activeElement.className !== 'link-input') {\n setFloatingElemPosition(null, editorElem, rootElement.parentElement)\n setLastSelection(null)\n setEditMode(false)\n setLinkUrl('')\n }\n }, [editor])\n\n useEffect(() => {\n const removeUpdateListener = editor.registerUpdateListener(({ editorState }) => {\n editorState.read(() => {\n updateLinkEditor()\n })\n })\n\n const removeCommandListener = editor.registerCommand(\n SELECTION_CHANGE_COMMAND,\n () => {\n updateLinkEditor()\n\n return true\n },\n COMMAND_PRIORITY_LOW\n )\n\n return () => {\n removeUpdateListener()\n removeCommandListener()\n }\n }, [editor, updateLinkEditor])\n\n useEffect(() => {\n editor.getEditorState().read(() => {\n updateLinkEditor()\n })\n }, [editor, updateLinkEditor])\n\n useEffect(() => {\n if (isEditMode && inputRef.current) {\n inputRef.current.focus()\n }\n }, [isEditMode])\n\n return (\n {\n editorRef.current = el; toolbarTrackerRef.current = el\n }}\n className=\"link-editor\"\n >\n {isEditMode ? (\n {\n setLinkUrl(event.target.value)\n }}\n onKeyDown={event => {\n if (event.key === 'Enter') {\n event.preventDefault()\n\n if (lastSelection !== null) {\n if (linkUrl !== '') {\n editor.dispatchCommand(TOGGLE_LINK_COMMAND, { url: linkUrl, target: '_blank' })\n }\n\n setEditMode(false)\n }\n } else if (event.key === 'Escape') {\n event.preventDefault()\n setEditMode(false)\n }\n }}\n />\n ) : (\n
    \n \n {linkUrl}\n \n
    \n event.preventDefault()}\n onClick={() => {\n setEditMode(true)\n }}\n tabIndex={0}\n title={i18n.get('edit')}\n >\n \n \n event.preventDefault()}\n onClick={() => {\n editor.dispatchCommand(TOGGLE_LINK_COMMAND, null);\n }}\n tabIndex={0}\n title={i18n.get('remove')}\n >\n \n \n
    \n
    \n )}\n \n )\n}\n\nconst LinkFormat = ({ toolbarTrackerRef, editor, isLink }) => {\n const i18n = useI18n()\n\n const [linkUrl, setLinkUrl] = useState('')\n const [isEditMode, setEditMode] = useState(false)\n const [lastSelection, setLastSelection] = useState(null)\n\n const anchorElem = editor.getRootElement() ? editor.getRootElement().parentElement : null\n\n const insertLink = useCallback(() => {\n if (!isLink) {\n editor.dispatchCommand(TOGGLE_LINK_COMMAND, 'https://')\n } else {\n editor.dispatchCommand(TOGGLE_LINK_COMMAND, null)\n }\n }, [editor, isLink])\n\n return (\n <>\n \n \n \n {isLink && createPortal(\n ,\n anchorElem\n )}\n \n )\n}\n\nexport default LinkFormat\n","/* eslint-disable */\nimport React from 'react'\nimport PropTypes from 'prop-types'\n\nimport Divider from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/ui/divider'\nimport UndoRedo from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/toolbar_plugin/toolbar_options/options/UndoRedo'\nimport TextFormat from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/toolbar_plugin/toolbar_options/options/TextFormat'\nimport TextStyle from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/toolbar_plugin/toolbar_options/options/TextStyle'\nimport LinkFormat from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/toolbar_plugin/toolbar_options/options/LinkFormat'\n\nconst ToolbarOptions = ({\n editor,\n toolbarTrackerRef,\n canUndo,\n canRedo,\n blockType,\n isLink,\n isBold,\n isItalic,\n isUnderline,\n isEditable,\n disableTextFormat\n}) => {\n const options = [\n {\n name: 'UndoRedo',\n component: \n },\n {\n name: 'TextFormat',\n enabled: !disableTextFormat,\n component: \n },\n {\n name: 'TextStyle',\n component: \n },\n {\n name: 'LinkFormat',\n component: \n }\n ]\n\n return options.map((opt, index) => {\n if (opt.enabled === false) return null\n\n return (\n \n {opt.component}\n \n \n )\n })\n}\n\nToolbarOptions.propTypes = {\n editor: PropTypes.object.isRequired,\n toolbarTrackerRef: PropTypes.object.isRequired,\n canUndo: PropTypes.bool.isRequired,\n canRedo: PropTypes.bool.isRequired,\n blockType: PropTypes.string.isRequired,\n isLink: PropTypes.bool.isRequired,\n isBold: PropTypes.bool.isRequired,\n isItalic: PropTypes.bool.isRequired,\n isUnderline: PropTypes.bool.isRequired,\n isEditable: PropTypes.bool,\n disableTextFormat: PropTypes.bool\n}\n\nexport default ToolbarOptions\n","/* eslint-disable */\nimport React, { useCallback, useEffect, useRef, useState } from 'react'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'\n\nimport {\n CAN_REDO_COMMAND,\n CAN_UNDO_COMMAND,\n SELECTION_CHANGE_COMMAND,\n COMMAND_PRIORITY_CRITICAL,\n $getSelection,\n $isRangeSelection,\n $isRootOrShadowRoot,\n $isElementNode\n} from 'lexical'\n\nimport {\n $isLinkNode\n} from '@lexical/link'\n\nimport {\n $isListNode,\n ListNode\n} from '@lexical/list'\n\nimport {\n $isHeadingNode\n} from '@lexical/rich-text'\n\nimport {\n $findMatchingParent,\n $getNearestNodeOfType,\n mergeRegister\n} from '@lexical/utils'\n\nimport ToolbarOptions from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/toolbar_plugin/toolbar_options'\n\nimport { getSelectedNode } from 'utils/lexicalEditorHelper'\n\nimport './ToolbarPlugin.css'\n\nconst ToolbarPlugin = (props) => {\n const toolbarRef = useRef(null)\n\n const [editor] = useLexicalComposerContext()\n\n const [activeEditor, setActiveEditor] = useState(editor)\n const [canUndo, setCanUndo] = useState(false)\n const [canRedo, setCanRedo] = useState(false)\n const [blockType, setBlockType] = useState('extended-paragraph')\n const [isLink, setIsLink] = useState(false)\n const [isBold, setIsBold] = useState(false)\n const [isItalic, setIsItalic] = useState(false)\n const [isUnderline, setIsUnderline] = useState(false)\n const [isEditable, setIsEditable] = useState(() => editor.isEditable())\n\n const updateToolbar = useCallback(() => {\n const selection = $getSelection()\n\n if ($isRangeSelection(selection)) {\n const anchorNode = selection.anchor.getNode()\n\n let element = anchorNode.getKey() === 'root'\n ? anchorNode\n : $findMatchingParent(anchorNode, e => {\n const parent = e.getParent()\n\n return parent !== null && $isRootOrShadowRoot(parent)\n })\n\n if (element === null) {\n element = anchorNode.getTopLevelElementOrThrow()\n }\n\n const elementKey = element.getKey()\n const elementDOM = activeEditor.getElementByKey(elementKey)\n\n setIsBold(selection.hasFormat('bold'))\n setIsItalic(selection.hasFormat('italic'))\n setIsUnderline(selection.hasFormat('underline'))\n\n const node = getSelectedNode(selection)\n const parent = node.getParent()\n\n if ($isLinkNode(parent) || $isLinkNode(node)) {\n setIsLink(true)\n } else {\n setIsLink(false)\n }\n\n if (elementDOM !== null) {\n if ($isListNode(element)) {\n const parentList = $getNearestNodeOfType(anchorNode, ListNode)\n const type = parentList ? parentList.getTag() : element.getTag()\n setBlockType(type)\n } else if ($isHeadingNode(parent)) {\n setBlockType(parent.getTag())\n } else {\n const type = $isHeadingNode(element)\n ? element.getTag()\n : element.getType()\n setBlockType(type)\n }\n }\n }\n }, [activeEditor])\n\n useEffect(() => editor.registerCommand(\n SELECTION_CHANGE_COMMAND,\n (_payload, newEditor) => {\n updateToolbar()\n setActiveEditor(newEditor)\n\n return false\n },\n COMMAND_PRIORITY_CRITICAL\n ), [editor, updateToolbar])\n\n useEffect(() => mergeRegister(\n editor.registerEditableListener(editable => {\n setIsEditable(editable)\n }),\n editor.registerUpdateListener(({ editorState }) => {\n editorState.read(() => {\n updateToolbar()\n })\n }),\n editor.registerCommand(\n CAN_UNDO_COMMAND,\n payload => {\n setCanUndo(payload)\n\n return false\n },\n COMMAND_PRIORITY_CRITICAL\n ),\n editor.registerCommand(\n CAN_REDO_COMMAND,\n payload => {\n setCanRedo(payload)\n\n return false\n },\n COMMAND_PRIORITY_CRITICAL\n )\n ), [updateToolbar, activeEditor, editor])\n\n return (\n \n \n \n )\n}\n\nexport default ToolbarPlugin\n","import React, { useEffect, useState, useCallback } from 'react'\nimport PropTypes from 'prop-types'\n\nimport { $generateHtmlFromNodes } from '@lexical/html'\n\nimport { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin'\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'\n\nimport {\n replaceHTMLEntities,\n importNodesAsPlainText,\n importNodesAsHTML\n} from 'utils/lexicalEditorHelper'\n\nconst StatePlugin = ({ usePlainText, editorState, setEditorState }) => {\n const [editor] = useLexicalComposerContext()\n const [isFirstRender, setIsFirstRender] = useState(true)\n const [isFirstRenderEditor, setIsFirstRenderEditor] = useState(true)\n editor.isFirstRender = isFirstRenderEditor\n\n useEffect(() => {\n // Using `isUserInput` in case we want to reinitialize the editor when the state is updated not from user input.\n let value\n let isUserInput\n let isHTMLMode\n\n if (typeof editorState === 'object') {\n value = editorState.value\n isUserInput = editorState.isUserInput\n isHTMLMode = editorState.isHTML\n } else {\n value = editorState\n isUserInput = true\n isHTMLMode = !usePlainText\n }\n\n if (isFirstRender || !isUserInput) {\n setIsFirstRender(false)\n\n editor.update(() => {\n // Set the content of the editor as plain text or parse it as html.\n if (isHTMLMode) {\n importNodesAsHTML(editor, value, isUserInput)\n } else {\n importNodesAsPlainText(editor, value, isUserInput)\n }\n\n setIsFirstRenderEditor(false)\n }, { tag: 'skip-scroll-into-view' })\n }\n }, [isFirstRender, editorState, editor])\n\n const onChange = useCallback(\n (_editorState, _editor, tags) => {\n // This callback is invoked always when the editor's state is changed so it can update the external state provided.\n editor.update(() => {\n editor.isExport = true\n let html = $generateHtmlFromNodes(editor, null)\n html = replaceHTMLEntities(html)\n setEditorState(html, editor, tags)\n editor.isExport = false\n })\n }, [setEditorState]\n )\n\n return (\n \n )\n}\n\nStatePlugin.defaultProps = {\n usePlainText: false\n}\n\nStatePlugin.propTypes = {\n usePlainText: PropTypes.bool,\n editorState: PropTypes.oneOfType([\n PropTypes.string.isRequired,\n PropTypes.object.isRequired\n ]),\n\n setEditorState: PropTypes.func.isRequired\n}\n\nexport default StatePlugin\n","import { useEffect } from 'react'\nimport PropTypes from 'prop-types'\n\nimport { $getSelection, $isRangeSelection, RootNode } from 'lexical'\n\nimport { trimTextContentFromAnchor } from '@lexical/selection'\n\nimport { $restoreEditorState } from '@lexical/utils'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'\n\nconst MaxLengthPlugin = ({ maxLength }) => {\n const [editor] = useLexicalComposerContext()\n\n useEffect(() => {\n let lastRestoredEditorState = null\n\n return editor.registerNodeTransform(RootNode, rootNode => {\n const selection = $getSelection()\n\n if (!$isRangeSelection(selection) || !selection.isCollapsed()) {\n return\n }\n\n const prevEditorState = editor.getEditorState()\n const prevTextContentSize = prevEditorState.read(() => rootNode.getTextContentSize())\n const textContentSize = rootNode.getTextContentSize()\n\n if (prevTextContentSize !== textContentSize) {\n const delCount = textContentSize - maxLength\n const { anchor } = selection\n\n if (delCount > 0) {\n // Restore the old editor state instead if the last text content was already at the limit.\n if (\n prevTextContentSize === maxLength\n && lastRestoredEditorState !== prevEditorState\n ) {\n lastRestoredEditorState = prevEditorState\n $restoreEditorState(editor, prevEditorState)\n } else {\n trimTextContentFromAnchor(editor, anchor, delCount)\n }\n }\n }\n })\n }, [editor, maxLength])\n\n return null\n}\n\nMaxLengthPlugin.propTypes = {\n maxLength: PropTypes.number.isRequired\n}\n\nexport default MaxLengthPlugin\n","/* eslint-disable */\nimport { LinkNode } from '@lexical/link'\n\nexport class ExtendedLinkNode extends LinkNode {\n static getType() {\n return 'extended-link'\n }\n\n static clone(node) {\n return new ExtendedLinkNode(node.__url, {}, node.__key)\n }\n\n exportDOM(editor) {\n const element = super.createDOM(editor._config, editor)\n\n // Remove additional class and dir attribute on exported html.\n element.removeAttribute('dir')\n element.removeAttribute('class')\n element.removeAttribute('target')\n element.removeAttribute('rel')\n\n return {\n element\n }\n }\n\n static importJSON(serializedNode) {\n return LinkNode.importJSON(serializedNode)\n }\n\n exportJSON() {\n return {\n ...super.exportJSON(),\n type: 'extended-link',\n version: 1\n }\n }\n}","import { useEffect } from 'react'\n\nimport {\n $createTextNode, $getRoot\n} from 'lexical'\n\nimport { mergeRegister } from '@lexical/utils'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'\nimport { ExtendedLinkNode } from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/nodes/ExtendedLinkNode'\n\nconst EmptyLinkPlugin = () => {\n const [editor] = useLexicalComposerContext()\n\n useEffect(() => mergeRegister(\n editor.registerNodeTransform(ExtendedLinkNode, linkNode => {\n if (linkNode) {\n const text = linkNode.getTextContent()\n\n if (text && (/^\\s*$/g.test(text))) {\n const textNode = $createTextNode(text)\n linkNode.replace(textNode)\n $getRoot().selectStart()\n }\n }\n })\n ), [editor])\n\n return null\n}\n\nexport default EmptyLinkPlugin\n","/* global DOMParser */\nimport { useEffect } from 'react'\n\nimport {\n $getSelection,\n $isRangeSelection,\n KEY_ENTER_COMMAND,\n PASTE_COMMAND,\n COMMAND_PRIORITY_LOW\n} from 'lexical'\n\nimport { $generateNodesFromDOM } from '@lexical/html'\nimport { $createListNode } from '@lexical/list'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'\n\nconst StoryTextPlugin = () => {\n const [editor] = useLexicalComposerContext()\n\n const handlePasteCommand = () => editor.registerCommand(\n PASTE_COMMAND,\n event => {\n const { clipboardData } = event\n const html = clipboardData.getData('text/html')\n\n if (html) {\n event.preventDefault()\n event.stopPropagation()\n\n const parser = new DOMParser()\n const dom = parser.parseFromString(html, 'text/html')\n\n const lexicalNodes = $generateNodesFromDOM(editor, dom)\n\n editor.update(() => {\n const processedNodes = []\n let listItemNodes = []\n\n const flattenListNodes = node => {\n if (node.getType() === 'extended-listitem') {\n const firstChild = node.getFirstChild()\n\n if (firstChild && firstChild.getType() === 'extended-list') {\n const childNodes = firstChild.getChildren()\n childNodes.forEach(child => {\n flattenListNodes(child)\n })\n } else {\n listItemNodes.push(node.getWritable())\n }\n } else {\n listItemNodes.push(node.getWritable())\n }\n }\n\n lexicalNodes.forEach(node => {\n if (node.getType() === 'extended-list') {\n const listNode = $createListNode()\n\n const childNodes = node.getChildren()\n childNodes.forEach(child => {\n flattenListNodes(child)\n })\n\n listNode.append(...listItemNodes)\n listItemNodes = []\n\n processedNodes.push(listNode)\n } else {\n processedNodes.push(node.getWritable())\n }\n })\n\n const selection = $getSelection()\n\n if (selection) {\n selection.insertNodes(processedNodes)\n }\n })\n\n return true\n }\n\n return false\n },\n COMMAND_PRIORITY_LOW\n )\n\n useEffect(() => {\n editor.registerCommand(\n KEY_ENTER_COMMAND,\n event => {\n const selection = $getSelection()\n\n if ($isRangeSelection(selection)) {\n if (event.shiftKey) {\n event.preventDefault()\n event.stopPropagation()\n\n return true\n }\n }\n\n return true\n },\n COMMAND_PRIORITY_LOW\n )\n }, [editor])\n\n useEffect(() => {\n handlePasteCommand()\n }, [editor])\n\n return null\n}\n\nexport default StoryTextPlugin\n","/* global DOMParser */\nimport { useEffect } from 'react'\n\nimport {\n $getSelection,\n $isRangeSelection,\n $createTextNode,\n $createLineBreakNode,\n KEY_ENTER_COMMAND,\n PASTE_COMMAND,\n COMMAND_PRIORITY_LOW\n} from 'lexical'\n\nimport { $generateNodesFromDOM } from '@lexical/html'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'\n\nconst ContactTextPlugin = () => {\n const [editor] = useLexicalComposerContext()\n\n const handleEnterCommand = () => editor.registerCommand(\n KEY_ENTER_COMMAND,\n event => {\n const selection = $getSelection()\n\n if ($isRangeSelection(selection)) {\n event.preventDefault()\n editor.update(() => {\n selection.insertNodes([$createLineBreakNode()])\n })\n }\n\n return true\n },\n COMMAND_PRIORITY_LOW\n )\n\n const handlePasteCommand = () => editor.registerCommand(\n PASTE_COMMAND,\n event => {\n const { clipboardData } = event\n const html = clipboardData.getData('text/html')\n\n if (html) {\n event.preventDefault()\n event.stopPropagation()\n\n const parser = new DOMParser()\n const dom = parser.parseFromString(html, 'text/html')\n\n const lexicalNodes = $generateNodesFromDOM(editor, dom)\n\n editor.update(() => {\n const processedNodes = []\n\n lexicalNodes.forEach((node, index) => {\n if (node.getType() === 'extended-paragraph' || node.getType() === 'extended-list') {\n const childNodes = node.getChildren()\n childNodes.forEach(child => {\n if (node.getType() === 'extended-paragraph') {\n processedNodes.push(child)\n } else if (node.getType() === 'extended-list') {\n child.getChildren().forEach(listItemChild => {\n let textNode = $createTextNode(listItemChild.getTextContent())\n\n if (listItemChild.hasFormat('bold')) {\n textNode = textNode.toggleFormat('bold')\n }\n\n if (listItemChild.hasFormat('italic')) {\n textNode = textNode.toggleFormat('italic')\n }\n\n if (listItemChild.hasFormat('underline')) {\n textNode = textNode.toggleFormat('underline')\n }\n\n processedNodes.push(textNode)\n })\n\n if (child.getNextSibling()) {\n processedNodes.push($createLineBreakNode())\n }\n }\n })\n\n if (index < lexicalNodes.length - 1) {\n processedNodes.push($createLineBreakNode())\n }\n } else {\n processedNodes.push(node)\n }\n })\n\n const selection = $getSelection()\n\n if (selection) {\n selection.insertNodes(processedNodes)\n }\n })\n\n return true\n }\n\n return false\n },\n COMMAND_PRIORITY_LOW\n )\n\n useEffect(() => {\n handleEnterCommand()\n handlePasteCommand()\n }, [editor])\n\n return null\n}\n\nexport default ContactTextPlugin\n","import React, { useRef } from 'react'\nimport PropTypes from 'prop-types'\n\nimport LexicalErrorBoundary from '@lexical/react/LexicalErrorBoundary'\n\nimport { LexicalComposer } from '@lexical/react/LexicalComposer'\nimport { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin'\nimport { LinkPlugin } from '@lexical/react/LexicalLinkPlugin'\nimport { ContentEditable } from '@lexical/react/LexicalContentEditable'\nimport { HistoryPlugin } from '@lexical/react/LexicalHistoryPlugin'\nimport { ListPlugin } from '@lexical/react/LexicalListPlugin'\nimport { EditorRefPlugin } from '@lexical/react/LexicalEditorRefPlugin'\n\nimport ToolbarPlugin from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/toolbar_plugin'\nimport StatePlugin from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/state_plugin'\n// Temporary disabled due to the issue with the plugin. Also needs to be adjusted to work only when user input is detected.\n// import AutoLinkPlugin from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/auto_link_plugin'\nimport MaxLengthPlugin from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/max_length_plugin'\nimport EmptyLinkPlugin from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/empty_link_plugin'\nimport StoryTextPlugin from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/story_text_plugin'\nimport ContactTextPlugin from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/contact_text_plugin'\n\nimport { editorConfig } from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte'\n\n// A helper plugin for debugging which display the editor's nodes as tree structure.\n// import TreeViewPlugin from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/plugins/tree_view_plugin'\n\nimport './RichTextEditor.css'\n\nconst Placeholder = () =>
    \n\nconst RichTextEditor = ({\n editorRef,\n editorState,\n maxLength,\n editorContainerStyle,\n editorStyle,\n editorInnerStyle,\n editorInputStyle,\n setEditorState,\n usePlainText,\n storyTextField,\n contactTextField,\n ...props\n}) => {\n const toolbarTrackerRef = useRef()\n\n return (\n \n
    \n \n
    \n \n \n
    \n )}\n placeholder={}\n ErrorBoundary={LexicalErrorBoundary}\n />\n \n {editorRef && }\n \n \n {/* */}\n \n {maxLength && }\n \n {storyTextField && }\n {contactTextField && }\n
    \n {/* */}\n
    \n \n )\n}\n\nRichTextEditor.propTypes = {\n editorRef: PropTypes.object,\n editorState: PropTypes.oneOfType([\n PropTypes.string.isRequired,\n PropTypes.object.isRequired\n ]),\n maxLength: PropTypes.number,\n editorContainerStyle: PropTypes.string,\n editorStyle: PropTypes.string,\n editorInnerStyle: PropTypes.string,\n editorInputStyle: PropTypes.string,\n usePlainText: PropTypes.bool,\n storyTextField: PropTypes.bool,\n contactTextField: PropTypes.bool,\n\n setEditorState: PropTypes.func.isRequired\n}\n\nexport default RichTextEditor\n","const editorTheme = {\n paragraph: 'editor-paragraph',\n list: {\n ul: 'editor-listitem-ul',\n ol: 'editor-listitem-ol',\n listitem: 'editor-listitem',\n listitemChecked: 'editor-listitem-checked',\n listitemUnchecked: 'editor-listitem-unchecked',\n nested: {\n listitem: 'editor-listitem-nested'\n },\n olDepth: [\n 'editor-listitem-ol1',\n 'editor-listitem-ol2',\n 'editor-listitem-ol3',\n 'editor-listitem-ol4',\n 'editor-listitem-ol5'\n ]\n },\n link: 'editor-link',\n text: {\n bold: 'editor-text-bold',\n italic: 'editor-text-italic',\n underline: 'editor-text-underline'\n }\n}\n\nexport default editorTheme\n","/* eslint-disable */\nimport { ParagraphNode } from 'lexical'\n\nexport class ExtendedParagraphNode extends ParagraphNode {\n constructor(key) {\n super(key)\n }\n\n static getType() {\n return 'extended-paragraph'\n }\n\n static clone(node) {\n return new ExtendedParagraphNode(node.__key)\n }\n\n exportDOM(editor) {\n let element = super.createDOM(editor._config, editor)\n\n // Remove additional class and dir attribute on exported html.\n element.removeAttribute('dir')\n element.removeAttribute('class')\n\n return {\n element\n }\n }\n\n static importJSON(serializedNode) {\n return ParagraphNode.importJSON(serializedNode)\n }\n\n exportJSON() {\n return {\n ...super.exportJSON(),\n type: 'extended-paragraph',\n version: 1\n }\n }\n}","/* eslint-disable */\nimport {\n $createTextNode,\n TextNode\n} from 'lexical'\n\nconst wrapElement = (element, tag) => {\n let newElement = document.createElement(tag)\n newElement.appendChild(element)\n return newElement\n}\n\nconst adjustFormat = (node, element) => {\n let anyFormattingFixesDone = false\n\n if (node.hasFormat('bold')) {\n element = wrapElement(element, 'b')\n anyFormattingFixesDone = true\n }\n if (node.hasFormat('italic')) {\n element = wrapElement(element, 'i')\n anyFormattingFixesDone = true\n }\n if (node.hasFormat('underline')) {\n element = wrapElement(element, 'u')\n anyFormattingFixesDone = true\n }\n\n if (anyFormattingFixesDone) {\n element.innerHTML = element.innerHTML.replace(/<(?:em|span|strong).+?>(.+?)<\\/.+?>/gm, '$1')\n\n if (node.getStyle() !== '') {\n element.style = node.getStyle()\n }\n }\n\n return element\n}\n\nexport class ExtendedTextNode extends TextNode {\n constructor(text, key) {\n super(text, key)\n this.__stopTransform = false\n }\n\n static getType() {\n return \"extended-text\"\n }\n\n static clone(node) {\n return new ExtendedTextNode(node.__text, node.__key)\n }\n\n createDOM(config) {\n const nodeText = this.getTextContent()\n const nodeFormat = this.getFormat()\n\n // Remove formatting if text is blank.\n if (nodeText && (/^\\s*$/g.test(nodeText)) && nodeFormat !== 0) {\n this.setFormat(0)\n }\n\n let element = super.createDOM(config)\n\n return element\n }\n\n exportDOM(editor) {\n let element = super.createDOM(editor._config, editor)\n\n if (element) {\n // Removes tags if element has no formatting.\n if (this.getFormat() === 0 && this.getStyle() === '') {\n let textNode = document.createTextNode(element.textContent)\n let fragment = document.createDocumentFragment()\n fragment.appendChild(textNode)\n element = fragment\n }\n\n // Removes nested tags for bold, italic, underline.\n if (this.getFormat() !== 0) {\n element = adjustFormat(this, element)\n }\n }\n\n if (element && !(element instanceof DocumentFragment)) {\n const text = element.textContent\n\n if (text && (/^\\s*$/g.test(text))) {\n let textNode = document.createTextNode(text)\n let fragment = document.createDocumentFragment()\n fragment.appendChild(textNode)\n element = fragment\n }\n }\n\n return {\n element\n }\n }\n\n static importJSON(serializedNode) {\n const node = $createTextNode(serializedNode.text)\n node.setFormat(serializedNode.format)\n node.setDetail(serializedNode.detail)\n node.setMode(serializedNode.mode)\n node.setStyle(serializedNode.style)\n node.setStopTransform(serializedNode.stopTransform)\n return node\n }\n\n exportJSON() {\n return {\n detail: this.getDetail(),\n format: this.getFormat(),\n mode: this.getMode(),\n style: this.getStyle(),\n text: this.getTextContent(),\n stopTransform: this.getStopTransform(),\n type: 'extended-text',\n version: 1\n }\n }\n\n isSimpleText() {\n return this.__type === 'extended-text' && this.__mode === 0\n }\n\n getStopTransform() {\n return this.__stopTransform\n }\n\n setStopTransform(stop) {\n const self = this.getWritable()\n self.__stopTransform = stop\n }\n}","/* eslint-disable */\nimport { AutoLinkNode } from '@lexical/link'\n\nexport class ExtendedAutoLinkNode extends AutoLinkNode {\n static getType() {\n return 'extended-autolink'\n }\n\n static clone(node) {\n return new ExtendedAutoLinkNode(node.__url, {}, node.__key)\n }\n\n exportDOM(editor) {\n const element = super.createDOM(editor._config, editor)\n\n // Remove additional class and dir attribute on exported html.\n element.removeAttribute('dir')\n element.removeAttribute('class')\n\n return {\n element\n }\n }\n\n static importJSON(serializedNode) {\n return AutoLinkNode.importJSON(serializedNode)\n }\n\n exportJSON() {\n return {\n ...super.exportJSON(),\n type: 'extended-autolink',\n version: 1\n }\n }\n}","/* eslint-disable */\nimport { ListNode } from '@lexical/list'\n\nexport class ExtendedListNode extends ListNode {\n static getType() {\n return 'extended-list'\n }\n\n static clone(node) {\n return new ExtendedListNode(node.__listType, node.__start, node.__key)\n }\n\n exportDOM(editor) {\n const element = super.createDOM(editor._config, editor)\n\n // Remove additional class and dir attribute on exported html.\n element.removeAttribute('dir')\n element.removeAttribute('class')\n\n return {\n element\n }\n }\n\n static importJSON(serializedNode) {\n return ListNode.importJSON(serializedNode)\n }\n\n exportJSON() {\n return {\n ...super.exportJSON(),\n type: 'extended-list',\n version: 1\n }\n }\n}","/* eslint-disable */\nimport { ListItemNode } from '@lexical/list'\n\nexport class ExtendedListItemNode extends ListItemNode {\n static getType() {\n return 'extended-listitem'\n }\n\n static clone(node) {\n return new ExtendedListItemNode(node.__value, node.__checked, node.__key)\n }\n\n exportDOM(editor) {\n const element = super.createDOM(editor._config, editor)\n\n // Remove additional class, dir and value attribute on exported html.\n element.removeAttribute('dir')\n element.removeAttribute('class')\n element.removeAttribute('value')\n\n return {\n element\n }\n }\n\n static importJSON(serializedNode) {\n return ListItemNode.importJSON(serializedNode)\n }\n\n exportJSON() {\n return {\n ...super.exportJSON(),\n type: 'extended-listitem',\n version: 1\n }\n }\n}","/* eslint-disable */\nimport { AutoLinkNode, LinkNode } from '@lexical/link'\nimport { ParagraphNode, TextNode, LineBreakNode } from 'lexical'\nimport { ListItemNode, ListNode } from '@lexical/list';\n\nimport EditorTheme from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/themes/EditorTheme'\nimport { ExtendedParagraphNode } from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/nodes/ExtendedParagraphNode'\nimport { ExtendedTextNode } from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/nodes/ExtendedTextNode'\nimport { ExtendedLinkNode } from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/nodes/ExtendedLinkNode'\nimport { ExtendedAutoLinkNode } from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/nodes/ExtendedAutoLinkNode'\nimport { ExtendedListNode } from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/nodes/ExtendedListNode'\nimport { ExtendedListItemNode } from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte/nodes/ExtendedListItemNode'\n\nconst editorConfig = () => {\n return {\n theme: EditorTheme,\n readOnly: false,\n onError(error) {\n throw error\n },\n nodes: [\n LineBreakNode,\n ExtendedListNode,\n ExtendedListItemNode,\n ExtendedLinkNode,\n ExtendedAutoLinkNode,\n ExtendedParagraphNode,\n ExtendedTextNode,\n { replace: ParagraphNode, with: () => new ExtendedParagraphNode() },\n { replace: TextNode, with: node => new ExtendedTextNode(node.__text) },\n { replace: LinkNode, with: node => new ExtendedLinkNode(node.__url) },\n { replace: AutoLinkNode, with: node => new ExtendedAutoLinkNode(node.__url) },\n { replace: ListNode, with: node => new ExtendedListNode(node.__listType, node.__start) },\n { replace: ListItemNode, with: node => new ExtendedListItemNode(node.__value, node.__checked) }\n ]\n }\n}\n\nexport default editorConfig\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Box,\n Dialog,\n Icon,\n List,\n ListItem,\n ListItemIcon,\n ListItemText,\n Paper,\n Typography,\n Zoom\n} from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\nimport LightbulbRoundedIcon from '@mui/icons-material/LightbulbRounded'\nimport ContactEmergencyRoundedIcon from '@mui/icons-material/ContactEmergencyRounded'\nimport ImageRoundedIcon from '@mui/icons-material/ImageRounded'\nimport HealthAndSafetyRoundedIcon from '@mui/icons-material/HealthAndSafetyRounded'\nimport ReportOffRoundedIcon from '@mui/icons-material/ReportOffRounded'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n contentContainer: {\n width: '100%',\n padding: 20,\n [theme.breakpoints.down('sm')]: {\n overflowY: 'auto',\n width: '100%',\n height: '100%'\n }\n },\n titleContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n marginBottom: 20\n },\n closeButton: {\n color: theme.palette.common.grey\n },\n title: {\n display: 'flex',\n gap: 10,\n alignItems: 'center'\n },\n content: {\n padding: 40\n },\n itemTitle: {\n fontWeight: 500\n }\n}))\n\nconst OtsGuidelinesDialog = ({\n open,\n onClose\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const handleClose = () => {\n onClose()\n }\n\n return (\n \n \n \n \n \n {i18n.get('press_release_guidelines')}\n \n \n \n \n \n \n \n \n \n \n {i18n.get('ots_guidelines_note')}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nOtsGuidelinesDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired\n}\n\nexport default OtsGuidelinesDialog\n","import React, { useState, useRef } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { orange } from '@mui/material/colors'\nimport { lighten, darken } from '@mui/material/styles'\nimport { Box, TextField, Typography } from '@mui/material'\n\nimport WarningAmberIcon from '@mui/icons-material/WarningAmber'\n\nimport { RichTextEditor } from 'components/content_desk_new/contents/content_edit_dialog/ots_editor/rte'\nimport OtsGuidelinesDialog from 'components/content_desk_new/ots_guidelines_dialog/OtsGuidelinesDialog'\n\nimport { Button } from 'containers/themed'\nimport FilesGallery from 'containers/content_desk_new/contents/content_edit_dialog/attachments/FilesGallery'\nimport ImagePreviewDialog from 'containers/content_desk_new/contents/content_edit_dialog/attachments/ImagePreviewDialog'\n\nimport { removeHtmlTags } from 'utils/html'\nimport { emailExtractImageLinks } from 'utils/content_desk'\nimport { removeEmptyRootParagraph, removeInvalidTagsForOts } from 'utils/lexicalEditorHelper'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n padding: '40px 20px 0px 20px'\n },\n editorContainerStyle: {\n height: '100%',\n margin: '10px 0 !important'\n },\n textGuidelineContainer: {\n display: 'flex',\n justifyContent: 'space-between'\n },\n textEditorInnerStyle: {\n height: '350px',\n '* p': {\n marginBottom: '0.8rem'\n },\n '* p:last-child': {\n marginBottom: 0\n },\n '* ul li': {\n listStyleType: 'disc'\n },\n '* ol li': {\n listStyleType: 'inherit'\n },\n '* td li': {\n marginLeft: '0px !important'\n },\n '* pre::-webkit-scrollbar': {\n background: 'transparent',\n width: '10px'\n },\n '* pre::-webkit-scrollbar-thumb': {\n background: '#999'\n }\n },\n contactEditorInnerStyle: {\n height: '150px'\n },\n sectionLabel: {\n fontSize: '18px',\n fontWeight: 'bold'\n },\n imageInfoContainer: {\n display: 'flex',\n alignItems: 'flex-end',\n justifyContent: 'space-between',\n gap: '10px'\n },\n warningContainer: {\n display: 'flex',\n width: '100%',\n gap: '15px',\n backgroundColor: lighten(orange[50], 0.5),\n border: '1px solid',\n borderRadius: '5px',\n borderColor: orange[800],\n padding: '20px'\n },\n titleLabel: {\n fontSize: '18px',\n fontWeight: '500',\n color: darken(orange[800], 0.5),\n marginBottom: '5px'\n },\n infoLabel: {\n fontSize: '14px',\n color: theme.palette.text.secondary\n },\n warningIcon: {\n color: orange[800]\n }\n}))\n\nconst OtsEditor = ({\n contentFormData,\n onChange\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n const [guidelinesDialogOpen, setGuidelinesDialogOpen] = useState(false)\n\n const handleGuidelinedialogClose = () => {\n setGuidelinesDialogOpen(false)\n }\n\n const textFirstRender = useRef(true)\n const contactFirstRender = useRef(true)\n\n const title = contentFormData.get('title')\n const otsContent = contentFormData.get('otsContent')\n let html = ''\n\n if (otsContent) {\n html = otsContent.get('body')\n }\n\n const images = emailExtractImageLinks(html)\n\n const [showAllImages, setShowAllImages] = useState(images.length === 0)\n\n const body = JSON.parse(contentFormData.get('body'))\n\n const { location } = body\n const { text } = body\n const { contact } = body\n\n const storyTextAllowedTags = ['P', 'I', 'B', 'U', 'STRONG', 'EM', 'A', 'UL', 'OL', 'LI']\n const contactTextAllowedTags = ['P', 'I', 'B', 'U', 'STRONG', 'EM', 'A', 'BR']\n\n const handleChange = (field, value) => {\n let updatedText = removeEmptyRootParagraph(value)\n\n let allowedTags = []\n\n if (field === 'text') {\n allowedTags = storyTextAllowedTags\n } else if (field === 'contact') {\n allowedTags = contactTextAllowedTags\n }\n\n updatedText = removeInvalidTagsForOts(updatedText, allowedTags)\n const newBody = { ...body, [field]: updatedText }\n\n // Skip updating the body on the first render because of isDirty\n if (textFirstRender.current && field === 'text') {\n textFirstRender.current = false\n\n return\n }\n\n if (contactFirstRender.current && field === 'contact') {\n contactFirstRender.current = false\n\n return\n }\n\n const plainText = `${newBody.location}\\n${removeHtmlTags(newBody.text)}\\n${removeHtmlTags(newBody.contact)}`\n\n onChange({ body: JSON.stringify(newBody) })\n onChange({ plainText })\n }\n\n return (\n \n onChange({ title: e.target.value })}\n />\n

    \n handleChange('location', e.target.value)}\n label={i18n.get('location')}\n />\n

    \n \n \n {i18n.get('text')}\n \n setGuidelinesDialogOpen(true)}\n >\n {i18n.get('press_release_guidelines')}\n \n \n

    '}\n setEditorState={value => handleChange('text', value)}\n editorContainerStyle={classes.editorContainerStyle}\n editorInnerStyle={classes.textEditorInnerStyle}\n />\n
    \n \n {i18n.get('contact')}\n \n

    '}\n setEditorState={value => handleChange('contact', value)}\n editorContainerStyle={classes.editorContainerStyle}\n editorInnerStyle={classes.contactEditorInnerStyle}\n disableTextFormat\n />\n
    \n \n \n \n {i18n.get('choose_your_image')}\n \n \n {!showAllImages && (\n setShowAllImages(true)}\n >\n {i18n.get('show_all')}\n \n )}\n \n
    \n \n \n \n \n {i18n.get('ots_only_jpeg_supported')}\n \n \n \n \n {!showAllImages ? (\n \n ) : (\n \n )}\n
    \n \n \n
    \n )\n}\n\nOtsEditor.propTypes = {\n contentFormData: PropTypes.instanceOf(Map).isRequired,\n\n onChange: PropTypes.func.isRequired\n}\n\nexport default OtsEditor\n","import { connect } from 'react-redux'\n\nimport OtsEditor from 'components/content_desk_new/contents/content_edit_dialog/ots_editor'\n\nimport {\n updateContent\n} from 'actions/content_desk'\n\nimport {\n getCDeskContentFormData\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n contentFormData: getCDeskContentFormData(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: updateContent\n }\n)(OtsEditor)\n","/* global window */\nimport React, { forwardRef, useEffect, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport useBeforeUnload from 'hooks/useBeforeUnload'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Alert,\n AppBar,\n Box,\n Dialog,\n LinearProgress,\n Slide,\n Toolbar as MuiToolbar,\n Typography\n} from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport ScheduleDialog from 'containers/content_desk_new/contents/content_edit_dialog/ScheduleDialog'\nimport TestMailDialog from 'containers/content_desk_new/contents/content_edit_dialog/TestMailDialog'\nimport Toolbar from 'containers/content_desk_new/contents/content_edit_dialog/Toolbar'\nimport CloseConfirmDialog from 'containers/content_desk_new/contents/content_edit_dialog/CloseConfirmDialog'\nimport RecipientsSelection from 'containers/content_desk_new/contents/content_edit_dialog/RecipientsSelection'\nimport Overview from 'containers/content_desk_new/contents/content_edit_dialog/Overview'\nimport RecipientsBrowser from 'containers/content_desk_new/contents/content_edit_dialog/RecipientsBrowser'\n\nimport { IconButton } from 'containers/themed'\n\nimport Navigation from 'containers/content_desk_new/contents/content_edit_dialog/Navigation'\nimport Settings from 'containers/content_desk_new/contents/content_edit_dialog/Settings'\nimport Templates from 'containers/content_desk_new/contents/content_edit_dialog/Templates'\nimport Editor from 'containers/content_desk_new/contents/content_edit_dialog/Editor'\nimport Attachments from 'containers/content_desk_new/contents/content_edit_dialog/Attachments'\nimport ChooseContent from 'containers/content_desk_new/contents/content_edit_dialog/ChooseContent'\nimport OtsEditor from 'containers/content_desk_new/contents/content_edit_dialog/OtsEditor'\n\nconst useStyles = makeStyles()(theme => ({\n dialog: {\n '& .MuiDialog-paper': {\n backgroundColor: theme.palette.grey[100]\n }\n },\n outerContainer: {\n display: 'flex',\n justifyContent: 'center',\n width: '100%'\n },\n innerContainer: {\n borderRadius: 20,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: theme.palette.grey[300],\n backgroundColor: theme.palette.background.paper,\n margin: '20px 20px 80px 20px',\n width: '70%',\n minHeight: '80vh',\n [theme.breakpoints.only('xs')]: {\n margin: '20px 20px 100px 20px'\n }\n },\n navigationContainer: {\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n padding: '30px 60px',\n width: '100%'\n },\n ContentContainer: {\n padding: '0px 60px'\n },\n overlay: {\n position: 'fixed',\n top: 69,\n right: 0,\n bottom: 0,\n left: 0,\n backgroundColor: '#D3D3D3',\n opacity: '.60',\n zIndex: 9999999\n },\n linearProgress: {\n width: '100vw',\n position: 'absolute',\n right: 0,\n left: 0,\n bottom: 0\n }\n}))\n\nconst TransitionComponent = forwardRef((props, ref) => (\n \n))\n\nTransitionComponent.displayName = 'Transition'\n\nexport default function ContentEditDialog({\n contentFormData,\n duplicateError,\n isInCloneMode,\n isLoading,\n open,\n tabView,\n onClose,\n onRelock,\n onUnlock\n}) {\n const i18n = useI18n()\n const { classes } = useStyles()\n // const { enqueueSnackbar } = useSnackbar()\n const [confDialogOpen, setConfDialogOpen] = useState(false)\n const contentFormType = contentFormData.getIn(['type', 'id'])\n\n useEffect(() => { // eslint-disable-line\n if (open) {\n const interval = setInterval(() => onRelock(), 30000)\n\n return () => clearInterval(interval)\n }\n }, [open])\n\n useEffect(() => {\n window.scrollTo(0, 0)\n }, [tabView])\n\n useBeforeUnload(e => {\n e.preventDefault()\n onUnlock()\n }, open)\n\n const handleClose = () => {\n if (contentFormData.get('isDirty')) {\n setConfDialogOpen(true)\n } else {\n onClose({ closeEditContentDialog: true })\n }\n }\n\n let dialogTitle = i18n.get('edit_content')\n\n if (contentFormType === 'email') {\n dialogTitle = i18n.get('create_email_content')\n }\n\n if (isInCloneMode) {\n dialogTitle = i18n.get('duplicate_content')\n }\n\n const renderCloseConfirmDialog = () => {\n if (!contentFormData.get('isDirty')) {\n return null\n }\n\n return (\n setConfDialogOpen(false)}\n />\n )\n }\n\n const renderDuplicateError = () => {\n if (!duplicateError) {\n return null\n }\n\n return (\n \n {i18n.get('ccd_content_duplicate_error')}\n \n )\n }\n\n return (\n <>\n {renderCloseConfirmDialog()}\n \n \n \n \n \n \n \n \n {dialogTitle}\n \n \n {isLoading && }\n \n {isLoading &&
    }\n \n \n \n \n \n \n {renderDuplicateError()}\n {tabView === 'settings' && }\n {tabView === 'recipients' && }\n {tabView === 'templates' && }\n
    \n \n
    \n {tabView === 'attachments' && }\n {tabView === 'overview' && }\n {tabView === 'choose_content' && }\n {tabView === 'ots_editor' && }\n
    \n
    \n
    \n \n \n \n {contentFormType === 'email' && }\n \n )\n}\n\nContentEditDialog.propTypes = {\n contentFormData: PropTypes.instanceOf(Map).isRequired,\n duplicateError: PropTypes.bool.isRequired,\n isInCloneMode: PropTypes.bool.isRequired,\n isLoading: PropTypes.bool.isRequired,\n open: PropTypes.bool.isRequired,\n tabView: PropTypes.string,\n\n onClose: PropTypes.func.isRequired,\n onRelock: PropTypes.func.isRequired,\n onUnlock: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ContentEditDialog from 'components/content_desk_new/contents/content_edit_dialog'\n\nimport {\n lockContentStart,\n unlockContentStart as onClose\n} from 'actions/content_desk'\n\nimport {\n getCDeskShowEditContentDialog,\n getCDeskNewDialogView,\n getCDeskContentEditTabView,\n getCDeskContentIsLoading,\n getCDeskContentDialogCloneMode,\n getCDeskContentFormData,\n getCDeskDuplicateError\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getCDeskShowEditContentDialog(state),\n view: getCDeskNewDialogView(state),\n tabView: getCDeskContentEditTabView(state),\n isLoading: getCDeskContentIsLoading(state),\n isInCloneMode: getCDeskContentDialogCloneMode(state),\n contentFormData: getCDeskContentFormData(state),\n duplicateError: getCDeskDuplicateError(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onRelock: () => lockContentStart(),\n onUnlock: () => onClose(),\n onClose\n }\n)(ContentEditDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Dialog,\n DialogContent,\n DialogContentText,\n DialogTitle\n} from '@mui/material'\n\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n dialogTitle: {\n paddingBottom: theme.spacing(2),\n color: theme.palette.grey[800]\n },\n closeButton: {\n position: 'absolute',\n right: 8,\n top: 8,\n color: !theme.isDark && theme.palette.grey[800]\n }\n}))\n\nexport default function ContentsEditBlockDialog({ lockDate, lockedBy, open, onClose }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const handleClose = () => onClose()\n\n if (!lockDate || !lockedBy) {\n return null\n }\n\n const name = `${lockedBy.get('firstName')} ${lockedBy.get('lastName')}`.trim()\n\n return (\n \n \n {i18n.get('content_being_edited')}\n \n \n \n \n \n \n {i18n.get('content_current_editor')}: {name}\n
    \n {i18n.get('content_being_edited_info')}\n
    \n
    \n \n )\n}\n\nContentsEditBlockDialog.propTypes = {\n lockDate: PropTypes.string,\n lockedBy: PropTypes.object,\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\nimport moment from 'moment-timezone'\n\nimport ContentsEditBlockDialog from 'components/content_desk_new/contents/contents_edit_block_dialog'\n\nimport { getCDeskShowBlockedContentEditDialog, getCDeskSelectedContent } from 'selectors'\n\nimport { closeBlockedContentEditDialog as onClose } from 'actions/content_desk'\n\nconst getLocker = state => getCDeskSelectedContent(state).get('lastLocker')\nconst getLockDate = state => {\n const lockedAt = getCDeskSelectedContent(state).get('lockedAt')\n\n if (!lockedAt) {\n return null\n }\n\n return moment(lockedAt).format('LLL')\n}\n\nconst mapStateToProps = state => ({\n lockedBy: getLocker(state),\n lockDate: getLockDate(state),\n open: getCDeskShowBlockedContentEditDialog(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose\n }\n)(ContentsEditBlockDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Box, Chip } from '@mui/material'\nimport TagIcon from '@mui/icons-material/Tag'\n\nexport default function TagChip({ label }) {\n return (\n \n }\n size=\"small\"\n label={label}\n />\n \n )\n}\n\nTagChip.propTypes = {\n label: PropTypes.string.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map as ImmutableMap } from 'immutable'\nimport { Box, Divider, Typography } from '@mui/material'\nimport TagChip from 'components/contact_management/tag_chip'\n\nexport default function ContactTags({ contact }) {\n const customTags = contact.get('customTags')\n const i18n = useI18n()\n\n if (!customTags || customTags.isEmpty()) {\n return null\n }\n\n return (\n <>\n \n {i18n.get('tags')}\n \n \n {customTags.map(tag => (\n \n ))}\n \n \n )\n}\n\nContactTags.propTypes = {\n contact: PropTypes.instanceOf(ImmutableMap).isRequired\n}\n","/* global window */\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport ChannelIcon from 'components/channel_icon'\nimport { IconButton } from 'containers/themed'\n\nconst CHANNELS = {\n tiktok: 28,\n facebook: 6,\n twitter: 7,\n linkedin: 21,\n instagram: 9,\n youtube: 8,\n threads: 37,\n other: 2\n}\n\nexport default function SmIcon({ channel, url }) {\n if (!url) {\n return null\n }\n\n const handleClick = () => window.open(url, '_blank', 'noopener,noreferrer')\n\n return (\n \n \n \n )\n}\n\nSmIcon.propTypes = {\n channel: PropTypes.string.isRequired,\n url: PropTypes.string\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map as ImmutableMap } from 'immutable'\n\nimport { Box, Divider } from '@mui/material'\nimport SmIcon from 'components/contact_management/contact_details_dialog/sm_icon'\n\nexport default function ContactChannels({ contact }) {\n const hasSmChannels = contact.get('facebookUrl')\n || contact.get('twitterUrl')\n || contact.get('tiktokUrl')\n || contact.get('linkedinUrl')\n || contact.get('threadsUrl')\n || contact.get('instagramUrl')\n || contact.get('youtubeUrl')\n || contact.get('otherUrl')\n\n if (!hasSmChannels) {\n return null\n }\n\n return (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nContactChannels.propTypes = {\n contact: PropTypes.instanceOf(ImmutableMap).isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport { Box } from '@mui/material'\n\nconst DEFAULT_IMAGE_URL = 'https://static.pressrelations.de/pics/groot/ccd/portrait_placeholder.png'\n\nconst useStyles = makeStyles()(() => ({\n pictureMask: {\n objectFit: 'cover',\n height: '90px',\n width: '90px'\n }\n}))\n\nexport default function ContactImage({ url }) {\n const { classes } = useStyles()\n\n return (\n \n \n \n )\n}\n\nContactImage.propTypes = {\n url: PropTypes.string\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map as ImmutableMap, List as ImmutableList } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Grid, Typography } from '@mui/material'\nimport AddIcon from '@mui/icons-material/Add'\n\nimport { PrimaryButton } from 'containers/themed'\nimport ContactImage from 'components/contact_management/contact_image'\n\nconst useStyles = makeStyles()(() => ({\n itemsAlignCenter: {\n alignItems: 'center'\n }\n}))\n\nexport default function ContactProfile({ contact, countries, states, isDistListsLocked, editable, onAdd }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const country = (countries.find(c => c.get('id') === contact.getIn(['country', 'id'])) || ImmutableMap()).get('name')\n const state = (states.find(c => c.get('id') === contact.getIn(['state', 'id'])) || ImmutableMap()).get('name')\n const publication = contact.get('identity') ? contact.getIn(['identity', 'publication', 'name']) : contact.get('externalPublication')\n const unsubscribed = contact.get('unsubscribed')\n\n return (\n \n \n {contact.get('title') && (\n theme.palette.grey[700] }}\n >\n {contact.get('title')}\n \n )}\n \n {contact.get('firstName')} {contact.get('lastName')}\n \n\n \n {contact.get('jobTitle')}\n \n\n \n {publication}\n \n\n {contact.get('stateId') && (\n theme.palette.grey[700] }}\n >\n {state}\n \n )}\n\n theme.palette.grey[700] }}\n >\n {country}\n \n \n \n \n \n \n {editable && !isDistListsLocked && (\n }\n >\n {i18n.get('add_to_list')}\n \n )}\n \n \n )\n}\n\nContactProfile.propTypes = {\n contact: PropTypes.instanceOf(ImmutableMap).isRequired,\n countries: PropTypes.instanceOf(ImmutableList).isRequired,\n states: PropTypes.instanceOf(ImmutableList).isRequired,\n isDistListsLocked: PropTypes.bool.isRequired,\n editable: PropTypes.bool.isRequired,\n\n onAdd: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { stripDossier } from 'utils/html'\n\nimport { Map as ImmutableMap } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Divider, Box, Typography } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n infoBox: {\n '& p': {\n fontSize: '90%',\n marginTop: 0\n }\n },\n infoLabel: {\n display: 'inline-block',\n minWidth: 60,\n marginRight: 10,\n color: theme.palette.grey[900],\n fontWeight: 500\n },\n link: {\n color: '#2A9BFD'\n }\n}))\n\nexport default function ContactInfo({ contact }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n return (\n <>\n \n \n {contact.get('mail') && (\n \n {i18n.get('email')}\n \n {contact.get('mail')}\n \n \n )}\n\n {contact.get('website') && (\n \n {i18n.get('website')}\n \n {contact.get('website')}\n \n \n )}\n\n {contact.get('phone') && (\n theme.palette.grey[700] }}\n >\n \n {i18n.get('phone')}\n \n {contact.get('phone')}\n \n )}\n\n {contact.get('fax') && (\n theme.palette.grey[700] }}\n >\n \n {i18n.get('fax')}\n \n {contact.get('fax')}\n \n )}\n\n {contact.get('company') && (\n \n \n {i18n.get('company')}\n \n {contact.get('company')}\n \n )}\n\n {contact.get('address') && (\n theme.palette.grey[700] }}\n >\n {i18n.get('address')}\n {contact.get('address')}\n \n )}\n \n {contact.get('dossier') && (\n <>\n \n \n {i18n.get('dossier')}\n \n {stripDossier(contact.get('dossier'))}\n \n )}\n {contact.get('notes') && (\n <>\n \n \n {i18n.get('notes')}\n \n {contact.get('notes')}\n \n )}\n \n )\n}\n\nContactInfo.propTypes = {\n contact: PropTypes.instanceOf(ImmutableMap).isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Map as ImmutableMap, List as ImmutableList } from 'immutable'\nimport { Box, Chip, Divider, Typography } from '@mui/material'\n\nfunction TopicChip({ label }) {\n return (\n \n \n \n )\n}\n\nexport default function ContactTopics({ contact, mediaTopics }) {\n const i18n = useI18n()\n const topics = contact.get('mediaTopics')\n\n if (!topics || topics.size < 1) {\n return null\n }\n\n const ids = topics.map(t => t.get('id'))\n const topicsWithNames = mediaTopics.filter(mt => ids.includes(mt.get('id')))\n\n return (\n <>\n \n {i18n.get('themes')}\n \n \n {topicsWithNames.map(topic => (\n \n ))}\n \n \n )\n}\n\nContactTopics.propTypes = {\n contact: PropTypes.instanceOf(ImmutableMap).isRequired,\n mediaTopics: PropTypes.instanceOf(ImmutableList).isRequired\n}\n\nTopicChip.propTypes = {\n label: PropTypes.string.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map, List } from 'immutable'\nimport { Chip, Box, Divider, Typography } from '@mui/material'\n\nfunction LanguageChip({ label }) {\n return (\n \n \n \n )\n}\n\nexport default function ContactLanguages({ contact, languages }) {\n const contactLanguages = contact.get('languages')\n const i18n = useI18n()\n\n if (!contactLanguages || contactLanguages.isEmpty()) {\n return null\n }\n\n const ids = contactLanguages.map(t => t.get('id'))\n const languagesWithNames = languages.filter(l => ids.includes(l.get('id')))\n\n return (\n <>\n \n {i18n.get('languages')}\n \n \n {languagesWithNames.map(language => (\n \n ))}\n {contact.get('preferredLanguageId') && (\n t.palette.grey[700] }}\n >{`${i18n.get('preferred_language')}: ${languages.find(l => l.get('id') === contact.get('preferredLanguageId')).get('name')}`}\n \n )}\n \n \n )\n}\n\nContactLanguages.propTypes = {\n contact: PropTypes.instanceOf(Map).isRequired,\n languages: PropTypes.instanceOf(List).isRequired\n}\n\nLanguageChip.propTypes = {\n label: PropTypes.string.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map, List } from 'immutable'\nimport { Chip, Box, Divider, Typography } from '@mui/material'\n\nfunction MediaTypeChip({ label }) {\n return (\n \n \n \n )\n}\n\nexport default function ContactMediaTypes({ contact, mediaTypes }) {\n const types = contact.get('mediaTypes')\n const i18n = useI18n()\n\n if (!types || types.isEmpty()) {\n return null\n }\n\n const ids = types.map(t => t.get('id'))\n const typesWithNames = mediaTypes.filter(mt => ids.includes(mt.get('id')))\n\n return (\n <>\n \n {i18n.get('media_type')}\n \n \n {typesWithNames.map(type => (\n \n ))}\n \n \n )\n}\n\nContactMediaTypes.propTypes = {\n contact: PropTypes.instanceOf(Map).isRequired,\n mediaTypes: PropTypes.instanceOf(List).isRequired\n}\n\nMediaTypeChip.propTypes = {\n label: PropTypes.string.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\nimport { Chip, Box, Divider, Typography } from '@mui/material'\n\nexport default function ContactSupplier({ contact }) {\n const i18n = useI18n()\n\n const supplier = !contact.get('supplier') || contact.get('supplier') === 'client' ? i18n.get('my_contact') : 'pressrelations'\n const supplierChipColor = !contact.get('supplier') || contact.get('supplier') === 'client' ? 'default' : 'primary'\n\n return (\n <>\n \n {i18n.get('source')}\n \n \n \n \n \n )\n}\n\nContactSupplier.propTypes = {\n contact: PropTypes.instanceOf(Map).isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport moment from 'moment-timezone'\nimport { List as ImmutableList, Map as ImmutableMap } from 'immutable'\nimport { Dialog, DialogContent, DialogTitle, Typography, useMediaQuery } from '@mui/material'\nimport { useTheme } from '@mui/material/styles'\nimport CloseIcon from '@mui/icons-material/Close'\nimport EditIcon from '@mui/icons-material/Edit'\n\nimport ContactTags from 'components/contact_management/contact_details_dialog/contact_tags'\nimport ContactChannels from 'components/contact_management/contact_details_dialog/contact_channels'\nimport ContactProfile from 'components/contact_management/contact_details_dialog/contact_profile'\nimport ContactInfo from 'components/contact_management/contact_details_dialog/contact_info'\n// import ContactActions from 'components/contact_management/contact_details_dialog/contact_actions'\nimport ContactTopics from 'components/contact_management/contact_details_dialog/contact_topics'\nimport ContactLanguages from 'components/contact_management/contact_details_dialog/contact_languages'\nimport ContactMediaTypes from 'components/contact_management/contact_details_dialog//contact_media_types'\nimport ContactSupplier from 'components/contact_management/contact_details_dialog/contact_supplier'\n\nimport { IconButton, PrimaryButton } from 'containers/themed'\n\nexport default function ContactDetailsDialog({\n open,\n contact,\n countries,\n states,\n topics,\n mediaTypes,\n languages,\n isDistListsLocked,\n editable,\n onClose,\n onEdit,\n onSelect,\n onAdd\n}) {\n const theme = useTheme()\n const i18n = useI18n()\n const fullScreen = useMediaQuery(theme.breakpoints.down('md'))\n const unsubscribed = contact.get('unsubscribed')\n\n const handleAdd = () => {\n onAdd()\n onSelect(contact)\n }\n\n const handleEdit = () => onEdit(contact)\n const handleClose = () => onClose()\n\n const renderEditButton = () => {\n if (editable) {\n return (\n }\n sx={{\n position: 'absolute',\n right: 60,\n top: 15\n }}\n >\n {i18n.get('edit_profile')}\n \n )\n }\n\n return null\n }\n\n return (\n \n t.spacing(2),\n color: t => t.palette.grey[800]\n }}\n >\n {renderEditButton()}\n {i18n.get('details')}\n !t.isDark && t.palette.grey[800]\n }}\n >\n \n \n \n\n t.spacing(3) }}\n\n >\n \n \n \n \n \n \n \n \n t.palette.grey[700], marginTop: '2em' }}\n >\n {contact.get('updatedAt')\n ? `${i18n.get('last_updated_at')}: ${moment(contact.get('updatedAt')).format('lll')}`\n : `${i18n.get('created_at')}: ${moment(contact.get('createdAt')).format('lll')}`}\n \n \n\n {/* t.spacing(2) }}\n disableSpacing\n >\n \n */}\n \n )\n}\n\nContactDetailsDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n\n contact: PropTypes.instanceOf(ImmutableMap).isRequired,\n countries: PropTypes.instanceOf(ImmutableList).isRequired,\n states: PropTypes.instanceOf(ImmutableList).isRequired,\n topics: PropTypes.instanceOf(ImmutableList).isRequired,\n mediaTypes: PropTypes.instanceOf(ImmutableList).isRequired,\n languages: PropTypes.instanceOf(ImmutableList).isRequired,\n isDistListsLocked: PropTypes.bool.isRequired,\n editable: PropTypes.bool.isRequired,\n\n onClose: PropTypes.func.isRequired,\n onEdit: PropTypes.func.isRequired,\n onSelect: PropTypes.func.isRequired,\n onAdd: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport { Capabilities } from 'static/constants'\n\nimport ContactDetailsDialog from 'components/contact_management/contact_details_dialog'\n\nimport {\n openContactEditDialog,\n openDistributionListCreateDialog as onAdd,\n selectContact as onSelect,\n clearListData as onReset,\n closeContactViewDialog as onClose\n} from 'actions/contact_management'\n\nimport {\n hasCapability,\n getCmContactDialogOpen,\n getCmSelectedContact,\n getAllStaticCountries,\n getAllStaticMediaTopics,\n getAllStaticMediaTypes,\n getAllStaticLanguages,\n getStaticStates,\n getCDeskIsDistributionListsLocked,\n isContentDeskSubmodule\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getCmContactDialogOpen(state),\n contact: getCmSelectedContact(state),\n countries: getAllStaticCountries(state),\n states: getStaticStates(state),\n topics: getAllStaticMediaTopics(state),\n mediaTypes: getAllStaticMediaTypes(state),\n languages: getAllStaticLanguages(state),\n isDistListsLocked: getCDeskIsDistributionListsLocked(state) || isContentDeskSubmodule(state),\n editable: !!hasCapability(state, Capabilities.HAS_CONTACTS_MANAGEMENT_MODULE)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose,\n onEdit: contact => openContactEditDialog({ isEditMode: true, contact }),\n onSelect,\n onAdd,\n onReset\n }\n)(ContactDetailsDialog)\n","const regularExpressions = {\n linkedinUrl: /^(https?:\\/\\/)?((www|[a-z]{2})\\.)?linkedin.com\\/[a-zA-Z0-9.?]/,\n twitterUrl: /^(https?:\\/\\/)?(www\\.)?twitter.com\\/[a-zA-Z0-9.?]/,\n facebookUrl: /^(https?:\\/\\/)?(www\\.)?facebook.com\\/[a-zA-Z0-9.?]/,\n threadsUrl: /^(https?:\\/\\/)?(www\\.)?threads.net\\/@[a-zA-Z0-9.?]/,\n tiktokUrl: /^(https?:\\/\\/)?(www\\.)?tiktok.com\\/@[a-zA-Z0-9.?]/,\n instagramUrl: /^(https?:\\/\\/)?(www\\.)?instagram.com\\/[a-zA-Z0-9.?]/,\n youtubeUrl: /^(https?:\\/\\/)?(www\\.)?youtube.com\\/[a-zA-Z0-9.?]/,\n otherUrl: /^(https?:\\/\\/)?(www\\.)?[^.]+.[^.]+/\n}\n\nconst allowedChannels = Object.keys(regularExpressions)\nconst filterChannelUrls = data => data.filter((_value, key) => allowedChannels.includes(key))\n\nexport const isValidSocialMediaUrl = (key, url) => (url ? regularExpressions[key].test(url) : true)\n\nexport const checkAllUrls = d => filterChannelUrls(d).map((value, key) => ({\n key,\n valid: isValidSocialMediaUrl(key, value)\n}))\nexport const getInvalidChannelUrls = d => checkAllUrls(d).filter(e => !e.valid)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map as ImmutableMap } from 'immutable'\nimport useI18n from 'hooks/useI18n'\n\nimport { Grid, TextField, Box } from '@mui/material'\nimport { makeStyles } from 'tss-react/mui'\n\nimport PhotoUpload from 'components/photo_upload'\nimport ContactImage from 'components/contact_management/contact_image'\n\nconst DEFAULT_IMAGE_URL = 'https://static.pressrelations.de/pics/groot/ccd/portrait_placeholder.png'\n\nconst useStyles = makeStyles()({\n caption: {\n fontSize: '10pt',\n color: '#7C7C7C',\n marginTop: '8px'\n }\n})\n\nexport default function EditContactProfile({ contact, onChange, onUpload }) {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const handleChange = e => onChange({ key: e.target.name, value: e.target.value })\n\n const handlePictureDelete = () => {\n onUpload(null)\n onChange({ key: 'picture', value: DEFAULT_IMAGE_URL })\n }\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n onChange({ key: 'picture', value })}\n maxSize={2000000}\n onDelete={handlePictureDelete}\n />\n {i18n.get('upload_file_limit', { n: 2 })}\n \n \n )\n}\n\nEditContactProfile.propTypes = {\n contact: PropTypes.instanceOf(ImmutableMap).isRequired,\n onChange: PropTypes.func.isRequired,\n onUpload: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map as ImmutableMap, List as ImmutableList } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport { mapToOptions } from 'utils/autocomplete'\n\nimport { Grid, Autocomplete, TextField } from '@mui/material'\n\nexport default function EditContactTags({ contact, tags, onChange }) {\n const i18n = useI18n()\n const values = mapToOptions(contact.get('customTags'))\n const tagOptions = mapToOptions(tags)\n\n const handleChange = (_e, newValues) => {\n onChange({ contactId: contact.get('id'), newValues })\n }\n\n const filterOptions = (options, params) => {\n const filtered = options.filter(option => option.label.toLowerCase().includes(params.inputValue.toLowerCase()))\n\n if (params.inputValue !== '' && !filtered.some(option => option.label.toLowerCase() === params.inputValue.toLowerCase())) {\n filtered.push({ isNew: true, label: params.inputValue, value: null })\n }\n\n return filtered\n }\n\n return (\n \n option.value === value?.value}\n value={values}\n clearOnBlur\n selectOnFocus\n disableCloseOnSelect\n size=\"small\"\n renderInput={params => (\n \n )}\n limitTags={10}\n />\n \n )\n}\n\nEditContactTags.propTypes = {\n contact: PropTypes.instanceOf(ImmutableMap).isRequired,\n tags: PropTypes.instanceOf(ImmutableList).isRequired,\n onChange: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map as ImmutableMap, List as ImmutableList } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport { stripDossier } from 'utils/html'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { TextField, Grid, Autocomplete } from '@mui/material'\n\nimport { mapToOptions } from 'utils/autocomplete'\n\nconst useStyles = makeStyles()({\n numberField: {\n '&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {\n WebkitAppearance: 'none',\n MozAppearance: 'none',\n display: 'none'\n }\n }\n})\n\nexport default function EditContactInfo({ contact, countries, states, onChange }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const country = contact.get('country')\n ? {\n value: contact.getIn(['country', 'id']),\n label: contact.getIn(['country', 'name'])\n }\n : null\n const state = contact.get('state')\n ? {\n value: contact.getIn(['state', 'id']),\n label: contact.getIn(['state', 'name'])\n }\n : null\n\n const statesByCountry = states.filter(s => s.get('countryId') === contact.getIn(['country', 'id']))\n\n const handleChange = e => onChange({ key: e.target.name, value: e.target.value })\n\n const handleAutocompleteChange = (key, option) => {\n if (!option) {\n return onChange({ key, value: null })\n }\n\n return onChange({ key, value: { id: option.value, name: option.label } })\n }\n\n return (\n \n \n option.value === value?.value}\n value={country}\n onChange={(_e, option) => handleAutocompleteChange('country', option)}\n size=\"small\"\n renderInput={params => (\n \n )}\n />\n \n \n option.value === value?.value}\n value={state}\n onChange={(_e, option) => handleAutocompleteChange('state', option)}\n size=\"small\"\n renderInput={params => (\n \n )}\n disabled={!contact.get('country') || contact.getIn(['country', 'value']) === 0}\n />\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nEditContactInfo.propTypes = {\n contact: PropTypes.instanceOf(ImmutableMap).isRequired,\n countries: PropTypes.instanceOf(ImmutableList).isRequired,\n states: PropTypes.instanceOf(ImmutableList).isRequired,\n onChange: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map as ImmutableMap } from 'immutable'\nimport useI18n from 'hooks/useI18n'\n\nimport { TextField, Grid, Box } from '@mui/material'\n\nexport default function EditContactChannels({ contact, onChange }) {\n const i18n = useI18n()\n\n const handleChange = e => onChange({ key: e.target.name, value: e.target.value })\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nEditContactChannels.propTypes = {\n contact: PropTypes.instanceOf(ImmutableMap).isRequired,\n onChange: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Box } from '@mui/material'\nimport { Button, RaisedPrimaryButton } from 'containers/themed'\n\nexport default function EditDialogActions({ isEditMode, loading, onClose, onSave, onDelete }) {\n const i18n = useI18n()\n\n return (\n \n {isEditMode && (\n \n {i18n.get('delete')}\n \n )}\n \n {i18n.get('cancel')}\n \n \n {i18n.get('save')}\n \n \n )\n}\n\nEditDialogActions.propTypes = {\n isEditMode: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired,\n onDelete: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map as ImmutableMap, List as ImmutableList } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport { mapToOptions } from 'utils/autocomplete'\n\nimport { Grid, Autocomplete, TextField } from '@mui/material'\n\nexport default function EditContactTopics({ contact, topics, onChange }) {\n const i18n = useI18n()\n const topicIds = contact.get('mediaTopics').map(t => t.get('id'))\n const values = mapToOptions(topics.filter(t => topicIds.includes(t.get('id'))))\n\n const topicsOptions = mapToOptions(topics)\n\n const handleChange = (_e, newValues) => {\n onChange(newValues.map(v => v.value))\n }\n\n return (\n \n option.value === value?.value}\n value={values}\n clearOnBlur\n selectOnFocus\n disableCloseOnSelect\n label={i18n.get('themes')}\n size=\"small\"\n renderInput={params => (\n \n )}\n limitTags={10}\n />\n \n )\n}\n\nEditContactTopics.propTypes = {\n contact: PropTypes.instanceOf(ImmutableMap).isRequired,\n topics: PropTypes.instanceOf(ImmutableList).isRequired,\n onChange: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map as ImmutableMap, List as ImmutableList } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport { mapToOptions } from 'utils/autocomplete'\n\nimport { Grid, Autocomplete, TextField } from '@mui/material'\n\nexport default function EditContactLanguages({ contact, languages, onChange, onPreferredLanguageChange }) {\n const i18n = useI18n()\n const languageIds = contact.get('languages').map(t => t.get('id'))\n const values = mapToOptions(languages.filter(t => languageIds.includes(t.get('id'))))\n\n const languageOptions = mapToOptions(languages)\n const preferredLanguageValue = values.find(l => l.value === contact.get('preferredLanguageId')) || ''\n\n const handleChange = (_e, newValues) => {\n onChange(newValues.map(v => v.value))\n }\n\n const handlePreferredLanguageChange = (_e, option) => {\n if (option) {\n return onPreferredLanguageChange({ key: 'preferredLanguageId', value: option.value })\n }\n\n return onPreferredLanguageChange({ key: 'preferredLanguageId', value: null })\n }\n\n return (\n <>\n \n option.value === value?.value}\n value={values}\n clearOnBlur\n selectOnFocus\n disableCloseOnSelect\n size=\"small\"\n renderInput={params => (\n \n )}\n limitTags={10}\n />\n \n {contact.get('languages').size > 1 && (\n \n option.value === value?.value}\n value={preferredLanguageValue}\n clearOnBlur\n selectOnFocus\n size=\"small\"\n renderInput={params => (\n \n )}\n limitTags={10}\n />\n \n )}\n \n )\n}\n\nEditContactLanguages.propTypes = {\n contact: PropTypes.instanceOf(ImmutableMap).isRequired,\n languages: PropTypes.instanceOf(ImmutableList).isRequired,\n onChange: PropTypes.func.isRequired,\n onPreferredLanguageChange: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map as ImmutableMap, List as ImmutableList } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport { mapToOptions } from 'utils/autocomplete'\n\nimport { Grid, Autocomplete, TextField } from '@mui/material'\n\nexport default function EditContactMediaTypes({ contact, mediaTypes, onChange }) {\n const i18n = useI18n()\n const mediaTypeIds = contact.get('mediaTypes').map(t => t.get('id'))\n const values = mapToOptions(mediaTypes.filter(t => mediaTypeIds.includes(t.get('id'))))\n\n const mediaTypeOptions = mapToOptions(mediaTypes)\n\n const handleChange = (_e, newValues) => {\n onChange(newValues.map(v => v.value))\n }\n\n return (\n \n option.value === value?.value}\n value={values}\n clearOnBlur\n selectOnFocus\n disableCloseOnSelect\n size=\"small\"\n renderInput={params => (\n \n )}\n limitTags={10}\n />\n \n )\n}\n\nEditContactMediaTypes.propTypes = {\n contact: PropTypes.instanceOf(ImmutableMap).isRequired,\n mediaTypes: PropTypes.instanceOf(ImmutableList).isRequired,\n onChange: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map as ImmutableMap, List as ImmutableList } from 'immutable'\nimport { useSnackbar } from 'notistack'\nimport decamelize from 'decamelize'\nimport useI18n from 'hooks/useI18n'\n\nimport {\n Dialog,\n DialogContent,\n DialogTitle,\n DialogActions,\n Divider,\n Grid,\n Box,\n useMediaQuery\n} from '@mui/material'\n\nimport { useTheme } from '@mui/material/styles'\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { getInvalidChannelUrls } from 'utils/contact_management'\nimport { capitalize } from 'utils/string'\nimport { validEmail } from 'utils/regex'\n\nimport { IconButton } from 'containers/themed'\nimport EditContactProfile from './edit_contact_profile'\nimport EditContactTags from './edit_contact_tags'\nimport EditContactInfo from './edit_contact_info'\nimport EditContactChannels from './edit_contact_channels'\nimport EditDialogActions from './edit_dialog_actions'\nimport EditContactTopics from './edit_contact_topics/EditContactTopics'\nimport EditContactLanguages from './edit_contact_languages/EditContactLanguages'\nimport EditContactMediaTypes from './edit_contact_media_types/EditContactMediaTypes'\n\nexport default function ContactEditDialog({\n open,\n data,\n loading,\n isEditMode,\n countries,\n states,\n tags,\n topics,\n mediaTypes,\n languages,\n onClose,\n onSave,\n onChange,\n onUpload,\n onTagChange,\n onTopicChange,\n onLanguageChange,\n onMediaTypeChange,\n onDelete\n}) {\n const i18n = useI18n()\n const theme = useTheme()\n const validName = val => !val.match(/[@,`'\"[\\]()_.~\\\\]/)\n const fullScreen = useMediaQuery(theme.breakpoints.down('md'))\n const { enqueueSnackbar, closeSnackbar } = useSnackbar()\n const requiredFields = ['lastName', 'mail']\n const validateFields = [\n { name: 'mail', isValid: val => validEmail(val.trim()) },\n { name: 'firstName', isValid: val => validName(val || '') },\n { name: 'lastName', isValid: val => validName(val) }\n ]\n const editing = !!data.get('id')\n\n const handleClose = () => onClose()\n\n const handleSave = () => {\n if (requiredFields.map(f => !!data.get(f)).some(v => !v)) {\n return enqueueSnackbar(\n `${i18n.get('last_name')}, ${i18n.get('email')} ${i18n.get('is_required')}`,\n {\n variant: 'error',\n preventDuplicate: true\n }\n )\n }\n\n const invalidSocialMedia = getInvalidChannelUrls(data)\n\n if (!invalidSocialMedia.isEmpty()) {\n invalidSocialMedia.map(e => enqueueSnackbar(\n `\n ${capitalize(e.key.slice(0, -3))}\n ${i18n.get('widget_url')}\n ${i18n.get('is_not_valid')}\n `, { variant: 'error' }\n ))\n\n return false\n }\n\n const validatedList = validateFields.map(x => ({ name: x.name, isValid: x.isValid(data.get(x.name)) }))\n\n if (validatedList.some(v => !v.isValid)) {\n const message = validatedList\n .map(x => (!x.isValid && `${i18n.get(decamelize(x.name))}`))\n .filter(x => x)\n .join(', ').concat(` ${i18n.get('is_not_valid')}`)\n\n return enqueueSnackbar(\n message,\n {\n variant: 'error',\n preventDuplicate: true\n }\n )\n }\n\n closeSnackbar()\n\n return onSave()\n }\n\n const handleDelete = () => onDelete([data])\n\n return (\n \n t.spacing(2),\n color: t => t.palette.grey[800]\n }}\n >\n {editing ? i18n.get('edit_contact') : i18n.get('new_contact')}\n !t.isDark && t.palette.grey[800]\n }}\n >\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nContactEditDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n isEditMode: PropTypes.bool.isRequired,\n\n data: PropTypes.instanceOf(ImmutableMap).isRequired,\n countries: PropTypes.instanceOf(ImmutableList).isRequired,\n states: PropTypes.instanceOf(ImmutableList).isRequired,\n tags: PropTypes.instanceOf(ImmutableList).isRequired,\n topics: PropTypes.instanceOf(ImmutableList).isRequired,\n mediaTypes: PropTypes.instanceOf(ImmutableList).isRequired,\n languages: PropTypes.instanceOf(ImmutableList).isRequired,\n\n onChange: PropTypes.func.isRequired,\n onClose: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired,\n onUpload: PropTypes.func.isRequired,\n onTagChange: PropTypes.func.isRequired,\n onTopicChange: PropTypes.func.isRequired,\n onLanguageChange: PropTypes.func.isRequired,\n onMediaTypeChange: PropTypes.func.isRequired,\n onDelete: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ContactEditDialog from 'components/contact_management/contact_edit_dialog'\n\nimport {\n getCmContactEditDialogOpen,\n getCmRequestRunning,\n getCmFormData,\n getCmTags\n} from 'selectors/contact_management'\n\nimport {\n closeContactEditDialog as onClose,\n saveContactsStart as onSave,\n changeContactFormData as onChange,\n setUploadedPhoto as onUpload,\n changeTagStart as onTagChange,\n changeContactMediaTopics as onTopicChange,\n changeContactLanguages as onLanguageChange,\n changeContactMediaTypes as onMediaTypeChange,\n openContactDeleteDialog as onDelete\n} from 'actions/contact_management'\n\nimport {\n getAllStaticCountries,\n getAllStaticMediaTopics,\n getAllStaticMediaTypes,\n getAllStaticLanguages,\n getStaticStates,\n getCmContactEditDialogMode\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n data: getCmFormData(state),\n open: getCmContactEditDialogOpen(state),\n isEditMode: getCmContactEditDialogMode(state),\n loading: getCmRequestRunning(state),\n countries: getAllStaticCountries(state),\n states: getStaticStates(state),\n tags: getCmTags(state),\n topics: getAllStaticMediaTopics(state),\n mediaTypes: getAllStaticMediaTypes(state),\n languages: getAllStaticLanguages(state)\n})\n\nexport default connect(mapStateToProps, {\n onClose,\n onSave,\n onChange,\n onUpload,\n onTagChange,\n onTopicChange,\n onLanguageChange,\n onMediaTypeChange,\n onDelete\n})(ContactEditDialog)\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { List, Map, fromJS } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\nimport moment from 'moment-timezone'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { green, red } from '@mui/material/colors'\n\nimport {\n Box,\n Dialog,\n DialogTitle,\n DialogContent,\n DialogActions,\n Divider,\n TextField,\n Typography\n} from '@mui/material'\n\nimport AddIcon from '@mui/icons-material/Add'\nimport EditIcon from '@mui/icons-material/Edit'\nimport DeleteIcon from '@mui/icons-material/Delete'\nimport CheckCircleIcon from '@mui/icons-material/CheckCircle'\nimport CancelIcon from '@mui/icons-material/Cancel'\nimport CloseIcon from '@mui/icons-material/Close'\nimport SaveIcon from '@mui/icons-material/Save'\n\nimport { RaisedPrimaryButton, Button, IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()((theme, { mobile }) => ({\n dialogTitle: {\n paddingBottom: theme.spacing(2),\n color: theme.palette.grey[800]\n },\n closeButton: {\n position: 'absolute',\n right: 8,\n top: 8,\n color: !theme.isDark && theme.palette.grey[800]\n },\n dialogContent: {\n maxHeight: mobile ? '100vh' : '60vh',\n padding: '25px'\n },\n dialogActions: {\n display: 'flex',\n justifyContent: 'space-between',\n padding: '25px'\n },\n noteWrapper: {\n marginBottom: '20px'\n },\n noteInfo: {\n display: 'flex',\n flexDirection: mobile ? 'column' : 'row',\n alignItems: mobile ? 'flex-start' : 'center',\n gap: mobile ? '0px' : '10px'\n },\n noteInfoAndActions: {\n display: 'flex',\n alignItems: mobile ? 'flex-start' : 'center',\n justifyContent: 'space-between'\n },\n addActionIcon: {\n marginLeft: '10px'\n },\n dateNameDivider: {\n height: '14px',\n border: '1px solid'\n },\n closeSaveActionsWrapper: {\n display: 'flex',\n gap: '10px'\n },\n deleteButton: {\n color: red[400]\n },\n confirmButton: {\n color: green[400]\n },\n cancelButton: {\n color: red[400]\n }\n}))\n\nconst ContentNotesDialog = ({\n data,\n isOpen,\n userId,\n userFirstName,\n userLastName,\n saving,\n onChange,\n onClose,\n onSave\n}) => {\n const device = useDevice()\n const mobile = device.get('mobile')\n const { classes } = useStyles({ mobile })\n const i18n = useI18n()\n\n const notes = data.get('notes')\n const status = data.get('status')\n\n const isViewOnly = status === 'released'\n\n const [currentNotes, setCurrentNotes] = useState(notes)\n const [editMode, setEditMode] = useState(null)\n\n useEffect(() => {\n setCurrentNotes(notes)\n }, [notes])\n\n const handleNoteChange = (text, index) => {\n setCurrentNotes(currentNotes.map((n, i) => {\n if (i === index) {\n return n.set('text', text)\n }\n\n return n\n }))\n }\n\n const handleAdd = () => {\n setCurrentNotes(List([fromJS({\n id: null,\n text: '',\n createdBy: userId,\n createdByAccount: {\n firstName: userFirstName,\n lastName: userLastName\n },\n createdAt: moment().toISOString()\n }), ...currentNotes]))\n setEditMode({ index: 0, lastValue: '' })\n }\n\n const handleConfirmClick = () => {\n setEditMode(null)\n }\n\n const handleCancelClick = index => {\n if (editMode.lastValue) {\n setCurrentNotes(currentNotes.map((n, i) => {\n if (i === index) {\n return n.set('text', editMode.lastValue)\n }\n\n return n\n }))\n } else {\n setCurrentNotes(currentNotes.filter((_n, i) => i !== index))\n }\n\n setEditMode(null)\n }\n\n const handleEditClick = (note, index) => {\n setEditMode({ index, lastValue: note.get('text') })\n }\n\n const handleDeleteClick = index => {\n setCurrentNotes(currentNotes.filter((_n, i) => i !== index))\n }\n\n const handleSave = () => {\n onChange({ key: 'notes', value: currentNotes })\n onSave()\n }\n\n const handleClose = () => {\n setEditMode(null)\n onClose({ closeContentNotesDialog: true })\n }\n\n const renderNoteAuthor = account => {\n const firstName = account.get('firstName') || ''\n const lastName = account.get('lastName') || ''\n const name = `${firstName} ${lastName}`.trim()\n\n return {name}\n }\n\n const renderNoteDate = date => (\n {moment(date).format('lll')}\n )\n\n const renderNoteActions = (note, index) => {\n if (editMode && editMode.index === index) {\n return (\n \n handleConfirmClick()}\n title={i18n.get('confirm')}\n disabled={note.get('text').length === 0}\n >\n \n \n handleCancelClick(index)}\n title={i18n.get('cancel')}\n >\n \n \n \n )\n }\n\n return (\n \n handleEditClick(note, index)}\n title={i18n.get('edit')}\n disabled={!!(editMode) || userId !== note.get('createdBy') || saving || isViewOnly}\n >\n \n \n handleDeleteClick(index)}\n title={i18n.get('delete')}\n disabled={!!(editMode) || userId !== note.get('createdBy') || saving || isViewOnly}\n >\n \n \n \n )\n }\n\n const renderDialogActions = () => {\n if (device.get('mobile') && device.get('xs')) {\n return (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n )\n }\n\n return (\n <>\n \n {i18n.get('add')}\n \n \n \n \n {i18n.get('close')}\n \n \n {i18n.get('save')}\n \n \n \n )\n }\n\n return (\n \n \n {i18n.get('notes')}\n \n \n \n \n \n {currentNotes.size === 0 && !isViewOnly && (\n {i18n.get('no_content_notes')}\n )}\n {currentNotes.size === 0 && isViewOnly && (\n {i18n.get('no_content_notes_view_only')}\n )}\n {currentNotes.map((n, i) => (\n \n \n \n {renderNoteDate(n.get('createdAt'))}\n {!mobile && (\n \n )}\n {renderNoteAuthor(n.get('createdByAccount'))}\n \n {renderNoteActions(n, i)}\n \n (editMode !== null && editMode.index === i ? input && input.focus() : input)}\n variant=\"standard\"\n minRows={1}\n maxRows={4}\n fullWidth\n value={n.get('text')}\n onChange={e => handleNoteChange(e.target.value, i)}\n inputProps={{\n readOnly: !(editMode !== null && editMode.index === i),\n maxLength: 20000,\n style: { textAlign: 'justify', whiteSpace: 'normal', paddingRight: '10px' }\n }}\n disabled={saving || (editMode !== null && editMode.index !== i)}\n />\n \n ))}\n \n \n {renderDialogActions()}\n \n \n )\n}\n\nContentNotesDialog.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired,\n isOpen: PropTypes.bool.isRequired,\n userId: PropTypes.number.isRequired,\n userFirstName: PropTypes.string.isRequired,\n userLastName: PropTypes.string.isRequired,\n saving: PropTypes.bool.isRequired,\n\n onChange: PropTypes.func.isRequired,\n onClose: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired\n}\n\nexport default ContentNotesDialog\n","import { connect } from 'react-redux'\n\nimport ContentNotesDialog from 'components/content_desk_new/contents/content_notes_dialog'\n\nimport {\n setContentFormData,\n saveContentStart,\n unlockContentStart\n} from 'actions/content_desk'\n\nimport {\n getCDeskContentFormData,\n getCDeskShowContentNotesDialog,\n getUserId,\n getUserFirstName,\n getUserLastName,\n getCDeskContentIsLoading\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n data: getCDeskContentFormData(state),\n isOpen: getCDeskShowContentNotesDialog(state),\n userId: getUserId(state),\n userFirstName: getUserFirstName(state),\n userLastName: getUserLastName(state),\n saving: getCDeskContentIsLoading(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: setContentFormData,\n onClose: unlockContentStart,\n onSave: saveContentStart\n }\n)(ContentNotesDialog)\n","import { connect } from 'react-redux'\n\nimport {\n setSortBy,\n setPage\n} from 'actions/content_desk'\nimport {\n getCDeskContentSortBy,\n getCDeskContentSortOrder,\n getCDeskContents,\n getCDeskSearchContentsRunning\n} from 'selectors'\n\nimport Contents from 'components/content_desk_new/contents'\n\nconst mapStateToProps = (state, ownProps) => ({\n contents: ownProps.contents || getCDeskContents(state),\n loading: getCDeskSearchContentsRunning(state),\n showCampaigns: ownProps.showCampaigns,\n sortBy: getCDeskContentSortBy(state),\n sortOrder: getCDeskContentSortOrder(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSortBy: setSortBy,\n setPage\n }\n)(Contents)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport moment from 'moment-timezone'\nimport { Map } from 'immutable'\nimport camelcase from 'camelcase'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Accordion,\n AccordionDetails,\n AccordionSummary,\n Box,\n Divider,\n Grid,\n Typography\n} from '@mui/material'\nimport { green, purple, grey, orange } from '@mui/material/colors'\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\nimport VisibilityIcon from '@mui/icons-material/Visibility'\nimport NotesIcon from '@mui/icons-material/Notes'\n\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\nimport { IconButton } from 'containers/themed'\n\nimport ContentTitle from 'containers/content_desk_new/contents/content/ContentTitle'\nimport ContentApprovalStatusSelect from 'containers/content_desk_new/contents/content/ContentApprovalStatusSelect'\nimport ContentStatus from 'containers/content_desk_new/contents/content/ContentStatus'\n\nconst useStyles = makeStyles()(() => ({\n summaryHeader: {\n width: '95%',\n display: 'flex',\n justifyContent: 'space-between'\n },\n icon: {\n fontSize: 20,\n margin: '-2px'\n },\n draft: {\n borderLeft: '5px solid',\n borderColor: grey[500]\n },\n reviewPending: {\n borderLeft: '5px solid',\n borderColor: purple[500]\n },\n revisionsNeeded: {\n borderLeft: '5px solid',\n borderColor: orange[500]\n },\n approved: {\n borderLeft: '5px solid',\n borderColor: green[500]\n },\n detailsContainer: {\n marginTop: 10,\n fontSize: 12\n },\n label: {\n fontWeight: 600\n }\n}))\n\nfunction ColumnFooter({ text }) {\n return (\n \n !theme.isDark && '#757575', fontSize: 12 }}\n >\n {text}\n \n \n )\n}\n\nconst MobileContent = ({\n content,\n showCampaigns,\n onEditClick,\n onViewClick\n}) => {\n const i18n = useI18n()\n const device = useDevice()\n const { classes } = useStyles()\n const editor = `${content.getIn(['lastEditor', 'firstName'])} ${content.getIn(['lastEditor', 'lastName'])}`\n const lastEditedDate = moment(content.get('updatedAt')).format('lll')\n const status = camelcase(content.get('approvalStatus'))\n const statusClass = classes[status]\n let maxLength = 24\n\n if (device.get('sm') || device.get('gt-sm')) {\n maxLength = 50\n }\n\n const handleNotes = () => onEditClick({ id: content.get('id'), openContentNotesDialog: true })\n\n return (\n \n }>\n \n \n {device.get('sm') && (\n \n )}\n \n \n \n \n \n \n {i18n.get('last_edited')}:\n \n \n {editor}\n \n \n {showCampaigns && (\n <>\n \n {i18n.get('campaign')}:\n \n \n {content.getIn(['ccdCampaign', 'name'])}\n \n \n )}\n \n {i18n.get('editing_status')}:\n \n \n \n \n \n {i18n.get('sending_status')}:\n \n \n \n \n \n \n {i18n.get('actions')}:\n \n \n onViewClick(content)}>\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nMobileContent.defaultProps = {\n showCampaigns: true\n}\n\nMobileContent.propTypes = {\n content: PropTypes.instanceOf(Map).isRequired,\n showCampaigns: PropTypes.bool,\n onEditClick: PropTypes.func.isRequired,\n onViewClick: PropTypes.func.isRequired\n}\n\nColumnFooter.propTypes = {\n text: PropTypes.string\n}\n\nexport default MobileContent\n","import { connect } from 'react-redux'\n\nimport MobileContent from 'components/content_desk_new/contents/mobile_contents/mobile_content'\n\nimport {\n lockContentStart as onEditClick,\n openViewContentDialog as onViewClick\n} from 'actions/content_desk'\n\nconst mapStateToProps = (_state, ownProps) => ({\n content: ownProps.content\n})\n\nexport default connect(\n mapStateToProps,\n {\n onEditClick,\n onViewClick\n }\n)(MobileContent)\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport camelcase from 'camelcase'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Box,\n CircularProgress\n} from '@mui/material'\n\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward'\nimport ArrowDownwardIcon from '@mui/icons-material/ArrowDownward'\nimport SwapVertIcon from '@mui/icons-material/SwapVert'\n\nimport MobileContent from 'containers/content_desk_new/contents/mobile_contents/MobileContent'\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n container: {\n position: 'relative',\n width: '100%',\n padding: 10\n },\n loadingContainer: {\n zIndex: 1,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n backgroundColor: 'rgba(255, 255, 255, 0.7)'\n },\n header: {\n display: 'flex',\n justifyContent: 'space-between',\n marginRight: 30\n },\n sortIconActive: {\n fontSize: '0.8rem !important'\n },\n sortIconInActive: {\n fontSize: '0.8rem',\n opacity: 0.5\n }\n})\n\nconst MobileContents = ({\n contents,\n loading,\n showCampaigns,\n sortBy,\n sortOrder,\n\n onSortBy,\n setPage\n}) => {\n const i18n = useI18n()\n const device = useDevice()\n const { classes } = useStyles()\n const [sortedContents, setSortedContents] = useState(contents.get('items'))\n const [currentSortBy, setCurrentSortBy] = useState(sortBy)\n const [currentSortOrder, setCurrentSortOrder] = useState(sortOrder)\n\n useEffect(() => {\n setSortedContents(contents.get('items'))\n }, [contents])\n\n let handleSortingClick = field => {\n let newSortOrder = ''\n let newSortField = camelcase(field)\n\n if (field === currentSortBy) {\n if (currentSortOrder === '') {\n newSortOrder = 'asc'\n }\n\n if (currentSortOrder === 'asc') {\n newSortOrder = 'desc'\n }\n\n if (currentSortOrder === 'desc') {\n newSortOrder = ''\n newSortField = ''\n }\n } else {\n newSortOrder = 'asc'\n }\n\n if (newSortField === '') {\n setSortedContents(contents.get('items'))\n setCurrentSortBy('')\n setCurrentSortOrder('')\n\n return\n }\n\n const sorted = sortedContents.sort((a, b) => {\n if (a.get(newSortField) < b.get(newSortField)) {\n return newSortOrder === 'asc' ? -1 : 1\n }\n\n if (a.get(newSortField) > b.get(newSortField)) {\n return newSortOrder === 'asc' ? 1 : -1\n }\n\n return 0\n })\n\n setSortedContents(sorted)\n setCurrentSortBy(field)\n setCurrentSortOrder(newSortOrder)\n }\n\n if (setPage && onSortBy) {\n handleSortingClick = field => {\n let newSortOrder = ''\n let newSortField = field\n\n if (field === currentSortBy) {\n if (currentSortOrder === '') {\n newSortOrder = 'asc'\n }\n\n if (currentSortOrder === 'asc') {\n newSortOrder = 'desc'\n }\n\n if (currentSortOrder === 'desc') {\n newSortOrder = ''\n newSortField = ''\n }\n } else {\n newSortOrder = 'asc'\n }\n\n setPage({ key: 'contentPage', value: 1 })\n onSortBy({ type: 'contents', sortBy: newSortField, sortOrder: newSortOrder })\n setCurrentSortBy(field)\n setCurrentSortOrder(newSortOrder)\n }\n }\n\n const renderSortIcon = field => {\n if (sortedContents.size === 1) {\n return null\n }\n\n let title = i18n.get('sort')\n let icon = \n let iconClass = classes.sortIconInActive\n\n if (field === currentSortBy) {\n if (currentSortOrder === 'asc') {\n iconClass = classes.sortIconActive\n icon = \n title = i18n.get('ascending')\n }\n\n if (currentSortOrder === 'desc') {\n iconClass = classes.sortIconActive\n icon = \n title = i18n.get('descending')\n }\n }\n\n return (\n handleSortingClick(field)}\n />\n )\n }\n\n const renderContents = () => sortedContents.map((el, index) => (\n \n ))\n\n return (\n \n {loading && (\n \n \n \n )}\n \n \n {i18n.get('name')} {renderSortIcon('title')}\n \n {device.get('sm') && (\n \n {i18n.get('sending_status')} {renderSortIcon('scheduled_for')}\n \n )}\n \n {renderContents()}\n \n )\n}\n\nMobileContents.defaultProps = {\n showCampaigns: true,\n loading: false,\n sortBy: null,\n sortOrder: 'asc'\n}\n\nMobileContents.propTypes = {\n contents: PropTypes.instanceOf(Map).isRequired,\n loading: PropTypes.bool,\n showCampaigns: PropTypes.bool,\n sortBy: PropTypes.string,\n sortOrder: PropTypes.string,\n\n onSortBy: PropTypes.func,\n setPage: PropTypes.func\n}\n\nexport default MobileContents\n","import { connect } from 'react-redux'\n\nimport {\n setSortBy,\n setPage\n} from 'actions/content_desk'\nimport {\n getCDeskContentSortBy,\n getCDeskContentSortOrder,\n getCDeskContents,\n getCDeskSearchContentsRunning\n} from 'selectors'\n\nimport MobileContents from 'components/content_desk_new/contents/mobile_contents'\n\nconst mapStateToProps = (state, ownProps) => ({\n contents: ownProps.contents || getCDeskContents(state),\n loading: getCDeskSearchContentsRunning(state),\n showCampaigns: ownProps.showCampaigns,\n sortBy: getCDeskContentSortBy(state),\n sortOrder: getCDeskContentSortOrder(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSortBy: setSortBy,\n setPage\n }\n)(MobileContents)\n","import React, { useState, useEffect } from 'react'\nimport useI18n from 'hooks/useI18n'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Badge, Menu, FormControl, ToggleButton, ToggleButtonGroup, Slider, Box, Typography } from '@mui/material'\n\nimport AddOutlinedIcon from '@mui/icons-material/AddOutlined'\nimport CloseIcon from '@mui/icons-material/Close'\nimport DeleteForeverIcon from '@mui/icons-material/DeleteForever'\nimport SearchIcon from '@mui/icons-material/Search'\nimport FilterListIcon from '@mui/icons-material/FilterList'\n\nimport { InlineDateTimePicker, Button, IconButton, Select, Input } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n filtersContainer: {\n paddingTop: '10px',\n paddingBottom: '10px',\n paddingLeft: '20px',\n paddingRight: '20px'\n },\n newFilterAndOperatorActions: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n marginBottom: '20px'\n },\n applyAndRemoveActions: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n marginTop: '20px'\n },\n filterRow: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-start',\n gap: '10px',\n marginBottom: '6px',\n padding: '5px'\n },\n operatorToggleForm: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: '10px'\n },\n operatorToggle: {\n width: '100px',\n '& button': {\n width: '100%'\n }\n },\n actionButton: {\n width: '140px'\n },\n buttonIcon: {\n marginLeft: '10px'\n },\n invalidFilter: {\n backgroundColor: 'rgba(255, 0, 0, 0.038)',\n borderRadius: '6px'\n },\n input: {\n width: '200px',\n minWidth: '200px',\n maxWidth: '200px'\n },\n slider: {\n width: '100%',\n paddingLeft: '10px',\n paddingRight: '10px',\n display: 'flex',\n alignItems: 'center',\n gap: '5px'\n }\n})\n\n// Example field options for multi filters:\n//\n// fieldOptions = [\n// {\n// field: 'field_1',\n// name: 'field_1',\n// type: 'text'\n// },\n// {\n// field: 'field_2',\n// name: 'field_2',\n// type: 'number'\n// },\n// {\n// field: 'field_3',\n// name: 'field_3',\n// type: 'enum',\n// values: [\n// { value: 'value_1', label: 'value_1_label' },\n// { value: 'value_2', label: 'value_2_label' }\n// ]\n// },\n// {\n// field: 'field_4',\n// name: 'field_4',\n// type: 'boolean'\n// },\n// {\n// field: 'field_5',\n// name: 'field_5',\n// type: 'date'\n// },\n// {\n// field: ['field_6', 'filed_6_1'], // Nested (association) field\n// name: 'field_6 field_6_1',\n// label: 'field_6_1_label',\n// type: 'text'\n// },\n// {\n// field: 'field_7',\n// name: 'field_7',\n// type: 'percentage'\n// }\n// ]\n\nfunction MultiFilters({ currentFilters, fieldOptions, loading, position, locale, onApply }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const comparisonOptions = [\n {\n type: 'text',\n values: [\n 'equals',\n 'not_equals',\n 'contains',\n 'not_contains',\n 'starts_with',\n 'not_starts_with',\n 'ends_with',\n 'not_ends_with',\n 'empty',\n 'not_empty'\n ]\n },\n {\n type: 'number',\n values: [\n 'equals',\n 'not_equals',\n 'greater_than',\n 'greater_than_or_equals',\n 'less_than',\n 'less_than_or_equals'\n ]\n },\n {\n type: 'percentage',\n values: [\n 'equals',\n 'not_equals',\n 'greater_than',\n 'greater_than_or_equals',\n 'less_than',\n 'less_than_or_equals'\n ]\n },\n {\n type: 'enum',\n values: [\n 'equals',\n 'not_equals',\n 'empty',\n 'not_empty'\n ]\n },\n {\n type: 'date',\n values: [\n 'date_equals',\n 'date_not_equals',\n 'date_greater_than',\n 'date_greater_than_or_equals',\n 'date_less_than',\n 'date_less_than_or_equals',\n 'empty',\n 'not_empty'\n ]\n }\n ]\n\n const getPosition = p => {\n switch (p) {\n case 'top':\n return {\n anchorOrigin: { vertical: 'top', horizontal: 'left' },\n transformOrigin: { vertical: 'top', horizontal: 'left' }\n }\n case 'top-start':\n return {\n anchorOrigin: { vertical: 'top', horizontal: 'left' },\n transformOrigin: { vertical: 'top', horizontal: 'left' }\n }\n case 'top-end':\n return {\n anchorOrigin: { vertical: 'top', horizontal: 'right' },\n transformOrigin: { vertical: 'top', horizontal: 'right' }\n }\n case 'bottom':\n return {\n anchorOrigin: { vertical: 'bottom', horizontal: 'left' },\n transformOrigin: { vertical: 'top', horizontal: 'left' }\n }\n case 'bottom-start':\n return {\n anchorOrigin: { vertical: 'bottom', horizontal: 'left' },\n transformOrigin: { vertical: 'top', horizontal: 'left' }\n }\n case 'bottom-end':\n return {\n anchorOrigin: { vertical: 'bottom', horizontal: 'right' },\n transformOrigin: { vertical: 'top', horizontal: 'right' }\n }\n default:\n return {\n anchorOrigin: { vertical: 'bottom', horizontal: 'left' },\n transformOrigin: { vertical: 'top', horizontal: 'left' }\n }\n }\n }\n\n const { anchorOrigin, transformOrigin } = getPosition(position)\n\n const [anchorEl, setAnchorEl] = useState(null)\n const open = Boolean(anchorEl)\n\n const [index, setIndex] = useState(0)\n const [operator, setOperator] = useState('and')\n\n const initialFilter = { index, field: '', name: '', comparison: '', value: '' }\n\n const [filters, setFilters] = useState([initialFilter])\n\n useEffect(() => {\n if (currentFilters) {\n setOperator(currentFilters.operator)\n\n if (currentFilters.conditions.length > 0) {\n setIndex(currentFilters.conditions[currentFilters.conditions.length - 1].index)\n setFilters(currentFilters.conditions)\n } else {\n setIndex(0)\n setFilters([initialFilter])\n }\n }\n }, [currentFilters])\n\n const validFilter = filter => filter.field !== ''\n && filter.comparison !== ''\n && (filter.value !== '' || ['empty', 'not_empty'].includes(filter.comparison))\n\n const validFilters = filters.filter(validFilter)\n\n const handleApplyFilters = () => {\n onApply(operator, validFilters)\n }\n\n const handleAddFilter = () => {\n setIndex(index + 1)\n setFilters(prevFilters => [...prevFilters, { index: index + 1, field: '', name: '', comparison: '', value: '' }])\n }\n\n const handleRemoveFilter = i => {\n if (filters.length === 1) {\n setFilters([initialFilter])\n } else {\n setFilters(prevFilters => prevFilters.filter(filter => filter.index !== i))\n }\n }\n\n const handleRemoveAllFilters = () => {\n setFilters([initialFilter])\n }\n\n const handleFiltersClick = event => {\n setAnchorEl(event.currentTarget)\n }\n\n const handleFiltersClose = () => {\n setAnchorEl(null)\n }\n\n const matchingOption = (firstValue, secondValue) => firstValue === secondValue\n\n const handleFilterFieldChange = (option, i) => {\n if (option.value) {\n setFilters(prevFilters => prevFilters.map(filter => {\n if (filter.index === i) {\n const fieldOption = fieldOptions.find(field => matchingOption(field.name, option.value))\n const isBoolean = fieldOption.type === 'boolean'\n\n let value = ''\n\n if (fieldOption.type === 'percentage') {\n value = 0\n }\n\n return {\n ...filter,\n field: fieldOption.field,\n name: fieldOption.name,\n comparison: isBoolean ? 'is' : '',\n value\n }\n }\n\n return filter\n }))\n }\n }\n\n const handleComparisonChange = (option, i) => {\n if (option.value) {\n setFilters(prevFilters => prevFilters.map(filter => {\n if (filter.index === i) {\n return {\n ...filter,\n comparison: option.value,\n value: option.value === 'empty' || option.value === 'not_empty' ? '' : filter.value\n }\n }\n\n return filter\n }))\n }\n }\n\n const handleTextValueChange = (e, i) => {\n const { value } = e.target\n\n setFilters(prevFilters => prevFilters.map(filter => {\n if (filter.index === i) {\n return { ...filter, value }\n }\n\n return filter\n }))\n }\n\n const handleNumberValueChange = (value, i) => {\n setFilters(prevFilters => prevFilters.map(filter => {\n if (filter.index === i) {\n return { ...filter, value }\n }\n\n return filter\n }))\n }\n\n const handleEnumValueChange = (option, i) => {\n if (option.value) {\n setFilters(prevFilters => prevFilters.map(filter => {\n if (filter.index === i) {\n return { ...filter, value: option.value }\n }\n\n return filter\n }))\n }\n }\n\n const handleDateValueChange = (value, i) => {\n if (value) {\n setFilters(prevFilters => prevFilters.map(filter => {\n if (filter.index === i) {\n return { ...filter, value }\n }\n\n return filter\n }))\n }\n }\n\n const renderValueInput = (filter, i) => {\n if (filter.comparison === 'empty' || filter.comparison === 'not_empty') {\n return null\n }\n\n if (filter.field && fieldOptions.find(field => matchingOption(field.name, filter.name)).type === 'text') {\n return (\n handleTextValueChange(e, i)}\n onKeyDown={e => e.stopPropagation()}\n label={i18n.get('value')}\n disabled={loading}\n />\n )\n }\n\n if (filter.field && fieldOptions.find(field => matchingOption(field.name, filter.name)).type === 'number') {\n return (\n handleNumberValueChange(parseInt(value, 10), i)}\n onKeyDown={e => e.stopPropagation()}\n label={i18n.get('value')}\n disabled={loading}\n />\n )\n }\n\n if (filter.field && fieldOptions.find(field => matchingOption(field.name, filter.name)).type === 'percentage') {\n return (\n \n handleNumberValueChange(value, i)}\n min={0}\n max={100}\n step={1}\n valueLabelDisplay=\"off\"\n valueLabelFormat={value => `${value}%`}\n disabled={loading}\n />\n \n {filter.value}%\n \n \n )\n }\n\n if (filter.field && fieldOptions.find(field => matchingOption(field.name, filter.name)).type === 'enum') {\n return (\n \n handleEnumValueChange(value, i)}\n onKeyDown={e => e.stopPropagation()}\n options={fieldOptions\n .find(field => matchingOption(field.name, filter.name)).values\n .map(({ value, label }) => ({ value, label: i18n.get(label) }))}\n label={i18n.get('value')}\n disabled={loading}\n />\n \n )\n }\n\n if (filter.field && fieldOptions.find(field => matchingOption(field.name, filter.name)).type === 'boolean') {\n return (\n \n handleEnumValueChange(value, i)}\n onKeyDown={e => e.stopPropagation()}\n options={[{ value: 'yes', label: i18n.get('yes') }, { value: 'no', label: i18n.get('no') }]}\n label={i18n.get('value')}\n disabled={loading}\n />\n \n )\n }\n\n if (filter.field && fieldOptions.find(field => matchingOption(field.name, filter.name)).type === 'date') {\n return (\n \n handleDateValueChange(value, i)}\n onKeyDown={e => e.stopPropagation()}\n disabled={loading}\n />\n \n )\n }\n\n return null\n }\n\n const filterRow = filter => {\n const invalidFilterClass = validFilter(filter) ? '' : classes.invalidFilter\n\n return (\n \n handleRemoveFilter(filter.index)}\n title={i18n.get('remove')}\n disabled={loading}\n >\n \n \n \n handleFilterFieldChange(value, filter.index)}\n value={filter.name}\n options={fieldOptions.map(option => ({ value: option.name, label: i18n.get(option.label || option.name) }))}\n label={i18n.get('field')}\n disabled={loading}\n />\n \n {\n filter.field && fieldOptions.find(field => matchingOption(field.name, filter.name)).type !== 'boolean' && (\n \n handleComparisonChange(value, filter.index)}\n value={filter.comparison}\n options={filter.field ? comparisonOptions\n .find(option => option.type === fieldOptions.find(field => matchingOption(field.name, filter.name)).type).values\n .map(value => ({ value, label: i18n.get(value) })) : []}\n label={i18n.get('comparison')}\n disabled={loading}\n />\n \n )\n }\n {renderValueInput(filter, filter.index)}\n \n )\n }\n\n return (\n \n \n \n \n \n \n {i18n.get('filters')}\n \n \n \n \n \n \n {i18n.get('remove_all')}\n \n \n \n {i18n.get('operator')}:\n value && setOperator(value)}\n >\n {i18n.get('and')}\n {i18n.get('or')}\n \n \n \n {filters.map(filterRow)}\n \n \n {i18n.get('add_filter')}\n \n \n \n {i18n.get('apply_filters')}\n \n \n \n \n \n \n )\n}\n\nMultiFilters.propTypes = {\n currentFilters: PropTypes.object,\n fieldOptions: PropTypes.array,\n loading: PropTypes.bool,\n position: PropTypes.string,\n locale: PropTypes.string,\n\n onApply: PropTypes.func\n}\n\nexport default MultiFilters\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport MultiFilters from 'components/multi_filters'\n\nconst useStyles = makeStyles()({\n container: {\n marginBottom: '1em'\n }\n})\n\nfunction CampaignsFilters({\n currentFilters,\n loading,\n locale,\n searchCampaigns,\n setCampaignFilters,\n setPage\n}) {\n const { classes } = useStyles()\n\n const fieldOptions = [\n {\n field: 'name',\n name: 'name',\n label: 'name',\n type: 'text'\n },\n {\n field: 'start_date',\n name: 'start_date',\n type: 'date'\n },\n {\n field: 'end_date',\n name: 'end_date',\n type: 'date'\n },\n {\n field: 'days_left',\n name: 'days_left',\n label: 'days_left',\n type: 'number'\n },\n {\n field: 'progress',\n name: 'progress',\n label: 'progress',\n type: 'percentage'\n },\n {\n field: 'assignee_full_name',\n name: 'assignee_full_name',\n label: 'assigned_user',\n type: 'text'\n }\n ]\n\n const handleOnApply = (operator, conditions) => {\n setPage({ key: 'campaignPage', value: 1 })\n setCampaignFilters({ operator, conditions })\n searchCampaigns()\n }\n\n return (\n
    \n \n
    \n )\n}\n\nCampaignsFilters.propTypes = {\n currentFilters: PropTypes.instanceOf(Map).isRequired,\n loading: PropTypes.bool.isRequired,\n locale: PropTypes.string.isRequired,\n\n searchCampaigns: PropTypes.func.isRequired,\n setCampaignFilters: PropTypes.func.isRequired,\n setPage: PropTypes.func.isRequired\n}\n\nexport default CampaignsFilters\n","import { connect } from 'react-redux'\n\nimport CampaignsFilters from 'components/content_desk_new/campaigns/campaigns_filters'\n\nimport {\n searchCampaignsStart,\n setCampaignFilters,\n setPage\n} from 'actions/content_desk'\n\nimport {\n getCDeskContentFilters,\n getCDeskSearchContentsRunning,\n getUserLocale\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n currentFilters: getCDeskContentFilters(state),\n loading: getCDeskSearchContentsRunning(state),\n locale: getUserLocale(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n searchCampaigns: searchCampaignsStart,\n setCampaignFilters,\n setPage\n }\n)(CampaignsFilters)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport MultiFilters from 'components/multi_filters'\nimport { mapToOptions } from 'utils/autocomplete'\n\nconst useStyles = makeStyles()({\n container: {\n marginBottom: '1em'\n }\n})\n\nfunction ContentsFilters({\n currentFilters,\n loading,\n locale,\n contentDeskContentTypes,\n searchContents,\n setContentFilters,\n setPage\n}) {\n const { classes } = useStyles()\n const contentDeskContentTypesOptions = mapToOptions(contentDeskContentTypes)\n\n const fieldOptions = [\n {\n field: 'title',\n name: 'title',\n label: 'name',\n type: 'text'\n },\n {\n field: 'type',\n name: 'type',\n type: 'enum',\n values: contentDeskContentTypesOptions\n },\n {\n field: 'approval_status',\n name: 'approval_status',\n label: 'editing_status',\n type: 'enum',\n values: [\n { value: 'draft', label: 'draft' },\n { value: 'approved', label: 'approved' },\n { value: 'revisions_needed', label: 'revisions_needed' },\n { value: 'review_pending', label: 'review_pending' }\n ]\n },\n {\n field: 'sending_status',\n name: 'sending_status',\n label: 'sending_status',\n type: 'enum',\n values: [\n { value: 'scheduled', label: 'scheduled' },\n { value: 'released', label: 'released' },\n { value: 'failed', label: 'failed' }\n ]\n },\n {\n field: 'planned_for',\n name: 'planned_for',\n type: 'date'\n },\n {\n field: 'scheduled_for',\n name: 'scheduled_for',\n type: 'date'\n },\n {\n field: 'created_by_full_name',\n name: 'created_by_full_name',\n label: 'created_by',\n type: 'text'\n },\n {\n field: 'updated_by_full_name',\n name: 'updated_by_full_name',\n label: 'last_edited_by',\n type: 'text'\n }\n ]\n\n const handleOnApply = (operator, conditions) => {\n setPage({ key: 'contentPage', value: 1 })\n setContentFilters({ operator, conditions })\n searchContents()\n }\n\n return (\n
    \n \n
    \n )\n}\n\nContentsFilters.propTypes = {\n currentFilters: PropTypes.instanceOf(Map).isRequired,\n loading: PropTypes.bool.isRequired,\n locale: PropTypes.string.isRequired,\n contentDeskContentTypes: PropTypes.instanceOf(List).isRequired,\n\n searchContents: PropTypes.func.isRequired,\n setContentFilters: PropTypes.func.isRequired,\n setPage: PropTypes.func.isRequired\n}\n\nexport default ContentsFilters\n","import { connect } from 'react-redux'\n\nimport ContentsFilters from 'components/content_desk_new/contents/contents_filters/'\n\nimport {\n searchContentsStart,\n setContentFilters,\n setPage\n} from 'actions/content_desk'\n\nimport {\n getCDeskContentFilters,\n getCDeskSearchContentsRunning,\n getStaticCdContentTypes,\n getUserLocale\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n currentFilters: getCDeskContentFilters(state),\n loading: getCDeskSearchContentsRunning(state),\n contentDeskContentTypes: getStaticCdContentTypes(state),\n locale: getUserLocale(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n searchContents: searchContentsStart,\n setContentFilters,\n setPage\n }\n)(ContentsFilters)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport useColors from 'hooks/useColors'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Button } from 'containers/themed'\n\nconst ButtonContainer = props =>
    \n\nconst useStyles = makeStyles()(theme => ({\n switchActions: {\n display: 'flex',\n height: '45px !important'\n },\n switchAction: {\n position: 'relative',\n flexBasis: 0,\n '& > button': {\n minHeight: '100%',\n [theme.breakpoints.only('xs')]: {\n fontSize: 10\n }\n }\n },\n switchActionContent: {\n paddingTop: '4px',\n paddingLeft: '10px',\n paddingRight: '10px',\n whiteSpace: 'nowrap',\n opacity: 0.7\n },\n iconContainer: {\n position: 'absolute',\n display: 'flex',\n width: '100%',\n alignItems: 'center',\n height: 25,\n marginRight: 5\n }\n}))\n\nexport default function ContentsCampaignsTab({\n campaignsLoading,\n contentsLoading,\n view,\n changeContentsCampaignsTabView\n}) {\n const i18n = useI18n()\n const colors = useColors()\n const { classes } = useStyles()\n\n const handleTabChange = buttonView => {\n if (view === buttonView) {\n return\n }\n\n changeContentsCampaignsTabView(buttonView)\n }\n\n const renderNavigationAction = (buttonView, label, loading, isDisabled = false, Comp = ButtonContainer) => {\n let active\n\n if (view === buttonView) {\n active = (\n \n )\n }\n\n const tabButton = () => (\n handleTabChange(buttonView)}\n disabled={isDisabled}\n loading={loading}\n >\n \n {label}\n
    \n \n )\n\n return (\n \n {tabButton()}\n {active}\n \n )\n }\n\n const buttons = []\n\n buttons.push(\n renderNavigationAction(\n 'contents',\n `${i18n.get('contents')}`,\n contentsLoading\n )\n )\n\n buttons.push(\n renderNavigationAction(\n 'campaigns',\n `${i18n.get('campaigns')}`,\n campaignsLoading\n )\n )\n\n return (\n <>\n
    \n {buttons}\n
    \n \n )\n}\n\nContentsCampaignsTab.propTypes = {\n campaignsLoading: PropTypes.bool.isRequired,\n contentsLoading: PropTypes.bool.isRequired,\n view: PropTypes.string.isRequired,\n\n changeContentsCampaignsTabView: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ContentsCampaignsTabs from 'components/content_desk_new/contents_campaigns_tabs'\n\nimport {\n changeContentsCampaignsTabView\n} from 'actions/content_desk'\n\nimport {\n getCDeskSearchCampaignsRunning,\n getCDeskSearchContentsRunning,\n getCDeskContentsCampaignsTabView\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n campaignsLoading: getCDeskSearchCampaignsRunning(state),\n contentsLoading: getCDeskSearchContentsRunning(state),\n view: getCDeskContentsCampaignsTabView(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n changeContentsCampaignsTabView\n }\n)(ContentsCampaignsTabs)\n","function isFloat(value) {\n if (\n typeof value === 'number'\n && !Number.isNaN(value)\n && !Number.isInteger(value)\n ) {\n return true\n }\n\n return false\n}\n\nexport const calcRate = (x, y) => {\n if (y === 0 || (x === 0 && y !== 0)) {\n return `${0}%`\n }\n\n const result = (x / y) * 100\n\n return isFloat(result) ? `${result.toFixed(2)}%` : `${result}%`\n}\n","import React from 'react'\nimport { Map } from 'immutable'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Card,\n CardContent,\n Divider,\n Grid,\n Typography,\n CircularProgress\n} from '@mui/material'\nimport { grey } from '@mui/material/colors'\n\nimport { calcRate } from 'utils/mailgunCalc'\n\nconst useStyles = makeStyles()(theme => ({\n card: {\n borderRadius: 20,\n minHeight: 147,\n boxShadow: 'none',\n border: '1px solid',\n borderColor: grey[200]\n },\n cardContent: {\n marginTop: 18,\n display: 'flex',\n alignContent: 'center'\n },\n kpiWrapper: {\n height: '100%'\n },\n engagement: {\n fontSize: '30pt',\n fontWeight: '700',\n color: !theme.isDark && '#404040'\n },\n engagementLabel: {\n fontSize: '12pt',\n color: !theme.isDark && '#757575'\n },\n headlineDivider: {\n margin: '1em 0em 1em 0em'\n },\n divider: {\n marginTop: '1em',\n [theme.breakpoints.only('xs')]: {\n display: 'none'\n }\n },\n headline: {\n color: !theme.isDark && '#757575',\n marginBottom: '0.5em'\n }\n}))\n\nconst Email = ({ data, requestRunning }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const total = data.get('total')\n const isTotalEmpty = total ? (Object.keys(total).length === 0 && total.constructor === Object) : true\n const clickToOpenRate = isTotalEmpty\n ? 'n/a'\n : calcRate(total.uniqueClicked, total.uniqueOpened)\n const clickThroughRate = isTotalEmpty\n ? 'n/a'\n : calcRate(total.uniqueClicked, total.delivered)\n const unsubscribeRate = isTotalEmpty\n ? 'n/a'\n : calcRate(total.unsubscribed, total.delivered)\n const undeliveredRate = isTotalEmpty\n ? 'n/a'\n : calcRate(total.undelivered, total.recipients)\n const loadOrShowData = value => {\n if (requestRunning) {\n return \n }\n\n return value\n }\n\n return (\n <>\n \n \n {i18n.get('engagement')}\n \n \n \n \n \n
    \n
    {i18n.get('views')}
    \n
    {loadOrShowData(isTotalEmpty ? 'n/a' : total.opened)}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('unique_views')}
    \n
    {loadOrShowData(isTotalEmpty ? 'n/a' : total.uniqueOpened)}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('clicks')}
    \n
    {loadOrShowData(isTotalEmpty ? 'n/a' : total.clicked)}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('unique_clicks')}
    \n
    {loadOrShowData(isTotalEmpty ? 'n/a' : total.uniqueClicked)}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    \n {i18n.get('click_to_open_rate')}\n
    \n
    {loadOrShowData(clickToOpenRate)}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('click_through_rate')}
    \n
    {loadOrShowData(clickThroughRate)}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    \n {i18n.get('unsubscribe_rate')}\n
    \n
    {loadOrShowData(unsubscribeRate)}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    \n {i18n.get('undelivered_rate')}\n
    \n
    {loadOrShowData(undeliveredRate)}
    \n
    \n
    \n
    \n \n \n \n )\n}\n\nEmail.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired,\n requestRunning: PropTypes.bool.isRequired\n}\n\nexport default Email\n","\nimport { connect } from 'react-redux'\n\nimport Email from 'components/content_desk_new/contents/content_view/statistics_data/email'\n\nimport { getCDeskStatisticsRequestRunning } from 'selectors'\n\nconst mapStateToProps = (state, { data }) => ({\n data,\n requestRunning: getCDeskStatisticsRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(Email)\n","import React from 'react'\nimport { Map } from 'immutable'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Card,\n CardContent,\n Divider,\n Grid,\n Typography,\n CircularProgress\n} from '@mui/material'\nimport { grey } from '@mui/material/colors'\n\nconst useStyles = makeStyles()(theme => ({\n headlineDivider: {\n margin: '1em 0em 1em 0em'\n },\n card: {\n borderRadius: 20,\n minHeight: 147,\n boxShadow: 'none',\n border: '1px solid',\n borderColor: grey[200]\n },\n cardContent: {\n marginTop: 18,\n display: 'flex',\n alignContent: 'center'\n },\n kpiWrapper: {\n height: '100%'\n },\n value: {\n fontSize: '30pt',\n fontWeight: '700',\n color: !theme.isDark && '#404040'\n },\n label: {\n fontSize: '12pt',\n color: !theme.isDark && '#757575'\n },\n headline: {\n color: !theme.isDark && '#757575',\n marginBottom: '0.5em'\n }\n}))\n\nconst LinkedIn = ({ data, requestRunning }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const loadOrShowData = key => {\n if (requestRunning) {\n return \n }\n\n if (data.getIn(['owned', 'keyFigures'])) {\n return data.getIn(['owned', 'keyFigures']).find(k => k.get('name') === key).get('value')\n }\n\n return 'n/a'\n }\n\n return (\n <>\n \n \n {i18n.get('owned')}\n \n \n \n \n \n
    \n
    {i18n.get('comments')}
    \n
    {loadOrShowData('linkedin_comments_count')}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('reactions')}
    \n
    {loadOrShowData('linkedin_reactions_count')}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('likes')}
    \n
    {loadOrShowData('linkedin_likes_count')}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('linked_in_celebrate')}
    \n
    {loadOrShowData('linkedin_celebrate_count')}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('linked_in_support')}
    \n
    {loadOrShowData('linkedin_support_count')}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('linked_in_love')}
    \n
    {loadOrShowData('linkedin_love_count')}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('linked_in_insightful')}
    \n
    {loadOrShowData('linkedin_insightful_count')}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('linked_in_funny')}
    \n
    {loadOrShowData('linkedin_funny_count')}
    \n
    \n
    \n
    \n \n \n \n )\n}\n\nLinkedIn.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired,\n requestRunning: PropTypes.bool.isRequired\n}\n\nexport default LinkedIn\n","\nimport { connect } from 'react-redux'\n\nimport LinkedIn from 'components/content_desk_new/contents/content_view/statistics_data/linked_in'\n\nimport { getCDeskStatisticsRequestRunning } from 'selectors'\n\nconst mapStateToProps = (state, { data }) => ({\n data,\n requestRunning: getCDeskStatisticsRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(LinkedIn)\n","import React from 'react'\nimport { Map } from 'immutable'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Card,\n CardContent,\n Divider,\n Grid,\n Typography,\n CircularProgress\n} from '@mui/material'\nimport { grey } from '@mui/material/colors'\n\nconst useStyles = makeStyles()(theme => ({\n headlineDivider: {\n margin: '1em 0em 1em 0em'\n },\n card: {\n borderRadius: 20,\n minHeight: 147,\n boxShadow: 'none',\n border: '1px solid',\n borderColor: grey[200]\n },\n cardContent: {\n marginTop: 18,\n display: 'flex',\n alignContent: 'center'\n },\n kpiWrapper: {\n height: '100%'\n },\n value: {\n fontSize: '30pt',\n fontWeight: '700',\n color: !theme.isDark && '#404040'\n },\n label: {\n fontSize: '12pt',\n color: !theme.isDark && '#757575'\n },\n headline: {\n color: !theme.isDark && '#757575',\n marginBottom: '0.5em'\n }\n}))\n\nconst Facebook = ({ data, requestRunning, contentType }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const loadOrShowData = key => {\n if (requestRunning) {\n return \n }\n\n if (data.getIn(['owned', 'keyFigures']) && data.getIn(['owned', 'keyFigures']).size !== 0) {\n return data.getIn(['owned', 'keyFigures']).find(k => k.get('name') === key).get('value')\n }\n\n return 'n/a'\n }\n\n return (\n <>\n \n \n {i18n.get('owned')}\n \n \n \n \n \n
    \n
    {i18n.get('reactions')}
    \n
    {loadOrShowData('facebook_reactions_count')}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('likes')}
    \n
    {loadOrShowData('facebook_likes_count')}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('facebook_love')}
    \n
    {loadOrShowData('facebook_love_count')}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('facebook_wow')}
    \n
    {loadOrShowData('facebook_wow_count')}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('facebook_haha')}
    \n
    {loadOrShowData('facebook_haha_count')}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('facebook_sad')}
    \n
    {loadOrShowData('facebook_sad_count')}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('facebook_anger')}
    \n
    {loadOrShowData('facebook_anger_count')}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get('facebook_unique_impressions')}
    \n
    {loadOrShowData('facebook_unique_impressions_count')}
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    {i18n.get(contentType === 'video' ? 'facebook_views' : 'facebook_clicks')}
    \n
    \n {loadOrShowData(contentType === 'video' ? 'facebook_video_views' : 'facebook_clicks_count')}\n
    \n
    \n
    \n
    \n \n \n \n )\n}\n\nFacebook.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired,\n requestRunning: PropTypes.bool.isRequired,\n contentType: PropTypes.string\n}\n\nexport default Facebook\n","\nimport { connect } from 'react-redux'\n\nimport Facebook from 'components/content_desk_new/contents/content_view/statistics_data/facebook'\n\nimport { getCDeskStatisticsRequestRunning } from 'selectors'\n\nconst mapStateToProps = (state, { data }) => ({\n data,\n requestRunning: getCDeskStatisticsRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(Facebook)\n","import React from 'react'\nimport { Map } from 'immutable'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Card,\n CardContent,\n Chip,\n Divider,\n Link,\n List,\n ListItem,\n ListItemText,\n Grid,\n CircularProgress,\n Typography\n} from '@mui/material'\nimport { grey } from '@mui/material/colors'\n\nimport { Popover } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n headlineDivider: {\n margin: '1em 0em 1em 0em'\n },\n card: {\n borderRadius: 20,\n minHeight: 147,\n boxShadow: 'none',\n border: '1px solid',\n borderColor: grey[200]\n },\n cardContent: {\n marginTop: 18,\n minHeight: 150,\n display: 'flex',\n alignContent: 'center'\n },\n kpiWrapper: {\n height: '100%'\n },\n value: {\n fontSize: '30pt',\n fontWeight: '700',\n textAlign: 'center',\n color: !theme.isDark && '#404040'\n },\n label: {\n fontSize: '12pt',\n textAlign: 'center',\n color: !theme.isDark && '#757575'\n },\n divider: {\n marginTop: '1em'\n },\n headline: {\n color: !theme.isDark && '#757575',\n marginBottom: '0.5em'\n },\n popover: {\n maxHeight: 500\n }\n}))\n\nconst OtsPressRelease = ({ data, requestRunning }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const loadOrShowTotalViews = () => {\n if (requestRunning) {\n return \n }\n\n return data.getIn(['owned', 'totalViews'])\n }\n\n const loadOrShowOnlineHits = () => {\n if (requestRunning) {\n return \n }\n\n return data.getIn(['earned', 'onlineHits']).size\n }\n\n const renderOnlineHits = () => {\n if (requestRunning) {\n return \n }\n\n return (\n \n {data.getIn(['earned', 'onlineHits']).map((hit, index) => (\n \n \n {hit.get('url')}\n \n )}\n />\n \n ))}\n \n )\n }\n\n return (\n <>\n \n \n \n \n {i18n.get('owned')}\n \n \n \n
    \n
    {i18n.get('views')}
    \n
    {loadOrShowTotalViews()}
    \n
    \n
    \n
    \n \n \n \n {i18n.get('earned')}\n \n \n \n
    \n
    {i18n.get('online_hits')}
    \n
    {loadOrShowOnlineHits()}
    \n \n )}\n >\n {renderOnlineHits()}\n \n
    \n
    \n
    \n \n \n \n )\n}\n\nOtsPressRelease.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired,\n requestRunning: PropTypes.bool.isRequired\n}\n\nexport default OtsPressRelease\n","\nimport { connect } from 'react-redux'\n\nimport OtsPressRelease from 'components/content_desk_new/contents/content_view/statistics_data/ots_press_release'\n\nimport { getCDeskStatisticsRequestRunning } from 'selectors'\n\nconst mapStateToProps = (state, { data }) => ({\n data,\n requestRunning: getCDeskStatisticsRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(OtsPressRelease)\n","import React, { Fragment } from 'react'\nimport { List as iList, Map } from 'immutable'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Capabilities } from 'static/constants'\nimport { formatNumber, separate } from 'utils/number'\n\nimport ChannelIcon from 'components/channel_icon'\nimport { Button } from 'containers/themed'\nimport CapSafe from 'containers/CapSafe'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Link, Divider, List, ListItem, ListItemText, ListItemAvatar } from '@mui/material'\n\nconst useStyles = makeStyles()({\n item: {\n paddingBottom: 0,\n paddingTop: 0\n },\n switchButton: {\n padding: 10,\n width: '100%'\n }\n})\n\nconst SwitchButton = props => {\n const { classes } = useStyles()\n\n return (\n
    \n
    \n )\n}\n\nconst SwitchToSearchPoolButton = CapSafe(SwitchButton, Capabilities.HAS_NEWS_POOL_MODULE)\n\nexport default function News({\n news,\n content,\n total,\n onSwitchToSearchPoolClick\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n return (\n <>\n onSwitchToSearchPoolClick({\n field: 'ccdContents',\n value: content\n })}\n >\n {i18n.get('switch_to_news_pool_module')}\n \n\n \n {news.map(n => (\n \n \n \n \n \n\n \n {n.getIn(['publication', 'name'])}\n \n )}\n secondary={(\n <>\n {i18n.get('reach')}: \n\n \n {formatNumber(n.getIn(['keyFigures', 'reach']) || 0)}\n \n\n
    \n\n {i18n.get('similarity')}: \n\n \n {n.getIn(['keyFigures', 'similarity'])}%\n \n \n )}\n />\n \n \n
    \n ))}\n\n {news.size < total && (\n \n \n \n \n )}\n \n\n \n )\n}\n\nNews.propTypes = {\n news: PropTypes.instanceOf(iList).isRequired,\n content: PropTypes.instanceOf(Map).isRequired,\n total: PropTypes.number.isRequired,\n\n onSwitchToSearchPoolClick: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport News from 'components/content_desk_new/contents/content_view/statistics_data/news'\n\nimport { switchToSearchPool } from 'actions/content_desk'\nimport { getCDeskSelectedContent } from 'selectors'\n\nconst mapStateToProps = state => ({\n content: getCDeskSelectedContent(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSwitchToSearchPoolClick: switchToSearchPool\n }\n)(News)\n","import React, { useState } from 'react'\nimport { Map } from 'immutable'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Card,\n CardContent,\n Chip,\n Grid,\n Tooltip,\n Typography,\n CircularProgress,\n Box,\n Slider\n} from '@mui/material'\nimport { grey } from '@mui/material/colors'\n\nimport InfoIcon from '@mui/icons-material/Info'\n\nimport { formatNumber, separate } from 'utils/number'\n\nimport { Popover } from 'containers/themed'\nimport Email from 'containers/content_desk_new/contents/content_view/statistics_data/Email'\nimport LinkedIn from 'containers/content_desk_new/contents/content_view/statistics_data/LinkedIn'\nimport Facebook from 'containers/content_desk_new/contents/content_view/statistics_data/Facebook'\nimport OtsPressRelease from 'containers/content_desk_new/contents/content_view/statistics_data/OtsPressRelease'\nimport News from 'containers/content_desk_new/contents/content_view/statistics_data/News'\n\nconst useStyles = makeStyles()(theme => ({\n card: {\n borderRadius: 20,\n minHeight: 147,\n boxShadow: 'none',\n border: '1px solid',\n borderColor: grey[200]\n },\n cardContent: {\n minHeight: 150,\n marginTop: 18,\n display: 'flex'\n },\n kpiWrapper: {\n height: '100%'\n },\n engagement: {\n fontSize: '30pt',\n fontWeight: '700',\n color: !theme.isDark && '#404040'\n },\n engagementLabel: {\n fontSize: '12pt',\n color: !theme.isDark && '#757575'\n },\n rootWrapper: {\n marginTop: '0.5em'\n },\n divider: {\n marginTop: '1em',\n [theme.breakpoints.down('sm')]: {\n display: 'none'\n }\n },\n headline: {\n color: !theme.isDark && '#757575',\n marginBottom: '0.5em'\n },\n popover: {\n width: 300,\n maxHeight: 500\n },\n headlineWrapper: {\n display: 'flex',\n alignItems: 'center',\n gap: 10,\n marginTop: '1em'\n },\n infoIcon: {\n color: grey[600],\n alignSelf: 'flex-start'\n }\n}))\n\nfunction valueLabelFormat(value) {\n return `${value}%`\n}\n\nconst StatisticsData = ({ data, type, requestRunning, showEarnedStats, onAccuracyChange }) => {\n const { classes } = useStyles()\n const [accuracy, setAccuracy] = useState([30])\n const i18n = useI18n()\n\n const loadOrShowData = value => {\n if (requestRunning) {\n return \n }\n\n return value\n }\n\n const renderStatistics = () => {\n if (type === 'email') {\n return \n }\n\n if (type === 'linkedin') {\n return \n }\n\n if (type === 'facebook') {\n return \n }\n\n if (type === 'ots_press_release') {\n return \n }\n\n return null\n }\n\n const handleAccuracyChange = e => setAccuracy(e.target.value)\n\n return (\n
    \n {renderStatistics()}\n {showEarnedStats && (\n <>\n
    \n \n {i18n.get('earned')}\n \n \n \n \n \n onAccuracyChange({ earnedMediaAccuracy: `${accuracy[0]}%` })}\n step={10}\n min={20}\n max={80}\n marks\n />\n \n
    \n \n \n \n \n
    \n
    {i18n.get('buzz')}
    \n \n {loadOrShowData(formatNumber(data.getIn(['earned', 'stats', 'total'])))}\n
    \n \n )}\n >\n
    \n \n
    \n \n\n
    \n \n \n \n \n \n \n
    \n
    \n {i18n.get('reach')}\n
    \n \n {loadOrShowData(formatNumber(data.getIn(['earned', 'stats', 'reach'])))}\n
    \n
    \n \n \n \n \n \n )}\n \n )\n}\n\nStatisticsData.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired,\n type: PropTypes.string.isRequired,\n requestRunning: PropTypes.bool.isRequired,\n showEarnedStats: PropTypes.bool.isRequired,\n\n onAccuracyChange: PropTypes.func.isRequired\n}\n\nexport default StatisticsData\n","import { connect } from 'react-redux'\n\nimport StatisticsData from 'components/content_desk_new/contents/content_view/statistics_data'\n\nimport { fetchStatisticsStart } from 'actions/content_desk'\nimport { getCDeskSelectedContent } from 'selectors'\n\nconst mapStateToProps = (state, { data, type, requestRunning }) => {\n const plainText = getCDeskSelectedContent(state).get('plainText') || ''\n\n return {\n data,\n type,\n requestRunning,\n showEarnedStats: plainText.length >= 1200\n }\n}\n\nexport default connect(\n mapStateToProps,\n {\n onAccuracyChange: fetchStatisticsStart\n }\n)(StatisticsData)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport moment from 'moment-timezone'\n\nimport {\n IconButton,\n Table,\n TableRow,\n TableCell,\n TableBody,\n TableHead,\n Collapse,\n Box,\n Typography,\n Tooltip\n} from '@mui/material'\n\nimport {\n KeyboardArrowDown as KeyboardArrowDownIcon,\n KeyboardArrowUp as KeyboardArrowUpIcon,\n Info as InfoIcon\n} from '@mui/icons-material'\n\nimport { red } from '@mui/material/colors'\n\nimport { capitalize } from 'utils/string'\n\nconst CollapsableRow = ({ recipient, isMobile }) => {\n const i18n = useI18n()\n const [open, setOpen] = useState(false)\n\n const renderBody = () => (\n \n {recipient.events\n .sort((c, n) => {\n const a = new Date(c.createdAt)\n const b = new Date(n.createdAt)\n\n return a - b\n })\n .map((event, index) => (\n \n \n \n {capitalize(event.type)}\n {event.type === 'failed'\n && (\n \n \n \n )}\n \n \n {moment(event.createdAt).format('D MMM, YYYY H:mm:ss')}\n \n ))}\n \n )\n\n return (\n <>\n \n \n {isMobile ? (`${recipient.firstName} ${recipient.lastName}`) : recipient.firstName}\n \n {!isMobile && (\n \n {recipient.lastName}\n \n )}\n {!isMobile && (\n \n {recipient.email}\n \n )}\n \n setOpen(!open)}\n >\n {open ? : }\n \n \n \n {isMobile && (\n \n \n {recipient.email}\n \n \n \n )}\n !t.isDark && '#F0F0F0'\n }}\n >\n \n \n \n \n {i18n.get('events')}\n \n \n \n \n {i18n.get('type')}\n {i18n.get('occurred_at')}\n \n \n {renderBody()}\n \n \n \n \n \n \n )\n}\n\nCollapsableRow.propTypes = {\n recipient: PropTypes.object.isRequired,\n isMobile: PropTypes.bool.isRequired\n}\n\nexport default CollapsableRow\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Paper,\n Table,\n TableContainer,\n TableRow,\n TableCell,\n TableBody,\n TableHead\n} from '@mui/material'\nimport useMediaQuery from '@mui/material/useMediaQuery'\nimport { useTheme } from '@mui/material/styles'\nimport CloudDownloadIcon from '@mui/icons-material/CloudDownload'\n\nimport CollapsableRow from 'components/content_desk/contents/content_view/recipients_table/collapsable_row'\n\nimport { Select, Button, IconButton } from 'containers/themed'\n\nimport { capitalize } from 'utils/string'\n\nconst useStyles = makeStyles()({\n eventsActions: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n marginTop: 10,\n marginBottom: 10\n },\n selectField: {\n width: 200\n }\n})\n\nconst RecipientsTable = ({ data, loading, onEventsDownload }) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n const [filterBy, setFilterBy] = useState('all')\n const theme = useTheme()\n const isMobile = useMediaQuery(theme.breakpoints.down('sm'))\n\n function filterData(events) {\n if (filterBy === 'permanently_failed') {\n return events.some(event => event.type === 'failed') && !events.some(event => event.type === 'delivered')\n }\n\n if (filterBy === 'temporary_failed') {\n return events.some(event => event.type === 'failed') && events.some(event => event.type === 'delivered')\n }\n\n return events.some(event => event.type === filterBy)\n }\n\n const filteredData = filterBy === 'all' ? data : data.filter(recipient => filterData(recipient.events))\n\n const typeFilterSettings = [\n { value: 'all', label: i18n.get('all') },\n { value: 'accepted', label: capitalize('accepted') },\n { value: 'delivered', label: capitalize('delivered') },\n { value: 'temporary_failed', label: capitalize('temporary failed') },\n { value: 'permanently_failed', label: capitalize('permanently failed') },\n { value: 'opened', label: capitalize('opened') },\n { value: 'clicked', label: capitalize('clicked') },\n { value: 'unsubscribed', label: capitalize('unsubscribed') },\n { value: 'complained', label: capitalize('complained') }\n ]\n\n const handleDownloadEvents = () => onEventsDownload({ events: data })\n\n return (\n <>\n
    \n
    \n setFilterBy(value.value)}\n options={typeFilterSettings}\n value={filterBy}\n label={i18n.get('filter_by_type')}\n size=\"small\"\n />\n
    \n {isMobile ? (\n \n \n \n ) : (\n }\n onClick={handleDownloadEvents}\n loading={loading}\n >\n {i18n.get('download_events')}\n \n )}\n
    \n\n \n \n {!isMobile && (\n \n !t.isDark && '#F0F0F0'\n }}\n >\n {i18n.get('first_name')}\n {i18n.get('last_name')}\n {i18n.get('email')}\n \n \n \n )}\n \n {filteredData.map((recipient, index) => (\n \n ))}\n \n
    \n \n \n )\n}\n\nRecipientsTable.propTypes = {\n data: PropTypes.object.isRequired,\n\n loading: PropTypes.bool.isRequired,\n onEventsDownload: PropTypes.func.isRequired\n}\n\nexport default RecipientsTable\n","import { connect } from 'react-redux'\n\nimport RecipientsTable from 'components/content_desk/contents/content_view/recipients_table'\n\nimport { downloadEmailEventsStart } from 'actions/content_desk'\n\nimport { getCDeskDownloadEmailEventsLoading } from 'selectors/content_desk'\n\nconst mapStateToProps = (state, { data }) => ({\n data,\n loading: getCDeskDownloadEmailEventsLoading(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onEventsDownload: downloadEmailEventsStart\n }\n)(RecipientsTable)\n","import React, { useState } from 'react'\nimport { Map } from 'immutable'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport moment from 'moment-timezone'\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Alert,\n AlertTitle,\n Grid,\n Typography,\n Button,\n Dialog,\n DialogContent,\n DialogTitle,\n Divider,\n IconButton,\n Breadcrumbs,\n Link,\n Slide\n} from '@mui/material'\nimport { grey, red } from '@mui/material/colors'\nimport useMediaQuery from '@mui/material/useMediaQuery'\nimport { useTheme } from '@mui/material/styles'\n\nimport CloseIcon from '@mui/icons-material/Close'\nimport EditIcon from '@mui/icons-material/Edit'\nimport ArrowBackIcon from '@mui/icons-material/ArrowBack'\nimport LocalPhoneIcon from '@mui/icons-material/LocalPhone'\n\nimport { OtsStatuses } from 'static/constants'\n\nimport ContentPreview from 'containers/content_desk_new/contents/ContentPreview'\nimport StatisticsData from 'containers/content_desk_new/contents/content_view/StatisticsData'\nimport RecipientsTable from 'containers/content_desk_new/contents/content_view/RecipientsTable'\nimport ContentStatus from 'containers/content_desk_new/contents/content/ContentStatus'\n\nconst useStyles = makeStyles()(theme => ({\n headlineDivider: {\n margin: '1em 0em 1em 0em'\n },\n dialog: {\n padding: '1.5em 1.5em 1.5em 1.5em'\n },\n headline: {\n color: !theme.isDark && '#757575',\n marginTop: '1em'\n },\n title: {\n fontSize: '14pt',\n fontWeight: 500,\n color: !theme.isDark && '#404040',\n marginBottom: '0.5em',\n overflowWrap: 'break-word'\n },\n closeIcon: {\n position: 'absolute',\n right: 15,\n top: 15\n },\n editButton: {\n marginTop: '1em',\n textAlign: 'right'\n },\n contentContainer: {\n fontSize: '10pt',\n color: !theme.isDark && grey[600]\n },\n label: {\n fontWeight: 500\n },\n chip: {\n width: '160px',\n padding: '0px 3px 0px 3px'\n },\n dialogTitle: {\n marginTop: 5,\n paddingLeft: '1.1em'\n },\n breadcrumbLink: {\n fontSize: 23,\n color: !theme.isDark ? '#404040' : '#ffffff'\n },\n deleted: {\n color: red[500]\n },\n recipientsChipParagraph: {\n display: 'flex',\n alignItems: 'center',\n gap: 5\n },\n otsHotline: {\n margin: '1em 0em'\n },\n otsHotlineTitle: {\n fontSize: '0.8em'\n },\n price: {\n fontSize: 26,\n fontWeight: 500\n },\n excludeVat: {\n fontSize: 14,\n color: !theme.isDark ? '#404040' : '#ffffff',\n verticalAlign: 'middle'\n },\n phoneIcon: {\n verticalAlign: 'bottom'\n }\n}))\n\nconst Transition = React.forwardRef((props, ref) => (\n \n))\nTransition.displayName = 'Transition'\n\nconst ContentView = ({ open, content, requestRunning, onEditClick, statisticsData, resetEvents, onClose }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const [recipientsView, setRecipientsView] = useState(false)\n const theme = useTheme()\n const fullScreen = useMediaQuery(theme.breakpoints.down('sm'))\n const isDesktop = useMediaQuery(theme.breakpoints.up('md'))\n const otsStatus = content.getIn(['otsPressRelease', 'status'])\n const otsPrice = content.getIn(['otsPressRelease', 'price'])\n const showEditButton = content.get('status') !== 'released' && isDesktop && !otsStatus\n const showStatistics = content.get('status') === 'released' || otsStatus === OtsStatuses.DISTRIBUTED\n\n if (!content || content.isEmpty() || !content.get('id')) {\n return null\n }\n\n const lastEditedDate = moment(content.get('updatedAt')).format('lll')\n\n const handleEdit = () => {\n if (content.get('type') === 'email' || content.get('type') === 'ots_press_release') {\n onEditClick({ id: content.get('id'), openEditContentDialog: true })\n } else {\n onEditClick({ id: content.get('id'), openOldEditContentDialog: true })\n }\n\n onClose()\n }\n\n const combinedRecipientData = content\n .get('recipients')\n .map(recipient => {\n const match = statisticsData.get('events').find(event => event.get('email').toLowerCase()\n .includes(recipient.get('mail').toLowerCase()))\n\n let events\n\n if (match) {\n events = match.get('events').toJS()\n } else {\n events = []\n }\n\n return ({\n firstName: recipient.get('firstName'),\n lastName: recipient.get('lastName'),\n email: recipient.get('mail'),\n events\n })\n })\n\n const handleClose = () => {\n setTimeout(() => {\n resetEvents()\n setRecipientsView(false)\n }, 400)\n\n onClose()\n }\n\n const renderCampaignName = campaign => {\n switch (campaign) {\n case 'No Campaign':\n return (\n <>\n {i18n.get('campaign')}: {i18n.get('no_campaign')}\n \n )\n default:\n return (\n <>\n {i18n.get('campaign')}: {campaign}\n \n )\n }\n }\n\n const renderRecipients = () => {\n if (content.get('type') !== 'email') {\n return null\n }\n\n return (\n <>\n
    {i18n.get('recipients')}
    \n (content.get('recipients').size !== 0 ? setRecipientsView(true) : null)}\n >\n {i18n.get('see_all_recipients')} ({content.get('recipients').size})\n \n \n )\n }\n\n const renderEmailInfos = () => {\n if (content.get('type') === 'email') {\n const preheaderText = content.getIn(['editorDesign', 'body', 'values', 'preheaderText'])\n\n return (\n <>\n
    \n {i18n.get('subject')}: {content.get('subject')}\n
    \n {preheaderText && (\n
    \n {i18n.get('email_pre_header')}: {preheaderText}\n
    \n )}\n \n )\n }\n\n return null\n }\n\n const renderOtsHotline = () => {\n if (otsStatus) {\n return (\n \n \n {i18n.get('ots_need_help')}\n \n {i18n.get('ots_hotline')}\n \n )\n }\n\n return null\n }\n\n const renderOtsPrice = () => {\n if (otsStatus) {\n return (\n <>\n \n
    \n \n {i18n.get('total_price')}\n \n
    \n {otsPrice} € {i18n.get('price_exclude_vat')}\n
    \n
    \n \n )\n }\n\n return null\n }\n\n const renderMainView = () => (\n <>\n \n \n
    {i18n.get('info')}
    \n
    \n
    \n {i18n.get('name')}: {content.get('title')}\n
    \n
    \n {renderCampaignName(content.getIn(['ccdCampaign', 'name']))}\n
    \n {renderEmailInfos()}\n
    \n \n \n
    \n {i18n.get('last_edited')}\n
    \n
    \n
    \n {i18n.get('by')}: \n {`${content.getIn(['lastEditor', 'firstName'])} ${content.getIn(['lastEditor', 'lastName'])}`}\n
    \n
    \n {i18n.get('date')}: {lastEditedDate }\n
    \n
    \n
    \n \n {renderRecipients()}\n \n \n
    {i18n.get('sending_status')}
    \n
    \n \n {renderOtsHotline()}\n
    \n
    \n \n {renderOtsPrice()}\n {showStatistics && (\n \n )}\n {showEditButton && (\n
    \n }\n onClick={handleEdit}\n >\n {i18n.get('edit')}\n \n
    \n )}\n \n \n {i18n.get('content')}\n \n \n \n )\n\n const renderBreadcrumbs = () => (\n \n setRecipientsView(false)}\n >\n {recipientsView && }\n {i18n.get('details')}\n \n {recipientsView && (\n \n {i18n.get('recipients')}\n \n )}\n \n )\n\n return (\n
    \n \n \n {renderBreadcrumbs()}\n \n \n \n \n \n {!recipientsView\n ? renderMainView()\n : }\n \n \n
    \n )\n}\n\nContentView.propTypes = {\n content: PropTypes.object.isRequired,\n requestRunning: PropTypes.bool.isRequired,\n onEditClick: PropTypes.func.isRequired,\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n statisticsData: PropTypes.instanceOf(Map).isRequired,\n resetEvents: PropTypes.func.isRequired\n}\n\nexport default ContentView\n","import { connect } from 'react-redux'\n\nimport ContentView from 'components/content_desk_new/contents/content_view'\n\nimport {\n resetEvents,\n closeViewContentDialog as onClose,\n lockContentStart as onEditClick\n} from 'actions/content_desk'\nimport {\n getCDeskShowViewContentDialog,\n getCDeskStatistics,\n getCDeskSelectedContent,\n getCDeskStatisticsRequestRunning\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getCDeskShowViewContentDialog(state),\n content: getCDeskSelectedContent(state),\n statisticsData: getCDeskStatistics(state),\n requestRunning: getCDeskStatisticsRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose,\n resetEvents,\n onEditClick\n }\n)(ContentView)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Link } from 'react-router-dom'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { grey } from '@mui/material/colors'\nimport {\n Box,\n Paper,\n Typography\n} from '@mui/material'\n\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\n/* Caution: these components are still in the old directory */\nimport CalendarDialog from 'containers/content_desk_new/CalendarDialog'\nimport OldContentEditDialog from 'containers/content_desk/ContentEditDialog'\nimport DeleteDialog from 'containers/content_desk/DeleteDialog'\n\nimport CampaignForm from 'containers/content_desk_new/campaigns/CampaignForm'\nimport ContentNewDialog from 'containers/content_desk_new/ContentNewDialog'\nimport Campaigns from 'containers/content_desk_new/campaigns/Campaigns'\nimport MobileCampaigns from 'containers/content_desk_new/campaigns/mobile_campaigns/MobileCampaigns'\nimport ContentEditDialog from 'containers/content_desk_new/contents/content_edit_dialog/ContentEditDialog'\nimport ContentsEditBlockDialog from 'containers/content_desk_new/contents/ContentsEditBlockDialog'\nimport ContactDetailsDialog from 'containers/contact_management/ContactDetailsDialog'\nimport ContactEditDialog from 'containers/contact_management/ContactEditDialog'\nimport ContentNotesDialog from 'containers/content_desk_new/contents/ContentNotesDialog'\nimport Contents from 'containers/content_desk_new/contents/Contents'\nimport MobileContents from 'containers/content_desk_new/contents/mobile_contents/MobileContents'\nimport CampaignsFilters from 'containers/content_desk_new/campaigns/CampaignsFilters'\nimport ContentsFilters from 'containers/content_desk_new/contents/ContentsFilters'\nimport ContentsCampaignsTabs from 'containers/content_desk_new/ContentsCampaignsTabs'\nimport ContentView from 'containers/content_desk_new/contents/content_view/ContentView'\n\nimport { Button } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n contentsAndCampaignsContainer: {\n borderRadius: 20,\n minHeight: 400,\n boxShadow: 'none',\n border: '1px solid',\n borderColor: grey[200],\n marginBottom: 20\n },\n seeAllButtonMobile: {\n fontSize: 10\n },\n titleContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n padding: 20\n },\n navigationContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n padding: '0 20px 0 0'\n },\n circularProgress: {\n textAlign: 'center'\n }\n})\n\nexport default function ContensCampaignsOverview({\n view\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const device = useDevice()\n\n const renderSeeAllButton = () => (\n \n \n {i18n.get('see_all')}\n \n \n )\n\n const renderContentsFilters = () => {\n if (device.get('mobile')) {\n return null\n }\n\n if (view === 'contents') {\n return \n }\n\n if (view === 'campaigns') {\n return \n }\n\n return null\n }\n\n const renderResultsTable = () => {\n if (view === 'contents') {\n if (device.get('mobile')) {\n return \n }\n\n return \n }\n\n if (view === 'campaigns') {\n if (device.get('mobile')) {\n return \n }\n\n return \n }\n\n return null\n }\n\n return (\n \n \n \n {i18n.get('contents_and_campaigns')}\n \n {renderSeeAllButton()}\n \n \n \n {renderContentsFilters()}\n \n {renderResultsTable()}\n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n )\n}\n\nContensCampaignsOverview.propTypes = {\n view: PropTypes.string.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ContentsCampaignsOverview from 'components/content_desk_new/contents_campaigns_overview'\nimport {\n getCDeskContentsCampaignsTabView\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n view: getCDeskContentsCampaignsTabView(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(ContentsCampaignsOverview)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Box,\n Dialog,\n Paper,\n Typography,\n Zoom\n} from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { rgbaColorFromHex } from 'utils/color'\nimport { IconButton, Button } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n mobileContentContainer: {\n padding: '0px 20px 20px 20px'\n },\n contentContainer: {\n width: '100%',\n [theme.breakpoints.down('sm')]: {\n overflowY: 'auto',\n width: '100%',\n height: '100%'\n }\n },\n closeButtonContainer: {\n width: '100%',\n display: 'flex',\n justifyContent: 'flex-end'\n },\n closeButton: {\n color: theme.palette.common.black\n },\n continueButton: {\n marginTop: 20\n },\n content: {\n display: 'flex',\n justifyContent: 'space-between'\n },\n leftContainer: {\n padding: '60px 50px 50px 50px',\n flex: '1 1 60%'\n },\n rightContainer: {\n textAlign: 'center',\n flex: '1 1 40%',\n backgroundColor: `${rgbaColorFromHex(theme.palette.primary.main, 0.3)}`\n },\n mobileImageContainer: {\n textAlign: 'center',\n marginTop: 20,\n padding: '20px 10px 20px 10px',\n backgroundColor: `${rgbaColorFromHex(theme.palette.primary.main, 0.3)}`\n },\n imageContainer: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '80%'\n },\n priceInfoContainer: {\n marginBottom: 20,\n clear: 'both'\n },\n price: {\n fontSize: 40,\n fontWeight: 500\n },\n excludeVat: {\n fontSize: 14,\n verticalAlign: 'middle'\n },\n priceDiffer: {\n color: theme.palette.text.secondary\n },\n naLogoContainer: {\n marginTop: 40,\n display: 'flex',\n alignItems: 'center'\n },\n naLogo: {\n marginLeft: 20\n }\n}))\n\nconst OtsWelcomeDialog = ({\n open,\n onClose,\n openContent\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const device = useDevice()\n\n const handleClose = () => {\n onClose()\n }\n\n const handleContinue = () => {\n onClose()\n openContent({ type: 'ots_press_release' })\n }\n\n const otsWelcomeMessage = (\n <>\n \n \n \n )\n\n const priceInfo = (\n \n \n \n {i18n.get('ots_price_info_intro')}\n \n \n 955 € {i18n.get('price_exclude_vat')}\n \n \n {i18n.get('ots_price_info_differ')}\n \n \n \n \n \n \n )\n\n const continueButton = (\n \n {i18n.get('create_ots_press_release')}\n \n )\n\n const naLogo = (\n \n \n {i18n.get('powered_by')}\n \n \n \n \n \n )\n\n const renderContent = () => {\n if (device.get('mobile')) {\n return (\n \n \n \n \n \n \n {otsWelcomeMessage}\n \n {priceInfo}\n {continueButton}\n {naLogo}\n \n \n )\n }\n\n return (\n <>\n \n {otsWelcomeMessage}\n {continueButton}\n {naLogo}\n \n \n \n \n \n \n \n \n {priceInfo}\n \n \n \n )\n }\n\n return (\n \n \n \n {renderContent()}\n \n \n \n )\n}\n\nOtsWelcomeDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n\n onClose: PropTypes.func.isRequired,\n openContent: PropTypes.func.isRequired\n}\n\nexport default OtsWelcomeDialog\n","import { connect } from 'react-redux'\n\nimport OtsWelcomeDialog from 'components/content_desk_new/ots_welcome_dialog/'\n\nimport { getCDeskShowOtsWelcomeDialog } from 'selectors'\n\nimport {\n closeOtsWelcomeDialog,\n openNewContent as openContent\n} from 'actions/content_desk'\n\nconst mapStateToProps = state => ({\n open: getCDeskShowOtsWelcomeDialog(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose: closeOtsWelcomeDialog,\n openContent\n }\n)(OtsWelcomeDialog)\n","/* globals window */\nimport React, { useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Box,\n Dialog,\n Paper,\n Typography,\n Zoom\n} from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n contentContainer: {\n width: '100%',\n padding: '0px 0px 20px 0px',\n [theme.breakpoints.down('sm')]: {\n overflowY: 'auto',\n width: '100%',\n height: '100%'\n }\n },\n closeButtonContainer: {\n display: 'flex',\n justifyContent: 'flex-end'\n },\n closeButton: {\n color: theme.palette.common.black\n },\n content: {\n padding: 40,\n textAlign: 'center'\n },\n message: {\n '& a': {\n color: theme.palette.secondary.main,\n fontWeight: 700,\n textDecoration: 'underline'\n }\n }\n}))\n\nconst OtsSuccessDialog = ({\n open,\n selectedContent,\n onClose\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const url = selectedContent.getIn(['otsPressRelease', 'url'])\n\n const handleClose = () => {\n onClose()\n }\n\n useEffect(() => {\n if (open && url) {\n setTimeout(() => {\n window.open(url, '_blank', 'noopener,noreferrer')\n }, 2000)\n }\n }, [open, url])\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n {i18n.get('ots_content_created_success_title')}\n \n \n \n \n \n )\n}\n\nOtsSuccessDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n selectedContent: PropTypes.instanceOf(Map).isRequired,\n\n onClose: PropTypes.func.isRequired\n}\n\nexport default OtsSuccessDialog\n","import { connect } from 'react-redux'\n\nimport OtsSuccessDialog from 'components/content_desk_new/ots_success_dialog/'\n\nimport { getCDeskSelectedContent, getCDeskShowOtsSuccessDialog } from 'selectors'\n\nimport {\n closeOtsSuccessDialog\n} from 'actions/content_desk'\n\nconst mapStateToProps = state => ({\n open: getCDeskShowOtsSuccessDialog(state),\n selectedContent: getCDeskSelectedContent(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose: closeOtsSuccessDialog\n }\n)(OtsSuccessDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Box,\n Dialog,\n Paper,\n Typography,\n Zoom\n} from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\nimport ErrorOutlineIcon from '@mui/icons-material/ErrorOutline'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n contentContainer: {\n width: '100%',\n padding: 20,\n [theme.breakpoints.down('sm')]: {\n overflowY: 'auto',\n width: '100%',\n height: '100%'\n }\n },\n titleContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n marginBottom: 20\n },\n closeButton: {\n color: theme.palette.common.grey\n },\n title: {\n display: 'flex',\n gap: 10,\n alignItems: 'center'\n },\n content: {\n padding: 40\n },\n message: {\n '& a': {\n color: theme.palette.secondary.main,\n fontWeight: 700,\n textDecoration: 'underline'\n }\n }\n}))\n\nconst OtsErrorDialog = ({\n open,\n onClose\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleClose = () => {\n onClose()\n }\n\n return (\n \n \n \n \n \n \n {i18n.get('create_ots_content_error_title')}\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nOtsErrorDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n\n onClose: PropTypes.func.isRequired\n}\n\nexport default OtsErrorDialog\n","import { connect } from 'react-redux'\n\nimport OtsErrorDialog from 'components/content_desk_new/ots_error_dialog/'\n\nimport { getCDeskShowOtsErrorDialog } from 'selectors'\n\nimport {\n closeOtsErrorDialog\n} from 'actions/content_desk'\n\nconst mapStateToProps = state => ({\n open: getCDeskShowOtsErrorDialog(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose: closeOtsErrorDialog\n }\n)(OtsErrorDialog)\n","import React, { useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { grey } from '@mui/material/colors'\nimport { Box, Grid } from '@mui/material'\n\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\nimport NrxProgressBackdrop from 'components/nrx_progress_backdrop/NrxProgressBackdrop'\n\nimport AppBar from 'containers/content_desk_new/AppBar'\nimport ActiveFilterList from 'containers/content_desk_new/ActiveFilterList'\nimport CalendarWidget from 'containers/content_desk_new/CalendarWidget'\nimport CenterMessage from 'containers/CenterMessage'\nimport PrimaryNavigation from 'containers/content_desk_new/PrimaryNavigation'\nimport ContentHeader from 'containers/content_desk_new/ContentHeader'\nimport KpiStatistics from 'containers/content_desk_new/KpiStatistics'\nimport ContentsCampaignsOverview from 'containers/content_desk_new/contents_campaigns_overview/ContentsCamapaignsOverview'\nimport OtsWelcomeDialog from 'containers/content_desk_new/OtsWelcomeDialog'\nimport OtsSuccessDialog from 'containers/content_desk_new/OtsSuccessDialog'\nimport OtsErrorDialog from 'containers/content_desk_new/OtsErrorDialog'\n\nconst useStyles = makeStyles()(theme => ({\n backdrop: {\n zIndex: 10\n },\n container: {\n backgroundColor: grey[100],\n padding: '30px',\n [theme.breakpoints.only('xs')]: {\n padding: '15px'\n }\n },\n activeFilterListContainer: {\n marginBottom: 20\n },\n centerMessageContainer: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '85vh'\n },\n content: {\n maxWidth: 800\n },\n link: {\n display: 'flex',\n alignItems: 'center',\n '& > span:first-of-type': {\n marginRight: 5\n }\n },\n leftColumn: {\n display: 'flex',\n flexDirection: 'column',\n rowGap: '20px',\n [theme.breakpoints.only('xs')]: {\n rowGap: '10px'\n }\n }\n}))\n\nexport default function ContentDesk({\n hasDomain,\n isContentLoading,\n contents,\n campaigns,\n calendarContents,\n calendarCampaigns,\n fetchKpi,\n search,\n setLimit,\n refreshContentsStatusStart,\n stopRefreshContentsStatus\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const device = useDevice()\n const mobile = device.get('mobile')\n\n if (!hasDomain) {\n return (\n <>\n \n
    \n \n
    \n \n )\n }\n\n useEffect(() => {\n fetchKpi()\n setLimit({ key: 'contentLimit', value: 10 })\n setLimit({ key: 'campaignLimit', value: 10 })\n search()\n }, [])\n\n useEffect(() => {\n refreshContentsStatusStart()\n\n return () => {\n stopRefreshContentsStatus()\n }\n }, [contents, campaigns, calendarContents, calendarCampaigns])\n\n return (\n \n \n \n \n \n \n \n \n {!mobile && }\n \n \n \n \n {!mobile && (\n \n \n \n )}\n \n \n \n \n \n )\n}\n\nContentDesk.propTypes = {\n hasDomain: PropTypes.bool.isRequired,\n isContentLoading: PropTypes.bool.isRequired,\n contents: PropTypes.instanceOf(Map).isRequired,\n campaigns: PropTypes.instanceOf(Map).isRequired,\n calendarContents: PropTypes.instanceOf(Map).isRequired,\n calendarCampaigns: PropTypes.instanceOf(Map).isRequired,\n\n fetchKpi: PropTypes.func.isRequired,\n search: PropTypes.func.isRequired,\n setLimit: PropTypes.func.isRequired,\n refreshContentsStatusStart: PropTypes.func.isRequired,\n stopRefreshContentsStatus: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ContentDesk from 'components/content_desk_new/'\nimport {\n fetchKpiStatisticsStart,\n search,\n setLimit,\n refreshContentsStatusStart,\n stopRefreshContentsStatus\n} from 'actions/content_desk'\nimport {\n getCDeskCalendarCampaigns,\n getCDeskCalendarContents,\n getCDeskCampaigns,\n getCDeskConfig,\n getCDeskContentIsLoading,\n getCDeskContents\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n contents: getCDeskContents(state),\n campaigns: getCDeskCampaigns(state),\n calendarContents: getCDeskCalendarContents(state),\n calendarCampaigns: getCDeskCalendarCampaigns(state),\n isContentLoading: getCDeskContentIsLoading(state),\n hasDomain: !!getCDeskConfig(state).get('domain') || false\n})\n\nexport default connect(\n mapStateToProps,\n {\n fetchKpi: fetchKpiStatisticsStart,\n search,\n setLimit,\n refreshContentsStatusStart,\n stopRefreshContentsStatus\n }\n)(ContentDesk)\n","import React from 'react'\nimport useI18n from 'hooks/useI18n'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Box,\n InputLabel,\n MenuItem,\n FormControl,\n Pagination,\n Select\n} from '@mui/material'\n\nimport useDevice from 'hooks/useDevice'\n\nconst useStyles = makeStyles()({\n paginationContainer: {\n display: 'flex',\n justifyContent: 'flex-end',\n padding: 20\n },\n mobilePaginationContainer: {\n padding: 10\n },\n mobilePaginationBar: {\n marginTop: 10,\n display: 'flex',\n justifyContent: 'center'\n }\n})\n\nfunction ContentCampaignsPagination({\n total,\n page,\n pageName,\n pageSize,\n search,\n setPage,\n setPageSize\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const device = useDevice()\n const count = Math.ceil(total / pageSize)\n\n const handlePageChange = (_event, value) => {\n setPage({ key: pageName, value })\n search()\n }\n\n const handleLimitChange = event => {\n if (pageName === 'contentPage') {\n setPageSize({ key: 'contentLimit', value: event.target.value })\n }\n\n if (pageName === 'campaignPage') {\n setPageSize({ key: 'campaignLimit', value: event.target.value })\n }\n\n setPage({ key: pageName, value: 1 })\n search()\n }\n\n return (\n \n \n {i18n.get('show')}\n \n 10\n 20\n 50\n \n \n \n \n \n \n )\n}\n\nContentCampaignsPagination.propTypes = {\n page: PropTypes.number.isRequired,\n pageName: PropTypes.string.isRequired,\n pageSize: PropTypes.number.isRequired,\n total: PropTypes.number.isRequired,\n\n search: PropTypes.func.isRequired,\n setPage: PropTypes.func.isRequired,\n setPageSize: PropTypes.func.isRequired\n}\n\nexport default ContentCampaignsPagination\n","import { connect } from 'react-redux'\n\nimport CampaignsPagination from 'components/content_desk_new/contents_campaigns_show_all/contents_campaigns_pagination'\nimport {\n searchCampaignsStart,\n setLimit,\n setPage\n} from 'actions/content_desk'\nimport {\n getCDeskCampaigns,\n getCDeskCampaignLimit,\n getCDeskCampaignPage\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n pageName: 'campaignPage',\n page: getCDeskCampaignPage(state),\n pageSize: getCDeskCampaignLimit(state),\n total: getCDeskCampaigns(state).get('total') || 0\n})\n\nexport default connect(\n mapStateToProps,\n {\n search: searchCampaignsStart,\n setPage,\n setPageSize: setLimit\n }\n)(CampaignsPagination)\n","import { connect } from 'react-redux'\n\nimport ContentsPagination from 'components/content_desk_new/contents_campaigns_show_all/contents_campaigns_pagination'\nimport {\n searchContentsStart,\n setLimit,\n setPage\n} from 'actions/content_desk'\nimport {\n getCDeskContents,\n getCDeskContentLimit,\n getCDeskContentPage\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n pageName: 'contentPage',\n page: getCDeskContentPage(state),\n pageSize: getCDeskContentLimit(state),\n total: getCDeskContents(state).get('total') || 0\n})\n\nexport default connect(\n mapStateToProps,\n {\n search: searchContentsStart,\n setPage,\n setPageSize: setLimit\n }\n)(ContentsPagination)\n","/* global window */\nimport React, { useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Box,\n Paper,\n Typography\n} from '@mui/material'\n\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\nimport { grey } from '@mui/material/colors'\nimport AddIcon from '@mui/icons-material/Add'\n\n/* Caution: these components are still in the old directory */\nimport CalendarDialog from 'containers/content_desk_new/CalendarDialog'\nimport OldContentEditDialog from 'containers/content_desk/ContentEditDialog'\nimport DeleteDialog from 'containers/content_desk/DeleteDialog'\n\nimport NrxProgressBackdrop from 'components/nrx_progress_backdrop/NrxProgressBackdrop'\n\nimport AppBar from 'containers/content_desk_new/AppBar'\nimport ActiveFilterList from 'containers/content_desk_new/ActiveFilterList'\nimport CampaignForm from 'containers/content_desk_new/campaigns/CampaignForm'\nimport Campaigns from 'containers/content_desk_new/campaigns/Campaigns'\nimport MobileCampaigns from 'containers/content_desk_new/campaigns/mobile_campaigns/MobileCampaigns'\nimport CampaignsPagination from 'containers/content_desk_new/contents_campaigns_show_all/CampaignsPagination'\nimport ContentEditDialog from 'containers/content_desk_new/contents/content_edit_dialog/ContentEditDialog'\nimport ContentsEditBlockDialog from 'containers/content_desk_new/contents/ContentsEditBlockDialog'\nimport ContactDetailsDialog from 'containers/contact_management/ContactDetailsDialog'\nimport ContactEditDialog from 'containers/contact_management/ContactEditDialog'\nimport ContentNewDialog from 'containers/content_desk_new/ContentNewDialog'\nimport ContentNotesDialog from 'containers/content_desk_new/contents/ContentNotesDialog'\nimport Contents from 'containers/content_desk_new/contents/Contents'\nimport MobileContents from 'containers/content_desk_new/contents/mobile_contents/MobileContents'\nimport ContentsCampaignsTabs from 'containers/content_desk_new/ContentsCampaignsTabs'\nimport CampaignsFilters from 'containers/content_desk_new/campaigns/CampaignsFilters'\nimport ContentsFilters from 'containers/content_desk_new/contents/ContentsFilters'\nimport ContentsPagination from 'containers/content_desk_new/contents_campaigns_show_all/ContentsPagination'\nimport ContentView from 'containers/content_desk_new/contents/content_view/ContentView'\nimport OtsSuccessDialog from 'containers/content_desk_new/OtsSuccessDialog'\nimport OtsErrorDialog from 'containers/content_desk_new/OtsErrorDialog'\n\nimport { Button } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n container: {\n backgroundColor: grey[100],\n padding: '30px',\n minHeight: '100vh'\n },\n activeFilterListContainer: {\n marginBottom: 20\n },\n contentsAndCampaignsContainer: {\n borderRadius: 20,\n minHeight: 400\n },\n titleContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n padding: 20\n },\n newButtonsContainer: {\n display: 'flex',\n gap: 10\n },\n navigationContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n padding: '0 20px 0 0'\n },\n circularProgress: {\n textAlign: 'center'\n }\n})\n\nexport default function ContentsCampaignsShowAll({\n contents,\n campaigns,\n calendarContents,\n calendarCampaigns,\n isContentLoading,\n view,\n onNewCampaignClick,\n onNewContentClick,\n refreshContentsStatusStart,\n searchCampaigns,\n searchContents,\n stopRefreshContentsStatus\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const device = useDevice()\n\n useEffect(() => {\n searchCampaigns()\n searchContents()\n }, [])\n\n useEffect(() => {\n window.scrollTo(0, 0)\n refreshContentsStatusStart()\n\n return () => {\n stopRefreshContentsStatus()\n }\n }, [contents, campaigns, calendarContents, calendarCampaigns])\n\n const renderNewButtons = () => {\n if (device.get('mobile')) {\n return null\n }\n\n return (\n \n }\n onClick={() => onNewCampaignClick()}\n >\n {i18n.get('create_campaign')}\n \n\n }\n onClick={() => onNewContentClick()}\n >\n {i18n.get('create_content')}\n \n \n )\n }\n\n const renderFilterMenu = () => {\n if (device.get('mobile')) {\n return null\n }\n\n if (view === 'contents') {\n return \n }\n\n if (view === 'campaigns') {\n return \n }\n\n return null\n }\n\n const renderResultsTable = () => {\n if (view === 'contents') {\n if (device.get('mobile')) {\n return \n }\n\n return \n }\n\n if (view === 'campaigns') {\n if (device.get('mobile')) {\n return \n }\n\n return \n }\n\n return null\n }\n\n const renderPagination = () => {\n if (view === 'contents') {\n return \n }\n\n if (view === 'campaigns') {\n return \n }\n\n return null\n }\n\n return (\n <>\n \n \n \n \n \n \n \n \n \n {i18n.get('contents_and_campaigns')}\n \n {renderNewButtons()}\n \n \n \n {renderFilterMenu()}\n \n {renderResultsTable()}\n {renderPagination()}\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n )\n}\n\nContentsCampaignsShowAll.propTypes = {\n contents: PropTypes.instanceOf(Map).isRequired,\n campaigns: PropTypes.instanceOf(Map).isRequired,\n calendarContents: PropTypes.instanceOf(Map).isRequired,\n calendarCampaigns: PropTypes.instanceOf(Map).isRequired,\n isContentLoading: PropTypes.bool.isRequired,\n view: PropTypes.string.isRequired,\n\n onNewCampaignClick: PropTypes.func.isRequired,\n onNewContentClick: PropTypes.func.isRequired,\n refreshContentsStatusStart: PropTypes.func.isRequired,\n searchCampaigns: PropTypes.func.isRequired,\n searchContents: PropTypes.func.isRequired,\n stopRefreshContentsStatus: PropTypes.func.isRequired\n}\n\n","import { connect } from 'react-redux'\n\nimport ContentsCampaignsShowAll from 'components/content_desk_new/contents_campaigns_show_all'\nimport {\n openCampaignForm,\n openNewContentDialog,\n refreshContentsStatusStart,\n searchCampaignsStart,\n searchContentsStart,\n stopRefreshContentsStatus\n} from 'actions/content_desk'\nimport {\n getCDeskCalendarCampaigns,\n getCDeskCalendarContents,\n getCDeskCampaigns,\n getCDeskContentIsLoading,\n getCDeskContents,\n getCDeskContentsCampaignsTabView\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n contents: getCDeskContents(state),\n campaigns: getCDeskCampaigns(state),\n calendarContents: getCDeskCalendarContents(state),\n calendarCampaigns: getCDeskCalendarCampaigns(state),\n isContentLoading: getCDeskContentIsLoading(state),\n view: getCDeskContentsCampaignsTabView(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onNewCampaignClick: openCampaignForm,\n onNewContentClick: openNewContentDialog,\n refreshContentsStatusStart,\n searchCampaigns: searchCampaignsStart,\n searchContents: searchContentsStart,\n stopRefreshContentsStatus\n }\n)(ContentsCampaignsShowAll)\n","import { connect } from 'react-redux'\n\nimport SearchBar from 'components/search_bar'\nimport { uiEnteredQuery } from 'actions/contact_management'\nimport { showAppMessage } from 'actions/app'\n\nimport { getI18n, getColors, getCmSearchBarLabel, getWhitelabelTheme, getCmSearchRunning } from 'selectors'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n colors: getColors(state),\n whitelabelTheme: getWhitelabelTheme(state),\n label: getCmSearchBarLabel(state),\n loading: getCmSearchRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSubmit: uiEnteredQuery,\n onError: showAppMessage\n }\n)(SearchBar)\n","import { connect } from 'react-redux'\n\nimport QueryTypeDropdown from 'components/query_type_dropdown'\nimport { setSelectedQueryType } from 'actions/contact_management'\nimport { getCmSelectedQueryType, getI18n } from 'selectors'\n\nconst mapStateToProps = state => ({\n value: getCmSelectedQueryType(state),\n i18n: getI18n(state),\n moduleName: 'contactManagement'\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: setSelectedQueryType\n }\n)(QueryTypeDropdown)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport CalendarMonthIcon from '@mui/icons-material/CalendarMonth'\nimport LocalOfferIcon from '@mui/icons-material/LocalOffer'\n\nimport { StaggeredList, StaggeredListItem } from 'components/staggered_list'\n\nimport { IconButton } from 'containers/themed'\nimport NotificationsButton from 'containers/notifications/NotificationsButton'\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()({\n actionsWrapper: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center'\n },\n tagsIcon: {\n marginRight: '0.3em'\n }\n})\n\nexport default function Actions({\n hasContentDeskModule,\n hasTags,\n openCalendarDialog,\n openTagsDialog\n}) {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const actions = []\n\n if (hasContentDeskModule) {\n actions.push(\n openCalendarDialog()}\n >\n \n \n )\n }\n\n if (hasTags) {\n actions.unshift(\n openTagsDialog()}\n >\n \n \n )\n }\n\n actions.push()\n\n return (\n
    \n \n
    \n {actions.map((action, index) => (\n \n {action}\n \n ))}\n
    \n
    \n
    \n )\n}\n\nActions.propTypes = {\n hasContentDeskModule: PropTypes.bool.isRequired,\n hasTags: PropTypes.bool.isRequired,\n openCalendarDialog: PropTypes.func.isRequired,\n openTagsDialog: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport { Capabilities } from 'static/constants'\n\nimport Actions from 'components/contact_management/actions/Actions'\n\nimport { hasCapability, getCmHasTags } from 'selectors'\n\nimport { openCalendarDialog } from 'actions/content_desk'\nimport { openTagsDialog } from 'actions/contact_management'\n\nconst mapStateToProps = state => ({\n hasContentDeskModule: !!hasCapability(state, Capabilities.HAS_CONTENT_DESK_MODULE),\n hasTags: getCmHasTags(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n openCalendarDialog,\n openTagsDialog\n }\n)(Actions)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useDevice from 'hooks/useDevice'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport ThemedAppBar from 'containers/AppBar'\nimport SearchBar from 'containers/contact_management/SearchBar'\nimport QueryTypeDropdown from 'containers/contact_management/QueryTypeDropdown'\nimport Actions from 'containers/contact_management/Actions'\n\nimport TransitionComponent from 'components/transition_component'\n\nconst useStyles = makeStyles()(theme => ({\n searchBar: {\n transition: 'width 150ms',\n width: '25%',\n [theme.breakpoints.only('md')]: {\n marginLeft: '1em',\n width: '25%'\n },\n [theme.breakpoints.down('md')]: {\n width: '45%',\n marginLeft: '1em'\n },\n [theme.breakpoints.only('xs')]: {\n marginLeft: '1em'\n }\n },\n button: {\n marginLeft: '0.5em'\n }\n}))\n\nexport default function AppBar({ hasDomain }) {\n const { classes } = useStyles()\n const [barStyle, setBarStyle] = useState(null)\n const i18n = useI18n()\n const device = useDevice()\n\n const handleFocus = () => {\n let width = '100%'\n\n if (device.get('gt-md')) {\n width = '50%'\n }\n\n if (device.get('md')) {\n width = '40%'\n }\n\n setBarStyle({ width })\n }\n\n const handleBlur = () => {\n setTimeout(() => setBarStyle(null), 500)\n }\n\n const title = device.get('gt-md') ? {i18n.get('my_contacts')} : undefined\n\n return (\n
    \n \n : null}\n >\n {hasDomain && (\n \n }\n />\n
    \n )}\n \n\n \n \n )\n}\n\nAppBar.propTypes = {\n hasDomain: PropTypes.bool.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport AppBar from 'components/contact_management/app_bar/AppBar'\n\nimport {\n getCDeskConfig\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n hasDomain: !!getCDeskConfig(state).get('domain') || false\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(AppBar)\n","import React, { useState } from 'react'\nimport useI18n from 'hooks/useI18n'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { TableCell, TableRow } from '@mui/material'\n\nimport ArrowDownwardIcon from '@mui/icons-material/ArrowDownward'\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward'\nimport SwapVertIcon from '@mui/icons-material/SwapVert'\nimport PlaylistAddIcon from '@mui/icons-material/PlaylistAdd'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n tableCell: {\n '&:hover': {\n backgroundColor: theme.isDark ? '#383838' : '#e0e0e0',\n cursor: 'pointer'\n },\n borderRadius: '5px 5px 0px 0px'\n },\n publicationCell: {\n borderRadius: '5px 5px 0px 0px'\n },\n selected: {\n backgroundColor: theme.isDark ? '#383838' : '#e0e0e0',\n borderRadius: '5px 5px 0px 0px',\n '&:hover': {\n cursor: 'pointer'\n }\n },\n arrowColumn: {\n width: '50px',\n paddingTop: 0,\n paddingBottom: 0\n }\n}))\n\nconst defaultSortingDirections = {\n first_name: 'desc',\n last_name: 'desc',\n email: 'desc',\n country: 'desc',\n publication: 'desc'\n}\n\nconst ContactsSortbar = ({ onSortBy, onSelectAll }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const [sortingDirections, setSortingDirections] = useState(\n defaultSortingDirections\n )\n const [selectedField, setSelectedField] = useState(null)\n\n const handleSortingClick = sortBy => {\n const sortOrder = sortingDirections[sortBy] !== 'desc' ? 'desc' : 'asc'\n\n setSortingDirections({ ...defaultSortingDirections, [sortBy]: sortOrder })\n setSelectedField(sortBy)\n onSortBy({ sortBy, sortOrder })\n }\n\n const sortTableCellIcon = () => {\n if (sortingDirections[selectedField] === 'desc') {\n return (\n \n handleSortingClick(selectedField)}\n />\n \n )\n }\n\n if (sortingDirections[selectedField] === 'asc') {\n return (\n \n handleSortingClick(selectedField)}\n />\n \n )\n }\n\n return (\n \n handleSortingClick('first_name')}\n />\n \n )\n }\n\n return (\n \n {sortTableCellIcon()}\n handleSortingClick('first_name')}\n >\n {i18n.get('first_name')}\n \n handleSortingClick('last_name')}\n >\n {i18n.get('last_name')}\n \n handleSortingClick('mail')}\n >\n {i18n.get('email')}\n \n handleSortingClick('country_id')}\n >\n {i18n.get('country')}\n \n \n {i18n.get('outlet')}\n \n handleSortingClick('supplier')}\n >\n {i18n.get('source')}\n \n \n {i18n.get('distribution_lists')}\n \n \n \n onSelectAll()}\n title={i18n.get('select_all')}\n >\n \n \n \n \n )\n}\n\nContactsSortbar.propTypes = {\n onSortBy: PropTypes.func.isRequired,\n onSelectAll: PropTypes.func.isRequired\n}\n\nexport default ContactsSortbar\n","import { connect } from 'react-redux'\n\nimport ContactsSortbar from 'components/contact_management/contacts/contacts_sortbar/ContactsSortbar'\n\nimport { sortBy, selectAllContacts } from 'actions/contact_management'\n\nconst mapStateToProps = () => ({\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSortBy: sortBy,\n onSelectAll: selectAllContacts\n }\n)(ContactsSortbar)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { List as ImmutableList, Map as ImmutableMap } from 'immutable'\nimport moment from 'moment-timezone'\nimport { makeStyles } from 'tss-react/mui'\nimport { red } from '@mui/material/colors'\nimport { capitalize } from 'utils/string'\n\nimport { Chip, TableRow, TableCell, Tooltip, Typography } from '@mui/material'\n\nimport EditIcon from '@mui/icons-material/Edit'\nimport AddIcon from '@mui/icons-material/Add'\nimport CheckIcon from '@mui/icons-material/Check'\nimport RemoveRedEyeIcon from '@mui/icons-material/RemoveRedEye'\nimport PersonOutlineOutlinedIcon from '@mui/icons-material/PersonOutlineOutlined'\nimport PersonIcon from '@mui/icons-material/Person'\nimport DeleteOutlineIcon from '@mui/icons-material/DeleteOutline'\nimport UnsubscribeOutlinedIcon from '@mui/icons-material/UnsubscribeOutlined'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n row: {\n backgroundColor: theme.isDark ? null : 'white',\n height: '80px'\n },\n actions: {\n display: 'flex'\n },\n personIcon: {\n color: theme.isDark ? null : '#707070'\n },\n listsChip: {\n width: '80%'\n }\n}))\n\nconst ContactsItem = ({\n contact,\n selected,\n countries,\n onSelect,\n onEditClick,\n onViewClick,\n onDeleteClick,\n onListsClick\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const country = countries.find(\n c => c.get('id') === contact.getIn(['country', 'id'])\n )\n const unsubscribed = contact.get('unsubscribed')\n const publication = contact.get('identity') ? contact.getIn(['identity', 'publication', 'name']) : contact.get('externalPublication')\n\n const handleViewClick = () => onViewClick(contact)\n const handleEditClick = () => onEditClick(contact)\n const handleDeleteClick = () => onDeleteClick([contact])\n const handleDistributionListsClick = () => {\n onListsClick(contact)\n }\n\n const renderNormalIcon = () => (selected\n ? \n : )\n const renderUnsubscribedIcon = () => (\n\n \n \n {`${i18n.get('title')}: ${contact.getIn(['ccdContent', 'title'])}`}\n \n \n {`${i18n.get('released')}: ${moment(contact.getIn(['ccdContent', 'releasedAt'])).format('lll')}`}\n \n \n )}\n placement=\"bottom-end\"\n arrow\n >\n \n\n \n )\n\n const supplier = !contact.get('supplier') || contact.get('supplier') === 'client' ? i18n.get('my_contact') : 'pressrelations'\n const supplierChipColor = !contact.get('supplier') || contact.get('supplier') === 'client' ? 'default' : 'primary'\n\n return (\n \n \n {!unsubscribed ? renderNormalIcon() : renderUnsubscribedIcon()}\n \n {contact.get('firstName') || '-'}\n {contact.get('lastName')}\n {contact.get('mail')}\n {country ? country.get('name') : '-'}\n {publication || '-'}\n \n \n \n \n {!contact.get('distributionLists').isEmpty() ? (\n \n ) : null}\n\n \n \n
    \n \n \n \n \n \n \n \n \n \n
    \n
    \n \n onSelect(contact)}\n title={selected ? i18n.get('in_cart') : capitalize(i18n.get('select'))}\n >\n {selected ? : }\n \n \n
    \n )\n}\n\nContactsItem.propTypes = {\n contact: PropTypes.instanceOf(ImmutableMap).isRequired,\n selected: PropTypes.bool.isRequired,\n countries: PropTypes.instanceOf(ImmutableList).isRequired,\n onSelect: PropTypes.func.isRequired,\n onEditClick: PropTypes.func.isRequired,\n onViewClick: PropTypes.func.isRequired,\n onDeleteClick: PropTypes.func.isRequired,\n onListsClick: PropTypes.func.isRequired\n}\n\nexport default ContactsItem\n","import { connect } from 'react-redux'\n\nimport ContactsItem from 'components/contact_management/contacts/contacts_item/ContactsItem'\n\nimport {\n openContactEditDialog,\n selectContact as onSelect,\n openContactViewDialog as onViewClick,\n openContactDeleteDialog as onDeleteClick,\n openDistributionListViewDialog as onListsClick\n} from 'actions/contact_management'\n\nimport {\n getCmListData,\n getAllStaticCountries\n} from 'selectors'\n\nconst mapStateToProps = (state, { contact }) => ({\n selected: getCmListData(state).get('contacts').map(c => c.get('id')).includes(contact.get('id')),\n countries: getAllStaticCountries(state)\n})\n\nexport default connect(mapStateToProps, {\n onSelect,\n onEditClick: contact => openContactEditDialog({ isEditMode: true, contact }),\n onViewClick,\n onDeleteClick,\n onListsClick\n})(ContactsItem)\n","/* eslint-disable max-len, react/no-unescaped-entities */\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport DownloadIcon from '@mui/icons-material/Download'\n\nimport { Dialog, Button } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n title: {\n fontSize: '1.5rem',\n color: !theme.isDark && '#404040'\n },\n button: {\n marginTop: '2em'\n }\n}))\n\nconst ImportHelpDialog = ({ open, onClose, languageId, onDownloadTemplate }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleOnDownloadTemplate = () => {\n const contacts = [\n {\n first_name: 'Charles',\n last_name: 'Wilson',\n mail: 'charlesIwilson@rhyta.com',\n title: 'Mr.',\n job_title: 'Journalist',\n dossier: '',\n picture: 'https://static.pressrelations.de/pics/groot/ccd/dummy_profile_picture.jpg',\n address: '66 Thornton St Huntsham',\n phone: '079 1023 7455',\n fax: '',\n external_publication: 'The Herald',\n country: 'Australia',\n state: null,\n linkedin_url: '',\n twitter_url: '',\n facebook_url: '',\n threads_url: '',\n tiktok_url: '',\n instagram_url: '',\n youtube_url: '',\n other_url: '',\n contacts_languages: 'English, German',\n preferred_language_id: 'English'\n }\n ]\n\n onDownloadTemplate({ contacts, sheetName: 'Contacts', isTemplate: true })\n }\n\n const renderHelpText = () => {\n if (languageId === 1) {\n return (\n
    \n
    \n Mit unserem Import-Tool können Sie Kontakte in großen Mengen hinzufügen, indem Sie sie in eine XLSX- oder CSV-Datei hochladen.\n
    \n

    Für den Import vorbereiten

    \n
    \n 1. Öffnen Sie ein leeres Arbeitsblatt in Ihrem bevorzugten Tabellenkalkulationsprogramm (wie\n Microsoft Excel oder Google Sheets).\n
    \n
    \n 2. Erstellen und beschriften Sie die ersten beiden Spalten mit Mail und Last Name. Dies sind die einzigen erforderlichen Felder.\n
    \n
    \n 3. Wenn Sie weitere Informationen hinzufügen möchten, müssen die nächsten Spalten in der folgenden Reihenfolge angeordnet werden:\n
      \n
    • Mail
    • \n
    • Last Name
    • \n
    • First Name
    • \n
    • Title
    • \n
    • Job Title
    • \n
    • Publication
    • \n
    • Company
    • \n
    • Dossier
    • \n
    • Notes
    • \n
    • Picture (vollständige source-URL für ein gehostetes Bild)
    • \n
    • Address
    • \n
    • Phone
    • \n
    • Fax
    • \n
    • Country
    • \n
    • State
    • \n
    • Languages
    • \n
    • Preferred Language
    • \n
    • Website
    • \n
    • LinkedIn URL
    • \n
    • X / Twitter URL
    • \n
    • Facebook URL
    • \n
    • Threads URL
    • \n
    • TikTok URL
    • \n
    • Instagram URL
    • \n
    • YouTube URL
    • \n
    • Other URL
    • \n
    \n
    \n
    4. Fügen Sie Ihre Kontaktinformationen in die entsprechenden Felder ein.
    \n
    5. Speichern Sie die Datei im XLSX- oder CSV-Format. Sie können jetzt loslegen!
    \n

    Verwenden Sie unsere Vorlagendatei

    \n
    Klicken Sie auf die Schaltfläche unten, um eine XLSX-Beispieldatei herunterzuladen. Natürlich können Sie sie auch in CSV konvertieren.
    \n
    Stellen Sie sicher, dass Sie die Musterinformationen vor dem Import entfernen.
    \n
    \n )\n }\n\n if (languageId === 4) {\n return (\n
    \n
    \n Notre outil d'importation vous permet d'ajouter des contacts en masse en les téléchargeant dans un fichier XLSX ou CSV.\n
    \n

    Préparer l'importation

    \n
    \n 1. Ouvrez une feuille de calcul vierge dans votre programme de feuille de calcul préféré (comme Microsoft Excel ou Google Sheets).\n
    \n
    \n 2. Créez et libellez les deux premières colonnes comme Mail et Last Name. Ce sont les seuls champs obligatoires.\n
    \n
    \n 3. Si vous souhaitez ajouter des informations supplémentaires, les colonnes suivantes doivent être dans l'ordre suivant:\n
      \n
    • Mail
    • \n
    • Last Name
    • \n
    • First Name
    • \n
    • Title
    • \n
    • Job Title
    • \n
    • Publication
    • \n
    • Company
    • \n
    • Dossier
    • \n
    • Notes
    • \n
    • Picture (URL source complète pour une image hébergée)
    • \n
    • Address
    • \n
    • Phone
    • \n
    • Fax
    • \n
    • Country
    • \n
    • State
    • \n
    • Languages
    • \n
    • Preferred Language
    • \n
    • Website
    • \n
    • LinkedIn URL
    • \n
    • X / Twitter URL
    • \n
    • Facebook URL
    • \n
    • Threads URL
    • \n
    • TikTok URL
    • \n
    • Instagram URL
    • \n
    • YouTube URL
    • \n
    • Other URL
    • \n
    \n
    \n
    4. Collez vos coordonnées dans les champs appropriés.
    \n
    5. Enregistrez le fichier au format XLSX ou CSV. Vous êtes prêt à partir!
    \n

    Utilisez notre fichier modèle

    \n
    Cliquez sur le bouton ci-dessous pour télécharger un exemple de fichier XLSX. Bien entendu, vous pouvez également le convertir en CSV.
    \n
    Veillez à supprimer les informations relatives à l'échantillon avant de procéder à l'importation.
    \n
    \n )\n }\n\n if (languageId === 5) {\n return (\n
    \n
    \n Наш инструмент импорта позволяет добавлять контакты в массовом порядке, загружая их в XLSX или CSV файл.\n
    \n

    Подготовка к импорту

    \n
    \n 1. Откройте чистый рабочий лист в вашей любимой программе электронных таблиц (например, Microsoft Excel или Google Sheets)..\n
    \n
    \n 2. Создайте и обозначьте первые два столбца как Mail и Last Name. Это единственные обязательные поля.\n
    \n
    \n 3. Если вы хотите добавить дополнительную информацию, следующие столбцы должны располагаться в следующем порядке:\n
      \n
    • Mail
    • \n
    • Last Name
    • \n
    • First Name
    • \n
    • Title
    • \n
    • Job Title
    • \n
    • Publication
    • \n
    • Company
    • \n
    • Dossier
    • \n
    • Notes
    • \n
    • Picture (полный URL-адрес для размещенного изображения)
    • \n
    • Address
    • \n
    • Phone
    • \n
    • Fax
    • \n
    • Country
    • \n
    • State
    • \n
    • Languages
    • \n
    • Preferred Language
    • \n
    • Website
    • \n
    • LinkedIn URL
    • \n
    • X / Twitter URL
    • \n
    • Facebook URL
    • \n
    • Threads URL
    • \n
    • TikTok URL
    • \n
    • Instagram URL
    • \n
    • YouTube URL
    • \n
    • Other URL
    • \n
    \n
    \n
    4. Вставьте свою контактную информацию в соответствующие поля.
    \n
    5. Сохраните файл в формате XLSX или CSV. Вы готовы к работе!
    \n

    Используйте наш файл-шаблон

    \n
    Нажмите на кнопку ниже, чтобы загрузить образец файла XLSX. Конечно, вы также можете преобразовать его в CSV.
    \n
    Убедитесь, что вы удалили информацию об образце перед импортом.
    \n
    \n )\n }\n\n if (languageId === 6) {\n return (\n
    \n
    \n 我们的导入工具让你通过上传XLSX或CSV文件来批量添加联系人.\n
    \n

    为进口做准备

    \n
    \n 1. 在你喜欢的电子表格程序(如Microsoft Excel或Google Sheets)中打开一个空白工作表\n
    \n
    \n 2. 创建并标记前两栏为MailLast Name. 这些是唯一的必填字段.\n
    \n
    \n 3. 如果你想添加更多的信息,接下来的栏目必须按以下顺序排列.\n
      \n
    • Mail
    • \n
    • Last Name
    • \n
    • First Name
    • \n
    • Title
    • \n
    • Job Title
    • \n
    • Publication
    • \n
    • Company
    • \n
    • Dossier
    • \n
    • Notes
    • \n
    • Picture (托管图像的完整源URL)
    • \n
    • Address
    • \n
    • Phone
    • \n
    • Fax
    • \n
    • Country
    • \n
    • State
    • \n
    • Languages
    • \n
    • Preferred Language
    • \n
    • Website
    • \n
    • LinkedIn URL
    • \n
    • X / Twitter URL
    • \n
    • Facebook URL
    • \n
    • Threads URL
    • \n
    • TikTok URL
    • \n
    • Instagram URL
    • \n
    • YouTube URL
    • \n
    • Other URL
    • \n
    \n
    \n
    4. 将你的联系信息粘贴在相关区域.
    \n
    5. 以XLSX或CSV格式保存文件. 你已经准备好了!
    \n

    使用我们的模板文件

    \n
    点击下面的按钮, 下载一个XLSX文件样. 当然, 你也可以将其转换为CSV.
    \n
    确保你在导入前删除样本信息.
    \n
    \n )\n }\n\n return (\n
    \n
    \n Our import tool lets you add contacts in bulk by uploading them in an\n XLSX or CSV file.\n
    \n

    Prepare for Import

    \n
    \n 1. Open a blank worksheet in your favorite spreadsheet program (like\n Microsoft Excel or Google Sheets).\n
    \n
    \n 2. Create and label the first two columns as Mail and Last Name. Those are the only required fields.\n
    \n
    \n 3. If you want to add more information, the next columns must be in the\n following order:\n
      \n
    • Mail
    • \n
    • Last Name
    • \n
    • First Name
    • \n
    • Title
    • \n
    • Job Title
    • \n
    • Publication
    • \n
    • Company
    • \n
    • Dossier
    • \n
    • Notes
    • \n
    • Picture (full source URL for a hosted image)
    • \n
    • Address
    • \n
    • Phone
    • \n
    • Fax
    • \n
    • Country
    • \n
    • State
    • \n
    • Languages
    • \n
    • Preferred Language
    • \n
    • Website
    • \n
    • LinkedIn URL
    • \n
    • X / Twitter URL
    • \n
    • Facebook URL
    • \n
    • Threads URL
    • \n
    • TikTok URL
    • \n
    • Instagram URL
    • \n
    • YouTube URL
    • \n
    • Other URL
    • \n
    \n
    \n
    4. Paste your contact information in the relevant fields.
    \n
    5. Save the file in XLSX or CSV format. You are ready to go!
    \n

    Use Our Template File

    \n
    Click on the button below to download a sample XLSX file. Of course, you can also convert it to CSV.
    \n
    Make sure you remove the sample information before you import.
    \n
    \n )\n }\n\n return (\n \n {renderHelpText()}\n }\n onClick={() => handleOnDownloadTemplate()}\n >\n {i18n.get('download')} {i18n.get('template')}\n \n \n )\n}\n\nImportHelpDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n languageId: PropTypes.number.isRequired,\n onDownloadTemplate: PropTypes.func.isRequired\n}\n\nexport default ImportHelpDialog\n","import { connect } from 'react-redux'\n\nimport ImportHelpDialog from 'components/contact_management/contacts/upload_contacts/import_help_dialog/ImportHelpDialog'\n\nimport {\n getUser,\n getCmImportHelpDialogOpen\n} from 'selectors'\n\nimport {\n closeImportHelpDialog,\n downloadContactsExcelStart\n} from 'actions/contact_management'\n\nconst mapStateToProps = state => ({\n open: getCmImportHelpDialogOpen(state),\n languageId: getUser(state).get('languageId')\n})\n\nexport default connect(mapStateToProps, {\n onClose: closeImportHelpDialog,\n onDownloadTemplate: downloadContactsExcelStart\n})(ImportHelpDialog)\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Alert,\n CircularProgress,\n Typography,\n Table,\n TableHead,\n TableContainer,\n TableBody,\n Pagination,\n Accordion,\n AccordionSummary,\n AccordionDetails,\n Backdrop,\n Box,\n FormControlLabel,\n Switch\n} from '@mui/material'\n\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\n\nimport ContactsSortbar from 'containers/contact_management/ContactsSortbar'\nimport ContactsItem from 'containers/contact_management/ContactsItem'\nimport ImportHelpDialog from 'containers/contact_management/ImportHelpDialog'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n padding: '1em',\n backgroundColor: theme.isDark ? '#1E1E1E' : null\n },\n title: {\n color: !theme.isDark && '#404040',\n marginLeft: '1em'\n },\n accordion: {\n backgroundColor: theme.isDark ? null : '#F0F0F0',\n marginLeft: '2em',\n marginRight: '2em',\n marginBottom: '5em'\n },\n pagination: {\n display: 'flex',\n marginBottom: '2em',\n justifyContent: 'center'\n },\n backdrop: {\n position: 'absolute'\n },\n circularProgress: {\n marginLeft: '1em',\n display: 'flex'\n },\n progressWrapper: {\n flexGrow: 1\n }\n}))\n\nconst Contacts = ({ contacts,\n page,\n total,\n loading,\n hasSearchQueries,\n showUnsubscribed,\n onPageChange,\n toggleUnsubscribed,\n fetchContacts }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const [expanded, setExpanded] = useState(true)\n\n useEffect(() => {\n if (total === 0 && hasSearchQueries) {\n setExpanded(true)\n }\n }, [total, hasSearchQueries])\n\n const handlePageChange = (_event, value) => {\n onPageChange(value)\n }\n\n const renderSortedContent = () => contacts.map(contact => (\n \n ))\n\n const renderResult = () => {\n if (total === 0 && hasSearchQueries) {\n return (\n \n \n {i18n.get('no_hits_title')}\n \n \n )\n }\n\n if (total > 0) {\n return (\n \n \n \n \n \n \n \n \n {renderSortedContent()}\n \n \n \n \n )\n }\n\n return null\n }\n\n const handleToggle = () => {\n toggleUnsubscribed()\n fetchContacts()\n }\n\n return (\n <>\n setExpanded(!expanded)}\n >\n \n }\n sx={{\n flexGrow: 1\n }}\n >\n \n {i18n.get('all_contacts')} ({total})\n \n
    \n {loading ? (\n
    \n \n
    \n ) : null}\n
    \n e.stopPropagation()}>\n \n )\n }\n label={i18n.get('show_only_unsubscribed')}\n />\n \n \n
    \n {renderResult()}\n {(total >= 10) ? (\n \n ) : null}\n \n \n \n )\n}\n\nContacts.propTypes = {\n contacts: PropTypes.object.isRequired,\n page: PropTypes.number.isRequired,\n total: PropTypes.number.isRequired,\n loading: PropTypes.bool.isRequired,\n hasSearchQueries: PropTypes.bool.isRequired,\n showUnsubscribed: PropTypes.bool.isRequired,\n\n onPageChange: PropTypes.func.isRequired,\n toggleUnsubscribed: PropTypes.func.isRequired,\n fetchContacts: PropTypes.func.isRequired\n}\n\nexport default Contacts\n","import { connect } from 'react-redux'\n\nimport Contacts from 'components/contact_management/contacts/Contacts'\n\nimport {\n setContactsPage,\n toggleContactsShowUnsubscribed,\n fetchContactsStart\n} from 'actions/contact_management'\n\nimport {\n getCmContacts,\n getCmContactPage,\n getCmContactsTotal,\n getCmContactsSearchRunning,\n getCmContactSearchQueries,\n getCmShowUnsubscribed\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n contacts: getCmContacts(state),\n page: getCmContactPage(state),\n total: getCmContactsTotal(state),\n loading: getCmContactsSearchRunning(state),\n hasSearchQueries: getCmContactSearchQueries(state).size > 0,\n showUnsubscribed: getCmShowUnsubscribed(state)\n})\n\nexport default connect(mapStateToProps, {\n onPageChange: setContactsPage,\n toggleUnsubscribed: toggleContactsShowUnsubscribed,\n fetchContacts: fetchContactsStart\n})(Contacts)\n","import React, { useState } from 'react'\nimport useI18n from 'hooks/useI18n'\nimport PropTypes from 'prop-types'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { TableCell, TableRow } from '@mui/material'\nimport ArrowDownwardIcon from '@mui/icons-material/ArrowDownward'\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward'\nimport SwapVertIcon from '@mui/icons-material/SwapVert'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n tableCell: {\n '&:hover': {\n backgroundColor: theme.isDark ? '#383838' : '#e0e0e0',\n cursor: 'pointer'\n },\n borderRadius: '5px 5px 0px 0px'\n },\n selected: {\n backgroundColor: theme.isDark ? '#383838' : '#e0e0e0',\n borderRadius: '5px 5px 0px 0px',\n '&:hover': {\n cursor: 'pointer'\n }\n },\n arrowColumn: {\n width: '50px',\n paddingTop: 0,\n paddingBottom: 0\n }\n}))\n\nconst defaultSortingDirections = {\n name: 'desc',\n contacts: 'desc'\n}\n\nconst DistributionListsSortbar = ({ onSortBy }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const [sortingDirections, setSortingDirections] = useState(\n defaultSortingDirections\n )\n const [selectedField, setSelectedField] = useState(null)\n\n const handleSortingClick = sortBy => {\n const sortOrder = sortingDirections[sortBy] !== 'desc' ? 'desc' : 'asc'\n\n setSortingDirections({ ...defaultSortingDirections, [sortBy]: sortOrder })\n setSelectedField(sortBy)\n onSortBy({ sortBy, sortOrder })\n }\n\n const sortTableCellIcon = () => {\n if (sortingDirections[selectedField] === 'desc') {\n return (\n \n handleSortingClick(selectedField)}\n />\n \n )\n }\n\n if (sortingDirections[selectedField] === 'asc') {\n return (\n \n handleSortingClick(selectedField)}\n />\n \n )\n }\n\n return (\n \n handleSortingClick('name')}\n />\n \n )\n }\n\n return (\n \n {sortTableCellIcon()}\n handleSortingClick('name')}\n >\n {i18n.get('name')}\n \n \n \n \n )\n}\n\nDistributionListsSortbar.propTypes = {\n onSortBy: PropTypes.func.isRequired\n}\n\nexport default DistributionListsSortbar\n","import { connect } from 'react-redux'\n\nimport DistributionListsSortbar from 'components/contact_management/distribution_lists/distribution_lists_sortbar/DistributionListsSortbar'\nimport { listSortBy } from 'actions/contact_management'\n\nconst mapStateToProps = () => ({\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSortBy: listSortBy\n }\n)(DistributionListsSortbar)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Dialog, DialogTitle, DialogActions, Button } from '@mui/material'\n\nimport { IconButton } from 'containers/themed'\n\nimport DeleteOutlineIcon from '@mui/icons-material/DeleteOutline'\n\nconst useStyles = makeStyles()(theme => ({\n button: {\n width: '100px'\n },\n title: {\n color: !theme.isDark && '#404040',\n marginBottom: '1em'\n },\n actions: {\n marginRight: '0.5em',\n marginBottom: '0.5em'\n }\n}))\n\nconst DistributionListsDelete = ({ distObject, onDelete }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const [open, setOpen] = useState(false)\n\n const handleOpen = () => {\n setOpen(true)\n }\n\n const handleClose = () => {\n setOpen(false)\n }\n\n const handleDelete = () => {\n onDelete(distObject.get('id'))\n setOpen(false)\n }\n\n return (\n
    \n \n \n \n \n {`${i18n.get('delete_list')}\"${distObject.get('name')}\" ?`}\n \n \n {i18n.get('cancel')}\n \n }\n onClick={handleDelete}\n >\n {i18n.get('delete')}\n \n \n \n
    \n )\n}\n\nDistributionListsDelete.propTypes = {\n distObject: PropTypes.object.isRequired,\n onDelete: PropTypes.func.isRequired\n}\n\nexport default DistributionListsDelete\n","import { connect } from 'react-redux'\n\nimport DistributionListsDelete from\n 'components/contact_management/distribution_lists/distribution_lists_item/distribution_lists_delete/DistributionListsDelete'\n\nimport { deleteDistributionListStart } from 'actions/contact_management'\n\nconst mapStateToProps = (_state, { distObject }) => ({\n distObject\n})\n\nexport default connect(mapStateToProps, {\n onDelete: deleteDistributionListStart\n})(DistributionListsDelete)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { IconButton } from 'containers/themed'\n\nimport FilterAltIcon from '@mui/icons-material/FilterAlt'\nimport FilterAltOffIcon from '@mui/icons-material/FilterAltOff'\n\nconst DistributionListsFilter = ({ distObject, isDistListsLocked, isActiveFilter, onClick, onRemove }) => {\n const i18n = useI18n()\n\n if (isActiveFilter) {\n return (\n onRemove()}\n title={`${i18n.get('delete')} ${i18n.get('filter')}`}\n >\n \n \n )\n }\n\n return (\n onClick({ label: `${i18n.get('distribution_list')}: ${distObject.get('name')}`, value: distObject.get('id') })}\n title={`${i18n.get('filter')} ${i18n.get('contacts')}`}\n >\n \n \n )\n}\n\nDistributionListsFilter.propTypes = {\n distObject: PropTypes.object.isRequired,\n isDistListsLocked: PropTypes.bool.isRequired,\n isActiveFilter: PropTypes.bool.isRequired,\n\n onClick: PropTypes.func.isRequired,\n onRemove: PropTypes.func.isRequired\n}\n\nexport default DistributionListsFilter\n","import { connect } from 'react-redux'\nimport { fromJS } from 'immutable'\n\nimport DistributionListsFilter\n from 'components/contact_management/distribution_lists/distribution_lists_item/distribution_lists_filter/DistributionListsFilter'\n\nimport { addDistributionListContactFilter, removeDistributionListContactFilter } from 'actions/contact_management'\n\nimport { getCmDistributionListContactsSearchQueries } from 'selectors'\n\nconst mapStateToProps = (state, { distObject, isDistListsLocked }) => ({\n distObject,\n isDistListsLocked,\n isActiveFilter: (getCmDistributionListContactsSearchQueries(state).first() || fromJS({})).get('value') === distObject.get('id')\n})\n\nexport default connect(mapStateToProps, {\n onClick: addDistributionListContactFilter,\n onRemove: removeDistributionListContactFilter\n})(DistributionListsFilter)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport AddIcon from '@mui/icons-material/Add'\nimport CheckIcon from '@mui/icons-material/Check'\nimport EditIcon from '@mui/icons-material/Edit'\nimport PeopleAltOutlinedIcon from '@mui/icons-material/PeopleAltOutlined'\nimport DownloadIcon from '@mui/icons-material/Download'\n\nimport { IconButton } from 'containers/themed'\nimport DistributionListsDelete from 'containers/contact_management/DistributionListsDelete'\nimport DistributionListsFilter from 'containers/contact_management/DistributionListsFilter'\n\nimport { TableRow, TableCell } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n item: {\n backgroundColor: theme.isDark ? null : 'white'\n },\n actions: {\n display: 'flex',\n alignItems: 'center'\n },\n listIcon: {\n color: theme.isDark ? null : '#707070'\n }\n}))\n\nconst DistributionListItem = ({\n distObject,\n selected,\n loading,\n isDistListsLocked,\n onEdit,\n onSelect,\n onDownload\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n return (\n \n \n \n \n {distObject.get('name')}\n \n {distObject.get('contacts').size} {i18n.get('recipients')}\n \n \n onDownload(distObject)}\n title={i18n.get('export')}\n >\n \n \n onEdit(distObject)}\n title={i18n.get('edit')}\n >\n \n \n \n \n \n \n onSelect(distObject)}\n title={selected ? i18n.get('in_cart') : i18n.get('select_list')}\n >\n {selected ? : }\n \n \n \n )\n}\n\nDistributionListItem.propTypes = {\n distObject: PropTypes.object.isRequired,\n selected: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n isDistListsLocked: PropTypes.bool.isRequired,\n\n onSelect: PropTypes.func.isRequired,\n onEdit: PropTypes.func.isRequired,\n onDownload: PropTypes.func.isRequired\n}\n\nexport default DistributionListItem\n","import { connect } from 'react-redux'\n\nimport DistributionListItem from 'components/contact_management/distribution_lists/distribution_lists_item/DistributionListItem'\n\nimport {\n openDistributionListEditDialog,\n selectDistributionList,\n downloadDistributionListStart\n} from 'actions/contact_management'\n\nimport {\n getCmSelectedLists,\n getCmRequestRunning,\n getCDeskIsDistributionListsLocked\n} from 'selectors'\n\nconst mapStateToProps = (state, { distObject }) => ({\n distObject,\n selected: getCmSelectedLists(state).get('lists').map(c => c.get('id')).includes(distObject.get('id')),\n loading: getCmRequestRunning(state),\n isDistListsLocked: getCDeskIsDistributionListsLocked(state)\n})\n\nexport default connect(mapStateToProps, {\n onEdit: openDistributionListEditDialog,\n onSelect: selectDistributionList,\n onDownload: downloadDistributionListStart\n})(DistributionListItem)\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Alert,\n CircularProgress,\n Typography,\n Table,\n TableContainer,\n TableHead,\n TableBody,\n Accordion,\n AccordionSummary,\n AccordionDetails,\n Pagination,\n Backdrop\n} from '@mui/material'\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\n\nimport DistributionListsSortbar from 'containers/contact_management/DistributionListsSortbar'\nimport DistributionListItem from 'containers/contact_management/DistributionListItem'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n padding: '1em',\n backgroundColor: theme.isDark ? '#1E1E1E' : null\n },\n plusColumn: {\n width: '50px'\n },\n icon: {\n marginRight: '0.5em'\n },\n title: {\n color: !theme.isDark && '#404040',\n marginLeft: '1em'\n },\n accordion: {\n backgroundColor: theme.isDark ? null : '#F0F0F0',\n marginLeft: '2em',\n marginRight: '2em',\n marginBottom: '2em',\n '&.MuiAccordion-root:before': {\n backgroundColor: 'transparent'\n }\n },\n pagination: {\n display: 'flex',\n marginTop: '1em',\n marginBottom: '1em',\n justifyContent: 'center'\n },\n backdrop: {\n position: 'absolute',\n zIndex: theme.zIndex.drawer - 1,\n opacity: 0.5\n },\n circularProgress: {\n marginLeft: '1em',\n display: 'flex'\n }\n}))\n\nconst DistributionLists = ({\n distributionLists,\n page,\n total,\n loading,\n hasSearchQueries,\n isDistListsLocked,\n distListsLimit,\n onPageChange\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const [expanded, setExpanded] = useState(false)\n\n useEffect(() => {\n if (total === 0 && hasSearchQueries) {\n setExpanded(true)\n }\n }, [total, hasSearchQueries])\n\n const handlePageChange = (event, value) => {\n onPageChange(value)\n }\n\n const renderSortedLists = () => distributionLists.map(list => (\n \n ))\n\n const renderResult = () => {\n if (total === 0 && hasSearchQueries) {\n return (\n \n \n {i18n.get('no_hits_title')}\n \n \n )\n }\n\n if (total > 0) {\n return (\n \n \n \n \n \n \n \n \n {renderSortedLists()}\n \n \n \n \n )\n }\n\n return null\n }\n\n return (\n <>\n setExpanded(!expanded)}\n >\n }\n sx={{\n '& .MuiAccordionSummary-content': {\n display: 'flex',\n alignItems: 'center'\n }\n }}\n >\n \n {i18n.get('distribution_lists')} ({total})\n \n {isDistListsLocked && (\n \n {i18n.get('distribution_lists_limit_reached_with_number', { number: distListsLimit })}\n \n )}\n {loading ? (\n
    \n \n
    \n ) : null}\n \n {renderResult()}\n {(total >= 10) ? (\n \n ) : null}\n \n \n )\n}\n\nDistributionLists.propTypes = {\n distributionLists: PropTypes.object.isRequired,\n page: PropTypes.number.isRequired,\n total: PropTypes.number.isRequired,\n loading: PropTypes.bool.isRequired,\n hasSearchQueries: PropTypes.bool.isRequired,\n isDistListsLocked: PropTypes.bool.isRequired,\n distListsLimit: PropTypes.number.isRequired,\n\n onPageChange: PropTypes.func.isRequired\n}\n\nexport default DistributionLists\n","import { connect } from 'react-redux'\n\nimport DistributionLists from 'components/contact_management/distribution_lists/DistributionLists'\n\nimport {\n getCmDistributionLists,\n getCmDistributionListPage,\n getCmListsTotal,\n getCmDistributionListsSearchRunning,\n getCmDistributionListSearchQueries,\n getCDeskIsDistributionListsLocked,\n getCDeskPlan\n} from 'selectors'\n\nimport { setDistributionListsPage } from 'actions/contact_management'\n\nconst mapStateToProps = state => ({\n distributionLists: getCmDistributionLists(state),\n page: getCmDistributionListPage(state),\n total: getCmListsTotal(state),\n loading: getCmDistributionListsSearchRunning(state),\n hasSearchQueries: getCmDistributionListSearchQueries(state).size > 0,\n isDistListsLocked: getCDeskIsDistributionListsLocked(state),\n distListsLimit: getCDeskPlan(state).get('distributionListsLimit')\n})\n\nexport default connect(mapStateToProps, {\n onPageChange: setDistributionListsPage\n})(DistributionLists)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { List as ImmutableList } from 'immutable'\nimport { Dialog, DialogContent, DialogTitle, DialogActions, useMediaQuery } from '@mui/material'\nimport { useTheme } from '@mui/material/styles'\n\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { IconButton, Button, RaisedPrimaryButton } from 'containers/themed'\n\nexport default function ContactDeleteDialog({\n open,\n contacts,\n loading,\n onClose,\n onDelete\n}) {\n const theme = useTheme()\n const i18n = useI18n()\n const fullScreen = useMediaQuery(theme.breakpoints.down('md'))\n\n const handleClose = () => onClose()\n const handleDelete = () => onDelete()\n\n const contactData = contact => (\n {`${contact.get('firstName') || ''} ${contact.get('lastName')} (${contact.get('mail')})`}\n \n )\n\n return (\n \n t.spacing(2),\n color: t => t.palette.grey[800]\n }}\n >\n {i18n.get('delete_contact')}\n !t.isDark && t.palette.grey[800]\n }}\n >\n \n \n \n\n t.spacing(4) }}\n >\n {i18n.get('confirm_contact_delete')}\n
      \n {contacts.map(contact => contactData(contact))}\n
    \n \n \n {i18n.get('cancel')}\n \n {i18n.get('delete')}\n \n \n \n )\n}\n\nContactDeleteDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n contacts: PropTypes.instanceOf(ImmutableList).isRequired,\n loading: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n onDelete: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ContactDeleteDialog from 'components/contact_management/contact_delete_dialog/ContactDeleteDialog'\n\nimport {\n deleteContactsStart as onDelete,\n closeContactDeleteDialog as onClose\n} from 'actions/contact_management'\n\nimport {\n getCmContactDeleteDialogOpen,\n getCmContactsToDelete,\n getCmRequestRunning\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getCmContactDeleteDialogOpen(state),\n contacts: getCmContactsToDelete(state),\n loading: getCmRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose,\n onDelete\n }\n)(ContactDeleteDialog)\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map as ImmutableMap } from 'immutable'\nimport { Box, TextField, Dialog, DialogTitle, DialogContent, DialogActions } from '@mui/material'\nimport { Button, RaisedPrimaryButton, IconButton } from 'containers/themed'\nimport CloseIcon from '@mui/icons-material/Close'\n\nexport default function TagRenameDialog({ tag, open, running, onSave, onCancel }) {\n const i18n = useI18n()\n const prev = tag.toJS()\n const [tagName, setTagName] = useState('')\n const [disabled, setDisabled] = useState(false)\n\n useEffect(() => {\n setTagName(tag.get('name'))\n }, [tag])\n\n const handleClose = () => {\n setTagName(prev.name)\n onCancel()\n }\n const handleChange = e => {\n if (e.target.value.length < 3) {\n setDisabled(true)\n } else {\n setDisabled(false)\n }\n\n setTagName(e.target.value)\n }\n const handleSave = () => {\n if (prev.name !== tagName) {\n onSave({ tagId: prev.id, name: tagName })\n } else {\n onCancel()\n }\n }\n\n return (\n \n t.spacing(3),\n color: t => t.palette.grey[800]\n }}\n >\n {i18n.get('rename')}\n !t.isDark && t.palette.grey[800]\n }}\n >\n \n \n \n\n t.spacing(3) }}\n >\n \n \n\n \n \n \n {i18n.get('close')}\n \n \n {i18n.get('save')}\n \n \n \n \n )\n}\n\nTagRenameDialog.propTypes = {\n tag: PropTypes.instanceOf(ImmutableMap).isRequired,\n open: PropTypes.bool.isRequired,\n running: PropTypes.bool.isRequired,\n onSave: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport TagRenameDialog from 'components/contact_management/tags_dialog/tag_rename_dialog'\n\nimport { getCmTagRenameDialogOpen, getCmRequestRunning } from 'selectors/contact_management'\n\nimport {\n renameTagStart as onSave,\n closeTagRenameDialog as onCancel\n} from 'actions/contact_management'\n\nconst mapStateToProps = (state, ownProps) => ({\n open: getCmTagRenameDialogOpen(state),\n running: getCmRequestRunning(state),\n tag: ownProps.tag\n})\n\nexport default connect(mapStateToProps, {\n onCancel,\n onSave\n})(TagRenameDialog)\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map as ImmutableMap } from 'immutable'\nimport { Box, Typography, Dialog, DialogTitle, DialogContent, DialogActions } from '@mui/material'\nimport { Button, RaisedPrimaryButton, IconButton } from 'containers/themed'\nimport CloseIcon from '@mui/icons-material/Close'\nimport TagChip from 'components/contact_management/tag_chip'\n\nexport default function TagDeleteDialog({ tag, open, running, onConfirm, onCancel }) {\n const i18n = useI18n()\n const [selectedTag, setSelectedTag] = useState(tag.toJS())\n\n useEffect(() => {\n setSelectedTag(tag.toJS())\n }, [tag])\n\n const handleClose = () => onCancel()\n const handleConfirm = () => onConfirm({ id: selectedTag.id })\n\n return (\n \n t.spacing(3),\n color: t => t.palette.grey[800]\n }}\n >\n {i18n.get('are_you_sure')}\n !t.isDark && t.palette.grey[800]\n }}\n >\n \n \n \n\n t.spacing(3) }}\n >\n \n {i18n.get('delete_tags_text')}\n \n \n\n \n \n \n {i18n.get('close')}\n \n \n {i18n.get('delete')}\n \n \n \n \n )\n}\n\nTagDeleteDialog.propTypes = {\n tag: PropTypes.instanceOf(ImmutableMap).isRequired,\n open: PropTypes.bool.isRequired,\n running: PropTypes.bool.isRequired,\n onConfirm: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport TagDeleteDialog from 'components/contact_management/tags_dialog/tag_delete_dialog'\n\nimport { getCmTagDeleteDialogOpen, getCmRequestRunning } from 'selectors/contact_management'\n\nimport {\n deleteTagStart as onConfirm,\n closeTagDeleteDialog as onCancel\n} from 'actions/contact_management'\n\nconst mapStateToProps = (state, ownProps) => ({\n open: getCmTagDeleteDialogOpen(state),\n running: getCmRequestRunning(state),\n tag: ownProps.tag\n})\n\nexport default connect(mapStateToProps, {\n onCancel,\n onConfirm\n})(TagDeleteDialog)\n","import React, { useState } from 'react'\nimport useI18n from 'hooks/useI18n'\nimport PropTypes from 'prop-types'\nimport { TableCell, TableRow } from '@mui/material'\nimport { styled } from '@mui/material/styles'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport ArrowDownwardIcon from '@mui/icons-material/ArrowDownward'\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward'\nimport SwapVertIcon from '@mui/icons-material/SwapVert'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n tableCell: {\n '&:hover': {\n backgroundColor: theme.palette.action.hover,\n cursor: 'pointer'\n }\n },\n selected: {\n backgroundColor: theme.palette.action.hover,\n '&:hover': {\n cursor: 'pointer'\n }\n },\n arrowColumn: {\n width: '60px',\n paddingTop: 0,\n paddingBottom: 0,\n paddingLeft: 10\n }\n}))\n\nconst defaultSortingDirections = {\n name: 'desc',\n contacts: 'desc'\n}\n\nconst TagSortbar = ({ onSortBy }) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const [sortingDirections, setSortingDirections] = useState(\n defaultSortingDirections\n )\n const [selectedField, setSelectedField] = useState(null)\n\n const handleSortingClick = sortBy => {\n const sortOrder = sortingDirections[sortBy] !== 'desc' ? 'desc' : 'asc'\n\n setSortingDirections({ ...defaultSortingDirections, [sortBy]: sortOrder })\n setSelectedField(sortBy)\n onSortBy({ sortBy, sortOrder })\n }\n\n const StyledTableCell = styled(TableCell)(({ theme }) => ({\n paddingLeft: theme.spacing(3),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1)\n }))\n\n const sortTableCellIcon = () => {\n if (sortingDirections[selectedField] === 'desc') {\n return (\n \n handleSortingClick(selectedField)}\n />\n \n )\n }\n\n if (sortingDirections[selectedField] === 'asc') {\n return (\n \n handleSortingClick(selectedField)}\n />\n \n )\n }\n\n return (\n \n handleSortingClick('name')}\n />\n \n )\n }\n\n return (\n \n {sortTableCellIcon()}\n handleSortingClick('name')}\n >\n {i18n.get('name')}\n \n \n \n \n )\n}\n\nTagSortbar.propTypes = {\n onSortBy: PropTypes.func.isRequired\n}\n\nexport default TagSortbar\n","import { connect } from 'react-redux'\n\nimport TagSortbar from 'components/contact_management/tags_dialog/tag_sortbar/TagSortbar'\nimport { tagsSortBy } from 'actions/contact_management'\n\nconst mapStateToProps = () => ({\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSortBy: tagsSortBy\n }\n)(TagSortbar)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { List as ImmutableList, Map as ImmutableMap } from 'immutable'\nimport {\n TableContainer,\n TablePagination,\n Paper,\n Table,\n TableHead,\n TableBody,\n TableRow,\n TableCell,\n CircularProgress,\n Backdrop\n} from '@mui/material'\nimport { styled } from '@mui/material/styles'\nimport RenameIcon from '@mui/icons-material/DriveFileRenameOutline'\nimport DeleteIcon from '@mui/icons-material/DeleteOutline'\nimport LocalOfferIcon from '@mui/icons-material/LocalOffer'\nimport NewspaperOutlinedIcon from '@mui/icons-material/NewspaperOutlined'\nimport { IconButton } from 'containers/themed'\n\nimport TagRenameDialog from 'containers/contact_management/TagRenameDialog'\nimport TagDeleteDialog from 'containers/contact_management/TagDeleteDialog'\nimport TagSortbar from 'containers/contact_management/TagSortbar'\n\nconst StyledTableRow = styled(TableRow)(({ theme }) => ({\n '&:nth-of-type(odd)': {\n backgroundColor: theme.palette.action.hover\n },\n '&:last-child td, &:last-child th': {\n border: 0\n }\n}))\n\nconst StyledTableCell = styled(TableCell)(({ theme }) => ({\n paddingLeft: theme.spacing(3),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1)\n}))\n\nexport default function TagList({\n tags,\n loading,\n onRenameClick,\n onDeleteClick\n}) {\n const i18n = useI18n()\n const [selectedTag, setSelectedTag] = useState(ImmutableMap())\n const [page, setPage] = useState(0)\n const [rowsPerPage, setRowsPerPage] = useState(10)\n const handleOpenRenameDialog = tag => {\n setSelectedTag(tag)\n onRenameClick()\n }\n const handleOpenDeleteDialog = tag => {\n setSelectedTag(tag)\n onDeleteClick()\n }\n\n const handleChangePage = (event, newPage) => {\n setPage(newPage)\n }\n\n const handleChangeRowsPerPage = event => {\n setRowsPerPage(parseInt(event.target.value, 10))\n setPage(0)\n }\n\n const totalCount = total => {\n const label = total === 1 ? i18n.get('contact') : i18n.get('contacts')\n\n return `${total} ${label}`\n }\n\n const renderTagRow = tag => (\n \n \n {tag.get('type') === 'custom'\n && (\n \n )}\n {tag.get('type') === 'publication'\n && (\n \n )}\n \n {tag.get('name')}\n {totalCount(tag.get('total'))}\n t.spacing(2) }}>\n handleOpenRenameDialog(tag)}\n >\n \n \n handleOpenDeleteDialog(tag)}\n >\n \n \n \n \n )\n\n return (\n <>\n \n \n \n \n \n \n \n \n \n {tags.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map(tag => renderTagRow(tag))}\n {tags.size > 10 && (\n \n \n \n )}\n \n \n \n {!selectedTag.isEmpty() && }\n {!selectedTag.isEmpty() && }\n \n )\n}\n\nTagList.propTypes = {\n tags: PropTypes.instanceOf(ImmutableList).isRequired,\n loading: PropTypes.bool.isRequired,\n onRenameClick: PropTypes.func.isRequired,\n onDeleteClick: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport TagList from 'components/contact_management/tags_dialog/tag_list'\n\nimport {\n getCmTags, getCmSearchRunning\n} from 'selectors/contact_management'\n\nimport {\n openTagRenameDialog as onRenameClick,\n openTagDeleteDialog as onDeleteClick\n} from 'actions/contact_management'\n\nconst mapStateToProps = state => ({\n tags: getCmTags(state),\n loading: getCmSearchRunning(state)\n})\n\nexport default connect(mapStateToProps, {\n onRenameClick,\n onDeleteClick\n})(TagList)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport {\n Box,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n useMediaQuery\n} from '@mui/material'\nimport { useTheme } from '@mui/material/styles'\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { RaisedPrimaryButton, IconButton } from 'containers/themed'\nimport TagList from 'containers/contact_management/TagList'\n\nexport default function TagsDialog({ open, onClose }) {\n const theme = useTheme()\n const i18n = useI18n()\n const fullScreen = useMediaQuery(theme.breakpoints.down('md'))\n const handleClose = () => onClose()\n\n return (\n \n t.spacing(3),\n color: t => t.palette.grey[800]\n }}\n >\n {i18n.get('tags')}\n !t.isDark && t.palette.grey[800]\n }}\n >\n \n \n \n\n \n \n \n\n \n \n \n {i18n.get('close')}\n \n \n \n \n )\n}\n\nTagsDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport TagsDialog from 'components/contact_management/tags_dialog'\n\nimport { getCmTagsDialogOpen, getCmSelectedTagType } from 'selectors/contact_management'\n\nimport { closeTagsDialog as onClose } from 'actions/contact_management'\n\nconst mapStateToProps = state => ({\n open: getCmTagsDialogOpen(state),\n type: getCmSelectedTagType(state) || ''\n})\n\nexport default connect(mapStateToProps, {\n onClose\n})(TagsDialog)\n","import { connect } from 'react-redux'\n\nimport DistributionListCreateDialog from 'components/contact_management/distribution_list_create_dialog'\n\nimport {\n getCmDistributionListCreateDialogOpen,\n getCmDistributionListsSearch,\n getCmListData,\n getCmRequestRunning,\n getCmDistributionListSearchRunning\n} from 'selectors'\n\nimport {\n closeDistributionListCreateDialog as onClose,\n setDistributionList as onSelectOption,\n addContactsToDistributionListStart as onSubmit,\n updateDistributionListFormData as onFormUpdate,\n selectContact as onRemove,\n searchDistributionListStart\n} from 'actions/contact_management'\n\nconst mapStateToProps = state => ({\n contacts: getCmListData(state).get('contacts'),\n open: getCmDistributionListCreateDialogOpen(state),\n lists: getCmDistributionListsSearch(state),\n title: getCmListData(state).get('name'),\n loading: getCmRequestRunning(state),\n searchRequestRunning: getCmDistributionListSearchRunning(state)\n})\n\nexport default connect(mapStateToProps, {\n onClose,\n onSelectOption,\n onSubmit,\n onFormUpdate,\n onRemove,\n searchDistributionListStart\n})(DistributionListCreateDialog)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\n\nimport { IconButton } from 'containers/themed'\n\nimport RemoveIcon from '@mui/icons-material/Remove'\n\nimport { TableRow, TableCell } from '@mui/material'\n\nexport default function ContactsListItem({ contact, onRemove }) {\n const [removed, setRemoved] = useState(false)\n\n const handleClick = () => {\n setRemoved(true)\n onRemove(contact)\n }\n\n if (removed) {\n return null\n }\n\n return (\n \n \n \n \n \n \n {contact.get('firstName')}\n {contact.get('lastName')}\n {contact.get('mail')}\n {contact.get('country')}\n {contact.get('externalPublication')}\n \n )\n}\n\nContactsListItem.propTypes = {\n contact: PropTypes.object.isRequired,\n onRemove: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ContactsListItem from 'components/contact_management/distribution_list_edit_dialog/contacts_list_item'\n\nimport {\n removeContactFromListStart\n} from 'actions/contact_management'\n\nconst mapStateToProps = _state => ({\n})\n\nexport default connect(mapStateToProps, {\n onRemove: removeContactFromListStart\n})(ContactsListItem)\n","import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { useSnackbar } from 'notistack'\n\nimport {\n Dialog,\n DialogTitle,\n DialogContent,\n DialogActions,\n IconButton,\n TextField,\n Table,\n TableContainer,\n TableBody\n} from '@mui/material'\n\nimport CloseIcon from '@mui/icons-material/Close'\nimport ContactsListItem from 'containers/contact_management/ContactsListItem'\nimport { Button, RaisedPrimaryButton } from 'containers/themed'\n\nexport default function DistributionListEditDialog({\n open,\n onClose,\n list,\n onUpdate,\n onSubmit,\n loading,\n newListName\n}) {\n const i18n = useI18n()\n\n const { enqueueSnackbar, closeSnackbar } = useSnackbar()\n const [changed, setChanged] = useState(false)\n\n const onListChange = event => {\n setChanged(true)\n onUpdate({ key: event.target.name, value: event.target.value })\n }\n const handleClose = () => {\n setChanged(false)\n closeSnackbar()\n onClose()\n }\n\n const handleSave = () => {\n if (newListName === '') {\n return enqueueSnackbar(\n `${i18n.get('name')} ${i18n.get('is_required')}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n return onSubmit()\n }\n\n useEffect(() => {\n if (!open) {\n setChanged(false)\n }\n }, [open])\n\n return (\n \n t.spacing(2),\n color: t => t.palette.grey[800]\n }}\n >\n {i18n.get('distribution_list')}\n !t.isDark && t.palette.grey[800]\n }}\n >\n \n \n \n t.spacing(3) }}\n >\n\n \n\n \n\n t.palette.grey[200], marginTop: t => t.spacing(2) }}\n >\n \n \n {list.get('contacts').map(contact => (\n \n ))}\n \n \n \n\n \n t.spacing(2) }}>\n \n {i18n.get('close')}\n \n {changed && (\n \n {i18n.get('save')}\n \n )}\n \n \n )\n}\n\nDistributionListEditDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n list: PropTypes.object.isRequired,\n onSubmit: PropTypes.func.isRequired,\n onUpdate: PropTypes.func.isRequired,\n loading: PropTypes.bool.isRequired,\n newListName: PropTypes.string.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport DistributionListEditDialog from 'components/contact_management/distribution_list_edit_dialog'\n\nimport {\n getCmDistributionListEditDialogOpen,\n getCmListData,\n getCmRequestRunning\n} from 'selectors'\n\nimport {\n closeDistributionListEditDialog,\n removeContactFromListStart,\n updateDistributionListFormData,\n updateDistributionListStart\n} from 'actions/contact_management'\n\nconst mapStateToProps = state => ({\n open: getCmDistributionListEditDialogOpen(state),\n list: getCmListData(state),\n loading: getCmRequestRunning(state),\n newListName: getCmListData(state).get('name')\n})\n\nexport default connect(mapStateToProps, {\n onClose: closeDistributionListEditDialog,\n onRemove: removeContactFromListStart,\n onSubmit: updateDistributionListStart,\n onUpdate: updateDistributionListFormData\n})(DistributionListEditDialog)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { fromJS, Map } from 'immutable'\nimport {\n TableContainer,\n TablePagination,\n Paper,\n Table,\n TableHead,\n TableBody,\n TableRow,\n TableCell\n} from '@mui/material'\nimport { styled } from '@mui/material/styles'\nimport DeleteIcon from '@mui/icons-material/DeleteOutline'\nimport PeopleAltOutlinedIcon from '@mui/icons-material/PeopleAltOutlined'\n\nimport { IconButton } from 'containers/themed'\n\nconst StyledTableRow = styled(TableRow)(({ theme }) => ({\n '&:nth-of-type(odd)': {\n backgroundColor: theme.palette.action.hover\n },\n '&:last-child td, &:last-child th': {\n border: 0\n }\n}))\n\nconst StyledTableCell = styled(TableCell)(({ theme }) => ({\n paddingLeft: theme.spacing(2),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1)\n}))\n\nconst DistributionListTable = ({\n contact,\n loading,\n onRemove\n}) => {\n const i18n = useI18n()\n const [page, setPage] = useState(0)\n const [rowsPerPage, setRowsPerPage] = useState(10)\n\n const distributionLists = contact.get('distributionLists') || []\n\n const handleRemove = list => {\n onRemove(fromJS({ id: contact.get('id'), listId: list.get('id') }))\n }\n\n const handleChangePage = (event, newPage) => {\n setPage(newPage)\n }\n\n const handleChangeRowsPerPage = event => {\n setRowsPerPage(parseInt(event.target.value, 10))\n setPage(0)\n }\n\n const renderDistributionListRow = list => (\n \n \n !t.isDark && t.palette.grey[800]\n }}\n />\n \n {list.get('name')}\n t.spacing(2) }}>\n handleRemove(list)}\n >\n \n \n \n \n )\n\n return (\n <>\n \n \n \n \n {distributionLists.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map(list => renderDistributionListRow(list))}\n {distributionLists.size > 10 && (\n \n \n \n )}\n \n \n \n \n )\n}\n\nDistributionListTable.propTypes = {\n contact: PropTypes.instanceOf(Map).isRequired,\n loading: PropTypes.bool.isRequired,\n onRemove: PropTypes.func.isRequired\n}\n\nexport default DistributionListTable\n","import { connect } from 'react-redux'\n\nimport DistributionListTable\n from 'components/contact_management/distribution_list_view_dialog/distribution_list_table/DistributionListTable'\n\nimport {\n getCmSelectedContact,\n getCmRequestRunning\n} from 'selectors/contact_management'\n\nimport {\n removeContactFromListStart as onRemove\n} from 'actions/contact_management'\n\nconst mapStateToProps = state => ({\n contact: getCmSelectedContact(state),\n loading: getCmRequestRunning(state)\n})\n\nexport default connect(mapStateToProps, {\n onRemove\n})(DistributionListTable)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\nimport {\n Box,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n useMediaQuery\n} from '@mui/material'\nimport { useTheme } from '@mui/material/styles'\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { RaisedPrimaryButton, IconButton } from 'containers/themed'\n\nimport DistributionListTable from 'containers/contact_management/DistributionListTable'\n\nconst DistributionListViewDialog = ({ contact, open, onClose }) => {\n const theme = useTheme()\n const i18n = useI18n()\n const fullScreen = useMediaQuery(theme.breakpoints.down('md'))\n const handleClose = () => onClose()\n\n if (!contact.get('distributionLists') || contact.get('distributionLists').isEmpty()) {\n return null\n }\n\n return (\n \n t.spacing(3),\n color: t => t.palette.grey[800]\n }}\n >\n {`${contact.get('firstName') || ''} ${contact.get('lastName')} | ${i18n.get('distribution_lists')}`}\n !t.isDark && t.palette.grey[800]\n }}\n >\n \n \n \n\n \n \n \n\n \n \n \n {i18n.get('close')}\n \n \n \n \n )\n}\n\nDistributionListViewDialog.propTypes = {\n contact: PropTypes.instanceOf(Map).isRequired,\n open: PropTypes.bool.isRequired,\n\n onClose: PropTypes.func.isRequired\n}\n\nexport default DistributionListViewDialog\n","import { connect } from 'react-redux'\n\nimport DistributionListViewDialog from 'components/contact_management/distribution_list_view_dialog/DistributionListViewDialog'\n\nimport {\n getCmSelectedContact,\n getCmDistributionListViewDialogOpen\n} from 'selectors'\n\nimport {\n closeDistributionListViewDialog as onClose\n} from 'actions/contact_management'\n\nconst mapStateToProps = state => ({\n contact: getCmSelectedContact(state),\n open: getCmDistributionListViewDialogOpen(state)\n})\n\nexport default connect(mapStateToProps, {\n onClose\n})(DistributionListViewDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\nimport {\n TableContainer,\n Paper,\n Table,\n TableHead,\n TableBody,\n TableRow,\n TableCell\n} from '@mui/material'\nimport { styled } from '@mui/material/styles'\nimport PeopleAltOutlinedIcon from '@mui/icons-material/PeopleAltOutlined'\nimport RemoveIcon from '@mui/icons-material/Remove'\nimport { IconButton } from 'containers/themed'\n\nconst StyledTableRow = styled(TableRow)(({ theme }) => ({\n '&:nth-of-type(odd)': {\n backgroundColor: theme.palette.action.hover\n },\n '&:last-child td, &:last-child th': {\n border: 0\n }\n}))\n\nconst StyledTableCell = styled(TableCell)(({ theme }) => ({\n paddingLeft: theme.spacing(2),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1)\n}))\n\nconst SelectedDistributionListsTable = ({ data, onChange }) => {\n const i18n = useI18n()\n const distributionLists = data.get('lists') || []\n\n const handleRemove = list => {\n const lists = data.get('lists').filter(l => l.get('id') !== list.get('id'))\n\n onChange({ key: 'lists', value: lists })\n }\n\n const renderDistributionListRow = list => (\n \n \n !t.isDark && t.palette.grey[800]\n }}\n />\n \n {list.get('name')}\n {`${list.get('contacts').size} ${i18n.get('contacts')}`}\n {distributionLists.size > 2 && (\n t.spacing(2) }}>\n handleRemove(list)}\n >\n \n \n \n )}\n \n )\n\n return (\n <>\n \n \n \n \n {distributionLists.map(list => renderDistributionListRow(list))}\n \n \n \n \n )\n}\n\nSelectedDistributionListsTable.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired,\n onChange: PropTypes.func.isRequired\n}\n\nexport default SelectedDistributionListsTable\n","import { connect } from 'react-redux'\n\nimport SelectedDistributionListsTable\n from 'components/contact_management/selected_distribution_lists_bar/selected_distribution_lists_table/SelectedDistributionListsTable'\n\nimport { getCmSelectedLists } from 'selectors'\n\nimport {\n setMergedDistributionListData as onChange\n} from 'actions/contact_management'\n\nconst mapStateToProps = state => ({\n data: getCmSelectedLists(state)\n})\n\nexport default connect(mapStateToProps, {\n onChange\n})(SelectedDistributionListsTable)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\nimport {\n Box,\n Typography,\n TextField,\n FormGroup,\n Checkbox,\n FormControlLabel,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n useMediaQuery\n} from '@mui/material'\nimport { red } from '@mui/material/colors'\nimport { useTheme } from '@mui/material/styles'\nimport CloseIcon from '@mui/icons-material/Close'\nimport WarningIcon from '@mui/icons-material/Warning'\n\nimport { Button, RaisedPrimaryButton, IconButton } from 'containers/themed'\n\nimport SelectedDistributionListsTable from 'containers/contact_management/SelectedDistributionListsTable'\n\nconst DistributionListMergeDialog = ({ data, open, loading, onChange, onClose, onMerge }) => {\n const theme = useTheme()\n const i18n = useI18n()\n const fullScreen = useMediaQuery(theme.breakpoints.down('md'))\n const lists = data.get('lists')\n const uniqueContactIds = lists.map(l => l.get('contacts').map(c => c.get('id'))).flatten().toSet()\n\n // TO DO: Change the hardcoded limit to reflect the actual limit determined by the user's plan.\n const limit = 5000\n const limitExceeded = uniqueContactIds.size > limit\n\n const handleClose = () => onClose()\n\n const handleTextFieldChange = e => {\n onChange({ key: 'name', value: e.target.value })\n }\n\n const handleCheckboxChange = e => {\n onChange({ key: 'deleteMergedLists', value: e.target.checked })\n }\n\n const handleMergeClick = () => {\n onMerge()\n }\n\n return (\n \n t.spacing(2),\n color: t => t.palette.grey[800]\n }}\n >\n {i18n.get('merge_distribution_lists')}\n !t.isDark && t.palette.grey[800]\n }}\n >\n \n \n \n\n \n \n {i18n.get('merging_lists_message', { n: lists.size, c: uniqueContactIds.size })}\n \n {limitExceeded && (\n
    \n \n \n {i18n.get('distribution_list_limit_warning', { n: limit })}\n \n
    \n )}\n \n \n \n \n )}\n label={i18n.get('delete_merged_distribution_lists')}\n />\n \n \n\n \n \n \n {i18n.get('close')}\n \n \n {i18n.get('merge')}\n \n \n \n \n )\n}\n\nDistributionListMergeDialog.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired,\n open: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n\n onChange: PropTypes.func.isRequired,\n onClose: PropTypes.func.isRequired,\n onMerge: PropTypes.func.isRequired\n}\n\nexport default DistributionListMergeDialog\n","import { connect } from 'react-redux'\n\nimport DistributionListMergeDialog from 'components/contact_management/distribution_list_merge_dialog/DistributionListMergeDialog'\n\nimport {\n getCmDistributionListMergeDialogOpen,\n getCmSelectedLists,\n getCmRequestRunning\n} from 'selectors'\n\nimport {\n setMergedDistributionListData as onChange,\n closeDistributionListMergeDialog as onClose,\n mergeDistributionListsStart as onMerge\n} from 'actions/contact_management'\n\nconst mapStateToProps = state => ({\n data: getCmSelectedLists(state),\n open: getCmDistributionListMergeDialogOpen(state),\n loading: getCmRequestRunning(state)\n})\n\nexport default connect(mapStateToProps, {\n onChange,\n onClose,\n onMerge\n})(DistributionListMergeDialog)\n","import { connect } from 'react-redux'\nimport { List } from 'immutable'\n\nimport ActiveFilterList from 'components/active_filter_list'\nimport {\n getCmActiveFilters, getCmFiltersCollapsed\n} from 'selectors'\nimport { toggleActiveFilters } from 'actions/contact_management'\n\nconst mapStateToProps = state => ({\n activeFilters: getCmActiveFilters(state),\n activeBooleanFilters: List(),\n filterCount: getCmActiveFilters(state).size,\n collapsed: getCmFiltersCollapsed(state),\n activeFilterType: 'contactManagement'\n})\n\nexport default connect(\n mapStateToProps,\n {\n onCollapseClick: toggleActiveFilters\n }\n)(ActiveFilterList)\n","/* eslint-disable max-len, react/no-unescaped-entities */\nimport React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { List as ImmutableList, Map as ImmutableMap } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Autocomplete,\n Dialog,\n DialogTitle,\n DialogContent,\n DialogActions,\n Typography,\n CircularProgress,\n Divider,\n Checkbox,\n FormControlLabel,\n TextField\n} from '@mui/material'\n\nimport BackupIcon from '@mui/icons-material/Backup'\nimport InfoIcon from '@mui/icons-material/Info'\n\nimport { BrowseButton, Button } from 'containers/themed'\nimport { mapToOptions } from 'utils/autocomplete'\n\nconst useStyles = makeStyles()(theme => ({\n button: {\n width: '100px'\n },\n browseButton: {\n marginLeft: '0.5em'\n },\n actions: {\n marginBottom: '0.5em',\n marginRight: '0.5em'\n },\n content: {\n padding: '20px',\n fontSize: '11pt',\n fontWeight: '400',\n color: !theme.isDark && '#757575',\n marginLeft: '0.2em'\n },\n title: {\n fontSize: '1.5rem',\n color: !theme.isDark && '#404040'\n },\n hint: {\n fontSize: '10pt',\n color: !theme.isDark && '#757575'\n },\n circularProgress: {\n width: '100px',\n display: 'flex',\n justifyContent: 'center',\n marginBottom: '-0.5em'\n },\n newList: {\n marginTop: '1em',\n marginBottom: '1em'\n },\n autocomplete: {\n marginTop: '1em'\n }\n}))\n\nconst UploadContacts = ({\n open,\n loading,\n autoCreateDistributionList,\n autoAddToExistingList,\n newListName,\n lists,\n user,\n onClose,\n onFileUpload,\n onHelpClick,\n onNewListCheckboxClick,\n onAddToListCheckboxClick,\n onChangeFormData,\n onSelectList\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const options = mapToOptions(lists)\n const [selectedList, setSelectedList] = useState(null)\n\n const isFormValid = () => {\n if (autoCreateDistributionList && newListName === '') {\n return false\n }\n\n if (autoAddToExistingList && !selectedList) {\n return false\n }\n\n return true\n }\n\n const handleClose = () => {\n setSelectedList(null)\n onClose()\n }\n\n const handleFileUpload = event => {\n onFileUpload(event.target.files[0])\n }\n\n const handleNewListCheckboxChange = () => onNewListCheckboxClick(!autoCreateDistributionList)\n const handleAddToListCheckboxChange = () => onAddToListCheckboxClick(!autoAddToExistingList)\n\n const handleNameChange = e => {\n onChangeFormData({ key: 'name', value: e.target.value })\n }\n\n const handleAutocompleteChange = (_event, option) => {\n if (option) {\n setSelectedList(option)\n onSelectList(option.value)\n } else {\n setSelectedList(null)\n onSelectList(null)\n }\n }\n\n const userLanguage = i18n.get(`language_${user.get('languageShort')}`)\n\n return (\n \n \n \n {i18n.get('import')} {i18n.get('contacts')}\n \n \n \n \n \n
    \n \n )}\n label={i18n.get('create_distribution_list')}\n />\n {autoCreateDistributionList\n && (\n \n )}\n
    \n
    \n \n )}\n label={i18n.get('add_to_existing_distribution_list')}\n />\n {autoAddToExistingList\n && (\n option.label}\n required\n onChange={handleAutocompleteChange}\n options={options}\n value={selectedList}\n isOptionEqualToValue={(option, value) => option.value === value.value}\n renderInput={params => (\n \n )}\n />\n )}\n
    \n
    \n
    \n \n {i18n.get('upload_contacts_language_hint_1')}: {userLanguage}
    \n {i18n.get('upload_contacts_language_hint_2')}\n
    \n
    \n
    \n \n }\n disabled={loading}\n onClick={onHelpClick}\n variant=\"contained\"\n >\n {i18n.get('help')}\n \n \n {i18n.get('cancel')}\n \n {loading ? (\n
    \n \n
    \n ) : (\n }\n variant=\"contained\"\n color=\"primary\"\n >\n {i18n.get('upload')}\n \n )}\n
    \n \n )\n}\n\nUploadContacts.propTypes = {\n open: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n autoCreateDistributionList: PropTypes.bool.isRequired,\n autoAddToExistingList: PropTypes.bool.isRequired,\n newListName: PropTypes.string.isRequired,\n lists: PropTypes.instanceOf(ImmutableList).isRequired,\n user: PropTypes.instanceOf(ImmutableMap).isRequired,\n\n onClose: PropTypes.func.isRequired,\n onFileUpload: PropTypes.func.isRequired,\n onHelpClick: PropTypes.func.isRequired,\n onNewListCheckboxClick: PropTypes.func.isRequired,\n onAddToListCheckboxClick: PropTypes.func.isRequired,\n onChangeFormData: PropTypes.func.isRequired,\n onSelectList: PropTypes.func.isRequired\n}\n\nexport default UploadContacts\n","import { connect } from 'react-redux'\n\nimport UploadContacts from 'components/contact_management/contacts/upload_contacts/UploadContacts'\n\nimport {\n closeContactsUploadDialog,\n uploadContactsStart,\n openImportHelpDialog,\n setAutoCreateDistributionList,\n setAutoAddToExistingList,\n updateDistributionListFormData as onChangeFormData,\n setDistributionList\n} from 'actions/contact_management'\n\nimport {\n getCmContactsUploadDialogOpen,\n getCmRequestRunning,\n getCmAutoCreateDistributionList,\n getCmAutoAddToExistingList,\n getCmListData,\n getCmDistributionLists,\n getUser\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getCmContactsUploadDialogOpen(state),\n loading: getCmRequestRunning(state),\n autoCreateDistributionList: getCmAutoCreateDistributionList(state),\n autoAddToExistingList: getCmAutoAddToExistingList(state),\n newListName: getCmListData(state).get('name'),\n lists: getCmDistributionLists(state),\n user: getUser(state)\n})\n\nexport default connect(mapStateToProps, {\n onClose: closeContactsUploadDialog,\n onFileUpload: uploadContactsStart,\n onHelpClick: openImportHelpDialog,\n onNewListCheckboxClick: setAutoCreateDistributionList,\n onAddToListCheckboxClick: setAutoAddToExistingList,\n onChangeFormData,\n onSelectList: setDistributionList\n})(UploadContacts)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Dialog, DialogTitle, DialogActions, Button } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n button: {\n width: '100px'\n },\n title: {\n color: !theme.isDark && '#404040'\n }\n}))\n\nconst EmailExistingDialog = ({ open, onClose }) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n return (\n \n {i18n.get('email_existing')}\n \n {i18n.get('back_title')}\n \n \n \n )\n}\n\nEmailExistingDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired\n}\n\nexport default EmailExistingDialog\n","import { connect } from 'react-redux'\n\nimport EmailExistingDialog from 'components/contact_management/contact_edit_dialog/email_existing_dialog/EmailExistingDialog'\n\nimport { getCmEmailExistingDialogOpen } from 'selectors'\nimport { closeEmailExistingDialog } from 'actions/contact_management'\n\nconst mapStateToProps = state => ({\n open: getCmEmailExistingDialogOpen(state)\n})\n\nexport default connect(mapStateToProps, {\n onClose: closeEmailExistingDialog\n})(EmailExistingDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Dialog,\n DialogTitle,\n DialogContent,\n DialogActions,\n Divider,\n Typography\n} from '@mui/material'\n\nimport { green, amber, blue } from '@mui/material/colors'\n\nimport CheckCircleIcon from '@mui/icons-material/CheckCircle'\nimport WarningIcon from '@mui/icons-material/Warning'\nimport InfoIcon from '@mui/icons-material/Info'\n\nimport { Button } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n button: {\n width: '100px'\n },\n failedContactsContainer: {\n display: 'flex',\n flexDirection: 'column',\n gap: '25px',\n marginTop: '1.5em'\n },\n excelButton: {\n width: '100px',\n marginLeft: 50\n },\n title: {\n display: 'flex',\n justifyContent: 'space-between',\n color: !theme.isDark && '#404040'\n },\n successRow: {\n display: 'flex',\n alignItems: 'center',\n gap: '10px'\n },\n failRow: {\n display: 'flex',\n alignItems: 'center',\n gap: '10px'\n },\n infoRow: {\n display: 'flex',\n alignItems: 'center',\n gap: '10px'\n },\n contact: {\n fontSize: 14,\n display: 'flex',\n flexDirection: 'column',\n marginTop: '-0.5em',\n marginBottom: '-0.5em'\n },\n checkIcon: {\n color: green[400]\n },\n warningIcon: {\n color: amber[400]\n },\n infoIcon: {\n color: blue[400]\n\n },\n divider: {\n margin: '1.5em -1.5em 1.5em -1.5em'\n }\n}))\n\nconst UploadResultDialog = ({\n open,\n data,\n requestRunning,\n createDistributionList,\n addToExistingDistributionList,\n onClose,\n onExcelDownload\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const totalUploaded = data.get('total_uploaded')\n const totalFailed = data.get('total_failed')\n\n return (\n \n \n {i18n.get('import_completed')}\n {totalFailed > 0 && (\n onExcelDownload({ contacts: data.get('failed'), sheetName: 'Failed Contacts' })}\n >\n {i18n.get('excel')}\n \n )}\n \n \n \n {totalUploaded > 0 && (\n <>\n
    \n \n \n {`${totalUploaded} ${totalUploaded === 1\n ? i18n.get('contact')\n : i18n.get('contacts')\n } ${i18n.get('successfully_uploaded')}`}\n \n
    \n \n )}\n {totalFailed > 0 && (\n <>\n {totalUploaded > 0 && }\n
    \n \n \n {`${totalFailed} ${totalFailed === 1\n ? `${i18n.get('contact')} ${i18n.get('has_not_been_imported')}`\n : `${i18n.get('contacts')} ${i18n.get('have_not_been_imported')}`\n }, ${i18n.get('see_information_below').toLowerCase()}.`}\n \n
    \n {(createDistributionList || addToExistingDistributionList)\n && (\n
    \n \n \n {`${i18n.get('ccd_contacts_import_already_existing_info')}.`}\n \n
    \n )}\n
    \n {data.get('failed').map((c, index) => (\n \n {`${c.get('first_name')} ${c.get('last_name')} (${c.get(\n 'mail'\n )}) `}\n \n {c.get('error')}\n \n
    \n ))}\n \n \n )}\n
    \n \n \n {i18n.get('close')}\n \n \n \n )\n}\n\nUploadResultDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n data: PropTypes.object.isRequired,\n requestRunning: PropTypes.bool.isRequired,\n createDistributionList: PropTypes.bool.isRequired,\n addToExistingDistributionList: PropTypes.bool.isRequired,\n\n onClose: PropTypes.func.isRequired,\n onExcelDownload: PropTypes.func.isRequired\n}\n\nexport default UploadResultDialog\n","import { connect } from 'react-redux'\n\nimport UploadResultDialog from 'components/contact_management/contacts/upload_contacts/upload_result_dialog/UploadResultDialog'\n\nimport {\n closeUploadResultDialog,\n downloadContactsExcelStart\n} from 'actions/contact_management'\n\nimport {\n getCmUploadResultDialogOpen,\n getCmUploadResult,\n getCmRequestRunning,\n getCmAutoCreateDistributionList,\n getCmAutoAddToExistingList\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getCmUploadResultDialogOpen(state),\n data: getCmUploadResult(state),\n requestRunning: getCmRequestRunning(state),\n createDistributionList: getCmAutoCreateDistributionList(state),\n addToExistingDistributionList: getCmAutoAddToExistingList(state)\n})\n\nexport default connect(mapStateToProps, {\n onClose: closeUploadResultDialog,\n onExcelDownload: downloadContactsExcelStart\n})(UploadResultDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport ClearAllIcon from '@mui/icons-material/ClearAll'\nimport DeleteOutlineIcon from '@mui/icons-material/DeleteOutline'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Button, IconButton } from 'containers/themed'\n\nimport useDevice from 'hooks/useDevice'\n\nimport { Snackbar, SnackbarContent } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n spacer: {\n flex: 1\n },\n snackbar: {\n bottom: 5,\n zIndex: 200,\n marginLeft: '1em'\n },\n snackbarContent: {\n minHeight: 60,\n minWidth: '95vw',\n maxWidth: '95vw',\n [theme.breakpoints.only('xs')]: {\n minWidth: '100vw',\n maxWidth: '100vw'\n },\n backgroundColor: theme.palette.secondary.main\n },\n action: {\n width: '100%',\n marginLeft: 0\n },\n button: {\n marginRight: '1em'\n }\n}))\n\nexport default function SelectedContactsBar({ dialogOpen, onClear, contacts, isDistListsLocked, onClick, onDelete }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const device = useDevice()\n\n const handleDelete = () => {\n onDelete(contacts)\n }\n\n const snackbarContent = (\n <>\n {contacts.size} {i18n.get('contacts')} {i18n.get('selected')}\n
    \n {device.get('gt-xs') ? (\n <>\n }\n color=\"inherit\"\n >\n {i18n.get('delete')}\n \n }\n color=\"inherit\"\n >\n {i18n.get('clear')}\n \n \n {i18n.get('add_to_distribution_list')}\n \n \n ) : (\n <>\n \n \n \n \n {i18n.get('add')}\n \n \n )}\n \n )\n\n return (\n 0 && !dialogOpen}\n classes={{ root: classes.snackbar }}\n >\n \n \n )\n}\n\nSelectedContactsBar.propTypes = {\n contacts: PropTypes.object.isRequired,\n dialogOpen: PropTypes.bool.isRequired,\n isDistListsLocked: PropTypes.bool.isRequired,\n\n onClear: PropTypes.func.isRequired,\n onClick: PropTypes.func.isRequired,\n onDelete: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport SelectedContactsBar from 'components/contact_management/selected_contacts_bar'\nimport { clearListData, openDistributionListCreateDialog, openContactDeleteDialog } from 'actions/contact_management'\nimport { getCmListData, getCmContactDialogsOpen, getCDeskIsDistributionListsLocked } from 'selectors'\n\nconst mapStateToProps = state => ({\n contacts: getCmListData(state).get('contacts'),\n dialogOpen: getCmContactDialogsOpen(state),\n isDistListsLocked: getCDeskIsDistributionListsLocked(state)\n})\n\nexport default connect(mapStateToProps, {\n onClear: clearListData,\n onClick: openDistributionListCreateDialog,\n onDelete: openContactDeleteDialog\n})(SelectedContactsBar)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport ClearAllIcon from '@mui/icons-material/ClearAll'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Button, IconButton } from 'containers/themed'\n\nimport useDevice from 'hooks/useDevice'\n\nimport { Snackbar, SnackbarContent } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n spacer: {\n flex: 1\n },\n snackbar: {\n bottom: 5,\n zIndex: 200,\n marginLeft: '1em'\n },\n elevatedSnackbar: {\n bottom: 70,\n zIndex: 200,\n marginLeft: '1em'\n },\n snackbarContent: {\n minHeight: 60,\n minWidth: '95vw',\n maxWidth: '95vw',\n [theme.breakpoints.only('xs')]: {\n minWidth: '100vw',\n maxWidth: '100vw'\n },\n backgroundColor: theme.palette.secondary.main\n },\n action: {\n width: '100%',\n marginLeft: 0\n },\n button: {\n marginRight: '1em'\n }\n}))\n\nexport default function SelectedDistributionListsBar({ lists, contactsBarOpen, onClick, onClear }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const device = useDevice()\n\n const snackbarContent = (\n <>\n {lists.size} {i18n.get('distribution_lists')} {i18n.get('selected')}\n
    \n {device.get('gt-xs') ? (\n <>\n }\n color=\"inherit\"\n >\n {i18n.get('clear')}\n \n \n {i18n.get('merge_distribution_lists')}\n \n \n ) : (\n <>\n \n \n \n \n {i18n.get('merge')}\n \n \n )}\n \n )\n\n return (\n 0}\n classes={{ root: contactsBarOpen ? classes.elevatedSnackbar : classes.snackbar }}\n >\n \n \n )\n}\n\nSelectedDistributionListsBar.propTypes = {\n lists: PropTypes.object.isRequired,\n contactsBarOpen: PropTypes.bool.isRequired,\n onClick: PropTypes.func.isRequired,\n onClear: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport SelectedDistributionListsBar from 'components/contact_management/selected_distribution_lists_bar/SelectedDistributionListsBar'\nimport { clearSelectedLists, openDistributionListMergeDialog } from 'actions/contact_management'\nimport { getCmSelectedLists, getCmListData } from 'selectors'\n\nconst mapStateToProps = state => ({\n lists: getCmSelectedLists(state).get('lists'),\n contactsBarOpen: getCmListData(state).get('contacts').size > 0\n})\n\nexport default connect(mapStateToProps, {\n onClick: openDistributionListMergeDialog,\n onClear: clearSelectedLists\n})(SelectedDistributionListsBar)\n","import React, { useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map as ImmutableMap } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { MenuItem, Box } from '@mui/material'\nimport AddOutlinedIcon from '@mui/icons-material/AddOutlined'\n\nimport { Menu, RaisedPrimaryButton } from 'containers/themed'\n\nimport AppBar from 'containers/contact_management/AppBar'\nimport Contacts from 'containers/contact_management/Contacts'\nimport DistributionLists from 'containers/contact_management/DistributionLists'\nimport ContactEditDialog from 'containers/contact_management/ContactEditDialog'\nimport ContactDeleteDialog from 'containers/contact_management/ContactDeleteDialog'\nimport TagsDialog from 'containers/contact_management/TagsDialog'\nimport DistributionListCreateDialog from 'containers/contact_management/DistributionListCreateDialog'\nimport DistributionListEditDialog from 'containers/contact_management/DistributionListEditDialog'\nimport DistributionListViewDialog from 'containers/contact_management/DistributionListViewDialog'\nimport DistributionListMergeDialog from 'containers/contact_management/DistributionListMergeDialog'\nimport ContactDetailsDialog from 'containers/contact_management/ContactDetailsDialog'\nimport ActiveFilterList from 'containers/contact_management/ActiveFilterList'\nimport UploadContacts from 'containers/contact_management/UploadContacts'\nimport EmailExistingDialog from 'containers/contact_management/EmailExistingDialog'\nimport UploadResultDialog from 'containers/contact_management/UploadResultDialog'\nimport SelectedContactsBar from 'containers/contact_management/SelectedContactsBar'\nimport SelectedDistributionListsBar from 'containers/contact_management/SelectedDistributionListsBar'\n\nimport OldContentEditDialog from 'containers/content_desk/ContentEditDialog'\n\nimport CalendarDialog from 'containers/content_desk_new/CalendarDialog'\nimport CampaignForm from 'containers/content_desk_new/campaigns/CampaignForm'\nimport ContentNewDialog from 'containers/content_desk_new/ContentNewDialog'\nimport ContentEditDialog from 'containers/content_desk_new/contents/content_edit_dialog/ContentEditDialog'\nimport ContentView from 'containers/content_desk_new/contents/content_view/ContentView'\n\nimport CenterMessage from 'containers/CenterMessage'\n\nconst useStyles = makeStyles()({\n centerMessageContainer: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '85vh'\n },\n content: {\n maxWidth: 800\n },\n link: {\n display: 'flex',\n alignItems: 'center',\n\n '& > span:first-of-type': {\n marginRight: 5\n }\n }\n})\n\nexport default function ContactManagement({\n hasContentDeskModule,\n hasDomain,\n onEdit,\n onMount,\n onImportClick,\n onCreateListClick\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n if (!hasDomain) {\n return (\n <>\n \n
    \n \n
    \n \n )\n }\n\n const handleEditClick = () => onEdit(ImmutableMap())\n const handeCreateListClick = () => onCreateListClick()\n\n useEffect(() => {\n onMount()\n }, [])\n\n const contentDeskComponents = hasContentDeskModule ? (\n <>\n \n \n \n \n \n \n \n ) : null\n\n return (\n <>\n \n \n \n \n }>\n {i18n.get('new')}\n \n )}\n >\n \n {i18n.get('add_contact')}\n \n \n {i18n.get('create_distribution_list')}\n \n \n {i18n.get('import_list')}\n \n \n \n \n\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n {contentDeskComponents}\n \n )\n}\n\nContactManagement.propTypes = {\n hasContentDeskModule: PropTypes.bool.isRequired,\n hasDomain: PropTypes.bool.isRequired,\n\n onEdit: PropTypes.func.isRequired,\n onMount: PropTypes.func.isRequired,\n onImportClick: PropTypes.func.isRequired,\n onCreateListClick: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport { Capabilities } from 'static/constants'\n\nimport ContactManagement from 'components/contact_management'\n\nimport {\n hasCapability,\n getCDeskConfig\n} from 'selectors'\n\nimport {\n openContactEditDialog,\n fetchAll as onMount,\n openContactsUploadDialog as onImportClick,\n openDistributionListCreateDialog as onCreateListClick\n} from 'actions/contact_management'\n\nconst mapStateToProps = state => ({\n hasContentDeskModule: !!hasCapability(state, Capabilities.HAS_CONTENT_DESK_MODULE),\n hasDomain: !!getCDeskConfig(state).get('domain') || false\n})\n\nexport default connect(\n mapStateToProps,\n {\n onEdit: contact => openContactEditDialog({ isEditMode: false, contact }),\n onMount,\n onImportClick,\n onCreateListClick\n }\n)(ContactManagement)\n","import React from 'react'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { StaggeredList, StaggeredListItem } from 'components/staggered_list'\n\nimport NotificationsButton from 'containers/notifications/NotificationsButton'\n\nconst useStyles = makeStyles()({\n actionsWrapper: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center'\n }\n})\n\nexport default function Actions() {\n const { classes } = useStyles()\n\n const actions = []\n\n actions.push(\n \n )\n\n return (\n
    \n \n
    \n {actions.map((action, index) => (\n \n {action}\n \n ))}\n
    \n
    \n
    \n )\n}\n","import { connect } from 'react-redux'\n\nimport Actions from 'components/anewstip/actions'\n\nconst mapStateToProps = _state => ({\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(Actions)\n","import { connect } from 'react-redux'\n\nimport AppBar from 'components/anewstip/app_bar'\n\nconst mapStateToProps = _state => ({\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(AppBar)\n","import React from 'react'\nimport useDevice from 'hooks/useDevice'\nimport useI18n from 'hooks/useI18n'\n\nimport ThemedAppBar from 'containers/AppBar'\nimport Actions from 'containers/anewstip/Actions'\n\nimport TransitionComponent from 'components/transition_component'\n\nexport default function AppBar() {\n const i18n = useI18n()\n const device = useDevice()\n\n const title = device.get('gt-md') ? {i18n.get('journalist_search')} : undefined\n\n return (\n
    \n \n }\n />\n \n
    \n )\n}\n","import React from 'react'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Typography,\n Tooltip\n} from '@mui/material'\n\nconst useStyles = makeStyles()({\n socialMediaContainer: {\n display: 'flex',\n gap: 10\n },\n blurredContainer: {\n filter: 'blur(6px)',\n WebkitFilter: 'blur(6px)',\n userSelect: 'none'\n }\n})\nconst BlurredSocialHandles = () => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n return (\n
    \n \n {`${i18n.get('social_media')}: `}\n \n \n
    \n Social media handles hidden!\n
    \n \n
    \n )\n}\nexport default BlurredSocialHandles\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map, List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Typography,\n Badge,\n Avatar,\n CircularProgress,\n Tooltip\n} from '@mui/material'\n\nimport {\n Place as PlaceIcon,\n Insights as InsightsIcon,\n Add as AddIcon,\n Check as CheckIcon,\n ReadMore as ReadMoreIcon,\n Info as InfoIcon\n} from '@mui/icons-material'\n\nimport { IconButton, Button } from 'containers/themed'\nimport BlurredSocialHandles from 'components/anewstip/results/blurred_social_handles'\n\nconst useStyles = makeStyles()(theme => ({\n journalistContainer: {\n width: '100%',\n display: 'flex',\n justifyContent: 'space-evenly'\n },\n journalistInfoWrapper: {\n width: '50%',\n display: 'flex',\n flexDirection: 'column',\n paddingLeft: '15px'\n },\n journalistAddress: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: '5px'\n },\n journalistActions: {\n display: 'flex',\n flexDirection: 'column',\n gap: '20px'\n },\n statsLabel: {\n background: '#e0e0e0',\n display: 'flex',\n alignItems: 'center',\n gap: '5px',\n padding: '0px 5px 0px 5px',\n fontSize: '10px',\n borderRadius: '5px'\n },\n twitter: {\n marginTop: '5px',\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center'\n },\n avatarContainer: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center'\n },\n journalistNameWrapper: {\n display: 'flex',\n alignItems: 'center',\n gap: '5px'\n },\n drillDownButton: {\n color: theme.palette.primary.main,\n '&:hover': {\n color: theme.palette.primary.main\n }\n },\n avatarLoaderWrapper: {\n width: 100,\n height: 100,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n },\n breakPoint: {\n marginLeft: '5px',\n marginRight: '5px'\n },\n influenceScoreWrapper: {\n display: 'flex',\n alignItems: 'center',\n gap: '5px'\n }\n}))\n\nconst Journalist = ({\n journalist,\n importResult,\n requestRunning,\n onAddClick,\n onAddToDistributionListClick,\n drillDownEntity,\n drillDown,\n isLimitedFunctionality,\n isDistListsLocked,\n openDrillDownDialog,\n setDrillDownEntity,\n onDrillDownClick,\n setDrillDownFiltersForm\n}) => {\n const entity = 'journalist'\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const avatar = journalist.get('avatar') || ''\n const [avatarLoaded, setAvatarLoaded] = useState(avatar === '')\n\n const id = journalist.get('id')\n const name = journalist.get('name')\n const title = journalist.get('title')\n const city = journalist.get('city')\n const state = journalist.get('state')\n const country = journalist.get('country')\n const topics = journalist.get('topic')\n const influenceScore = journalist.get('influenceScore')\n const outlet = journalist.get('outlet')\n const languages = journalist.get('lang')\n const identityId = journalist.get('identityId')\n const personId = journalist.get('personId')\n const topicIds = journalist.get('topicIds')\n const contactId = journalist.get('contactId')\n\n const isImported = journalist.get('alreadyImported')\n || (importResult || List()).map(el => el.getIn(['contactImported', 'externalId'])).includes(journalist.get('id'))\n\n const handleOnAvatarLoad = () => {\n setAvatarLoaded(true)\n }\n\n const handleOnAvatarError = () => {\n setAvatarLoaded(true)\n }\n\n const handleDrillDown = () => {\n setDrillDownEntity(entity)\n setDrillDownFiltersForm({ key: 'drillDownEntityId', value: id })\n onDrillDownClick({ entity, topics, name, personId, identityId, topicIds, contactId })\n openDrillDownDialog({ entity })\n }\n\n const stringAvatar = () => {\n const splitName = name.split(' ')\n\n return {\n children: `${splitName[0][0]}${splitName[1] !== undefined ? splitName[1][0] : ''}`\n }\n }\n\n const addToDistListButton = (\n onAddToDistributionListClick({\n id: journalist.get('id')\n })}\n >\n {i18n.get('add_to_distribution_list')}\n \n )\n\n return (\n <>\n
    \n
    \n {!avatarLoaded && avatar\n ? (\n
    \n \n
    \n\n ) : null}\n \n )}\n >\n \n \n
    \n
    \n
    \n {name}\n {(!drillDown || (drillDown && drillDownEntity === 'journalist')) && (\n \n \n \n \n \n )}\n
    \n {title}\n \n {city !== '' || state !== '' || country !== ''\n ? (\n \n \n {city !== '' ? `${city}, ` : null}\n {state !== '' ? `${state}, ` : null}\n {country}\n \n ) : null}\n {outlet && {i18n.get('outlet')}: {outlet}}\n \n {topics.size > 0\n ? `${topics.size > 1 ? i18n.get('themes')\n : i18n.get('themes')}: ${topics.map(t => t).join(', ')}` : null}\n \n \n {languages.size > 0\n ? `${languages.size > 1 ? i18n.get('languages')\n : i18n.get('language')}: ${languages.map(l => l).join(', ')}` : null}\n \n
    \n
    \n onAddClick({ id: journalist.get('id') })}\n >\n {isImported ? : }\n {isImported ? i18n.get('contact_added') : i18n.get('add_to_contacts')}\n \n {isDistListsLocked ? (\n \n {addToDistListButton}\n \n ) : addToDistListButton}\n
    \n \n {i18n.get('influence_score').toUpperCase()} - {influenceScore || 0}\n \n \n \n \n
    \n
    \n
    \n \n )\n}\n\nJournalist.defaultProps = {\n drillDown: false,\n isLimitedFunctionality: true\n}\n\nJournalist.propTypes = {\n journalist: PropTypes.instanceOf(Map).isRequired,\n importResult: PropTypes.instanceOf(List).isRequired,\n requestRunning: PropTypes.bool.isRequired,\n isLimitedFunctionality: PropTypes.bool,\n isDistListsLocked: PropTypes.bool.isRequired,\n drillDownEntity: PropTypes.string,\n drillDown: PropTypes.bool,\n\n onAddClick: PropTypes.func.isRequired,\n onAddToDistributionListClick: PropTypes.func.isRequired,\n openDrillDownDialog: PropTypes.func.isRequired,\n setDrillDownEntity: PropTypes.func.isRequired,\n onDrillDownClick: PropTypes.func.isRequired,\n setDrillDownFiltersForm: PropTypes.func.isRequired\n}\n\nexport default Journalist\n","import { connect } from 'react-redux'\n\nimport Journalist from 'components/anewstip/results/journalists'\n\nimport {\n openDrillDownDialog,\n setDrillDownEntity,\n drillDownRequestStart as onDrillDownClick,\n setDrillDownFiltersForm\n} from 'actions/anewstip'\n\nconst mapStateToProps = (_state, {\n journalist,\n drillDownEntity,\n drillDown,\n isLimitedFunctionality,\n isDistListsLocked,\n onAddToDistributionListClick\n}) => ({\n journalist,\n drillDownEntity,\n drillDown,\n isLimitedFunctionality,\n isDistListsLocked,\n onAddToDistributionListClick\n})\n\nexport default connect(\n mapStateToProps,\n {\n openDrillDownDialog,\n setDrillDownEntity,\n onDrillDownClick,\n setDrillDownFiltersForm\n }\n)(Journalist)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Typography,\n Link,\n Badge,\n Avatar,\n CircularProgress,\n Tooltip\n} from '@mui/material'\n\nimport {\n Place as PlaceIcon,\n Insights as InsightsIcon,\n ReadMore as ReadMoreIcon,\n Info as InfoIcon\n} from '@mui/icons-material'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n outletContainer: {\n width: '100%',\n display: 'flex',\n justifyContent: 'space-evenly'\n },\n outletInfoWrapper: {\n width: '50%',\n display: 'flex',\n flexDirection: 'column',\n paddingLeft: '15px'\n },\n outletAddress: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: '5px'\n },\n outletActions: {\n display: 'flex',\n flexDirection: 'column',\n gap: '20px'\n },\n statsLabel: {\n background: '#e0e0e0',\n display: 'flex',\n alignItems: 'center',\n gap: '5px',\n padding: '0px 5px 0px 5px',\n fontSize: '10px',\n borderRadius: '5px'\n },\n twitter: {\n marginTop: '5px',\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center'\n },\n avatarContainer: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center'\n },\n outletNameWrapper: {\n display: 'flex',\n alignItems: 'center',\n gap: '5px'\n },\n drillDownButton: {\n color: theme.palette.primary.main,\n '&:hover': {\n color: theme.palette.primary.main\n }\n },\n avatarLoaderWrapper: {\n width: 100,\n height: 100,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n },\n breakPoint: {\n marginLeft: '5px',\n marginRight: '5px'\n },\n influenceScoreWrapper: {\n display: 'flex',\n alignItems: 'center',\n gap: '5px'\n }\n}))\n\nconst Outlet = ({ outlet, openDrillDownDialog, setDrillDownEntity, onDrillDownClick }) => {\n const entity = 'outlet'\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const avatar = outlet.get('avatar')\n const [avatarLoaded, setAvatarLoaded] = useState(avatar === '')\n\n const name = outlet.get('name')\n const site = outlet.get('site')\n const twitter = outlet.getIn(['twitter', 'screenName'])\n const email = outlet.get('email')\n const city = outlet.get('city')\n const state = outlet.get('state')\n const country = outlet.get('country')\n const topics = outlet.get('topic')\n const influenceScore = outlet.get('influenceScore')\n const outletId = outlet.get('id')\n const languages = outlet.get('lang')\n\n const handleOnAvatarLoad = () => {\n setAvatarLoaded(true)\n }\n\n const handleOnAvatarError = () => {\n setAvatarLoaded(true)\n }\n\n const handleDrillDown = () => {\n setDrillDownEntity(entity)\n onDrillDownClick({ entity, topics, outletId, name })\n openDrillDownDialog({ entity })\n }\n\n const stringAvatar = () => {\n const splitName = name.split(' ')\n\n return {\n children: `${splitName[0][0]}${splitName[1] !== undefined ? splitName[1][0] : ''}`\n }\n }\n\n return (\n
    \n
    \n {!avatarLoaded\n ? (\n
    \n \n
    \n ) : null}\n \n )}\n >\n \n \n
    \n
    \n
    \n {name}\n\n \n \n \n \n \n
    \n {site}\n \n
    \n {twitter ? `@${twitter}` : null}\n {twitter && email ? : null}\n {email || null}\n
    \n {city !== '' || state !== '' || country !== ''\n ? (\n \n \n {city !== '' ? `${city}, ` : null}\n {state !== '' ? `${state}, ` : null}\n {country}\n \n ) : null}\n \n {topics.size > 0\n ? `${topics.size > 1 ? i18n.get('topics')\n : i18n.get('topic')}: ${topics.map(t => t).join(', ')}` : null}\n \n \n {languages.size > 0\n ? `${languages.size > 1 ? i18n.get('languages')\n : i18n.get('language')}: ${languages.map(l => l).join(', ')}` : null}\n \n
    \n
    \n
    \n \n {i18n.get('influence_score').toUpperCase()} - {influenceScore || 0}\n \n \n \n \n
    \n
    \n
    \n )\n}\n\nOutlet.propTypes = {\n outlet: PropTypes.instanceOf(Map).isRequired,\n\n openDrillDownDialog: PropTypes.func.isRequired,\n setDrillDownEntity: PropTypes.func.isRequired,\n onDrillDownClick: PropTypes.func.isRequired\n}\n\nexport default Outlet\n","import { connect } from 'react-redux'\n\nimport Outlet from 'components/anewstip/results/outlet'\n\nimport {\n openDrillDownDialog,\n setDrillDownEntity,\n drillDownRequestStart as onDrillDownClick\n} from 'actions/anewstip'\n\nconst mapStateToProps = (_state, { outlet }) => ({\n outlet\n})\n\nexport default connect(\n mapStateToProps,\n {\n openDrillDownDialog,\n setDrillDownEntity,\n onDrillDownClick\n }\n)(Outlet)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport moment from 'moment-timezone'\nimport { Map, List } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Paper,\n Typography,\n Link,\n Badge,\n Avatar,\n CircularProgress,\n Tooltip\n} from '@mui/material'\n\nimport {\n Place as PlaceIcon,\n Insights as InsightsIcon,\n Add as AddIcon,\n Check as CheckIcon,\n ReadMore as ReadMoreIcon,\n Info as InfoIcon\n} from '@mui/icons-material'\n\nimport { RaisedPrimaryButton, IconButton, Button } from 'containers/themed'\nimport BlurredSocialHandles from 'components/anewstip/results/blurred_social_handles'\n\nconst useStyles = makeStyles()(theme => ({\n articleMainContainer: {\n display: 'flex',\n flexDirection: 'column'\n },\n articleInnerContainer: {\n display: 'flex',\n justifyContent: 'space-evenly',\n marginBottom: '20px'\n },\n articlesInfoWrapper: {\n width: '50%',\n display: 'flex',\n flexDirection: 'column',\n paddingLeft: '15px'\n },\n articlesAddress: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: '5px'\n },\n articlesActions: {\n display: 'flex',\n flexDirection: 'column',\n gap: '20px'\n },\n statsLabel: {\n background: '#e0e0e0',\n display: 'flex',\n alignItems: 'center',\n gap: '5px',\n padding: '0px 5px 0px 5px',\n fontSize: '10px',\n borderRadius: '5px'\n },\n relatedArticleContainer: {\n display: 'flex',\n flexDirection: 'row',\n background: '#e0e0e04f',\n padding: '20px 30px 20px 30px',\n gap: '20px'\n },\n relatedArticleInfoContainer: {\n width: '70%',\n display: 'flex',\n flexDirection: 'column',\n gap: '5px'\n },\n relatedArticleImageContainer: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n },\n imageLoaderWrapper: {\n width: 100,\n height: 100,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n },\n relatedArticleDateContainer: {\n width: '30%',\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'right'\n },\n articleImage: {\n display: 'flex',\n objectFit: 'cover'\n },\n imageFailedToLoad: {\n display: 'none'\n },\n twitter: {\n marginTop: '5px',\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center'\n },\n avatarContainer: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center'\n },\n articleNameWrapper: {\n display: 'flex',\n alignItems: 'center',\n gap: '5px'\n },\n drillDownButton: {\n color: theme.palette.primary.main,\n '&:hover': {\n color: theme.palette.primary.main\n }\n },\n avatarLoaderWrapper: {\n width: 100,\n height: 100,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n },\n breakPoint: {\n marginLeft: '5px',\n marginRight: '5px'\n },\n influenceScoreWrapper: {\n display: 'flex',\n alignItems: 'center',\n gap: '5px'\n }\n}))\n\nconst Article = ({\n article,\n importResult,\n requestRunning,\n onAddClick,\n hideButton,\n drillDown,\n isDistListsLocked,\n openDrillDownDialog,\n setDrillDownEntity,\n onDrillDownClick,\n onAddToDistributionListClick\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const [imageHidden, setImageHidden] = useState(true)\n const [imageLoaded, setImageLoaded] = useState(false)\n\n const avatar = article.get('avatar')\n const [avatarLoaded, setAvatarLoaded] = useState(avatar === '')\n\n const id = article.get('id')\n const name = article.get('name')\n const title = article.get('title')\n const city = article.get('city')\n const state = article.get('state')\n const country = article.get('country')\n const twitter = article.getIn(['twitter', 'screenName'])\n const email = article.get('email')\n const topics = article.get('topic')\n const influenceScore = article.get('influenceScore')\n const relatedArticles = article.get('relatedArticles')\n const relatedArticle = article.get('article')\n const contactType = article.get('contactType')\n const languages = article.get('lang')\n\n const isImported = (importResult || List()).map(el => el.getIn(['contactImported', 'externalId'])).includes(article.get('id'))\n\n let currentArticle\n\n if (relatedArticles && relatedArticles.size > 0) {\n currentArticle = relatedArticles.first()\n } else if (relatedArticle && relatedArticles.size > 0) {\n currentArticle = relatedArticle\n }\n\n const handleImageError = _event => {\n setImageLoaded(true)\n }\n\n const handleImageLoad = _event => {\n setImageHidden(false)\n setImageLoaded(true)\n }\n\n const handleOnAvatarLoad = () => {\n setAvatarLoaded(true)\n }\n\n const handleOnAvatarError = () => {\n setAvatarLoaded(true)\n }\n\n const handleDrillDown = () => {\n setDrillDownEntity(contactType)\n\n if (contactType === 'journalist') {\n onDrillDownClick({ entity: contactType, topics, name })\n }\n\n if (contactType === 'outlet') {\n onDrillDownClick({ entity: contactType, topics, outletId: id })\n }\n\n openDrillDownDialog({ entity: contactType })\n }\n\n const stringAvatar = () => {\n const splitName = name.split(' ')\n\n return {\n children: `${splitName[0][0]}${splitName[1] !== undefined ? splitName[1][0] : ''}`\n }\n }\n\n const addToDistListButton = (\n onAddToDistributionListClick({\n id\n })}\n >\n {i18n.get('add_to_distribution_list')}\n \n )\n\n return (\n \n
    \n {!drillDown && (\n <>\n
    \n
    \n {!avatarLoaded\n ? (\n
    \n \n
    \n ) : null}\n \n )}\n >\n \n \n
    \n
    \n
    \n {name}\n {!drillDown && (\n \n \n \n \n \n )}\n
    \n {title}\n {contactType === 'journalist'\n ? (\n \n ) : (\n
    \n asd\n {twitter ? `@${twitter}` : null}\n {twitter && email ? : null}\n {email || null} \n
    \n )}\n {city !== '' || state !== '' || country !== ''\n ? (\n \n \n {city !== '' ? `${city}, ` : null}\n {state !== '' ? `${state}, ` : null}\n {country}\n \n ) : null}\n \n {topics.size > 0\n ? `${topics.size > 1 ? i18n.get('topics')\n : i18n.get('topic')}: ${topics.map(t => t).join(', ')}` : null}\n \n \n {languages.size > 0\n ? `${languages.size > 1 ? i18n.get('languages')\n : i18n.get('language')}: ${languages.map(l => l).join(', ')}` : null}\n \n
    \n
    \n {!hideButton && (\n onAddClick(article.get('id'))}\n >\n {isImported ? : }\n {isImported ? i18n.get('contact_added') : i18n.get('add_to_contacts')}\n \n )}\n {contactType === 'journalist' && (\n isDistListsLocked ? (\n \n {addToDistListButton}\n \n ) : addToDistListButton\n )}\n
    \n \n {i18n.get('influence_score').toUpperCase()} - {influenceScore || 0}\n \n \n \n \n
    \n
    \n
    \n {i18n.get('related_article')}:\n \n )}\n {currentArticle ? (\n
    \n
    \n {!imageLoaded\n ? (\n
    \n \n
    \n ) : null}\n \n
    \n
    \n {currentArticle.get('title')}\n \n {currentArticle.get('url')}\n \n {currentArticle.get('contentSnippet')}\n
    \n
    \n {i18n.get('date')}: {moment(currentArticle.get('publishedAt')).format('L')}\n
    \n
    \n ) : null}\n
    \n \n\n )\n}\n\nArticle.defaultProps = {\n drillDown: false\n}\n\nArticle.propTypes = {\n article: PropTypes.instanceOf(Map).isRequired,\n importResult: PropTypes.instanceOf(List),\n requestRunning: PropTypes.bool,\n hideButton: PropTypes.bool.isRequired,\n drillDown: PropTypes.bool,\n isDistListsLocked: PropTypes.bool.isRequired,\n\n onAddClick: PropTypes.func,\n openDrillDownDialog: PropTypes.func.isRequired,\n setDrillDownEntity: PropTypes.func.isRequired,\n onDrillDownClick: PropTypes.func.isRequired,\n onAddToDistributionListClick: PropTypes.func.isRequired\n}\n\nexport default Article\n","import { connect } from 'react-redux'\n\nimport Article from 'components/anewstip/results/article'\n\nimport {\n openDrillDownDialog,\n setDrillDownEntity,\n drillDownRequestStart as onDrillDownClick\n} from 'actions/anewstip'\n\nconst mapStateToProps = (_state, { article, hideButton, drillDown, isDistListsLocked, onAddToDistributionListClick }) => ({\n article,\n hideButton,\n drillDown,\n isDistListsLocked,\n onAddToDistributionListClick\n})\n\nexport default connect(\n mapStateToProps,\n {\n openDrillDownDialog,\n setDrillDownEntity,\n onDrillDownClick\n }\n)(Article)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Pagination, Stack } from '@mui/material'\n\nimport {\n NavigateBefore as NavigateBeforeIcon,\n NavigateNext as NavigateNextIcon\n} from '@mui/icons-material'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(({\n pagination: {\n width: '100%',\n padding: '10px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n }\n}))\n\nconst ResultsPagination = ({\n resultsTab,\n results,\n resultsFilters,\n drillDownFilters,\n drillDownEntity,\n drillDown,\n isLimitedFunctionality,\n onResultsFilterChange,\n onDrillDownFilterChange,\n onSearchJournalists,\n onSearchOutlets,\n onSearchArticles,\n onDrillDownJournalists,\n onDrillDownOutlets,\n onDrillDownArticles\n}) => {\n const { classes } = useStyles()\n\n const filters = drillDown ? drillDownFilters.get(resultsTab) : resultsFilters.get(resultsTab)\n const onFilterChange = payload => (drillDown ? onDrillDownFilterChange(payload) : onResultsFilterChange(payload))\n\n const onSearch = () => {\n if (resultsTab === 'journalists') {\n onSearchJournalists()\n }\n\n if (resultsTab === 'outlets') {\n onSearchOutlets()\n }\n\n if (resultsTab === 'articles') {\n onSearchArticles()\n }\n }\n\n const onDrillDownSearch = () => {\n if (resultsTab === 'journalists') {\n onDrillDownJournalists(drillDownEntity)\n }\n\n if (resultsTab === 'outlets') {\n onDrillDownOutlets()\n }\n\n if (resultsTab === 'articles') {\n onDrillDownArticles()\n }\n }\n\n const handleOnSearch = () => (drillDown ? onDrillDownSearch() : onSearch())\n\n if (resultsTab === 'articles') {\n const cursor = results.get('cursor')\n const previousCursor = results.get('previousCursor')\n\n const handlePrevPage = () => {\n const pagination = filters.get('pagination').set('cursor', previousCursor)\n onFilterChange({ key: resultsTab, value: filters.set('pagination', pagination) })\n handleOnSearch()\n }\n\n const handleNextPage = () => {\n const pagination = filters.get('pagination').set('cursor', cursor)\n onFilterChange({ key: resultsTab, value: filters.set('pagination', pagination) })\n handleOnSearch()\n }\n\n return (\n
    \n \n \n \n \n \n \n \n \n
    \n )\n }\n\n if (!results.get('paginator')) {\n return null\n }\n\n const { currentPage, totalCount, pageSize } = results.get('paginator').toJS()\n\n const handlePageChange = (_event, page) => {\n const pagination = filters.get('pagination').set('page', page)\n onFilterChange({ key: resultsTab, value: filters.set('pagination', pagination) })\n handleOnSearch()\n }\n\n return (\n
    \n \n
    \n )\n}\n\nResultsPagination.defaultProps = {\n drillDown: false\n}\n\nResultsPagination.propTypes = {\n resultsTab: PropTypes.string.isRequired,\n results: PropTypes.instanceOf(Map).isRequired,\n resultsFilters: PropTypes.instanceOf(Map).isRequired,\n drillDownFilters: PropTypes.instanceOf(Map).isRequired,\n drillDownEntity: PropTypes.string,\n drillDown: PropTypes.bool,\n isLimitedFunctionality: PropTypes.bool.isRequired,\n\n onResultsFilterChange: PropTypes.func.isRequired,\n onDrillDownFilterChange: PropTypes.func.isRequired,\n onSearchJournalists: PropTypes.func.isRequired,\n onSearchOutlets: PropTypes.func.isRequired,\n onSearchArticles: PropTypes.func.isRequired,\n onDrillDownJournalists: PropTypes.func.isRequired,\n onDrillDownOutlets: PropTypes.func.isRequired,\n onDrillDownArticles: PropTypes.func.isRequired\n}\n\nexport default ResultsPagination\n","import { connect } from 'react-redux'\n\nimport Pagination from 'components/anewstip/results/pagination'\n\nimport {\n getAnewstipFiltersData,\n getAnewstipDrillDownFilters,\n getDrillDownEntity,\n getIsLimitedFunctionality\n} from 'selectors/anewstip'\n\nimport {\n setFiltersForm as onResultsFilterChange,\n setDrillDownFiltersForm as onDrillDownFilterChange,\n searchJournalistsStart as onSearchJournalists,\n searchOutletsStart as onSearchOutlets,\n searchArticlesStart as onSearchArticles,\n searchDrillDownJournalistsStart as onDrillDownJournalists,\n searchDrillDownOutletsStart as onDrillDownOutlets,\n searchDrillDownArticlesStart as onDrillDownArticles\n} from 'actions/anewstip'\n\nconst mapStateToProps = (state, ownProps) => ({\n resultsTab: ownProps.resultsTab,\n results: ownProps.results,\n resultsFilters: getAnewstipFiltersData(state),\n drillDownFilters: getAnewstipDrillDownFilters(state),\n drillDownEntity: getDrillDownEntity(state),\n isLimitedFunctionality: getIsLimitedFunctionality(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onResultsFilterChange,\n onDrillDownFilterChange,\n onSearchJournalists,\n onSearchOutlets,\n onSearchArticles,\n onDrillDownJournalists,\n onDrillDownOutlets,\n onDrillDownArticles\n }\n)(Pagination)\n","import React, { useState } from 'react'\nimport useI18n from 'hooks/useI18n'\nimport PropTypes from 'prop-types'\nimport { fromJS, Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport decamelize from 'decamelize'\n\nimport { MenuItem, Select, InputLabel, FormControl, Checkbox } from '@mui/material'\n\nimport { Cached } from '@mui/icons-material'\n\nimport { StaggeredListItem } from 'components/staggered_list'\n\nimport { Button } from 'containers/themed'\n\nconst useStyles = makeStyles()(({\n facetFilters: {\n maxWidth: '300px',\n display: 'flex',\n flexDirection: 'column',\n gap: '10px',\n marginBottom: '20px'\n },\n filterButtons: {\n width: '100%',\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: '10px'\n }\n}))\n\nconst Facets = ({\n filtersFormData,\n resultsTab,\n data,\n onFilterChange,\n onSearchJournalists,\n onSearchOutlets,\n onSearchArticles,\n resetPaginationFilter\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const [openedFacetValue, setOpenedFacetValue] = useState([])\n\n const categoryFilters = filtersFormData.get(resultsTab)\n const facetFilters = categoryFilters.get('facetFilters')\n const facets = data.getIn([resultsTab, 'facets'])\n\n const compareArrays = (a, b) => a.length === b.length && a.every((element, index) => element === b[index])\n\n const handleOnSearch = () => {\n if (resultsTab === 'journalists') {\n onSearchJournalists()\n }\n\n if (resultsTab === 'outlets') {\n onSearchOutlets()\n }\n\n if (resultsTab === 'articles') {\n onSearchArticles()\n }\n }\n\n const handleSelectChange = (event, facet) => {\n const { target: { value } } = event\n\n let newFacetsFilters\n\n if (value.length === 0) {\n newFacetsFilters = facetFilters.delete(facet)\n } else {\n newFacetsFilters = facetFilters.set(facet, fromJS(value))\n }\n\n onFilterChange({ key: resultsTab, value: categoryFilters.set('facetFilters', newFacetsFilters) })\n }\n\n const handleResetFacetFilters = () => {\n onFilterChange({ key: resultsTab, value: categoryFilters.set('facetFilters', fromJS({})) })\n handleOnSearch()\n }\n\n const handleApplyFacetFilters = (_event, currentFacetFilter) => {\n if (compareArrays(openedFacetValue, currentFacetFilter)) {\n return\n }\n\n resetPaginationFilter(resultsTab)\n handleOnSearch()\n }\n\n const handleOnFacetSelectOpen = (_event, currentFacetFilter) => {\n setOpenedFacetValue(currentFacetFilter)\n }\n\n const isChecked = (facet, name) => {\n const selectedFacets = facetFilters.get(facet)\n\n if (selectedFacets) {\n return selectedFacets.toJS().includes(name)\n }\n\n return false\n }\n\n const renderFacetOptions = facet => (\n facets.get(facet).map((f, index) => (\n \n \n {f.get('name')} ({f.get('count')})\n \n ))\n )\n\n const renderFacetSelect = (facet, index) => {\n const facetFilter = facetFilters.get(facet)\n\n return (\n \n \n {facet === 'title' ? i18n.get('job_title') : i18n.get(decamelize(facet))}\n selected.join(', ')}\n label={facet === 'title' ? i18n.get('job_title') : i18n.get(decamelize(facet))}\n onChange={event => handleSelectChange(event, facet)}\n onOpen={event => handleOnFacetSelectOpen(event, facetFilter ? facetFilter.toJS() : [])}\n onClose={event => handleApplyFacetFilters(event, facetFilter ? facetFilter.toJS() : [])}\n >\n {renderFacetOptions(facet)}\n \n \n \n )\n }\n\n if (!facets) {\n return (\n null\n )\n }\n\n return (\n <>\n
    \n {Object.keys(facets.toJS()).map((facet, index) => renderFacetSelect(facet, index))}\n
    \n \n
    \n }\n >\n {i18n.get('reset')}\n \n
    \n
    \n \n )\n}\n\nFacets.propTypes = {\n filtersFormData: PropTypes.instanceOf(Map).isRequired,\n resultsTab: PropTypes.string.isRequired,\n data: PropTypes.instanceOf(Map).isRequired,\n\n onFilterChange: PropTypes.func.isRequired,\n onSearchJournalists: PropTypes.func.isRequired,\n onSearchOutlets: PropTypes.func.isRequired,\n onSearchArticles: PropTypes.func.isRequired,\n resetPaginationFilter: PropTypes.func.isRequired\n}\n\nexport default Facets\n","import { connect } from 'react-redux'\n\nimport Facets from 'components/anewstip/results/facets'\n\nimport {\n getAnewstipFiltersData,\n getResultsTab,\n getAnewstipData\n} from 'selectors/anewstip'\n\nimport {\n setFiltersForm as onFilterChange,\n searchJournalistsStart as onSearchJournalists,\n searchOutletsStart as onSearchOutlets,\n searchArticlesStart as onSearchArticles,\n resetPaginationFilter\n} from 'actions/anewstip'\n\nconst mapStateToProps = state => ({\n filtersFormData: getAnewstipFiltersData(state),\n resultsTab: getResultsTab(state),\n data: getAnewstipData(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onFilterChange,\n onSearchJournalists,\n onSearchOutlets,\n onSearchArticles,\n resetPaginationFilter\n }\n)(Facets)\n","import React from 'react'\n// import PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Popover,\n Button\n} from '@mui/material'\n\nimport Facets from 'containers/anewstip/results/Facets'\nimport FilterListIcon from '@mui/icons-material/FilterList'\n\nconst useStyles = makeStyles()(({\n filterButton: {\n marginRight: '15px'\n },\n filterMenu: {\n padding: 20,\n minWidth: 340\n }\n}))\n\nconst FilterButton = () => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const [anchorEl, setAnchorEl] = React.useState(null)\n const filterMenuOpen = Boolean(anchorEl)\n\n const handleFilterClose = () => {\n setAnchorEl(null)\n }\n\n const renderFilterMenu = () => (\n \n
    \n \n
    \n \n )\n\n const handleFiltersClick = event => {\n setAnchorEl(event.currentTarget)\n }\n\n return (\n <>\n \n \n
    \n {i18n.get('filters')}\n
    \n \n {renderFilterMenu()}\n \n )\n}\n\nexport default FilterButton\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { fromJS, Map, List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Divider,\n Checkbox,\n FormGroup,\n FormControlLabel,\n CircularProgress,\n Typography,\n Tooltip\n} from '@mui/material'\n\nimport {\n Add as AddIcon,\n ArrowUpward as ArrowUpwardIcon,\n ArrowDownward as ArrowDownwardIcon\n} from '@mui/icons-material'\n\nimport { StaggeredListItem } from 'components/staggered_list'\n\nimport { Button, Select, IconButton } from 'containers/themed'\n\nimport Journalist from 'containers/anewstip/results/Journalist'\nimport Outlet from 'containers/anewstip/results/Outlet'\nimport Article from 'containers/anewstip/results/Article'\nimport Pagination from 'containers/anewstip/results/Pagination'\nimport FilterButton from '../filter_button'\n\nconst useStyles = makeStyles()(theme => ({\n flexWrapper: {\n display: 'flex',\n flexDirection: 'column',\n gap: '20px',\n height: '81vh'\n },\n resultsActions: {\n flex: '0 1 auto',\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n padding: '0 10px'\n },\n resultsMainContainer: {\n flex: '1 1 auto',\n overflow: 'auto',\n paddingRight: '10px'\n },\n pagination: {\n flex: '0 1 auto'\n },\n resultsInnerContainer: {\n marginBottom: '20px'\n },\n resultWrapper: {\n display: 'flex',\n flexDirection: 'row',\n paddingTop: '20px'\n },\n selectAndAddAll: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n width: '55%'\n },\n sorting: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: '5px',\n '& > div:first-of-type': {\n minWidth: 205,\n [theme.breakpoints.only('xs')]: {\n minWidth: '30vw'\n }\n },\n '& > *:last-child': {\n top: 10\n },\n paddingRight: '5px'\n },\n loaderContainer: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: '100%',\n height: '80vh'\n },\n noCheckbox: {\n marginLeft: '40px'\n },\n checkboxHidden: {\n display: 'hidden'\n }\n}))\n\nconst Result = ({\n resultsTab,\n results,\n filtersFormData,\n selectedResults,\n importResult,\n importRequestRunning,\n journalistsSearchRequestRunning,\n outletsSearchRequestRunning,\n articlesSearchRequestRunning,\n isLimitedFunctionality,\n isDistListsLocked,\n onFilterChange,\n onSearchJournalists,\n onSearchOutlets,\n onSearchArticles,\n setSelectedResults,\n onAddClick,\n onAddToDistributionListClick\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const sortBy = filtersFormData.getIn([resultsTab, 'sort', 'by'])\n const sortDirection = filtersFormData.getIn([resultsTab, 'sort', 'direction'])\n const entities = results.get('entities')\n const selected = selectedResults.get(resultsTab)\n const imported = importResult.map(el => el.getIn(['contactImported', 'externalId']))\n const filteredIds = entities.filter(el => !(imported.includes(el.get('id')) || el.get('alreadyImported'))).map(e => e.get('id'))\n\n const hideSelect = () => resultsTab !== 'journalists'\n const hideBtn = ent => resultsTab === 'outlets' || (resultsTab === 'articles' && ent.get('contactType') === 'outlet')\n\n const handleResultSelected = event => {\n const { target: { value } } = event\n\n if (selected.toJS().includes(value)) {\n const selectedUpdated = selected.toJS().filter(id => id !== value)\n setSelectedResults({ key: resultsTab, value: fromJS(selectedUpdated) })\n } else {\n setSelectedResults({ key: resultsTab, value: selected.push(value) })\n }\n }\n\n const handleSelectAllResults = () => {\n if (selected.size === filteredIds.size) {\n setSelectedResults({ key: resultsTab, value: fromJS([]) })\n } else {\n setSelectedResults({ key: resultsTab, value: fromJS(filteredIds) })\n }\n }\n\n const onSearch = () => {\n if (resultsTab === 'journalists') {\n onSearchJournalists()\n }\n\n if (resultsTab === 'outlets') {\n onSearchOutlets()\n }\n\n if (resultsTab === 'articles') {\n onSearchArticles()\n }\n }\n\n const renderAddToDistListButton = () => (\n 0 || isDistListsLocked}\n loading={importRequestRunning}\n onClick={() => onAddToDistributionListClick()}\n >\n {i18n.get('add_to_distribution_list')}\n \n )\n\n const renderSelectAndAddAll = () => (\n
    \n \n 0 && selected.size === filteredIds.size}\n onChange={handleSelectAllResults}\n inputProps={{ 'aria-label': 'controlled' }}\n />\n )}\n label={i18n.get('select_all')}\n />\n \n 0}\n loading={importRequestRunning}\n variant=\"contained\"\n color=\"primary\"\n onClick={() => onAddClick()}\n >\n \n {i18n.get('add_to_contacts')}\n \n {isDistListsLocked ? (\n \n {renderAddToDistListButton()}\n \n ) : renderAddToDistListButton()}\n
    \n )\n\n const onSortDirectionChange = () => {\n let direction\n\n if (sortDirection === 'asc') {\n direction = 'desc'\n }\n\n if (sortDirection === 'desc') {\n direction = 'asc'\n }\n\n const filters = filtersFormData.get(resultsTab)\n const sortFilters = filters.get('sort').set('direction', direction)\n onFilterChange({ key: resultsTab, value: filters.set('sort', sortFilters) })\n onSearch()\n }\n\n const onSortByChange = sort => {\n const filters = filtersFormData.get(resultsTab)\n const sortFilters = filters.get('sort').set('by', sort.value)\n onFilterChange({ key: resultsTab, value: filters.set('sort', sortFilters) })\n onSearch()\n }\n\n const renderSortingSwitch = () => {\n let options\n\n if (resultsTab === 'journalists') {\n options = [\n { value: 'first_name', label: i18n.get('first_name') },\n { value: 'last_name', label: i18n.get('last_name') },\n { value: 'influence_score', label: i18n.get('influence_score') },\n { value: 'outlet', label: i18n.get('outlet') }\n ]\n }\n\n if (resultsTab === 'outlets') {\n options = [\n { value: 'name', label: i18n.get('name') },\n { value: 'influence_score', label: i18n.get('influence_score') }\n ]\n }\n\n if (resultsTab === 'articles') {\n options = [\n { value: 'name', label: i18n.get('name') },\n { value: 'influence_score', label: i18n.get('influence_score') },\n { value: 'publish_date', label: i18n.get('publish_date') }\n ]\n }\n\n return (\n
    \n \n \n
    \n \n {sortDirection === 'desc' ? : }\n \n
    \n\n
    \n )\n }\n\n const renderResults = () => (\n <>\n {entities.map((entity, index) => (\n \n \n \n
    \n
    \n {!hideSelect() && (\n \n )}\n
    \n {resultsTab === 'journalists' && (\n \n )}\n {resultsTab === 'outlets' && (\n \n )}\n {resultsTab === 'articles' && (\n \n )}\n
    \n
    \n
    \n ))}\n \n )\n\n const renderLimitedFunctionalityMessage = () => (\n
    \n {i18n.get('limited_results_message')}\n
    \n )\n\n const renderLoader = (\n
    \n \n
    \n )\n\n if (resultsTab === 'journalists' && journalistsSearchRequestRunning) {\n return renderLoader\n }\n\n if (resultsTab === 'outlets' && outletsSearchRequestRunning) {\n return renderLoader\n }\n\n if (resultsTab === 'articles' && articlesSearchRequestRunning) {\n return renderLoader\n }\n\n return (\n
    \n \n {resultsTab === 'journalists' && renderSelectAndAddAll()}\n {renderSortingSwitch()}\n
    \n
    \n {entities.size > 0 ? renderResults()\n : (\n <> {isLimitedFunctionality ? (renderLimitedFunctionalityMessage()) : (\n
    \n {i18n.get('no_results_found').toUpperCase()}\n
    \n )}\n \n )}\n
    \n
    \n \n
    \n
    \n )\n}\n\nResult.propTypes = {\n resultsTab: PropTypes.string.isRequired,\n results: PropTypes.instanceOf(Map).isRequired,\n filtersFormData: PropTypes.instanceOf(Map).isRequired,\n selectedResults: PropTypes.instanceOf(Map).isRequired,\n importResult: PropTypes.instanceOf(List).isRequired,\n journalistsSearchRequestRunning: PropTypes.bool.isRequired,\n outletsSearchRequestRunning: PropTypes.bool.isRequired,\n articlesSearchRequestRunning: PropTypes.bool.isRequired,\n importRequestRunning: PropTypes.bool.isRequired,\n isLimitedFunctionality: PropTypes.bool.isRequired,\n isDistListsLocked: PropTypes.bool.isRequired,\n\n onFilterChange: PropTypes.func.isRequired,\n onSearchJournalists: PropTypes.func.isRequired,\n onSearchOutlets: PropTypes.func.isRequired,\n onSearchArticles: PropTypes.func.isRequired,\n setSelectedResults: PropTypes.func.isRequired,\n onAddClick: PropTypes.func.isRequired,\n onAddToDistributionListClick: PropTypes.func.isRequired\n}\n\nexport default Result\n","import { connect } from 'react-redux'\n\nimport Result from 'components/anewstip/results/result'\n\nimport {\n getAnewstipFiltersData,\n getAnewstipSelectedData,\n getAnewstipImportResult,\n getAnewstipImportRequestRunning,\n getJournalistsSearchRequestRunning,\n getOutletsSearchRequestRunning,\n getArticlesSearchRequestRunning,\n getIsLimitedFunctionality,\n getCDeskIsDistributionListsLocked\n} from 'selectors'\n\nimport {\n setFiltersForm as onFilterChange,\n searchJournalistsStart as onSearchJournalists,\n searchOutletsStart as onSearchOutlets,\n searchArticlesStart as onSearchArticles,\n setSelectedResults,\n importStart as onAddClick,\n addJournalistsToDistributionList as onAddToDistributionListClick\n} from 'actions/anewstip'\n\nconst mapStateToProps = (state, ownProps) => ({\n resultsTab: ownProps.resultsTab,\n results: ownProps.results,\n importResult: getAnewstipImportResult(state),\n filtersFormData: getAnewstipFiltersData(state),\n selectedResults: getAnewstipSelectedData(state),\n journalistsSearchRequestRunning: getJournalistsSearchRequestRunning(state),\n outletsSearchRequestRunning: getOutletsSearchRequestRunning(state),\n articlesSearchRequestRunning: getArticlesSearchRequestRunning(state),\n importRequestRunning: getAnewstipImportRequestRunning(state),\n isLimitedFunctionality: getIsLimitedFunctionality(state),\n isDistListsLocked: getCDeskIsDistributionListsLocked(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onFilterChange,\n onSearchJournalists,\n onSearchOutlets,\n onSearchArticles,\n setSelectedResults,\n onAddClick,\n onAddToDistributionListClick\n }\n)(Result)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport moment from 'moment-timezone'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n Paper,\n Typography,\n Link,\n CircularProgress\n} from '@mui/material'\n\nconst useStyles = makeStyles()({\n articleMainContainer: {\n display: 'flex',\n flexDirection: 'column'\n },\n relatedArticleContainer: {\n display: 'flex',\n flexDirection: 'row',\n background: '#e0e0e04f',\n padding: '20px 30px 20px 30px',\n gap: '20px'\n },\n relatedArticleInfoContainer: {\n width: '70%',\n display: 'flex',\n flexDirection: 'column',\n gap: '5px'\n },\n relatedArticleImageContainer: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n },\n imageLoaderWrapper: {\n width: 100,\n height: 100,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n },\n relatedArticleDateContainer: {\n width: '30%',\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'right'\n },\n articleImage: {\n display: 'flex',\n objectFit: 'cover'\n },\n imageFailedToLoad: {\n display: 'none'\n }\n})\n\nconst PrArticle = ({\n article\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const [imageHidden, setImageHidden] = useState(true)\n const [imageLoaded, setImageLoaded] = useState(false)\n\n const handleImageError = _event => {\n setImageLoaded(true)\n }\n\n const handleImageLoad = _event => {\n setImageHidden(false)\n setImageLoaded(true)\n }\n\n return (\n \n
    \n
    \n
    \n {!imageLoaded && article.get('image')\n ? (\n
    \n \n
    \n ) : null}\n \n
    \n
    \n {article.get('headline')}\n \n {article.get('snippet')}\n
    \n
    \n {i18n.get('date')}: {moment(article.get('articleDate')).format('L')}\n
    \n
    \n
    \n \n\n )\n}\n\nPrArticle.propTypes = {\n article: PropTypes.instanceOf(Map).isRequired\n}\n\nexport default PrArticle\n","import React from 'react'\nimport { Map, List } from 'immutable'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Breadcrumbs, CircularProgress, Tab, Typography, Divider, Chip, Stack } from '@mui/material'\nimport { TabContext, TabList, TabPanel } from '@mui/lab'\n\nimport CheckIcon from '@mui/icons-material/Check'\nimport NavigateNextIcon from '@mui/icons-material/NavigateNext'\n\nimport { StaggeredListItem } from 'components/staggered_list'\n\nimport Journalist from 'containers/anewstip/results/Journalist'\nimport Outlet from 'containers/anewstip/results/Outlet'\nimport Article from 'containers/anewstip/results/Article'\nimport PrArticle from 'components/anewstip/results/pr_article'\nimport Pagination from 'containers/anewstip/results/Pagination'\nimport { Dialog } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n content: {\n minHeight: 700,\n maxHeight: 700\n },\n tabs: {\n borderBottom: '1px solid gray'\n },\n resultsInnerContainer: {\n width: '100%',\n paddingBottom: '20px'\n },\n resultWrapper: {\n display: 'flex',\n flexDirection: 'row',\n paddingTop: '20px'\n },\n circularProgress: {\n height: '52vh',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n overflow: 'hidden'\n },\n topicChips: {\n padding: 2,\n marginBottom: '15px'\n },\n drillDownHistoryFilter: {\n cursor: 'pointer'\n },\n drillDownNavigation: {\n marginBottom: '10px'\n }\n})\n\nconst DrillDownDialog = ({\n data,\n open,\n activeTab,\n drillDownEntity,\n journalistsDrillDownRequestRunning,\n outletsDrillDownRequestRunning,\n articlesDrillDownRequestRunning,\n topics,\n importResult,\n importRequestRunning,\n drillDownHistory,\n isLimitedFunctionality,\n isDistListsLocked,\n onClose,\n switchTab,\n toggleTopic,\n onDrillDownJournalists,\n onDrillDownOutlets,\n onAddClick,\n onAddToDistributionListClick,\n onDrillDownHistory\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n const entities = data.getIn([activeTab, 'entities'])\n const hideBtn = ent => activeTab === 'outlets' || (activeTab === 'articles' && ent.get('contactType') === 'outlet')\n const onlyOneTopicActive = topics.filter(topic => topic.get('active') === true).size === 1\n\n const currentDrillDownIndex = drillDownHistory.get('currentIndex')\n const drillDownHistoryFilters = drillDownHistory.get('filtersHistory')\n\n const handleClose = () => onClose()\n\n const handleTabChange = (_event, entity) => {\n switchTab(entity)\n }\n\n const handleToggleTopic = name => {\n toggleTopic({ name })\n\n if (activeTab === 'journalists') {\n onDrillDownJournalists(drillDownEntity)\n }\n\n if (activeTab === 'outlets') {\n onDrillDownOutlets()\n }\n }\n\n const handleDrillDownHistory = index => {\n onDrillDownHistory({ index, entity: drillDownEntity })\n }\n\n const renderJournalistsTab = () => (\n \n )\n\n const renderOutletsTab = () => (\n \n )\n\n const renderArticlesTab = () => (\n \n )\n\n const renderDrillDownHistory = () => {\n if (drillDownHistoryFilters.size < 2) {\n return null\n }\n\n return (\n
    \n }>\n {drillDownHistoryFilters.map(filtersHistory => (\n handleDrillDownHistory(filtersHistory.get('index'))}\n >\n {filtersHistory.getIn(['filters', 'name'])}\n \n ))}\n \n
    \n )\n }\n\n const renderTopicChips = () => (\n
    \n \n {topics.map((topic, index) => (\n topic.get('active')\n ? (\n }\n color=\"primary\"\n size=\"small\"\n onClick={() => handleToggleTopic(topic.get('name'))}\n disabled={onlyOneTopicActive}\n />\n ) : (\n handleToggleTopic(topic.get('name'))}\n size=\"small\"\n variant=\"outlined\"\n />\n )\n ))}\n \n
    \n )\n\n const renderResults = () => (\n (activeTab === 'journalists' && journalistsDrillDownRequestRunning)\n || (activeTab === 'outlets' && outletsDrillDownRequestRunning)\n || (activeTab === 'articles' && articlesDrillDownRequestRunning) ? (\n
    \n \n
    \n ) : (\n <>\n {(\n (drillDownEntity === 'journalist' && activeTab === 'journalists')\n || (drillDownEntity === 'outlet' && activeTab === 'outlets')\n )\n && renderDrillDownHistory()}\n {\n (\n (drillDownEntity === 'journalist' && activeTab === 'journalists')\n || (drillDownEntity === 'outlet' && activeTab === 'outlets')\n )\n && renderTopicChips()\n }\n {\n entities.map((entity, index) => (\n \n \n \n
    \n {activeTab === 'journalists' && (\n \n )}\n {(activeTab === 'outlets' && drillDownEntity === 'outlet') && (\n \n )}\n {(activeTab === 'articles' && drillDownEntity === 'journalist') && (\n (entity.get('authors') ? (\n \n ) : (\n \n ))\n )}\n \n
    \n ))\n }\n \n \n ))\n\n return (\n \n \n
    \n \n {drillDownEntity === 'outlet' && renderOutletsTab()}\n {renderJournalistsTab()}\n {drillDownEntity === 'journalist' && renderArticlesTab()}\n \n
    \n \n {renderResults()}\n \n
    \n \n )\n}\n\nDrillDownDialog.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired,\n open: PropTypes.bool.isRequired,\n activeTab: PropTypes.string.isRequired,\n drillDownEntity: PropTypes.string,\n journalistsDrillDownRequestRunning: PropTypes.bool.isRequired,\n outletsDrillDownRequestRunning: PropTypes.bool.isRequired,\n articlesDrillDownRequestRunning: PropTypes.bool.isRequired,\n topics: PropTypes.instanceOf(List).isRequired,\n importResult: PropTypes.instanceOf(List).isRequired,\n importRequestRunning: PropTypes.bool.isRequired,\n drillDownHistory: PropTypes.instanceOf(Map).isRequired,\n isLimitedFunctionality: PropTypes.bool.isRequired,\n isDistListsLocked: PropTypes.bool.isRequired,\n\n onClose: PropTypes.func.isRequired,\n switchTab: PropTypes.func.isRequired,\n toggleTopic: PropTypes.func.isRequired,\n onDrillDownJournalists: PropTypes.func.isRequired,\n onDrillDownOutlets: PropTypes.func.isRequired,\n onAddClick: PropTypes.func.isRequired,\n onAddToDistributionListClick: PropTypes.func.isRequired,\n onDrillDownHistory: PropTypes.func.isRequired\n}\n\nexport default DrillDownDialog\n","import { connect } from 'react-redux'\n\nimport Dialog from 'components/anewstip/results/dialog'\n\nimport {\n getShowDrillDownDialog,\n getDrillDownTab,\n getDrillDownEntity,\n getJournalistsDrillDownRequestRunning,\n getOutletsDrillDownRequestRunning,\n getArticlesDrillDownRequestRunning,\n getAnewstipDrillDownData,\n getAnewstipDrillDownTopics,\n getAnewstipImportResult,\n getAnewstipImportRequestRunning,\n getAnewstipDrillDownHistory,\n getIsLimitedFunctionality,\n getCDeskIsDistributionListsLocked\n} from 'selectors'\n\nimport {\n closeDrillDownDialog as onClose,\n switchDrillDownTab as switchTab,\n toggleDrillDownTopic as toggleTopic,\n searchDrillDownJournalistsStart as onDrillDownJournalists,\n searchDrillDownOutletsStart as onDrillDownOutlets,\n importStart as onAddClick,\n addJournalistsToDistributionList as onAddToDistributionListClick,\n drillDownHistorySearch as onDrillDownHistory\n} from 'actions/anewstip'\n\nconst mapStateToProps = state => ({\n data: getAnewstipDrillDownData(state),\n open: getShowDrillDownDialog(state),\n activeTab: getDrillDownTab(state),\n drillDownEntity: getDrillDownEntity(state),\n journalistsDrillDownRequestRunning: getJournalistsDrillDownRequestRunning(state),\n outletsDrillDownRequestRunning: getOutletsDrillDownRequestRunning(state),\n articlesDrillDownRequestRunning: getArticlesDrillDownRequestRunning(state),\n topics: getAnewstipDrillDownTopics(state),\n importResult: getAnewstipImportResult(state),\n importRequestRunning: getAnewstipImportRequestRunning(state),\n drillDownHistory: getAnewstipDrillDownHistory(state),\n isLimitedFunctionality: getIsLimitedFunctionality(state),\n isDistListsLocked: getCDeskIsDistributionListsLocked(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose,\n switchTab,\n toggleTopic,\n onDrillDownJournalists,\n onDrillDownOutlets,\n onAddClick,\n onAddToDistributionListClick,\n onDrillDownHistory\n }\n)(Dialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Paper, Tab, CircularProgress } from '@mui/material'\n\nimport { TabContext, TabList, TabPanel } from '@mui/lab'\n\nimport Result from 'containers/anewstip/results/Result'\nimport Dialog from 'containers/anewstip/results/Dialog'\n\nconst useStyles = makeStyles()(({\n resultsMainContainer: {\n width: '100%',\n height: '100%'\n },\n resultsContainer: {\n paddingLeft: '15px',\n paddingRight: '15px'\n },\n tabs: {\n borderBottom: '1px solid gray'\n }\n}))\n\nconst Results = ({\n journalists,\n outlets,\n articles,\n resultsTab,\n isNavigationLocked,\n switchResultsTab,\n journalistsSearchRequestRunning,\n outletsSearchRequestRunning,\n articlesSearchRequestRunning\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const totalJournalistsCount = journalists.getIn(['paginator', 'totalCount'])\n const totalOutletsCount = outlets.getIn(['paginator', 'totalCount'])\n\n const handleTabChange = (_event, selectedTab) => {\n switchResultsTab(selectedTab)\n }\n\n const renderLoader = () => (\n \n )\n\n const renderTabLabel = (label, hits, loading) => (\n <>\n {i18n.get(label)}\n
    \n {loading && renderLoader()}\n {!loading && hits !== null && ({hits >= 1000 ? `${hits}+` : hits})}\n \n )\n\n return (\n <>\n \n
    \n \n
    \n \n \n \n \n \n
    \n \n \n \n \n \n \n \n \n \n
    \n
    \n \n \n \n )\n}\n\nResults.propTypes = {\n journalists: PropTypes.instanceOf(Map).isRequired,\n outlets: PropTypes.instanceOf(Map).isRequired,\n articles: PropTypes.instanceOf(Map).isRequired,\n resultsTab: PropTypes.string.isRequired,\n isNavigationLocked: PropTypes.bool.isRequired,\n journalistsSearchRequestRunning: PropTypes.bool.isRequired,\n outletsSearchRequestRunning: PropTypes.bool.isRequired,\n articlesSearchRequestRunning: PropTypes.bool.isRequired,\n\n switchResultsTab: PropTypes.func.isRequired\n}\n\nexport default Results\n","import { connect } from 'react-redux'\n\nimport Results from 'components/anewstip/results'\n\nimport {\n switchResultsTab\n} from 'actions/anewstip'\n\nimport {\n getAnewstipJournalists,\n getAnewstipOutlets,\n getAnewstipArticles,\n getResultsTab,\n getIsNavigationLocked,\n getJournalistsSearchRequestRunning,\n getOutletsSearchRequestRunning,\n getArticlesSearchRequestRunning\n} from 'selectors/anewstip'\n\nconst mapStateToProps = state => ({\n journalists: getAnewstipJournalists(state),\n outlets: getAnewstipOutlets(state),\n articles: getAnewstipArticles(state),\n resultsTab: getResultsTab(state),\n isNavigationLocked: getIsNavigationLocked(state),\n journalistsSearchRequestRunning: getJournalistsSearchRequestRunning(state),\n outletsSearchRequestRunning: getOutletsSearchRequestRunning(state),\n articlesSearchRequestRunning: getArticlesSearchRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n switchResultsTab\n }\n)(Results)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, List } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n CircularProgress,\n InputAdornment,\n FormControl,\n FormHelperText,\n Tooltip\n} from '@mui/material'\n\nimport {\n Search as SearchIcon,\n ManageSearch as SettingsIcon,\n Info as InfoIcon\n} from '@mui/icons-material'\n\nimport { StaggeredList, StaggeredListItem } from 'components/staggered_list'\nimport { Input, IconButton, Button, Autocomplete } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n searchForm: {\n height: '100%',\n width: '100%',\n overflow: 'hidden',\n [theme.breakpoints.down('md')]: {\n marginTop: '1em',\n height: '90%'\n }\n },\n fullScreenSearchForm: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n },\n resultsScreenSearchForm: {\n paddingTop: '10px'\n },\n fullScreenSimpleSearchContainer: {\n display: 'inherit',\n flexDirection: 'column',\n gap: '8px'\n },\n fullScreenSimpleSearchInput: {\n display: 'flex',\n width: '800px',\n [theme.breakpoints.down('md')]: {\n width: '400px'\n }\n },\n resultsScreenSimpleSearchInput: {\n display: 'flex',\n width: '300px',\n [theme.breakpoints.down('md')]: {\n width: '200px'\n }\n },\n simpleSearchIconButton: {\n marginLeft: '10px'\n },\n fullScreenAdvancedSearchContainer: {\n overflow: 'hidden',\n height: '100%'\n },\n fullScreenSwitchTypeButton: {\n alignSelf: 'flex-end'\n },\n resultsScreenSwitchTypeButton: {\n alignSelf: 'flex-end',\n marginTop: '10px'\n },\n staggeredListItem: {\n display: 'inherit',\n alignItems: 'inherit',\n width: 'inherit'\n },\n fullScreenAdvancedSearchInputs: {\n display: 'flex',\n flexDirection: 'column',\n width: '600px',\n gap: '8px',\n [theme.breakpoints.down('md')]: {\n width: '360px'\n }\n },\n resultsScreenAdvancedSearchInputs: {\n display: 'flex',\n flexDirection: 'column',\n width: '300px',\n gap: '12px',\n [theme.breakpoints.down('md')]: {\n width: '260px'\n }\n },\n fullScreenFormSectionHeader: {\n display: 'flex',\n justifyContent: 'center'\n },\n searchButtonWrapper: {\n display: 'flex',\n justifyContent: 'center',\n marginBottom: '1em'\n },\n searchTooltip: {\n marginLeft: '5px'\n },\n searchQueryWrapper: {\n display: 'flex',\n alignItems: 'center',\n width: '100%'\n }\n}))\n\nconst inputProps = { sx: { borderRadius: 5 } }\n\nconst mapToOptions = list => list.map(el => ({\n value: el,\n label: el\n}))\n\nconst uniq = a => a.reduce((result, element) => {\n const normalize = x => (typeof x === 'string' ? x.toLowerCase() : x)\n const normalizedElement = normalize(element)\n\n if (result.every(otherElement => normalize(otherElement) !== normalizedElement)) {\n result.push(element)\n }\n\n return result\n}, [])\n\nconst Search = ({\n statics,\n searchFormData,\n filtersFormData,\n isSimpleSearch,\n requestRunning,\n suggest,\n fullScreen,\n onSearchChange,\n onFilterChange,\n resetFilters,\n switchSearchType,\n onSearch,\n onSuggest\n}) => {\n const i18n = useI18n()\n const device = useDevice()\n const isSmallScreen = !device.get('gt-md')\n const compSize = isSmallScreen ? 'small' : 'medium'\n const { classes } = useStyles()\n\n const [formError, setFormError] = useState(false)\n\n const topic = filtersFormData.get('topic')\n const mediaType = filtersFormData.get('mediaType')\n const state = filtersFormData.get('state')\n const city = filtersFormData.get('city')\n const country = filtersFormData.get('country')\n const states = statics.get('states')\n\n const query = searchFormData.get('query')\n const name = searchFormData.get('name')\n const jobTitle = searchFormData.get('jobTitle')\n const outletName = searchFormData.get('outletName')\n\n const filteredStatesByCountry = states && states.find(s => s.get('name') === country)\n const formattedStatesList = filteredStatesByCountry ? uniq(filteredStatesByCountry\n .get('states', []).map(el => el.get('name'))) : []\n\n const outletSuggestionsList = (suggest && suggest.get('name')) ? suggest.get('name').map(s => s.get('text')) : List([])\n const titleSuggestionsList = (suggest && suggest.get('title')) ? suggest.get('title').map(s => s.get('text')) : List([])\n\n const isAdvancedSearchFormValid = !(!query && !name && !jobTitle && !outletName)\n\n const handleSearchChange = (key, v) => {\n const { value } = v || { value: null }\n onSearchChange({ key, value })\n }\n\n const handleFilterChange = (key, v) => {\n const { value } = v || { value: null }\n onFilterChange({ key, value })\n }\n\n const handleOnSearch = () => {\n if (isSimpleSearch && query === '') {\n setFormError(true)\n } else if (!isSimpleSearch && !isAdvancedSearchFormValid) {\n setFormError(true)\n } else {\n setFormError(false)\n resetFilters()\n onSearch()\n }\n }\n\n const handleSuggestions = (key, source, value, { action }) => {\n if (action !== 'menu-close' && action !== 'input-blur') {\n handleSearchChange(key, { value })\n\n if (value.length >= 3) {\n onSuggest({ keywords: value, source })\n }\n }\n }\n\n const handleOnEnter = e => {\n if (e.code === 'Enter') {\n handleOnSearch()\n }\n }\n\n const renderSwitchTypeButton = () => (\n
    \n }\n variant=\"text\"\n color=\"primary\"\n size={!isSimpleSearch && compSize === 'small' ? 'small' : 'medium'}\n onClick={() => switchSearchType()}\n disabled={requestRunning}\n >\n {`${i18n.get(isSimpleSearch ? 'advanced_search' : 'simple_search')}`}\n \n
    \n )\n\n const renderSimpleSearchButton = () => (\n
    \n \n \n {requestRunning && (\n \n )}\n \n \n \n
    \n )\n\n const renderSimpleSearch = () => (\n
    \n \n \n \n
    \n {renderSimpleSearchButton()}\n )\n }}\n onChange={({ target: { value } }) => handleSearchChange('query', { value })}\n value={query}\n error={formError && query === ''}\n disabled={requestRunning}\n autoComplete=\"off\"\n />\n {i18n.get('anewstip_search_query_info')}}\n >\n \n \n
    \n \n {formError && !query\n ? (\n \n {i18n.get('anewstip_empty_search_error')}\n \n ) : null}\n \n \n {renderSwitchTypeButton()}\n \n
    \n
    \n )\n\n const renderAdvancedSearch = () => (\n \n
    \n
    \n \n \n
    \n handleSearchChange('query', { value })}\n value={query}\n disabled={requestRunning}\n autoComplete=\"off\"\n />\n {i18n.get('anewstip_search_query_info')}}\n >\n \n \n
    \n
    \n \n handleSearchChange('name', { value })}\n value={name}\n disabled={requestRunning}\n autoComplete=\"off\"\n />\n \n
    \n \n handleSearchChange('jobTitle', value)}\n onInputChange={(v, e) => handleSuggestions('jobTitle', 'all', v, e)}\n value={jobTitle ? { value: jobTitle, label: jobTitle } : jobTitle}\n isDisabled={requestRunning}\n autoComplete=\"off\"\n />\n \n
    \n
    \n \n handleSearchChange('outletName', value)}\n onInputChange={(v, e) => handleSuggestions('outletName', 'all', v, e)}\n value={outletName ? { value: outletName, label: outletName } : outletName}\n isDisabled={requestRunning}\n autoComplete=\"off\"\n />\n \n
    \n\n {formError && !isAdvancedSearchFormValid\n ? (\n \n {i18n.get('anewstip_missing_required_field_search_error')}\n \n ) : null}\n \n\n
    \n \n handleFilterChange('topic', value)}\n value={topic ? { value: topic, label: topic } : topic}\n clearOnBlur\n isDisabled={requestRunning}\n autoComplete=\"off\"\n />\n \n
    \n
    \n \n handleFilterChange('mediaType', value)}\n value={mediaType ? { value: mediaType, label: mediaType } : mediaType}\n clearOnBlur\n isDisabled={requestRunning}\n autoComplete=\"off\"\n />\n \n
    \n
    \n \n handleFilterChange('country', value)}\n value={country ? { value: country, label: country } : country}\n clearOnBlur\n isDisabled={requestRunning}\n autoComplete=\"off\"\n />\n \n
    \n
    \n \n handleFilterChange('state', value)}\n value={state ? { value: state, label: state } : state}\n clearOnBlur\n isDisabled={requestRunning}\n autoComplete=\"off\"\n />\n \n
    \n \n handleFilterChange('city', { value })}\n value={city}\n disabled={requestRunning}\n autoComplete=\"off\"\n />\n \n \n {renderSwitchTypeButton()}\n \n
    \n \n }\n color=\"primary\"\n variant=\"contained\"\n style={{ width: '200px' }}\n size={compSize}\n onClick={handleOnSearch}\n disabled={requestRunning}\n loading={requestRunning}\n >\n {i18n.get('search')}\n \n \n
    \n
    \n
    \n
    \n )\n\n return (\n
    \n {isSimpleSearch ? renderSimpleSearch() : renderAdvancedSearch()}\n
    \n )\n}\n\nSearch.propTypes = {\n statics: PropTypes.instanceOf(Map),\n searchFormData: PropTypes.instanceOf(Map).isRequired,\n filtersFormData: PropTypes.instanceOf(Map).isRequired,\n isSimpleSearch: PropTypes.bool.isRequired,\n requestRunning: PropTypes.bool.isRequired,\n fullScreen: PropTypes.bool,\n suggest: PropTypes.instanceOf(Map),\n\n onSearchChange: PropTypes.func.isRequired,\n onFilterChange: PropTypes.func.isRequired,\n resetFilters: PropTypes.func.isRequired,\n switchSearchType: PropTypes.func.isRequired,\n onSearch: PropTypes.func.isRequired,\n onSuggest: PropTypes.func.isRequired\n}\n\nexport default Search\n","import { connect } from 'react-redux'\n\nimport Search from 'components/anewstip/search'\n\nimport {\n getAnewstipStatics,\n getAnewstipSearchData,\n getAnewstipFiltersData,\n getAnewstipIsSimpleSearch,\n getAnewstipCombinedSearchRequestRunning,\n getAnewstipSuggest,\n getIsInitialSearch\n} from 'selectors/anewstip'\n\nimport {\n setSearchForm as onSearchChange,\n setFiltersForm as onFilterChange,\n resetEntityFilters as resetFilters,\n switchSearchType,\n combinedSearchStart as onSearch,\n searchSuggestStart as onSuggest\n} from 'actions/anewstip'\n\nconst mapStateToProps = state => ({\n statics: getAnewstipStatics(state),\n searchFormData: getAnewstipSearchData(state),\n filtersFormData: getAnewstipFiltersData(state),\n isSimpleSearch: getAnewstipIsSimpleSearch(state),\n requestRunning: getAnewstipCombinedSearchRequestRunning(state),\n suggest: getAnewstipSuggest(state),\n fullScreen: getIsInitialSearch(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSearchChange,\n onFilterChange,\n resetFilters,\n switchSearchType,\n onSearch,\n onSuggest\n }\n)(Search)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\nimport { List as ImmutableList, Map as ImmutableMap } from 'immutable'\n\nimport {\n Paper,\n Typography\n} from '@mui/material'\n\nimport ContactImage from 'components/contact_management/contact_image'\n\nconst useStyles = makeStyles()(({\n paper: {\n padding: 20\n },\n chip: {\n marginRight: '0.2em'\n }\n}))\n\nexport default function ContactCard({\n data,\n countries,\n states,\n // topics,\n mediaTypes,\n languages\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const country = (countries.find(c => c.get('id') === data.get('countryId')) || ImmutableMap()).get('name')\n const state = (states.find(c => c.get('id') === data.get('stateId')) || ImmutableMap()).get('name')\n const publication = ((data.get('publications') || ImmutableList()).first() || ImmutableMap()).get('name')\n\n const outlet = data.get('outlet') || data.get('externalPublication')\n\n const mediaTypeIds = (data.get('mediaTypes') || data.get('contactsMediaTypes') || ImmutableMap())\n .map(type => type.get('id') || type.get('mediaTypeId'))\n const contactMediaTypes = mediaTypes.filter(mt => mediaTypeIds.includes(mt.get('id')))\n\n // const mediaTopicIds = (data.get('contactsMediaTopics') || ImmutableMap()).map(topic => topic.get('mediaTopicId'))\n // const contactMediaTopics = topics.filter(cmt => mediaTopicIds.includes(cmt.get('id')))\n\n // const journalistTopics = (data.get('topic') || ImmutableList()).map(el => el).join(', ')\n\n const languageIds = (data.get('languages') || data.get('contactsLanguages') || ImmutableMap())\n .map(l => l.get('id') || l.get('languageId'))\n const contactLanguages = languages.filter(cl => languageIds.includes(cl.get('id')))\n\n return (\n \n \n {i18n.get('name')}: {data.get('firstName')} {data.get('lastName')}\n {i18n.get('job_title')}: {data.get('jobTitle')}\n {i18n.get('outlet')}: {publication || outlet}\n {i18n.get('country')}: {country}\n {i18n.get('state')}: {state}\n {i18n.get('website')}: {data.get('website')}\n {i18n.get('phone')}: {data.get('phone')}\n {i18n.get('fax')}: {data.get('fax')}\n {i18n.get('address')}: {data.get('address')}\n
    \n {i18n.get('media_types')}: {contactMediaTypes.map(mt => mt.get('name')).join(', ')}\n {i18n.get('languages')}: {contactLanguages.map(mt => mt.get('name')).join(', ')}\n
    \n {i18n.get('linkedin_url')}: {data.get('linkedinUrl')}\n {i18n.get('twitter_url')}: {data.get('twitterUrl')}\n {i18n.get('facebook_url')}: {data.get('facebookUrl')}\n {i18n.get('tiktok_url')}: {data.get('tiktokUrl')}\n {i18n.get('threads_url')}: {data.get('threadsUrl')}\n {i18n.get('instagram_url')}: {data.get('instagramUrl')}\n {i18n.get('youtube_url')}: {data.get('youtubeUrl')}\n
    \n )\n}\n\nContactCard.propTypes = {\n data: PropTypes.instanceOf(ImmutableMap).isRequired,\n countries: PropTypes.instanceOf(ImmutableList).isRequired,\n states: PropTypes.instanceOf(ImmutableList).isRequired,\n // topics: PropTypes.instanceOf(ImmutableList).isRequired,\n mediaTypes: PropTypes.instanceOf(ImmutableList).isRequired,\n languages: PropTypes.instanceOf(ImmutableList).isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ContactCard from 'components/anewstip/duplicate_contacts_dialog/duplicate_contact_item/contact_card/ContactCard'\n\nimport {\n getAllStaticCountries,\n getAllStaticMediaTopics,\n getAllStaticMediaTypes,\n getAllStaticLanguages,\n getStaticStates\n} from 'selectors'\n\nconst mapStateToProps = (state, ownProps) => ({\n data: ownProps.data,\n countries: getAllStaticCountries(state),\n states: getStaticStates(state),\n topics: getAllStaticMediaTopics(state),\n mediaTypes: getAllStaticMediaTypes(state),\n languages: getAllStaticLanguages(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(ContactCard)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map as ImmutableMap } from 'immutable'\n\nimport {\n Accordion,\n AccordionSummary,\n AccordionDetails,\n AccordionActions,\n Typography,\n Grid\n} from '@mui/material'\n\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\n\nimport { Button, RaisedPrimaryButton } from 'containers/themed'\n\nimport ContactCard from 'containers/anewstip/duplicate_contacts_dialog/ContactCard'\n\nexport default function DuplicateContactItem({ data, requestRunning, onReplace, onKeep }) {\n const i18n = useI18n()\n\n const existingContact = data.get('existingContact')\n const journalist = data.get('journalist')\n\n return (\n \n }>\n {journalist.get('firstName')} {journalist.get('lastName')} ({journalist.get('mail')})\n \n \n \n \n {i18n.get('your_contact')}\n \n \n \n {i18n.get('journalist_search')} {i18n.get('contact')}\n \n \n \n \n \n onKeep(data)}\n >\n {i18n.get('keep')}\n \n onReplace(data)}\n >\n {i18n.get('replace')}\n \n \n \n )\n}\n\nDuplicateContactItem.propTypes = {\n data: PropTypes.instanceOf(ImmutableMap).isRequired,\n requestRunning: PropTypes.bool.isRequired,\n\n onReplace: PropTypes.func.isRequired,\n onKeep: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport DuplicateContactItem from 'components/anewstip/duplicate_contacts_dialog/duplicate_contact_item/DuplicateContactItem'\n\nimport { getAnewstipReplaceRequestRunning } from 'selectors'\n\nimport { replaceContactStart, keepContact } from 'actions/anewstip'\n\nconst mapStateToProps = (state, ownProps) => ({\n data: ownProps.data,\n requestRunning: getAnewstipReplaceRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onReplace: replaceContactStart,\n onKeep: keepContact\n }\n)(DuplicateContactItem)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { List as ImmutableList } from 'immutable'\n\nimport { Dialog, DialogContent, DialogTitle, DialogActions, useMediaQuery } from '@mui/material'\nimport { useTheme } from '@mui/material/styles'\n\nimport CloseIcon from '@mui/icons-material/Close'\nimport { Button, IconButton } from 'containers/themed'\n\nimport DuplicateContactItem from 'containers/anewstip/duplicate_contacts_dialog/DuplicateContactItem'\n\nexport default function DuplicateContactsDialog({\n open,\n result,\n withNext,\n onCancel,\n onNext\n}) {\n const theme = useTheme()\n const i18n = useI18n()\n const fullScreen = useMediaQuery(theme.breakpoints.down('md'))\n\n const duplicates = result.filter(el => el.get('existingContact')) || []\n const handleClose = () => onCancel()\n\n if (duplicates.isEmpty()) {\n return null\n }\n\n return (\n \n t.spacing(2),\n color: t => t.palette.grey[800]\n }}\n >\n {i18n.get('duplicate_contacts_found')}\n !t.isDark && t.palette.grey[800]\n }}\n >\n \n \n \n\n t.spacing(3) }}\n >\n {duplicates.map(el => (\n \n ))}\n \n\n t.spacing(2) }}\n disableSpacing\n >\n {withNext ? (\n \n {i18n.get('next')}\n \n\n ) : (\n \n {i18n.get('close')}\n \n )}\n \n
    \n )\n}\n\nDuplicateContactsDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n result: PropTypes.instanceOf(ImmutableList).isRequired,\n withNext: PropTypes.bool.isRequired,\n onCancel: PropTypes.func.isRequired,\n onNext: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport DuplicateContactsDialog from 'components/anewstip/duplicate_contacts_dialog/DuplicateContactsDialog'\n\nimport {\n hideDuplicateContactsDialog as onCancel,\n showDistributionListCreateDialog as onNext\n} from 'actions/anewstip'\n\nimport {\n getDuplicateContactsDialogOpen,\n getAnewstipImportResult,\n getAnewstipImportWithDistributionLists\n} from 'selectors/anewstip'\n\nconst mapStateToProps = state => ({\n open: getDuplicateContactsDialogOpen(state),\n withNext: getAnewstipImportWithDistributionLists(state),\n result: getAnewstipImportResult(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onCancel,\n onNext\n }\n)(DuplicateContactsDialog)\n","import { connect } from 'react-redux'\n\nimport DistributionListCreateDialog from 'components/contact_management/distribution_list_create_dialog'\n\nimport {\n getAnewstipDistributionListContactDialogOpen,\n getCmDistributionListsSearch,\n getCmListData,\n getAnewstipImporContactsForDistributionLists,\n getCmRequestRunning,\n getCmDistributionListSearchRunning\n} from 'selectors'\n\nimport {\n hideDistributionListCreateDialog as onClose\n} from 'actions/anewstip'\n\nimport {\n setDistributionList as onSelectOption,\n addContactsToDistributionListStart,\n updateDistributionListFormData as onFormUpdate,\n selectContact as onRemove,\n searchDistributionListStart\n} from 'actions/contact_management'\n\nconst mapStateToProps = state => ({\n contacts: getAnewstipImporContactsForDistributionLists(state),\n open: getAnewstipDistributionListContactDialogOpen(state),\n lists: getCmDistributionListsSearch(state),\n title: getCmListData(state).get('name'),\n loading: getCmRequestRunning(state),\n searchRequestRunning: getCmDistributionListSearchRunning(state)\n})\n\nexport default connect(mapStateToProps, {\n onClose,\n onSelectOption,\n onSubmit: () => addContactsToDistributionListStart({ source: 'anewstip' }),\n onFormUpdate,\n onRemove,\n searchDistributionListStart\n})(DistributionListCreateDialog)\n","import React, { useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n CircularProgress\n} from '@mui/material'\n\nimport AppBar from 'containers/anewstip/AppBar'\nimport Results from 'containers/anewstip/Results'\nimport Search from 'containers/anewstip/search/Search'\nimport DuplicateContactsDialog from 'containers/anewstip/DuplicateContactsDialog'\nimport CenterMessage from 'containers/CenterMessage'\nimport DistributionListCreateDialog from 'containers/anewstip/DistributionListCreateDialog'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n padding: '1em',\n height: '93vh',\n display: 'flex',\n gap: '10px',\n overflow: 'hidden',\n [theme.breakpoints.down('md')]: {\n height: '91vh'\n },\n [theme.breakpoints.down('sm')]: {\n overflow: 'auto'\n }\n },\n circularProgress: {\n width: '100vw',\n height: '92vh',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n overflow: 'hidden'\n },\n facetsLoading: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'center',\n paddingTop: '10px',\n paddingBottom: '20px'\n },\n centerMessageContainer: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '85vh'\n },\n content: {\n maxWidth: 800\n }\n}))\n\nconst Anewstip = ({\n apiKey,\n hasStatics,\n staticsRequestRunning,\n isInitialSearch,\n fetchStatics,\n onUnmount\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n useEffect(() => {\n if (!hasStatics) {\n fetchStatics()\n }\n\n return () => {\n onUnmount()\n }\n }, [])\n\n const renderMain = () => {\n if (!apiKey) {\n return (\n
    \n \n
    \n )\n }\n\n return (\n
    \n {isInitialSearch ? : (\n <>\n
    \n \n
    \n
    \n \n
    \n \n )}\n
    \n )\n }\n\n return (\n <>\n \n {(staticsRequestRunning || !hasStatics) ? (\n
    \n \n
    \n ) : renderMain()}\n \n \n \n )\n}\n\nAnewstip.propTypes = {\n apiKey: PropTypes.any.isRequired,\n hasStatics: PropTypes.bool.isRequired,\n staticsRequestRunning: PropTypes.bool.isRequired,\n isInitialSearch: PropTypes.bool.isRequired,\n\n fetchStatics: PropTypes.func.isRequired,\n onUnmount: PropTypes.func.isRequired\n}\n\nexport default Anewstip\n","import { connect } from 'react-redux'\n\nimport Anewstip from 'components/anewstip'\n\nimport {\n fetchStaticsStart as fetchStatics,\n clearModuleData as onUnmount\n} from 'actions/anewstip'\n\nimport { getAnewstipApiKey } from 'selectors/config'\n\nimport {\n getAnewstipStaticsRequestRunning,\n getAnewstipHasStatics,\n getAnewstipSearchRequestRunning,\n getIsInitialSearch\n} from 'selectors/anewstip'\n\nconst mapStateToProps = state => ({\n apiKey: getAnewstipApiKey(state),\n hasStatics: getAnewstipHasStatics(state),\n staticsRequestRunning: getAnewstipStaticsRequestRunning(state),\n searchRequestRunning: getAnewstipSearchRequestRunning(state),\n isInitialSearch: getIsInitialSearch(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n fetchStatics,\n onUnmount\n }\n)(Anewstip)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport useI18n from 'hooks/useI18n'\n\nimport {\n Dialog,\n DialogTitle,\n DialogContent,\n Box\n} from '@mui/material'\n\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n dialogTitle: {\n paddingBottom: theme.spacing(2),\n paddingRight: theme.spacing(8),\n color: theme.palette.grey[800]\n },\n closeButton: {\n position: 'absolute',\n right: 8,\n top: 8,\n color: !theme.isDark && theme.palette.grey[800]\n }\n}))\n\nexport default function InfoDialog({\n open,\n onClose\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n return (\n onClose()}\n maxWidth=\"md\"\n fullWidth\n >\n \n {i18n.get('ccd_allowed_domain_info_title')}\n onClose()}\n >\n \n \n \n \n \n \n \n )\n}\n\nInfoDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n\n onClose: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport InfoDialog from 'components/administration/content_desk_settings/allowed_domains/info_dialog'\n\nimport {\n toggleAllowedDomainsInfoDialog as onClose\n} from 'actions/administration'\n\nimport {\n getAllowedDomainsInfoDialogOpen\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getAllowedDomainsInfoDialogOpen(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose\n }\n)(InfoDialog)\n","import React, { useRef } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport useI18n from 'hooks/useI18n'\nimport download from 'utils/download'\n\nimport { green, orange } from '@mui/material/colors'\n\nimport {\n Alert,\n Dialog,\n DialogTitle,\n DialogContent,\n DialogActions,\n Box,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n Paper,\n Typography,\n CircularProgress\n} from '@mui/material'\n\nimport CloseIcon from '@mui/icons-material/Close'\nimport CheckCircleOutlineIcon from '@mui/icons-material/CheckCircleOutline'\nimport WarningAmberOutlinedIcon from '@mui/icons-material/WarningAmberOutlined'\n\nimport { Button, IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n dialogTitle: {\n paddingBottom: theme.spacing(2),\n paddingRight: theme.spacing(8),\n color: theme.palette.grey[800]\n },\n dialogActions: {\n padding: '25px'\n },\n closeButton: {\n position: 'absolute',\n right: 8,\n top: 8,\n color: !theme.isDark && theme.palette.grey[800]\n },\n cell: {\n whiteSpace: 'normal',\n wordWrap: 'break-word',\n wordBreak: 'break-all'\n },\n verifiedIcon: {\n color: green[500],\n fontSize: 28\n },\n unverifiedIcon: {\n color: orange[500],\n fontSize: 28\n },\n status: {\n display: 'flex',\n alignItems: 'center',\n gap: '10px'\n },\n loaderContainer: {\n display: 'flex',\n justifyContent: 'center',\n width: '100%',\n marginTop: '50px',\n marginBottom: '20px'\n },\n domainName: {\n fontSize: '18px',\n marginBottom: '10px'\n },\n mailgunInfo: {\n marginBottom: '10px'\n },\n tableTitle: {\n fontSize: '18px',\n fontWeight: '500',\n marginBottom: '10px'\n },\n table: {\n tableLayout: 'fixed',\n width: '100%'\n }\n}))\n\nexport default function StatusDialog({\n open,\n loading,\n formData,\n status,\n onClose\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const contentRef = useRef(null)\n\n const domainName = formData.get('name')\n const sendingRecords = status.get('sendingRecords') || List()\n const trackingRecords = status.get('trackingRecords') || List()\n\n const renderStatus = s => {\n if (s === 'valid') {\n return (\n \n \n {i18n.get('verified')}\n \n )\n }\n\n return (\n \n \n {i18n.get('unverified')}\n \n )\n }\n\n const getHost = (type, record) => {\n if (type === 'sending' || type === 'tracking') {\n return record.get('name')\n }\n\n return domainName\n }\n\n const getCurrentValue = value => {\n if (value.size === 0) {\n return '-'\n }\n\n return value.map(v => (\n <>\n {v}\n
    \n \n ))\n }\n\n const buildValueSeparator = maxValueLength => {\n const labelLength = i18n.get('value').length\n\n const data = []\n // build string with label in center\n const center = Math.floor((maxValueLength + labelLength) / 2)\n const leftString = '-'.repeat(center - labelLength)\n const centerString = i18n.get('value').toUpperCase()\n const rightString = '-'.repeat(center - labelLength)\n\n data.push(leftString + centerString + rightString)\n\n return data\n }\n\n const buildRecordsForExport = (records, title, maxValueLength) => {\n let data = []\n\n data.push('')\n data.push('')\n data.push(`+++ ${title} +++`.toUpperCase())\n data.push('')\n\n records.forEach((record, index) => {\n data.push(`${index + 1}.`)\n data.push(`${i18n.get('type')}: ${record.get('recordType')}`)\n data.push(`${i18n.get('host')}: ${getHost('sending', record)}`)\n data.push('')\n data = data.concat(buildValueSeparator(maxValueLength))\n data.push('')\n data.push(`${record.get('value')}`)\n data.push('')\n data.push('-'.repeat(maxValueLength))\n data.push('')\n })\n\n return data\n }\n\n const onExportClick = () => {\n let data = []\n\n const maxValueLength = Math.max(...(sendingRecords.concat(trackingRecords).map(r => r.get('value').length).toJS()))\n\n data.push(i18n.get('mailgun_settings_information'))\n data.push('')\n data.push('')\n\n data = data.concat(buildRecordsForExport(sendingRecords, i18n.get('sending_records'), maxValueLength))\n data = data.concat(buildRecordsForExport(trackingRecords, i18n.get('tracking_records'), maxValueLength))\n\n download(data.join('\\n').trim(), 'records.txt')\n }\n\n const renderTable = (type, records, title) => (\n \n {title}\n \n \n \n \n {i18n.get('status')}\n {i18n.get('type')}\n {i18n.get('host')}\n {i18n.get('value')}\n {i18n.get('current_value')}\n \n \n \n {records.map((record, index) => (\n \n \n {renderStatus(record.get('valid'))}\n \n \n {record.get('recordType')}\n \n \n {getHost(type, record)}\n \n \n {record.get('value')}\n \n \n {getCurrentValue(record.get('cached'))}\n \n \n ))}\n \n
    \n \n
    \n )\n\n return (\n onClose()}\n maxWidth=\"lg\"\n fullWidth\n >\n \n {i18n.get('ccd_allowed_domain_status_title')}\n onClose()}\n >\n \n \n \n \n {loading ? (\n \n \n \n ) : (\n \n {domainName}\n \n {i18n.get('mailgun_settings_information')}\n \n\n {renderTable('sending', sendingRecords, i18n.get('tracking_records'))}\n {renderTable('tracking', trackingRecords, i18n.get('tracking_records'))}\n \n )}\n \n \n onExportClick()}\n >\n {i18n.get('export')}\n \n \n \n )\n}\n\nStatusDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n formData: PropTypes.instanceOf(Map).isRequired,\n status: PropTypes.instanceOf(Map).isRequired,\n onClose: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport StatusDialog from 'components/administration/content_desk_settings/allowed_domains/status_dialog'\n\nimport {\n closeAllowedDomainsStatusDialog as onClose\n} from 'actions/administration'\n\nimport {\n getAllowedDomainFormData,\n getAllowedDomainsStatusDialogOpen,\n getAllowedDomainStatus,\n getAllowedDomainsRequestRunning\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getAllowedDomainsStatusDialogOpen(state),\n loading: getAllowedDomainsRequestRunning(state),\n formData: getAllowedDomainFormData(state),\n status: getAllowedDomainStatus(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose\n }\n)(StatusDialog)\n","import React, { useEffect, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { List, Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport { red, green, orange } from '@mui/material/colors'\n\nimport {\n Accordion,\n AccordionSummary,\n AccordionDetails,\n Typography,\n TableContainer,\n Table,\n TableHead,\n TableRow,\n TableCell,\n TableBody,\n InputAdornment,\n Pagination,\n CircularProgress,\n Grid,\n Switch,\n FormControlLabel,\n Box,\n Collapse,\n Chip,\n Stack,\n Divider\n} from '@mui/material'\n\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\nimport AddIcon from '@mui/icons-material/Add'\nimport DeleteIcon from '@mui/icons-material/Delete'\nimport SearchIcon from '@mui/icons-material/Search'\nimport CheckCircleIcon from '@mui/icons-material/CheckCircle'\nimport CancelIcon from '@mui/icons-material/Cancel'\nimport CheckCircleOutlineIcon from '@mui/icons-material/CheckCircleOutline'\nimport ArticleIcon from '@mui/icons-material/Article'\nimport InfoIcon from '@mui/icons-material/Info'\nimport WarningAmberOutlinedIcon from '@mui/icons-material/WarningAmberOutlined'\nimport RefreshIcon from '@mui/icons-material/Refresh'\nimport KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp'\nimport KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'\n\nimport { Button, Input, IconButton, Select } from 'containers/themed'\nimport InfoDialog from 'containers/administration/content_desk_settings/allowed_domains/InfoDialog'\nimport StatusDialog from 'containers/administration/content_desk_settings/allowed_domains/StatusDialog'\n\nimport useI18n from 'hooks/useI18n'\nimport { validDomain } from 'utils/regex'\nimport { getDomainRegionOptions } from 'utils/mailgun'\n\nconst useStyles = makeStyles()({\n pagination: {\n display: 'flex',\n marginTop: '1em',\n justifyContent: 'center'\n },\n confirmIcon: {\n color: green[500]\n },\n cancelIcon: {\n color: red[500]\n },\n deleteRow: {\n backgroundColor: red[50]\n },\n verifiedIcon: {\n color: green[500],\n fontSize: 28\n },\n unverifiedIcon: {\n color: orange[500],\n fontSize: 28\n }\n})\n\nexport default function AllowedDomains({\n config,\n domains,\n defaultDomains,\n formData,\n query,\n newDomain,\n newDomainRegion,\n newSenderDomain,\n deleteMode,\n total,\n page,\n loading,\n defaultRegionByTld,\n defaultDomainIds,\n onCreate,\n onCreateDefault,\n onUpdate,\n onDelete,\n onSearch,\n onRefresh,\n onQueryChange,\n onNewDomainChange,\n onNewDomainRegionChange,\n onNewSenderDomainChange,\n toggleDeleteMode,\n setPage,\n setFormData,\n openInfoDialog,\n openStatusDialog,\n fetchStatus,\n onConfigUpdate,\n onConfigChange\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const [openRow, setOpenRow] = useState(null)\n const allAllowedDomains = config.get('ccdAllowedDomains')\n const configDomain = config.get('domain')\n const configSenderEmail = config.get('senderEmail') || ''\n const configSenderEmailDomain = configSenderEmail.split('@')[1]\n const domainRegionOptions = getDomainRegionOptions()\n const showDefaultDomains = config.get('showDefaultDomains')\n const domainFound = allAllowedDomains.find(d => d.get('name') === configDomain)\n\n useEffect(() => {\n onNewDomainRegionChange(defaultRegionByTld)\n onSearch()\n }, [])\n\n const handleOnSearch = () => {\n setPage(1)\n onSearch()\n }\n\n const handleOnNewDomain = () => {\n onCreate()\n }\n\n const handleDeleteDomain = id => {\n toggleDeleteMode(id)\n setFormData({ id })\n }\n\n const handlePageChange = p => {\n setPage(p)\n onSearch()\n }\n\n const handleOnConfirm = () => {\n if (deleteMode) {\n onDelete()\n }\n }\n\n const handleOnCancel = () => {\n setFormData({ id: null, name: '' })\n\n if (deleteMode) {\n toggleDeleteMode()\n }\n }\n\n const handleVerify = (id, name, region) => {\n setFormData({ id, name, region })\n onRefresh()\n }\n\n const handleOpenTracking = (id, name, region, openTracking) => {\n setFormData({ id, name, region, openTracking })\n onUpdate({ updateType: 'openTracking' })\n }\n\n const handleClickTracking = (id, name, region, clickTracking) => {\n setFormData({ id, name, region, clickTracking })\n onUpdate({ updateType: 'clickTracking' })\n }\n\n const handleOpenInfoDialog = () => {\n openInfoDialog()\n }\n\n const handleDomainStatus = (name, region) => {\n setFormData({ name, region })\n fetchStatus()\n openStatusDialog()\n }\n\n const handleOnNewSenderDomain = (id, senderDomains) => {\n const newSenderDomains = [...senderDomains, newSenderDomain]\n setFormData({ id, senderDomains: newSenderDomains })\n onUpdate({ updateType: 'senderDomain' })\n }\n\n const handleDeleteSenderDomain = (id, senderDomains, senderDomain) => {\n const newSenderDomains = senderDomains.filter(sd => sd !== senderDomain)\n setFormData({ id, senderDomains: newSenderDomains })\n onUpdate({ updateType: 'senderDomain' })\n }\n\n const handleDefaultDomains = () => {\n if (showDefaultDomains) {\n onConfigChange({ showDefaultDomains: false })\n onConfigUpdate()\n } else {\n onConfigChange({ showDefaultDomains: true })\n onConfigUpdate()\n\n if (defaultDomainIds.size === 0) {\n onCreateDefault()\n }\n }\n }\n\n const isDomainActionTaken = id => formData.get('id') === id && (deleteMode)\n const isValidNewName = () => validDomain(newDomain) && !defaultDomains.some(d => d.get('domain') === newDomain)\n const isValidNewSenderName = () => validDomain(newSenderDomain) && !defaultDomains.some(d => d.get('domain') === newSenderDomain)\n const isDeleteDisabled = name => loading || deleteMode || name === configDomain\n const isSenderDomainDeleteDisabled = (senderDomain, name, senderDomains) => loading\n || deleteMode\n || (senderDomains.size === 1 && name === configDomain)\n || (name === configDomain && senderDomain === configSenderEmailDomain)\n const isDefaultDomain = id => defaultDomainIds.includes(id)\n const isExistingDomain = () => allAllowedDomains.some(d => d.get('name') === newDomain && d.get('region') === newDomainRegion)\n const isExistingSenderDomain = senderDomains => senderDomains.includes(newSenderDomain)\n\n const renderStatus = status => {\n if (status) {\n return (\n \n )\n }\n\n return (\n \n )\n }\n\n const renderDomains = () => (\n \n \n \n \n {i18n.get('domain')}\n \n {i18n.get('sending')}\n \n \n {i18n.get('tracking')}\n \n \n {i18n.get('region')}\n \n \n {i18n.get('open_tracking')}\n \n \n {i18n.get('click_tracking')}\n \n \n \n \n \n {domains.map((domain, index) => (\n isDomainActionTaken(domain.get('id')) ? (\n \n {deleteMode && {domain.get('name')}}\n \n handleOnConfirm()}\n disabled={loading}\n >\n \n \n handleOnCancel()}\n disabled={loading}\n >\n \n \n \n \n ) : (\n \n \n \n {domain.get('name')}\n \n \n {renderStatus(domain.get('sendingVerified'))}\n \n \n {renderStatus(domain.get('trackingVerified'))}\n \n \n {domain.get('region').toUpperCase()}\n \n \n handleOpenTracking(\n domain.get('id'),\n domain.get('name'),\n domain.get('region'),\n domain.get('openTracking')\n )}\n />\n \n \n handleClickTracking(\n domain.get('id'),\n domain.get('name'),\n domain.get('region'),\n domain.get('clickTracking')\n )}\n />\n \n \n handleVerify(domain.get('id'), domain.get('name'), domain.get('region'))}\n disabled={loading || deleteMode || isDefaultDomain(domain.get('id'))}\n >\n \n \n handleDomainStatus(domain.get('name'), domain.get('region'))}\n disabled={loading || deleteMode || isDefaultDomain(domain.get('id'))}\n >\n \n \n handleDeleteDomain(domain.get('id'))}\n disabled={isDeleteDisabled(domain.get('name')) || isDefaultDomain(domain.get('id'))}\n >\n \n \n {\n if (openRow !== index) {\n onNewSenderDomainChange('')\n }\n\n setOpenRow(openRow === index ? null : index)\n }}\n >\n {openRow === index ? : }\n \n \n \n \n \n \n \n onNewSenderDomainChange(event.target.value)}\n disabled={loading || deleteMode}\n InputProps={{\n endAdornment: (\n \n }\n variant=\"contained\"\n color=\"primary\"\n loading={loading}\n disabled={deleteMode || !isValidNewSenderName() || isExistingSenderDomain(domain.get('senderDomains'))}\n onClick={() => handleOnNewSenderDomain(domain.get('id'), domain.get('senderDomains'))}\n >\n {i18n.get('add')}\n \n \n ),\n placeholder: i18n.get('new_sender_domain')\n }}\n />\n \n {domain.get('senderDomains').map((senderDomain, chipIndex) => (\n handleDeleteSenderDomain(\n domain.get('id'),\n domain.get('senderDomains'),\n senderDomain\n )}\n />\n ))}\n \n \n \n \n \n \n )\n ))}\n \n
    \n
    \n )\n\n return (\n <>\n \n }\n sx={{\n '& .MuiAccordionSummary-content': {\n display: 'flex',\n alignItems: 'center'\n }\n }}\n >\n {i18n.get('allowed_domains')}\n e.stopPropagation()}\n >\n handleDefaultDomains()}\n />\n )\n }\n />\n \n handleOpenInfoDialog()}\n title={i18n.get('info')}\n disabled={loading}\n >\n \n \n )\n }\n />\n \n \n \n \n \n onQueryChange(event.target.value)}\n disabled={loading || deleteMode}\n InputProps={{\n endAdornment: (\n \n handleOnSearch()}\n disabled={loading || deleteMode}\n >\n {loading && (\n \n )}\n \n \n \n )\n }}\n />\n \n \n onNewDomainChange(event.target.value)}\n disabled={loading || deleteMode}\n InputProps={{\n startAdornment: (\n \n onNewDomainRegionChange(value.value)}\n options={domainRegionOptions}\n value={newDomainRegion}\n disabled={loading || deleteMode}\n size=\"small\"\n />\n \n ),\n endAdornment: (\n \n }\n variant=\"contained\"\n color=\"primary\"\n loading={loading}\n disabled={deleteMode || !isValidNewName() || isExistingDomain()}\n onClick={() => handleOnNewDomain()}\n >\n {i18n.get('add')}\n \n \n ),\n placeholder: i18n.get('new_domain')\n }}\n />\n \n \n
    \n {domains.size > 0 && renderDomains()}\n {domains.size === 0 && (\n {i18n.get('ccd_allowed_domain_none_added')}\n )}\n {\n (total >= 5) ? (\n handlePageChange(value)}\n color=\"primary\"\n disabled={loading || deleteMode}\n />\n ) : null\n }\n
    \n
    \n \n \n \n )\n}\n\nAllowedDomains.propTypes = {\n config: PropTypes.instanceOf(Map).isRequired,\n domains: PropTypes.instanceOf(List).isRequired,\n defaultDomains: PropTypes.instanceOf(List).isRequired,\n formData: PropTypes.instanceOf(Map).isRequired,\n query: PropTypes.string.isRequired,\n newDomain: PropTypes.string.isRequired,\n newDomainRegion: PropTypes.string.isRequired,\n newSenderDomain: PropTypes.string.isRequired,\n deleteMode: PropTypes.bool.isRequired,\n total: PropTypes.number.isRequired,\n page: PropTypes.number.isRequired,\n loading: PropTypes.bool.isRequired,\n defaultRegionByTld: PropTypes.string.isRequired,\n defaultDomainIds: PropTypes.instanceOf(List).isRequired,\n\n onCreate: PropTypes.func.isRequired,\n onCreateDefault: PropTypes.func.isRequired,\n onUpdate: PropTypes.func.isRequired,\n onDelete: PropTypes.func.isRequired,\n onSearch: PropTypes.func.isRequired,\n onRefresh: PropTypes.func.isRequired,\n onQueryChange: PropTypes.func.isRequired,\n onNewDomainChange: PropTypes.func.isRequired,\n onNewDomainRegionChange: PropTypes.func.isRequired,\n onNewSenderDomainChange: PropTypes.func.isRequired,\n toggleDeleteMode: PropTypes.func.isRequired,\n setPage: PropTypes.func.isRequired,\n setFormData: PropTypes.func.isRequired,\n openInfoDialog: PropTypes.func.isRequired,\n openStatusDialog: PropTypes.func.isRequired,\n fetchStatus: PropTypes.func.isRequired,\n onConfigUpdate: PropTypes.func.isRequired,\n onConfigChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\nimport { getDefaultDomains, getDefaultDomainByTld } from 'utils/mailgun'\nimport { getTopLevelDomain } from 'utils/regex'\n\nimport AllowedDomains from 'components/administration/content_desk_settings/allowed_domains'\n\nimport {\n createAllowedDomainStart as onCreate,\n createDefaultAllowedDomainsStart as onCreateDefault,\n updateAllowedDomainStart as onUpdate,\n deleteAllowedDomainStart as onDelete,\n searchAllowedDomainsStart as onSearch,\n refreshStatusAllowedDomainStart as onRefresh,\n setAllowedDomainsQuickSearchQuery as onQueryChange,\n setNewAllowedDomain as onNewDomainChange,\n setNewAllowedDomainRegion as onNewDomainRegionChange,\n setNewAllowedDomainSenderDomain as onNewSenderDomainChange,\n toggleAllowedDomainsDeleteMode as toggleDeleteMode,\n setAllowedDomainsPage as setPage,\n setAllowedDomainFormData as setFormData,\n toggleAllowedDomainsInfoDialog as openInfoDialog,\n openAllowedDomainsStatusDialog as openStatusDialog,\n fetchAllowedDomainStatusStart as fetchStatus\n} from 'actions/administration'\n\nimport {\n\n updateCDeskConfigRequestStart as onConfigUpdate,\n updateCDeskConfig as onConfigChange\n} from 'actions/config'\n\nimport {\n getCDeskConfig,\n getAllowedDomains,\n getAllowedDomainsPage,\n getAllowedDomainsRequestRunning,\n getAllowedDomainsQuickSearchQuery,\n getAllowedDomainsNewAllowedDomain,\n getAllowedDomainsNewAllowedDomainRegion,\n getAllowedDomainsNewAllowedSenderDomain,\n getAllowedDomainsDeleteMode,\n getAllowedDomainFormData,\n getUser,\n getDefaultAllowedDomainIds\n} from 'selectors'\n\nconst getDefaultDomain = user => {\n const tld = getTopLevelDomain(user.get('email'))\n\n return getDefaultDomainByTld(tld)\n}\n\nconst mapStateToProps = state => ({\n config: getCDeskConfig(state),\n domains: getAllowedDomains(state).get('items'),\n defaultDomains: getDefaultDomains(),\n formData: getAllowedDomainFormData(state),\n query: getAllowedDomainsQuickSearchQuery(state),\n newDomain: getAllowedDomainsNewAllowedDomain(state),\n newDomainRegion: getAllowedDomainsNewAllowedDomainRegion(state),\n newSenderDomain: getAllowedDomainsNewAllowedSenderDomain(state),\n deleteMode: getAllowedDomainsDeleteMode(state),\n total: getAllowedDomains(state).get('total'),\n page: getAllowedDomainsPage(state),\n loading: getAllowedDomainsRequestRunning(state),\n defaultRegionByTld: getDefaultDomain(getUser(state)).get('domainRegion'),\n defaultDomainIds: getDefaultAllowedDomainIds(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onCreate,\n onCreateDefault,\n onUpdate,\n onDelete,\n onSearch,\n onRefresh,\n onQueryChange,\n onNewDomainChange,\n onNewDomainRegionChange,\n onNewSenderDomainChange,\n toggleDeleteMode,\n setPage,\n setFormData,\n openInfoDialog,\n openStatusDialog,\n fetchStatus,\n onConfigUpdate,\n onConfigChange\n }\n)(AllowedDomains)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, List } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { red } from '@mui/material/colors'\n\nimport {\n Accordion,\n AccordionSummary,\n AccordionDetails,\n AccordionActions,\n Typography,\n Grid,\n FormControlLabel,\n LinearProgress,\n Box,\n Tooltip,\n InputAdornment,\n Autocomplete,\n TextField\n} from '@mui/material'\n\nimport SaveIcon from '@mui/icons-material/Save'\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\nimport RefreshIcon from '@mui/icons-material/Refresh'\nimport InfoIcon from '@mui/icons-material/Info'\n\nimport ContentContainer from 'components/content_container'\n\nimport AppBar from 'containers/AppBar'\nimport AllowedDomains from 'containers/administration/content_desk_settings/AllowedDomains'\nimport { Button, Input, IconButton } from 'containers/themed'\n\nimport { Capabilities, UploadedMediaFilesSizeLimit } from 'static/constants'\nimport useI18n from 'hooks/useI18n'\nimport { validEmail } from 'utils/regex'\nimport { formatBytes } from 'utils/number'\n\nconst useStyles = makeStyles()(theme => ({\n content: {\n paddingTop: 10\n },\n panelDetails: {\n flexDirection: 'column'\n },\n container: {\n [theme.breakpoints.up('md')]: {\n width: '85%',\n margin: '0 auto'\n },\n [theme.breakpoints.up('lg')]: {\n width: '65%'\n }\n }\n}))\n\nconst mapDomainsToOptions = domains => domains.map(d => {\n const senderDomains = d.get('senderDomains')\n\n return senderDomains.map(sd => ({\n value: { name: sd, domain: d.get('name'), region: d.get('region') },\n label: '@'.concat(sd).concat(sd !== d.get('name') ? ` (${d.get('name')})` : '')\n }))\n}).flatten().toJS()\n\nexport default function ContentDeskSettings({\n capabilities,\n config,\n requestRunning,\n uploadedMediaFilesTotalSize,\n onChange,\n onUpdate,\n onConfigRefresh\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const senderEmail = config.get('senderEmail') || ''\n const senderEmailLocal = senderEmail.split('@')[0]\n const senderEmailDomain = senderEmail.split('@')[1]\n const senderDomain = config.get('domain') || ''\n const senderName = config.get('senderName') || ''\n const domainRegion = config.get('domainRegion') || ''\n const allowedDomains = config.get('ccdAllowedDomains') || List()\n\n const domainsOptions = mapDomainsToOptions(allowedDomains)\n\n const emailIsValid = validEmail(senderEmail)\n\n const loaderPercentage = (usage, limit) => {\n const percentage = Math.round((100 * usage) / limit)\n\n return { percentage: percentage > 100 ? 100 : percentage, isMax: percentage >= 100 }\n }\n\n const ccdPlanName = config.getIn(['ccdPlan', 'name'])\n const emailsSendLimit = config.getIn(['ccdPlan', 'emailsSendLimit'], 0)\n const emailsSendUsage = config.getIn(['ccdPlanUsage', 'emailsSendUsage'], 0)\n const distributionListsLimit = config.getIn(['ccdPlan', 'distributionListsLimit'], 0)\n const distributionListsUsage = config.getIn(['ccdPlanUsage', 'distributionListsUsage'], 0)\n const contactsPerDistListLimit = config.getIn(['ccdPlan', 'contactsPerDistListLimit'], 0)\n const journalistsImportLimit = config.getIn(['ccdPlan', 'journalistsImportLimit'], 0)\n const journalistsImportUsage = config.getIn(['ccdPlanUsage', 'journalistsImportUsage'], 0)\n const journalistsViewLimit = config.getIn(['ccdPlan', 'journalistsViewLimit'], 0)\n const journalistsViewUsage = config.getIn(['ccdPlanUsage', 'journalistsViewUsage'], 0)\n\n const senderEmailDomainValue = domainsOptions.find(option => {\n const { name, domain } = option.value\n\n return name === senderEmailDomain && domain === senderDomain\n }) || null\n\n const accordionDetails = [\n {\n title: 'uploads_storage_space',\n usage: uploadedMediaFilesTotalSize,\n limit: UploadedMediaFilesSizeLimit\n },\n {\n title: 'sent_emails',\n usage: emailsSendUsage,\n limit: emailsSendLimit\n },\n {\n title: 'distribution_lists',\n usage: distributionListsUsage,\n limit: distributionListsLimit\n },\n {\n title: 'imported_journalists',\n usage: journalistsImportUsage,\n limit: journalistsImportLimit\n },\n {\n title: 'viewed_journalists',\n usage: journalistsViewUsage,\n limit: journalistsViewLimit\n },\n {\n title: 'contacts_per_dist_list',\n limit: contactsPerDistListLimit\n }\n ]\n\n const handleMailChange = value => {\n onChange({ senderEmail: value.concat('@').concat(senderEmailDomain) })\n }\n\n const handleSenderEmailDomainChange = value => {\n const { name, domain, region } = value\n const domainId = value.id\n\n onChange({\n ccdAllowedDomainId: domainId,\n senderEmail: senderEmailLocal.concat('@').concat(name),\n domain,\n domainRegion: region\n })\n onUpdate()\n }\n\n const handleNameChange = value => onChange({ senderName: value })\n\n const allValid = (emailIsValid && domainRegion !== '')\n const saveDisabled = requestRunning || !allValid\n\n const handleCDConfigRefresh = () => onConfigRefresh()\n\n const renderUpdateButton = () => (\n }\n variant=\"contained\"\n color=\"primary\"\n loading={requestRunning}\n disabled={saveDisabled}\n onClick={() => onUpdate()}\n >\n {i18n.get('update')}\n \n )\n\n const renderSenderActions = () => (\n \n {renderUpdateButton()}\n \n )\n\n const renderSenderMailGridItem = () => (\n \n handleMailChange(event.target.value)}\n disabled={requestRunning}\n InputProps={{\n endAdornment: (\n \n handleSenderEmailDomainChange(option.value)}\n disabled={requestRunning}\n renderInput={params => (\n \n )}\n />\n \n )}\n placement=\"top-end\"\n PopperProps={{\n modifiers: [\n {\n name: 'offset',\n options: {\n offset: [-20, 10]\n }\n }\n ]\n }}\n >\n \n \n \n )\n }}\n />\n \n )\n const renderSenderNameGridItem = () => (\n \n handleNameChange(event.target.value)}\n disabled={requestRunning}\n />\n \n )\n\n const renderDetail = (detail, loader, index) => {\n let usageLimitDisplay\n\n if (detail.usage !== undefined) {\n if (detail.title === 'uploads_storage_space') {\n usageLimitDisplay = `${formatBytes(detail.usage)} / ${formatBytes(detail.limit)}`\n } else {\n usageLimitDisplay = `${detail.usage} / ${detail.limit}`\n }\n } else {\n usageLimitDisplay = detail.limit\n }\n\n return (\n \n {i18n.get(detail.title)}\n {usageLimitDisplay}\n {loader && (\n \n )}\n \n )\n }\n\n return (\n <>\n \n\n \n
    \n \n }\n sx={{\n '& .MuiAccordionSummary-content': {\n display: 'flex',\n alignItems: 'center'\n }\n }}\n >\n {`${i18n.get('usage_and_limits')} / ${i18n.get('current_plan')} - ${ccdPlanName || 'none'}`}\n \n e.stopPropagation()}>\n \n \n \n )\n }\n />\n \n \n \n \n {ccdPlanName && (\n accordionDetails.map((detail, index) => {\n let loader\n\n if (detail.usage !== undefined && detail.usage !== null && detail.limit) {\n loader = loaderPercentage(detail.usage, detail.limit)\n }\n\n return renderDetail(detail, loader, index)\n })\n )}\n \n \n \n\n \n }>\n {i18n.get('general')}\n \n \n \n {renderSenderNameGridItem()}\n {renderSenderMailGridItem()}\n \n \n {renderSenderActions()}\n \n {capabilities.get(Capabilities.HAS_CONTENT_DESK_ALLOWED_DOMAINS_SETTINGS) && (\n \n )}\n
    \n
    \n \n )\n}\n\nContentDeskSettings.propTypes = {\n capabilities: PropTypes.instanceOf(Map).isRequired,\n config: PropTypes.object.isRequired,\n requestRunning: PropTypes.bool.isRequired,\n uploadedMediaFilesTotalSize: PropTypes.number,\n\n onUpdate: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onConfigRefresh: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ContentDeskSettings from 'components/administration/content_desk_settings'\n\nimport {\n updateCDeskConfigRequestStart as onUpdate,\n updateCDeskConfig as onChange,\n refreshContentDeskPlanUsageAndLimits as onConfigRefresh\n} from 'actions/config'\n\nimport {\n getCDeskConfig,\n getCDeskUpdateRequestRunning,\n getCapabilities,\n getCDeskUploadedMediaFilesTotalSize\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n capabilities: getCapabilities(state),\n config: getCDeskConfig(state),\n requestRunning: getCDeskUpdateRequestRunning(state),\n uploadedMediaFilesTotalSize: getCDeskUploadedMediaFilesTotalSize(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange,\n onUpdate,\n onConfigRefresh\n }\n)(ContentDeskSettings)\n","import React from 'react'\nimport { Map } from 'immutable'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { useSnackbar } from 'notistack'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n CircularProgress,\n Dialog,\n DialogContent,\n DialogTitle,\n DialogActions,\n Toolbar,\n Typography,\n AppBar,\n Slide,\n TextField,\n FormControlLabel,\n Checkbox\n} from '@mui/material'\nimport SaveIcon from '@mui/icons-material/Save'\n\nimport { Button, IconButton, RaisedPrimaryButton } from 'containers/themed'\nimport EmailEditor from 'containers/content_desk_new/contents/content_edit_dialog/editor/EmailEditor'\nimport TemplatesEditorVariables from 'containers/email_templates_library/TemplatesEditorVariables'\n\nimport { Capabilities } from 'static/constants'\n\nconst useStyles = makeStyles()({\n hidden: {\n position: 'absolute !important',\n left: '-9999px !important',\n top: '-9999px !important'\n },\n emailEditorContainer: {\n marginTop: '10px'\n },\n circularLoader: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '60vh'\n },\n spacer: {\n flex: 1\n },\n saveIcon: {\n marginLeft: 5\n },\n close: {\n color: 'white !important',\n marginRight: 5\n },\n closeSaveDialogButton: {\n position: 'absolute',\n right: 7,\n top: 7\n },\n saveBtn: {\n marginLeft: '10px'\n }\n})\n\nconst TemplatesEditorDialog = ({\n emailEditorLoading,\n isEditorDialogOpen,\n isSaveDialogOpen,\n data,\n loading,\n capabilities,\n closeEditorDialog,\n openSaveDialog,\n closeSaveDialog,\n onChange,\n onSave\n}) => {\n const { classes } = useStyles()\n const { enqueueSnackbar, closeSnackbar } = useSnackbar()\n const i18n = useI18n()\n const htmlData = data.get('html') || ''\n const isEditorEmpty = htmlData.length < 1\n const requiredFields = ['name']\n const hasPublicWriteRights = capabilities.get(Capabilities.HAS_CONTENT_DESK_PUBLIC_TEMPLATES_WRITE_RIGHTS)\n\n const handleChange = e => onChange({ key: e.target.name, value: e.target.value })\n const handleChangeCheckbox = e => onChange({ key: e.target.name, value: e.target.checked })\n\n const handleSave = () => {\n if (requiredFields.map(field => !!data.get(field)).some(value => !value)) {\n requiredFields.map(field => {\n const key = field\n\n if (!data.get(field)) {\n enqueueSnackbar(\n `${i18n.get(key)} ${i18n.get('is_required')}`,\n { variant: 'error', preventDuplicate: true }\n )\n }\n\n return true\n })\n\n return false\n }\n\n closeSnackbar()\n\n return onSave()\n }\n\n const renderSaveDialog = () => (\n \n closeSaveDialog()}\n size=\"normal\"\n disabled={loading}\n />\n \n {`${i18n.get('save')} ${i18n.get('template')}`}\n \n \n \n {hasPublicWriteRights && (\n \n )}\n label={i18n.get('public')}\n />\n )}\n \n )}\n label={i18n.get('template_released')}\n />\n \n \n closeSaveDialog()}\n >\n {i18n.get('cancel')}\n \n \n {i18n.get('confirm')}\n \n \n \n )\n\n return (\n <>\n \n \n \n closeEditorDialog()}\n size=\"normal\"\n />\n \n {i18n.get('template_editor')}\n \n
    \n \n openSaveDialog()}\n disabled={emailEditorLoading || isEditorEmpty}\n >\n {i18n.get('save')}\n \n \n \n \n {\n emailEditorLoading && (\n
    \n \n
    \n )\n }\n \n \n
    \n \n {renderSaveDialog()}\n \n )\n}\n\nTemplatesEditorDialog.propTypes = {\n emailEditorLoading: PropTypes.bool.isRequired,\n isEditorDialogOpen: PropTypes.bool.isRequired,\n isSaveDialogOpen: PropTypes.bool.isRequired,\n data: PropTypes.instanceOf(Map).isRequired,\n loading: PropTypes.bool.isRequired,\n capabilities: PropTypes.instanceOf(Map).isRequired,\n closeEditorDialog: PropTypes.func.isRequired,\n openSaveDialog: PropTypes.func.isRequired,\n closeSaveDialog: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired\n}\n\nexport default TemplatesEditorDialog\n","import { connect } from 'react-redux'\n\nimport TemplatesEditorDialog from 'components/email_templates_library/templates_editor_dialog'\n\nimport {\n getETLibraryShowEditorDialog,\n getETLibraryShowSaveDialog,\n getCDeskEmailEditorLoadingStatus,\n getETLibraryTemplateFormData,\n getETLibrarySaveRequestRunning,\n getCapabilities\n} from 'selectors'\nimport {\n closeEditorDialog,\n closeSaveDialog,\n openSaveDialog,\n setTemplateFormData as onChange,\n saveTemplateStart as onSave\n} from 'actions/email_templates_library'\n\nconst mapStateToProps = state => ({\n emailEditorLoading: getCDeskEmailEditorLoadingStatus(state),\n isEditorDialogOpen: getETLibraryShowEditorDialog(state),\n isSaveDialogOpen: getETLibraryShowSaveDialog(state),\n data: getETLibraryTemplateFormData(state),\n loading: getETLibrarySaveRequestRunning(state),\n capabilities: getCapabilities(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n closeEditorDialog,\n closeSaveDialog,\n openSaveDialog,\n onChange,\n onSave\n }\n)(TemplatesEditorDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n FormControlLabel,\n Switch\n} from '@mui/material'\n\nimport AddOutlinedIcon from '@mui/icons-material/AddOutlined'\n\nimport { Button } from 'containers/themed'\n\nimport { StaggeredList, StaggeredListItem } from 'components/staggered_list'\n\nimport { Capabilities } from 'static/constants'\n\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()(theme => ({\n actionsWrapper: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center'\n },\n publicTemplatesSwitchTrack: {\n backgroundColor: theme.palette.secondary.main\n },\n addIcon: {\n marginLeft: '10px'\n }\n}))\n\nconst Actions = ({\n isPublicOnly,\n capabilities,\n loading,\n openDialog,\n togglePublicTemplates\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const hasPublicReadRights = capabilities.get(Capabilities.HAS_CONTENT_DESK_PUBLIC_TEMPLATES_READ_RIGHTS)\n\n const actions = []\n\n actions.push(\n
    \n {hasPublicReadRights && (\n \n )}\n label={isPublicOnly ? i18n.get('show_my_templates') : i18n.get('show_public_templates')}\n />\n )}\n \n {i18n.get('new_template')}\n \n \n
    \n\n )\n\n return (\n \n
    \n {actions.map((action, index) => (\n \n {action}\n \n ))}\n
    \n
    \n )\n}\n\nActions.propTypes = {\n isPublicOnly: PropTypes.bool.isRequired,\n capabilities: PropTypes.instanceOf(Map).isRequired,\n loading: PropTypes.bool.isRequired,\n\n openDialog: PropTypes.func.isRequired,\n togglePublicTemplates: PropTypes.func.isRequired\n}\n\nexport default Actions\n","import { connect } from 'react-redux'\n\nimport Actions from 'components/email_templates_library/actions'\n\nimport {\n openEditorDialog as openDialog,\n togglePublicTemplates\n} from 'actions/email_templates_library'\n\nimport {\n getETLibraryShowPublic,\n getCapabilities,\n getETLibraryFetchRequestRunning,\n getETLibraryDeleteRequestRunning\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n isPublicOnly: getETLibraryShowPublic(state),\n capabilities: getCapabilities(state),\n loading: getETLibraryFetchRequestRunning(state) || getETLibraryDeleteRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n openDialog,\n togglePublicTemplates\n }\n)(Actions)\n","import React from 'react'\nimport { PropTypes } from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport ThemedAppBar from 'containers/AppBar'\n\nimport Actions from 'containers/email_templates_library/Actions'\nimport TransitionComponent from 'components/transition_component'\n\nexport default function AppBar({ hasDomain }) {\n const i18n = useI18n()\n\n return (\n \n {i18n.get('template_library')}beta
    }\n actions={hasDomain ? : null}\n />\n \n )\n}\n\nAppBar.propTypes = {\n hasDomain: PropTypes.bool.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport AppBar from 'components/email_templates_library/app_bar/AppBar'\n\nimport {\n getCDeskConfig\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n hasDomain: !!getCDeskConfig(state).get('domain') || false\n})\n\nexport default connect(\n mapStateToProps,\n {\n }\n)(AppBar)\n","import React from 'react'\nimport useI18n from 'hooks/useI18n'\nimport { PropTypes } from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\n\nimport TemplatesWrapper from 'containers/email_templates_library/TemplatesWrapper'\nimport TemplatesEditorDialog from 'containers/email_templates_library/TemplatesEditorDialog'\nimport CenterMessage from 'containers/CenterMessage'\nimport AppBar from 'containers/email_templates_library/AppBar'\n\nconst useStyles = makeStyles()({\n templatesEditorContainer: {\n padding: '2em 2em 0em 2em'\n },\n centerMessageContainer: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '85vh'\n },\n content: {\n maxWidth: 800\n }\n})\n\nexport default function EmailTemplatesLibrary({ hasDomain }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n if (!hasDomain) {\n return (\n <>\n \n
    \n \n
    \n \n )\n }\n\n return (\n
    \n \n \n \n
    \n )\n}\n\nEmailTemplatesLibrary.propTypes = {\n hasDomain: PropTypes.bool.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport EmailTemplatesLibrary from 'components/email_templates_library'\n\nimport { getCDeskConfig } from 'selectors'\n\nconst mapStateToProps = state => ({\n hasDomain: !!getCDeskConfig(state).get('domain') || false\n})\n\nexport default connect(\n mapStateToProps,\n {}\n)(EmailTemplatesLibrary)\n","import { connect } from 'react-redux'\n\nimport SavedChartForm from 'components/administration/saved_charts/saved_chart_form'\n\nimport { getBaseUrl, getSavedChartsSaving, getTimezone } from 'selectors'\n\nimport { deleteSavedChartStart, updateSavedChartStart } from 'actions/saved_charts'\n\nconst mapStateToProps = (state, { savedChart }) => ({\n savedChart,\n baseUrl: getBaseUrl(state),\n saving: getSavedChartsSaving(state),\n timezone: getTimezone(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onDelete: deleteSavedChartStart,\n onSave: updateSavedChartStart\n }\n)(SavedChartForm)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport moment from 'moment-timezone'\n\nimport { generateChartLabel, generateChartTopLabel } from 'utils/chart'\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\nimport red from '@mui/material/colors/red'\nimport { makeStyles } from 'tss-react/mui'\n\nimport Chart from 'containers/charts/Chart'\nimport SavedChartForm from 'containers/administration/saved_charts/SavedChartForm'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Accordion, AccordionSummary, AccordionDetails, Typography } from '@mui/material'\n\nconst useStyles = makeStyles()({\n chartContainer: {\n width: '100%',\n height: 300\n },\n savedChartSummary: {\n display: 'flex',\n justifyContent: 'space-between',\n flexWrap: 'wrap',\n paddingRight: 10\n },\n expiresAt: {\n width: '50%'\n },\n expired: {\n color: red[500]\n }\n})\n\nexport default function SavedChart({\n savedChart,\n expanded,\n onExpand,\n data\n}) {\n const { cx, classes } = useStyles()\n const i18n = useI18n()\n const chart = savedChart.get('chart')\n const autoLabel = chart.getIn(['opts', 'autoLabel']) !== false\n\n const isExpired = moment(savedChart.get('expiresAt')).diff(moment()) < 0\n\n return (\n onExpand(savedChart.get('id'))}\n TransitionProps={{\n unmountOnExit: true\n }}\n >\n }\n classes={{ content: classes.savedChartSummary }}\n >\n \n {generateChartTopLabel(chart, i18n)}\n {!autoLabel && !!chart.get('topLabel') && ({chart.get('topLabel')})}\n
    \n\n {generateChartLabel(chart, i18n)}\n {!autoLabel && !!chart.get('label') && ({chart.get('label')})}\n
    \n\n \n {i18n.get('expires_at')}: {moment(savedChart.get('expiresAt')).format('ll')}\n \n \n \n \n\n
    \n\n
    \n \n
    \n
    \n \n )\n}\n\nSavedChart.propTypes = {\n savedChart: PropTypes.instanceOf(Map).isRequired,\n expanded: PropTypes.bool.isRequired,\n data: PropTypes.any,\n\n onExpand: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport SavedChart from 'components/administration/saved_charts/saved_chart'\n\nimport { getSavedChartsChartData } from 'selectors'\n\nconst mapStateToProps = (state, { savedChart }) => ({\n savedChart,\n data: getSavedChartsChartData(state, savedChart.get('id'))\n})\n\nexport default connect(mapStateToProps)(SavedChart)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { List } from 'immutable'\n\nimport AppBar from 'containers/AppBar'\nimport ContentContainer from 'components/content_container'\nimport SavedChart from 'containers/administration/saved_charts/SavedChart'\n\nimport useI18n from 'hooks/useI18n'\n\nexport default function SavedCharts({ savedCharts, onExpand }) {\n const [expandedId, setExpandedId] = useState(null)\n const i18n = useI18n()\n\n const handleExpand = id => {\n if (id === expandedId) {\n setExpandedId(null)\n } else {\n setExpandedId(id)\n onExpand({ id })\n }\n }\n\n return (\n <>\n \n\n \n {savedCharts.map(savedChart => (\n \n ))}\n \n \n )\n}\n\nSavedCharts.propTypes = {\n savedCharts: PropTypes.instanceOf(List).isRequired,\n\n onExpand: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport SavedCharts from 'components/administration/saved_charts'\n\nimport { getSavedCharts } from 'selectors'\n\nimport { fetchSavedChartStart } from 'actions/saved_charts'\n\nconst mapStateToProps = state => ({\n savedCharts: getSavedCharts(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onExpand: fetchSavedChartStart\n }\n)(SavedCharts)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, List } from 'immutable'\nimport moment from 'moment-timezone'\nimport { makeStyles } from 'tss-react/mui'\nimport useI18n from 'hooks/useI18n'\n\nimport { Link } from '@mui/material'\n\nconst useStyles = makeStyles()({\n link: {\n cursor: 'pointer'\n },\n mediaReviewLabel: {\n marginRight: 5\n }\n})\n\nexport default function ModuleName({ data, mediaReviewIds, navigate }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const mediaReview = data.get('mediaReview')\n\n if (!mediaReview) {\n return (\n <>\n {i18n.get(`module_${data.get('moduleName')}`)}\n \n )\n }\n\n const startDate = moment(mediaReview.get('startDate'))\n const endDate = moment(mediaReview.get('endDate'))\n\n let date = `${startDate.format('L')} - ${endDate.format('L')}`\n\n if (startDate.isSame(endDate, 'day')) {\n date = startDate.format('L')\n }\n\n const mediaReviewLabel = (\n \n {data.getIn(['mediaReview', 'name'])} {date}\n \n )\n\n if (mediaReviewIds.includes(data.getIn(['mediaReview', 'id']))) {\n return (\n <>\n navigate(`/app/media_reviews/${data.getIn(['mediaReview', 'id'])}`)}\n >\n {mediaReviewLabel}\n \n\n ({i18n.get(`module_${data.get('moduleName')}`)})\n \n )\n }\n\n return (\n <>\n {mediaReviewLabel}\n\n ({i18n.get(`module_${data.get('moduleName')}`)})\n \n )\n}\n\nModuleName.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired,\n mediaReviewIds: PropTypes.instanceOf(List).isRequired,\n\n navigate: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ModuleName from 'components/administration/dispatch_log/module_name'\n\nimport { getMediaReviewIds } from 'selectors'\n\nimport { navigate } from 'actions/navigation'\n\nconst mapStateToProps = (state, { data }) => ({\n mediaReviewIds: getMediaReviewIds(state),\n data\n})\n\nexport default connect(\n mapStateToProps,\n {\n navigate\n }\n)(ModuleName)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport RefreshIcon from '@mui/icons-material/Refresh'\n\nimport { Button } from 'containers/themed'\nimport AppBarComp from 'containers/AppBar'\n\nimport useI18n from 'hooks/useI18n'\n\nexport default function AppBar({ onClick, loading }) {\n const i18n = useI18n()\n\n return (\n }\n onClick={onClick}\n color=\"inherit\"\n >\n {i18n.get('refresh')}\n \n )}\n />\n )\n}\n\nAppBar.propTypes = {\n loading: PropTypes.bool.isRequired,\n\n onClick: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport AppBar from 'components/administration/dispatch_log/app_bar'\n\nimport { fetchDispatchLogStart } from 'actions/export'\n\nimport { getDispatchLogLoading } from 'selectors'\n\nconst mapStateToProps = state => ({\n loading: getDispatchLogLoading(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClick: fetchDispatchLogStart\n }\n)(AppBar)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport { faJs } from '@fortawesome/free-brands-svg-icons/faJs'\nimport { Map } from 'immutable'\nimport PictureAsPdfIcon from '@mui/icons-material/PictureAsPdf'\nimport TableViewIcon from '@mui/icons-material/TableView'\nimport CodeIcon from '@mui/icons-material/Code'\nimport { makeStyles } from 'tss-react/mui'\nimport { Link } from '@mui/material'\n\nconst useStyles = makeStyles()({\n faIcon: {\n fontSize: 20,\n marginTop: -1\n },\n attachments: {\n display: 'flex',\n alignItems: 'center'\n },\n attachment: {\n marginRight: 5,\n\n '&:hover': {\n opacity: 0.7\n }\n }\n})\n\nexport default function Attachments({ data }) {\n const { classes } = useStyles()\n\n const iconConfig = {\n 'application/json': (\n \n ),\n 'application/pdf': ,\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': ,\n 'application/xml': ,\n 'text/html': \n }\n\n return (\n
    \n {data.get('attachments').map(attachment => (\n \n {iconConfig[attachment.get('mimeType')]}\n \n ))}\n
    \n )\n}\n\nAttachments.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired\n}\n","import React from 'react'\n\nimport PropTypes from 'prop-types'\nimport { Map, Set } from 'immutable'\n\nimport { Button } from 'containers/themed'\n\nexport default function RecipientStats({ onClick, data, openIds }) {\n const id = data.get('id')\n\n const toggleEmailOpen = () => {\n if (openIds.has(id)) {\n return onClick(openIds.delete(id))\n }\n\n return onClick(openIds.add(id))\n }\n\n return (\n toggleEmailOpen(id)}\n >\n {data.get('recipients').filter(r => r.get('succeeded')).size}/{data.get('recipients').size}\n \n )\n}\n\nRecipientStats.propTypes = {\n openIds: PropTypes.instanceOf(Set).isRequired,\n data: PropTypes.instanceOf(Map).isRequired,\n\n onClick: PropTypes.func.isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport { red, green } from '@mui/material/colors'\n\nconst useStyles = makeStyles()({\n recipients: {\n maxHeight: 200,\n overflowY: 'auto'\n },\n green: {\n color: green[500]\n },\n red: {\n color: red[500]\n }\n})\n\nexport default function Recipients({ data }) {\n const { classes } = useStyles()\n\n return data.get('recipients').map(recipient => (\n \n {recipient.get('emailAddress')}\n \n ))\n}\n\nRecipients.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\n\nexport default function User({ data }) {\n return (\n <>\n {\n [\n data.getIn(['account', 'firstName']),\n data.getIn(['account', 'lastName'])\n ].filter(s => !!s).join(' ')\n }\n \n )\n}\n\nUser.propTypes = {\n data: PropTypes.instanceOf(Map).isRequired\n}\n","import React, { Fragment, useEffect, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { List, Set } from 'immutable'\nimport moment from 'moment-timezone'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Table, TableBody, TableCell, TableHead, TableRow, Paper } from '@mui/material'\nimport HistoryToggleOffIcon from '@mui/icons-material/HistoryToggleOff'\nimport AccessTimeIcon from '@mui/icons-material/AccessTime'\nimport CancelIcon from '@mui/icons-material/Cancel'\nimport ReportProblemRoundedIcon from '@mui/icons-material/ReportProblemRounded'\n\nimport useI18n from 'hooks/useI18n'\n\nimport ContentContainer from 'components/content_container'\nimport NrxProgressBar from 'components/nrx_progress_bar'\n\nimport { Button } from 'containers/themed'\nimport CenterMessage from 'containers/CenterMessage'\nimport ModuleName from 'containers/administration/dispatch_log/ModuleName'\nimport AppBar from 'containers/administration/dispatch_log/AppBar'\n\nimport Attachments from './attachments'\nimport RecipientStats from './recipient_stats'\nimport Recipients from './recipients'\nimport User from './user'\n\nconst useStyles = makeStyles()(theme => ({\n loading: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '89vh',\n width: '100%'\n },\n dispatchTime: {\n display: 'flex',\n alignItems: 'center'\n },\n scheduledForActions: {\n display: 'flex',\n alignItems: 'center'\n },\n scheduledForInfo: {\n padding: 10\n },\n problemIcon: {\n color: theme.palette.error.main,\n marginRight: 5\n },\n dispatchTimeIcon: {\n marginRight: 5,\n color: theme.palette.grey[500]\n },\n cancelButton: {\n marginLeft: 10\n },\n cancelled: {\n textDecoration: 'line-through',\n color: theme.palette.warning.main\n },\n failed: {\n cursor: 'pointer',\n color: theme.palette.error.main\n }\n}))\n\nexport default function DispatchLog({ onCancelClick, onMount, dispatchLog, loading }) {\n const { classes, cx } = useStyles()\n const i18n = useI18n()\n const [openIds, setOpenIds] = useState(Set([]))\n\n useEffect(() => {\n onMount()\n }, [onMount])\n\n const renderDispatchTime = data => {\n const scheduledFor = data.get('scheduledFor') ? moment(data.get('scheduledFor')) : null\n const scheduledJobState = data.getIn(['scheduledJob', 'state'])\n\n if (scheduledJobState === 'SCHEDULED') {\n return (\n
    \n \n {scheduledFor.format('L')} {scheduledFor.format('LTS')}\n onCancelClick(data.get('id'))}\n >\n \n \n
    \n )\n }\n\n if (data.get('dispatchStatus') === 'CANCELLED') {\n return (\n
    \n \n {scheduledFor.format('L')} {scheduledFor.format('LTS')}\n
    \n )\n }\n\n if (data.get('dispatchStatus') === 'FAILED') {\n if (scheduledFor) {\n return (\n \n \n {scheduledFor.format('L')} {scheduledFor.format('LTS')}\n \n )\n }\n\n // fallback: should be removed once scheduledFor is always set\n return (\n
    \n \n {moment(data.get('createdAt')).format('L')} {moment(data.get('createdAt')).format('LTS')}\n
    \n )\n }\n\n if (scheduledFor) {\n return (\n
    \n \n {scheduledFor.format('L')} {scheduledFor.format('LTS')}\n
    \n )\n }\n\n // fallback: should be removed once scheduledFor is always set\n return (\n
    \n \n {moment(data.get('createdAt')).format('L')} {moment(data.get('createdAt')).format('LTS')}\n
    \n )\n }\n\n return (\n <>\n \n\n \n {loading && (\n
    \n \n
    \n )}\n\n {!loading && dispatchLog.isEmpty() && (\n \n )}\n\n {!loading && !dispatchLog.isEmpty() && (\n \n \n \n \n {i18n.get('created_at')}\n {i18n.get('dispatch_time')}\n {i18n.get('module')}\n {i18n.get('subject')}\n {i18n.get('user')}\n {i18n.get('files')}\n {i18n.get('views')}\n {i18n.get('recipients')}\n \n \n \n {dispatchLog.map((data, index) => (\n \n \n \n {moment(data.get('createdAt')).format('L')} {moment(data.get('createdAt')).format('LTS')}\n \n \n {renderDispatchTime(data)}\n \n \n \n \n \n {data.get('subject')}\n \n \n \n \n \n \n \n \n {data.get('viewCount')}\n \n \n \n \n \n\n {openIds.has(data.get('id')) ? (\n \n \n \n \n \n ) : null}\n \n ))}\n \n
    \n
    \n )}\n
    \n \n )\n}\n\nDispatchLog.propTypes = {\n dispatchLog: PropTypes.instanceOf(List).isRequired,\n loading: PropTypes.bool.isRequired,\n\n onCancelClick: PropTypes.func.isRequired,\n onMount: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport DispatchLog from 'components/administration/dispatch_log'\n\nimport { cancelDispatchStart, fetchDispatchLogStart } from 'actions/export'\n\nimport { getDispatchLogData, getDispatchLogLoading } from 'selectors'\n\nconst mapStateToProps = state => ({\n dispatchLog: getDispatchLogData(state),\n loading: getDispatchLogLoading(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onCancelClick: cancelDispatchStart,\n onMount: fetchDispatchLogStart\n }\n)(DispatchLog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Box,\n Dialog,\n Paper,\n Typography,\n Zoom\n} from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { rgbaColorFromHex } from 'utils/color'\nimport { IconButton, Button } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n mobileContentContainer: {\n padding: '0px 20px 20px 20px'\n },\n contentContainer: {\n width: '100%',\n [theme.breakpoints.down('sm')]: {\n overflowY: 'auto',\n width: '100%',\n height: '100%'\n }\n },\n closeButtonContainer: {\n width: '100%',\n display: 'flex',\n justifyContent: 'flex-end'\n },\n closeButton: {\n color: theme.palette.common.black\n },\n unlockButton: {\n marginTop: 20\n },\n content: {\n display: 'flex',\n justifyContent: 'space-between'\n },\n leftContainer: {\n padding: '60px 50px 50px 50px',\n flex: '1 1 60%'\n },\n rightContainer: {\n textAlign: 'center',\n flex: '1 1 40%',\n backgroundColor: `${rgbaColorFromHex(theme.palette.primary.main, 0.3)}`\n },\n mobileImageContainer: {\n textAlign: 'center',\n marginTop: 20,\n padding: '20px 10px 20px 10px',\n backgroundColor: `${rgbaColorFromHex(theme.palette.primary.main, 0.3)}`\n },\n imageContainer: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '80%'\n }\n}))\n\nconst WelcomeDialog = ({\n open,\n status,\n onClose,\n onUnlockClick\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const device = useDevice()\n\n const handleClose = () => {\n onClose()\n }\n\n const handleUnlockClick = () => {\n onUnlockClick()\n onClose()\n }\n\n const themaxWelcomeMessage = (\n <>\n \n \n \n )\n\n const unlockButton = (\n \n {i18n.get('unlock')}\n \n )\n\n const renderContent = () => {\n if (device.get('mobile')) {\n return (\n \n \n \n \n \n \n {themaxWelcomeMessage}\n \n \n {unlockButton}\n \n \n )\n }\n\n return (\n <>\n \n {themaxWelcomeMessage}\n {unlockButton}\n \n \n \n \n \n \n \n \n \n \n \n \n )\n }\n\n return (\n \n \n \n {renderContent()}\n \n \n \n )\n}\n\nWelcomeDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n status: PropTypes.string,\n\n onClose: PropTypes.func.isRequired,\n onUnlockClick: PropTypes.func.isRequired\n}\n\nexport default WelcomeDialog\n","import { connect } from 'react-redux'\n\nimport WelcomeDialog from 'components/themax/welcome_dialog'\nimport { closeWelcomeDialog, openOrderDialog } from 'actions/themax'\nimport { getShowWelcomeDialog, getThemaxPaidFeatureStatus } from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getShowWelcomeDialog(state),\n status: getThemaxPaidFeatureStatus(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose: closeWelcomeDialog,\n onUnlockClick: openOrderDialog\n }\n)(WelcomeDialog)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\nimport { Map } from 'immutable'\n\nimport moment from 'moment-timezone'\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Box,\n Checkbox,\n Dialog,\n List,\n ListItem,\n ListItemIcon,\n Paper,\n Typography,\n Zoom\n} from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\nimport CheckCircleIcon from '@mui/icons-material/CheckCircle'\n\nimport { rgbaColorFromHex } from 'utils/color'\nimport { IconButton, Button } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n mobileContentContainer: {\n padding: '0px 20px 20px 20px'\n },\n contentContainer: {\n width: '100%',\n [theme.breakpoints.down('sm')]: {\n overflowY: 'auto',\n width: '100%',\n height: '100%'\n }\n },\n closeButtonContainer: {\n width: '100%',\n display: 'flex',\n justifyContent: 'flex-end'\n },\n closeButton: {\n color: theme.palette.common.black\n },\n orderConditions: {\n display: 'flex',\n justifyContent: 'flex-start',\n alignItems: 'flex-start',\n textAlign: 'left',\n\n '& a': {\n color: theme.palette.secondary.main\n }\n },\n termsAndConditionsText: {\n marginTop: 10\n },\n orderButton: {\n backgroundColor: theme.palette.primary.main,\n opacity: 1,\n margin: '20px'\n },\n content: {\n display: 'flex',\n justifyContent: 'space-between'\n },\n leftContainer: {\n padding: '60px 50px 50px 50px',\n flex: '1 1 60%'\n },\n rightContainer: {\n textAlign: 'center',\n flex: '1 1 40%',\n backgroundColor: `${rgbaColorFromHex(theme.palette.primary.main, 0.3)}`\n },\n mobilePriceContainer: {\n backgroundColor: `${rgbaColorFromHex(theme.palette.primary.main, 0.3)}`,\n textAlign: 'center',\n padding: '10px 10px 50px 10px'\n },\n priceContainer: {\n padding: '0px 50px 50px 50px'\n },\n price: {\n paddingTop: 20\n }\n}))\n\nconst OrderDialog = ({\n loading,\n paidFeature,\n open,\n onClose,\n onOrderClick,\n termsAndConditionsLink,\n privacyLink\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const device = useDevice()\n const [orderCondition1, setOrderCondition1] = useState(false)\n const [orderCondition2, setOrderCondition2] = useState(false)\n\n const date = `${moment().format('YYYY')}/${moment().add(1, 'Y').format('YY')}`\n\n const handleClose = () => {\n onClose()\n }\n\n const handleUnlockClick = () => {\n onOrderClick(paidFeature.get('paidFeatureId'))\n onClose()\n }\n\n const handleOrderCondition1 = () => {\n setOrderCondition1(!orderCondition1)\n }\n\n const handleOrderCondition2 = () => {\n setOrderCondition2(!orderCondition2)\n }\n\n const themaxOrderTitle = (\n \n {i18n.get('themax_order_title', { date })}\n \n )\n\n const themaxOrderSubtitle = (\n \n {i18n.get('themax_order_subtitle')}\n \n )\n\n const benfitsList = (\n \n \n \n \n \n \n {i18n.get('themax_benefits_item_01')}\n \n \n \n \n \n \n \n {i18n.get('themax_benefits_item_02')}\n \n \n \n \n \n \n \n {i18n.get('themax_benefits_item_03')}\n \n \n \n \n \n \n \n {i18n.get('themax_benefits_item_04')}\n \n \n \n \n \n \n \n {i18n.get('themax_benefits_item_05')}\n \n \n \n \n \n \n \n {i18n.get('themax_benefits_item_06')}\n \n \n \n )\n\n const themaxPrice = (\n \n {paidFeature.getIn(['config', 'price'])} {paidFeature.getIn(['config', 'currency'])}\n \n )\n\n const themaxPriceExplaination = (\n <>\n {paidFeature.getIn(['config', 'vat']) > 0 && (\n \n + {paidFeature.getIn(['config', 'vat'])}% {i18n.get('vat')}\n \n )}\n \n {i18n.get('themax_price_explanation')}\n \n \n )\n\n const renderOrderConditions = () => (\n <>\n \n \n \n \n \n \n \n \n \n )\n\n const orderButton = (\n \n {i18n.get('order_now')}\n \n )\n\n const renderContent = () => {\n if (device.get('mobile')) {\n return (\n \n \n \n \n \n \n {themaxOrderTitle}\n {themaxOrderSubtitle}\n {benfitsList}\n \n {themaxPrice}\n {themaxPriceExplaination}\n {renderOrderConditions()}\n {orderButton}\n \n \n )\n }\n\n return (\n <>\n \n {themaxOrderTitle}\n {themaxOrderSubtitle}\n {benfitsList}\n \n \n \n \n \n \n \n \n {themaxPrice}\n {themaxPriceExplaination}\n {renderOrderConditions()}\n {orderButton}\n \n \n \n )\n }\n\n return (\n \n \n \n {renderContent()}\n \n \n \n )\n}\n\nOrderDialog.propTypes = {\n loading: PropTypes.bool.isRequired,\n open: PropTypes.bool.isRequired,\n paidFeature: PropTypes.instanceOf(Map).isRequired,\n termsAndConditionsLink: PropTypes.string,\n privacyLink: PropTypes.string,\n\n onClose: PropTypes.func.isRequired,\n onOrderClick: PropTypes.func.isRequired\n}\n\nexport default OrderDialog\n","import { connect } from 'react-redux'\n\nimport OrderDialog from 'components/themax/order_dialog'\nimport { closeOrderDialog } from 'actions/themax'\nimport { orderPaidVersionStart } from 'actions/config'\nimport {\n getShowOrderDialog,\n getOrderRequestRunning,\n getStaticPaidFeatureById,\n getWhitelabelTermsAndConditionsLink,\n getWhitelabelPrivacyLink\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getShowOrderDialog(state),\n loading: getOrderRequestRunning(state),\n paidFeature: getStaticPaidFeatureById(state, 'themax'),\n termsAndConditionsLink: getWhitelabelTermsAndConditionsLink(state),\n privacyLink: getWhitelabelPrivacyLink(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose: closeOrderDialog,\n onOrderClick: orderPaidVersionStart\n }\n)(OrderDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Box,\n Dialog,\n Paper,\n Typography,\n Zoom\n} from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\n\nimport { IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n contentContainer: {\n width: '100%',\n padding: '0px 0px 20px 0px',\n [theme.breakpoints.down('sm')]: {\n overflowY: 'auto',\n width: '100%',\n height: '100%'\n }\n },\n closeButtonContainer: {\n display: 'flex',\n justifyContent: 'flex-end'\n },\n closeButton: {\n color: theme.palette.common.black\n },\n content: {\n padding: 40,\n textAlign: 'center'\n },\n successMessage: {\n '& a': {\n color: theme.palette.secondary.main,\n fontWeight: 700\n }\n }\n}))\n\nconst OrderSuccessDialog = ({\n open,\n paidFeature,\n onClose\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const handleClose = () => {\n onClose()\n }\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n {i18n.get('paid_feature_order_success_title')}\n \n \n \n \n \n )\n}\n\nOrderSuccessDialog.propTypes = {\n open: PropTypes.bool.isRequired,\n paidFeature: PropTypes.instanceOf(Map).isRequired,\n\n onClose: PropTypes.func.isRequired\n}\n\nexport default OrderSuccessDialog\n","import { connect } from 'react-redux'\n\nimport OrderSuccessDialog from 'components/themax/order_success_dialog'\nimport { closeOrderSuccessDialog } from 'actions/themax'\nimport { getShowOrderSuccessDialog, getStaticPaidFeatureById } from 'selectors'\n\nconst mapStateToProps = state => ({\n open: getShowOrderSuccessDialog(state),\n paidFeature: getStaticPaidFeatureById(state, 'themax')\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose: closeOrderSuccessDialog\n }\n)(OrderSuccessDialog)\n","import { connect } from 'react-redux'\n\nimport FilterableMenu from 'components/filterable_menu'\n\nimport { executeThemaxSavedSearch } from 'actions/themax'\nimport { navigate } from 'actions/navigation'\n\nimport {\n getThemaxSavedSearches as getSavedSearches,\n getThemaxSavedSearchesRequestRunning as getRequestRunning\n} from 'selectors/themax'\n\nconst mapStateToProps = state => ({\n items: getSavedSearches(state).get('items'),\n loading: getRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onItemClick: executeThemaxSavedSearch,\n onMainClick: () => navigate('saved_searches')\n }\n)(FilterableMenu)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { Icon } from '@mui/material'\n\nimport { Button, IconButton } from 'containers/themed'\nimport SavedSearchesMenu from 'containers/themax/saved_searches/SavedSearchesMenu'\n\nimport masterConfig from 'static/master_config'\n\nexport default function SavedSearchesActions({ device }) {\n const i18n = useI18n()\n\n let handle = (\n {masterConfig.getIn(['icons', 'savedSearches'])}}\n >\n {i18n.get('saved_searches')}\n \n )\n\n if (device.get('lt-lg')) {\n handle = (\n \n {masterConfig.getIn(['icons', 'savedSearches'])}\n \n )\n }\n\n return (\n \n )\n}\n\nSavedSearchesActions.propTypes = {\n device: PropTypes.object.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport SavedSearchesActions from 'components/themax/saved_searches/SavedSearchesActions'\n\nimport {\n getDevice\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n device: getDevice(state)\n})\n\nexport default connect(\n mapStateToProps,\n {}\n)(SavedSearchesActions)\n","import React from 'react'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { StaggeredList, StaggeredListItem } from 'components/staggered_list'\n\nimport SavedSearchesActions from 'containers/themax/saved_searches/SavedSearchesActions'\n\nconst useStyles = makeStyles()({\n actionsWrapper: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center'\n },\n tagsIcon: {\n marginRight: '0.3em'\n }\n})\n\nexport default function Actions() {\n const { classes } = useStyles()\n\n const actions = []\n\n actions.push(\n \n )\n\n return (\n
    \n \n
    \n {actions.map((action, index) => (\n \n {action}\n \n ))}\n
    \n
    \n
    \n )\n}\n","import { connect } from 'react-redux'\n\nimport Actions from 'components/themax/actions/Actions'\n\nimport { getDevice } from 'selectors'\n\nconst mapStateToProps = state => ({\n device: getDevice(state)\n})\n\nexport default connect(\n mapStateToProps,\n {}\n)(Actions)\n","import { connect } from 'react-redux'\n\nimport SearchBar from 'components/search_bar'\nimport { uiEnteredQuery } from 'actions/themax'\nimport { showAppMessage } from 'actions/app'\n\nimport {\n getI18n,\n getColors,\n getThemaxSearchBarLabel,\n getWhitelabelTheme,\n getThemaxSearchRequestRunning\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n colors: getColors(state),\n whitelabelTheme: getWhitelabelTheme(state),\n label: getThemaxSearchBarLabel(state),\n loading: getThemaxSearchRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSubmit: uiEnteredQuery,\n onError: showAppMessage\n }\n)(SearchBar)\n","import { connect } from 'react-redux'\n\nimport QueryTypeDropdown from 'components/query_type_dropdown'\nimport { setSelectedQueryType } from 'actions/themax'\nimport { getThemaxQueryType, getI18n } from 'selectors'\n\nconst mapStateToProps = state => ({\n value: getThemaxQueryType(state),\n i18n: getI18n(state),\n moduleName: 'themax'\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: setSelectedQueryType\n }\n)(QueryTypeDropdown)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Button, IconButton } from 'containers/themed'\nimport ScheduleIcon from '@mui/icons-material/Schedule'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport useDevice from 'hooks/useDevice'\nimport useI18n from 'hooks/useI18n'\n\nimport { getDateString } from 'utils/date'\n\nconst useStyles = makeStyles()(theme => ({\n iconButton: {\n [theme.breakpoints.only('sm')]: {\n padding: 8\n }\n }\n}))\n\nexport default function DateFilterButton({\n active,\n view,\n onClick,\n selectedDate\n}) {\n const { classes } = useStyles()\n const device = useDevice()\n const i18n = useI18n()\n\n if (view === 'calendar') {\n return null\n }\n\n const renderDateButton = () => {\n let comp = (\n
    \n\n }\n >\n \n {getDateString(selectedDate.get('range'), selectedDate.get('from'), selectedDate.get('to'), i18n)}\n \n \n
    \n )\n\n if (device.get('lt-md')) {\n comp = (\n \n \n \n )\n }\n\n return comp\n }\n\n return (<>{renderDateButton()})\n}\n\nDateFilterButton.propTypes = {\n onClick: PropTypes.func.isRequired,\n active: PropTypes.bool.isRequired,\n view: PropTypes.string.isRequired,\n selectedDate: PropTypes.instanceOf(Map)\n}\n","import { connect } from 'react-redux'\n\nimport DateFilterButton from 'components/themax/date_filter_button'\n\nimport { getThemaxSelectedDate, getThemaxTabView } from 'selectors'\n\nconst mapStateToProps = state => ({\n selectedDate: getThemaxSelectedDate(state),\n view: getThemaxTabView(state)\n})\n\nexport default connect(mapStateToProps, {})(DateFilterButton)\n","export const valueLabelFormat = (value, marks) => marks.findIndex(ms => ms.value === value) + 1\n\nexport const descale = (scaledValue, marks) => {\n const markIndex = marks.findIndex(\n mark => mark.scaledValue >= scaledValue\n )\n const mark = marks[markIndex]\n\n if (mark.scaledValue === scaledValue) {\n return mark.value\n }\n\n if (markIndex === 0) {\n return 0\n }\n\n const m = (mark.scaledValue - marks[markIndex - 1].scaledValue)\n / (mark.value - marks[markIndex - 1].value || 1)\n const dX = scaledValue - marks[markIndex - 1].scaledValue\n\n return dX / m + marks[markIndex - 1].value\n}\n\nexport const scale = (value, marks) => {\n const markIndex = marks.findIndex(mark => mark.value >= value)\n const mark = marks[markIndex]\n\n if (mark.value === value) {\n return mark.scaledValue\n }\n\n const m = (mark.scaledValue - marks[markIndex - 1].scaledValue)\n / (mark.value - marks[markIndex - 1].value || 1)\n const dX = value - marks[markIndex - 1].value\n\n return m * dX + marks[markIndex - 1].scaledValue\n}\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { List, Map } from 'immutable'\nimport KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight'\nimport KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp'\nimport CloseIcon from '@mui/icons-material/Close'\nimport SettingsBackupRestoreIcon from '@mui/icons-material/SettingsBackupRestore'\nimport { makeStyles } from 'tss-react/mui'\n\nimport {\n SearchFields,\n ThemaxSearchFields,\n ThemaxReachFilterOptions as reachFilterOptions,\n ThemaxPageAveFilterOptions as pageAveFilterOptions\n} from 'static/constants'\n\nimport { mapToOptions } from 'utils/autocomplete'\nimport { scale, descale } from 'utils/slider'\nimport { formatNumber } from 'utils/number'\nimport { RaisedPrimaryButton, Button, Autocomplete, IconButton } from 'containers/themed'\nimport ActionBar from 'components/search_form/action_bar'\n\nimport {\n Box,\n Divider,\n FormControlLabel,\n FormGroup,\n Grid,\n Slider,\n Switch,\n Typography\n} from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n autoComplete: {\n minWidth: 300\n },\n buttonContainer: {\n backgroundColor: theme.nrx.paper.paperOnBackgroundColor,\n justifyContent: 'space-between',\n [theme.breakpoints.up('lg')]: {\n width: 750\n },\n '& > div:last-child': {\n '& > *': {\n marginRight: 10\n },\n '& > *:last-child': {\n marginRight: 0\n }\n },\n '& > div:first-of-type': {\n marginRight: 0\n }\n },\n outlinksTitle: {\n marginBottom: 10\n },\n spacer: {\n flex: 0.9,\n [theme.breakpoints.only('xs')]: {\n display: 'none'\n }\n },\n searchForm: {\n overflow: 'visible',\n padding: 20,\n [theme.breakpoints.up('lg')]: {\n height: '90%',\n overflowY: 'auto'\n }\n },\n tonality: {\n padding: '0 12px'\n },\n divider: {\n marginBottom: 10\n },\n header: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n '& > *:last-child': {\n marginRight: -5\n }\n }\n}))\n\nconst mapToEntity = (entities, values) => (values || List([]))\n .map(({ value }) => {\n const found = entities.find(entity => entity.get('id') === value)\n\n if (found) {\n return found.toJS()\n }\n\n return null\n })\n .filter(e => e)\n\nconst Row = props => (\n \n)\n\nconst Col = props => (\n \n)\n\nconst SearchForm = props => {\n const { classes } = useStyles()\n const {\n mediaTypes,\n mediaTopics,\n countries,\n i18n,\n hasPaidVersion,\n device,\n applyFilters,\n resetFilters,\n setSelectedFilters,\n onClose\n } = props\n\n const [selectedMediaTypes, setSelectedMediaTypes] = useState(mapToOptions(props.selectedMediaTypes))\n const [selectedMediaTopics, setSelectedMediaTopics] = useState(mapToOptions(props.selectedMediaTopics))\n const [selectedCountries, setSelectedCountries] = useState(mapToOptions(props.selectedCountries))\n const [booleans, setBooleans] = useState(props.booleans)\n const [reachFilter, setReachFilter] = useState(props.reachFilter)\n const [pageAveFilter, setPageAveFilter] = useState(props.pageAveFilter)\n const [active, setActive] = useState(props.active)\n const [previousActive, setPreviousActive] = useState(null)\n\n if (active !== previousActive) {\n setSelectedMediaTypes(mapToOptions(props.selectedMediaTypes))\n setSelectedMediaTopics(mapToOptions(props.selectedMediaTopics))\n setSelectedCountries(mapToOptions(props.selectedCountries))\n setPreviousActive(active)\n setActive(props.active)\n setBooleans(props.booleans)\n setReachFilter(props.reachFilter)\n setPageAveFilter(props.pageAveFilter)\n }\n\n const handleApply = () => {\n setSelectedFilters({\n mediaTypes: mapToEntity(mediaTypes, selectedMediaTypes),\n mediaTopics: mapToEntity(mediaTopics, selectedMediaTopics),\n countries: mapToEntity(countries, selectedCountries),\n booleans,\n reachFilter,\n pageAveFilter\n })\n\n applyFilters()\n }\n\n const renderFilter = (comp, ...names) => {\n if (!hasPaidVersion && names.includes(ThemaxSearchFields.BOOKMARKED_ONLY)) {\n return null\n }\n\n return comp\n }\n\n const renderAutocomplete = (\n labelKey,\n onChange,\n source,\n value,\n name,\n helperText,\n creatable,\n allowEmptySource,\n onCreateOption,\n disableOptionsSelect\n ) => {\n if (!source.size && !allowEmptySource) {\n return null\n }\n\n return renderFilter((\n
    \n `${i18n.get('add')}: ${inputValue}`}\n onCreateOption={onCreateOption}\n disableOptionsSelect={disableOptionsSelect}\n textFieldProps={{\n helperText\n }}\n />\n
    \n
    \n ), name)\n }\n\n const renderCol = (children, Comp = Col) => {\n if (!children) {\n return null\n }\n\n return {children}\n }\n\n const renderReachFilter = () => (\n <>\n setReachFilter(reachFilter.set('filtered', e.target.checked))}\n />\n )}\n />\n {reachFilter.get('filtered') && (\n \n setReachFilter(\n reachFilter.set('min', scale(value[0], reachFilterOptions.marks))\n .set('max', scale(value[1], reachFilterOptions.marks))\n )}\n value={[\n descale(reachFilter.get('min'), reachFilterOptions.marks),\n descale(reachFilter.get('max'), reachFilterOptions.marks)\n ]}\n scale={value => scale(value, reachFilterOptions.marks)}\n marks={reachFilterOptions.marks}\n min={0}\n valueLabelFormat={formatNumber}\n valueLabelDisplay=\"auto\"\n max={100}\n />\n \n )}\n \n )\n\n const renderPageAveFilter = () => (\n <>\n setPageAveFilter(pageAveFilter.set('filtered', e.target.checked))}\n />\n )}\n />\n {pageAveFilter.get('filtered') && (\n \n setPageAveFilter(\n pageAveFilter.set('min', scale(value[0], pageAveFilterOptions.marks))\n .set('max', scale(value[1], pageAveFilterOptions.marks))\n )}\n value={[\n descale(pageAveFilter.get('min'), pageAveFilterOptions.marks),\n descale(pageAveFilter.get('max'), pageAveFilterOptions.marks)\n ]}\n scale={value => scale(value, pageAveFilterOptions.marks)}\n marks={pageAveFilterOptions.marks}\n min={0}\n valueLabelFormat={formatNumber}\n valueLabelDisplay=\"auto\"\n max={100}\n />\n \n )}\n \n )\n\n return (\n
    \n
    \n \n {i18n.get('advanced_search')}\n \n onClose()}\n title={i18n.get('close')}\n size=\"large\"\n >\n {device.get('lt-lg') ? : }\n \n
    \n \n\n \n \n {renderCol(\n renderAutocomplete(\n 'select_media_types',\n value => setSelectedMediaTypes(value),\n mediaTypes,\n selectedMediaTypes,\n SearchFields.MEDIA_TYPES\n )\n )}\n \n \n {renderCol(\n renderAutocomplete(\n 'select_media_topics',\n value => setSelectedMediaTopics(value),\n mediaTopics,\n selectedMediaTopics,\n SearchFields.MEDIA_TOPICS\n )\n )}\n \n \n \n \n {renderCol(\n renderAutocomplete(\n 'select_countries',\n value => setSelectedCountries(value),\n countries,\n selectedCountries,\n SearchFields.COUNTRIES\n )\n )}\n \n \n \n {renderFilter((\n setBooleans(booleans.set('bookmarkedOnly', e.target.checked))}\n />\n )}\n />\n\n ), ThemaxSearchFields.BOOKMARKED_ONLY)}\n \n \n \n \n \n \n {renderReachFilter()}\n \n \n {renderPageAveFilter()}\n \n \n\n {device.get('lt-lg') && (\n <>\n
    \n \n
    \n \n )}\n\n \n
    \n\n
    \n {device.get('lt-sm') && (\n onClose()}\n size=\"large\"\n >\n \n \n )}\n\n {device.get('gt-xs') && (\n \n )}\n\n {device.get('lt-sm') && (\n resetFilters()}\n size=\"large\"\n >\n \n \n )}\n\n {device.get('gt-xs') && (\n resetFilters()}\n >\n {i18n.get('reset_filters')}\n \n )}\n\n \n {i18n.get('apply_filters')}\n \n
    \n \n
    \n )\n}\n\nexport default React.memo(SearchForm, (prevProps, nextProps) => (nextProps.active))\n\nSearchForm.propTypes = {\n active: PropTypes.bool.isRequired,\n mediaTypes: PropTypes.instanceOf(List).isRequired,\n mediaTopics: PropTypes.instanceOf(List).isRequired,\n countries: PropTypes.instanceOf(List).isRequired,\n reachFilter: PropTypes.instanceOf(Map),\n pageAveFilter: PropTypes.instanceOf(Map),\n hasPaidVersion: PropTypes.bool.isRequired,\n selectedMediaTypes: PropTypes.instanceOf(List).isRequired,\n selectedMediaTopics: PropTypes.instanceOf(List).isRequired,\n selectedCountries: PropTypes.instanceOf(List).isRequired,\n i18n: PropTypes.object.isRequired,\n device: PropTypes.instanceOf(Map).isRequired,\n booleans: PropTypes.instanceOf(Map).isRequired,\n\n applyFilters: PropTypes.func.isRequired,\n resetFilters: PropTypes.func.isRequired,\n setSelectedFilters: PropTypes.func.isRequired,\n onClose: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\nimport { List } from 'immutable'\n\nimport {\n toggleAdvancedSearch,\n setSelectedThemaxFilters as setSelectedFilters,\n applyThemaxFilters as applyFilters,\n resetThemaxFilters as resetFilters\n} from 'actions/themax'\nimport SearchForm from 'components/themax/search_form'\nimport {\n getAllStaticMediaTypes,\n getAllStaticMediaTopics,\n getThemaxCountries,\n getThemaxFilters,\n getThemaxShowAdvancedSearch,\n getI18n,\n getDevice,\n getHasThemaxPaidVersion\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n active: getThemaxShowAdvancedSearch(state),\n mediaTypes: getAllStaticMediaTypes(state).filter(mediaType => mediaType.get('mediaSourceIds', List()).includes(7)),\n mediaTopics: getAllStaticMediaTopics(state),\n countries: getThemaxCountries(state),\n reachFilter: getThemaxFilters(state).get('reachFilter'),\n pageAveFilter: getThemaxFilters(state).get('pageAveFilter'),\n selectedMediaTypes: getThemaxFilters(state).get('mediaTypes'),\n selectedMediaTopics: getThemaxFilters(state).get('mediaTopics'),\n selectedCountries: getThemaxFilters(state).get('countries'),\n hasPaidVersion: getHasThemaxPaidVersion(state),\n booleans: getThemaxFilters(state).get('booleans'),\n i18n: getI18n(state),\n device: getDevice(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n setSelectedFilters,\n applyFilters,\n resetFilters,\n onClose: toggleAdvancedSearch\n }\n)(SearchForm)\n","import { connect } from 'react-redux'\n\nimport { List } from 'immutable'\nimport DateForm from 'components/date_form'\nimport { uiApplyDateFilter, uiChooseQuickSelect, toggleDateForm } from 'actions/themax'\nimport {\n getThemaxSelectedDate,\n getLocale,\n getI18n,\n getDevice,\n getThemaxShowDateForm\n} from 'selectors'\n\nconst mapStateToProps = state => {\n const selectedDate = getThemaxSelectedDate(state)\n\n return {\n active: getThemaxShowDateForm(state),\n dateFrom: selectedDate.get('from'),\n dateTo: selectedDate.get('to'),\n dateRange: selectedDate.get('range'),\n dateType: selectedDate.get('type'),\n locale: getLocale(state),\n i18n: getI18n(state),\n device: getDevice(state),\n allowedDateTypes: List(['releaseDate']),\n hasDateRestriction: false,\n timeLimit: 5, // irrelevant\n timeUnit: 'years', // irrelevant\n hasTimelineFilter: false\n }\n}\n\nexport default connect(\n mapStateToProps,\n {\n uiApplyDateFilter,\n uiChooseQuickSelect,\n onChangeDateType: () => {},\n onClose: toggleDateForm\n }\n)(DateForm)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport useDevice from 'hooks/useDevice'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport ThemedAppBar from 'containers/AppBar'\nimport Actions from 'containers/themax/Actions'\nimport SearchBar from 'containers/themax/SearchBar'\nimport QueryTypeDropdown from 'containers/themax/QueryTypeDropdown'\nimport DateFilterButton from 'containers/themax/DateFilterButton'\nimport SearchForm from 'containers/themax/SearchForm'\nimport DateForm from 'containers/themax/DateForm'\nimport { Button, IconButton } from 'containers/themed'\n\nimport { Drawer } from '@mui/material'\nimport FilterListIcon from '@mui/icons-material/FilterList'\n\nconst useStyles = makeStyles()(theme => ({\n searchBar: {\n transition: 'width 150ms',\n width: '25%',\n [theme.breakpoints.only('md')]: {\n marginLeft: '1em',\n width: '25%'\n },\n [theme.breakpoints.down('md')]: {\n width: '45%',\n marginLeft: '1em'\n },\n [theme.breakpoints.only('xs')]: {\n marginLeft: '1em'\n }\n },\n searchActions: {\n marginRight: 10,\n display: 'flex',\n [theme.breakpoints.only('xs')]: {\n marginLeft: 5,\n marginRight: 0\n },\n [theme.breakpoints.up('sm')]: {\n marginLeft: 20\n },\n '& > div:first-of-type': {\n marginRight: 10\n }\n },\n button: {\n marginLeft: '0.5em'\n },\n drawer: {\n overflowY: 'auto',\n [theme.breakpoints.up('lg')]: {\n width: 500\n }\n },\n searchFormDrawer: {\n [theme.breakpoints.up('lg')]: {\n width: 750\n }\n }\n}))\n\nexport default function AppBar({ showAdvancedSearch, toggleAdvancedSearch, showDateForm, toggleDateForm }) {\n const { classes, cx } = useStyles()\n const [barStyle, setBarStyle] = useState(null)\n const i18n = useI18n()\n const device = useDevice()\n\n const handleFocus = () => {\n let width = '100%'\n\n if (device.get('gt-md')) {\n width = '50%'\n }\n\n if (device.get('md')) {\n width = '40%'\n }\n\n setBarStyle({ width })\n }\n\n const handleBlur = () => {\n setTimeout(() => setBarStyle(null), 500)\n }\n\n const title = device.get('gt-md') ? `${i18n.get('themax')}` : undefined\n\n const renderFilterButton = () => {\n let comp = (\n
    \n toggleAdvancedSearch()}\n startIcon={}\n >\n {i18n.get('filter')}\n \n
    \n )\n\n if (device.get('lt-sm')) {\n comp = (\n toggleAdvancedSearch()}\n size=\"large\"\n >\n \n \n )\n }\n\n return comp\n }\n\n const renderActions = acts => {\n if (device.get('lt-lg') && barStyle) {\n return null\n }\n\n return acts\n }\n\n const renderSearchActions = () => renderActions(\n
    \n {renderFilterButton()}\n toggleDateForm()}\n active={showDateForm}\n />\n
    \n )\n\n const renderForms = () => {\n const anchor = device.get('lt-lg') ? 'top' : 'right'\n\n return (\n <>\n toggleAdvancedSearch()}\n >\n \n \n toggleDateForm()}\n >\n \n \n \n )\n }\n\n return (\n
    \n }\n >\n \n }\n />\n
    \n\n {renderSearchActions()}\n \n {renderForms()}\n\n
    \n )\n}\n\nAppBar.propTypes = {\n showAdvancedSearch: PropTypes.bool.isRequired,\n showDateForm: PropTypes.bool.isRequired,\n toggleAdvancedSearch: PropTypes.func.isRequired,\n toggleDateForm: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport AppBar from 'components/themax/app_bar'\n\nimport {\n getThemaxShowAdvancedSearch,\n getThemaxShowDateForm\n} from 'selectors'\n\nimport {\n toggleAdvancedSearch,\n toggleDateForm\n} from 'actions/themax'\n\nconst mapStateToProps = state => ({\n showAdvancedSearch: getThemaxShowAdvancedSearch(state),\n showDateForm: getThemaxShowDateForm(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n toggleAdvancedSearch,\n toggleDateForm\n }\n)(AppBar)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { Alert, AlertTitle, Box } from '@mui/material'\nimport LockOpenIcon from '@mui/icons-material/LockOpen'\n\nimport { IconButton, Button } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n OrderProgressContainer: {\n margin: '20px 40px',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n marginTop: '20px'\n },\n alertContainer: {\n border: `1px solid ${theme.palette.info.dark}`,\n width: '100%',\n '& .MuiAlert-action': {\n alignItems: 'center'\n },\n '& a': {\n color: theme.palette.primary.main,\n fontWeight: 700\n }\n }\n}))\n\nconst OrderProgress = ({\n status,\n onUnlockClick\n}) => {\n const { classes } = useStyles()\n const i18n = useI18n()\n const device = useDevice()\n\n if (status === 'completed') {\n return null\n }\n\n let alertTitle = i18n.get('themax_order_full_version')\n let alertContent = i18n.get('themax_order')\n\n if (status === 'pending') {\n alertTitle = i18n.get('themax_paid_feature_order_pending_title')\n alertContent = i18n.get('paid_feature_order_pending', { email: 'themax@pressrelations.de' })\n }\n\n const renderUnlockButton = () => {\n if (device.get('mobile')) {\n return (\n onUnlockClick()}\n disabled={status === 'pending'}\n title={i18n.get('unlock')}\n >\n \n \n )\n }\n\n return (\n onUnlockClick()}\n disabled={status === 'pending'}\n >\n {i18n.get('unlock')}\n \n )\n }\n\n return (\n \n \n {renderUnlockButton()}\n \n )}\n >\n {alertTitle}\n \n \n \n )\n}\n\nOrderProgress.propTypes = {\n status: PropTypes.string,\n\n onUnlockClick: PropTypes.func.isRequired\n}\n\nexport default OrderProgress\n","import { connect } from 'react-redux'\n\nimport OrderProgress from 'components/themax/order_progress'\nimport { openOrderDialog } from 'actions/themax'\nimport { getThemaxPaidFeatureStatus } from 'selectors'\n\nconst mapStateToProps = state => ({\n status: getThemaxPaidFeatureStatus(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onUnlockClick: openOrderDialog\n }\n)(OrderProgress)\n","import { connect } from 'react-redux'\n\nimport UpdateDialog from 'components/dialogs/confirm_dialog'\n\nimport {\n getI18n,\n getExecutedSavedSearch,\n getShowUpdateSavedSearchDialog\n} from 'selectors'\n\nimport {\n saveThemaxSavedSearchStart\n} from 'actions/themax'\n\nimport {\n hideUpdateSavedSearchDialog\n} from 'actions/saved_searches'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n title: getI18n(state).get('update_saved_search_title'),\n payload: getExecutedSavedSearch(state),\n active: getShowUpdateSavedSearchDialog(state),\n text: getI18n(state).get('update_saved_search_text'),\n actionText: getI18n(state).get('save'),\n autoHide: true\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSubmit: saveThemaxSavedSearchStart,\n onHide: hideUpdateSavedSearchDialog\n }\n)(UpdateDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { Map } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Chip, Icon, Tooltip, Box } from '@mui/material'\nimport { useTheme } from '@mui/material/styles'\nimport { orange } from '@mui/material/colors'\n\nimport ReportIcon from '@mui/icons-material/Report'\n\nimport { Button } from 'containers/themed'\nimport EditDialog from 'containers/themax/saved_searches/EditDialog'\nimport UpdateDialog from 'containers/themax/saved_searches/UpdateDialog'\n\nconst useStyles = makeStyles()(theme => ({\n title: {\n borderRadius: '3px'\n },\n container: {\n [theme.breakpoints.only('xs')]: {\n paddingLeft: '10px'\n },\n gap: '10px',\n display: 'flex',\n flexWrap: 'wrap'\n }\n}))\n\nexport default function SavedSearchesOptions({\n executedSavedSearch,\n onSaveButtonClick,\n onNewButtonClick,\n onResetButtonClick\n}) {\n const i18n = useI18n()\n const { classes } = useStyles()\n const theme = useTheme()\n\n return (\n
    \n {executedSavedSearch ? (\n <>\n onResetButtonClick()}\n label={(\n \n {executedSavedSearch.get('outdated') && (\n \n \n \n )}\n {executedSavedSearch.get('name')}\n \n )}\n />\n onSaveButtonClick(executedSavedSearch)}\n startIcon={edit}\n >\n {i18n.get('save_changes')}\n \n \n ) : null}\n\n onNewButtonClick()}\n startIcon={notifications_none}\n >\n {i18n.get(executedSavedSearch ? 'new_saved_search' : 'save_search')}\n \n\n \n \n
    \n )\n}\n\nSavedSearchesOptions.propTypes = {\n executedSavedSearch: PropTypes.instanceOf(Map),\n\n onSaveButtonClick: PropTypes.func.isRequired,\n onNewButtonClick: PropTypes.func.isRequired,\n onResetButtonClick: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport SavedSearchesOptions from 'components/themax/saved_searches/SavedSearchesOptions'\n\nimport {\n resetThemaxSavedSearches\n} from 'actions/themax'\n\nimport {\n showEditSavedSearchDialog,\n showUpdateSavedSearchDialog\n} from 'actions/saved_searches'\n\nimport {\n getExecutedSavedSearch\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n executedSavedSearch: getExecutedSavedSearch(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSaveButtonClick: showUpdateSavedSearchDialog,\n onNewButtonClick: showEditSavedSearchDialog,\n onResetButtonClick: resetThemaxSavedSearches\n }\n)(SavedSearchesOptions)\n","import { connect } from 'react-redux'\n\nimport ActiveFilterList from 'components/active_filter_list'\nimport {\n getActiveThemaxFilters,\n getActiveThemaxFiltersCollapsed,\n getActiveSelectedThemaxBooleans,\n getActiveThemaxNumberFilters\n} from 'selectors'\n\nimport { toggleActiveFilters } from 'actions/themax'\n\nconst mapStateToProps = state => ({\n activeFilters: getActiveThemaxFilters(state),\n activeBooleanFilters: getActiveSelectedThemaxBooleans(state),\n filterCount: getActiveThemaxFilters(state).size,\n collapsed: getActiveThemaxFiltersCollapsed(state),\n activeNumberFilters: getActiveThemaxNumberFilters(state),\n activeFilterType: 'themax'\n})\n\nexport default connect(\n mapStateToProps,\n {\n onCollapseClick: toggleActiveFilters\n }\n)(ActiveFilterList)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport useColors from 'hooks/useColors'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { keyframes } from 'tss-react'\n\nimport { Paper, Tooltip, CircularProgress } from '@mui/material'\n\nimport LockIcon from '@mui/icons-material/Lock'\n\nimport { Button } from 'containers/themed'\n\nconst ButtonContainer = props =>
    \n\nconst useStyles = makeStyles()(theme => ({\n switchActionsContainer: {\n display: 'flex',\n backgroundColor: theme.nrx.paper.backgroundPaperColor,\n marginBottom: '10px'\n },\n switchActions: {\n display: 'flex',\n width: '100%',\n height: '64px !important'\n },\n switchAction: {\n position: 'relative',\n flexGrow: 1,\n flexBasis: 0,\n '& > button': {\n minWidth: '100%',\n minHeight: '100%',\n\n [theme.breakpoints.only('xs')]: {\n fontSize: '7pt'\n }\n }\n },\n switchActionContent: {\n paddingTop: '4px'\n },\n activeBorder: {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%',\n height: 3,\n animation: `${keyframes`\n from {\n transform: scale(0);\n }\n to {\n transform: scale(1);\n }\n `} 225ms;`\n },\n iconContainer: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: 28\n }\n}))\n\nexport default function Navigation({\n hasPaidVersion,\n view,\n plansCount,\n publicationsCount,\n searchEditorialPlansRunning,\n searchPublicationsRunning,\n onChange\n}) {\n const i18n = useI18n()\n const colors = useColors()\n const { classes } = useStyles()\n\n const renderNavigationAction = (buttonView, label, isDisabled = false, Comp = ButtonContainer) => {\n const title = null\n\n let active\n\n if (view === buttonView) {\n active = (\n \n )\n }\n\n const tabButton = (props, children) => (\n onChange(buttonView)}\n disabled={isDisabled}\n {...props}\n >\n \n {label}\n
    \n {children}\n \n )\n\n const renderCalendarDisabled = () => (\n \n {tabButton(\n {\n sx: {\n display: 'flex',\n alignItems: 'center',\n height: '100%',\n gap: '10px',\n '&.Mui-disabled': {\n pointerEvents: 'auto',\n cursor: 'not-allowed'\n }\n },\n component: 'div',\n onClick: null\n },\n \n )}\n \n )\n\n const renderTabLoading = () => (\n onChange(buttonView)}\n disabled\n >\n
    \n \n
    \n \n )\n\n const renderTabButton = () => {\n if (buttonView === 'editorial_plans' && searchEditorialPlansRunning) {\n return renderTabLoading()\n }\n\n if (buttonView === 'media_profiles' && searchPublicationsRunning) {\n return renderTabLoading()\n }\n\n if (buttonView === 'calendar' && searchEditorialPlansRunning) {\n return renderTabLoading()\n }\n\n if (isDisabled && buttonView === 'calendar') {\n return renderCalendarDisabled()\n }\n\n return tabButton()\n }\n\n return (\n \n {renderTabButton()}\n {active}\n \n )\n }\n\n const buttons = []\n\n buttons.push(\n renderNavigationAction(\n 'editorial_plans',\n `${i18n.get('editorial_plans')} (${plansCount})`\n )\n )\n\n buttons.push(\n renderNavigationAction(\n 'media_profiles',\n `${i18n.get('media_profiles')} (${publicationsCount})`\n )\n )\n\n buttons.push(\n renderNavigationAction(\n 'calendar',\n `${i18n.get('calendar')}`,\n !hasPaidVersion\n )\n )\n\n if (buttons.length <= 1) {\n return null\n }\n\n return (\n <>\n \n
    \n {buttons}\n
    \n
    \n \n )\n}\n\nNavigation.propTypes = {\n hasPaidVersion: PropTypes.bool.isRequired,\n view: PropTypes.string.isRequired,\n plansCount: PropTypes.number.isRequired,\n publicationsCount: PropTypes.number.isRequired,\n searchEditorialPlansRunning: PropTypes.bool.isRequired,\n searchPublicationsRunning: PropTypes.bool.isRequired,\n\n onChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Navigation from 'components/themax/navigation'\nimport { changeTabView } from 'actions/themax'\n\nimport {\n getHasThemaxPaidVersion,\n getThemaxTabView,\n getThemaxData,\n getThemaxSearchEditorialPlansRunning,\n getThemaxSearchPublicationsRunning\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n hasPaidVersion: getHasThemaxPaidVersion(state),\n plansCount: getThemaxData(state).getIn(['editorialPlans', 'total']),\n publicationsCount: getThemaxData(state).getIn(['publications', 'total']),\n searchEditorialPlansRunning: getThemaxSearchEditorialPlansRunning(state),\n searchPublicationsRunning: getThemaxSearchPublicationsRunning(state),\n view: getThemaxTabView(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: changeTabView\n }\n)(Navigation)\n","import React from 'react'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Tooltip\n} from '@mui/material'\nimport { grey } from '@mui/material/colors'\nimport LockIcon from '@mui/icons-material/Lock'\n\nconst useStyles = makeStyles()({\n lockIcon: {\n fontSize: '16px',\n color: grey[500],\n marginLeft: '5px'\n }\n})\n\nconst LockedContentTooltip = () => {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n return (\n \n \n \n )\n}\n\nexport default LockedContentTooltip\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Typography\n} from '@mui/material'\n\nimport LockedContentTooltip from 'components/themax/hidden_content/LockedContentTooltip'\n\nconst useStyles = makeStyles()({\n blurredSection: {\n display: 'flex',\n alignItems: 'center'\n },\n blurredContent: {\n filter: 'blur(4px)',\n pointerEvents: 'none',\n userSelect: 'none'\n }\n})\n\nconst BlurredSection = ({ showLockIcon, size }) => {\n const { classes } = useStyles()\n\n let hiddenText = 'hidden'\n\n if (size === 'sm') {\n hiddenText = 'hidden small'\n }\n\n if (size === 'md') {\n hiddenText = 'hidden medium long text'\n }\n\n if (size === 'lg') {\n hiddenText = 'hidden large long text with more content. hidden large long text with more content. '\n hiddenText += 'hidden large long text with more content. hidden large long text with more content. '\n hiddenText += 'hidden large long text with more content. hidden large long text with more content. '\n hiddenText += 'hidden large long text with more content. hidden large long text with more content. '\n hiddenText += 'hidden large long text with more content. hidden large long text with more content. '\n }\n\n return (\n
    \n \n {hiddenText}\n \n {showLockIcon === true && }\n
    \n )\n}\n\nBlurredSection.defaultProps = {\n showLockIcon: true,\n size: 'xs'\n}\n\nBlurredSection.propTypes = {\n showLockIcon: PropTypes.bool,\n size: PropTypes.string\n}\n\nexport default BlurredSection\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport useDevice from 'hooks/useDevice'\nimport moment from 'moment-timezone'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Card,\n CardContent,\n CardActions,\n Grid,\n Typography,\n Divider,\n Tooltip\n} from '@mui/material'\nimport BookmarkBorderIcon from '@mui/icons-material/BookmarkBorder'\nimport BookmarkIcon from '@mui/icons-material/Bookmark'\nimport ArrowCircleUpIcon from '@mui/icons-material/ArrowCircleUp'\nimport ArrowCircleDownIcon from '@mui/icons-material/ArrowCircleDown'\n\nimport IconButton from 'components/themed/icon_button'\nimport BlurredSection from 'components/themax/hidden_content/BlurredSection'\nimport LockedContentTooltip from 'components/themax/hidden_content/LockedContentTooltip'\nimport { shorten } from 'utils/string'\n\nconst useStyles = makeStyles()((theme, { isShownInDetailedView }) => ({\n card: {\n ...(!isShownInDetailedView && {\n cursor: 'pointer',\n '&:hover': {\n boxShadow: '0 5px 15px rgba(0,0,0,0.3)'\n }\n })\n },\n cardActions: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n padding: '8px 16px',\n marginTop: '15px'\n },\n cardContent: {\n minHeight: '200px',\n maxHeight: '200px'\n },\n expandedCardContent: {\n minHeight: 'auto',\n maxHeight: 'auto'\n },\n blurredContent: {\n filter: 'blur(4px)',\n pointerEvents: 'none',\n userSelect: 'none'\n },\n logoContainer: {\n maxHeight: '20px',\n maxWidth: '100px',\n height: 'auto',\n width: 'auto'\n },\n publicationLogoContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'baseline'\n },\n publicationSpacer: {\n height: '20px',\n width: '100px'\n },\n divider: {\n marginTop: 10\n },\n advertisingDeadlineContainer: {\n display: 'flex',\n alignItems: 'center'\n },\n releaseDateContainer: {\n display: 'flex',\n alignItems: 'center'\n },\n advDeadlineTypography: {\n display: 'flex',\n alignItems: 'center'\n },\n releaseDateTypography: {\n display: 'flex',\n alignItems: 'center'\n },\n '& .clip': {\n color: theme.nrx.colors.highlighting\n }\n}))\n\nconst EditorialPlansItem = ({\n bookmarkRequestRunningFor,\n editorialPlan,\n hasPaidVersion,\n isFirst,\n isShownInDetailedView,\n\n onRemoveBookmark,\n onSetBookmark,\n openDetailedViewDialog,\n setSelectedEditorialPlan\n}) => {\n const { classes } = useStyles({ isShownInDetailedView })\n const i18n = useI18n()\n const [imgError, setImgError] = useState(false)\n const [isImageLoaded, setIsImageLoaded] = useState(false)\n const [isExpanded, setIsExpanded] = useState(false)\n const device = useDevice()\n\n let text = editorialPlan.get('text') || ''\n\n if (text.length === 0 || text === '0') {\n text = i18n.get('no_editorial_plan_text')\n }\n\n const toggleShowMore = e => {\n e.preventDefault()\n\n setSelectedEditorialPlan(editorialPlan)\n openDetailedViewDialog()\n }\n\n const toggleExpanded = () => {\n setIsExpanded(!isExpanded)\n }\n\n const handleSetBookmark = (e, payload) => {\n e.preventDefault()\n e.stopPropagation()\n onSetBookmark(payload)\n }\n\n const handleRemoveBookmark = (e, payload) => {\n e.preventDefault()\n e.stopPropagation()\n onRemoveBookmark(payload)\n }\n\n const formatPublicationName = () => {\n const publicationName = editorialPlan.getIn(['publication', 'name'])\n let maxLength = 24\n\n if (device.get('xl')) {\n maxLength = 40\n }\n\n return publicationName.length > maxLength ? (\n \n \n {shorten(publicationName, maxLength)}\n \n \n ) : (\n \n {publicationName}\n \n )\n }\n\n const formatText = () => {\n const textLength = 240\n const shortenedText = text.substr(0, textLength)\n let displayedText = isExpanded ? text : shortenedText\n\n if (isShownInDetailedView && (text.length > textLength)) {\n return (\n <>\n \n \n \n {isExpanded ? : }\n \n \n \n )\n }\n\n displayedText = text.length > textLength ? `${shortenedText}...` : text\n\n return (\n \n )\n }\n\n const renderEditorialDeadline = () => (hasPaidVersion ? (\n \n {moment(editorialPlan.get('editorialDeadline')).format('L')}\n \n ) : (\n \n ))\n\n const renderAdvertisingDeadline = () => {\n let advertisingDeadlineDate = editorialPlan.get('advertisingDeadline')\n\n if (!hasPaidVersion) {\n advertisingDeadlineDate = advertisingDeadlineDate.slice(2)\n } else {\n advertisingDeadlineDate = moment(advertisingDeadlineDate).format('L')\n }\n\n return (\n
    \n \n {!hasPaidVersion && (XX)}\n {advertisingDeadlineDate}\n \n {!hasPaidVersion && }\n
    \n )\n }\n\n const renderReleaseDate = () => {\n let releaseDate = editorialPlan.get('releaseDate')\n\n if (!hasPaidVersion) {\n releaseDate = editorialPlan.get('releaseDate').slice(2)\n } else {\n releaseDate = moment(releaseDate).format('L')\n }\n\n return (\n
    \n \n {!hasPaidVersion && (XX)}\n {releaseDate}\n \n {!hasPaidVersion && }\n
    \n )\n }\n\n let publicationLogo = (\n
    \n setIsImageLoaded(true)}\n onError={() => setImgError(true)}\n />\n
    \n )\n\n if (imgError || !hasPaidVersion) {\n publicationLogo =
    \n }\n\n const renderBookmarkedIcon = () => {\n const editorialPlanId = editorialPlan.get('id')\n\n if (!hasPaidVersion) {\n return (\n \n \n \n \n )\n }\n\n if (editorialPlan.get('grootEditorialPlans').size > 0) {\n const grootEditorialPlan = editorialPlan.get('grootEditorialPlans').first()\n const firstName = grootEditorialPlan.get('createdByUser').get('firstName')\n const lastName = grootEditorialPlan.get('createdByUser').get('lastName')\n const createdBy = `${i18n.get('created_by')}: ${firstName} ${lastName}`\n\n return (\n handleRemoveBookmark(e, { editorialPlanId, grootEditorialPlanId: grootEditorialPlan.get('id') })}\n >\n \n \n \n \n )\n }\n\n return (\n handleSetBookmark(e, { editorialPlanId })}\n >\n \n \n )\n }\n\n return (\n \n \n
    \n {publicationLogo}\n {renderBookmarkedIcon()}\n
    \n {\n hasPaidVersion ? (\n <>\n {formatPublicationName()}\n \n ) : (\n \n )\n }\n \n
    \n \n {hasPaidVersion ? (\n \n {i18n.get('edition')}: {editorialPlan.get('edition')}\n \n ) : (\n \n )}\n {isFirst ? (\n \n ) : formatText()}\n \n \n \n \n \n {i18n.get('editorial_deadline')}\n \n {renderEditorialDeadline()}\n \n \n \n {i18n.get('advertising_deadline')}\n \n {renderAdvertisingDeadline()}\n \n \n \n {i18n.get('release_date')}\n \n {renderReleaseDate()}\n \n \n \n \n )\n}\n\nEditorialPlansItem.defaultProps = {\n isShownInDetailedView: false,\n isFirst: false\n}\n\nEditorialPlansItem.propTypes = {\n bookmarkRequestRunningFor: PropTypes.number,\n editorialPlan: PropTypes.instanceOf(Map).isRequired,\n hasPaidVersion: PropTypes.bool.isRequired,\n isFirst: PropTypes.bool,\n isShownInDetailedView: PropTypes.bool,\n\n onRemoveBookmark: PropTypes.func.isRequired,\n onSetBookmark: PropTypes.func.isRequired,\n openDetailedViewDialog: PropTypes.func.isRequired,\n setSelectedEditorialPlan: PropTypes.func.isRequired\n}\n\nexport default EditorialPlansItem\n","import { connect } from 'react-redux'\n\nimport EditorialPlansItem from 'components/themax/editorial_plans/editorial_plans_item/'\nimport { getHasThemaxPaidVersion, getThemaxBookmarkRequestRunningFor } from 'selectors'\n\nimport {\n openDetailedViewDialog,\n setSelectedEditorialPlan,\n themaxDeleteBookmarkStart,\n themaxSaveBookmarkStart\n} from 'actions/themax'\n\nconst mapStateToProps = (state, { editorialPlan, isShownInDetailedView, isFirst }) => ({\n isShownInDetailedView,\n isFirst,\n editorialPlan,\n bookmarkRequestRunningFor: getThemaxBookmarkRequestRunningFor(state),\n hasPaidVersion: getHasThemaxPaidVersion(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onRemoveBookmark: themaxDeleteBookmarkStart,\n onSetBookmark: themaxSaveBookmarkStart,\n openDetailedViewDialog,\n setSelectedEditorialPlan\n }\n)(EditorialPlansItem)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Waypoint } from 'react-waypoint'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { Grid, LinearProgress, Box } from '@mui/material'\n\nimport EditorialPlansItem from 'containers/themax/editorial_plans/editorial_plans_item/EditorialPlansItem'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n marginTop: '35px',\n padding: '0px 20px 20px 20px',\n backgroundColor: theme.nrx.paper.backgroundPaperColor,\n borderRadius: '5px'\n },\n editorialPlansItemWrapper: {\n [theme.breakpoints.only('xs')]: {\n padding: '0 1.5em'\n }\n }\n}))\n\nconst renderEditorialPlan = (editorialPlan, index) => (\n \n \n \n)\n\nconst EditorialPlans = ({\n editorialPlans,\n editorialPlansTotal,\n fetchMoreRequestRunning,\n onScrollBottom\n}) => {\n const { classes } = useStyles()\n\n const { size } = editorialPlans\n\n if (size === 0) {\n return null\n }\n\n const moreEditorialPlans = size > 1 && size < editorialPlansTotal\n\n const onEnterWaypoint = () => {\n if (moreEditorialPlans) {\n onScrollBottom('editorial_plans')\n }\n }\n\n return (\n \n \n {editorialPlans.slice(0, -1).map((editorialPlan, index) => (\n renderEditorialPlan(editorialPlan, index)\n ))}\n \n {editorialPlans.slice(-1).map((editorialPlan, index) => (\n renderEditorialPlan(editorialPlan, index)\n ))}\n\n {fetchMoreRequestRunning && (\n \n \n \n )}\n \n \n )\n}\n\nEditorialPlans.propTypes = {\n editorialPlans: PropTypes.object.isRequired,\n editorialPlansTotal: PropTypes.number.isRequired,\n fetchMoreRequestRunning: PropTypes.bool.isRequired,\n onScrollBottom: PropTypes.func.isRequired\n}\n\nexport default EditorialPlans\n","import { connect } from 'react-redux'\n\nimport EditorialPlans from 'components/themax/editorial_plans'\nimport { getThemaxData, getThemaxFetchMoreRequestRunning } from 'selectors'\nimport { themaxFetchMoreEditorialPlansStart } from 'actions/themax'\n\nconst mapStateToProps = state => ({\n editorialPlans: getThemaxData(state).getIn(['editorialPlans', 'items']),\n editorialPlansTotal: getThemaxData(state).getIn(['editorialPlans', 'total']),\n fetchMoreRequestRunning: getThemaxFetchMoreRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onScrollBottom: themaxFetchMoreEditorialPlansStart\n }\n)(EditorialPlans)\n","/* global window */\nimport React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Card,\n CardHeader,\n CardContent,\n CardActions,\n Grid,\n IconButton,\n Typography,\n Divider,\n Tooltip\n} from '@mui/material'\nimport PictureAsPdfIcon from '@mui/icons-material/PictureAsPdf'\n\nimport KeyFigure from 'components/key_figure'\nimport BlurredSection from 'components/themax/hidden_content/BlurredSection'\nimport LockedContentTooltip from 'components/themax/hidden_content/LockedContentTooltip'\nimport { shorten } from 'utils/string'\n\nconst useStyles = makeStyles()((theme, { hasEditorialPlan }) => ({\n card: {\n cursor: hasEditorialPlan ? 'pointer' : 'default',\n '&:hover': {\n boxShadow: '0 5px 15px rgba(0,0,0,0.3)'\n }\n },\n cardActions: {\n display: 'flex',\n justifyContent: 'space-between',\n padding: '8px 16px'\n },\n\n cardContent: {\n minHeight: '100px'\n },\n logoContainer: {\n maxHeight: '20px',\n maxWidth: '100px',\n height: 'auto',\n width: 'auto'\n },\n publicationSpacer: {\n height: '20px',\n width: '10opx'\n },\n dividerContainer: {\n display: 'flex',\n justifyContent: 'center'\n },\n divider: {\n width: 'calc(100% - 30px)'\n },\n cardAvatar: {\n display: 'flex',\n flexDirection: 'column',\n gap: '10px',\n paddingBottom: 0\n },\n spacer: {\n flex: 1\n }\n}))\n\nconst MediaProfilesItem = ({\n mediaProfile,\n hasPaidVersion,\n openDetailedViewDialog,\n setSelectedEditorialPlan,\n fetchRelatedEditorialPlans\n}) => {\n const i18n = useI18n()\n const [imgError, setImgError] = useState(false)\n const [isImageLoaded, setIsImageLoaded] = useState(false)\n\n const latestEditorialPlan = mediaProfile.get('editorialPlans').first()\n const { classes } = useStyles({ hasEditorialPlan: !!latestEditorialPlan })\n\n const handlePfdClick = e => {\n e.preventDefault()\n e.stopPropagation()\n\n window.open(latestEditorialPlan.get('publicationFile'), '_blank', 'noopener noreferrer')\n }\n\n const renderMediaProfilePDF = () => {\n if (!hasPaidVersion) {\n return (\n <>\n \n \n \n \n \n )\n }\n\n if (latestEditorialPlan && latestEditorialPlan.get('publicationFile') === null) {\n return (\n \n \n \n )\n }\n\n if (!latestEditorialPlan) {\n return (\n \n \n \n \n \n )\n }\n\n return (\n \n \n \n \n \n )\n }\n\n const toggleShowMore = e => {\n e.preventDefault()\n\n setSelectedEditorialPlan(latestEditorialPlan)\n fetchRelatedEditorialPlans()\n openDetailedViewDialog()\n }\n\n const formatPublicationName = () => {\n const publicationName = mediaProfile.get('name')\n const maxLength = 28\n\n return publicationName.length > maxLength ? (\n \n \n {shorten(publicationName, maxLength)}\n \n \n ) : (\n \n {publicationName}\n \n )\n }\n\n let avatar = (\n
    \n setIsImageLoaded(true)}\n onError={() => setImgError(true)}\n />\n {imgError && (\n null\n )}\n
    \n )\n\n if (imgError) {\n avatar =
    \n }\n\n return (\n \n \n {avatar}\n {formatPublicationName()}\n
    \n ) : (\n \n )\n )}\n />\n
    \n \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    \n {\n renderMediaProfilePDF()\n }\n \n \n )\n}\n\nMediaProfilesItem.propTypes = {\n mediaProfile: PropTypes.instanceOf(Map).isRequired,\n hasPaidVersion: PropTypes.bool.isRequired,\n\n openDetailedViewDialog: PropTypes.func.isRequired,\n setSelectedEditorialPlan: PropTypes.func.isRequired,\n fetchRelatedEditorialPlans: PropTypes.func.isRequired\n}\n\nexport default MediaProfilesItem\n","import { connect } from 'react-redux'\n\nimport MediaProfilesItem from 'components/themax/media_profiles/media_profiles_item/'\nimport { getHasThemaxPaidVersion } from 'selectors'\n\nimport {\n openDetailedViewDialog,\n setSelectedEditorialPlan,\n themaxFetchRelatedEditorialPlansStart as fetchRelatedEditorialPlans\n} from 'actions/themax'\n\nconst mapStateToProps = (state, ownProps) => ({\n mediaProfile: ownProps.mediaProfile,\n hasPaidVersion: getHasThemaxPaidVersion(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n openDetailedViewDialog,\n setSelectedEditorialPlan,\n fetchRelatedEditorialPlans\n }\n)(MediaProfilesItem)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Waypoint } from 'react-waypoint'\nimport { List } from 'immutable'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { Grid, LinearProgress, Box } from '@mui/material'\n\nimport MediaProfilesItem from 'containers/themax/media_profiles/MediaProfilesItem'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n marginTop: '35px',\n padding: '0px 20px 20px 20px',\n backgroundColor: theme.nrx.paper.backgroundPaperColor,\n borderRadius: '5px'\n },\n mediaProfilesItemWrapper: {\n [theme.breakpoints.only('xs')]: {\n padding: '0 1.5em'\n }\n }\n}))\n\nconst renderMediaProfile = (mediaProfile, index) => (\n \n \n \n)\n\nconst MediaProfiles = ({\n mediaProfiles,\n mediaProfilesTotal,\n fetchMoreRequestRunning,\n onScrollBottom\n}) => {\n const { classes } = useStyles()\n\n const { size } = mediaProfiles\n\n if (size === 0) {\n return null\n }\n\n const moreMediaProfiles = size > 1 && size < mediaProfilesTotal\n\n const onEnterWaypoint = () => {\n if (moreMediaProfiles) {\n onScrollBottom('publications')\n }\n }\n\n return (\n \n \n {mediaProfiles.slice(0, -1).map((mediaProfile, index) => (\n renderMediaProfile(mediaProfile, index)\n ))}\n \n {mediaProfiles.slice(-1).map((mediaProfile, index) => (\n renderMediaProfile(mediaProfile, index)\n ))}\n\n {fetchMoreRequestRunning && (\n \n \n \n )}\n \n \n )\n}\n\nMediaProfiles.propTypes = {\n mediaProfiles: PropTypes.instanceOf(List).isRequired,\n mediaProfilesTotal: PropTypes.number.isRequired,\n fetchMoreRequestRunning: PropTypes.bool.isRequired,\n onScrollBottom: PropTypes.func.isRequired\n}\n\nexport default MediaProfiles\n","import { connect } from 'react-redux'\n\nimport MediaProfiles from 'components/themax/media_profiles'\nimport { getThemaxData, getThemaxFetchMoreRequestRunning } from 'selectors'\nimport { themaxFetchMorePublicationsStart } from 'actions/themax'\n\nconst mapStateToProps = state => ({\n mediaProfiles: getThemaxData(state).getIn(['publications', 'items']),\n mediaProfilesTotal: getThemaxData(state).getIn(['publications', 'total']),\n fetchMoreRequestRunning: getThemaxFetchMoreRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onScrollBottom: themaxFetchMorePublicationsStart\n }\n)(MediaProfiles)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\nimport { useTheme } from '@mui/material/styles'\n\nimport {\n Box,\n RadioGroup,\n FormControlLabel,\n Radio,\n Typography,\n ToggleButtonGroup,\n ToggleButton,\n useMediaQuery\n} from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n height: '100%',\n backgroundColor: theme.nrx.paper.backgroundPaperColor,\n border: '1px solid #D1D5DC',\n borderRight: 'none',\n borderRadius: '5px 0px 0px 5px'\n },\n title: {\n fontSize: '16px',\n fontWeight: '500',\n padding: '20px 20px 10px 20px'\n },\n eventOptions: {\n paddingLeft: '30px'\n },\n toggleGroup: {\n width: '100%',\n marginBottom: '20px',\n [theme.breakpoints.only('xs')]: {\n paddingLeft: '15px',\n paddingRight: '15px',\n marginBottom: '0px'\n }\n },\n toggleButton: {\n width: '50%'\n }\n}))\n\nconst Sidebar = ({ filters, setFilters, applyFilters, setSorting }) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n const theme = useTheme()\n const isMedium = useMediaQuery(theme.breakpoints.down('md'))\n\n const bookmarkedOnly = filters.getIn(['booleans', 'bookmarkedOnly'])\n const calendarOption = bookmarkedOnly ? 'bookmarked_editorial_plans' : 'top_editorial_plans'\n\n const handleOptionChange = value => {\n if (value === 'top_editorial_plans') {\n setSorting({ sortBy: 'reach', sortOrder: 'desc', sortType: 'editorialPlansSorting' })\n setFilters({\n booleans: filters.setIn(['booleans', 'bookmarkedOnly'], false).get('booleans'),\n reachFilter: filters.get('reachFilter'),\n pageAveFilter: filters.get('pageAveFilter')\n })\n }\n\n if (value === 'bookmarked_editorial_plans') {\n setSorting({ sortBy: 'editorial_deadline', sortOrder: 'asc', sortType: 'editorialPlansSorting' })\n setFilters({\n booleans: filters.setIn(['booleans', 'bookmarkedOnly'], true).get('booleans'),\n reachFilter: filters.get('reachFilter'),\n pageAveFilter: filters.get('pageAveFilter')\n })\n }\n\n applyFilters()\n }\n\n return (\n <>\n {isMedium && (\n handleOptionChange(e.target.value)}\n >\n \n {`${i18n.get('themax_top_by_reach', { n: 100 })}`}\n \n \n {i18n.get('bookmarked')}\n \n \n )}\n {!isMedium && (\n \n \n {i18n.get('events')}\n \n handleOptionChange(e.target.value)}\n >\n }\n />\n }\n />\n \n \n )}\n \n )\n}\n\nexport default Sidebar\n\nSidebar.propTypes = {\n filters: PropTypes.instanceOf(Map).isRequired,\n\n setFilters: PropTypes.func.isRequired,\n applyFilters: PropTypes.func.isRequired,\n setSorting: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Sidebar from 'components/themax/calendar/sidebar'\n\nimport {\n setSelectedThemaxFilters,\n applyThemaxFilters,\n setThemaxSort\n} from 'actions/themax'\n\nimport { getThemaxFilters } from 'selectors'\n\nconst mapStateToProps = state => ({\n filters: getThemaxFilters(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n setFilters: setSelectedThemaxFilters,\n applyFilters: applyThemaxFilters,\n setSorting: setThemaxSort\n }\n)(Sidebar)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\nimport moment from 'moment-timezone'\n\nimport { Box, Typography, Tooltip } from '@mui/material'\n\nconst useStyles = makeStyles()({\n event: {\n display: 'flex',\n justifyContent: 'space-between',\n gap: '10px',\n paddingLeft: '5px',\n paddingRight: '5px',\n cursor: 'pointer'\n },\n eventTitle: {\n fontSize: '14px',\n overflow: 'hidden',\n textOverflow: 'ellipsis'\n },\n tooltip: {\n padding: '5px'\n },\n tooltipTitle: {\n display: 'inline',\n fontSize: '14px',\n fontWeight: '500'\n },\n tooltipData: {\n display: 'inline',\n fontSize: '14px'\n }\n})\n\nconst EventContent = ({ event }) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n\n const formatDate = date => {\n if (!date) {\n return 'N/A'\n }\n\n return moment(date).format('DD MMM YYYY LT')\n }\n\n const tooltipData = (\n \n \n \n {`${i18n.get('publication')}: `}\n \n \n {event.title}\n \n \n
    \n \n \n {`${i18n.get('editorial_deadline')}: `}\n \n \n {formatDate(event.extendedProps.editorialDeadline)}\n \n \n \n \n {`${i18n.get('advertising_deadline')}: `}\n \n \n {formatDate(event.extendedProps.advertisingDeadline)}\n \n \n \n \n {`${i18n.get('printing_deadline')}: `}\n \n \n {formatDate(event.extendedProps.printingDeadline)}\n \n \n
    \n )\n\n return (\n \n \n {event.title}\n \n \n )\n}\n\nexport default EventContent\n\nEventContent.propTypes = {\n event: PropTypes.object.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport EventContent from 'components/themax/calendar/event_content'\n\nconst mapStateToProps = (_state, { event }) => ({\n event\n})\n\nexport default connect(\n mapStateToProps,\n {}\n)(EventContent)\n","/* global document, window, MutationObserver */\nimport React, { useEffect, useRef } from 'react'\nimport PropTypes from 'prop-types'\nimport { List, Map } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport { makeStyles } from 'tss-react/mui'\nimport moment from 'moment-timezone'\nimport { useTheme } from '@mui/material/styles'\nimport { grey } from '@mui/material/colors'\n\nimport FullCalendar from '@fullcalendar/react'\nimport dayGridPlugin from '@fullcalendar/daygrid'\nimport interactionPlugin from '@fullcalendar/interaction'\nimport allLocales from '@fullcalendar/core/locales-all'\n\nimport { Box, Grid, useMediaQuery } from '@mui/material'\n\nimport Sidebar from 'containers/themax/calendar/Sidebar'\nimport EventContent from 'containers/themax/calendar/EventContent'\nimport NrxProgressBar from 'components/nrx_progress_bar/NrxProgressBar'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n marginTop: '10px'\n },\n calendar: {\n padding: '20px',\n [theme.breakpoints.down('sm')]: {\n padding: '5px 10px 10px 10px'\n },\n minHeight: 750,\n border: '1px solid #D1D5DC',\n [theme.breakpoints.down('sm')]: {\n border: '0px !important'\n },\n borderRadius: '0px 5px 5px 0px',\n [theme.breakpoints.down('md')]: {\n '& .fc-header-toolbar': {\n flexDirection: 'column !important',\n alignItems: 'start !important',\n gap: '10px'\n },\n '& .fc-toolbar-chunk': {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n width: '100%'\n }\n },\n '& .fc-more-popover': {\n [theme.breakpoints.down('sm')]: {\n width: '100% !important',\n left: '0 !important'\n }\n },\n '& .fc-daygrid-more-link': {\n [theme.breakpoints.down('sm')]: {\n whiteSpace: 'initial !important',\n textAlign: 'center !important'\n }\n },\n '& .fc-button': {\n backgroundColor: `${theme.nrx.paper.backgroundPaperColor} !important`,\n color: `${theme.palette.text.primary} !important`,\n border: 'none',\n '&:hover': {\n backgroundColor: `${grey[300]} !important`,\n color: `${theme.palette.text.primary} !important`\n },\n '&:focus': {\n boxShadow: 'none !important'\n },\n '&:active': {\n backgroundColor: `${grey[300]} !important`,\n color: `${theme.palette.text.primary} !important`\n },\n '&[disabled]': {\n '&:hover': {\n backgroundColor: `${theme.nrx.paper.backgroundPaperColor} !important`\n }\n }\n },\n '& .fc-button-active': {\n border: 'none',\n backgroundColor: `${grey[300]} !important`,\n color: `${theme.palette.text.primary} !important`\n }\n },\n overlay: {\n zIndex: 10,\n position: 'absolute',\n height: '100%',\n width: '100%',\n backgroundColor: 'rgba(255, 255, 255, 0.5)'\n },\n progressBar: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n width: '100%',\n height: '100%'\n }\n}))\n\nexport const getLocale = () => (moment.locale() || 'de')\n\nconst mapView = {\n dayGridMonth: 'month',\n dayGridWeek: 'week',\n dayGridDay: 'day'\n}\n\nconst Calendar = ({\n editorialPlans,\n bookmarkedOnly,\n selectedDate,\n loading,\n changeDate,\n applyFilters,\n setSorting,\n setLimit,\n setPage,\n openDetailedViewDialog,\n setSelectedEditorialPlan\n}) => {\n const i18n = useI18n()\n const { classes } = useStyles()\n const theme = useTheme()\n\n const wrapperRef = useRef(null)\n\n let fromDate = selectedDate.get('from')\n\n if (fromDate) {\n fromDate = moment(fromDate)\n } else {\n fromDate = moment()\n }\n\n const adjustPopover = () => {\n const popoverElement = document.querySelector('.fc-more-popover')\n\n if (popoverElement) {\n const view = document.querySelector('.fc-view-harness')\n const viewHeight = view.getBoundingClientRect().height\n\n const popoverBody = popoverElement.querySelector('.fc-popover-body')\n popoverBody.style.overflowY = 'auto'\n popoverBody.style.maxHeight = `${viewHeight - 20}px`\n\n const viewportWidth = window.innerWidth\n const viewportHeight = window.innerHeight\n const popoverRect = popoverElement.getBoundingClientRect()\n\n popoverElement.style.zIndex = '199'\n\n if (popoverRect.right > viewportWidth) {\n const overflowWidth = popoverRect.right - viewportWidth\n popoverElement.style.left = `${popoverElement.offsetLeft - overflowWidth - 60}px`\n }\n\n if (popoverRect.bottom > viewportHeight) {\n const overflowHeight = popoverRect.bottom - viewportHeight\n popoverElement.style.top = `${popoverElement.offsetTop - overflowHeight - 35}px`\n }\n }\n }\n\n useEffect(() => {\n if (!bookmarkedOnly) {\n setSorting({ sortBy: 'reach', sortOrder: 'desc', sortType: 'editorialPlansSorting' })\n }\n\n setLimit(100)\n setPage({ pageValue: 1, pageType: 'editorialPlansPage' })\n\n changeDate({\n from: fromDate.startOf('month').toDate(),\n to: fromDate.endOf('month').toDate()\n })\n applyFilters()\n\n const observer = new MutationObserver((mutationsList, _observer) => {\n mutationsList.forEach(mutation => {\n if (mutation.type === 'childList') {\n adjustPopover()\n }\n })\n })\n\n observer.observe(document.body, { childList: true, subtree: true })\n\n return () => {\n setSorting({ sortBy: 'editorial_deadline', sortOrder: 'asc', sortType: 'editorialPlansSorting' })\n setLimit(30)\n\n if (observer) {\n observer.disconnect()\n }\n }\n }, [])\n\n const convertedEvents = editorialPlans.map(plan => {\n const momentObj = moment(plan.get('editorialDeadline'))\n\n const date = momentObj.format('YYYY-MM-DD')\n\n return {\n title: plan.getIn(['publication', 'name']),\n date,\n extendedProps: {\n id: plan.get('id'),\n editorialDeadline: plan.get('editorialDeadline'),\n advertisingDeadline: plan.get('advertisingDeadline'),\n printingDeadline: plan.get('printingDeadline')\n },\n color: theme.palette.primary.main\n }\n }).toJS()\n\n const handleEventClick = eventInfo => {\n const editorialPlanId = eventInfo.event.extendedProps.id\n const editorialPlan = editorialPlans.find(plan => plan.get('id') === editorialPlanId)\n\n setSelectedEditorialPlan(editorialPlan)\n openDetailedViewDialog()\n }\n\n const onCalendarNavClick = (calendarApi, view) => {\n let from\n let to\n\n if (view === 'month') {\n from = moment(calendarApi.getDate()).startOf('month').toDate()\n to = moment(calendarApi.getDate()).endOf('month').toDate()\n }\n\n if (view === 'week') {\n from = moment(calendarApi.getDate()).startOf('week').toDate()\n to = moment(calendarApi.getDate()).endOf('week').toDate()\n }\n\n if (view === 'day') {\n from = moment(calendarApi.getDate()).startOf('day').toDate()\n to = moment(calendarApi.getDate()).endOf('day').toDate()\n }\n\n changeDate({ from, to })\n applyFilters()\n }\n\n const renderLoader = () => (\n \n \n \n \n \n )\n\n const renderEventContent = ({ event }) => \n\n const calendarConfig = {\n customButtons: {\n prev: {\n text: i18n.get('previous'),\n click() {\n const calendarApi = wrapperRef.current.getApi()\n calendarApi.prev()\n const viewType = calendarApi.view.type\n onCalendarNavClick(calendarApi, mapView[viewType])\n }\n },\n next: {\n text: i18n.get('next'),\n click() {\n const calendarApi = wrapperRef.current.getApi()\n calendarApi.next()\n const viewType = calendarApi.view.type\n onCalendarNavClick(calendarApi, mapView[viewType])\n }\n },\n today: {\n text: i18n.get('today'),\n click() {\n const calendarApi = wrapperRef.current.getApi()\n calendarApi.today()\n const viewType = calendarApi.view.type\n onCalendarNavClick(calendarApi, mapView[viewType])\n }\n },\n dayGridMonth: {\n text: i18n.get('month'),\n click() {\n const calendarApi = wrapperRef.current.getApi()\n calendarApi.changeView('dayGridMonth')\n onCalendarNavClick(calendarApi, 'month')\n }\n },\n dayGridWeek: {\n text: i18n.get('week'),\n click() {\n const calendarApi = wrapperRef.current.getApi()\n calendarApi.changeView('dayGridWeek')\n onCalendarNavClick(calendarApi, 'week')\n }\n },\n dayGridDay: {\n text: i18n.get('day'),\n click() {\n const calendarApi = wrapperRef.current.getApi()\n calendarApi.changeView('dayGridDay')\n onCalendarNavClick(calendarApi, 'day')\n }\n }\n },\n headerToolbar: useMediaQuery(theme.breakpoints.down('md')) ? {\n start: 'title prev,next',\n center: 'today dayGridMonth,dayGridWeek,dayGridDay',\n end: ''\n } : {\n start: 'prev,next today',\n center: 'title',\n end: 'dayGridMonth,dayGridWeek,dayGridDay'\n },\n titleFormat: {\n year: 'numeric',\n month: 'long'\n },\n initialDate: (() => {\n if (!fromDate.isSame(moment(), 'month')) {\n return fromDate.format('YYYY-MM-DD')\n }\n\n return null\n })(),\n plugins: [dayGridPlugin, interactionPlugin],\n dayMaxEventRows: useMediaQuery(theme.breakpoints.only('xs')) ? 0 : true,\n views: {\n dayGridDay: {\n dayMaxEventRows: true\n }\n },\n editable: false,\n height: '100%'\n }\n\n return (\n <>\n {loading && renderLoader()}\n \n \n \n \n \n \n \n \n \n )\n}\n\nexport default Calendar\n\nCalendar.propTypes = {\n editorialPlans: PropTypes.instanceOf(List).isRequired,\n bookmarkedOnly: PropTypes.bool.isRequired,\n selectedDate: PropTypes.instanceOf(Map).isRequired,\n loading: PropTypes.bool.isRequired,\n\n changeDate: PropTypes.func.isRequired,\n applyFilters: PropTypes.func.isRequired,\n setSorting: PropTypes.func.isRequired,\n setLimit: PropTypes.func.isRequired,\n setPage: PropTypes.func.isRequired,\n openDetailedViewDialog: PropTypes.func.isRequired,\n setSelectedEditorialPlan: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Calendar from 'components/themax/calendar'\n\nimport {\n changeDate,\n applyThemaxFilters,\n setThemaxSort,\n setThemaxLimit,\n setThemaxPage,\n openDetailedViewDialog,\n setSelectedEditorialPlan\n} from 'actions/themax'\n\nimport {\n getThemaxData,\n getThemaxFilters,\n getThemaxSelectedDate,\n getThemaxSearchRequestRunning\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n editorialPlans: getThemaxData(state).getIn(['editorialPlans', 'items']),\n bookmarkedOnly: getThemaxFilters(state).getIn(['booleans', 'bookmarkedOnly']),\n selectedDate: getThemaxSelectedDate(state),\n loading: getThemaxSearchRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n changeDate,\n setSorting: setThemaxSort,\n setLimit: setThemaxLimit,\n setPage: setThemaxPage,\n applyFilters: applyThemaxFilters,\n openDetailedViewDialog,\n setSelectedEditorialPlan\n }\n)(Calendar)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, List, fromJS } from 'immutable'\nimport useI18n from 'hooks/useI18n'\nimport { Waypoint } from 'react-waypoint'\n\nimport { makeStyles } from 'tss-react/mui'\nimport { useTheme } from '@mui/material/styles'\n\nimport {\n Dialog,\n DialogContent,\n DialogTitle,\n Box,\n Typography,\n Link,\n Button,\n useMediaQuery,\n Grid,\n LinearProgress\n} from '@mui/material'\n\nimport { grey } from '@mui/material/colors'\nimport CloseIcon from '@mui/icons-material/Close'\nimport PictureAsPdfIcon from '@mui/icons-material/PictureAsPdf'\nimport FilterListIcon from '@mui/icons-material/FilterList'\n\nimport BlurredSection from 'components/themax/hidden_content/BlurredSection'\n\nimport EditorialPlansItem from 'containers/themax/editorial_plans/editorial_plans_item/EditorialPlansItem'\nimport { IconButton } from 'containers/themed'\n\nimport { shorten } from 'utils/string'\n\nconst useStyles = makeStyles()(theme => ({\n dialogContent: {\n display: 'flex',\n border: 'none',\n padding: 0,\n paddingTop: 0,\n paddingBottom: 0,\n paddingRight: 0,\n overflow: 'hidden',\n minHeight: '85vh',\n [theme.breakpoints.down('md')]: {\n flexDirection: 'column',\n overflow: 'auto'\n }\n },\n freeVersionContainer: {\n display: 'flex',\n flex: 2,\n justifyContent: 'center',\n alignItems: 'center'\n },\n publicationInfoContainer: {\n width: '66%',\n height: '90vh',\n padding: '16px 24px',\n overflowY: 'auto',\n [theme.breakpoints.down('md')]: {\n height: 'auto',\n overflowY: 'visible',\n width: '100%'\n }\n },\n editorialPlansContainer: {\n flex: 1,\n backgroundColor: grey[200],\n padding: '16px',\n display: 'flex',\n flexDirection: 'column',\n gap: '15px',\n overflowY: 'auto',\n [theme.breakpoints.down('md')]: {\n overflowY: 'unset'\n }\n },\n linkContainer: {\n display: 'flex',\n gap: '5px',\n [theme.breakpoints.down('md')]: {\n flexWrap: 'wrap',\n wordBreak: 'break-word'\n }\n },\n link: {\n color: '#2A9BFD'\n },\n togglePublicationsLink: {\n color: '#2A9BFD',\n cursor: 'pointer'\n },\n publicationPdfContainer: {\n display: 'flex',\n gap: '5px',\n alignItems: 'center'\n },\n modeOfPublicationContainer: {\n display: 'flex',\n gap: '5px'\n },\n paidTitle: {\n display: 'flex',\n alignItems: 'center',\n gap: 2,\n [theme.breakpoints.down('md')]: {\n fontSize: '1.1rem'\n }\n },\n '& .clip': {\n color: theme.nrx.colors.highlighting\n }\n}))\n\nconst DetailedViewDialog = ({\n view,\n open,\n editorialPlan,\n relatedEditorialPlans,\n relatedEditorialPlansTotal,\n hasPaidVersion,\n fetchMoreRequestRunning,\n onClose,\n onScrollBottom,\n setSelectedPublicationIds,\n applyFilters,\n changeTabView\n}) => {\n const theme = useTheme()\n const { classes } = useStyles()\n const i18n = useI18n()\n const fullScreen = useMediaQuery(theme.breakpoints.down('md'))\n const publicationId = editorialPlan.getIn(['publication', 'id'])\n const publicationName = editorialPlan.getIn(['publication', 'name'])\n const editorialPlans = editorialPlan.getIn(['publication', 'editorialPlans']) || List()\n const moreEditorialPlans = view === 'media_profiles' ? relatedEditorialPlans : editorialPlans.unshift(editorialPlan)\n const [showAllPublications, setShowAllPublications] = useState(false)\n\n const { size } = relatedEditorialPlans\n\n const handleClose = () => {\n onClose()\n }\n\n const onEnterWaypoint = () => {\n if (size > 1 && size < relatedEditorialPlansTotal) {\n onScrollBottom()\n }\n }\n\n const handleDrillDown = () => {\n setSelectedPublicationIds(fromJS([{ id: publicationId, name: publicationName, label: publicationName, field: 'publication' }]))\n applyFilters()\n\n if (view !== 'editorial_plans') {\n changeTabView('editorial_plans')\n }\n\n handleClose()\n }\n\n const renderPaidView = () => {\n const publicationInfo = editorialPlan.get('publicationInfo')\n const publicationStreet = editorialPlan.getIn(['publication', 'street'])\n const publicationPostalCode = editorialPlan.getIn(['publication', 'postalCode'])\n const publicationCity = editorialPlan.getIn(['publication', 'city'])\n const publicationFile = editorialPlan.get('publicationFile')\n const editorialPhone = editorialPlan.get('editorialPhone')\n const editorialEmail = editorialPlan.get('editorialEmail')\n const editorialUrl = editorialPlan.get('editorialUrl')\n const advertisingEmail = editorialPlan.get('advertisingEmail')\n const advertisingPhone = editorialPlan.get('advertisingPhone')\n const frequencyOfPublication = editorialPlan.getIn(['publication', 'frequencyOfPublication'])\n const printrun = editorialPlan.getIn(['publication', 'printrun'])\n const publisherName = editorialPlan.getIn(['publication', 'publisher', 'name'])\n const publisherStreet = editorialPlan.getIn(['publication', 'publisher', 'street'])\n const publisherPostalCode = editorialPlan.getIn(['publication', 'publisher', 'postalCode'])\n const publisherCity = editorialPlan.getIn(['publication', 'publisher', 'city'])\n const publisherPhone = editorialPlan.getIn(['publication', 'publisher', 'phone'])\n const publisherPublicationsSize = (editorialPlan.getIn(['publication', 'publisher', 'publications']) || []).size\n let publisherPublications = editorialPlan.getIn(['publication', 'publisher', 'publications']) || []\n\n let showAllLink = (\n setShowAllPublications(false)}\n >\n ... {`${i18n.get('show_less')}`}\n \n )\n\n if (!showAllPublications) {\n publisherPublications = publisherPublications.slice(0, 10)\n showAllLink = (\n setShowAllPublications(true)}\n >\n ... {`${i18n.get('show_all')}`}\n \n )\n }\n\n return (\n \n \n \n {`${i18n.get('editorial_office')}:`}\n \n \n {publicationName}\n \n \n {publicationStreet}\n \n \n {`${publicationPostalCode} ${publicationCity}`}\n \n \n {`${i18n.get('phone')}: ${editorialPhone || '-'}`}\n \n
    \n \n {`${i18n.get('website')}: `}\n \n {editorialUrl ? (\n \n {shorten(editorialUrl, 40)}\n \n ) : '-'}\n
    \n
    \n \n {`${i18n.get('email')}: `}\n \n {editorialEmail ? (\n \n {shorten(editorialEmail, 40)}\n \n ) : '-'}\n
    \n \n \n \n {`${i18n.get('advertising_contact')}:`}\n \n \n {`${i18n.get('phone')}: ${advertisingPhone || '-'}`}\n \n
    \n \n {`${i18n.get('email')}: `}\n \n {advertisingEmail ? (\n \n {advertisingEmail}\n \n ) : '-'}\n
    \n

    \n {printrun > 0 && (\n
    \n \n {`${i18n.get('printrun')}: `}\n \n \n {`${frequencyOfPublication} ${printrun} ${i18n.get('copies')}`}\n \n
    \n )}\n \n \n \n {`${i18n.get('publisher')}:`}\n \n \n {publisherName}\n \n \n {publisherStreet}\n \n \n {`${publisherPostalCode} ${publisherCity}`}\n \n \n {`${i18n.get('phone')}: ${publisherPhone || '-'}`}\n \n \n \n \n {`${i18n.get('publishing_programm')}:`}\n \n {publisherPublications && publisherPublications.map((publication, index) => (\n \n {publication.get('name')}\n \n ))}\n {publisherPublicationsSize > 10 && (\n showAllLink\n )}\n \n \n \n {`${i18n.get('publication_profile')}:`}\n \n \n

    \n
    \n \n {`${i18n.get('media_information')}:`}\n \n }\n download\n >\n {i18n.get('download_pdf')}\n \n
    \n \n \n )\n }\n\n const renderPaidTitle = () => (\n \n {publicationName}\n \n t.palette.primary.contrastText }} />\n \n \n )\n\n const renderFreeView = () => (\n \n \n \n {`${i18n.get('editorial_office')}:`}\n \n \n \n \n
    \n \n {i18n.get('phone')}:\n \n \n
    \n
    \n \n {`${i18n.get('website')}: `}\n \n \n
    \n
    \n \n {`${i18n.get('email')}: `}\n \n \n
    \n \n \n \n {`${i18n.get('advertising_contact')}:`}\n \n
    \n \n {i18n.get('phone')}:\n \n \n
    \n
    \n \n {`${i18n.get('email')}: `}\n \n \n
    \n

    \n
    \n \n {`${i18n.get('printrun')}: `}\n \n \n
    \n \n \n \n {`${i18n.get('publisher')}:`}\n \n \n \n \n
    \n \n {i18n.get('phone')}:\n \n \n
    \n \n \n \n {`${i18n.get('publishing_programm')}:`}\n \n \n \n \n \n \n \n \n \n \n {`${i18n.get('publication_profile')}:`}\n \n \n

    \n
    \n \n {`${i18n.get('media_information')}:`}\n \n \n
    \n \n \n )\n\n return (\n \n t.spacing(2),\n backgroundColor: t => t.palette.primary.main,\n color: t => t.palette.primary.contrastText\n }}\n >\n {hasPaidVersion ? renderPaidTitle() : }\n t.palette.primary.contrastText\n }}\n >\n \n \n \n \n {hasPaidVersion ? renderPaidView() : renderFreeView()}\n \n {(open && editorialPlan) && (moreEditorialPlans\n .map((ep, index) => (\n \n \n \n )))}\n {view === 'media_profiles' && (\n <>\n \n {fetchMoreRequestRunning && (\n \n \n \n )}\n \n )}\n \n \n \n )\n}\n\nDetailedViewDialog.propTypes = {\n view: PropTypes.string.isRequired,\n open: PropTypes.bool.isRequired,\n editorialPlan: PropTypes.instanceOf(Map).isRequired,\n relatedEditorialPlans: PropTypes.instanceOf(List).isRequired,\n relatedEditorialPlansTotal: PropTypes.number.isRequired,\n hasPaidVersion: PropTypes.bool.isRequired,\n fetchMoreRequestRunning: PropTypes.bool.isRequired,\n\n onClose: PropTypes.func.isRequired,\n onScrollBottom: PropTypes.func.isRequired,\n setSelectedPublicationIds: PropTypes.func.isRequired,\n applyFilters: PropTypes.func.isRequired,\n changeTabView: PropTypes.func.isRequired\n}\n\nexport default DetailedViewDialog\n","import { connect } from 'react-redux'\n\nimport DetailedViewDialog from 'components/themax/detailed_view_dialog'\n\nimport {\n closeDetailedViewDialog,\n themaxFetchMoreRelatedEditorialPlansStart,\n applyThemaxFilters as applyFilters,\n setSelectedPublicationIds,\n changeTabView\n} from 'actions/themax'\n\nimport {\n getThemaxTabView,\n getThemaxData,\n getThemaxShowDetailedViewDialog,\n getSelectedEditorialPlan,\n getHasThemaxPaidVersion,\n getThemaxFetchMoreRequestRunning\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n view: getThemaxTabView(state),\n open: getThemaxShowDetailedViewDialog(state),\n editorialPlan: getSelectedEditorialPlan(state),\n relatedEditorialPlans: getThemaxData(state).getIn(['relatedEditorialPlans', 'items']),\n relatedEditorialPlansTotal: getThemaxData(state).getIn(['relatedEditorialPlans', 'total']),\n hasPaidVersion: getHasThemaxPaidVersion(state),\n fetchMoreRequestRunning: getThemaxFetchMoreRequestRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onClose: closeDetailedViewDialog,\n onScrollBottom: themaxFetchMoreRelatedEditorialPlansStart,\n setSelectedPublicationIds,\n applyFilters,\n changeTabView\n }\n)(DetailedViewDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport useI18n from 'hooks/useI18n'\n\nimport { makeStyles } from 'tss-react/mui'\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward'\nimport ArrowDownwardIcon from '@mui/icons-material/ArrowDownward'\nimport { Select, IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()(theme => ({\n sorting: {\n display: 'flex',\n alignItems: 'center',\n '& > div:first-of-type': {\n minWidth: 200,\n [theme.breakpoints.only('xs')]: {\n minWidth: '30vw'\n }\n },\n '& > *:last-child': {\n top: 10\n }\n }\n}))\n\nexport default function Sorting({\n sortBy,\n sortOrder,\n sortType,\n onSortChange\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n const options = [\n { value: 'reach', label: i18n.get('reach') }\n ]\n\n if (sortType === 'editorialPlansSorting') {\n options.push({\n value: 'editorial_deadline',\n label: i18n.get('editorial_deadline')\n })\n } else {\n options.push({ value: 'name', label: i18n.get('name') })\n }\n\n const selected = options.find(opt => {\n if (sortBy === 'reach' && opt.value === 'reach') {\n return true\n }\n\n if (sortBy === 'name' && opt.value === 'name') {\n return true\n }\n\n if (sortBy === 'editorial_deadline' && opt.value === 'editorial_deadline') {\n return true\n }\n\n return false\n })\n\n const onSortByChange = value => {\n onSortChange({ sortBy: value, sortOrder, sortType })\n }\n\n if (!selected) {\n onSortByChange(options[0].value)\n\n return null\n }\n\n const onSortOrderChange = () => {\n onSortChange({\n sortBy,\n sortOrder: sortOrder === 'asc' ? 'desc' : 'asc',\n sortType\n })\n }\n\n return (\n
    \n onSortByChange(value.value)}\n value={selected.value}\n />\n onSortOrderChange()}\n size=\"large\"\n >\n {sortOrder === 'desc' ? : }\n \n
    \n )\n}\n\nSorting.propTypes = {\n sortBy: PropTypes.string,\n sortOrder: PropTypes.string,\n sortType: PropTypes.string,\n onSortChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport Sorting from 'components/themax/sorting'\nimport { getThemaxEditorialPlansSortBy, getThemaxEditorialPlansSortOrder } from 'selectors'\nimport { updateThemaxSort } from 'actions/themax'\n\nconst mapStateToProps = state => ({\n sortBy: getThemaxEditorialPlansSortBy(state),\n sortOrder: getThemaxEditorialPlansSortOrder(state),\n sortType: 'editorialPlansSorting'\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSortChange: updateThemaxSort\n }\n)(Sorting)\n","import { connect } from 'react-redux'\n\nimport Sorting from 'components/themax/sorting'\nimport { getThemaxPublicationsSortBy, getThemaxPublicationsSortOrder } from 'selectors'\nimport { updateThemaxSort } from 'actions/themax'\n\nconst mapStateToProps = state => ({\n sortBy: getThemaxPublicationsSortBy(state),\n sortOrder: getThemaxPublicationsSortOrder(state),\n sortType: 'publicationsSorting'\n})\n\nexport default connect(\n mapStateToProps,\n {\n onSortChange: updateThemaxSort\n }\n)(Sorting)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport useI18n from 'hooks/useI18n'\nimport { useTheme } from '@mui/material/styles'\nimport {\n CircularProgress,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n useMediaQuery,\n Box\n} from '@mui/material'\nimport { DownloadOutlined } from '@mui/icons-material'\n\nimport LockedContentTooltip from 'components/themax/hidden_content/LockedContentTooltip'\nimport { Button, IconButton } from 'containers/themed'\n\nconst useStyles = makeStyles()({\n buttonWrapper: {\n display: 'flex',\n alignItems: 'center'\n },\n exportButton: {\n minWidth: 120\n }\n})\n\nexport default function ExcelDownloadButton({\n excelExportRequestRunning,\n onClick,\n hasPaidVersion,\n plansCount,\n view\n}) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const theme = useTheme()\n const isMobile = useMediaQuery(theme.breakpoints.down('sm'))\n const [warnDialogOpen, setWarnDialogOpen] = useState(false)\n\n if (view !== 'editorial_plans') {\n return null\n }\n\n const handleDialogConfirm = () => {\n onClick()\n setWarnDialogOpen(false)\n }\n\n const renderWarnDialog = () => (\n setWarnDialogOpen(false)}\n >\n {i18n.get('export_excel')}\n \n \n {i18n.get('themax_export_excel_warning', { n: plansCount })}\n \n \n \n setWarnDialogOpen(false)}\n color=\"secondary\"\n >\n {i18n.get('cancel')}\n \n handleDialogConfirm()}\n color=\"primary\"\n autoFocus\n >\n {i18n.get('next')}\n \n \n \n )\n\n const renderDownloadButton = () => {\n let comp = (\n <>\n 500 ? () => setWarnDialogOpen(true) : onClick}\n size=\"small\"\n className={classes.exportButton}\n disabled={excelExportRequestRunning || !hasPaidVersion}\n >\n {excelExportRequestRunning ? (\n \n ) : i18n.get('export_excel')}\n \n {!hasPaidVersion && }\n \n )\n\n if (isMobile) {\n comp = (\n <>\n 500 ? () => setWarnDialogOpen(true) : onClick}\n >\n \n \n {!hasPaidVersion && }\n \n )\n }\n\n return (\n \n {comp}\n \n )\n }\n\n return (\n
    \n {renderDownloadButton()}\n {renderWarnDialog()}\n
    \n )\n}\n\nExcelDownloadButton.propTypes = {\n excelExportRequestRunning: PropTypes.bool.isRequired,\n hasPaidVersion: PropTypes.bool.isRequired,\n plansCount: PropTypes.number.isRequired,\n view: PropTypes.string.isRequired,\n\n onClick: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport ExcelDownloadButton from 'components/themax/excel_download_button'\n\nimport { getHasThemaxPaidVersion, getThemaxData, getThemaxExcelExportRequestRunning, getThemaxTabView } from 'selectors'\nimport { exportEditorialPlansStart } from 'actions/themax'\n\nconst mapStateToProps = state => ({\n excelExportRequestRunning: getThemaxExcelExportRequestRunning(state),\n hasPaidVersion: getHasThemaxPaidVersion(state),\n plansCount: getThemaxData(state).getIn(['editorialPlans', 'total']),\n view: getThemaxTabView(state)\n})\n\nexport default connect(mapStateToProps, {\n onClick: exportEditorialPlansStart\n})(ExcelDownloadButton)\n","import React, { useEffect } from 'react'\nimport PropTypes from 'prop-types'\n\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Box } from '@mui/material'\n\nimport ContentContainer from 'components/content_container/'\n\nimport WelcomeDialog from 'containers/themax/WelcomeDialog'\nimport OrderDialog from 'containers/themax/OrderDialog'\nimport OrderSuccessDialog from 'containers/themax/OrderSuccessDialog'\nimport AppBar from 'containers/themax/AppBar'\nimport OrderProgress from 'containers/themax/OrderProgress'\nimport SavedSearchesOptions from 'containers/themax/saved_searches/SavedSearchesOptions'\nimport ActiveFilterList from 'containers/themax/ActiveFilterList'\nimport Navigation from 'containers/themax/Navigation'\nimport EditorialPlans from 'containers/themax/editorial_plans/EditorialPlans'\nimport MediaProfiles from 'containers/themax/MediaProfiles'\nimport Calendar from 'containers/themax/Calendar'\nimport DetailedViewDialog from 'containers/themax/DetailedViewDialog'\nimport EditorialPlansSorting from 'containers/themax/EditorialPlansSorting'\nimport PublicationsSorting from 'containers/themax/PublicationsSorting'\nimport ExcelDownloadButton from 'containers/themax/ExcelDownloadButton'\n\nconst useStyles = makeStyles()(theme => ({\n container: {\n paddingTop: '20px',\n paddingBottom: '20px',\n position: 'relative',\n minHeight: '90%',\n overflow: 'hidden',\n [theme.breakpoints.only('xs')]: {\n paddingBottom: '0px'\n },\n [theme.breakpoints.between('sm', 'md')]: {\n paddingLeft: '20px',\n paddingRight: '20px'\n }\n },\n exportButton: {\n minWidth: 120\n },\n filtersAndSavedSearch: {\n paddingTop: '20px',\n [theme.breakpoints.only('xs')]: {\n paddingLeft: '5px'\n },\n [theme.breakpoints.between('sm', 'md')]: {\n paddingLeft: '20px'\n },\n [theme.breakpoints.up('md')]: {\n paddingLeft: '40px'\n }\n },\n navWrapper: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n [theme.breakpoints.only('xs')]: {\n margin: '0 1.5em'\n }\n },\n actions: {\n display: 'flex',\n justifyContent: 'flex-end',\n alignItems: 'baseline',\n gap: 20\n }\n}))\n\nconst Themax = ({\n view,\n onMount,\n onUnmount\n}) => {\n const { classes } = useStyles()\n\n useEffect(() => {\n onMount()\n\n return () => {\n onUnmount()\n }\n }, [onMount])\n\n const renderSorting = () => {\n if (view === 'editorial_plans') {\n return (\n \n )\n }\n\n if (view === 'media_profiles') {\n return (\n \n )\n }\n\n return null\n }\n\n return (\n <>\n \n \n \n \n \n \n \n \n \n \n {renderSorting()}\n \n {view === 'editorial_plans' && }\n {view === 'media_profiles' && }\n {view === 'calendar' && }\n \n \n \n \n \n \n )\n}\n\nThemax.propTypes = {\n view: PropTypes.string.isRequired,\n\n onMount: PropTypes.func.isRequired,\n onUnmount: PropTypes.func.isRequired\n}\n\nexport default Themax\n","import { connect } from 'react-redux'\n\nimport Themax from 'components/themax'\n\nimport { getThemaxTabView } from 'selectors'\nimport { onMount, onUnmount } from 'actions/themax'\n\nconst mapStateToProps = state => ({\n view: getThemaxTabView(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onMount,\n onUnmount\n }\n)(Themax)\n","import { connect } from 'react-redux'\n\nimport SavedSearches from 'components/saved_searches'\n\nimport {\n searchThemaxSavedSearchesStart\n} from 'actions/themax'\n\nimport {\n setViewType\n} from 'actions/saved_searches'\n\nimport {\n getSavedSearchViewType,\n getThemaxSavedSearches as getSavedSearches\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n hasSavedSearches: !getSavedSearches(state).get('items').isEmpty(),\n showRestrictionHint: false,\n viewType: getSavedSearchViewType(state),\n tab: 'saved_searches',\n showTimeline: false,\n showFeed: false,\n loadThrough: 'themax/saved_searches'\n})\n\nexport default connect(\n mapStateToProps,\n {\n onMount: searchThemaxSavedSearchesStart,\n onViewChange: setViewType,\n onTabChange: () => { }\n }\n)(SavedSearches)\n","import React, { useEffect } from 'react'\nimport { useSelector, useDispatch } from 'react-redux'\nimport { replace } from 'redux-first-history'\n\nimport { getUser, getCapabilities } from 'selectors'\nimport { Capabilities } from 'static/constants'\nimport { getFirstValidRoute } from 'utils/routing'\nimport { createLoadable } from 'utils/loadable'\nimport LinkedInPopUp from 'containers/administration/external_accounts/LinkedInPopup'\n\nimport NewsView from 'containers/NewsView'\n\nimport CustomTags from 'containers/custom_tags/CustomTags'\nimport Dashboard from 'containers/dashboard/Dashboard'\nimport MailingLists from 'containers/administration/mailing_lists/MailingLists'\nimport ExternalAccounts from 'containers/administration/ExternalAccounts'\nimport MediaReviewDetail from 'containers/media_reviews/media_review_detail/MediaReviewDetail'\nimport MediaReviews from 'containers/media_reviews/MediaReviews'\nimport NewsPage from 'containers/news_page/NewsPage'\nimport PersonalSettings from 'containers/personal_settings/PersonalSettings'\nimport SavedSearches from 'containers/saved_searches/SavedSearches'\nimport Settings from 'containers/administration/Settings'\nimport ShoppingCart from 'containers/shopping_cart/ShoppingCart'\nimport Subscriptions from 'containers/subscriptions'\nimport NewsRadar from 'containers/NewsRadar'\nimport DarknetDashboard from 'containers/darknet/Dashboard'\nimport DarknetQueryManager from 'containers/darknet/QueryManager'\nimport ExternalChart from 'containers/darknet/ExternalChart'\nimport ContentDesk from 'containers/content_desk_new/ContentDesk'\nimport ContentsCampaignsShowAll from 'containers/content_desk_new/contents_campaigns_show_all/ContentsCampaignsShowAll'\nimport ContactManagement from 'containers/contact_management/ContactManagement'\nimport Anewstip from 'containers/anewstip/Anewstip'\nimport ContentDeskSettings from 'containers/administration/ContentDeskSettings'\nimport EmailTemplatesLibrary from 'containers/email_templates_library/EmailTemplatesLibrary'\nimport SavedCharts from 'containers/administration/SavedCharts'\nimport DispatchLog from 'containers/administration/DispatchLog'\nimport Themax from 'containers/themax/Themax'\nimport ThemaxSavedSearches from 'containers/themax/SavedSearches'\n\nconst App = createLoadable(() => import(/* webpackChunkName: \"App\" */ 'containers/App'))\nconst Testing = createLoadable(() => import(/* webpackChunkName: \"Testing\" */ 'components/testing'))\nconst UserActivation = createLoadable(() => import(/* webpackChunkName: \"UserActivation\" */ 'containers/login/UserActivation'))\nconst Login = createLoadable(() => import(/* webpackChunkName: \"Login\" */ 'containers/Login'))\nconst ForgotPassword = createLoadable(() => import(/* webpackChunkName: \"ForgotPassword\" */ 'containers/login/ForgotPassword'))\nconst ResetPassword = createLoadable(() => import(/* webpackChunkName: \"ResetPassword\" */ 'containers/login/ResetPassword'))\nconst Fail = createLoadable(() => import(/* webpackChunkName: \"Fail\" */ 'containers/Fail'))\nconst DirectLogin = createLoadable(() => import(/* webpackChunkName: \"DirectLogin\" */ 'containers/login/DirectLogin'))\nconst Register = createLoadable(() => import(/* webpackChunkName: \"Register\" */ 'containers/login/Register'))\nconst SavedDashboard = createLoadable(() => import(/* webpackChunkName: \"SavedDashboard\" */ 'containers/saved_dashboard/SavedDashboard'))\nconst SavedChart = createLoadable(() => import(/* webpackChunkName: \"SavedChart\" */ 'containers/saved_chart/SavedChart'))\n\nconst userIsAuthenticated = Comp => {\n const WrapperComponent = props => {\n const user = useSelector(getUser)\n\n if (user.get('isAuthenticated')) {\n return \n }\n\n return \n }\n\n WrapperComponent.displayName = `UserIsAuthenticated(${Comp.name || Comp.displayName})`\n\n return WrapperComponent\n}\n\nconst createCapSafeWrapper = (capName, inverse = false) => Comp => {\n const WrapperComponent = props => {\n const capabilities = useSelector(getCapabilities)\n const dispatch = useDispatch()\n\n let hasCap = capabilities.get(capName)\n\n if (inverse) {\n hasCap = !capabilities.get(capName, false)\n }\n\n const firstValidRoute = getFirstValidRoute(capabilities)\n\n useEffect(() => {\n if (!hasCap) {\n dispatch(replace(firstValidRoute))\n }\n }, [hasCap])\n\n if (hasCap) {\n return \n }\n\n return null\n }\n\n WrapperComponent.displayName = `UserHasCap(${Comp.name || Comp.displayName})`\n\n return WrapperComponent\n}\n\nconst userHasGlobalSettings = createCapSafeWrapper(Capabilities.HAS_GLOBAL_SETTINGS)\nconst userHasMailingList = createCapSafeWrapper(Capabilities.HAS_MAILING_LISTS)\nconst userHasExternalAccounts = createCapSafeWrapper(Capabilities.HAS_EXTERNAL_ACCOUNT_SETTINGS)\nconst userHasSubscriptionsModule = createCapSafeWrapper(Capabilities.HAS_SUBSCRIPTIONS_MODULE)\nconst userHasMediaReviewModule = createCapSafeWrapper(Capabilities.HAS_MEDIA_REVIEW_MODULE)\nconst userHasPinnboardsModule = createCapSafeWrapper(Capabilities.HAS_CUSTOM_TAGS_MODULE)\nconst userHasProfileMonitoringModule = createCapSafeWrapper(Capabilities.HAS_PROFILE_MONITORING_MODULE)\nconst userHasNewsPoolModule = createCapSafeWrapper(Capabilities.HAS_NEWS_POOL_MODULE)\nconst userHasNewsModule = createCapSafeWrapper(Capabilities.HAS_NEWS_MODULE)\nconst userHasAnalysisModule = createCapSafeWrapper(Capabilities.HAS_ANALYSIS_MODULE)\nconst userHasDashboardModule = createCapSafeWrapper(Capabilities.HAS_DASHBOARD_MODULE)\nconst userHasDarknetDashboard = createCapSafeWrapper(Capabilities.HAS_DARKNET_DASHBOARD)\nconst userHasDarknetQueryManager = createCapSafeWrapper(Capabilities.HAS_DARKNET_QUERY_MANAGER)\nconst userHasDisabledSettings = createCapSafeWrapper(Capabilities.HAS_DISABLED_USER_SETTINGS, true)\nconst userHasContentDeskModule = createCapSafeWrapper(Capabilities.HAS_CONTENT_DESK_MODULE)\nconst userHasContactManagementModule = createCapSafeWrapper(Capabilities.HAS_CONTACTS_MANAGEMENT_MODULE)\nconst userHasAnewstipModule = createCapSafeWrapper(Capabilities.HAS_CONTACTS_MANAGEMENT_ANEWSTIP)\nconst userHasSavedChartsModule = createCapSafeWrapper(Capabilities.HAS_SAVED_CHARTS)\nconst userHasDispatchLogModule = createCapSafeWrapper(Capabilities.HAS_DISPATCH_LOG)\nconst userHasThemaxModule = createCapSafeWrapper(Capabilities.HAS_THE_MAX_MODULE)\n\nconst buildDefaultNewsViewRoutes = (parentPath, view, authFunc) => [\n {\n path: `/app/${parentPath}`,\n exact: true,\n component: authFunc(NewsView(NewsPage, view))\n },\n {\n path: `/app/${parentPath}/saved_searches`,\n exact: true,\n component: NewsView(SavedSearches, view)\n }\n]\n\n// Need NewsView on all routes to prevent reloads due to config changes\nconst buildNewsViewRoutes = (parentPath, view, authFunc) => buildDefaultNewsViewRoutes(parentPath, view, authFunc).concat([\n {\n path: `/app/${parentPath}/shopping_cart`,\n component: NewsView(ShoppingCart, view)\n },\n {\n path: `/app/${parentPath}/pin_boards`,\n exact: true,\n component: NewsView(userHasPinnboardsModule(CustomTags), view)\n },\n {\n path: `/app/${parentPath}/pin_boards/shopping_cart`,\n exact: true,\n component: NewsView(ShoppingCart, view)\n },\n {\n path: `/app/${parentPath}/pin_boards/:custom_tag_id/shopping_cart`,\n exact: true,\n component: NewsView(ShoppingCart, view)\n }\n])\n\nconst mapRoutes = routes => routes.map(route => {\n const newRoute = { ...route }\n\n if (route.component) {\n const Comp = route.component\n newRoute.element = \n }\n\n if (route.children) {\n newRoute.children = mapRoutes(route.children)\n }\n\n return newRoute\n})\n\nexport default mapRoutes([\n {\n path: '/',\n component: NewsRadar,\n children: [\n {\n index: true,\n component: Login\n },\n {\n path: '/register',\n component: Register\n },\n {\n path: '/forgot_password',\n component: ForgotPassword\n },\n {\n path: '/linked_in',\n component: LinkedInPopUp\n },\n {\n path: '/reset_password/:access_token',\n component: ResetPassword\n },\n {\n path: '/direct_login/:secret',\n component: DirectLogin\n },\n {\n path: '/infoboard/:urlName',\n component: SavedDashboard\n },\n {\n path: '/charts/:id/embed',\n component: SavedChart\n },\n {\n path: 'testing',\n element: \n },\n {\n path: '/app',\n component: userIsAuthenticated(App),\n children: [\n ...buildNewsViewRoutes('news', 'earned', userHasNewsModule),\n ...buildNewsViewRoutes('profile_monitoring', 'profileMonitoring', userHasProfileMonitoringModule),\n ...buildNewsViewRoutes('search_pool', 'searchPool', userHasNewsPoolModule),\n ...buildNewsViewRoutes('media_monitoring', 'searchPool', userHasNewsPoolModule),\n ...buildNewsViewRoutes('analysis', 'analysis', userHasAnalysisModule),\n {\n path: '/app/administration/settings',\n component: userHasGlobalSettings(Settings)\n },\n {\n path: '/app/administration/mailing_lists',\n component: userHasMailingList(MailingLists)\n },\n {\n path: '/app/administration/external_accounts',\n component: userHasExternalAccounts(ExternalAccounts)\n },\n {\n path: '/app/administration/content_desk_settings',\n component: userHasContentDeskModule(ContentDeskSettings)\n },\n {\n path: '/app/administration/saved_charts',\n component: userHasSavedChartsModule(SavedCharts)\n },\n {\n path: '/app/administration/dispatch_log',\n component: userHasDispatchLogModule(DispatchLog)\n },\n {\n path: '/app/personal_settings',\n component: userHasDisabledSettings(PersonalSettings)\n },\n {\n path: '/app/subscriptions',\n component: userHasSubscriptionsModule(Subscriptions)\n },\n {\n path: '/app/media_reviews',\n component: userHasMediaReviewModule(MediaReviews)\n },\n {\n path: '/app/media_reviews/:id',\n component: MediaReviewDetail\n },\n {\n path: '/app/fail',\n component: Fail\n },\n {\n path: '/app/dashboard/:id',\n component: userHasDashboardModule(Dashboard)\n },\n {\n path: '/app/dashboard',\n component: userHasDashboardModule(Dashboard)\n },\n {\n path: '/app/darknet/dashboard',\n component: userHasDarknetDashboard(DarknetDashboard)\n },\n {\n path: '/app/darknet/dashboard/query_manager',\n component: userHasDarknetQueryManager(DarknetQueryManager)\n },\n // {\n // path: '/app/darknet/administration',\n // component: userHasDarknetDashboard(DarknetAdministration)\n // },\n {\n path: '/app/content_desk/content_management',\n exact: true,\n component: userHasContentDeskModule(ContentDesk)\n },\n {\n path: '/app/content_desk/content_management/contents_and_campaigns',\n exact: true,\n component: userHasContentDeskModule(ContentsCampaignsShowAll)\n },\n {\n path: '/app/content_desk/template_library',\n exact: true,\n component: userHasContentDeskModule(EmailTemplatesLibrary)\n },\n {\n path: '/app/contact_management/my_contacts',\n exact: true,\n component: userHasContactManagementModule(ContactManagement)\n },\n {\n path: '/app/contact_management/journalist_search',\n exact: true,\n component: userHasAnewstipModule(Anewstip)\n },\n {\n path: '/app/themax',\n exact: true,\n component: userHasThemaxModule(Themax)\n },\n {\n path: '/app/themax/saved_searches',\n exact: true,\n component: userHasThemaxModule(ThemaxSavedSearches)\n },\n {\n path: '*',\n component: Fail\n }\n ]\n },\n {\n path: '/user_activation/:aid/:mod',\n component: UserActivation\n },\n {\n path: '/external_chart/',\n component: ExternalChart\n },\n {\n path: '*',\n component: Fail\n }\n ]\n }\n])\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Provider } from 'react-redux'\nimport { useRoutes } from 'react-router-dom'\nimport { HistoryRouter as Router } from 'redux-first-history/rr6'\n\nimport { history } from 'store'\nimport routes from '../routes'\n\nconst Routes = () => {\n const routesElement = useRoutes(routes)\n\n return routesElement\n}\n\nconst Root = ({ store }) => (\n \n <>\n \n \n \n \n \n)\n\nRoot.propTypes = {\n store: PropTypes.object.isRequired\n}\n\nexport default Root\n","import { connect } from 'react-redux'\n\nimport { getColors } from 'selectors'\n\nconst mapStateToProps = state => ({\n primaryColor: getColors(state).get('primary'),\n accentColor: getColors(state).get('accent')\n})\n\nconst extraOptions = {\n getDisplayName: name => `WithColors(${name})`\n}\n\nexport default function WithColors() {\n return Comp => connect(mapStateToProps, null, null, extraOptions)(Comp)\n}\n","import { connect } from 'react-redux'\n\nimport { getDevice, getBreakpoint } from 'selectors'\n\nconst mapStateToProps = (state, { breakpoint }) => ({\n device: getDevice(state),\n breakpoint: breakpoint || getBreakpoint(state)\n})\n\nconst extraOptions = {\n getDisplayName: name => `WithDevice(${name})`\n}\n\nexport default function WithDevice() {\n return Comp => connect(mapStateToProps, null, null, extraOptions)(Comp)\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { fromJS } from 'immutable'\nimport { Dialog, RaisedPrimaryButton, Button, Input } from 'containers/themed'\n\nimport MailAutocomplete from 'containers/MailAutocomplete'\nimport { CardContent } from '@mui/material'\n\nexport default function EditDialog({\n active,\n i18n,\n mailingList,\n running,\n onHide,\n onSubmit,\n onChange\n}) {\n const handleNameChange = value => {\n onChange(mailingList.set('name', value))\n }\n\n const handleRecipientsChange = value => {\n onChange(mailingList.set('recipients', fromJS(value)))\n }\n\n const handleSave = () => {\n onSubmit(mailingList)\n }\n\n const isValid = () => {\n const namePresent = mailingList.get('name').length > 0\n const recipientsPresent = mailingList.get('recipients').size > 0\n\n return namePresent && recipientsPresent\n }\n\n const renderActions = () => {\n const actions = [\n \n {i18n.get('cancel')}\n ,\n handleSave()}\n disabled={!isValid() || running}\n >\n {i18n.get('save')}\n \n ]\n\n return actions\n }\n\n const renderBody = () => {\n const recipients = mailingList.get('recipients').toJS()\n\n return (\n \n handleNameChange(e.target.value)}\n />\n
    \n
    \n handleRecipientsChange(value)}\n value={recipients}\n />\n
    \n )\n }\n\n let title = i18n.get('create_mailing_list')\n\n if (mailingList.get('id')) {\n title = i18n.get('edit_mailing_list')\n }\n\n return (\n \n {renderBody()}\n \n )\n}\n\nEditDialog.propTypes = {\n active: PropTypes.bool.isRequired,\n i18n: PropTypes.object.isRequired,\n mailingList: PropTypes.object.isRequired,\n running: PropTypes.bool.isRequired,\n\n onHide: PropTypes.func.isRequired,\n onSubmit: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport EditDialog from 'components/administration/mailing_lists/edit_dialog'\nimport { getI18n, getShowMailingListDialog, getSelectedMailingList, getSaveMailingListRunning } from 'selectors'\nimport { hideMailingListDialog, saveMailingListStart, updateSelectedMailingList } from 'actions/mailing_lists'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n active: getShowMailingListDialog(state),\n mailingList: getSelectedMailingList(state),\n running: getSaveMailingListRunning(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onHide: hideMailingListDialog,\n onSubmit: saveMailingListStart,\n onChange: updateSelectedMailingList\n }\n)(EditDialog)\n","import { connect } from 'react-redux'\n\nimport RemoveDialog from 'components/dialogs/confirm_dialog'\n\nimport { deleteMailingListStart, hideRemoveMailingListDialog } from 'actions/mailing_lists'\nimport { getI18n, getShowRemoveMailingListDialog, getSelectedMailingList } from 'selectors'\n\nconst mapStateToProps = state => (\n {\n i18n: getI18n(state),\n title: getSelectedMailingList(state).get('name'),\n payload: getSelectedMailingList(state).get('id'),\n active: getShowRemoveMailingListDialog(state),\n text: getI18n(state).get('delete_mailing_list_text')\n }\n)\n\nexport default connect(\n mapStateToProps,\n {\n onSubmit: deleteMailingListStart,\n onHide: hideRemoveMailingListDialog\n }\n)(RemoveDialog)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport { faJs } from '@fortawesome/free-brands-svg-icons/faJs'\nimport moment from 'moment-timezone'\nimport RssFeedIcon from '@mui/icons-material/RssFeed'\nimport PageviewIcon from '@mui/icons-material/Pageview'\nimport CodeIcon from '@mui/icons-material/Code'\nimport FileDownloadIcon from '@mui/icons-material/FileDownload'\nimport { makeStyles } from 'tss-react/mui'\nimport { lightBlue, grey, deepOrange } from '@mui/material/colors'\nimport { CardActions, CardHeader, CardContent, Tooltip } from '@mui/material'\n\nimport Card from 'components/card'\nimport WithI18n from 'containers/WithI18n'\nimport WithColors from 'containers/WithColors'\nimport DummyCardIcon from 'components/dummy_card_icon'\nimport { IconButton } from 'containers/themed'\n\nimport masterConfig from 'static/master_config'\n\nconst useStyles = makeStyles()(theme => ({\n customTag: {\n position: 'relative'\n },\n actions: {\n width: '100%',\n display: 'flex',\n flexWrap: 'wrap',\n marginLeft: -5\n },\n spacer: {\n flex: 1\n },\n image: {\n minHeight: '100%'\n },\n media: {\n height: 200\n },\n previewMedia: {\n height: 25\n },\n sDocIcon: {\n position: 'absolute',\n left: -20,\n top: -20,\n padding: 25,\n color: '#ffffff',\n borderRadius: 60,\n boxShadow: '1px 1px rgba(0, 0, 0, 0.26)',\n '& > *': {\n position: 'relative',\n left: 5,\n top: 5,\n fontSize: '45pt !important'\n }\n },\n sDocMini: {\n position: 'absolute',\n color: '#ffffff',\n borderRadius: 60,\n boxShadow: '1px 1px rgba(0, 0, 0, 0.26)',\n padding: 6,\n left: -7,\n top: -10,\n '& > *': {\n position: 'relative',\n left: 5,\n top: 5,\n fontSize: '10pt !important'\n }\n },\n rss: {\n backgroundColor: deepOrange[500]\n },\n xml: {\n backgroundColor: lightBlue[900]\n },\n json: {\n backgroundColor: grey[700]\n },\n title: {\n fontSize: '15pt'\n },\n lastNews: {\n paddingTop: 0,\n fontSize: '12pt'\n },\n clickable: {\n cursor: 'pointer'\n },\n cardText: {\n margin: '-28px 0 -15px !important',\n minHeight: '6rem',\n color: theme.palette.grey[600]\n },\n iconButton: {\n [theme.breakpoints.only('sm')]: {\n padding: 8\n }\n }\n}))\n\nconst iconConfig = {\n rss: ,\n xml: ,\n json: \n}\n\nconst Info = ({ i18n, customTag, preview, imageOnly, info }) => {\n const { classes } = useStyles()\n\n if (preview || imageOnly) {\n return null\n }\n\n const lastNewsCustomTag = customTag.get('lastNewsCustomTag')\n\n let lastNewsDate = i18n.get('no_news_assigned_yet')\n\n if (lastNewsCustomTag) {\n const date = moment(lastNewsCustomTag.get('createdAt')).format('L')\n const time = moment(lastNewsCustomTag.get('createdAt')).format('LTS')\n lastNewsDate = `${date} ${time}`\n }\n\n const name = customTag.get('name')\n\n if (!info) {\n return (\n \n )\n }\n\n return (\n <>\n \n\n \n {customTag.get('description')}\n \n\n \n \n )\n}\n\nconst Actions = ({\n i18n,\n customTag,\n preview,\n imageOnly,\n actions,\n onEditClick,\n onFilterClick,\n onExportClick,\n onEmptyCustomTag,\n onDelete,\n onRunQueriesClick\n}) => {\n const { classes } = useStyles()\n\n if (preview || imageOnly) {\n return null\n }\n\n if (actions) {\n return (\n \n
    \n {actions}\n
    \n
    \n )\n }\n\n let title\n let icon\n\n if (customTag.get('rssEnabled')) {\n title = i18n.get('export_as_rss')\n icon = iconConfig.rss\n } else if (customTag.get('xmlEnabled')) {\n title = i18n.get('export_as_xml')\n icon = iconConfig.xml\n } else if (customTag.get('jsonEnabled')) {\n title = i18n.get('export_as_json')\n icon = iconConfig.json\n } else {\n title = i18n.get('export_custom_tag')\n icon = \n }\n\n return (\n \n
    \n \n
    \n onExportClick(customTag)}\n size=\"large\"\n />\n
    \n \n \n onFilterClick(customTag)}\n size=\"large\"\n />\n \n {customTag.get('percolationEnabled') && !customTag.get('queries').isEmpty() && (\n \n onRunQueriesClick(customTag)}\n size=\"large\"\n >\n \n \n \n )}\n \n onEditClick(customTag)}\n size=\"large\"\n />\n \n\n \n\n \n onDelete(customTag)}\n size=\"large\"\n />\n \n \n
    \n onEmptyCustomTag(customTag)}\n disabled={customTag.get('newsCount') === 0}\n size=\"large\"\n />\n
    \n \n
    \n
    \n )\n}\n\nconst Icon = ({ customTag, preview, imageOnly }) => {\n const { classes, cx } = useStyles()\n\n const classNameConfig = {\n rss: classes.rss,\n xml: classes.xml,\n json: classes.json\n }\n\n let sDocType = null\n\n if (customTag.get('rssEnabled')) {\n sDocType = 'rss'\n } else if (customTag.get('xmlEnabled')) {\n sDocType = 'xml'\n } else if (customTag.get('jsonEnabled')) {\n sDocType = 'json'\n }\n\n const icon = iconConfig[sDocType]\n\n if (!icon) {\n return null\n }\n\n const className = cx(\n classNameConfig[sDocType],\n (preview || imageOnly) ? classes.sDocMini : null\n )\n\n return (\n
    \n {icon}\n
    \n )\n}\n\nconst Media = ({ customTag, preview, onFilterClick, i18n, imageOnly }) => {\n const { classes, cx } = useStyles()\n\n return (\n onFilterClick(customTag)}\n title={preview || imageOnly ? undefined : i18n.get('filter_by_custom_tag')}\n >\n \n
    \n )\n}\n\nconst CustomTag = props => {\n const { classes } = useStyles()\n\n const { customTag, accentColor } = props\n\n const mediaProps = {\n aspectRatio: 'wide',\n image: customTag.get('photo')\n }\n\n if (!customTag.get('photo')) {\n mediaProps.style = {\n backgroundColor: accentColor\n }\n }\n\n return (\n \n \n \n \n \n \n )\n}\n\nInfo.propTypes = {\n i18n: PropTypes.object.isRequired,\n imageOnly: PropTypes.bool,\n info: PropTypes.bool,\n preview: PropTypes.bool,\n customTag: PropTypes.instanceOf(Map).isRequired\n}\n\nActions.propTypes = {\n actions: PropTypes.any,\n customTag: PropTypes.instanceOf(Map).isRequired,\n i18n: PropTypes.object.isRequired,\n imageOnly: PropTypes.bool,\n preview: PropTypes.bool,\n\n onDelete: PropTypes.func.isRequired,\n onRunQueriesClick: PropTypes.func.isRequired,\n onEditClick: PropTypes.func.isRequired,\n onEmptyCustomTag: PropTypes.func.isRequired,\n onExportClick: PropTypes.func.isRequired,\n onFilterClick: PropTypes.func.isRequired\n}\n\nIcon.propTypes = {\n customTag: PropTypes.instanceOf(Map).isRequired,\n imageOnly: PropTypes.bool,\n preview: PropTypes.bool\n}\n\nMedia.propTypes = {\n customTag: PropTypes.instanceOf(Map).isRequired,\n preview: PropTypes.bool,\n i18n: PropTypes.object.isRequired,\n onFilterClick: PropTypes.func.isRequired,\n imageOnly: PropTypes.bool\n}\n\nCustomTag.defaultProps = {\n preview: false,\n imageOnly: false,\n info: true\n}\n\nCustomTag.propTypes = {\n customTag: PropTypes.instanceOf(Map).isRequired,\n i18n: PropTypes.object.isRequired,\n accentColor: PropTypes.string.isRequired,\n preview: PropTypes.bool,\n imageOnly: PropTypes.bool,\n info: PropTypes.bool,\n actions: PropTypes.any,\n\n onEditClick: PropTypes.func.isRequired,\n onDelete: PropTypes.func.isRequired,\n onEmptyCustomTag: PropTypes.func.isRequired,\n onFilterClick: PropTypes.func.isRequired,\n onExportClick: PropTypes.func.isRequired\n}\n\nexport default WithI18n()(WithColors()(CustomTag))\n","import { connect } from 'react-redux'\n\nimport CustomTag from 'components/custom_tags/custom_tag'\nimport {\n showCustomTagDialog,\n filterBySelectedCustomTag,\n openCustomTagInShoppingCart,\n showRemoveCustomTagDialog,\n showEmptyCustomTagDialog,\n runCustomTagQueries\n} from 'actions/custom_tags'\n\nconst mapStateToProps = (state, ownProps) => ({\n customTag: ownProps.customTag\n})\n\nexport default connect(\n mapStateToProps,\n {\n onEditClick: showCustomTagDialog,\n onFilterClick: filterBySelectedCustomTag,\n onExportClick: openCustomTagInShoppingCart,\n onEmptyCustomTag: showEmptyCustomTagDialog,\n onDelete: showRemoveCustomTagDialog,\n onRunQueriesClick: runCustomTagQueries\n }\n)(CustomTag)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { makeStyles } from 'tss-react/mui'\nimport { keyframes } from 'tss-react'\nimport ContentCopyIcon from '@mui/icons-material/ContentCopy'\nimport CheckIcon from '@mui/icons-material/Check'\nimport copy from 'copy-to-clipboard'\nimport green from '@mui/material/colors/green'\nimport { IconButton } from 'containers/themed'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Chip } from '@mui/material'\n\nconst useStyles = makeStyles()({\n copyIcon: {\n fontSize: 20\n },\n checkIcon: {\n color: green[500],\n fontSize: 20,\n animation: `${keyframes`\n 0% {\n opacity: 0;\n transform: scale(1);\n }\n 25% {\n opacity: 1;\n transform: scale(2);\n }\n 50% {\n opacity: 1;\n transform: scale(1);\n },\n 100% {\n opacity: 0;\n transform: scale(1);\n }\n `} 1s;`\n }\n})\n\nexport default function Query({ query, onDelete }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const [copied, setCopied] = useState(false)\n\n const handleCopy = () => {\n copy(query)\n setCopied(true)\n\n setTimeout(() => {\n setCopied(false)\n }, 1000)\n }\n\n return (\n {\n handleCopy(query)\n }}\n >\n {!copied && }\n {copied && }\n \n )}\n onDelete={() => onDelete(query)}\n />\n )\n}\n\nQuery.propTypes = {\n query: PropTypes.string.isRequired,\n\n onDelete: PropTypes.func.isRequired\n}\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Input, PrimaryButton, Button } from 'containers/themed'\nimport { Capabilities } from 'static/constants'\nimport CapSafe from 'containers/CapSafe'\n\nimport useI18n from 'hooks/useI18n'\n\nimport Query from './query'\n\nconst useStyles = makeStyles()({\n assistant: {\n marginTop: 20\n },\n queryInputContainer: {\n width: '100%',\n alignItems: 'center',\n display: 'flex',\n '& > div:first-of-type': {\n width: '100%'\n }\n },\n runIt: {\n display: 'flex',\n justifyContent: 'flex-end'\n },\n chip: {\n userSelect: 'auto'\n }\n})\n\nconst CustomTagAssistantSafe = CapSafe(props =>
    , Capabilities.HAS_CUSTOM_TAG_ASSISTANT)\n\nexport default function CustomTagAssistant({ customTag, onChange }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n const [query, setQuery] = useState('')\n\n const handleQueryDeleteClick = q => {\n onChange(customTag.update('queries', queries => queries.delete(q)))\n }\n\n const handleQueryAdd = () => {\n onChange(customTag.update('queries', queries => queries.add(query)))\n setQuery('')\n }\n\n const handleQueryKeyUp = e => {\n if (e.keyCode === 13) {\n handleQueryAdd()\n }\n }\n\n return (\n \n {i18n.get('custom_tag_assistant')} \n\n \n\n {customTag.get('percolationEnabled') && (\n <>\n
    \n setQuery(e.target.value)}\n onKeyUp={e => handleQueryKeyUp(e)}\n />\n {query && (\n \n {i18n.get('add')}\n \n )}\n
    \n\n
    \n\n {customTag.get('queries').isEmpty() && i18n.get('no_queries_selected')}\n\n {customTag.get('queries').toList().map((q, key) => (\n handleQueryDeleteClick(q)}\n />\n ))}\n \n )}\n
    \n )\n}\n\nCustomTagAssistant.propTypes = {\n customTag: PropTypes.instanceOf(Map).isRequired,\n\n onChange: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport CustomTagAssistant from 'components/custom_tags/custom_tag_dialog/custom_tag_assistant'\n\nimport { getSelectedCustomTag } from 'selectors'\nimport { setSelectedCustomTag } from 'actions/custom_tags'\n\nconst mapStateToProps = state => ({\n customTag: getSelectedCustomTag(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onChange: setSelectedCustomTag\n }\n)(CustomTagAssistant)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map, List } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport decamelize from 'decamelize'\n\nimport Card from 'components/card'\nimport ColorPicker from 'components/color_picker'\nimport { mapToOptions } from 'utils/autocomplete'\nimport CustomTag from 'containers/custom_tags/CustomTag'\nimport { Dialog, Input, Button, Autocomplete } from 'containers/themed'\nimport { Capabilities } from 'static/constants'\nimport CapSafe from 'containers/CapSafe'\nimport PhotoUpload from 'components/photo_upload'\nimport MultiLanguageNameForm from 'components/multi_language_name_form'\n\nimport CustomTagAssistantComp from 'containers/custom_tags/custom_tag_dialog/CustomTagAssistant'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { CardMedia, Checkbox, FormControlLabel, Typography } from '@mui/material'\n\nconst useStyles = makeStyles()({\n assistant: {\n marginTop: 20\n },\n preview: {\n marginTop: 10,\n marginBottom: 20,\n width: 300\n },\n queryInputContainer: {\n width: '100%',\n alignItems: 'center',\n display: 'flex',\n '& > div:first-of-type': {\n width: '100%'\n }\n },\n cardMedia: {\n width: '100%',\n '&:after': {\n paddingTop: '56.25%',\n content: '\"\"',\n display: 'block',\n height: 0\n }\n },\n customTagColor: {\n backgroundColor: 'white',\n marginBottom: 5,\n marginRight: 10\n },\n deleteIcon: {\n color: 'white'\n },\n button: {\n float: 'right',\n marginBottom: -20\n }\n})\n\nconst RssFormControlLabel = CapSafe(FormControlLabel, Capabilities.HAS_CUSTOM_TAG_RSS_EXPORT)\nconst XmlFormControlLabel = CapSafe(FormControlLabel, Capabilities.HAS_CUSTOM_TAG_XML_EXPORT)\nconst JsonFormControlLabel = CapSafe(FormControlLabel, Capabilities.HAS_CUSTOM_TAG_JSON_EXPORT)\nconst CustomTagAssistant = CapSafe(CustomTagAssistantComp, Capabilities.HAS_CUSTOM_TAG_ASSISTANT)\nconst ColorPickerContainer = CapSafe(props =>
    , Capabilities.HAS_CHARTS_MODULE, Capabilities.HAS_DASHBOARD_MODULE)\nconst ExportDeprecationWarning = CapSafe(\n props =>
    ,\n Capabilities.HAS_CUSTOM_TAG_RSS_EXPORT,\n Capabilities.HAS_CUSTOM_TAG_XML_EXPORT,\n Capabilities.HAS_CUSTOM_TAG_JSON_EXPORT\n)\n\nexport default function CustomTagDialog({\n active,\n customTag,\n groups,\n module,\n onHide,\n onPhotoChange,\n onSave,\n onChange,\n selectedCustomTagGroups,\n isInParentDialog,\n hideParentDialog\n}) {\n const { classes, cx } = useStyles()\n const i18n = useI18n()\n const [previewUrl, setPreviewUrl] = useState('')\n\n const hide = () => {\n setPreviewUrl('')\n onHide()\n }\n\n const handleOk = () => {\n hide()\n onSave()\n\n if (isInParentDialog) {\n hideParentDialog()\n }\n }\n\n const handleChange = name => event => {\n let newValue\n\n if (name === 'customTagGroupIds') {\n if (event && event.length) {\n newValue = List(event.map(e => e.value))\n } else {\n newValue = List([])\n }\n } else {\n newValue = event.target.value\n }\n\n onChange(customTag.set(name, newValue))\n }\n\n const handleCheckboxChange = name => event => {\n if (name === 'xmlEnabled') {\n onChange(customTag.merge({\n [name]: event.target.checked,\n rssEnabled: false,\n jsonEnabled: false\n }))\n }\n\n if (name === 'rssEnabled') {\n onChange(customTag.merge({\n [name]: event.target.checked,\n xmlEnabled: false,\n jsonEnabled: false\n }))\n }\n\n if (name === 'jsonEnabled') {\n onChange(customTag.merge({\n [name]: event.target.checked,\n xmlEnabled: false,\n rssEnabled: false\n }))\n }\n }\n\n let title = `${i18n.get('edit').toUpperCase()}: ${customTag.get('name').toUpperCase()}`\n\n if (!customTag.get('id')) {\n title = i18n.get('create_pin_board').toUpperCase()\n }\n\n const renderActions = () => (\n <>\n {!isInParentDialog && (\n onHide()}\n >\n {i18n.get('cancel')}\n \n )}\n\n \n {i18n.get('save')}\n \n \n )\n\n const renderNameInput = (key, required) => (\n \n )\n const renderContent = () => (\n
    \n \n
    \n
    \n \n
    \n
    \n\n {!groups.isEmpty() && (\n \n )}\n\n \n
    \n {i18n.get('color_in_charts')}:\n onChange(customTag.set('color', color))}\n onReset={() => onChange(customTag.set('color', null))}\n defaultValue=\"#FFFFFF\"\n value={customTag.get('color')}\n />\n
    \n\n
    \n\n {\n onChange(customTag.set('photo', null))\n }}\n />\n\n {!(previewUrl || customTag.get('photo')) ? (\n
    \n \n
    \n ) : (\n \n \n \n )}\n\n \n {i18n.get('feature_is_deprecated')}\n \n\n \n )}\n />\n\n \n )}\n />\n\n \n )}\n />\n\n {module !== 'news_pool' && }\n
    \n )\n\n return (\n
    \n {!isInParentDialog && (\n \n
    \n {renderContent()}\n \n )}\n\n {isInParentDialog && (\n
    \n {renderContent()}\n {renderActions()}\n
    \n )}\n
    \n )\n}\n\nCustomTagDialog.defaultProps = {\n isInParentDialog: false\n}\n\nCustomTagDialog.propTypes = {\n active: PropTypes.bool.isRequired,\n customTag: PropTypes.instanceOf(Map).isRequired,\n groups: PropTypes.instanceOf(List).isRequired,\n selectedCustomTagGroups: PropTypes.instanceOf(List).isRequired,\n module: PropTypes.string.isRequired,\n isInParentDialog: PropTypes.bool,\n\n onHide: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onPhotoChange: PropTypes.func.isRequired,\n hideParentDialog: PropTypes.func\n}\n","import { connect } from 'react-redux'\nimport { List } from 'immutable'\n\nimport CapSafe from 'containers/CapSafe'\nimport { Capabilities } from 'static/constants'\n\nimport CustomTagDialog from 'components/custom_tags/custom_tag_dialog'\nimport { getSelectedCustomTag, getShowCustomTagDialog, getCustomTagGroupsData, getViewConfigModuleName } from 'selectors'\nimport {\n setSelectedCustomTag,\n saveCustomTagStart,\n hideCustomTagDialog,\n setUploadedPhoto\n} from 'actions/custom_tags'\n\nconst mapStateToProps = (state, { isInParentDialog, hideParentDialog }) => {\n const module = getViewConfigModuleName(state)\n let groups = getCustomTagGroupsData(state)\n groups = (module === 'news_pool') ? List() : groups\n\n const customTag = getSelectedCustomTag(state)\n const selectedCustomTagGroups = groups.filter(g => customTag.get('customTagGroupIds').includes(g.get('id')))\n\n return {\n active: getShowCustomTagDialog(state),\n customTag,\n groups,\n selectedCustomTagGroups,\n module,\n isInParentDialog,\n hideParentDialog\n }\n}\n\nconst result = connect(\n mapStateToProps,\n {\n onHide: hideCustomTagDialog,\n onChange: setSelectedCustomTag,\n onSave: saveCustomTagStart,\n onPhotoChange: setUploadedPhoto\n }\n)(CustomTagDialog)\n\nexport default CapSafe(result, Capabilities.HAS_CUSTOM_TAGS_MODULE)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { List } from 'immutable'\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Input } from 'containers/themed'\n\nimport {\n Accordion,\n AccordionSummary,\n AccordionDetails,\n Typography,\n Switch,\n FormControlLabel\n} from '@mui/material'\nimport CustomTag from './custom_tag'\n\nconst useStyles = makeStyles()({\n header: {\n display: 'flex',\n justifyContent: 'space-between'\n },\n customTags: {\n width: '100%'\n },\n searchResultsHint: {\n marginTop: 15,\n textAlign: 'center'\n }\n})\n\nexport default function FilterableCustomTagList({\n assignedLabel,\n assignLabel,\n customTagGroups,\n customTags,\n grouped,\n i18n,\n isAssigned,\n isSaving,\n onAddClick,\n onGroupedToggle,\n onRemoveClick\n}) {\n const { classes } = useStyles()\n const maxItems = 200\n const [filterValue, setFilterValue] = useState('')\n const filterCustomTags = values => values.filter(c => c.get('name').toLowerCase().includes(filterValue.toLowerCase()))\n const filteredCustomTags = filterCustomTags(customTags)\n const onFilterChange = e => setFilterValue(e.target.value)\n\n return (\n <>\n \n\n
    \n
    \n\n
    \n

    {i18n.get('all_pin_boards')}

    \n\n {!customTagGroups.isEmpty() && (\n onGroupedToggle()}\n color=\"primary\"\n />\n )}\n label={i18n.get('show_groups')}\n />\n )}\n
    \n\n {grouped ? (\n <>\n {customTagGroups.map(customTagGroup => {\n const groupCustomTags = filterCustomTags(customTagGroup.get('customTagsCustomTagGroups').map(c => c.get('customTag')))\n\n if (groupCustomTags.isEmpty()) {\n return null\n }\n\n return (\n \n }>\n {customTagGroup.get('name')}\n \n \n
    \n {filterCustomTags(customTagGroup\n .get('customTagsCustomTagGroups')\n .map(c => c.get('customTag')))\n .map(customTag => (\n \n ))}\n
    \n
    \n \n )\n })}\n \n ) : (\n <>\n {filteredCustomTags.take(maxItems).map(customTag => (\n \n ))}\n {(maxItems < filteredCustomTags.size) && (\n
    \n {i18n.get('custom_tags_search_results_hint', { count: filteredCustomTags.size })}\n
    \n )}\n \n )}\n \n )\n}\n\nFilterableCustomTagList.propTypes = {\n customTags: PropTypes.instanceOf(List).isRequired,\n customTagGroups: PropTypes.instanceOf(List).isRequired,\n i18n: PropTypes.object.isRequired,\n assignedLabel: PropTypes.string,\n assignLabel: PropTypes.string,\n grouped: PropTypes.bool,\n\n onAddClick: PropTypes.func.isRequired,\n onRemoveClick: PropTypes.func.isRequired,\n isAssigned: PropTypes.func.isRequired,\n isSaving: PropTypes.func,\n onGroupedToggle: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport FilterableCustomTagList from 'components/custom_tags/filterable_custom_tag_list'\nimport { getI18n, getCustomTags, getCustomTagGroups, getGroupedAssignableCustomTags } from 'selectors'\nimport { toggleGroupedAssignableCustomTags } from 'actions/custom_tags'\n\nconst mapStateToProps = (state, { onAddClick, onRemoveClick, isAssigned }) => ({\n i18n: getI18n(state),\n customTags: getCustomTags(state),\n customTagGroups: getCustomTagGroups(state),\n grouped: getGroupedAssignableCustomTags(state),\n onAddClick,\n onRemoveClick,\n isAssigned\n})\n\nexport default connect(\n mapStateToProps,\n {\n onGroupedToggle: toggleGroupedAssignableCustomTags\n }\n)(FilterableCustomTagList)\n","import { connect } from 'react-redux'\n\nimport CapSafe from 'containers/CapSafe'\nimport { Capabilities } from 'static/constants'\n\nimport RemoveDialog from 'components/dialogs/confirm_dialog'\nimport {\n getI18n,\n getSelectedMediaReviewNewsItem,\n getShowRemoveNewsDialog,\n getRemoveMediaReviewNewsDeleting\n} from 'selectors'\n\nimport { removeNewsFromMediaReviewStart, hideRemoveNewsDialog } from 'actions/media_reviews'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n payload: getSelectedMediaReviewNewsItem(state).get('id'),\n deleting: getRemoveMediaReviewNewsDeleting(state),\n active: getShowRemoveNewsDialog(state),\n text: getI18n(state).get('delete_news_from_media_review'),\n actionText: getI18n(state).get('remove')\n})\n\nconst result = connect(\n mapStateToProps,\n {\n onSubmit: removeNewsFromMediaReviewStart,\n onHide: hideRemoveNewsDialog\n }\n)(RemoveDialog)\n\nexport default CapSafe(result, Capabilities.HAS_MEDIA_REVIEW_EDITING_FEATURE)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport HelpIcon from '@mui/icons-material/Help'\nimport { makeStyles } from 'tss-react/mui'\n\nimport { Button } from 'containers/themed'\n\nimport useI18n from 'hooks/useI18n'\n\nimport { Paper, Typography, Slide } from '@mui/material'\n\nconst useStyles = makeStyles()(theme => ({\n noHits: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n },\n noHitsPaper: {\n backgroundColor: theme.palette.grey[200],\n color: theme.palette.grey[700],\n width: 750,\n padding: '20px 20px 10px',\n [theme.breakpoints.down('md')]: {\n width: '100%'\n },\n [theme.breakpoints.only('xs')]: {\n width: '98%'\n }\n }\n}))\n\nexport default function NoHits({ active, onHelpClick }) {\n const { classes } = useStyles()\n const i18n = useI18n()\n\n return (\n \n
    \n \n \n {i18n.get('no_hits_title')}\n \n\n
    \n\n \n {i18n.get('search_hints')}:\n \n\n \n - {i18n.get('search_hint_1')}\n \n\n \n - {i18n.get('search_hint_2')}\n \n\n \n - {i18n.get('search_hint_3')}\n \n\n
    \n onHelpClick()}\n startIcon={}\n >\n {i18n.get('help')}\n \n
    \n
    \n \n )\n}\n\nNoHits.propTypes = {\n active: PropTypes.bool.isRequired,\n\n onHelpClick: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport NoHits from 'components/news_page/no_hits'\nimport { getNewsRequestIsRunning, getTotalNewsCount } from 'selectors'\nimport { toggleHelpDialog } from 'actions/news'\n\nconst mapStateToProps = state => ({\n active: !getNewsRequestIsRunning(state) && !getTotalNewsCount(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onHelpClick: toggleHelpDialog\n }\n)(NoHits)\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport { Tooltip, Badge, Icon } from '@mui/material'\n\nimport { IconButton } from 'containers/themed'\nimport useI18n from 'hooks/useI18n'\n\nexport default function Button({\n hasNotificationAlertsOn,\n hasNotifications,\n unreadCount,\n onOpen\n}) {\n const i18n = useI18n()\n\n // If the list of notifications is empty, we don't render this feature. This way\n // we can decide in the backend who should see the notifications at all and we\n // just always return an empty list to everyone else.\n if (!hasNotifications) {\n return null\n }\n\n return (\n \n onOpen()}\n size=\"large\"\n >\n {hasNotificationAlertsOn ? (\n \n \n \n ) : }\n \n \n )\n}\n\nButton.propTypes = {\n hasNotificationAlertsOn: PropTypes.bool.isRequired,\n hasNotifications: PropTypes.bool.isRequired,\n unreadCount: PropTypes.number.isRequired,\n onOpen: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport NotificationsButton from 'components/notifications/button'\n\nimport { getNotifications, getUser } from 'selectors'\nimport { openDrawer } from 'actions/notifications'\n\nconst mapStateToProps = state => ({\n hasNotificationAlertsOn: !(getUser(state).get('disableNotificationAlerts')),\n hasNotifications: getNotifications(state).size > 0,\n unreadCount: getNotifications(state).filter(n => n.get('seenAt') == null).size\n})\n\nexport default connect(\n mapStateToProps,\n {\n onOpen: openDrawer\n }\n)(NotificationsButton)\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\nimport { makeStyles } from 'tss-react/mui'\nimport {\n Typography,\n List,\n ListItem,\n ListItemIcon,\n Checkbox,\n Card,\n Box\n} from '@mui/material'\nimport CheckCircleIcon from '@mui/icons-material/CheckCircle'\nimport { rgbaColorFromHex } from 'utils/color'\n\nimport { Button } from 'containers/themed'\n\nimport useI18n from 'hooks/useI18n'\n\nconst useStyles = makeStyles()((theme, { vertical }) => ({\n textContainer: {\n width: '60%',\n padding: theme.spacing(3),\n\n [theme.breakpoints.down('sm')]: {\n width: '100%'\n }\n },\n container: {\n display: 'flex',\n flexDirection: vertical ? 'column' : 'row',\n\n [theme.breakpoints.down('sm')]: {\n flexDirection: 'column'\n }\n },\n unlockIconContainer: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n width: vertical ? '100%' : '40%',\n backgroundColor: `${rgbaColorFromHex(theme.palette.primary.main, 0.3)}`,\n\n [theme.breakpoints.down('sm')]: {\n display: 'none'\n }\n },\n orderIconContainer: {\n flexDirection: 'column',\n padding: theme.spacing(2),\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n width: vertical ? '100%' : '40%',\n backgroundColor: `${rgbaColorFromHex(theme.palette.primary.main, 0.3)}`,\n\n [theme.breakpoints.down('sm')]: {\n width: '100%'\n }\n },\n successImageContainer: {\n textAlign: 'center'\n },\n orderConditions: {\n display: 'flex',\n justifyContent: 'flex-start',\n alignItems: 'flex-start',\n textAlign: 'left',\n\n '& a': {\n color: theme.palette.secondary.main\n }\n },\n termsAndConditionsText: {\n marginTop: 10\n }\n}))\n\nexport default function OrderForm({\n card,\n vertical,\n paidFeature,\n ordering,\n status,\n onOrderClick,\n // onTraceClick,\n termsAndConditionsLink,\n privacyLink,\n benefits,\n logo,\n unlockTitle,\n unlockSubtitle,\n unlockText,\n subscriptionInfo\n}) {\n const [showOrder, setShowOrder] = useState(false)\n const [orderCondition1, setOrderCondition1] = useState(false)\n const [orderCondition2, setOrderCondition2] = useState(false)\n const { classes } = useStyles({ vertical })\n const i18n = useI18n()\n\n // useEffect(() => {\n // onTraceClick({\n // measurement: 'paid_feature_order_form_open_click',\n // tags: {\n // paid_feature_id: paidFeature.get('paidFeatureId'),\n // paid_feature_name: paidFeature.get('id')\n // }\n // })\n // }, [onTraceClick])\n\n const isPending = status === 'pending'\n\n const Comp = card ? Card : Box\n\n if (!showOrder && !isPending) {\n return (\n \n
    \n \n \n
    \n {\n // onTraceClick({\n // measurement: 'paid_feature_order_form_unlock_click',\n // tags: {\n // paid_feature_id: paidFeature.get('paidFeatureId'),\n // paid_feature_name: paidFeature.get('id')\n // }\n // })\n\n setShowOrder(true)\n }}\n >\n {i18n.get('unlock')}\n \n
    \n
    \n \n
    \n
    \n )\n }\n\n return (\n \n
    \n {!isPending ? (\n <>\n \n \n \n {benefits.map(benefit => (\n \n \n \n \n \n {benefit}\n \n \n ))}\n \n \n ) : (\n <>\n
    \n \n
    \n \n {i18n.get('paid_feature_order_success_title')}\n \n \n \n )}\n
    \n
    \n \n {paidFeature.getIn(['config', 'price'])} {paidFeature.getIn(['config', 'currency'])}\n \n {paidFeature.getIn(['config', 'vat']) > 0 && (\n \n + {paidFeature.getIn(['config', 'vat'])}% {i18n.get('vat')}\n \n )}\n \n {subscriptionInfo}\n \n\n
    \n setOrderCondition1(!orderCondition1)}\n disabled={isPending}\n />\n \n
    \n
    \n setOrderCondition2(!orderCondition2)}\n disabled={isPending}\n />\n \n
    \n\n
    \n\n onOrderClick(paidFeature.get('paidFeatureId'))}\n disabled={isPending || !(orderCondition1 && orderCondition2)}\n saving={ordering}\n >\n {i18n.get('order_now')}\n \n
    \n
    \n )\n}\n\nOrderForm.defaultProps = {\n logo: 'https://static.pressrelations.de/pics/groot/paid_features/ai_summaries.png'\n}\n\nOrderForm.propTypes = {\n paidFeature: PropTypes.instanceOf(Map).isRequired,\n ordering: PropTypes.bool.isRequired,\n status: PropTypes.string,\n termsAndConditionsLink: PropTypes.string,\n privacyLink: PropTypes.string,\n card: PropTypes.bool,\n vertical: PropTypes.bool,\n benefits: PropTypes.array.isRequired,\n logo: PropTypes.string,\n unlockTitle: PropTypes.string,\n unlockSubtitle: PropTypes.string,\n unlockText: PropTypes.string,\n subscriptionInfo: PropTypes.string,\n\n onOrderClick: PropTypes.func.isRequired\n // onTraceClick: PropTypes.func.isRequired\n}\n","import { connect } from 'react-redux'\n\nimport OrderForm from 'components/paid_features/order_form'\n\nimport {\n getConfigOrderRequestRunning,\n getWhitelabelTermsAndConditionsLink,\n getWhitelabelPrivacyLink\n} from 'selectors'\nimport { orderPaidVersionStart } from 'actions/config'\nimport { clickTrace } from 'actions/app'\n\nconst mapStateToProps = state => ({\n ordering: getConfigOrderRequestRunning(state),\n termsAndConditionsLink: getWhitelabelTermsAndConditionsLink(state),\n privacyLink: getWhitelabelPrivacyLink(state)\n})\n\nexport default connect(\n mapStateToProps,\n {\n onOrderClick: orderPaidVersionStart,\n onTraceClick: clickTrace\n }\n)(OrderForm)\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Map } from 'immutable'\n\nimport OrderForm from 'containers/paid_features/OrderForm'\n\nimport useI18n from 'hooks/useI18n'\n\nexport default function AiSummariesOrderForm({\n card,\n vertical,\n paidFeature,\n status\n}) {\n const i18n = useI18n()\n\n return (\n \n )\n}\n\nAiSummariesOrderForm.propTypes = {\n paidFeature: PropTypes.instanceOf(Map).isRequired,\n status: PropTypes.string,\n card: PropTypes.bool,\n vertical: PropTypes.bool\n}\n","import { connect } from 'react-redux'\n\nimport AiSummariesOrderForm from 'components/paid_features/ai_summaries_order_form'\n\nimport {\n getStaticPaidFeatureById,\n getAiSummariesPaidFeatureStatus\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n paidFeature: getStaticPaidFeatureById(state, 'ai_summaries'),\n status: getAiSummariesPaidFeatureStatus(state)\n})\n\nexport default connect(mapStateToProps)(AiSummariesOrderForm)\n","import { connect } from 'react-redux'\n\nimport EditDialog from 'components/saved_searches/edit_dialog'\n\nimport {\n saveThemaxSavedSearchStart\n} from 'actions/themax'\n\nimport {\n hideEditSavedSearchDialog,\n updateSelectedSavedSearch\n} from 'actions/saved_searches'\n\nimport {\n getI18n,\n getShowEditSavedSearchDialog,\n getSelectedSavedSearch,\n getThemaxSavedSearches as getSavedSearches\n} from 'selectors'\n\nconst mapStateToProps = state => ({\n i18n: getI18n(state),\n active: getShowEditSavedSearchDialog(state),\n savedSearch: getSelectedSavedSearch(state),\n savedSearches: getSavedSearches(state).get('items'),\n allowedSavedSearchesCount: 0,\n hasLimit: false,\n showChartOptions: false,\n showPhotoUpload: false,\n showAlertOptions: false\n})\n\nexport default connect(\n mapStateToProps,\n {\n onHide: hideEditSavedSearchDialog,\n onSubmit: saveThemaxSavedSearchStart,\n onChange: updateSelectedSavedSearch,\n onPhotoChange: () => { }\n }\n)(EditDialog)\n","import { useSelector } from 'react-redux'\nimport { getColors } from 'selectors'\n\nexport default function useColors(asArray = false) {\n const colors = useSelector(getColors)\n\n if (asArray) {\n const colorsArray = [\n colors.get('primary'),\n colors.get('accent')\n ]\n\n for (let i = 1; i < 11; i += 1) {\n const colorKey = i < 10 ? `color0${i}` : 'color10'\n colorsArray.push(colors.getIn(['charts', colorKey]))\n }\n\n return colorsArray.filter(c => c)\n }\n\n return useSelector(getColors)\n}\n","/* global document */\nimport { useEffect, useState } from 'react'\nimport { fromJS } from 'immutable'\n\nconst updateBodyBackgroundColor = backgroundColor => {\n document.body.style.backgroundColor = backgroundColor\n}\n\nconst updateBodyBackgroundImage = backgroundImageUrl => {\n document.body.style.background = `url(${backgroundImageUrl}) no-repeat center center fixed`\n document.body.style.backgroundSize = 'cover'\n}\n\nconst resetBodyBackgroundImage = () => {\n document.body.style.removeProperty('background')\n document.body.style.removeProperty('background-size')\n}\n\nexport default function useDashboard(config) {\n const [defaultBackgroundColor] = useState(document.body.style.backgroundColor)\n\n const backgroundColor = (config || fromJS({})).getIn(['colors', 'background'])\n const backgroundImageUrl = (config || fromJS({})).get('backgroundImageUrl')\n\n useEffect(() => {\n if (backgroundColor) {\n updateBodyBackgroundColor(backgroundColor)\n }\n\n if (backgroundImageUrl) {\n updateBodyBackgroundImage(backgroundImageUrl)\n }\n\n return () => {\n updateBodyBackgroundColor(defaultBackgroundColor)\n resetBodyBackgroundImage()\n }\n }, [backgroundColor, backgroundImageUrl])\n}\n","import { useSelector } from 'react-redux'\nimport { getDevice } from 'selectors'\n\nexport default function useDevice() {\n return useSelector(getDevice)\n}\n","export const mapToOptions = source => source.map(o => ({\n value: o.get('id'),\n label: o.get('name')\n})).toJS()\n","import { getAllStaticChannels } from 'selectors'\nimport store from '../store'\n\nexport const getChannelColor = id => {\n const channels = getAllStaticChannels(store.getState())\n\n const found = channels.find(c => c.get('id') === id)\n\n if (found) {\n return found.get('color')\n }\n\n return channels.find(c => c.get('id') === 20).get('color')\n}\n","import hexRgb from 'hex-rgb'\n\n/* eslint-disable no-bitwise,no-plusplus */\nconst stringToHash = str => {\n let hash = 0\n for (let i = 0; i < str.length; i++) {\n hash = str.charCodeAt(i) + ((hash << 5) - hash)\n hash &= hash\n }\n\n return hash\n}\n\n// Converts the hash to a random HEX string\nexport const hexColorFromString = str => {\n if (str.length === 0) {\n return '#ffffff'\n }\n\n const hash = stringToHash(str)\n let color = '#'\n let value = 0\n\n for (let i = 0; i < 3; i++) {\n value = (hash >> (i * 8)) & 255\n color += (`00${value.toString(16)}`).substr(-2)\n }\n\n return color\n}\n\nconst range = (hash, min, max) => {\n const diff = max - min\n const x = ((hash % diff) + diff) % diff\n\n return x + min\n}\n\nexport const hslColorFromString = str => {\n const result = { h: 0, s: 100, l: 30 }\n\n if (str.length === 0) {\n return result\n }\n\n const hash = stringToHash(str)\n\n return {\n h: range(hash, 0, 360),\n s: 80,\n l: 50\n }\n}\n/* eslint-enable no-bitwise,no-plusplus */\n\nexport const rgbaColorFromHex = (hex, alpha) => {\n const rgbColor = hexRgb(hex)\n\n return `rgba(${rgbColor.red}, ${rgbColor.green}, ${rgbColor.blue}, ${alpha})`\n}\n","import { StructuredExportFormatFlags } from 'static/constants'\n\nexport const structuredFormatByCustomTag = customTag => {\n let result = null\n\n StructuredExportFormatFlags.forEach(flag => {\n if (customTag.get(flag)) {\n result = flag.replace(/Enabled/, '')\n }\n })\n\n return result\n}\n","/* global window, document, DOMParser */\nimport { stripHtml } from 'string-strip-html'\n\nexport const stripDossier = dossier => {\n const match = dossier.match(/(\\s+)$/s)\n const endingWhitespaceOrNewline = match ? match[0] : ''\n\n let stripped = stripHtml(dossier, {\n skipHtmlDecoding: true,\n dumpLinkHrefsNearby: {\n enabled: true,\n wrapHeads: '(',\n wrapTails: ')'\n }\n }).result\n\n stripped += endingWhitespaceOrNewline\n\n return stripped\n}\n\n// Keeps styles to copy into Word etc\nexport const copyElementContentToClipboard = elementId => {\n const content = document.getElementById(elementId)\n const range = document.createRange()\n range.selectNode(content)\n window.getSelection().removeAllRanges()\n window.getSelection().addRange(range)\n\n let successful = false\n try {\n successful = document.execCommand('copy')\n } catch (err) {\n console.error('Failed to copy content', err) // eslint-disable-line no-console\n }\n\n window.getSelection().removeAllRanges()\n\n return successful\n}\n\nexport const removeHtmlTags = html => {\n const parser = new DOMParser()\n const doc = parser.parseFromString(html, 'text/html')\n\n return doc.body.textContent || ''\n}\n","import moment from 'moment-timezone'\nimport { getLocale } from 'utils/locale'\n\nexport const round = number => {\n if (number >= 1000000000000) {\n return Math.round(number / 100000000000) / 10\n }\n\n if (number >= 1000000000) {\n return Math.round(number / 100000000) / 10\n }\n\n if (number >= 1000000) {\n return Math.round(number / 100000) / 10\n }\n\n if (number >= 1000) {\n return Math.round(number / 100) / 10\n }\n\n return number\n}\n\nconst numberAbbreviations = {\n default: {\n thousand: 'k',\n million: 'M',\n billion: 'B',\n trillion: 'T'\n },\n de: {\n thousand: ' Tsd.',\n million: ' Mio.',\n billion: ' Mrd.',\n trillion: ' Bio.'\n }\n}\n\nexport const formatNumber = number => {\n if (number === '-') {\n return number\n }\n\n const abr = numberAbbreviations[moment.locale()] || numberAbbreviations.default\n\n const rounded = round(number)\n\n if (number >= 1000000000000) {\n return `${rounded}${abr.trillion}`\n }\n\n if (number >= 1000000000) {\n return `${rounded}${abr.billion}`\n }\n\n if (number >= 1000000) {\n return `${rounded}${abr.million}`\n }\n\n if (number >= 1000) {\n return `${rounded}${abr.thousand}`\n }\n\n return rounded\n}\n\nexport const anotherRound = (number, roundPrecision) => {\n if ((number || null) % 1 !== 0) {\n return number.toFixed(roundPrecision)\n }\n\n return number\n}\n\nexport const renderNumber = (number, roundPrecision) => formatNumber(anotherRound(number, roundPrecision))\n\nconst decimalLength = n => {\n if (Number(n) !== n) {\n return 0\n }\n\n if (Number.isNaN(n)) {\n return 0\n }\n\n if (n % 1 === 0) {\n return 0\n }\n\n let e = 1; let\n p = 0\n while (Math.round(n * e) / e !== n) {\n e *= 10\n p += 1\n }\n\n return p\n}\n\nexport const separate = (number, decimals, currency) => {\n if (number < 1) {\n return number\n }\n\n if (global.Intl && number) {\n if (currency) {\n return new Intl.NumberFormat(getLocale(), { style: 'currency', currency }).format(number)\n }\n\n if (decimals && (number % 1 !== 0)) {\n return new Intl.NumberFormat().format(number.toFixed(Math.min(decimalLength(number), decimals)))\n }\n\n return new Intl.NumberFormat().format(number)\n }\n\n return number\n}\n\nexport const formatBytes = (bytes, decimals = 2) => {\n if (!+bytes) {\n return '0 Bytes'\n }\n\n const k = 1024\n const dm = decimals < 0 ? 0 : decimals\n const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']\n\n const i = Math.floor(Math.log(bytes) / Math.log(k))\n\n return `${parseFloat((bytes / k ** i).toFixed(dm))} ${sizes[i]}`\n}\n","/* eslint-disable */\nmodule.exports = require('./pdf.' + process.env.NODE_ENV)\n","import store from '../store'\n\nconst SUPPORTED_CONTENT_LANGUAGES = ['de', 'en', 'fr', 'it', 'es', 'pt', 'zh', 'ja', 'ru']\nconst SUPPORTED_TEMPLATE_LANGUAGES = ['de', 'en', 'fr', 'es', 'zh', 'pt', 'ja', 'it', 'ru']\n\nconst getStaticLanguages = state => state.statics.getIn(['sorted', 'languages'])\n\nexport const getTemplateLanguageOptions = () => getStaticLanguages(store.getState())\n .filter(l => SUPPORTED_TEMPLATE_LANGUAGES.includes(l.get('iso6391')))\n .map(l => ({ key: l.get('id'), value: l.get('shortName'), label: l.get('name') }))\n\nexport const getContentLanguageOptions = () => getStaticLanguages(store.getState())\n .filter(l => SUPPORTED_CONTENT_LANGUAGES.includes(l.get('iso6391')))\n .map(l => ({ key: l.get('id'), value: l.get('iso6391'), label: l.get('name') }))\n","var map = {\n\t\"./administration/mailing_lists/dialogs/EditDialog\": [\n\t\t85941\n\t],\n\t\"./dashboard/EditDialog\": [\n\t\t16626,\n\t\t4927\n\t],\n\t\"./news/edit_dialog/EditDialog\": [\n\t\t52691,\n\t\t4832\n\t],\n\t\"./saved_searches/EditDialog\": [\n\t\t29736,\n\t\t2705\n\t],\n\t\"./themax/saved_searches/EditDialog\": [\n\t\t68351\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 47928;\nmodule.exports = webpackAsyncContext;","var map = {\n\t\"./administration/mailing_lists/dialogs/RemoveDialog\": [\n\t\t77021\n\t],\n\t\"./custom_tags/RemoveDialog\": [\n\t\t50649,\n\t\t2472\n\t],\n\t\"./media_reviews/media_review_detail/RemoveDialog\": [\n\t\t39735\n\t],\n\t\"./news/RemoveDialog\": [\n\t\t88675,\n\t\t6957\n\t],\n\t\"./saved_searches/RemoveDialog\": [\n\t\t18069,\n\t\t2097\n\t],\n\t\"./themax/saved_searches/RemoveDialog\": [\n\t\t55381,\n\t\t1437\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 38839;\nmodule.exports = webpackAsyncContext;","var map = {\n\t\"./saved_searches/card_view/CardView\": [\n\t\t95780,\n\t\t3389\n\t],\n\t\"./themax/saved_searches/card_view/CardView\": [\n\t\t62638,\n\t\t8749\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 99235;\nmodule.exports = webpackAsyncContext;","var map = {\n\t\"./saved_searches/card_view/SavedSearch\": [\n\t\t12739,\n\t\t575\n\t],\n\t\"./themax/saved_searches/card_view/SavedSearch\": [\n\t\t47949,\n\t\t2240\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 79956;\nmodule.exports = webpackAsyncContext;","var map = {\n\t\"./saved_searches/list_view/ListView\": [\n\t\t84852,\n\t\t3589\n\t],\n\t\"./themax/saved_searches/list_view/ListView\": [\n\t\t24117,\n\t\t8845\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 33286;\nmodule.exports = webpackAsyncContext;"],"names":["useStyles","makeStyles","container","position","display","unavailable","filter","opacity","activeFilter","marginRight","marginTop","transition","label","userSelect","labelText","maxWidth","overflow","textOverflow","defaultLabel","alignItems","prefix","invertIcon","cursor","color","green","editableLabel","inverted","red","animation","keyframes","notInverted","editIcon","width","height","marginLeft","statementCode","lightBlue","groupedStatementCode","channelIcon","fontSize","editInput","newsguardIcon","newsOutlinkIcon","teal","outlinkIcon","networkIcon","networkIconTag","justifyContent","mediaReviewTypeIcon","marginBottom","mediaReviewTypeIconContainer","getCountryIcon","shortName","get","React","className","toLowerCase","FlagIcon","getTonalityIcon","SentimentVerySatisfiedIcon","SentimentVeryDissatisfiedIcon","RemoveCircleOutlineIcon","Brightness1Icon","getStatementTonalityIcon","BarChartIcon","style","notInvertableFilters","SearchFields","DarknetSearchFields","ContentDeskSearchFields","ContactManagementSearchFields","ThemaxSearchFields","editableFilters","ActiveFilter","_ref","hidden","index","i18n","device","onRemove","onInvert","onUpdate","classes","cx","queryValue","setQueryValue","useState","editing","setEditing","showEditMode","setShowEditMode","setStyle","containerStyle","setContainerStyle","zIndex","compEl","useRef","getChannelIcon","channelFilter","ChannelIcon","id","iconConfig","AutoAwesomeIcon","PersonIcon","masterConfig","LocalOfferIcon","LoyaltyIcon","CollectionsBookmarkIcon","LanguageIcon","OutlinedFlagIcon","_Icon","ChatBubbleOutlineIcon","ShortTextIcon","SearchIcon","LocationOnIcon","GroupIcon","CheckIcon","root","newsguardFilter","NewsguardInfo","rank","url","SwapHorizIcon","WebIcon","LinkIcon","mediaReviewTypeFilter","OutboundIcon","SwapVerticalCircleIcon","LocalShippingIcon","network","NetworkIcon","MessageIcon","TitleIcon","CampaignIcon","ContactsIcon","TagIcon","PeopleAltOutlinedIcon","NumbersIcon","default","FilterListIcon","useEffect","current","top","left","getBoundingClientRect","transform","global","mouseX","mouseY","setTimeout","saveQuery","newValue","trim","merge","value","onQueryChange","event","target","isChannelFilter","indexOf","isInvertable","isEditable","icon","isAiEntity","undefined","avatar","_Avatar","src","title","onClick","EditIcon","IconComp","AddIcon","RemoveIcon","field","onMouseMove","onMouseLeave","onKeyUp","onDelete","decamelize","getAiEntityName","key","inputWidth","pixelWidth","size","Input","autoFocus","onChange","variant","InputProps","ref","_Chip","channelLabel","defaultProps","propTypes","PropTypes","connect","state","getI18n","getDevice","uiRemoveFilter","uiInvertFilter","uiUpdateFilter","theme","activeFilterList","breakpoints","only","padding","collapsed","maxHeight","collapseIconContainer","ActiveFilterList","onCollapseClick","filterCount","activeFilters","activeBooleanFilters","activeGeoFilter","activeFilterType","activeNumberFilters","useI18n","autoCollapsed","setAutoCollapsed","isCollapsible","renderActiveFilter","props","DarknetActiveFilter","ContentDeskActiveFilter","ContactManagementActiveFilter","ThemaxActiveFilter","keySeq","map","toList","flatten","Fragment","fromJS","name","getIn","join","formatNumber","count","Button","KeyboardArrowDownIcon","KeyboardArrowUpIcon","Map","memo","code","backgroundColor","nrx","paper","backgroundPaperColor","margin","overflowY","overflowX","actions","buildDynamicImageLink","savedChart","baseUrl","timezone","params","URLSearchParams","set","isFeedChart","isRectangleChart","SavedChartForm","savedChartFromProps","saving","savable","labels","onSave","codeToCopy","setCodeToCopy","setSavedChart","chart","interactiveChartLink","interactiveChartCode","dynamicImageCode","buildDynamicImageCode","dynamicImageLink","setIn","fetch","replace","handleCopyClick","copyToClipboard","_Card","_CardContent","_Typography","type","IconButton","ContentCopyIcon","DatePicker","inputVariant","minDate","moment","toDate","maxDate","add","format","inputProps","fullWidth","_CardActions","startIcon","DeleteIcon","delete","disabled","SaveIcon","save","isRequired","cardContainer","selectedIcon","iconCenter","checkboxContainer","borderRadius","checkboxIcon","selectOverlay","border","overlayActive","selected","borderColor","palette","grey","iconRight","up","right","checkboxContainerRight","Card","checkboxPosition","children","iconPosition","onSelect","raiseOnHover","selectedBorder","selectOverlayClassName","showSelect","hovered","setHovered","onMouseEnter","isSelectVisible","handleClick","e","preventDefault","stopPropagation","nativeEvent","stopImmediatePropagation","raised","renderIcon","iconClass","renderSelect","selectClassName","_Checkbox","checkedIcon","CheckCircleIcon","CheckCircleOutlineIcon","checked","renderSelectOverlay","overlayClassName","content","info","flexDirection","background","flash","header","textAlign","body","CenterMessage","message","colors","backgroundClass","contentClass","textStyle","backgroundClassName","backgroundStyle","channelIcons","circle","newClasses","stack","channelIconClass","toString","getChannelColor","ChannelIconWrapper","_extends","innerRef","forwardRef","chip","deleteIcon","deleteIconLight","menu","ColorPicker","onReset","defaultValue","useRgb","handle","handleColorReset","realValue","isLight","tinycolor","getBrightness","Menu","list","picker","SketchPicker","onChangeComplete","_ref2","hex","rgb","r","g","b","a","autocomplete","newList","DistributionListCreateDialog","contacts","open","lists","loading","searchRequestRunning","onClose","onSelectOption","onSubmit","onFormUpdate","searchDistributionListStart","createListDisabled","setCreateListDisabled","setSelected","newName","setNewName","timerID","setTimerID","options","mapToOptions","handleFormDataUpdate","handleClose","_Dialog","_DialogTitle","mx","sx","paddingBottom","t","spacing","isDark","CloseIcon","_DialogContent","dividers","_TableContainer","_Table","_TableBody","contact","_TableRow","_TableCell","_Divider","_Box","component","_LinearProgress","_Autocomplete","getOptionLabel","option","handleAutocompleteChange","_event","isOptionEqualToValue","onInputChange","handleSuggestList","v","length","clearTimeout","renderInput","_TextField","placeholder","maxLength","multiline","minRows","_DialogActions","RaisedPrimaryButton","handleSave","ImmutableList","minHeight","paddingLeft","paddingRight","noHeader","paddingTop","ContentContainer","containerClass","customTag","customTagImage","spacer","flex","CustomTag","assignedLabel","assignLabel","isAssigned","isSaving","onAddClick","onRemoveClick","useDevice","buttonLabel","slice","Tag","imageOnly","preview","includes","MoreHorizIcon","alt","ConfirmDialog","active","deleting","payload","text","actionText","autoHide","onHide","Dialog","_DialogContentText","dummyIconContainer","dummyIcon","dummyIconPreview","media","DummyCardIcon","accentColor","image","newStyle","_CardMedia","WithColors","ExportFilenameInput","validate","valid","condensed","setState","showInfo","errorText","_FormHelperText","TransitionComponent","formatFilename","result","_FormControl","error","Boolean","onFocus","onBlur","flexWrap","FlexList","columns","columnCount","hiddenElements","i","push","childrenWithProps","child","item1","hidden1","visibility","item2","hidden2","item3","hidden3","item4","hidden4","item5","hidden5","item6","hidden6","item7","hidden7","item8","hidden8","item9","hidden9","item10","hidden10","FlexListItem","itemClass","newProps","ChangeIcon","previous","keyFigure","fontWeight","whiteSpace","keyFigureTitle","keyFigureTitleHorizontal","numberHorizontal","negative","positive","compact","horizontal","KeyFigure","decimals","titleClassName","numberClassName","horizontalClassName","unit","previousValue","cssClasses","factor","Math","pow","diff","formattedDiff","round","abs","separate","number","values","nav","navElement","navGroups","navGroup","navSubElement","minWidth","deleteButton","areEqual","prevProps","nextProps","groups","equals","alpha","AlphaNavigation","v4","anchor","document","getElementById","scrollIntoView","sortBy","_IconButton","HighlightOffIcon","List","CustomTagDialog","actionLabelKey","createActive","onCreateClick","onHideCreateClick","titleKey","setAutoAddMediaReviewsNews","handleOk","_Grid","item","_FormControlLabel","control","_Switch","handleShowCreate","FilterableCustomTagList","NewCustomTagDialog","isInParentDialog","hideParentDialog","additionalLanguages","MultiLanguageNameForm","renderNameInput","xs","sm","md","lg","xl","_Accordion","_AccordionSummary","expandIcon","ExpandMoreIcon","_AccordionDetails","NewItemCard","iconClassName","_CardActionArea","_CardHeader","progressBar","progressBarItem","nrx0","nrx1","nrx2","NrxProgressBar","letters","useSelector","getWhitelabelProgressLetters","_CircularProgress","l","withDelete","fileSizeError","PhotoUpload","buttonProps","maxSize","onFileChange","onFileUrlChange","photoUrl","setFileSizeError","uploadButton","BrowseButton","accept","files","file","doChange","reader","FileReader","onload","readAsDataURL","CloudUploadIcon","handleDelete","SmsAutocomplete","invalidPhoneNumbers","handleChange","handleSubmit","res","then","parsePhoneNumberFromString","phoneNumber","handleAdd","split","concat","renderError","toSet","groupBy","rows","hint","webhookOption","platformIcon","teams","WebhookOption","FontAwesomeIcon","faCircleExclamation","faMicrosoft","faSlack","shortUrl","alertDescription","timezoneOptions","threshold","hiddenPopper","aiIcon","primary","main","TimeZones","limitOptions","n","Divider","SmsAutocompleteCapSafe","CapSafe","Capabilities","SmsDivider","locales","dayOptions","day","emptyAlertConfig","AlertTypes","times","days","recipients","recipientsSms","webhooks","mailingListIds","sendNoResultsMail","validTimeValueFormat","match","renderWebhookOption","AlertOptions","hasPaidVersion","hasAdminVersion","savedSearch","mailingLists","locale","getAlertConfig","timesInputValue","setTimesInputValue","handleAlertConfigChange","alertConfig","handleMailingListChange","renderTimezoneDropdown","Autocomplete","_ref3","_RadioGroup","_Radio","renderInstantOptions","row","TransitionProps","unmountOnExit","AiSummariesOrderForm","card","renderTimeOptions","selectedTimezone","formattedTimes","time","hours","minutes","parseInt","tz","sort","limitReached","dayValues","found","find","d","toJS","multiple","filterSelectedOptions","inputValue","freeSolo","popper","popupIndicator","newValues","filterTimeValues","newTimes","handleTimeValueChange","renderThresholdOptions","renderKpiOptions","renderMailOptions","hasSms","isEmpty","mailingListsForAutocomplete","ml","selectedMailingLists","m","localeOptions","groupByOptions","Select","isMulti","isClearable","MailAutocomplete","getSelectedSavedSearch","getMailingLists","getUserLocale","getTimezone","getHasAiSummariesPaidVersion","getIsEmployee","updateSelectedSavedSearch","ColorPickerContainer","SavedSearch","loadThrough","Comp","useMemo","createLoadable","EditDialog","savedSearches","allowedSavedSearchesCount","hasLimit","showChartOptions","showPhotoUpload","showAlertOptions","onPhotoChange","previewUrl","handlePreviewUrlChange","hide","isValid","namePresent","limit","recipientsPreset","required","dup","s","nameExistsByKey","helperText","renderBody","renderPhoto","showTitle","selectedText","SelectedAppBar","_Paper","elevation","KeyboardBackspaceIcon","action","comp","iconButtonProps","WithDevice","WithI18n","setAutoAddShoppingCartNews","StaggeredList","useRightToLeft","animationFillMode","useLeftToRight","useWave","useBottomToTop","itemNoFill","useFade","StaggeredListItem","bottomToTop","wave","rightToLeft","leftToRight","fade","delay","hideInitial","animationDelay","useGrow","enter","transformOrigin","enterActive","exit","exitActive","useFadeSlow","appear","appearActive","useFadeUp","useRotateFade","useSlideFadeDown","useSlideFadeRight","useSlideFade","grow","fadeSlow","fadeUp","rotateFade","slideFadeDown","slideFade","slideFadeRight","useKeys","items","TransitionGroup","CSSTransition","classNames","timeout","appBar","noShadow","boxShadow","fadeIn","messageBar","hiddenAppBar","button","AppBar","isBackButtonPage","onNavigationToggle","back","onBackClick","renderContentBar","_AppBar","_Toolbar","_Fade","in","dangerouslySetInnerHTML","__html","titleComp","enableColorOnDark","MenuIcon","getColor","getWhitelabelTheme","user","getUser","getAppBarMessage","onLogout","logoutRequestStart","toggleNavigation","CapSafeComp","capNames","fallBackComp","arguments","allowed","some","val","caps","every","capName","compProps","viewConfigCaps","dispatch","_len","Array","_key","WrapperComponent","displayName","mapStateToProps","getCapabilities","ViewConfigCapSafe","getViewConfigCapabilities","getColors","ExportMenu","iconButton","onBeforeClick","_MenuItem","SaveAltIcion","getExportOptions","getNewsIdsForExport","showExportDialog","setNewValue","invalidAddresses","setInvalidAddresses","deleteConfState","setDeleteConfState","toUpperCase","vv","invalid","isEmail","closeConfDialog","newsguardInfo","verticalAlign","img","ranks","href","encodeURIComponent","rel","getBaseUrl","getStaticNewsguardRanks","success","passwordPart","PasswordInput","strength","hasNumber","hasChar","hasCapitalizedChar","has8Chars","passwordPartClass","flag","passwordPartIcon","validateStrength","newState","prevState","onPaste","endAdornment","_InputAdornment","handleEyeClick","VisibilityIcon","VisibilityOffIcon","renderStrength","LinkedInPopUp","errorMessage","error_description","window","opener","postMessage","from","location","origin","linkedin_redirect_url","getQueryParamsFromUrl","NewsView","presetName","groupingSettingId","selectPreset","selectedPresetName","startsWith","getGroupingSettingId","selectViewConfigPreset","actionsWrapper","actionIcon","Actions","NotificationsButton","popover","hintWrapper","RestrictionHint","mediaReviewCodes","channels","countries","hasCodeRestriction","hasChannelRestriction","hasCountryRestriction","anchorEl","setAnchorEl","_Button","currentTarget","WarningIcon","_Popover","c","getRestrictedStaticMediaReviewCodes","getRestrictedStaticChannels","getRestrictedStaticCountries","getNewsAllowedCodeIds","getNewsAllowedChannelIds","getNewsAllowedCountryIds","cardMedia","images","Group","group","onDeleteClick","onEditClick","onAddCustomTagClick","onFilterClick","filterBySelectedCustomTagGroup","getCustomTags","renderImages","gutterBottom","renderInfo","customTags","_Tooltip","placement","PlaylistAddIcon","getFilteredCustomTagGroupId","showDeleteGroupDialog","showGroupDialog","showAssignCustomTagsToGroupDialog","setFilteredGroupId","newItem","GroupMode","onNewClick","getCustomTagGroups","centered","customTagsViewIcon","customTagsView","CustomTagMode","RemoveDialog","EmptyCustomTagDialog","EditGroupDialog","DeleteGroupDialog","AssignCustomTagsToGroupDialog","CustomTags","showRestrictionHint","showGroups","viewType","onViewChange","ErrorBoundary","renderCustomTagsViewSwitch","listIconColor","columnIconColor","sorting","getCustomtagsToShoppingCartLoading","getViewConfigModuleName","NewsPageModules","getCustomTagsViewType","setCustomTagsViewType","DeleteDialog","DrilldownDialog","SavedDashboardDialog","DashboardCharts","Dropdown","AiChartAnalysisDialog","resetBodyStyles","removeProperty","NewDashboardButton","presentationActions","presentationActionsContent","presentationActionsInfo","lastEdit","float","centerMessage","dashboardContent","Dashboard","autoRefresh","dashboardId","dashboardName","config","hasDashboards","onExitFullscreen","onDashboardChange","onMount","onUnmount","dashboardIdFromUrl","useParams","useDashboard","screenfull","selectedDashboard","getSelectedDashboard","getSelectedDashboardConfig","getDashboards","isEditing","getDashboardIsEditing","getDashboardAutoRefresh","getWidth","getHeight","getSavedDashboardShowDialog","getDashboardShowEditDialog","loadDashboard","startAutoRefresh","stopAutoRefresh","showEditDialog","toggleAutoRefresh","MailingList","mailingList","imageLinks","onCopyRecipientsClick","showMailingListDialog","showRemoveMailingListDialog","MailingLists","valueSeq","listIndex","navigate","DeeplButton","setOpen","input","setInput","enqueueSnackbar","closeSnackbar","useSnackbar","alignContent","handleCancel","CancelIcon","typeId","preventDuplicate","getApiKeyRequestRunning","submitApiKeyStart","DeeplApiKeyCard","deeplApiKey","getDeeplApiKey","deleteApiKeyStart","ShowKey","apiKey","AddKey","JournalistSearch","anewstipApiKey","direction","buttonCardHeader","getAnewstipApiKey","AnewstipApiKey","common","white","textTransform","GoogleIcon","xmlns","fill","fillRule","LoginButton","signOut","validSubheader","invalidSubheader","ProfileInfo","profile","imgError","setImgError","hasValidPhoto","subheader","date","referrerPolicy","onError","Description","socialListening","ownedChannelAnalytics","renderTextItem","InfoIcon","apiContainer","facebook","linkedIn","twitter","googleScopes","youtubeScopes","linkedInAnalyticsScopes","linkedInContentDeskScopes","ExternalAccounts","facebookAccountConnected","facebookAnalyticsClientId","googleAnalyticsClientId","googleAnalyticsEnabled","youtubeAnalyticsEnabled","onFacebookSubmit","onFacebookRevoke","onGoogleAnalyticsSubmit","onGoogleAnalyticsRevoke","onYoutubeAnalyticsSubmit","onYoutubeAnalyticsRevoke","onLinkedInSubmit","onLinkedInRevoke","onTwitterRevoke","linkedInAnalyticsEnabled","linkedInClientId","externalAccounts","capabilities","facebookAccount","googleAnalyticsAccount","youtubeAnalyticsAccount","linkedinAnalyticsAccount","twitterAnalyticsAccount","linkedInButton","scope","LinkedIn","clientId","onSuccess","onFailure","redirectUri","googleButton","linkedInLogin","subtitle","GoogleAuthorize","accessType","responseType","prompt","cookiePolicy","render","renderProps","FacebookLogin","appId","callback","version","getGoogleAnalyticsEnabled","getYoutubeAnalyticsEnabled","getGoogleAnalyticsClientId","getFacebookAccountConnected","getFacebookAnalyticsClientId","getLinkedInAnalyticsEnabled","getLinkedInClientId","getStaticExternalAccounts","authenticateGoogleAnalyticsStart","revokeGoogleAnalyticsStart","authenticateYoutubeAnalyticsStart","revokeYoutubeAnalyticsStart","authenticateFacebookStart","revokeFacebookStart","authenticateLinkedInStart","revokeLinkedInStart","revokeTwitterStart","ExportButton","AiAnalysis","onCustomTagClick","onRemoveCustomTagClick","onAiAnalysisClick","menuActions","MoreVertIcon","showCustomTagDialog","showRemoveCustomTagDialog","showAiAnalysisDialog","summaryPaper","summary","down","p","marginBlockEnd","marginBlockStart","Summary","getMediaReviewSummary","codes","Codes","mediaReview","bar","barContent","barText","barTextNumber","ChannelBar","totalCount","reduce","acc","channel","channelPercentages","percent","data","articleTextContainer","articleText","lineHeight","articleTextNoColumns","ArticleText","useColumns","formattedText","users","Users","reactionType","reaction","reactionIndicator","reactionIndicatorContainer","total","totalChanged","ReactionIndicator","totalFromProps","setTotal","setTotalChanged","reactPopover","AssignedReactions","indicatorClassName","reactions","reactionTypes","assignedReactionTypeIds","filteredReactionTypes","rt","has","Popover","disableScrollLock","anchorOrigin","vertical","ReactionSelect","selectedId","ReactionSelectTrigger","ReplaceReaction","onReactionClick","myReactionTypeId","findKey","u","myReactionType","NrxReactions","reactionsFromProps","getStaticReactionTypes","codeId","news","getMediaReviewReactions","Reactions","headline","blue","textDecoration","Headline","useSummaryHeadline","col","publication","listItem","borderLeft","WebkitUserSelect","MozUserSelect","MsUserSelect","selectedForSorting","listItemRow","clusteredListItem","SafeEditButton","SafeDeleteButton","SafeReactions","Row","Col","Item","subsequentlyLoadedFullText","expanded","summaryExpanded","showSnippet","hideSnippet","showSummary","hideSummary","selectNewsForSorting","shiftSelectNewsForSorting","onFullTextClick","fullTextVisible","loadFullText","isClusteredNews","isTopicalCluster","handleFullTextIconClick","_ListItem","tonalityStyle","tonality","getAverageTonalityOfNews","getTonalityColor","newsId","keyPress","shiftKey","ctrlKey","metaKey","newsIds","isReplace","renderEssentialData","clusteredNewsLabel","onSnippetClick","onSummaryClick","summaryLabel","_ListItemText","unshift","omitIntersection","getPublicationNameOrAuthor","authors","hasAuthors","first","SummarizeIcon","renderRightActions","_ListItemSecondaryAction","reactionTypeId","getFullTextById","isExpandedMediaReviewNewsByCode","isSummaryExpandedMediaReviewNewsByCode","isMediaReviewSelectedNewsForSorting","isMediaReviewNewsSelected","getMediaReviewSelectedNews","showRemoveNewsDialog","showEditNewsDialog","selectNews","loadFullTextStart","replaceMediaReviewReactionStart","summaryHeadline","summaryContainer","disableGutters","topicalCluster","topicalClusterItem","topicalClusterList","TopicalCluster","cluster","tonalityColor","getAverageTonalityColorOfNews","_List","itemImage","snippet","snippetNoImage","fullText","borderTop","detailData","newsListItem","detailDataOnly","NewsListItem","setFullTextVisible","renderDetailData","maybeRenderFullText","MediaReviewNewsListItem","SortableItem","attributes","listeners","setNodeRef","useSortable","CSS","NewsComponent","NewsComponentProps","stringEquals","MultisortNewsList","onSortEnd","selectedNews","useOverlay","sortingDisabled","activeId","setActiveId","filteredNews","sensors","useSensors","useSensor","PointerSensor","activationConstraint","distance","TouchSensor","DndContext","collisionDetection","closestCenter","onDragStart","onDragEnd","over","oldIndex","findIndex","newIndex","onDragCancel","SortableContext","strategy","verticalListSortingStrategy","DragOverlay","sortingItemKey","selectedNewsForSorting","Set","GroupedNewsSublist","showCodes","getMediaReviewSelectedNewsForSorting","moveNewsInMediaReviewStart","resetSortingSelection","itemContent","listItemText","groupLabel","groupName","badgeStyle","GroupedNewsListItem","newsCount","collapseTopics","expandTopics","selectedCount","newsClusterIds","indeterminate","clickHandler","_Badge","badgeContent","badge","max","ExpandLessIcon","getMediaReviewNewsByCodeId","isExpanded","isMediaReviewGroupedNewsListSelected","Component","ComponentProps","SimpleSortableList","ids","GroupedNewsList","disablePadding","getMediaReviewCodes","moveCodeInMediaReviewStart","leftActions","help","defaultSortingDirections","articleDate","publicationName","channelId","topic","Sortbar","onSortBy","sortingDirections","setSortingDirections","selectedField","setSelectedField","handleSortingClick","order","unused","HelpIcon","SelectedNewsBar","onPinClick","onUnpinClick","onInvertSelectionClick","resetNewsSelection","invertNewsSelection","Selected","getShowMediaReviewsRemoveCustomTagDialog","hideRemoveCustomTagDialog","unpinAll","accordion","element__single","element__multi","flexGrow","flexBasis","element__2","element__3","element__image","element__text","ManagementSummary","containers","renderElement","element","containerSorting","imageUrl","imageLink","renderImage","html","renderText","elements","mediaReviewSummaryElements","borderRight","borderBottom","borderStyle","styles","getMediaReviewDetailData","iconMenu","mediaReviewHeader","flexFlow","toolbar","backdrop","drawer","backdropButtons","ExportMenuDialogs","AiAnalysisDialog","SafeAddMenuItem","ExportDialogs","SafeSortbar","SortBar","MediaReviewDetail","exportFormats","collapseAllTopics","expandAllTopics","showAllSnippets","hideAllSnippets","showAllSummaries","hideAllSummaries","onAcceptDiff","onRejectDiff","setValueInSettings","pdfCoverTitle","showDiffWarning","getMediaReviewById","shouldAutoCollapseTopics","shouldAutoShowSummaries","shouldAutoShowSnippets","startDate","endDate","isSame","headerLabel","AppBarActions","RemoveCustomTagDialog","_Backdrop","square","DefaultExportFormats","getPdfCoverTitle","getMediaReviewTotalNewsCount","getMediaReviewNewsCount","getMediaReviewDetailRunning","getMediaReviewDetialShowDiffWarning","getConfig","fetchNewsForMediaReviewStart","checkMediaReviewReactionsStop","acceptDiff","rejectDiff","channelBar","bottom","cardText","cardTitle","MediaReview","showChannels","MediaReviewStats","MediaReviewItem","initialDelay","newestMediaReviewContainer","newestMediaReview","newestMediaReviewStats","filters","sizeSelect","templateSelect","MediaReviews","mediaReviews","mediaReviewTypes","setMediaReviewFilter","setMediaReviewFilterSize","templateOptions","sizeOptions","MediaReviewFilterSizes","olderMediaReviews","el","getMediaReviewsData","getStaticMediaReviewTypes","getMediaReviewsFilter","getMediaReviewsFilterRequestRunning","filterMediaReviewsStart","searchBar","divider","searchIcon","calculateBgColor","h","String","lum","substr","min","luminate","SearchBar","queryTypeDropdown","accent","inherit","whitelabelTheme","useTheme","query","setQuery","submit","charAt","_InputBase","keyCode","inputElement","YoutubeSearchedForIcon","getSearchBarLabel","getNewsRequestIsRunning","uiEnteredQuery","showAppMessage","QueryTypeDropdown","moduleName","queyTypeOptions","_ListItemIcon","PeopleIcon","StickyNote2Icon","SwitchAccountIcon","FeedIcon","getSelectedQueryType","setSelectedQueryType","SelectedDateRange","dateRange","dateFrom","dateTo","getDateString","getSelectedDateFrom","getSelectedDateTo","getSelectedDateRange","DateFilterButton","renderDateButton","dateButton","ScheduleIcon","actionBar","ActionBar","buttonContainer","paperOnBackgroundColor","outlinksTitle","searchForm","mapToEntity","entities","propsValues","entity","foundDefault","pv","CustomTagsCol","NewsguardCol","CampaignsCol","SearchForm","languages","mediaTypes","filterGroups","distributionAreas","customTagGroups","newsguardRanks","newsguardOrientations","identitySets","ccdCampaigns","interfaces","suppliers","hasTonality","allowedFilterFields","toggleHelpDialog","uiApplyFilters","uiResetFilters","setSelectedFilters","selectedMediaReviewCodes","setSelectedMediaReviewCodes","selectedMediaTypes","setSelectedMediaTypes","selectedLanguages","setSelectedLanguages","selectedCountries","setSelectedCountries","selectedChannels","setSelectedChannels","selectedFilterGroups","setSelectedFilterGroups","selectedDistributionAreas","setSelectedDistributionAreas","selectedCustomTags","setSelectedCustomTags","selectedCustomTagGroups","setSelectedCustomTagGroups","selectedNewsguardRanks","setSelectedNewsguardRanks","selectedNewsguardOrientations","setSelectedNewsguardOrientations","selectedIdentitySets","setSelectedIdentitySets","selectedOutlinkDomains","setSelectedOutlinkDomains","selectedOutlinkUrls","setSelectedOutlinkUrls","selectedMediaReviewTypes","setSelectedMediaReviewTypes","selectedCcdCampaigns","setSelectedCcdCampaigns","selectedInterfaces","setSelectedInterfaces","selectedSuppliers","setSelectedSuppliers","setNegative","neutral","setNeutral","setPositive","unknown","setUnknown","booleans","setBooleans","setActive","previousActive","setPreviousActive","handleBooleans","newBooleans","overrides","withoutOutlinksOnly","withOutlinksOnly","renderFilter","names","renderAutocomplete","labelKey","source","creatable","allowEmptySource","onCreateOption","disableOptionsSelect","formatCreateLabel","textFieldProps","renderCol","channelsWithCountry","KeyboardArrowRightIcon","_FormGroup","renderArticleOptions","hasFacebook","hasTwitter","domain","URL","hostname","SettingsBackupRestoreIcon","handleApply","oDomains","o","oUrls","outlinkDomains","outlinkUrls","similarity","tonalities","selectedTonalities","getSelectedTonalities","x","getNewsUi","getStaticMediaReviewCodes","getStaticCountries","getStaticLanguages","getStaticMediaTypes","getStaticChannels","getStaticFilterGroups","getStaticDistributionAreas","getStaticNewsguardOrientations","getIdentitySets","getStaticMediaReviewTypesForFiltering","getCDeskCampaigns","getStaticInterfaces","getStaticSuppliers","getSelectedMediaReviewCodes","getSelectedCountries","getSelectedLanguages","getSelectedMediaTypes","getSelectedChannels","getSelectedOutlinkDomains","getSelectedOutlinkUrls","getSelectedFilterGroups","getSelectedDistributionAreas","getSelectedCustomTags","getSelectedCustomTagGroups","getSelectedNewsguardRanks","getSelectedNewsguardOrientations","getSelectedIdentitySets","getSelectedMediaReviewTypes","getSelectedCDCampaigns","getSelectedInterfaces","getSelectedSuppliers","getSelectedBooleans","geoBoundingBox","getSelectedGeoBoundingBox","getAllowedFilterFields","toggleAdvancedSearch","helpText","fontFamily","clear","headlineLabel","resultType","entryLabel","languageId","HelpDialog","showHelpDialog","FilterTimeline","onDateChange","Chart","secondFilter","getFilterTimeline","getShowFilterTimeline","drilldown","fetchFilterTimelineStart","dateForm","dateTypeRow","dateRestrictionInfo","link","linkColor","activeLink","activeLinkColor","close","inputs","DateForm","secondary","allowedDateTypes","dateType","hasTimelineFilter","hasDateRestriction","onChangeDateType","timeLimit","timeUnit","uiApplyDateFilter","uiChooseQuickSelect","dateFromFromProps","dateToFromProps","setDateFrom","setDateTo","renderQuickSelectItem","range","_Link","ButtonComp","RaisedSecondaryButton","renderDateType","radios","getDateQuickselects","renderTimeRangeCol","ampm","PickerComp","InlineDatePicker","InlineDateTimePicker","Date","onOpen","resettable","renderRestrictionInfo","subtract","fromNow","newDateFrom","newDateTo","startOf","endOf","getSelectedDateType","getLocale","getAllowedDateTypes","getViewConfigHasDateRestriction","getNewsPoolTimeLimit","getNewsPoolTimeUnit","changeDateType","toggleDateForm","searchActions","searchFormDrawer","NewsPageAppBar","showDateForm","showAdvancedSearch","barStyle","setBarStyle","NotificationButton","renderActions","acts","handleFocus","handleBlur","renderFilterButton","renderForms","_Drawer","getViewConfigAppBarTitleKey","highlight","inputContainer","FilterableMenu","onItemClick","onMainClick","setValue","previousLoading","usePrevious","newHandle","filteredItems","ListItemButton","handleItemClick","RegExp","endIcon","ChevronRightIcon","iList","getSavedSearches","getSavedSearchResolving","executeSavedSearch","uiAddFilters","charts","timeline","AnalysisQueries","Charts","StaticCharts","DefaultNewsView","DocumentDownloadDialog","InfluencerDetailsDialog","AddInfluencerToContactsDialog","Influencers","JumpMark","Navigation","AssignCustomTagsToNewsDialog","PageIdentities","PageIdentityStatistics","Publications","SavedSearchesOptions","ShoppingCartButton","ShoppingDialog","CustomTagsIcon","CustomTagsButton","CustomTagsMenuComp","CustomTagsMenu","SavedSearchesIcon","SavedSearchesButton","SavedSearchesMenuComp","SavedSearchesMenu","SavedSearchesOptionsComp","viewComps","NewsPageViews","NewsPage","isValidSearch","hasFilters","onInvalidSearch","view","allowedViews","renderAppBarAction","actionView","MenuComp","appBarActions","queryTypeDropDown","getNewsView","getAllowedNewsViews","invalidSearch","PasswordForm","oldPassword","newPassword1","newPassword2","autoComplete","renderUnequalPasswordsError","handleSaveClick","newPassword","updateUserRequestStart","flags","photo","guessLocale","BasicSettings","uploadedPhoto","onPreviewUrlChange","onImageUpload","renderFlag","language","countryCode","localeMapping","handleLanguageChange","LanguageOptions","getPreviewUrl","getUserImage","setUser","uiSetPreviewUrl","uiSetUserImage","MiscSettings","onDarkModeChange","darkModeOptions","darkMode","preferSummaries","globalClusterDefault","disableNotificationAlerts","preferMedia","displayEmpty","setDarkMode","setField","SpecificSettings","userConfig","translateSearchResults","translateSearchResultsTargetLang","contentLanguageOptions","getContentLanguageOptions","getUserConfig","setUserConfigField","updateUserConfigRequestStart","SpecificSettingsComp","PersonalSettings","hasDeeplApiKey","process","Tabs","tabs","AffectedDashboardsDialog","Timeline","CardView","ListView","_ref4","DispatchesDialog","Feeds","SavedSearches","_ref5","hasSavedSearches","onTabChange","tab","showFeed","showTimeline","renderSavedSearches","renderViewSwitch","_Tabs","tabValue","indicatorColor","_Tab","getSavedSearchViewType","getSavedSearchesTab","fetchSavedSearchesTimelinesStart","setViewType","setTab","Preview","cardContent","colorPickerHeader","whiteEditIcon","colorContainer","whiteColor","panelDetails","chartColorButton","colorIndices","listData","stats","buzz","firstLevel","Settings","isValidFilename","pdfDispatchConfigs","darkmode","isPlotlights","onThemeClick","reset","resetColors","themes","updateConfigRequestStarted","validateFilename","themeName","setThemeName","mode","remove","handleColorChange","newColors","newConfig","mergeIn","renderColorPicker","colorKeys","newColor","dateFilterSettings","DateTypes","dateTypeFilterSettings","groupingSetting","sortingSettings","newsPageViewSettings","NewsPageViewTypes","initialRouteSettings","InitialRoutes","_AccordionActions","defaultExpanded","renderPdfDispatchConfigSelect","pdfDispatchConfigOptions","dc","getWhitelabeledThemes","getThemes","getDarkMode","getStaticPdfDispatchConfigs","updateConfigRequestStart","updateConfig","resetConfigToDefault","validateFilenameInConfig","setTheme","getShoppingCartSelectedNewsIds","getShowShoppingCartRemoveCustomTagDialog","firstNews","secondNews","hoveredFirstNews","light","hoveredSecondNews","doubleArrowUp","doubleArrowDown","ClusterDialog","activeNewsIdFirst","activeNewsIdSecond","hoveredNewsIdFirst","hoveredNewsIdSecond","onMoveClick","onMoveStart","onHover","onSaveClick","resetHoveredNewsIds","second","setHoveredNewsIds","startAnimation","isMoving","dialogContentClasses","oldIds","handleTopClick","DoubleArrowIcon","handleUpClick","ArrowUpwardIcon","handleDownClick","ArrowDownwardIcon","handleBottomClick","getShowShoppingCartClusterDialog","getShoppingCartClusterNewsIds","getShoppingCartClusterNews","getShoppingCartClusterLoading","getShoppingActiveNewsIdFirst","getShoppingActiveNewsIdSecond","getShoppingHoveredNewsIdFirst","getShoppingHoveredNewsIdSecond","hideClusterDialog","moveNewsInCluster","setActiveNewsIdsInCluster","setHoveredNewsIdsInCluster","replaceCluster","onNewNewsClick","customTagMode","ClearAllIcon","navigateBack","resetCustomTag","getShoppingCartIsStructuredExport","resetShoppingCart","progress","shoppingCartCustomTag","onCustomTagBackClick","structuredFormat","structuredFormatByCustomTag","handleBackClick","MuiAppBar","getShoppingCartNewsCount","getShoppingCartPinAllProgress","getShoppingCartCustomTag","meta","clusterIcon","wordBreak","keyFigures","EditButton","isMobile","showSnippets","onShiftSortingSelect","onSortingSelect","onClusterClick","codeIds","getShowSnippetsInShoppingCart","isShoppingCartNewsSelected","getShoppingCartSelectedNews","getNewsClusterIdsOfNewsInShoppingCart","removeNewsFromShoppingCart","showClusterDialog","ShoppingCartNewsListItem","getShoppingCartSelectedNewsForSorting","moveNewsInShoppingCartSublist","ShoppingCartGroupedNewsSublist","groupHeader","dragAction","onToggle","getNewsClusterIdsOfCodeInShoppingCart","isShoppingCartGroupedNewsListSelected","toggleNewsList","ShoppingCartGroupedNewsListItem","UNGROUPED","GROUPED","sortDirectionButton","onUngroupedSortBy","sortDirection","setSortDirection","sortByUngrouped","Toolbar","rightActions","onToggleSnippets","toggleSnippets","onExpand","onCollapse","allExpanded","getShoppingCartCodes","isAllExpanded","moveCodeInShoppingCart","expandAllNewsLists","collapseAllNewsLists","ShoppingCartGroupedNewsList","NewsList","getShoppingCartNews","moveNewsInShoppingCart","ShoppingCartNewsList","ShoppingCart","onCustomTagIdChange","show","tabIndex","ungroupedOnly","custom_tag_id","customTagId","showBody","getShoppingCartTabIndex","getShoppingCartUngroupedOnly","getAppLoading","getShoppingCartRunning","updateTabIndex","setCustomTagId","CheckboxCard","isValidElement","topicGroups","topics","selectButton","Topics","selectedTopicIds","selectedEditionIds","selectedCodeFilters","onSelectAll","onDeselectAll","setFilter","byCodeFilter","filteredTopics","filteredTopTopics","getGroupSize","allSelected","selectableTopics","handleSelectAll","renderGroup","gIndex","tIndex","renderTopic","renderTopics","listChunk","renderGroups","groupIndex","my","py","handleFilterChange","ImmutableSet","getAllowedStaticMediaReviewCodes","getSelectedTopicIds","getSelectedEditionIds","getSelectedCodeFilters","updateTopicSelection","selectAllTopics","deselectAllTopics","timeIcon","checkBoxCard","bold","schedule","editions","selection","Header","formatTime","Editions","selectedEditions","edition","renderSelectedEdition","renderEdition","timeSet","AccessTimeIcon","renderSelectedEditions","editionNames","separator","getStaticMediaReviewTypesForSubscription","updateEditionSelection","introduction","greeting","Intro","Subscriptions","ImmutableMap","getDarknetRequestRunning","wrapper","Sorting","noHits","onSortByChange","onSortDirectionChange","opt","getDarknetSortBy","getDarknetSortDirection","getDarknetResults","QmIcon","QmButton","settingsButton","onQueryManagerClick","renderQueryManagerButton","SettingsIcon","AverageStatistics","avgHackishness","getDarknetStats","hackishness","hackishnessBackground","languagesWrapper","pointerEvents","networkInfo","InfoSummary","entry","searchResultDrilldown","crawlDate","roundHack","handleClickQueryFilter","filterType","handlePopoverClose","handleClickNetworkFilter","capitalize","handleClickLanguageFilter","score","renderHackIcons","disableRestoreFocus","defaultColor","textWrapper","highlighting","FulltextDialog","keepMounted","copyBtn","onionDisclaimer","checkIcon","SourceDialog","copied","setCopied","timer","noWrap","handleCopy","InfoSummaryGrid","TitleGrid","SnippetGrid","entryContainer","menuContainer","Entry","showFulltext","setShowFulltext","showSource","setShowSource","ScrollToTop","trigger","useScrollTrigger","disableHysteresis","Grow","scrollTo","behavior","role","titles","Titles","loadMoreBtn","SearchResults","searchResults","loadingMore","darkowlSearchQueries","onLoadMoreClick","NoHits","queryId","matchingQuery","q","byQueryId","getMatchingQuery","_Fab","renderLoadMore","remaining","getDarknetTotalCount","getDarknetLoadingMore","getDarkowlSearchQueries","loadMoreDarknetEntriesStart","getActiveDarknetFilters","getActiveDarknetNumberFilters","getActiveDarknetFiltersCollapsed","toggleActiveFilters","ButtonContainer","chartsButton","switchActionsContainer","switchActions","switchAction","switchActionContent","activeBorder","iconContainer","chartsActive","requestRunning","useColors","SpinIcon","renderNavigationAction","buttonView","isRunning","counts","isArray","iconComp","buttons","getDarknetView","changeDarknetView","DateDrawer","valueText","marks","HackishnessSlider","setHackishness","_Slider","minHackishness","track","valueLabelDisplay","getAriaValueText","step","hackishnessFilter","networks","Networks","searchQueries","selectedNetworks","setSelectedNetworks","selectedHackishness","setSelectedHackishness","selectedMinHackishness","selectedSearchQueries","setSelectedSearchQueries","handleResetFilters","_FormLabel","getDarknetShowAdvancedSearch","getStaticDarkowlLanguages","getDarknetSearchFilters","FilterDrawer","FilterButton","activeColor","renderButton","DarknetChart","chartId","layout","chartOpts","chartWithTranslations","update","GridItem","opts","innerRadius","LanguagesChart","chartWithStyles","addStylesToChart","getChartById","getDarknetCharts","DarknetCharts","chartDrilldown","MentionsTotalChart","dataMin","floor","dataMax","ceil","MentionsTimelineChart","addPercentSign","AvgHackishnessTimelineChart","AvgHackishnessChart","usePercentAsValue","AvgHackishnessNetworksChart","NetworksChart","NetworksTimelineChart","SearchQueriesTimelineChart","ScoreResultTimelineChart","getChartsById","chartComponents","breakpoint","chartOrder","OrderedSet","getChartOrder","renderChart","getBreakpoint","onMountSearch","onMountScores","dialogTitle","borderBottomStyle","borderBottomColor","borderBottomWidth","ConfirmationDialog","onConfirm","fullScreen","table","tableNameColumn","activatedColumn","deactivatedColumn","tableWrapper","tableContainer","tableActionColumn","actionsDivider","actionGroup","activationSwitch","confirmationWrapper","closeButton","searchRow","scoreRow","deactivatedRow","overlay","QueriesTable","queries","onScoreQueryDialogOpen","onSearchQueryDialogOpen","onDeactivate","onActivate","confirmationDialog","setConfirmationDialog","isOpen","toggleConfirmationDialog","renderActionButtons","activated","DeleteOutlinedIcon","handleEdit","EditOutlinedIcon","handleDeactivate","handleActivate","cellClass","rowTypeClass","_TableHead","align","domains","obj","domainType","Object","entries","timeInMinutes","interval","keys","Intervals","mapIntervals","calendar","orientation","flexItem","getDarknetQueries","deleteQueryRequestStart","deactivateQueryRequestStart","activateQueryRequestStart","MAIL_DOMAINS","WEB_DOMAINS","chips","dialogContent","ScoreQueryDialog","webDomainData","setWebDomainData","emailDomainData","setEmailDomainData","setError","email","web","fieldsAreEmpty","context","validDomain","handleWebDelete","chipToDelete","webDomains","handleEmailDelete","emailDomains","handleDomainClick","handleMailClick","handleMail","handleDomain","renderChips","chipsData","deleteFun","formattedChips","_InputLabel","htmlFor","_OutlinedInput","onKeyDown","getDarknetScoreQueryFormData","fieldsetLabel","SearchQueryDialog","onTest","testRunning","testDisabled","testResult","emailData","setEmailData","emailDomain","forDarkowlSearchQuery","handleNetworkChange","newNetworks","emails","handleEmailDomainDelete","handleEmailClick","isValidEmail","validEmail","isValidDomain","handleMailKeyDown","handleDomainKeyDown","renderNetworks","renderedNetworks","labelPlacement","PlayArrowIcon","getDarknetSearchQueryFormData","getDarknetTestSearchQueryRunning","getDarknetTestSearchQueryDisabled","getDarknetSearchQueryFormTestResult","dialogCard","TypeDialog","onSearchClick","onScoreClick","QueryManager","scoreQueryDialogOpen","searchQueryDialogOpen","onScoreDialogClose","onSearchDialogClose","onScoreDialogOpen","onSearchDialogOpen","typeDialogOpen","setTypeDialogOpen","handleCreateClick","handleTypeDialogClose","handleOpenScoreQueryDialog","handleOpenSearchQueryDialog","handleSearchDialogClose","handleScoreDialogClose","getScoreQueryDialogOpen","getSearchQueryDialogOpen","userLocale","ChartExport","ExternalChart","NrxProgressBackdrop","getCDesksearchBarLabel","getCDeskSearchCampaignsRunning","getCDeskSearchContentsRunning","getCDeskSelectedQueryType","openCalendarDialog","isSubmodule","CalendarMonthIcon","isContentDeskContentsAndCampaigns","hasDomain","ThemedAppBar","getCDeskConfig","getCDeskActiveFilters","getCDeskActiveFiltersCollapsed","CampaignName","campaign","campaignName","arrow","shorten","_state","ownProps","statusWrapper","chipLabel","inactive","blueGrey","CampaignStatus","isStatusDisabled","setIsStatusDisabled","campaignActive","isBefore","handleStatusChange","status","ArrowDropDownIcon","getCDeskCalendarLoadingCampaignIds","saveCampaignFormlessStart","duration","CampaignProgress","campaignStart","campaignEnd","chipUnselected","chipSelected","ShortCampaign","selectedCampaignId","onContentsClick","campaignSelected","getCDeskCalendarSelectedCampaignId","setCalendarSelectedCampaignId","sortIconActive","sortIconInActive","ShortCampaigns","campaigns","campaignsSorting","sortCampaigns","renderSortIcon","sortFunc","SwapVertIcon","getCDeskSelectedCalendarEvents","getCDeskCalendarCampaignsSorting","draft","reviewPending","purple","revisionsNeeded","orange","approved","ContentTitle","isOtsContent","otsPressRelease","MailIcon","LinkedInIcon","FacebookIcon","contentActions","moreActionsButton","select","gap","deleted","renderStatusIcon","TimerOutlinedIcon","pink","RemoveOutlinedIcon","ColumnFooter","fontColor","ContentStatus","plannedForDate","isPlannedForBeforeNow","getStatusDate","dialogActions","warningWrapper","warning","otsInfo","listStyleType","PublishConfirmDialog","approvalStatus","createOtsDraft","closeEditContentDialog","approveOnPublish","setApproveOnPublish","notApproved","isMailContent","handlePublish","currentDateAndTime","local","handleCreateOtsDraft","createOtsDraftStart","ContentDelete","deleteDisabled","deleteData","setDeleteData","handleOpen","DeleteOutlineIcon","openDeleteDialog","setDeleteContentData","SwitchToSearchMenuItem","tooltip","infoIcon","actionName","resubmitContainer","newEditorContentTypes","ContentActions","contentDeskContentTypes","onCloneClick","onViewClick","onSwitchToSearchPoolClick","saveContentStart","scheduledForDate","contentType","deletedExternally","showSearchPoolButton","editDisabled","setEditDisabled","setDeleteDisabled","publishConfDialogOpen","setPublishConfDialogOpen","intervalEdit","setInterval","clearInterval","intervalDelete","openEditContentDialog","openOldEditContentDialog","handleOtsEdit","currentType","handleViewClick","RemoveRedEyeIcon","SendIcon","handleClone","linkedInPost","facebookPost","resetLinkedInSpecificFields","mediaFiles","linkedInImages","altText","listUniqueById","mediaContent","multiImage","resetFacebookSpecificFields","mediaAttachments","attachment","handleNotes","openContentNotesDialog","renderNoteAction","notes","NotesIcon","PoolIcon","getStaticCdContentTypes","ShortContent","editor","lastEditedDate","statusClass","camelcase","getCDeskCalendarLoadingContentIds","lastEditedLabel","ShortContents","contents","contentsSorting","sortContents","getCDeskCalendarContentsSorting","detailsContainer","accordionSummary","CalendarEvents","selectedDay","sameDay","nextDay","nextWeek","lastDay","lastWeek","sameElse","getCDeskCalendarSelectedDay","outline","outlineOffset","font","CalendarWidget","calendarDate","onNewContentClick","onNewCampaignClick","fetchContents","setCalendarDate","setSelectedDay","wrapperRef","newEventTop","setNewEventTop","newEventLeft","setNewEventLeft","newEventOpen","setNewEventOpen","newEventStartDate","setNewEventStartDate","newEventEndDate","setNewEventEndDate","events","calendarWidgetEvents","start","end","overlap","handleNewEventClose","onCalendarNavClick","calendarApi","getDate","calendarConfig","customButtons","prevButton","click","getApi","prev","nextButton","next","todayButton","today","expandButton","headerToolbar","center","buttonIcons","titleFormat","month","initialDate","last","plugins","dayGridPlugin","interactionPlugin","firstDay","editable","selectable","newSelectedDay","jsEvent","clientY","clientX","contentHeight","FullCalendar","allLocales","_Menu","anchorReference","anchorPosition","handleNewContentClick","scheduledFor","handleNewCampaignClick","getCDeskCalendarContents","getCDeskCalendarDate","getCDeskRequestRunning","openNewContentDialog","openCampaignForm","fetchCalendarEventsStart","lighten","loadingContainer","mailIcon","socialIcon","otsLogo","infoButton","PrimaryNavigation","hasContactsManagement","hasLinkedIn","hasOts","openContent","openContentDialog","openOtsWelcomeDialog","mt","socialOnly","hasCapability","hasOtsPr","changeContentTabView","resetFilters","search","setContentFilters","setKpiFilters","fetchKpiStatistics","useCallback","conditions","comparison","condition","operator","handleTabChange","newButtonView","currentButtonView","isDisabled","tabButton","disableRipple","getCDeskContentTabView","fetchKpiStatisticsStart","setKpiStatisticsFilters","KpiDateFilter","_Select","IconComponent","startAdornment","getCDeskKpiStatisticsFilters","titleWrapper","diffWrapper","StatisticsCard","difference","trend","timePeriod","loadingKpiStatistics","comparedToLabel","renderChip","chipBackgroundColor","TrendingUpIcon","TrendingDownIcon","TrendingFlatIcon","mr","statisticsConfig","KpiStatistics","hasSocialMedia","kpiStatistics","tabView","kpiCards","buildKpiCards","metrics","statistics","metric","emailMetric","socialMediaMetric","metricData","toSnakeCase","columnSpacing","rowGap","getCDeskKpiStatistics","getCDeskLoadingKpiStatistics","Transition","_Slide","fullCalendarEvent","tooltipTitle","closed","typeIcon","statusIcon","campaignEvent","contentEvent","contentInfoWrapper","contentStatusCircle","eventLabel","infoContainer","calendarInfo","calendarInfoItem","calendarInfoItemColor","calendarInfoItemTitle","calendarInfoItemLabel","campaignEventProgressLabel","campaignEventLabelContainer","contentStatusWrapper","otsIconWrapper","CalendarDialog","hasContentDeskModule","onContentClick","onCampaignClick","showOuterTooltip","setShowOuterTooltip","convertedEvents","eventType","extendedProps","rgbaColorFromHex","calendarEvents","plannedFor","year","dayMaxEventRows","eventContent","eventInfo","campaignSummary","renderCampaign","tooltipStatus","disableHoverListener","CancelOutlinedIcon","renderContent","eventClick","eventTimeFormat","hour","minute","meridiem","eventClassNames","getCDeskCalendarEvents","getCDeskShowCalendarDialog","closeCalendarDialog","onCalendarContentClick","useBeforeUnload","fn","unsavedChanges","eventListenerRef","returnValue","defaultPrevented","eventListener","addEventListener","removeEventListener","dialog","contentText","CloseConfirmDialog","onBack","handleBack","onCloseDialog","closeOldEditContentDialog","getCDeskNewDialogView","getCDeskContentFormData","changeNewContentDialogView","titleGridContainer","campaignAutocomplete","campaignAutocompleteContainer","circularLoader","bottomActionsContainer","subjectLengthInfo","validSubjectLength","invalidSubjectLength","GridBreak","styled","ContentForm","campaignOptionsLoading","defaultDomains","types","emailEditorLoading","resetSocialMediaPostsAndUploads","preHeader","setCampaign","setType","subject","setSubject","senderEmailLocal","setSenderEmailLocal","senderEmailDomain","setSenderEmailDomain","senderMail","setSenderMail","senderName","setSenderName","typeIsMail","activeCampaigns","typeOptions","campaignOptions","domainsOptions","ccdCampaign","handleSubjectChange","handlePreHeaderChange","handleNameChange","handleTitleChange","subjectLength","subjectLengthClasses","mb","handleCampaignChange","handleTypeChange","handleMailChange","disablePortal","disableClearable","handleSenderEmailDomainChange","PopperProps","modifiers","offset","getCDeskCampaignDropdownOptionsLoading","getDefaultDomains","getCDeskCampaignDropdownOptions","getCDeskEmailEditorLoadingStatus","recipientList","row1","row2","row3","WebkitMaskImage","maskImage","switchButton","switchButtonHint","recipientsActions","SelectRecipientsForm","contactDropdownOptions","contactDropdownOptionsLoading","distributionListDropdownOptions","distributionListDropdownOptionsLoading","isDistListsLocked","fetchContactDropdownOptionsStart","fetchDistributionListDropdownOptionsStart","setContentFormData","recipientsRef","contactOpen","setContactOpen","contactOptions","setContactOptions","contactValue","setContactValue","contactInputValue","setContactInputValue","dlOpen","setDlOpen","dlOptions","setDlOptions","dlValue","setDlValue","dlInputValue","setDlInputValue","showRecipients","setShowRecipients","recipientsHeight","setRecipientsHeight","searchString","clientHeight","dlHandleOnChange","newRecipients","contactId","distributionListId","new","distributionListName","createdAt","uniqueRecipients","listUniqueByKeyName","contactHandleOnChange","recipientsNode","lastTop","totalRows","forEach","offsetTop","clearOnEscape","disableCloseOnSelect","filterOptions","newInputValue","_Alert","severity","firstName","lastName","mail","onSwitchClick","_value","switchToContactManagement","handleClearAll","DeleteForeverIcon","handleShowAllRecipients","_Collapse","collapsedSize","currentRecipient","recipient","getCDeskContentFormDataRecipients","getCDeskContactDropdownOptions","getCDeskContactDropdownOptionsLoading","getCDeskDistributionListDropdownOptions","getCDeskDistributionListDropdownOptionsLoading","getCDeskIsDistributionListsLocked","postContainer","showMore","mediaGallery","mediaImg","objectFit","transparentLayer","video","pdfCanvas","linkContainer","linkImg","borderTopLeftRadius","borderTopRightRadius","linkData","borderBottomLeftRadius","borderBottomRightRadius","linkRemoveBtn","showContentDetailsView","editorDialogView","currentLinkedInPost","postText","setShowMore","displayedText","showMoreLink","replaceAll","substring","handleRemoveLink","renderLinkedInGallery","f","videos","documents","articleContent","controls","preload","Document","Page","pageNumber","_ImageList","cols","_ImageListItem","srcSet","restCounter","_ImageListItemBar","Facebook","currentFacebookPost","defaultFacebookPost","renderFacebookGallery","facebookPostType","linkMetadata","noPreviewContainer","noPreviewBox","fontStyle","htmlPreview","ContentPreview","renderMain","srcDoc","getCDeskSelectedContent","getCDeskShowViewContentDialog","emailVariables","getMediaFileSrcAndFit","mf","isEditorDesignBlank","editorDesign","column","previewContent","borderRightWidth","releaseButton","previewContainer","previewInnerContainer","previewLabel","recipientsContainer","mediaListBox","VerticalDivider","DistributeForm","formatBytes","scale","renderFileImage","renderRecipients","templateItemPaper","templateItemPaperClickable","moreOptionsIcon","templateName","htmlContainer","TemplatesListItem","loadTemplate","template","activeNewsradarId","readMode","openDialog","loadSelectedTemplate","closePickerDialog","setTemplatesReadModeOnly","onTemplateClone","isReleased","htmlContent","handleLoadTemplate","ReportGmailerrorredIcon","getNewsradarId","getETLibraryReadMode","listItemWrapper","gridTemplateColumns","gridAutoRows","columnGap","TemplatesList","templates","filteredTemplates","getETLibraryTemplates","_theme","loadMoreButtonContainer","TemplatesWrapper","hasMore","isPublicOnly","togglePublicTemplates","onLoadMore","hasPublicReadRights","shared","getETLibraryFetchRequestRunning","getETLibraryDeleteRequestRunning","getETLibraryShowPublic","dialogTitleAndActions","TemplatePickerDialog","saveCcdContent","switchToEmailTemplatesLibrary","getETLibraryShowPickerDialog","TemplatesPickerDialog","closeSaveDialogButton","SaveTemplateDialog","hasPublicWriteRights","handleChangeCheckbox","saveDialogTitle","getCDeskShowSaveTemplateDialog","getETLibrarySaveRequestRunning","closeSaveTemplateDialog","contentHelperText","tableHeader","tableCell","needHelpButton","mergeTags","example","variables","columnWidths","TemplatesEditorVariables","raisedBtn","openHelp","setOpenHelp","helpVideoSrc","handleCopyVariable","variable","mergeTag","PlayCircleIcon","templatesPickerButton","EmailEditor","editorHeight","moduleScope","json","newsradarId","onEditorLoadingStart","onEditorLoadingStop","resetImageUrl","openPickerDialog","onSaveTemplateClick","fetchMoreMediaFilesStart","onMediaFileDelete","emailEditorRef","userIsMax","_useMediaQuery","uploadImageCallback","setUploadImageCallback","setBodyValues","preheaderText","handleDesignUpdate","debounce","exportHtml","editorData","design","exportPlainText","done","handleOpenTemplates","j","loadDesign","ReactEmailEditor","onLoad","onReady","currentEditorDesign","registerCallback","registerProvider","appearance","loader","projectId","getCDeskContentUploadedImageUrl","emailEditorLoadingStart","emailEditorLoadingStop","uploadEditorImageStart","resetUploadedImageUrl","openSaveTemplateDialog","galleryControls","imageListBox","lastUploaded","loadMoreButton","pdfPaging","MediaGallery","contentFormData","uploadedMediaFiles","loadMoreDisabled","onImageDelete","mediaTypeOptions","initialLinkedInPost","currentSelectedMediaFiles","currentSelectedMediaFileIds","linkedInContentType","uploadedImages","setUploadedImages","uploadedVideos","setUploadedVideos","uploadedDocuments","setUploadedDocuments","mediaType","setMediaType","multiImageValid","setMultiImageValid","hoveredImageId","setHoveredImageId","totalPages","setTotalPages","pageNumbers","setPageNumbers","changePage","documentId","prevPageNumbers","allUploadedImageFiles","allUploadedVideoFiles","allUploadedDocumentFiles","getVideoSelectedColor","handleDeleteImage","actionPosition","CheckCircleRoundedIcon","_e","selectedMediaFile","newSelected","toggleImageSelect","rowHeight","toggleVideoSelect","toggleDocumentSelect","onLoadSuccess","onDocumentLoadSuccess","numPages","prevTotalPages","renderAnnotationLayer","previousPage","NavigateBeforeIcon","nextPage","NavigateNextIcon","getCDeskUploadedMediaFiles","getCDeskUploadedMediaFilesTotal","getCDeskMediaFilesPage","getCDeskMediaFilesLimit","getCDeskMediaFilesLoading","deleteMediaFileStart","renderMood","mood","actionButton","EditorAiWorkspace","onButtonClick","renderTranslationOptions","handleTranslateClick","actionType","renderMoodOptions","handleCreateMoodClick","translationOptions","moodOptions","CdEditorMoods","getCDeskEditorAiRequestRunning","editorAiRequestStart","heading","resultHeading","resultHeadingText","circularProgress","noResults","resultEntry","PromptHistory","renderResult","navigator","clipboard","writeText","autoHideDuration","getCDeskAiRequestResults","searchField","hotlink","subtitleWrapper","Unsplash","photosData","downloadRequestRunning","formData","isRandomSearch","selectedImageId","startUnsplashSearch","fetchRandomPhotos","resetUnsplashPhotos","addToLibrary","handleMainSearch","renderSubtitle","filename","CloudDownloadIcon","handleLoadMore","getUnsplashRequestRunning","getUnsplashPhotos","getUnsplashFormData","getIsRandomSearch","getUnsplashPage","getUnsplashDownloadRequestRunning","getUnsplashSelectedImageId","postLengthInfo","validPostLength","invalidPostLength","aiModeSwitch","compaynSearchPopOver","linkLoader","LinkedInEditor","organizations","permissions","mediaFileUploading","uploadedMediaFilesTotalSize","linkLoading","socialMediaLinkBuildFailed","aiMode","onUpload","toggleEditorAiMode","unsplashIsVisible","toggleUnsplash","companySearchStart","companySearchResults","buildSocialMediaLink","inputRef","cursorPosition","setCursorPosition","isEmojiClick","setIsEmojiClick","emojiLength","setEmojiLength","inputRows","setInputRows","matchedUrl","setMatchedUrl","companySearchValue","setCompanySearchValue","companySearchOpen","setCompanySearchOpen","results","setResults","setLoading","profileName","profileUrn","currentPostDestination","postDestinations","urn","postDestinationOptions","selectedPostDestination","logo","focus","selectionStart","socialMedia","onMediaUpload","doUpload","UploadedMediaFilesSizeLimit","postTextLength","postLengthClasses","linkedInRequiredPermissions","urls","getUrls","forceHttps","stripWWW","handleInputClick","handleSelectionChange","getSelection","ApartmentIcon","TextField","CircularProgress","YoutubeSearchedFor","dense","_ListItemButton","_ListItemAvatar","InsertEmoticonIcon","EmojiPicker","emojiStyle","emojiVersion","onEmojiClick","handleEmojiClick","emoji","newLinkedInPost","handleChannelChange","ImageOutlinedIcon","PhotoLibraryIcon","ImageSearchIcon","getCDeskLinkedInCompanySearchResults","getStaticLinkedInAnalyticsOrganizations","getCDeskEditorAiMode","getLinkedInPermissions","getLinkedInProfile","getCDeskMediaFileUploading","getShowUnsplashComponent","getCDeskUploadedMediaFilesTotalSize","getSocialMediaLinkLoading","getSocialMediaLinkBuildFailed","uploadLinkedInMediaFileStart","setAiSelectedText","linkedInCompanySearchStart","buildSocialMediaLinkStart","iconWrapper","MaterialUISwitch","ThemedSwitch","LeftIcon","RightIcon","iconColor","initialFacebookPost","currentAttachments","Switch","CameraAltIcon","TheatersIcon","facebookImages","facebookVideos","FacebookMediaGallery","attachmentsContainer","attachmentName","attachmentMessageInput","removeAttachmentButton","FacebookEditor","pages","currentPage","facebookPages","selectedPage","videoMaxSize","imageMaxSize","updatedAttachments","_","updatedSelectedMediaFiles","handleRemove","pageId","accessToken","newFacebookPost","handlePageChange","getStaticFacebookAnalyticsPages","uploadFacebookMediaFileStart","editorContainer","ContentEditor","ContentPlanDialog","closePlanDialog","setPlannedFor","handlePlan","getCDeskShowPlanDialog","ContentScheduleDialog","closeScheduleDialog","setScheduledFor","handleSchedule","getCDeskShowOldScheduleDialog","attachmentsActions","selectWrapper","pdfPagingButton","allowedMimeTypes","allowedTotalAttachmentsSize","Attachments","fetchMore","onMediaDelete","filesFilter","setFilesFilter","hoveredMediaId","setHoveredMediaId","deleteState","setDeleteState","mediaId","currentAttachmentsSize","toggleMediaSelect","deselecting","exceedsFileLimit","exceedsSizeLimit","handleCloseDeleteDialog","handleDeleteMedia","handleOpenDeleteDialog","domainValidationRegex","emailValidationRegex","topLevelDomainRegex","formContainer","buttonDisabled","linearProgress","statusButton","statusView","footerToolbar","footerRightActions","ContentEditDialog","isLoading","isInCloneMode","onUnlock","onRelock","onTestMail","openScheduleDialog","openPlanDialog","duplicateError","confDialogOpen","setConfDialogOpen","contentFormType","handleExit","requiredFields","isFormValid","translationKey","onScheduleClick","releaseNow","newStatus","PendingOutlinedIcon","AlarmOnIcon","ChangeCircleIcon","HelpOutlineOutlinedIcon","testMailDisabled","classNameButton","edge","getCDeskShowOldEditContentDialog","getCDeskContentIsLoading","getCDeskContentDialogCloneMode","getCDeskDuplicateError","lockContentStart","deleteContent","deleteCampaign","getCDeskShowDeleteDialog","getCDeskDeleteData","deleteContentStart","deleteCampaignStart","closeDeleteDialog","form","datePicker","CampaignForm","isInEditMode","assignees","campaignNameValid","resetForm","mobile","formHasChanged","setFormHasChanged","statusOptions","handleDateChange","isAfter","userOptions","getCDeskCampaignFormData","getCDeskShowNewCampaignDialog","getCDeskCampaignDialogEditMode","getCDeskCampaignNameValid","getCDeskAssignees","ContentNewDialog","closeNewContentDialog","handleBtnClick","filteredType","timestamp","JSON","stringify","initialOtsBody","defaultPage","_Stack","bgcolor","getCDeskShowNewContentDialog","getCDeskNewContentDialogSocialOnly","CampaignDelete","hasScheduledContents","isDefaultCampaign","deleteTooltipTitle","CampaignActions","setEditMode","switchToSearchPool","setCampaignDialogEditMode","statusColor","TripOriginRoundedIcon","WatchLaterRoundedIcon","otsStatusColor","indigo","renderOtsStatusIcon","RemoveCircleIcon","ContentApprovalStatusSelect","buttonClass","campaignId","otsStatus","scheduledForJobName","scheduledEventsJobName","ccdCampaignId","handleComp","renderOtsStatusChip","otsLabel","declined","distributed","review","Content","showCampaigns","otsStatusClass","renderCampaigName","Contents","sortOrder","setPage","sortedContents","setSortedContents","currentSortBy","setCurrentSortBy","currentSortOrder","setCurrentSortOrder","newSortOrder","newSortField","sorted","Campaign","showContents","setShowContents","assignedUserName","colSpan","Campaigns","getCDeskCampaignSortBy","getCDeskCampaignSortOrder","setSortBy","summaryHeader","MobileCampaign","MobileCampaigns","dialogPaper","dateTimePickerWrapper","dateTimePicker","publishInfo","unscheduleButton","cancelSaveButtonsWrapper","ScheduleDialog","isPublishable","senderMailLocal","isSchedule","setIsSchedule","setDate","minTime","milliseconds","handleUnschedule","mailTooltipTitle","datetime","StaticDatePicker","disablePast","localeText","toolbarTitle","componentsProps","StaticTimePicker","components","LeftArrowButton","RightArrowButton","AlarmOffIcon","getCDeskContentIsPublishable","getCDeskShowScheduleDialog","TestMailDialog","sender","onDispatch","setRecipient","validateEmail","handleDispatch","test","getCmRequestRunning","getCDeskShowTestMailDialog","actionsContainer","scheduleIcon","setContentIsPublishable","onNavigationChange","parse","onPublishNow","sendTestMailValid","otsTooltipTitle","saveEmailIsValid","saveOtsIsValid","saveMailTooltipTitle","getCDeskContentEditTabView","changeContentEditTabView","unlockContentStart","RecipientsList","openRecipientsBrowser","maxRecipients","withOpenAllLink","hideOnEmpty","maxRecip","showOtherRecipients","displayedRecipients","pl","pr","setRecipientBrowserOpen","DistributionLists","selectedDistributionLists","showAll","setShowAll","displayedDistributionList","dlist","distributionList","dl","handleDeleteList","distributionLists","getCDeskContentFormSelectedDistributionLists","recipientsHeader","RecipientsSelection","distributionListSearchQuery","setDistributionListSearchQuery","sdl","changeType","selectedRecipients","flat","searchable","externalPublication","newOne","selectedOptions","selectedContacts","dlOptionStyle","partiallySelected","reason","renderOption","suffix","getDlOptionLabel","renderTags","getCDeskDistributionListSearchQuery","getCDeskContentFormFilteredDistributionLists","iframeRef","iframe","contentWindow","scrollHeight","scrolling","limitContainer","usageLimitLabel","alignSelf","Overview","emailsSendLimit","emailsSendUsage","usageLimitDisplay","percentage","isMax","showWarning","fieldIsValid","hasRecipients","_AlertTitle","Recipients","removeRecipient","renderRemove","ClearIcon","headerName","valueGetter","distributionName","renderCell","renderView","sortable","DataGrid","hideFooter","disableRowSelectionOnClick","columnHeaderSortIconLabel","columnMenuLabel","columnMenuSortAsc","columnMenuSortDesc","columnMenuUnsort","columnMenuFilter","columnMenuHideColumn","columnMenuManageColumns","columnsManagementSearchTitle","columnsManagementNoColumns","columnsManagementShowHideAllText","columnsManagementReset","filterPanelDeleteIconLabel","filterPanelLogicOperator","filterPanelOperator","filterPanelColumns","filterPanelInputLabel","filterPanelInputPlaceholder","filterOperatorContains","filterOperatorEquals","filterOperatorStartsWith","filterOperatorEndsWith","filterOperatorIsEmpty","filterOperatorIsNotEmpty","filterOperatorIsAnyOf","getCDeskContentFormDataFilteredRecipients","fetchRecipientContactStart","ClearAllConfirmDialog","closeDialog","handleCloseDialog","getCDeskShowRecipientsClearAllConfirmDialog","RecipientsBrowser","openClearAllConfirmDialog","getCDeskRecipientBrowserOpen","getCDeskRecipientBrowserQuery","avatarStep","warnClass","avatarWarnClass","requiredLabel","contentsLoading","recipientsLabel","recipientsSize","emailTabs","otsTabs","warnIcon","showWarnIcon","Avatar","autocompleteContainer","newCampaignButton","textWrap","CampaignSelection","updateContent","updateCampaignFormData","openClosedCampaignDialog","translateCampaignName","initialCampaign","selectedCampaign","setSelectedCampaign","sortedOptions","setSortedOptions","noCampaingOption","setNoCampaignOption","selectedNoCampaign","setSelectedNoCampaign","noCampaign","selectedOption","category","localeCompare","ClosedCampaignDialog","closeClosedCampaignDialog","resetCampaignForm","saveCampaign","setStatus","setEndDate","getCDeskShowClosedCampaignDialog","saveCampaignStart","formField","fetchDistributionLists","senderDomain","allowedDomains","sd","region","basicInformation","senderDetails","domainRegion","emailSubject","TemplateConfirmDialog","closeConfirmDialog","forceLoadDesign","handleChangeTemplate","getCDeskTemplateConfirmDialogOpen","getCDeskTemplateDesign","TemplatePreviewDialog","closePreviewDialog","getCDeskTemplatePreviewDialogOpen","_props","titleContainer","templateContainer","aspectRatio","newTemplateButton","addIcon","lastRow","newTemplateLabel","Template","singleRequestRunning","publicTemplates","hasMorePublicTemplates","privateTemplates","hasMorePrivateTemplates","openConfirmDialog","openPreviewDialog","hasPublicTemplates","parentDivRef","setScale","scaleCalculated","setScaleCalculated","calculateScale","offsetWidth","handleOpenConfirmDialog","renderTemplates","TabIndicatorProps","wrap","Waypoint","onEnter","onEnterWaypoint","getETLibraryFetchAllRequestRunning","getETLibraryPublicTemplates","getETLibraryPrivateTemplates","Templates","signature","env","forceLoadDesignStop","loadBlank","_params","isInitialLoad","scriptUrl","UnlayerEmailEditor","getCDeskEmailEditorForceLoadDesign","getStage","Editor","storageLabel","StorageLimit","calcPercentage","mediaTypeLabel","SelectMedia","getCDeskAttachmentsMediaType","changeAttachmentsMediaType","titleLabel","darken","infoLabel","StorageWarning","WarningAmberIcon","uploadButtonInnerContent","fileSizeHint","UploadMedia","UploadedMediaSingleFileSizeLimit","PdfMedia","mediaFile","renderTextLayer","ArrowCircleLeftIcon","ArrowCircleRightIcon","borderWidth","MediaActions","isPdf","openImagePreviewDialog","allowedDocumentMimeTypes","innerContainer","pdfContainer","imageContainer","imageListItem","tooltipInfo","fileNameLabel","uploadMediaLabel","statusBar","spacerListItem","spacerItem","uploadListItem","uploadListItemBar","FilesGallery","srcSort","srcFilter","mimeTypeFilter","totalAttachmentsLimit","totalAttachmentsSizeLimit","uploadDisabled","forceLoadAll","attachmentsMediaType","dimensions","setDimensions","imageDimensions","setImageDimensions","galleryColumns","newMediaFiles","mimeType","aIndex","bIndex","allowedTotalAttachments","offsetHeight","Image","isHovered","isSelected","isImage","renderOverlay","renderTooltip","DeleteFileDialog","mediaFileId","getCDeskAttachmentsDeleteDialogOpen","getCDeskAttachmentsDeleteMediaFileId","imagePreview","ImagePreviewDialog","imageSrc","closeImagePreviewDialog","PaperProps","getCDeskAttachmentsImagePreviewOpen","getCDeskAttachmentsImagePreviewSrc","campaignSelectionContainer","contentSelectionContainer","createButton","ChooseContent","otsBody","contentId","contentTitle","otsContent","setInputValue","isFirstRender","setIsFirstRender","isDirty","optionBody","sanitizedHtml","sanitizeHtml","allowedTags","allowedClasses","allowedAttributes","disallowedTagsMode","emailToOtsPlainText","handleNewButtonClick","handleInputChange","getCDeskContentDropdownOptions","fetchContentDropdownOptionsStart","undoDisabled","redoDisabled","dispatchCommand","UNDO_COMMAND","REDO_COMMAND","DropDownContext","DropDownItem","dropDownContext","Error","registerItem","DropDownItems","toolbarTrackerRef","dropDownRef","setItems","highlightedItem","setHighlightedItem","itemRef","contextValue","Provider","DropDown","buttonClassName","buttonIconClassName","stopCloseOnClickSelf","buttonRef","showDropDown","setShowDropDown","dropDown","scrollTop","pageYOffset","documentElement","scrollLeft","pageXOffset","innerWidth","contains","handleButtonPositionUpdate","newPosition","createPortal","blockTypeToBlockName","paragraph","ul","ol","blockType","capitalizeEach","string","strArray","adjustedBlockType","adjustedIconName","formatParagraph","$getSelection","$isRangeSelection","$setBlocksType","$createParagraphNode","formatOrderedList","INSERT_ORDERED_LIST_COMMAND","REMOVE_LIST_COMMAND","formatUnorderedList","INSERT_UNORDERED_LIST_COMMAND","isBold","isItalic","isUnderline","FORMAT_TEXT_COMMAND","FloatingLinkEditor","linkUrl","setLinkUrl","isEditMode","lastSelection","setLastSelection","editorRef","mouseDownRef","updateLinkEditor","node","getSelectedNode","parent","getParent","$isLinkNode","getURL","editorElem","nativeSelection","activeElement","rootElement","getRootElement","isCollapsed","anchorNode","domRange","getRangeAt","rect","inner","firstElementChild","setFloatingElemPosition","parentElement","removeUpdateListener","registerUpdateListener","editorState","read","removeCommandListener","registerCommand","SELECTION_CHANGE_COMMAND","COMMAND_PRIORITY_LOW","getEditorState","TOGGLE_LINK_COMMAND","onMouseDown","isLink","anchorElem","insertLink","ToolbarOptions","canUndo","canRedo","disableTextFormat","UndoRedo","enabled","TextFormat","TextStyle","LinkFormat","toolbarRef","useLexicalComposerContext","activeEditor","setActiveEditor","setCanUndo","setCanRedo","setBlockType","setIsLink","setIsBold","setIsItalic","setIsUnderline","setIsEditable","updateToolbar","getNode","getKey","$findMatchingParent","$isRootOrShadowRoot","getTopLevelElementOrThrow","elementKey","elementDOM","getElementByKey","hasFormat","$isListNode","parentList","$getNearestNodeOfType","ListNode","getTag","$isHeadingNode","getType","_payload","newEditor","COMMAND_PRIORITY_CRITICAL","mergeRegister","registerEditableListener","CAN_UNDO_COMMAND","CAN_REDO_COMMAND","StatePlugin","usePlainText","setEditorState","isFirstRenderEditor","setIsFirstRenderEditor","isUserInput","isHTMLMode","isHTML","importNodesAsHTML","importNodesAsPlainText","tag","_editorState","_editor","tags","isExport","$generateHtmlFromNodes","replaceHTMLEntities","OnChangePlugin","ignoreSelectionChange","MaxLengthPlugin","lastRestoredEditorState","registerNodeTransform","RootNode","rootNode","prevEditorState","prevTextContentSize","getTextContentSize","textContentSize","delCount","$restoreEditorState","trimTextContentFromAnchor","ExtendedLinkNode","LinkNode","static","__url","__key","exportDOM","super","createDOM","_config","removeAttribute","serializedNode","exportJSON","EmptyLinkPlugin","linkNode","getTextContent","textNode","$createTextNode","$getRoot","selectStart","StoryTextPlugin","KEY_ENTER_COMMAND","PASTE_COMMAND","clipboardData","getData","dom","DOMParser","parseFromString","lexicalNodes","$generateNodesFromDOM","processedNodes","listItemNodes","flattenListNodes","firstChild","getFirstChild","getChildren","getWritable","listNode","$createListNode","append","insertNodes","ContactTextPlugin","$createLineBreakNode","listItemChild","toggleFormat","getNextSibling","Placeholder","RichTextEditor","editorContainerStyle","editorStyle","editorInnerStyle","editorInputStyle","storyTextField","contactTextField","LexicalComposer","initialConfig","editorConfig","ToolbarPlugin","RichTextPlugin","contentEditable","ContentEditable","LexicalErrorBoundary","EditorRefPlugin","HistoryPlugin","LinkPlugin","ListPlugin","listitem","listitemChecked","listitemUnchecked","nested","olDepth","italic","underline","ExtendedParagraphNode","ParagraphNode","constructor","wrapElement","newElement","createElement","appendChild","ExtendedTextNode","TextNode","this","__stopTransform","__text","nodeText","nodeFormat","getFormat","setFormat","getStyle","createTextNode","textContent","fragment","createDocumentFragment","adjustFormat","anyFormattingFixesDone","innerHTML","DocumentFragment","setDetail","detail","setMode","setStopTransform","stopTransform","getDetail","getMode","getStopTransform","isSimpleText","__type","__mode","stop","ExtendedAutoLinkNode","AutoLinkNode","ExtendedListNode","__listType","__start","ExtendedListItemNode","ListItemNode","__value","__checked","EditorTheme","readOnly","nodes","LineBreakNode","with","contentContainer","itemTitle","OtsGuidelinesDialog","_Zoom","guidelinesItem","LightbulbRoundedIcon","ContactEmergencyRoundedIcon","ImageRoundedIcon","HealthAndSafetyRoundedIcon","ReportOffRoundedIcon","textGuidelineContainer","textEditorInnerStyle","contactEditorInnerStyle","sectionLabel","imageInfoContainer","warningContainer","warningIcon","OtsEditor","guidelinesDialogOpen","setGuidelinesDialogOpen","textFirstRender","contactFirstRender","emailExtractImageLinks","showAllImages","setShowAllImages","storyTextAllowedTags","contactTextAllowedTags","updatedText","removeEmptyRootParagraph","removeInvalidTagsForOts","newBody","plainText","removeHtmlTags","handleGuidelinedialogClose","outerContainer","navigationContainer","getCDeskShowEditContentDialog","ContentsEditBlockDialog","lockDate","lockedBy","getLocker","getLockDate","lockedAt","getCDeskShowBlockedContentEditDialog","TagChip","px","ContactTags","pb","CHANNELS","tiktok","linkedin","instagram","youtube","threads","other","SmIcon","ContactChannels","pictureMask","ContactImage","itemsAlignCenter","ContactProfile","states","onAdd","country","unsubscribed","PrimaryButton","infoBox","ContactInfo","stripDossier","TopicChip","ContactTopics","mediaTopics","topicsWithNames","LanguageChip","ContactLanguages","contactLanguages","languagesWithNames","MediaTypeChip","ContactMediaTypes","typesWithNames","ContactSupplier","supplier","supplierChipColor","ContactDetailsDialog","onEdit","getCmContactDialogOpen","getCmSelectedContact","getAllStaticCountries","getStaticStates","getAllStaticMediaTopics","getAllStaticMediaTypes","getAllStaticLanguages","isContentDeskSubmodule","openContactEditDialog","regularExpressions","linkedinUrl","twitterUrl","facebookUrl","threadsUrl","tiktokUrl","instagramUrl","youtubeUrl","otherUrl","allowedChannels","isValidSocialMediaUrl","checkAllUrls","filterChannelUrls","caption","EditContactProfile","rowSpacing","handlePictureDelete","EditContactTags","tagOptions","filtered","isNew","clearOnBlur","selectOnFocus","limitTags","numberField","WebkitAppearance","MozAppearance","EditContactInfo","statesByCountry","EditContactChannels","EditDialogActions","EditContactTopics","topicIds","topicsOptions","EditContactLanguages","onPreferredLanguageChange","languageIds","languageOptions","preferredLanguageValue","handlePreferredLanguageChange","EditContactMediaTypes","mediaTypeIds","ContactEditDialog","onTagChange","onTopicChange","onLanguageChange","onMediaTypeChange","validName","validateFields","invalidSocialMedia","validatedList","getCmFormData","getCmContactEditDialogOpen","getCmContactEditDialogMode","getCmTags","noteWrapper","noteInfo","noteInfoAndActions","addActionIcon","dateNameDivider","closeSaveActionsWrapper","confirmButton","cancelButton","ContentNotesDialog","userId","userFirstName","userLastName","isViewOnly","currentNotes","setCurrentNotes","editMode","createdBy","createdByAccount","toISOString","lastValue","closeContentNotesDialog","renderNoteActions","note","_n","handleCancelClick","handleEditClick","handleDeleteClick","renderNoteDate","account","renderNoteAuthor","maxRows","handleNoteChange","getCDeskShowContentNotesDialog","getUserId","getUserFirstName","getUserLastName","getCDeskContents","getCDeskContentSortBy","getCDeskContentSortOrder","MobileContent","MobileContents","filtersContainer","newFilterAndOperatorActions","applyAndRemoveActions","filterRow","operatorToggleForm","operatorToggle","buttonIcon","invalidFilter","slider","MultiFilters","currentFilters","fieldOptions","onApply","comparisonOptions","getPosition","setIndex","setOperator","initialFilter","setFilters","validFilter","validFilters","matchingOption","firstValue","secondValue","handleNumberValueChange","prevFilters","handleEnumValueChange","renderValueInput","handleTextValueChange","valueLabelFormat","handleDateValueChange","MenuListProps","handleFiltersClose","handleRemoveAllFilters","_ToggleButtonGroup","exclusive","_ToggleButton","invalidFilterClass","handleRemoveFilter","handleFilterFieldChange","fieldOption","isBoolean","handleComparisonChange","handleAddFilter","AddOutlinedIcon","handleApplyFilters","CampaignsFilters","searchCampaigns","setCampaignFilters","handleOnApply","getCDeskContentFilters","searchCampaignsStart","ContentsFilters","searchContents","searchContentsStart","ContentsCampaignsTab","campaignsLoading","changeContentsCampaignsTabView","getCDeskContentsCampaignsTabView","ContentsCampaignsTabs","calcRate","y","Number","isNaN","isInteger","toFixed","kpiWrapper","engagement","engagementLabel","headlineDivider","Email","isTotalEmpty","clickToOpenRate","uniqueClicked","uniqueOpened","clickThroughRate","delivered","unsubscribeRate","undeliveredRate","undelivered","loadOrShowData","opened","clicked","getCDeskStatisticsRequestRunning","k","OtsPressRelease","hit","SwitchToSearchPoolButton","News","rootWrapper","headlineWrapper","StatisticsData","showEarnedStats","onAccuracyChange","accuracy","setAccuracy","onMouseUp","earnedMediaAccuracy","fetchStatisticsStart","CollapsableRow","_KeyboardArrowUp","_KeyboardArrowDown","deliveryStatusMessage","_Info","eventsActions","selectField","RecipientsTable","onEventsDownload","filterBy","setFilterBy","useMediaQuery","filteredData","filterData","typeFilterSettings","handleDownloadEvents","getCDeskDownloadEmailEventsLoading","downloadEmailEventsStart","overflowWrap","closeIcon","editButton","breadcrumbLink","recipientsChipParagraph","otsHotline","otsHotlineTitle","price","excludeVat","phoneIcon","ContentView","statisticsData","resetEvents","recipientsView","setRecipientsView","isDesktop","otsPrice","showEditButton","showStatistics","OtsStatuses","combinedRecipientData","_Breadcrumbs","ArrowBackIcon","renderEmailInfos","LocalPhoneIcon","renderMainView","getCDeskStatistics","contentsAndCampaignsContainer","seeAllButtonMobile","ContensCampaignsOverview","Link","to","OldContentEditDialog","ContentsCampaignsOverview","mobileContentContainer","closeButtonContainer","black","continueButton","leftContainer","rightContainer","mobileImageContainer","priceInfoContainer","priceDiffer","naLogoContainer","naLogo","OtsWelcomeDialog","otsWelcomeMessage","priceInfo","handleContinue","getCDeskShowOtsWelcomeDialog","closeOtsWelcomeDialog","OtsSuccessDialog","selectedContent","getCDeskShowOtsSuccessDialog","closeOtsSuccessDialog","OtsErrorDialog","ErrorOutlineIcon","getCDeskShowOtsErrorDialog","closeOtsErrorDialog","activeFilterListContainer","centerMessageContainer","leftColumn","ContentDesk","isContentLoading","calendarContents","calendarCampaigns","fetchKpi","setLimit","refreshContentsStatusStart","stopRefreshContentsStatus","ContentHeader","getCDeskCalendarCampaigns","paginationContainer","mobilePaginationContainer","mobilePaginationBar","ContentCampaignsPagination","page","pageName","pageSize","setPageSize","labelId","_Pagination","getCDeskCampaignPage","getCDeskCampaignLimit","CampaignsPagination","getCDeskContentPage","getCDeskContentLimit","ContentsPagination","newButtonsContainer","ContentsCampaignsShowAll","getCmSearchBarLabel","getCmSearchRunning","getCmSelectedQueryType","tagsIcon","hasTags","openTagsDialog","getCmHasTags","publicationCell","arrowColumn","first_name","last_name","ContactsSortbar","selectAllContacts","personIcon","listsChip","ContactsItem","onListsClick","UnsubscribeOutlinedIcon","PersonOutlineOutlinedIcon","handleDistributionListsClick","getCmListData","ImportHelpDialog","onDownloadTemplate","DownloadIcon","job_title","dossier","picture","address","phone","fax","external_publication","linkedin_url","twitter_url","facebook_url","threads_url","tiktok_url","instagram_url","youtube_url","other_url","contacts_languages","preferred_language_id","sheetName","isTemplate","getCmImportHelpDialogOpen","closeImportHelpDialog","downloadContactsExcelStart","pagination","progressWrapper","Contacts","hasSearchQueries","showUnsubscribed","onPageChange","toggleUnsubscribed","fetchContacts","setExpanded","handleToggle","showFirstButton","showLastButton","getCmContacts","getCmContactPage","getCmContactsTotal","getCmContactsSearchRunning","getCmContactSearchQueries","getCmShowUnsubscribed","setContactsPage","toggleContactsShowUnsubscribed","fetchContactsStart","DistributionListsSortbar","listSortBy","DistributionListsDelete","distObject","deleteDistributionListStart","DistributionListsFilter","isActiveFilter","FilterAltOffIcon","FilterAltIcon","getCmDistributionListContactsSearchQueries","addDistributionListContactFilter","removeDistributionListContactFilter","listIcon","DistributionListItem","onDownload","getCmSelectedLists","openDistributionListEditDialog","selectDistributionList","downloadDistributionListStart","plusColumn","distListsLimit","getCmDistributionLists","getCmDistributionListPage","getCmListsTotal","getCmDistributionListsSearchRunning","getCmDistributionListSearchQueries","getCDeskPlan","setDistributionListsPage","ContactDeleteDialog","contactData","getCmContactDeleteDialogOpen","getCmContactsToDelete","TagRenameDialog","running","onCancel","tagName","setTagName","setDisabled","tagId","getCmTagRenameDialogOpen","TagDeleteDialog","selectedTag","setSelectedTag","handleConfirm","getCmTagDeleteDialogOpen","hover","TagSortbar","StyledTableCell","tagsSortBy","StyledTableRow","TagList","onRenameClick","rowsPerPage","setRowsPerPage","renderTagRow","NewspaperOutlinedIcon","handleOpenRenameDialog","RenameIcon","_TablePagination","handleChangePage","newPage","onRowsPerPageChange","labelRowsPerPage","TagsDialog","getCmTagsDialogOpen","getCmSelectedTagType","getCmDistributionListCreateDialogOpen","getCmDistributionListsSearch","getCmDistributionListSearchRunning","ContactsListItem","removed","setRemoved","removeContactFromListStart","DistributionListEditDialog","newListName","changed","setChanged","onListChange","getCmDistributionListEditDialogOpen","closeDistributionListEditDialog","updateDistributionListStart","updateDistributionListFormData","DistributionListTable","renderDistributionListRow","listId","DistributionListViewDialog","getCmDistributionListViewDialogOpen","SelectedDistributionListsTable","DistributionListMergeDialog","onMerge","uniqueContactIds","limitExceeded","handleMergeClick","getCmDistributionListMergeDialogOpen","getCmActiveFilters","getCmFiltersCollapsed","browseButton","UploadContacts","autoCreateDistributionList","autoAddToExistingList","onFileUpload","onHelpClick","onNewListCheckboxClick","onAddToListCheckboxClick","onChangeFormData","onSelectList","selectedList","setSelectedList","userLanguage","handleNewListCheckboxChange","handleAddToListCheckboxChange","BackupIcon","getCmContactsUploadDialogOpen","getCmAutoCreateDistributionList","getCmAutoAddToExistingList","closeContactsUploadDialog","uploadContactsStart","openImportHelpDialog","setAutoCreateDistributionList","setAutoAddToExistingList","setDistributionList","EmailExistingDialog","getCmEmailExistingDialogOpen","closeEmailExistingDialog","failedContactsContainer","excelButton","successRow","failRow","infoRow","amber","UploadResultDialog","createDistributionList","addToExistingDistributionList","onExcelDownload","totalUploaded","totalFailed","getCmUploadResultDialogOpen","getCmUploadResult","closeUploadResultDialog","snackbar","snackbarContent","SelectedContactsBar","dialogOpen","onClear","_Snackbar","_SnackbarContent","getCmContactDialogsOpen","clearListData","openDistributionListCreateDialog","openContactDeleteDialog","elevatedSnackbar","SelectedDistributionListsBar","contactsBarOpen","openDistributionListMergeDialog","clearSelectedLists","ContactManagement","onImportClick","onCreateListClick","contentDeskComponents","handeCreateListClick","socialMediaContainer","blurredContainer","WebkitFilter","BlurredSocialHandles","journalistContainer","journalistInfoWrapper","journalistAddress","journalistActions","statsLabel","avatarContainer","journalistNameWrapper","drillDownButton","avatarLoaderWrapper","breakPoint","influenceScoreWrapper","Journalist","journalist","importResult","onAddToDistributionListClick","drillDownEntity","drillDown","isLimitedFunctionality","openDrillDownDialog","setDrillDownEntity","onDrillDownClick","setDrillDownFiltersForm","avatarLoaded","setAvatarLoaded","city","influenceScore","outlet","identityId","personId","isImported","addToDistListButton","stringAvatar","splitName","handleOnAvatarLoad","handleOnAvatarError","handleDrillDown","_ReadMore","_Place","_Check","_Add","_Insights","outletContainer","outletInfoWrapper","outletAddress","outletActions","outletNameWrapper","Outlet","site","outletId","articleMainContainer","articleInnerContainer","articlesInfoWrapper","articlesAddress","articlesActions","relatedArticleContainer","relatedArticleInfoContainer","relatedArticleImageContainer","imageLoaderWrapper","relatedArticleDateContainer","articleImage","imageFailedToLoad","articleNameWrapper","Article","article","hideButton","imageHidden","setImageHidden","imageLoaded","setImageLoaded","relatedArticles","relatedArticle","contactType","currentArticle","ResultsPagination","resultsTab","resultsFilters","drillDownFilters","onResultsFilterChange","onDrillDownFilterChange","onSearchJournalists","onSearchOutlets","onSearchArticles","onDrillDownJournalists","onDrillDownOutlets","onDrillDownArticles","onFilterChange","handleOnSearch","previousCursor","handlePrevPage","handleNextPage","_NavigateBefore","_NavigateNext","getAnewstipFiltersData","getAnewstipDrillDownFilters","getDrillDownEntity","getIsLimitedFunctionality","Pagination","facetFilters","filterButtons","Facets","filtersFormData","resetPaginationFilter","openedFacetValue","setOpenedFacetValue","categoryFilters","facets","isChecked","facet","selectedFacets","renderFacetSelect","facetFilter","renderValue","handleSelectChange","newFacetsFilters","handleOnFacetSelectOpen","currentFacetFilter","handleApplyFacetFilters","renderFacetOptions","handleResetFacetFilters","_Cached","getResultsTab","getAnewstipData","filterButton","filterMenu","filterMenuOpen","handleFilterClose","flexWrapper","resultsActions","resultsMainContainer","resultsInnerContainer","resultWrapper","selectAndAddAll","loaderContainer","noCheckbox","checkboxHidden","Result","selectedResults","importRequestRunning","journalistsSearchRequestRunning","outletsSearchRequestRunning","articlesSearchRequestRunning","setSelectedResults","imported","filteredIds","hideSelect","handleResultSelected","selectedUpdated","handleSelectAllResults","onSearch","renderAddToDistListButton","sortFilters","renderLoader","renderSortingSwitch","_ArrowDownward","_ArrowUpward","ent","getAnewstipImportResult","getAnewstipSelectedData","getJournalistsSearchRequestRunning","getOutletsSearchRequestRunning","getArticlesSearchRequestRunning","getAnewstipImportRequestRunning","PrArticle","topicChips","drillDownHistoryFilter","drillDownNavigation","DrillDownDialog","activeTab","journalistsDrillDownRequestRunning","outletsDrillDownRequestRunning","articlesDrillDownRequestRunning","drillDownHistory","switchTab","toggleTopic","onDrillDownHistory","onlyOneTopicActive","currentDrillDownIndex","drillDownHistoryFilters","handleToggleTopic","renderDrillDownHistory","filtersHistory","handleDrillDownHistory","disableBackClick","TabContext","TabList","TabPanel","getAnewstipDrillDownData","getShowDrillDownDialog","getDrillDownTab","getJournalistsDrillDownRequestRunning","getOutletsDrillDownRequestRunning","getArticlesDrillDownRequestRunning","getAnewstipDrillDownTopics","getAnewstipDrillDownHistory","resultsContainer","Results","journalists","outlets","articles","isNavigationLocked","switchResultsTab","totalJournalistsCount","totalOutletsCount","renderTabLabel","hits","selectedTab","getAnewstipJournalists","getAnewstipOutlets","getAnewstipArticles","getIsNavigationLocked","fullScreenSearchForm","resultsScreenSearchForm","fullScreenSimpleSearchContainer","fullScreenSimpleSearchInput","resultsScreenSimpleSearchInput","simpleSearchIconButton","fullScreenAdvancedSearchContainer","fullScreenSwitchTypeButton","resultsScreenSwitchTypeButton","staggeredListItem","fullScreenAdvancedSearchInputs","resultsScreenAdvancedSearchInputs","fullScreenFormSectionHeader","searchButtonWrapper","searchTooltip","searchQueryWrapper","Search","statics","searchFormData","isSimpleSearch","suggest","onSearchChange","switchSearchType","onSuggest","compSize","formError","setFormError","jobTitle","outletName","filteredStatesByCountry","formattedStatesList","normalize","normalizedElement","otherElement","outletSuggestionsList","titleSuggestionsList","isAdvancedSearchFormValid","handleSearchChange","handleSuggestions","keywords","handleOnEnter","renderSwitchTypeButton","_ManageSearch","_Search","_ref6","getAnewstipStatics","getAnewstipSearchData","getAnewstipIsSimpleSearch","getAnewstipCombinedSearchRequestRunning","getAnewstipSuggest","getIsInitialSearch","ContactCard","contactMediaTypes","cl","DuplicateContactItem","onReplace","onKeep","existingContact","getAnewstipReplaceRequestRunning","replaceContactStart","keepContact","DuplicateContactsDialog","withNext","onNext","duplicates","disableSpacing","getDuplicateContactsDialogOpen","getAnewstipImportWithDistributionLists","getAnewstipImporContactsForDistributionLists","getAnewstipDistributionListContactDialogOpen","addContactsToDistributionListStart","facetsLoading","Anewstip","hasStatics","staticsRequestRunning","isInitialSearch","fetchStatics","getAnewstipHasStatics","getAnewstipStaticsRequestRunning","getAnewstipSearchRequestRunning","InfoDialog","getAllowedDomainsInfoDialogOpen","cell","wordWrap","verifiedIcon","unverifiedIcon","domainName","mailgunInfo","tableTitle","tableLayout","StatusDialog","contentRef","sendingRecords","trackingRecords","getHost","record","buildRecordsForExport","records","maxValueLength","labelLength","leftString","repeat","centerString","rightString","buildValueSeparator","renderTable","WarningAmberOutlinedIcon","onExportClick","download","getAllowedDomainsStatusDialogOpen","getAllowedDomainsRequestRunning","getAllowedDomainFormData","getAllowedDomainStatus","confirmIcon","cancelIcon","deleteRow","AllowedDomains","newDomain","newDomainRegion","newSenderDomain","deleteMode","defaultRegionByTld","defaultDomainIds","onCreate","onCreateDefault","onRefresh","onNewDomainChange","onNewDomainRegionChange","onNewSenderDomainChange","toggleDeleteMode","setFormData","openInfoDialog","openStatusDialog","fetchStatus","onConfigUpdate","onConfigChange","openRow","setOpenRow","allAllowedDomains","configDomain","configSenderEmailDomain","domainRegionOptions","getDomainRegionOptions","showDefaultDomains","domainFound","isValidNewName","isValidNewSenderName","isSenderDomainDeleteDisabled","senderDomains","isDefaultDomain","isExistingDomain","isExistingSenderDomain","renderStatus","isDomainActionTaken","handleOpenTracking","openTracking","updateType","handleClickTracking","clickTracking","handleVerify","RefreshIcon","handleDomainStatus","ArticleIcon","handleDeleteDomain","handleOnNewSenderDomain","newSenderDomains","chipIndex","handleDeleteSenderDomain","getDefaultDomain","tld","exec","getDefaultDomainByTld","getAllowedDomains","getAllowedDomainsQuickSearchQuery","getAllowedDomainsNewAllowedDomain","getAllowedDomainsNewAllowedDomainRegion","getAllowedDomainsNewAllowedSenderDomain","getAllowedDomainsDeleteMode","getAllowedDomainsPage","getDefaultAllowedDomainIds","ContentDeskSettings","onConfigRefresh","senderEmail","emailIsValid","ccdPlanName","distributionListsLimit","distributionListsUsage","contactsPerDistListLimit","journalistsImportLimit","journalistsImportUsage","journalistsViewLimit","journalistsViewUsage","senderEmailDomainValue","accordionDetails","usage","saveDisabled","handleCDConfigRefresh","loaderPercentage","renderDetail","domainId","ccdAllowedDomainId","InputLabelProps","shrink","getCDeskUpdateRequestRunning","emailEditorContainer","saveIcon","saveBtn","TemplatesEditorDialog","isEditorDialogOpen","isSaveDialogOpen","closeEditorDialog","openSaveDialog","closeSaveDialog","isEditorEmpty","getETLibraryShowEditorDialog","getETLibraryShowSaveDialog","getETLibraryTemplateFormData","publicTemplatesSwitchTrack","templatesEditorContainer","EmailTemplatesLibrary","getSavedChartsSaving","deleteSavedChartStart","updateSavedChartStart","chartContainer","savedChartSummary","expiresAt","expired","SavedChart","autoLabel","isExpired","generateChartTopLabel","generateChartLabel","getSavedChartsChartData","SavedCharts","savedCharts","expandedId","setExpandedId","handleExpand","getSavedCharts","fetchSavedChartStart","mediaReviewLabel","ModuleName","mediaReviewIds","getMediaReviewIds","AppBarComp","getDispatchLogLoading","fetchDispatchLogStart","faIcon","attachments","faJs","PictureAsPdfIcon","TableViewIcon","CodeIcon","RecipientStats","openIds","User","dispatchTime","scheduledForActions","scheduledForInfo","problemIcon","dispatchTimeIcon","cancelled","failed","DispatchLog","onCancelClick","dispatchLog","setOpenIds","HistoryToggleOffIcon","ReportProblemRoundedIcon","renderDispatchTime","getDispatchLogData","cancelDispatchStart","unlockButton","WelcomeDialog","onUnlockClick","themaxWelcomeMessage","handleUnlockClick","getShowWelcomeDialog","getThemaxPaidFeatureStatus","closeWelcomeDialog","openOrderDialog","orderConditions","termsAndConditionsText","orderButton","mobilePriceContainer","priceContainer","OrderDialog","paidFeature","onOrderClick","termsAndConditionsLink","privacyLink","orderCondition1","setOrderCondition1","orderCondition2","setOrderCondition2","handleOrderCondition1","handleOrderCondition2","themaxOrderTitle","themaxOrderSubtitle","benfitsList","themaxPrice","themaxPriceExplaination","renderOrderConditions","product","terms","privacy","getShowOrderDialog","getOrderRequestRunning","getStaticPaidFeatureById","getWhitelabelTermsAndConditionsLink","getWhitelabelPrivacyLink","closeOrderDialog","orderPaidVersionStart","successMessage","OrderSuccessDialog","getShowOrderSuccessDialog","closeOrderSuccessDialog","getRequestRunning","executeThemaxSavedSearch","SavedSearchesActions","getThemaxSearchBarLabel","getThemaxSearchRequestRunning","getThemaxQueryType","selectedDate","getThemaxSelectedDate","getThemaxTabView","descale","scaledValue","markIndex","mark","applyFilters","selectedMediaTopics","setSelectedMediaTopics","reachFilter","setReachFilter","pageAveFilter","setPageAveFilter","reachFilterOptions","pageAveFilterOptions","getThemaxShowAdvancedSearch","getThemaxCountries","getThemaxFilters","getHasThemaxPaidVersion","getThemaxShowDateForm","renderSearchActions","OrderProgressContainer","alertContainer","dark","OrderProgress","alertTitle","alertContent","LockOpenIcon","getExecutedSavedSearch","getShowUpdateSavedSearchDialog","saveThemaxSavedSearchStart","hideUpdateSavedSearchDialog","UpdateDialog","executedSavedSearch","onSaveButtonClick","onNewButtonClick","onResetButtonClick","ReportIcon","showUpdateSavedSearchDialog","showEditSavedSearchDialog","resetThemaxSavedSearches","getActiveThemaxFilters","getActiveSelectedThemaxBooleans","getActiveThemaxFiltersCollapsed","getActiveThemaxNumberFilters","plansCount","publicationsCount","searchEditorialPlansRunning","searchPublicationsRunning","renderCalendarDisabled","LockIcon","renderTabLoading","renderTabButton","getThemaxData","getThemaxSearchEditorialPlansRunning","getThemaxSearchPublicationsRunning","changeTabView","lockIcon","LockedContentTooltip","blurredSection","blurredContent","BlurredSection","showLockIcon","hiddenText","isShownInDetailedView","cardActions","expandedCardContent","logoContainer","publicationLogoContainer","publicationSpacer","advertisingDeadlineContainer","releaseDateContainer","advDeadlineTypography","releaseDateTypography","EditorialPlansItem","bookmarkRequestRunningFor","editorialPlan","isFirst","onRemoveBookmark","onSetBookmark","openDetailedViewDialog","setSelectedEditorialPlan","isImageLoaded","setIsImageLoaded","setIsExpanded","toggleExpanded","publicationLogo","renderBookmarkedIcon","editorialPlanId","BookmarkBorderIcon","grootEditorialPlan","handleRemoveBookmark","grootEditorialPlanId","BookmarkIcon","handleSetBookmark","formatPublicationName","formatText","shortenedText","ArrowCircleUpIcon","ArrowCircleDownIcon","renderAdvertisingDeadline","advertisingDeadlineDate","renderReleaseDate","releaseDate","getThemaxBookmarkRequestRunningFor","themaxDeleteBookmarkStart","themaxSaveBookmarkStart","editorialPlansItemWrapper","renderEditorialPlan","EditorialPlans","editorialPlans","editorialPlansTotal","fetchMoreRequestRunning","onScrollBottom","moreEditorialPlans","getThemaxFetchMoreRequestRunning","themaxFetchMoreEditorialPlansStart","hasEditorialPlan","dividerContainer","cardAvatar","MediaProfilesItem","mediaProfile","fetchRelatedEditorialPlans","latestEditorialPlan","handlePfdClick","mediaProfilesItemWrapper","renderMediaProfile","MediaProfiles","mediaProfiles","mediaProfilesTotal","moreMediaProfiles","themaxFetchMorePublicationsStart","eventOptions","toggleGroup","toggleButton","Sidebar","setSorting","isMedium","calendarOption","handleOptionChange","sortType","setSelectedThemaxFilters","applyThemaxFilters","setThemaxSort","eventTitle","tooltipData","EventContent","formatDate","editorialDeadline","advertisingDeadline","printingDeadline","mapView","dayGridMonth","dayGridWeek","dayGridDay","Calendar","bookmarkedOnly","changeDate","fromDate","pageValue","pageType","observer","MutationObserver","mutationsList","_observer","mutation","adjustPopover","popoverElement","querySelector","viewHeight","popoverBody","viewportWidth","viewportHeight","innerHeight","popoverRect","overflowWidth","offsetLeft","overflowHeight","observe","childList","subtree","disconnect","plan","changeView","views","setThemaxLimit","setThemaxPage","freeVersionContainer","publicationInfoContainer","editorialPlansContainer","togglePublicationsLink","publicationPdfContainer","modeOfPublicationContainer","paidTitle","DetailedViewDialog","relatedEditorialPlans","relatedEditorialPlansTotal","setSelectedPublicationIds","publicationId","showAllPublications","setShowAllPublications","contrastText","renderPaidView","publicationInfo","publicationStreet","publicationPostalCode","publicationCity","publicationFile","editorialPhone","editorialEmail","editorialUrl","advertisingEmail","advertisingPhone","frequencyOfPublication","printrun","publisherName","publisherStreet","publisherPostalCode","publisherCity","publisherPhone","publisherPublicationsSize","publisherPublications","showAllLink","ep","getThemaxShowDetailedViewDialog","getSelectedEditorialPlan","closeDetailedViewDialog","themaxFetchMoreRelatedEditorialPlansStart","onSortChange","getThemaxEditorialPlansSortBy","getThemaxEditorialPlansSortOrder","updateThemaxSort","getThemaxPublicationsSortBy","getThemaxPublicationsSortOrder","buttonWrapper","exportButton","ExcelDownloadButton","excelExportRequestRunning","warnDialogOpen","setWarnDialogOpen","renderDownloadButton","_DownloadOutlined","getThemaxExcelExportRequestRunning","exportEditorialPlansStart","between","filtersAndSavedSearch","navWrapper","Themax","EditorialPlansSorting","PublicationsSorting","searchThemaxSavedSearchesStart","App","Testing","UserActivation","Login","ForgotPassword","ResetPassword","Fail","DirectLogin","Register","SavedDashboard","createCapSafeWrapper","inverse","useDispatch","hasCap","firstValidRoute","getFirstValidRoute","userHasGlobalSettings","userHasMailingList","userHasExternalAccounts","userHasSubscriptionsModule","userHasMediaReviewModule","userHasPinnboardsModule","userHasProfileMonitoringModule","userHasNewsPoolModule","userHasNewsModule","userHasAnalysisModule","userHasDashboardModule","userHasDarknetDashboard","userHasDarknetQueryManager","userHasDisabledSettings","userHasContentDeskModule","userHasContactManagementModule","userHasAnewstipModule","userHasSavedChartsModule","userHasDispatchLogModule","userHasThemaxModule","buildNewsViewRoutes","parentPath","authFunc","buildDefaultNewsViewRoutes","path","exact","mapRoutes","routes","route","newRoute","NewsRadar","userIsAuthenticated","DarknetDashboard","DarknetQueryManager","ThemaxSavedSearches","Routes","useRoutes","Root","store","Router","history","primaryColor","extraOptions","getDisplayName","recipientsPresent","handleRecipientsChange","getShowMailingListDialog","getSelectedMailingList","getSaveMailingListRunning","hideMailingListDialog","saveMailingListStart","updateSelectedMailingList","getShowRemoveMailingListDialog","deleteMailingListStart","hideRemoveMailingListDialog","previewMedia","sDocIcon","sDocMini","rss","deepOrange","xml","lastNews","clickable","RssFeedIcon","Info","lastNewsCustomTag","lastNewsDate","onEmptyCustomTag","onRunQueriesClick","FileDownloadIcon","PageviewIcon","Icon","classNameConfig","sDocType","Media","mediaProps","filterBySelectedCustomTag","openCustomTagInShoppingCart","showEmptyCustomTagDialog","runCustomTagQueries","copyIcon","Query","copy","assistant","queryInputContainer","runIt","CustomTagAssistantSafe","CustomTagAssistant","handleQueryAdd","handleQueryKeyUp","handleQueryDeleteClick","getSelectedCustomTag","setSelectedCustomTag","customTagColor","RssFormControlLabel","XmlFormControlLabel","JsonFormControlLabel","CustomTagAssistantComp","ExportDeprecationWarning","module","setPreviewUrl","handleCheckboxChange","rssEnabled","jsonEnabled","xmlEnabled","getCustomTagGroupsData","getShowCustomTagDialog","hideCustomTagDialog","saveCustomTagStart","setUploadedPhoto","searchResultsHint","grouped","onGroupedToggle","filterValue","setFilterValue","filterCustomTags","filteredCustomTags","customTagGroup","take","getGroupedAssignableCustomTags","toggleGroupedAssignableCustomTags","getSelectedMediaReviewNewsItem","getRemoveMediaReviewNewsDeleting","getShowRemoveNewsDialog","removeNewsFromMediaReviewStart","hideRemoveNewsDialog","noHitsPaper","getTotalNewsCount","hasNotificationAlertsOn","hasNotifications","unreadCount","getNotifications","openDrawer","textContainer","unlockIconContainer","orderIconContainer","successImageContainer","OrderForm","ordering","benefits","unlockTitle","unlockSubtitle","unlockText","subscriptionInfo","showOrder","setShowOrder","isPending","benefit","getConfigOrderRequestRunning","onTraceClick","clickTrace","getAiSummariesPaidFeatureStatus","getShowEditSavedSearchDialog","hideEditSavedSearchDialog","asArray","colorsArray","colorKey","updateBodyBackgroundColor","defaultBackgroundColor","backgroundImageUrl","backgroundSize","updateBodyBackgroundImage","getAllStaticChannels","rgbColor","hexRgb","StructuredExportFormatFlags","endingWhitespaceOrNewline","stripped","stripHtml","skipHtmlDecoding","dumpLinkHrefsNearby","wrapHeads","wrapTails","copyElementContentToClipboard","elementId","createRange","selectNode","removeAllRanges","addRange","successful","execCommand","err","console","numberAbbreviations","thousand","million","billion","trillion","de","abr","rounded","anotherRound","roundPrecision","renderNumber","currency","Intl","NumberFormat","decimalLength","bytes","dm","sizes","log","parseFloat","exports","SUPPORTED_CONTENT_LANGUAGES","SUPPORTED_TEMPLATE_LANGUAGES","getTemplateLanguageOptions","webpackAsyncContext","req","__webpack_require__","Promise","resolve","all"],"sourceRoot":""}