Spotlight Social Media Feeds - Version 1.0

Version Description

(2022-04-19) =

Added - A feed creation wizard with use-case selection to cater the feed editing experience - A "Guides" page with links to useful articles and tutorials - New option to align the "Load more" and "Follow" buttons on the same row beneath the feed - Pages and posts with an embedded feed can be created directly from the "Embed" tab in the editor - A warning when the update schedule used to update the feeds does not exist - Feeds can now be exported to, and imported from, a file

Changed - Various visual improvements and fixes for the admin interface - Reduced the size and loading time for embedded feeds - Reduced the loading time for the admin app - Improved the feed editor's styles on mobile devices - Improved accessibility in the feed - Any "@" and "#" symbols in image alt texts are removed to aid those with screen readers - Focus styles in the feed only appear when focusing with a keyboard

Fixed - Video posts did not load their thumbnail on iOS - The album navigation arrows in the popup box were not focusable with keyboard navigation - All of the text on the page in the feed editor gets selected when using a color picker - The "Follow" button's text was not the same size in the header and footer of the feed - The padding for the "Follow" and "Load more" buttons did not adjust with text size

Download this release

Release Info

Developer Mekku
Plugin Icon 128x128 Spotlight Social Media Feeds
Version 1.0
Comparing to
See all releases

Code changes from version 0.10.3 to 1.0

Files changed (161) hide show
  1. core/Engine/Aggregator/FeedPostFilterProcessor.php +0 -22
  2. core/RestApi/EndPoints/Templates/GetTemplatesEndpoint.php +0 -31
  3. data/templates.json +432 -0
  4. data/use-cases.json +49 -0
  5. modules.all.php +7 -0
  6. modules.core.php +38 -0
  7. modules.php +0 -58
  8. modules/AnalyticsSurveyModule.php +48 -0
  9. modules/ConfigModule.php +4 -13
  10. modules/EngineModule.php +0 -3
  11. modules/LeaveReviewModule.php +60 -0
  12. modules/MigrationModule.php +0 -17
  13. modules/RestApiModule.php +9 -17
  14. modules/SecurityModule.php +4 -4
  15. modules/TemplatesModule.php +16 -38
  16. modules/UiModule.php +38 -4
  17. modules/UpdateCronModule.php +32 -0
  18. modules/UseCasesModule.php +36 -0
  19. modules/UserModule.php +57 -0
  20. plugin.json +1 -1
  21. plugin.php +2 -2
  22. readme.txt +99 -90
  23. {core → src/core}/Actions/AuthCallbackListener.php +0 -0
  24. {core → src/core}/Actions/CleanUpMediaAction.php +0 -0
  25. {core → src/core}/Actions/DeleteAllPostsAction.php +0 -0
  26. {core → src/core}/Actions/IgImageProxy.php +0 -0
  27. {core → src/core}/Actions/RefreshAccessTokensAction.php +0 -0
  28. {core → src/core}/Actions/RenderShortcode.php +0 -0
  29. {core → src/core}/Actions/UpdateAccountsAction.php +0 -0
  30. {core → src/core}/Actions/UpdateFeedsAction.php +0 -0
  31. {core → src/core}/Config/ConfigEntry.php +0 -0
  32. {core → src/core}/Config/ConfigSet.php +0 -0
  33. src/core/Config/NullConfigEntry.php +22 -0
  34. {core → src/core}/Config/WpOption.php +29 -3
  35. {core → src/core}/CoreModule.php +1 -0
  36. {core → src/core}/Di/ArrayExtension.php +0 -0
  37. {core → src/core}/Di/ArrayMergeExtension.php +0 -0
  38. {core → src/core}/Di/ConfigService.php +0 -0
  39. {core → src/core}/Di/Container.php +0 -0
  40. {core → src/core}/Di/ContainerException.php +0 -0
  41. {core → src/core}/Di/EndPointService.php +0 -0
  42. src/core/Di/JsonFileService.php +32 -0
  43. {core → src/core}/Di/NotFoundException.php +0 -0
  44. {core → src/core}/Di/OverrideExtension.php +0 -0
  45. {core → src/core}/Engine/Aggregator/CustomMediaPreProcessor.php +0 -0
  46. {core → src/core}/Engine/Aggregator/IgAggregationStrategy.php +15 -1
  47. {core → src/core}/Engine/Aggregator/SortProcessor.php +0 -0
  48. {core → src/core}/Engine/Converter/IgConversionStrategy.php +0 -0
  49. {core → src/core}/Engine/Data/Feed/StoryFeed.php +0 -0
  50. {core → src/core}/Engine/Data/Item/MediaChild.php +0 -0
  51. {core → src/core}/Engine/Data/Item/MediaComment.php +0 -0
  52. {core → src/core}/Engine/Data/Item/MediaItem.php +0 -0
  53. {core → src/core}/Engine/Data/Item/MediaProductType.php +0 -0
  54. {core → src/core}/Engine/Data/Item/MediaType.php +0 -0
  55. {core → src/core}/Engine/Data/Source/HashtagSource.php +0 -0
  56. {core → src/core}/Engine/Data/Source/StorySource.php +0 -0
  57. {core → src/core}/Engine/Data/Source/TaggedUserSource.php +0 -0
  58. {core → src/core}/Engine/Data/Source/UserSource.php +0 -0
  59. {core → src/core}/Engine/DbOptionMarker.php +0 -0
  60. {core → src/core}/Engine/DbTransientMarker.php +0 -0
  61. {core → src/core}/Engine/Fetcher/AccountPostsCatalog.php +0 -0
  62. {core → src/core}/Engine/Fetcher/CompositeCatalog.php +0 -0
  63. {core → src/core}/Engine/Fetcher/IgFetchStrategy.php +0 -0
  64. {core → src/core}/Engine/Fetcher/IgPostsCatalog.php +0 -0
  65. {core → src/core}/Engine/Fetcher/NullCatalog.php +0 -0
  66. {core → src/core}/Engine/IgPostStore.php +0 -0
  67. {core → src/core}/Engine/Importer/IgImportStrategy.php +0 -0
  68. {core → src/core}/Engine/Importer/WpCronScheduler.php +0 -0
  69. {core → src/core}/Engine/Store/ThumbnailRecipe.php +0 -0
  70. {core → src/core}/Engine/Store/ThumbnailStore.php +0 -0
  71. {core → src/core}/Feeds/Feed.php +0 -0
  72. {core → src/core}/Feeds/FeedManager.php +0 -0
  73. {core → src/core}/Feeds/FeedTemplate.php +0 -0
  74. {core → src/core}/Feeds/FeedWidget.php +0 -0
  75. {core → src/core}/Feeds/Preview/FeedPreviewProvider.php +0 -0
  76. {core → src/core}/Feeds/Templates/FeedTemplatesProvider.php +0 -0
  77. {core → src/core}/IgApi/AccessToken.php +0 -0
  78. {core → src/core}/IgApi/IgAccount.php +0 -0
  79. {core → src/core}/IgApi/IgApiClient.php +0 -0
  80. {core → src/core}/IgApi/IgApiUtils.php +0 -0
  81. {core → src/core}/IgApi/IgBasicApiClient.php +0 -0
  82. {core → src/core}/IgApi/IgComment.php +0 -0
  83. {core → src/core}/IgApi/IgGraphApiClient.php +0 -0
  84. {core → src/core}/IgApi/IgMedia.php +0 -0
  85. {core → src/core}/IgApi/IgUser.php +0 -0
  86. {core → src/core}/MediaStore/IgCachedMedia.php +0 -0
  87. {core → src/core}/MediaStore/MediaSource.php +0 -0
  88. {core → src/core}/Module.php +0 -0
  89. {core → src/core}/ModuleInterface.php +0 -0
  90. {core → src/core}/Notifications/NewsNotificationProvider.php +0 -0
  91. {core → src/core}/Notifications/Notification.php +0 -0
  92. {core → src/core}/Notifications/NotificationProvider.php +0 -0
  93. {core → src/core}/Notifications/NotificationStore.php +0 -0
  94. {core → src/core}/Plugin.php +8 -3
  95. {core → src/core}/PostTypes/AccountPostType.php +0 -0
  96. {core → src/core}/PostTypes/CustomMedia.php +0 -0
  97. {core → src/core}/PostTypes/FeedPostType.php +0 -0
  98. {core → src/core}/PostTypes/MediaPostType.php +0 -0
  99. {core → src/core}/PrefixingModule.php +0 -0
  100. {core → src/core}/RestApi/Auth/AuthUserCapability.php +0 -0
  101. {core → src/core}/RestApi/Auth/AuthVerifyToken.php +0 -0
  102. {core → src/core}/RestApi/AuthGuardInterface.php +0 -0
  103. {core → src/core}/RestApi/EndPoint.php +0 -0
  104. {core → src/core}/RestApi/EndPointManager.php +0 -0
  105. {core → src/core}/RestApi/EndPoints/AbstractEndpointHandler.php +0 -0
  106. {core → src/core}/RestApi/EndPoints/Accounts/ConnectAccountEndPoint.php +0 -0
  107. {core → src/core}/RestApi/EndPoints/Accounts/CustomPosts/AddCustomMediaEndPoint.php +0 -0
  108. {core → src/core}/RestApi/EndPoints/Accounts/CustomPosts/DeleteCustomMediaEndPoint.php +0 -0
  109. {core → src/core}/RestApi/EndPoints/Accounts/CustomPosts/GetCustomMediaEndPoint.php +0 -0
  110. {core → src/core}/RestApi/EndPoints/Accounts/CustomPosts/UpdateCustomMediaEndPoint.php +0 -0
  111. {core → src/core}/RestApi/EndPoints/Accounts/DeleteAccountEndPoint.php +0 -0
  112. {core → src/core}/RestApi/EndPoints/Accounts/DeleteAccountMediaEndpoint.php +0 -0
  113. {core → src/core}/RestApi/EndPoints/Accounts/GetAccessTokenEndPoint.php +0 -0
  114. {core → src/core}/RestApi/EndPoints/Accounts/GetAccountsEndPoint.php +0 -0
  115. {core → src/core}/RestApi/EndPoints/Accounts/UpdateAccountEndPoint.php +0 -0
  116. src/core/RestApi/EndPoints/Analytics/SubmitSurveyEndPoint.php +57 -0
  117. src/core/RestApi/EndPoints/Embed/CreatePostEndPoint.php +100 -0
  118. {core → src/core}/RestApi/EndPoints/Feeds/DeleteFeedsEndpoint.php +0 -0
  119. {core → src/core}/RestApi/EndPoints/Feeds/GetFeedsEndpoint.php +0 -0
  120. {core → src/core}/RestApi/EndPoints/Feeds/SaveFeedsEndpoint.php +0 -0
  121. {core → src/core}/RestApi/EndPoints/Media/GetFeedMediaEndPoint.php +0 -0
  122. {core → src/core}/RestApi/EndPoints/Media/GetMediaEndPoint.php +0 -0
  123. {core → src/core}/RestApi/EndPoints/Media/ImportMediaEndPoint.php +0 -0
  124. {core → src/core}/RestApi/EndPoints/Notifications/GetNotificationsEndPoint.php +0 -0
  125. src/core/RestApi/EndPoints/Promotion/GetPostNiceUrlEndPoint.php +23 -0
  126. {core → src/core}/RestApi/EndPoints/Promotion/SearchPostsEndpoint.php +1 -0
  127. src/core/RestApi/EndPoints/Review/LeaveReviewEndPoint.php +27 -0
  128. {core → src/core}/RestApi/EndPoints/Settings/GetSettingsEndpoint.php +0 -0
  129. {core → src/core}/RestApi/EndPoints/Settings/SaveSettingsEndpoint.php +0 -0
  130. {core → src/core}/RestApi/EndPoints/Tools/CleanUpMediaEndpoint.php +0 -0
  131. {core → src/core}/RestApi/EndPoints/Tools/ClearCacheEndpoint.php +0 -0
  132. {core → src/core}/RestApi/EndPoints/Tools/ClearCacheFeedEndpoint.php +0 -0
  133. {core → src/core}/RestApi/Transformers/AccountTransformer.php +0 -0
  134. {core → src/core}/RestApi/Transformers/CamelCaseTransformer.php +0 -0
  135. {core → src/core}/RestApi/Transformers/CompositeTransformer.php +0 -0
  136. {core → src/core}/RestApi/Transformers/FeedsTransformer.php +0 -0
  137. {core → src/core}/RestApi/Transformers/MediaTransformer.php +0 -0
  138. {core → src/core}/RestApi/Transformers/RecursiveToArrayTransformer.php +0 -0
  139. {core → src/core}/SaaS/SaasResourceFetcher.php +0 -0
  140. {core → src/core}/Server.php +1 -1
  141. src/core/TierModule.php +25 -0
  142. {core → src/core}/Utils/Arrays.php +0 -0
  143. {core → src/core}/Utils/DbQueries.php +0 -0
  144. {core → src/core}/Utils/Files.php +0 -0
  145. {core → src/core}/Utils/Functions.php +0 -0
  146. {core → src/core}/Utils/Strings.php +0 -0
  147. {core → src/core}/Wp/AdminPage.php +0 -0
  148. {core → src/core}/Wp/Asset.php +0 -0
  149. {core → src/core}/Wp/CronJob.php +0 -0
  150. {core → src/core}/Wp/Menu.php +0 -0
  151. {core → src/core}/Wp/MetaField.php +0 -0
  152. {core → src/core}/Wp/Notice.php +0 -0
  153. {core → src/core}/Wp/NoticesManager.php +0 -0
  154. {core → src/core}/Wp/PostType.php +0 -0
  155. {core → src/core}/Wp/RestRequest.php +0 -0
  156. {core → src/core}/Wp/Shortcode.php +0 -0
  157. {core → src/core}/Wp/SubMenu.php +0 -0
  158. {core → src/core}/Wp/Transient.php +0 -0
  159. ui/dist/admin-app.js +1 -1
  160. ui/dist/admin-common.js +1 -1
  161. ui/dist/admin-vendors.js +0 -1
core/Engine/Aggregator/FeedPostFilterProcessor.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
-
3
- declare(strict_types=1);
4
-
5
- namespace RebelCode\Spotlight\Instagram\Engine\Aggregator;
6
-
7
- use RebelCode\Iris\Aggregator\ItemProcessor;
8
- use RebelCode\Iris\Data\Feed;
9
- use RebelCode\Iris\Store\Query;
10
- use RebelCode\Spotlight\Instagram\Engine\Data\Feed\StoryFeed;
11
- use RebelCode\Spotlight\Instagram\Engine\Data\Item\MediaItem;
12
- use RebelCode\Spotlight\Instagram\Utils\Functions;
13
-
14
- class FeedPostFilterProcessor implements ItemProcessor
15
- {
16
- public function process(array &$items, Feed $feed, Query $query): void
17
- {
18
- if ($feed->get('mediaType') !== StoryFeed::MEDIA_TYPE) {
19
- $items = array_filter($items, Functions::not([MediaItem::class, 'isStory']));
20
- }
21
- }
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
core/RestApi/EndPoints/Templates/GetTemplatesEndpoint.php DELETED
@@ -1,31 +0,0 @@
1
- <?php
2
-
3
- declare(strict_types=1);
4
-
5
- namespace RebelCode\Spotlight\Instagram\RestApi\EndPoints\Templates;
6
-
7
- use RebelCode\Spotlight\Instagram\RestApi\EndPoints\AbstractEndpointHandler;
8
- use RebelCode\Spotlight\Instagram\SaaS\SaasResourceFetcher;
9
- use WP_REST_Request;
10
- use WP_REST_Response;
11
-
12
- class GetTemplatesEndpoint extends AbstractEndpointHandler
13
- {
14
- /** @var SaasResourceFetcher */
15
- protected $provider;
16
-
17
- /**
18
- * Constructor.
19
- *
20
- * @param SaasResourceFetcher $provider
21
- */
22
- public function __construct(SaasResourceFetcher $provider)
23
- {
24
- $this->provider = $provider;
25
- }
26
-
27
- protected function handle(WP_REST_Request $request)
28
- {
29
- return new WP_REST_Response($this->provider->get());
30
- }
31
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/templates.json ADDED
@@ -0,0 +1,432 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "sid": 276982,
4
+ "id": "classic",
5
+ "name": "Classic",
6
+ "desc": "The default Instagram feed",
7
+ "thumbnail": "https://spotlightwp.com/wp-content/uploads/2022/04/Classic-Template.png",
8
+ "date": 1623156166,
9
+ "tier": 0,
10
+ "keywords": [""],
11
+ "design": {
12
+ "layout": "grid",
13
+ "numColumns": {"desktop": 3},
14
+ "highlightFreq": {"desktop": 7},
15
+ "sliderNumScrollPosts": {"desktop": 1},
16
+ "sliderInfinite": true,
17
+ "sliderLoop": false,
18
+ "sliderArrowPos": {"desktop": "inside"},
19
+ "sliderArrowSize": {"desktop": 20},
20
+ "sliderArrowColor": {"r": 255, "b": 255, "g": 255, "a": 1},
21
+ "sliderArrowBgColor": {"r": 0, "b": 0, "g": 0, "a": 0.8},
22
+ "numPosts": {"desktop": 9},
23
+ "linkBehavior": {"desktop": "lightbox"},
24
+ "feedWidth": {"desktop": ""},
25
+ "feedHeight": {"desktop": ""},
26
+ "feedPadding": {"desktop": 24, "tablet": 14, "phone": 10},
27
+ "imgPadding": {"desktop": 10, "tablet": 10, "phone": 6},
28
+ "textSize": {"desktop": "", "tablet": "", "phone": ""},
29
+ "bgColor": {"r": 255, "g": 255, "b": 255, "a": 1},
30
+ "hoverInfo": ["likes_comments", "insta_link"],
31
+ "textColorHover": {"r": 255, "g": 255, "b": 255, "a": 1},
32
+ "bgColorHover": {"r": 0, "g": 0, "b": 0, "a": 0.5},
33
+ "showHeader": {"desktop": true},
34
+ "headerInfo": {"desktop": ["profile_pic", "bio"]},
35
+ "headerAccount": 5,
36
+ "headerStyle": {"desktop": "normal", "phone": "normal"},
37
+ "headerTextSize": {"desktop": ""},
38
+ "headerPhotoSize": {"desktop": 50},
39
+ "headerTextColor": {"r": 0, "g": 0, "b": 0, "a": 1},
40
+ "headerBgColor": {"r": 255, "g": 255, "b": 255, "a": 0},
41
+ "headerPadding": {"desktop": 0, "phone": 0},
42
+ "customProfilePic": 0,
43
+ "customBioText": "",
44
+ "includeStories": false,
45
+ "storiesInterval": 5,
46
+ "showCaptions": {"desktop": false},
47
+ "captionMaxLength": {"desktop": 0},
48
+ "captionRemoveDots": false,
49
+ "captionSize": {"desktop": 0},
50
+ "captionColor": {"r": 0, "g": 0, "b": 0, "a": 1},
51
+ "showLikes": {"desktop": false},
52
+ "showComments": {"desktop": false},
53
+ "lcIconSize": {"desktop": 14},
54
+ "likesIconColor": {"r": 0, "g": 0, "b": 0, "a": 1},
55
+ "commentsIconColor": {"r": 0, "g": 0, "b": 0, "a": 1},
56
+ "lightboxShowSidebar": false,
57
+ "lightboxCtaStyle": "link",
58
+ "lightboxCtaDesign": {
59
+ "text": {"color": {"r": 0, "g": 0, "b": 0, "a": 1}, "align": "center"},
60
+ "bgColor": {"r": 230, "g": 230, "b": 230, "a": 1},
61
+ "border": {"radius": 3}
62
+ },
63
+ "numLightboxComments": 50,
64
+ "showLoadMoreBtn": {"desktop": true},
65
+ "loadMoreBtnDesign": {
66
+ "text": {"color": {"r": 35, "g": 143, "b": 181, "a": 1}, "align": "center"},
67
+ "border": {"radius": 3},
68
+ "bgColor": {"r": 41, "g": 167, "b": 210, "a": 0.1},
69
+ "margin": {"top": 0, "bottom": 0, "left": 0, "right": 0},
70
+ "onHover": {
71
+ "text": {"color": {"r": 255, "g": 255, "b": 255, "a": 1}},
72
+ "bgColor": {"r": 41, "g": 167, "b": 210, "a": 1}
73
+ }
74
+ },
75
+ "loadMoreBtnText": "Load More Posts",
76
+ "loadMoreBtnScroll": false,
77
+ "autoload": false,
78
+ "showFollowBtn": {"desktop": true},
79
+ "followBtnText": "Follow on Instagram",
80
+ "followBtnDesign": {
81
+ "text": {"color": {"r": 255, "g": 255, "b": 255, "a": 1}, "align": "center"},
82
+ "border": {"radius": 3},
83
+ "bgColor": {"r": 41, "g": 167, "b": 210, "a": 1},
84
+ "margin": {"top": 0, "bottom": 0, "left": 0, "right": 0},
85
+ "onHover": {
86
+ "text": {"color": {"r": 255, "g": 255, "b": 255, "a": 1}},
87
+ "bgColor": {"r": 35, "g": 142, "b": 181, "a": 1}
88
+ }
89
+ },
90
+ "followBtnLocation": {"desktop": "header", "phone": "bottom"}
91
+ }
92
+ },
93
+ {
94
+ "sid": 276997,
95
+ "id": "gallery",
96
+ "name": "Gallery",
97
+ "desc": "Clean and minimal",
98
+ "thumbnail": "https://spotlightwp.com/wp-content/uploads/2022/04/Gallery-Template.png",
99
+ "date": 1623156560,
100
+ "tier": 0,
101
+ "keywords": [""],
102
+ "design": {
103
+ "layout": "grid",
104
+ "numColumns": {"desktop": 5, "tablet": 4, "phone": 3},
105
+ "highlightFreq": {"desktop": 7},
106
+ "sliderNumScrollPosts": {"desktop": 1},
107
+ "sliderInfinite": true,
108
+ "sliderLoop": false,
109
+ "sliderArrowPos": {"desktop": "inside"},
110
+ "sliderArrowSize": {"desktop": 20},
111
+ "sliderArrowColor": {"r": 255, "b": 255, "g": 255, "a": 1},
112
+ "sliderArrowBgColor": {"r": 0, "b": 0, "g": 0, "a": 0.8},
113
+ "numPosts": {"desktop": 15, "tablet": 12, "phone": 9},
114
+ "linkBehavior": {"desktop": "lightbox"},
115
+ "feedWidth": {"desktop": ""},
116
+ "feedHeight": {"desktop": ""},
117
+ "feedPadding": {"desktop": 0, "tablet": 0, "phone": 0},
118
+ "imgPadding": {"desktop": 0, "tablet": 0, "phone": 0},
119
+ "textSize": {"desktop": "", "tablet": "", "phone": ""},
120
+ "bgColor": {"r": 255, "g": 255, "b": 255, "a": 0},
121
+ "hoverInfo": ["likes_comments", "insta_link"],
122
+ "textColorHover": {"r": 255, "g": 255, "b": 255, "a": 1},
123
+ "bgColorHover": {"r": 0, "g": 0, "b": 0, "a": 0.5},
124
+ "showHeader": {"desktop": false},
125
+ "headerInfo": {"desktop": ["profile_pic", "bio"]},
126
+ "headerAccount": 5,
127
+ "headerStyle": {"desktop": "normal", "phone": "centered"},
128
+ "headerTextSize": {"desktop": ""},
129
+ "headerPhotoSize": {"desktop": 50},
130
+ "headerTextColor": {"r": 0, "g": 0, "b": 0, "a": 1},
131
+ "headerBgColor": {"r": 255, "g": 255, "b": 255, "a": 1},
132
+ "headerPadding": {"desktop": 0},
133
+ "customProfilePic": 0,
134
+ "customBioText": "",
135
+ "includeStories": false,
136
+ "storiesInterval": 5,
137
+ "showCaptions": {"desktop": false},
138
+ "captionMaxLength": {"desktop": 0},
139
+ "captionRemoveDots": false,
140
+ "captionSize": {"desktop": 0},
141
+ "captionColor": {"r": 0, "g": 0, "b": 0, "a": 1},
142
+ "showLikes": {"desktop": false},
143
+ "showComments": {"desktop": false},
144
+ "lcIconSize": {"desktop": 14},
145
+ "likesIconColor": {"r": 0, "g": 0, "b": 0, "a": 1},
146
+ "commentsIconColor": {"r": 0, "g": 0, "b": 0, "a": 1},
147
+ "lightboxShowSidebar": false,
148
+ "lightboxCtaStyle": "link",
149
+ "lightboxCtaDesign": {
150
+ "text": {"color": {"r": 0, "g": 0, "b": 0, "a": 1}, "align": "center"},
151
+ "bgColor": {"r": 230, "g": 230, "b": 230, "a": 1},
152
+ "border": {"radius": 3}
153
+ },
154
+ "numLightboxComments": 50,
155
+ "showLoadMoreBtn": {"desktop": false},
156
+ "loadMoreBtnDesign": {
157
+ "text": {"color": {"r": 255, "g": 255, "b": 255, "a": 1}, "align": "center"},
158
+ "border": {"radius": 3},
159
+ "bgColor": {"r": 0, "g": 149, "b": 246, "a": 1},
160
+ "margin": {"top": 0, "bottom": 0, "left": 0, "right": 0},
161
+ "onHover": {
162
+ "text": {"color": {"r": 255, "g": 255, "b": 255, "a": 1}},
163
+ "bgColor": {"r": 0, "g": 129, "b": 203, "a": 1}
164
+ }
165
+ },
166
+ "loadMoreBtnText": "Load more",
167
+ "loadMoreBtnScroll": true,
168
+ "autoload": false,
169
+ "showFollowBtn": {"desktop": false, "phone": false, "tablet": false},
170
+ "followBtnText": "Follow on Instagram",
171
+ "followBtnDesign": {
172
+ "text": {"color": {"r": 255, "g": 255, "b": 255, "a": 1}, "align": "center"},
173
+ "border": {"radius": 3},
174
+ "bgColor": {"r": 0, "g": 149, "b": 246, "a": 1},
175
+ "margin": {"top": 0, "bottom": 0, "left": 0, "right": 0},
176
+ "onHover": {
177
+ "text": {"color": {"r": 255, "g": 255, "b": 255, "a": 1}},
178
+ "bgColor": {"r": 0, "g": 129, "b": 203, "a": 1}
179
+ }
180
+ },
181
+ "followBtnLocation": {"desktop": "header", "phone": "bottom"}
182
+ }
183
+ },
184
+ {
185
+ "sid": 276998,
186
+ "id": "solo",
187
+ "name": "Solo",
188
+ "desc": "Just the latest post",
189
+ "thumbnail": "https://spotlightwp.com/wp-content/uploads/2022/04/Solo-Template.png",
190
+ "date": 1623156588,
191
+ "tier": 0,
192
+ "keywords": [""],
193
+ "design": {
194
+ "layout": "grid",
195
+ "numColumns": {"desktop": 1},
196
+ "highlightFreq": {"desktop": 7},
197
+ "sliderNumScrollPosts": {"desktop": 1},
198
+ "sliderInfinite": true,
199
+ "sliderLoop": false,
200
+ "sliderArrowPos": {"desktop": "inside"},
201
+ "sliderArrowSize": {"desktop": 20},
202
+ "sliderArrowColor": {"r": 255, "b": 255, "g": 255, "a": 1},
203
+ "sliderArrowBgColor": {"r": 0, "b": 0, "g": 0, "a": 0.8},
204
+ "numPosts": {"desktop": 1},
205
+ "linkBehavior": {"desktop": "lightbox"},
206
+ "feedWidth": {"desktop": ""},
207
+ "feedHeight": {"desktop": ""},
208
+ "feedPadding": {"desktop": 20, "tablet": 14, "phone": 10},
209
+ "imgPadding": {"desktop": 14, "tablet": 10, "phone": 6},
210
+ "textSize": {"desktop": "", "tablet": "", "phone": ""},
211
+ "bgColor": {"r": 255, "g": 255, "b": 255, "a": 1},
212
+ "hoverInfo": ["likes_comments", "insta_link"],
213
+ "textColorHover": {"r": 255, "g": 255, "b": 255, "a": 1},
214
+ "bgColorHover": {"r": 0, "g": 0, "b": 0, "a": 0.5},
215
+ "showHeader": {"desktop": true},
216
+ "headerInfo": {"desktop": ["profile_pic", "bio"]},
217
+ "headerAccount": 5,
218
+ "headerStyle": {"desktop": "normal", "phone": "normal"},
219
+ "headerTextSize": {"desktop": 16, "phone": 12},
220
+ "headerPhotoSize": {"desktop": 50},
221
+ "headerTextColor": {"r": 0, "g": 0, "b": 0, "a": 1},
222
+ "headerBgColor": {"r": 255, "g": 255, "b": 255, "a": 1},
223
+ "headerPadding": {"desktop": 0},
224
+ "customProfilePic": 0,
225
+ "customBioText": "",
226
+ "includeStories": false,
227
+ "storiesInterval": 5,
228
+ "showCaptions": {"desktop": false},
229
+ "captionMaxLength": {"desktop": 0},
230
+ "captionRemoveDots": false,
231
+ "captionSize": {"desktop": 0},
232
+ "captionColor": {"r": 0, "g": 0, "b": 0, "a": 1},
233
+ "showLikes": {"desktop": false},
234
+ "showComments": {"desktop": false},
235
+ "lcIconSize": {"desktop": 14},
236
+ "likesIconColor": {"r": 0, "g": 0, "b": 0, "a": 1},
237
+ "commentsIconColor": {"r": 0, "g": 0, "b": 0, "a": 1},
238
+ "lightboxShowSidebar": false,
239
+ "lightboxCtaStyle": "link",
240
+ "lightboxCtaDesign": {
241
+ "text": {"color": {"r": 0, "g": 0, "b": 0, "a": 1}, "align": "center"},
242
+ "bgColor": {"r": 230, "g": 230, "b": 230, "a": 1},
243
+ "border": {"radius": 3}
244
+ },
245
+ "numLightboxComments": 50,
246
+ "showLoadMoreBtn": {"desktop": false},
247
+ "loadMoreBtnDesign": {
248
+ "text": {"color": {"r": 255, "g": 255, "b": 255, "a": 1}, "align": "center"},
249
+ "border": {"radius": 3},
250
+ "bgColor": {"r": 0, "g": 149, "b": 246, "a": 1},
251
+ "margin": {"top": 0, "bottom": 0, "left": 0, "right": 0},
252
+ "onHover": {
253
+ "text": {"color": {"r": 255, "g": 255, "b": 255, "a": 1}},
254
+ "bgColor": {"r": 0, "g": 129, "b": 203, "a": 1}
255
+ }
256
+ },
257
+ "loadMoreBtnText": "Load more",
258
+ "loadMoreBtnScroll": true,
259
+ "autoload": false,
260
+ "showFollowBtn": {"desktop": true},
261
+ "followBtnText": "Follow Me!",
262
+ "followBtnDesign": {
263
+ "text": {"color": {"r": 255, "g": 255, "b": 255, "a": 1}, "align": "center"},
264
+ "border": {"radius": 3},
265
+ "bgColor": {"r": 41, "g": 167, "b": 210, "a": 1},
266
+ "margin": {"top": 0, "bottom": 0, "left": 0, "right": 0},
267
+ "onHover": {
268
+ "text": {"color": {"r": 255, "g": 255, "b": 255, "a": 1}},
269
+ "bgColor": {"r": 33, "g": 141, "b": 179, "a": 1}
270
+ }
271
+ },
272
+ "followBtnLocation": {"desktop": "header", "phone": "header"}
273
+ }
274
+ },
275
+ {
276
+ "sid": 277001,
277
+ "id": "row",
278
+ "name": "Row",
279
+ "desc": "A visual separator",
280
+ "thumbnail": "https://spotlightwp.com/wp-content/uploads/2022/04/Row-Template.png",
281
+ "date": 1623156962,
282
+ "tier": 0,
283
+ "keywords": [""],
284
+ "design": {
285
+ "layout": "grid",
286
+ "numColumns": {"desktop": 6, "phone": 3, "tablet": 5},
287
+ "highlightFreq": {"desktop": 7},
288
+ "sliderNumScrollPosts": {"desktop": 1},
289
+ "sliderInfinite": true,
290
+ "sliderLoop": false,
291
+ "sliderArrowPos": {"desktop": "inside"},
292
+ "sliderArrowSize": {"desktop": 20},
293
+ "sliderArrowColor": {"r": 255, "b": 255, "g": 255, "a": 1},
294
+ "sliderArrowBgColor": {"r": 0, "b": 0, "g": 0, "a": 0.8},
295
+ "numPosts": {"desktop": 6, "phone": 3, "tablet": 5},
296
+ "linkBehavior": {"desktop": "lightbox"},
297
+ "feedWidth": {"desktop": 0},
298
+ "feedHeight": {"desktop": 0},
299
+ "feedPadding": {"desktop": 0, "tablet": 0, "phone": 0},
300
+ "imgPadding": {"desktop": 0, "tablet": 0, "phone": 0},
301
+ "textSize": {"desktop": 0, "tablet": 0, "phone": 0},
302
+ "bgColor": {"r": 255, "g": 255, "b": 255, "a": 1},
303
+ "hoverInfo": ["likes_comments", "insta_link", "date"],
304
+ "textColorHover": {"r": 255, "g": 255, "b": 255, "a": 1},
305
+ "bgColorHover": {"r": 0, "g": 0, "b": 0, "a": 0.5},
306
+ "showHeader": {"desktop": false},
307
+ "headerInfo": {"desktop": ["profile_pic", "bio"]},
308
+ "headerAccount": null,
309
+ "headerStyle": {"desktop": "normal", "phone": "centered"},
310
+ "headerTextSize": {"desktop": 0},
311
+ "headerPhotoSize": {"desktop": 50},
312
+ "headerTextColor": {"r": 0, "g": 0, "b": 0, "a": 1},
313
+ "headerBgColor": {"r": 255, "g": 255, "b": 255, "a": 1},
314
+ "headerPadding": {"desktop": 0},
315
+ "customProfilePic": "",
316
+ "customBioText": "",
317
+ "includeStories": false,
318
+ "storiesInterval": 5,
319
+ "showCaptions": {"desktop": false, "tablet": false},
320
+ "captionMaxLength": {"desktop": 0},
321
+ "captionRemoveDots": false,
322
+ "captionSize": {"desktop": 0},
323
+ "captionColor": {"r": 0, "g": 0, "b": 0, "a": 1},
324
+ "showLikes": {"desktop": false, "tablet": false},
325
+ "showComments": {"desktop": false, "tablet": false},
326
+ "lcIconSize": {"desktop": 14},
327
+ "likesIconColor": {"r": 0, "g": 0, "b": 0, "a": 1},
328
+ "commentsIconColor": {"r": 0, "g": 0, "b": 0, "a": 1},
329
+ "lightboxShowSidebar": false,
330
+ "lightboxCtaStyle": "link",
331
+ "lightboxCtaDesign": {
332
+ "text": {"color": {"r": 0, "g": 0, "b": 0, "a": 1}, "align": "center"},
333
+ "bgColor": {"r": 230, "g": 230, "b": 230, "a": 1},
334
+ "border": {"radius": 3}
335
+ },
336
+ "numLightboxComments": 50,
337
+ "showLoadMoreBtn": {"desktop": false},
338
+ "loadMoreBtnDesign": {
339
+ "text": {"color": {"r": 255, "g": 255, "b": 255, "a": 1}, "align": "center"},
340
+ "border": {"radius": 3},
341
+ "bgColor": {"r": 0, "g": 149, "b": 246, "a": 1},
342
+ "margin": {"top": 0, "bottom": 0, "left": 0, "right": 0},
343
+ "onHover": {
344
+ "text": {"color": {"r": 255, "g": 255, "b": 255, "a": 1}},
345
+ "bgColor": {"r": 0, "g": 129, "b": 203, "a": 1}
346
+ }
347
+ },
348
+ "loadMoreBtnText": "Load more",
349
+ "loadMoreBtnScroll": true,
350
+ "autoload": false,
351
+ "showFollowBtn": {"desktop": false, "phone": false},
352
+ "followBtnText": "Follow on Instagram",
353
+ "followBtnDesign": {
354
+ "text": {"color": {"r": 255, "g": 255, "b": 255, "a": 1}, "align": "center"},
355
+ "border": {"radius": 3},
356
+ "bgColor": {"r": 0, "g": 149, "b": 246, "a": 1},
357
+ "margin": {"top": 0, "bottom": 0, "left": 0, "right": 0},
358
+ "onHover": {
359
+ "text": {"color": {"r": 255, "g": 255, "b": 255, "a": 1}},
360
+ "bgColor": {"r": 0, "g": 129, "b": 203, "a": 1}
361
+ }
362
+ },
363
+ "followBtnLocation": {"desktop": "header", "phone": "bottom"}
364
+ }
365
+ },
366
+ {
367
+ "sid": 277009,
368
+ "id": "linkInBio",
369
+ "name": "Link in Bio",
370
+ "desc": "The Linktree look",
371
+ "thumbnail": "https://spotlightwp.com/wp-content/uploads/2022/04/Link-in-BIo-Template.png",
372
+ "date": 1623157287,
373
+ "tier": 10,
374
+ "keywords": [""],
375
+ "design": {}
376
+ },
377
+ {
378
+ "sid": 277004,
379
+ "id": "montage",
380
+ "name": "Montage",
381
+ "desc": "A beautiful illustration",
382
+ "thumbnail": "https://spotlightwp.com/wp-content/uploads/2022/04/Montage-Template.png",
383
+ "date": 1623157023,
384
+ "tier": 10,
385
+ "keywords": [""],
386
+ "design": {}
387
+ },
388
+ {
389
+ "sid": 277006,
390
+ "id": "carousel",
391
+ "name": "Carousel",
392
+ "desc": "A slider for everyone",
393
+ "thumbnail": "https://spotlightwp.com/wp-content/uploads/2022/04/Carousel-Template.png",
394
+ "date": 1623157181,
395
+ "tier": 10,
396
+ "keywords": [""],
397
+ "design": {}
398
+ },
399
+ {
400
+ "sid": 277007,
401
+ "id": "brick",
402
+ "name": "Brick",
403
+ "desc": "The masonry look",
404
+ "thumbnail": "https://spotlightwp.com/wp-content/uploads/2022/04/Brick-Template.png",
405
+ "date": 1623157216,
406
+ "tier": 10,
407
+ "keywords": [""],
408
+ "design": {}
409
+ },
410
+ {
411
+ "sid": 277008,
412
+ "id": "slideshow",
413
+ "name": "Slideshow",
414
+ "desc": "A single post slider",
415
+ "thumbnail": "https://spotlightwp.com/wp-content/uploads/2022/04/Slideshow-Template.png",
416
+ "date": 1623157243,
417
+ "tier": 10,
418
+ "keywords": [""],
419
+ "design": {}
420
+ },
421
+ {
422
+ "sid": 277010,
423
+ "id": "tile",
424
+ "name": "Tile",
425
+ "desc": "Be unique and stand out",
426
+ "thumbnail": "https://spotlightwp.com/wp-content/uploads/2022/04/Tile-Template.png",
427
+ "date": 1623157322,
428
+ "tier": 10,
429
+ "keywords": [""],
430
+ "design": {}
431
+ }
432
+ ]
data/use-cases.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "accounts",
4
+ "name": "My Instagram posts",
5
+ "desc": "Show my photos and videos",
6
+ "tier": 0,
7
+ "img": "https://spotlightwp.com/wp-content/uploads/2022/04/Feed_2x.png"
8
+ },
9
+ {
10
+ "id": "tagged",
11
+ "name": "My tagged posts",
12
+ "desc": "Show posts that I'm tagged in",
13
+ "tier": 20,
14
+ "img": "https://spotlightwp.com/wp-content/uploads/2022/04/Tagged-Feed_2x.png",
15
+ "link": "https://spotlightwp.com/tagged-post-feeds/"
16
+ },
17
+ {
18
+ "id": "hashtags",
19
+ "name": "Hashtag feed",
20
+ "desc": "Show posts from public hashtags",
21
+ "tier": 20,
22
+ "img": "https://spotlightwp.com/wp-content/uploads/2022/04/Hashtag-Feed_2x.png",
23
+ "link": "https://spotlightwp.com/instagram-hashtag-feeds/"
24
+ },
25
+ {
26
+ "id": "shoppable",
27
+ "name": "Shoppable feed",
28
+ "desc": "Increase my sales and conversions",
29
+ "tier": 20,
30
+ "img": "https://spotlightwp.com/wp-content/uploads/2022/04/Shoppable-Feed_2x.png",
31
+ "link": "https://spotlightwp.com/shoppable-instagram-feed-wordpress/"
32
+ },
33
+ {
34
+ "id": "linkInBio",
35
+ "name": "Link in Bio",
36
+ "desc": "Drive traffic to my website",
37
+ "tier": 20,
38
+ "img": "https://spotlightwp.com/wp-content/uploads/2022/04/Link-in-Bio_2x.png",
39
+ "link": "https://spotlightwp.com/link-in-bio/"
40
+ },
41
+ {
42
+ "id": "combined",
43
+ "name": "Combined feed",
44
+ "desc": "Combine various feed sources",
45
+ "tier": 20,
46
+ "img": "https://spotlightwp.com/wp-content/uploads/2022/04/Combined-Feed_2x.png",
47
+ "link": "https://spotlightwp.com/combined-instagram-feeds/"
48
+ }
49
+ ]
modules.all.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ use RebelCode\Spotlight\Instagram\Plugin ;
4
+ $modules = (require __DIR__ . '/modules.core.php');
5
+ // Filter the modules
6
+ $modules = apply_filters( Plugin::FILTER . '/modules', $modules );
7
+ return $modules;
modules.core.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace RebelCode\Spotlight\Instagram\Modules;
4
+
5
+ use RebelCode\Spotlight\Instagram\Modules\Dev\DevModule;
6
+
7
+ return [
8
+ 'wp' => new WordPressModule(),
9
+ 'admin' => new AdminModule(),
10
+ 'config' => new ConfigModule(),
11
+ 'ig' => new InstagramModule(),
12
+ 'engine' => new EngineModule(),
13
+ 'feeds' => new FeedsModule(),
14
+ 'templates' => new TemplatesModule(),
15
+ 'use_cases' => new UseCasesModule(),
16
+ 'preview' => new PreviewModule(),
17
+ 'accounts' => new AccountsModule(),
18
+ 'media' => new MediaModule(),
19
+ 'updater' => new UpdateCronModule(),
20
+ 'cleaner' => new CleanUpCronModule(),
21
+ 'token_refresher' => new TokenRefresherModule(),
22
+ 'rest_api' => new RestApiModule(),
23
+ 'server' => new ServerModule(),
24
+ 'ui' => new UiModule(),
25
+ 'shortcode' => new ShortcodeModule(),
26
+ 'wp_block' => new WpBlockModule(),
27
+ 'widget' => new WidgetModule(),
28
+ 'notifications' => new NotificationsModule(),
29
+ 'migrator' => new MigrationModule(),
30
+ 'saas' => new SaasModule(),
31
+ 'news' => new NewsModule(),
32
+ 'integrations/caching' => new CacheIntegrationsModule(),
33
+ 'security' => new SecurityModule(),
34
+ 'user' => new UserModule(),
35
+ 'analytics_survey' => new AnalyticsSurveyModule(),
36
+ 'leave_review' => new LeaveReviewModule(),
37
+ 'dev' => new DevModule(),
38
+ ];
modules.php DELETED
@@ -1,58 +0,0 @@
1
- <?php
2
-
3
- use RebelCode\Spotlight\Instagram\Modules\AccountsModule ;
4
- use RebelCode\Spotlight\Instagram\Modules\AdminModule ;
5
- use RebelCode\Spotlight\Instagram\Modules\CacheIntegrationsModule ;
6
- use RebelCode\Spotlight\Instagram\Modules\CleanUpCronModule ;
7
- use RebelCode\Spotlight\Instagram\Modules\ConfigModule ;
8
- use RebelCode\Spotlight\Instagram\Modules\Dev\DevModule ;
9
- use RebelCode\Spotlight\Instagram\Modules\EngineModule ;
10
- use RebelCode\Spotlight\Instagram\Modules\FeedsModule ;
11
- use RebelCode\Spotlight\Instagram\Modules\InstagramModule ;
12
- use RebelCode\Spotlight\Instagram\Modules\MediaModule ;
13
- use RebelCode\Spotlight\Instagram\Modules\MigrationModule ;
14
- use RebelCode\Spotlight\Instagram\Modules\NewsModule ;
15
- use RebelCode\Spotlight\Instagram\Modules\NotificationsModule ;
16
- use RebelCode\Spotlight\Instagram\Modules\PreviewModule ;
17
- use RebelCode\Spotlight\Instagram\Modules\RestApiModule ;
18
- use RebelCode\Spotlight\Instagram\Modules\SaasModule ;
19
- use RebelCode\Spotlight\Instagram\Modules\SecurityModule ;
20
- use RebelCode\Spotlight\Instagram\Modules\ServerModule ;
21
- use RebelCode\Spotlight\Instagram\Modules\ShitModule ;
22
- use RebelCode\Spotlight\Instagram\Modules\ShortcodeModule ;
23
- use RebelCode\Spotlight\Instagram\Modules\TemplatesModule ;
24
- use RebelCode\Spotlight\Instagram\Modules\TokenRefresherModule ;
25
- use RebelCode\Spotlight\Instagram\Modules\UiModule ;
26
- use RebelCode\Spotlight\Instagram\Modules\UpdateCronModule ;
27
- use RebelCode\Spotlight\Instagram\Modules\WidgetModule ;
28
- use RebelCode\Spotlight\Instagram\Modules\WordPressModule ;
29
- use RebelCode\Spotlight\Instagram\Modules\WpBlockModule ;
30
- $modules = [
31
- 'wp' => new WordPressModule(),
32
- 'admin' => new AdminModule(),
33
- 'config' => new ConfigModule(),
34
- 'ig' => new InstagramModule(),
35
- 'engine' => new EngineModule(),
36
- 'feeds' => new FeedsModule(),
37
- 'templates' => new TemplatesModule(),
38
- 'preview' => new PreviewModule(),
39
- 'accounts' => new AccountsModule(),
40
- 'media' => new MediaModule(),
41
- 'updater' => new UpdateCronModule(),
42
- 'cleaner' => new CleanUpCronModule(),
43
- 'token_refresher' => new TokenRefresherModule(),
44
- 'rest_api' => new RestApiModule(),
45
- 'server' => new ServerModule(),
46
- 'ui' => new UiModule(),
47
- 'shortcode' => new ShortcodeModule(),
48
- 'wp_block' => new WpBlockModule(),
49
- 'widget' => new WidgetModule(),
50
- 'notifications' => new NotificationsModule(),
51
- 'migrator' => new MigrationModule(),
52
- 'saas' => new SaasModule(),
53
- 'news' => new NewsModule(),
54
- 'integrations/caching' => new CacheIntegrationsModule(),
55
- 'security' => new SecurityModule(),
56
- 'dev' => new DevModule(),
57
- ];
58
- return $modules;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
modules/AnalyticsSurveyModule.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace RebelCode\Spotlight\Instagram\Modules;
4
+
5
+ use Dhii\Services\Extension;
6
+ use Dhii\Services\Factory;
7
+ use RebelCode\Spotlight\Instagram\Config\ConfigEntry;
8
+ use RebelCode\Spotlight\Instagram\Config\WpOption;
9
+ use RebelCode\Spotlight\Instagram\Di\ArrayExtension;
10
+ use RebelCode\Spotlight\Instagram\Di\EndPointService;
11
+ use RebelCode\Spotlight\Instagram\Module;
12
+ use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Analytics\SubmitSurveyEndPoint;
13
+ use RebelCode\WordPress\Http\WpClient;
14
+
15
+ class AnalyticsSurveyModule extends Module
16
+ {
17
+ public function getFactories(): array
18
+ {
19
+ return [
20
+ 'config/did_survey' => new Factory([], function () {
21
+ return new WpOption('sli_did_analytics_survey', false, false, WpOption::SANITIZE_BOOL);
22
+ }),
23
+ 'endpoint' => new EndPointService(
24
+ '/analytics/survey/?',
25
+ ['POST'],
26
+ SubmitSurveyEndPoint::class,
27
+ ['client', 'config/did_survey'],
28
+ '@rest_api/auth/user'
29
+ ),
30
+ 'client' => new Factory([], function () {
31
+ return WpClient::createDefault(null, ['timeout' => 10]);
32
+ }),
33
+ ];
34
+ }
35
+
36
+ public function getExtensions(): array
37
+ {
38
+ return [
39
+ 'ui/l10n/admin-common' => new Extension(['config/did_survey'], function ($l10n, ConfigEntry $didSurvey) {
40
+ $l10n['didAnalyticsSurvey'] = $didSurvey->getValue();
41
+ return $l10n;
42
+ }),
43
+ 'rest_api/endpoints' => new ArrayExtension([
44
+ 'endpoint'
45
+ ]),
46
+ ];
47
+ }
48
+ }
modules/ConfigModule.php CHANGED
@@ -7,6 +7,7 @@ use Dhii\Services\Factories\Value;
7
  use Dhii\Services\Factory;
8
  use Psr\Container\ContainerInterface;
9
  use RebelCode\Spotlight\Instagram\Config\ConfigSet;
 
10
  use RebelCode\Spotlight\Instagram\Config\WpOption;
11
  use RebelCode\Spotlight\Instagram\Module;
12
 
@@ -39,23 +40,13 @@ class ConfigModule extends Module
39
 
40
  // Entries for the config
41
  'entries' => new Value([
42
- static::PRELOAD_MEDIA => new WpOption('sli_preload_media', false),
43
  ]),
44
 
45
  // The callback used by the config set to create options that do not exist
46
- 'default' => new FuncService([], function ($key) {
47
- return new WpOption($key);
48
  }),
49
  ];
50
  }
51
-
52
- /**
53
- * @inheritDoc
54
- *
55
- * @since 0.1
56
- */
57
- public function getExtensions()
58
- {
59
- return [];
60
- }
61
  }
7
  use Dhii\Services\Factory;
8
  use Psr\Container\ContainerInterface;
9
  use RebelCode\Spotlight\Instagram\Config\ConfigSet;
10
+ use RebelCode\Spotlight\Instagram\Config\NullConfigEntry;
11
  use RebelCode\Spotlight\Instagram\Config\WpOption;
12
  use RebelCode\Spotlight\Instagram\Module;
13
 
40
 
41
  // Entries for the config
42
  'entries' => new Value([
43
+ static::PRELOAD_MEDIA => new WpOption('sli_preload_media', false, false, WpOption::SANITIZE_BOOL),
44
  ]),
45
 
46
  // The callback used by the config set to create options that do not exist
47
+ 'default' => new FuncService([], function () {
48
+ return new NullConfigEntry();
49
  }),
50
  ];
51
  }
 
 
 
 
 
 
 
 
 
 
52
  }
modules/EngineModule.php CHANGED
@@ -19,7 +19,6 @@ use RebelCode\Iris\Importer;
19
  use RebelCode\Spotlight\Instagram\Config\WpOption;
20
  use RebelCode\Spotlight\Instagram\Di\ArrayExtension;
21
  use RebelCode\Spotlight\Instagram\Engine\Aggregator\CustomMediaPreProcessor;
22
- use RebelCode\Spotlight\Instagram\Engine\Aggregator\FeedPostFilterProcessor;
23
  use RebelCode\Spotlight\Instagram\Engine\Aggregator\IgAggregationStrategy;
24
  use RebelCode\Spotlight\Instagram\Engine\Aggregator\SortProcessor;
25
  use RebelCode\Spotlight\Instagram\Engine\Converter\IgConversionStrategy;
@@ -120,13 +119,11 @@ class EngineModule extends Module
120
  'aggregator/pre_processors' => new ServiceList([
121
  'aggregator/processors/custom_media',
122
  'aggregator/processors/sorter',
123
- 'aggregator/processors/feed_post_filter',
124
  ]),
125
 
126
  'aggregator/post_processors' => new ServiceList([]),
127
 
128
  'aggregator/processors/custom_media' => new Constructor(CustomMediaPreProcessor::class),
129
- 'aggregator/processors/feed_post_filter' => new Constructor(FeedPostFilterProcessor::class),
130
  'aggregator/processors/sorter' => new Constructor(SortProcessor::class),
131
 
132
  //==========================================================================
19
  use RebelCode\Spotlight\Instagram\Config\WpOption;
20
  use RebelCode\Spotlight\Instagram\Di\ArrayExtension;
21
  use RebelCode\Spotlight\Instagram\Engine\Aggregator\CustomMediaPreProcessor;
 
22
  use RebelCode\Spotlight\Instagram\Engine\Aggregator\IgAggregationStrategy;
23
  use RebelCode\Spotlight\Instagram\Engine\Aggregator\SortProcessor;
24
  use RebelCode\Spotlight\Instagram\Engine\Converter\IgConversionStrategy;
119
  'aggregator/pre_processors' => new ServiceList([
120
  'aggregator/processors/custom_media',
121
  'aggregator/processors/sorter',
 
122
  ]),
123
 
124
  'aggregator/post_processors' => new ServiceList([]),
125
 
126
  'aggregator/processors/custom_media' => new Constructor(CustomMediaPreProcessor::class),
 
127
  'aggregator/processors/sorter' => new Constructor(SortProcessor::class),
128
 
129
  //==========================================================================
modules/LeaveReviewModule.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace RebelCode\Spotlight\Instagram\Modules;
4
+
5
+ use Dhii\Services\Extension;
6
+ use Dhii\Services\Factories\Value;
7
+ use Dhii\Services\Factory;
8
+ use RebelCode\Spotlight\Instagram\Config\ConfigEntry;
9
+ use RebelCode\Spotlight\Instagram\Config\WpOption;
10
+ use RebelCode\Spotlight\Instagram\Di\ArrayExtension;
11
+ use RebelCode\Spotlight\Instagram\Di\EndPointService;
12
+ use RebelCode\Spotlight\Instagram\Module;
13
+ use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Review\LeaveReviewEndPoint;
14
+
15
+ class LeaveReviewModule extends Module
16
+ {
17
+ /** @inerhitDoc */
18
+ public function getFactories(): array
19
+ {
20
+ return [
21
+ 'show_after' => new Value(14 * DAY_IN_SECONDS),
22
+ 'show_banner' => new Factory(
23
+ ['config/did_review', '@user/config/date_started', 'show_after'],
24
+ function (ConfigEntry $didReview, ConfigEntry $startDate, int $threshold) {
25
+ if ($didReview->getValue()) {
26
+ return false;
27
+ }
28
+
29
+ $timeSinceStart = time() - $startDate->getValue();
30
+
31
+ return $timeSinceStart >= $threshold;
32
+ }
33
+ ),
34
+ 'config/did_review' => new Factory([], function () {
35
+ return new WpOption('sli_did_review', false, false, WpOption::SANITIZE_BOOL);
36
+ }),
37
+ 'endpoint' => new EndPointService(
38
+ '/leave_review/?',
39
+ ['POST'],
40
+ LeaveReviewEndPoint::class,
41
+ ['config/did_review'],
42
+ '@rest_api/auth/user'
43
+ ),
44
+ ];
45
+ }
46
+
47
+ /** @inerhitDoc */
48
+ public function getExtensions(): array
49
+ {
50
+ return [
51
+ 'ui/l10n/admin-common' => new Extension(['show_banner'], function ($l10n, bool $showBanner) {
52
+ $l10n['showReviewBanner'] = $showBanner;
53
+ return $l10n;
54
+ }),
55
+ 'rest_api/endpoints' => new ArrayExtension([
56
+ 'endpoint'
57
+ ])
58
+ ];
59
+ }
60
+ }
modules/MigrationModule.php CHANGED
@@ -7,7 +7,6 @@ use Dhii\Services\Factories\Value;
7
  use Psr\Container\ContainerInterface;
8
  use RebelCode\Spotlight\Instagram\Config\ConfigEntry;
9
  use RebelCode\Spotlight\Instagram\Config\WpOption;
10
- use RebelCode\Spotlight\Instagram\Di\ArrayExtension;
11
  use RebelCode\Spotlight\Instagram\Module;
12
  use RebelCode\Spotlight\Instagram\Utils\Arrays;
13
  use RebelCode\Spotlight\Instagram\Wp\CronJob;
@@ -103,20 +102,4 @@ class MigrationModule extends Module
103
  ),
104
  ];
105
  }
106
-
107
- /**
108
- * @inheritDoc
109
- *
110
- * @since 0.4.1
111
- */
112
- public function getExtensions()
113
- {
114
- return [
115
- // Register the config entries into the config set
116
- 'config/entries' => new ArrayExtension([
117
- 'config/version',
118
- 'config/lock',
119
- ]),
120
- ];
121
- }
122
  }
7
  use Psr\Container\ContainerInterface;
8
  use RebelCode\Spotlight\Instagram\Config\ConfigEntry;
9
  use RebelCode\Spotlight\Instagram\Config\WpOption;
 
10
  use RebelCode\Spotlight\Instagram\Module;
11
  use RebelCode\Spotlight\Instagram\Utils\Arrays;
12
  use RebelCode\Spotlight\Instagram\Wp\CronJob;
102
  ),
103
  ];
104
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  }
modules/RestApiModule.php CHANGED
@@ -34,10 +34,10 @@ use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Feeds\SaveFeedsEndpoint;
34
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Media\GetMediaEndPoint;
35
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Media\ImportMediaEndPoint;
36
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Notifications\GetNotificationsEndPoint;
 
37
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Promotion\SearchPostsEndpoint;
38
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Settings\GetSettingsEndpoint;
39
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Settings\SaveSettingsEndpoint;
40
- use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Templates\GetTemplatesEndpoint;
41
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Tools\CleanUpMediaEndpoint;
42
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Tools\ClearCacheEndpoint;
43
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Tools\ClearCacheFeedEndpoint;
@@ -94,7 +94,7 @@ class RestApiModule extends Module
94
  'endpoints/media/feed',
95
  'endpoints/media/import',
96
  'endpoints/promotion/search_posts',
97
- 'endpoints/templates/get',
98
  'endpoints/settings/get',
99
  'endpoints/settings/patch',
100
  'endpoints/notifications/get',
@@ -379,21 +379,13 @@ class RestApiModule extends Module
379
  );
380
  }),
381
 
382
- //==========================================================================
383
- // TEMPLATES
384
- //==========================================================================
385
-
386
- // The endpoint for retrieving templates
387
- 'endpoints/templates/get' => new Factory(
388
- ['@templates/provider', 'auth/public'],
389
- function ($provider, $auth) {
390
- return new EndPoint(
391
- '/templates',
392
- ['GET'],
393
- new GetTemplatesEndpoint($provider),
394
- $auth
395
- );
396
- }
397
  ),
398
 
399
  //==========================================================================
34
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Media\GetMediaEndPoint;
35
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Media\ImportMediaEndPoint;
36
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Notifications\GetNotificationsEndPoint;
37
+ use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Promotion\GetPostNiceUrlEndPoint;
38
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Promotion\SearchPostsEndpoint;
39
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Settings\GetSettingsEndpoint;
40
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Settings\SaveSettingsEndpoint;
 
41
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Tools\CleanUpMediaEndpoint;
42
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Tools\ClearCacheEndpoint;
43
  use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Tools\ClearCacheFeedEndpoint;
94
  'endpoints/media/feed',
95
  'endpoints/media/import',
96
  'endpoints/promotion/search_posts',
97
+ 'endpoints/promotion/nice_url',
98
  'endpoints/settings/get',
99
  'endpoints/settings/patch',
100
  'endpoints/notifications/get',
379
  );
380
  }),
381
 
382
+ // The endpoint for getting the nice URLs for posts
383
+ 'endpoints/promotion/nice_url' => new EndPointService(
384
+ '/nice_url',
385
+ ['GET'],
386
+ GetPostNiceUrlEndPoint::class,
387
+ [],
388
+ 'auth/user'
 
 
 
 
 
 
 
 
389
  ),
390
 
391
  //==========================================================================
modules/SecurityModule.php CHANGED
@@ -80,11 +80,11 @@ class SecurityModule extends Module
80
  //==========================================================================
81
 
82
  'config/show_https_notice' => new Factory([], function () {
83
- return new WpOption('sli_show_https_notice', 0, true);
84
  }),
85
 
86
  'config/show_openssl_ext_notice' => new Factory([], function () {
87
- return new WpOption('sli_show_openssl_ext_notice', 0, true);
88
  }),
89
 
90
  //==========================================================================
@@ -95,8 +95,8 @@ class SecurityModule extends Module
95
  $isHttps = apply_filters('spotlight/security/is_https', wp_is_using_https());
96
  $hasOpenSsl = apply_filters('spotlight/security/has_openssl_ext', extension_loaded('openssl'));
97
 
98
- $cfg->get(static::CFG_SHOW_HTTPS_NOTICE)->setValue($isHttps ? 0 : 1);
99
- $cfg->get(static::CFG_SHOW_OPENSSL_NOTICE)->setValue($hasOpenSsl ? 0 : 1);
100
  }),
101
  ];
102
  }
80
  //==========================================================================
81
 
82
  'config/show_https_notice' => new Factory([], function () {
83
+ return new WpOption('sli_show_https_notice', 0, true, WpOption::SANITIZE_BOOL);
84
  }),
85
 
86
  'config/show_openssl_ext_notice' => new Factory([], function () {
87
+ return new WpOption('sli_show_openssl_ext_notice', 0, true, WpOption::SANITIZE_BOOL);
88
  }),
89
 
90
  //==========================================================================
95
  $isHttps = apply_filters('spotlight/security/is_https', wp_is_using_https());
96
  $hasOpenSsl = apply_filters('spotlight/security/has_openssl_ext', extension_loaded('openssl'));
97
 
98
+ $cfg->get(static::CFG_SHOW_HTTPS_NOTICE)->setValue($isHttps);
99
+ $cfg->get(static::CFG_SHOW_OPENSSL_NOTICE)->setValue($hasOpenSsl);
100
  }),
101
  ];
102
  }
modules/TemplatesModule.php CHANGED
@@ -4,55 +4,33 @@ declare(strict_types=1);
4
 
5
  namespace RebelCode\Spotlight\Instagram\Modules;
6
 
7
- use Dhii\Services\Factories\Constructor;
8
  use Dhii\Services\Factories\StringService;
9
  use Dhii\Services\Factories\Value;
10
- use Dhii\Services\Factory;
11
- use Psr\Container\ContainerInterface;
12
- use Psr\SimpleCache\CacheException;
13
- use RebelCode\Psr7\Uri;
14
- use RebelCode\Spotlight\Instagram\Feeds\Templates\FeedTemplatesProvider;
15
  use RebelCode\Spotlight\Instagram\Module;
16
- use RebelCode\WordPress\Http\WpClient;
17
- use wpdb;
18
- use WpOop\TransientCache\CachePool;
19
 
20
  class TemplatesModule extends Module
21
  {
22
- public function run(ContainerInterface $c)
23
- {
24
- add_action('spotlight/instagram/rest_api/clear_cache', function () use ($c) {
25
- /** @var $cache CachePool */
26
- $cache = $c->get('cache');
27
- try {
28
- $cache->clear();
29
- } catch (CacheException $e) {
30
- // Fail silently
31
- }
32
- });
33
- }
34
-
35
- public function getFactories()
36
  {
37
  return [
38
- // Client
39
- 'client' => new Factory(['client/base_url', 'client/options'], function ($url, $options) {
40
- return WpClient::createDefault(new Uri($url), $options);
41
- }),
42
- 'client/base_url' => new StringService('{0}/templates', ['@saas/server/base_url']),
43
- 'client/options' => new Value(['timeout' => 10]),
44
- // Cache
45
- 'cache/key' => new Value('templates.remote'),
46
- 'cache' => new Factory(['@wp/db',], function (wpdb $wpdb) {
47
- return new CachePool($wpdb, 'sli_templates', uniqid('sli_templates'), 3600);
48
- }),
49
- // Provider
50
- 'provider' => new Constructor(FeedTemplatesProvider::class, ['client', 'cache/key', 'cache']),
51
  ];
52
  }
53
 
54
- public function getExtensions()
 
55
  {
56
- return [];
 
 
 
57
  }
58
  }
4
 
5
  namespace RebelCode\Spotlight\Instagram\Modules;
6
 
 
7
  use Dhii\Services\Factories\StringService;
8
  use Dhii\Services\Factories\Value;
9
+ use RebelCode\Spotlight\Instagram\Di\ArrayExtension;
10
+ use RebelCode\Spotlight\Instagram\Di\JsonFileService;
 
 
 
11
  use RebelCode\Spotlight\Instagram\Module;
 
 
 
12
 
13
  class TemplatesModule extends Module
14
  {
15
+ /** @inheritDoc */
16
+ public function getFactories(): array
 
 
 
 
 
 
 
 
 
 
 
 
17
  {
18
  return [
19
+ // The JSON file and the default value to use in case the file cannot be read
20
+ 'file' => new StringService("{0}/data/templates.json", ['@plugin/dir']),
21
+ 'default' => new Value([]),
22
+
23
+ // The data parsed from the JSON file
24
+ 'data' => new JsonFileService('file', 'default'),
 
 
 
 
 
 
 
25
  ];
26
  }
27
 
28
+ /** @inheritDoc */
29
+ public function getExtensions(): array
30
  {
31
+ return [
32
+ // Add templates to admin-common l10n
33
+ 'ui/l10n/admin-common' => new ArrayExtension(['templates' => 'data']),
34
+ ];
35
  }
36
  }
modules/UiModule.php CHANGED
@@ -10,8 +10,11 @@ use Dhii\Services\Factories\Value;
10
  use Dhii\Services\Factory;
11
  use Psr\Container\ContainerInterface;
12
  use RebelCode\Spotlight\Instagram\Actions\IgImageProxy;
 
13
  use RebelCode\Spotlight\Instagram\Di\ArrayExtension;
 
14
  use RebelCode\Spotlight\Instagram\Module;
 
15
  use RebelCode\Spotlight\Instagram\Utils\Arrays;
16
  use RebelCode\Spotlight\Instagram\Wp\AdminPage;
17
  use RebelCode\Spotlight\Instagram\Wp\Asset;
@@ -62,10 +65,14 @@ class UiModule extends Module
62
  // register them in order for the menu to appear while the user is on pages where the app is not loaded.
63
  'menu/items' => new Factory(['menu/slug', 'menu/capability'], function ($parentSlug, $cap) {
64
  $parentUrl = admin_url("admin.php?page={$parentSlug}");
 
 
65
 
66
  return [
67
  SubMenu::url("{$parentUrl}&screen=feeds", 'Feeds', $cap),
68
  SubMenu::url("{$parentUrl}&screen=promotions", 'Promotions', $cap),
 
 
69
  SubMenu::url("{$parentUrl}&screen=settings", 'Settings', $cap),
70
  ];
71
  }),
@@ -215,6 +222,8 @@ class UiModule extends Module
215
  'sli-wp-block' => Asset::style("{$url}/wp-block.css", $ver),
216
  // Styles to override Freemius CSS
217
  'sli-fs-override' => Asset::style("{$static}/fs-override.css", $ver),
 
 
218
  ];
219
  }),
220
 
@@ -253,10 +262,9 @@ class UiModule extends Module
253
  //==========================================================================
254
 
255
  // Localization data for the common bundle
256
- 'l10n/common/var' => new Value('SliCommonConfig'),
257
- 'l10n/common/tier' => new Value(0),
258
  'l10n/common' => new Factory(
259
- ['l10n/common/tier', 'images_url', '@rest_api/auth/public/token'],
260
  function ($tier, $imagesUrl, $token) {
261
  return [
262
  'tier' => $tier,
@@ -270,7 +278,7 @@ class UiModule extends Module
270
  ),
271
 
272
  // Localization data for the admin-common bundle
273
- 'l10n/admin-common/var' => new Value('SliAdminCommonConfig'),
274
  'l10n/admin-common' => new Factory(
275
  ['@plugin/version', '@ig/api/basic/auth_url', '@ig/api/graph/auth_url', 'onboarding/is_done'],
276
  function ($version, $basicAuthUrl, $graphAuthUrl, $onboardingDone) {
@@ -318,6 +326,26 @@ class UiModule extends Module
318
  //==========================================================================
319
 
320
  'image_proxy' => new Constructor(IgImageProxy::class),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
321
  ];
322
  }
323
 
@@ -330,6 +358,10 @@ class UiModule extends Module
330
  {
331
  return [
332
  'wp/menus' => new ArrayExtension(['menu']),
 
 
 
 
333
  ];
334
  }
335
 
@@ -406,6 +438,8 @@ class UiModule extends Module
406
  echo '<style>#fs_promo_tab { display: none; }</style>';
407
  }
408
 
 
 
409
  // Enqueue admin styles that override Freemius' styles
410
  wp_enqueue_style('sli-fs-override');
411
  });
10
  use Dhii\Services\Factory;
11
  use Psr\Container\ContainerInterface;
12
  use RebelCode\Spotlight\Instagram\Actions\IgImageProxy;
13
+ use RebelCode\Spotlight\Instagram\Config\WpOption;
14
  use RebelCode\Spotlight\Instagram\Di\ArrayExtension;
15
+ use RebelCode\Spotlight\Instagram\Di\EndPointService;
16
  use RebelCode\Spotlight\Instagram\Module;
17
+ use RebelCode\Spotlight\Instagram\RestApi\EndPoints\Embed\CreatePostEndPoint;
18
  use RebelCode\Spotlight\Instagram\Utils\Arrays;
19
  use RebelCode\Spotlight\Instagram\Wp\AdminPage;
20
  use RebelCode\Spotlight\Instagram\Wp\Asset;
65
  // register them in order for the menu to appear while the user is on pages where the app is not loaded.
66
  'menu/items' => new Factory(['menu/slug', 'menu/capability'], function ($parentSlug, $cap) {
67
  $parentUrl = admin_url("admin.php?page={$parentSlug}");
68
+ $comingSoon = '<span class="sli-menu-pill sli-menu-cs">Coming soon</span>';
69
+ $new = '<span class="sli-menu-pill sli-menu-new">New</span>';
70
 
71
  return [
72
  SubMenu::url("{$parentUrl}&screen=feeds", 'Feeds', $cap),
73
  SubMenu::url("{$parentUrl}&screen=promotions", 'Promotions', $cap),
74
+ SubMenu::url("{$parentUrl}&screen=analytics", "Analytics $comingSoon", $cap),
75
+ SubMenu::url("{$parentUrl}&screen=guides", "Guides $new", $cap),
76
  SubMenu::url("{$parentUrl}&screen=settings", 'Settings', $cap),
77
  ];
78
  }),
222
  'sli-wp-block' => Asset::style("{$url}/wp-block.css", $ver),
223
  // Styles to override Freemius CSS
224
  'sli-fs-override' => Asset::style("{$static}/fs-override.css", $ver),
225
+ // Styles to use in WP Admin
226
+ 'sli-wp-admin' => Asset::style("{$static}/sli-wp-admin.css", $ver),
227
  ];
228
  }),
229
 
262
  //==========================================================================
263
 
264
  // Localization data for the common bundle
265
+ 'l10n/common/var' => new Value('SliCommonL10n'),
 
266
  'l10n/common' => new Factory(
267
+ ['@plugin/tier', 'images_url', '@rest_api/auth/public/token'],
268
  function ($tier, $imagesUrl, $token) {
269
  return [
270
  'tier' => $tier,
278
  ),
279
 
280
  // Localization data for the admin-common bundle
281
+ 'l10n/admin-common/var' => new Value('SliAdminL10n'),
282
  'l10n/admin-common' => new Factory(
283
  ['@plugin/version', '@ig/api/basic/auth_url', '@ig/api/graph/auth_url', 'onboarding/is_done'],
284
  function ($version, $basicAuthUrl, $graphAuthUrl, $onboardingDone) {
326
  //==========================================================================
327
 
328
  'image_proxy' => new Constructor(IgImageProxy::class),
329
+
330
+ //==========================================================================
331
+ // REST API ENDPOINTS
332
+ //==========================================================================
333
+
334
+ 'endpoints/create_post' => new EndPointService(
335
+ '/create_post',
336
+ ['POST'],
337
+ CreatePostEndPoint::class,
338
+ [],
339
+ '@rest_api/auth/user'
340
+ ),
341
+
342
+ //==========================================================================
343
+ // CONFIG
344
+ //==========================================================================
345
+
346
+ 'config/show_premium_features' => new Factory([], function () {
347
+ return new WpOption('sli_show_premium_features', true, false, WpOption::SANITIZE_BOOL);
348
+ }),
349
  ];
350
  }
351
 
358
  {
359
  return [
360
  'wp/menus' => new ArrayExtension(['menu']),
361
+ 'config/entries' => new ArrayExtension([
362
+ 'showPremiumFeatures' => 'config/show_premium_features',
363
+ ]),
364
+ 'rest_api/endpoints' => new ArrayExtension(['endpoints/create_post'])
365
  ];
366
  }
367
 
438
  echo '<style>#fs_promo_tab { display: none; }</style>';
439
  }
440
 
441
+ // Enqueue our admin styles
442
+ wp_enqueue_style('sli-wp-admin');
443
  // Enqueue admin styles that override Freemius' styles
444
  wp_enqueue_style('sli-fs-override');
445
  });
modules/UpdateCronModule.php CHANGED
@@ -33,6 +33,38 @@ class UpdateCronModule extends Module
33
  wp_unschedule_hook('spotlight/instagram/import');
34
  });
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  // Register the batch handler
37
  // We don't use the WpModule's API for this because the cron is not auto-scheduled, but scheduled on-demand
38
  add_action($c->get('engine/importer/scheduler/cron/hook'), $c->get('batch/handler'));
33
  wp_unschedule_hook('spotlight/instagram/import');
34
  });
35
 
36
+ add_action('admin_init', function () use ($c) {
37
+ $schedules = wp_get_schedules();
38
+ $repeat = $c->get('main/repeat');
39
+
40
+ if (!array_key_exists($repeat, $schedules)) {
41
+ add_action('admin_notices', function () {
42
+ $url = admin_url('admin.php?page=spotlight-instagram&screen=settings&tab=config');
43
+ $linkText = __('Instagram feeds » Settings » Configuration', 'sl-insta');
44
+ $link = sprintf('<b><a href="%s">%s</a></b>', $url, $linkText);
45
+
46
+ $line1 = __(
47
+ 'Your Instagram feeds cannot be auto-updated due to a missing cron schedule.',
48
+ 'sl-insta'
49
+ );
50
+
51
+ $line2 = sprintf(
52
+ __(
53
+ 'Please go to the %s page and set a new interval for how often Spotlight checks for new posts.',
54
+ 'sl-insta'
55
+ ),
56
+ $link
57
+ );
58
+
59
+ printf(
60
+ '<div class="notice notice-error sli-notice sli-update-interval-notice"><p>%s</p><p>%s</p></div>',
61
+ $line1,
62
+ $line2
63
+ );
64
+ });
65
+ }
66
+ });
67
+
68
  // Register the batch handler
69
  // We don't use the WpModule's API for this because the cron is not auto-scheduled, but scheduled on-demand
70
  add_action($c->get('engine/importer/scheduler/cron/hook'), $c->get('batch/handler'));
modules/UseCasesModule.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ declare(strict_types=1);
4
+
5
+ namespace RebelCode\Spotlight\Instagram\Modules;
6
+
7
+ use Dhii\Services\Factories\StringService;
8
+ use Dhii\Services\Factories\Value;
9
+ use RebelCode\Spotlight\Instagram\Di\ArrayExtension;
10
+ use RebelCode\Spotlight\Instagram\Di\JsonFileService;
11
+ use RebelCode\Spotlight\Instagram\Module;
12
+
13
+ class UseCasesModule extends Module
14
+ {
15
+ /** @inheritDoc */
16
+ public function getFactories(): array
17
+ {
18
+ return [
19
+ // The JSON file and the default value to use in case the file cannot be read
20
+ 'file' => new StringService("{0}/data/use-cases.json", ['@plugin/dir']),
21
+ 'default' => new Value([]),
22
+
23
+ // The data parsed from the JSON file
24
+ 'data' => new JsonFileService('file', 'default'),
25
+ ];
26
+ }
27
+
28
+ /** @inheritDoc */
29
+ public function getExtensions(): array
30
+ {
31
+ return [
32
+ // Add templates to admin-common l10n
33
+ 'ui/l10n/admin-common' => new ArrayExtension(['useCases' => 'data']),
34
+ ];
35
+ }
36
+ }
modules/UserModule.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace RebelCode\Spotlight\Instagram\Modules;
4
+
5
+ use Dhii\Services\Factory;
6
+ use LiteSpeed\Conf;
7
+ use Psr\Container\ContainerInterface;
8
+ use RebelCode\Spotlight\Instagram\Config\ConfigEntry;
9
+ use RebelCode\Spotlight\Instagram\Config\WpOption;
10
+ use RebelCode\Spotlight\Instagram\Di\ArrayExtension;
11
+ use RebelCode\Spotlight\Instagram\Module;
12
+ use RebelCode\Spotlight\Instagram\Wp\PostType;
13
+
14
+ class UserModule extends Module
15
+ {
16
+ public function run(ContainerInterface $c)
17
+ {
18
+ add_action('spotlight/instagram/init', function () use ($c) {
19
+ // If the start date is not saved and the user has feeds, set the start date
20
+ if ($c->get('is_new_with_feeds')) {
21
+ /** @var ConfigEntry $dateStarted */
22
+ $dateStarted = $c->get('config/date_started');
23
+ $dateStarted->setValue(time());
24
+ }
25
+ });
26
+ }
27
+
28
+ /** @inerhitDoc */
29
+ public function getFactories(): array
30
+ {
31
+ return [
32
+ 'config/date_started' => new Factory([], function () {
33
+ return new WpOption('sli_date_started', 0, true, WpOption::SANITIZE_INT);
34
+ }),
35
+ 'is_new' => new Factory(['config/date_started', '@feeds/cpt'],
36
+ function (ConfigEntry $dateStarted, PostType $feeds) {
37
+ return $dateStarted->getValue() === 0 && $feeds->getTotalNum() === 0;
38
+ }
39
+ ),
40
+ 'is_new_with_feeds' => new Factory(['config/date_started', '@feeds/cpt'],
41
+ function (ConfigEntry $dateStarted, PostType $feeds) {
42
+ return $dateStarted->getValue() === 0 && $feeds->getTotalNum() > 0;
43
+ }
44
+ ),
45
+ ];
46
+ }
47
+
48
+ /** @inerhitDoc */
49
+ public function getExtensions(): array
50
+ {
51
+ return [
52
+ 'config/entries' => new ArrayExtension([
53
+ 'dateStarted' => 'config/date_started',
54
+ ]),
55
+ ];
56
+ }
57
+ }
plugin.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "name": "Spotlight - Social Media Feeds",
3
  "description": "Easily embed beautiful Instagram feeds on your WordPress site.",
4
- "version": "0.10.3",
5
  "url": "https://spotlightwp.com",
6
  "author": "RebelCode",
7
  "authorUrl": "https://rebelcode.com",
1
  {
2
  "name": "Spotlight - Social Media Feeds",
3
  "description": "Easily embed beautiful Instagram feeds on your WordPress site.",
4
+ "version": "1.0",
5
  "url": "https://spotlightwp.com",
6
  "author": "RebelCode",
7
  "authorUrl": "https://rebelcode.com",
plugin.php CHANGED
@@ -5,7 +5,7 @@
5
  *
6
  * Plugin Name: Spotlight - Social Media Feeds
7
  * Description: Easily embed beautiful Instagram feeds on your WordPress site.
8
- * Version: 0.10.3
9
  * Author: RebelCode
10
  * Plugin URI: https://spotlightwp.com
11
  * Author URI: https://rebelcode.com
@@ -80,7 +80,7 @@ $bootstrapper = function (SlInstaRuntime $sli) use ($thisIsPro) {
80
  // The plugin name
81
  define('SL_INSTA_NAME', 'Spotlight - Social Media Feeds');
82
  // The plugin version
83
- define('SL_INSTA_VERSION', '0.10.3');
84
  // The path to the plugin's main file
85
  define('SL_INSTA_FILE', __FILE__);
86
  // The dir to the plugin's directory
5
  *
6
  * Plugin Name: Spotlight - Social Media Feeds
7
  * Description: Easily embed beautiful Instagram feeds on your WordPress site.
8
+ * Version: 1.0
9
  * Author: RebelCode
10
  * Plugin URI: https://spotlightwp.com
11
  * Author URI: https://rebelcode.com
80
  // The plugin name
81
  define('SL_INSTA_NAME', 'Spotlight - Social Media Feeds');
82
  // The plugin version
83
+ define('SL_INSTA_VERSION', '1.0');
84
  // The path to the plugin's main file
85
  define('SL_INSTA_FILE', __FILE__);
86
  // The dir to the plugin's directory
readme.txt CHANGED
@@ -2,11 +2,11 @@
2
 
3
  Contributors: RebelCode, spotlightsocialfeeds, markzahra, Mekku, jeangalea
4
  Plugin URI: https://spotlightwp.com
5
- Tags: Instagram, Instagram feed, Instagram feeds, Instagram widget, Instagram embed, social media, social media feed, social media feeds, IGTV, Instagram gallery, Instagram stories, hashtag
6
  Requires at least: 5.7
7
  Requires PHP: 7.1
8
  Tested up to: 5.9
9
- Stable tag: 0.10.3
10
  License: GPLv3
11
 
12
  Easily display Instagram feeds in less than 7 clicks. Customizable, accessible, and SEO-friendly. The fastest-growing Instagram feed solution.
@@ -15,39 +15,39 @@ Easily display Instagram feeds in less than 7 clicks. Customizable, accessible,
15
 
16
  **Embed [Instagram](https://www.instagram.com/) feeds anywhere on your website.** Choose a beautifully designed template, connect your Instagram account, and customize unlimited Instagram feeds to embed across your website.
17
 
18
- [**Instagram Feed Demos**](https://spotlightwp.com/demo/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_topdemos) | [Compare Free vs Pro](https://spotlightwp.com/features/compare-free-vs-pro/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_topcomparecta) | [Instagram Slider](https://spotlightwp.com/instagram-slider-wordpress-website/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_topslider)
19
-
20
- == Embed your Instagram feed in less than 7 clicks! ==
21
-
22
- Follow **3 simple steps** from start to finish:
23
-
24
- 1. Design your custom Instagram feed or choose a pre-made template.
25
- 2. Connect your [Instagram](https://www.instagram.com/) account (or your client's).
26
- 3. Embed your Instagram feed on any **page, sidebar, footer**, etc.
27
-
28
- == Free Features ==
29
-
30
- - Connect one or **multiple Instagram accounts**.
31
- - Combine multiple Instagram accounts in a single Instagram feed.
32
- - Create **unlimited Instagram feeds** to display across your site.
33
- - Display photos, videos, and **IGTV videos**.
34
- - **4 free templates** to choose from (or design your own).
35
- - **Grid layout** with various customization options.
36
- - **Customize the design**, including padding and font sizes.
37
- - **Customization per device** to look perfect everywhere.
38
- - **Order Instagram posts** by date, popularity, or at random.
39
- - Change the **number of columns** in the feed.
40
- - Change the **number of Instagram posts** shown in the feed.
41
- - Change the **size of the Instagram feed** or have it to automatically take up any area it is embedded into.
42
- - **Popup lightbox** on click to display full-size photos and playable videos directly on your website.
43
- - **Feed header** with your Instagram account's avatar and bio.
44
- - Add a **custom bio text and profile photo** per account or feed.
45
- - Set custom text and colours for the **“Follow” button**.
46
- - Set custom text and colours for the **“Load More” button**.
47
- - Show or hide the feed header, "Follow" button", and "Load More" button.
48
- - Applies your theme's fonts and styles to blend in automatically.
49
  - Embed your Instagram feed using a block, shortcode, or widget.
50
 
 
 
 
51
  == 5 Reasons to Choose Spotlight Instagram Feeds ==
52
 
53
  **1. Easy to Use**
@@ -63,68 +63,63 @@ All the Instagram content is directly on your website and crawled by search engi
63
  Every website should be accessible and your Instagram feed is part of that. Spotlight's embedded Instagram feeds are made to be accessible on all devices.
64
 
65
  **5. Fast and Helpful Support**
66
- Mark and Miguel provide support for both the free and PRO versions of Spotlight while developing new features throughout the year. Whenever you have a question or think of a new feature you'd like to see, we're always available via email.
67
 
68
  - [Documentation](https://docs.spotlightwp.com/)
69
  - [Free support (forum)](https://wordpress.org/support/plugin/spotlight-social-photo-feeds/)
70
  - [Premium & pre-purchase support (email)](https://spotlightwp.com/support/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_support)
71
 
72
- **Agencies and Developers**: Spotlight provides an [Access Token Generator](https://spotlightwp.com/access-token-generator/) so your clients won't need to share their Instagram login details.
73
-
74
- == How can I use an Instagram feed? ==
75
 
76
  **Automatically Updated Galleries**
77
- Gone are the days of manually updating your website's gallery with new photos and videos. Simply post to Instagram and Spotlight will update your site's gallery automatically.
78
 
79
  **Instant Social Proof**
80
- Instagram is a great platform for building relationships with your followers. Share that same experience with your website visitors and showcase your followers' love for you.
81
 
82
- **New Connections and Followers**
83
- Boost social engagement on your website and increase your Instagram follower count. Add a "Follow on Instagram" button to your Instagram feed to turn visitors into followers.
84
 
85
  **BONUS: Upgrade your "Coming soon" and "Maintenance" Pages**
86
  Make these pages stand out and put them to work by embedding an Instagram feed with a "Follow" button. Convert otherwise lost site visitors into Instagram followers to **generate new leads**.
87
 
88
- == Pro Features ==
 
 
89
 
90
- Level up your Instagram feeds with **[Spotlight Pro](https://spotlightwp.com/pricing/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_upgrade)**. More templates, more layouts, new customisation options, **filtering** and **moderation**, [**link in bio**](https://spotlightwp.com/link-in-bio/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_upgradelinkinbio) features, [**hashtag feeds**](https://spotlightwp.com/instagram-hashtag-feeds/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_upgradehashtag), [**shoppable Instagram feeds**](https://spotlightwp.com/shoppable-instagram-feed-wordpress/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_upgradeshoppable), and much more.
 
 
 
 
 
 
91
 
92
- [**Spotlight Pro Demos**](https://spotlightwp.com/demo/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_upgradedemo) | [Compare Free vs Pro](https://spotlightwp.com/features/compare-free-vs-pro/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_upgradecompare) | [Instagram Slider](https://spotlightwp.com/instagram-slider-wordpress-website/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_upgradeslider)
93
 
94
- Here's a look at some of the Pro features currently available:
95
 
96
- - At least 6 Pro templates
97
- - Pro layouts (slider, masonry, highlight, and more coming soon)
98
- - Hashtag feeds - public hashtag posts from across Instagram
99
- - Tagged post feeds - show posts you're tagged in
100
- - Caption filtering (show/hide)
101
- - Hashtag filtering (show/hide)
102
- - Visual moderation (hand-pick the posts to show/hide)
103
- - Promote: link to posts, pages, WooCommerce products and more
104
- - Promote: add call-to-actions to your Instagram posts
105
- - Promote: automatically link Instagram posts based on hashtags
106
- - Hover styles and header styles
107
- - Show captions and like & comment counts
108
- - Show live Instagram stories in profile photos (just like Instagram)
109
- - Officially recommended [Elementor integration](https://elementor.com/features/integrations/)
110
 
111
  == Testimonials - "The Best Instagram Plugin" ==
112
 
113
  Spotlight helps tens of thousands of website owners display Instagram feeds. Here are a few testimonials from our 100+ reviews.
114
 
115
- **User Reviews**
116
 
117
- "These days, almost every company has its own Instagram account. These accounts are more up-to-date than most blogs. So I was looking for a way to replace the blogs on the websites I make for all kinds of businesses and found the Spotlight plugin for WordPress. **The plugin is easy to install and offers multiple design options. I really can't recommend the plugin enough!**" - Isabel, Studio Pixels & Dots
118
 
119
- "There are other “link in bio” services out there, but I wanted to direct traffic to my website. **When I came across Spotlight, I knew it was exactly what I was looking for! It’s driven traffic to my site consistently each week since I started using it**, and I couldn’t ask for anything more. Their support is fantastic too. When I had a problem, they fixed it right away. They have a happy customer in me!" - Scott, Drive On Podcast
120
 
121
- "If you're ready to start nailing the BIG 3 C's of having a website, that is **building credibility, staying current, and having a better connection with your website visitors**, check out Spotlight Instagram feeds today." - Adam, WP Crafter
122
 
123
- "I used to struggle with all sorts of crappy Instagram plugins until I found this one! **The customization in unparalleled** and when I stumbled into a weird glitch (because of an error I made) their tech-support help me solve it. Love you guys <3 thank you!" - Rogue Media Group
124
 
125
- "**I loved this so much I upgraded to the Pro version.** It was everything I was wishing for for years! Super easy to set up and the documentation is great. Support is also very responsive." - Espressivo
126
 
127
- "This plugin strongly helps me to **increase the interaction on my Instagram account from my website**. I didn’t need to watch 100 tutorials to be able to handle the plugin correctly." - Michael Kihl
128
 
129
  **Recommended By Top Publications**:
130
 
@@ -138,9 +133,9 @@ Spotlight helps tens of thousands of website owners display Instagram feeds. Her
138
  - aThemes: [Best WordPress Instagram Plugins 2020](https://athemes.com/collections/best-wordpress-instagram-plugins/)
139
  - WPExplorer: [How to Add Instagram Photos to WordPress](https://www.wpexplorer.com/add-instagram-wordpress/)
140
 
141
- == Disclaimer ==
142
 
143
- Spotlight Instagram Feeds, also known as Spotlight Social Media Feeds, is a RebelCode product officially verified by Facebook to make use of the official Instagram(tm) API. It is not affiliated with or endorsed by Instagram and/or Facebook.
144
 
145
  == Installation ==
146
 
@@ -177,9 +172,9 @@ Spotlight provides three methods to embed your Instagram feed anywhere on your w
177
 
178
  == Frequently Asked Questions ==
179
 
180
- = How can I only display posts that use a specific Instagram hashtag? =
181
 
182
- With [Spotlight Pro](https://spotlightwp.com/pricing/?utm_source=readme&utm_medium=readme_faq&utm_campaign=readme_faq_hashtag) you can use either of the two options.
183
 
184
  First, you can choose to display posts that include a specific hashtag from all across Instagram. ([Learn more](https://docs.spotlightwp.com/article/622-how-to-display-hashtag-feeds)).
185
 
@@ -189,13 +184,7 @@ Second, you can use Hashtag filtering to show or hide posts from your connected
189
 
190
  = Can I display posts from multiple Instagram accounts in one gallery? =
191
 
192
- Yes. With Spotlight you can create feeds that feature photos and videos from multiple Instagram accounts within the same feed. Simply connect the Instagram user accounts you want to display posts from and select them in the "Connect" step of the feed editor in Spotlight.
193
-
194
- - - -
195
-
196
- = How do I connect my Instagram account? =
197
-
198
- Once you install Spotlight, a welcome screen appears that guides you on how to connect your first Instagram user account. Click on the connect button and it will show you two options, [Personal or Business](https://docs.spotlightwp.com/article/553-what-is-the-difference-between-instagram-personal-and-business-accounts). Pick the one that applies to you, authorise Spotlight through the popup that appears and you’re all set.
199
 
200
  - - -
201
 
@@ -229,7 +218,7 @@ Yes. With Spotlight you can embed multiple Instagram feeds on a single page, a s
229
 
230
  Yes, Spotlight's free version includes a lightbox (popup) that will display your photos and playable videos in their full size over your entire website. Keep site visitors exactly where you want them - on your website!
231
 
232
- If you want to enhance the popup, [Spotlight PRO adds a sidebar](https://spotlightwp.com/pricing/?utm_source=readme&utm_medium=readme_faq&utm_campaign=readme_faq_fullsizeandvideos) to the lightbox which will display your Instagram captions, comments, published date, and more.
233
 
234
  - - -
235
 
@@ -243,24 +232,44 @@ Yes, we understand that you may have certain posts that you don't want to show o
243
 
244
  Yes, aside from the customisation options provided by Spotlight itself, the plugin is also set up to use your theme's fonts to completely match your brand's look and feel on your website.
245
 
246
- - - -
247
 
248
- = Why is my Instagram feed not displaying correctly or at all? =
249
 
250
- There are a few reasons that this may happen. We have documented the reasons and solutions [here](https://docs.spotlightwp.com/collection/524-troubleshooting).
 
 
 
 
 
 
251
 
 
252
 
253
- == Screenshots ==
254
 
255
- 1. Embed your Instagram feed using Spotlight.
256
- 2. Open photos and videos in a popup lightbox.
257
- 3. Choose a 100% responsive template or design your own custom Instagram feeds.
258
- 4. Connect one or more accounts and combine multiple in a single feed.
259
- 5. Fully customizable to fit perfectly into any design on all devices.
260
- 6. A hashtag feed using the Highlight layout. [Requires Spotlight Instagram Feeds PRO]
261
- 7. Sell WooCommerce products through your Instagram feed. [Requires Spotlight Instagram Feeds Pro]
262
 
263
- == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
 
265
  = 0.10.3 (2022-03-08) =
266
 
2
 
3
  Contributors: RebelCode, spotlightsocialfeeds, markzahra, Mekku, jeangalea
4
  Plugin URI: https://spotlightwp.com
5
+ Tags: Instagram, Instagram feed, Instagram feeds, Instagram widget, Instagram embed, social media, social media feed, social media feeds, link in bio, Instagram gallery, shoppable Instagram, hashtag
6
  Requires at least: 5.7
7
  Requires PHP: 7.1
8
  Tested up to: 5.9
9
+ Stable tag: 1.0
10
  License: GPLv3
11
 
12
  Easily display Instagram feeds in less than 7 clicks. Customizable, accessible, and SEO-friendly. The fastest-growing Instagram feed solution.
15
 
16
  **Embed [Instagram](https://www.instagram.com/) feeds anywhere on your website.** Choose a beautifully designed template, connect your Instagram account, and customize unlimited Instagram feeds to embed across your website.
17
 
18
+ [**Instagram Feed Demos**](https://spotlightwp.com/demo/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_topdemos) | [Instagram Slider](https://spotlightwp.com/instagram-slider/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_topslider)
19
+
20
+ == Add your Instagram feed in less than 7 clicks! ==
21
+
22
+ Get started right away with no fuss at all.
23
+
24
+ 1. Create a new Instagram feed.
25
+ 2. Connect an [Instagram](https://www.instagram.com/) account.
26
+ 3. Add your Instagram feed to your website.
27
+
28
+ You can embed multiple Instagram feeds on the same website and connect as many Instagram accounts as you want, all for free.
29
+
30
+ == What's included? ==
31
+
32
+ Spotlight's Instagram feeds are made to automatically blend in seamlessly with your website. From using your theme's fonts to automatically resizing to fit into any page secion, all you need to do is pick a template and set up your colours.
33
+
34
+ - Connect **multiple Instagram accounts**.
35
+ - Create **unlimited Instagram feeds** to display on your website.
36
+ - Combine multiple Instagram accounts in a single Instagram gallery.
37
+ - Display Instagram photos, videos, and gallery posts.
38
+ - **Free pre-designed templates** (or design your custom feed).
39
+ - Get the **Grid layout** with 20+ design customization options.
40
+ - Set the **number of columns and Instagram posts** in the feed.
41
+ - **Order your Instagram posts** by date, popularity, or at random.
42
+ - **Customize the design per device** (desktop, tablet, phone).
43
+ - Add a **popup lightbox** to show larger photos and playable videos.
44
+ - **Customize your feed header** with your Instagram account's avatar and bio.
45
+ - Customize and translate the **“Follow” and "Load more" buttons**.
 
 
 
46
  - Embed your Instagram feed using a block, shortcode, or widget.
47
 
48
+ **Agencies and Freelancers**: Spotlight includes an [Access Token Generator](https://spotlightwp.com/access-token-generator/) so your clients won't need to share their Instagram login details. It's the safest and fastest way for you to set up their Instagram feeds.
49
+
50
+
51
  == 5 Reasons to Choose Spotlight Instagram Feeds ==
52
 
53
  **1. Easy to Use**
63
  Every website should be accessible and your Instagram feed is part of that. Spotlight's embedded Instagram feeds are made to be accessible on all devices.
64
 
65
  **5. Fast and Helpful Support**
66
+ We provide support for both the free and premium versions of Spotlight and are constantly working on new innovative features to make your Instagram content work harder for your website. Whenever you have a question or want to request a new feature , we're just a short message away.
67
 
68
  - [Documentation](https://docs.spotlightwp.com/)
69
  - [Free support (forum)](https://wordpress.org/support/plugin/spotlight-social-photo-feeds/)
70
  - [Premium & pre-purchase support (email)](https://spotlightwp.com/support/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_support)
71
 
72
+ == Top 3 Benefits of Instagram Feeds (According to our users) ==
 
 
73
 
74
  **Automatically Updated Galleries**
75
+ Gone are the days of manually updating your website's gallery with new photos and videos every week. Simply post to Instagram and Spotlight will update your website's galleries automatically.
76
 
77
  **Instant Social Proof**
78
+ Instagram is a great platform for building relationships with your followers. Share that same experience with your website visitors and show off your followers' love for what you do.
79
 
80
+ **New Connections**
81
+ Boost your social engagement and increase your Instagram follower count. Add a "Follow on Instagram" button to your Instagram feed to turn website visitors into Instagram followers.
82
 
83
  **BONUS: Upgrade your "Coming soon" and "Maintenance" Pages**
84
  Make these pages stand out and put them to work by embedding an Instagram feed with a "Follow" button. Convert otherwise lost site visitors into Instagram followers to **generate new leads**.
85
 
86
+ == Upgrade your Instagram Feeds (Premium) ==
87
+
88
+ Level up your Instagram feeds with **[Spotlight's premium plans](https://spotlightwp.com/pricing/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_upgrade)**:
89
 
90
+ - Get access to more templates designs, including a slider.
91
+ - Unlock all of Spotlight's customisation options, post captions, and more.
92
+ - Display Instagram posts from public [**hashtag feeds**](https://spotlightwp.com/instagram-hashtag-feeds/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_upgradehashtag).
93
+ - Include Instagram stories in your avatar (just like on Instagram),
94
+ - Apply **filtering** and **moderation** to every Instagram feed.
95
+ - Create an Instagram [**link in bio page**](https://spotlightwp.com/link-in-bio/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_upgradelinkinbio) to drive traffic from Instagram to your website.
96
+ - Add a [**shoppable Instagram feed**](https://spotlightwp.com/shoppable-instagram-feed-wordpress/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_upgradeshoppable) to increase sales.
97
 
98
+ [**Premium Instagram Demos**](https://spotlightwp.com/demo/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_upgradedemo) | [Instagram Slider](https://spotlightwp.com/instagram-slider/?utm_source=readme&utm_medium=readme_desc&utm_campaign=readme_desc_upgradeslider)
99
 
100
+ **Premium 3rd-party Integrations**
101
 
102
+ - Elementor ([officially recommended](https://elementor.com/features/integrations/))
103
+ - WooCommerce
104
+ - More coming soon...
 
 
 
 
 
 
 
 
 
 
 
105
 
106
  == Testimonials - "The Best Instagram Plugin" ==
107
 
108
  Spotlight helps tens of thousands of website owners display Instagram feeds. Here are a few testimonials from our 100+ reviews.
109
 
110
+ **100% Real User Reviews**
111
 
112
+ - "These days, almost every company has its own Instagram account. These accounts are more up-to-date than most blogs. So I was looking for a way to replace the blogs on the websites I make for all kinds of businesses and found the Spotlight plugin for WordPress. **The plugin is easy to install and offers multiple design options. I really can't recommend the plugin enough!**" - Isabel, Studio Pixels & Dots
113
 
114
+ - "There are other “link in bio” services out there, but I wanted to direct traffic to my website. **When I came across Spotlight, I knew it was exactly what I was looking for! It’s driven traffic to my site consistently each week since I started using it**, and I couldn’t ask for anything more. Their support is fantastic too." - Scott, Drive On Podcast
115
 
116
+ - "If you're ready to start nailing the BIG 3 C's of having a website, that is **building credibility, staying current, and having a better connection with your website visitors**, check out Spotlight Instagram feeds today." - Adam, WP Crafter
117
 
118
+ - "I used to struggle with all sorts of crappy Instagram plugins until I found this one! **The customization in unparalleled**. Love you guys <3 thank you!" - Rogue Media Group
119
 
120
+ - "**I loved this so much I upgraded to the premium version.** It was everything I was wishing for for years! Super easy to set up and the documentation is great. Support is also very responsive." - Espressivo
121
 
122
+ - "This plugin strongly helps me to **increase the interaction on my Instagram account from my website**. I didn’t need to watch 100 tutorials to be able to handle the plugin correctly." - Michael Kihl
123
 
124
  **Recommended By Top Publications**:
125
 
133
  - aThemes: [Best WordPress Instagram Plugins 2020](https://athemes.com/collections/best-wordpress-instagram-plugins/)
134
  - WPExplorer: [How to Add Instagram Photos to WordPress](https://www.wpexplorer.com/add-instagram-wordpress/)
135
 
136
+ **Disclaimer**
137
 
138
+ Spotlight Instagram Feeds, also known as Spotlight Social Media Feeds or SpotlightWP, is a RebelCode product officially verified by Facebook to make use of the official Instagram(tm) API. It is not affiliated with or endorsed by Instagram and/or Facebook.
139
 
140
  == Installation ==
141
 
172
 
173
  == Frequently Asked Questions ==
174
 
175
+ = How can I only display posts that use any Instagram hashtag? =
176
 
177
+ With [Spotlight PRO](https://spotlightwp.com/pricing/?utm_source=readme&utm_medium=readme_faq&utm_campaign=readme_faq_hashtag) you can use either of the two options.
178
 
179
  First, you can choose to display posts that include a specific hashtag from all across Instagram. ([Learn more](https://docs.spotlightwp.com/article/622-how-to-display-hashtag-feeds)).
180
 
184
 
185
  = Can I display posts from multiple Instagram accounts in one gallery? =
186
 
187
+ Yes. With Spotlight, you can create feeds that feature photos and videos from multiple Instagram accounts within the same feed. Simply connect the Instagram user accounts you want to display posts from and select them in the "Connect" step of the feed editor in Spotlight.
 
 
 
 
 
 
188
 
189
  - - -
190
 
218
 
219
  Yes, Spotlight's free version includes a lightbox (popup) that will display your photos and playable videos in their full size over your entire website. Keep site visitors exactly where you want them - on your website!
220
 
221
+ If you want to enhance the popup, [Spotlight PRO adds a sidebar](https://spotlightwp.com/pricing/?utm_source=readme&utm_medium=readme_faq&utm_campaign=readme_faq_fullsizeandvideos) to display your Instagram captions, comments, published date, and more.
222
 
223
  - - -
224
 
232
 
233
  Yes, aside from the customisation options provided by Spotlight itself, the plugin is also set up to use your theme's fonts to completely match your brand's look and feel on your website.
234
 
 
235
 
236
+ == Screenshots ==
237
 
238
+ 1. Embed Instagram feeds anywhere on your website with Spotlight (free).
239
+ 2. Create multiple Instagram galleries in seconds with Spotlight’s powerful feed editor.
240
+ 3. Spotlight includes a free popup lightbox to display your Instagram photos and videos.
241
+ 4. All Spotlight Instagram feeds are automatically accessible and help boost your website’s SEO.
242
+ 5. Every Instagram feed is fully responsive by default and can also be customized per device.
243
+ 6. [Premium] Display your tagged Instagram posts and Instagram hashtag feeds.
244
+ 7. [Premium] Create shoppable Instagram Feeds and Instagram bio link pages in seconds. Link Instagram posts to articles, products, recipes, and much more.
245
 
246
+ == Changelog ==
247
 
248
+ = 1.0 (2022-04-19) =
249
 
250
+ **Added**
251
+ - A feed creation wizard with use-case selection to cater the feed editing experience
252
+ - A "Guides" page with links to useful articles and tutorials
253
+ - New option to align the "Load more" and "Follow" buttons on the same row beneath the feed
254
+ - Pages and posts with an embedded feed can be created directly from the "Embed" tab in the editor
255
+ - A warning when the update schedule used to update the feeds does not exist
256
+ - Feeds can now be exported to, and imported from, a file
257
 
258
+ **Changed**
259
+ - Various visual improvements and fixes for the admin interface
260
+ - Reduced the size and loading time for embedded feeds
261
+ - Reduced the loading time for the admin app
262
+ - Improved the feed editor's styles on mobile devices
263
+ - Improved accessibility in the feed
264
+ - Any "@" and "#" symbols in image alt texts are removed to aid those with screen readers
265
+ - Focus styles in the feed only appear when focusing with a keyboard
266
+
267
+ **Fixed**
268
+ - Video posts did not load their thumbnail on iOS
269
+ - The album navigation arrows in the popup box were not focusable with keyboard navigation
270
+ - All of the text on the page in the feed editor gets selected when using a color picker
271
+ - The "Follow" button's text was not the same size in the header and footer of the feed
272
+ - The padding for the "Follow" and "Load more" buttons did not adjust with text size
273
 
274
  = 0.10.3 (2022-03-08) =
275
 
{core → src/core}/Actions/AuthCallbackListener.php RENAMED
File without changes
{core → src/core}/Actions/CleanUpMediaAction.php RENAMED
File without changes
{core → src/core}/Actions/DeleteAllPostsAction.php RENAMED
File without changes
{core → src/core}/Actions/IgImageProxy.php RENAMED
File without changes
{core → src/core}/Actions/RefreshAccessTokensAction.php RENAMED
File without changes
{core → src/core}/Actions/RenderShortcode.php RENAMED
File without changes
{core → src/core}/Actions/UpdateAccountsAction.php RENAMED
File without changes
{core → src/core}/Actions/UpdateFeedsAction.php RENAMED
File without changes
{core → src/core}/Config/ConfigEntry.php RENAMED
File without changes
{core → src/core}/Config/ConfigSet.php RENAMED
File without changes
src/core/Config/NullConfigEntry.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace RebelCode\Spotlight\Instagram\Config;
4
+
5
+ /**
6
+ * A config entry implementation that does nothing.
7
+ *
8
+ * @see ConfigService
9
+ */
10
+ class NullConfigEntry implements ConfigEntry
11
+ {
12
+ /** @inheritDoc */
13
+ public function getValue()
14
+ {
15
+ return null;
16
+ }
17
+
18
+ /** @inheritDoc */
19
+ public function setValue($value)
20
+ {
21
+ }
22
+ }
{core → src/core}/Config/WpOption.php RENAMED
@@ -10,6 +10,9 @@ namespace RebelCode\Spotlight\Instagram\Config;
10
  */
11
  class WpOption implements ConfigEntry
12
  {
 
 
 
13
  /**
14
  * @since 0.1
15
  *
@@ -29,6 +32,9 @@ class WpOption implements ConfigEntry
29
  */
30
  protected $autoload;
31
 
 
 
 
32
  /**
33
  * Constructor.
34
  *
@@ -37,12 +43,14 @@ class WpOption implements ConfigEntry
37
  * @param string $key The option key.
38
  * @param mixed $default The default value for this option.
39
  * @param bool $autoload Whether to autoload the option or not.
 
40
  */
41
- public function __construct(string $key, $default = null, bool $autoload = false)
42
  {
43
  $this->key = $key;
44
  $this->default = $default;
45
  $this->autoload = $autoload;
 
46
  }
47
 
48
  /**
@@ -76,7 +84,16 @@ class WpOption implements ConfigEntry
76
  */
77
  public function getValue()
78
  {
79
- return get_option($this->key, $this->default);
 
 
 
 
 
 
 
 
 
80
  }
81
 
82
  /**
@@ -86,6 +103,15 @@ class WpOption implements ConfigEntry
86
  */
87
  public function setValue($value)
88
  {
89
- return update_option($this->key, $value, $this->autoload);
 
 
 
 
 
 
 
 
 
90
  }
91
  }
10
  */
11
  class WpOption implements ConfigEntry
12
  {
13
+ const SANITIZE_BOOL = 1;
14
+ const SANITIZE_INT = 2;
15
+
16
  /**
17
  * @since 0.1
18
  *
32
  */
33
  protected $autoload;
34
 
35
+ /** @var int */
36
+ protected $sanitize;
37
+
38
  /**
39
  * Constructor.
40
  *
43
  * @param string $key The option key.
44
  * @param mixed $default The default value for this option.
45
  * @param bool $autoload Whether to autoload the option or not.
46
+ * @param int $sanitize Optional value sanitization type.
47
  */
48
+ public function __construct(string $key, $default = null, bool $autoload = false, int $sanitize = 0)
49
  {
50
  $this->key = $key;
51
  $this->default = $default;
52
  $this->autoload = $autoload;
53
+ $this->sanitize = $sanitize;
54
  }
55
 
56
  /**
84
  */
85
  public function getValue()
86
  {
87
+ $value = get_option($this->key, $this->default);
88
+
89
+ switch ($this->sanitize) {
90
+ case static::SANITIZE_BOOL:
91
+ return filter_var($value, FILTER_VALIDATE_BOOLEAN);
92
+ case static::SANITIZE_INT:
93
+ return (int) $value;
94
+ }
95
+
96
+ return $value;
97
  }
98
 
99
  /**
103
  */
104
  public function setValue($value)
105
  {
106
+ switch ($this->sanitize) {
107
+ case static::SANITIZE_BOOL:
108
+ $value = (int) filter_var($value, FILTER_VALIDATE_BOOLEAN);
109
+ break;
110
+ case static::SANITIZE_INT:
111
+ $value = (int) $value;
112
+ break;
113
+ }
114
+
115
+ update_option($this->key, $value, $this->autoload);
116
  }
117
  }
{core → src/core}/CoreModule.php RENAMED
@@ -92,6 +92,7 @@ class CoreModule extends Module
92
  return [
93
  'plugin/core' => new Value($this),
94
  'plugin/version' => new Value(SL_INSTA_VERSION),
 
95
  'plugin/modules' => new Value($this->modules),
96
  'plugin/file' => new Value($this->pluginFile),
97
  'plugin/dir' => new Value(dirname($this->pluginFile)),
92
  return [
93
  'plugin/core' => new Value($this),
94
  'plugin/version' => new Value(SL_INSTA_VERSION),
95
+ 'plugin/tier' => new Value(0),
96
  'plugin/modules' => new Value($this->modules),
97
  'plugin/file' => new Value($this->pluginFile),
98
  'plugin/dir' => new Value(dirname($this->pluginFile)),
{core → src/core}/Di/ArrayExtension.php RENAMED
File without changes
{core → src/core}/Di/ArrayMergeExtension.php RENAMED
File without changes
{core → src/core}/Di/ConfigService.php RENAMED
File without changes
{core → src/core}/Di/Container.php RENAMED
File without changes
{core → src/core}/Di/ContainerException.php RENAMED
File without changes
{core → src/core}/Di/EndPointService.php RENAMED
File without changes
src/core/Di/JsonFileService.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace RebelCode\Spotlight\Instagram\Di;
4
+
5
+ use Dhii\Services\Factory;
6
+
7
+ /**
8
+ * A factory for services that read a local JSON file and return the parsed result.
9
+ */
10
+ class JsonFileService extends Factory
11
+ {
12
+ public function __construct(string $fileService, $defaultService = null)
13
+ {
14
+ parent::__construct(
15
+ array_filter([$fileService, $defaultService]),
16
+ function ($file, $default = null) {
17
+ if (!is_readable($file)) {
18
+ return $default;
19
+ }
20
+
21
+ $json = @file_get_contents($file);
22
+ if (!is_string($json)) {
23
+ return $default;
24
+ }
25
+
26
+ $data = @json_decode($json);
27
+
28
+ return $data === null ? $default : $data;
29
+ }
30
+ );
31
+ }
32
+ }
{core → src/core}/Di/NotFoundException.php RENAMED
File without changes
{core → src/core}/Di/OverrideExtension.php RENAMED
File without changes
{core → src/core}/Engine/Aggregator/CustomMediaPreProcessor.php RENAMED
File without changes
{core → src/core}/Engine/Aggregator/IgAggregationStrategy.php RENAMED
@@ -8,6 +8,9 @@ use RebelCode\Iris\Aggregator\AggregationStrategy;
8
  use RebelCode\Iris\Aggregator\ItemProcessor;
9
  use RebelCode\Iris\Data\Feed;
10
  use RebelCode\Iris\Store\Query;
 
 
 
11
 
12
  class IgAggregationStrategy implements AggregationStrategy
13
  {
@@ -50,7 +53,18 @@ class IgAggregationStrategy implements AggregationStrategy
50
  }
51
  }
52
 
53
- return new Query($feed->sources, null, null, $count, $offset);
 
 
 
 
 
 
 
 
 
 
 
54
  }
55
 
56
  public function getPreProcessors(Feed $feed, Query $query): array
8
  use RebelCode\Iris\Aggregator\ItemProcessor;
9
  use RebelCode\Iris\Data\Feed;
10
  use RebelCode\Iris\Store\Query;
11
+ use RebelCode\Spotlight\Instagram\Engine\Data\Feed\StoryFeed;
12
+ use RebelCode\Spotlight\Instagram\Engine\Data\Item\MediaProductType;
13
+ use RebelCode\Spotlight\Instagram\PostTypes\MediaPostType;
14
 
15
  class IgAggregationStrategy implements AggregationStrategy
16
  {
53
  }
54
  }
55
 
56
+ if ($feed->get('mediaType') === StoryFeed::MEDIA_TYPE) {
57
+ $condition = new Query\Condition(Query\Condition::AND, [
58
+ new Query\Expression('_sli_non_existent_field', '=', 'no value'),
59
+ ]);
60
+ } else {
61
+ $condition = new Query\Condition(Query\Condition::AND, [
62
+ new Query\Expression(MediaPostType::PRODUCT_TYPE, '!=', MediaProductType::STORY),
63
+ new Query\Expression(MediaPostType::IS_STORY, '!=', '1'),
64
+ ]);
65
+ }
66
+
67
+ return new Query($feed->sources, null, $condition, $count, $offset);
68
  }
69
 
70
  public function getPreProcessors(Feed $feed, Query $query): array
{core → src/core}/Engine/Aggregator/SortProcessor.php RENAMED
File without changes
{core → src/core}/Engine/Converter/IgConversionStrategy.php RENAMED
File without changes
{core → src/core}/Engine/Data/Feed/StoryFeed.php RENAMED
File without changes
{core → src/core}/Engine/Data/Item/MediaChild.php RENAMED
File without changes
{core → src/core}/Engine/Data/Item/MediaComment.php RENAMED
File without changes
{core → src/core}/Engine/Data/Item/MediaItem.php RENAMED
File without changes
{core → src/core}/Engine/Data/Item/MediaProductType.php RENAMED
File without changes
{core → src/core}/Engine/Data/Item/MediaType.php RENAMED
File without changes
{core → src/core}/Engine/Data/Source/HashtagSource.php RENAMED
File without changes
{core → src/core}/Engine/Data/Source/StorySource.php RENAMED
File without changes
{core → src/core}/Engine/Data/Source/TaggedUserSource.php RENAMED
File without changes
{core → src/core}/Engine/Data/Source/UserSource.php RENAMED
File without changes
{core → src/core}/Engine/DbOptionMarker.php RENAMED
File without changes
{core → src/core}/Engine/DbTransientMarker.php RENAMED
File without changes
{core → src/core}/Engine/Fetcher/AccountPostsCatalog.php RENAMED
File without changes
{core → src/core}/Engine/Fetcher/CompositeCatalog.php RENAMED
File without changes
{core → src/core}/Engine/Fetcher/IgFetchStrategy.php RENAMED
File without changes
{core → src/core}/Engine/Fetcher/IgPostsCatalog.php RENAMED
File without changes
{core → src/core}/Engine/Fetcher/NullCatalog.php RENAMED
File without changes
{core → src/core}/Engine/IgPostStore.php RENAMED
File without changes
{core → src/core}/Engine/Importer/IgImportStrategy.php RENAMED
File without changes
{core → src/core}/Engine/Importer/WpCronScheduler.php RENAMED
File without changes
{core → src/core}/Engine/Store/ThumbnailRecipe.php RENAMED
File without changes
{core → src/core}/Engine/Store/ThumbnailStore.php RENAMED
File without changes
{core → src/core}/Feeds/Feed.php RENAMED
File without changes
{core → src/core}/Feeds/FeedManager.php RENAMED
File without changes
{core → src/core}/Feeds/FeedTemplate.php RENAMED
File without changes
{core → src/core}/Feeds/FeedWidget.php RENAMED
File without changes
{core → src/core}/Feeds/Preview/FeedPreviewProvider.php RENAMED
File without changes
{core → src/core}/Feeds/Templates/FeedTemplatesProvider.php RENAMED
File without changes
{core → src/core}/IgApi/AccessToken.php RENAMED
File without changes
{core → src/core}/IgApi/IgAccount.php RENAMED
File without changes
{core → src/core}/IgApi/IgApiClient.php RENAMED
File without changes
{core → src/core}/IgApi/IgApiUtils.php RENAMED
File without changes
{core → src/core}/IgApi/IgBasicApiClient.php RENAMED
File without changes
{core → src/core}/IgApi/IgComment.php RENAMED
File without changes
{core → src/core}/IgApi/IgGraphApiClient.php RENAMED
File without changes
{core → src/core}/IgApi/IgMedia.php RENAMED
File without changes
{core → src/core}/IgApi/IgUser.php RENAMED
File without changes
{core → src/core}/MediaStore/IgCachedMedia.php RENAMED
File without changes
{core → src/core}/MediaStore/MediaSource.php RENAMED
File without changes
{core → src/core}/Module.php RENAMED
File without changes
{core → src/core}/ModuleInterface.php RENAMED
File without changes
{core → src/core}/Notifications/NewsNotificationProvider.php RENAMED
File without changes
{core → src/core}/Notifications/Notification.php RENAMED
File without changes
{core → src/core}/Notifications/NotificationProvider.php RENAMED
File without changes
{core → src/core}/Notifications/NotificationStore.php RENAMED
File without changes
{core → src/core}/Plugin.php RENAMED
@@ -14,6 +14,9 @@ use RebelCode\Spotlight\Instagram\Utils\Arrays;
14
  */
15
  class Plugin implements ContainerInterface
16
  {
 
 
 
17
  /**
18
  * @since 0.1
19
  *
@@ -48,7 +51,7 @@ class Plugin implements ContainerInterface
48
  // Create the core module
49
  $this->coreModule = new CoreModule($pluginFile, $this->loadModules());
50
  // Create the container
51
- $this->container = new Container(['spotlight/instagram/', 'sl-insta/'],
52
  $this->coreModule->getFactories(),
53
  $this->coreModule->getExtensions()
54
  );
@@ -79,9 +82,11 @@ class Plugin implements ContainerInterface
79
  *
80
  * @since 0.2
81
  */
82
- protected function loadModules()
83
  {
84
- $modules = require dirname($this->pluginFile) . '/modules.php';
 
 
85
 
86
  return Arrays::map($modules, function ($module, $key) {
87
  return new PrefixingModule("$key/", $module);
14
  */
15
  class Plugin implements ContainerInterface
16
  {
17
+ /** The root segment of filters used in the plugin */
18
+ const FILTER = 'sl-insta';
19
+
20
  /**
21
  * @since 0.1
22
  *
51
  // Create the core module
52
  $this->coreModule = new CoreModule($pluginFile, $this->loadModules());
53
  // Create the container
54
+ $this->container = new Container(['spotlight/instagram/', static::FILTER . '/'],
55
  $this->coreModule->getFactories(),
56
  $this->coreModule->getExtensions()
57
  );
82
  *
83
  * @since 0.2
84
  */
85
+ protected function loadModules(): array
86
  {
87
+ $rootDir = dirname($this->pluginFile);
88
+
89
+ $modules = require "$rootDir/modules.all.php";
90
 
91
  return Arrays::map($modules, function ($module, $key) {
92
  return new PrefixingModule("$key/", $module);
{core → src/core}/PostTypes/AccountPostType.php RENAMED
File without changes
{core → src/core}/PostTypes/CustomMedia.php RENAMED
File without changes
{core → src/core}/PostTypes/FeedPostType.php RENAMED
File without changes
{core → src/core}/PostTypes/MediaPostType.php RENAMED
File without changes
{core → src/core}/PrefixingModule.php RENAMED
File without changes
{core → src/core}/RestApi/Auth/AuthUserCapability.php RENAMED
File without changes
{core → src/core}/RestApi/Auth/AuthVerifyToken.php RENAMED
File without changes
{core → src/core}/RestApi/AuthGuardInterface.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPointManager.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/AbstractEndpointHandler.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Accounts/ConnectAccountEndPoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Accounts/CustomPosts/AddCustomMediaEndPoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Accounts/CustomPosts/DeleteCustomMediaEndPoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Accounts/CustomPosts/GetCustomMediaEndPoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Accounts/CustomPosts/UpdateCustomMediaEndPoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Accounts/DeleteAccountEndPoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Accounts/DeleteAccountMediaEndpoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Accounts/GetAccessTokenEndPoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Accounts/GetAccountsEndPoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Accounts/UpdateAccountEndPoint.php RENAMED
File without changes
src/core/RestApi/EndPoints/Analytics/SubmitSurveyEndPoint.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace RebelCode\Spotlight\Instagram\RestApi\EndPoints\Analytics;
4
+
5
+ use Psr\Http\Client\ClientInterface;
6
+ use RebelCode\Psr7\Request;
7
+ use RebelCode\Spotlight\Instagram\Config\ConfigEntry;
8
+ use RebelCode\Spotlight\Instagram\RestApi\EndPoints\AbstractEndpointHandler;
9
+ use Throwable;
10
+ use WP_Error;
11
+ use WP_REST_Request;
12
+ use WP_REST_Response;
13
+
14
+ class SubmitSurveyEndPoint extends AbstractEndpointHandler
15
+ {
16
+ const URL = "https://hooks.zapier.com/hooks/catch/305784/bi9c1uh/";
17
+
18
+ /** @var ClientInterface */
19
+ protected $client;
20
+
21
+ /** @var ConfigEntry */
22
+ protected $didComplete;
23
+
24
+ /**
25
+ * Constructor.
26
+ */
27
+ public function __construct(ClientInterface $client, ConfigEntry $didComplete)
28
+ {
29
+ $this->client = $client;
30
+ $this->didComplete = $didComplete;
31
+ }
32
+
33
+ /** @inheritDoc */
34
+ protected function handle(WP_REST_Request $request)
35
+ {
36
+ $this->didComplete->setValue(true);
37
+
38
+ $body = $request->get_body() ?? '';
39
+
40
+ $request = new Request('POST', static::URL, ['Content-type' => 'application/json'], $body);
41
+
42
+ try {
43
+ $response = $this->client->sendRequest($request);
44
+ $status = $response->getStatusCode();
45
+
46
+ if ($status === 200) {
47
+ return new WP_REST_Response(['success' => true]);
48
+ } else {
49
+ return new WP_Error('sli_analytics_survey_failed', "Received status code $status from Zapier", [
50
+ 'status' => 500
51
+ ]);
52
+ }
53
+ } catch (Throwable $e) {
54
+ return new WP_Error('sli_analytics_survey_failed', $e->getMessage(), ['status' => 500]);
55
+ }
56
+ }
57
+ }
src/core/RestApi/EndPoints/Embed/CreatePostEndPoint.php ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace RebelCode\Spotlight\Instagram\RestApi\EndPoints\Embed;
4
+
5
+ use RebelCode\Spotlight\Instagram\RestApi\EndPoints\AbstractEndpointHandler;
6
+ use WP_Error;
7
+ use WP_REST_Request;
8
+ use WP_REST_Response;
9
+
10
+ class CreatePostEndPoint extends AbstractEndpointHandler
11
+ {
12
+ /** @inerhitDoc */
13
+ protected function handle(WP_REST_Request $request)
14
+ {
15
+ $feedId = $request->get_param('feedId');
16
+ $feedId = filter_var($feedId, FILTER_VALIDATE_INT);
17
+
18
+ if (!is_int($feedId) || $feedId < 1) {
19
+ return new WP_Error('sli_invalid_feed_id', __('Invalid feed ID', 'sli'), ['status' => 400]);
20
+ }
21
+
22
+ $useCase = $request->get_param('useCase');
23
+ $useCase = filter_var($useCase, FILTER_SANITIZE_STRING);
24
+
25
+ $postType = $request->get_param('postType');
26
+ $postType = filter_var($postType, FILTER_SANITIZE_STRING);
27
+
28
+ $args = [
29
+ 'post_type' => $postType,
30
+ 'post_title' => $this->getPostTitle($useCase),
31
+ 'post_content' => $this->getFeedEmbedCode($feedId, $postType, $useCase),
32
+ ];
33
+
34
+ $id = wp_insert_post($args);
35
+
36
+ if (is_wp_error($id)) {
37
+ return new WP_Error('sli_create_post_failed', $id->get_error_message(), ['status' => 500]);
38
+ }
39
+
40
+ return new WP_Rest_Response(['success' => true, 'postId' => $id, 'postTitle' => $args['post_title']]);
41
+ }
42
+
43
+ protected function getPostArgs(string $feedId, string $postType, string $useCase): array
44
+ {
45
+ return [
46
+ 'post_type' => $postType,
47
+ 'post_title' => $this->getPostTitle($useCase),
48
+ 'post_content' => $this->getFeedEmbedCode($feedId, $postType, $useCase),
49
+ ];
50
+ }
51
+
52
+ protected function getPostTitle(string $useCase): string
53
+ {
54
+ switch ($useCase) {
55
+ case 'linkInBio':
56
+ return 'Link In Bio';
57
+ case 'shoppable':
58
+ return 'Shop My Instagram';
59
+ default:
60
+ return 'My Instagram Feed';
61
+ }
62
+ }
63
+
64
+ protected function getFeedEmbedCode(string $feedId, string $postType, string $useCase): string
65
+ {
66
+ if (!function_exists('use_block_editor_for_post_type')) {
67
+ require ABSPATH . 'wp-admin/includes/post.php';
68
+ }
69
+
70
+ if (use_block_editor_for_post_type($postType)) {
71
+ $code = '<!-- wp:spotlight/instagram {"feedId":' . $feedId . '} /-->';
72
+
73
+ if ($useCase === "linkInBio") {
74
+ $code = $this->getLinkInBioButton('Link 1') .
75
+ $this->getLinkInBioButton('Link 2') .
76
+ $this->getLinkInBioButton('Link 3') .
77
+ $code;
78
+ }
79
+
80
+ return $code;
81
+ } else {
82
+ return '[instagram feed="' . $feedId . '"]';
83
+ }
84
+ }
85
+
86
+ protected function getLinkInBioButton(string $text): string
87
+ {
88
+ return <<<BLOCK
89
+ <!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center","orientation":"horizontal"}} -->
90
+ <div class="wp-block-buttons">
91
+ <!-- wp:button -->
92
+ <div class="wp-block-button">
93
+ <a class="wp-block-button__link">$text</a>
94
+ </div>
95
+ <!-- /wp:button -->
96
+ </div>
97
+ <!-- /wp:buttons -->
98
+ BLOCK;
99
+ }
100
+ }
{core → src/core}/RestApi/EndPoints/Feeds/DeleteFeedsEndpoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Feeds/GetFeedsEndpoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Feeds/SaveFeedsEndpoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Media/GetFeedMediaEndPoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Media/GetMediaEndPoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Media/ImportMediaEndPoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Notifications/GetNotificationsEndPoint.php RENAMED
File without changes
src/core/RestApi/EndPoints/Promotion/GetPostNiceUrlEndPoint.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace RebelCode\Spotlight\Instagram\RestApi\EndPoints\Promotion;
4
+
5
+ use RebelCode\Spotlight\Instagram\RestApi\EndPoints\AbstractEndpointHandler;
6
+ use WP_REST_Request;
7
+ use WP_REST_Response;
8
+
9
+ class GetPostNiceUrlEndPoint extends AbstractEndpointHandler
10
+ {
11
+ protected function handle(WP_REST_Request $request)
12
+ {
13
+ $id = $request->get_param('id');
14
+
15
+ if (empty($id)) {
16
+ return new WP_Error('sli_missing_id', __('Missing post ID in request', 'sl-insta'), [
17
+ 'status' => 400,
18
+ ]);
19
+ }
20
+
21
+ return new WP_REST_Response(['niceUrl' => get_permalink($id)]);
22
+ }
23
+ }
{core → src/core}/RestApi/EndPoints/Promotion/SearchPostsEndpoint.php RENAMED
@@ -58,6 +58,7 @@ class SearchPostsEndpoint extends AbstractEndpointHandler
58
  'id' => $post->ID,
59
  'title' => $post->post_title,
60
  'permalink' => get_post_permalink($post->ID),
 
61
  ];
62
  }));
63
  }
58
  'id' => $post->ID,
59
  'title' => $post->post_title,
60
  'permalink' => get_post_permalink($post->ID),
61
+ 'niceUrl' => get_permalink($post->ID),
62
  ];
63
  }));
64
  }
src/core/RestApi/EndPoints/Review/LeaveReviewEndPoint.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace RebelCode\Spotlight\Instagram\RestApi\EndPoints\Review;
4
+
5
+ use RebelCode\Spotlight\Instagram\Config\ConfigEntry;
6
+ use RebelCode\Spotlight\Instagram\RestApi\EndPoints\AbstractEndpointHandler;
7
+ use WP_REST_Request;
8
+ use WP_REST_Response;
9
+
10
+ class LeaveReviewEndPoint extends AbstractEndpointHandler
11
+ {
12
+ /** @var ConfigEntry */
13
+ protected $didReview;
14
+
15
+ /** Constructor */
16
+ public function __construct(ConfigEntry $didReview)
17
+ {
18
+ $this->didReview = $didReview;
19
+ }
20
+
21
+ protected function handle(WP_REST_Request $request)
22
+ {
23
+ $this->didReview->setValue(true);
24
+
25
+ return new WP_REST_Response(['success' => true]);
26
+ }
27
+ }
{core → src/core}/RestApi/EndPoints/Settings/GetSettingsEndpoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Settings/SaveSettingsEndpoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Tools/CleanUpMediaEndpoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Tools/ClearCacheEndpoint.php RENAMED
File without changes
{core → src/core}/RestApi/EndPoints/Tools/ClearCacheFeedEndpoint.php RENAMED
File without changes
{core → src/core}/RestApi/Transformers/AccountTransformer.php RENAMED
File without changes
{core → src/core}/RestApi/Transformers/CamelCaseTransformer.php RENAMED
File without changes
{core → src/core}/RestApi/Transformers/CompositeTransformer.php RENAMED
File without changes
{core → src/core}/RestApi/Transformers/FeedsTransformer.php RENAMED
File without changes
{core → src/core}/RestApi/Transformers/MediaTransformer.php RENAMED
File without changes
{core → src/core}/RestApi/Transformers/RecursiveToArrayTransformer.php RENAMED
File without changes
{core → src/core}/SaaS/SaasResourceFetcher.php RENAMED
File without changes
{core → src/core}/Server.php RENAMED
@@ -54,7 +54,7 @@ class Server
54
  // Get media and total
55
  $feed = $this->feedManager->createFeed($options);
56
  $mainResult = $this->engine->getAggregator()->aggregate($feed, $num, $from);
57
- $needImport = (count($mainResult->items) === 0);
58
 
59
  if (!$needImport) {
60
  // Check each feed source whether an import is required
54
  // Get media and total
55
  $feed = $this->feedManager->createFeed($options);
56
  $mainResult = $this->engine->getAggregator()->aggregate($feed, $num, $from);
57
+ $needImport = ($mainResult->total === 0);
58
 
59
  if (!$needImport) {
60
  // Check each feed source whether an import is required
src/core/TierModule.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace RebelCode\Spotlight\Instagram;
4
+
5
+ use Dhii\Services\Factories\Value;
6
+
7
+ class TierModule extends Module
8
+ {
9
+ /** @var int */
10
+ protected $tier;
11
+
12
+ /** Constructor. */
13
+ public function __construct(int $tier)
14
+ {
15
+ $this->tier = $tier;
16
+ }
17
+
18
+ /** @inheritDoc */
19
+ public function getExtensions(): array
20
+ {
21
+ return [
22
+ 'plugin/tier' => new Value($this->tier),
23
+ ];
24
+ }
25
+ }
{core → src/core}/Utils/Arrays.php RENAMED
File without changes
{core → src/core}/Utils/DbQueries.php RENAMED
File without changes
{core → src/core}/Utils/Files.php RENAMED
File without changes
{core → src/core}/Utils/Functions.php RENAMED
File without changes
{core → src/core}/Utils/Strings.php RENAMED
File without changes
{core → src/core}/Wp/AdminPage.php RENAMED
File without changes
{core → src/core}/Wp/Asset.php RENAMED
File without changes
{core → src/core}/Wp/CronJob.php RENAMED
File without changes
{core → src/core}/Wp/Menu.php RENAMED
File without changes
{core → src/core}/Wp/MetaField.php RENAMED
File without changes
{core → src/core}/Wp/Notice.php RENAMED
File without changes
{core → src/core}/Wp/NoticesManager.php RENAMED
File without changes
{core → src/core}/Wp/PostType.php RENAMED
File without changes
{core → src/core}/Wp/RestRequest.php RENAMED
File without changes
{core → src/core}/Wp/Shortcode.php RENAMED
File without changes
{core → src/core}/Wp/SubMenu.php RENAMED
File without changes
{core → src/core}/Wp/Transient.php RENAMED
File without changes
ui/dist/admin-app.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see admin-app.js.LICENSE.txt */
2
- var Spotlight=(window.webpackJsonpSpotlight=window.webpackJsonpSpotlight||[]).push([[7],{0:function(e,t){e.exports=React},100:function(e,t,n){"use strict";function r(e,t){return e===t}function o(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}function i(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}n.d(t,"a",(function(){return c}));var c=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var c=0,a=r.pop(),u=i(r),s=e.apply(void 0,[function(){return c++,a.apply(null,arguments)}].concat(n)),l=e((function(){for(var e=[],t=u.length,n=0;n<t;n++)e.push(u[n].apply(null,arguments));return s.apply(null,e)}));return l.resultFunc=a,l.dependencies=u,l.recomputations=function(){return c},l.resetRecomputations=function(){return c=0},l}}((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=null,i=null;return function(){return o(t,n,arguments)||(i=e.apply(null,arguments)),n=arguments,i}}))},1036:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectIsAdminEditingNewFeed=t.selectIsAdminAppLoading=t.selectIsAdminAppLoaded=void 0,t.selectIsAdminAppLoaded=e=>e.app.isLoaded,t.selectIsAdminAppLoading=e=>e.app.isLoading,t.selectIsAdminEditingNewFeed=e=>e.app.isEditingNewFeed},105:function(e,t,n){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},106:function(e,t,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");function i(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function c(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=i(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=o.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=c(n[0]);r!==n[0]&&(t[n[0]]=r)}n=o.exec(e)}t["%C2"]="�";for(var i=Object.keys(t),a=0;a<i.length;a++){var u=i[a];e=e.replace(new RegExp(u,"g"),t[u])}return e}(e)}}},107:function(e,t,n){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},108:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=n(109)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},c=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},a=function(){return i(arguments)}();i.isLegacyArguments=c,e.exports=a?i:c},109:function(e,t,n){"use strict";var r=n(95),o=n(68),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},110:function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},111:function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,i=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==i.call(t))throw new TypeError(r+t);for(var n,c=o.call(arguments,1),a=function(){if(this instanceof n){var r=t.apply(this,c.concat(o.call(arguments)));return Object(r)===r?r:this}return t.apply(e,c.concat(o.call(arguments)))},u=Math.max(0,t.length-c.length),s=[],l=0;l<u;l++)s.push("$"+l);if(n=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var p=function(){};p.prototype=t.prototype,n.prototype=new p,p.prototype=null}return n}},112:function(e,t,n){"use strict";var r=n(19),o=n(68),i=n(69),c=n(70),a=n(113),u=o(c(),Object);r(u,{getPolyfill:c,implementation:i,shim:a}),e.exports=u},113:function(e,t,n){"use strict";var r=n(70),o=n(19);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},114:function(e,t,n){"use strict";var r,o,i,c,a=n(86)()&&"symbol"==typeof Symbol.toStringTag;if(a){r=Function.call.bind(Object.prototype.hasOwnProperty),o=Function.call.bind(RegExp.prototype.exec),i={};var u=function(){throw i};c={toString:u,valueOf:u},"symbol"==typeof Symbol.toPrimitive&&(c[Symbol.toPrimitive]=u)}var s=Object.prototype.toString,l=Object.getOwnPropertyDescriptor;e.exports=a?function(e){if(!e||"object"!=typeof e)return!1;var t=l(e,"lastIndex");if(!t||!r(t,"value"))return!1;try{o(e,c)}catch(e){return e===i}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===s.call(e)}},115:function(e,t,n){"use strict";var r=n(19),o=n(177),i=n(71),c=n(72),a=n(116),u=o(i);r(u,{getPolyfill:c,implementation:i,shim:a}),e.exports=u},116:function(e,t,n){"use strict";var r=n(19).supportsDescriptors,o=n(72),i=Object.getOwnPropertyDescriptor,c=Object.defineProperty,a=TypeError,u=Object.getPrototypeOf,s=/a/;e.exports=function(){if(!r||!u)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=u(s),n=i(t,"flags");return n&&n.get===e||c(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},117:function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},118:function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),o=(c(r),c(n(20))),i=c(n(119));function c(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}c(n(90)),t.default=function(e,t){var n,c,p="__create-react-context-"+(0,i.default)()+"__",f=function(e){function n(){var t,r;a(this,n);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return t=r=u(this,e.call.apply(e,[this].concat(i))),r.emitter=l(r.props.value),u(r,t)}return s(n,e),n.prototype.getChildContext=function(){var e;return(e={})[p]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,o=void 0;((i=n)===(c=r)?0!==i||1/i==1/c:i!=i&&c!=c)?o=0:(o="function"==typeof t?t(n,r):1073741823,0!=(o|=0)&&this.emitter.set(e.value,o))}var i,c},n.prototype.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[p]=o.default.object.isRequired,n);var d=function(t){function n(){var e,r;a(this,n);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return e=r=u(this,t.call.apply(t,[this].concat(i))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},u(r,e)}return s(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},n.prototype.componentDidMount=function(){this.context[p]&&this.context[p].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},n.prototype.componentWillUnmount=function(){this.context[p]&&this.context[p].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[p]?this.context[p].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((c={})[p]=o.default.object,c),{Provider:f,Consumer:d}},e.exports=t.default},119:function(e,t,n){"use strict";(function(t){var n="__global_unique_id__";e.exports=function(){return t[n]=(t[n]||0)+1}}).call(this,n(15))},128:function(e,t,n){"use strict";(function(e,r){var o,i=n(49);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var c=Object(i.a)(o);t.a=c}).call(this,n(15),n(85)(e))},129:function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var o=r();o.withExtraArgument=r,t.a=o},137:function(e,t,n){"use strict";const r=n(105),o=n(106),i=n(107);function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function a(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?o(e):e}function s(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function l(e){const t=(e=s(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function f(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&u(n,e).includes(e.arrayFormatSeparator);n=i?u(n,e):n;const c=o||i?n.split(e.arrayFormatSeparator).map(t=>u(t,e)):null===n?n:u(n,e);r[t]=c};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){let[e,c]=i(t.decode?o.replace(/\+/g," "):o,"=");c=void 0===c?null:["comma","separator"].includes(t.arrayFormat)?c:u(c,t),n(u(e,t),c,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=p(n[e],t);else r[e]=p(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):e[t]=n,e},Object.create(null))}t.extract=l,t.parse=f,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[a(t,e),"[",o,"]"].join("")]:[...n,[a(t,e),"[",a(o,e),"]=",a(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[a(t,e),"[]"].join("")]:[...n,[a(t,e),"[]=",a(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[a(t,e),"=",a(r,e)].join("")]:[[n,a(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,a(t,e)]:[...n,[a(t,e),"=",a(r,e)].join("")]}}(t),o={};for(const t of Object.keys(e))n(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map(n=>{const o=e[n];return void 0===o?"":null===o?a(n,t):Array.isArray(o)?o.reduce(r(n),[]).join("&"):a(n,t)+"="+a(o,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:f(l(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=s(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),c=Object.assign(i,e.query);let u=t.stringify(c,n);u&&(u="?"+u);let l=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(l="#"+a(e.fragmentIdentifier,n)),`${r}${u}${l}`}},15:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},151:function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(0)),o=i(n(118));function i(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||o.default,e.exports=t.default},166:function(e,t,n){"use strict";function r(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}t.a=function(e,t){void 0===t&&(t="");var n,i=e&&e.split("/")||[],c=t&&t.split("/")||[],a=e&&r(e),u=t&&r(t),s=a||u;if(e&&r(e)?c=i:i.length&&(c.pop(),c=c.concat(i)),!c.length)return"/";if(c.length){var l=c[c.length-1];n="."===l||".."===l||""===l}else n=!1;for(var p=0,f=c.length;f>=0;f--){var d=c[f];"."===d?o(c,f):".."===d?(o(c,f),p++):p&&(o(c,f),p--)}if(!s)for(;p--;p)c.unshift("..");!s||""===c[0]||c[0]&&r(c[0])||c.unshift("");var y=c.join("/");return n&&"/"!==y.substr(-1)&&(y+="/"),y}},167:function(e,t,n){"use strict";function r(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}t.a=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var o=r(t),i=r(n);return o!==t||i!==n?e(o,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1}},168:function(e,t,n){var r=n(94),o=n(108),i=n(112),c=n(114),a=n(115),u=n(117),s=Date.prototype.getTime;function l(e){return null==e}function p(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}e.exports=function e(t,n,f){var d=f||{};return!!(d.strict?i(t,n):t===n)||(!t||!n||"object"!=typeof t&&"object"!=typeof n?d.strict?i(t,n):t==n:function(t,n,i){var f,d;if(typeof t!=typeof n)return!1;if(l(t)||l(n))return!1;if(t.prototype!==n.prototype)return!1;if(o(t)!==o(n))return!1;var y=c(t),m=c(n);if(y!==m)return!1;if(y||m)return t.source===n.source&&a(t)===a(n);if(u(t)&&u(n))return s.call(t)===s.call(n);var g=p(t),h=p(n);if(g!==h)return!1;if(g||h){if(t.length!==n.length)return!1;for(f=0;f<t.length;f++)if(t[f]!==n[f])return!1;return!0}if(typeof t!=typeof n)return!1;try{var v=r(t),b=r(n)}catch(e){return!1}if(v.length!==b.length)return!1;for(v.sort(),b.sort(),f=v.length-1;f>=0;f--)if(v[f]!=b[f])return!1;for(f=v.length-1;f>=0;f--)if(!e(t[d=v[f]],n[d],i))return!1;return!0}(t,n,d))}},169:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var c=o.apply(null,r);c&&e.push(c)}else if("object"===i)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},176:function(e,t,n){"use strict";var r=n(44);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},19:function(e,t,n){"use strict";var r=n(94),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,c=Array.prototype.concat,a=Object.defineProperty,u=a&&function(){var e={};try{for(var t in a(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),s=function(e,t,n,r){var o;(!(t in e)||"function"==typeof(o=r)&&"[object Function]"===i.call(o)&&r())&&(u?a(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=c.call(i,Object.getOwnPropertySymbols(t)));for(var a=0;a<i.length;a+=1)s(e,i[a],t[i[a]],n[i[a]])};l.supportsDescriptors=!!u,e.exports=l},20:function(e,t,n){e.exports=n(53)()},206:function(e,t,n){"use strict";(function(e){var r=n(0),o=n.n(r),i=n(37),c=n(20),a=n.n(c),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function s(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var l=o.a.createContext||function(e,t){var n,o,c="__create-react-context-"+(u["__global_unique_id__"]=(u.__global_unique_id__||0)+1)+"__",l=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=s(t.props.value),t}Object(i.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[c]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(c=o)?0!==i||1/i==1/c:i!=i&&c!=c)?n=0:(n="function"==typeof t?t(r,o):1073741823,0!=(n|=0)&&this.emitter.set(e.value,n))}var i,c},r.render=function(){return this.props.children},n}(r.Component);l.childContextTypes=((n={})[c]=a.a.object.isRequired,n);var p=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(i.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[c]&&this.context[c].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[c]&&this.context[c].off(this.onUpdate)},r.getValue=function(){return this.context[c]?this.context[c].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return p.contextTypes=((o={})[c]=a.a.object,o),{Provider:l,Consumer:p}};t.a=l}).call(this,n(15))},207:function(e,t,n){var r=n(277);e.exports=function e(t,n,o){return r(n)||(o=n||o,n=[]),o=o||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(e,t)}(t,n):r(t)?function(t,n,r){for(var o=[],i=0;i<t.length;i++)o.push(e(t[i],n,r).source);return l(new RegExp("(?:"+o.join("|")+")",p(r)),n)}(t,n,o):function(e,t,n){return f(i(e,n),t,n)}(t,n,o)},e.exports.parse=i,e.exports.compile=function(e,t){return a(i(e,t),t)},e.exports.tokensToFunction=a,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,c=0,a="",l=t&&t.delimiter||"/";null!=(n=o.exec(e));){var p=n[0],f=n[1],d=n.index;if(a+=e.slice(c,d),c=d+p.length,f)a+=f[1];else{var y=e[c],m=n[2],g=n[3],h=n[4],v=n[5],b=n[6],w=n[7];a&&(r.push(a),a="");var x=null!=m&&null!=y&&y!==m,S="+"===b||"*"===b,A="?"===b||"*"===b,j=n[2]||l,O=h||v;r.push({name:g||i++,prefix:m||"",delimiter:j,optional:A,repeat:S,partial:x,asterisk:!!w,pattern:O?s(O):w?".*":"[^"+u(j)+"]+?"})}}return c<e.length&&(a+=e.substr(c)),a&&r.push(a),r}function c(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function a(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",p(t)));return function(t,o){for(var i="",a=t||{},u=(o||{}).pretty?c:encodeURIComponent,s=0;s<e.length;s++){var l=e[s];if("string"!=typeof l){var p,f=a[l.name];if(null==f){if(l.optional){l.partial&&(i+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(f)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<f.length;d++){if(p=u(f[d]),!n[s].test(p))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(p)+"`");i+=(0===d?l.prefix:l.delimiter)+p}}else{if(p=l.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(f),!n[s].test(p))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+p+'"');i+=l.prefix+p}}else i+=l}return i}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,c="",a=0;a<e.length;a++){var s=e[a];if("string"==typeof s)c+=u(s);else{var f=u(s.prefix),d="(?:"+s.pattern+")";t.push(s),s.repeat&&(d+="(?:"+f+d+")*"),c+=d=s.optional?s.partial?f+"("+d+")?":"(?:"+f+"("+d+"))?":f+"("+d+")"}}var y=u(n.delimiter||"/"),m=c.slice(-y.length)===y;return o||(c=(m?c.slice(0,-y.length):c)+"(?:"+y+"(?=$))?"),c+=i?"$":o&&m?"":"(?="+y+"|$)",l(new RegExp("^"+c,p(n)),t)}},213:function(e,t,n){e.exports={notices:"AdminNotices__notices",notice:"AdminNotices__notice",reconnect:"AdminNotices__reconnect"}},22:function(e,t){e.exports=ReactDOM},27:function(e,t,n){"use strict";n.d(t,"a",(function(){return F})),n.d(t,"b",(function(){return U})),n.d(t,"c",(function(){return $})),n.d(t,"d",(function(){return D})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return M})),n.d(t,"g",(function(){return H})),n.d(t,"h",(function(){return k})),n.d(t,"i",(function(){return P})),n.d(t,"j",(function(){return S})),n.d(t,"k",(function(){return G})),n.d(t,"l",(function(){return J})),n.d(t,"m",(function(){return z})),n.d(t,"n",(function(){return V})),n.d(t,"o",(function(){return R}));var r="-ms-",o="-moz-",i="-webkit-",c="comm",a="rule",u="decl",s=Math.abs,l=String.fromCharCode;function p(e){return e.trim()}function f(e,t,n){return e.replace(t,n)}function d(e,t){return e.indexOf(t)}function y(e,t){return 0|e.charCodeAt(t)}function m(e,t,n){return e.slice(t,n)}function g(e){return e.length}function h(e){return e.length}function v(e,t){return t.push(e),e}var b=1,w=1,x=0,S=0,A=0,j="";function O(e,t,n,r,o,i,c){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:b,column:w,length:c,return:""}}function _(e,t,n){return O(e,t.root,t.parent,n,t.props,t.children,0)}function E(){return A=S>0?y(j,--S):0,w--,10===A&&(w=1,b--),A}function k(){return A=S<x?y(j,S++):0,w++,10===A&&(w=1,b++),A}function P(){return y(j,S)}function C(){return S}function T(e,t){return m(j,e,t)}function R(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function F(e){return b=w=1,x=g(j=e),S=0,[]}function $(e){return j="",e}function D(e){return p(T(S-1,function e(t){for(;k();)switch(A){case t:return S;case 34:case 39:return e(34===t||39===t?t:A);case 40:41===t&&e(t);break;case 92:k()}return S}(91===e?e+2:40===e?e+1:e)))}function N(e){for(;(A=P())&&A<33;)k();return R(e)>2||R(A)>3?"":" "}function L(e,t){for(;--t&&k()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return T(e,C()+(t<6&&32==P()&&32==k()))}function I(e,t){for(;k()&&e+A!==57&&(e+A!==84||47!==P()););return"/*"+T(t,S-1)+"*"+l(47===e?e:k())}function M(e){for(;!R(P());)k();return T(e,S)}function U(e){return $(function e(t,n,r,o,i,c,a,u,s){for(var p=0,d=0,y=a,m=0,h=0,b=0,w=1,x=1,S=1,A=0,j="",O=i,_=c,T=o,R=j;x;)switch(b=A,A=k()){case 34:case 39:case 91:case 40:R+=D(A);break;case 9:case 10:case 13:case 32:R+=N(b);break;case 92:R+=L(C()-1,7);continue;case 47:switch(P()){case 42:case 47:v(q(I(k(),C()),n,r),s);break;default:R+="/"}break;case 123*w:u[p++]=g(R)*S;case 125*w:case 59:case 0:switch(A){case 0:case 125:x=0;case 59+d:h>0&&g(R)-y&&v(h>32?W(R+";",o,r,y-1):W(f(R," ","")+";",o,r,y-2),s);break;case 59:R+=";";default:if(v(T=B(R,n,r,p,d,i,u,j,O=[],_=[],y),c),123===A)if(0===d)e(R,n,T,T,O,c,y,u,_);else switch(m){case 100:case 109:case 115:e(t,T,T,o&&v(B(t,T,T,0,0,i,u,j,i,O=[],y),_),i,_,y,u,o?O:_);break;default:e(R,T,T,T,[""],_,y,u,_)}}p=d=h=0,w=S=1,j=R="",y=a;break;case 58:y=1+g(R),h=b;default:if(w<1)if(123==A)--w;else if(125==A&&0==w++&&125==E())continue;switch(R+=l(A),A*w){case 38:S=d>0?1:(R+="\f",-1);break;case 44:u[p++]=(g(R)-1)*S,S=1;break;case 64:45===P()&&(R+=D(k())),m=P(),d=g(j=R+=M(C())),A++;break;case 45:45===b&&2==g(R)&&(w=0)}}return c}("",null,null,null,[""],e=F(e),0,[0],e))}function B(e,t,n,r,o,i,c,u,l,d,y){for(var g=o-1,v=0===o?i:[""],b=h(v),w=0,x=0,S=0;w<r;++w)for(var A=0,j=m(e,g+1,g=s(x=c[w])),_=e;A<b;++A)(_=p(x>0?v[A]+" "+j:f(j,/&\f/g,v[A])))&&(l[S++]=_);return O(e,t,n,0===o?a:u,l,d,y)}function q(e,t,n){return O(e,t,n,c,l(A),m(e,2,-2),0)}function W(e,t,n,r){return O(e,t,n,u,m(e,0,r),m(e,r+1,-1),r)}function z(e,t){for(var n="",r=h(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function V(e,t,n,r){switch(e.type){case"@import":case u:return e.return=e.return||e.value;case c:return"";case a:e.value=e.props.join(",")}return g(n=z(e.children,r))?e.return=e.value+"{"+n+"}":""}function H(e){var t=h(e);return function(n,r,o,i){for(var c="",a=0;a<t;a++)c+=e[a](n,r,o,i)||"";return c}}function J(e){return function(t){t.root||(t=t.return)&&e(t)}}function G(e,t,n,c){if(!e.return)switch(e.type){case u:e.return=function e(t,n){switch(function(e,t){return(((t<<2^y(e,0))<<2^y(e,1))<<2^y(e,2))<<2^y(e,3)}(t,n)){case 5103:return i+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return i+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return i+t+o+t+r+t+t;case 6828:case 4268:return i+t+r+t+t;case 6165:return i+t+r+"flex-"+t+t;case 5187:return i+t+f(t,/(\w+).+(:[^]+)/,i+"box-$1$2"+r+"flex-$1$2")+t;case 5443:return i+t+r+"flex-item-"+f(t,/flex-|-self/,"")+t;case 4675:return i+t+r+"flex-line-pack"+f(t,/align-content|flex-|-self/,"")+t;case 5548:return i+t+r+f(t,"shrink","negative")+t;case 5292:return i+t+r+f(t,"basis","preferred-size")+t;case 6060:return i+"box-"+f(t,"-grow","")+i+t+r+f(t,"grow","positive")+t;case 4554:return i+f(t,/([^-])(transform)/g,"$1"+i+"$2")+t;case 6187:return f(f(f(t,/(zoom-|grab)/,i+"$1"),/(image-set)/,i+"$1"),t,"")+t;case 5495:case 3959:return f(t,/(image-set\([^]*)/,i+"$1$`$1");case 4968:return f(f(t,/(.+:)(flex-)?(.*)/,i+"box-pack:$3"+r+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+i+t+t;case 4095:case 3583:case 4068:case 2532:return f(t,/(.+)-inline(.+)/,i+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(g(t)-1-n>6)switch(y(t,n+1)){case 109:if(45!==y(t,n+4))break;case 102:return f(t,/(.+:)(.+)-([^]+)/,"$1"+i+"$2-$3$1"+o+(108==y(t,n+3)?"$3":"$2-$3"))+t;case 115:return~d(t,"stretch")?e(f(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==y(t,n+1))break;case 6444:switch(y(t,g(t)-3-(~d(t,"!important")&&10))){case 107:return f(t,":",":"+i)+t;case 101:return f(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+i+(45===y(t,14)?"inline-":"")+"box$3$1"+i+"$2$3$1"+r+"$2box$3")+t}break;case 5936:switch(y(t,n+11)){case 114:return i+t+r+f(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return i+t+r+f(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return i+t+r+f(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return i+t+r+t+t}return t}(e.value,e.length);break;case"@keyframes":return z([_(f(e.value,"@","@"+i),e,"")],c);case a:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return z([_(f(t,/:(read-\w+)/,":-moz-$1"),e,"")],c);case"::placeholder":return z([_(f(t,/:(plac\w+)/,":"+i+"input-$1"),e,""),_(f(t,/:(plac\w+)/,":-moz-$1"),e,""),_(f(t,/:(plac\w+)/,r+"input-$1"),e,"")],c)}return""}))}}},276:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useFeedTemplate=t.setIsEditingNewFeed=t.AdminAppSlice=void 0;const r=n(16),o=n(406);t.AdminAppSlice=r.createSlice({name:"app",initialState:{isLoaded:!1,isLoading:!1,isEditingNewFeed:!1,isDoingOnboarding:!1,newFeedTemplate:null},reducers:{setIsDoingOnBoarding(e,t){e.isDoingOnboarding=t.payload},setIsEditingNewFeed(e,t){e.isEditingNewFeed=t.payload},useFeedTemplate(e,t){e.newFeedTemplate=t.payload}},extraReducers:e=>e.addCase(o.loadAdminApp.pending,e=>{e.isLoading=!0}).addCase(o.loadAdminApp.fulfilled,e=>{e.isLoading=!1,e.isLoaded=!0})}),t.setIsEditingNewFeed=t.AdminAppSlice.actions.setIsEditingNewFeed,t.useFeedTemplate=t.AdminAppSlice.actions.useFeedTemplate},277:function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},280:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminLoading=void 0;const o=r(n(0)),i=n(84);n(415),r(n(281)),n(142),t.AdminLoading=function(){const e=new Date,t=3===e.getMonth()&&1===e.getDate()?"spitloght-800w.png":"spotlight-800w.png";return o.default.createElement("div",{className:"admin-loading"},o.default.createElement("div",{className:"admin-loading__perspective"},o.default.createElement("div",{className:"admin-loading__container"},o.default.createElement("img",{src:i.Common.image(t),className:"admin-loading__logo",alt:"Spotlight"}))))}},281:function(e,t,n){e.exports={root:"AdminLoading__root","admin-loading-blink":"AdminLoading__admin-loading-blink",adminLoadingBlink:"AdminLoading__admin-loading-blink",sizer:"AdminLoading__sizer",image:"AdminLoading__image",spinner:"AdminLoading__spinner","admin-loading-spinner":"AdminLoading__admin-loading-spinner",adminLoadingSpinner:"AdminLoading__admin-loading-spinner"}},291:function(e,t,n){"use strict";e.exports=n(427)},30:function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},300:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},c=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function c(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(c,a)}u((r=r.apply(e,t||[])).next())}))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminNotices=void 0;const u=a(n(213)),s=i(n(0)),l=n(1),p=n(135),f=n(43),d=n(25),y={initialized:!1,list:[]};function m(){const e=Array.from(document.querySelectorAll(".sli-notice")),t=Array.from(document.querySelectorAll(".fs-notice.fs-slug-spotlight-social-photo-feeds"));y.list=e.concat(t),y.initialized=!0}t.AdminNotices=function(){const e=l.useStore(),t=s.default.useRef(null);s.useEffect(()=>{t.current&&(y.initialized||m(),y.list.forEach(e=>{t.current.appendChild(e)}))},[]),s.useLayoutEffect(()=>{const e=new MutationObserver(e=>{for(const t of e)"childList"===t.type&&t.removedNodes.length>0&&m()});return e.observe(t.current,{childList:!0}),()=>e.disconnect()});const n=l.useSelector(d.selectExpiringAccounts);return s.default.createElement("div",{className:u.default.notices,ref:t},n.map(t=>s.default.createElement("div",{key:t.id,className:"notice notice-warning"},s.default.createElement("p",null,"The access token for the ",s.default.createElement("b",null,"@",t.username)," account is about to expire."," ",s.default.createElement("a",{className:u.default.reconnect,onClick:n=>function(t,n){return c(this,void 0,void 0,(function*(){t.preventDefault(),yield p.connectAccount(e,n.type),yield f.AdminRestApi.media.deleteForAccount(n.id)}))}(n,t)},"Re-connect the account")," ","to keep using it in Spotlight."))))}},406:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function c(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(c,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.loadAdminApp=void 0;const o=n(16),i=n(136),c=n(407),a=n(126),u=n(92),s=n(103),l=n(202);function p(){return r(this,void 0,void 0,(function*(){return yield new Promise(e=>setTimeout(e,800))}))}t.loadAdminApp=o.createAsyncThunk("admin-app/load",(e,t)=>r(void 0,void 0,void 0,(function*(){try{yield Promise.all([t.dispatch(u.loadAccounts()),t.dispatch(a.loadSettings()),t.dispatch(i.loadFeeds()),t.dispatch(l.loadTemplates()),t.dispatch(c.fetchNews()),p()])}catch(e){s.triggerError({type:"load/error",message:e.toString()})}})))},413:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdminAppStore=void 0;const r=n(16),o=n(8),i=n(276),c=n(143),a=n(67),u=n(414),s=n(41),l=n(39),p=n(203),f=n(279);t.AdminAppStore=r.configureStore({reducer:{[i.AdminAppSlice.name]:i.AdminAppSlice.reducer,[l.RouterSlice.name]:l.RouterSlice.reducer,[p.AccountsSlice.name]:p.AccountsSlice.reducer,[c.FeedsSlice.name]:c.FeedsSlice.reducer,[f.TemplatesSlice.name]:f.TemplatesSlice.reducer,[s.SettingsSlice.name]:s.SettingsSlice.reducer,[o.FeedEditorSlice.name]:o.FeedEditorSlice.reducer,[a.ToastsSlice.name]:a.ToastsSlice.reducer,[u.NewsSlice.name]:u.NewsSlice.reducer}})},426:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),n(291),n(428),n(429),n(430);const o=r(n(0)),i=r(n(22)),c=n(102),a=r(n(32)),u=n(461),s=n(66),l=n(537),p=n(979),f=n(408),d=n(409),y=n(410),m=n(413),g=n(406),h=n(67),v=n(389),b=n(18),w=n(215),x=n(39),S=n(55),A=n(1020),j=n(103),O=n(1037);j.addErrorHandler(e=>{var t;const n=null!==(t=e.type)&&void 0!==t?t:"generic";m.AdminAppStore.dispatch(h.showToast({key:"admin/"+n,message:e.message,details:e.details,type:h.ToastType.ERROR}))}),s.Screens.register({id:"feeds",title:"Feeds",position:0,component:u.FeedsScreen}),s.Screens.register({id:"new",title:"Add New",isHidden:!0,component:l.NewFeedScreen}),s.Screens.register({id:"edit",title:"Edit",isHidden:!0,component:p.EditFeedScreen}),s.Screens.register({id:"promotions",title:"Promotions",position:40,component:f.Decorate(d.PromotionsScreen,{isFakePro:!0})}),s.Screens.register({id:"settings",title:"Settings",position:50,component:y.SettingsScreen}),s.Screens.register({id:s.SCREENS.CUSTOM_MEDIA,title:"Custom Posts",isHidden:!0,component:O.CustomMediaScreen}),m.AdminAppStore.dispatch(g.loadAdminApp()),document.addEventListener(v.SETTINGS_SAVE_SUCCESS,()=>{m.AdminAppStore.dispatch(h.showToast({key:"admin/settings/saved",message:"Settings saved."}))}),document.addEventListener(v.SETTINGS_SAVE_FAILED,e=>{j.triggerError({type:"settings/save/error",message:e.detail.error})});const _=document.getElementById("toplevel_page_spotlight-instagram");if(_){const e=_.querySelector("ul.wp-submenu").querySelectorAll("li:not(.wp-submenu-head)"),t=Array.from(e),n=m.AdminAppStore.getState();s.Screens.getList().forEach(e=>{const r=e.state||{},o=b.withPartial({screen:e.id},r),i=w.getRouteAbsUrl(n.router,o),c=t.find(e=>e.querySelector("a").href===i);c&&(c.setAttribute("data-screen",e.id),c.querySelector("a").addEventListener("click",t=>{m.AdminAppStore.dispatch(x.gotoScreen(e.id)),t.preventDefault(),t.stopPropagation()}))}),m.AdminAppStore.subscribe(()=>{const e=m.AdminAppStore.getState(),n=S.selectScreen(e);t.forEach(e=>e.classList.remove("current"));const r=t.find(e=>e.getAttribute("data-screen")===n);r&&r.classList.add("current")})}const E=document.getElementById(a.default.config.rootId);E&&(E.classList.add("wp-core-ui-override"),c.runWhenDomReady(()=>{i.default.render(o.default.createElement(A.AdminRoot,{}),E)}))},427:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(0))&&"object"==typeof r&&"default"in r?r.default:r;function i(e){return i.warnAboutHMRDisabled&&(i.warnAboutHMRDisabled=!0),o.Children.only(e.children)}i.warnAboutHMRDisabled=!1;var c=function e(){return e.shouldWrapWithAppContainer?function(e){return function(t){return o.createElement(i,null,o.createElement(e,t))}}:function(e){return e}};c.shouldWrapWithAppContainer=!1,t.AppContainer=i,t.hot=c,t.areComponentsEqual=function(e,t){return e===t},t.setConfig=function(){},t.cold=function(e){return e},t.configureComponent=function(){}},428:function(e,t,n){e.exports={wpcontent:"wpcontent","wpbody-content":"wpbody-content",wpfooter:"wpfooter",wrap:"wrap",wpbody:"wpbody",adminmenu:"adminmenu","wp-has-current-submenu":"wp-has-current-submenu","wp-submenu":"wp-submenu","sli-onboarding":"sli-onboarding",disabled:"disabled"}},44:function(e,t,n){"use strict";var r=n(111);e.exports=Function.prototype.bind||r},478:function(e,t,n){"use strict";var r=n(479),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,c,a,u,s=!1;t||(t={}),t.debug;try{if(i=r(),c=document.createRange(),a=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){window.clipboardData.clearData();var r=o[t.format]||o.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(u),c.selectNodeContents(u),a.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(r){try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(r){n=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(n,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(c):a.removeAllRanges()),u&&document.body.removeChild(u),i()}return s}},479:function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},49:function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},53:function(e,t,n){"use strict";var r=n(54);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,c){if(c!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},54:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},63:function(e,t,n){"use strict";var r=n(99),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function u(e){return r.isMemo(e)?c:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=c;var s=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(y){var o=d(n);o&&o!==y&&e(t,o,r)}var c=l(n);p&&(c=c.concat(p(n)));for(var a=u(t),m=u(n),g=0;g<c.length;++g){var h=c[g];if(!(i[h]||r&&r[h]||m&&m[h]||a&&a[h])){var v=f(n,h);try{s(t,h,v)}catch(e){}}}}return t}},68:function(e,t,n){"use strict";var r=n(44),o=n(95),i=o("%Function.prototype.apply%"),c=o("%Function.prototype.call%"),a=o("%Reflect.apply%",!0)||r.call(c,i),u=o("%Object.getOwnPropertyDescriptor%",!0),s=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var t=a(r,c,arguments);if(u&&s){var n=u(t,"length");n.configurable&&s(t,"length",{value:l(0,e.length-(arguments.length-1))})}return t};var p=function(){return a(r,i,arguments)};s?s(e.exports,"apply",{value:p}):e.exports.apply=p},69:function(e,t,n){"use strict";var r=function(e){return e!=e};e.exports=function(e,t){return 0===e&&0===t?1/e==1/t:e===t||!(!r(e)||!r(t))}},70:function(e,t,n){"use strict";var r=n(69);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},71:function(e,t,n){"use strict";var r=Object,o=TypeError;e.exports=function(){if(null!=this&&this!==r(this))throw new o("RegExp.prototype.flags getter called on non-object");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e}},72:function(e,t,n){"use strict";var r=n(71),o=n(19).supportsDescriptors,i=Object.getOwnPropertyDescriptor,c=TypeError;e.exports=function(){if(!o)throw new c("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof/a/.dotAll)return e.get}return r}},85:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},86:function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(110);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}}).call(this,n(15))},89:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},90:function(e,t,n){"use strict";e.exports=function(){}},91:function(e,t,n){"use strict";function r(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}t.a=function(e,t){var n;void 0===t&&(t=r);var o,i=[],c=!1;return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return c&&n===this&&t(r,i)||(o=e.apply(this,r),c=!0,n=this,i=r),o}}}},[[426,3,1,2,0,5,4,6]]]);
1
  /*! For license information please see admin-app.js.LICENSE.txt */
2
+ var Spotlight=(window.webpackJsonpSpotlight=window.webpackJsonpSpotlight||[]).push([[7],{0:function(e,t){e.exports=React},107:function(e,t,n){"use strict";function r(e,t){return e===t}function i(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}function s(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}n.d(t,"a",(function(){return a}));var a=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=0,o=r.pop(),l=s(r),c=e.apply(void 0,[function(){return a++,o.apply(null,arguments)}].concat(n)),u=e((function(){for(var e=[],t=l.length,n=0;n<t;n++)e.push(l[n].apply(null,arguments));return c.apply(null,e)}));return u.resultFunc=o,u.dependencies=l,u.recomputations=function(){return a},u.resetRecomputations=function(){return a=0},u}}((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=null,s=null;return function(){return i(t,n,arguments)||(s=e.apply(null,arguments)),n=arguments,s}}))},1104:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectIsAdminEditingNewFeed=t.selectIsAdminAppLoading=t.selectIsAdminAppLoaded=void 0,t.selectIsAdminAppLoaded=e=>e.app.isLoaded,t.selectIsAdminAppLoading=e=>e.app.isLoading,t.selectIsAdminEditingNewFeed=e=>e.app.isEditingNewFeed},1114:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GuidesScreen=void 0;const i=r(n(0)),s=n(146),a=r(n(191)),o=n(1115),l=n(1116),c=n(1117),u=n(1118),d=r(n(440));t.GuidesScreen=function(){return i.default.createElement(s.AdminScreen,{navbar:a.default},i.default.createElement("div",{className:d.default.guides},i.default.createElement("section",null,i.default.createElement("h1",null,"Helpful tips and resources"),i.default.createElement("p",null,"Get the latest Instagram and Spotlight news, tips, tutorials and more."),i.default.createElement("div",null,c.content.tips.map(({name:e,desc:t,link:n,link_name:r})=>i.default.createElement(u.GuidesItem,{key:e,icon:o.ArticleIcon,name:e,desc:t,link:n,link_name:r})))),i.default.createElement("section",null,i.default.createElement("h1",null,"Recommended tools and services"),i.default.createElement("p",null,"Take your project to the next level with these highly-rated tools and services."),i.default.createElement("div",null,c.content.tools.map(({name:e,desc:t,link:n,link_name:r})=>i.default.createElement(u.GuidesItem,{key:e,icon:l.ToolsIcon,name:e,desc:t,link:n,link_name:r}))))))}},1117:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.content=void 0,t.content={tips:[{name:"How to Display Instagram Testimonials on Your Website",desc:"HASHTAG FEED · HASHTAG CAMPAIGN · TAGGED POSTS",link:"https://spotlightwp.com/display-instagram-testimonials-wordpress-website/",link_name:"Read the article"},{name:"How To Add An Instagram Hashtag Feed To WordPress in 3 Easy Steps",desc:"HASHTAG FEED · HASHTAG CAMPAIGN",link:"https://spotlightwp.com/add-instagram-hashtag-feed-wordpress/",link_name:"Read the article"},{name:"How to Show Multiple Instagram Accounts in One Feed",desc:"COMBINED FEED",link:"https://spotlightwp.com/show-multiple-instagram-accounts-one-feed-wordpress/",link_name:"Read the article"},{name:"How to Add a Beautiful Instagram Slider to Your Website in 2 Minutes",desc:"SLIDER · CAROUSEL",link:"https://spotlightwp.com/instagram-slider-wordpress-website/",link_name:"Read the article"},{name:"How to Filter and Moderate an Instagram Feed in 2 Steps",desc:"CAPTION FILTERING · HASHTAG FILTERING · MODERATION",link:"https://spotlightwp.com/how-to-filter-and-moderate-an-instagram-feed/",link_name:"Read the article"},{name:"How User-Generated Content Helps Your Brand Make More Money",desc:"UGC · HASHTAG FEEDS · TAGGED POSTS",link:"https://spotlightwp.com/user-generated-content-helps-your-brand-make-money/",link_name:"Read the article"}],tools:[{name:"WP RSS Aggregator",desc:"INCREASE AUDIENCE ENGAGEMENT WITH TARGETED CURATED CONTENT",link:"https://www.wprssaggregator.com/",link_name:"Start curating"},{name:"Elementor",desc:"DESIGN AND BUILD A WEBSITE THAT YOUR FOLLOWERS WILL LOVE",link:"https://elementor.com/",link_name:"Start building"},{name:"Bluehost",desc:"AFFORDABLE AND RELIABLE HOSTING WITH A FREE SSL CERTIFICATE AND FREE CDN",link:"https://www.bluehost.com/",link_name:"Switch host"}]}},1118:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GuidesItem=void 0;const i=r(n(0)),s=n(10),a=r(n(440)),o=n(198);t.GuidesItem=function({icon:e,name:t,desc:n,link:r,link_name:l}){return i.default.createElement("div",{className:a.default.item},i.default.createElement("div",{className:a.default.desc},i.default.createElement(s.Icon,{viewBox:"0 0 30 30",height:"30px",width:"30px",icon:e}),i.default.createElement("div",{className:a.default.desc_content},i.default.createElement("a",{className:a.default.name,target:"_blank",href:r},i.default.createElement("h4",null,t)),i.default.createElement("p",null,n))),i.default.createElement("div",{className:a.default.link},i.default.createElement(o.ExternalLink,{button:!0,href:r},l)))}},1119:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsScreen=void 0;const i=r(n(1120)),s=r(n(0)),a=n(146),o=r(n(191)),l=n(1121),c=n(41),u=n(158),d=n(84),p=n(199),f=n(1),h=n(23),m=n(130),g=n(52),v=n(1130),y=n(1131),w=n(1132),b=n(10),S=n(1133),E=n(60);function x(){return s.default.createElement(g.FlexColumn,{align:"stretch",style:{padding:30,maxWidth:530}},s.default.createElement(g.FlexColumn,{justify:"flex-start",align:"stretch"},s.default.createElement(g.FlexRow,{justify:"space-between",align:"baseline"},s.default.createElement("h1",null,"Audience"),s.default.createElement("a",null,"Audience report")),s.default.createElement(g.FlexRow,{style:{marginTop:30}},s.default.createElement(_,{title:"New followers",stat:"60",icon:v.FollowIcon,pos:0}),s.default.createElement(_,{title:"New post likes",stat:"193",icon:S.LikesIcon,pos:1}),s.default.createElement(_,{title:"New post comments",stat:"77",icon:y.CaptionsIcon,pos:2}))),s.default.createElement(g.FlexColumn,{justify:"flex-start",align:"stretch",style:{marginTop:50,paddingRight:186}},s.default.createElement(g.FlexRow,{justify:"space-between",align:"baseline"},s.default.createElement("h1",null,"Engagement"),s.default.createElement("a",null,"Engagement report")),s.default.createElement(g.FlexRow,{style:{marginTop:30}},s.default.createElement(_,{title:"Instagram feed clicks",stat:"21",icon:w.LayoutIcon,pos:3}))))}t.AnalyticsScreen=function(){return s.default.createElement(a.AdminScreen,{navbar:o.default,fillPage:!0,hideNotices:!0},s.default.createElement("div",{className:i.default.page},s.default.createElement(c.SidebarLayout,{content:s.default.createElement(x,null),sidebar:s.default.createElement(C,null),primary:"content",useDefaults:!0})),s.default.createElement(E.Modal,{width:800,isOpen:!0},s.default.createElement(E.Modal.Content,{className:i.default.modalContent},s.default.createElement(l.AnalyticsSurvey,null))))};const T=[{offset:{bottom:30,left:18},rot:21},{offset:{top:30,right:17},rot:-9},{offset:{bottom:45,left:30},rot:10},{offset:{top:48,right:92},rot:-16}];function _({title:e,stat:t,icon:n,pos:r}){const a=Object.assign(Object.assign({},T[r].offset),{transform:`rotate(${T[r].rot}deg)`});return s.default.createElement("div",{className:i.default.card},s.default.createElement(b.Icon,{className:i.default.cardIcon,icon:n,viewBox:"0 0 30 30",style:a}),s.default.createElement("h2",{className:i.default.cardHeading},e),s.default.createElement("div",{className:i.default.cardFooter},s.default.createElement("span",{className:i.default.cardStat},t),s.default.createElement("span",{className:i.default.cardTime},"this week")))}function C(){const e=f.useSelector(h.selectAccounts),t=[e.length>0?e[0].id:0];return s.default.createElement(u.Sidebar,null,s.default.createElement("p",{style:{padding:15,margin:0}},"Measure your performance"),s.default.createElement(d.Spoiler,{label:"Analyze your Instagram posts",defaultOpen:!0,fitted:!0},s.default.createElement("p",{style:{marginBottom:15}},"Spotlight PRO’s analytics reviews the performance of all your embedded Instagram posts.\n It measures post clicks as well as promotional clicks to help fine-tune your Instagram strategy."),s.default.createElement(p.AccountSelector,{accounts:e,value:t,onChange:()=>{}}),s.default.createElement(m.LargeButton,{children:"Make a suggestion",subtext:"SHARE YOUR IDEAS WITH SPOTLIGHT",left:s.default.createElement(A,null),style:{marginTop:10}})))}function A({size:e=50}){return s.default.createElement("svg",{viewBox:`0 0 ${e} ${e}`,style:{stroke:"currentcolor"}},s.default.createElement("circle",{cx:e/2,cy:e/2,r:e/2-1,strokeWidth:2,fill:"none"}),s.default.createElement("text",{x:e/2,y:e/1.8,fontSize:32,dominantBaseline:"middle",textAnchor:"middle",strokeWidth:2},"?"))}},112:function(e,t,n){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},1120:function(e,t,n){e.exports={"modal-content":"AnalyticsScreen__modal-content",modalContent:"AnalyticsScreen__modal-content",page:"AnalyticsScreen__page",card:"AnalyticsScreen__card layout__flex-column","card-icon":"AnalyticsScreen__card-icon",cardIcon:"AnalyticsScreen__card-icon","card-heading":"AnalyticsScreen__card-heading",cardHeading:"AnalyticsScreen__card-heading","card-footer":"AnalyticsScreen__card-footer layout__flex-column",cardFooter:"AnalyticsScreen__card-footer layout__flex-column","card-stat":"AnalyticsScreen__card-stat",cardStat:"AnalyticsScreen__card-stat","card-time":"AnalyticsScreen__card-time",cardTime:"AnalyticsScreen__card-time","modal-container":"AnalyticsScreen__modal-container",modalContainer:"AnalyticsScreen__modal-container"}},1121:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsSurvey=void 0;const l=o(n(1122)),c=s(n(0)),u=n(11),d=n(10),p=n(1123),f=n(290),h=n(1128),m=n(25),g=n(152),v=n(16),y=n(38),w=o(n(22)),b=n(2),S=n(339),E=n(58),x=n(130),T=n(425),_=n(34),C=n(89),A=n(154),O=n(193),k=Array.from({length:3}).fill(""),P={importantStats:[],averagePostFreq:"",mostUsedPostTypes:[]};let j=!1;t.AnalyticsSurvey=function(){var e,t;const n=b.useTier().isExactly(b.Tier.FREE),[r,i]=c.useState(j?3:0),[s,o]=c.useState(!1),[M,L]=c.useState(P),N=e=>t=>L(n=>v.withPartial(n,{[e]:t})),I=()=>i(e=>Math.min(e+1,3)),D=0===(null!==(t=null===(e=y.Dictionary.at(M,r))||void 0===e?void 0:e.length)&&void 0!==t?t:0),R=r===k.length-1;return c.default.createElement("div",{className:l.default.container},c.default.createElement("div",{className:l.default.header},c.default.createElement("img",{className:l.default.headerIcon,src:E.Common.image("icons/analytics.svg"),alt:"Analytics"}),c.default.createElement("span",{className:l.default.heading},"Grow, track, and improve."),c.default.createElement("p",null,c.default.createElement("b",null,"Coming soon to the new Spotlight Performance Plan.")),c.default.createElement("p",null,w.default.config.didAnalyticsSurvey?"You've already completed this survey. Thank you!":"Take this anonymous survey to help us find the most important metrics.")),!w.default.config.didAnalyticsSurvey&&c.default.createElement("div",{className:l.default.wizard},c.default.createElement(p.Wizard,{steps:k,current:r,initialStep:j?3:0},c.default.createElement(p.WizardStep,null,c.default.createElement("div",{className:l.default.step},c.default.createElement("p",{className:l.default.prompt},"What Instagram numbers are the most important to you?"),c.default.createElement(f.CheckboxListField,{value:M.importantStats,onChange:N("importantStats"),options:[{value:"followerGrowth",label:"Follower growth over time."},{value:"numLikes",label:"Number of likes on your posts."},{value:"numComments",label:"Number of comments on your posts."},{value:"postTypeEngagement",label:"Which types of posts got the most engagement."}]}))),c.default.createElement(p.WizardStep,null,c.default.createElement("div",{className:l.default.step},c.default.createElement("p",{className:l.default.prompt},"How often do you post on Instagram on average?"),c.default.createElement(h.RadioGroup,{value:M.averagePostFreq,onChange:N("averagePostFreq"),options:[{value:"multipleDaily",label:"Multiple times a day."},{value:"onceDaily",label:"At least once a day."},{value:"fewTimesWeekly",label:"A few times a week."},{value:"onceWeekly",label:"Once a week or less often."}]}))),c.default.createElement(p.WizardStep,null,c.default.createElement("div",{className:l.default.step},c.default.createElement("p",{className:l.default.prompt},"Which of these Instagram post types do you use most?"),c.default.createElement(f.CheckboxListField,{value:M.mostUsedPostTypes,onChange:N("mostUsedPostTypes"),options:[{value:"photos",label:"Photos"},{value:"videos",label:"Videos"},{value:"reels",label:"Reels"},{value:"stories",label:"Stories"}]}))),c.default.createElement(p.WizardStep,null,c.default.createElement("p",{className:l.default.prompt},"That’s it, thank you for answering all our questions."),c.default.createElement("p",null,"Your feedback helps to shape Spotlight’s future so we really appreciate you taking the time to do this."),c.default.createElement("p",null,"Analytics will be available later in 2022 as part of our new premium offering."," ",n?c.default.createElement("span",null,"Keep an eye on this page to find out more"):c.default.createElement("a",{href:m.AdminResources.getNotifiedUrl,target:"_blank"},"Get notified when we launch Spotlight Performance"),"."))),r<3&&c.default.createElement("div",{className:l.default.dualButtons},c.default.createElement(u.Button,{size:u.ButtonSize.LARGE,onClick:()=>i(e=>Math.max(e-1,0))},"Previous"),R?c.default.createElement(A.SaveButton,{isSaving:s,content:e=>e?"Submitting ...":"Submit",disabled:D,onClick:()=>a(this,void 0,void 0,(function*(){o(!0);const e={tier:E.Common.tier,importantStats:M.importantStats.join(", "),averagePostFreq:M.averagePostFreq,mostUsedPostTypes:M.mostUsedPostTypes.join(", ")};try{yield _.AdminRestApi.analytics.submitSurvey(e),o(!0),I(),setTimeout(()=>{j=!0},100)}catch(e){C.triggerError({message:e.message,type:"analytics/survey/error"})}}))}):c.default.createElement(u.Button,{size:u.ButtonSize.LARGE,type:u.ButtonType.PRIMARY,onClick:I,disabled:D,children:"Next"})),r>=3&&n&&c.default.createElement("div",{className:l.default.dualButtons},c.default.createElement("a",{className:"button button-secondary button-large",href:m.AdminResources.getNotifiedUrl,target:"_blank"},"Speak to us",c.default.createElement(d.Icon,{icon:O.ExternalIcon,std:!0,className:l.default.externalIcon})),c.default.createElement(g.ProUpgradeBtn,{url:m.AdminResources.upgradeUrlUtmAnalytics})),r>=3&&!n&&c.default.createElement("div",{className:l.default.singleButton},c.default.createElement(S.ReviewButton,null,c.default.createElement("span",null,"Share the love with a 5-star review")))),w.default.config.didAnalyticsSurvey&&c.default.createElement("div",{className:l.default.completed},c.default.createElement("h2",null,"Have your say"),c.default.createElement("p",null,"Spotlight is built entirely on user feedback."),c.default.createElement("p",null,c.default.createElement("span",null,"Whether it’s a new feature or something a little different,"),c.default.createElement("br",null),c.default.createElement("span",null,"we’re always open to new ideas and suggestions.")),c.default.createElement("div",{className:l.default.requestFeature},c.default.createElement(x.LargeLinkButton,{theme:"white",href:m.AdminResources.featureRequest,children:"Request a feature",subtext:"HELP US MAKE SPOTLIGHT BETTER",left:c.default.createElement(d.Icon,{icon:T.FeatureRequestIcon,viewBox:"0 0 30 30"}),target:"_blank"})),c.default.createElement("p",null,c.default.createElement("span",null,"Get notified when Analytics is launched. "),c.default.createElement("a",{href:m.AdminResources.getNotifiedUrl,target:"_blank"},"Subscribe for updates."))))}},1122:function(e,t,n){e.exports={container:"AnalyticsSurvey__container layout__flex-column",header:"AnalyticsSurvey__header layout__flex-column layout__flex-center","header-icon":"AnalyticsSurvey__header-icon",headerIcon:"AnalyticsSurvey__header-icon",heading:"AnalyticsSurvey__heading",wizard:"AnalyticsSurvey__wizard layout__flex-column",prompt:"AnalyticsSurvey__prompt",footer:"AnalyticsSurvey__footer layout__flex-row","single-button":"AnalyticsSurvey__single-button AnalyticsSurvey__footer layout__flex-row",singleButton:"AnalyticsSurvey__single-button AnalyticsSurvey__footer layout__flex-row","dual-buttons":"AnalyticsSurvey__dual-buttons AnalyticsSurvey__footer layout__flex-row",dualButtons:"AnalyticsSurvey__dual-buttons AnalyticsSurvey__footer layout__flex-row",step:"AnalyticsSurvey__step","button-icon":"AnalyticsSurvey__button-icon",buttonIcon:"AnalyticsSurvey__button-icon",completed:"AnalyticsSurvey__completed","request-feature":"AnalyticsSurvey__request-feature",requestFeature:"AnalyticsSurvey__request-feature","external-icon":"AnalyticsSurvey__external-icon",externalIcon:"AnalyticsSurvey__external-icon"}},1127:function(e,t,n){e.exports={swiper:"swiper","swiper-vertical":"swiper-vertical","swiper-wrapper":"swiper-wrapper","swiper-android":"swiper-android","swiper-slide":"swiper-slide","swiper-pointer-events":"swiper-pointer-events","swiper-slide-invisible-blank":"swiper-slide-invisible-blank","swiper-autoheight":"swiper-autoheight","swiper-backface-hidden":"swiper-backface-hidden","swiper-3d":"swiper-3d","swiper-css-mode":"swiper-css-mode","swiper-cube-shadow":"swiper-cube-shadow","swiper-slide-shadow":"swiper-slide-shadow","swiper-slide-shadow-bottom":"swiper-slide-shadow-bottom","swiper-slide-shadow-left":"swiper-slide-shadow-left","swiper-slide-shadow-right":"swiper-slide-shadow-right","swiper-slide-shadow-top":"swiper-slide-shadow-top","swiper-horizontal":"swiper-horizontal","swiper-centered":"swiper-centered","swiper-virtual":"swiper-virtual","swiper-button-next":"swiper-button-next","swiper-button-prev":"swiper-button-prev","swiper-button-disabled":"swiper-button-disabled","swiper-rtl":"swiper-rtl","swiper-button-lock":"swiper-button-lock","swiper-pagination":"swiper-pagination","swiper-pagination-hidden":"swiper-pagination-hidden","swiper-pagination-bullets":"swiper-pagination-bullets","swiper-pagination-horizontal":"swiper-pagination-horizontal","swiper-pagination-custom":"swiper-pagination-custom","swiper-pagination-fraction":"swiper-pagination-fraction","swiper-pagination-bullets-dynamic":"swiper-pagination-bullets-dynamic","swiper-pagination-bullet":"swiper-pagination-bullet","swiper-pagination-bullet-active":"swiper-pagination-bullet-active","swiper-pagination-bullet-active-main":"swiper-pagination-bullet-active-main","swiper-pagination-bullet-active-prev":"swiper-pagination-bullet-active-prev","swiper-pagination-bullet-active-prev-prev":"swiper-pagination-bullet-active-prev-prev","swiper-pagination-bullet-active-next":"swiper-pagination-bullet-active-next","swiper-pagination-bullet-active-next-next":"swiper-pagination-bullet-active-next-next","swiper-pagination-clickable":"swiper-pagination-clickable","swiper-pagination-vertical":"swiper-pagination-vertical","swiper-pagination-progressbar":"swiper-pagination-progressbar","swiper-pagination-progressbar-fill":"swiper-pagination-progressbar-fill","swiper-pagination-progressbar-opposite":"swiper-pagination-progressbar-opposite","swiper-pagination-lock":"swiper-pagination-lock","swiper-scrollbar":"swiper-scrollbar","swiper-scrollbar-drag":"swiper-scrollbar-drag","swiper-scrollbar-cursor-drag":"swiper-scrollbar-cursor-drag","swiper-scrollbar-lock":"swiper-scrollbar-lock","swiper-zoom-container":"swiper-zoom-container","swiper-slide-zoomed":"swiper-slide-zoomed","swiper-lazy-preloader":"swiper-lazy-preloader","swiper-slide-visible":"swiper-slide-visible","swiper-preloader-spin":"swiper-preloader-spin","swiper-lazy-preloader-white":"swiper-lazy-preloader-white","swiper-lazy-preloader-black":"swiper-lazy-preloader-black","swiper-notification":"swiper-notification","swiper-free-mode":"swiper-free-mode","swiper-grid":"swiper-grid","swiper-grid-column":"swiper-grid-column","swiper-fade":"swiper-fade","swiper-slide-active":"swiper-slide-active","swiper-cube":"swiper-cube","swiper-slide-next":"swiper-slide-next","swiper-slide-prev":"swiper-slide-prev","swiper-flip":"swiper-flip","swiper-creative":"swiper-creative","swiper-cards":"swiper-cards"}},113:function(e,t,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function s(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],s(n),s(r))}function a(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=s(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=i.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=a(n[0]);r!==n[0]&&(t[n[0]]=r)}n=i.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),o=0;o<s.length;o++){var l=s[o];e=e.replace(new RegExp(l,"g"),t[l])}return e}(e)}}},114:function(e,t,n){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},115:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=n(116)("Object.prototype.toString"),s=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!s(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},o=function(){return s(arguments)}();s.isLegacyArguments=a,e.exports=o?s:a},116:function(e,t,n){"use strict";var r=n(102),i=n(72),s=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&s(e,".prototype.")>-1?i(n):n}},117:function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},118:function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,s=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==s.call(t))throw new TypeError(r+t);for(var n,a=i.call(arguments,1),o=function(){if(this instanceof n){var r=t.apply(this,a.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,a.concat(i.call(arguments)))},l=Math.max(0,t.length-a.length),c=[],u=0;u<l;u++)c.push("$"+u);if(n=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var d=function(){};d.prototype=t.prototype,n.prototype=new d,d.prototype=null}return n}},119:function(e,t,n){"use strict";var r=n(24),i=n(72),s=n(73),a=n(74),o=n(120),l=i(a(),Object);r(l,{getPolyfill:a,implementation:s,shim:o}),e.exports=l},120:function(e,t,n){"use strict";var r=n(74),i=n(24);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},121:function(e,t,n){"use strict";var r,i,s,a,o=n(91)()&&"symbol"==typeof Symbol.toStringTag;if(o){r=Function.call.bind(Object.prototype.hasOwnProperty),i=Function.call.bind(RegExp.prototype.exec),s={};var l=function(){throw s};a={toString:l,valueOf:l},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=l)}var c=Object.prototype.toString,u=Object.getOwnPropertyDescriptor;e.exports=o?function(e){if(!e||"object"!=typeof e)return!1;var t=u(e,"lastIndex");if(!t||!r(t,"value"))return!1;try{i(e,a)}catch(e){return e===s}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===c.call(e)}},1211:function(e,t,n){"use strict";n.r(t),n.d(t,"useSwiperSlide",(function(){return re})),n.d(t,"useSwiper",(function(){return se})),n.d(t,"Swiper",(function(){return oe})),n.d(t,"SwiperSlide",(function(){return ce}));var r=n(0),i=n.n(r);function s(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function a(e={},t={}){Object.keys(t).forEach(n=>{void 0===e[n]?e[n]=t[n]:s(t[n])&&s(e[n])&&Object.keys(t[n]).length>0&&a(e[n],t[n])})}const o={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function l(){const e="undefined"!=typeof document?document:{};return a(e,o),e}const c={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function u(){const e="undefined"!=typeof window?window:{};return a(e,c),e}class d extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function p(e=[]){const t=[];return e.forEach(e=>{Array.isArray(e)?t.push(...p(e)):t.push(e)}),t}function f(e,t){return Array.prototype.filter.call(e,t)}function h(e,t){const n=u(),r=l();let i=[];if(!t&&e instanceof d)return e;if(!e)return new d(i);if("string"==typeof e){const n=e.trim();if(n.indexOf("<")>=0&&n.indexOf(">")>=0){let e="div";0===n.indexOf("<li")&&(e="ul"),0===n.indexOf("<tr")&&(e="tbody"),0!==n.indexOf("<td")&&0!==n.indexOf("<th")||(e="tr"),0===n.indexOf("<tbody")&&(e="table"),0===n.indexOf("<option")&&(e="select");const t=r.createElement(e);t.innerHTML=n;for(let e=0;e<t.childNodes.length;e+=1)i.push(t.childNodes[e])}else i=function(e,t){if("string"!=typeof e)return[e];const n=[],r=t.querySelectorAll(e);for(let e=0;e<r.length;e+=1)n.push(r[e]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof d)return e;i=e}return new d(function(e){const t=[];for(let n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(i))}h.fn=d.prototype;const m="resize scroll".split(" ");function g(e){return function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)m.indexOf(e)<0&&(e in this[t]?this[t][e]():h(this[t]).trigger(e));return this}return this.on(e,...t)}}g("click"),g("blur"),g("focus"),g("focusin"),g("focusout"),g("keyup"),g("keydown"),g("keypress"),g("submit"),g("change"),g("mousedown"),g("mousemove"),g("mouseup"),g("mouseenter"),g("mouseleave"),g("mouseout"),g("mouseover"),g("touchstart"),g("touchend"),g("touchmove"),g("resize"),g("scroll");const v={addClass:function(...e){const t=p(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.add(...t)}),this},removeClass:function(...e){const t=p(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.remove(...t)}),this},hasClass:function(...e){const t=p(e.map(e=>e.split(" ")));return f(this,e=>t.filter(t=>e.classList.contains(t)).length>0).length>0},toggleClass:function(...e){const t=p(e.map(e=>e.split(" ")));this.forEach(e=>{t.forEach(t=>{e.classList.toggle(t)})})},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(const t in e)this[n][t]=e[t],this[n].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?e+"ms":e;return this},on:function(...e){let[t,n,r,i]=e;function s(e){const t=e.target;if(!t)return;const i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),h(t).is(n))r.apply(t,i);else{const e=h(t).parents();for(let t=0;t<e.length;t+=1)h(e[t]).is(n)&&r.apply(e[t],i)}}function a(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}"function"==typeof e[1]&&([t,r,i]=e,n=void 0),i||(i=!1);const o=t.split(" ");let l;for(let e=0;e<this.length;e+=1){const t=this[e];if(n)for(l=0;l<o.length;l+=1){const e=o[l];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:r,proxyListener:s}),t.addEventListener(e,s,i)}else for(l=0;l<o.length;l+=1){const e=o[l];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:r,proxyListener:a}),t.addEventListener(e,a,i)}}return this},off:function(...e){let[t,n,r,i]=e;"function"==typeof e[1]&&([t,r,i]=e,n=void 0),i||(i=!1);const s=t.split(" ");for(let e=0;e<s.length;e+=1){const t=s[e];for(let e=0;e<this.length;e+=1){const s=this[e];let a;if(!n&&s.dom7Listeners?a=s.dom7Listeners[t]:n&&s.dom7LiveListeners&&(a=s.dom7LiveListeners[t]),a&&a.length)for(let e=a.length-1;e>=0;e-=1){const n=a[e];r&&n.listener===r||r&&n.listener&&n.listener.dom7proxy&&n.listener.dom7proxy===r?(s.removeEventListener(t,n.proxyListener,i),a.splice(e,1)):r||(s.removeEventListener(t,n.proxyListener,i),a.splice(e,1))}}}return this},trigger:function(...e){const t=u(),n=e[0].split(" "),r=e[1];for(let i=0;i<n.length;i+=1){const s=n[i];for(let n=0;n<this.length;n+=1){const i=this[n];if(t.CustomEvent){const n=new t.CustomEvent(s,{detail:r,bubbles:!0,cancelable:!0});i.dom7EventData=e.filter((e,t)=>t>0),i.dispatchEvent(n),i.dom7EventData=[],delete i.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function n(r){r.target===this&&(e.call(this,r),t.off("transitionend",n))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=u();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=u(),t=l(),n=this[0],r=n.getBoundingClientRect(),i=t.body,s=n.clientTop||i.clientTop||0,a=n.clientLeft||i.clientLeft||0,o=n===e?e.scrollY:n.scrollTop,c=n===e?e.scrollX:n.scrollLeft;return{top:r.top+o-s,left:r.left+c-a}}return null},css:function(e,t){const n=u();let r;if(1===arguments.length){if("string"!=typeof e){for(r=0;r<this.length;r+=1)for(const t in e)this[r].style[t]=e[t];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(r=0;r<this.length;r+=1)this[r].style[e]=t;return this}return this},each:function(e){return e?(this.forEach((t,n)=>{e.apply(t,[t,n])}),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){const t=u(),n=l(),r=this[0];let i,s;if(!r||void 0===e)return!1;if("string"==typeof e){if(r.matches)return r.matches(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(r.msMatchesSelector)return r.msMatchesSelector(e);for(i=h(e),s=0;s<i.length;s+=1)if(i[s]===r)return!0;return!1}if(e===n)return r===n;if(e===t)return r===t;if(e.nodeType||e instanceof d){for(i=e.nodeType?[e]:e,s=0;s<i.length;s+=1)if(i[s]===r)return!0;return!1}return!1},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;const t=this.length;if(e>t-1)return h([]);if(e<0){const n=t+e;return h(n<0?[]:[this[n]])}return h([this[e]])},append:function(...e){let t;const n=l();for(let r=0;r<e.length;r+=1){t=e[r];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const r=n.createElement("div");for(r.innerHTML=t;r.firstChild;)this[e].appendChild(r.firstChild)}else if(t instanceof d)for(let n=0;n<t.length;n+=1)this[e].appendChild(t[n]);else this[e].appendChild(t)}return this},prepend:function(e){const t=l();let n,r;for(n=0;n<this.length;n+=1)if("string"==typeof e){const i=t.createElement("div");for(i.innerHTML=e,r=i.childNodes.length-1;r>=0;r-=1)this[n].insertBefore(i.childNodes[r],this[n].childNodes[0])}else if(e instanceof d)for(r=0;r<e.length;r+=1)this[n].insertBefore(e[r],this[n].childNodes[0]);else this[n].insertBefore(e,this[n].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&h(this[0].nextElementSibling).is(e)?h([this[0].nextElementSibling]):h([]):this[0].nextElementSibling?h([this[0].nextElementSibling]):h([]):h([])},nextAll:function(e){const t=[];let n=this[0];if(!n)return h([]);for(;n.nextElementSibling;){const r=n.nextElementSibling;e?h(r).is(e)&&t.push(r):t.push(r),n=r}return h(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&h(t.previousElementSibling).is(e)?h([t.previousElementSibling]):h([]):t.previousElementSibling?h([t.previousElementSibling]):h([])}return h([])},prevAll:function(e){const t=[];let n=this[0];if(!n)return h([]);for(;n.previousElementSibling;){const r=n.previousElementSibling;e?h(r).is(e)&&t.push(r):t.push(r),n=r}return h(t)},parent:function(e){const t=[];for(let n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?h(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return h(t)},parents:function(e){const t=[];for(let n=0;n<this.length;n+=1){let r=this[n].parentNode;for(;r;)e?h(r).is(e)&&t.push(r):t.push(r),r=r.parentNode}return h(t)},closest:function(e){let t=this;return void 0===e?h([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){const t=[];for(let n=0;n<this.length;n+=1){const r=this[n].querySelectorAll(e);for(let e=0;e<r.length;e+=1)t.push(r[e])}return h(t)},children:function(e){const t=[];for(let n=0;n<this.length;n+=1){const r=this[n].children;for(let n=0;n<r.length;n+=1)e&&!h(r[n]).is(e)||t.push(r[n])}return h(t)},filter:function(e){return h(f(this,e))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};Object.keys(v).forEach(e=>{Object.defineProperty(h.fn,e,{value:v[e],writable:!0})});var y=h;function w(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function b(){return Date.now()}function S(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function E(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function x(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(null!=r&&!E(r)){const n=Object.keys(Object(r)).filter(e=>t.indexOf(e)<0);for(let t=0,i=n.length;t<i;t+=1){const i=n[t],s=Object.getOwnPropertyDescriptor(r,i);void 0!==s&&s.enumerable&&(S(e[i])&&S(r[i])?r[i].__swiper__?e[i]=r[i]:x(e[i],r[i]):!S(e[i])&&S(r[i])?(e[i]={},r[i].__swiper__?e[i]=r[i]:x(e[i],r[i])):e[i]=r[i])}}}return e}function T(e,t,n){e.style.setProperty(t,n)}function _(e){let{swiper:t,targetPosition:n,side:r}=e;const i=u(),s=-t.translate;let a,o=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const c=n>s?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,p=()=>{a=(new Date).getTime(),null===o&&(o=a);const e=Math.max(Math.min((a-o)/l,1),0),c=.5-Math.cos(e*Math.PI)/2;let u=s+c*(n-s);if(d(u,n)&&(u=n),t.wrapperEl.scrollTo({[r]:u}),d(u,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:u})}),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(p)};p()}let C,A,O;function k(){return C||(C=function(){const e=u(),t=l();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const n=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),C}function P(e){let{swiper:t,runCallbacks:n,direction:r,step:i}=e;const{activeIndex:s,previousIndex:a}=t;let o=r;if(o||(o=s>a?"next":s<a?"prev":"reset"),t.emit("transition"+i),n&&s!==a){if("reset"===o)return void t.emit("slideResetTransition"+i);t.emit("slideChangeTransition"+i),"next"===o?t.emit("slideNextTransition"+i):t.emit("slidePrevTransition"+i)}}function j(e){const t=this,n=l(),r=u(),i=t.touchEventsData,{params:s,touches:a,enabled:o}=t;if(!o)return;if(t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let c=e;c.originalEvent&&(c=c.originalEvent);let d=y(c.target);if("wrapper"===s.touchEventsTarget&&!d.closest(t.wrapperEl).length)return;if(i.isTouchEvent="touchstart"===c.type,!i.isTouchEvent&&"which"in c&&3===c.which)return;if(!i.isTouchEvent&&"button"in c&&c.button>0)return;if(i.isTouched&&i.isMoved)return;s.noSwipingClass&&""!==s.noSwipingClass&&c.target&&c.target.shadowRoot&&e.path&&e.path[0]&&(d=y(e.path[0]));const p=s.noSwipingSelector?s.noSwipingSelector:"."+s.noSwipingClass,f=!(!c.target||!c.target.shadowRoot);if(s.noSwiping&&(f?function(e,t){return void 0===t&&(t=this),function t(n){return n&&n!==l()&&n!==u()?(n.assignedSlot&&(n=n.assignedSlot),n.closest(e)||t(n.getRootNode().host)):null}(t)}(p,c.target):d.closest(p)[0]))return void(t.allowClick=!0);if(s.swipeHandler&&!d.closest(s.swipeHandler)[0])return;a.currentX="touchstart"===c.type?c.targetTouches[0].pageX:c.pageX,a.currentY="touchstart"===c.type?c.targetTouches[0].pageY:c.pageY;const h=a.currentX,m=a.currentY,g=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,v=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(g&&(h<=v||h>=r.innerWidth-v)){if("prevent"!==g)return;e.preventDefault()}if(Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=m,i.touchStartTime=b(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==c.type){let e=!0;d.is(i.focusableElements)&&(e=!1,"SELECT"===d[0].nodeName&&(i.isTouched=!1)),n.activeElement&&y(n.activeElement).is(i.focusableElements)&&n.activeElement!==d[0]&&n.activeElement.blur();const r=e&&t.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!r||d[0].isContentEditable||c.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",c)}function M(e){const t=l(),n=this,r=n.touchEventsData,{params:i,touches:s,rtlTranslate:a,enabled:o}=n;if(!o)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),!r.isTouched)return void(r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",c));if(r.isTouchEvent&&"touchmove"!==c.type)return;const u="touchmove"===c.type&&c.targetTouches&&(c.targetTouches[0]||c.changedTouches[0]),d="touchmove"===c.type?u.pageX:c.pageX,p="touchmove"===c.type?u.pageY:c.pageY;if(c.preventedByNestedSwiper)return s.startX=d,void(s.startY=p);if(!n.allowTouchMove)return y(c.target).is(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(s,{startX:d,startY:p,currentX:d,currentY:p}),r.touchStartTime=b()));if(r.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(p<s.startY&&n.translate<=n.maxTranslate()||p>s.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(d<s.startX&&n.translate<=n.maxTranslate()||d>s.startX&&n.translate>=n.minTranslate())return;if(r.isTouchEvent&&t.activeElement&&c.target===t.activeElement&&y(c.target).is(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);if(r.allowTouchCallbacks&&n.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;s.currentX=d,s.currentY=p;const f=s.currentX-s.startX,h=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(f**2+h**2)<n.params.threshold)return;if(void 0===r.isScrolling){let e;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:f*f+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(f))/Math.PI,r.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",c),void 0===r.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(r.startMoving=!0)),r.isScrolling)return void(r.isTouched=!1);if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&c.cancelable&&c.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&c.stopPropagation(),r.isMoved||(i.loop&&!i.cssMode&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)),n.emit("sliderMove",c),r.isMoved=!0;let m=n.isHorizontal()?f:h;s.diff=m,m*=i.touchRatio,a&&(m=-m),n.swipeDirection=m>0?"prev":"next",r.currentTranslate=m+r.startTranslate;let g=!0,v=i.resistanceRatio;if(i.touchReleaseOnEdges&&(v=0),m>0&&r.currentTranslate>n.minTranslate()?(g=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+m)**v)):m<0&&r.currentTranslate<n.maxTranslate()&&(g=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-m)**v)),g&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(m)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,void(s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function L(e){const t=this,n=t.touchEventsData,{params:r,touches:i,rtlTranslate:s,slidesGrid:a,enabled:o}=t;if(!o)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",l),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=b(),u=c-n.touchStartTime;if(t.allowClick){const e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target),t.emit("tap click",l),u<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(n.lastClickTime=b(),w(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let d;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,d=r.followFinger?s?t.translate:-t.translate:-n.currentTranslate,r.cssMode)return;if(t.params.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:d});let p=0,f=t.slidesSizesGrid[0];for(let e=0;e<a.length;e+=e<r.slidesPerGroupSkip?1:r.slidesPerGroup){const t=e<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==a[e+t]?d>=a[e]&&d<a[e+t]&&(p=e,f=a[e+t]-a[e]):d>=a[e]&&(p=e,f=a[a.length-1]-a[a.length-2])}let h=null,m=null;r.rewind&&(t.isBeginning?m=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(h=0));const g=(d-a[p])/f,v=p<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(u>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(g>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?h:p+v):t.slideTo(p)),"prev"===t.swipeDirection&&(g>1-r.longSwipesRatio?t.slideTo(p+v):null!==m&&g<0&&Math.abs(g)>r.longSwipesRatio?t.slideTo(m):t.slideTo(p))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||l.target!==t.navigation.nextEl&&l.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==h?h:p+v),"prev"===t.swipeDirection&&t.slideTo(null!==m?m:p)):l.target===t.navigation.nextEl?t.slideTo(p+v):t.slideTo(p)}}function N(){const{params:e,el:t}=this;if(t&&0===t.offsetWidth)return;e.breakpoints&&this.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:r,snapGrid:i}=this;this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&this.isEnd&&!this.isBeginning&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=r,this.allowSlideNext=n,this.params.watchOverflow&&i!==this.snapGrid&&this.checkOverflow()}function I(e){this.enabled&&(this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function D(){const{wrapperEl:e,rtlTranslate:t,enabled:n}=this;if(!n)return;let r;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-e.scrollLeft:this.translate=-e.scrollTop,-0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();const i=this.maxTranslate()-this.minTranslate();r=0===i?0:(this.translate-this.minTranslate())/i,r!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}let R=!1;function $(){}const z=(e,t)=>{const n=l(),{params:r,touchEvents:i,el:s,wrapperEl:a,device:o,support:c}=e,u=!!r.nested,d="on"===t?"addEventListener":"removeEventListener",p=t;if(c.touch){const t=!("touchstart"!==i.start||!c.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};s[d](i.start,e.onTouchStart,t),s[d](i.move,e.onTouchMove,c.passiveListener?{passive:!1,capture:u}:u),s[d](i.end,e.onTouchEnd,t),i.cancel&&s[d](i.cancel,e.onTouchEnd,t)}else s[d](i.start,e.onTouchStart,!1),n[d](i.move,e.onTouchMove,u),n[d](i.end,e.onTouchEnd,!1);(r.preventClicks||r.preventClicksPropagation)&&s[d]("click",e.onClick,!0),r.cssMode&&a[d]("scroll",e.onScroll),r.updateOnWindowResize?e[p](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",N,!0):e[p]("observerUpdate",N,!0)},F=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var G={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function B(e,t){return function(n){void 0===n&&(n={});const r=Object.keys(n)[0],i=n[r];"object"==typeof i&&null!==i?(["navigation","pagination","scrollbar"].indexOf(r)>=0&&!0===e[r]&&(e[r]={auto:!0}),r in e&&"enabled"in i?(!0===e[r]&&(e[r]={enabled:!0}),"object"!=typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),x(t,n)):x(t,n)):x(t,n)}}const H={eventsEmitter:{on(e,t,n){const r=this;if("function"!=typeof t)return r;const i=n?"unshift":"push";return e.split(" ").forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){const r=this;if("function"!=typeof t)return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];t.apply(r,s)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){if("function"!=typeof e)return this;const n=t?"unshift":"push";return this.eventsAnyListeners.indexOf(e)<0&&this.eventsAnyListeners[n](e),this},offAny(e){if(!this.eventsAnyListeners)return this;const t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off(e,t){const n=this;return n.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n):n},emit(){const e=this;if(!e.eventsListeners)return e;let t,n,r;for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return"string"==typeof s[0]||Array.isArray(s[0])?(t=s[0],n=s.slice(1,s.length),r=e):(t=s[0].events,n=s[0].data,r=s[0].context||e),n.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach(t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(r,[t,...n])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(e=>{e.apply(r,n)})}),e}},update:{updateSize:function(){let e,t;const n=this.$el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:n[0].clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:n[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(n.css("padding-left")||0,10)-parseInt(n.css("padding-right")||0,10),t=t-parseInt(n.css("padding-top")||0,10)-parseInt(n.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function n(e,n){return parseFloat(e.getPropertyValue(t(n))||0)}const r=e.params,{$wrapperEl:i,size:s,rtlTranslate:a,wrongRTL:o}=e,l=e.virtual&&r.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,u=i.children("."+e.params.slideClass),d=l?e.virtual.slides.length:u.length;let p=[];const f=[],h=[];let m=r.slidesOffsetBefore;"function"==typeof m&&(m=r.slidesOffsetBefore.call(e));let g=r.slidesOffsetAfter;"function"==typeof g&&(g=r.slidesOffsetAfter.call(e));const v=e.snapGrid.length,y=e.slidesGrid.length;let w=r.spaceBetween,b=-m,S=0,E=0;if(void 0===s)return;"string"==typeof w&&w.indexOf("%")>=0&&(w=parseFloat(w.replace("%",""))/100*s),e.virtualSize=-w,a?u.css({marginLeft:"",marginBottom:"",marginTop:""}):u.css({marginRight:"",marginBottom:"",marginTop:""}),r.centeredSlides&&r.cssMode&&(T(e.wrapperEl,"--swiper-centered-offset-before",""),T(e.wrapperEl,"--swiper-centered-offset-after",""));const x=r.grid&&r.grid.rows>1&&e.grid;let _;x&&e.grid.initSlides(d);const C="auto"===r.slidesPerView&&r.breakpoints&&Object.keys(r.breakpoints).filter(e=>void 0!==r.breakpoints[e].slidesPerView).length>0;for(let i=0;i<d;i+=1){_=0;const a=u.eq(i);if(x&&e.grid.updateSlide(i,a,d,t),"none"!==a.css("display")){if("auto"===r.slidesPerView){C&&(u[i].style[t("width")]="");const s=getComputedStyle(a[0]),o=a[0].style.transform,l=a[0].style.webkitTransform;if(o&&(a[0].style.transform="none"),l&&(a[0].style.webkitTransform="none"),r.roundLengths)_=e.isHorizontal()?a.outerWidth(!0):a.outerHeight(!0);else{const e=n(s,"width"),t=n(s,"padding-left"),r=n(s,"padding-right"),i=n(s,"margin-left"),o=n(s,"margin-right"),l=s.getPropertyValue("box-sizing");if(l&&"border-box"===l)_=e+i+o;else{const{clientWidth:n,offsetWidth:s}=a[0];_=e+t+r+i+o+(s-n)}}o&&(a[0].style.transform=o),l&&(a[0].style.webkitTransform=l),r.roundLengths&&(_=Math.floor(_))}else _=(s-(r.slidesPerView-1)*w)/r.slidesPerView,r.roundLengths&&(_=Math.floor(_)),u[i]&&(u[i].style[t("width")]=_+"px");u[i]&&(u[i].swiperSlideSize=_),h.push(_),r.centeredSlides?(b=b+_/2+S/2+w,0===S&&0!==i&&(b=b-s/2-w),0===i&&(b=b-s/2-w),Math.abs(b)<.001&&(b=0),r.roundLengths&&(b=Math.floor(b)),E%r.slidesPerGroup==0&&p.push(b),f.push(b)):(r.roundLengths&&(b=Math.floor(b)),(E-Math.min(e.params.slidesPerGroupSkip,E))%e.params.slidesPerGroup==0&&p.push(b),f.push(b),b=b+_+w),e.virtualSize+=_+w,S=_,E+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+g,a&&o&&("slide"===r.effect||"coverflow"===r.effect)&&i.css({width:e.virtualSize+r.spaceBetween+"px"}),r.setWrapperSize&&i.css({[t("width")]:e.virtualSize+r.spaceBetween+"px"}),x&&e.grid.updateWrapperSize(_,p,t),!r.centeredSlides){const t=[];for(let n=0;n<p.length;n+=1){let i=p[n];r.roundLengths&&(i=Math.floor(i)),p[n]<=e.virtualSize-s&&t.push(i)}p=t,Math.floor(e.virtualSize-s)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-s)}if(0===p.length&&(p=[0]),0!==r.spaceBetween){const n=e.isHorizontal()&&a?"marginLeft":t("marginRight");u.filter((e,t)=>!r.cssMode||t!==u.length-1).css({[n]:w+"px"})}if(r.centeredSlides&&r.centeredSlidesBounds){let e=0;h.forEach(t=>{e+=t+(r.spaceBetween?r.spaceBetween:0)}),e-=r.spaceBetween;const t=e-s;p=p.map(e=>e<0?-m:e>t?t+g:e)}if(r.centerInsufficientSlides){let e=0;if(h.forEach(t=>{e+=t+(r.spaceBetween?r.spaceBetween:0)}),e-=r.spaceBetween,e<s){const t=(s-e)/2;p.forEach((e,n)=>{p[n]=e-t}),f.forEach((e,n)=>{f[n]=e+t})}}if(Object.assign(e,{slides:u,snapGrid:p,slidesGrid:f,slidesSizesGrid:h}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){T(e.wrapperEl,"--swiper-centered-offset-before",-p[0]+"px"),T(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-h[h.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(d!==c&&e.emit("slidesLengthChange"),p.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==y&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!(l||r.cssMode||"slide"!==r.effect&&"fade"!==r.effect)){const t=r.containerModifierClass+"backface-hidden",n=e.$el.hasClass(t);d<=r.maxBackfaceHiddenSlides?n||e.$el.addClass(t):n&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i,s=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>r?t.slides.filter(t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e)[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)t.visibleSlides.each(e=>{n.push(e)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!r)break;n.push(a(e))}else n.push(a(t.activeIndex));for(i=0;i<n.length;i+=1)if(void 0!==n[i]){const e=n[i].offsetHeight;s=e>s?e:s}(s||0===s)&&t.$wrapperEl.css("height",s+"px")},updateSlidesOffset:function(){const e=this,t=e.slides;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:s}=t;if(0===r.length)return;void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;i&&(a=e),r.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let e=0;e<r.length;e+=1){const o=r[e];let l=o.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(l-=r[0].swiperSlideOffset);const c=(a+(n.centeredSlides?t.minTranslate():0)-l)/(o.swiperSlideSize+n.spaceBetween),u=(a-s[0]+(n.centeredSlides?t.minTranslate():0)-l)/(o.swiperSlideSize+n.spaceBetween),d=-(a-l),p=d+t.slidesSizesGrid[e];(d>=0&&d<t.size-1||p>1&&p<=t.size||d<=0&&p>=t.size)&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(e),r.eq(e).addClass(n.slideVisibleClass)),o.progress=i?-c:c,o.originalProgress=i?-u:u}t.visibleSlides=y(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:s,isEnd:a}=t;const o=s,l=a;0===r?(i=0,s=!0,a=!0):(i=(e-t.minTranslate())/r,s=i<=0,a=i>=1),Object.assign(t,{progress:i,isBeginning:s,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!o&&t.emit("reachBeginning toEdge"),a&&!l&&t.emit("reachEnd toEdge"),(o&&!s||l&&!a)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const{slides:e,params:t,$wrapperEl:n,activeIndex:r,realIndex:i}=this,s=this.virtual&&t.virtual.enabled;let a;e.removeClass(`${t.slideActiveClass} ${t.slideNextClass} ${t.slidePrevClass} ${t.slideDuplicateActiveClass} ${t.slideDuplicateNextClass} ${t.slideDuplicatePrevClass}`),a=s?this.$wrapperEl.find(`.${t.slideClass}[data-swiper-slide-index="${r}"]`):e.eq(r),a.addClass(t.slideActiveClass),t.loop&&(a.hasClass(t.slideDuplicateClass)?n.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${i}"]`).addClass(t.slideDuplicateActiveClass):n.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${i}"]`).addClass(t.slideDuplicateActiveClass));let o=a.nextAll("."+t.slideClass).eq(0).addClass(t.slideNextClass);t.loop&&0===o.length&&(o=e.eq(0),o.addClass(t.slideNextClass));let l=a.prevAll("."+t.slideClass).eq(0).addClass(t.slidePrevClass);t.loop&&0===l.length&&(l=e.eq(-1),l.addClass(t.slidePrevClass)),t.loop&&(o.hasClass(t.slideDuplicateClass)?n.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass):n.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass),l.hasClass(t.slideDuplicateClass)?n.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass):n.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass)),this.emitSlidesClasses()},updateActiveIndex:function(e){const t=this.rtlTranslate?this.translate:-this.translate,{slidesGrid:n,snapGrid:r,params:i,activeIndex:s,realIndex:a,snapIndex:o}=this;let l,c=e;if(void 0===c){for(let e=0;e<n.length;e+=1)void 0!==n[e+1]?t>=n[e]&&t<n[e+1]-(n[e+1]-n[e])/2?c=e:t>=n[e]&&t<n[e+1]&&(c=e+1):t>=n[e]&&(c=e);i.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(r.indexOf(t)>=0)l=r.indexOf(t);else{const e=Math.min(i.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/i.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),c===s)return void(l!==o&&(this.snapIndex=l,this.emit("snapIndexChange")));const u=parseInt(this.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(this,{snapIndex:l,realIndex:u,previousIndex:s,activeIndex:c}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),a!==u&&this.emit("realIndexChange"),(this.initialized||this.params.runCallbacksOnInit)&&this.emit("slideChange")},updateClickedSlide:function(e){const t=this,n=t.params,r=y(e).closest("."+n.slideClass)[0];let i,s=!1;if(r)for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===r){s=!0,i=e;break}if(!r||!s)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(y(r).attr("data-swiper-slide-index"),10):t.clickedIndex=i,n.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}},translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:r,$wrapperEl:i}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let s=function(e,t){void 0===t&&(t="x");const n=u();let r,i,s;const a=function(e){const t=u();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix("none"===i?"":i)):(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),"x"===t&&(i=n.WebKitCSSMatrix?s.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(i=n.WebKitCSSMatrix?s.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),i||0}(i[0],e);return n&&(s=-s),s||0},setTranslate:function(e,t){const{rtlTranslate:n,params:r,$wrapperEl:i,wrapperEl:s,progress:a}=this;let o,l=0,c=0;this.isHorizontal()?l=n?-e:e:c=e,r.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),r.cssMode?s[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-l:-c:r.virtualTranslate||i.transform(`translate3d(${l}px, ${c}px, 0px)`),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?l:c;const u=this.maxTranslate()-this.minTranslate();o=0===u?0:(e-this.minTranslate())/u,o!==a&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,r,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===r&&(r=!0);const s=this,{params:a,wrapperEl:o}=s;if(s.animating&&a.preventInteractionOnTransition)return!1;const l=s.minTranslate(),c=s.maxTranslate();let u;if(u=r&&e>l?l:r&&e<c?c:e,s.updateProgress(u),a.cssMode){const e=s.isHorizontal();if(0===t)o[e?"scrollLeft":"scrollTop"]=-u;else{if(!s.support.smoothScroll)return _({swiper:s,targetPosition:-u,side:e?"left":"top"}),!0;o.scrollTo({[e?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===t?(s.setTransition(0),s.setTranslate(u),n&&(s.emit("beforeTransitionStart",t,i),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(u),n&&(s.emit("beforeTransitionStart",t,i),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,n&&s.emit("transitionEnd"))}),s.$wrapperEl[0].addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){this.params.cssMode||this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const{params:n}=this;n.cssMode||(n.autoHeight&&this.updateAutoHeight(),P({swiper:this,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const{params:n}=this;this.animating=!1,n.cssMode||(this.setTransition(0),P({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e,t,n,r,i){if(void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),"number"!=typeof e&&"string"!=typeof e)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`);if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const s=this;let a=e;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:p,wrapperEl:f,enabled:h}=s;if(s.animating&&o.preventInteractionOnTransition||!h&&!r&&!i)return!1;const m=Math.min(s.params.slidesPerGroupSkip,a);let g=m+Math.floor((a-m)/s.params.slidesPerGroup);g>=l.length&&(g=l.length-1),(d||o.initialSlide||0)===(u||0)&&n&&s.emit("beforeSlideChangeStart");const v=-l[g];if(s.updateProgress(v),o.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v),n=Math.floor(100*c[e]),r=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<r-(r-n)/2?a=e:t>=n&&t<r&&(a=e+1):t>=n&&(a=e)}if(s.initialized&&a!==d){if(!s.allowSlideNext&&v<s.translate&&v<s.minTranslate())return!1;if(!s.allowSlidePrev&&v>s.translate&&v>s.maxTranslate()&&(d||0)!==a)return!1}let y;if(y=a>d?"next":a<d?"prev":"reset",p&&-v===s.translate||!p&&v===s.translate)return s.updateActiveIndex(a),o.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==o.effect&&s.setTranslate(v),"reset"!==y&&(s.transitionStart(n,y),s.transitionEnd(n,y)),!1;if(o.cssMode){const e=s.isHorizontal(),n=p?v:-v;if(0===t){const t=s.virtual&&s.params.virtual.enabled;t&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),f[e?"scrollLeft":"scrollTop"]=n,t&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._swiperImmediateVirtual=!1})}else{if(!s.support.smoothScroll)return _({swiper:s,targetPosition:n,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(v),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,r),s.transitionStart(n,y),0===t?s.transitionEnd(n,y):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,y))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);let i=e;return this.params.loop&&(i+=this.loopedSlides),this.slideTo(i,t,n,r)},slideNext:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const r=this,{animating:i,enabled:s,params:a}=r;if(!s)return r;let o=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(o=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<a.slidesPerGroupSkip?1:o;if(a.loop){if(i&&a.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return a.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const r=this,{params:i,animating:s,snapGrid:a,slidesGrid:o,rtlTranslate:l,enabled:c}=r;if(!c)return r;if(i.loop){if(s&&i.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const d=u(l?r.translate:-r.translate),p=a.map(e=>u(e));let f=a[p.indexOf(d)-1];if(void 0===f&&i.cssMode){let e;a.forEach((t,n)=>{d>=t&&(e=n)}),void 0!==e&&(f=a[e>0?e-1:e])}let h=0;if(void 0!==f&&(h=o.indexOf(f),h<0&&(h=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(h=h-r.slidesPerViewDynamic("previous",!0)+1,h=Math.max(h,0))),i.rewind&&r.isBeginning){const i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return r.slideTo(h,e,t,n)},slideReset:function(e,t,n){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===r&&(r=.5);const i=this;let s=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,s),o=a+Math.floor((s-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[o]){const e=i.snapGrid[o];l-e>(i.snapGrid[o+1]-e)*r&&(s+=i.params.slidesPerGroup)}else{const e=i.snapGrid[o-1];l-e<=(i.snapGrid[o]-e)*r&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,e,t,n)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:n}=e,r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,s=e.clickedIndex;if(t.loop){if(e.animating)return;i=parseInt(y(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?s<e.loopedSlides-r/2||s>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),s=n.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),w(()=>{e.slideTo(s)})):e.slideTo(s):s>e.slides.length-r?(e.loopFix(),s=n.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),w(()=>{e.slideTo(s)})):e.slideTo(s)}else e.slideTo(s)}},loop:{loopCreate:function(){const e=this,t=l(),{params:n,$wrapperEl:r}=e,i=r.children().length>0?y(r.children()[0].parentNode):r;i.children(`.${n.slideClass}.${n.slideDuplicateClass}`).remove();let s=i.children("."+n.slideClass);if(n.loopFillGroupWithBlank){const e=n.slidesPerGroup-s.length%n.slidesPerGroup;if(e!==n.slidesPerGroup){for(let r=0;r<e;r+=1){const e=y(t.createElement("div")).addClass(`${n.slideClass} ${n.slideBlankClass}`);i.append(e)}s=i.children("."+n.slideClass)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=s.length),e.loopedSlides=Math.ceil(parseFloat(n.loopedSlides||n.slidesPerView,10)),e.loopedSlides+=n.loopAdditionalSlides,e.loopedSlides>s.length&&(e.loopedSlides=s.length);const a=[],o=[];s.each((t,n)=>{const r=y(t);n<e.loopedSlides&&o.push(t),n<s.length&&n>=s.length-e.loopedSlides&&a.push(t),r.attr("data-swiper-slide-index",n)});for(let e=0;e<o.length;e+=1)i.append(y(o[e].cloneNode(!0)).addClass(n.slideDuplicateClass));for(let e=a.length-1;e>=0;e-=1)i.prepend(y(a[e].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:n,loopedSlides:r,allowSlidePrev:i,allowSlideNext:s,snapGrid:a,rtlTranslate:o}=e;let l;e.allowSlidePrev=!0,e.allowSlideNext=!0;const c=-a[t]-e.getTranslate();t<r?(l=n.length-3*r+t,l+=r,e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((o?-e.translate:e.translate)-c)):t>=n.length-r&&(l=-n.length+t+r,l+=r,e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((o?-e.translate:e.translate)-c)),e.allowSlidePrev=i,e.allowSlideNext=s,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:n}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),n.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){if(this.support.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)return;const t="container"===this.params.touchEventsTarget?this.el:this.wrapperEl;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){this.support.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this["container"===this.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){const e=l(),{params:t,support:n}=this;this.onTouchStart=j.bind(this),this.onTouchMove=M.bind(this),this.onTouchEnd=L.bind(this),t.cssMode&&(this.onScroll=D.bind(this)),this.onClick=I.bind(this),n.touch&&!R&&(e.addEventListener("touchstart",$),R=!0),z(this,"on")},detachEvents:function(){z(this,"off")}},breakpoints:{setBreakpoint:function(){const{activeIndex:e,initialized:t,loopedSlides:n=0,params:r,$el:i}=this,s=r.breakpoints;if(!s||s&&0===Object.keys(s).length)return;const a=this.getBreakpoint(s,this.params.breakpointsBase,this.el);if(!a||this.currentBreakpoint===a)return;const o=(a in s?s[a]:void 0)||this.originalParams,l=F(this,r),c=F(this,o),u=r.enabled;l&&!c?(i.removeClass(`${r.containerModifierClass}grid ${r.containerModifierClass}grid-column`),this.emitContainerClasses()):!l&&c&&(i.addClass(r.containerModifierClass+"grid"),(o.grid.fill&&"column"===o.grid.fill||!o.grid.fill&&"column"===r.grid.fill)&&i.addClass(r.containerModifierClass+"grid-column"),this.emitContainerClasses());const d=o.direction&&o.direction!==r.direction,p=r.loop&&(o.slidesPerView!==r.slidesPerView||d);d&&t&&this.changeDirection(),x(this.params,o);const f=this.params.enabled;Object.assign(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),u&&!f?this.disable():!u&&f&&this.enable(),this.currentBreakpoint=a,this.emit("_beforeBreakpoint",o),p&&t&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(e-n+this.loopedSlides,0,!1)),this.emit("breakpoint",o)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let r=!1;const i=u(),s="window"===t?i.innerHeight:n.clientHeight,a=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}});a.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<a.length;e+=1){const{point:s,value:o}=a[e];"window"===t?i.matchMedia(`(min-width: ${o}px)`).matches&&(r=s):o<=n.clientWidth&&(r=s)}return r||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*r;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const{classNames:e,params:t,rtl:n,$el:r,device:i,support:s}=this,a=function(e,t){const n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",t.direction,{"pointer-events":!s.touch},{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:n},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&"column"===t.grid.fill},{android:i.android},{ios:i.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides}],t.containerModifierClass);e.push(...a),r.addClass([...e].join(" ")),this.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(e,t,n,r,i,s){const a=u();let o;function l(){s&&s()}y(e).parent("picture")[0]||e.complete&&i?l():t?(o=new a.Image,o.onload=l,o.onerror=l,r&&(o.sizes=r),n&&(o.srcset=n),t&&(o.src=t)):l()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let n=0;n<e.imagesToLoad.length;n+=1){const r=e.imagesToLoad[n];e.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,t)}}}},W={};class V{constructor(){let e,t;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(1===r.length&&r[0].constructor&&"Object"===Object.prototype.toString.call(r[0]).slice(8,-1)?t=r[0]:[e,t]=r,t||(t={}),t=x({},t),e&&!t.el&&(t.el=e),t.el&&y(t.el).length>1){const e=[];return y(t.el).each(n=>{const r=x({},t,{el:n});e.push(new V(r))}),e}const s=this;var a;s.__swiper__=!0,s.support=k(),s.device=(void 0===(a={userAgent:t.userAgent})&&(a={}),A||(A=function(e){let{userAgent:t}=void 0===e?{}:e;const n=k(),r=u(),i=r.navigator.platform,s=t||r.navigator.userAgent,a={ios:!1,android:!1},o=r.screen.width,l=r.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/);let d=s.match(/(iPad).*OS\s([\d_]+)/);const p=s.match(/(iPod)(.*OS\s([\d_]+))?/),f=!d&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===i;let m="MacIntel"===i;return!d&&m&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${l}`)>=0&&(d=s.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),m=!1),c&&!h&&(a.os="android",a.android=!0),(d||f||p)&&(a.os="ios",a.ios=!0),a}(a)),A),s.browser=(O||(O=function(){const e=u();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),O),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],t.modules&&Array.isArray(t.modules)&&s.modules.push(...t.modules);const o={};s.modules.forEach(e=>{e({swiper:s,extendParams:B(t,o),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const l=x({},G,o);return s.params=x({},l,W,t),s.originalParams=x({},s.params),s.passedParams=x({},t),s.params&&s.params.on&&Object.keys(s.params.on).forEach(e=>{s.on(e,s.params.on[e])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),s.$=y,Object.assign(s,{enabled:s.params.enabled,el:e,classNames:[],slides:y(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===s.params.direction,isVertical:()=>"vertical"===s.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return s.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},s.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},s.support.touch||!s.params.simulateTouch?s.touchEventsTouch:s.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:b(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);const n=this.minTranslate(),r=(this.maxTranslate()-n)*e+n;this.translateTo(r,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each(n=>{const r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:n,slides:r,slidesGrid:i,slidesSizesGrid:s,size:a,activeIndex:o}=this;let l=1;if(n.centeredSlides){let e,t=r[o].swiperSlideSize;for(let n=o+1;n<r.length;n+=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,l+=1,t>a&&(e=!0));for(let n=o-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=o+1;e<r.length;e+=1)(t?i[e]+s[e]-i[o]<a:i[e]-i[o]<a)&&(l+=1);else for(let e=o-1;e>=0;e-=1)i[o]-i[e]<a&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function r(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let i;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(r(),e.params.autoHeight&&e.updateAutoHeight()):(i=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),i||r()),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(this.$el.removeClass(`${this.params.containerModifierClass}${n}`).addClass(`${this.params.containerModifierClass}${e}`),this.emitContainerClasses(),this.params.direction=e,this.slides.each(t=>{"vertical"===e?t.style.width="":t.style.height=""}),this.emit("changeDirection"),t&&this.update()),this}mount(e){const t=this;if(t.mounted)return!0;const n=y(e||t.params.el);if(!(e=n[0]))return!1;e.swiper=t;const r=()=>"."+(t.params.wrapperClass||"").trim().split(" ").join(".");let i=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=y(e.shadowRoot.querySelector(r()));return t.children=e=>n.children(e),t}return n.children(r())})();if(0===i.length&&t.params.createElements){const e=l().createElement("div");i=y(e),e.className=t.params.wrapperClass,n.append(e),n.children("."+t.params.slideClass).each(e=>{i.append(e)})}return Object.assign(t,{$el:n,el:e,$wrapperEl:i,wrapperEl:i[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction")),wrongRTL:"-webkit-box"===i.css("display")}),!0}init(e){return this.initialized||!1===this.mount(e)||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.enabled&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit,!1,!0):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit,!1,!0),this.attachEvents(),this.initialized=!0,this.emit("init"),this.emit("afterInit")),this}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,{params:r,$el:i,$wrapperEl:s,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttr("style"),s.removeAttr("style"),a&&a.length&&a.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(n)),n.destroyed=!0),null}static extendDefaults(e){x(W,e)}static get extendedDefaults(){return W}static get defaults(){return G}static installModule(e){V.prototype.__modules__||(V.prototype.__modules__=[]);const t=V.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>V.installModule(e)),V):(V.installModule(e),V)}}Object.keys(H).forEach(e=>{Object.keys(H[e]).forEach(t=>{V.prototype[t]=H[e][t]})}),V.use([function(e){let{swiper:t,on:n,emit:r}=e;const i=u();let s=null,a=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(r("beforeResize"),r("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&r("orientationchange")};n("init",()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(s=new ResizeObserver(e=>{a=i.requestAnimationFrame(()=>{const{width:n,height:r}=t;let i=n,s=r;e.forEach(e=>{let{contentBoxSize:n,contentRect:r,target:a}=e;a&&a!==t.el||(i=r?r.width:(n[0]||n).inlineSize,s=r?r.height:(n[0]||n).blockSize)}),i===n&&s===r||o()})}),s.observe(t.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",l))}),n("destroy",()=>{a&&i.cancelAnimationFrame(a),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",l)})},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const s=[],a=u(),o=function(e,t){void 0===t&&(t={});const n=new(a.MutationObserver||a.WebkitMutationObserver)(e=>{if(1===e.length)return void i("observerUpdate",e[0]);const t=function(){i("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(t):a.setTimeout(t,0)});n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),s.push(n)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",()=>{if(t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let t=0;t<e.length;t+=1)o(e[t])}o(t.$el[0],{childList:t.params.observeSlideChildren}),o(t.$wrapperEl[0],{attributes:!1})}}),r("destroy",()=>{s.forEach(e=>{e.disconnect()}),s.splice(0,s.length)})}]);var U=V;function q(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Y(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:q(t[n])&&q(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:Y(e[n],t[n]):e[n]=t[n]})}function X(e){return void 0===e&&(e={}),e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function K(e){return void 0===e&&(e={}),e.pagination&&void 0===e.pagination.el}function J(e){return void 0===e&&(e={}),e.scrollbar&&void 0===e.scrollbar.el}function Z(e){void 0===e&&(e="");const t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),n=[];return t.forEach(e=>{n.indexOf(e)<0&&n.push(e)}),n.join(" ")}const Q=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function ee(e,t){let n=t.slidesPerView;if(t.breakpoints){const e=U.prototype.getBreakpoint(t.breakpoints),r=e in t.breakpoints?t.breakpoints[e]:void 0;r&&r.slidesPerView&&(n=r.slidesPerView)}let r=Math.ceil(parseFloat(t.loopedSlides||n,10));return r+=t.loopAdditionalSlides,r>e.length&&(r=e.length),r}function te(e,t){return"undefined"==typeof window?Object(r.useEffect)(e,t):Object(r.useLayoutEffect)(e,t)}const ne=Object(r.createContext)(null),re=()=>Object(r.useContext)(ne),ie=Object(r.createContext)(null),se=()=>Object(r.useContext)(ie);function ae(){return(ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const oe=Object(r.forwardRef)((function(e,t){let{className:n,tag:s="div",wrapperTag:a="div",children:o,onSwiper:l,...c}=void 0===e?{}:e,u=!1;const[d,p]=Object(r.useState)("swiper"),[f,h]=Object(r.useState)(null),[m,g]=Object(r.useState)(!1),v=Object(r.useRef)(!1),y=Object(r.useRef)(null),w=Object(r.useRef)(null),b=Object(r.useRef)(null),S=Object(r.useRef)(null),E=Object(r.useRef)(null),x=Object(r.useRef)(null),T=Object(r.useRef)(null),_=Object(r.useRef)(null),{params:C,passedParams:A,rest:O,events:k}=function(e){void 0===e&&(e={});const t={on:{}},n={},r={};Y(t,U.defaults),Y(t,U.extendedDefaults),t._emitClasses=!0,t.init=!1;const i={},s=Q.map(e=>e.replace(/_/,""));return Object.keys(e).forEach(a=>{s.indexOf(a)>=0?q(e[a])?(t[a]={},r[a]={},Y(t[a],e[a]),Y(r[a],e[a])):(t[a]=e[a],r[a]=e[a]):0===a.search(/on[A-Z]/)&&"function"==typeof e[a]?n[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:i[a]=e[a]}),["navigation","pagination","scrollbar"].forEach(e=>{!0===t[e]&&(t[e]={}),!1===t[e]&&delete t[e]}),{params:t,passedParams:r,rest:i,events:n}}(c),{slides:P,slots:j}=function(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return i.a.Children.toArray(e).forEach(e=>{if(e.type&&"SwiperSlide"===e.type.displayName)t.push(e);else if(e.props&&e.props.slot&&n[e.props.slot])n[e.props.slot].push(e);else if(e.props&&e.props.children){const r=function e(t){const n=[];return i.a.Children.toArray(t).forEach(t=>{t.type&&"SwiperSlide"===t.type.displayName?n.push(t):t.props&&t.props.children&&e(t.props.children).forEach(e=>n.push(e))}),n}(e.props.children);r.length>0?r.forEach(e=>t.push(e)):n["container-end"].push(e)}else n["container-end"].push(e)}),{slides:t,slots:n}}(o),M=()=>{g(!m)};Object.assign(C.on,{_containerClasses(e,t){p(t)}});const L=()=>{if(Object.assign(C.on,k),u=!0,w.current=new U(C),w.current.loopCreate=()=>{},w.current.loopDestroy=()=>{},C.loop&&(w.current.loopedSlides=ee(P,C)),w.current.virtual&&w.current.params.virtual.enabled){w.current.virtual.slides=P;const e={cache:!1,slides:P,renderExternal:h,renderExternalUpdate:!1};Y(w.current.params.virtual,e),Y(w.current.originalParams.virtual,e)}};return y.current||L(),w.current&&w.current.on("_beforeBreakpoint",M),Object(r.useEffect)(()=>()=>{w.current&&w.current.off("_beforeBreakpoint",M)}),Object(r.useEffect)(()=>{!v.current&&w.current&&(w.current.emitSlidesClasses(),v.current=!0)}),te(()=>{if(t&&(t.current=y.current),y.current)return w.current.destroyed&&L(),function(e,t){let{el:n,nextEl:r,prevEl:i,paginationEl:s,scrollbarEl:a,swiper:o}=e;X(t)&&r&&i&&(o.params.navigation.nextEl=r,o.originalParams.navigation.nextEl=r,o.params.navigation.prevEl=i,o.originalParams.navigation.prevEl=i),K(t)&&s&&(o.params.pagination.el=s,o.originalParams.pagination.el=s),J(t)&&a&&(o.params.scrollbar.el=a,o.originalParams.scrollbar.el=a),o.init(n)}({el:y.current,nextEl:E.current,prevEl:x.current,paginationEl:T.current,scrollbarEl:_.current,swiper:w.current},C),l&&l(w.current),()=>{w.current&&!w.current.destroyed&&w.current.destroy(!0,!1)}},[]),te(()=>{!u&&k&&w.current&&Object.keys(k).forEach(e=>{w.current.on(e,k[e])});const e=function(e,t,n,r){const i=[];if(!t)return i;const s=e=>{i.indexOf(e)<0&&i.push(e)},a=r.map(e=>e.key),o=n.map(e=>e.key);return a.join("")!==o.join("")&&s("children"),r.length!==n.length&&s("children"),Q.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(n=>{if(n in e&&n in t)if(q(e[n])&&q(t[n])){const r=Object.keys(e[n]),i=Object.keys(t[n]);r.length!==i.length?s(n):(r.forEach(r=>{e[n][r]!==t[n][r]&&s(n)}),i.forEach(r=>{e[n][r]!==t[n][r]&&s(n)}))}else e[n]!==t[n]&&s(n)}),i}(A,b.current,P,S.current);return b.current=A,S.current=P,e.length&&w.current&&!w.current.destroyed&&function(e){let{swiper:t,slides:n,passedParams:r,changedParams:i,nextEl:s,prevEl:a,scrollbarEl:o,paginationEl:l}=e;const c=i.filter(e=>"children"!==e&&"direction"!==e),{params:u,pagination:d,navigation:p,scrollbar:f,virtual:h,thumbs:m}=t;let g,v,y,w,b;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&u.thumbs&&!u.thumbs.swiper&&(g=!0),i.includes("controller")&&r.controller&&r.controller.control&&u.controller&&!u.controller.control&&(v=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||l)&&(u.pagination||!1===u.pagination)&&d&&!d.el&&(y=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||o)&&(u.scrollbar||!1===u.scrollbar)&&f&&!f.el&&(w=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||a)&&(r.navigation.nextEl||s)&&(u.navigation||!1===u.navigation)&&p&&!p.prevEl&&!p.nextEl&&(b=!0),c.forEach(e=>{if(q(u[e])&&q(r[e]))Y(u[e],r[e]);else{const i=r[e];!0!==i&&!1!==i||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?u[e]=r[e]:!1===i&&t[n=e]&&(t[n].destroy(),"navigation"===n?(u[n].prevEl=void 0,u[n].nextEl=void 0,t[n].prevEl=void 0,t[n].nextEl=void 0):(u[n].el=void 0,t[n].el=void 0))}var n}),c.includes("controller")&&!v&&t.controller&&t.controller.control&&u.controller&&u.controller.control&&(t.controller.control=u.controller.control),i.includes("children")&&h&&u.virtual.enabled?(h.slides=n,h.update(!0)):i.includes("children")&&t.lazy&&t.params.lazy.enabled&&t.lazy.load(),g&&m.init()&&m.update(!0),v&&(t.controller.control=u.controller.control),y&&(l&&(u.pagination.el=l),d.init(),d.render(),d.update()),w&&(o&&(u.scrollbar.el=o),f.init(),f.updateSize(),f.setTranslate()),b&&(s&&(u.navigation.nextEl=s),a&&(u.navigation.prevEl=a),p.init(),p.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&t.changeDirection(r.direction,!1),t.update()}({swiper:w.current,slides:P,passedParams:A,changedParams:e,nextEl:E.current,prevEl:x.current,scrollbarEl:_.current,paginationEl:T.current}),()=>{k&&w.current&&Object.keys(k).forEach(e=>{w.current.off(e,k[e])})}}),te(()=>{var e;!(e=w.current)||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())},[f]),i.a.createElement(s,ae({ref:y,className:Z(`${d}${n?" "+n:""}`)},O),i.a.createElement(ie.Provider,{value:w.current},j["container-start"],X(C)&&i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{ref:x,className:"swiper-button-prev"}),i.a.createElement("div",{ref:E,className:"swiper-button-next"})),J(C)&&i.a.createElement("div",{ref:_,className:"swiper-scrollbar"}),K(C)&&i.a.createElement("div",{ref:T,className:"swiper-pagination"}),i.a.createElement(a,{className:"swiper-wrapper"},j["wrapper-start"],C.virtual?function(e,t,n){if(!n)return null;const r=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:n.offset+"px"}:{top:n.offset+"px"};return t.filter((e,t)=>t>=n.from&&t<=n.to).map(t=>i.a.cloneElement(t,{swiper:e,style:r}))}(w.current,P,f):!C.loop||w.current&&w.current.destroyed?P.map(e=>i.a.cloneElement(e,{swiper:w.current})):function(e,t,n){const r=t.map((t,n)=>i.a.cloneElement(t,{swiper:e,"data-swiper-slide-index":n}));function s(e,t,r){return i.a.cloneElement(e,{key:`${e.key}-duplicate-${t}-${r}`,className:`${e.props.className||""} ${n.slideDuplicateClass}`})}if(n.loopFillGroupWithBlank){const e=n.slidesPerGroup-r.length%n.slidesPerGroup;if(e!==n.slidesPerGroup)for(let t=0;t<e;t+=1){const e=i.a.createElement("div",{className:`${n.slideClass} ${n.slideBlankClass}`});r.push(e)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=r.length);const a=ee(r,n),o=[],l=[];return r.forEach((e,t)=>{t<a&&l.push(s(e,t,"prepend")),t<r.length&&t>=r.length-a&&o.push(s(e,t,"append"))}),e&&(e.loopedSlides=a),[...o,...r,...l]}(w.current,P,C),j["wrapper-end"]),j["container-end"]))}));function le(){return(le=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}oe.displayName="Swiper";const ce=Object(r.forwardRef)((function(e,t){let{tag:n="div",children:s,className:a="",swiper:o,zoom:l,virtualIndex:c,...u}=void 0===e?{}:e;const d=Object(r.useRef)(null),[p,f]=Object(r.useState)("swiper-slide");function h(e,t,n){t===d.current&&f(n)}te(()=>{if(t&&(t.current=d.current),d.current&&o){if(!o.destroyed)return o.on("_slideClass",h),()=>{o&&o.off("_slideClass",h)};"swiper-slide"!==p&&f("swiper-slide")}}),te(()=>{o&&d.current&&f(o.getSlideClasses(d.current))},[o]);const m={isActive:p.indexOf("swiper-slide-active")>=0||p.indexOf("swiper-slide-duplicate-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isDuplicate:p.indexOf("swiper-slide-duplicate")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0||p.indexOf("swiper-slide-duplicate-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0||p.indexOf("swiper-slide-duplicate-next")>=0},g=()=>"function"==typeof s?s(m):s;return i.a.createElement(n,le({ref:d,className:Z(`${p}${a?" "+a:""}`),"data-swiper-slide-index":c},u),i.a.createElement(ne.Provider,{value:m},l?i.a.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof l?l:void 0},g()):g()))}));ce.displayName="SwiperSlide"},122:function(e,t,n){"use strict";var r=n(24),i=n(186),s=n(75),a=n(76),o=n(123),l=i(s);r(l,{getPolyfill:a,implementation:s,shim:o}),e.exports=l},123:function(e,t,n){"use strict";var r=n(24).supportsDescriptors,i=n(76),s=Object.getOwnPropertyDescriptor,a=Object.defineProperty,o=TypeError,l=Object.getPrototypeOf,c=/a/;e.exports=function(){if(!r||!l)throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=i(),t=l(c),n=s(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},124:function(e,t,n){"use strict";var r=Date.prototype.getDay,i=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(s?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===i.call(e))}},125:function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),i=(a(r),a(n(21))),s=a(n(126));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}a(n(97)),t.default=function(e,t){var n,a,d="__create-react-context-"+(0,s.default)()+"__",p=function(e){function n(){var t,r;o(this,n);for(var i=arguments.length,s=Array(i),a=0;a<i;a++)s[a]=arguments[a];return t=r=l(this,e.call.apply(e,[this].concat(s))),r.emitter=u(r.props.value),l(r,t)}return c(n,e),n.prototype.getChildContext=function(){var e;return(e={})[d]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,i=void 0;((s=n)===(a=r)?0!==s||1/s==1/a:s!=s&&a!=a)?i=0:(i="function"==typeof t?t(n,r):1073741823,0!=(i|=0)&&this.emitter.set(e.value,i))}var s,a},n.prototype.render=function(){return this.props.children},n}(r.Component);p.childContextTypes=((n={})[d]=i.default.object.isRequired,n);var f=function(t){function n(){var e,r;o(this,n);for(var i=arguments.length,s=Array(i),a=0;a<i;a++)s[a]=arguments[a];return e=r=l(this,t.call.apply(t,[this].concat(s))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},l(r,e)}return c(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},n.prototype.componentDidMount=function(){this.context[d]&&this.context[d].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},n.prototype.componentWillUnmount=function(){this.context[d]&&this.context[d].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[d]?this.context[d].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return f.contextTypes=((a={})[d]=i.default.object,a),{Provider:p,Consumer:f}},e.exports=t.default},126:function(e,t,n){"use strict";(function(t){var n="__global_unique_id__";e.exports=function(){return t[n]=(t[n]||0)+1}}).call(this,n(18))},127:function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},139:function(e,t,n){"use strict";(function(e,r){var i,s=n(54);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(s.a)(i);t.a=a}).call(this,n(18),n(90)(e))},140:function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var i=r();i.withExtraArgument=r,t.a=i},148:function(e,t,n){"use strict";const r=n(112),i=n(113),s=n(114);function a(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function o(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function l(e,t){return t.decode?i(e):e}function c(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function u(e){const t=(e=c(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function p(e,t){a((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),s="string"==typeof n&&!i&&l(n,e).includes(e.arrayFormatSeparator);n=s?l(n,e):n;const a=i||s?n.split(e.arrayFormatSeparator).map(t=>l(t,e)):null===n?n:l(n,e);r[t]=a};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){let[e,a]=s(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator"].includes(t.arrayFormat)?a:l(a,t),n(l(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=d(n[e],t);else r[e]=d(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):e[t]=n,e},Object.create(null))}t.extract=u,t.parse=p,t.stringify=(e,t)=>{if(!e)return"";a((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[o(t,e),"[",i,"]"].join("")]:[...n,[o(t,e),"[",o(i,e),"]=",o(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[o(t,e),"[]"].join("")]:[...n,[o(t,e),"[]=",o(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[o(t,e),"=",o(r,e)].join("")]:[[n,o(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,o(t,e)]:[...n,[o(t,e),"=",o(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const s=Object.keys(i);return!1!==t.sort&&s.sort(t.sort),s.map(n=>{const i=e[n];return void 0===i?"":null===i?o(n,t):Array.isArray(i)?i.reduce(r(n),[]).join("&"):o(n,t)+"="+o(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=s(e,"#");return Object.assign({url:n.split("?")[0]||"",query:p(u(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:l(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=c(e.url).split("?")[0]||"",i=t.extract(e.url),s=t.parse(i,{sort:!1}),a=Object.assign(s,e.query);let l=t.stringify(a,n);l&&(l="?"+l);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#"+o(e.fragmentIdentifier,n)),`${r}${l}${u}`}},162:function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(0)),i=s(n(125));function s(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||i.default,e.exports=t.default},174:function(e,t,n){"use strict";function r(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}t.a=function(e,t){void 0===t&&(t="");var n,s=e&&e.split("/")||[],a=t&&t.split("/")||[],o=e&&r(e),l=t&&r(t),c=o||l;if(e&&r(e)?a=s:s.length&&(a.pop(),a=a.concat(s)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=a.length;p>=0;p--){var f=a[p];"."===f?i(a,p):".."===f?(i(a,p),d++):d&&(i(a,p),d--)}if(!c)for(;d--;d)a.unshift("..");!c||""===a[0]||a[0]&&r(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h}},175:function(e,t,n){"use strict";function r(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}t.a=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var i=r(t),s=r(n);return i!==t||s!==n?e(i,s):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1}},176:function(e,t,n){var r=n(101),i=n(115),s=n(119),a=n(121),o=n(122),l=n(124),c=Date.prototype.getTime;function u(e){return null==e}function d(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}e.exports=function e(t,n,p){var f=p||{};return!!(f.strict?s(t,n):t===n)||(!t||!n||"object"!=typeof t&&"object"!=typeof n?f.strict?s(t,n):t==n:function(t,n,s){var p,f;if(typeof t!=typeof n)return!1;if(u(t)||u(n))return!1;if(t.prototype!==n.prototype)return!1;if(i(t)!==i(n))return!1;var h=a(t),m=a(n);if(h!==m)return!1;if(h||m)return t.source===n.source&&o(t)===o(n);if(l(t)&&l(n))return c.call(t)===c.call(n);var g=d(t),v=d(n);if(g!==v)return!1;if(g||v){if(t.length!==n.length)return!1;for(p=0;p<t.length;p++)if(t[p]!==n[p])return!1;return!0}if(typeof t!=typeof n)return!1;try{var y=r(t),w=r(n)}catch(e){return!1}if(y.length!==w.length)return!1;for(y.sort(),w.sort(),p=y.length-1;p>=0;p--)if(y[p]!=w[p])return!1;for(p=y.length-1;p>=0;p--)if(!e(t[f=y[p]],n[f],s))return!1;return!0}(t,n,f))}},177:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var s=typeof r;if("string"===s||"number"===s)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===s)for(var o in r)n.call(r,o)&&r[o]&&e.push(o)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},18:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},185:function(e,t,n){"use strict";var r=n(50);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},188:function(e,t,n){"use strict";var r=n(127),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,s,a,o,l,c=!1;t||(t={}),t.debug;try{if(s=r(),a=document.createRange(),o=document.getSelection(),(l=document.createElement("span")).textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){window.clipboardData.clearData();var r=i[t.format]||i.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(l),a.selectNodeContents(l),o.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(r){try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(r){n=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(n,e)}}finally{o&&("function"==typeof o.removeRange?o.removeRange(a):o.removeAllRanges()),l&&document.body.removeChild(l),s()}return c}},20:function(e,t){e.exports=ReactDOM},21:function(e,t,n){e.exports=n(45)()},222:function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),s=n(44),a=n(21),o=n.n(a),l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function c(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var u=i.a.createContext||function(e,t){var n,i,a="__create-react-context-"+(l["__global_unique_id__"]=(l.__global_unique_id__||0)+1)+"__",u=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=c(t.props.value),t}Object(s.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((s=r)===(a=i)?0!==s||1/s==1/a:s!=s&&a!=a)?n=0:(n="function"==typeof t?t(r,i):1073741823,0!=(n|=0)&&this.emitter.set(e.value,n))}var s,a},r.render=function(){return this.props.children},n}(r.Component);u.childContextTypes=((n={})[a]=o.a.object.isRequired,n);var d=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(s.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((i={})[a]=o.a.object,i),{Provider:u,Consumer:d}};t.a=u}).call(this,n(18))},223:function(e,t,n){var r=n(297);e.exports=function e(t,n,i){return r(n)||(i=n||i,n=[]),i=i||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(t,n):r(t)?function(t,n,r){for(var i=[],s=0;s<t.length;s++)i.push(e(t[s],n,r).source);return u(new RegExp("(?:"+i.join("|")+")",d(r)),n)}(t,n,i):function(e,t,n){return p(s(e,n),t,n)}(t,n,i)},e.exports.parse=s,e.exports.compile=function(e,t){return o(s(e,t),t)},e.exports.tokensToFunction=o,e.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function s(e,t){for(var n,r=[],s=0,a=0,o="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],p=n[1],f=n.index;if(o+=e.slice(a,f),a=f+d.length,p)o+=p[1];else{var h=e[a],m=n[2],g=n[3],v=n[4],y=n[5],w=n[6],b=n[7];o&&(r.push(o),o="");var S=null!=m&&null!=h&&h!==m,E="+"===w||"*"===w,x="?"===w||"*"===w,T=n[2]||u,_=v||y;r.push({name:g||s++,prefix:m||"",delimiter:T,optional:x,repeat:E,partial:S,asterisk:!!b,pattern:_?c(_):b?".*":"[^"+l(T)+"]+?"})}}return a<e.length&&(o+=e.substr(a)),o&&r.push(o),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function o(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",d(t)));return function(t,i){for(var s="",o=t||{},l=(i||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,p=o[u.name];if(null==p){if(u.optional){u.partial&&(s+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(d=l(p[f]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");s+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');s+=u.prefix+d}}else s+=u}return s}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,s=!1!==n.end,a="",o=0;o<e.length;o++){var c=e[o];if("string"==typeof c)a+=l(c);else{var p=l(c.prefix),f="(?:"+c.pattern+")";t.push(c),c.repeat&&(f+="(?:"+p+f+")*"),a+=f=c.optional?c.partial?p+"("+f+")?":"(?:"+p+"("+f+"))?":p+"("+f+")"}}var h=l(n.delimiter||"/"),m=a.slice(-h.length)===h;return i||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=s?"$":i&&m?"":"(?="+h+"|$)",u(new RegExp("^"+a,d(n)),t)}},227:function(e,t,n){e.exports={notices:"AdminNotices__notices",notice:"AdminNotices__notice",reconnect:"AdminNotices__reconnect"}},24:function(e,t,n){"use strict";var r=n(101),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),s=Object.prototype.toString,a=Array.prototype.concat,o=Object.defineProperty,l=o&&function(){var e={};try{for(var t in o(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),c=function(e,t,n,r){var i;(!(t in e)||"function"==typeof(i=r)&&"[object Function]"===s.call(i)&&r())&&(l?o(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},s=r(t);i&&(s=a.call(s,Object.getOwnPropertySymbols(t)));for(var o=0;o<s.length;o+=1)c(e,s[o],t[s[o]],n[s[o]])};u.supportsDescriptors=!!l,e.exports=u},296:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useFeedTemplate=t.setIsEditingNewFeed=t.AdminAppSlice=void 0;const r=n(27),i=n(432);t.AdminAppSlice=r.createSlice({name:"app",initialState:{isLoaded:!1,isLoading:!1,isEditingNewFeed:!1,isDoingOnboarding:!1,newFeedTemplate:null},reducers:{setIsDoingOnBoarding(e,t){e.isDoingOnboarding=t.payload},setIsEditingNewFeed(e,t){e.isEditingNewFeed=t.payload},useFeedTemplate(e,t){e.newFeedTemplate=t.payload}},extraReducers:e=>e.addCase(i.loadAdminApp.pending,e=>{e.isLoading=!0}).addCase(i.loadAdminApp.fulfilled,e=>{e.isLoading=!1,e.isLoaded=!0})}),t.setIsEditingNewFeed=t.AdminAppSlice.actions.setIsEditingNewFeed,t.useFeedTemplate=t.AdminAppSlice.actions.useFeedTemplate},297:function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},300:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminLoading=void 0;const o=s(n(0)),l=n(58),c=a(n(301));n(93),t.AdminLoading=function({onLoad:e}){const[t,n]=o.useState(!1),r=o.useCallback(()=>{n(!0),e&&e()},[e,n]),i=new Date,s=3===i.getMonth()&&1===i.getDate()?"spitloght-800w.png":"spotlight-800w.png";return o.default.createElement("div",{className:t?c.default.rootAnimated:c.default.root},o.default.createElement("div",{className:c.default.perspective},o.default.createElement("div",{className:c.default.container},o.default.createElement("img",{src:l.Common.image(s),className:c.default.logo,alt:"Spotlight",onLoad:r}))))}},301:function(e,t,n){e.exports={root:"AdminLoading__root",perspective:"AdminLoading__perspective",container:"AdminLoading__container",logo:"AdminLoading__logo","root-animated":"AdminLoading__root-animated AdminLoading__root",rootAnimated:"AdminLoading__root-animated AdminLoading__root","admin-loading-blink":"AdminLoading__admin-loading-blink",adminLoadingBlink:"AdminLoading__admin-loading-blink","admin-loading-pop-in":"AdminLoading__admin-loading-pop-in",adminLoadingPopIn:"AdminLoading__admin-loading-pop-in","alt-root":"AdminLoading__alt-root",altRoot:"AdminLoading__alt-root","alt-admin-loading-blink":"AdminLoading__alt-admin-loading-blink",altAdminLoadingBlink:"AdminLoading__alt-admin-loading-blink","alt-sizer":"AdminLoading__alt-sizer",altSizer:"AdminLoading__alt-sizer","alt-image":"AdminLoading__alt-image",altImage:"AdminLoading__alt-image","alt-spinner":"AdminLoading__alt-spinner",altSpinner:"AdminLoading__alt-spinner","alt-admin-loading-spinner":"AdminLoading__alt-admin-loading-spinner",altAdminLoadingSpinner:"AdminLoading__alt-admin-loading-spinner"}},310:function(e,t,n){"use strict";e.exports=n(453)},320:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminNotices=void 0;const l=o(n(227)),c=s(n(0)),u=n(1),d=n(110),p=n(34),f=n(23),h={initialized:!1,list:[]};function m(){const e=Array.from(document.querySelectorAll(".sli-notice")),t=Array.from(document.querySelectorAll(".fs-notice.fs-slug-spotlight-social-photo-feeds"));h.list=e.concat(t),h.initialized=!0}t.AdminNotices=function(){const e=u.useStore(),t=c.default.useRef(null);c.useEffect(()=>{t.current&&(h.initialized||m(),h.list.forEach(e=>{t.current.appendChild(e)}))},[]),c.useEffect(()=>{const e=new MutationObserver(e=>{for(const t of e)"childList"===t.type&&t.removedNodes.length>0&&m()});return e.observe(t.current,{childList:!0}),()=>e.disconnect()});const n=u.useSelector(f.selectExpiringAccounts);return c.default.createElement("div",{className:l.default.notices,ref:t},n.map(t=>c.default.createElement("div",{key:t.id,className:"notice notice-warning"},c.default.createElement("p",null,"The access token for the ",c.default.createElement("b",null,"@",t.username)," account is about to expire."," ",c.default.createElement("a",{className:l.default.reconnect,onClick:n=>function(t,n){return a(this,void 0,void 0,(function*(){t.preventDefault(),yield d.connectAccount(e,n.type),yield p.AdminRestApi.media.deleteForAccount(n.id)}))}(n,t)},"Re-connect the account")," ","to keep using it in Spotlight."))))}},33:function(e,t,n){"use strict";n.d(t,"a",(function(){return L})),n.d(t,"b",(function(){return F})),n.d(t,"c",(function(){return N})),n.d(t,"d",(function(){return I})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return z})),n.d(t,"g",(function(){return U})),n.d(t,"h",(function(){return O})),n.d(t,"i",(function(){return k})),n.d(t,"j",(function(){return E})),n.d(t,"k",(function(){return Y})),n.d(t,"l",(function(){return q})),n.d(t,"m",(function(){return W})),n.d(t,"n",(function(){return V})),n.d(t,"o",(function(){return M}));var r="-ms-",i="-moz-",s="-webkit-",a="comm",o="rule",l="decl",c=Math.abs,u=String.fromCharCode;function d(e){return e.trim()}function p(e,t,n){return e.replace(t,n)}function f(e,t){return e.indexOf(t)}function h(e,t){return 0|e.charCodeAt(t)}function m(e,t,n){return e.slice(t,n)}function g(e){return e.length}function v(e){return e.length}function y(e,t){return t.push(e),e}var w=1,b=1,S=0,E=0,x=0,T="";function _(e,t,n,r,i,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:w,column:b,length:a,return:""}}function C(e,t,n){return _(e,t.root,t.parent,n,t.props,t.children,0)}function A(){return x=E>0?h(T,--E):0,b--,10===x&&(b=1,w--),x}function O(){return x=E<S?h(T,E++):0,b++,10===x&&(b=1,w++),x}function k(){return h(T,E)}function P(){return E}function j(e,t){return m(T,e,t)}function M(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function L(e){return w=b=1,S=g(T=e),E=0,[]}function N(e){return T="",e}function I(e){return d(j(E-1,function e(t){for(;O();)switch(x){case t:return E;case 34:case 39:return e(34===t||39===t?t:x);case 40:41===t&&e(t);break;case 92:O()}return E}(91===e?e+2:40===e?e+1:e)))}function D(e){for(;(x=k())&&x<33;)O();return M(e)>2||M(x)>3?"":" "}function R(e,t){for(;--t&&O()&&!(x<48||x>102||x>57&&x<65||x>70&&x<97););return j(e,P()+(t<6&&32==k()&&32==O()))}function $(e,t){for(;O()&&e+x!==57&&(e+x!==84||47!==k()););return"/*"+j(t,E-1)+"*"+u(47===e?e:O())}function z(e){for(;!M(k());)O();return j(e,E)}function F(e){return N(function e(t,n,r,i,s,a,o,l,c){for(var d=0,f=0,h=o,m=0,v=0,w=0,b=1,S=1,E=1,x=0,T="",_=s,C=a,j=i,M=T;S;)switch(w=x,x=O()){case 34:case 39:case 91:case 40:M+=I(x);break;case 9:case 10:case 13:case 32:M+=D(w);break;case 92:M+=R(P()-1,7);continue;case 47:switch(k()){case 42:case 47:y(B($(O(),P()),n,r),c);break;default:M+="/"}break;case 123*b:l[d++]=g(M)*E;case 125*b:case 59:case 0:switch(x){case 0:case 125:S=0;case 59+f:v>0&&g(M)-h&&y(v>32?H(M+";",i,r,h-1):H(p(M," ","")+";",i,r,h-2),c);break;case 59:M+=";";default:if(y(j=G(M,n,r,d,f,s,l,T,_=[],C=[],h),a),123===x)if(0===f)e(M,n,j,j,_,a,h,l,C);else switch(m){case 100:case 109:case 115:e(t,j,j,i&&y(G(t,j,j,0,0,s,l,T,s,_=[],h),C),s,C,h,l,i?_:C);break;default:e(M,j,j,j,[""],C,h,l,C)}}d=f=v=0,b=E=1,T=M="",h=o;break;case 58:h=1+g(M),v=w;default:if(b<1)if(123==x)--b;else if(125==x&&0==b++&&125==A())continue;switch(M+=u(x),x*b){case 38:E=f>0?1:(M+="\f",-1);break;case 44:l[d++]=(g(M)-1)*E,E=1;break;case 64:45===k()&&(M+=I(O())),m=k(),f=g(T=M+=z(P())),x++;break;case 45:45===w&&2==g(M)&&(b=0)}}return a}("",null,null,null,[""],e=L(e),0,[0],e))}function G(e,t,n,r,i,s,a,l,u,f,h){for(var g=i-1,y=0===i?s:[""],w=v(y),b=0,S=0,E=0;b<r;++b)for(var x=0,T=m(e,g+1,g=c(S=a[b])),C=e;x<w;++x)(C=d(S>0?y[x]+" "+T:p(T,/&\f/g,y[x])))&&(u[E++]=C);return _(e,t,n,0===i?o:l,u,f,h)}function B(e,t,n){return _(e,t,n,a,u(x),m(e,2,-2),0)}function H(e,t,n,r){return _(e,t,n,l,m(e,0,r),m(e,r+1,-1),r)}function W(e,t){for(var n="",r=v(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function V(e,t,n,r){switch(e.type){case"@import":case l:return e.return=e.return||e.value;case a:return"";case o:e.value=e.props.join(",")}return g(n=W(e.children,r))?e.return=e.value+"{"+n+"}":""}function U(e){var t=v(e);return function(n,r,i,s){for(var a="",o=0;o<t;o++)a+=e[o](n,r,i,s)||"";return a}}function q(e){return function(t){t.root||(t=t.return)&&e(t)}}function Y(e,t,n,a){if(!e.return)switch(e.type){case l:e.return=function e(t,n){switch(function(e,t){return(((t<<2^h(e,0))<<2^h(e,1))<<2^h(e,2))<<2^h(e,3)}(t,n)){case 5103:return s+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return s+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return s+t+i+t+r+t+t;case 6828:case 4268:return s+t+r+t+t;case 6165:return s+t+r+"flex-"+t+t;case 5187:return s+t+p(t,/(\w+).+(:[^]+)/,s+"box-$1$2"+r+"flex-$1$2")+t;case 5443:return s+t+r+"flex-item-"+p(t,/flex-|-self/,"")+t;case 4675:return s+t+r+"flex-line-pack"+p(t,/align-content|flex-|-self/,"")+t;case 5548:return s+t+r+p(t,"shrink","negative")+t;case 5292:return s+t+r+p(t,"basis","preferred-size")+t;case 6060:return s+"box-"+p(t,"-grow","")+s+t+r+p(t,"grow","positive")+t;case 4554:return s+p(t,/([^-])(transform)/g,"$1"+s+"$2")+t;case 6187:return p(p(p(t,/(zoom-|grab)/,s+"$1"),/(image-set)/,s+"$1"),t,"")+t;case 5495:case 3959:return p(t,/(image-set\([^]*)/,s+"$1$`$1");case 4968:return p(p(t,/(.+:)(flex-)?(.*)/,s+"box-pack:$3"+r+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+s+t+t;case 4095:case 3583:case 4068:case 2532:return p(t,/(.+)-inline(.+)/,s+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(g(t)-1-n>6)switch(h(t,n+1)){case 109:if(45!==h(t,n+4))break;case 102:return p(t,/(.+:)(.+)-([^]+)/,"$1"+s+"$2-$3$1"+i+(108==h(t,n+3)?"$3":"$2-$3"))+t;case 115:return~f(t,"stretch")?e(p(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==h(t,n+1))break;case 6444:switch(h(t,g(t)-3-(~f(t,"!important")&&10))){case 107:return p(t,":",":"+s)+t;case 101:return p(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+s+(45===h(t,14)?"inline-":"")+"box$3$1"+s+"$2$3$1"+r+"$2box$3")+t}break;case 5936:switch(h(t,n+11)){case 114:return s+t+r+p(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return s+t+r+p(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return s+t+r+p(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return s+t+r+t+t}return t}(e.value,e.length);break;case"@keyframes":return W([C(p(e.value,"@","@"+s),e,"")],a);case o:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return W([C(p(t,/:(read-\w+)/,":-moz-$1"),e,"")],a);case"::placeholder":return W([C(p(t,/:(plac\w+)/,":"+s+"input-$1"),e,""),C(p(t,/:(plac\w+)/,":-moz-$1"),e,""),C(p(t,/:(plac\w+)/,r+"input-$1"),e,"")],a)}return""}))}}},36:function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},432:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.loadAdminApp=void 0;const i=n(27),s=n(147),a=n(433),o=n(136),l=n(99),c=n(89);t.loadAdminApp=i.createAsyncThunk("admin-app/load",(e,t)=>r(void 0,void 0,void 0,(function*(){try{yield Promise.all([t.dispatch(l.loadAccounts()),t.dispatch(o.loadSettings()),t.dispatch(s.loadFeeds())]),setTimeout(()=>t.dispatch(a.fetchNews))}catch(e){c.triggerError({type:"load/error",message:e.toString()})}})))},438:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdminAppStore=void 0;const r=n(27),i=n(9),s=n(296),a=n(155),o=n(65),l=n(439),c=n(42),u=n(47),d=n(217);t.AdminAppStore=r.configureStore({reducer:{[s.AdminAppSlice.name]:s.AdminAppSlice.reducer,[u.RouterSlice.name]:u.RouterSlice.reducer,[d.AccountsSlice.name]:d.AccountsSlice.reducer,[a.FeedsSlice.name]:a.FeedsSlice.reducer,[c.SettingsSlice.name]:c.SettingsSlice.reducer,[i.FeedEditorSlice.name]:i.FeedEditorSlice.reducer,[o.ToastsSlice.name]:o.ToastsSlice.reducer,[l.NewsSlice.name]:l.NewsSlice.reducer}})},440:function(e,t,n){e.exports={guides:"GuidesScreen__guides",item:"GuidesScreen__item",desc:"GuidesScreen__desc",desc_content:"GuidesScreen__desc_content",descContent:"GuidesScreen__desc_content",name:"GuidesScreen__name",link:"GuidesScreen__link"}},45:function(e,t,n){"use strict";var r=n(46);function i(){}function s(){}s.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,s,a){if(a!==r){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:i};return n.PropTypes=n,n}},452:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),n(310),n(454),n(455),n(456);const i=r(n(0)),s=r(n(20)),a=n(109),o=r(n(22)),l=n(479),c=n(71),u=n(575),d=n(1046),p=n(434),f=n(435),h=n(436),m=n(438),g=n(432),v=n(65),y=n(422),w=n(16),b=n(229),S=n(47),E=n(59),x=n(1088),T=n(89),_=n(1105),C=n(1114),A=n(1119);T.addErrorHandler(e=>{var t;const n=null!==(t=e.type)&&void 0!==t?t:"generic";m.AdminAppStore.dispatch(v.showToast({key:"admin/"+n,message:e.message,details:e.details,type:v.ToastType.ERROR}))}),c.Screens.register({id:"feeds",title:"Feeds",position:0,component:l.FeedsScreen}),c.Screens.register({id:"new",title:"Add New",isHidden:!0,component:u.NewFeedScreen}),c.Screens.register({id:"edit",title:"Edit",isHidden:!0,component:d.EditFeedScreen}),c.Screens.register({id:"promotions",title:"Promotions",position:40,component:p.Decorate(f.PromotionsScreen,{isFakePro:!0})}),c.Screens.register({id:"analytics",title:"Spotlight Analytics",position:60,component:A.AnalyticsScreen}),c.Screens.register({id:"guides",title:"Guides",position:70,component:C.GuidesScreen}),c.Screens.register({id:"settings",title:"Settings",position:80,component:h.SettingsScreen}),c.Screens.register({id:c.SCREENS.CUSTOM_MEDIA,title:"Custom Posts",isHidden:!0,component:_.CustomMediaScreen}),m.AdminAppStore.dispatch(g.loadAdminApp()),document.addEventListener(y.SETTINGS_SAVE_SUCCESS,()=>{m.AdminAppStore.dispatch(v.showToast({key:"admin/settings/saved",message:"Settings saved."}))}),document.addEventListener(y.SETTINGS_SAVE_FAILED,e=>{T.triggerError({type:"settings/save/error",message:e.detail.error})});const O=document.getElementById("toplevel_page_spotlight-instagram");if(O){const e=O.querySelector("ul.wp-submenu").querySelectorAll("li:not(.wp-submenu-head)"),t=Array.from(e),n=m.AdminAppStore.getState();c.Screens.getList().forEach(e=>{const r=e.state||{},i=w.withPartial({screen:e.id},r),s=b.getRouteAbsUrl(n.router,i),a=t.find(e=>e.querySelector("a").href===s);a&&(a.setAttribute("data-screen",e.id),a.querySelector("a").addEventListener("click",t=>{m.AdminAppStore.dispatch(S.gotoScreen(e.id)),t.preventDefault(),t.stopPropagation()}))}),m.AdminAppStore.subscribe(()=>{const e=m.AdminAppStore.getState(),n=E.selectScreen(e);t.forEach(e=>e.classList.remove("current"));const r=t.find(e=>e.getAttribute("data-screen")===n);r&&r.classList.add("current")})}const k=document.getElementById(o.default.config.rootId);k&&(k.classList.add("wp-core-ui-override"),a.runWhenDomReady(()=>{s.default.render(i.default.createElement(x.AdminRoot,{}),k)}))},453:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(0))&&"object"==typeof r&&"default"in r?r.default:r;function s(e){return s.warnAboutHMRDisabled&&(s.warnAboutHMRDisabled=!0),i.Children.only(e.children)}s.warnAboutHMRDisabled=!1;var a=function e(){return e.shouldWrapWithAppContainer?function(e){return function(t){return i.createElement(s,null,i.createElement(e,t))}}:function(e){return e}};a.shouldWrapWithAppContainer=!1,t.AppContainer=s,t.hot=a,t.areComponentsEqual=function(e,t){return e===t},t.setConfig=function(){},t.cold=function(e){return e},t.configureComponent=function(){}},454:function(e,t,n){e.exports={wpcontent:"wpcontent","wpbody-content":"wpbody-content",wpfooter:"wpfooter",wrap:"wrap",wpbody:"wpbody",adminmenu:"adminmenu","wp-has-current-submenu":"wp-has-current-submenu","wp-submenu":"wp-submenu","sli-onboarding":"sli-onboarding",disabled:"disabled"}},46:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},50:function(e,t,n){"use strict";var r=n(118);e.exports=Function.prototype.bind||r},54:function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},67:function(e,t,n){"use strict";var r=n(106),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return r.isMemo(e)?a:o[e.$$typeof]||i}o[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var o=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(s[v]||r&&r[v]||m&&m[v]||o&&o[v])){var y=p(n,v);try{c(t,v,y)}catch(e){}}}}return t}},72:function(e,t,n){"use strict";var r=n(50),i=n(102),s=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),o=i("%Reflect.apply%",!0)||r.call(a,s),l=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=o(r,a,arguments);if(l&&c){var n=l(t,"length");n.configurable&&c(t,"length",{value:u(0,e.length-(arguments.length-1))})}return t};var d=function(){return o(r,s,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},73:function(e,t,n){"use strict";var r=function(e){return e!=e};e.exports=function(e,t){return 0===e&&0===t?1/e==1/t:e===t||!(!r(e)||!r(t))}},74:function(e,t,n){"use strict";var r=n(73);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},75:function(e,t,n){"use strict";var r=Object,i=TypeError;e.exports=function(){if(null!=this&&this!==r(this))throw new i("RegExp.prototype.flags getter called on non-object");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e}},76:function(e,t,n){"use strict";var r=n(75),i=n(24).supportsDescriptors,s=Object.getOwnPropertyDescriptor,a=TypeError;e.exports=function(){if(!i)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var e=s(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof/a/.dotAll)return e.get}return r}},90:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},91:function(e,t,n){"use strict";(function(t){var r=t.Symbol,i=n(117);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}}).call(this,n(18))},95:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},97:function(e,t,n){"use strict";e.exports=function(){}},98:function(e,t,n){"use strict";function r(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}t.a=function(e,t){var n;void 0===t&&(t=r);var i,s=[],a=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return a&&n===this&&t(r,s)||(i=e.apply(this,r),a=!0,n=this,s=r),i}}}},[[452,3,1,2,0,5,4,6]]]);
ui/dist/admin-common.js CHANGED
@@ -1 +1 @@
1
- (window.webpackJsonpSpotlight=window.webpackJsonpSpotlight||[]).push([[4],[,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonSize=t.ButtonType=void 0;const l=o(n(0)),i=n(13),r=n(138),u=o(n(216));n(303);const s=n(156);var c,d;!function(e){e[e.PRIMARY=0]="PRIMARY",e[e.SECONDARY=1]="SECONDARY",e[e.TOGGLE=2]="TOGGLE",e[e.LINK=3]="LINK",e[e.PILL=4]="PILL",e[e.DANGER=5]="DANGER",e[e.DANGER_LINK=6]="DANGER_LINK",e[e.DANGER_PILL=7]="DANGER_PILL",e[e.NONE=8]="NONE"}(c=t.ButtonType||(t.ButtonType={})),function(e){e[e.SMALL=0]="SMALL",e[e.NORMAL=1]="NORMAL",e[e.LARGE=2]="LARGE",e[e.HERO=3]="HERO"}(d=t.ButtonSize||(t.ButtonSize={})),t.Button=l.default.forwardRef((function(e,t){let{children:n,className:o,type:f,size:m,active:p,tooltip:_,tooltipPlacement:h,onClick:b,linkTo:g}=e,v=a(e,["children","className","type","size","active","tooltip","tooltipPlacement","onClick","linkTo"]);f=null!=f?f:c.SECONDARY,m=null!=m?m:d.NORMAL,h=null!=h?h:"bottom";const[y,E]=l.default.useState(!1),S=()=>E(!0),w=()=>E(!1),P=i.classList(o,f!==c.NONE?"button":null,f===c.PRIMARY?"button-primary":null,f===c.SECONDARY?"button-secondary":null,f===c.LINK?"button-secondary button-tertiary":null,f===c.PILL?"button-secondary button-tertiary button-pill":null,f===c.TOGGLE?"button-toggle":null,f===c.TOGGLE&&p?"button-secondary button-active":null,f!==c.TOGGLE||p?null:"button-secondary",f===c.DANGER?"button-secondary button-danger":null,f===c.DANGER_LINK?"button-tertiary button-danger":null,f===c.DANGER_PILL?"button-tertiary button-danger button-danger-pill":null,m===d.SMALL?"button-small":null,m===d.LARGE?"button-large":null,m===d.HERO?"button-hero":null),O=e=>{b&&b(e)};let C="button";if("string"==typeof g?(C="a",v.href=g):v.type="button",v.tabIndex=0,!_)return l.default.createElement(C,Object.assign({ref:t,className:P,onClick:O},v),n);const M="string"==typeof _,N="btn-tooltip-"+s.uniqueNum(),k=M?_:l.default.createElement(_,{id:N});return l.default.createElement(u.default,{visible:y&&!e.disabled,placement:h,delay:300},({ref:e})=>l.default.createElement(C,Object.assign({ref:t?r.mergeRefs(e,t):e,className:P,onClick:O,onMouseEnter:S,onMouseLeave:w},v),n),k)}))},,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectExpiringAccounts=t.selectBusinessAccounts=t.selectAccountList=t.selectHasBusinessAccounts=t.selectHasAccounts=t.selectAccountById=t.selectAccounts=void 0;const a=n(38),o=n(28),l=n(465);t.selectAccounts=e=>a.Dictionary.values(e.accounts),t.selectAccountById=e=>t=>a.Dictionary.get(t.accounts,e),t.selectHasAccounts=e=>!a.Dictionary.isEmpty(e.accounts),t.selectHasBusinessAccounts=e=>t.selectBusinessAccounts(e).length>0,t.selectAccountList=e=>n=>e.map(e=>t.selectAccountById(e)(n)).filter(e=>!!e),t.selectBusinessAccounts=e=>t.selectAccounts(e).filter(e=>e.type===o.Account.Type.BUSINESS),t.selectExpiringAccounts=e=>t.selectAccounts(e).filter(l.isAccountTokenExpiring)},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectSetting=t.selectSettingsValues=t.selectSettingsAreSaving=t.selectSettingsAreDirty=void 0,t.selectSettingsAreDirty=e=>{var t;return null===(t=e.settings)||void 0===t?void 0:t.isDirty},t.selectSettingsAreSaving=e=>{var t;return null===(t=e.settings)||void 0===t?void 0:t.isSaving},t.selectSettingsValues=e=>{var t,n;return null!==(n=null===(t=e.settings)||void 0===t?void 0:t.values)&&void 0!==n?n:{}},t.selectSetting=e=>t=>{var n,a;return null!==(a=null===(n=t.settings)||void 0===n?void 0:n.values[e])&&void 0!==a?a:null}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberField=void 0;const o=a(n(0)),l=n(586),i=n(342);t.NumberField=function({value:e,onChange:t,min:n,max:a,emptyMin:r,placeholder:u,id:s,unit:c}){n=null!=n?n:0,a=null!=a?a:1/0,e=null!=e?e:"",e=isNaN(parseInt(e.toString()))?n:e,u=null!=u?u:"",r=null!=r&&r;const d=o.default.useCallback(e=>{const o=""===e.target.value?n:parseInt(e.target.value);isNaN(o)||t&&t(i.clampNum(o,n,a))},[n,a,t]),f=o.default.useCallback(()=>{r&&e<=n&&e>=a&&t&&t("")},[r,e,n,a,t]),m=o.default.useCallback(a=>{"ArrowUp"===a.key&&""===e&&t&&t(r?n+1:n)},[e,n,r,t]),p=r&&e<=n?"":e,[_,h]=Array.isArray(c)?c:[c,c],b=1===e?_:h;return b?o.default.createElement(l.UnitInput,{id:s,type:"number",unit:b,value:p,min:n,max:a,placeholder:u+"",onChange:d,onBlur:f,onKeyDown:m}):o.default.createElement("input",{id:s,type:"number",value:p,min:n,max:a,placeholder:u+"",onChange:d,onBlur:f,onKeyDown:m})}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminCommonConfig=void 0,n(431);const o=n(21),l=n(61),i=n(43);t.AdminCommonConfig=SliAdminCommonConfig,o.client.interceptors.request.use(e=>(e.headers["X-WP-Nonce"]=SliAdminCommonConfig.restApi.wpNonce,e),e=>Promise.reject(e));const r={version:SliAdminCommonConfig.version,config:{rootId:"spotlight-instagram-admin",adminUrl:SliAdminCommonConfig.adminUrl,doOnboarding:"1"==SliAdminCommonConfig.doOnboarding,cronSchedules:SliAdminCommonConfig.cronSchedules,cronScheduleOptions:SliAdminCommonConfig.cronSchedules.map(e=>({value:e.key,label:e.display})),postTypes:SliAdminCommonConfig.postTypes,hasElementor:SliAdminCommonConfig.hasElementor,searchPosts:(e,t="")=>a(void 0,void 0,void 0,(function*(){return(yield i.AdminRestApi.wp.posts.search(e,t)).data})),customPosts:{enabled:!1}},restApi:{config:SliAdminCommonConfig.restApi},editor:{preview:SliAdminCommonConfig.preview}};t.default=r,l.RestApi.config.autoImportMedia=!0},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.MessageType=void 0;const o=a(n(0)),l=a(n(485)),i=n(13),r=n(12);var u;function s(e){switch(e){case u.SUCCESS:return"yes-alt";case u.PRO_TIP:return"lightbulb";case u.ERROR:case u.WARNING:return"warning";case u.INFO:default:return"info"}}!function(e){e.SUCCESS="success",e.INFO="info",e.PRO_TIP="pro-tip",e.WARNING="warning",e.ERROR="error",e.GREY="grey"}(u=t.MessageType||(t.MessageType={})),t.Message=({children:e,type:t,showIcon:n,shake:a,isDismissible:u,onDismiss:c})=>{const[d,f]=o.default.useState(!1),m=i.classList(l.default[t],a?l.default.shaking:null);return d?null:o.default.createElement("div",{className:m},n?o.default.createElement("div",null,o.default.createElement(r.Dashicon,{className:l.default.icon,icon:s(t)})):null,o.default.createElement("div",{className:l.default.content},e),u?o.default.createElement("button",{className:l.default.dismissBtn,onClick:()=>{u&&(f(!0),c&&c())}},o.default.createElement(r.Dashicon,{icon:"no"})):null)}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxField=void 0;const o=a(n(0)),l=a(n(597));t.CheckboxField=function({id:e,value:t,onChange:n,disabled:a}){return o.default.createElement("div",{className:l.default.checkboxField},o.default.createElement("div",{className:l.default.aligner},o.default.createElement("input",{id:e,type:"checkbox",value:"1",checked:!!t,onChange:e=>n(e.target.checked),disabled:a})))}},,,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.modifyRoute=t.gotoScreen=t.gotoRoute=t.gotoUrl=t.RouterSlice=t.addRouteInterceptor=t.RouterHistory=void 0;const l=n(16),i=n(137),r=n(51),u=n(215),s=n(18),c=n(38),d=n(156);t.RouterHistory=r.createBrowserHistory();const f={};function m(e,n,a){if(!a&&!n)throw"updateRoute() must be given either a query or a path!";a=null!=a?a:u.createPath(e,n),n=null!=n?n:i.parse(a),c.Dictionary.values(f).some(e=>!1===e(n,a))||(e.query=n,function(e){setTimeout(()=>t.RouterHistory.push(e,{}))}(a))}var p;t.addRouteInterceptor=function(e){const t="ri"+d.uniqueNum();return c.Dictionary.set(f,t,e),()=>c.Dictionary.remove(f,t)},t.RouterSlice=l.createSlice({name:"router",initialState:{baseUrl:(p=null!=p?p:window.location).protocol+"//"+p.host,pathName:p.pathname,query:Object.assign({},i.parse(p.search))},reducers:{gotoUrl(e,t){m(e,null,t.payload)},gotoRoute(e,t){m(e,s.withPartial({page:e.query.page},t.payload))},gotoScreen(e,t){m(e,{page:e.query.page,screen:t.payload})},modifyRoute(e,t){const n=e.query.page,a=s.withPartial(e.query,t.payload);a.page=n,m(e,a)}}}),t.gotoUrl=t.RouterSlice.actions.gotoUrl,t.gotoRoute=t.RouterSlice.actions.gotoRoute,t.gotoScreen=t.RouterSlice.actions.gotoScreen,t.modifyRoute=t.RouterSlice.actions.modifyRoute,o(n(470),t)},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.SelectStyles=void 0;const o=a(n(0)),l=a(n(337)),i=a(n(580)),r=a(n(581)),u=a(n(582)),s=n(13);t.SelectStyles=(e={})=>({option:(e,t)=>Object.assign(Object.assign({},e),{cursor:"pointer",lineHeight:"24px"}),menu:(e,t)=>Object.assign(Object.assign({},e),{margin:"6px 0",boxShadow:"0 2px 8px "+u.default.shadowColor,overflow:"hidden"}),menuList:(e,t)=>({padding:"0px"}),control:(e,t)=>{let n=Object.assign(Object.assign({},e),{cursor:"pointer",lineHeight:"2",minHeight:"40px"});return t.isFocused&&(n.borderColor=u.default.primaryColor,n.boxShadow="0 0 0 1px "+u.default.primaryColor),n},valueContainer:(e,t)=>Object.assign(Object.assign({},e),{paddingTop:0,paddingBottom:0,paddingRight:0}),container:(t,n)=>Object.assign(Object.assign({},t),{width:e.width||"100%"}),multiValue:(e,t)=>Object.assign(Object.assign({},e),{padding:"0 6px"}),input:(e,t)=>Object.assign(Object.assign({},e),{outline:"0 transparent !important",border:"0 transparent !important",boxShadow:"0 0 0 transparent !important"}),indicatorSeparator:(e,t)=>Object.assign(Object.assign({},e),{margin:"0",backgroundColor:"transparent"}),menuPortal:e=>Object.assign(Object.assign({},e),{zIndex:9999999})}),t.Select=o.default.forwardRef((e,n)=>{var a;const c=(null!==(a=e.options)&&void 0!==a?a:[]).find(t=>t.value===e.value);e=Object.assign(Object.assign({},e),{id:void 0,className:s.classList("react-select",e.className),classNamePrefix:"react-select",inputId:e.id,menuPosition:"absolute"});const d=t.SelectStyles(e),f=e.isCreatable?i.default:e.async?r.default:l.default;return o.default.createElement(f,Object.assign({},e,{ref:n,isSearchable:e.isCreatable,value:c,styles:d,theme:e=>Object.assign(Object.assign({},e),{borderRadius:3,colors:Object.assign(Object.assign({},e.colors),{primary:u.default.primaryColor,primary25:u.default.washedColor})}),menuPlacement:"auto",menuPortalTarget:document.body,menuShouldScrollIntoView:!0}))})},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.restoreSettings=t.updateSettings=t.SettingsSlice=void 0;const l=n(16),i=n(60),r=n(93),u=n(18),s=n(126),c=n(79);function d(e){c.Promos.Globals=e.values.promotions,c.Promos.Autos=e.values.autoPromotions}t.SettingsSlice=l.createSlice({name:"settings",initialState:{values:{},original:{},isDirty:!1,isSaving:!1},reducers:{update(e,t){e.values=u.withPartial(e.values,t.payload),e.isDirty=!r.objectsEqual(e.values,e.original),d(e)},restore(e){e.values=i.cloneObj(e.original),e.isDirty=!1,d(e)}},extraReducers:e=>e.addCase(s.saveSettings.pending,e=>{e.isSaving=!0}).addCase(s.saveSettings.rejected,e=>{e.isSaving=!1}).addMatcher(l.isFulfilled(s.saveSettings,s.loadSettings),(e,t)=>{e.original=t.payload,e.values=i.cloneObj(e.original),e.isSaving=!1,e.isDirty=!1,d(e)})}),o(n(878),t),t.updateSettings=t.SettingsSlice.actions.update,t.restoreSettings=t.SettingsSlice.actions.restore},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SidebarLayout=void 0;const r=l(n(0)),u=i(n(889)),s=n(12),c=n(269);function d(e){return r.default.createElement(c.ResponsiveContainer,{breakpoints:[d.BREAKPOINT]},r.default.createElement(f,Object.assign({},e)))}function f({content:e,sidebar:t,primary:n,current:a,useDefaults:o}){const[l,i]=r.useState(n),s=r.default.useContext(c.ResponsiveContext)<=d.BREAKPOINT,f=()=>i(p?"content":"sidebar"),m=()=>i(p?"sidebar":"content"),p="content"===(n=null!=n?n:"content"),_="sidebar"===n,h="content"===(a=o?l:a),b="sidebar"===a,g=p?u.default.layoutPrimaryContent:u.default.layoutPrimarySidebar;return r.default.createElement("div",{className:g},r.default.createElement(d.Context.Provider,{value:s},e&&(h||!s)&&r.default.createElement("div",{className:u.default.content},o&&r.default.createElement(d.Navigation,{align:p?"right":"left",text:!p&&r.default.createElement("span",null,"Go back"),icon:p?"admin-generic":"arrow-left",onClick:p?m:f}),null!=e?e:null),t&&(b||!s)&&r.default.createElement("div",{className:u.default.sidebar},o&&r.default.createElement(d.Navigation,{align:_?"right":"left",text:!_&&r.default.createElement("span",null,"Go back"),icon:_?"admin-generic":"arrow-left",onClick:_?m:f}),null!=t?t:null)))}t.SidebarLayout=d,function(e){e.BREAKPOINT=968,e.Context=r.default.createContext(!1),e.Navigation=function({icon:e,text:t,align:n,onClick:a}){return t=null!=t?t:"Go back",e=null!=e?e:"arrow-left-alt",n=null!=n?n:"left",r.default.createElement("div",{className:"right"===n?u.default.navigationRight:u.default.navigationLeft},r.default.createElement("a",{className:u.default.navLink,onClick:a},e&&r.default.createElement(s.Dashicon,{icon:e}),r.default.createElement("span",null,null!=t?t:"")))}}(d=t.SidebarLayout||(t.SidebarLayout={}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminRestApi=void 0;const o=a(n(454)),l=a(n(455)),i=a(n(456)),r=a(n(457)),u=a(n(458)),s=a(n(459)),c=a(n(460));t.AdminRestApi={feeds:o.default,accounts:l.default,media:i.default,settings:r.default,notifications:u.default,cache:s.default,wp:c.default}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdminResources=void 0;const a=n(32);t.AdminResources={upgradeUrl:"https://spotlightwp.com/pricing/",upgradeNavbarUrl:"https://spotlightwp.com/pricing/?utm_source=sl_plugin&utm_medium=sl_plugin_upgrade&utm_campaign=sl_plugin_upgrade_list",pricingUrl:"https://spotlightwp.com/pricing/",proComingSoonUrl:"https://spotlightwp.com/pro-coming-soon/",supportUrl:"https://spotlightwp.com/support/",supportNavbarUrl:"https://spotlightwp.com/support/?utm_source=sl_plugin&utm_medium=sl_plugin_support&utm_campaign=sl_plugin_support_list",customPersonalInfoUrl:"https://docs.spotlightwp.com/article/624-custom-profile-photo-and-bio-text",connectPersonalAccount:"https://docs.spotlightwp.com/article/551-connect-a-personal-account",connectBusinessAccount:"https://docs.spotlightwp.com/article/552-connect-a-business-account",connectAccessToken:"https://docs.spotlightwp.com/article/731-connect-an-access-token",personalVsBusinessAccount:"https://docs.spotlightwp.com/article/553-personal-vs-business-accounts",businessAccounts:"https://docs.spotlightwp.com/article/555-how-to-switch-to-a-business-account",cacheDocsUrl:"https://docs.spotlightwp.com/article/639-cache",promoTypesSurvey:"https://spotlightwp.com/survey-promote/",tokenPasswordDoc:"https://docs.spotlightwp.com/article/838-access-token-password",tokenGenerator:"https://spotlightwp.com/access-token-generator",upgradeLocalUrl:a.AdminCommonConfig.adminUrl+"admin.php?page=spotlight-instagram-pricing",trialLocalUrl:a.AdminCommonConfig.adminUrl+"admin.php?page=spotlight-instagram-pricing&billing_cycle=annual&trial=true"}},,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectQueryParam=t.selectRoute=t.selectScreen=void 0;const a=n(301),o=n(215);t.selectScreen=e=>{var t;return null!==(t=a.extractFromArray(e.router.query.screen))&&void 0!==t?t:""},t.selectRoute=e=>new l(e.router),t.selectQueryParam=e=>t=>o.getRouteParam(t.router,e);class l{constructor(e){Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.state=e}get path(){return o.getRoutePath(this.state)}getParam(e){return o.getRouteParam(this.state,e)}withQuery(e){return o.routeWithQuery(this.state,e)}setQuery(e){return o.routeSetQuery(this.state,e)}withoutParam(e){return o.routeWithoutParam(this.state,e)}getRelUrl(e){return o.getRouteRelUrl(this.state,e)}getAbsUrl(e){return o.getRouteAbsUrl(this.state,e)}}},,,,,,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPicker=void 0;const r=l(n(0)),u=i(n(601)),s=i(n(602)),c=n(305),d=n(217),f=n(56),m=n(804),p=n(287),_=n(138),h=i(n(32));t.ColorPicker=function({id:e,value:t,disableAlpha:n,onChange:a}){t=null!=t?t:"#fff";const[o,l]=r.default.useState(t),[i,b]=r.default.useState(!1),g=r.default.useRef(),v=r.default.useRef(),y=r.default.useCallback(()=>b(!1),[]),E=r.default.useCallback(()=>b(e=>!e),[]),S=r.default.useCallback(e=>{l(e.rgb),a&&a(e)},[a]),w=r.default.useCallback(e=>{"Escape"===e.key&&i&&(y(),e.preventDefault(),e.stopPropagation())},[i]);r.useEffect(()=>l(t),[t]),d.useDetectOutsideClick(g,y,[v]),c.useDetectTabOut([g,v],y),f.useDocumentEventListener("keydown",w,[i]);const P={preventOverflow:{boundariesElement:document.getElementById(h.default.config.rootId),padding:5}};return r.default.createElement(p.Manager,null,r.default.createElement(p.Reference,null,({ref:t})=>r.default.createElement("button",{ref:_.mergeRefs(g,t),id:e,className:u.default.button,onClick:E},r.default.createElement("span",{className:u.default.colorPreview,style:{backgroundColor:m.colorToString(o)}}))),r.default.createElement(p.Popper,{placement:"bottom-end",positionFixed:!0,modifiers:P},({ref:e,style:t})=>i&&r.default.createElement("div",{className:u.default.popper,ref:_.mergeRefs(v,e),style:t},r.default.createElement(s.default,{color:o,onChange:S,disableAlpha:n}))))}},,,,function(e,t,n){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.Screens=t.SCREENS=void 0,(a=t.SCREENS||(t.SCREENS={})).NEW_FEED="new",a.EDIT_FEED="edit",a.FEED_LIST="feeds",a.SETTINGS="settings",a.PROMOTIONS="promotions",a.CUSTOM_MEDIA="custom_posts",function(e){const t=[];e.getList=function(){return t},e.register=function(n){return t.push(n),t.sort((e,t)=>{var n,a;const o=null!==(n=e.position)&&void 0!==n?n:0,l=null!==(a=t.position)&&void 0!==a?a:0;return Math.sign(o-l)}),e},e.getScreen=function(e){return t.find(t=>t.id===e)}}(t.Screens||(t.Screens={}))},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.removeToast=t.showToast=t.ToastsSlice=void 0;const l=n(16),i=n(38);t.ToastsSlice=l.createSlice({name:"toasts",initialState:{},reducers:{showToast(e,t){i.Dictionary.set(e,t.payload.key,t.payload)},removeToast(e,t){i.Dictionary.remove(e,t.payload)}}}),t.showToast=t.ToastsSlice.actions.showToast,t.removeToast=t.ToastsSlice.actions.removeToast,o(n(469),t)},,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Modal=void 0;const u=l(n(0)),s=r(n(22)),c=r(n(480)),d=n(13),f=n(481),m=n(56),p=n(12),_=n(157),h=r(n(216));function b({rootRef:e,children:t,className:n,isOpen:a,icon:o,title:l,width:i,height:r,onClose:p,allowShadeClose:_,focusChild:h,portalTo:g}){const v=u.default.useRef(),[y]=f.useDelayedFlag(a,!1,b.ANIMATION_DELAY);if(m.useDocumentEventListener("keydown",e=>{a&&"Escape"===e.key&&(p&&p(),e.preventDefault(),e.stopPropagation())},[],[a,p]),u.useEffect(()=>{v&&v.current&&a&&(null!=h?h:v).current.focus()},[]),!y)return null;const E={width:i=null!=i?i:600,height:r},S=d.classList(c.default.modal,a?c.default.opening:c.default.closing,n,"wp-core-ui-override");_=null==_||_;const w=u.default.createElement("div",{className:S,ref:e},u.default.createElement("div",{className:c.default.shade,tabIndex:-1,onClick:()=>{_&&p&&p()}}),u.default.createElement("div",{ref:v,className:c.default.container,style:E,tabIndex:-1},l?u.default.createElement(b.Header,null,u.default.createElement("h1",null,u.default.createElement(b.Icon,{icon:o}),l),u.default.createElement(b.CloseBtn,{onClick:p})):null,t));let P=g;if(void 0===P){const e=document.getElementsByClassName("spotlight-modal-target");P=0===e.length?document.body:e.item(0)}return s.default.createPortal(w,P)}t.Modal=b,function(e){function t(e){switch(e){case"left":return c.default.footerLeft;case"space-between":return c.default.footerSpaceBetween;default:return c.default.footerRight}}e.ANIMATION_DELAY=120,e.CloseBtn=function({onClick:e}){const[t,n]=u.default.useState(!1),a=()=>n(!0),o=()=>n(!1);return u.default.createElement(h.default,{visible:t},({ref:t})=>u.default.createElement(_.DivButton,{ref:t,className:c.default.closeBtn,onClick:e,onMouseEnter:a,onMouseLeave:o,children:u.default.createElement(p.Dashicon,{icon:"no-alt"})}),"Close")},e.Icon=function({icon:e}){return e?u.default.createElement(p.Dashicon,{icon:e,className:c.default.icon}):null},e.Header=function({children:e}){return u.default.createElement("div",{className:c.default.header},e)},e.Content=function(e){var{children:t}=e,n=i(e,["children"]);return u.default.createElement("div",{className:c.default.scroller},u.default.createElement("div",Object.assign({className:c.default.content},n),t))},e.Footer=function({children:e,style:n="right"}){return u.default.createElement("div",{className:t(n)},e)}}(b=t.Modal||(t.Modal={}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProPill=void 0;const o=a(n(0)),l=a(n(496)),i=n(13),r=n(45);t.ProPill=({className:e,children:t})=>{const n=o.default.useCallback(()=>{window.open(r.AdminResources.pricingUrl,"_blank")},[]);return o.default.createElement("span",{className:i.classList(l.default.pill,e),onClick:n,tabIndex:-1},"PRO",t)}},,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsField=void 0;const o=a(n(0)),l=a(n(877)),i=a(n(240));t.SettingsField=function({id:e,label:t,tooltip:n,fullWidth:a,children:r}){return a=a||!t,o.default.createElement("div",{className:l.default.root},t&&o.default.createElement("div",{className:l.default.label},o.default.createElement("label",{htmlFor:e},t)),o.default.createElement("div",{className:l.default.container},o.default.createElement("div",{className:a?l.default.controlFullWidth:l.default.controlPartialWidth},r),n&&o.default.createElement("div",{className:l.default.tooltip},o.default.createElement(i.default,null,n))))}},,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.updateAccount=t.deleteAccount=t.loadAccounts=void 0;const o=n(16),l=n(61),i=n(43),r=n(21);t.loadAccounts=o.createAsyncThunk("accounts/load",()=>a(void 0,void 0,void 0,(function*(){var e;try{const t=yield l.RestApi.accounts.get();if("object"==typeof t&&Array.isArray(t.data))return null!==(e=null==t?void 0:t.data)&&void 0!==e?e:[]}catch(e){throw r.getErrorResponseMessage(e)}}))),t.deleteAccount=o.createAsyncThunk("accounts/delete",e=>a(void 0,void 0,void 0,(function*(){try{const t=yield i.AdminRestApi.accounts.delete(e);if("object"==typeof t&&Array.isArray(t.data))return t.data}catch(e){throw r.getErrorResponseMessage(e)}throw"Spotlight encountered a problem while trying to delete the account. Kindly contact customer support for assistance."}))),t.updateAccount=o.createAsyncThunk("accounts/update",e=>a(void 0,void 0,void 0,(function*(){return yield i.AdminRestApi.accounts.update(e),e})))},,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectHasFeeds=t.selectFeedById=t.selectFeeds=void 0;const a=n(38);t.selectFeeds=e=>a.Dictionary.values(e.feeds),t.selectFeedById=e=>t=>e?a.Dictionary.get(t.feeds,e):null,t.selectHasFeeds=e=>!a.Dictionary.isEmpty(e.feeds)},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.saveSettings=t.loadSettings=void 0;const o=n(16),l=n(389),i=n(329),r=n(21),u=n(43),s=n(79),c=n(38);function d(e){return a(this,void 0,void 0,(function*(){try{const t=yield e();if("object"==typeof t&&void 0!==t.data)return function(e){var t,n,a,o,l,i,r,u,d,f,m,p;const _=Object.assign(Object.assign({},e),{importLimit:null!==(t=e.importLimit)&&void 0!==t?t:0,importerInterval:null!==(n=e.importerInterval)&&void 0!==n?n:"",cleanerAgeLimit:null!==(a=e.cleanerAgeLimit)&&void 0!==a?a:"",cleanerInterval:null!==(o=e.cleanerInterval)&&void 0!==o?o:"",preloadMedia:null!==(l=e.preloadMedia)&&void 0!==l&&l,hashtagWhitelist:null!==(i=e.hashtagWhitelist)&&void 0!==i?i:[],hashtagBlacklist:null!==(r=e.hashtagBlacklist)&&void 0!==r?r:[],captionWhitelist:null!==(u=e.captionWhitelist)&&void 0!==u?u:[],captionBlacklist:null!==(d=e.captionBlacklist)&&void 0!==d?d:[],autoPromotions:null!==(f=e.autoPromotions)&&void 0!==f?f:[],promotions:null!==(m=e.promotions)&&void 0!==m?m:{},thumbnails:null!==(p=e.thumbnails)&&void 0!==p?p:[]});return Array.isArray(_.promotions)&&0===_.promotions.length&&(_.promotions={}),_.promotions=c.Dictionary.map(_.promotions,s.Promos.createFromV1Instance),_.autoPromotions=_.autoPromotions.map(s.Promos.Automation.createFromV1Instance),_}(t.data)}catch(e){throw r.getErrorResponseMessage(e)}throw"Spotlight encountered a problem while trying to load your settings. Kindly contact customer support for assistance."}))}t.loadSettings=o.createAsyncThunk("settings/load",()=>a(void 0,void 0,void 0,(function*(){return yield d(()=>u.AdminRestApi.settings.get())}))),t.saveSettings=o.createAsyncThunk("settings/save",(e,t)=>a(void 0,void 0,void 0,(function*(){const e=t.getState().settings;try{const t=yield d(()=>u.AdminRestApi.settings.save(e.values));return document.dispatchEvent(i.createCustomEvent(l.SETTINGS_SAVE_SUCCESS)),t}catch(e){throw document.dispatchEvent(i.createCustomEvent(l.SETTINGS_SAVE_FAILED,{error:e})),e}})))},,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.connectAccessToken=t.reconnectAccount=t.connectFbAccount=t.connectIgAccount=t.connectAccount=t.AccountConnectedEvent=void 0;const o=n(28),l=n(174),i=n(92),r=n(25),u=n(43),s=n(32);var c=o.Account.Type;window.SliAccountManagerState={accessToken:null,connectedId:null};const d=window.SliAccountManagerState;class f extends Event{constructor(e){super(f.NAME),Object.defineProperty(this,"account",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.account=e}}function m(e,t){return t===c.PERSONAL?p(e):_(e)}function p(e){return g(e,s.AdminCommonConfig.restApi.personalAuthUrl)}function _(e){return g(e,s.AdminCommonConfig.restApi.businessAuthUrl)}t.AccountConnectedEvent=f,Object.defineProperty(f,"NAME",{enumerable:!0,configurable:!0,writable:!0,value:"sli/account/connected"}),t.connectAccount=m,t.connectIgAccount=p,t.connectFbAccount=_,t.reconnectAccount=function(e,t){return a(this,void 0,void 0,(function*(){yield m(e,t.type),yield u.AdminRestApi.media.deleteForAccount(t.id)}))},t.connectAccessToken=function(e,t,n){return a(this,void 0,void 0,(function*(){const a=yield u.AdminRestApi.accounts.connect(t,n),o=a.data.accountId;return yield v(e,o),a.data.accountId}))};let h=null,b=null;function g(e,t){return new Promise((n,o)=>{d.connectedId=null,null==h||h.closed?h=l.openWindow(t,"_blank",Object.assign({dependent:"yes",resizable:"yes",toolbar:"no",location:"no",scrollbars:"no"},l.getWindowCenterBounds(700,800))):h.focus(),(null==h?void 0:h.closed)&&o("Could not create window"),b=setInterval(()=>a(this,void 0,void 0,(function*(){if(null==h?void 0:h.closed){clearInterval(b);const t=d.connectedId;null===t?o("No account was connected"):v(e,t).then(()=>n(t))}})),500)})}function v(e,t){return a(this,void 0,void 0,(function*(){yield e.dispatch(i.loadAccounts());const n=r.selectAccountById(t)(e.getState());document.dispatchEvent(new f(n)),d.connectedId=null}))}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.deleteFeed=t.duplicateFeed=t.saveFeed=t.loadFeeds=void 0;const o=n(16),l=n(61),i=n(43),r=n(67),u=n(60),s=n(21);t.loadFeeds=o.createAsyncThunk("feeds/load",()=>a(void 0,void 0,void 0,(function*(){try{const e=yield l.RestApi.feeds.get();if("object"==typeof e&&Array.isArray(e.data))return e.data}catch(e){throw s.getErrorResponseMessage(e)}throw"Spotlight encountered a problem trying to load your feeds. Kindly contact customer support for assistance."}))),t.saveFeed=o.createAsyncThunk("feeds/save",(e,t)=>a(void 0,void 0,void 0,(function*(){t.dispatch(r.showToast({key:"feeds/saving",message:"Saving feed. Please wait ...",type:r.ToastType.STICKY}));const n=yield i.AdminRestApi.feeds.save(e);return t.dispatch(r.removeToast("feeds/saving")),t.dispatch(r.showToast({key:"feeds/saved",message:"Feed saved!"})),n.data.feed}))),t.duplicateFeed=o.createAsyncThunk("feeds/duplicate",(e,t)=>a(void 0,void 0,void 0,(function*(){t.dispatch(r.showToast({key:"admin/feeds/duplicate/wait",message:"Duplicating feed. Please wait ...",type:r.ToastType.STICKY}));const n={id:null,name:"Copy of "+e.name,usages:[],options:u.cloneObj(e.options)};try{return(yield i.AdminRestApi.feeds.save(n)).data.feed}finally{t.dispatch(r.removeToast("admin/feeds/duplicate/wait"))}}))),t.deleteFeed=o.createAsyncThunk("feeds/delete",(e,t)=>a(void 0,void 0,void 0,(function*(){try{return yield i.AdminRestApi.feeds.delete(e.id),e.id}catch(e){t.dispatch(r.showToast({key:"feeds/delete/error",message:e.toString(),type:r.ToastType.ERROR}))}})))},,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MenuHeading=t.MenuStatic=t.MenuSeparator=t.MenuContent=t.MenuItem=t.StatefulMenu=t.Menu=void 0;const u=l(n(0)),s=n(287),c=n(305),d=n(217),f=r(n(32));n(476);const m=n(13);function p(e){var{children:n}=e,a=i(e,["children"]);const[o,l]=u.useState(!1),r=()=>l(!0),s=()=>l(!1),c={openMenu:r,closeMenu:s};return u.default.createElement(p.Context.Provider,{value:c},u.default.createElement(t.Menu,Object.assign({isOpen:o,onBlur:s},a),({ref:e})=>n[0]({ref:e,openMenu:r}),n[1]))}function _(e,t){return Object.assign(Object.assign({},e),{opacity:1,pointerEvents:"all",visibility:t?"hidden":"visible"})}t.Menu=({children:e,className:t,refClassName:n,isOpen:a,onBlur:o,placement:l,modifiers:i,useVisibility:r})=>{l=null!=l?l:"bottom-end",r=null!=r&&r;const p=u.default.useRef(),h=a||r,b=!a&&r,g=Object.assign({preventOverflow:{boundariesElement:document.getElementById(f.default.config.rootId),padding:5}},i),v=u.useCallback(()=>{a&&o()},[a,o]),y=e=>{switch(e.key){case"ArrowDown":break;case"Escape":v();break;default:return}e.preventDefault(),e.stopPropagation()};return d.useDetectOutsideClick(p,v,[p],[a]),c.useDetectTabOut([p],v),u.default.createElement("div",{ref:p,className:m.classList("menu__ref",n)},u.default.createElement(s.Manager,null,u.default.createElement(s.Reference,null,t=>e[0](t)),u.default.createElement(s.Popper,{placement:l,positionFixed:!0,modifiers:g},({ref:n,style:a,placement:o})=>h?u.default.createElement("div",{ref:n,className:"menu",style:_(a,b),"data-placement":o,onKeyDown:y},u.default.createElement("div",{className:"menu__container"+(t?" "+t:"")},e[1])):null)))},t.StatefulMenu=p,function(e){e.Context=u.default.createContext({openMenu:null,closeMenu:null})}(p=t.StatefulMenu||(t.StatefulMenu={})),t.MenuItem=({children:e,onClick:t,disabled:n,active:a,danger:o})=>{const l=m.bemClass("menu__item",{"--disabled":n,"--active":a,"--danger":!n&&o});return u.default.createElement(p.Context.Consumer,null,({closeMenu:o})=>u.default.createElement("div",{className:l},u.default.createElement("button",{onClick:()=>{o&&o(),!a&&!n&&t&&t()}},e)))},t.MenuContent=({children:e})=>e,t.MenuSeparator=()=>u.default.createElement("div",{className:"menu__separator"}),t.MenuStatic=({children:e})=>u.default.createElement("div",{className:"menu__static"},e),t.MenuHeading=({children:e})=>u.default.createElement("div",{className:"menu__heading"},e)},,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Spoiler=void 0;const r=l(n(0)),u=i(n(484)),s=n(13),c=n(138),d=n(12),f=n(102);t.Spoiler=r.default.forwardRef((function({label:e,className:t,isOpen:n,defaultOpen:a,showIcon:o,disabled:l,stealth:i,fitted:m,scrollOnOpen:p,onClick:_,children:h},b){o=null==o||o,l=null!=l&&l,p=null!=p&&p;const[g,v]=r.default.useState(!!a),y=void 0!==n;y||(n=g);const E=r.default.useRef(),S=()=>{l||(!n&&p&&f.scrollIntoView(E.current,{behavior:"smooth"}),y||v(!n),_&&_())},w=n&&void 0===_&&!o,P=w?void 0:0,O=w?void 0:"button",C=s.classList(n?u.default.spoilerOpen:u.default.spoilerClosed,l&&u.default.disabled,m&&u.default.fitted,i&&u.default.stealth,w&&u.default.static,t),M=Array.isArray(e)?e.map((e,t)=>r.default.createElement(r.Fragment,{key:t},e)):"string"==typeof e?r.default.createElement("span",null,e):e;return r.default.createElement("div",{ref:c.mergeRefs(E,b),className:C},r.default.createElement("div",{className:u.default.header,onClick:S,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||S()},role:O,tabIndex:P},r.default.createElement("div",{className:u.default.label},M),o&&r.default.createElement(d.Dashicon,{icon:"arrow-down-alt2",className:u.default.icon})),n&&r.default.createElement("div",{className:u.default.content},h))}))},,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedsSlice=t.Feed=void 0;const l=n(16),i=n(38),r=n(136),u=n(230);function s(e,t){t.id&&(t.options=u.createFeedOptions(t.options),i.Dictionary.set(e,t.id,t))}(t.Feed||(t.Feed={})).getLabel=function(e){var t;const n=null===(t=e.name)||void 0===t?void 0:t.trim();return(null==n?void 0:n.length)>0?n:"(no name)"},t.FeedsSlice=l.createSlice({name:"feeds",initialState:{},reducers:{},extraReducers:e=>e.addCase(r.loadFeeds.fulfilled,(e,t)=>{t.payload.forEach(t=>s(e,t))}).addCase(r.deleteFeed.fulfilled,(e,t)=>{i.Dictionary.remove(e,t.payload)}).addMatcher(l.isFulfilled(r.saveFeed,r.duplicateFeed),(e,t)=>{s(e,t.payload)})}),o(n(136),t)},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=a(n(0)),l=a(n(321)),i=n(77),r=n(9);t.default=function({children:e,title:t,buttons:n,onAccept:a,onCancel:u,isOpen:s,okDisabled:c,cancelDisabled:d}){n=null!=n?n:["OK","Cancel"];const f=()=>u&&u();return o.default.createElement(i.Modal,{isOpen:s,title:t,onClose:f,className:l.default.root},o.default.createElement(i.Modal.Content,null,"string"==typeof e?o.default.createElement("p",null,e):e),o.default.createElement(i.Modal.Footer,null,o.default.createElement(r.Button,{className:l.default.button,type:r.ButtonType.SECONDARY,onClick:f,disabled:d},n[1]),o.default.createElement(r.Button,{className:l.default.button,type:r.ButtonType.PRIMARY,onClick:()=>a&&a(),disabled:c},n[0])))}},,,function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldSet=void 0;const l=o(n(0)),i=o(n(806)),r=n(13);t.FieldSet=function(e){var{className:t}=e,n=a(e,["className"]);return l.default.createElement("div",Object.assign({className:r.classList(i.default.root,t)},n))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LimitedMultiTextInput=void 0;const o=a(n(0)),l=n(870);t.LimitedMultiTextInput=function(e){const[t,n]=o.default.useState("");e.exclude&&0===e.exclude.length&&t.length>0&&n("");let a=void 0;if(t.length>0){const n="%s",l=e.excludeMsg.indexOf("%s"),i=e.excludeMsg.substring(0,l),r=e.excludeMsg.substring(l+n.length);a=o.default.createElement(o.default.Fragment,null,i,o.default.createElement("code",null,t),r)}const i=Object.assign(Object.assign({},e),{message:a,onChange:t=>{const a=e.exclude?t.findIndex(t=>e.exclude.includes(t)):-1;a>-1?n(t[a]):e.onChange(t)}});return o.default.createElement(l.MultiTextInput,Object.assign({},i))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsGroup=void 0;const o=a(n(0)),l=a(n(875));t.SettingsGroup=function({title:e,before:t,after:n,children:a}){return o.default.createElement("div",{className:l.default.root},e&&e.length>0&&o.default.createElement("h1",{className:l.default.title},e),t&&o.default.createElement("div",{className:l.default.beforeFields},t),a&&o.default.createElement("div",{className:l.default.fieldList},a),n&&o.default.createElement("div",{className:l.default.afterFields},n))}},,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldRow=void 0;const o=a(n(0)),l=a(n(563)),i=a(n(240)),r=n(78),u=n(334),s=n(46);t.FieldRow=function({label:e,labelId:t,wide:n,centered:a,tooltip:c,disabled:d,isResponsive:f,proOnly:m,isPro:p,children:_}){p=null!=p?p:s.Tier.isAtLeast(s.Tier.PRO);const h=m&&!p,b=(d=d||h)?n?l.default.disabledWide:l.default.disabled:n?l.default.containerWide:l.default.container;return o.default.createElement("div",{className:b},e&&o.default.createElement("div",{className:a?l.default.labelCentered:l.default.labelNormal},o.default.createElement("div",{className:l.default.labelAligner},o.default.createElement("label",{htmlFor:t},e,c&&o.default.createElement(o.default.Fragment,null," ",o.default.createElement(i.default,null,c))))),o.default.createElement("div",{className:l.default.content},f&&o.default.createElement("div",{className:l.default.responsiveContainer},o.default.createElement(u.FeedEditorDeviceCycleButton,null),o.default.createElement("div",{className:l.default.responsiveField},_)),!f&&o.default.createElement("div",{className:a?l.default.fieldCentered:l.default.fieldNormal},_)),h&&o.default.createElement(r.ProPill,{className:l.default.proPill}))}},,,,,function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Sidebar=void 0;const l=o(n(0)),i=o(n(892));function r(e){var{children:t,padded:n,disabled:o}=e,r=a(e,["children","padded","disabled"]);return l.default.createElement("div",Object.assign({className:o?i.default.disabled:i.default.sidebar},r),l.default.createElement("div",{className:n?i.default.paddedContent:i.default.content},null!=t?t:null))}t.Sidebar=r,function(e){e.padded=i.default.padded}(r=t.Sidebar||(t.Sidebar={}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SpotlightNavbarLogo=void 0;const o=a(n(0)),l=a(n(923)),i=n(314);function r({children:e}){const t=Array.isArray(e)?e:[e];return o.default.createElement(o.default.Fragment,null,t.map((e,t)=>o.default.createElement(u,{key:t},e)))}function u({children:e}){return o.default.createElement("div",{className:l.default.item},e)}function s({children:e,style:t}){return o.default.createElement("div",{className:l.default.pathSegment},e,o.default.createElement(c,{style:t}))}function c({style:e}){if("none"===e)return null;const t="chevron"===e?"M0 0 L100 50 L0 100":"M50 0 L50 100";return o.default.createElement("div",{className:l.default.separator},o.default.createElement("svg",{viewBox:"0 0 100 100",width:"100%",height:"100%",preserveAspectRatio:"none"},o.default.createElement("path",{d:t,fill:"none",stroke:"currentcolor",strokeLinejoin:"bevel"})))}t.default=function({children:e,pathStyle:t}){let{path:n,left:a,right:i,center:u}=e;return n=null!=n?n:[],a=null!=a?a:[],i=null!=i?i:[],u=null!=u?u:[],o.default.createElement("div",{className:l.default.root},o.default.createElement("div",{className:l.default.leftList},o.default.createElement("div",{className:l.default.pathList},n.map((e,n)=>o.default.createElement(s,{key:n,style:t},o.default.createElement("div",{className:l.default.item},e)))),o.default.createElement("div",{className:l.default.leftList},o.default.createElement(r,null,a))),o.default.createElement("div",{className:l.default.centerList},o.default.createElement(r,null,u)),o.default.createElement("div",{className:l.default.rightList},o.default.createElement(r,null,i)))},t.SpotlightNavbarLogo=function(){return o.default.createElement(i.SpotlightLogo,null)}},,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Link=void 0;const l=o(n(0)),i=n(1),r=n(55),u=n(39);t.Link=function(e){var{to:t,onClick:n,newTab:o,absolute:s}=e,c=a(e,["to","onClick","newTab","absolute"]);const d=i.useDispatch(),f=i.useSelector(r.selectRoute),m=s?f.setQuery(t):f.withQuery(t);return l.default.createElement("a",Object.assign({href:m,onClick:e=>{if(o||2===e.button)window.open(m,"_blank");else{const e=s?u.gotoRoute(t):u.modifyRoute(t);d(e)}e.preventDefault(),e.stopPropagation()}},c))}},,,function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=o(n(0)),i=o(n(475)),r=n(28),u=n(13);t.default=function(e){var{account:t,square:n,className:o}=e,s=a(e,["account","square","className"]);const c=r.Account.getProfilePicUrl(t),d=u.classList(n?i.default.square:i.default.round,o);return l.default.createElement("img",Object.assign({},s,{className:d,src:r.Account.DefaultProfilePic,srcSet:c+" 1x",alt:t.username+" profile picture"}))}},,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SaveButton=void 0;const o=a(n(548)),l=a(n(0)),i=n(9),r=n(13);t.SaveButton=function({className:e,content:t,tooltip:n,onClick:a,disabled:u,isSaving:s}){return t=null!=t?t:e=>e?"Saving ...":"Save",n=null!=n?n:"Save",l.default.createElement(i.Button,{className:r.classList(o.default.root,e),type:i.ButtonType.PRIMARY,size:i.ButtonSize.LARGE,tooltip:n,onClick:()=>a&&a(),disabled:u},s&&l.default.createElement("div",{className:o.default.savingOverlay}),t(s))}},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MultiHashtagInput=void 0;const o=a(n(0)),l=n(149),i=n(882),r=n(222);t.MultiHashtagInput=function(e){var t;const n="string"==typeof e.value?[e.value]:null!==(t=e.value)&&void 0!==t?t:[],a=Object.assign(Object.assign({},e),{value:n.map(e=>i.prefix(e,"#")),sanitize:r.sanitizeHashtag});return o.default.createElement(l.LimitedMultiTextInput,Object.assign({},a))}},,,,function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.loadTemplates=void 0;const o=n(16),l=n(61);t.loadTemplates=o.createAsyncThunk("templates/load",()=>a(void 0,void 0,void 0,(function*(){var e;const t=yield l.RestApi.templates.get();return null!==(e=null==t?void 0:t.data)&&void 0!==e?e:[]})))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccountsSlice=void 0;const a=n(38),o=n(28),l=n(16),i=n(92);t.AccountsSlice=l.createSlice({name:"accounts",initialState:{},reducers:{},extraReducers:e=>e.addCase(i.updateAccount.fulfilled,(e,t)=>{const n=t.payload;a.Dictionary.set(e,n.id,n)}).addMatcher(l.isFulfilled(i.loadAccounts,i.deleteAccount),(e,t)=>{const n=t.payload.slice().sort((e,t)=>e.type===t.type?0:e.type===o.Account.Type.PERSONAL?-1:1);a.Dictionary.clear(e),n.forEach(t=>{a.Dictionary.set(e,t.id,t)})})})},,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminScreen=void 0;const o=a(n(0)),l=a(n(463)),i=n(13),r=n(300);t.AdminScreen=function({navbar:e,className:t,fillPage:n,children:a}){const u=n?l.default.fillPage:l.default.adminScreen,s=i.classList(u,t);return o.default.createElement("div",{className:s},e&&o.default.createElement("div",{className:l.default.navbar},o.default.createElement(e)),o.default.createElement("div",{className:l.default.content},o.default.createElement("div",{className:l.default.notices},o.default.createElement(r.AdminNotices,null)),a))}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPath=t.getRouteAbsUrl=t.getRouteRelUrl=t.routeWithoutParam=t.routeWithQuery=t.routeSetQuery=t.getRouteParam=t.getRoutePath=void 0;const a=n(137),o=n(60),l=n(18),i=n(301);function r(e,t){return u(e,l.withPartial({page:e.query.page},t))}function u(e,t){return e.pathName+"?"+a.stringify(function(e){const t=o.cloneObj(e);return Object.getOwnPropertyNames(e).forEach(n=>{e[n]&&0===e[n].length&&delete t[n]}),t}(t))}t.getRoutePath=function(e){return u(e,e.query)},t.getRouteParam=function(e,t){return i.extractFromArray(e.query[t])},t.routeSetQuery=function(e,t){return u(e,l.withPartial(t,{page:e.query.page}))},t.routeWithQuery=function(e,t){return u(e,l.withPartial(e.query,t))},t.routeWithoutParam=function(e,t){const n=o.cloneObj(e.query);return delete n[t],u(e,n)},t.getRouteRelUrl=r,t.getRouteAbsUrl=function(e,t){return e.baseUrl+r(e,t)},t.createPath=u},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=l(n(0)),u=i(n(471)),s=n(287),c=i(n(32)),d=n(13);function f(e,t){switch(t){case"top":case"top-start":case"top-end":return e+"Top";case"bottom":case"bottom-start":case"bottom-end":return e+"Bottom";case"left":case"left-start":case"left-end":return e+"Left";case"right":case"right-start":case"right-end":return e+"Right";default:return e}}t.default=function({visible:e,delay:t,placement:n,theme:a,children:o}){a=null!=a?a:{},n=n||"bottom";const[l,i]=r.default.useState(!1),m={preventOverflow:{boundariesElement:document.getElementById(c.default.config.rootId),padding:5}};r.useEffect(()=>{const n=setTimeout(()=>i(e),e?t:1);return()=>clearTimeout(n)},[e]);const p=f("container",n),_=f("arrow",n),h=d.classList(u.default[p],a.container,a[p]),b=d.classList(u.default[_],a.arrow,a[_]);return r.default.createElement(s.Manager,null,r.default.createElement(s.Reference,null,e=>o[0](e)),r.default.createElement(s.Popper,{placement:n,modifiers:m,positionFixed:!0},({ref:e,style:t,placement:n,arrowProps:i})=>l?r.default.createElement("div",{ref:e,className:d.classList(u.default.root,a.root),style:t,tabIndex:-1},r.default.createElement("div",{className:h,"data-placement":n},r.default.createElement("div",{className:d.classList(u.default.content,a.content)},o[1]),r.default.createElement("div",{className:b,ref:i.ref,style:i.style,"data-placement":n}))):null))}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=a(n(0)),l=n(1),i=n(77),r=a(n(482)),u=n(9),s=n(12),c=n(39),d=n(66),f=n(25),m=a(n(32)),p=n(135);t.default=function({accountId:e,isOpen:t,showFooterButtons:n,onClose:a,onUpdate:_}){var h;const b=l.useDispatch(),g=l.useStore(),v=l.useSelector(f.selectAccountById(e)),y=null!==(h=null==v?void 0:v.numCustomMedia)&&void 0!==h?h:0;return o.default.createElement(i.Modal,{isOpen:t&&!!e,title:"Account details",icon:"admin-users",onClose:a},e&&o.default.createElement(o.default.Fragment,null,o.default.createElement(i.Modal.Content,null,o.default.createElement(r.default,{accountId:e,onUpdate:_})),n&&o.default.createElement(i.Modal.Footer,{style:"left"},m.default.config.customPosts.enabled&&o.default.createElement(u.Button,{type:u.ButtonType.PILL,size:u.ButtonSize.LARGE,onClick:()=>b(c.gotoRoute({screen:d.SCREENS.CUSTOM_MEDIA,id:e.toString()}))},o.default.createElement(s.Dashicon,{icon:"welcome-add-page"}),o.default.createElement("span",null,y+" custom post"+(y>1?"s":""))),o.default.createElement(u.Button,{type:u.ButtonType.PILL,size:u.ButtonSize.LARGE,onClick:()=>p.reconnectAccount(g,v)},o.default.createElement(s.Dashicon,{icon:"image-rotate"}),o.default.createElement("span",null,"Reconnect")))))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WpUploadMedia=void 0;const o=a(n(0)),l=a(n(220)),i=n(156);function r({children:e,open:t}){return e({open:t})}t.WpUploadMedia=({id:e,value:t,title:n,button:a,mediaType:u,multiple:s,children:c,onOpen:d,onClose:f,onSelect:m})=>{e=null!=e?e:"wp-media-"+i.uniqueNum(),u=null!=u?u:"",a=null!=a?a:"Select";const p=o.default.useRef();p.current||(p.current=l.default.media({id:e,title:n,library:{type:u},button:{text:a},multiple:s}));const _=()=>{const e=p.current.state().get("selection");m&&m(e.models)};return f&&p.current.on("close",f),p.current.on("open",()=>{if(t){const e="object"==typeof t?t:l.default.media.attachment(t);e.fetch(),p.current.state().get("selection").add(e?[e]:[])}d&&d()}),p.current.on("insert",_),p.current.on("select",_),o.default.createElement(r,{children:c,open:()=>p.current.open()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=wp},,,function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Onboarding=void 0;const l=o(n(0)),i=n(13),r=n(9);n(491);const u=n(12);function s(e){var{className:t,children:n,fullWidth:o,isTransitioning:r}=e,u=a(e,["className","children","fullWidth","isTransitioning"]);const s=i.bemClass("onboarding",{"--full-width":o,"--transitioning":r});return l.default.createElement("div",Object.assign({className:i.classList(s,t)},u),n)}t.Onboarding=s,function(e){e.TRANSITION_DURATION=200,e.Thin=e=>{var{className:t,children:n}=e,o=a(e,["className","children"]);return l.default.createElement("div",Object.assign({className:i.classList("onboarding__thin",t)},o),n)},e.HelpMsg=e=>{var{className:t,children:n}=e,o=a(e,["className","children"]);return l.default.createElement("div",Object.assign({className:i.classList("onboarding__help-msg",t)},o),n)},e.ProTip=({children:t})=>l.default.createElement(e.HelpMsg,null,l.default.createElement("div",{className:"onboarding__pro-tip"},l.default.createElement("span",null,l.default.createElement(u.Dashicon,{icon:"lightbulb"}),l.default.createElement("strong",null,"Pro tip!")),t)),e.StepList=e=>{var{className:t,children:n}=e,o=a(e,["className","children"]);return l.default.createElement("ul",Object.assign({className:i.classList("onboarding__steps",t)},o),n)},e.Step=e=>{var{isDone:t,num:n,className:o,children:r}=e,u=a(e,["isDone","num","className","children"]);return l.default.createElement("li",Object.assign({className:i.classList(t?"onboarding__done":null,o)},u),l.default.createElement("strong",null,"Step ",n,":")," ",r)},e.HeroButton=e=>{var t,{className:n,children:o}=e,u=a(e,["className","children"]);return l.default.createElement(r.Button,Object.assign({type:null!==(t=u.type)&&void 0!==t?t:r.ButtonType.PRIMARY,size:r.ButtonSize.HERO,className:i.classList("onboarding__hero-button",n)},u),o)}}(s=t.Onboarding||(t.Onboarding={}))},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedTemplatePicker=void 0;const r=l(n(0)),u=i(n(492)),s=n(1),c=n(142),d=n(12),f=n(225),m=n(226),p=n(310),_=n(157),h=n(78),b=n(45),g=n(46);function v({template:e,isCurrent:t,onClick:n,onLoadImage:a}){const o=e.isPro&&g.Tier.isFree(),l=o?u.default.templatePro:u.default.template;return r.default.createElement("div",{className:u.default.tile},r.default.createElement(_.DivButton,{className:l,onClick:n},r.default.createElement("img",{className:u.default.templateThumbnail,src:e.thumbnail,alt:"",onLoad:a}),r.default.createElement("div",{className:u.default.templateLabel},r.default.createElement("span",{className:u.default.templateName},e.name)),o&&r.default.createElement(r.default.Fragment,null,r.default.createElement("a",{className:u.default.proOverlay,href:b.AdminResources.upgradeUrl,target:"_blank"},r.default.createElement("div",{className:u.default.upgradeButton},"Upgrade to PRO")),r.default.createElement("div",{className:u.default.proPill},r.default.createElement(h.ProPill,null))),t&&r.default.createElement("span",{className:u.default.currentIndicator},"Current")))}function y({onClick:e}){return r.default.createElement(c.Square,{className:u.default.tile},r.default.createElement(_.DivButton,{className:u.default.customTemplate,onClick:e},r.default.createElement("div",{className:u.default.customTemplateIcon},r.default.createElement(d.Dashicon,{icon:"plus-alt"}),r.default.createElement("span",{className:u.default.customTemplateText},"Design your own"))))}t.FeedTemplatePicker=function({showCustomOption:e,value:t,onChange:n}){const a=s.useSelector(m.selectTemplates),o=r.useRef(),[l,i]=r.useState(3),c=r.useCallback(()=>{var e;const t=null===(e=null==o?void 0:o.current)||void 0===e?void 0:e.getBoundingClientRect();t&&i(function(e){const t=(e-40*(e/120-1))/3;return t<120?1:t<150?2:3}(t.width))},[o]);r.useLayoutEffect(()=>c(),[c]),f.useWindowSize(()=>c(),[c],!0);const d=r.useCallback(e=>{(null==e?void 0:e.isPro)&&!g.Tier.isAtLeast(g.Tier.PRO)||n(null===(null==e?void 0:e.id)?null:e)},[n]);let _=a.map(e=>r.default.createElement(v,{key:e.id,template:e,isCurrent:e.id===t,onClick:()=>d(e),onLoadImage:c}));return e&&(_=[r.default.createElement(y,{key:"custom",onClick:()=>d(null)})].concat(_)),r.default.createElement("div",{className:u.default.root,ref:o},r.default.createElement(p.MasonryLayout,{columns:l,gap:40},_))}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectTemplateById=t.selectTemplates=void 0,t.selectTemplates=e=>e.templates.models,t.selectTemplateById=e=>t=>t.templates.models.find(t=>t.id===e)},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Navbar=void 0;const o=a(n(0)),l=a(n(530)),i=n(175),r=n(13),u=n(78),s=n(314);function c({children:e}){return o.default.createElement("div",{className:l.default.root},o.default.createElement(c.LogoItem,null),o.default.createElement("div",{className:l.default.leftContainer},e[0]),e[1]&&o.default.createElement("div",{className:l.default.rightContainer},e[1]))}t.Navbar=c,function(e){e.LogoItem=()=>o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:l.default.item},o.default.createElement(s.SpotlightLogo,null)),o.default.createElement(e.Chevron,null)),e.Item=({children:e})=>o.default.createElement("div",{className:l.default.item},e),e.Section=({children:e})=>o.default.createElement("div",{className:l.default.section},e),e.Link=({linkTo:t,onClick:n,isCurrent:a,isDisabled:u,children:s})=>{const c=r.classMap({[l.default.link]:!0,[l.default.current]:a,[l.default.disabled]:u}),d=e=>{"Enter"!==e.key&&" "!==e.key||e.currentTarget.click()},f=u?-1:0;return o.default.createElement(e.Item,null,t?o.default.createElement(i.Link,{to:t,className:c,role:"button",onKeyPress:d,tabIndex:f},s):o.default.createElement("div",{className:c,role:"button",onClick:()=>!u&&n&&n(),onKeyPress:d,tabIndex:f},s))},e.ProPill=()=>o.default.createElement("div",{className:l.default.proPill},o.default.createElement(u.ProPill,null)),e.Chevron=()=>o.default.createElement("div",{className:l.default.chevron},o.default.createElement("svg",{viewBox:"0 0 100 100",width:"100%",height:"100%",preserveAspectRatio:"none"},o.default.createElement("path",{d:"M0 0 L100 50 L0 100",fill:"none",stroke:"currentcolor",strokeLinejoin:"bevel"})))}(c=t.Navbar||(t.Navbar={}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProUpgradeBtn=void 0;const o=a(n(0)),l=a(n(532)),i=n(45),r=n(312);t.ProUpgradeBtn=function({url:e,children:t}){const n=r.isBlackFriday2021();return o.default.createElement("a",{className:n?l.default.red:l.default.root,href:null!=e?e:i.AdminResources.pricingUrl,target:"_blank"},null!=t?t:n?"Get 30% off PRO today":"Free 14-day PRO trial")}},,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=a(n(0)),l=a(n(555)),i=n(9),r=n(12),u=a(n(556));t.default=function({children:e,onConnect:t,beforeConnect:n}){const[a,s]=o.default.useState(!1);return o.default.createElement(o.default.Fragment,null,o.default.createElement(i.Button,{className:l.default.root,size:i.ButtonSize.HERO,type:i.ButtonType.SECONDARY,onClick:()=>s(!0)},o.default.createElement(r.Dashicon,{icon:"instagram"}),null!=e?e:o.default.createElement("span",null,"Connect more Instagram accounts")),o.default.createElement(u.default,{isOpen:a,onClose:()=>{s(!1)},onConnect:t,beforeConnect:n}))}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))},o=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Capability=void 0;const i=l(n(0)),r=n(1),u=l(n(557)),s=n(77),c=n(9),d=n(12),f=n(135),m=l(n(558)),p=n(97),_=n(21),h=n(45),b=n(103),g=n(67);function v(){return i.default.createElement("div",{className:u.default.orSeparator},i.default.createElement("div",{className:u.default.orLine}),i.default.createElement("span",{className:u.default.orText},"OR"),i.default.createElement("div",{className:u.default.orLine}))}t.default=function({onConnect:e,beforeConnect:n,useColumns:o,showPrompt:l,showCapabilities:y}){const E=r.useStore();l=null==l||l,y=null==y||y,e=null!=e?e:p.fn.noop;const S=(t,o)=>a(this,void 0,void 0,(function*(){try{const a=yield t;n&&n(a),setTimeout(()=>e(a),s.Modal.ANIMATION_DELAY)}catch(e){o&&o(e)}})),w=e=>{var t,n,a,o;"object"==typeof e.response&&e.response.status&&null!==(n=null===(t=e.response.data)||void 0===t?void 0:t.error)&&void 0!==n&&n?E.dispatch(g.showToast({key:"account/connect/fail",type:g.ToastType.NOTIFICATION,message:null!==(o=null===(a=e.response.data)||void 0===a?void 0:a.error)&&void 0!==o?o:"The access token is not valid"})):b.triggerError({type:"account/connect/fail",message:_.getErrorResponseMessage(e)})};return i.default.createElement("div",{className:o?u.default.vertical:u.default.horizontal},l&&i.default.createElement("p",{className:u.default.promptMsg},"Choose the type of account to connect:"),i.default.createElement("div",{className:u.default.types},i.default.createElement("div",{className:u.default.type},i.default.createElement(c.Button,{type:c.ButtonType.PRIMARY,size:c.ButtonSize.HERO,onClick:()=>S(f.connectIgAccount(E))},"Personal account"),y&&i.default.createElement("div",{className:u.default.capabilities},i.default.createElement(t.Capability,null,"Connects directly through Instagram"),i.default.createElement(t.Capability,null,"Show posts from your account"))),o&&i.default.createElement(v,null),i.default.createElement("div",{className:u.default.type},i.default.createElement(c.Button,{type:c.ButtonType.SECONDARY,size:c.ButtonSize.HERO,onClick:()=>S(f.connectFbAccount(E))},"Business account"),y&&i.default.createElement("div",{className:u.default.capabilities},i.default.createElement(t.Capability,null,"Connects through your Facebook page"),i.default.createElement(t.Capability,null,"Show posts from your account"),i.default.createElement(t.Capability,null,"Show posts where you are tagged"),i.default.createElement(t.Capability,null,"Show posts with a specific hashtag from all across Instagram")),i.default.createElement("div",{className:u.default.businessLearnMore},i.default.createElement(d.Dashicon,{icon:"editor-help"}),i.default.createElement("a",{href:h.AdminResources.businessAccounts,target:"_blank"},"Switch to a Business account for free")))),i.default.createElement(v,null),i.default.createElement("div",{className:l?u.default.connectAccessToken:null},(o||l)&&i.default.createElement("p",{className:u.default.promptMsg},"Connect using an access token:"),i.default.createElement(m.default,{isColumn:o,onConnectPersonal:e=>S(f.connectAccessToken(E,e),w),onConnectBusiness:(e,t)=>S(f.connectAccessToken(E,e,t),w)})))},t.Capability=e=>{var{children:t}=e,n=o(e,["children"]);return i.default.createElement("div",Object.assign({className:u.default.capability},n),i.default.createElement(d.Dashicon,{icon:"yes"}),i.default.createElement("div",null,t))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Row=t.AccountSelector=void 0;const o=a(n(0)),l=a(n(562)),i=n(28),r=n(12),u=n(140);function s({account:e,selected:t,singleMode:n,disabled:a,onChange:s}){const c=`url("${i.Account.getProfilePicUrl(e)}")`,d=()=>{!a&&s(!t)},f=u.useKeyboardActivate(d),m=a?t?l.default.accountSelectedDisabled:l.default.accountDisabled:t?l.default.accountSelected:l.default.account;return o.default.createElement("div",{className:l.default.row},o.default.createElement("div",{className:m,onClick:d,onKeyPress:f,role:"button",tabIndex:0},o.default.createElement("div",{className:l.default.profilePic,style:{backgroundImage:c}}),o.default.createElement("div",{className:l.default.infoColumn},o.default.createElement("div",{className:l.default.username},e.username),o.default.createElement("div",{className:l.default.accountType},e.type)),t&&!n&&o.default.createElement(r.Dashicon,{icon:"yes-alt",className:l.default.tickIcon})))}t.AccountSelector=function({accounts:e,value:t,onChange:n,singleMode:a,disabled:i}){const r=(t=null!=t?t:[]).filter(t=>e.some(e=>e.id===t)),u=new Set(r),c=o.default.useCallback((e,t)=>{i||(t?(a&&u.clear(),u.add(e)):a||u.delete(e),n(Array.from(u)))},[i,u,n]);return o.default.createElement("div",{className:l.default.root},e.map((e,t)=>o.default.createElement(s,{key:t,account:e,selected:u.has(e.id),onChange:t=>c(e.id,t),singleMode:a,disabled:i})))},t.Row=s},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=a(n(0)),l=a(n(564)),i=n(12),r=a(n(216));t.default=function({maxWidth:e,children:t}){e=null!=e?e:300;const[n,a]=o.default.useState(!1),u=()=>a(!0),s=()=>a(!1),c={content:l.default.tooltipContent,container:l.default.tooltipContainer};return o.default.createElement("div",{className:l.default.root},o.default.createElement(r.default,{visible:n,theme:c},({ref:e})=>o.default.createElement("span",{ref:e,className:l.default.icon,style:{opacity:n?1:.7},onMouseEnter:u,onMouseLeave:s},o.default.createElement(i.Dashicon,{icon:"info"})),o.default.createElement("div",{style:{maxWidth:e+"px"}},t)))}},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonDesignFields=void 0;const i=l(n(0)),r=n(842),u=n(9),s=n(235),c=n(62),d=n(18),f=n(144),m=n(843),p=n(159);function _({id:e,value:t,onChange:n,disabled:a,show:o}){var l,_,h,b;const[g,v]=i.useState(s.ButtonDesign.DEFAULT);t=null!=t?t:g,n=null!=n?n:v;const[y,E]=i.useState(!1),S=null!==(l=t.border)&&void 0!==l?l:{},w=s.ButtonDesign.getFullState(t,y),P=null!==(_=w.bgColor)&&void 0!==_?_:f.Color.WHITE,O=null!==(b=(null!==(h=w.text)&&void 0!==h?h:{}).color)&&void 0!==b?b:f.Color.BLACK;return i.default.createElement(i.default.Fragment,null,o.states&&i.default.createElement(p.FieldRow,{disabled:a,wide:!0,centered:!0},i.default.createElement(r.ButtonGroup,{wide:!0},i.default.createElement(u.Button,{type:u.ButtonType.TOGGLE,active:!y,onClick:()=>E(!1)},"Normal"),i.default.createElement(u.Button,{type:u.ButtonType.TOGGLE,active:y,onClick:()=>E(!0)},"Hover"))),o.textColor&&i.default.createElement(p.FieldRow,{label:"Text color",labelId:e+"-color",disabled:a},i.default.createElement(c.ColorPicker,{id:e+"-color",value:O,onChange:e=>{const a=s.ButtonDesign.withState(t,y,t=>{var n;return t.text=null!==(n=t.text)&&void 0!==n?n:{},t.text.color=e.rgb,t});n(a)}})),o.bgColor&&i.default.createElement(p.FieldRow,{label:"Background color",labelId:e+"-bg",disabled:a},i.default.createElement(c.ColorPicker,{id:e+"-bg",value:P,onChange:e=>{const a=s.ButtonDesign.withState(t,y,t=>(t.bgColor=e.rgb,t));n(a)}})),i.default.createElement("hr",null),o.border&&i.default.createElement(m.BorderDesignFields,{design:S,onChange:e=>{n(d.withPartial(t,{border:e}))},show:o.border,labels:!0}))}_.defaultProps={id:"",value:null,onChange:null,disabled:!1,show:{}},t.ButtonDesignFields=_},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextField=void 0;const o=a(n(0));t.TextField=function({id:e,value:t,onChange:n,placeholder:a}){return o.default.createElement("input",{id:e,type:"text",value:t,onChange:e=>n(e.target.value),placeholder:a})}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPage=void 0;const o=a(n(0)),l=a(n(873)),i=n(1),r=n(56),u=n(126);t.SettingsPage=function({before:e,after:t,children:n}){const a=i.useDispatch();return r.useDocumentEventListener("keydown",e=>{e.key&&"s"===e.key.toLowerCase()&&e.ctrlKey&&(a(u.saveSettings()),e.preventDefault(),e.stopPropagation())},[],[a]),o.default.createElement("article",{className:l.default.root},e&&o.default.createElement("div",{className:l.default.beforeGroups},e),n&&o.default.createElement("div",{className:l.default.groupList},n),t&&o.default.createElement("div",{className:l.default.afterGroups},t))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponsiveContainer=t.ResponsiveContext=void 0;const o=a(n(0)),l=n(225);t.ResponsiveContext=o.default.createContext(0),t.ResponsiveContainer=function({breakpoints:e,render:n,children:a}){const[i,r]=o.default.useState(null),u=o.default.useCallback(t=>{r(()=>e.reduce((e,n)=>t.width<=n&&n<e?n:e,1/0))},[e]);l.useWindowSize(u,[r],!0);const s=n?n(i):a;return o.default.createElement(t.ResponsiveContext.Provider,{value:i},null!==i?s:null)}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionGrid=void 0;const u=l(n(0)),s=r(n(898)),c=n(217),d=n(138),f=n(142),m=n(899);t.SelectionGrid=function(e){var t,n,{disabled:a,controlled:o,canDeselect:l,children:r,onClick:d,onSelect:h,addButton:b}=e,g=i(e,["disabled","controlled","canDeselect","children","onClick","onSelect","addButton"]);const v=!!b,y=v?[b,...g.items]:g.items;let E=0;g.initialSelected&&g.keyFn&&(E=g.items.findIndex((e,t)=>g.keyFn(e,t)===g.initialSelected),E=-1===E?0:E);const[S,w]=u.useState(E),P=u.default.useRef(),O=u.default.useRef(),C=u.default.useRef(),M=o?g.selected:S,N=null!==(t=g.gridGap)&&void 0!==t?t:15,k=null===(n=g.useKeyBinds)||void 0===n||n;function A(e,t){if(!a){o||w(e);const n=y[e];_(v,0,e)||h&&h(n,e,t)}}function T(e,t){if(!a){A(e,t);const n=y[e];_(v,0,e)?(null==b?void 0:b.onClick)&&b.onClick():d&&d(n,e,t)}}u.useLayoutEffect(()=>{var e;null===(e=C.current)||void 0===e||e.focus()},[C]);const F=u.useCallback(e=>{if(a||!k)return;const t=function(){const e=O.current.getBoundingClientRect(),t=C.current.getBoundingClientRect(),n=e.width,a=t.width;return Math.floor((n+N)/(a+N))}(),n=Math.ceil(y.length/t);switch(e.key){case" ":case"Enter":T(M);break;case"ArrowLeft":A(Math.max(M-1,0));break;case"ArrowRight":A(Math.min(M+1,y.length-1));break;case"ArrowUp":{const e=Math.max(0,M-t),a=Math.floor(M/t),o=Math.floor(e/t);n>1&&o!==a&&A(e);break}case"ArrowDown":{const e=Math.min(y.length-1,M+t),a=Math.floor(M/t),o=Math.floor(e/t);n>1&&o!==a&&A(e);break}default:return}e.preventDefault(),e.stopPropagation()},[a,k,y,A]);c.useDetectOutsideClick(O,()=>{l&&null!==M&&A(null)},[],[l,A,M]);const L=Object.assign(Object.assign({},g.gridStyle),{gridGap:N}),j=a?s.default.gridDisabled:s.default.grid;return u.default.createElement("div",{ref:P,className:s.default.root},u.default.createElement("div",{ref:O,className:j,style:L},y.map((e,t)=>{if(_(v,0,t))return u.default.createElement("div",{className:s.default.item,key:"_add_btn"},u.default.createElement(f.Square,null,u.default.createElement(m.JumboAddButton,Object.assign({},e,{isFocused:M===t}))));const n=t,o=v?t-1:t;return u.default.createElement(p,{key:g.keyFn?g.keyFn(e,o):o,ref:0===o?C:null,focused:!a&&M===n,onClick:e=>T(n,e.currentTarget),onSelect:e=>A(n,e.currentTarget),onKeyDown:F},r({item:e,idx:o,isSelected:M===n}))})))};const p=u.default.forwardRef(({focused:e,onClick:t,onSelect:n,onKeyDown:a,children:o},l)=>{const i=u.useRef();return u.useLayoutEffect(()=>{var t;e&&(null===(t=null==i?void 0:i.current)||void 0===t||t.focus())},[e,i]),u.default.createElement("div",{ref:d.mergeRefs(i,l),className:s.default.item,onClick:t,onFocus:n,onKeyDown:a,tabIndex:0},o)});function _(e,t,n){return e&&0===n}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingSpinner=void 0;const o=a(n(0));n(901),t.LoadingSpinner=({size:e})=>{const t=(e=null!=e?e:24)+"px",n={width:t,height:t,boxShadow:`${.25*e+"px"} 0 0 ${.375*e+"px"} #999 inset`};return o.default.createElement("span",{className:"loading-spinner",style:n})}},,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminSettings=void 0;const o=a(n(998)),l=n(1004),i=n(1015);t.AdminSettings=[{id:"accounts",title:"Accounts",component:o.default},{id:"config",title:"Configuration",component:l.SettingsConfigTab},{id:"tools",title:"Tools",component:i.SettingsToolsTab}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplatesSlice=t.TemplatesInitialState=void 0;const a=n(16),o=n(202);t.TemplatesInitialState={models:[],isLoaded:!1},t.TemplatesSlice=a.createSlice({name:"templates",initialState:t.TemplatesInitialState,reducers:{},extraReducers:e=>e.addCase(o.loadTemplates.fulfilled,(e,t)=>{e.models=t.payload,e.isLoaded=!0})})},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=a(n(0)),l=n(13),i=a(n(474));function r({idx:e,row:t,cols:n,styleMap:a}){return o.default.createElement("tr",{className:i.default.row},n.map(n=>o.default.createElement("td",{key:n.id,className:l.classList(i.default.cell,s(n),a.cells[n.id])},n.render(t,e))))}function u({cols:e,styleMap:t}){return o.default.createElement("tr",null,e.map(e=>{const n=l.classList(i.default.colHeading,s(e),t.cols[e.id]);return o.default.createElement("th",{key:e.id,className:n},e.label)}))}function s(e){return"center"===e.align?i.default.alignCenter:"right"===e.align?i.default.alignRight:i.default.alignLeft}t.default=function({className:e,cols:t,rows:n,footerCols:a,styleMap:s}){return s=null!=s?s:{cols:{},cells:{}},o.default.createElement("table",{className:l.classList(i.default.table,e)},o.default.createElement("thead",{className:i.default.header},o.default.createElement(u,{cols:t,styleMap:s})),o.default.createElement("tbody",null,n.map((e,n)=>o.default.createElement(r,{key:n,idx:n,row:e,cols:t,styleMap:s}))),a&&o.default.createElement("tfoot",{className:i.default.footer},o.default.createElement(u,{cols:t,styleMap:s})))}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Ellipsis=void 0;const o=a(n(0));t.Ellipsis=()=>o.default.createElement("svg",{"aria-hidden":"true",role:"img",focusable:"false",className:"dashicon dashicons-ellipsis",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},o.default.createElement("path",{d:"M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CopyShortcode=void 0;const o=a(n(0)),l=a(n(308)),i=n(1),r=n(67);t.CopyShortcode=({feed:e,onCopy:t,children:n})=>{const a=i.useDispatch();return o.default.createElement(l.default,{text:`[instagram feed="${e.id}"]`,onCopy:()=>{a(r.showToast({key:"feeds/shortcode/copied",message:"Copied shortcode to clipboard."})),t&&t()}},n)}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedsOnboarding=void 0;const o=a(n(0)),l=a(n(490)),i=n(223),r=n(224),u=n(45),s=a(n(227)),c=n(312),d=n(46);function f({showSteps:e}){return o.default.createElement(i.Onboarding.Thin,null,o.default.createElement("p",null,"Design your own Instagram feed or choose one of our beautiful pre-made templates."),o.default.createElement("p",null,"The templates are all fully customisable so you can design them to match your style."),e&&o.default.createElement(o.default.Fragment,null,o.default.createElement("p",null,"Once you've picked a template:"),o.default.createElement(i.Onboarding.StepList,null,o.default.createElement(i.Onboarding.Step,{num:1},o.default.createElement("span",null,"Connect your Instagram Account")),o.default.createElement(i.Onboarding.Step,{num:2},o.default.createElement("span",null,"Customize your feed")),o.default.createElement(i.Onboarding.Step,{num:3},o.default.createElement("span",null,"Embed it on your site")))),o.default.createElement("p",null,"Choose a template to get started."))}t.FeedsOnboarding=function({showSteps:e=!1,onSelectTemplate:t}){const[n,a]=o.default.useState(!1);return o.default.createElement("div",{className:n?l.default.rootTransitioning:l.default.root},o.default.createElement("div",{className:l.default.left},o.default.createElement("h1",{style:{fontWeight:"normal",lineHeight:"1.2em"}},"Pick a template to ",o.default.createElement("b",null,"get started!")),c.isBlackFriday2021()&&d.Tier.isFree()?o.default.createElement(p,{showSteps:e}):o.default.createElement(f,{showSteps:e})),o.default.createElement("div",{className:l.default.right},o.default.createElement("div",{className:l.default.scrollPadding},o.default.createElement(r.FeedTemplatePicker,{onChange:function(e){a(!0),t(e)},showCustomOption:!0}))))};const m=[{label:"Hashtag feeds",content:"Display user generated content to instantly add social proof."},{label:"Shoppable feeds",content:"Make your galleries shoppable, just in time for the holiday season."},{label:"Link in bio",content:"Improve your SEO and drive more traffic to your website from Instagram."},{label:"Filtering and moderation",content:"Show only the best posts to control your site's quality."},{label:"Tagged posts",content:"Include tagged posts in your feeds to increase credibility."}];function p({showSteps:e}){return o.default.createElement(i.Onboarding.Thin,null,o.default.createElement("p",null,"Design your own Instagram feed or choose one of our professionally designed templates."),e&&o.default.createElement(o.default.Fragment,null,o.default.createElement(i.Onboarding.StepList,null,o.default.createElement(i.Onboarding.Step,{num:1},o.default.createElement("span",null,"Connect your Instagram Account")),o.default.createElement(i.Onboarding.Step,{num:2},o.default.createElement("span",null,"Customize your feed")),o.default.createElement(i.Onboarding.Step,{num:3},o.default.createElement("span",null,"Embed anywhere you want")))),o.default.createElement("div",null,o.default.createElement("a",{href:u.AdminResources.pricingUrl,target:"_blank",className:l.default.bfHeading},"Get 30% off PRO today!"),o.default.createElement("p",null,"Black Friday/Cyber Monday offer valid from 22",o.default.createElement("sup",null,"nd")," to the 29",o.default.createElement("sup",null,"th")," of November 2021."," ",o.default.createElement("a",{href:u.AdminResources.pricingUrl,target:"_blank",className:l.default.bfStealthLink},o.default.createElement("b",null,"Upgrade now!"))),o.default.createElement("p",null,o.default.createElement("b",null,"Why upgrade to PRO?")),o.default.createElement("div",{className:l.default.bfSlider},o.default.createElement(s.default,{autoPlay:!0,autoPlayInterval:4e3,infinite:!0,disableButtonsControls:!0,items:m.map(e=>o.default.createElement("div",{className:l.default.bfSliderItem},o.default.createElement("div",null,o.default.createElement("b",null,e.label,":")),o.default.createElement("div",null,e.content)))})),o.default.createElement("a",{href:u.AdminResources.pricingUrl,target:"_blank",className:l.default.bfButton},"Get 30% off PRO today!")))}},,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=a(n(0)),l=n(228),i=n(229),r=n(66),u=n(1),s=n(55),c=n(45),d=n(46),f={display:"flex",flexDirection:"column",justifyContent:"center",marginRight:25},m={textDecoration:"none"};t.default=function({right:e,chevron:t,children:n}){var a,p;const _=u.useSelector(s.selectScreen),h=o.default.createElement(l.Navbar.Item,null,null!==(p=null===(a=r.Screens.getScreen(_))||void 0===a?void 0:a.title)&&void 0!==p?p:"");return o.default.createElement(l.Navbar,null,o.default.createElement(o.default.Fragment,null,h,t&&o.default.createElement(l.Navbar.Chevron,null),n),e?o.default.createElement(e):o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{style:f},o.default.createElement("a",{href:c.AdminResources.supportNavbarUrl,target:"_blank",style:m},o.default.createElement("span",null,"Need help?"))),d.Tier.isFree()&&o.default.createElement(i.ProUpgradeBtn,{url:c.AdminResources.upgradeNavbarUrl})))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SpotlightLogo=void 0;const o=a(n(0)),l=a(n(531)),i=n(84),r=n(315);t.SpotlightLogo=function(){return o.default.createElement("div",{className:l.default.logo},o.default.createElement("img",Object.assign({className:l.default.logoImage,src:i.Common.image("spotlight-favicon.png"),alt:"Spotlight"},r.noDrag)))}},,,,,,,function(e,t,n){e.exports={root:"ModalPrompt__root",button:"ModalPrompt__button"}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminEditor=void 0;const l=o(n(0)),i=n(1),r=n(66),u=n(323),s=n(143),c=n(39),d=n(182),f=n(975),m=n(46),p=d.FeedEditorDefaultConfig.tabs.slice();p.push({id:"embed",label:"Embed",requireSources:!0,sidebar:f.EmbedSidebar}),t.AdminEditor=function({feed:e,keepState:t}){const n=i.useDispatch(),o=null===e.id,d=l.default.useCallback(e=>a(this,void 0,void 0,(function*(){const t=yield n(s.saveFeed(e));o&&t.payload.id&&setTimeout(()=>{n(c.gotoRoute({screen:r.SCREENS.EDIT_FEED,id:t.payload.id}))},10)})),[o]),f=l.default.useCallback(()=>{n(c.gotoScreen(r.SCREENS.FEED_LIST))},[]);return l.default.createElement(u.CommonEditor,{feed:e,isPro:m.Tier.isAtLeast(m.Tier.PRO),onSave:d,onCancel:f,keepState:t,tabs:p,useCtrlS:!0,confirmOnCancel:!0})}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommonEditor=t.LEAVE_MESSAGE=void 0;const u=l(n(0)),s=n(1),c=n(56),d=n(324),f=n(8),m=n(18),p=n(973),_=n(39),h=r(n(32)),b=n(46);function g(e){return u.default.createElement(p.WpMediaField,Object.assign({},e,{title:"Select custom profile photo",buttonSet:"Choose custom photo",buttonChange:"Change custom photo",mediaType:"image"}))}t.LEAVE_MESSAGE="You have unsaved changes. If you leave now, your changes will be lost.",t.CommonEditor=function(e){var{feed:n,confirmOnCancel:a,keepState:o,useCtrlS:l,onSave:r,onCancel:p}=e,v=i(e,["feed","confirmOnCancel","keepState","useCtrlS","onSave","onCancel"]);const y=s.useDispatch(),E=s.useSelector(e=>e.editor.isSaving),S=s.useSelector(e=>e.editor.isDirty),[w,P]=u.default.useState(!1);u.useEffect(()=>{y(f.FeedEditorActions.editFeed({feedName:n.name,feedOptions:n.options,reset:!o}))},[y,n.id,o]),_.useUnload(t.LEAVE_MESSAGE,()=>a&&S&&!E&&!w,[a,S,E,w]),u.useEffect(()=>{w&&p&&p()},[w]),c.useDocumentEventListener("keydown",e=>{l&&e.key&&"s"===e.key.toLowerCase()&&e.ctrlKey&&(y(f.saveFeed(O)),e.preventDefault(),e.stopPropagation())},[],[S]);const O=u.default.useCallback((e,t)=>{const a=m.withPartial(n,{name:e,options:t});return r?r(a):Promise.reject()},[n,r]),C=u.default.useCallback(()=>{(!S||!w&&a&&confirm(t.LEAVE_MESSAGE))&&P(!0)},[p,a]);return u.default.createElement(d.FeedEditor,Object.assign({},v,{isPro:b.Tier.isAtLeast(b.Tier.PRO),selectMediaField:g,onSave:O,onCancel:C,fakePreview:h.default.editor.preview}))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxListField=void 0;const o=a(n(0)),l=a(n(819)),i=n(78),r=a(n(240)),u=n(46);t.CheckboxListField=function({id:e,value:t,onChange:n,isPro:a,showProOptions:s,options:c}){a=null!=a?a:u.Tier.isAtLeast(u.Tier.PRO);const d=new Set(t.map(e=>e.toString())),f=e=>{const t=e.target.value,o=e.target.checked,l=c.find(e=>e.value.toString()===t);l.proOnly&&!a||l.isDisabled||(o?d.add(t):d.delete(t),n&&n(Array.from(d)))};return o.default.createElement("div",{className:l.default.checkboxList},c.filter(e=>!!e).map((t,n)=>{var u;if(!a&&t.proOnly&&!s)return null;const c=t.proOnly&&!a,m=t.isDisabled||c;return o.default.createElement("label",{key:n,className:m?l.default.disabledOption:l.default.option},o.default.createElement("input",{type:"checkbox",id:e,value:null!==(u=t.value.toString())&&void 0!==u?u:"",checked:d.has(t.value.toString()),onChange:f,disabled:m}),o.default.createElement("span",null,t.label,t.tooltip&&!c&&o.default.createElement(o.default.Fragment,null," ",o.default.createElement(r.default,null,t.tooltip))),c&&o.default.createElement("div",{className:l.default.proPill},o.default.createElement(i.ProPill,null)))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SETTINGS_SAVE_FAILED=t.SETTINGS_SAVE_SUCCESS=void 0,t.SETTINGS_SAVE_SUCCESS="sli/settings/save/success",t.SETTINGS_SAVE_FAILED="sli/settings/save/error"},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsFiltersTab=void 0;const o=a(n(0)),l=n(268),i=n(874),r=n(880);t.SettingsFiltersTab=function(){return o.default.createElement(l.SettingsPage,null,o.default.createElement(i.SettingsCaptionFiltersGroup,null),o.default.createElement(r.SettingsHashtagFiltersGroup,null))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))},r=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MediaSelectionGrid=void 0;const s=l(n(0)),c=u(n(897)),d=n(270),f=n(271),m=n(10),p=n(60),_=n(127),h=n(61);function b({item:e,isSelected:t,children:n}){return n=null!=n?n:e=>s.default.createElement(_.MediaThumbnail,{media:e.item,className:c.default.thumbnail}),s.default.createElement("div",{className:t?c.default.selectedMedia:c.default.media},n({item:e,isSelected:t}))}t.MediaSelectionGrid=function(e){var{options:t,useFilters:n,useModeration:a,useTypeFilter:o,cache:l,onLoadMedia:u,onClick:_,onSelect:g}=e,v=r(e,["options","useFilters","useModeration","useTypeFilter","cache","onLoadMedia","onClick","onSelect"]);const y=function({options:e,useTypeFilter:t,useFilters:n,useModeration:a}){const o=p.cloneObj(e);return o.numPosts=999999,n||(o.captionWhitelist=[],o.captionBlacklist=[],o.hashtagWhitelist=[],o.hashtagBlacklist=[],o.captionWhitelistSettings=!1,o.captionBlacklistSettings=!1,o.hashtagWhitelistSettings=!1,o.hashtagBlacklistSettings=!1),a||(o.moderation=[],o.moderationMode=m.ModerationMode.BLACKLIST),t||(o.mediaType=m.MediaTypeFilter.ALL),o}({options:t,useTypeFilter:o,useFilters:n,useModeration:a}),[E,S]=s.useState(!0),[w,P]=s.useState([]),O=s.useRef(null);return l||(l={value:O.current,update:e=>O.current=e}),s.useEffect(()=>{!function(){var e;i(this,void 0,void 0,(function*(){if((null===(e=l.value)||void 0===e?void 0:e.key)===m.calculateFeedMediaHash(y))P(l.value.media),S(!1),u&&u(l.value.media);else{S(!0);const e=(yield h.RestApi.media.get(y,0,0,void 0,v.autoImport)).data.media;l.update({key:m.calculateFeedMediaHash(y),media:e}),P(e),S(!1),u&&u(e)}}))}()},[y,n,a,o]),E?s.default.createElement("div",{className:c.default.loading},s.default.createElement(f.LoadingSpinner,{size:60})):s.default.createElement(d.SelectionGrid,Object.assign({},v,{items:w,onClick:function(e,t,n){_&&_(e,t,n)},onSelect:function(e,t,n){g&&g(e,t,n)},keyFn:e=>e.id.toString()}),e=>s.default.createElement(b,Object.assign({},e,{children:v.children})))}},,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PromotionsGrid=void 0;const r=l(n(0)),u=i(n(913)),s=n(9),c=n(12),d=n(391),f=n(77),m=n(8),p=n(395),_=n(127),h=n(918),b=n(46),g=n(79),v={value:null,update:e=>v.value=e};function y({media:e,isFirst:t,isLast:n,onPrev:a,onNext:o,feedOptions:l,onChange:i}){const d=g.Promos.getOverride(e,l),f=l.globalPromosEnabled&&!!g.Promos.getGlobal(e),m=l.autoPromosEnabled&&!!g.Promos.getAutomation(e);return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:u.default.navigation},r.default.createElement(s.Button,{type:s.ButtonType.PILL,size:s.ButtonSize.LARGE,disabled:t,onClick:a},r.default.createElement(c.Dashicon,{icon:"arrow-left-alt"})),r.default.createElement(h.PromotePreviewTile,{media:e}),r.default.createElement(s.Button,{type:s.ButtonType.PILL,size:s.ButtonSize.LARGE,disabled:n,onClick:o},r.default.createElement(c.Dashicon,{icon:"arrow-right-alt"}))),r.default.createElement(p.MediaPromotionFields,{media:e,promo:d,hasGlobal:f,hasAuto:m,onChange:function(t){b.Tier.isAtLeast(b.Tier.PRO)&&i(t?g.Promos.setOverride(e,t,l):g.Promos.removeOverride(e,l))}}))}function E({media:e,isSelected:t}){const n=m.useEditorSelector(e=>e.feedOptions),a=g.Promos.getPromo(e,n),o=a?g.Promos.Link.getUrlForMedia(e,a):"";return r.default.createElement("div",{className:t?u.default.tileSelected:u.default.tile},r.default.createElement(_.MediaThumbnail,{className:u.default.tileThumbnail,media:e}),o&&r.default.createElement("div",{className:u.default.tileIcon},r.default.createElement(c.Dashicon,{icon:"admin-links"})))}t.PromotionsGrid=function({feedOptions:e,onChange:t}){const n=r.useRef(),a=r.useRef(),[o,l]=r.useState(null),[i,c]=r.useState(0),[m,p]=r.useState(!1);function _(){var e;p(!1),null===(e=a.current)||void 0===e||e.focus()}const h=null!==o&&null!==i,b=h&&i<=0,g=h&&i>=o.length-1,S=h?o[i]:null;return r.default.createElement("div",{className:u.default.root},r.default.createElement(d.MediaSelectionGrid,{cache:v,options:e,selected:i,onClick:function(e,t,n){a.current=n,p(!0)},onSelect:function(e,t){c(t)},onLoadMedia:l,canDeselect:!m,useKeyBinds:!m,useFilters:!0,useModeration:!0,useTypeFilter:!0,controlled:!0},e=>r.default.createElement(E,{media:e.item,isSelected:e.isSelected})),r.default.createElement(f.Modal,{title:"Promotion",rootRef:n,isOpen:m&&null!==S,onClose:_},r.default.createElement(f.Modal.Content,null,r.default.createElement(y,{media:S,feedOptions:e,onChange:t,isFirst:b,isLast:g,onNext:()=>c(e=>e+1),onPrev:()=>c(e=>e-1)})),r.default.createElement(f.Modal.Footer,null,r.default.createElement(s.Button,{type:s.ButtonType.PRIMARY,size:s.ButtonSize.LARGE,onClick:_},"Done"))))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MediaPromotionFields=void 0;const u=l(n(0)),s=n(914),c=r(n(915)),d=r(n(917));t.MediaPromotionFields=function(e){var{media:t,promo:n,onChange:a}=e,o=i(e,["media","promo","onChange"]);const[l,r]=u.useState(!1);u.useEffect(()=>{r(!1)},[t]);const f=u.useCallback(()=>{r(!0),a&&a({linkText:"",linkSource:{type:null},linkBehavior:{showPopupBox:!1,openNewTab:!1}})},[a]),m=!!(null==n?void 0:n.linkSource.type),p=o.hasGlobal||o.hasAuto,_=p&&(m||l);return u.default.createElement("div",null,p&&u.default.createElement(s.PromotionOverrideMessage,{hasAuto:o.hasAuto,hasGlobal:o.hasGlobal,isOverriding:_,onOverride:f}),(!p||_)&&!o.showTutorial&&u.default.createElement(c.default,{promo:n,onChange:e=>{a&&a(e)}}),o.showTutorial&&u.default.createElement(d.default,null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=a(n(0)),l=a(n(926)),i=a(n(165)),r=n(140);function u({tab:e,isCurrent:t,onClick:n}){return o.default.createElement("a",{key:e.key,role:"button",tabIndex:0,className:e.disabled?l.default.disabled:t?l.default.current:l.default.tab,onClick:n,onKeyDown:r.useKeyboardActivate(n)},o.default.createElement("span",{className:l.default.label},e.label))}t.default=function({children:{path:e,tabs:t,right:n},current:a,onClickTab:l}){return o.default.createElement(i.default,{pathStyle:"chevron"},{path:e,right:n,left:t.map(e=>{return o.default.createElement(u,{tab:e,key:e.key,isCurrent:e.key===a,onClick:(t=e.key,()=>l&&l(t))});var t})})}},,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchNews=void 0;const o=n(16),l=(n(21),n(43));t.fetchNews=o.createAsyncThunk("news/fetch",()=>a(void 0,void 0,void 0,(function*(){try{const e=yield l.AdminRestApi.notifications.get();if("object"==typeof e&&Array.isArray(e.data))return e.data}catch(e){}})))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Decorate=void 0;const o=a(n(0));t.Decorate=function(e,t){return n=>o.default.createElement(e,Object.assign(Object.assign({},t),n))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PromotionsScreen=void 0;const r=l(n(0)),u=i(n(980)),s=i(n(396)),c=n(9),d=n(165),f=n(981),m=n(990),p=n(181),_=n(410),h=n(66),b=n(56),g=n(78),v=n(1),y=n(29),E=n(126),S=n(41),w=n(55),P=n(39);function O({currTabId:e,isFakePro:t}){const n=v.useDispatch(),a=v.useSelector(y.selectSettingsAreDirty),o=v.useSelector(y.selectSettingsAreSaving);return r.default.createElement(r.default.Fragment,null,r.default.createElement(s.default,{current:e,onClickTab:e=>n(P.modifyRoute({tab:e}))},{path:[r.default.createElement(d.SpotlightNavbarLogo,{key:"logo"}),r.default.createElement("span",{key:"screen-title"},"Promotions")],tabs:[{key:"automate",label:r.default.createElement("span",{className:t?u.default.navbarFakeProItem:u.default.navbarItem},t&&r.default.createElement(g.ProPill,{className:u.default.navbarProPill}),r.default.createElement("span",null,"Automate"))},{key:"global",label:r.default.createElement("span",{className:t?u.default.navbarFakeProItem:u.default.navbarItem},t&&r.default.createElement(g.ProPill,{className:u.default.navbarProPill}),r.default.createElement("span",null,"Global Promotions"))}],right:[r.default.createElement(c.Button,{key:"cancel",onClick:()=>n(S.restoreSettings()),type:c.ButtonType.SECONDARY,disabled:!a,children:"Cancel"}),r.default.createElement(p.SaveButton,{key:"save",onClick:()=>n(E.saveSettings()),isSaving:o,disabled:!a})]}))}t.PromotionsScreen=function({isFakePro:e}){var t;const n=v.useDispatch(),a=v.useSelector(y.selectSettingsAreDirty),o=v.useSelector(y.selectSettingsAreSaving),l=v.useSelector(y.selectSetting("autoPromotions")),i=e?C:l,s=null!==(t=v.useSelector(w.selectQueryParam("tab")))&&void 0!==t?t:"automate";return P.useUnload(_.LEAVE_MESSAGE,e=>a&&e.screen!==h.SCREENS.PROMOTIONS,[a]),r.useEffect(()=>()=>a&&n(S.restoreSettings()),[a,n]),b.useDocumentEventListener("keydown",e=>{"s"===e.key.toLowerCase()&&e.ctrlKey&&(a&&!o&&n(E.saveSettings()),e.preventDefault(),e.stopPropagation())},[],[a,o]),r.default.createElement("div",{className:u.default.screen},r.default.createElement("div",{className:u.default.navbar},r.default.createElement(O,{currTabId:s,isFakePro:e})),"automate"===s&&r.default.createElement(f.AutomatePromotionsTab,{automations:i,onChange:function(t){e||n(S.updateSettings({autoPromotions:t}))},isFakePro:e}),"global"===s&&r.default.createElement(m.GlobalPromotionsTab,{isFakePro:e}))};const C=[{criteria:{type:"hashtags",hashtags:["product"]},promo:{linkText:"Buy this product",linkSource:{type:"wp_post",postType:"page",postId:1,postTitle:"Product Page",postUrl:""},linkBehavior:{openNewTab:!1,showPopupBox:!1}}},{criteria:{type:"hashtags",hashtags:["myblog"]},promo:{linkText:"Buy this product",linkSource:{type:"wp_post",postType:"post",postId:1,postTitle:"My Latest Blog Post",postUrl:""},linkBehavior:{openNewTab:!1,showPopupBox:!1}}},{criteria:{type:"hashtags",hashtags:["youtube"]},promo:{linkText:"",linkSource:{type:"url",url:""},linkBehavior:{openNewTab:!1,showPopupBox:!1}}}]},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsScreen=t.LEAVE_MESSAGE=void 0;const r=l(n(0)),u=i(n(995)),s=n(1),c=n(212),d=n(996),f=n(278),m=n(29),p=n(41),_=n(46),h=n(55),b=n(39);t.LEAVE_MESSAGE="You have unsaved changes. If you leave now, your changes will be lost.",t.SettingsScreen=function(){const e=s.useDispatch(),n=s.useSelector(m.selectSettingsAreDirty),a=s.useSelector(h.selectQueryParam("tab")),o=a?f.AdminSettings.find(e=>a===e.id):f.AdminSettings[0];return r.useEffect(()=>()=>n&&e(p.restoreSettings()),[n,e]),b.useUnload(t.LEAVE_MESSAGE,()=>n,[n]),r.default.createElement(r.default.Fragment,null,r.default.createElement(c.AdminScreen,{navbar:d.SettingsNavbar,className:u.default.root},o&&(_.Tier.isAtLeast(_.Tier.PRO)||!o.isPro)&&r.default.createElement(o.component,null)))}},function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=o(n(0)),i=o(n(1008)),r=n(139),u=n(12),s=n(38);function c(e,t){return 1===parseInt(e.toString())?t[0]:t[1]}t.default=function(e){var{type:t,unit:n,units:o,value:d,min:f,onChange:m,emptyMin:p}=e,_=a(e,["type","unit","units","value","min","onChange","emptyMin"]);const[h,b]=l.default.useState(!1),g="object"==typeof o&&s.Dictionary.size(o)>1,v=()=>b(e=>!e),y=e=>{switch(e.key){case" ":case"Enter":v();break;default:return}e.preventDefault(),e.stopPropagation()};(null==d||isNaN(d))&&(d="");const E=p&&void 0!==f&&(d<=f||""===d)?"":d;return l.default.createElement("div",{className:i.default.root},l.default.createElement("input",Object.assign({},_,{className:i.default.input,type:null!=t?t:"text",value:E,min:f,onChange:e=>m&&m(e.currentTarget.value,n)})),l.default.createElement("div",{className:i.default.unitContainer},g&&l.default.createElement(r.Menu,{isOpen:h,onBlur:()=>b(!1)},({ref:e})=>l.default.createElement("div",{ref:e,className:i.default.unitSelector,role:"button",onClick:v,onKeyDown:y,tabIndex:0},l.default.createElement("span",{className:i.default.currentUnit},c(d,s.Dictionary.get(o,n))),l.default.createElement(u.Dashicon,{icon:"arrow-down-alt2",className:h?i.default.menuChevronOpen:i.default.menuChevron})),s.Dictionary.keys(o).map(e=>{const t=s.Dictionary.get(o,e),n=c(d,t);return l.default.createElement(r.MenuItem,{key:n,onClick:()=>(m&&m(d,e),void b(!1))},n)})),!g&&l.default.createElement("div",{className:i.default.unitStatic},l.default.createElement("span",null,n))))}},,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hideNews=t.closeNews=t.openNews=t.removeNewsMessage=t.addNewsMessage=t.NewsSlice=void 0;const l=n(16),i=n(407);t.NewsSlice=l.createSlice({name:"news",initialState:{messages:[],isOpen:!1,isHidden:!1},reducers:{addNewsMessage(e,t){e.messages.push(t.payload)},removeNewsMessage(e,t){e.messages=e.messages.filter(e=>e.id!==t.payload)},openNews(e){e.isOpen=!0},closeNews(e){e.isOpen=!1},hideNews(e){e.isHidden=!0}},extraReducers:e=>e.addCase(i.fetchNews.fulfilled,(e,t)=>{e.messages=t.payload})}),o(n(1019),t),t.addNewsMessage=t.NewsSlice.actions.addNewsMessage,t.removeNewsMessage=t.NewsSlice.actions.removeNewsMessage,t.openNews=t.NewsSlice.actions.openNews,t.closeNews=t.NewsSlice.actions.closeNews,t.hideNews=t.NewsSlice.actions.hideNews},function(e,t,n){},,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(21);t.default={save:e=>a.client.post(e.id?"/feeds/"+e.id:"/feeds",{feed:e}),delete:e=>a.client.post("/feeds/delete/"+e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(21);t.default={update:e=>a.client.post("/accounts",e),delete:e=>a.client.post("/accounts/delete/"+e),connect:(e,t)=>{const n=t?{accessToken:e,userId:t}:{accessToken:e};return a.client.post("/connect",n)},getAccessToken:(e,t)=>a.client.get("/access_token/"+e,{params:{pass:t}}),customMedia:{get:e=>a.client.get(`/accounts/${e}/custom_media`),add:(e,t)=>a.client.post(`/accounts/${e}/custom_media`,t),update:(e,t,n)=>a.client.post(`/accounts/${e}/custom_media/${t}`,n),delete:(e,t)=>a.client.post(`/accounts/${e}/custom_media/${t}/delete`)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(21);t.default={deleteForAccount:e=>a.client.post("/account_media/delete/"+e),cleanUp:e=>a.client.post("/clean_up_media",{ageLimit:e})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(21);t.default={get:()=>a.client.get("/settings"),save:e=>a.client.post("/settings",{settings:e})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(21);t.default={get:()=>a.client.get("/notifications")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(21);t.default={clearAll:()=>a.client.post("/clear_cache"),clearForFeed:e=>a.client.post("/clear_cache/feed",{options:e.options})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(21);t.default={posts:{search:(e,t="")=>a.client.get(`/search_posts?search=${t}&type=${e}`)}}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedsScreen=void 0;const r=l(n(0)),u=i(n(462)),s=n(212),c=n(66),d=n(467),f=n(309),m=i(n(313)),p=n(1),_=n(104),h=n(9),b=n(77),g=n(224),v=n(39),y=n(143),E=n(535),S=n(12);t.FeedsScreen=function(){const e=p.useDispatch(),t=p.useSelector(_.selectHasFeeds),n=r.useRef(),[a,o]=r.useState(!1);function l(t){const n={screen:c.SCREENS.NEW_FEED};t&&(n.template=t.id),e(v.gotoRoute(n))}return r.default.createElement(s.AdminScreen,{navbar:m.default,fillPage:!t},r.default.createElement("div",{className:u.default.root},t?r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:u.default.toolbar},r.default.createElement(h.Button,{ref:n,type:h.ButtonType.PRIMARY,size:h.ButtonSize.LARGE,onClick:function(){return o(!0)}},r.default.createElement(S.Dashicon,{icon:"plus-alt2"}),r.default.createElement("span",null,"Create a new feed")),"   ",r.default.createElement(E.FeedImportButton,{onImport:function(t){const n={id:null,name:t.name,options:t.options,usages:[]};e(y.saveFeed(n))}})),r.default.createElement(d.FeedsList,null)):r.default.createElement(f.FeedsOnboarding,{onSelectTemplate:l,showSteps:!0})),r.default.createElement(b.Modal,{title:"Select a template or design your own",isOpen:a,onClose:function(){var e;o(!1),null===(e=n.current)||void 0===e||e.focus()},width:1e3,portalTo:document.body},r.default.createElement(b.Modal.Content,null,r.default.createElement(g.FeedTemplatePicker,{onChange:l,showCustomOption:!0}))))}},function(e,t,n){e.exports={toolbar:"FeedsScreen__toolbar"}},function(e,t,n){e.exports={"admin-screen":"AdminScreen__admin-screen",adminScreen:"AdminScreen__admin-screen",navbar:"AdminScreen__navbar layout__z-high","fill-page":"AdminScreen__fill-page AdminScreen__admin-screen",fillPage:"AdminScreen__fill-page AdminScreen__admin-screen",notices:"AdminScreen__notices",content:"AdminScreen__content"}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAccountTokenExpiring=void 0;const o=n(28),l=a(n(466)),i=a(n(214)),r=a(n(1086)),u={days:7};t.isAccountTokenExpiring=function(e){const t=r.default(new Date,u);return e.type===o.Account.Type.BUSINESS&&e.accessExpiry&&l.default(t,i.default(e.accessExpiry))}},,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedsList=void 0;const u=l(n(0)),s=n(1),c=r(n(468)),d=n(104),f=n(136),m=n(12),p=n(175),_=n(9),h=r(n(304)),b=n(66),g=r(n(178)),v=n(139),y=n(306),E=n(307),S=r(n(218)),w=n(221),P=n(26),O=n(67),C=n(39),M=r(n(308)),N=n(25),k=n(21),A=n(61),T=n(43),F=n(103);function L(e){return JSON.stringify({name:e.name,options:e.options})}function j({feed:e,onClickAccount:t}){const n=s.useSelector(N.selectAccountList(e.options.accounts)),a=s.useSelector(N.selectAccountList(e.options.tagged));let o=[];return n.forEach(e=>{e&&o.push(u.default.createElement(D,{account:e,onClick:()=>t(e.id)}))}),a.forEach(e=>{e&&o.push(u.default.createElement(D,{account:e,onClick:()=>t(e.id),isTagged:!0}))}),e.options.hashtags.forEach(e=>o.push(u.default.createElement(I,{hashtag:e}))),0===o.length&&o.push(u.default.createElement("div",{className:c.default.noSourcesMsg},u.default.createElement(m.Dashicon,{icon:"warning"}),u.default.createElement("span",null,"Feed has no sources"))),u.default.createElement("div",{className:c.default.sourcesList},o.map((e,t)=>e&&u.default.createElement(R,{key:t},e)))}t.FeedsList=function(){const e=s.useDispatch(),t=s.useSelector(d.selectFeeds),[n,a]=u.useState(null),o=t=>i(this,void 0,void 0,(function*(){var n,a;const o=yield A.RestApi.media.import(t.options);(null===(n=null==o?void 0:o.data)||void 0===n?void 0:n.batching)?e(O.showToast({key:"admin/feeds/import/done",message:`Imported the first set of posts for "${t.name}". Older posts are being imported in the background.`})):(null===(a=null==o?void 0:o.data)||void 0===a?void 0:a.success)&&e(O.showToast({key:"admin/feeds/import/done",message:`Finished importing posts for "${t.name}".`}))})),l=t=>i(this,void 0,void 0,(function*(){e(O.showToast({key:"admin/feeds/clear_cache/wait",message:`Clearing the cache for "${t.name}". This could take a while. Please wait ...`,type:O.ToastType.STICKY}));try{yield T.AdminRestApi.cache.clearForFeed(t),e(O.showToast({key:"admin/feeds/clear_cache/done",message:`Finished clearing the cache for "${t.name}."`}))}catch(e){F.triggerError({type:"feeds/clear_cache/error",message:k.getErrorResponseMessage(e)})}finally{e(O.removeToast("admin/feeds/clear_cache/wait"))}}));function r(){e(O.showToast({key:"admin/feeds/export",message:"Copied export code to clipboard!"}))}const g={cols:{name:c.default.nameCol,sources:c.default.sourcesCol,usages:c.default.usagesCol,actions:c.default.actionsCol},cells:{name:c.default.nameCell,sources:c.default.sourcesCell,usages:c.default.usagesCell,actions:c.default.actionsCell}};return u.default.createElement("div",{className:"feeds-list"},u.default.createElement(h.default,{styleMap:g,rows:t,cols:[{id:"name",label:"Name",render:e=>{var t,n;const a={screen:b.SCREENS.EDIT_FEED,id:e.id.toString()};return u.default.createElement("div",null,u.default.createElement(p.Link,{to:a,className:c.default.name},e.name?e.name:"(no name)"),u.default.createElement("div",{className:c.default.metaList},u.default.createElement("span",{className:c.default.id},"ID: ",e.id),u.default.createElement("span",{className:c.default.layout},null!==(n=null===(t=P.Responsive.extract(e.options.layout))||void 0===t?void 0:t.toUpperCase())&&void 0!==n?n:"GRID")))}},{id:"sources",label:"Shows posts from",render:e=>u.default.createElement(j,{feed:e,onClickAccount:a})},{id:"usages",label:"Instances",render:e=>u.default.createElement(x,{feed:e})},{id:"actions",label:"Actions",render:t=>u.default.createElement("div",{className:c.default.actionsList},u.default.createElement(v.StatefulMenu,null,({ref:e,openMenu:t})=>u.default.createElement(_.Button,{ref:e,className:c.default.actionsBtn,type:_.ButtonType.PILL,size:_.ButtonSize.NORMAL,onClick:t},u.default.createElement(y.Ellipsis,null)),u.default.createElement(v.MenuContent,null,u.default.createElement(v.MenuItem,{onClick:()=>(t=>{e(C.gotoRoute({screen:b.SCREENS.EDIT_FEED,id:t.id.toString()}))})(t)},u.default.createElement(m.Dashicon,{icon:"edit"}),"Edit feed"),u.default.createElement(v.MenuItem,{onClick:()=>(t=>{e(f.duplicateFeed(t))})(t)},u.default.createElement(m.Dashicon,{icon:"admin-page"}),"Duplicate feed"),u.default.createElement(v.MenuSeparator,null),u.default.createElement(E.CopyShortcode,{feed:t},u.default.createElement(v.MenuItem,null,u.default.createElement(m.Dashicon,{icon:"editor-code"}),"Copy shortcode")),u.default.createElement(M.default,{text:L(t),onCopy:r},u.default.createElement(v.MenuItem,null,u.default.createElement(m.Dashicon,{icon:"download"}),"Export feed")),u.default.createElement(v.MenuSeparator,null),u.default.createElement(v.MenuItem,{onClick:()=>o(t)},u.default.createElement(m.Dashicon,{icon:"image-rotate"}),"Update posts"),u.default.createElement(v.MenuItem,{onClick:()=>l(t)},u.default.createElement(m.Dashicon,{icon:"database-remove"}),"Clear cache"),u.default.createElement(v.MenuSeparator,null),u.default.createElement(v.MenuItem,{onClick:()=>(t=>{confirm("Are you sure you want to delete this feed? This cannot be undone.")&&e(f.deleteFeed(t))})(t),danger:!0},u.default.createElement(m.Dashicon,{icon:"trash"}),"Delete feed"))))}]}),u.default.createElement(S.default,{isOpen:null!==n,accountId:n,onClose:()=>a(null)}))};const x=({feed:e})=>u.default.createElement("div",{className:c.default.usagesList},e.usages.map((e,t)=>u.default.createElement("div",{key:t,className:c.default.usage},u.default.createElement("a",{className:c.default.usageLink,href:e.link,target:"_blank"},e.name),u.default.createElement("span",{className:c.default.usageType},"(",e.type,")"))));function D({account:e,isTagged:t,onClick:n}){return u.default.createElement("div",{className:c.default.accountSource,onClick:n,role:n?"button":void 0,tabIndex:0},t?u.default.createElement(m.Dashicon,{icon:"tag"}):u.default.createElement(g.default,{className:c.default.tinyAccountPic,account:e}),e.username)}function I({hashtag:e}){return u.default.createElement("a",{className:c.default.hashtagSource,href:w.getHashtagPageUrl(e.tag),target:"_blank"},u.default.createElement(m.Dashicon,{icon:"admin-site-alt3"}),u.default.createElement("span",null,"#",e.tag))}const R=({children:e})=>u.default.createElement("div",{className:c.default.source},e)},function(e,t,n){e.exports={"name-col":"FeedsList__name-col",nameCol:"FeedsList__name-col","sources-col":"FeedsList__sources-col",sourcesCol:"FeedsList__sources-col","actions-col":"FeedsList__actions-col",actionsCol:"FeedsList__actions-col","actions-cell":"FeedsList__actions-cell",actionsCell:"FeedsList__actions-cell",name:"FeedsList__name layout__text-overflow-ellipsis","meta-list":"FeedsList__meta-list",metaList:"FeedsList__meta-list","meta-info":"FeedsList__meta-info",metaInfo:"FeedsList__meta-info",id:"FeedsList__id FeedsList__meta-info",layout:"FeedsList__layout FeedsList__meta-info","sources-list":"FeedsList__sources-list layout__flex-row",sourcesList:"FeedsList__sources-list layout__flex-row",source:"FeedsList__source layout__text-overflow-ellipsis","account-source":"FeedsList__account-source",accountSource:"FeedsList__account-source","tiny-account-pic":"FeedsList__tiny-account-pic",tinyAccountPic:"FeedsList__tiny-account-pic","hashtag-source":"FeedsList__hashtag-source",hashtagSource:"FeedsList__hashtag-source","no-sources-msg":"FeedsList__no-sources-msg",noSourcesMsg:"FeedsList__no-sources-msg","usages-list":"FeedsList__usages-list layout__flex-column",usagesList:"FeedsList__usages-list layout__flex-column",usage:"FeedsList__usage layout__flex-row layout__text-overflow-ellipsis","usage-link":"FeedsList__usage-link layout__text-overflow-ellipsis",usageLink:"FeedsList__usage-link layout__text-overflow-ellipsis","usage-type":"FeedsList__usage-type",usageType:"FeedsList__usage-type","actions-list":"FeedsList__actions-list",actionsList:"FeedsList__actions-list","actions-btn":"FeedsList__actions-btn",actionsBtn:"FeedsList__actions-btn","sources-cell":"FeedsList__sources-cell",sourcesCell:"FeedsList__sources-cell","usages-cell":"FeedsList__usages-cell",usagesCell:"FeedsList__usages-cell","usages-col":"FeedsList__usages-col",usagesCol:"FeedsList__usages-col"}},function(e,t,n){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.ToastType=void 0,(a=t.ToastType||(t.ToastType={})).NOTIFICATION="notification",a.STICKY="sticky",a.ERROR="error"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUnload=t.useRouteInterceptor=void 0;const a=n(39),o=n(1),l=n(0),i=n(93);function r(e,t){l.useEffect(()=>a.addRouteInterceptor(e),t)}t.useRouteInterceptor=r,t.useUnload=function(e,t,n=[]){const a=o.useStore(),[u]=l.useState(()=>a.getState().router.query);r(l.useCallback((n,a)=>{if(!i.objectsEqual(n,u)&&t(n,a))return confirm(e)},[t,u,e]),n),l.useEffect(()=>{const n=n=>{if(t({},""))return(n||window.event).returnValue=e,e};return window.addEventListener("beforeunload",n),()=>window.removeEventListener("beforeunload",n)},n)}},function(e,t,n){e.exports={root:"Tooltip__root layout__z-highest",container:"Tooltip__container","container-top":"Tooltip__container-top Tooltip__container",containerTop:"Tooltip__container-top Tooltip__container","container-bottom":"Tooltip__container-bottom Tooltip__container",containerBottom:"Tooltip__container-bottom Tooltip__container","container-left":"Tooltip__container-left Tooltip__container",containerLeft:"Tooltip__container-left Tooltip__container","container-right":"Tooltip__container-right Tooltip__container",containerRight:"Tooltip__container-right Tooltip__container",content:"Tooltip__content",arrow:"Tooltip__arrow","arrow-top":"Tooltip__arrow-top Tooltip__arrow",arrowTop:"Tooltip__arrow-top Tooltip__arrow","arrow-bottom":"Tooltip__arrow-bottom Tooltip__arrow",arrowBottom:"Tooltip__arrow-bottom Tooltip__arrow","arrow-left":"Tooltip__arrow-left Tooltip__arrow",arrowLeft:"Tooltip__arrow-left Tooltip__arrow","arrow-right":"Tooltip__arrow-right Tooltip__arrow",arrowRight:"Tooltip__arrow-right Tooltip__arrow"}},,,function(e,t,n){e.exports={table:"Table__table theme__subtle-drop-shadow theme__slightly-rounded",header:"Table__header",footer:"Table__footer",cell:"Table__cell","col-heading":"Table__col-heading Table__cell",colHeading:"Table__col-heading Table__cell",row:"Table__row","align-left":"Table__align-left",alignLeft:"Table__align-left","align-right":"Table__align-right",alignRight:"Table__align-right","align-center":"Table__align-center",alignCenter:"Table__align-center"}},function(e,t,n){e.exports={root:"ProfilePic__root",round:"ProfilePic__round ProfilePic__root",square:"ProfilePic__square ProfilePic__root"}},function(e,t,n){},,,,function(e,t,n){e.exports={modal:"Modal__modal layout__z-higher",shade:"Modal__shade layout__fill-parent",container:"Modal__container",opening:"Modal__opening","modal-open-animation":"Modal__modal-open-animation",modalOpenAnimation:"Modal__modal-open-animation",closing:"Modal__closing","modal-close-animation":"Modal__modal-close-animation",modalCloseAnimation:"Modal__modal-close-animation",content:"Modal__content",header:"Modal__header",icon:"Modal__icon","close-btn":"Modal__close-btn",closeBtn:"Modal__close-btn",scroller:"Modal__scroller",footer:"Modal__footer","footer-left":"Modal__footer-left Modal__footer",footerLeft:"Modal__footer-left Modal__footer","footer-right":"Modal__footer-right Modal__footer",footerRight:"Modal__footer-right Modal__footer","footer-space-between":"Modal__footer-space-between Modal__footer",footerSpaceBetween:"Modal__footer-space-between Modal__footer"}},,function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=o(n(0)),i=o(n(483)),r=n(28),u=o(n(422)),s=o(n(214)),c=n(141),d=n(219),f=o(n(220)),m=n(9),p=n(33),_=o(n(178)),h=n(18),b=n(1),g=n(92),v=n(25),y=n(45),E=n(486),S=n(43);t.default=function({accountId:e,onUpdate:t}){const n=b.useDispatch(),o=b.useSelector(v.selectAccountById(e)),[w,P]=l.default.useState(!1),[O,C]=l.default.useState(""),[M,N]=l.default.useState(!1),k=o.type===r.Account.Type.PERSONAL,A=r.Account.getBioText(o),T=()=>a(this,void 0,void 0,(function*(){N(!0);const e=h.withPartial(o,{customBio:O});yield n(g.updateAccount(e)),P(!1),N(!1),t&&t()})),F=e=>a(this,void 0,void 0,(function*(){N(!0);const a=h.withPartial(o,{customProfilePicUrl:e});yield n(g.updateAccount(a)),N(!1),t&&t()}));return l.default.createElement("div",{className:i.default.root},l.default.createElement("div",{className:i.default.container},l.default.createElement("div",{className:i.default.infoColumn},l.default.createElement("a",{href:r.Account.getProfileUrl(o),target:"_blank",className:i.default.username},"@",o.username),l.default.createElement("div",{className:i.default.row},l.default.createElement("span",{className:i.default.label},"Spotlight ID:"),o.id),l.default.createElement("div",{className:i.default.row},l.default.createElement("span",{className:i.default.label},"User ID:"),o.userId),l.default.createElement("div",{className:i.default.row},l.default.createElement("span",{className:i.default.label},"Type:"),o.type),!w&&l.default.createElement("div",{className:i.default.row},l.default.createElement("div",null,l.default.createElement("span",{className:i.default.label},"Bio:"),l.default.createElement("a",{className:i.default.editBioLink,onClick:()=>{C(r.Account.getBioText(o)),P(!0)}},"Edit bio"),l.default.createElement("pre",{className:i.default.bio},A.length>0?A:"(No bio)"))),w&&l.default.createElement("div",{className:i.default.row},l.default.createElement("textarea",{className:i.default.bioEditor,value:O,onChange:e=>{C(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&e.ctrlKey&&(T(),e.preventDefault(),e.stopPropagation())},rows:4}),l.default.createElement("div",{className:i.default.bioFooter},l.default.createElement("div",{className:i.default.bioEditingControls},M&&l.default.createElement("span",null,"Please wait ...")),l.default.createElement("div",{className:i.default.bioEditingControls},l.default.createElement(m.Button,{className:i.default.bioEditingButton,type:m.ButtonType.DANGER,disabled:M,onClick:()=>a(this,void 0,void 0,(function*(){N(!0);const e=h.withPartial(o,{customBio:""});yield n(g.updateAccount(e)),P(!1),N(!1),t&&t()}))},"Reset"),l.default.createElement(m.Button,{className:i.default.bioEditingButton,type:m.ButtonType.SECONDARY,disabled:M,onClick:()=>{P(!1)}},"Cancel"),l.default.createElement(m.Button,{className:i.default.bioEditingButton,type:m.ButtonType.PRIMARY,disabled:M,onClick:T},"Save"))))),l.default.createElement("div",{className:i.default.picColumn},l.default.createElement("div",{className:i.default.centerContainer},l.default.createElement(_.default,{account:o,className:i.default.profilePic})),l.default.createElement(d.WpUploadMedia,{id:"account-custom-profile-pic",title:"Select profile picture",mediaType:"image",onSelect:e=>{const t=parseInt(e[0].attributes.id),n=f.default.media.attachment(t).attributes.url;F(n)}},({open:e})=>l.default.createElement(m.Button,{type:m.ButtonType.SECONDARY,size:m.ButtonSize.LARGE,className:i.default.setCustomPic,onClick:e},"Change profile picture")),o.customProfilePicUrl.length>0&&l.default.createElement("a",{className:i.default.resetCustomPic,onClick:()=>{F("")}},"Reset profile picture"))),k&&l.default.createElement("div",{className:i.default.personalInfoMessage},l.default.createElement(p.Message,{type:p.MessageType.INFO,showIcon:!0},"Due to restrictions set by Instagram, Spotlight cannot import the profile photo and bio"," ","text for Personal accounts."," ",l.default.createElement("a",{href:y.AdminResources.customPersonalInfoUrl,target:"_blank"},"Click here to learn more"),".")),l.default.createElement(c.Spoiler,{label:"View access token",stealth:!0},l.default.createElement(E.PasswordProtected,{buttonLabel:"View access token",promptText:l.default.createElement("span",null,"Enter your WordPress password to view the access token."," ",l.default.createElement("a",{href:y.AdminResources.tokenPasswordDoc,target:"_blank"},"Learn more.")),request:e=>S.AdminRestApi.accounts.getAccessToken(o.id,e),children:e=>l.default.createElement("div",null,l.default.createElement("p",null,l.default.createElement("span",{className:i.default.label},"Expires on:"),l.default.createElement("span",null,o.accessExpiry?u.default(s.default(o.accessExpiry),"PPPP"):"Unknown")),l.default.createElement("pre",{className:i.default.accessToken},e.data.accessToken))})))}},function(e,t,n){e.exports={root:"AccountInfo__root",container:"AccountInfo__container",column:"AccountInfo__column","info-column":"AccountInfo__info-column AccountInfo__column",infoColumn:"AccountInfo__info-column AccountInfo__column","pic-column":"AccountInfo__pic-column AccountInfo__column",picColumn:"AccountInfo__pic-column AccountInfo__column","center-container":"AccountInfo__center-container",centerContainer:"AccountInfo__center-container",id:"AccountInfo__id",username:"AccountInfo__username","profile-pic":"AccountInfo__profile-pic",profilePic:"AccountInfo__profile-pic",label:"AccountInfo__label",row:"AccountInfo__row",pre:"AccountInfo__pre",bio:"AccountInfo__bio AccountInfo__pre","link-button":"AccountInfo__link-button",linkButton:"AccountInfo__link-button","edit-bio-link":"AccountInfo__edit-bio-link AccountInfo__link-button",editBioLink:"AccountInfo__edit-bio-link AccountInfo__link-button","bio-editor":"AccountInfo__bio-editor",bioEditor:"AccountInfo__bio-editor","bio-footer":"AccountInfo__bio-footer",bioFooter:"AccountInfo__bio-footer","bio-editing-controls":"AccountInfo__bio-editing-controls",bioEditingControls:"AccountInfo__bio-editing-controls","access-token":"AccountInfo__access-token AccountInfo__pre",accessToken:"AccountInfo__access-token AccountInfo__pre","set-custom-pic":"AccountInfo__set-custom-pic",setCustomPic:"AccountInfo__set-custom-pic","reset-custom-pic":"AccountInfo__reset-custom-pic AccountInfo__link-button",resetCustomPic:"AccountInfo__reset-custom-pic AccountInfo__link-button",subtext:"AccountInfo__subtext","personal-info-message":"AccountInfo__personal-info-message",personalInfoMessage:"AccountInfo__personal-info-message"}},function(e,t,n){e.exports={spoiler:"Spoiler__spoiler",content:"Spoiler__content Spoiler__content",header:"Spoiler__header","spoiler-closed":"Spoiler__spoiler-closed Spoiler__spoiler",spoilerClosed:"Spoiler__spoiler-closed Spoiler__spoiler","spoiler-open":"Spoiler__spoiler-open Spoiler__spoiler",spoilerOpen:"Spoiler__spoiler-open Spoiler__spoiler",icon:"Spoiler__icon",label:"Spoiler__label",stealth:"Spoiler__stealth",dashicons:"Spoiler__dashicons",disabled:"Spoiler__disabled",fitted:"Spoiler__fitted",static:"Spoiler__static"}},function(e,t,n){e.exports={message:"Message__message",shaking:"Message__shaking","shake-animation":"Message__shake-animation",shakeAnimation:"Message__shake-animation",icon:"Message__icon",content:"Message__content","dismiss-btn":"Message__dismiss-btn",dismissBtn:"Message__dismiss-btn",success:"Message__success Message__message",info:"Message__info Message__message",warning:"Message__warning Message__message","pro-tip":"Message__pro-tip Message__message",proTip:"Message__pro-tip Message__message",error:"Message__error Message__message",grey:"Message__grey Message__message"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordProtected=void 0;const u=r(n(487)),s=l(n(0)),c=n(9),d=n(33);function f({children:e,response:t}){return e(t)}t.PasswordProtected=function({request:e,children:t,buttonLabel:n="Submit",promptText:a="You need to enter your WordPress password to view this content:"}){var o,l;const[r,m]=s.useState(""),[p,_]=s.useState(!1),[h,b]=s.useState(null),g=()=>i(this,void 0,void 0,(function*(){let t;_(!0);try{t=yield e(r)}catch(e){t=e.response}b(t),_(!1)})),v=null!==h,y=v&&200!==h.status,E=null!==(l=null===(o=null==h?void 0:h.data)||void 0===o?void 0:o.message)&&void 0!==l?l:"An unknown error occurred.";return v&&!y&&h?s.default.createElement(f,{children:t,response:h}):s.default.createElement("div",{className:u.default.root},s.default.createElement("label",{htmlFor:"sli-password-field"},a),s.default.createElement("div",{className:u.default.passwordForm},s.default.createElement("input",{id:"access-token-password-field",className:u.default.passwordField,type:"password",value:r,onChange:e=>m(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(g(),e.preventDefault(),e.stopPropagation())},autoComplete:"current-password",disabled:p}),s.default.createElement(c.Button,{className:u.default.passwordBtn,type:c.ButtonType.PRIMARY,size:c.ButtonSize.LARGE,onClick:g,disabled:p},n)),y&&s.default.createElement("div",{className:u.default.error},s.default.createElement(d.Message,{type:d.MessageType.ERROR,showIcon:!0,shake:!0},E)))}},function(e,t,n){e.exports={root:"PasswordProtected__root","password-form":"PasswordProtected__password-form",passwordForm:"PasswordProtected__password-form","password-field":"PasswordProtected__password-field",passwordField:"PasswordProtected__password-field","password-btn":"PasswordProtected__password-btn",passwordBtn:"PasswordProtected__password-btn",error:"PasswordProtected__error"}},,,function(e,t,n){e.exports={root:"FeedsOnboarding__root","root-transitioning":"FeedsOnboarding__root-transitioning FeedsOnboarding__root",rootTransitioning:"FeedsOnboarding__root-transitioning FeedsOnboarding__root",transition:"FeedsOnboarding__transition",left:"FeedsOnboarding__left",right:"FeedsOnboarding__right","scroll-padding":"FeedsOnboarding__scroll-padding",scrollPadding:"FeedsOnboarding__scroll-padding","bf-slider":"FeedsOnboarding__bf-slider",bfSlider:"FeedsOnboarding__bf-slider","bf-heading":"FeedsOnboarding__bf-heading",bfHeading:"FeedsOnboarding__bf-heading","bf-stealth-link":"FeedsOnboarding__bf-stealth-link",bfStealthLink:"FeedsOnboarding__bf-stealth-link","bf-button":"FeedsOnboarding__bf-button",bfButton:"FeedsOnboarding__bf-button","bf-slider-item":"FeedsOnboarding__bf-slider-item",bfSliderItem:"FeedsOnboarding__bf-slider-item"}},function(e,t,n){},function(e,t,n){e.exports={root:"FeedTemplatePicker__root",tile:"FeedTemplatePicker__tile",button:"FeedTemplatePicker__button",template:"FeedTemplatePicker__template FeedTemplatePicker__button","template-pro":"FeedTemplatePicker__template-pro FeedTemplatePicker__template FeedTemplatePicker__button",templatePro:"FeedTemplatePicker__template-pro FeedTemplatePicker__template FeedTemplatePicker__button","template-label":"FeedTemplatePicker__template-label",templateLabel:"FeedTemplatePicker__template-label","template-thumbnail":"FeedTemplatePicker__template-thumbnail",templateThumbnail:"FeedTemplatePicker__template-thumbnail","template-name":"FeedTemplatePicker__template-name",templateName:"FeedTemplatePicker__template-name","current-indicator":"FeedTemplatePicker__current-indicator",currentIndicator:"FeedTemplatePicker__current-indicator","pro-pill":"FeedTemplatePicker__pro-pill",proPill:"FeedTemplatePicker__pro-pill","pro-overlay":"FeedTemplatePicker__pro-overlay",proOverlay:"FeedTemplatePicker__pro-overlay","upgrade-button":"FeedTemplatePicker__upgrade-button",upgradeButton:"FeedTemplatePicker__upgrade-button","custom-template":"FeedTemplatePicker__custom-template FeedTemplatePicker__button",customTemplate:"FeedTemplatePicker__custom-template FeedTemplatePicker__button","custom-template-icon":"FeedTemplatePicker__custom-template-icon",customTemplateIcon:"FeedTemplatePicker__custom-template-icon","custom-template-text":"FeedTemplatePicker__custom-template-text",customTemplateText:"FeedTemplatePicker__custom-template-text"}},,,,function(e,t,n){e.exports={pill:"ProPill__pill"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports={root:"Navbar__root layout__flex-row",container:"Navbar__container layout__flex-row","left-container":"Navbar__left-container Navbar__container layout__flex-row",leftContainer:"Navbar__left-container Navbar__container layout__flex-row","right-container":"Navbar__right-container Navbar__container layout__flex-row",rightContainer:"Navbar__right-container Navbar__container layout__flex-row",child:"Navbar__child",section:"Navbar__section Navbar__child",item:"Navbar__item Navbar__child",disabled:"Navbar__disabled",chevron:"Navbar__chevron Navbar__child",link:"Navbar__link","pro-pill":"Navbar__pro-pill",proPill:"Navbar__pro-pill",current:"Navbar__current","button-container":"Navbar__button-container layout__flex-row",buttonContainer:"Navbar__button-container layout__flex-row"}},function(e,t,n){e.exports={logo:"SpotlightLogo__logo","logo-image":"SpotlightLogo__logo-image",logoImage:"SpotlightLogo__logo-image"}},function(e,t,n){e.exports={root:"ProUpgradeBtn__root",red:"ProUpgradeBtn__red ProUpgradeBtn__root"}},,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedImportButton=void 0;const r=l(n(0)),u=i(n(536)),s=n(9),c=n(12),d=n(77),f=i(n(321)),m=n(134);t.FeedImportButton=function({onImport:e}){const t=r.useRef(),n=r.useRef(),[a,o]=r.useState(!1),[l,i]=r.useState(""),p=r.useCallback(()=>{i(""),o(!0)},[n,o]),_=r.useCallback(()=>{var e;o(!1),null===(e=t.current)||void 0===e||e.focus()},[t,o]),h=r.useCallback(e=>{i(e.target.value)},[i]),b=r.useCallback(()=>{let t;try{t=JSON.parse(l)}catch(e){t=null}m.isPlainObject(t)&&(null==t?void 0:t.hasOwnProperty("name"))&&(null==t?void 0:t.hasOwnProperty("options"))?(e(t),_()):alert("The imported code is not valid")},[l,e,_]);return r.default.createElement(r.default.Fragment,null,r.default.createElement(s.Button,{ref:t,type:s.ButtonType.SECONDARY,size:s.ButtonSize.LARGE,onClick:p},r.default.createElement(c.Dashicon,{icon:"upload"}),r.default.createElement("span",null,"Import a feed")),r.default.createElement(d.Modal,{isOpen:a,onClose:_,title:"Import feed"},r.default.createElement(d.Modal.Content,null,r.default.createElement("p",{className:u.default.message},"Paste your exported feed code:"),r.default.createElement("textarea",{ref:n,className:u.default.field,value:l,onChange:h,autoFocus:!0,rows:4})),r.default.createElement(d.Modal.Footer,null,r.default.createElement(s.Button,{className:f.default.button,type:s.ButtonType.SECONDARY,onClick:_,children:"Cancel"}),r.default.createElement(s.Button,{className:f.default.button,type:s.ButtonType.PRIMARY,onClick:b,children:"Import"}))))}},function(e,t,n){e.exports={message:"FeedImportButton__message",field:"FeedImportButton__field"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NewFeedScreen=void 0;const i=l(n(0)),r=n(322),u=n(10),s=n(276),c=n(1),d=n(55),f=n(180),m=n(226);t.NewFeedScreen=function(){const e=c.useDispatch(),t=c.useSelector(d.selectQueryParam("template")),n=c.useSelector(m.selectTemplateById(t)),a=u.getDefaultFeedOptions(),o=n?f.applyFeedTemplateModel(n,a):a;return i.useEffect(()=>{e(s.setIsEditingNewFeed(!0))},[]),i.default.createElement(r.AdminEditor,{feed:{id:null,name:"",options:o,usages:[]}})}},,,,,,,,,,,function(e,t,n){e.exports={root:"SaveButton__root","saving-overlay":"SaveButton__saving-overlay layout__fill-parent",savingOverlay:"SaveButton__saving-overlay layout__fill-parent","saving-animation":"SaveButton__saving-animation",savingAnimation:"SaveButton__saving-animation"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedNameField=void 0;const o=a(n(550)),l=a(n(0)),i=n(9),r=n(12),u=n(139),s=n(138);t.FeedNameField=function({name:e,label:t,onDone:n}){const a=l.default.useRef(),[c,d]=l.default.useState(""),[f,m]=l.default.useState(!1),p=()=>{d(e),m(!0)},_=()=>{m(!1),n&&n(c),a.current&&a.current.focus()},h=e=>{switch(e.key){case"Enter":case" ":p()}};return l.default.createElement("div",{className:o.default.root},l.default.createElement(u.Menu,{isOpen:f,onBlur:()=>m(!1),placement:"bottom"},({ref:e})=>l.default.createElement("div",{ref:s.mergeRefs(e,a),className:o.default.staticContainer,onClick:p,onKeyPress:h,tabIndex:0,role:"button"},l.default.createElement("span",{className:o.default.label},t),l.default.createElement(r.Dashicon,{icon:"edit",className:o.default.editIcon})),l.default.createElement(u.MenuContent,null,l.default.createElement(u.MenuStatic,null,l.default.createElement("div",{className:o.default.editContainer},l.default.createElement("input",{type:"text",value:c,onChange:e=>{d(e.target.value)},onKeyDown:e=>{switch(e.key){case"Enter":_();break;case"Escape":m(!1);break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:!0,placeholder:"Feed name"}),l.default.createElement(i.Button,{className:o.default.doneBtn,type:i.ButtonType.PRIMARY,size:i.ButtonSize.NORMAL,onClick:_},l.default.createElement(r.Dashicon,{icon:"yes"})))))))}},function(e,t,n){e.exports={root:"FeedNameField__root layout__flex-row",container:"FeedNameField__container layout__flex-row","edit-container":"FeedNameField__edit-container FeedNameField__container layout__flex-row",editContainer:"FeedNameField__edit-container FeedNameField__container layout__flex-row","static-container":"FeedNameField__static-container FeedNameField__container layout__flex-row",staticContainer:"FeedNameField__static-container FeedNameField__container layout__flex-row","edit-icon":"FeedNameField__edit-icon dashicons__dashicon-normal",editIcon:"FeedNameField__edit-icon dashicons__dashicon-normal",label:"FeedNameField__label","done-btn":"FeedNameField__done-btn",doneBtn:"FeedNameField__done-btn"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedNamePrompt=void 0;const o=a(n(0)),l=a(n(552)),i=a(n(145));t.FeedNamePrompt=function({isOpen:e,onAccept:t,onCancel:n}){const[a,r]=o.default.useState("");function u(){t&&t(a)}return o.default.createElement(i.default,{title:"Feed name",isOpen:e,onCancel:function(){n&&n()},onAccept:u,buttons:["Save","Cancel"]},o.default.createElement("p",{className:l.default.message},"Give this feed a memorable name:"),o.default.createElement("input",{type:"text",className:l.default.input,value:a,onChange:e=>{r(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&(u(),e.preventDefault(),e.stopPropagation())},autoFocus:!0}))}},function(e,t,n){e.exports={message:"FeedNamePrompt__message",input:"FeedNamePrompt__input"}},,,function(e,t,n){e.exports={root:"ConnectAccountButton__root"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=a(n(0)),l=a(n(238)),i=n(77);t.default=function({isOpen:e,onClose:t,onConnect:n,beforeConnect:a}){return o.default.createElement(i.Modal,{title:"Connect an Instagram account",isOpen:e,width:650,onClose:t},o.default.createElement(i.Modal.Content,null,o.default.createElement(l.default,{onConnect:n,beforeConnect:e=>{a&&a(e),t()}})))}},function(e,t,n){e.exports={base:"ConnectAccount__base",horizontal:"ConnectAccount__horizontal ConnectAccount__base","prompt-msg":"ConnectAccount__prompt-msg",promptMsg:"ConnectAccount__prompt-msg",types:"ConnectAccount__types",vertical:"ConnectAccount__vertical ConnectAccount__base","or-separator":"ConnectAccount__or-separator",orSeparator:"ConnectAccount__or-separator",type:"ConnectAccount__type",capabilities:"ConnectAccount__capabilities",capability:"ConnectAccount__capability","business-learn-more":"ConnectAccount__business-learn-more",businessLearnMore:"ConnectAccount__business-learn-more","connect-access-token":"ConnectAccount__connect-access-token",connectAccessToken:"ConnectAccount__connect-access-token","or-line":"ConnectAccount__or-line",orLine:"ConnectAccount__or-line","or-text":"ConnectAccount__or-text",orText:"ConnectAccount__or-text","types-rows":"ConnectAccount__types-rows",typesRows:"ConnectAccount__types-rows"}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=o(n(0)),i=o(n(559)),r=n(9),u=n(33),s=n(45),c=/^(User ID: ([0-9]+)\s*)?Access Token: ([a-zA-Z0-9]+)$/im;t.default=function({isColumn:e,onConnectPersonal:t,onConnectBusiness:n}){const o=l.default.useRef(!1),[d,f]=l.default.useState(!1),[m,p]=l.default.useState(""),[_,h]=l.default.useState(""),b=m.length>145&&m.trimLeft().startsWith("EA"),g=e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),v())},v=l.default.useCallback(()=>a(this,void 0,void 0,(function*(){f(!0),b?yield n(m,_):yield t(m),f(!1)})),[m,_,b]),y=l.default.createElement("div",{className:i.default.buttonContainer},l.default.createElement(r.Button,{className:i.default.button,onClick:v,type:r.ButtonType.PRIMARY,disabled:0===m.length&&(0===_.length||!b)||d},d?"Connecting ...":"Connect"));return l.default.createElement("div",{className:e?i.default.column:i.default.row},l.default.createElement("div",{className:i.default.content},l.default.createElement("div",{className:i.default.bottom},l.default.createElement("input",{id:"manual-connect-access-token",type:"password",value:m,onChange:e=>{const t=e.target.value;if(o.current){o.current=!1;const e=c.exec(t);if(e)switch(e.length){case 2:return void p(e[1]);case 4:return h(e[2]),void p(e[3])}}p(t)},onPaste:e=>{o.current=!0,e.persist()},onKeyDown:g,placeholder:"Instagram/Facebook access token",autoComplete:"no"}),!b&&y)),b&&l.default.createElement("div",{className:i.default.content},l.default.createElement("label",{className:i.default.label,htmlFor:"manual-connect-user-id"},l.default.createElement("div",null,"This access token is for a ",l.default.createElement("strong",null,"Business")," account."," ","Please also enter the user ID:")),l.default.createElement("div",{className:i.default.bottom},l.default.createElement("input",{id:"manual-connect-user-id",type:"text",value:_,onChange:e=>{h(e.target.value)},onKeyDown:g,placeholder:"Enter the user ID"}),b&&y)),l.default.createElement(u.Message,{type:u.MessageType.GREY,showIcon:!0},"Connecting a client's account? Avoid sharing Instagram passwords and use our"," ",l.default.createElement("a",{href:s.AdminResources.tokenGenerator,target:"_blank"},"access token generator"),"."))}},function(e,t,n){e.exports={root:"ConnectAccessToken__root",row:"ConnectAccessToken__row ConnectAccessToken__root",content:"ConnectAccessToken__content",label:"ConnectAccessToken__label",bottom:"ConnectAccessToken__bottom","button-container":"ConnectAccessToken__button-container",buttonContainer:"ConnectAccessToken__button-container",button:"ConnectAccessToken__button","help-message":"ConnectAccessToken__help-message",helpMessage:"ConnectAccessToken__help-message",column:"ConnectAccessToken__column ConnectAccessToken__root"}},,,function(e,t,n){e.exports={root:"AccountSelector__root",row:"AccountSelector__row",account:"AccountSelector__account button__toggle-button button__panel-button theme__panel","account-selected":"AccountSelector__account-selected AccountSelector__account button__toggle-button button__panel-button theme__panel button__toggle-button-on button__toggle-button button__panel-button theme__panel",accountSelected:"AccountSelector__account-selected AccountSelector__account button__toggle-button button__panel-button theme__panel button__toggle-button-on button__toggle-button button__panel-button theme__panel","account-disabled":"AccountSelector__account-disabled AccountSelector__account button__toggle-button button__panel-button theme__panel theme__disabled",accountDisabled:"AccountSelector__account-disabled AccountSelector__account button__toggle-button button__panel-button theme__panel theme__disabled","account-selected-disabled":"AccountSelector__account-selected-disabled AccountSelector__account-selected AccountSelector__account button__toggle-button button__panel-button theme__panel button__toggle-button-on button__toggle-button button__panel-button theme__panel theme__disabled",accountSelectedDisabled:"AccountSelector__account-selected-disabled AccountSelector__account-selected AccountSelector__account button__toggle-button button__panel-button theme__panel button__toggle-button-on button__toggle-button button__panel-button theme__panel theme__disabled","profile-pic":"AccountSelector__profile-pic",profilePic:"AccountSelector__profile-pic","info-column":"AccountSelector__info-column",infoColumn:"AccountSelector__info-column","info-text":"AccountSelector__info-text",infoText:"AccountSelector__info-text",username:"AccountSelector__username AccountSelector__info-text","account-type":"AccountSelector__account-type AccountSelector__info-text",accountType:"AccountSelector__account-type AccountSelector__info-text","tick-icon":"AccountSelector__tick-icon",tickIcon:"AccountSelector__tick-icon"}},function(e,t,n){e.exports={container:"FieldRow__container","container-wide":"FieldRow__container-wide FieldRow__container",containerWide:"FieldRow__container-wide FieldRow__container",content:"FieldRow__content",label:"FieldRow__label",disabled:"FieldRow__disabled FieldRow__container","pro-pill":"FieldRow__pro-pill",proPill:"FieldRow__pro-pill","disabled-wide":"FieldRow__disabled-wide FieldRow__container-wide FieldRow__container FieldRow__disabled FieldRow__container",disabledWide:"FieldRow__disabled-wide FieldRow__container-wide FieldRow__container FieldRow__disabled FieldRow__container","label-normal":"FieldRow__label-normal FieldRow__label",labelNormal:"FieldRow__label-normal FieldRow__label","label-centered":"FieldRow__label-centered FieldRow__label",labelCentered:"FieldRow__label-centered FieldRow__label",field:"FieldRow__field","field-normal":"FieldRow__field-normal FieldRow__field",fieldNormal:"FieldRow__field-normal FieldRow__field","field-centered":"FieldRow__field-centered FieldRow__field",fieldCentered:"FieldRow__field-centered FieldRow__field","responsive-container":"FieldRow__responsive-container",responsiveContainer:"FieldRow__responsive-container","responsive-field":"FieldRow__responsive-field FieldRow__field",responsiveField:"FieldRow__responsive-field FieldRow__field","label-aligner":"FieldRow__label-aligner",labelAligner:"FieldRow__label-aligner"}},function(e,t,n){e.exports={root:"HelpTooltip__root",tooltip:"HelpTooltip__tooltip layout__z-high","tooltip-container":"HelpTooltip__tooltip-container",tooltipContainer:"HelpTooltip__tooltip-container","tooltip-content":"HelpTooltip__tooltip-content",tooltipContent:"HelpTooltip__tooltip-content",icon:"HelpTooltip__icon"}},,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BusinessAccountSelector=void 0;const o=a(n(0)),l=n(1),i=n(239),r=n(33),u=n(25);t.BusinessAccountSelector=function(e){const t=l.useSelector(u.selectBusinessAccounts);return t.length>0?o.default.createElement(i.AccountSelector,Object.assign({accounts:t},e)):o.default.createElement(r.Message,{type:r.MessageType.WARNING},"Connect a business account to use this feature.")}},,,,,,,,,,,,,,function(e,t,n){e.exports={primaryColor:"#007cba",secondaryColor:"#d04186",tertiaryColor:"#d82442",lightColor:"#f5f5f5",lightColor2:"#e6e7e8",lightColor3:"#e1e2e3",shadowColor:"rgba(20,25,60,.32)",washedColor:"#eaf0f4"}},,,,function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UnitInput=void 0;const l=o(n(0)),i=o(n(587));t.UnitInput=function(e){var{className:t,unit:n}=e,o=a(e,["className","unit"]);return l.default.createElement("div",{className:i.default.root},l.default.createElement("input",Object.assign({},o,{className:`${i.default.field} ${null!=t?t:""}`})),l.default.createElement("div",{className:i.default.unit},l.default.createElement("span",null,n)))}},function(e,t,n){e.exports={root:"UnitInput__root",field:"UnitInput__field",unit:"UnitInput__unit"}},,,,,,,,,,function(e,t,n){e.exports={"checkbox-field":"CheckboxField__checkbox-field",checkboxField:"CheckboxField__checkbox-field",aligner:"CheckboxField__aligner"}},,,,function(e,t,n){e.exports={button:"ColorPicker__button","color-preview":"ColorPicker__color-preview",colorPreview:"ColorPicker__color-preview",popper:"ColorPicker__popper"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports={root:"FieldSet__root"}},,,,,,,,,,,,,function(e,t,n){e.exports={"checkbox-list":"CheckboxListField__checkbox-list",checkboxList:"CheckboxListField__checkbox-list",option:"CheckboxListField__option","disabled-option":"CheckboxListField__disabled-option CheckboxListField__option theme__disabled",disabledOption:"CheckboxListField__disabled-option CheckboxListField__option theme__disabled","pro-pill":"CheckboxListField__pro-pill",proPill:"CheckboxListField__pro-pill"}},,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextAreaField=void 0;const o=a(n(0));t.TextAreaField=function({id:e,value:t,onChange:n}){return o.default.createElement("textarea",{id:e,value:t,onChange:e=>n(e.target.value)})}},,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonGroup=void 0;const o=a(n(0));n(303);const l=n(13);t.ButtonGroup=({wide:e,children:t})=>o.default.createElement("div",{className:l.classList("button-group",e&&"button-group-wide")},t)},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BorderDesignFields=void 0;const r=l(n(0)),u=i(n(844)),s=n(31),c=n(234),d=n(40),f=n(62),m=n(18),p=n(159);t.BorderDesignFields=function({design:e,onChange:t,labels:n,show:a}){const[o,l]=r.useState(c.BorderDesign.DEFAULT);return e=null!=e?e:o,t=null!=t?t:l,r.default.createElement("div",{className:u.default.root},(a.width||a.style||a.color)&&r.default.createElement(p.FieldRow,{label:n&&"Border"},a.width&&r.default.createElement("div",{className:u.default.width},r.default.createElement(s.NumberField,{value:e.width,onChange:n=>{t(m.withPartial(e,{width:n}))},placeholder:"Thickness",min:0,unit:"px"})),a.style&&r.default.createElement("div",{className:u.default.style},r.default.createElement(d.Select,{value:e.style,onChange:n=>{t(m.withPartial(e,{style:n}))},options:[{value:"solid",label:"Solid line"},{value:"dotted",label:"Dotted line"},{value:"dashed",label:"Dashed line"},{value:"double",label:"Double line"},{value:"groove",label:"Grooved"}]})),a.color&&r.default.createElement("div",{className:u.default.color},r.default.createElement(f.ColorPicker,{value:e.color,onChange:n=>{t(m.withPartial(e,{color:n.rgb}))}}))),a.radius&&r.default.createElement(p.FieldRow,{label:n&&"Border Radius"},r.default.createElement(s.NumberField,{value:e.radius,onChange:n=>{const a=parseInt(n.toString());t(m.withPartial(e,{radius:a||0}))},min:0,unit:"px"})))}},function(e,t,n){e.exports={root:"BorderDesignFields__root",row:"BorderDesignFields__row",label:"BorderDesignFields__label",style:"BorderDesignFields__style",width:"BorderDesignFields__width",color:"BorderDesignFields__color"}},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MultiTextInput=void 0;const r=l(n(0)),u=i(n(337)),s=n(33),c=n(40),d={DropdownIndicator:null},f=e=>({label:e,value:e});t.MultiTextInput=function({id:e,value:t,onChange:n,sanitize:a,autoFocus:o,message:l}){const[i,m]=r.default.useState(""),[p,_]=r.default.useState(-1),[h,b]=r.default.useState();r.useEffect(()=>{b(l)},[l]);const g=(t=Array.isArray(t)?t:[]).map(e=>f(e)),v=()=>{i.length&&(m(""),y([...g,f(i)]))},y=e=>{if(!n)return;let t=-1;e=e?e.map(e=>e&&a?a(e.value):e.value).filter((e,n,a)=>{const o=a.indexOf(e);return o!==n?(t=o,!1):!!e}):[],_(t),-1===t&&n(e)},E=c.SelectStyles();return r.default.createElement(r.default.Fragment,null,r.default.createElement(u.default,{inputId:e,className:"react-select",classNamePrefix:"react-select",components:d,inputValue:i,isClearable:!1,isMulti:!0,menuIsOpen:!1,onChange:y,onInputChange:e=>{m(e)},onKeyDown:e=>{if(i)switch(e.key){case",":case"Enter":case"Tab":v(),e.preventDefault()}},onBlur:v,placeholder:"Type something and press enter...",value:g,autoFocus:o,styles:E}),p<0||0===g.length?null:r.default.createElement(s.Message,{type:s.MessageType.WARNING,shake:!0,showIcon:!0,isDismissible:!0},r.default.createElement("code",null,g[p].label)," is already in the list"),h?r.default.createElement(s.Message,{type:s.MessageType.WARNING,shake:!0,showIcon:!0,isDismissible:!0},h):null)}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalFiltersModal=void 0;const o=a(n(0)),l=n(77),i=n(181),r=n(1),u=n(29),s=n(126),c=n(390);t.GlobalFiltersModal=function({isOpen:e,onClose:t,onSave:n}){const a=r.useDispatch(),d=r.useSelector(u.selectSettingsAreDirty),f=r.useSelector(u.selectSettingsAreSaving);return o.default.createElement(l.Modal,{title:"Global filters",isOpen:e,onClose:()=>{d&&!confirm("You have unsaved changes. If you close the window now, your settings will not be saved. Click OK to close anyway.")||t()}},o.default.createElement(l.Modal.Content,null,o.default.createElement(c.SettingsFiltersTab,null)),o.default.createElement(l.Modal.Footer,null,o.default.createElement(i.SaveButton,{disabled:!d,isSaving:f,onClick:()=>{a(s.saveSettings()).then(()=>{n&&n()})}})))}},function(e,t,n){e.exports={root:"SettingsPage__root layout__flex-column","after-groups":"SettingsPage__after-groups",afterGroups:"SettingsPage__after-groups","before-groups":"SettingsPage__before-groups",beforeGroups:"SettingsPage__before-groups","group-list":"SettingsPage__group-list layout__flex-column",groupList:"SettingsPage__group-list layout__flex-column"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsCaptionFiltersGroup=void 0;const o=a(n(0)),l=n(150),i=n(876),r=n(879);t.SettingsCaptionFiltersGroup=function(){return o.default.createElement(l.SettingsGroup,{title:"Caption filtering"},o.default.createElement(i.CaptionWhitelistField,null),o.default.createElement(r.CaptionBlacklistField,null))}},function(e,t,n){e.exports={root:"SettingsGroup__root layout__flex-column",title:"SettingsGroup__title","before-fields":"SettingsGroup__before-fields",beforeFields:"SettingsGroup__before-fields","after-fields":"SettingsGroup__after-fields",afterFields:"SettingsGroup__after-fields","field-list":"SettingsGroup__field-list layout__flex-column",fieldList:"SettingsGroup__field-list layout__flex-column"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CaptionWhitelistField=void 0;const o=a(n(0)),l=n(1),i=n(83),r=n(149),u=n(29),s=n(41);t.CaptionWhitelistField=function(){const e=l.useDispatch(),t=l.useSelector(u.selectSetting("captionWhitelist")),n=l.useSelector(u.selectSetting("captionBlacklist"));return o.default.createElement(i.SettingsField,{id:"captionWhitelist",label:"Only show posts with these words or phrases",fullWidth:!0},o.default.createElement(r.LimitedMultiTextInput,{id:"captionWhitelist",value:t,onChange:t=>e(s.updateSettings({captionWhitelist:t})),exclude:n,excludeMsg:"%s is already being used in the below option"}))}},function(e,t,n){e.exports={root:"SettingsField__root layout__flex-column",label:"SettingsField__label layout__flex-column",container:"SettingsField__container layout__flex-row",control:"SettingsField__control layout__flex-column","control-partial-width":"SettingsField__control-partial-width SettingsField__control layout__flex-column",controlPartialWidth:"SettingsField__control-partial-width SettingsField__control layout__flex-column","control-full-width":"SettingsField__control-full-width SettingsField__control layout__flex-column",controlFullWidth:"SettingsField__control-full-width SettingsField__control layout__flex-column",tooltip:"SettingsField__tooltip layout__flex-column"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CaptionBlacklistField=void 0;const o=a(n(0)),l=n(1),i=n(83),r=n(149),u=n(29),s=n(41);t.CaptionBlacklistField=function(){const e=l.useDispatch(),t=l.useSelector(u.selectSetting("captionBlacklist")),n=l.useSelector(u.selectSetting("captionWhitelist"));return o.default.createElement(i.SettingsField,{id:"captionBlacklist",label:"Hide posts with these words or phrases",fullWidth:!0},o.default.createElement(r.LimitedMultiTextInput,{id:"captionBlacklist",value:t,onChange:t=>e(s.updateSettings({captionBlacklist:t})),exclude:n,excludeMsg:"%s is already being used in the above option"}))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsHashtagFiltersGroup=void 0;const o=a(n(0)),l=n(150),i=n(881),r=n(883);t.SettingsHashtagFiltersGroup=function(){return o.default.createElement(l.SettingsGroup,{title:"Hashtag filtering"},o.default.createElement(i.HashtagWhitelistField,null),o.default.createElement(r.HashtagBlacklistField,null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HashtagWhitelistField=void 0;const o=a(n(0)),l=n(1),i=n(83),r=n(29),u=n(41),s=n(198);t.HashtagWhitelistField=function(){const e=l.useDispatch(),t=l.useSelector(r.selectSetting("hashtagWhitelist")),n=l.useSelector(r.selectSetting("hashtagBlacklist"));return o.default.createElement(i.SettingsField,{id:"hashtagWhitelist",label:"Only show posts with these words or phrases",fullWidth:!0},o.default.createElement(s.MultiHashtagInput,{id:"hashtagWhitelist",value:t,onChange:t=>e(u.updateSettings({hashtagWhitelist:t})),exclude:n,excludeMsg:"The %s hashtag is already being used in the below option"}))}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HashtagBlacklistField=void 0;const o=a(n(0)),l=n(1),i=n(83),r=n(149),u=n(29),s=n(41);t.HashtagBlacklistField=function(){const e=l.useDispatch(),t=l.useSelector(u.selectSetting("hashtagBlacklist")),n=l.useSelector(u.selectSetting("hashtagWhitelist"));return o.default.createElement(i.SettingsField,{id:"hashtagBlacklist",label:"Hide posts with these words or phrases",fullWidth:!0},o.default.createElement(r.LimitedMultiTextInput,{id:"hashtagBlacklist",value:t,onChange:t=>e(s.updateSettings({hashtagBlacklist:t})),exclude:n,excludeMsg:"The %s hashtag is already being used in the above option"}))}},,,,,,function(e,t,n){e.exports={layout:"SidebarLayout__layout","layout-primary-content":"SidebarLayout__layout-primary-content SidebarLayout__layout",layoutPrimaryContent:"SidebarLayout__layout-primary-content SidebarLayout__layout","layout-primary-sidebar":"SidebarLayout__layout-primary-sidebar SidebarLayout__layout",layoutPrimarySidebar:"SidebarLayout__layout-primary-sidebar SidebarLayout__layout",container:"SidebarLayout__container",content:"SidebarLayout__content SidebarLayout__container",sidebar:"SidebarLayout__sidebar SidebarLayout__container",navigation:"SidebarLayout__navigation","navigation-left":"SidebarLayout__navigation-left SidebarLayout__navigation",navigationLeft:"SidebarLayout__navigation-left SidebarLayout__navigation","navigation-right":"SidebarLayout__navigation-right SidebarLayout__navigation",navigationRight:"SidebarLayout__navigation-right SidebarLayout__navigation","nav-link":"SidebarLayout__nav-link",navLink:"SidebarLayout__nav-link"}},,,function(e,t,n){e.exports={content:"Sidebar__content",sidebar:"Sidebar__sidebar",padded:"Sidebar__padded","padded-content":"Sidebar__padded-content Sidebar__content Sidebar__padded",paddedContent:"Sidebar__padded-content Sidebar__content Sidebar__padded",disabled:"Sidebar__disabled Sidebar__sidebar"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RadioGroup=void 0;const o=a(n(0)),l=a(n(894));t.RadioGroup=function({name:e,className:t,disabled:n,value:a,onChange:i,options:r}){const u=e=>{!n&&e.target.checked&&i&&i(e.target.value)};return t=(n?l.default.disabled:l.default.radioGroup)+" "+(null!=t?t:""),o.default.createElement("div",{className:t},r.map((t,n)=>o.default.createElement("label",{className:l.default.option,key:n},o.default.createElement("input",{type:"radio",name:e,value:t.value,checked:a===t.value,onChange:u}),o.default.createElement("span",null,t.label))))}},function(e,t,n){e.exports={"radio-group":"RadioGroup__radio-group",radioGroup:"RadioGroup__radio-group",disabled:"RadioGroup__disabled RadioGroup__radio-group theme__disabled",option:"RadioGroup__option"}},,,function(e,t,n){e.exports={loading:"MediaSelectionGrid__loading",media:"MediaSelectionGrid__media","selected-media":"MediaSelectionGrid__selected-media MediaSelectionGrid__media",selectedMedia:"MediaSelectionGrid__selected-media MediaSelectionGrid__media",thumbnail:"MediaSelectionGrid__thumbnail"}},function(e,t,n){e.exports={root:"SelectionGrid__root",grid:"SelectionGrid__grid","grid-disabled":"SelectionGrid__grid-disabled SelectionGrid__grid",gridDisabled:"SelectionGrid__grid-disabled SelectionGrid__grid",item:"SelectionGrid__item"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JumboAddButton=void 0;const o=a(n(0)),l=a(n(900)),i=n(12),r=n(157),u=n(13);t.JumboAddButton=o.default.forwardRef((function({className:e,isFocused:t=!1,icon:n="plus-alt",onClick:a,children:s=""},c){const d=t?l.default.focused:l.default.root,f=u.classList(d,e);return o.default.createElement(r.DivButton,{ref:c,onClick:a,className:f},o.default.createElement("div",{className:l.default.container},o.default.createElement(i.Dashicon,{icon:n}),o.default.createElement("span",{className:l.default.text},s)))}))},function(e,t,n){e.exports={root:"JumboAddButton__root",hoverStyle:"JumboAddButton__hoverStyle",focused:"JumboAddButton__focused JumboAddButton__root JumboAddButton__hoverStyle",container:"JumboAddButton__container",text:"JumboAddButton__text"}},function(e,t,n){},,,,,,,,,,,,function(e,t,n){e.exports={root:"PromotionsGrid__root",tile:"PromotionsGrid__tile","tile-selected":"PromotionsGrid__tile-selected PromotionsGrid__tile",tileSelected:"PromotionsGrid__tile-selected PromotionsGrid__tile",thumbnail:"PromotionsGrid__thumbnail","tile-icon":"PromotionsGrid__tile-icon",tileIcon:"PromotionsGrid__tile-icon","tile-thumbnail":"PromotionsGrid__tile-thumbnail",tileThumbnail:"PromotionsGrid__tile-thumbnail",navigation:"PromotionsGrid__navigation"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PromotionOverrideMessage=void 0;const o=a(n(0)),l=n(33),i=n(9),r=n(175);t.PromotionOverrideMessage=function({hasGlobal:e,hasAuto:t,isOverriding:n,onOverride:a}){return o.default.createElement(o.default.Fragment,null,o.default.createElement(l.Message,{type:l.MessageType.WARNING,showIcon:!0},o.default.createElement("span",null,"You have")," ",t&&o.default.createElement(r.Link,{to:{screen:"promotions",tab:"automate"},absolute:!0,newTab:!0},"automated"),t&&e&&o.default.createElement(o.default.Fragment,null," ",o.default.createElement("span",null,"and")," "),e&&o.default.createElement(r.Link,{to:{screen:"promotions",tab:"global"},absolute:!0,newTab:!0},"global")," ",o.default.createElement("span",null,"promotions that apply to this post.")," ",n?o.default.createElement("span",null,"To stop overriding, simply remove the custom promotion."):o.default.createElement("span",null,"Click the button below to use a custom promotion instead.")),!n&&o.default.createElement(i.Button,{onClick:a},"Override"))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=a(n(0)),l=n(40),i=n(84),r=a(n(32)),u=n(35),s=n(267),c=n(159),d=n(916),f=n(79),m=n(18);var p=f.Promos.getDefaultPromo;const _=[];t.default=function({promo:e,onChange:t}){e=m.withPartial(p(),null!=e?e:{}),0===_.length&&(_.push({value:"",label:"None"},{value:"url",label:"URL"}),r.default.config.postTypes.forEach(e=>{if("attachment"!==e.slug){const t=o.default.createElement("span",null,e.labels.singularName,"post"!==e.slug&&"page"!==e.slug&&o.default.createElement("span",null," ",o.default.createElement("code",{style:{fontSize:"90%"}},e.slug)));_.push({value:e.slug,label:t})}}));const n=o.default.useCallback(n=>{""===n?t():t("url"===n?m.withPartial(e,{linkSource:m.withPartial(e.linkSource,{type:"url"})}):m.withPartial(e,{linkSource:m.withPartial(e.linkSource,{type:"wp_post",postType:n})}))},[e,t]),a=o.default.useCallback(n=>{"wp_post"===e.linkSource.type&&t(m.withPartial(e,{linkSource:m.withPartial(e.linkSource,{postId:n.id,postTitle:n.title,postUrl:n.permalink})}))},[e,t]),l=o.default.useCallback(n=>{"url"===e.linkSource.type&&t(m.withPartial(e,{linkSource:m.withPartial(e.linkSource,{url:n})}))},[e,t]),i=o.default.useCallback(n=>{t(m.withPartial(e,{linkBehavior:m.withPartial(e.linkBehavior,{openNewTab:n})}))},[e,t]),u=o.default.useCallback(n=>{t(m.withPartial(e,{linkBehavior:m.withPartial(e.linkBehavior,{showPopupBox:!n})}))},[e,t]),s=o.default.useCallback(n=>{t(m.withPartial(e,{linkText:n}))},[e,t]),c="wp_post"===e.linkSource.type?r.default.config.postTypes.find(t=>t.slug===e.linkSource.postType):void 0;let d="";return"url"===e.linkSource.type?d="url":"wp_post"===e.linkSource.type&&(d=e.linkSource.postType),o.default.createElement(o.default.Fragment,null,o.default.createElement(h,{value:d,onChange:n}),"url"===e.linkSource.type&&o.default.createElement(b,{value:e.linkSource.url,onChange:l}),"wp_post"===e.linkSource.type&&o.default.createElement(g,{postType:c,postId:e.linkSource.postId,postTitle:e.linkSource.postTitle,onChange:a}),e.linkSource.type&&o.default.createElement(y,{value:!e.linkBehavior.showPopupBox,onChange:u}),e.linkSource.type&&o.default.createElement(E,{value:e.linkBehavior.openNewTab,onChange:i}),e.linkSource.type&&o.default.createElement(w,{value:e.linkText,onChange:s,placeholder:f.Promos.Link.getDefaultText(e)}))};const h=o.default.memo((function({value:e,onChange:t}){return o.default.createElement(c.FieldRow,{labelId:"promo-link-to",label:"Link to"},o.default.createElement(l.Select,{id:"promo-link-to",value:e||"",onChange:e=>t(e.value),options:_,isCreatable:!1}))})),b=o.default.memo((function({value:e,onChange:t}){return o.default.createElement(c.FieldRow,{labelId:"link-promo-url",label:"URL",wide:!0},o.default.createElement(s.TextField,{id:"link-promo-url",value:e,onChange:t}))})),g=o.default.memo((function({postType:e,postId:t,postTitle:n,onChange:a}){const l=e?"Search for a "+e.labels.singularName:"Search";return o.default.createElement(c.FieldRow,{labelId:"link-promo-url",label:l,wide:!0},o.default.createElement(d.PostSelector,{id:"sli-promo-search-post",postType:e.slug,postId:t,postTitle:n,onChange:a}))})),v=o.default.createElement(o.default.Fragment,null,o.default.createElement("p",null,"Tick this box to make posts go directly to the link. If left unticked, posts will open the popup box."),o.default.createElement("p",null,"To enable your feed's popup box and sidebar:"),o.default.createElement("ol",{style:{marginLeft:15}},o.default.createElement("li",null,"Set the ",o.default.createElement("b",null,"Design » Feed » Open posts in")," option to ",o.default.createElement("b",null,"Popup box")),o.default.createElement("li",null,"Enable the ",o.default.createElement("b",null,"Design » Popup box » Show sidebar")," option."))),y=o.default.memo((function({value:e,onChange:t}){return o.default.createElement(c.FieldRow,{labelId:"promo-link-directly",label:"Link directly",tooltip:v},o.default.createElement(u.CheckboxField,{id:"promo-link-directly",value:e,onChange:t}))})),E=o.default.memo((function({value:e,onChange:t}){return o.default.createElement(c.FieldRow,{labelId:"promo-link-new-tab",label:"Open in a new tab"},o.default.createElement(u.CheckboxField,{id:"promo-link-new-tab",value:e,onChange:t}))})),S=o.default.createElement(o.default.Fragment,null,o.default.createElement("p",null,"The text to use for the link in the popup box sidebar:",o.default.createElement("br",null),o.default.createElement("img",{src:i.Common.image("popup-link-text.png"),alt:""})),o.default.createElement("p",null,"Remember to enable your feed's popup box and sidebar, like so:"),o.default.createElement("ol",{style:{marginLeft:15}},o.default.createElement("li",null,"Set the ",o.default.createElement("b",null,"Design » Feed » Open posts in")," option to ",o.default.createElement("b",null,"Popup box")),o.default.createElement("li",null,"Enable the ",o.default.createElement("b",null,"Design » Popup box » Show sidebar")," option."))),w=o.default.memo((function({value:e,onChange:t,placeholder:n}){return o.default.createElement(c.FieldRow,{labelId:"promo-link-text",label:"Popup box link text",tooltip:S},o.default.createElement(s.TextField,{id:"promo-link-text",value:e,onChange:t,placeholder:n}))}))},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PostSelector=void 0;const u=l(n(0)),s=n(40),c=r(n(32)),d=(n(21),e=>e.length?`No posts were found for "${e}"`:"Type to search for posts");t.PostSelector=function({id:e,postType:t,postId:n,postTitle:a,onChange:o,noPostsMsg:l,loadingMsg:r,placeholder:f}){l=null!=l?l:d,r=null!=r?r:"Searching...",f=null!=f?f:"Select or start typing...";const m=u.default.useRef(),p=u.default.useRef(!1),_=u.default.useRef(),[h,b]=u.default.useState([]),[g,v]=u.default.useState(!1),y=u.default.useCallback(e=>(clearTimeout(m.current),new Promise(n=>{m.current=setTimeout(()=>i(this,void 0,void 0,(function*(){try{const a=(_.current=yield c.default.config.searchPosts(t,e)).map(e=>({value:e.id,label:e.title}));n(a)}catch(e){}})),1e3)})),[t]),E=u.default.useCallback(e=>{if(null===e)o(null);else{const t=_.current.find(t=>t.id==e.value);o(null!=t?t:null)}},[o,_]);return u.useEffect(()=>(p.current=!1,t&&(v(!0),y("").then(e=>{p.current||b(e)}).finally(()=>{p.current||v(!1)})),()=>p.current=!0),[t,y,p]),u.default.createElement(s.Select,{async:!0,cacheOptions:!0,id:e,value:n||0,defaultValue:0,defaultInputValue:n?a:"",onChange:E,defaultOptions:!!g||h,loadOptions:y,placeholder:f,noOptionsMessage:l,loadingMessage:()=>r,isLoading:g,isSearchable:!0,isClearable:!0})}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=a(n(0));t.default=function({}){return o.default.createElement(o.default.Fragment,null,o.default.createElement("p",{style:{fontWeight:"bold"}},"How it works:"),o.default.createElement("ol",{style:{marginTop:0}},o.default.createElement("li",null,"Select a post from the preview on the left."),o.default.createElement("li",null,"Choose what the post should link to.")),o.default.createElement("p",null,"That’s it!"))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PromotePreviewTile=void 0;const o=a(n(0)),l=a(n(919)),i=n(127);t.PromotePreviewTile=function({media:e}){return o.default.createElement("div",{className:l.default.container},o.default.createElement("div",{className:l.default.sizer},o.default.createElement(i.MediaThumbnail,{media:e})))}},function(e,t,n){e.exports={container:"PromotePreviewTile__container",sizer:"PromotePreviewTile__sizer"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Screen=void 0,(t.Screen||(t.Screen={})).Sizes={WIDE:1200,LARGE:1180,MEDIUM:960,SMALL:782,NARROW:600,ALL:[1200,1180,960,782,600]}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=a(n(0)),l=a(n(922)),i=a(n(165)),r=n(9),u=n(12);t.default=function({children:e,steps:t,current:n,onChangeStep:a,firstStep:s,lastStep:c}){var d;s=null!=s?s:[],c=null!=c?c:[];const f=null!==(d=t.findIndex(e=>e.key===n))&&void 0!==d?d:0,m=f<=0,p=f>=t.length-1,_=m?null:t[f-1],h=p?null:t[f+1],b=m?s:o.default.createElement(r.Button,{type:r.ButtonType.LINK,onClick:()=>!m&&a&&a(t[f-1].key),className:l.default.prevLink,disabled:_.disabled},o.default.createElement(u.Dashicon,{icon:"arrow-left-alt2"}),o.default.createElement("span",null,_.label)),g=p?c:o.default.createElement(r.Button,{type:r.ButtonType.LINK,onClick:()=>!p&&a&&a(t[f+1].key),className:l.default.nextLink,disabled:h.disabled},o.default.createElement("span",null,h.label),o.default.createElement(u.Dashicon,{icon:"arrow-right-alt2",style:{marginRight:0}}));return o.default.createElement(i.default,null,{path:[],left:b,right:g,center:e})}},function(e,t,n){e.exports={"arrow-link":"WizardNavbar__arrow-link",arrowLink:"WizardNavbar__arrow-link","prev-link":"WizardNavbar__prev-link WizardNavbar__arrow-link",prevLink:"WizardNavbar__prev-link WizardNavbar__arrow-link","next-link":"WizardNavbar__next-link WizardNavbar__arrow-link",nextLink:"WizardNavbar__next-link WizardNavbar__arrow-link"}},function(e,t,n){e.exports={root:"GenericNavbar__root",list:"GenericNavbar__list","left-list":"GenericNavbar__left-list GenericNavbar__list",leftList:"GenericNavbar__left-list GenericNavbar__list",item:"GenericNavbar__item","center-list":"GenericNavbar__center-list GenericNavbar__list",centerList:"GenericNavbar__center-list GenericNavbar__list","right-list":"GenericNavbar__right-list GenericNavbar__list",rightList:"GenericNavbar__right-list GenericNavbar__list","path-list":"GenericNavbar__path-list GenericNavbar__left-list GenericNavbar__list",pathList:"GenericNavbar__path-list GenericNavbar__left-list GenericNavbar__list","path-segment":"GenericNavbar__path-segment",pathSegment:"GenericNavbar__path-segment",separator:"GenericNavbar__separator GenericNavbar__item"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=a(n(0)),l=a(n(925)),i=a(n(165)),r=n(9),u=n(12),s=n(139);function c({pages:e,current:t,onClickPage:n,children:a}){const[i,r]=o.default.useState(!1),u=()=>r(!0),c=()=>r(!1);return o.default.createElement(s.Menu,{isOpen:i,onBlur:c,placement:"bottom-start",refClassName:l.default.menuRef},({ref:e})=>o.default.createElement("a",{ref:e,className:l.default.menuLink,onClick:u},a),o.default.createElement(s.MenuContent,null,e.map(e=>{return o.default.createElement(s.MenuItem,{key:e.key,disabled:e.disabled,active:e.key===t,onClick:(a=e.key,()=>{n&&n(a),c()})},e.label);var a})))}t.default=function({pages:e,current:t,onChangePage:n,showNavArrows:a,hideMenuArrow:s,children:d}){var f,m;const{path:p,right:_}=d,h=null!==(f=e.findIndex(e=>e.key===t))&&void 0!==f?f:0,b=null!==(m=e[h].label)&&void 0!==m?m:"",g=h<=0,v=h>=e.length-1,y=g?null:e[h-1],E=v?null:e[h+1];let S=[];return a&&S.push(o.default.createElement(r.Button,{key:"page-menu-left",type:r.ButtonType.PILL,onClick:()=>!g&&n&&n(e[h-1].key),disabled:g||y.disabled},o.default.createElement(u.Dashicon,{icon:"arrow-left-alt2"}))),S.push(o.default.createElement(c,{key:"page-menu",pages:e,current:t,onClickPage:e=>n&&n(e)},o.default.createElement("span",null,b),!s&&o.default.createElement(u.Dashicon,{icon:"arrow-down-alt2",className:l.default.arrowDown}))),a&&S.push(o.default.createElement(r.Button,{key:"page-menu-left",type:r.ButtonType.PILL,onClick:()=>!v&&n&&n(e[h+1].key),disabled:v||E.disabled},o.default.createElement(u.Dashicon,{icon:"arrow-right-alt2"}))),o.default.createElement(i.default,{pathStyle:p.length>1?"line":"none"},{path:p,right:_,center:S})}},function(e,t,n){e.exports={"menu-link":"PageMenuNavbar__menu-link",menuLink:"PageMenuNavbar__menu-link","menu-ref":"PageMenuNavbar__menu-ref",menuRef:"PageMenuNavbar__menu-ref","arrow-down":"PageMenuNavbar__arrow-down",arrowDown:"PageMenuNavbar__arrow-down"}},function(e,t,n){e.exports={label:"TabNavbar__label",tab:"TabNavbar__tab",current:"TabNavbar__current TabNavbar__tab",disabled:"TabNavbar__disabled TabNavbar__tab"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WpMediaField=void 0;const o=a(n(0)),l=a(n(974)),i=n(219),r=n(9);t.WpMediaField=({id:e,title:t,mediaType:n,button:a,buttonSet:u,buttonChange:s,value:c,onChange:d})=>{u=void 0===a?u:a,s=void 0===a?s:a;const f=!!c,m=f?s:u,p=()=>{d&&d("")};return o.default.createElement(i.WpUploadMedia,{id:e,title:t,mediaType:n,button:m,value:c,onSelect:e=>{d&&d(e[0].attributes.url)}},({open:e})=>o.default.createElement("div",{className:l.default.wpMediaField},f&&o.default.createElement("div",{className:l.default.preview,tabIndex:0,onClick:e,role:"button"},o.default.createElement("img",{src:c,alt:"Custom profile picture"})),o.default.createElement(r.Button,{className:l.default.selectBtn,type:r.ButtonType.SECONDARY,onClick:e},m),f&&o.default.createElement(r.Button,{className:l.default.removeBtn,type:r.ButtonType.DANGER_LINK,onClick:p},"Remove custom photo")))}},function(e,t,n){e.exports={"wp-media-field":"WpMediaField__wp-media-field",wpMediaField:"WpMediaField__wp-media-field",preview:"WpMediaField__preview","select-btn":"WpMediaField__select-btn",selectBtn:"WpMediaField__select-btn","remove-btn":"WpMediaField__remove-btn",removeBtn:"WpMediaField__remove-btn"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedSidebar=void 0;const r=l(n(0)),u=i(n(976)),s=n(8),c=n(1),d=n(55),f=i(n(32)),m=n(33),p=n(141),_=n(307),h=n(9),b=n(977),g=n(17),v=n(104),y=i(n(227)),E=n(84);function S({children:e}){const t=r.useRef(),[n,a]=r.useState(0),o=()=>t.current.slideTo((n+1)%e.length);return r.default.createElement("div",{className:u.default.imageSlider},r.default.createElement(y.default,{ref:t,activeIndex:n,onSlideChanged:e=>a(e.item),animationType:"slide",animationDuration:200,touchTracking:!0,preservePosition:!0,disableButtonsControls:!0,infinite:!0,items:e.map((e,t)=>r.default.createElement(w,{key:t,img:e.src,alt:e.label,onClick:o,annotation:t+1}))}))}function w({img:e,alt:t,annotation:n,onClick:a}){return r.default.createElement("figure",{className:u.default.example},r.default.createElement("figcaption",{className:u.default.caption}," ",t),r.default.createElement("img",{src:E.Common.image(e),alt:null!=t?t:"",style:{cursor:a?"pointer":"default"},onClick:a}),void 0!==n&&r.default.createElement("div",{className:u.default.exampleAnnotation},n))}t.EmbedSidebar=function(){const e=c.useSelector(d.selectQueryParam("id")),t=c.useSelector(v.selectFeedById(e)),n=c.useSelector(s.selectFeedName),a=c.useSelector(v.selectFeeds).length,o=s.useEditorSelector(e=>e.showProOptions),l=g.useFeedEditorContext().config.isPro,i=l||o,y=f.default.config.adminUrl+"/widgets.php",E=f.default.config.adminUrl+"/customize.php?autofocus%5Bpanel%5D=widgets";return e?r.default.createElement("div",{className:u.default.embedSidebar},t.usages.length>0&&r.default.createElement(p.Spoiler,{label:"Instances",defaultOpen:!0,fitted:!0,scrollOnOpen:!0},r.default.createElement("div",{className:u.default.instances},r.default.createElement("p",null,"This feed is currently being shown in these pages:"),r.default.createElement("ul",null,t.usages.map((e,t)=>r.default.createElement("li",{key:t},r.default.createElement("a",{href:`${f.default.config.adminUrl}/post.php?action=edit&post=${e.id}`,target:"_blank"},e.name),r.default.createElement("span",null,"(",e.type,")")))))),r.default.createElement(p.Spoiler,{label:"WordPress Block",defaultOpen:!f.default.config.hasElementor,fitted:!0,scrollOnOpen:!0},r.default.createElement("div",null,r.default.createElement("p",null,"To embed this feed in the WordPress block editor:"),r.default.createElement("ol",null,r.default.createElement("li",null,"Search for the ",r.default.createElement("b",null,"Spotlight Instagram feed")," block"),r.default.createElement("li",null,"Add it to your post or page."),a>1?r.default.createElement("li",null,"Next, choose ",r.default.createElement("strong",null,n)," from the list of feeds."):r.default.createElement("li",null,"Since this is your only feed, Spotlight will automatically show this feed.")),a>1?r.default.createElement(S,null,[{src:"wp-block-search.png",label:"Search for the Spotlight block"},{src:"wp-block-select.png",label:"Choose the feed"},{src:"wp-block.png",label:"Done!"}]):r.default.createElement(S,null,[{src:"wp-block-search.png",label:"Search for the block"},{src:"wp-block.png",label:"Done!"}]))),f.default.config.hasElementor&&i&&r.default.createElement(p.Spoiler,{className:l?void 0:u.default.pro,label:l?"Elementor Widget":r.default.createElement(b.SpoilerProLabel,null,"Elementor widget"),defaultOpen:!0,fitted:!0,scrollOnOpen:!0},r.default.createElement("div",null,r.default.createElement("p",null,"To embed this feed in Elementor:"),r.default.createElement("ol",null,r.default.createElement("li",null,r.default.createElement("span",null,"Search for the ",r.default.createElement("b",null,"Spotlight Instagram feed")," widget",r.default.createElement(m.Message,{type:m.MessageType.INFO,showIcon:!0},"Choose the one with the Instagram logo. The other one is for the normal"," ","WordPress widget."))),r.default.createElement("li",null,"Add it to your post or page"),r.default.createElement("li",null,"Then choose ",r.default.createElement("strong",null,n)," from the list of feeds.")),r.default.createElement(S,null,[{src:"elementor-widget-search.png",label:"Choose the Spotlight widget"},{src:"elementor-widget-feed.png",label:"Choose the feed"}]))),r.default.createElement(p.Spoiler,{label:"Shortcode",defaultOpen:!0,fitted:!0,scrollOnOpen:!0},r.default.createElement("div",null,r.default.createElement("p",null,"Copy the shortcode below and paste it in any page or post to embed this feed:"),r.default.createElement("div",{className:u.default.shortcode},r.default.createElement("code",null,'[instagram feed="',e,'"]'),r.default.createElement(_.CopyShortcode,{feed:t},r.default.createElement(h.Button,{type:h.ButtonType.SECONDARY},"Copy"))))),r.default.createElement(p.Spoiler,{label:"WordPress Widget",defaultOpen:!1,fitted:!0,scrollOnOpen:!0},r.default.createElement("div",null,r.default.createElement("p",null,"To embed this feed as a WordPress widget:"),r.default.createElement("ol",null,r.default.createElement("li",null,"Go to the"," ",r.default.createElement("a",{href:y,target:"_blank"},"Appearance » Widgets")," ","page or the"," ",r.default.createElement("a",{href:E,target:"_blank"},"Widgets section of the Customizer")),r.default.createElement("li",null,"Then, add a ",r.default.createElement("strong",null,"Spotlight Instagram Feed")," widget"),r.default.createElement("li",null,"In the widget's settings, choose the ",r.default.createElement("strong",null,n)," as the feed"," ","to be shown.")),r.default.createElement(w,{img:"widget.png",alt:"Example of a widget"})))):r.default.createElement("div",{className:u.default.embedSidebar},r.default.createElement("div",{className:u.default.saveMessage},r.default.createElement(m.Message,{type:m.MessageType.INFO,showIcon:!0},"You're almost there... Click the ",r.default.createElement("strong",null,"Save")," button at the top-right to be"," ","able to embed this feed on your site!")))}},function(e,t,n){e.exports={"embed-sidebar":"EmbedSidebar__embed-sidebar",embedSidebar:"EmbedSidebar__embed-sidebar","save-message":"EmbedSidebar__save-message",saveMessage:"EmbedSidebar__save-message",shortcode:"EmbedSidebar__shortcode",example:"EmbedSidebar__example",caption:"EmbedSidebar__caption","example-annotation":"EmbedSidebar__example-annotation",exampleAnnotation:"EmbedSidebar__example-annotation",instances:"EmbedSidebar__instances",pro:"EmbedSidebar__pro"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SpoilerProLabel=void 0;const o=a(n(0)),l=a(n(978)),i=n(78);t.SpoilerProLabel=function({children:e}){return o.default.createElement("div",null,o.default.createElement("div",{className:l.default.proPill},o.default.createElement(i.ProPill,null)),o.default.createElement("span",null,e))}},function(e,t,n){e.exports={"pro-pill":"SpoilerProLabel__pro-pill",proPill:"SpoilerProLabel__pro-pill"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.EditFeedScreen=void 0;const i=l(n(0)),r=n(204),u=n(33),s=n(322),c=n(1),d=n(104),f=n(276),m=n(55);function p(){const e=c.useSelector(m.selectRoute);return i.default.createElement("div",null,i.default.createElement(u.Message,{type:u.MessageType.ERROR,showIcon:!0},"Feed does not exist.",i.default.createElement(r.Link,{to:e.withQuery({screen:"feeds"})},"Go back")))}t.EditFeedScreen=function(){const e=c.useDispatch(),t=c.useSelector(m.selectRoute).getParam("id"),n=t?parseInt(t):0,a=c.useSelector(d.selectFeedById(n)),o=c.useStore(),[l]=i.useState(()=>o.getState().app.isEditingNewFeed);return i.useEffect(()=>{e(f.setIsEditingNewFeed(!1))},[]),n?a?i.default.createElement(s.AdminEditor,{feed:a,keepState:l}):i.default.createElement(p,null):null}},function(e,t,n){e.exports={screen:"PromotionsScreen__screen",navbar:"PromotionsScreen__navbar","navbar-item":"PromotionsScreen__navbar-item",navbarItem:"PromotionsScreen__navbar-item","navbar-fake-pro-item":"PromotionsScreen__navbar-fake-pro-item PromotionsScreen__navbar-item",navbarFakeProItem:"PromotionsScreen__navbar-fake-pro-item PromotionsScreen__navbar-item","navbar-pro-pill":"PromotionsScreen__navbar-pro-pill",navbarProPill:"PromotionsScreen__navbar-pro-pill"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AutomatePromotionsTab=void 0;const r=l(n(0)),u=i(n(982)),s=n(42),c=n(983),d=n(986),f=n(9),m=n(988),p=n(989),_=n(97),h=n(79);function b({onCreate:e}){return r.default.createElement("div",{className:u.default.tutorial},r.default.createElement("div",{className:u.default.tutorialBox},r.default.createElement("div",{className:u.default.tutorialText},r.default.createElement("h1",null,"Automatically drive more conversions with Instagram"),r.default.createElement("p",null,"Link Instagram posts to your products, blog posts, landing pages, and more."),r.default.createElement("p",null,r.default.createElement("b",null,"Promotions help you drive traffic and increase conversions through social proof.")),r.default.createElement("p",null,"For example, create an ",r.default.createElement("b",null,"Instagram hashtag"),", let’s call it ",r.default.createElement("b",null,"#mymaxidress"),"."," "," Display photos from Instagram that use this hashtag and feature your dress,"," "," then have them ",r.default.createElement("b",null,"link directly to your product page"),", whether it’s on the"," "," same website or not."),r.default.createElement("p",null,"Every new Instagram photo that Spotlight finds with this hashtag will then",r.default.createElement("br",null),r.default.createElement("b",null,"automatically link to the product page"),"."),r.default.createElement("p",null,r.default.createElement("b",null,"Simple. Powerful. Effective."))),r.default.createElement(f.Button,{type:f.ButtonType.SECONDARY,size:f.ButtonSize.HERO,onClick:e},"Create your first automation")))}t.AutomatePromotionsTab=function({automations:e,isFakePro:t,onChange:n}){e=null!=e?e:[],n=null!=n?n:_.fn.noop;const[a,o]=r.default.useState(0),[l,i]=r.default.useState("content"),f=p.clampIndex(a,e),g=e.length>0,v=()=>i("sidebar"),y=r.useCallback(()=>e[f],[e,f]);function E(e){o(e)}const S=r.useCallback((e,t)=>{n(e),void 0!==t&&o(t)},[n]),w=r.useCallback(t=>{n(m.arrayWith(e,f,t))},[f,n]),P=r.useCallback(()=>{n(e.concat({criteria:{type:"hashtags",hashtags:[]},promo:h.Promos.getDefaultPromo()})),o(0),v()},[e]);return r.default.createElement(s.SidebarLayout,{primary:"content",current:l,sidebar:g&&r.default.createElement(r.default.Fragment,null,r.default.createElement(d.AutoPromotionsSidebar,{automation:y(),onChange:w,isFakePro:t,onClose:()=>i("content")})),content:r.default.createElement("div",{className:u.default.content},!g&&r.default.createElement(b,{onCreate:P}),g&&r.default.createElement(c.AutoPromotionsList,{automations:e,selected:f,isFakePro:t,onChange:S,onSelect:E,onClick:function(e){E(e),v()}}))})}},function(e,t,n){e.exports={content:"AutomatePromotionsTab__content","content-heading":"AutomatePromotionsTab__content-heading",contentHeading:"AutomatePromotionsTab__content-heading",tutorial:"AutomatePromotionsTab__tutorial","tutorial-box":"AutomatePromotionsTab__tutorial-box",tutorialBox:"AutomatePromotionsTab__tutorial-box","tutorial-text":"AutomatePromotionsTab__tutorial-text",tutorialText:"AutomatePromotionsTab__tutorial-text","tutorial-video":"AutomatePromotionsTab__tutorial-video",tutorialVideo:"AutomatePromotionsTab__tutorial-video","mobile-instructions":"AutomatePromotionsTab__mobile-instructions",mobileInstructions:"AutomatePromotionsTab__mobile-instructions"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AutoPromotionsList=void 0;const r=l(n(0)),u=i(n(984)),s=n(60),c=n(156),d=n(424),f=n(9),m=n(12),p=n(985),_=i(n(32)),h=i(n(145)),b=n(42),g=n(97),v=n(79);function y({automation:e,selected:t,disabled:n,onClick:a,onDuplicate:o,onRemove:l}){var i;const s=null===(i=e.promo)||void 0===i?void 0:i.linkSource,c="wp_post"===(null==s?void 0:s.type)?_.default.config.postTypes.find(e=>e.slug===s.postType):void 0,d=n?null:a,h=n?null:p.stopPropagation(o),b=n?null:p.stopPropagation(l);return r.default.createElement("div",{className:t?u.default.rowSelected:u.default.row,onClick:d},r.default.createElement("div",{className:u.default.rowDragHandle},r.default.createElement(m.Dashicon,{icon:"menu"})),r.default.createElement("div",{className:u.default.rowBox},r.default.createElement("div",{className:u.default.rowHashtags},e.criteria.hashtags&&Array.isArray(e.criteria.hashtags)?e.criteria.hashtags.map(e=>"#"+e).join(", "):r.default.createElement("span",{className:u.default.noHashtagsMessage},"No hashtags")),r.default.createElement("div",{className:u.default.rowSummary},r.default.createElement(E,{promo:e.promo,postType:c})),r.default.createElement("div",{className:u.default.rowActions},r.default.createElement(f.Button,{type:f.ButtonType.PILL,size:f.ButtonSize.SMALL,onClick:h,tooltip:"Duplicate automation",disabled:n},r.default.createElement(m.Dashicon,{icon:"admin-page"})),r.default.createElement(f.Button,{type:f.ButtonType.DANGER_PILL,size:f.ButtonSize.SMALL,onClick:b,tooltip:"Remove automation",disabled:n},r.default.createElement(m.Dashicon,{icon:"trash"})))))}function E({promo:e,postType:t}){return"url"===(null==e?void 0:e.linkSource.type)?r.default.createElement("span",{className:u.default.summaryItalics},"Custom URL"):"wp_post"===(null==e?void 0:e.linkSource.type)&&t?r.default.createElement("span",null,r.default.createElement("span",{className:u.default.summaryBold},e.linkSource.postTitle)," ",r.default.createElement("span",{className:u.default.summaryItalics},"(",t.labels.singularName,")")):r.default.createElement("span",{className:u.default.noPromoMessage},"No promotion")}t.AutoPromotionsList=function({automations:e,selected:t,isFakePro:n,onChange:a,onSelect:o,onClick:l}){const i=r.useContext(b.SidebarLayout.Context);!n&&a||(a=g.fn.noop);const[m,p]=r.default.useState(null);function _(e){o&&o(e)}const E=r.useCallback(()=>{a(e.concat({criteria:{type:"hashtags",hashtags:[]},promo:v.Promos.getDefaultPromo()}),e.length)},[e]),S=r.useCallback(t=>()=>{const n=e[t],o=s.cloneObj(n),l=e.slice();l.splice(t+1,0,o),a(l,t+1)},[e]);function w(){p(null)}const P=r.useCallback(t=>{const n=e.slice();n.splice(t,1),a(n,0),w()},[e]),O=r.useCallback(n=>{const o=e[t],l=n.map(e=>({criteria:e.criteria,promo:e.promo})),i=l.findIndex(e=>e.criteria===o.criteria);a(l,i)},[e]);function C(e){return()=>{_(e),l&&l(e)}}const M=e.map(e=>Object.assign(Object.assign({},e),{id:c.uniqueNum()}));return r.default.createElement(r.default.Fragment,null,i&&r.default.createElement("div",{className:u.default.mobileInstructions},r.default.createElement("p",null,"Click or tap on an automation to change its settings")),r.default.createElement("div",{className:u.default.list},r.default.createElement("div",{className:u.default.addButtonRow},r.default.createElement(f.Button,{type:f.ButtonType.SECONDARY,size:f.ButtonSize.LARGE,onClick:E,disabled:n},"Add automation")),r.default.createElement(d.ReactSortable,{list:M,handle:"."+u.default.rowDragHandle,setList:O,onStart:function(e){_(e.oldIndex)},animation:200,delay:1e3,fallbackTolerance:5,delayOnTouchOnly:!0},e.map((e,a)=>r.default.createElement(y,{key:a,automation:e,selected:t===a,onClick:C(a),onDuplicate:S(a),onRemove:()=>function(e){p(e)}(a),disabled:n}))),r.default.createElement(h.default,{isOpen:null!==m,title:"Are you sure?",buttons:["Yes, remove it","No, keep it"],onAccept:()=>P(m),onCancel:w},r.default.createElement("p",null,"Are you sure you want to remove this automation? This ",r.default.createElement("strong",null,"cannot")," be undone!"))))}},function(e,t,n){e.exports={list:"AutoPromotionsList__list","fake-pro-list":"AutoPromotionsList__fake-pro-list AutoPromotionsList__list",fakeProList:"AutoPromotionsList__fake-pro-list AutoPromotionsList__list",row:"AutoPromotionsList__row","row-selected":"AutoPromotionsList__row-selected AutoPromotionsList__row",rowSelected:"AutoPromotionsList__row-selected AutoPromotionsList__row","row-box":"AutoPromotionsList__row-box theme__panel",rowBox:"AutoPromotionsList__row-box theme__panel","row-hashtags":"AutoPromotionsList__row-hashtags",rowHashtags:"AutoPromotionsList__row-hashtags","row-summary":"AutoPromotionsList__row-summary",rowSummary:"AutoPromotionsList__row-summary","row-drag-handle":"AutoPromotionsList__row-drag-handle",rowDragHandle:"AutoPromotionsList__row-drag-handle","row-actions":"AutoPromotionsList__row-actions",rowActions:"AutoPromotionsList__row-actions","add-button-row":"AutoPromotionsList__add-button-row",addButtonRow:"AutoPromotionsList__add-button-row","no-hashtags-message":"AutoPromotionsList__no-hashtags-message",noHashtagsMessage:"AutoPromotionsList__no-hashtags-message","row-faded-text":"AutoPromotionsList__row-faded-text",rowFadedText:"AutoPromotionsList__row-faded-text","no-promo-message":"AutoPromotionsList__no-promo-message AutoPromotionsList__row-faded-text",noPromoMessage:"AutoPromotionsList__no-promo-message AutoPromotionsList__row-faded-text","summary-italics":"AutoPromotionsList__summary-italics",summaryItalics:"AutoPromotionsList__summary-italics","summary-bold":"AutoPromotionsList__summary-bold",summaryBold:"AutoPromotionsList__summary-bold"}},,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AutoPromotionsSidebar=void 0;const r=l(n(0)),u=i(n(987)),s=n(164),c=n(198),d=n(13),f=n(97),m=n(42),p=n(395),_=n(18),h=n(159);t.AutoPromotionsSidebar=function({automation:e,isFakePro:t,onChange:n,onClose:a}){const o=r.useContext(m.SidebarLayout.Context);return!t&&n||(n=f.fn.noop),r.default.createElement(r.default.Fragment,null,o&&r.default.createElement(m.SidebarLayout.Navigation,{icon:"arrow-left-alt",text:"Automations",onClick:a}),r.default.createElement(s.Sidebar,null,e&&r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:d.classList(s.Sidebar.padded,t?u.default.fakePro:null)},r.default.createElement(h.FieldRow,{label:"Promote posts with any of these hashtags",labelId:"sli-auto-promo-hashtags",wide:!0},r.default.createElement(c.MultiHashtagInput,{id:"sli-auto-promo-hashtags",value:e.criteria.hashtags,onChange:function(t){n(_.withPartial(e,{criteria:{type:"hashtags",hashtags:t}}))},autoFocus:!t})),r.default.createElement("div",{className:u.default.promoFields},r.default.createElement(p.MediaPromotionFields,{promo:e.promo,onChange:function(t){n(_.withPartial(e,{promo:t}))}})))),!e&&r.default.createElement("div",{className:s.Sidebar.padded},r.default.createElement("p",null,"Automatically link Instagram posts from any source that contain specific hashtags to"," ","posts, pages, products, custom links, and more. ",r.default.createElement("a",{href:"#"},"Learn more")),r.default.createElement("p",null,"To get started, create an automation or select an existing one."))))}},function(e,t,n){e.exports={"fake-pro":"AutoPromotionsSidebar__fake-pro",fakePro:"AutoPromotionsSidebar__fake-pro","promo-fields":"AutoPromotionsSidebar__promo-fields",promoFields:"AutoPromotionsSidebar__promo-fields"}},,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalPromotionsTab=void 0;const r=l(n(0)),u=n(1),s=i(n(991)),c=n(42),d=n(992),f=i(n(237)),m=n(993),p=n(25),_=n(56),h=n(61);t.GlobalPromotionsTab=function({isFakePro:e}){const t=u.useSelector(p.selectAccounts),[n,a]=r.useState(!1);_.useDocumentEventListener(h.RestApi.media.events.fetch.start,()=>a(!0)),_.useDocumentEventListener(h.RestApi.media.events.fetch.end,()=>a(!1));const[o,l]=r.useState("content"),[i,b]=r.default.useState(()=>(e=>e.length>0?e[0].id:null)(t)),g=r.useCallback(()=>l("content"),[l]),v=r.useCallback(()=>l("sidebar"),[l]);return r.default.createElement(r.default.Fragment,null,0===t.length&&r.default.createElement("div",{className:s.default.tutorial},r.default.createElement("div",{className:s.default.tutorialBox},r.default.createElement("div",{className:s.default.tutorialText},r.default.createElement("h1",null,"Set up global promotions across all feeds"),r.default.createElement("p",null,"Link Instagram posts to your products, blog posts, landing pages, and more."),r.default.createElement("p",null,r.default.createElement("b",null,"Promotions help you drive traffic and increase conversions through social proof.")),r.default.createElement("p",null,"Set up global promotions for each account that will apply across all feeds."," ","You may then choose to enable or disable promotions on a per-feed basis."),r.default.createElement("p",null,"Connect your first Instagram account to set up global promotions."),r.default.createElement("p",null,r.default.createElement("b",null,"Simple. Powerful. Effective."))),r.default.createElement(f.default,null,"Connect your Instagram account"))),t.length>0&&r.default.createElement(c.SidebarLayout,{primary:"content",current:o,sidebar:r.default.createElement(d.GlobalPromotionsSidebar,{disabled:n||e,account:i,onChangeAccount:b,onClose:g}),content:r.default.createElement(m.GlobalPromotionsContent,{disabled:n||e,account:i,onOpenSidebar:v})}))}},function(e,t,n){e.exports={tutorial:"GlobalPromotionsTab__tutorial","tutorial-box":"GlobalPromotionsTab__tutorial-box",tutorialBox:"GlobalPromotionsTab__tutorial-box","tutorial-text":"GlobalPromotionsTab__tutorial-text",tutorialText:"GlobalPromotionsTab__tutorial-text"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalPromotionsSidebar=void 0;const i=l(n(0)),r=n(1),u=n(164),s=n(42),c=n(239),d=n(141),f=n(25);t.GlobalPromotionsSidebar=function({account:e,onChangeAccount:t,disabled:n,onClose:a}){const o=r.useSelector(f.selectAccounts),l=i.useContext(s.SidebarLayout.Context);return i.default.createElement(i.default.Fragment,null,l&&i.default.createElement(i.default.Fragment,null,i.default.createElement(s.SidebarLayout.Navigation,{icon:"arrow-left-alt",text:"Back",onClick:a})),i.default.createElement(u.Sidebar,{disabled:n},i.default.createElement("div",{className:u.Sidebar.padded},i.default.createElement("p",null,"Promote your blog posts, landing pages, products, and much more through your Instagram feed."),i.default.createElement("p",{style:{fontWeight:"bold"}},"How it works:"),i.default.createElement("ol",{style:{marginTop:0}},i.default.createElement("li",null,"Pick an account."),l?i.default.createElement(i.default.Fragment,null,i.default.createElement("li",null,"Go back to the previous page."),i.default.createElement("li",null,"Select a post from the grid.")):i.default.createElement("li",null,"Select a post from the preview on the left."),i.default.createElement("li",null,"Choose what the post should link to."))),i.default.createElement(d.Spoiler,{label:"Pick an account",showIcon:!1,isOpen:!0,fitted:!0},i.default.createElement(c.AccountSelector,{accounts:o,value:[e],onChange:e=>t(e[0]),singleMode:!0}))))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalPromotionsContent=void 0;const r=l(n(0)),u=i(n(994)),s=n(1),c=n(42),d=n(394),f=n(230),m=n(29),p=n(41),_=n(9),h=n(12),b=n(25);t.GlobalPromotionsContent=function({account:e,disabled:t,onOpenSidebar:n}){const a=s.useDispatch(),o=s.useSelector(b.selectHasAccounts),l=s.useSelector(m.selectSetting("promotions")),i=r.useContext(c.SidebarLayout.Context),g=r.default.useCallback(e=>{t||a(p.updateSettings({promotions:e}))},[a,t]),v=f.createFeedOptions({accounts:[e],promoOverrides:t?{}:l,globalPromosEnabled:!1,autoPromosEnabled:!0,promosVersion:2});return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:u.default.content},i&&r.default.createElement("div",{className:u.default.heading},r.default.createElement("p",{className:u.default.mobileInstructions},"Click or tap a post to set up a promotion for it."),o&&r.default.createElement("div",{className:u.default.changeAccountButton},r.default.createElement(_.Button,{type:_.ButtonType.SECONDARY,size:_.ButtonSize.SMALL,onClick:n},r.default.createElement(h.Dashicon,{icon:"admin-users"})," Change account"))),r.default.createElement(d.PromotionsGrid,{feedOptions:v,onChange:g})))}},function(e,t,n){e.exports={content:"GlobalPromotionsContent__content",heading:"GlobalPromotionsContent__heading","mobile-instructions":"GlobalPromotionsContent__mobile-instructions",mobileInstructions:"GlobalPromotionsContent__mobile-instructions"}},function(e,t,n){},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsNavbar=void 0;const o=a(n(997)),l=a(n(0)),i=a(n(313)),r=n(9),u=n(228),s=n(181),c=n(278),d=n(1),f=n(29),m=n(41),p=n(126),_=n(46),h=n(55);function b({}){const e=d.useDispatch(),t=d.useSelector(f.selectSettingsAreDirty),n=d.useSelector(f.selectSettingsAreSaving);return l.default.createElement("div",{className:o.default.buttons},l.default.createElement(r.Button,{className:o.default.cancelBtn,type:r.ButtonType.DANGER_PILL,size:r.ButtonSize.LARGE,onClick:()=>e(m.restoreSettings()),disabled:!t},"Cancel"),l.default.createElement(s.SaveButton,{className:o.default.saveBtn,onClick:()=>e(p.saveSettings()),isSaving:n,tooltip:"Save the settings (Ctrl+S)",disabled:!t}))}t.SettingsNavbar=function(){const e=d.useSelector(h.selectQueryParam("tab")),t=_.Tier.isAtLeast(_.Tier.PRO)?c.AdminSettings:c.AdminSettings.filter(e=>!e.isPro);return l.default.createElement(i.default,{chevron:!0,right:b},t.map((t,n)=>l.default.createElement(u.Navbar.Link,{key:t.id,linkTo:{tab:t.id},isCurrent:e===t.id||!e&&0===n},t.title)))}},function(e,t,n){e.exports={buttons:"SettingsNavbar__buttons layout__flex-row","cancel-btn":"SettingsNavbar__cancel-btn",cancelBtn:"SettingsNavbar__cancel-btn"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=a(n(0)),l=a(n(999)),i=a(n(237)),r=a(n(1e3)),u=n(33),s=n(1002),c=n(1),d=n(25),f=n(401);t.default=function(){const e=c.useSelector(d.selectAccounts),t=f.useForceUpdate(),[n,a]=o.default.useState("");return 0===e.length?o.default.createElement(s.AccountsOnboarding,null):o.default.createElement("div",{className:l.default.root},n.length>0&&o.default.createElement(u.Message,{type:u.MessageType.ERROR,showIcon:!0,isDismissible:!0,onDismiss:()=>a("")},n),o.default.createElement("div",{className:l.default.connectBtn},o.default.createElement(i.default,{onConnect:t})),o.default.createElement(r.default,{accounts:e,showDelete:!0,onDeleteError:a}))}},function(e,t,n){e.exports={"connect-btn":"AccountsPage__connect-btn",connectBtn:"AccountsPage__connect-btn"}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=o(n(0)),i=o(n(1001)),r=n(28),u=n(9),s=o(n(304)),c=o(n(218)),d=o(n(178)),f=o(n(145)),m=n(139),p=n(306),_=n(1),h=n(104),b=n(175),g=n(92),v=n(12),y=n(39),E=n(66),S=o(n(32)),w=n(135);t.default=function({accounts:e,showDelete:t,onDeleteError:n}){const o=_.useStore(),O=_.useDispatch(),C=_.useSelector(h.selectFeeds),M=(e=null!=e?e:[]).filter(e=>e.type===r.Account.Type.BUSINESS).length,[N,k]=l.default.useState(!1),[A,T]=l.default.useState(null),[F,L]=l.default.useState(!1),[j,x]=l.default.useState(),[D,I]=l.default.useState(!1),R=e=>()=>{T(e.id),k(!0)},B=e=>()=>w.reconnectAccount(o,e),G=e=>()=>{O(y.gotoRoute({screen:E.SCREENS.CUSTOM_MEDIA,id:e.id}))},U=e=>()=>{x(e),L(!0)},z=()=>{I(!1),x(null),L(!1)},W={cols:{username:i.default.usernameCol,type:i.default.typeCol,usages:i.default.usagesCol,actions:i.default.actionsCol},cells:{username:i.default.usernameCell,type:i.default.typeCell,usages:i.default.usagesCell,actions:i.default.actionsCell}};return l.default.createElement("div",{className:"accounts-list"},l.default.createElement(s.default,{styleMap:W,rows:e,cols:[{id:"username",label:"Username",render:e=>l.default.createElement("div",null,l.default.createElement(d.default,{account:e,className:i.default.profilePic}),l.default.createElement("a",{className:i.default.username,onClick:R(e)},e.username))},{id:"type",label:"Type",render:e=>l.default.createElement("span",{className:i.default.accountType},e.type)},{id:"usages",label:"Feeds",render:e=>l.default.createElement("span",{className:i.default.usages},C.filter(P(e)).map((e,t)=>l.default.createElement(b.Link,{key:t,to:{screen:"edit",id:e.id.toString()}},e.name)))},{id:"actions",label:"Actions",render:e=>t&&l.default.createElement(m.StatefulMenu,null,({ref:e,openMenu:t})=>l.default.createElement(u.Button,{ref:e,className:i.default.actionsBtn,type:u.ButtonType.PILL,size:u.ButtonSize.NORMAL,onClick:t},l.default.createElement(p.Ellipsis,null)),l.default.createElement(m.MenuContent,null,l.default.createElement(m.MenuItem,{onClick:R(e)},l.default.createElement(v.Dashicon,{icon:"info"}),"Info"),S.default.config.customPosts.enabled&&l.default.createElement(m.MenuItem,{onClick:G(e)},l.default.createElement(v.Dashicon,{icon:"welcome-add-page"}),"Custom posts"),l.default.createElement(m.MenuItem,{onClick:B(e)},l.default.createElement(v.Dashicon,{icon:"image-rotate"}),"Reconnect"),l.default.createElement(m.MenuSeparator,null),l.default.createElement(m.MenuItem,{onClick:U(e),danger:!0},l.default.createElement(v.Dashicon,{icon:"trash"}),"Delete")))}]}),l.default.createElement(c.default,{isOpen:N,onClose:()=>k(!1),accountId:A}),l.default.createElement(f.default,{isOpen:F,title:"Are you sure?",buttons:[D?"Please wait ...":"Yes I'm sure","Cancel"],okDisabled:D,cancelDisabled:D,onAccept:()=>a(this,void 0,void 0,(function*(){I(!0);try{yield O(g.deleteAccount(j.id))}catch(e){n&&n("An error occurred while trying to remove the account.")}finally{z()}})),onCancel:z},l.default.createElement("p",null,"Are you sure you want to delete"," ",l.default.createElement("span",{style:{fontWeight:"bold"}},j?j.username:""),"?"," ","This will also delete all saved media associated with this account."),j&&j.type===r.Account.Type.BUSINESS&&1===M&&l.default.createElement("p",null,l.default.createElement("b",null,"Note:")," ",l.default.createElement("span",null,"Because this is your only connected Business account, deleting it will"," ","also cause any feeds that show public hashtag posts to no longer work."))))};const P=e=>t=>t&&t.options.accounts.includes(e.id)||t.options.tagged.includes(e.id)},function(e,t,n){e.exports={"username-col":"AccountsList__username-col",usernameCol:"AccountsList__username-col","actions-col":"AccountsList__actions-col",actionsCol:"AccountsList__actions-col","username-cell":"AccountsList__username-cell",usernameCell:"AccountsList__username-cell",username:"AccountsList__username","profile-pic":"AccountsList__profile-pic",profilePic:"AccountsList__profile-pic","account-type":"AccountsList__account-type",accountType:"AccountsList__account-type",usages:"AccountsList__usages","actions-btn":"AccountsList__actions-btn",actionsBtn:"AccountsList__actions-btn","usages-cell":"AccountsList__usages-cell",usagesCell:"AccountsList__usages-cell","usages-col":"AccountsList__usages-col",usagesCol:"AccountsList__usages-col","type-cell":"AccountsList__type-cell",typeCell:"AccountsList__type-cell","type-col":"AccountsList__type-col",typeCol:"AccountsList__type-col"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountsOnboarding=void 0;const o=a(n(0)),l=a(n(1003)),i=a(n(238)),r=n(223),u=n(45);t.AccountsOnboarding=function({onConnect:e,beforeConnect:t,isTransitioning:n}){return o.default.createElement(r.Onboarding,{className:l.default.root,isTransitioning:n},o.default.createElement("div",{className:l.default.left},o.default.createElement("h1",null,"Connect your Instagram account"),o.default.createElement("p",null,"You can connect the following types of accounts in Spotlight:"),o.default.createElement("ul",{className:l.default.list},o.default.createElement("li",null,o.default.createElement("a",{href:u.AdminResources.connectPersonalAccount,target:"_blank"},"Personal account")),o.default.createElement("li",null,o.default.createElement("a",{href:u.AdminResources.connectBusinessAccount,target:"_blank"},"Business account")),o.default.createElement("li",null,"Your client's account (",o.default.createElement("a",{href:u.AdminResources.connectAccessToken,target:"_blank"},"using an access token"),")")),o.default.createElement("p",null,o.default.createElement("a",{href:u.AdminResources.personalVsBusinessAccount,target:"_blank"},"What's the difference between a Personal account and a Business account?"))),o.default.createElement("div",null,o.default.createElement(i.default,{beforeConnect:e=>t&&t(e),onConnect:t=>e&&e(t),useColumns:!0,showPrompt:!1})))}},function(e,t,n){e.exports={root:"AccountsOnboarding__root",left:"AccountsOnboarding__left",list:"AccountsOnboarding__list","learn-more-business":"AccountsOnboarding__learn-more-business",learnMoreBusiness:"AccountsOnboarding__learn-more-business","first-msg":"AccountsOnboarding__first-msg",firstMsg:"AccountsOnboarding__first-msg",spacer:"AccountsOnboarding__spacer"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsConfigTab=void 0;const o=a(n(0)),l=n(268),i=n(1005),r=n(1009),u=n(1013);t.SettingsConfigTab=function(){return o.default.createElement(l.SettingsPage,null,o.default.createElement(i.SettingsImportingGroup,null),o.default.createElement(r.SettingsOptimizationGroup,null),o.default.createElement(u.SettingsTweaksGroup,null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsImportingGroup=void 0;const o=a(n(0)),l=n(150),i=n(1006),r=n(1007);t.SettingsImportingGroup=function(){return o.default.createElement(l.SettingsGroup,{title:"Import options"},o.default.createElement(i.ImportIntervalField,null),o.default.createElement(r.ImportLimitField,null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImportIntervalField=void 0;const o=a(n(0)),l=n(83),i=a(n(32)),r=n(40),u=n(1),s=n(29),c=n(41);t.ImportIntervalField=function(){const e=u.useDispatch(),t=u.useSelector(s.selectSetting("importerInterval"));return o.default.createElement(l.SettingsField,{id:"settings-import-interval",label:"Check for new posts"},o.default.createElement(r.Select,{id:"settings-import-interval",width:250,value:t,onChange:t=>e(c.updateSettings({importerInterval:t.value})),options:i.default.config.cronScheduleOptions}))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImportLimitField=void 0;const o=a(n(0)),l=n(83),i=n(1),r=n(29),u=n(41),s=a(n(411));t.ImportLimitField=function(){const e=i.useDispatch(),t=i.useSelector(r.selectSetting("importLimit"));return o.default.createElement(l.SettingsField,{id:"settings-import-limit",label:"Max number of posts to get for each account"},o.default.createElement(s.default,{id:"settings-import-limit",type:"number",value:null!=t?t:0,onChange:t=>e(u.updateSettings({importLimit:t})),unit:"posts",min:0,units:{posts:["post","posts"]},placeholder:"No limit",emptyMin:!0}),o.default.createElement("span",{style:{fontStyle:"italic"}},"Leave empty or set to 0 for no limit."))}},function(e,t,n){e.exports={root:"UnitField__root layout__flex-row",input:"UnitField__input","unit-container":"UnitField__unit-container layout__flex-column",unitContainer:"UnitField__unit-container layout__flex-column","unit-bubble":"UnitField__unit-bubble",unitBubble:"UnitField__unit-bubble","unit-static":"UnitField__unit-static UnitField__unit-bubble layout__flex-column",unitStatic:"UnitField__unit-static UnitField__unit-bubble layout__flex-column","unit-selector":"UnitField__unit-selector UnitField__unit-bubble layout__flex-row",unitSelector:"UnitField__unit-selector UnitField__unit-bubble layout__flex-row","current-unit":"UnitField__current-unit",currentUnit:"UnitField__current-unit","menu-chevron":"UnitField__menu-chevron",menuChevron:"UnitField__menu-chevron","menu-chevron-open":"UnitField__menu-chevron-open UnitField__menu-chevron",menuChevronOpen:"UnitField__menu-chevron-open UnitField__menu-chevron","unit-list":"UnitField__unit-list layout__flex-column layout__z-highest",unitList:"UnitField__unit-list layout__flex-column layout__z-highest","unit-option":"UnitField__unit-option",unitOption:"UnitField__unit-option","unit-selected":"UnitField__unit-selected UnitField__unit-option",unitSelected:"UnitField__unit-selected UnitField__unit-option"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsOptimizationGroup=void 0;const o=a(n(0)),l=n(141),i=n(150),r=n(1010),u=n(1011),s=n(1012),c=o.default.createElement("div",null,o.default.createElement(l.Spoiler,{label:"What is this?",stealth:!0},o.default.createElement("p",null,"Spotlight imports all Instagram posts that can be displayed in your feed, even "," ",'those hidden behind a "Load more" button. The posts furthest down the list may'," ","therefore rarely be seen."),o.default.createElement("p",null,"To improve your site’s performance, you can choose to delete these unseen posts"," ","after a set period of time. Once a site visitor requests those posts, they will"," ","be re-imported."))),d=o.default.createElement("div",null,o.default.createElement(s.CleanUpMediaButton,null));t.SettingsOptimizationGroup=function({}){return o.default.createElement(i.SettingsGroup,{title:"Optimization",before:c,after:d},o.default.createElement(r.OptimizeAgeLimitField,null),o.default.createElement(u.OptimizeIntervalField,null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OptimizeAgeLimitField=void 0;const o=a(n(0)),l=n(1),i=n(83),r=a(n(411)),u=n(29),s=n(41);t.OptimizeAgeLimitField=function({}){var e,t,n;const a=l.useDispatch(),c=(null!==(e=l.useSelector(u.selectSetting("cleanerAgeLimit")))&&void 0!==e?e:"").split(" "),d=null!==(t=parseInt(c[0]))&&void 0!==t?t:0,f=null!==(n=c[1])&&void 0!==n?n:"days";return o.default.createElement(i.SettingsField,{id:"cleanerAgeLimit",label:"Delete unseen posts after"},o.default.createElement(r.default,{id:"cleanerAgeLimit",type:"number",value:d,unit:f,onChange:(e,t)=>a(s.updateSettings({cleanerAgeLimit:`${e} ${t}`})),min:1,units:{days:["day","days"],hours:["hour","hours"],minutes:["minute","minutes"]}}))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OptimizeIntervalField=void 0;const o=a(n(0)),l=n(1),i=n(83),r=a(n(32)),u=n(40),s=n(29),c=n(41);t.OptimizeIntervalField=function({}){const e=l.useDispatch(),t=l.useSelector(s.selectSetting("cleanerInterval"));return o.default.createElement(i.SettingsField,{id:"cleanerInterval",label:"Run optimization"},o.default.createElement(u.Select,{id:"cleanerInterval",width:250,value:t,options:r.default.config.cronScheduleOptions,onChange:t=>e(c.updateSettings({cleanerInterval:t.value}))}))}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CleanUpMediaButton=void 0;const l=o(n(0)),i=n(9),r=n(1),u=n(67),s=n(29),c=n(43);t.CleanUpMediaButton=function(){const e=r.useDispatch(),t=r.useSelector(s.selectSetting("cleanerAgeLimit"));return l.default.createElement(i.Button,{type:i.ButtonType.SECONDARY,size:i.ButtonSize.NORMAL,onClick:()=>a(this,void 0,void 0,(function*(){var n;e(u.showToast({key:"admin/clean_up_media/wait",message:"Optimizing, please wait ...",type:u.ToastType.STICKY}));try{const a=null!==(n=(yield c.AdminRestApi.media.cleanUp(t)).data.numCleaned)&&void 0!==n?n:0;e(u.showToast({key:"admin/clean_up_media/done",message:`Done! ${a} old posts have been removed.`}))}finally{e(u.removeToast("admin/clean_up_media/wait"))}}))},"Optimize now")}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsTweaksGroup=void 0;const o=a(n(0)),l=n(141),i=n(150),r=n(1014),u=o.default.createElement("div",null,o.default.createElement(l.Spoiler,{label:"What is this?",stealth:!0},o.default.createElement("p",null,"With this option enabled, Spotlight will pre-load the first set of posts into the page. This"," ","makes the feed load faster, but can make the page slightly slower."),o.default.createElement("p",null,"By default, this option is disabled. The feed will show grey loading boxes while the posts are"," ","being loaded in the background. This makes the feed slower, but won't impact the rest of the page."),o.default.createElement("p",null,"We recommend turning this option on when your feed is immediately visible when the page loads."," ","If your feed is further down the page, it will probably have enough time to load before your"," ","visitors can see it, so you can leave this turned off for faster page loading.")));t.SettingsTweaksGroup=function(){return o.default.createElement(i.SettingsGroup,{title:"Performance Tweaks",before:u},o.default.createElement(r.PreloadPostsField,null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreloadPostsField=void 0;const o=a(n(0)),l=n(83),i=n(1),r=n(29),u=n(41);t.PreloadPostsField=function(){const e=i.useDispatch(),t=i.useSelector(r.selectSetting("preloadMedia"));return o.default.createElement(l.SettingsField,{id:"preloadMedia"},o.default.createElement("label",{htmlFor:"preloadMedia"},o.default.createElement("span",{style:{marginRight:10}},"Pre-load the first page of posts"),o.default.createElement("input",{id:"preloadMedia",type:"checkbox",checked:t,onChange:t=>e(u.updateSettings({preloadMedia:t.target.checked}))})))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsToolsTab=void 0;const o=a(n(0)),l=n(268),i=n(1016);t.SettingsToolsTab=function(){return o.default.createElement(l.SettingsPage,null,o.default.createElement(i.SettingsCacheGroup,null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsCacheGroup=void 0;const o=a(n(0)),l=n(83),i=a(n(1017)),r=n(150);t.SettingsCacheGroup=function(){return o.default.createElement(r.SettingsGroup,{title:"Cache"},o.default.createElement(l.SettingsField,{id:"clearCache",label:"If you are experiencing issues, clearing the plugin's cache may help."},o.default.createElement(i.default,null)))}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=o(n(0)),i=o(n(1018)),r=n(9),u=n(412),s=n(1),c=n(67),d=n(21),f=n(43),m=n(45),p=n(103);t.default=function({}){const e=s.useDispatch(),[t,n]=l.default.useState(!1);u.useSafeEffect(e=>{e&&t&&o().then(()=>{e&&n(!1)})},[t]);const o=()=>a(this,void 0,void 0,(function*(){e(c.removeToast("admin/clear_cache/done")),e(c.showToast({key:"admin/clear_cache/please_wait",message:"Clearing the cache. This could take a while. Please wait ...",type:c.ToastType.STICKY}));try{yield f.AdminRestApi.cache.clearAll(),e(c.showToast({key:"admin/clear_cache/done",message:"Cleared cache successfully!"}))}catch(e){p.triggerError({type:"clear_cache/error",message:d.getErrorResponseMessage(e)})}finally{e(c.removeToast("admin/clear_cache/please_wait"))}}));return l.default.createElement("div",{className:i.default.root},l.default.createElement(r.Button,{disabled:t,onClick:()=>{n(!0)}},"Clear the cache"),l.default.createElement("a",{href:m.AdminResources.cacheDocsUrl,target:"_blank",className:i.default.docLink},"What's this?"))}},function(e,t,n){e.exports={root:"ClearCacheButton__root layout__flex-row","doc-link":"ClearCacheButton__doc-link",docLink:"ClearCacheButton__doc-link"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";(function(e){var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminRootInner=t.AdminRoot=void 0;const i=n(291),r=l(n(0)),u=n(204),s=n(1021),c=n(66),d=n(280),f=n(1023),m=n(1024),p=n(1029),_=n(1034),h=n(10),b=n(1),g=n(413),v=n(1036),y=n(67),E=n(39),S=n(55),w=n(61),P=n(103),O=document.title.replace("Spotlight","%s ‹ Spotlight");function C(){const e=b.useDispatch(),t=b.useSelector(v.selectIsAdminAppLoaded),n=b.useSelector(v.selectIsAdminAppLoading),a=b.useSelector(S.selectScreen);r.useEffect(()=>{const e=c.Screens.getScreen(a);e&&(document.title=O.replace("%s",e.title))},[a]);const o=e=>{var t,n;const a=null!==(n=null!==(t=e.detail.message)&&void 0!==t?t:e.detail.response.data.message)&&void 0!==n?n:null;P.triggerError({type:"feed/fetch_media/error",message:a})},l=()=>{e(y.showToast({key:"admin/feed/import/pending",type:y.ToastType.STICKY,message:"Retrieving posts from Instagram. This may take around 30 seconds."}))},i=t=>{var n;if((null===(n=null==t?void 0:t.detail)||void 0===n?void 0:n.batching)&&e(y.showToast({key:"admin/feed/import/done",type:y.ToastType.NOTIFICATION,message:"Imported the first set of posts from Instagram. Older posts are being imported in the background."})),Array.isArray(null==t?void 0:t.detail.errors)&&t.detail.errors.length>0){let n;n=1===t.detail.errors.length?t.detail.errors[0]:"Spotlight encountered some problems while importing posts from Instagram:\n\n"+t.detail.errors.map(e=>" • "+e).join("\n"),e(y.showToast({key:"admin/feed/import/errors",type:y.ToastType.STICKY,message:n}))}},g=e=>{P.triggerError({type:"feed/import_media/error",message:e.message})},C=()=>{e(y.removeToast("admin/feed/import/pending"))};return r.useEffect(()=>(document.addEventListener(h.FetchFailEvent.Type,o),document.addEventListener(w.RestApi.media.events.import.start,l),document.addEventListener(w.RestApi.media.events.import.success,i),document.addEventListener(w.RestApi.media.events.import.fail,g),document.addEventListener(w.RestApi.media.events.import.end,C),()=>{document.removeEventListener(h.FetchFailEvent.Type,o),document.removeEventListener(w.RestApi.media.events.import.start,l),document.removeEventListener(w.RestApi.media.events.import.success,i),document.removeEventListener(w.RestApi.media.events.import.fail,g),document.removeEventListener(w.RestApi.media.events.import.end,C)}),[]),n||!t?r.default.createElement(r.default.Fragment,null,r.default.createElement(d.AdminLoading,null),r.default.createElement(p.Toaster,null)):r.default.createElement(u.Router,{history:E.RouterHistory},c.Screens.getList().map((e,t)=>r.default.createElement(s.QueryRoute,{key:e.id,when:"screen",is:e.id,isRoot:0===t,render:()=>r.default.createElement(e.component)})),r.default.createElement(m.NewsBeacon,null),r.default.createElement(_.ModalLayer,null),r.default.createElement(f.ConnectAccountListener,null),r.default.createElement(p.Toaster,null))}t.AdminRoot=i.hot(e)((function(){return r.default.createElement(b.Provider,{store:g.AdminAppStore},r.default.createElement(C,null))})),t.AdminRootInner=C}).call(this,n(89)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryRoute=void 0;const a=n(1022);t.QueryRoute=function({when:e,is:t,isRoot:n,render:o}){const l=a.useUrlParams().get(e);return l===t||!t&&!l||n&&!l?o():null}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectAccountListener=void 0;const o=a(n(0)),l=n(28),i=a(n(145)),r=a(n(218)),u=n(56),s=n(45),c=n(135);t.ConnectAccountListener=function(){const[e,t]=o.default.useState(null),[n,a]=o.default.useState(!1),[d,f]=o.default.useState(!1);return u.useDocumentEventListener(c.AccountConnectedEvent.NAME,e=>{const o=e.account;n||d||o.type!==l.Account.Type.PERSONAL||o.customBio.length||o.customProfilePicUrl.length||(t(o.id),a(!0))}),o.default.createElement(o.default.Fragment,null,o.default.createElement(i.default,{title:"You've successfully connected your account!",buttons:["Yes","No, maybe later"],isOpen:n,onAccept:()=>{a(!1),f(!0)},onCancel:()=>a(!1)},o.default.createElement("p",null,"One more thing ..."),o.default.createElement("p",null,"Instagram doesn't provide the profile photo and bio text for Personal accounts."," ","Would you like to set a custom photo and a custom bio in Spotlight to match your Instagram profile?"),o.default.createElement("p",null,o.default.createElement("a",{href:s.AdminResources.customPersonalInfoUrl,target:"_blank"},"What's this about?"))),o.default.createElement(r.default,{isOpen:d,onClose:()=>f(!1),accountId:e}))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NewsBeacon=void 0;const o=a(n(0)),l=a(n(1025)),i=n(1),r=n(12),u=n(140),s=n(139),c=n(1026),d=n(414),f=n(1027);t.NewsBeacon=function(){const e=i.useDispatch(),t=i.useSelector(c.selectNewsMessages),n=i.useSelector(c.selectIsNewsHidden),a=i.useSelector(c.selectIsNewsOpen),m=()=>e(d.openNews()),p=u.useKeyboardActivate(m);return!n&&t.length>0&&o.default.createElement(s.Menu,{className:l.default.menu,isOpen:a,onBlur:()=>e(d.closeNews()),placement:"top-end"},({ref:e})=>o.default.createElement("div",{ref:e,className:l.default.beacon},o.default.createElement("button",{className:l.default.button,onClick:m,onKeyPress:p},o.default.createElement(r.Dashicon,{icon:"megaphone"}),t.length>0&&o.default.createElement("div",{className:l.default.counter},t.length))),o.default.createElement(s.MenuContent,null,t.map(e=>o.default.createElement(f.NewsBeaconMessage,{key:e.id,message:e})),a&&o.default.createElement("a",{className:l.default.hideLink,onClick:()=>e(d.hideNews())},"Hide")))}},function(e,t,n){e.exports={beacon:"NewsBeacon__beacon",button:"NewsBeacon__button","button-animation":"NewsBeacon__button-animation",buttonAnimation:"NewsBeacon__button-animation",counter:"NewsBeacon__counter","hide-link":"NewsBeacon__hide-link",hideLink:"NewsBeacon__hide-link",menu:"NewsBeacon__menu"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectIsNewsHidden=t.selectIsNewsOpen=t.selectNewsMessages=void 0,t.selectNewsMessages=e=>e.news.messages,t.selectIsNewsOpen=e=>e.news.isOpen,t.selectIsNewsHidden=e=>e.news.isHidden},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NewsBeaconMessage=void 0;const r=l(n(0)),u=i(n(1028)),s=i(n(214)),c=i(n(423)),d=n(137),f=n(1),m=n(55),p=n(39);t.NewsBeaconMessage=function({message:e}){const t=f.useDispatch(),n=f.useSelector(m.selectRoute),a=r.default.useRef();return r.useEffect(()=>{if(!a.current)return;const e=a.current.getElementsByTagName("a");for(let a=0;a<e.length;++a){const o=e.item(a);if("true"===o.getAttribute("data-sli-link"))continue;const l=o.getAttribute("href");if("string"!=typeof l||!l.startsWith("app://"))continue;const i=d.parse(l.substr("app://".length)),r=(n.setQuery(i),n.getAbsUrl(i));o.setAttribute("href",r),o.setAttribute("data-sli-link","true"),o.addEventListener("click",e=>{t(p.gotoRoute(i)),e.preventDefault(),e.stopPropagation()})}},[a.current]),r.default.createElement("article",{className:u.default.root},e.title&&e.title.length&&r.default.createElement("header",{className:u.default.title},e.title),r.default.createElement("main",{ref:a,className:u.default.content,dangerouslySetInnerHTML:{__html:e.content}}),e.date&&r.default.createElement("footer",{className:u.default.date},c.default(s.default(e.date),{addSuffix:!0})))}},function(e,t,n){e.exports={root:"NewsBeaconMessage__root",text:"NewsBeaconMessage__text",title:"NewsBeaconMessage__title NewsBeaconMessage__text",content:"NewsBeaconMessage__content NewsBeaconMessage__text",date:"NewsBeaconMessage__date"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Toaster=void 0;const o=a(n(0)),l=a(n(1030)),i=n(1),r=n(1031),u=n(1032);t.Toaster=function(){const e=i.useSelector(r.selectToasts);return o.default.createElement("div",{className:l.default.root},o.default.createElement("div",{className:l.default.container},e.map(e=>o.default.createElement(u.Toast,{key:e.key,toast:e}))))}},function(e,t,n){e.exports={root:"Toaster__root layout__z-highest",container:"Toaster__container"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectToasts=void 0;const a=n(38);t.selectToasts=e=>a.Dictionary.values(e.toasts)},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Toast=void 0;const r=l(n(0)),u=i(n(1033)),s=n(1),c=n(12),d=n(67),f=n(45);function m({toast:e}){return r.default.createElement("p",{style:{whiteSpace:"pre-wrap"}},e.message)}function p({toast:e}){return r.default.createElement("div",null,r.default.createElement("p",{className:u.default.heading},"Spotlight has encountered an error:"),r.default.createElement("p",{className:u.default.message},e.message),e.details&&r.default.createElement("pre",{className:u.default.details},e.details),r.default.createElement("p",{className:u.default.footer},"If this error persists, kindly"," ",r.default.createElement("a",{href:f.AdminResources.supportUrl,target:"_blank"},"contact customer support"),"."))}t.Toast=function({toast:e}){var t;const n=s.useDispatch(),[a,o]=r.default.useState(!1);let l=r.default.useRef(),i=r.default.useRef();const f=null!==(t=e.type)&&void 0!==t?t:d.ToastType.NOTIFICATION,_=f===d.ToastType.NOTIFICATION,h=()=>n(d.removeToast(e.key)),b=()=>{_&&(l.current=setTimeout(v,5e3))},g=()=>{clearTimeout(l.current)},v=()=>{o(!0),i.current=setTimeout(h,200)};r.useEffect(()=>(b(),()=>{g(),clearTimeout(i.current)}),[]);const y=a?u.default.rootFadingOut:u.default.root;return r.default.createElement("div",{className:y,onMouseOver:g,onMouseOut:b},r.default.createElement("div",{className:u.default.content},f===d.ToastType.ERROR?r.default.createElement(p,{toast:e}):r.default.createElement(m,{toast:e})),r.default.createElement("button",{className:u.default.dismissBtn,onClick:()=>{g(),v()}},r.default.createElement(c.Dashicon,{icon:"no-alt",className:u.default.dismissIcon})))}},function(e,t,n){e.exports={root:"Toast__root","fade-in-animation":"Toast__fade-in-animation",fadeInAnimation:"Toast__fade-in-animation","root-fading-out":"Toast__root-fading-out Toast__root",rootFadingOut:"Toast__root-fading-out Toast__root","fade-out-animation":"Toast__fade-out-animation",fadeOutAnimation:"Toast__fade-out-animation",content:"Toast__content","dismiss-icon":"Toast__dismiss-icon",dismissIcon:"Toast__dismiss-icon","dismiss-btn":"Toast__dismiss-btn Toast__dismiss-icon",dismissBtn:"Toast__dismiss-btn Toast__dismiss-icon"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalLayer=void 0;const o=a(n(0)),l=a(n(1035)),i=n(13);t.ModalLayer=function(){return o.default.createElement("div",{className:i.classList(l.default.modalLayer,"spotlight-modal-target")})}},function(e,t,n){e.exports={"modal-layer":"ModalLayer__modal-layer",modalLayer:"ModalLayer__modal-layer"}},,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomMediaScreen=void 0;const u=l(n(0)),s=n(1),c=r(n(1038)),d=n(212),f=n(1039),m=n(55),p=n(34),_=n(1041),h=n(25),b=n(142),g=n(405),v=n(43),y=n(270),E=n(271);function S({media:e,isSelected:t}){return u.default.createElement("div",{className:c.default.tile},u.default.createElement(b.Square,null,u.default.createElement("div",{className:t?c.default.selectedMedia:c.default.media},u.default.createElement(g.MediaTile,{media:e,className:c.default.thumbnail,overlayEnabled:!1}))))}t.CustomMediaScreen=function(){const[e,t]=u.default.useState([]),[n,a]=u.default.useState(!1),[o,l]=u.default.useState(!1),[r,p]=u.default.useState(null),b=s.useSelector(m.selectRoute).getParam("id"),g=b?parseInt(b):0,P=s.useSelector(h.selectAccountById(g));function O(){return i(this,void 0,void 0,(function*(){a(!0);try{const e=yield v.AdminRestApi.accounts.customMedia.get(g);t(e.data)}finally{a(!1)}}))}if(u.useEffect(()=>{P&&O()},[g]),!P)return null;function C(){l(!1),p(null)}return u.default.createElement(d.AdminScreen,{navbar:f.CustomMediaNavbar},n?u.default.createElement("div",{className:c.default.loadingSpinner},u.default.createElement(E.LoadingSpinner,{size:80})):u.default.createElement(y.SelectionGrid,{items:e,addButton:{children:"Create a new post",onClick:function(){p(w(P)),l(!0)}},onClick:function(e){p(e),l(!0)},disabled:n,canDeselect:!0},({item:e,isSelected:t})=>u.default.createElement(S,{media:e,isSelected:t})),u.default.createElement(_.CustomMediaModal,{media:r,accountId:g,isOpen:o,onClose:C,onSave:function(){C(),O()},onDelete:function(e){t(t=>t.filter(t=>t.id!==e.id)),C()}}))};const w=e=>({id:0,url:"",username:e.username,children:[],sources:[{id:e.username,type:p.Media.Source.getTypeForAccountType(e.type)}]})},function(e,t,n){e.exports={"loading-spinner":"CustomMediaScreen__loading-spinner",loadingSpinner:"CustomMediaScreen__loading-spinner",tile:"CustomMediaScreen__tile",media:"CustomMediaScreen__media","selected-media":"CustomMediaScreen__selected-media CustomMediaScreen__media",selectedMedia:"CustomMediaScreen__selected-media CustomMediaScreen__media",thumbnail:"CustomMediaScreen__thumbnail"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomMediaNavbar=void 0;const o=a(n(0)),l=a(n(1040)),i=n(9),r=n(1),u=n(66),s=n(55),c=n(25),d=n(228),f=a(n(178)),m=n(12);t.CustomMediaNavbar=function(){var e;const t=r.useSelector(s.selectRoute).getParam("id"),n=t?parseInt(t):0,a=r.useSelector(c.selectAccountById(n)),p=null!==(e=null==a?void 0:a.username)&&void 0!==e?e:"(Account does not exist)";return o.default.createElement(d.Navbar,null,o.default.createElement(o.default.Fragment,null,o.default.createElement(d.Navbar.Item,null,"Settings"),o.default.createElement(d.Navbar.Chevron,null),o.default.createElement(d.Navbar.Link,{linkTo:{screen:u.SCREENS.SETTINGS,tab:"accounts"}},"Accounts"),o.default.createElement(d.Navbar.Chevron,null),o.default.createElement(d.Navbar.Item,null,o.default.createElement("div",{className:l.default.navUsernameItem},o.default.createElement(f.default,{account:a,className:l.default.profilePic}),o.default.createElement("span",null,p)))),o.default.createElement(o.default.Fragment,null,o.default.createElement(d.Navbar.Section,null,o.default.createElement(i.Button,{type:i.ButtonType.PILL,size:i.ButtonSize.LARGE,onClick:function(){history.back()}},o.default.createElement(m.Dashicon,{icon:"arrow-left-alt"}),o.default.createElement("span",null,"Go back")))))}},function(e,t,n){e.exports={"nav-username-item":"CustomMediaNavbar__nav-username-item",navUsernameItem:"CustomMediaNavbar__nav-username-item","profile-pic":"CustomMediaNavbar__profile-pic",profilePic:"CustomMediaNavbar__profile-pic"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},i=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,l){function i(e){try{u(a.next(e))}catch(e){l(e)}}function r(e){try{u(a.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}u((a=a.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomMediaModal=void 0;const u=l(n(0)),s=r(n(1042)),c=n(77),d=n(34),f=n(9),m=n(18),p=n(1043),_=n(43),h=n(33);t.CustomMediaModal=function({media:e,accountId:t,isOpen:n,onClose:a,onSave:o,onDelete:l}){var r,b;const[g,v]=u.default.useState(e),[y,E]=u.default.useState(!1),[S,w]=u.default.useState(!1);u.useEffect(()=>{v(e)},[e]);const P=e&&(null==e?void 0:e.id),O=null===g||d.Media.explode(g).filter(e=>{var t;return(null!==(t=e.url)&&void 0!==t?t:"").length>0}).length>0;return u.default.createElement(c.Modal,{title:"Custom post",width:800,isOpen:n&&null!==e,onClose:a},u.default.createElement(c.Modal.Content,null,g&&u.default.createElement(u.default.Fragment,null,g.type!==d.Media.Type.ALBUM&&u.default.createElement(u.default.Fragment,null,u.default.createElement(h.Message,{type:h.MessageType.INFO,showIcon:!0},u.default.createElement("b",null,"Tip:")," Add multiple images or videos to create a gallery post."),u.default.createElement("br",null)),u.default.createElement(p.CustomMediaSelector,{media:g,onChange:v}),u.default.createElement("div",{className:s.default.fieldRow},u.default.createElement("label",null,u.default.createElement("span",null,"Instagram URL"),u.default.createElement("input",{type:"url",value:null!==(r=g.permalink)&&void 0!==r?r:"",onChange:function(e){const t=e.target.value;v(e=>m.withPartial(e,{permalink:t}))}}))),u.default.createElement("div",{className:s.default.fieldRow},u.default.createElement("label",null,u.default.createElement("span",null,"Caption"),u.default.createElement("textarea",{value:g.caption,onChange:function(e){const t=e.target.value;v(e=>m.withPartial(e,{caption:t}))},rows:4}))))),u.default.createElement(c.Modal.Footer,{style:"space-between"},P?u.default.createElement(f.Button,{type:f.ButtonType.DANGER,size:f.ButtonSize.LARGE,onClick:function(){return i(this,void 0,void 0,(function*(){w(!0);try{yield _.AdminRestApi.accounts.customMedia.delete(t,e.id)}finally{w(!1)}l(g)}))},disabled:S},S?"Please wait ...":"Delete post"):u.default.createElement("div",null),u.default.createElement(f.Button,{type:f.ButtonType.PRIMARY,size:f.ButtonSize.LARGE,onClick:function(){return i(this,void 0,void 0,(function*(){E(!0);try{e.id<=0?yield _.AdminRestApi.accounts.customMedia.add(t,g):yield _.AdminRestApi.accounts.customMedia.update(t,e.id,g)}finally{E(!1)}o(g)}))},disabled:y||!O||!g||!(null===(b=null==g?void 0:g.permalink)||void 0===b?void 0:b.length)},y?"Please wait ...":"Save post")))}},function(e,t,n){e.exports={"add-media-row":"CustomMediaModal__add-media-row",addMediaRow:"CustomMediaModal__add-media-row","field-row":"CustomMediaModal__field-row",fieldRow:"CustomMediaModal__field-row"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomMediaSelector=void 0;const o=a(n(0)),l=a(n(1044)),i=n(34),r=n(1045),u=n(219),s=n(270),c=n(142),d=n(127),f=n(157),m=n(12);function p({media:e,onRemove:t,onMoveLeft:n,onMoveRight:a,canMoveLeft:i,canMoveRight:r}){const[u,s]=o.default.useState(!1);return o.default.createElement("div",{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)},o.default.createElement(c.Square,null,o.default.createElement(d.MediaThumbnail,{media:e}),u&&o.default.createElement("div",{className:l.default.mediaOverlay},o.default.createElement("div",{className:l.default.moveControls},i?o.default.createElement(f.DivButton,{className:l.default.arrowButton,title:"Move left",onClick:n},o.default.createElement(m.Dashicon,{icon:"arrow-left-alt"})):o.default.createElement("div",null),r?o.default.createElement(f.DivButton,{className:l.default.arrowButton,title:"Move right",onClick:a},o.default.createElement(m.Dashicon,{icon:"arrow-right-alt"})):o.default.createElement("div",null)),o.default.createElement(f.DivButton,{className:l.default.deleteButton,title:"Remove",onClick:t},o.default.createElement(m.Dashicon,{icon:"trash"})))))}t.CustomMediaSelector=function({media:e,onChange:t}){const n=i.Media.explode(e).filter(e=>e.url);function a(n,a){t(r.moveChild(e,n,a))}return o.default.createElement("div",{className:l.default.mediaGrid},o.default.createElement(u.WpUploadMedia,{id:"custom-post-media",title:"Select media",onSelect:function(n){t(n.reduce(r.addToMedia,e))},multiple:!0},({open:l})=>o.default.createElement(s.SelectionGrid,{canDeselect:!0,items:n,gridStyle:{justifyContent:"center"},addButton:{children:"Add media",onClick:l}},({item:l,idx:i})=>o.default.createElement(p,{media:l,onRemove:()=>function(n){t(r.removeFromMedia(e,n))}(i),onMoveLeft:()=>a(i,-1),onMoveRight:()=>a(i,1),canMoveLeft:i>0,canMoveRight:i<n.length-1}))))}},function(e,t,n){e.exports={"media-grid":"CustomMediaSelector__media-grid",mediaGrid:"CustomMediaSelector__media-grid","media-overlay":"CustomMediaSelector__media-overlay",mediaOverlay:"CustomMediaSelector__media-overlay","move-controls":"CustomMediaSelector__move-controls",moveControls:"CustomMediaSelector__move-controls",button:"CustomMediaSelector__button","arrow-button":"CustomMediaSelector__arrow-button CustomMediaSelector__button",arrowButton:"CustomMediaSelector__arrow-button CustomMediaSelector__button","delete-button":"CustomMediaSelector__delete-button CustomMediaSelector__button",deleteButton:"CustomMediaSelector__delete-button CustomMediaSelector__button"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getMediaType=t.moveChild=t.removeFromMedia=t.addToMedia=void 0;const o=n(34),l=(a(n(220)),n(60)),i=n(18);function r(e){switch(e){case"image":return o.Media.Type.IMAGE;case"video":return o.Media.Type.VIDEO}}function u(e){var t,n;const a=null!==(t=e.size)&&void 0!==t?t:{width:0,height:0};return(null!==(n=null==e?void 0:e.children)&&void 0!==n?n:[]).forEach(e=>{var t,n,o,l;a.width=Math.max(a.width,null!==(n=null===(t=e.size)||void 0===t?void 0:t.width)&&void 0!==n?n:0),a.height=Math.max(a.height,null!==(l=null===(o=e.size)||void 0===o?void 0:o.height)&&void 0!==l?l:0)}),!e.size||0===e.size.width&&0===e.size.height?null:a}t.addToMedia=function(e,t){e=l.cloneObj(e);const n=t.attributes.url,a=r(t.attributes.type),i={width:t.attributes.width,height:t.attributes.height};if(e.url){const t=Object.assign({id:0},e);e.url="",e.type=o.Media.Type.ALBUM,e.children=[t]}return e.type==o.Media.Type.ALBUM?e.children.push({id:0,type:a,url:n,size:i}):(e.type=a,e.url=n,e.size=i),e.size=u(e),e},t.removeFromMedia=function(e,t){if((e=l.cloneObj(e)).type===o.Media.Type.ALBUM){if(e.children.splice(t,1),1===e.children.length){const t=e.children[0];e.children=[],e=i.withPartial(e,t)}}else e.url=null;return e.size=u(e),e},t.moveChild=function(e,t,n){const a=t+n;if(e.type!==o.Media.Type.ALBUM||a<0||a>e.children.length-1)return e;const i=(e=l.cloneObj(e)).children[a];return e.children[a]=e.children[t],e.children[t]=i,e},t.getMediaType=r}]]);
1
+ (window.webpackJsonpSpotlight=window.webpackJsonpSpotlight||[]).push([[4],[,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonSize=t.ButtonType=void 0;const o=l(n(0)),i=n(13),r=n(149),s=l(n(230));n(323);const u=n(184);t.ButtonType={PRIMARY:"primary",SECONDARY:"secondary",TOGGLE:"toggle",LINK:"link",PILL:"pill",DANGER:"danger",DANGER_LINK:"danger_link",DANGER_PILL:"danger_pill",NONE:"none"},t.ButtonSize={SMALL:"small",NORMAL:"normal",LARGE:"large",HERO:"hero"},t.Button=o.default.forwardRef((function(e,n){let{children:l,className:c,type:d,size:f,active:m,tooltip:_,tooltipPlacement:p,onClick:h,linkTo:g}=e,v=a(e,["children","className","type","size","active","tooltip","tooltipPlacement","onClick","linkTo"]);d=null!=d?d:t.ButtonType.SECONDARY,f=null!=f?f:t.ButtonSize.NORMAL,p=null!=p?p:"bottom";const[b,y]=o.default.useState(!1),E=()=>y(!0),S=()=>y(!1),w=i.classList(c,d!==t.ButtonType.NONE?"button":null,d===t.ButtonType.PRIMARY?"button-primary":null,d===t.ButtonType.SECONDARY?"button-secondary":null,d===t.ButtonType.LINK?"button-secondary button-tertiary":null,d===t.ButtonType.PILL?"button-secondary button-tertiary button-pill":null,d===t.ButtonType.TOGGLE?"button-toggle":null,d===t.ButtonType.TOGGLE&&m?"button-secondary button-active":null,d!==t.ButtonType.TOGGLE||m?null:"button-secondary",d===t.ButtonType.DANGER?"button-secondary button-danger":null,d===t.ButtonType.DANGER_LINK?"button-tertiary button-danger":null,d===t.ButtonType.DANGER_PILL?"button-tertiary button-danger button-danger-pill":null,f===t.ButtonSize.SMALL?"button-small":null,f===t.ButtonSize.LARGE?"button-large":null,f===t.ButtonSize.HERO?"button-hero":null),C=e=>{h&&h(e)};let M="button";if("string"==typeof g?(M="a",v.href=g):v.type="button",v.tabIndex=0,!_)return o.default.createElement(M,Object.assign({ref:n,className:w,onClick:C},v),l);const O="string"==typeof _,P="btn-tooltip-"+u.uniqueNum(),k=O?_:o.default.createElement(_,{id:P});return o.default.createElement(s.default,{visible:b&&!e.disabled,placement:p,delay:300},({ref:e})=>o.default.createElement(M,Object.assign({ref:n?r.mergeRefs(e,n):e,className:w,onClick:C,onMouseEnter:E,onMouseLeave:S},v),l),k)}))},,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(457);const a=n(19),l=n(70);a.client.interceptors.request.use(e=>(e.headers["X-WP-Nonce"]=SliAdminL10n.restApi.wpNonce,e),e=>Promise.reject(e));const o={version:SliAdminL10n.version,config:{rootId:"spotlight-instagram-admin",adminUrl:SliAdminL10n.adminUrl,doOnboarding:"1"==SliAdminL10n.doOnboarding,didAnalyticsSurvey:SliAdminL10n.didAnalyticsSurvey,showReviewBanner:SliAdminL10n.showReviewBanner,cronSchedules:SliAdminL10n.cronSchedules,cronScheduleOptions:SliAdminL10n.cronSchedules.map(e=>({value:e.key,label:e.display})),postTypes:SliAdminL10n.postTypes,hasElementor:SliAdminL10n.hasElementor,customPosts:{enabled:!1}},restApi:{config:SliAdminL10n.restApi},editor:{preview:SliAdminL10n.preview},templates:SliAdminL10n.templates,getTemplate:e=>"string"==typeof e?o.getTemplateById(e):o.getTemplateBySid(e),getTemplateById:e=>o.templates.find(t=>t.id===e),getTemplateBySid:e=>o.templates.find(t=>t.sid===e)};t.default=o,l.RestApi.config.autoImportMedia=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectExpiringAccounts=t.selectBusinessAccounts=t.selectAccountList=t.selectHasBusinessAccounts=t.selectHasAccounts=t.selectAccountById=t.selectAccounts=void 0;const a=n(38),l=n(31),o=n(493);t.selectAccounts=e=>a.Dictionary.values(e.accounts),t.selectAccountById=e=>t=>a.Dictionary.get(t.accounts,e),t.selectHasAccounts=e=>!a.Dictionary.isEmpty(e.accounts),t.selectHasBusinessAccounts=e=>t.selectBusinessAccounts(e).length>0,t.selectAccountList=e=>n=>e.map(e=>t.selectAccountById(e)(n)).filter(e=>!!e),t.selectBusinessAccounts=e=>t.selectAccounts(e).filter(e=>e.type===l.Account.Type.BUSINESS),t.selectExpiringAccounts=e=>t.selectAccounts(e).filter(o.isAccountTokenExpiring)},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminResources=void 0;const l=a(n(22));t.AdminResources={upgradeUrl:"https://spotlightwp.com/upgrade/",upgradeNavbarUrl:"https://spotlightwp.com/upgrade/?utm_source=sl_plugin&utm_medium=sl_plugin_upgrade&utm_campaign=sl_plugin_upgrade_list",upgradeFeedEditor:"https://spotlightwp.com/upgrade/?utm_source=sl_plugin&utm_medium=sl_plugin_upgrade&utm_campaign=sl_plugin_upgrade_editor",upgradeUrlUtmAnalytics:"https://spotlightwp.com/upgrade/?utm_source=sl_plugin&utm_medium=sl_plugin_analytics&utm_campaign=sl_plugin_analytics_survey",pricingUrl:"https://spotlightwp.com/pricing/",proComingSoonUrl:"https://spotlightwp.com/pro-coming-soon/",getNotifiedUrl:"https://spotlightwp.com/get-notified/",supportUrl:"https://spotlightwp.com/support/",supportNavbarUrl:"https://spotlightwp.com/support/?utm_source=sl_plugin&utm_medium=sl_plugin_support&utm_campaign=sl_plugin_support_list",customPersonalInfoUrl:"https://docs.spotlightwp.com/article/624-custom-profile-photo-and-bio-text",connectPersonalAccount:"https://docs.spotlightwp.com/article/551-connect-a-personal-account",connectBusinessAccount:"https://docs.spotlightwp.com/article/552-connect-a-business-account",connectAccessToken:"https://docs.spotlightwp.com/article/731-connect-an-access-token",personalVsBusinessAccount:"https://docs.spotlightwp.com/article/553-personal-vs-business-accounts",businessAccounts:"https://docs.spotlightwp.com/article/555-how-to-switch-to-a-business-account",cacheDocsUrl:"https://docs.spotlightwp.com/article/639-cache",elementorDoc:"https://docs.spotlightwp.com/article/720-elementor-widget",promoTypesSurvey:"https://spotlightwp.com/survey-promote/",tokenPasswordDoc:"https://docs.spotlightwp.com/article/838-access-token-password",tokenGenerator:"https://spotlightwp.com/access-token-generator",upgradeLocalUrl:l.default.config.adminUrl+"admin.php?page=spotlight-instagram-pricing",trialLocalUrl:l.default.config.adminUrl+"admin.php?page=spotlight-instagram-pricing&billing_cycle=annual&trial=true",review:"https://wordpress.org/support/plugin/spotlight-social-photo-feeds/reviews/",featureRequest:"https://spotlightwp.com/feature-request/",moderationDoc:"https://docs.spotlightwp.com/category/512-moderation",supportUtmAnalytics:"https://spotlightwp.com/support?utm_source=sl_plugin&utm_medium=sl_plugin_analytics&utm_campaign=sl_plugin_analytics_survey",subscribe:"https://spotlightwp.com/subscribe/"}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectSetting=t.selectSettingsValues=t.selectSettingsAreSaving=t.selectSettingsAreDirty=void 0,t.selectSettingsAreDirty=e=>{var t;return null===(t=e.settings)||void 0===t?void 0:t.isDirty},t.selectSettingsAreSaving=e=>{var t;return null===(t=e.settings)||void 0===t?void 0:t.isSaving},t.selectSettingsValues=e=>{var t,n;return null!==(n=null===(t=e.settings)||void 0===t?void 0:t.values)&&void 0!==n?n:{}},t.selectSetting=e=>t=>{var n,a;return null!==(a=null===(n=t.settings)||void 0===n?void 0:n.values[e])&&void 0!==a?a:null}},,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminRestApi=void 0;const l=a(n(483)),o=a(n(484)),i=a(n(485)),r=a(n(486)),s=a(n(487)),u=a(n(488)),c=a(n(489)),d=n(490),f=a(n(491)),m=a(n(492));t.AdminRestApi={feeds:l.default,accounts:o.default,media:i.default,settings:r.default,notifications:s.default,cache:u.default,wp:c.default,analytics:d.analytics,embed:f.default,review:m.default}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberField=void 0;const l=a(n(0)),o=n(692),i=n(168);t.NumberField=function({value:e,onChange:t,min:n,max:a,emptyMin:r,placeholder:s,id:u,unit:c}){n=null!=n?n:0,a=null!=a?a:1/0,e=null!=e?e:"",e=isNaN(parseInt(e.toString()))?n:e,s=null!=s?s:"",r=null!=r&&r;const d=l.default.useCallback(e=>{const l=""===e.target.value?n:parseInt(e.target.value);isNaN(l)||t&&t(i.clampNum(l,n,a))},[n,a,t]),f=l.default.useCallback(()=>{r&&e<=n&&e>=a&&t&&t("")},[r,e,n,a,t]),m=l.default.useCallback(a=>{"ArrowUp"===a.key&&""===e&&t&&t(r?n+1:n)},[e,n,r,t]),_=r&&e<=n?"":e,[p,h]=Array.isArray(c)?c:[c,c],g=1===e?p:h;return g?l.default.createElement(o.UnitInput,{id:u,type:"number",unit:g,value:_,min:n,max:a,placeholder:s+"",onChange:d,onBlur:f,onKeyDown:m}):l.default.createElement("input",{id:u,type:"number",value:_,min:n,max:a,placeholder:s+"",onChange:d,onBlur:f,onKeyDown:m})}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.SelectStyles=void 0;const l=a(n(0)),o=a(n(372)),i=a(n(685)),r=a(n(686)),s=a(n(687)),u=n(13);t.SelectStyles=(e={})=>({option:(e,t)=>Object.assign(Object.assign({},e),{cursor:"pointer",lineHeight:"24px"}),menu:(e,t)=>Object.assign(Object.assign({},e),{margin:"6px 0",boxShadow:"0 2px 8px "+s.default.shadowColor,overflow:"hidden"}),menuList:(e,t)=>({padding:"0px"}),control:(e,t)=>{let n=Object.assign(Object.assign({},e),{cursor:"pointer",lineHeight:"2",minHeight:"40px"});return t.isFocused&&(n.borderColor=s.default.primaryColor,n.boxShadow="0 0 0 1px "+s.default.primaryColor),n},valueContainer:(e,t)=>Object.assign(Object.assign({},e),{paddingTop:0,paddingBottom:0,paddingRight:0}),container:(t,n)=>Object.assign(Object.assign({},t),{width:e.width||"100%"}),multiValue:(e,t)=>Object.assign(Object.assign({},e),{padding:"0 6px"}),input:(e,t)=>Object.assign(Object.assign({},e),{outline:"0 transparent !important",border:"0 transparent !important",boxShadow:"0 0 0 transparent !important"}),indicatorSeparator:(e,t)=>Object.assign(Object.assign({},e),{margin:"0",backgroundColor:"transparent"}),menuPortal:e=>Object.assign(Object.assign({},e),{zIndex:9999999})}),t.Select=l.default.forwardRef((e,n)=>{var a;const c=(null!==(a=e.options)&&void 0!==a?a:[]).find(t=>t.value===e.value);e=Object.assign(Object.assign({},e),{id:void 0,className:u.classList("react-select",e.className),classNamePrefix:"react-select",inputId:e.id,menuPosition:"absolute"});const d=t.SelectStyles(e),f=e.isCreatable?i.default:e.async?r.default:o.default;return l.default.createElement(f,Object.assign({},e,{ref:n,isSearchable:e.isCreatable,value:c,styles:d,theme:e=>Object.assign(Object.assign({},e),{borderRadius:3,colors:Object.assign(Object.assign({},e.colors),{primary:s.default.primaryColor,primary25:s.default.washedColor})}),menuPlacement:"auto",menuPortalTarget:document.body,menuShouldScrollIntoView:!0}))})},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.MessageType=void 0;const l=a(n(0)),o=a(n(511)),i=n(13),r=n(15),s=n(58);function u(e){switch(e){case t.MessageType.SUCCESS:return"yes-alt";case t.MessageType.PRO_TIP:return"lightbulb";case t.MessageType.ERROR:case t.MessageType.WARNING:return"warning";case t.MessageType.INFO:default:return"info"}}t.MessageType={SUCCESS:"success",INFO:"info",PRO_TIP:"pro-tip",PREMIUM:"premium",WARNING:"warning",ERROR:"error",GREY:"grey"},t.Message=function({className:e,style:t,children:n,type:a,showIcon:c,shake:d,centered:f,isDismissible:m,onDismiss:_}){const[p,h]=l.default.useState(!1),g=i.classList(o.default[a],d&&o.default.shaking,f&&o.default.centered,e);return p?null:l.default.createElement("div",{className:g,style:t},c&&("premium"===a?l.default.createElement("div",{className:o.default.logo},l.default.createElement("img",{src:s.Common.image("spotlight-favicon.png"),alt:"Spotlight logo"})):l.default.createElement(r.Dashicon,{className:o.default.icon,icon:u(a)})),l.default.createElement("div",{className:o.default.content},n),m&&l.default.createElement("button",{className:o.default.dismissBtn,onClick:()=>{m&&(h(!0),_&&_())}},l.default.createElement(r.Dashicon,{icon:"no",className:o.default.dashicon})))}},,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SidebarLayout=void 0;const r=o(n(0)),s=i(n(635)),u=n(15),c=n(103);function d(e){return r.default.createElement(c.ResponsiveContainer,{breakpoints:[d.BREAKPOINT]},r.default.createElement(f,Object.assign({},e)))}function f({content:e,sidebar:t,primary:n,current:a,useDefaults:l}){const[o,i]=r.useState(n),u=r.default.useContext(c.ResponsiveContext)<=d.BREAKPOINT,f=()=>i(_?"content":"sidebar"),m=()=>i(_?"sidebar":"content"),_="content"===(n=null!=n?n:"content"),p="sidebar"===n,h="content"===(a=l?o:a),g="sidebar"===a,v=_?s.default.layoutPrimaryContent:s.default.layoutPrimarySidebar;return r.default.createElement("div",{className:v},r.default.createElement(d.Context.Provider,{value:u},e&&(h||!u)&&r.default.createElement("div",{className:s.default.content},l&&r.default.createElement(d.Navigation,{align:_?"right":"left",text:!_&&r.default.createElement("span",null,"Go back"),icon:_?"admin-generic":"arrow-left",onClick:_?m:f}),null!=e?e:null),t&&(g||!u)&&r.default.createElement("div",{className:s.default.sidebar},l&&r.default.createElement(d.Navigation,{align:p?"right":"left",text:!p&&r.default.createElement("span",null,"Go back"),icon:p?"admin-generic":"arrow-left",onClick:p?m:f}),null!=t?t:null)))}t.SidebarLayout=d,function(e){e.BREAKPOINT=968,e.Context=r.default.createContext(!1),e.Navigation=function({icon:e,text:t,align:n,onClick:a}){return t=null!=t?t:"Go back",e=null!=e?e:"arrow-left-alt",n=null!=n?n:"left",r.default.createElement("div",{className:"right"===n?s.default.navigationRight:s.default.navigationLeft},r.default.createElement("a",{className:s.default.navLink,onClick:a},e&&r.default.createElement(u.Dashicon,{icon:e}),r.default.createElement("span",null,null!=t?t:"")))}}(d=t.SidebarLayout||(t.SidebarLayout={}))},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.restoreSettings=t.updateSettings=t.SettingsSlice=void 0;const o=n(27),i=n(49),r=n(100),s=n(16),u=n(136),c=n(78);function d(e){c.Promos.Globals=e.values.promotions,c.Promos.Autos=e.values.autoPromotions}t.SettingsSlice=o.createSlice({name:"settings",initialState:{values:{},original:{},isDirty:!1,isSaving:!1},reducers:{update(e,t){e.values=s.withPartial(e.values,t.payload),e.isDirty=!r.objectsEqual(e.values,e.original),d(e)},restore(e){e.values=i.cloneObj(e.original),e.isDirty=!1,d(e)}},extraReducers:e=>e.addCase(u.saveSettings.pending,e=>{e.isSaving=!0}).addCase(u.saveSettings.rejected,e=>{e.isSaving=!1}).addMatcher(o.isFulfilled(u.saveSettings,u.loadSettings),(e,t)=>{e.original=t.payload,e.values=i.cloneObj(e.original),e.isSaving=!1,e.isDirty=!1,d(e)})}),l(n(996),t),t.updateSettings=t.SettingsSlice.actions.update,t.restoreSettings=t.SettingsSlice.actions.restore},,,,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.modifyRoute=t.gotoScreen=t.gotoRoute=t.gotoUrl=t.RouterSlice=t.addRouteInterceptor=t.RouterHistory=void 0;const o=n(27),i=n(148),r=n(56),s=n(229),u=n(16),c=n(38),d=n(184);t.RouterHistory=r.createBrowserHistory();const f={};function m(e,n,a){if(!a&&!n)throw"updateRoute() must be given either a query or a path!";a=null!=a?a:s.createPath(e,n),n=null!=n?n:i.parse(a),c.Dictionary.values(f).some(e=>!1===e(n,a))||(e.query=n,function(e){setTimeout(()=>t.RouterHistory.push(e,{}))}(a))}var _;t.addRouteInterceptor=function(e){const t="ri"+d.uniqueNum();return c.Dictionary.set(f,t,e),()=>c.Dictionary.remove(f,t)},t.RouterSlice=o.createSlice({name:"router",initialState:{baseUrl:(_=null!=_?_:window.location).protocol+"//"+_.host,pathName:_.pathname,query:Object.assign({},i.parse(_.search))},reducers:{gotoUrl(e,t){m(e,null,t.payload)},gotoRoute(e,t){m(e,u.withPartial({page:e.query.page},t.payload))},gotoScreen(e,t){m(e,{page:e.query.page,screen:t.payload})},modifyRoute(e,t){const n=e.query.page,a=u.withPartial(e.query,t.payload);a.page=n,m(e,a)}}}),t.gotoUrl=t.RouterSlice.actions.gotoUrl,t.gotoRoute=t.RouterSlice.actions.gotoRoute,t.gotoScreen=t.RouterSlice.actions.gotoScreen,t.modifyRoute=t.RouterSlice.actions.modifyRoute,l(n(498),t)},,,,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FlexRow=t.FlexColumn=t.Flex=void 0;const r=o(n(0));t.Flex=r.forwardRef((function(e,t){var{dir:n="column",justify:a="flex-start",align:l="center",wrap:o,justifySelf:s,alignSelf:u,style:c}=e,d=i(e,["dir","justify","align","wrap","justifySelf","alignSelf","style"]);const f=Object.assign(Object.assign({},c),{display:"flex",flexFlow:n+" "+(o?"wrap":"nowrap"),justifyContent:a,alignItems:l,justifySelf:s,alignSelf:u});return r.default.createElement("div",Object.assign({ref:t,style:f},d))})),t.FlexColumn=e=>r.default.createElement(t.Flex,Object.assign({dir:"column"},e)),t.FlexRow=e=>r.default.createElement(t.Flex,Object.assign({dir:"row"},e))},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectQueryParam=t.selectRoute=t.selectScreen=void 0;const a=n(321),l=n(229);t.selectScreen=e=>{var t;return null!==(t=a.extractFromArray(e.router.query.screen))&&void 0!==t?t:""},t.selectRoute=e=>new o(e.router),t.selectQueryParam=e=>t=>l.getRouteParam(t.router,e);class o{constructor(e){Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.state=e}get path(){return l.getRoutePath(this.state)}getParam(e){return l.getRouteParam(this.state,e)}withQuery(e){return l.routeWithQuery(this.state,e)}setQuery(e){return l.routeSetQuery(this.state,e)}withoutParam(e){return l.routeWithoutParam(this.state,e)}getRelUrl(e){return l.getRouteRelUrl(this.state,e)}getAbsUrl(e){return l.getRouteAbsUrl(this.state,e)}}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Modal=void 0;const s=o(n(0)),u=r(n(20)),c=r(n(506)),d=n(13),f=n(507),m=n(51),_=n(15),p=n(189),h=r(n(230)),g=r(n(234));function v({rootRef:e,children:t,className:n,isOpen:a,icon:l,title:o,width:i,height:r,onClose:_,closeIcon:p,closeTooltip:h,allowShadeClose:b,focusChild:y,noGrowMobile:E}){const S=s.default.useRef(),[w]=f.useDelayedFlag(a,!1,v.ANIMATION_DELAY);if(m.useDocumentEventListener("keydown",e=>{a&&"Escape"===e.key&&(_&&_(),e.preventDefault(),e.stopPropagation())},[],[a,_]),s.useEffect(()=>{S&&S.current&&a&&(null!=y?y:S).current.focus()},[]),!w)return null;const C={width:i=null!=i?i:600,height:r},M=d.classList(c.default.modal,a?c.default.opening:c.default.closing,E&&c.default.noGrowMobile,n,"wp-core-ui-override");b=null==b||b;const O=s.default.createElement(g.default,{focusTrapOptions:{allowOutsideClick:!0}},s.default.createElement("div",{className:M,ref:e},s.default.createElement("div",{className:c.default.shade,tabIndex:-1,onClick:()=>{b&&_&&_()}}),s.default.createElement("div",{ref:S,className:c.default.container,style:C,tabIndex:-1},o?s.default.createElement(v.Header,null,s.default.createElement("h1",null,s.default.createElement(v.Icon,null,l),s.default.createElement("span",{className:c.default.headerText},o)),s.default.createElement(v.CloseBtn,{icon:p,tooltip:h,onClick:_})):null,t))),P=document.getElementsByClassName("spotlight-modal-target"),k=0===P.length?document.getElementById("spotlight-instagram-admin"):P.item(0);return u.default.createPortal(O,null!=k?k:document.body)}t.Modal=v,function(e){function t(e){switch(e){case"left":return c.default.footerLeft;case"space-between":return c.default.footerSpaceBetween;default:return c.default.footerRight}}e.ANIMATION_DELAY=120,e.CloseBtn=function({icon:e,tooltip:t,onClick:n}){const[a,l]=s.default.useState(!1),o=()=>l(!0),i=()=>l(!1);return s.default.createElement(h.default,{visible:a},({ref:t})=>s.default.createElement(p.DivButton,{ref:t,className:c.default.closeBtn,onClick:n,onMouseEnter:o,onMouseLeave:i,children:null!=e?e:s.default.createElement(_.Dashicon,{icon:"no-alt"})}),null!=t?t:"Close")},e.Icon=function({children:e}){return e?s.default.createElement("div",{className:c.default.icon},e):null},e.Header=function({children:e}){return s.default.createElement("div",{className:c.default.header},e)},e.Content=function(e){var{children:t,className:n}=e,a=i(e,["children","className"]);return s.default.createElement("div",{className:c.default.scroller},s.default.createElement("div",Object.assign({className:d.classList(c.default.content,n)},a),t))},e.Footer=function({children:e,style:n="right",className:a}){return s.default.createElement("div",{className:d.classList(t(n),a)},e)}}(v=t.Modal||(t.Modal={}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxField=void 0;const l=a(n(0)),o=a(n(703));t.CheckboxField=function({id:e,value:t,onChange:n,disabled:a}){return l.default.createElement("div",{className:o.default.checkboxField},l.default.createElement("div",{className:o.default.aligner},l.default.createElement("input",{id:e,type:"checkbox",value:"1",checked:!!t,onChange:e=>n(e.target.checked),disabled:a})))}},,,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.removeToast=t.showToast=t.ToastsSlice=void 0;const o=n(27),i=n(38);t.ToastsSlice=o.createSlice({name:"toasts",initialState:{},reducers:{showToast(e,t){i.Dictionary.set(e,t.payload.key,t.payload)},removeToast(e,t){i.Dictionary.remove(e,t.payload)}}}),t.showToast=t.ToastsSlice.actions.showToast,t.removeToast=t.ToastsSlice.actions.removeToast,l(n(497),t)},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPicker=void 0;const r=o(n(0)),s=i(n(707)),u=i(n(708)),c=n(325),d=n(231),f=n(51),m=n(910),_=n(219),p=n(149),h=i(n(22));t.ColorPicker=function({id:e,value:t,disableAlpha:n,onChange:a}){t=null!=t?t:"#fff";const[l,o]=r.default.useState(t),[i,g]=r.default.useState(!1),v=r.default.useRef(),b=r.default.useRef(),y=r.default.useCallback(()=>g(!1),[]),E=r.default.useCallback(()=>g(e=>!e),[]),S=r.default.useCallback(e=>{document.getSelection().removeAllRanges(),o(e.rgb),a&&a(e)},[a]),w=r.default.useCallback(e=>{"Escape"===e.key&&i&&(y(),e.preventDefault(),e.stopPropagation())},[i]);r.useEffect(()=>o(t),[t]),d.useDetectOutsideClick(v,y,[b]),c.useDetectTabOut([v,b],y),f.useDocumentEventListener("keydown",w,[i]);const C={preventOverflow:{boundariesElement:document.getElementById(h.default.config.rootId),padding:5}};return r.default.createElement(_.Manager,null,r.default.createElement(_.Reference,null,({ref:t})=>r.default.createElement("button",{ref:p.mergeRefs(v,t),id:e,className:s.default.button,onClick:E},r.default.createElement("span",{className:s.default.colorPreview,style:{backgroundColor:m.colorToString(l)}}))),r.default.createElement(_.Popper,{placement:"bottom-end",positionFixed:!0,modifiers:C},({ref:e,style:t})=>i&&r.default.createElement("div",{className:s.default.popper,ref:p.mergeRefs(b,e),style:t},r.default.createElement(u.default,{color:l,onChange:S,disableAlpha:n}))))}},,,,,function(e,t,n){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.Screens=t.SCREENS=void 0,(a=t.SCREENS||(t.SCREENS={})).NEW_FEED="new",a.EDIT_FEED="edit",a.FEED_LIST="feeds",a.SETTINGS="settings",a.PROMOTIONS="promotions",a.CUSTOM_MEDIA="custom_posts",function(e){const t=[];e.getList=function(){return t},e.register=function(n){return t.push(n),t.sort((e,t)=>{var n,a;const l=null!==(n=e.position)&&void 0!==n?n:0,o=null!==(a=t.position)&&void 0!==a?a:0;return Math.sign(l-o)}),e},e.getScreen=function(e){return t.find(t=>t.id===e)}}(t.Screens||(t.Screens={}))},,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsField=void 0;const l=a(n(0)),o=a(n(995)),i=a(n(264));t.SettingsField=function({id:e,label:t,tooltip:n,fullWidth:a,children:r}){return a=a||!t,l.default.createElement("div",{className:o.default.root},t&&l.default.createElement("div",{className:o.default.label},l.default.createElement("label",{htmlFor:e},t)),l.default.createElement("div",{className:o.default.container},l.default.createElement("div",{className:a?o.default.controlFullWidth:o.default.controlPartialWidth},r),n&&l.default.createElement("div",{className:o.default.tooltip},l.default.createElement(i.default,null,n))))}},,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Spoiler=void 0;const l=a(n(0)),o=a(n(510)),i=n(13),r=n(149),s=n(15),u=n(109);t.Spoiler=l.default.forwardRef((function({label:e,labelIcon:t,className:n,isOpen:a,defaultOpen:c,showIcon:d,disabled:f,stealth:m,fitted:_,scrollOnOpen:p,onClick:h,children:g},v){d=null==d||d,f=null!=f&&f,p=null!=p&&p;const[b,y]=l.default.useState(!!c),E=void 0!==a;E||(a=b);const S=l.default.useRef(),w=()=>{f||(!a&&p&&u.scrollIntoView(S.current,{behavior:"smooth",top:-56}),E||y(!a),h&&h())},C=a&&void 0===h&&!d,M=C?void 0:0,O=C?void 0:"button",P=i.classList(a?o.default.spoilerOpen:o.default.spoilerClosed,f&&o.default.disabled,_&&o.default.fitted,m&&o.default.stealth,C&&o.default.static,n),k="string"==typeof e?l.default.createElement("span",null,e):e;return l.default.createElement("div",{ref:r.mergeRefs(S,v),className:P},l.default.createElement("div",{className:o.default.header,onClick:w,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||w()},role:O,tabIndex:M},l.default.createElement("div",{className:o.default.label},t&&l.default.createElement("div",{className:o.default.labelIcon},t),k),d&&l.default.createElement(s.Dashicon,{icon:"arrow-up-alt2",className:o.default.icon})),a&&l.default.createElement("div",{className:o.default.content},g))}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldRow=void 0;const l=a(n(0)),o=a(n(668)),i=a(n(264)),r=n(128),s=n(367),u=n(2);t.FieldRow=function({label:e,labelId:t,wide:n,centered:a,tooltip:c,disabled:d,isResponsive:f,tier:m=0,children:_}){const p=!u.useTier().isAtLeast(m),h=(d=d||p)?n?o.default.disabledWide:o.default.disabled:n?o.default.containerWide:o.default.container;return l.default.createElement("div",{className:h},e&&l.default.createElement("div",{className:a?o.default.labelCentered:o.default.labelNormal},l.default.createElement("div",{className:o.default.labelAligner},l.default.createElement("label",{htmlFor:t},e,c&&l.default.createElement(l.default.Fragment,null," ",l.default.createElement(i.default,null,c))))),l.default.createElement("div",{className:o.default.content},f&&l.default.createElement("div",{className:o.default.responsiveContainer},l.default.createElement(s.FeedEditorDeviceCycleButton,null),l.default.createElement("div",{className:o.default.responsiveField},_)),!f&&l.default.createElement("div",{className:a?o.default.fieldCentered:o.default.fieldNormal},_)),p&&l.default.createElement(r.ProPill,{className:o.default.proPill}))}},,,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.updateAccount=t.deleteAccount=t.loadAccounts=void 0;const l=n(27),o=n(70),i=n(34),r=n(19);t.loadAccounts=l.createAsyncThunk("accounts/load",()=>a(void 0,void 0,void 0,(function*(){var e;try{const t=yield o.RestApi.accounts.get();if("object"==typeof t&&Array.isArray(t.data))return null!==(e=null==t?void 0:t.data)&&void 0!==e?e:[]}catch(e){throw r.getErrorResponseMessage(e)}}))),t.deleteAccount=l.createAsyncThunk("accounts/delete",e=>a(void 0,void 0,void 0,(function*(){try{const t=yield i.AdminRestApi.accounts.delete(e);if("object"==typeof t&&Array.isArray(t.data))return t.data}catch(e){throw r.getErrorResponseMessage(e)}throw"Spotlight encountered a problem while trying to delete the account. Kindly contact customer support for assistance."}))),t.updateAccount=l.createAsyncThunk("accounts/update",e=>a(void 0,void 0,void 0,(function*(){return yield i.AdminRestApi.accounts.update(e),e})))},,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponsiveContainer=t.ResponsiveContext=void 0;const l=a(n(0)),o=n(332);t.ResponsiveContext=l.default.createContext(0),t.ResponsiveContainer=function({breakpoints:e,render:n,children:a}){const[i,r]=l.default.useState(null),s=l.default.useCallback(t=>{r(()=>e.reduce((e,n)=>t.width<=n&&n<e?n:e,1/0))},[e]);o.useWindowSize(s,[r],!0);const u=n?n(i):a;return l.default.createElement(t.ResponsiveContext.Provider,{value:i},null!==i?u:null)}},,,,,,,function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.connectAccessToken=t.reconnectAccount=t.connectFbAccount=t.connectIgAccount=t.connectAccount=t.AccountConnectedEvent=void 0;const o=n(31),i=n(182),r=n(99),s=n(23),u=n(34),c=l(n(22));var d=o.Account.Type;window.SliAccountManagerState={accessToken:null,connectedId:null};const f=window.SliAccountManagerState;class m extends Event{constructor(e){super(m.NAME),Object.defineProperty(this,"account",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.account=e}}function _(e,t){return t===d.PERSONAL?p(e):h(e)}function p(e){return b(e,c.default.restApi.config.personalAuthUrl)}function h(e){return b(e,c.default.restApi.config.businessAuthUrl)}t.AccountConnectedEvent=m,Object.defineProperty(m,"NAME",{enumerable:!0,configurable:!0,writable:!0,value:"sli/account/connected"}),t.connectAccount=_,t.connectIgAccount=p,t.connectFbAccount=h,t.reconnectAccount=function(e,t){return a(this,void 0,void 0,(function*(){yield _(e,t.type),yield u.AdminRestApi.media.deleteForAccount(t.id)}))},t.connectAccessToken=function(e,t,n){return a(this,void 0,void 0,(function*(){const a=yield u.AdminRestApi.accounts.connect(t,n),l=a.data.accountId;return yield y(e,l),a.data.accountId}))};let g=null,v=null;function b(e,t){return new Promise((n,l)=>{f.connectedId=null,null==g||g.closed?g=i.openWindow(t,"_blank",Object.assign({dependent:"yes",resizable:"yes",toolbar:"no",location:"no",scrollbars:"no"},i.getWindowCenterBounds(700,800))):g.focus(),(null==g?void 0:g.closed)&&l("Could not create window"),v=setInterval(()=>a(this,void 0,void 0,(function*(){if(null==g?void 0:g.closed){clearInterval(v);const t=f.connectedId;null===t?l("No account was connected"):y(e,t).then(()=>n(t))}})),500)})}function y(e,t){return a(this,void 0,void 0,(function*(){yield e.dispatch(r.loadAccounts());const n=s.selectAccountById(t)(e.getState());document.dispatchEvent(new m(n)),f.connectedId=null}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectHasFeeds=t.selectFeedById=t.selectFeeds=void 0;const a=n(38);t.selectFeeds=e=>a.Dictionary.values(e.feeds),t.selectFeedById=e=>t=>e?a.Dictionary.get(t.feeds,e):null,t.selectHasFeeds=e=>!a.Dictionary.isEmpty(e.feeds)},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProPill=void 0;const l=a(n(0)),o=a(n(555)),i=n(13),r=n(25);t.ProPill=({className:e,direction:t="right",open:n,children:a})=>l.default.createElement("span",{className:i.classList(n?o.default.pillOpen:o.default.pill,e,o.default[t]),onClick:e=>{e.stopPropagation(),window.open(r.AdminResources.upgradeUrl,"_blank")},tabIndex:-1},null!=a?a:"PREMIUM")},,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LargeLinkButton=t.LargeButton=void 0;const s=o(n(0)),u=r(n(566)),c=n(13),d=n(10),f=n(193);t.LargeButton=s.forwardRef((function(e,t){var{theme:n="white",className:a,left:l,right:o,subtext:r,children:d,isActive:f,isStatic:m,disabled:_}=e,p=i(e,["theme","className","left","right","subtext","children","isActive","isStatic","disabled"]);const h="string"==typeof d?s.default.createElement("span",{className:u.default.mainText},d):d,g="string"==typeof r?s.default.createElement("span",{className:u.default.subText},r):r,v=c.classList(u.default[n],f&&u.default.active,m&&u.default.static,_&&u.default.disabled,a);return s.default.createElement("button",Object.assign({ref:t},p,{className:v,tabIndex:m||_?-1:0}),l&&s.default.createElement("div",{className:u.default.leftCol},l),s.default.createElement("div",{className:l?u.default.centerColLeft:u.default.centerColCenter},h,g),o&&s.default.createElement("div",{className:u.default.rightCol},o))})),t.LargeLinkButton=s.forwardRef((function(e,n){var{href:a,target:l}=e,o=i(e,["href","target"]);return s.default.createElement("a",{href:a,target:l,className:u.default.link},s.default.createElement(t.LargeButton,Object.assign({},o,{ref:n,right:s.default.createElement(d.Icon,{icon:f.ExternalIcon,width:"16",height:"16",std:!0})})))}))},,,,,function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldSet=void 0;const o=l(n(0)),i=l(n(912)),r=n(13);t.FieldSet=function(e){var{className:t}=e,n=a(e,["className"]);return o.default.createElement("div",Object.assign({className:r.classList(i.default.root,t)},n))}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.saveSettings=t.loadSettings=void 0;const l=n(27),o=n(422),i=n(346),r=n(19),s=n(34),u=n(78),c=n(38);function d(e){return a(this,void 0,void 0,(function*(){try{const t=yield e();if("object"==typeof t&&void 0!==t.data)return function(e){var t,n,a,l,o,i,r,s,d,f,m,_,p;const h=Object.assign(Object.assign({},e),{importLimit:null!==(t=e.importLimit)&&void 0!==t?t:0,importerInterval:null!==(n=e.importerInterval)&&void 0!==n?n:"",cleanerAgeLimit:null!==(a=e.cleanerAgeLimit)&&void 0!==a?a:"",cleanerInterval:null!==(l=e.cleanerInterval)&&void 0!==l?l:"",preloadMedia:null!==(o=e.preloadMedia)&&void 0!==o&&o,hashtagWhitelist:null!==(i=e.hashtagWhitelist)&&void 0!==i?i:[],hashtagBlacklist:null!==(r=e.hashtagBlacklist)&&void 0!==r?r:[],captionWhitelist:null!==(s=e.captionWhitelist)&&void 0!==s?s:[],captionBlacklist:null!==(d=e.captionBlacklist)&&void 0!==d?d:[],autoPromotions:null!==(f=e.autoPromotions)&&void 0!==f?f:[],promotions:null!==(m=e.promotions)&&void 0!==m?m:{},thumbnails:null!==(_=e.thumbnails)&&void 0!==_?_:[],showPremiumFeatures:null===(p=e.showPremiumFeatures)||void 0===p||p});return Array.isArray(h.promotions)&&0===h.promotions.length&&(h.promotions={}),h.promotions=c.Dictionary.map(h.promotions,u.Promos.createFromV1Instance),h.autoPromotions=h.autoPromotions.map(u.Promos.Automation.createFromV1Instance),h}(t.data)}catch(e){throw r.getErrorResponseMessage(e)}throw"Spotlight encountered a problem while trying to load your settings. Kindly contact customer support for assistance."}))}t.loadSettings=l.createAsyncThunk("settings/load",(e,n)=>a(void 0,void 0,void 0,(function*(){const e=yield d(()=>s.AdminRestApi.settings.get()),[a,l]=function(e){var t,n;const a=null!==(t=localStorage.getItem("sli_editor"))&&void 0!==t?t:"",l=a.length>0;return l&&(localStorage.removeItem("sli_editor"),e.showPremiumFeatures=null===(n=JSON.parse(a))||void 0===n?void 0:n.showProOptions),[e,l]}(e);return l&&n.dispatch(t.saveSettings(!0)),a}))),t.saveSettings=l.createAsyncThunk("settings/save",(e,t)=>a(void 0,void 0,void 0,(function*(){const n=t.getState().settings;try{const t=yield d(()=>s.AdminRestApi.settings.save(n.values));return!e&&document.dispatchEvent(i.createCustomEvent(o.SETTINGS_SAVE_SUCCESS)),t}catch(t){throw!e&&document.dispatchEvent(i.createCustomEvent(o.SETTINGS_SAVE_FAILED,{error:t})),t}})))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsGroup=void 0;const l=a(n(0)),o=a(n(993));t.SettingsGroup=function({title:e,before:t,after:n,children:a}){return l.default.createElement("div",{className:o.default.root},e&&e.length>0&&l.default.createElement("h1",{className:o.default.title},e),t&&l.default.createElement("div",{className:o.default.beforeFields},t),a&&l.default.createElement("div",{className:o.default.fieldList},a),n&&l.default.createElement("div",{className:o.default.afterFields},n))}},,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminScreen=void 0;const l=a(n(0)),o=a(n(481)),i=n(13),r=n(320);t.AdminScreen=function({navbar:e,className:t,fillPage:n,anchor:a="content",hideNotices:s,children:u}){const c=n?o.default.fillPage:o.default.adminScreen,d=i.classList(c,"root"===a&&o.default.anchor,t);return l.default.createElement("div",{className:d},e&&l.default.createElement("div",{className:o.default.navbar},l.default.createElement(e)),l.default.createElement("div",{className:i.classList(o.default.content,"content"===a&&o.default.anchor)},!s&&l.default.createElement("div",{className:o.default.notices},l.default.createElement(r.AdminNotices,null)),u))}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.deleteFeed=t.duplicateFeed=t.saveFeed=t.loadFeeds=void 0;const l=n(27),o=n(70),i=n(34),r=n(65),s=n(49),u=n(19);t.loadFeeds=l.createAsyncThunk("feeds/load",()=>a(void 0,void 0,void 0,(function*(){try{const e=yield o.RestApi.feeds.get();if("object"==typeof e&&Array.isArray(e.data))return e.data}catch(e){throw u.getErrorResponseMessage(e)}throw"Spotlight encountered a problem trying to load your feeds. Kindly contact customer support for assistance."}))),t.saveFeed=l.createAsyncThunk("feeds/save",(e,t)=>a(void 0,void 0,void 0,(function*(){t.dispatch(r.showToast({key:"feeds/saving",message:"Saving feed. Please wait ...",type:r.ToastType.STICKY}));const n=yield i.AdminRestApi.feeds.save(e);return t.dispatch(r.removeToast("feeds/saving")),t.dispatch(r.showToast({key:"feeds/saved",message:"Feed saved!"})),n.data.feed}))),t.duplicateFeed=l.createAsyncThunk("feeds/duplicate",(e,t)=>a(void 0,void 0,void 0,(function*(){t.dispatch(r.showToast({key:"admin/feeds/duplicate/wait",message:"Duplicating feed. Please wait ...",type:r.ToastType.STICKY}));const n={id:null,name:"Copy of "+e.name,usages:[],options:s.cloneObj(e.options)};try{return(yield i.AdminRestApi.feeds.save(n)).data.feed}finally{t.dispatch(r.removeToast("admin/feeds/duplicate/wait"))}}))),t.deleteFeed=l.createAsyncThunk("feeds/delete",(e,t)=>a(void 0,void 0,void 0,(function*(){try{return yield i.AdminRestApi.feeds.delete(e.id),e.id}catch(e){t.dispatch(r.showToast({key:"feeds/delete/error",message:e.toString(),type:r.ToastType.ERROR}))}})))},,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MenuHeading=t.MenuStatic=t.MenuSeparator=t.MenuContent=t.MenuItem=t.StatefulMenu=t.Menu=void 0;const s=o(n(0)),u=n(219),c=n(325),d=n(231),f=r(n(22));n(504);const m=n(13);function _(e){var{children:n}=e,a=i(e,["children"]);const[l,o]=s.useState(!1),r=()=>o(!0),u=()=>o(!1),c={openMenu:r,closeMenu:u};return s.default.createElement(_.Context.Provider,{value:c},s.default.createElement(t.Menu,Object.assign({isOpen:l,onBlur:u},a),({ref:e})=>n[0]({ref:e,openMenu:r}),n[1]))}function p(e,t){return Object.assign(Object.assign({},e),{opacity:1,pointerEvents:"all",visibility:t?"hidden":"visible"})}t.Menu=({children:e,className:t,refClassName:n,isOpen:a,onBlur:l,placement:o,modifiers:i,useVisibility:r})=>{o=null!=o?o:"bottom-end",r=null!=r&&r;const _=s.default.useRef(),h=a||r,g=!a&&r,v=Object.assign({preventOverflow:{boundariesElement:document.getElementById(f.default.config.rootId),padding:5}},i),b=s.useCallback(()=>{a&&l()},[a,l]),y=e=>{switch(e.key){case"ArrowDown":break;case"Escape":b();break;default:return}e.preventDefault(),e.stopPropagation()};return d.useDetectOutsideClick(_,b,[_],[a]),c.useDetectTabOut([_],b),s.default.createElement("div",{ref:_,className:m.classList("menu__ref",n)},s.default.createElement(u.Manager,null,s.default.createElement(u.Reference,null,t=>e[0](t)),s.default.createElement(u.Popper,{placement:o,positionFixed:!0,modifiers:v},({ref:n,style:a,placement:l})=>h?s.default.createElement("div",{ref:n,className:"menu",style:p(a,g),"data-placement":l,onKeyDown:y},s.default.createElement("div",{className:"menu__container"+(t?" "+t:"")},e[1])):null)))},t.StatefulMenu=_,function(e){e.Context=s.default.createContext({openMenu:null,closeMenu:null})}(_=t.StatefulMenu||(t.StatefulMenu={})),t.MenuItem=({children:e,onClick:t,disabled:n,active:a,danger:l})=>{const o=m.bemClass("menu__item",{"--disabled":n,"--active":a,"--danger":!n&&l});return s.default.createElement(_.Context.Consumer,null,({closeMenu:l})=>s.default.createElement("div",{className:o},s.default.createElement("button",{onClick:()=>{l&&l(),!a&&!n&&t&&t()}},e)))},t.MenuContent=({children:e})=>e,t.MenuSeparator=()=>s.default.createElement("div",{className:"menu__separator"}),t.MenuStatic=({children:e})=>s.default.createElement("div",{className:"menu__static"},e),t.MenuHeading=({children:e})=>s.default.createElement("div",{className:"menu__heading"},e)},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedsOnboarding=t.isMobile=void 0;const r=o(n(0)),s=i(n(520)),u=n(238),c=n(522),d=n(330),f=n(11),m=n(153),_=n(154),p=n(77),h=i(n(22)),g=n(331),v=n(543),b=n(546),y=i(n(548)),E=n(242),S=n(549),w=n(103);function C({children:e}){const n=r.useContext(w.ResponsiveContext);return r.default.createElement("div",{className:t.isMobile(n)?s.default.rootMobile:s.default.root},r.default.createElement("div",{className:s.default.content},r.default.createElement("div",{className:s.default.centerRow},r.default.createElement("div",{className:s.default.scrollWrap},e))),!t.isMobile(n)&&r.default.createElement("div",{className:s.default.lip}))}t.isMobile=e=>782===e,t.FeedsOnboarding=function({isNewUser:e=!1,onDone:n=p.fn.noop(),onCancel:a=p.fn.noop()}){const[l,o]=r.useState(null),[i,M]=r.useState(null),O=r.useCallback(()=>{setTimeout(()=>{n(m.getUseCase(l),h.default.getTemplate(i))},700)},[n,l,i]),{step:P,toPrevStep:k,toNextStep:N}=y.default(1,4,O),A=e=>{o(e.id),"linkInBio"===e.id&&M("linkInBio")},x=e=>M(e.id),L=()=>{M(""),N()},T=1===P&&null!==l||2===P&&null!==i||P>=3;return r.default.createElement(w.ResponsiveContainer,{breakpoints:[782],render:n=>r.default.createElement(C,null,r.default.createElement("div",{className:s.default.box},r.default.createElement("div",{className:s.default.boxContent},r.default.createElement(b.WizardSlide,{isCurrent:1===P},r.default.createElement("div",{className:s.default.selectorWrap},r.default.createElement(c.FeedUseCaseSelector,{selected:l,onClickUseCase:A}))),r.default.createElement(b.WizardSlide,{isCurrent:2===P},r.default.createElement("div",{className:s.default.selectorWrap},r.default.createElement(d.FeedTemplateSelector,{selected:i,onClickTemplate:x}))),r.default.createElement(b.WizardSlide,{isCurrent:P>=3},r.default.createElement(S.FinalSlide,null))),r.default.createElement("div",{className:s.default.boxFooter},r.default.createElement(_.SaveButton,{onClick:N,disabled:!T,isSaving:P>3,content:()=>P>=3?"Connect & customize >":"Next step >"}),P>1&&r.default.createElement(f.Button,{type:f.ButtonType.SECONDARY,size:f.ButtonSize.LARGE,onClick:k},"< Previous step"),1===P&&!e&&r.default.createElement(f.Button,{type:f.ButtonType.SECONDARY,size:f.ButtonSize.LARGE,onClick:a},"Cancel"))),r.default.createElement("div",{className:s.default.stepsContainer},r.default.createElement("div",{className:s.default.stepsList},!t.isMobile(n)&&r.default.createElement(g.WizardRow,{type:"header",left:r.default.createElement(u.SpotlightLogo,null),label:e?"Welcome to Spotlight":"Spotlight Instagram Feeds"}),r.default.createElement(v.WizardStep,{num:1,step:P,label:e?"Create your first Instagram feed":"Create a new Instagram feed",desc:e?"Select the type of feed you want to create and display first.":"Select the type of feed you want to create and display."}),r.default.createElement(v.WizardStep,{num:2,step:P,label:"Pick a template",desc:r.default.createElement(r.default.Fragment,null,r.default.createElement("span",null,"Choose from one of our template designs or "),2===P?r.default.createElement("a",{href:"",onClick:E.preventDefault(L)},"create your own"):r.default.createElement("span",null,"create your own"),r.default.createElement("span",null," custom feed."))}),r.default.createElement(v.WizardStep,{num:3,step:P,label:"Connect and customize",desc:e?"Continue to the feed editor to connect your Instagram account, customize your feed, and display it on your website.":"Continue to the feed editor to select a connected Instagram account (or connect a new one), customize your feed, and display it on your website."}))))})}},function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProUpgradeBtn=void 0;const o=l(n(0)),i=l(n(530)),r=n(25),s=n(10),u=n(239),c=n(13);t.ProUpgradeBtn=function(e){var{url:t,children:n,className:l}=e,d=a(e,["url","children","className"]);return o.default.createElement("a",Object.assign({className:c.classList(i.default.root,l),href:null!=t?t:r.AdminResources.upgradeUrl,target:"_blank"},d),o.default.createElement(s.Icon,{width:"14",height:"14",viewBox:"0 0 15 15",icon:u.PremiumIcon,className:i.default.premiumIcon}),null!=n?n:"Upgrade plan")}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SaveButton=void 0;const l=a(n(541)),o=a(n(0)),i=n(11),r=n(13);t.SaveButton=function({className:e,content:t,tooltip:n,onClick:a,disabled:s,isSaving:u}){return t=null!=t?t:e=>e?"Saving ...":"Save",o.default.createElement(i.Button,{className:r.classList(l.default.root,e),type:i.ButtonType.PRIMARY,size:i.ButtonSize.LARGE,tooltip:n,onClick:()=>a&&a(),disabled:s},u&&o.default.createElement("div",{className:l.default.savingOverlay}),t(u))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedsSlice=t.Feed=void 0;const o=n(27),i=n(38),r=n(147),s=n(244);function u(e,t){t.id&&(t.options=s.createFeedOptions(t.options),i.Dictionary.set(e,t.id,t))}(t.Feed||(t.Feed={})).getLabel=function(e){var t;const n=null===(t=e.name)||void 0===t?void 0:t.trim();return(null==n?void 0:n.length)>0?n:"(no name)"},t.FeedsSlice=o.createSlice({name:"feeds",initialState:{},reducers:{},extraReducers:e=>e.addCase(r.loadFeeds.fulfilled,(e,t)=>{t.payload.forEach(t=>u(e,t))}).addCase(r.deleteFeed.fulfilled,(e,t)=>{i.Dictionary.remove(e,t.payload)}).addMatcher(o.isFulfilled(r.saveFeed,r.duplicateFeed),(e,t)=>{u(e,t.payload)})}),l(n(147),t)},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=a(n(0)),o=a(n(626)),i=n(60),r=n(11);t.default=function({children:e,title:t,buttons:n,onAccept:a,onCancel:s,isOpen:u,okDisabled:c,cancelDisabled:d}){n=null!=n?n:["OK","Cancel"];const f=()=>s&&s();return l.default.createElement(i.Modal,{isOpen:u,title:t,onClose:f,className:o.default.root},l.default.createElement(i.Modal.Content,null,"string"==typeof e?l.default.createElement("p",null,e):e),l.default.createElement(i.Modal.Footer,null,l.default.createElement(r.Button,{className:o.default.button,type:r.ButtonType.SECONDARY,onClick:f,disabled:d},n[1]),l.default.createElement(r.Button,{className:o.default.button,type:r.ButtonType.PRIMARY,onClick:()=>a&&a(),disabled:c},n[0])))}},function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Sidebar=void 0;const o=l(n(0)),i=l(n(258));function r(e){var{children:t,padded:n,disabled:l}=e,r=a(e,["children","padded","disabled"]);return o.default.createElement("div",Object.assign({className:l?i.default.disabled:i.default.sidebar},r),o.default.createElement("div",{className:n?i.default.paddedContent:i.default.content},null!=t?t:null))}t.Sidebar=r,function(e){e.padded=i.default.padded}(r=t.Sidebar||(t.Sidebar={}))},,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LimitedMultiTextInput=void 0;const l=a(n(0)),o=n(988);t.LimitedMultiTextInput=function(e){const[t,n]=l.default.useState("");e.exclude&&0===e.exclude.length&&t.length>0&&n("");let a=void 0;if(t.length>0){const n="%s",o=e.excludeMsg.indexOf("%s"),i=e.excludeMsg.substring(0,o),r=e.excludeMsg.substring(o+n.length);a=l.default.createElement(l.default.Fragment,null,i,l.default.createElement("code",null,t),r)}const i=Object.assign(Object.assign({},e),{message:a,onChange:t=>{const a=e.exclude?t.findIndex(t=>e.exclude.includes(t)):-1;a>-1?n(t[a]):e.onChange(t)}});return l.default.createElement(o.MultiTextInput,Object.assign({},i))}},,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SpotlightNavbarLogo=void 0;const l=a(n(0)),o=a(n(630)),i=n(238);function r({children:e}){const t=Array.isArray(e)?e:[e];return l.default.createElement(l.default.Fragment,null,t.map((e,t)=>l.default.createElement(s,{key:t},e)))}function s({children:e}){return l.default.createElement("div",{className:o.default.item},e)}function u({children:e,style:t}){return l.default.createElement("div",{className:o.default.pathSegment},e,l.default.createElement(c,{style:t}))}function c({style:e}){if("none"===e)return null;const t="chevron"===e?"M0 0 L100 50 L0 100":"M50 0 L50 100";return l.default.createElement("div",{className:o.default.separator},l.default.createElement("svg",{viewBox:"0 0 100 100",width:"100%",height:"100%",preserveAspectRatio:"none"},l.default.createElement("path",{d:t,fill:"none",stroke:"currentcolor",strokeLinejoin:"bevel"})))}t.default=function({children:e,pathStyle:t}){let{path:n,left:a,right:i,center:s}=e;return n=null!=n?n:[],a=null!=a?a:[],i=null!=i?i:[],s=null!=s?s:[],l.default.createElement("div",{className:o.default.root},l.default.createElement("div",{className:o.default.leftList},l.default.createElement("div",{className:o.default.pathList},n.map((e,n)=>l.default.createElement(u,{key:n,style:t},l.default.createElement("div",{className:o.default.item},e)))),l.default.createElement("div",{className:o.default.leftList},l.default.createElement(r,null,a))),l.default.createElement("div",{className:o.default.centerList},l.default.createElement(r,null,s)),l.default.createElement("div",{className:o.default.rightList},l.default.createElement(r,null,i)))},t.SpotlightNavbarLogo=function(){return l.default.createElement(i.SpotlightLogo,null)}},,,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Link=void 0;const o=l(n(0)),i=n(1),r=n(59),s=n(47);t.Link=function(e){var{to:t,onClick:n,newTab:l,absolute:u}=e,c=a(e,["to","onClick","newTab","absolute"]);const d=i.useDispatch(),f=i.useSelector(r.selectRoute),m=u?f.setQuery(t):f.withQuery(t);return o.default.createElement("a",Object.assign({href:m,onClick:e=>{if(l||2===e.button)window.open(m,"_blank");else{const e=u?s.gotoRoute(t):s.modifyRoute(t);d(e)}e.preventDefault(),e.stopPropagation()}},c))}},,,,function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=l(n(0)),i=l(n(503)),r=n(31),s=n(13);t.default=function(e){var{account:t,square:n,className:l}=e,u=a(e,["account","square","className"]);const c=r.Account.getProfilePicUrl(t),d=s.classList(n?i.default.square:i.default.round,l);return o.default.createElement("img",Object.assign({},u,{className:d,src:r.Account.DefaultProfilePic,srcSet:c+" 1x",alt:t.username+" profile picture"}))}},,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=a(n(553)),o=a(n(0)),i=n(243),r=n(152),s=n(71),u=n(1),c=n(59),d=n(25),f=n(2),m=n(10),_=n(556);t.default=function({right:e,chevron:t,children:n}){var a,p;const h=f.useTier().isExactly(f.Tier.FREE),g=u.useSelector(c.selectScreen),v=o.default.createElement(i.Navbar.Item,null,null!==(p=null===(a=s.Screens.getScreen(g))||void 0===a?void 0:a.title)&&void 0!==p?p:"");return o.default.createElement(i.Navbar,null,o.default.createElement(o.default.Fragment,null,v,t&&o.default.createElement(i.Navbar.Chevron,null),n),e?o.default.createElement(e):o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:l.default.helpContainer},o.default.createElement("a",{href:d.AdminResources.supportNavbarUrl,target:"_blank",className:l.default.helpLink},o.default.createElement("span",{className:l.default.helpLinkContainer},o.default.createElement(m.Icon,{className:l.default.helpIcon,icon:_.HelpIcon,width:"14.32",height:"14.32",std:!0})," ","Help"))),h&&o.default.createElement(r.ProUpgradeBtn,{url:d.AdminResources.upgradeNavbarUrl,style:{margin:"8px 0"}})))}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalIcon=void 0;const l=a(n(0));t.ExternalIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("line",{x1:"2.14564",y1:"8.57484",x2:"2.14564",y2:"27.855",stroke:"currentColor",strokeWidth:"4.29128",strokeLinecap:"round"}),l.default.createElement("line",{x1:"2.14564",y1:"27.8548",x2:"21.4258",y2:"27.8549",stroke:"currentColor",strokeWidth:"4.29128",strokeLinecap:"round"}),l.default.createElement("line",{x1:"21.4269",y1:"19.2885",x2:"21.4269",y2:"27.8543",stroke:"currentColor",strokeWidth:"4.29128",strokeLinecap:"round"}),l.default.createElement("line",{x1:"2.14564",y1:"8.56872",x2:"10.7115",y2:"8.56872",stroke:"currentColor",strokeWidth:"4.29128",strokeLinecap:"round"}),l.default.createElement("rect",{x:"10.1035",y:"14.6182",width:"12.4472",height:"7.46831",rx:"2.14564",transform:"rotate(-45 10.1035 14.6182)",fill:"currentColor"}),l.default.createElement("path",{d:"M26.8524 2.11444C27.4186 2.1306 27.8747 2.58424 27.894 3.1504L28.3042 15.2259C28.3372 16.1987 27.1617 16.7092 26.4734 16.0209L14.0552 3.60274C13.3689 2.91641 13.8742 1.74407 14.8444 1.77176L26.8524 2.11444Z",fill:"currentColor"}))},,,,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalLink=void 0;const s=r(n(662)),u=o(n(0)),c=n(13),d=n(10),f=n(193);t.ExternalLink=u.forwardRef((function(e,t){var n,{button:a,className:l,children:o}=e,r=i(e,["button","className","children"]);r.target=null!==(n=r.target)&&void 0!==n?n:"_blank",o="string"==typeof o?u.default.createElement("span",null,o):o;const m=u.default.createElement(d.Icon,{icon:f.ExternalIcon,std:!0,className:s.default.icon});return u.default.createElement("a",Object.assign({ref:t,className:c.classList(a?s.default.button:s.default.link,l)},r),a?u.default.createElement(u.default.Fragment,null,o,m):u.default.createElement(u.default.Fragment,null,m,o))}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountSelector=void 0;const l=a(n(0)),o=a(n(667)),i=n(31),r=n(15),s=n(130),u=n(167);function c(e){const t=i.Account.getProfilePicUrl(e);return l.default.createElement("div",Object.assign({className:o.default.profilePic,style:{backgroundImage:`url("${t}")`}},u.noDrag))}t.AccountSelector=function({accounts:e,value:t,onChange:n,singleMode:a,disabled:i}){const u=(t=null!=t?t:[]).filter(t=>e.some(e=>e.id===t)),d=new Set(u),f=l.default.useCallback((e,t)=>{i||(t?(a&&d.clear(),d.add(e)):a||d.delete(e),n(Array.from(d)))},[i,d,n]);return l.default.createElement("div",{className:o.default.root},e.map(e=>{const t=d.has(e.id);return l.default.createElement(s.LargeButton,{key:e.id,theme:"blue",children:"@"+e.username,subtext:e.type,left:c(e),right:!a&&t&&l.default.createElement(r.Dashicon,{icon:"yes-alt",className:o.default.tickIcon}),isActive:t,disabled:i,onClick:()=>f(e.id,!t)})}))}},,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextField=void 0;const l=a(n(0));t.TextField=function({id:e,value:t,onChange:n,placeholder:a}){return l.default.createElement("input",{id:e,type:"text",value:t,onChange:e=>n(e.target.value),placeholder:a})}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MultiHashtagInput=void 0;const l=a(n(0)),o=n(161),i=n(1e3),r=n(237);t.MultiHashtagInput=function(e){var t;const n="string"==typeof e.value?[e.value]:null!==(t=e.value)&&void 0!==t?t:[],a=Object.assign(Object.assign({},e),{value:n.map(e=>i.prefix(e,"#")),sanitize:r.sanitizeHashtag});return l.default.createElement(o.LimitedMultiTextInput,Object.assign({},a))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccountsSlice=void 0;const a=n(38),l=n(31),o=n(27),i=n(99);t.AccountsSlice=o.createSlice({name:"accounts",initialState:{},reducers:{},extraReducers:e=>e.addCase(i.updateAccount.fulfilled,(e,t)=>{const n=t.payload;a.Dictionary.set(e,n.id,n)}).addMatcher(o.isFulfilled(i.loadAccounts,i.deleteAccount),(e,t)=>{const n=t.payload.slice().sort((e,t)=>e.type===t.type?0:e.type===l.Account.Type.PERSONAL?-1:1);a.Dictionary.clear(e),n.forEach(t=>{a.Dictionary.set(e,t.id,t)})})})},,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPath=t.getRouteAbsUrl=t.getRouteRelUrl=t.routeWithoutParam=t.routeWithQuery=t.routeSetQuery=t.getRouteParam=t.getRoutePath=void 0;const a=n(148),l=n(49),o=n(16),i=n(321);function r(e,t){return s(e,o.withPartial({page:e.query.page},t))}function s(e,t){return e.pathName+"?"+a.stringify(function(e){const t=l.cloneObj(e);return Object.getOwnPropertyNames(e).forEach(n=>{e[n]&&0===e[n].length&&delete t[n]}),t}(t))}t.getRoutePath=function(e){return s(e,e.query)},t.getRouteParam=function(e,t){return i.extractFromArray(e.query[t])},t.routeSetQuery=function(e,t){return s(e,o.withPartial(t,{page:e.query.page}))},t.routeWithQuery=function(e,t){return s(e,o.withPartial(e.query,t))},t.routeWithoutParam=function(e,t){const n=l.cloneObj(e.query);return delete n[t],s(e,n)},t.getRouteRelUrl=r,t.getRouteAbsUrl=function(e,t){return e.baseUrl+r(e,t)},t.createPath=s},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(499)),s=o(n(0)),u=i(n(20)),c=n(219),d=i(n(22)),f=n(13);function m(e,t){switch(t){case"top":case"top-start":case"top-end":return e+"Top";case"bottom":case"bottom-start":case"bottom-end":return e+"Bottom";case"left":case"left-start":case"left-end":return e+"Left";case"right":case"right-start":case"right-end":return e+"Right";default:return e}}t.default=function({visible:e,delay:t,placement:n,theme:a,children:l}){a=null!=a?a:{},n=n||"bottom";const[o,i]=s.default.useState(!1),_={preventOverflow:{boundariesElement:document.getElementById(d.default.config.rootId),padding:5}};s.useEffect(()=>{const n=setTimeout(()=>i(e),e?t:1);return()=>clearTimeout(n)},[e]);const p=m("container",n),h=m("arrow",n),g=f.classList(r.default[p],a.container,a[p]),v=f.classList(r.default[h],a.arrow,a[h]);return s.default.createElement(c.Manager,null,s.default.createElement(c.Reference,null,e=>l[0](e)),s.default.createElement(c.Popper,{placement:n,modifiers:_,positionFixed:!0},({ref:e,style:t,placement:n,arrowProps:i})=>o?u.default.createPortal(s.default.createElement("div",{ref:e,className:f.classList(r.default.root,a.root),style:t,tabIndex:-1},s.default.createElement("div",{className:g,"data-placement":n},s.default.createElement("div",{className:f.classList(r.default.content,a.content)},l[1]),s.default.createElement("div",{className:v,ref:i.ref,style:i.style,"data-placement":n}))),document.body):null))}},,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=a(n(0)),o=n(1),i=n(60),r=a(n(508)),s=n(11),u=n(15),c=n(47),d=n(71),f=n(23),m=a(n(22)),_=n(110);t.default=function({accountId:e,isOpen:t,showFooterButtons:n,onClose:a,onUpdate:p}){var h;const g=o.useDispatch(),v=o.useStore(),b=o.useSelector(f.selectAccountById(e)),y=null!==(h=null==b?void 0:b.numCustomMedia)&&void 0!==h?h:0;return l.default.createElement(i.Modal,{isOpen:t&&!!e,title:"Account details",icon:l.default.createElement(u.Dashicon,{icon:"admin-users"}),onClose:a},e&&l.default.createElement(l.default.Fragment,null,l.default.createElement(i.Modal.Content,null,l.default.createElement(r.default,{accountId:e,onUpdate:p})),n&&l.default.createElement(i.Modal.Footer,{style:"left"},m.default.config.customPosts.enabled&&l.default.createElement(s.Button,{type:s.ButtonType.PILL,size:s.ButtonSize.LARGE,onClick:()=>g(c.gotoRoute({screen:d.SCREENS.CUSTOM_MEDIA,id:e.toString()}))},l.default.createElement(u.Dashicon,{icon:"welcome-add-page"}),l.default.createElement("span",null,y+" custom post"+(y>1?"s":""))),l.default.createElement(s.Button,{type:s.ButtonType.PILL,size:s.ButtonSize.LARGE,onClick:()=>_.reconnectAccount(v,b)},l.default.createElement(u.Dashicon,{icon:"image-rotate"}),l.default.createElement("span",null,"Reconnect")))))}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WpUploadMedia=void 0;const l=a(n(0)),o=a(n(236)),i=n(184);function r({children:e,open:t}){return e({open:t})}t.WpUploadMedia=({id:e,value:t,title:n,button:a,mediaType:s,multiple:u,children:c,onOpen:d,onClose:f,onSelect:m})=>{e=null!=e?e:"wp-media-"+i.uniqueNum(),s=null!=s?s:"",a=null!=a?a:"Select";const _=l.default.useRef();_.current||(_.current=o.default.media({id:e,title:n,library:{type:s},button:{text:a},multiple:u}));const p=()=>{const e=_.current.state().get("selection");m&&m(e.models)};return f&&_.current.on("close",f),_.current.on("open",()=>{if(t){const e="object"==typeof t?t:o.default.media.attachment(t);e.fetch(),_.current.state().get("selection").add(e?[e]:[])}d&&d()}),_.current.on("insert",p),_.current.on("select",p),l.default.createElement(r,{children:c,open:()=>_.current.open()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=wp},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SpotlightLogo=void 0;const l=a(n(0)),o=a(n(521)),i=n(58),r=n(167);t.SpotlightLogo=function(){return l.default.createElement("div",{className:o.default.logo},l.default.createElement("img",Object.assign({className:o.default.logoImage,src:i.Common.image("spotlight-favicon.png"),alt:"Spotlight"},r.noDrag)))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PremiumIcon=void 0;const l=a(n(0));t.PremiumIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("rect",{x:"0.5",y:"0.5",width:"14",height:"14",rx:"1.5",fill:"none",stroke:"currentColor"}),l.default.createElement("path",{d:"M7.5 3L8.51031 6.10942H11.7798L9.13472 8.03115L10.145 11.1406L7.5 9.21885L4.85497 11.1406L5.86528 8.03115L3.22025 6.10942H6.48969L7.5 3Z",fill:"currentColor",stroke:"none"}))},,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Navbar=void 0;const l=a(n(0)),o=a(n(554)),i=n(183),r=n(13),s=n(128),u=n(238);function c({children:e}){return l.default.createElement("div",{className:o.default.root},l.default.createElement(c.LogoItem,null),l.default.createElement("div",{className:o.default.leftContainer},e[0]),e[1]&&l.default.createElement("div",{className:o.default.rightContainer},e[1]))}t.Navbar=c,function(e){e.LogoItem=()=>l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:o.default.item},l.default.createElement(u.SpotlightLogo,null)),l.default.createElement(e.Chevron,null)),e.Item=({children:e})=>l.default.createElement("div",{className:o.default.item},e),e.Section=({children:e})=>l.default.createElement("div",{className:o.default.section},e),e.Link=({linkTo:t,onClick:n,isCurrent:a,isDisabled:s,children:u})=>{const c=r.classMap({[o.default.link]:!0,[o.default.current]:a,[o.default.disabled]:s}),d=e=>{"Enter"!==e.key&&" "!==e.key||e.currentTarget.click()},f=s?-1:0;return l.default.createElement(e.Item,null,t?l.default.createElement(i.Link,{to:t,className:c,role:"button",onKeyPress:d,tabIndex:f},u):l.default.createElement("div",{className:c,role:"button",onClick:()=>!s&&n&&n(),onKeyPress:d,tabIndex:f},u))},e.ProPill=()=>l.default.createElement("div",{className:o.default.proPill},l.default.createElement(s.ProPill,null)),e.Chevron=()=>l.default.createElement("div",{className:o.default.chevron},l.default.createElement("svg",{viewBox:"0 0 100 100",width:"100%",height:"100%",preserveAspectRatio:"none"},l.default.createElement("path",{d:"M0 0 L100 50 L0 100",fill:"none",stroke:"currentcolor",strokeLinejoin:"bevel"})))}(c=t.Navbar||(t.Navbar={}))},,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OrSeparator=void 0;const l=a(n(0)),o=a(n(565)),i=n(52);t.OrSeparator=function(){return l.default.createElement(i.FlexRow,{justify:"center",align:"center",className:o.default.container},l.default.createElement("div",{className:o.default.line}),l.default.createElement("span",{className:o.default.text},"OR"),l.default.createElement("div",{className:o.default.line}))}},,,,,,,,function(e,t,n){e.exports={content:"Sidebar__content",sidebar:"Sidebar__sidebar",padded:"Sidebar__padded","padded-content":"Sidebar__padded-content Sidebar__content Sidebar__padded",paddedContent:"Sidebar__padded-content Sidebar__content Sidebar__padded",disabled:"Sidebar__disabled Sidebar__sidebar"}},,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=a(n(0)),o=a(n(657)),i=n(11),r=n(15),s=a(n(658));t.default=function({children:e,onConnect:t,beforeConnect:n}){const[a,u]=l.default.useState(!1);return l.default.createElement(l.default.Fragment,null,l.default.createElement(i.Button,{className:o.default.root,size:i.ButtonSize.HERO,type:i.ButtonType.SECONDARY,onClick:()=>u(!0)},l.default.createElement(r.Dashicon,{icon:"instagram"}),null!=e?e:l.default.createElement("span",null,"Connect more Instagram accounts")),l.default.createElement(s.default,{isOpen:a,onClose:()=>{u(!1)},onConnect:t,beforeConnect:n}))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=a(n(659)),o=a(n(0)),i=a(n(660)),r=n(250),s=n(52),u=n(663),c=n(58),d=n(84);t.default=function({isVertical:e,useSpoilers:t,showDescription:n,onConnect:a,beforeConnect:f}){e=e||t;const m=o.default.createElement(o.default.Fragment,null,o.default.createElement("img",{src:c.Common.image("icons/connect-auth.svg"),alt:"Connect account",className:l.default.icon}),o.default.createElement("span",null,"Connect your account")),_=o.default.createElement(o.default.Fragment,null,o.default.createElement("img",{src:c.Common.image("icons/connect-token.svg"),alt:"Connect account",className:l.default.icon}),o.default.createElement("span",null,"Connect your client's account")),p=o.default.createElement(u.ConnectAccountAuth,{isVertical:e,showDescription:n,onConnect:a,beforeConnect:f}),h=o.default.createElement(i.default,{isVertical:e,onConnect:a,beforeConnect:f});return o.default.createElement(s.FlexColumn,{align:"stretch"},t?o.default.createElement(d.Spoiler,{label:m,showIcon:!1,isOpen:!0,fitted:!0},p):o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:l.default.heading},m),p),!t&&o.default.createElement(r.OrSeparator,null),t?o.default.createElement(d.Spoiler,{label:_,showIcon:!1,isOpen:!0,fitted:!0},h):o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:l.default.heading},_),h))}},function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UnlockFeaturesMessage=void 0;const o=l(n(0)),i=n(39),r=n(25),s=n(2);t.UnlockFeaturesMessage=function(e){var{showIcon:t=!0}=e,n=a(e,["showIcon"]);const l=s.useTier();return o.default.createElement(i.Message,Object.assign({type:i.MessageType.PREMIUM,showIcon:t},n),o.default.createElement("span",null,l.isMoreThan(s.Tier.FREE)?"Unlock more with PRO.":"Unlock more features today.")," ",o.default.createElement("a",{target:"_blank",rel:"noreferrer",href:r.AdminResources.upgradeUrl},"Upgrade now."))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=a(n(0)),o=a(n(669)),i=n(15),r=a(n(230));t.default=function({maxWidth:e,children:t}){e=null!=e?e:300;const[n,a]=l.default.useState(!1),s=()=>a(!0),u=()=>a(!1),c={content:o.default.tooltipContent,container:o.default.tooltipContainer};return l.default.createElement("div",{className:o.default.root},l.default.createElement(r.default,{visible:n,theme:c},({ref:e})=>l.default.createElement("span",{ref:e,className:o.default.icon,style:{opacity:n?1:.7},onMouseEnter:s,onMouseLeave:u},l.default.createElement(i.Dashicon,{icon:"info"})),l.default.createElement("div",{style:{maxWidth:e+"px"}},t)))}},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxListField=void 0;const l=a(n(0)),o=a(n(929)),i=n(128),r=a(n(264)),s=n(2);t.CheckboxListField=function({id:e,value:t,onChange:n,showPremium:a,options:u}){const c=s.useTier(),d=new Set(t.map(e=>e.toString())),f=e=>{var t;const a=e.target.value,l=e.target.checked,o=u.find(e=>e.value.toString()===a);c.isLessThan(null!==(t=o.tier)&&void 0!==t?t:0)||o.isDisabled||(l?d.add(a):d.delete(a),n&&n(Array.from(d)))};return l.default.createElement("div",{className:o.default.checkboxList},u.filter(e=>!!e).map((t,n)=>{var s,u;const m=c.isLessThan(null!==(s=t.tier)&&void 0!==s?s:0),_=t.isDisabled||m;return(!m||a)&&l.default.createElement("label",{key:n,className:o.default.option},l.default.createElement("input",{type:"checkbox",id:e,className:_?o.default.disabled:void 0,value:null!==(u=t.value.toString())&&void 0!==u?u:"",checked:d.has(t.value.toString()),onChange:f,disabled:_}),l.default.createElement("span",{className:_?o.default.disabled:void 0},t.label,t.tooltip&&!m&&l.default.createElement(l.default.Fragment,null," ",l.default.createElement(r.default,null,t.tooltip))),m&&l.default.createElement("div",{className:o.default.proPill},l.default.createElement(i.ProPill,null)))}))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonDesignFields=void 0;const i=o(n(0)),r=n(954),s=n(11),u=n(249),c=n(66),d=n(16),f=n(156),m=n(955),_=n(85);function p({id:e,value:t,onChange:n,disabled:a,show:l}){var o,p,h,g;const[v,b]=i.useState(u.ButtonDesign.DEFAULT);t=null!=t?t:v,n=null!=n?n:b;const[y,E]=i.useState(!1),S=null!==(o=t.border)&&void 0!==o?o:{},w=u.ButtonDesign.getFullState(t,y),C=null!==(p=w.bgColor)&&void 0!==p?p:f.Color.WHITE,M=null!==(g=(null!==(h=w.text)&&void 0!==h?h:{}).color)&&void 0!==g?g:f.Color.BLACK;return i.default.createElement(i.default.Fragment,null,l.states&&i.default.createElement(_.FieldRow,{disabled:a,wide:!0,centered:!0},i.default.createElement(r.ButtonGroup,{wide:!0},i.default.createElement(s.Button,{type:s.ButtonType.TOGGLE,active:!y,onClick:()=>E(!1),disabled:a},"Normal"),i.default.createElement(s.Button,{type:s.ButtonType.TOGGLE,active:y,onClick:()=>E(!0),disabled:a},"Hover"))),l.textColor&&i.default.createElement(_.FieldRow,{label:"Text color",labelId:e+"-color",disabled:a},i.default.createElement(c.ColorPicker,{id:e+"-color",value:M,onChange:e=>{const a=u.ButtonDesign.withState(t,y,t=>{var n;return t.text=null!==(n=t.text)&&void 0!==n?n:{},t.text.color=e.rgb,t});n(a)}})),l.bgColor&&i.default.createElement(_.FieldRow,{label:"Background color",labelId:e+"-bg",disabled:a},i.default.createElement(c.ColorPicker,{id:e+"-bg",value:C,onChange:e=>{const a=u.ButtonDesign.withState(t,y,t=>(t.bgColor=e.rgb,t));n(a)}})),i.default.createElement("hr",null),l.border&&i.default.createElement(m.BorderDesignFields,{design:S,onChange:e=>{n(d.withPartial(t,{border:e}))},show:l.border,disabled:a,labels:!0}))}p.defaultProps={id:"",value:null,onChange:null,disabled:!1,show:{}},t.ButtonDesignFields=p},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPage=void 0;const l=a(n(0)),o=a(n(991)),i=n(1),r=n(51),s=n(136);t.SettingsPage=function({before:e,after:t,children:n}){const a=i.useDispatch();return r.useDocumentEventListener("keydown",e=>{e.key&&"s"===e.key.toLowerCase()&&e.ctrlKey&&(a(s.saveSettings()),e.preventDefault(),e.stopPropagation())},[],[a]),l.default.createElement("article",{className:o.default.root},e&&l.default.createElement("div",{className:o.default.beforeGroups},e),n&&l.default.createElement("div",{className:o.default.groupList},n),t&&l.default.createElement("div",{className:o.default.afterGroups},t))}},,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionGrid=void 0;const s=o(n(0)),u=r(n(1018)),c=n(231),d=n(149),f=n(93),m=n(1019);t.SelectionGrid=function(e){var t,n,{disabled:a,controlled:l,canDeselect:o,children:r,onClick:d,onSelect:h,addButton:g}=e,v=i(e,["disabled","controlled","canDeselect","children","onClick","onSelect","addButton"]);const b=!!g,y=b?[g,...v.items]:v.items;let E=0;v.initialSelected&&v.keyFn&&(E=v.items.findIndex((e,t)=>v.keyFn(e,t)===v.initialSelected),E=-1===E?0:E);const[S,w]=s.useState(E),C=s.default.useRef(),M=s.default.useRef(),O=s.default.useRef(),P=l?v.selected:S,k=null!==(t=v.gridGap)&&void 0!==t?t:15,N=null===(n=v.useKeyBinds)||void 0===n||n;function A(e,t){if(!a){l||w(e);const n=y[e];p(b,0,e)||h&&h(n,e,t)}}function x(e,t){if(!a){A(e,t);const n=y[e];p(b,0,e)?(null==g?void 0:g.onClick)&&g.onClick():d&&d(n,e,t)}}s.useLayoutEffect(()=>{var e;null===(e=O.current)||void 0===e||e.focus()},[O]);const L=s.useCallback(e=>{if(a||!N)return;const t=function(){const e=M.current.getBoundingClientRect(),t=O.current.getBoundingClientRect(),n=e.width,a=t.width;return Math.floor((n+k)/(a+k))}(),n=Math.ceil(y.length/t);switch(e.key){case" ":case"Enter":x(P);break;case"ArrowLeft":A(Math.max(P-1,0));break;case"ArrowRight":A(Math.min(P+1,y.length-1));break;case"ArrowUp":{const e=Math.max(0,P-t),a=Math.floor(P/t),l=Math.floor(e/t);n>1&&l!==a&&A(e);break}case"ArrowDown":{const e=Math.min(y.length-1,P+t),a=Math.floor(P/t),l=Math.floor(e/t);n>1&&l!==a&&A(e);break}default:return}e.preventDefault(),e.stopPropagation()},[a,N,y,A]);c.useDetectOutsideClick(M,()=>{o&&null!==P&&A(null)},[],[o,A,P]);const T=Object.assign(Object.assign({},v.gridStyle),{gridGap:k}),F=a?u.default.gridDisabled:u.default.grid;return s.default.createElement("div",{ref:C,className:u.default.root},s.default.createElement("div",{ref:M,className:F,style:T},y.map((e,t)=>{if(p(b,0,t))return s.default.createElement("div",{className:u.default.item,key:"_add_btn"},s.default.createElement(f.Square,null,s.default.createElement(m.JumboAddButton,Object.assign({},e,{isFocused:P===t}))));const n=t,l=b?t-1:t;return s.default.createElement(_,{key:v.keyFn?v.keyFn(e,l):l,ref:0===l?O:null,focused:!a&&P===n,onClick:e=>x(n,e.currentTarget),onSelect:e=>A(n,e.currentTarget),onKeyDown:L,disabled:a},r({item:e,idx:l,isSelected:P===n}))})))};const _=s.default.forwardRef(({focused:e,onClick:t,onSelect:n,onKeyDown:a,children:l,disabled:o},i)=>{const r=s.useRef();return s.useLayoutEffect(()=>{var t;e&&(null===(t=null==r?void 0:r.current)||void 0===t||t.focus())},[e,r]),s.default.createElement("div",{ref:d.mergeRefs(r,i),className:u.default.item,onClick:t,onFocus:n,onKeyDown:a,tabIndex:o?-1:0},l)});function p(e,t,n){return e&&0===n}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingSpinner=void 0;const l=a(n(0)),o=a(n(1021));t.LoadingSpinner=({size:e})=>{const t=(e=null!=e?e:24)+"px",n={width:t,height:t,boxShadow:`${.25*e+"px"} 0 0 ${.375*e+"px"} #999 inset`};return l.default.createElement("span",{className:o.default.loadingSpinner,style:n})}},,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminSettings=void 0;const l=a(n(1064)),o=n(1070),i=n(1081);t.AdminSettings=[{id:"accounts",title:"Accounts",component:l.default},{id:"config",title:"Configuration",component:o.SettingsConfigTab},{id:"tools",title:"Tools",component:i.SettingsToolsTab}]},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=a(n(0)),o=n(13),i=a(n(502));function r({idx:e,row:t,cols:n,styleMap:a}){return l.default.createElement("tr",{className:i.default.row},n.map(n=>l.default.createElement("td",{key:n.id,className:o.classList(i.default.cell,u(n),a.cells[n.id])},n.render(t,e))))}function s({cols:e,styleMap:t}){return l.default.createElement("tr",null,e.map(e=>{const n=o.classList(i.default.colHeading,u(e),t.cols[e.id]);return l.default.createElement("th",{key:e.id,className:n},e.label)}))}function u(e){return"center"===e.align?i.default.alignCenter:"right"===e.align?i.default.alignRight:i.default.alignLeft}t.default=function({className:e,cols:t,rows:n,footerCols:a,styleMap:u}){return u=null!=u?u:{cols:{},cells:{}},l.default.createElement("table",{className:o.classList(i.default.table,e)},l.default.createElement("thead",{className:i.default.header},l.default.createElement(s,{cols:t,styleMap:u})),l.default.createElement("tbody",null,n.map((e,n)=>l.default.createElement(r,{key:n,idx:n,row:e,cols:t,styleMap:u}))),a&&l.default.createElement("tfoot",{className:i.default.footer},l.default.createElement(s,{cols:t,styleMap:u})))}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Ellipsis=void 0;const l=a(n(0));t.Ellipsis=()=>l.default.createElement("svg",{"aria-hidden":"true",role:"img",focusable:"false",className:"dashicon dashicons-ellipsis",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},l.default.createElement("path",{d:"M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CopyShortcode=void 0;const l=a(n(0)),o=a(n(232)),i=n(1),r=n(65);t.CopyShortcode=({feedId:e,onCopy:t,children:n})=>{const a=i.useDispatch();return l.default.createElement(o.default,{text:`[instagram feed="${e}"]`,onCopy:()=>{a(r.showToast({key:"feeds/shortcode/copied",message:"Copied shortcode to clipboard."})),t&&t()}},n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(525);Object.defineProperty(t,"TileSelector",{enumerable:!0,get:function(){return a.TileSelector}});var l=n(528);Object.defineProperty(t,"Tile",{enumerable:!0,get:function(){return l.Tile}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TileSelectorCtx=void 0;const a=n(77);t.TileSelectorCtx=React.createContext({selected:null,onClickTile:a.fn.noop,onClickIcon:a.fn.noop})},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),l(n(536),t)},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WizardRow=void 0;const r=i(n(542)),s=o(n(0)),u=n(103),c=n(151);t.WizardRow=function({type:e,left:t,label:n,desc:a,color:l="default"}){const o=s.useContext(u.ResponsiveContext);return s.default.createElement("div",{className:c.isMobile(o)?r.default.stepMobile:"step"===e?r.default.step:r.default.header},s.default.createElement("div",{className:r.default.left},t),s.default.createElement("div",{className:"faded"===l?r.default.textFaded:"gray"===l?r.default.textGray:r.default.text},s.default.createElement("div",{className:r.default.label},n),s.default.createElement("div",{className:r.default.desc},a)))}},,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlusIcon=void 0;const l=a(n(0));t.PlusIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("line",{x1:"15",y1:"5",x2:"15",y2:"25",stroke:"currentColor",strokeWidth:"2.5"}),l.default.createElement("line",{x1:"5",y1:"15",x2:"25",y2:"15",stroke:"currentColor",strokeWidth:"2.5"}))},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReviewButton=void 0;const s=r(n(571)),u=o(n(0)),c=n(25),d=n(13),f=n(10),m=n(193);t.ReviewButton=u.forwardRef((function(e,t){var{className:n,href:a=c.AdminResources.review,target:l="_blank",children:o}=e,r=i(e,["className","href","target","children"]);return u.default.createElement("a",Object.assign({ref:t,className:d.classList(s.default.button,n),href:a,target:l},r),o,u.default.createElement(f.Icon,{icon:m.ExternalIcon,std:!0,className:s.default.icon}))}))},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminEditor=void 0;const o=l(n(0)),i=n(1),r=n(71),s=n(341),u=n(155),c=n(47),d=n(260),f=n(1040),m=n(77),_=d.FeedEditorDefaultConfig.tabs.slice();_.push({id:"embed",label:m.fn.provide("Embed"),desc:"Display your Instagram feed",requireSources:!0,sidebar:f.EmbedSidebar,tier:0}),t.AdminEditor=function({feed:e,keepState:t}){const n=i.useDispatch(),l=null===e.id,d=o.default.useCallback(e=>a(this,void 0,void 0,(function*(){const t=yield n(u.saveFeed(e));l&&t.payload.id&&setTimeout(()=>{n(c.gotoRoute({screen:r.SCREENS.EDIT_FEED,id:t.payload.id}))},10)})),[l]),f=o.default.useCallback(()=>{n(c.gotoScreen(r.SCREENS.FEED_LIST))},[]);return o.default.createElement(s.CommonEditor,{feed:e,onSave:d,onCancel:f,keepState:t,tabs:_,useCtrlS:!0,confirmOnCancel:!0})}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommonEditor=t.LEAVE_MESSAGE=void 0;const s=o(n(0)),u=n(1),c=n(51),d=n(342),f=n(9),m=n(16),_=n(1038),p=n(47),h=r(n(22)),g=n(30);function v(e){return s.default.createElement(_.WpMediaField,Object.assign({},e,{title:"Select custom profile photo",buttonSet:"Choose custom photo",buttonChange:"Change custom photo",mediaType:"image"}))}t.LEAVE_MESSAGE="You have unsaved changes. If you leave now, your changes will be lost.",t.CommonEditor=function(e){var{feed:n,confirmOnCancel:a,keepState:l,useCtrlS:o,onSave:r,onCancel:_}=e,b=i(e,["feed","confirmOnCancel","keepState","useCtrlS","onSave","onCancel"]);const y=u.useDispatch(),E=u.useSelector(g.selectSetting("showPremiumFeatures")),S=u.useSelector(e=>e.editor.isSaving),w=u.useSelector(e=>e.editor.isDirty),[C,M]=s.default.useState(!1);s.useEffect(()=>{y(f.FeedEditorActions.editFeed({feedName:n.name,feedOptions:n.options,reset:!l}))},[y,n.id,l]),p.useUnload(t.LEAVE_MESSAGE,()=>a&&w&&!S&&!C,[a,w,S,C]),s.useEffect(()=>{C&&_&&_()},[C]),c.useDocumentEventListener("keydown",e=>{o&&e.key&&"s"===e.key.toLowerCase()&&e.ctrlKey&&(y(f.saveFeed(O)),e.preventDefault(),e.stopPropagation())},[],[w]);const O=s.default.useCallback((e,t)=>{const a=m.withPartial(n,{name:e,options:t});return r?r(a):Promise.reject()},[n,r]),P=s.default.useCallback(()=>{(!w||!C&&a&&confirm(t.LEAVE_MESSAGE))&&M(!0)},[_,a]);return s.default.createElement(d.FeedEditor,Object.assign({},b,{showPremiumOptions:E,selectMediaField:v,onSave:O,onCancel:P,fakePreview:h.default.editor.preview}))}},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=a(n(0)),o=a(n(633)),i=a(n(169)),r=n(92);function s({tab:e,isCurrent:t,onClick:n}){return l.default.createElement("a",{key:e.key,role:"button",tabIndex:0,className:e.disabled?o.default.disabled:t?o.default.current:o.default.tab,onClick:n,onKeyDown:r.useKeyboardActivate(n)},l.default.createElement("span",{className:o.default.label},e.label))}t.default=function({children:{path:e,tabs:t,right:n},current:a,onClickTab:o}){return l.default.createElement(i.default,{pathStyle:"chevron"},{path:e,right:n,left:t.map(e=>{return l.default.createElement(s,{tab:e,key:e.key,isCurrent:e.key===a,onClick:(t=e.key,()=>o&&o(t))});var t})})}},,function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Onboarding=void 0;const o=l(n(0)),i=n(13),r=n(11);n(650);const s=n(15);function u(e){var{className:t,children:n,fullWidth:l,isTransitioning:r}=e,s=a(e,["className","children","fullWidth","isTransitioning"]);const u=i.bemClass("onboarding",{"--full-width":l,"--transitioning":r});return o.default.createElement("div",Object.assign({className:i.classList(u,t)},s),n)}t.Onboarding=u,function(e){e.TRANSITION_DURATION=200,e.Thin=e=>{var{className:t,children:n}=e,l=a(e,["className","children"]);return o.default.createElement("div",Object.assign({className:i.classList("onboarding__thin",t)},l),n)},e.HelpMsg=e=>{var{className:t,children:n}=e,l=a(e,["className","children"]);return o.default.createElement("div",Object.assign({className:i.classList("onboarding__help-msg",t)},l),n)},e.ProTip=({children:t})=>o.default.createElement(e.HelpMsg,null,o.default.createElement("div",{className:"onboarding__pro-tip"},o.default.createElement("span",null,o.default.createElement(s.Dashicon,{icon:"lightbulb"}),o.default.createElement("strong",null,"Pro tip!")),t)),e.StepList=e=>{var{className:t,children:n}=e,l=a(e,["className","children"]);return o.default.createElement("ul",Object.assign({className:i.classList("onboarding__steps",t)},l),n)},e.Step=e=>{var{isDone:t,num:n,className:l,children:r}=e,s=a(e,["isDone","num","className","children"]);return o.default.createElement("li",Object.assign({className:i.classList(t?"onboarding__done":null,l)},s),o.default.createElement("strong",null,"Step ",n,":")," ",r)},e.HeroButton=e=>{var t,{className:n,children:l}=e,s=a(e,["className","children"]);return o.default.createElement(r.Button,Object.assign({type:null!==(t=s.type)&&void 0!==t?t:r.ButtonType.PRIMARY,size:r.ButtonSize.HERO,className:i.classList("onboarding__hero-button",n)},s),l)}}(u=t.Onboarding||(t.Onboarding={}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SETTINGS_SAVE_FAILED=t.SETTINGS_SAVE_SUCCESS=void 0,t.SETTINGS_SAVE_SUCCESS="sli/settings/save/success",t.SETTINGS_SAVE_FAILED="sli/settings/save/error"},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsFiltersTab=void 0;const l=a(n(0)),o=n(292),i=n(992),r=n(998);t.SettingsFiltersTab=function(){return l.default.createElement(o.SettingsPage,null,l.default.createElement(i.SettingsCaptionFiltersGroup,null),l.default.createElement(r.SettingsHashtagFiltersGroup,null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RequestFeatureButton=void 0;const l=a(n(0)),o=n(25),i=n(10),r=n(425),s=n(130);t.RequestFeatureButton=function(){return l.default.createElement(s.LargeLinkButton,{theme:"white",href:o.AdminResources.featureRequest,target:"_blank",children:"Request a new feature",subtext:"HELP US MAKE SPOTLIGHT BETTER",left:l.default.createElement(i.Icon,{icon:r.FeatureRequestIcon,viewBox:"0 0 30 30"})})}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureRequestIcon=void 0;const l=a(n(0));t.FeatureRequestIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("circle",{cx:"15",cy:"15",r:"14",fill:"white",stroke:"currentColor",strokeWidth:"2"}),l.default.createElement("path",{d:"M19.1728 12.312C18.8669 11.3944 18.2335 10.6218 17.3938 10.1419L17.0672 9.95531C15.767 9.21238 14.171 9.21238 12.8709 9.95531L12.5442 10.1419C11.7045 10.6218 11.0711 11.3944 10.7652 12.312C10.4144 13.3646 10.6022 14.5223 11.268 15.41L11.3989 15.5845C11.7217 16.015 11.9731 16.4947 12.1432 17.0051L12.8502 19.1261C12.9324 19.3728 13.1633 19.5392 13.4233 19.5392H16.5147C16.7747 19.5392 17.0056 19.3728 17.0878 19.1261L17.7948 17.0051C17.965 16.4947 18.2163 16.015 18.5391 15.5845L18.6701 15.41C19.3358 14.5223 19.5237 13.3646 19.1728 12.312Z",fill:"white",fillOpacity:"0.1",stroke:"currentColor",strokeWidth:"1.20828"}),l.default.createElement("rect",{width:"0.752475",height:"3.0099",rx:"0.376238",transform:"matrix(-1 0 0 1 15.4062 5)",fill:"currentColor"}),l.default.createElement("rect",{width:"0.752475",height:"3.0099",rx:"0.376238",transform:"matrix(-0.707107 0.707107 0.707107 0.707107 9.13867 6.69312)",fill:"currentColor"}),l.default.createElement("rect",{width:"0.752475",height:"3.0099",rx:"0.376238",transform:"matrix(-0.707107 -0.707107 -0.707107 0.707107 21.4258 7.2251)",fill:"currentColor"}),l.default.createElement("rect",{width:"0.752475",height:"3.0099",rx:"0.376238",transform:"matrix(0.707107 -0.707107 -0.707107 -0.707107 22.2109 18.3831)",fill:"currentColor"}),l.default.createElement("rect",{width:"0.752475",height:"4.51485",rx:"0.188119",transform:"matrix(4.37114e-08 -1 -1 -4.37114e-08 17.2871 21.1782)",fill:"currentColor"}),l.default.createElement("rect",{width:"0.752475",height:"4.51485",rx:"0.188119",transform:"matrix(4.37114e-08 -1 -1 -4.37114e-08 17.2871 23.0593)",fill:"currentColor"}),l.default.createElement("path",{d:"M16.603 24C16.9808 24 17.2871 23.6937 17.2871 23.3159C17.2871 23.2782 17.2565 23.2475 17.2187 23.2475L12.8407 23.2475C12.8029 23.2475 12.7723 23.2782 12.7723 23.3159C12.7723 23.6937 13.0785 24 13.4563 24L16.603 24Z",fill:"currentColor"}),l.default.createElement("rect",{width:"0.752475",height:"4.51485",rx:"0.188119",transform:"matrix(4.37114e-08 -1 -1 -4.37114e-08 17.2871 22.1189)",fill:"currentColor"}),l.default.createElement("rect",{width:"0.752475",height:"3.0099",rx:"0.376238",transform:"matrix(0.707107 0.707107 0.707107 -0.707107 7.28906 17.8511)",fill:"currentColor"}),l.default.createElement("rect",{width:"0.752475",height:"3.0099",rx:"0.376238",transform:"matrix(4.37114e-08 -1 -1 -4.37114e-08 23.8711 12.9009)",fill:"currentColor"}),l.default.createElement("rect",{width:"0.752475",height:"3.0099",rx:"0.376238",transform:"matrix(4.37114e-08 -1 -1 -4.37114e-08 9.00977 12.9009)",fill:"currentColor"}))},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))},r=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MediaSelectionGrid=void 0;const u=o(n(0)),c=s(n(1017)),d=n(294),f=n(295),m=n(12),_=n(49),p=n(131),h=n(70);function g({item:e,isSelected:t,children:n}){return n=null!=n?n:e=>u.default.createElement(p.MediaThumbnail,{media:e.item,className:c.default.thumbnail}),u.default.createElement("div",{className:t?c.default.selectedMedia:c.default.media},n({item:e,isSelected:t}))}t.MediaSelectionGrid=function(e){var{options:t,useFilters:n,useModeration:a,useTypeFilter:l,cache:o,onLoadMedia:s,onClick:p,onSelect:v}=e,b=r(e,["options","useFilters","useModeration","useTypeFilter","cache","onLoadMedia","onClick","onSelect"]);const y=function({options:e,useTypeFilter:t,useFilters:n,useModeration:a}){const l=_.cloneObj(e);return l.numPosts=999999,n||(l.captionWhitelist=[],l.captionBlacklist=[],l.hashtagWhitelist=[],l.hashtagBlacklist=[],l.captionWhitelistSettings=!1,l.captionBlacklistSettings=!1,l.hashtagWhitelistSettings=!1,l.hashtagBlacklistSettings=!1),a||(l.moderation=[],l.moderationMode=m.ModerationMode.BLACKLIST),t||(l.mediaType=m.MediaTypeFilter.ALL),l}({options:t,useTypeFilter:l,useFilters:n,useModeration:a}),[E,S]=u.useState(!0),[w,C]=u.useState([]),M=u.useRef(null);return o||(o={value:M.current,update:e=>M.current=e}),u.useEffect(()=>{!function(){var e;i(this,void 0,void 0,(function*(){if((null===(e=o.value)||void 0===e?void 0:e.key)===m.calculateFeedMediaHash(y))C(o.value.media),S(!1),s&&s(o.value.media);else{S(!0);const e=(yield h.RestApi.media.get(y,0,0,void 0,b.autoImport)).data.media;o.update({key:m.calculateFeedMediaHash(y),media:e}),C(e),S(!1),s&&s(e)}}))}()},[y,n,a,l]),E?u.default.createElement("div",{className:c.default.loading},u.default.createElement(f.LoadingSpinner,{size:60})):u.default.createElement(d.SelectionGrid,Object.assign({},b,{items:w,onClick:function(e,t,n){p&&p(e,t,n)},onSelect:function(e,t,n){v&&v(e,t,n)},keyFn:e=>e.id.toString()}),e=>u.default.createElement(g,Object.assign({},e,{children:b.children})))}},,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PromotionsGrid=void 0;const r=o(n(0)),s=i(n(1031)),u=n(11),c=n(15),d=n(426),f=n(60),m=n(131),_=n(1032),p=n(2),h=n(78),g=n(219),v=i(n(22)),b=n(240),y=n(1),E=n(9),S=n(10),w=n(153),C=n(338),M=n(26),O=n(431),P={value:null,update:e=>P.value=e};function k({media:e,feedOptions:t,onChange:n}){const a=p.useTier(),l=h.Promos.getOverride(e,t);return r.default.createElement(_.PromotionModalFields,{media:e,promo:l,feedOptions:t,onChange:function(l){a.isAtLeast(p.Tier.PRO)&&n(l?h.Promos.setOverride(e,l,t):h.Promos.removeOverride(e,t))}})}function N({media:e,feedOptions:t}){const n=r.useMemo(()=>h.Promos.getPromo(e,t),[e,t]),a=O.useNicePromoUrl(e,n);return r.default.createElement("div",{className:s.default.tile},r.default.createElement(m.MediaThumbnail,{className:s.default.tileThumbnail,media:e}),null!==a?r.default.createElement(A,{url:a}):r.default.createElement(S.Icon,{className:s.default.plusIcon,icon:C.PlusIcon,std:!0}))}function A({url:e}){const[t,n]=r.useState(!1),a=r.useRef(),l=()=>{clearTimeout(a.current),n(!0)},o=()=>{a.current=setTimeout(()=>n(!1),300)},i=t?s.default.linkIconOpen:s.default.linkIcon,u={offset:{offset:5},preventOverflow:{boundariesElement:document.getElementById(v.default.config.rootId),padding:5}};return r.default.createElement(g.Manager,null,r.default.createElement(g.Reference,null,e=>r.default.createElement("div",Object.assign({},e,{className:i,onMouseEnter:l,onMouseLeave:o}),r.default.createElement(c.Dashicon,{icon:"admin-links"}))),r.default.createElement(g.Popper,{placement:"bottom",modifiers:u,positionFixed:!0},n=>t&&r.default.createElement("div",Object.assign({},n,{className:s.default.linkPreview,onMouseEnter:l,onMouseLeave:o}),r.default.createElement("a",{href:e,target:"_blank",onClick:b.stopPropagation()},e))))}t.PromotionsGrid=function({feedOptions:e,disabled:t,onChange:n}){const a=r.useRef(),l=r.useRef(),[o,i]=r.useState(null),[m,_]=r.useState(0),[p,h]=r.useState(!1),g=null!==o&&null!==m,v=g&&m<=0,b=g&&m>=o.length-1,C=g?o[m]:null,O=null!==M.useFeedEditorContext(),A=y.useSelector(E.selectFeedOption("useCase")),x=w.getUseCasePromoDetails(O?A:"");return r.default.createElement("div",{className:s.default.root},r.default.createElement(d.MediaSelectionGrid,{cache:P,options:e,selected:m,onClick:function(e,n,a){t||(l.current=a,h(!0))},onSelect:function(e,n){t||_(n)},onLoadMedia:i,canDeselect:!p,useKeyBinds:!p,disabled:t,useFilters:!0,useModeration:!0,useTypeFilter:!0,controlled:!0},t=>r.default.createElement(N,{media:t.item,feedOptions:e})),r.default.createElement(f.Modal,{title:x.longLabel,icon:r.default.createElement(S.Icon,{icon:x.icon,viewBox:"0 0 30 30",width:"18",height:"18",className:s.default.modalIcon}),width:700,rootRef:a,isOpen:p&&null!==C,onClose:function(){var e;h(!1),null===(e=l.current)||void 0===e||e.focus()}},r.default.createElement(f.Modal.Content,null,r.default.createElement(k,{media:C,feedOptions:e,onChange:n})),r.default.createElement(f.Modal.Footer,{style:"space-between",className:s.default.modalFooter},r.default.createElement(u.Button,{type:u.ButtonType.PILL,size:u.ButtonSize.LARGE,disabled:v,onClick:()=>_(e=>e-1)},r.default.createElement(c.Dashicon,{icon:"arrow-left-alt",className:s.default.footerArrow})," ",r.default.createElement("span",null,"Previous post")),r.default.createElement(u.Button,{type:u.ButtonType.PILL,size:u.ButtonSize.LARGE,disabled:b,onClick:()=>_(e=>e+1)},r.default.createElement("span",null,"Next post")," ",r.default.createElement(c.Dashicon,{icon:"arrow-right-alt",className:s.default.footerArrow})))))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PromotionFields=void 0;const l=a(n(0)),o=n(52),i=n(1034),r=n(427),s=n(428),u=n(214),c=n(85),d=n(16),f=n(1035),m=a(n(22)),_=n(49);function p(e){var t,n,a;const l="wp_post"===e.linkSource.type?m.default.config.postTypes.find(t=>t.slug===e.linkSource.postType):null,o=null!==(a=null===(n=null===(t=null==l?void 0:l.labels)||void 0===t?void 0:t.singularName)||void 0===n?void 0:n.toLowerCase())&&void 0!==a?a:"post";return(i=o).length>0&&["a","e","i","o","u"].includes(i.charAt(0).toLowerCase())?"an "+o:"a "+o;var i}t.PromotionFields=function({promo:e,onChange:t}){var n,a;return e=e?_.cloneObj(e):{linkSource:{type:null},linkBehavior:{openNewTab:!1,showPopupBox:!1},linkText:""},l.default.createElement(o.FlexColumn,{align:"stretch"},l.default.createElement(i.PromoLinkSourceField,{promo:e,onChange:t}),"url"===e.linkSource.type&&l.default.createElement(c.FieldRow,{labelId:"link-promo-url",label:"Link URL",wide:!0},l.default.createElement(u.TextField,{id:"link-promo-url",value:null!==(n=e.linkSource.url)&&void 0!==n?n:"",onChange:n=>{t(d.withPartial(e,{linkSource:{type:"url",url:n}}))}})),"wp_post"===e.linkSource.type&&l.default.createElement(c.FieldRow,{labelId:"link-promo-url",label:"Search for "+p(e),wide:!0},l.default.createElement(f.PostSelector,{id:"sli-promo-search-post",postType:e.linkSource.postType,postId:e.linkSource.postId,postTitle:null!==(a=e.linkSource.postTitle)&&void 0!==a?a:"",onChange:n=>{t(d.withPartial(e,{linkSource:d.withPartial(e.linkSource,{postId:n.id,postTitle:n.title,postUrl:n.permalink})}))}})),e.linkSource.type&&l.default.createElement(l.default.Fragment,null,l.default.createElement(r.PromoLinkBehaviorField,{promo:e,onChange:t}),e.linkBehavior.showPopupBox&&l.default.createElement(s.PromoPopupTextField,{promo:e,onChange:t})))}},,,function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchNews=void 0;const l=n(27),o=(n(19),n(34));t.fetchNews=l.createAsyncThunk("news/fetch",()=>a(void 0,void 0,void 0,(function*(){try{const e=yield o.AdminRestApi.notifications.get();if("object"==typeof e&&Array.isArray(e.data))return e.data}catch(e){}})))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Decorate=void 0;const l=a(n(0));t.Decorate=function(e,t){return n=>l.default.createElement(e,Object.assign(Object.assign({},t),n))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PromotionsScreen=void 0;const r=o(n(0)),s=i(n(1047)),u=i(n(366)),c=n(11),d=n(169),f=n(1048),m=n(1056),_=n(154),p=n(436),h=n(71),g=n(51),v=n(128),b=n(1),y=n(30),E=n(136),S=n(42),w=n(59),C=n(47),M=n(146),O=r.default.createContext(!1);function P(){var e;const t=b.useDispatch(),n=b.useSelector(y.selectSettingsAreDirty),a=b.useSelector(y.selectSettingsAreSaving),l=null!==(e=b.useSelector(w.selectQueryParam("tab")))&&void 0!==e?e:"automate",o=r.useContext(O);return r.default.createElement(r.default.Fragment,null,r.default.createElement(u.default,{current:l,onClickTab:e=>t(C.modifyRoute({tab:e}))},{path:[r.default.createElement(d.SpotlightNavbarLogo,{key:"logo"}),r.default.createElement("span",{key:"screen-title"},"Promotions")],tabs:[{key:"automate",label:r.default.createElement("span",{className:s.default.navbarItem},o&&r.default.createElement(v.ProPill,{className:s.default.navbarProPill}),r.default.createElement("span",null,"Automate"))},{key:"global",label:r.default.createElement("span",{className:s.default.navbarItem},o&&r.default.createElement(v.ProPill,{className:s.default.navbarProPill}),r.default.createElement("span",null,"Global Promotions"))}],right:[r.default.createElement(c.Button,{key:"cancel",onClick:()=>t(S.restoreSettings()),type:c.ButtonType.SECONDARY,disabled:!n,children:"Cancel"}),r.default.createElement(_.SaveButton,{key:"save",onClick:()=>t(E.saveSettings()),isSaving:a,disabled:!n})]}))}t.PromotionsScreen=function({isFakePro:e}){var t;const n=b.useDispatch(),a=b.useSelector(y.selectSettingsAreDirty),l=b.useSelector(y.selectSettingsAreSaving),o=b.useSelector(y.selectSetting("autoPromotions")),i=e?k:o,s=null!==(t=b.useSelector(w.selectQueryParam("tab")))&&void 0!==t?t:"automate";return C.useUnload(p.LEAVE_MESSAGE,e=>a&&e.screen!==h.SCREENS.PROMOTIONS,[a]),r.useEffect(()=>()=>a&&n(S.restoreSettings()),[a,n]),g.useDocumentEventListener("keydown",e=>{"s"===e.key.toLowerCase()&&e.ctrlKey&&(a&&!l&&n(E.saveSettings()),e.preventDefault(),e.stopPropagation())},[],[a,l]),r.default.createElement(O.Provider,{value:e},r.default.createElement(M.AdminScreen,{navbar:P,hideNotices:!0,fillPage:!0},"automate"===s&&r.default.createElement(f.AutomatePromotionsTab,{automations:i,onChange:function(t){e||n(S.updateSettings({autoPromotions:t}))},isFakePro:e}),"global"===s&&r.default.createElement(m.GlobalPromotionsTab,{isFakePro:e})))};const k=[{criteria:{type:"hashtags",hashtags:["product"]},promo:{linkText:"Buy this product",linkSource:{type:"wp_post",postType:"page",postId:1,postTitle:"Product Page",postUrl:""},linkBehavior:{openNewTab:!1,showPopupBox:!1}}},{criteria:{type:"hashtags",hashtags:["myblog"]},promo:{linkText:"Buy this product",linkSource:{type:"wp_post",postType:"post",postId:1,postTitle:"My Latest Blog Post",postUrl:""},linkBehavior:{openNewTab:!1,showPopupBox:!1}}},{criteria:{type:"hashtags",hashtags:["youtube"]},promo:{linkText:"",linkSource:{type:"url",url:""},linkBehavior:{openNewTab:!1,showPopupBox:!1}}}]},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsScreen=t.LEAVE_MESSAGE=void 0;const r=o(n(0)),s=i(n(1061)),u=n(1),c=n(146),d=n(1062),f=n(298),m=n(30),_=n(42),p=n(2),h=n(59),g=n(47);t.LEAVE_MESSAGE="You have unsaved changes. If you leave now, your changes will be lost.",t.SettingsScreen=function(){const e=p.useTier(),n=u.useDispatch(),a=u.useSelector(m.selectSettingsAreDirty),l=u.useSelector(h.selectQueryParam("tab")),o=l?f.AdminSettings.find(e=>l===e.id):f.AdminSettings[0];return r.useEffect(()=>()=>a&&n(_.restoreSettings()),[a,n]),g.useUnload(t.LEAVE_MESSAGE,()=>a,[a]),r.default.createElement(r.default.Fragment,null,r.default.createElement(c.AdminScreen,{navbar:d.SettingsNavbar,className:s.default.root},o&&(e.isAtLeast(p.Tier.PRO)||!o.isPro)&&r.default.createElement(o.component,null)))}},function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=l(n(0)),i=l(n(1074)),r=n(150),s=n(15),u=n(38);function c(e,t){return 1===parseInt(e.toString())?t[0]:t[1]}t.default=function(e){var{type:t,unit:n,units:l,value:d,min:f,onChange:m,emptyMin:_}=e,p=a(e,["type","unit","units","value","min","onChange","emptyMin"]);const[h,g]=o.default.useState(!1),v="object"==typeof l&&u.Dictionary.size(l)>1,b=()=>g(e=>!e),y=e=>{switch(e.key){case" ":case"Enter":b();break;default:return}e.preventDefault(),e.stopPropagation()};(null==d||isNaN(d))&&(d="");const E=_&&void 0!==f&&(d<=f||""===d)?"":d;return o.default.createElement("div",{className:i.default.root},o.default.createElement("input",Object.assign({},p,{className:i.default.input,type:null!=t?t:"text",value:E,min:f,onChange:e=>m&&m(e.currentTarget.value,n)})),o.default.createElement("div",{className:i.default.unitContainer},v&&o.default.createElement(r.Menu,{isOpen:h,onBlur:()=>g(!1)},({ref:e})=>o.default.createElement("div",{ref:e,className:i.default.unitSelector,role:"button",onClick:b,onKeyDown:y,tabIndex:0},o.default.createElement("span",{className:i.default.currentUnit},c(d,u.Dictionary.get(l,n))),o.default.createElement(s.Dashicon,{icon:"arrow-down-alt2",className:h?i.default.menuChevronOpen:i.default.menuChevron})),u.Dictionary.keys(l).map(e=>{const t=u.Dictionary.get(l,e),n=c(d,t);return o.default.createElement(r.MenuItem,{key:n,onClick:()=>(m&&m(d,e),void g(!1))},n)})),!v&&o.default.createElement("div",{className:i.default.unitStatic},o.default.createElement("span",null,n))))}},,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hideNews=t.closeNews=t.openNews=t.removeNewsMessage=t.addNewsMessage=t.NewsSlice=void 0;const o=n(27),i=n(433);t.NewsSlice=o.createSlice({name:"news",initialState:{messages:[],isOpen:!1,isHidden:!1},reducers:{addNewsMessage(e,t){e.messages.push(t.payload)},removeNewsMessage(e,t){e.messages=e.messages.filter(e=>e.id!==t.payload)},openNews(e){e.isOpen=!0},closeNews(e){e.isOpen=!1},hideNews(e){e.isHidden=!0}},extraReducers:e=>e.addCase(i.fetchNews.fulfilled,(e,t)=>{e.messages=t.payload})}),l(n(1087),t),t.addNewsMessage=t.NewsSlice.actions.addNewsMessage,t.removeNewsMessage=t.NewsSlice.actions.removeNewsMessage,t.openNews=t.NewsSlice.actions.openNews,t.closeNews=t.NewsSlice.actions.closeNews,t.hideNews=t.NewsSlice.actions.hideNews},,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedsScreen=void 0;const r=o(n(0)),s=i(n(480)),u=n(146),c=n(71),d=n(495),f=n(151),m=i(n(191)),_=n(1),p=n(111),h=n(11),g=n(47),v=n(155),b=n(559),y=n(130),E=n(10),S=n(567),w=n(568),C=n(569),M=n(239),O=n(2),P=n(338),k=n(251),N=i(n(22)),A=n(34),x=n(570);t.FeedsScreen=function(){const e=_.useDispatch(),t=O.useTier().isExactly(O.Tier.FREE),n=k.useForceUpdate(),a=r.useCallback(()=>{N.default.config.showReviewBanner=!1,A.AdminRestApi.review.leaveReview(),n()},[]),l=_.useSelector(p.selectHasFeeds),[o,i]=r.useState(!1),L=o||!l;return r.default.createElement(u.AdminScreen,{navbar:m.default,fillPage:L,hideNotices:L},L?r.default.createElement(f.FeedsOnboarding,{isNewUser:!l,onDone:(t,n)=>{const a={screen:c.SCREENS.NEW_FEED};l||(a.newUser=1),n&&(a.template=n.id),t&&(a.useCase=t.id),e(g.gotoRoute(a))},onCancel:()=>i(!1)}):r.default.createElement("div",{className:s.default.root},N.default.config.showReviewBanner&&r.default.createElement(x.ReviewBanner,{onClose:a}),r.default.createElement("div",{className:s.default.toolbar},r.default.createElement(h.Button,{type:h.ButtonType.PRIMARY,size:h.ButtonSize.LARGE,onClick:()=>i(!0),className:s.default.addbutton},r.default.createElement(E.Icon,{height:"14",width:"14",std:!0,icon:P.PlusIcon}),r.default.createElement("span",null,"Create a new feed")),"   ",r.default.createElement(b.FeedImportButton,{onImport:t=>e(v.saveFeed({id:null,name:t.name,options:t.options,usages:[]}))})),r.default.createElement("div",{className:s.default.feedsList},r.default.createElement(d.FeedsList,null)),r.default.createElement("div",{className:s.default.links},r.default.createElement(y.LargeLinkButton,{left:r.default.createElement(E.Icon,{width:"30",height:"30",viewBox:"0 0 30 30",icon:S.ShowCaseIcon}),subtext:"SHOW ME THE SHOWCASE",href:"https://spotlightwp.com/showcase/",target:"_blank"},"Inspire me"),r.default.createElement(y.LargeLinkButton,{left:r.default.createElement(E.Icon,{width:"30",height:"30",viewBox:"0 0 30 30",icon:w.MarketingIcon}),subtext:"PERK UP MY MARKETING",href:"https://spotlightwp.com/marketing-perks/",target:"_blank"},"Elevate my brand"),r.default.createElement(y.LargeLinkButton,{left:r.default.createElement(E.Icon,{width:"30",height:"30",viewBox:"0 0 30 30",icon:C.SEOIcon}),subtext:"HELP MY RANKINGS",href:"https://spotlightwp.com/seo-benefits/",target:"_blank"},"Boost my SEO"),t&&r.default.createElement(y.LargeLinkButton,{theme:"red",left:r.default.createElement(E.Icon,{width:"32",height:"30",viewBox:"0 0 15 15",icon:M.PremiumIcon}),subtext:"DISCOVER MORE",href:"https://spotlightwp.com/pricing/#compare",target:"_blank"},"Compare free vs premium"))))}},function(e,t,n){e.exports={root:"FeedsScreen__root layout__flex-column",toolbar:"FeedsScreen__toolbar","feeds-list":"FeedsScreen__feeds-list",feedsList:"FeedsScreen__feeds-list",links:"FeedsScreen__links",addbutton:"FeedsScreen__addbutton"}},function(e,t,n){e.exports={"admin-screen":"AdminScreen__admin-screen",adminScreen:"AdminScreen__admin-screen",navbar:"AdminScreen__navbar layout__z-high","fill-page":"AdminScreen__fill-page AdminScreen__admin-screen",fillPage:"AdminScreen__fill-page AdminScreen__admin-screen",notices:"AdminScreen__notices",content:"AdminScreen__content",anchor:"AdminScreen__anchor"}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(19);t.default={save:e=>a.client.post(e.id?"/feeds/"+e.id:"/feeds",{feed:e}),delete:e=>a.client.post("/feeds/delete/"+e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(19);t.default={update:e=>a.client.post("/accounts",e),delete:e=>a.client.post("/accounts/delete/"+e),connect:(e,t)=>{const n=t?{accessToken:e,userId:t}:{accessToken:e};return a.client.post("/connect",n)},getAccessToken:(e,t)=>a.client.get("/access_token/"+e,{params:{pass:t}}),customMedia:{get:e=>a.client.get(`/accounts/${e}/custom_media`),add:(e,t)=>a.client.post(`/accounts/${e}/custom_media`,t),update:(e,t,n)=>a.client.post(`/accounts/${e}/custom_media/${t}`,n),delete:(e,t)=>a.client.post(`/accounts/${e}/custom_media/${t}/delete`)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(19);t.default={deleteForAccount:e=>a.client.post("/account_media/delete/"+e),cleanUp:e=>a.client.post("/clean_up_media",{ageLimit:e})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(19);t.default={get:()=>a.client.get("/settings"),save:e=>a.client.post("/settings",{settings:e})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(19);t.default={get:()=>a.client.get("/notifications")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(19);t.default={clearAll:()=>a.client.post("/clear_cache"),clearForFeed:e=>a.client.post("/clear_cache/feed",{options:e.options})}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const l=n(19),o=n(38),i={};t.default={posts:{search:(e,t="")=>a(void 0,void 0,void 0,(function*(){const n=(yield l.client.get(`/search_posts?search=${t}&type=${e}`)).data;return n.forEach(e=>{e.niceUrl&&o.Dictionary.set(i,e.id,e.niceUrl)}),n})),getNiceUrl:e=>a(void 0,void 0,void 0,(function*(){const t=e.toString();if(o.Dictionary.has(i,t))return o.Dictionary.get(i,t);{const n=yield l.client.get("/nice_url?id="+e);return o.Dictionary.set(i,t,n.data.niceUrl),n.data.niceUrl}}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.analytics=void 0;const a=n(19);t.analytics={submitSurvey:e=>a.client.post("/analytics/survey",e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(19);t.default={createPost:(e,t,n)=>a.client.post("/create_post",{feedId:e,useCase:t,postType:n})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(19);t.default={leaveReview:()=>a.client.post("/leave_review")}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAccountTokenExpiring=void 0;const l=n(31),o=a(n(494)),i=a(n(228)),r=a(n(1212)),s={days:7};t.isAccountTokenExpiring=function(e){const t=r.default(new Date,s);return e.type===l.Account.Type.BUSINESS&&e.accessExpiry&&o.default(t,i.default(e.accessExpiry))}},,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedsList=void 0;const s=o(n(0)),u=n(1),c=r(n(496)),d=n(111),f=n(147),m=n(15),_=n(183),p=n(11),h=r(n(324)),g=n(71),v=r(n(187)),b=n(150),y=n(326),E=n(327),S=r(n(233)),w=n(190),C=n(32),M=n(65),O=n(47),P=r(n(232)),k=n(23),N=n(19),A=n(70),x=n(34),L=n(89),T=n(10),F=n(516),I=n(517),j=n(518),B=n(519);function D(e){return JSON.stringify({name:e.name,options:e.options})}function R({feed:e,onClickAccount:t}){const n=u.useSelector(k.selectAccountList(e.options.accounts)),a=u.useSelector(k.selectAccountList(e.options.tagged));let l=[];return n.forEach(e=>{e&&l.push(s.default.createElement(G,{account:e,onClick:()=>t(e.id)}))}),a.forEach(e=>{e&&l.push(s.default.createElement(G,{account:e,onClick:()=>t(e.id),isTagged:!0}))}),e.options.hashtags.forEach(e=>l.push(s.default.createElement(z,{hashtag:e}))),0===l.length&&l.push(s.default.createElement("div",{className:c.default.noSourcesMsg},s.default.createElement(m.Dashicon,{icon:"warning"}),"Feed has no sources")),s.default.createElement("div",{className:c.default.sourcesList},l.map((e,t)=>e&&s.default.createElement(H,{key:t},e)))}t.FeedsList=function(){const e=u.useDispatch(),t=u.useSelector(d.selectFeeds),[n,a]=s.useState(null),l=t=>i(this,void 0,void 0,(function*(){var n,a;const l=yield A.RestApi.media.import(t.options);(null===(n=null==l?void 0:l.data)||void 0===n?void 0:n.batching)?e(M.showToast({key:"admin/feeds/import/done",message:`Imported the first set of posts for "${t.name}". Older posts are being imported in the background.`})):(null===(a=null==l?void 0:l.data)||void 0===a?void 0:a.success)&&e(M.showToast({key:"admin/feeds/import/done",message:`Finished importing posts for "${t.name}".`}))})),o=t=>i(this,void 0,void 0,(function*(){e(M.showToast({key:"admin/feeds/clear_cache/wait",message:`Clearing the cache for "${t.name}". This could take a while. Please wait ...`,type:M.ToastType.STICKY}));try{yield x.AdminRestApi.cache.clearForFeed(t),e(M.showToast({key:"admin/feeds/clear_cache/done",message:`Finished clearing the cache for "${t.name}."`}))}catch(e){L.triggerError({type:"feeds/clear_cache/error",message:N.getErrorResponseMessage(e)})}finally{e(M.removeToast("admin/feeds/clear_cache/wait"))}}));function r(t){return()=>{const n=t.name+".json";B.downloadFile(n,D(t)),e(M.showToast({key:"admin/feeds/export",message:"Copied export code to clipboard!"}))}}const v={cols:{name:c.default.nameCol,sources:c.default.sourcesCol,usages:c.default.usagesCol,actions:c.default.actionsCol},cells:{name:c.default.nameCell,sources:c.default.sourcesCell,usages:c.default.usagesCell,actions:c.default.actionsCell}};return s.default.createElement("div",{className:c.default.root},s.default.createElement(h.default,{styleMap:v,rows:t,cols:[{id:"name",label:"Name",render:e=>{var t,n,a;const l={screen:g.SCREENS.EDIT_FEED,id:e.id.toString()},o=function(e){switch(e){case"linkInBio":return"LINK IN BIO";case"shoppable":return"SHOPPABLE";default:return null}}(C.Responsive.extract(null!==(t=e.options.useCase)&&void 0!==t?t:""));return s.default.createElement("div",null,s.default.createElement(_.Link,{to:l,className:c.default.name},e.name?e.name:"(no name)"),s.default.createElement("div",{className:c.default.metaList},o&&s.default.createElement("span",{className:c.default.useCase},o),s.default.createElement("span",{className:c.default.layout},null!==(a=null===(n=C.Responsive.extract(e.options.layout))||void 0===n?void 0:n.toUpperCase())&&void 0!==a?a:"GRID")))}},{id:"sources",label:"Shows posts from",render:e=>s.default.createElement(R,{feed:e,onClickAccount:a})},{id:"usages",label:"Displayed on",render:e=>s.default.createElement(W,{feed:e})},{id:"actions",label:"Actions",render:t=>s.default.createElement("div",{className:c.default.actionsList},s.default.createElement(b.StatefulMenu,null,({ref:e,openMenu:t})=>s.default.createElement(p.Button,{ref:e,className:c.default.actionsBtn,type:p.ButtonType.PILL,size:p.ButtonSize.NORMAL,onClick:t},s.default.createElement(y.Ellipsis,null)),s.default.createElement(b.MenuContent,null,s.default.createElement(b.MenuItem,{onClick:()=>(t=>{e(O.gotoRoute({screen:g.SCREENS.EDIT_FEED,id:t.id.toString()}))})(t)},s.default.createElement(m.Dashicon,{icon:"edit"}),"Edit feed"),s.default.createElement(b.MenuItem,{onClick:()=>(t=>{e(f.duplicateFeed(t))})(t)},s.default.createElement(m.Dashicon,{icon:"admin-page"}),"Duplicate feed"),s.default.createElement(b.MenuSeparator,null),s.default.createElement(E.CopyShortcode,{feedId:t.id},s.default.createElement(b.MenuItem,null,s.default.createElement(m.Dashicon,{icon:"editor-code"}),"Copy shortcode")),s.default.createElement(P.default,{text:D(t),onCopy:r(t)},s.default.createElement(b.MenuItem,null,s.default.createElement(m.Dashicon,{icon:"download"}),"Export feed")),s.default.createElement(b.MenuSeparator,null),s.default.createElement(b.MenuItem,{onClick:()=>l(t)},s.default.createElement(m.Dashicon,{icon:"image-rotate"}),"Update posts"),s.default.createElement(b.MenuItem,{onClick:()=>o(t)},s.default.createElement(m.Dashicon,{icon:"database-remove"}),"Clear cache"),s.default.createElement(b.MenuSeparator,null),s.default.createElement(b.MenuItem,{onClick:()=>(t=>{confirm("Are you sure you want to delete this feed? This cannot be undone.")&&e(f.deleteFeed(t))})(t),danger:!0},s.default.createElement(m.Dashicon,{icon:"trash"}),"Delete feed"))))}]}),s.default.createElement(S.default,{isOpen:null!==n,accountId:n,onClose:()=>a(null)}))};const W=({feed:e})=>s.default.createElement("div",{className:c.default.usagesList},e.usages.map((e,t)=>{return s.default.createElement("div",{key:t,className:c.default.usage},s.default.createElement("span",{className:c.default.usageType},"Page"===(n=e.type)?s.default.createElement(T.Icon,{width:"16",height:"16",icon:F.PageIcon,std:!0}):"Post"===n?s.default.createElement(T.Icon,{width:"16",height:"16",icon:I.PostIcon,std:!0}):s.default.createElement(T.Icon,{width:"16",height:"16",icon:j.GeneralPostTypeIcon,std:!0})),s.default.createElement("a",{className:c.default.usageLink,href:e.link,target:"_blank"},e.name));var n}));function G({account:e,isTagged:t,onClick:n}){return s.default.createElement("div",{className:c.default.accountSource,onClick:n,role:n?"button":void 0,tabIndex:0},t?s.default.createElement(m.Dashicon,{icon:"tag"}):s.default.createElement(v.default,{className:c.default.tinyAccountPic,account:e}),"@",e.username)}function z({hashtag:e}){return s.default.createElement("a",{className:c.default.hashtagSource,href:w.getHashtagPageUrl(e.tag),target:"_blank"},s.default.createElement(m.Dashicon,{icon:"admin-site-alt3"}),s.default.createElement("span",null,"#",e.tag))}const H=({children:e})=>s.default.createElement("div",{className:c.default.source},e)},function(e,t,n){e.exports={"name-col":"FeedsList__name-col",nameCol:"FeedsList__name-col","sources-col":"FeedsList__sources-col",sourcesCol:"FeedsList__sources-col","actions-col":"FeedsList__actions-col",actionsCol:"FeedsList__actions-col","actions-cell":"FeedsList__actions-cell",actionsCell:"FeedsList__actions-cell",name:"FeedsList__name layout__text-overflow-ellipsis","meta-list":"FeedsList__meta-list",metaList:"FeedsList__meta-list","meta-info":"FeedsList__meta-info",metaInfo:"FeedsList__meta-info",id:"FeedsList__id FeedsList__meta-info",layout:"FeedsList__layout FeedsList__meta-info","use-case":"FeedsList__use-case FeedsList__meta-info",useCase:"FeedsList__use-case FeedsList__meta-info","sources-list":"FeedsList__sources-list layout__flex-row",sourcesList:"FeedsList__sources-list layout__flex-row",source:"FeedsList__source layout__text-overflow-ellipsis","account-source":"FeedsList__account-source",accountSource:"FeedsList__account-source","tiny-account-pic":"FeedsList__tiny-account-pic",tinyAccountPic:"FeedsList__tiny-account-pic","hashtag-source":"FeedsList__hashtag-source",hashtagSource:"FeedsList__hashtag-source","no-sources-msg":"FeedsList__no-sources-msg",noSourcesMsg:"FeedsList__no-sources-msg","usages-list":"FeedsList__usages-list layout__flex-column",usagesList:"FeedsList__usages-list layout__flex-column",usage:"FeedsList__usage layout__flex-row layout__text-overflow-ellipsis","usage-link":"FeedsList__usage-link layout__text-overflow-ellipsis",usageLink:"FeedsList__usage-link layout__text-overflow-ellipsis","usage-type":"FeedsList__usage-type",usageType:"FeedsList__usage-type","actions-list":"FeedsList__actions-list",actionsList:"FeedsList__actions-list","actions-btn":"FeedsList__actions-btn",actionsBtn:"FeedsList__actions-btn",promotions:"FeedsList__promotions","sources-cell":"FeedsList__sources-cell",sourcesCell:"FeedsList__sources-cell","usages-cell":"FeedsList__usages-cell",usagesCell:"FeedsList__usages-cell","usages-col":"FeedsList__usages-col",usagesCol:"FeedsList__usages-col"}},function(e,t,n){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.ToastType=void 0,(a=t.ToastType||(t.ToastType={})).NOTIFICATION="notification",a.STICKY="sticky",a.ERROR="error"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUnload=t.useRouteInterceptor=void 0;const a=n(47),l=n(1),o=n(0),i=n(100);function r(e,t){o.useEffect(()=>a.addRouteInterceptor(e),t)}t.useRouteInterceptor=r,t.useUnload=function(e,t,n=[]){const a=l.useStore(),[s]=o.useState(()=>a.getState().router.query);r(o.useCallback((n,a)=>{if(!i.objectsEqual(n,s)&&t(n,a))return confirm(e)},[t,s,e]),n),o.useEffect(()=>{const n=n=>{if(t({},""))return(n||window.event).returnValue=e,e};return window.addEventListener("beforeunload",n),()=>window.removeEventListener("beforeunload",n)},n)}},function(e,t,n){e.exports={root:"Tooltip__root",container:"Tooltip__container","container-top":"Tooltip__container-top Tooltip__container",containerTop:"Tooltip__container-top Tooltip__container","container-bottom":"Tooltip__container-bottom Tooltip__container",containerBottom:"Tooltip__container-bottom Tooltip__container","container-left":"Tooltip__container-left Tooltip__container",containerLeft:"Tooltip__container-left Tooltip__container","container-right":"Tooltip__container-right Tooltip__container",containerRight:"Tooltip__container-right Tooltip__container",content:"Tooltip__content",arrow:"Tooltip__arrow","arrow-top":"Tooltip__arrow-top Tooltip__arrow",arrowTop:"Tooltip__arrow-top Tooltip__arrow","arrow-bottom":"Tooltip__arrow-bottom Tooltip__arrow",arrowBottom:"Tooltip__arrow-bottom Tooltip__arrow","arrow-left":"Tooltip__arrow-left Tooltip__arrow",arrowLeft:"Tooltip__arrow-left Tooltip__arrow","arrow-right":"Tooltip__arrow-right Tooltip__arrow",arrowRight:"Tooltip__arrow-right Tooltip__arrow"}},,,function(e,t,n){e.exports={table:"Table__table theme__subtle-drop-shadow theme__slightly-rounded",header:"Table__header",footer:"Table__footer",cell:"Table__cell","col-heading":"Table__col-heading Table__cell",colHeading:"Table__col-heading Table__cell",row:"Table__row","align-left":"Table__align-left",alignLeft:"Table__align-left","align-right":"Table__align-right",alignRight:"Table__align-right","align-center":"Table__align-center",alignCenter:"Table__align-center"}},function(e,t,n){e.exports={root:"ProfilePic__root",round:"ProfilePic__round ProfilePic__root",square:"ProfilePic__square ProfilePic__root"}},function(e,t,n){},,function(e,t,n){e.exports={modal:"Modal__modal layout__z-higher layout__flex-column",shade:"Modal__shade layout__fill-parent",container:"Modal__container",opening:"Modal__opening","modal-open-animation":"Modal__modal-open-animation",modalOpenAnimation:"Modal__modal-open-animation",closing:"Modal__closing","modal-close-animation":"Modal__modal-close-animation",modalCloseAnimation:"Modal__modal-close-animation",content:"Modal__content",header:"Modal__header","header-text":"Modal__header-text",headerText:"Modal__header-text",icon:"Modal__icon","close-btn":"Modal__close-btn",closeBtn:"Modal__close-btn","focus-visible":"Modal__focus-visible",focusVisible:"Modal__focus-visible",scroller:"Modal__scroller",footer:"Modal__footer","footer-left":"Modal__footer-left Modal__footer",footerLeft:"Modal__footer-left Modal__footer","footer-right":"Modal__footer-right Modal__footer",footerRight:"Modal__footer-right Modal__footer","footer-space-between":"Modal__footer-space-between Modal__footer",footerSpaceBetween:"Modal__footer-space-between Modal__footer","no-grow-mobile":"Modal__no-grow-mobile",noGrowMobile:"Modal__no-grow-mobile"}},,function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=l(n(0)),i=l(n(509)),r=n(31),s=l(n(448)),u=l(n(228)),c=n(84),d=n(235),f=l(n(236)),m=n(11),_=n(39),p=l(n(187)),h=n(16),g=n(1),v=n(99),b=n(23),y=n(25),E=n(512),S=n(34);t.default=function({accountId:e,onUpdate:t}){const n=g.useDispatch(),l=g.useSelector(b.selectAccountById(e)),[w,C]=o.default.useState(!1),[M,O]=o.default.useState(""),[P,k]=o.default.useState(!1),N=l.type===r.Account.Type.PERSONAL,A=r.Account.getBioText(l),x=()=>a(this,void 0,void 0,(function*(){k(!0);const e=h.withPartial(l,{customBio:M});yield n(v.updateAccount(e)),C(!1),k(!1),t&&t()})),L=e=>a(this,void 0,void 0,(function*(){k(!0);const a=h.withPartial(l,{customProfilePicUrl:e});yield n(v.updateAccount(a)),k(!1),t&&t()}));return o.default.createElement("div",{className:i.default.root},o.default.createElement("div",{className:i.default.container},o.default.createElement("div",{className:i.default.infoColumn},o.default.createElement("a",{href:r.Account.getProfileUrl(l),target:"_blank",className:i.default.username},"@",l.username),o.default.createElement("div",{className:i.default.row},o.default.createElement("span",{className:i.default.label},"Spotlight ID:"),l.id),o.default.createElement("div",{className:i.default.row},o.default.createElement("span",{className:i.default.label},"User ID:"),l.userId),o.default.createElement("div",{className:i.default.row},o.default.createElement("span",{className:i.default.label},"Type:"),l.type),!w&&o.default.createElement("div",{className:i.default.row},o.default.createElement("div",null,o.default.createElement("span",{className:i.default.label},"Bio:"),o.default.createElement("a",{className:i.default.editBioLink,onClick:()=>{O(r.Account.getBioText(l)),C(!0)}},"Edit bio"),o.default.createElement("pre",{className:i.default.bio},A.length>0?A:"(No bio)"))),w&&o.default.createElement("div",{className:i.default.row},o.default.createElement("textarea",{className:i.default.bioEditor,value:M,onChange:e=>{O(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&e.ctrlKey&&(x(),e.preventDefault(),e.stopPropagation())},rows:4}),o.default.createElement("div",{className:i.default.bioFooter},o.default.createElement("div",{className:i.default.bioEditingControls},P&&o.default.createElement("span",null,"Please wait ...")),o.default.createElement("div",{className:i.default.bioEditingControls},o.default.createElement(m.Button,{className:i.default.bioEditingButton,type:m.ButtonType.DANGER,disabled:P,onClick:()=>a(this,void 0,void 0,(function*(){k(!0);const e=h.withPartial(l,{customBio:""});yield n(v.updateAccount(e)),C(!1),k(!1),t&&t()}))},"Reset"),o.default.createElement(m.Button,{className:i.default.bioEditingButton,type:m.ButtonType.SECONDARY,disabled:P,onClick:()=>{C(!1)}},"Cancel"),o.default.createElement(m.Button,{className:i.default.bioEditingButton,type:m.ButtonType.PRIMARY,disabled:P,onClick:x},"Save"))))),o.default.createElement("div",{className:i.default.picColumn},o.default.createElement("div",{className:i.default.centerContainer},o.default.createElement(p.default,{account:l,className:i.default.profilePic})),o.default.createElement(d.WpUploadMedia,{id:"account-custom-profile-pic",title:"Select profile picture",mediaType:"image",onSelect:e=>{const t=parseInt(e[0].attributes.id),n=f.default.media.attachment(t).attributes.url;L(n)}},({open:e})=>o.default.createElement(m.Button,{type:m.ButtonType.SECONDARY,size:m.ButtonSize.LARGE,className:i.default.setCustomPic,onClick:e},"Change profile picture")),l.customProfilePicUrl.length>0&&o.default.createElement("a",{className:i.default.resetCustomPic,onClick:()=>{L("")}},"Reset profile picture"))),N&&o.default.createElement("div",{className:i.default.personalInfoMessage},o.default.createElement(_.Message,{type:_.MessageType.INFO,showIcon:!0},"Due to restrictions set by Instagram, Spotlight cannot import the profile photo and bio"," ","text for Personal accounts."," ",o.default.createElement("a",{href:y.AdminResources.customPersonalInfoUrl,target:"_blank"},"Click here to learn more"),".")),o.default.createElement(c.Spoiler,{label:"View access token",stealth:!0},o.default.createElement(E.PasswordProtected,{buttonLabel:"View access token",promptText:o.default.createElement("span",null,"Enter your WordPress password to view the access token."," ",o.default.createElement("a",{href:y.AdminResources.tokenPasswordDoc,target:"_blank"},"Learn more.")),request:e=>S.AdminRestApi.accounts.getAccessToken(l.id,e),children:e=>o.default.createElement("div",null,o.default.createElement("p",null,o.default.createElement("span",{className:i.default.label},"Expires on:"),o.default.createElement("span",null,l.accessExpiry?s.default(u.default(l.accessExpiry),"PPPP"):"Unknown")),o.default.createElement("pre",{className:i.default.accessToken},e.data.accessToken))})))}},function(e,t,n){e.exports={root:"AccountInfo__root",container:"AccountInfo__container",column:"AccountInfo__column","info-column":"AccountInfo__info-column AccountInfo__column",infoColumn:"AccountInfo__info-column AccountInfo__column","pic-column":"AccountInfo__pic-column AccountInfo__column",picColumn:"AccountInfo__pic-column AccountInfo__column","center-container":"AccountInfo__center-container",centerContainer:"AccountInfo__center-container",id:"AccountInfo__id",username:"AccountInfo__username","profile-pic":"AccountInfo__profile-pic",profilePic:"AccountInfo__profile-pic",label:"AccountInfo__label",row:"AccountInfo__row",pre:"AccountInfo__pre",bio:"AccountInfo__bio AccountInfo__pre","link-button":"AccountInfo__link-button",linkButton:"AccountInfo__link-button","edit-bio-link":"AccountInfo__edit-bio-link AccountInfo__link-button",editBioLink:"AccountInfo__edit-bio-link AccountInfo__link-button","bio-editor":"AccountInfo__bio-editor",bioEditor:"AccountInfo__bio-editor","bio-footer":"AccountInfo__bio-footer",bioFooter:"AccountInfo__bio-footer","bio-editing-controls":"AccountInfo__bio-editing-controls",bioEditingControls:"AccountInfo__bio-editing-controls","access-token":"AccountInfo__access-token AccountInfo__pre",accessToken:"AccountInfo__access-token AccountInfo__pre","set-custom-pic":"AccountInfo__set-custom-pic",setCustomPic:"AccountInfo__set-custom-pic","reset-custom-pic":"AccountInfo__reset-custom-pic AccountInfo__link-button",resetCustomPic:"AccountInfo__reset-custom-pic AccountInfo__link-button",subtext:"AccountInfo__subtext","personal-info-message":"AccountInfo__personal-info-message",personalInfoMessage:"AccountInfo__personal-info-message"}},function(e,t,n){e.exports={spoiler:"Spoiler__spoiler",content:"Spoiler__content Spoiler__content",header:"Spoiler__header","spoiler-closed":"Spoiler__spoiler-closed Spoiler__spoiler",spoilerClosed:"Spoiler__spoiler-closed Spoiler__spoiler","spoiler-open":"Spoiler__spoiler-open Spoiler__spoiler",spoilerOpen:"Spoiler__spoiler-open Spoiler__spoiler",icon:"Spoiler__icon","focus-visible":"Spoiler__focus-visible",focusVisible:"Spoiler__focus-visible",label:"Spoiler__label","label-icon":"Spoiler__label-icon layout__flex-column layout__flex-center",labelIcon:"Spoiler__label-icon layout__flex-column layout__flex-center",stealth:"Spoiler__stealth",dashicons:"Spoiler__dashicons",disabled:"Spoiler__disabled",fitted:"Spoiler__fitted",static:"Spoiler__static"}},function(e,t,n){e.exports={message:"Message__message layout__flex-row",centered:"Message__centered",shaking:"Message__shaking","shake-animation":"Message__shake-animation",shakeAnimation:"Message__shake-animation",dashicon:"Message__dashicon",icon:"Message__icon Message__dashicon",logo:"Message__logo Message__icon Message__dashicon",content:"Message__content","dismiss-btn":"Message__dismiss-btn",dismissBtn:"Message__dismiss-btn",success:"Message__success Message__message layout__flex-row",info:"Message__info Message__message layout__flex-row",warning:"Message__warning Message__message layout__flex-row",premium:"Message__premium Message__message layout__flex-row","pro-tip":"Message__pro-tip Message__message layout__flex-row",proTip:"Message__pro-tip Message__message layout__flex-row",error:"Message__error Message__message layout__flex-row",grey:"Message__grey Message__message layout__flex-row"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordProtected=void 0;const s=r(n(513)),u=o(n(0)),c=n(11),d=n(39);function f({children:e,response:t}){return e(t)}t.PasswordProtected=function({request:e,children:t,buttonLabel:n="Submit",promptText:a="You need to enter your WordPress password to view this content:"}){var l,o;const[r,m]=u.useState(""),[_,p]=u.useState(!1),[h,g]=u.useState(null),v=()=>i(this,void 0,void 0,(function*(){let t;p(!0);try{t=yield e(r)}catch(e){t=e.response}g(t),p(!1)})),b=null!==h,y=b&&200!==h.status,E=null!==(o=null===(l=null==h?void 0:h.data)||void 0===l?void 0:l.message)&&void 0!==o?o:"An unknown error occurred.";return b&&!y&&h?u.default.createElement(f,{children:t,response:h}):u.default.createElement("div",{className:s.default.root},u.default.createElement("label",{htmlFor:"sli-password-field"},a),u.default.createElement("div",{className:s.default.passwordForm},u.default.createElement("input",{id:"access-token-password-field",className:s.default.passwordField,type:"password",value:r,onChange:e=>m(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(v(),e.preventDefault(),e.stopPropagation())},autoComplete:"current-password",disabled:_}),u.default.createElement(c.Button,{className:s.default.passwordBtn,type:c.ButtonType.PRIMARY,size:c.ButtonSize.LARGE,onClick:v,disabled:_},n)),y&&u.default.createElement("div",{className:s.default.error},u.default.createElement(d.Message,{type:d.MessageType.ERROR,showIcon:!0,shake:!0},E)))}},function(e,t,n){e.exports={root:"PasswordProtected__root","password-form":"PasswordProtected__password-form",passwordForm:"PasswordProtected__password-form","password-field":"PasswordProtected__password-field",passwordField:"PasswordProtected__password-field","password-btn":"PasswordProtected__password-btn",passwordBtn:"PasswordProtected__password-btn",error:"PasswordProtected__error"}},,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageIcon=void 0;const l=a(n(0));t.PageIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("rect",{x:"4.28516",y:"6.4292",width:"17.1429",height:"21.4286",fill:"currentColor"}),l.default.createElement("rect",{x:"6.42773",y:"4.28516",width:"17.1429",height:"21.4286",fill:"white"}),l.default.createElement("rect",{x:"8.57227",y:"2.14282",width:"17.1429",height:"21.4286",fill:"currentColor"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PostIcon=void 0;const l=a(n(0));t.PostIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M18.584 1.74194L27.8529 11.0109L24.6088 14.255C20.9 13.9325 17.798 17.0345 18.1205 20.7433L14.8764 23.9874L5.60746 14.7185L8.85159 11.4743C12.5603 11.7968 15.6624 8.69483 15.3399 4.98608L18.584 1.74194Z",fill:"currentColor"}),l.default.createElement("path",{d:"M9.375 17.0991L12.4466 20.1707L3.22226 27.2246C2.62614 27.6805 1.86524 26.9196 2.32109 26.3235L9.375 17.0991Z",fill:"currentColor"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GeneralPostTypeIcon=void 0;const l=a(n(0));t.GeneralPostTypeIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M5.35798 3.21564H13.928H19.2852H20.5393C20.8238 3.21564 21.0967 3.32867 21.2979 3.52986L22.8123 5.04428L24.3267 6.55869C24.5279 6.75988 24.6409 7.03276 24.6409 7.31729V9.64282V16.0714V26.7843H6.19239C5.73155 26.7843 5.35798 26.4107 5.35798 25.9499V3.21564Z",fill:"white",stroke:"currentColor",strokeWidth:"2.14564"}),l.default.createElement("path",{d:"M18.75 6.4292L18.75 8.99979C18.75 9.35529 19.0382 9.64349 19.3937 9.64349L21.9643 9.64349",stroke:"currentColor",strokeWidth:"1.50195",strokeLinecap:"round"}),l.default.createElement("line",{x1:"9.63923",y1:"13.9272",x2:"20.3507",y2:"13.9272",stroke:"currentColor",strokeWidth:"2.14564",strokeLinecap:"round"}),l.default.createElement("line",{x1:"9.63923",y1:"18.2128",x2:"20.3507",y2:"18.2128",stroke:"currentColor",strokeWidth:"2.14564",strokeLinecap:"round"}),l.default.createElement("line",{x1:"9.63923",y1:"22.4987",x2:"20.3507",y2:"22.4987",stroke:"currentColor",strokeWidth:"2.14564",strokeLinecap:"round"}))},,function(e,t,n){e.exports={root:"FeedsOnboarding__root layout__flex-row",lip:"FeedsOnboarding__lip",content:"FeedsOnboarding__content layout__flex-column","center-row":"FeedsOnboarding__center-row",centerRow:"FeedsOnboarding__center-row","scroll-wrap":"FeedsOnboarding__scroll-wrap layout__flex-row",scrollWrap:"FeedsOnboarding__scroll-wrap layout__flex-row",box:"FeedsOnboarding__box layout__flex-column","box-content":"FeedsOnboarding__box-content",boxContent:"FeedsOnboarding__box-content","box-footer":"FeedsOnboarding__box-footer",boxFooter:"FeedsOnboarding__box-footer","selector-wrap":"FeedsOnboarding__selector-wrap",selectorWrap:"FeedsOnboarding__selector-wrap","steps-container":"FeedsOnboarding__steps-container",stepsContainer:"FeedsOnboarding__steps-container","steps-list":"FeedsOnboarding__steps-list",stepsList:"FeedsOnboarding__steps-list","root-mobile":"FeedsOnboarding__root-mobile FeedsOnboarding__root layout__flex-row",rootMobile:"FeedsOnboarding__root-mobile FeedsOnboarding__root layout__flex-row"}},function(e,t,n){e.exports={logo:"SpotlightLogo__logo","logo-image":"SpotlightLogo__logo-image",logoImage:"SpotlightLogo__logo-image"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),l(n(523),t)},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedUseCaseSelector=void 0;const r=i(n(524)),s=o(n(0)),u=n(328),c=n(153),d=n(77),f=n(241),m=n(93),_=n(167);function p({src:e,alt:t}){const[n,a]=s.useState(!1);return s.default.createElement(s.default.Fragment,null,s.default.createElement("img",Object.assign({className:n?void 0:r.default.imgLoading,src:e,alt:t,onLoad:()=>a(!0)},_.noDrag)),!n&&s.default.createElement(m.Square,{className:r.default.skeleton},s.default.createElement(f.Skeleton,null)))}t.FeedUseCaseSelector=function({selected:e,onClickUseCase:t=d.fn.noop()}){return s.default.createElement(u.TileSelector,{className:r.default.grid,selected:e,onClickTile:(e,n)=>t(c.FEED_USE_CASES[n])},c.FEED_USE_CASES.map((e,t)=>s.default.createElement(u.Tile,{key:e.id,id:e.id,idx:t,label:e.name,desc:e.desc,content:s.default.createElement(p,{src:e.img,alt:e.name}),tier:e.tier})))}},function(e,t,n){e.exports={grid:"FeedUseCaseSelector__grid",skeleton:"FeedUseCaseSelector__skeleton","img-loading":"FeedUseCaseSelector__img-loading",imgLoading:"FeedUseCaseSelector__img-loading"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TileSelector=void 0;const l=a(n(526)),o=a(n(0)),i=n(527),r=n(329),s=n(13);t.TileSelector=function({className:e,selected:t,colsMinMax:n,rowsMinMax:a,onClickTile:u,onClickIcon:c,children:d}){const f={gridTemplateColumns:n?`repeat(auto-fit, minmax(${n.map(i.cssSizePx).join(", ")}))`:void 0,gridAutoRows:a?`minmax(${a.map(i.cssSizePx).join(", ")})`:void 0};return o.default.createElement("div",{className:s.classList(l.default.grid,e),style:f},o.default.createElement(r.TileSelectorCtx.Provider,{value:{selected:t,onClickTile:u,onClickIcon:c},children:d}))}},function(e,t,n){e.exports={grid:"TileSelector__grid"}},,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Tile=void 0;const r=i(n(529)),s=o(n(0)),u=n(2),c=n(92),d=n(52),f=n(152),m=n(10),_=n(239),p=n(329),h=n(240),g=n(13),v=n(25);t.Tile=function({id:e,idx:t,label:n,desc:a,content:l,icon:o,tier:i,disabled:b,className:y}){var E;const S=null!==(E=null==e?void 0:e.toString())&&void 0!==E?E:"",{selected:w,onClickTile:C,onClickIcon:M}=s.useContext(p.TileSelectorCtx),O=S===w,P=u.useTier().isLessThan(i),k=!P&&!b,N=h.stopPropagation(()=>C(e,t)),A=h.stopPropagation(()=>M(e,t)),x=P?r.default.tilePremium:b?r.default.tileDisabled:O?r.default.tileSelected:r.default.tile,L=k&&void 0!==M?{style:{cursor:"pointer"},onClick:A,onKeyDown:c.useKeyboardActivate(A),tabIndex:0}:{};return s.default.createElement(d.FlexColumn,{className:g.classList(x,y),onClick:k?N:void 0,onKeyDown:k?c.useKeyboardActivate(N):void 0,justify:"center",align:"stretch",tabIndex:0},l&&s.default.createElement("div",{className:r.default.content},l),n&&s.default.createElement("div",{className:r.default.label},n),a&&s.default.createElement("div",{className:r.default.desc},a),P?s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:r.default.premiumOverlay},s.default.createElement(f.ProUpgradeBtn,null,"Upgrade")),s.default.createElement("a",{href:v.AdminResources.upgradeUrl,target:"_blank",className:r.default.premiumIcon},s.default.createElement(m.Icon,{icon:_.PremiumIcon,viewBox:"0 0 15 15",width:"24",height:"24"}))):o&&s.default.createElement(d.FlexColumn,Object.assign({justify:"center",align:"center",className:r.default.customIcon},L),o))}},function(e,t,n){e.exports={tile:"Tile__tile a11y__focus-outline-2x","tile-selected":"Tile__tile-selected Tile__tile a11y__focus-outline-2x",tileSelected:"Tile__tile-selected Tile__tile a11y__focus-outline-2x","tile-disabled":"Tile__tile-disabled Tile__tile a11y__focus-outline-2x",tileDisabled:"Tile__tile-disabled Tile__tile a11y__focus-outline-2x","no-disabled-filter":"Tile__no-disabled-filter",noDisabledFilter:"Tile__no-disabled-filter","tile-premium":"Tile__tile-premium Tile__tile-disabled Tile__tile a11y__focus-outline-2x",tilePremium:"Tile__tile-premium Tile__tile-disabled Tile__tile a11y__focus-outline-2x","premium-icon":"Tile__premium-icon Tile__no-disabled-filter Tile__icon",premiumIcon:"Tile__premium-icon Tile__no-disabled-filter Tile__icon","premium-overlay":"Tile__premium-overlay Tile__no-disabled-filter",premiumOverlay:"Tile__premium-overlay Tile__no-disabled-filter",content:"Tile__content layout__flex-column",label:"Tile__label Tile__text",text:"Tile__text",desc:"Tile__desc Tile__text",icon:"Tile__icon","custom-icon":"Tile__custom-icon Tile__icon",customIcon:"Tile__custom-icon Tile__icon","focus-visible":"Tile__focus-visible",focusVisible:"Tile__focus-visible"}},function(e,t,n){e.exports={root:"ProUpgradeBtn__root",premiumIcon:"ProUpgradeBtn__premiumIcon"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShoppableIcon=void 0;const l=a(n(0));t.ShoppableIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M9 7C9 6.21207 9.15519 5.43185 9.45672 4.7039C9.75825 3.97595 10.2002 3.31451 10.7574 2.75736C11.3145 2.20021 11.9759 1.75825 12.7039 1.45672C13.4319 1.15519 14.2121 1 15 1C15.7879 1 16.5681 1.15519 17.2961 1.45672C18.0241 1.75825 18.6855 2.20021 19.2426 2.75736C19.7998 3.31451 20.2417 3.97595 20.5433 4.7039C20.8448 5.43185 21 6.21207 21 7",fill:"none",stroke:"currentColor",strokeWidth:"2"}),l.default.createElement("path",{d:"M4.31522 7H25.6848C26.7401 7 27.6138 7.81988 27.6807 8.87302L28.6849 24.6583C28.8251 26.8612 27.1543 28.7612 24.9516 28.9039L23.4677 29H6.03505L5.02527 28.9291C2.83172 28.7752 1.17375 26.8795 1.31336 24.685L2.31925 8.87303C2.38625 7.81989 3.25995 7 4.31522 7Z",fill:"none",stroke:"currentColor",strokeWidth:"2"}),l.default.createElement("path",{d:"M9 11V11C10.8303 16.6572 18.7577 16.8646 20.8812 11.3108L21 11",fill:"none",stroke:"currentColor",strokeWidth:"2"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkInBioIcon=void 0;const l=a(n(0));t.LinkInBioIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("circle",{cx:"15",cy:"15",r:"14",fill:"none",stroke:"currentColor",strokeWidth:"2"}),l.default.createElement("rect",{x:"17.1582",y:"13.5709",width:"9.9996",height:"5.0429",rx:"2.52145",transform:"rotate(45 17.1582 13.5709)",fill:"none",stroke:"currentColor"}),l.default.createElement("rect",{x:"9.38086",y:"5.79256",width:"9.9996",height:"5.0429",rx:"2.52145",transform:"rotate(45 9.38086 5.79256)",fill:"none",stroke:"currentColor"}),l.default.createElement("line",{x1:"12.4826",y1:"12.4717",x2:"17.5499",y2:"17.539",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PromotionIcon=void 0;const l=a(n(0));t.PromotionIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("circle",{cx:"15",cy:"15",r:"14",fill:"none",stroke:"currentColor",strokeWidth:"2"}),l.default.createElement("path",{d:"M21.5 12.5C21.7626 12.5 22.0227 12.5517 22.2654 12.6522C22.508 12.7528 22.7285 12.9001 22.9142 13.0858C23.0999 13.2715 23.2473 13.492 23.3478 13.7346C23.4483 13.9773 23.5 14.2374 23.5 14.5C23.5 14.7626 23.4483 15.0227 23.3478 15.2654C23.2472 15.508 23.0999 15.7285 22.9142 15.9142C22.7285 16.0999 22.508 16.2473 22.2654 16.3478C22.0227 16.4483 21.7626 16.5 21.5 16.5",fill:"none",stroke:"currentColor"}),l.default.createElement("path",{d:"M12.5 14.5V12.3547L21.5 9.20474L21.5 19.7953L12.5 16.6453V14.5Z",fill:"none",stroke:"currentColor"}),l.default.createElement("path",{d:"M8 12.5H12C12.2761 12.5 12.5 12.7239 12.5 13V16C12.5 16.2761 12.2761 16.5 12 16.5H8C7.72386 16.5 7.5 16.2761 7.5 16V13C7.5 12.7239 7.72386 12.5 8 12.5Z",fill:"none",stroke:"currentColor"}),l.default.createElement("path",{d:"M11 21.5H9.84713C9.60271 21.5 9.39411 21.3233 9.35393 21.0822L8.68726 17.0822C8.63647 16.7774 8.87149 16.5 9.18046 16.5H11C11.2761 16.5 11.5 16.7239 11.5 17V21C11.5 21.2761 11.2761 21.5 11 21.5Z",fill:"none",stroke:"currentColor"}))},,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedTemplateSelector=void 0;const r=i(n(537)),s=o(n(0)),u=n(328),c=n(10),d=n(538),f=n(60),m=n(52),_=n(11),p=n(15),h=n(25),g=i(n(22)),v=n(2),b=n(152),y=n(77),E=n(539),S={id:"",sid:0,name:"",desc:"",design:{},tier:0,thumbnail:""};function w(){return s.default.createElement(s.default.Fragment,null,s.default.createElement("a",{href:h.AdminResources.upgradeUrl,target:"_blank"},"Upgrade today"),s.default.createElement("span",null," to unlock all Spotlight templates and customization options."))}function C(){return s.default.createElement(s.default.Fragment,null,s.default.createElement("span",null,"This is a premium template. "),s.default.createElement("a",{href:h.AdminResources.upgradeUrl,target:"_blank",className:r.default.premiumLink},"Upgrade now to unlock it."))}function M({onClick:e}){return s.default.createElement(_.Button,{type:_.ButtonType.PRIMARY,size:_.ButtonSize.HERO,onClick:e},s.default.createElement("span",{className:r.default.modalBtnText},"Use this template"),s.default.createElement(p.Dashicon,{icon:"arrow-right-alt2"}))}function O(){return s.default.createElement(c.Icon,{icon:d.ZoomIcon,viewBox:"0 0 30 30",width:"18",height:"18",style:{verticalAlign:"top"}})}function P(){return s.default.createElement("div",{className:r.default.customTileIcon},s.default.createElement(p.Dashicon,{icon:"plus-alt2"}))}t.FeedTemplateSelector=function({selected:e,onClickTemplate:t=y.fn.noop,showCustomOption:n=!1,showZoomIcon:a=!1}){const[l,o]=s.useState(S),[i,_]=s.useState(!1),p=()=>_(!1),h=e=>{t(e),p()},k=v.useTier().isLessThan(l.tier);return s.default.createElement(s.default.Fragment,null,s.default.createElement(u.TileSelector,{selected:e,onClickTile:(e,t)=>{h(void 0===t?void 0:g.default.templates[t])},onClickIcon:(e,t)=>{var n;n=g.default.templates[t],o(n),_(!0)}},n&&s.default.createElement(u.Tile,{label:"Custom",desc:"Design your own custom feed",className:r.default.customTile,content:s.default.createElement(P,null)}),g.default.templates.map((e,t)=>s.default.createElement(u.Tile,{key:e.id,idx:t,id:e.id,label:e.name,desc:e.desc,content:s.default.createElement(E.FeedTemplateThumbnail,{className:r.default.tileThumbnails,src:e.thumbnail,alt:e.name}),icon:a?s.default.createElement(c.Icon,{icon:d.ZoomIcon,viewBox:"0 0 30 30"}):void 0,tier:e.tier}))),s.default.createElement(f.Modal,{isOpen:i,onClose:p,title:"Template preview",icon:s.default.createElement(O,null)},s.default.createElement(f.Modal.Content,null,s.default.createElement(m.FlexColumn,{className:r.default.content},s.default.createElement(E.FeedTemplateThumbnail,{className:k?r.default.templateImgPremium:r.default.templateImg,src:l.thumbnail,alt:l.name}),s.default.createElement("div",{className:r.default.templateName},l.name),k?s.default.createElement(b.ProUpgradeBtn,null,"Upgrade plan"):s.default.createElement(M,{onClick:()=>{h(l)}}),s.default.createElement("div",{className:r.default.modalUpgradeText},k?s.default.createElement(C,null):s.default.createElement(w,null))))))}},function(e,t,n){e.exports={"tile-thumbnails":"FeedTemplateSelector__tile-thumbnails",tileThumbnails:"FeedTemplateSelector__tile-thumbnails","icon-btn":"FeedTemplateSelector__icon-btn",iconBtn:"FeedTemplateSelector__icon-btn",content:"FeedTemplateSelector__content","template-img":"FeedTemplateSelector__template-img",templateImg:"FeedTemplateSelector__template-img","template-img-premium":"FeedTemplateSelector__template-img-premium FeedTemplateSelector__template-img",templateImgPremium:"FeedTemplateSelector__template-img-premium FeedTemplateSelector__template-img","template-name":"FeedTemplateSelector__template-name",templateName:"FeedTemplateSelector__template-name","modal-btn-text":"FeedTemplateSelector__modal-btn-text",modalBtnText:"FeedTemplateSelector__modal-btn-text","modal-upgrade-text":"FeedTemplateSelector__modal-upgrade-text",modalUpgradeText:"FeedTemplateSelector__modal-upgrade-text","premium-link":"FeedTemplateSelector__premium-link",premiumLink:"FeedTemplateSelector__premium-link","custom-tile":"FeedTemplateSelector__custom-tile",customTile:"FeedTemplateSelector__custom-tile","custom-tile-icon":"FeedTemplateSelector__custom-tile-icon layout__flex-column layout__flex-center",customTileIcon:"FeedTemplateSelector__custom-tile-icon layout__flex-column layout__flex-center"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomIcon=void 0;const l=a(n(0));t.ZoomIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("rect",{x:"0.500649",y:"0.500649",width:"18.2844",height:"18.2844",rx:"9.14221",fill:"white",stroke:"currentColor",strokeWidth:"1.5"}),l.default.createElement("path",{d:"M17.5605 17.3584C18.3426 16.5764 19.6105 16.5764 20.3926 17.3584L28.721 25.6868C29.503 26.4688 29.503 27.7368 28.721 28.5189L28.5226 28.7172C27.7405 29.4993 26.4726 29.4993 25.6905 28.7172L17.3622 20.3889C16.5801 19.6068 16.5801 18.3389 17.3622 17.5568L17.5605 17.3584Z",fill:"currentColor",stroke:"none"}))},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedTemplateThumbnail=void 0;const s=r(n(540)),u=o(n(0)),c=n(13),d=n(167);t.FeedTemplateThumbnail=u.forwardRef((function(e,t){var{src:n,alt:a,className:l}=e,o=i(e,["src","alt","className"]);return u.default.createElement("div",Object.assign({ref:t,className:c.classList(s.default.column,l)},o),u.default.createElement("img",Object.assign({className:s.default.image,src:n,alt:a},d.noDrag)))}))},function(e,t,n){e.exports={column:"FeedTemplateThumbnail__column layout__flex-column layout__flex-center",image:"FeedTemplateThumbnail__image"}},function(e,t,n){e.exports={root:"SaveButton__root","saving-overlay":"SaveButton__saving-overlay layout__fill-parent",savingOverlay:"SaveButton__saving-overlay layout__fill-parent","saving-animation":"SaveButton__saving-animation",savingAnimation:"SaveButton__saving-animation"}},function(e,t,n){e.exports={step:"WizardRow__step layout__flex-row",header:"WizardRow__header WizardRow__step layout__flex-row",left:"WizardRow__left",text:"WizardRow__text","text-gray":"WizardRow__text-gray WizardRow__text",textGray:"WizardRow__text-gray WizardRow__text","text-faded":"WizardRow__text-faded WizardRow__text",textFaded:"WizardRow__text-faded WizardRow__text",label:"WizardRow__label",desc:"WizardRow__desc","step-mobile":"WizardRow__step-mobile WizardRow__step layout__flex-row",stepMobile:"WizardRow__step-mobile WizardRow__step layout__flex-row"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WizardStep=void 0;const r=i(n(544)),s=o(n(0)),u=n(331),c=n(545),d=n(10),f=n(103),m=n(151);t.WizardStep=function({step:e,num:t,label:n,desc:a}){const l=s.useContext(f.ResponsiveContext),o=e>t,i=t===e,_=s.default.createElement("div",{className:i?r.default.numCurrent:o?r.default.numDone:r.default.num},o?s.default.createElement(d.Icon,{icon:c.TickMarkIcon,viewBox:"0 0 30 30",width:"16",height:"16"}):t);return(!m.isMobile(l)||i||3===t&&e>3)&&s.default.createElement(u.WizardRow,{type:"step",left:_,label:n,desc:a,color:i?"default":o?"gray":"faded"})}},function(e,t,n){e.exports={num:"WizardStep__num layout__flex-column layout__flex-center","num-done":"WizardStep__num-done WizardStep__num layout__flex-column layout__flex-center",numDone:"WizardStep__num-done WizardStep__num layout__flex-column layout__flex-center","num-current":"WizardStep__num-current WizardStep__num layout__flex-column layout__flex-center",numCurrent:"WizardStep__num-current WizardStep__num layout__flex-column layout__flex-center"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TickMarkIcon=void 0;const l=a(n(0));t.TickMarkIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("line",{x1:"0.353553",y1:"14.6464",x2:"10.3536",y2:"24.6464",stroke:"currentColor",strokeWidth:2}),l.default.createElement("line",{x1:"9.64645",y1:"24.6464",x2:"29.6464",y2:"4.64645",stroke:"currentColor",strokeWidth:2}))},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WizardSlide=void 0;const r=i(n(547)),s=o(n(0)),u=n(103),c=n(151);t.WizardSlide=function({isCurrent:e,children:t}){const n=s.useContext(u.ResponsiveContext);return s.default.createElement("div",{className:e?c.isMobile(n)?r.default.slideMobile:r.default.slide:r.default.slideHidden},t)}},function(e,t,n){e.exports={slide:"WizardSlide__slide","slide-in":"WizardSlide__slide-in",slideIn:"WizardSlide__slide-in","slide-hidden":"WizardSlide__slide-hidden WizardSlide__slide",slideHidden:"WizardSlide__slide-hidden WizardSlide__slide","slide-mobile":"WizardSlide__slide-mobile WizardSlide__slide",slideMobile:"WizardSlide__slide-mobile WizardSlide__slide"}},,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FinalSlide=void 0;const r=i(n(550)),s=o(n(0)),u=n(58),c=n(103),d=n(151),f=n(10),m=n(551),_=n(552);t.FinalSlide=function({}){const e=s.useContext(c.ResponsiveContext);return s.default.createElement("div",{className:d.isMobile(e)?r.default.rootMobile:r.default.root},s.default.createElement("section",{className:r.default.heading},"You’re almost there..."),s.default.createElement("section",{className:r.default.middle},s.default.createElement("div",null,"In the final step, you will be introduced to the Spotlight feed editor."),s.default.createElement("div",null,"That’s where you will connect your Instagram account, customize your first feed, and find the embed options to display it anywhere on your website."),s.default.createElement("div",{className:r.default.strong},"Click on the “Connect & customize” button below to continue.")),s.default.createElement("section",{className:r.default.helpText},"PS. If you need help or get stuck at any point, use the “Help” link above."),s.default.createElement("section",{className:r.default.testimonials},s.default.createElement("div",{className:r.default.testimonial},s.default.createElement("div",{className:r.default.testimonialImg},s.default.createElement("img",{src:u.Common.image("wp-logo.png"),alt:"WordPress logo"})),s.default.createElement("div",{className:r.default.testimonialText},s.default.createElement("div",{className:r.default.stars},s.default.createElement(f.Icon,{icon:m.StarIcon,std:!0}),s.default.createElement(f.Icon,{icon:m.StarIcon,std:!0}),s.default.createElement(f.Icon,{icon:m.StarIcon,std:!0}),s.default.createElement(f.Icon,{icon:m.StarIcon,std:!0}),s.default.createElement(f.Icon,{icon:m.StarIcon,std:!0})),s.default.createElement("div",{className:r.default.strong},"100+ 5-star reviews"))),s.default.createElement("div",{className:r.default.testimonial},s.default.createElement(f.Icon,{className:r.default.trustBadge,icon:_.TrustedIcon,std:!0}),s.default.createElement("div",{className:r.default.testimonialText},s.default.createElement("span",{className:r.default.strong},"Trusted by 40,000+"),s.default.createElement("span",{className:r.default.strong},"brands and creators")))))}},function(e,t,n){e.exports={root:"FinalSlide__root layout__flex-column",middle:"FinalSlide__middle",strong:"FinalSlide__strong",heading:"FinalSlide__heading FinalSlide__strong","help-text":"FinalSlide__help-text",helpText:"FinalSlide__help-text",testimonials:"FinalSlide__testimonials layout__flex-row",testimonial:"FinalSlide__testimonial layout__flex-row","testimonial-img":"FinalSlide__testimonial-img",testimonialImg:"FinalSlide__testimonial-img","testimonial-text":"FinalSlide__testimonial-text layout__flex-column",testimonialText:"FinalSlide__testimonial-text layout__flex-column",stars:"FinalSlide__stars layout__flex-row","trust-badge":"FinalSlide__trust-badge",trustBadge:"FinalSlide__trust-badge","root-mobile":"FinalSlide__root-mobile FinalSlide__root layout__flex-column",rootMobile:"FinalSlide__root-mobile FinalSlide__root layout__flex-column"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StarIcon=void 0;const l=a(n(0));t.StarIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("rect",{width:"30",height:"30",fill:"white"}),l.default.createElement("path",{d:"M14.348 24.7941C14.749 24.5521 15.251 24.5521 15.652 24.7941L22.8365 29.1304C23.792 29.7071 24.9708 28.8504 24.7172 27.7636L22.8106 19.5907C22.7042 19.1346 22.8592 18.6571 23.2132 18.3504L29.5627 12.8499C30.4062 12.1191 29.9553 10.7334 28.8432 10.639L20.4854 9.92994C20.0191 9.89038 19.6129 9.59597 19.4303 9.16509L16.1617 1.45295C15.7269 0.427141 14.2731 0.42714 13.8383 1.45295L10.5697 9.16509C10.387 9.59597 9.98095 9.89038 9.51464 9.92994L1.15681 10.639C0.0447031 10.7334 -0.406249 12.1191 0.437333 12.8499L6.7868 18.3504C7.14079 18.6571 7.29579 19.1346 7.18939 19.5907L5.28277 27.7636C5.02922 28.8504 6.20795 29.7071 7.16347 29.1304L14.348 24.7941Z",fill:"currentColor"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrustedIcon=void 0;const l=a(n(0));t.TrustedIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("mask",{id:"mask0_1251_3529",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"28",height:"28"},l.default.createElement("path",{d:"M12.5534 2.41698C13.9094 1.07739 16.0906 1.07738 17.4466 2.41698V2.41698C18.2287 3.18964 19.3299 3.54744 20.4168 3.38206V3.38206C22.3012 3.09534 24.0658 4.37739 24.3754 6.25818V6.25818C24.554 7.34301 25.2346 8.27972 26.2111 8.7848V8.7848C27.9042 9.66047 28.5782 11.7349 27.7232 13.4385V13.4385C27.23 14.4211 27.23 15.5789 27.7232 16.5615V16.5615C28.5782 18.2651 27.9042 20.3395 26.2111 21.2152V21.2152C25.2346 21.7203 24.554 22.657 24.3754 23.7418V23.7418C24.0658 25.6226 22.3012 26.9047 20.4168 26.6179V26.6179C19.3299 26.4526 18.2287 26.8104 17.4466 27.583V27.583C16.0906 28.9226 13.9094 28.9226 12.5534 27.583V27.583C11.7713 26.8104 10.6701 26.4526 9.5832 26.6179V26.6179C7.69879 26.9047 5.9342 25.6226 5.62456 23.7418V23.7418C5.44597 22.657 4.76541 21.7203 3.78887 21.2152V21.2152C2.09581 20.3395 1.4218 18.2651 2.2768 16.5615V16.5615C2.76996 15.5789 2.76996 14.4211 2.2768 13.4385V13.4385C1.4218 11.7349 2.09581 9.66047 3.78887 8.7848V8.7848C4.76541 8.27972 5.44597 7.34301 5.62456 6.25818V6.25818C5.9342 4.37739 7.69879 3.09534 9.5832 3.38206V3.38206C10.6701 3.54744 11.7713 3.18964 12.5534 2.41698V2.41698Z",fill:"white"})),l.default.createElement("g",{mask:"url(#mask0_1251_3529)"},l.default.createElement("path",{d:"M9.47603 4.08645C10.7854 4.28568 12.112 3.85466 13.0542 2.92385C14.1326 1.85843 15.8674 1.85843 16.9458 2.92385C17.888 3.85466 19.2146 4.28568 20.524 4.08645C22.0227 3.85842 23.4261 4.87807 23.6724 6.37392C23.8875 7.68078 24.7074 8.80921 25.8838 9.41766C27.2303 10.1141 27.7664 11.7639 27.0864 13.1189C26.4923 14.3026 26.4923 15.6974 27.0864 16.8811C27.7664 18.236 27.2303 19.8859 25.8838 20.5823C24.7074 21.1908 23.8875 22.3192 23.6724 23.6261C23.4261 25.1219 22.0227 26.1416 20.524 25.9135C19.2146 25.7143 17.888 26.1453 16.9458 27.0762C15.8674 28.1416 14.1326 28.1416 13.0542 27.0762C12.112 26.1453 10.7854 25.7143 9.47603 25.9135C7.9773 26.1416 6.57386 25.1219 6.3276 23.6261C6.11245 22.3192 5.2926 21.1908 4.11619 20.5823C2.76965 19.8859 2.23359 18.236 2.9136 16.8811C3.50769 15.6974 3.50769 14.3026 2.9136 13.1189C2.23359 11.764 2.76965 10.1141 4.11619 9.41766C5.2926 8.80921 6.11245 7.68078 6.3276 6.37392C6.57386 4.87807 7.9773 3.85842 9.47603 4.08645Z",stroke:"#226DE0",strokeWidth:"1.425",fill:"white"})),l.default.createElement("path",{d:"M10.6575 14.8013L10.6337 14.7775L10.6099 14.8012L9.76918 15.6359L9.74514 15.6598L9.7691 15.6838L13.0785 18.9932L13.1024 19.017L13.1262 18.9932L20.2305 11.8889L20.2544 11.865L20.2305 11.8412L19.3957 11.0064L19.3719 10.9825L19.348 11.0064L13.1024 17.2461L10.6575 14.8013Z",fill:"#226DE0",stroke:"#226DE0",strokeWidth:"0.0675203"}))},function(e,t,n){e.exports={"help-container":"AdminNavbar__help-container",helpContainer:"AdminNavbar__help-container","help-icon":"AdminNavbar__help-icon",helpIcon:"AdminNavbar__help-icon","help-link":"AdminNavbar__help-link",helpLink:"AdminNavbar__help-link","help-link-container":"AdminNavbar__help-link-container",helpLinkContainer:"AdminNavbar__help-link-container"}},function(e,t,n){e.exports={root:"Navbar__root layout__flex-row",container:"Navbar__container layout__flex-row","left-container":"Navbar__left-container Navbar__container layout__flex-row",leftContainer:"Navbar__left-container Navbar__container layout__flex-row","right-container":"Navbar__right-container Navbar__container layout__flex-row",rightContainer:"Navbar__right-container Navbar__container layout__flex-row",child:"Navbar__child",section:"Navbar__section Navbar__child",item:"Navbar__item Navbar__child",disabled:"Navbar__disabled","focus-visible":"Navbar__focus-visible",focusVisible:"Navbar__focus-visible",chevron:"Navbar__chevron Navbar__child",link:"Navbar__link","pro-pill":"Navbar__pro-pill",proPill:"Navbar__pro-pill",current:"Navbar__current","button-container":"Navbar__button-container layout__flex-row",buttonContainer:"Navbar__button-container layout__flex-row"}},function(e,t,n){e.exports={pill:"ProPill__pill","pill-open":"ProPill__pill-open ProPill__pill",pillOpen:"ProPill__pill-open ProPill__pill",left:"ProPill__left"}},,,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedImportButton=void 0;const s=o(n(0)),u=r(n(560)),c=n(11),d=n(60),f=n(145),m=n(10),_=n(561),p=n(562),h=n(564),g=n(250),v=n(84),b=n(52);t.FeedImportButton=function({onImport:e}){const t=s.useRef(),n=s.useRef(),[a,l]=s.useState(!1),[o,r]=s.useState(""),y=s.useCallback(()=>{r(""),l(!0)},[n,l]),E=s.useCallback(()=>{var e;l(!1),null===(e=t.current)||void 0===e||e.focus()},[t,l]),S=s.useCallback(e=>{r(e.target.value)},[r]),w=s.useCallback(t=>{let n;try{n=JSON.parse(t)}catch(e){n=null}f.isPlainObject(n)&&(null==n?void 0:n.hasOwnProperty("name"))&&(null==n?void 0:n.hasOwnProperty("options"))?(e(n),E()):alert("The imported code is not valid")},[e,E]),C=s.useCallback(()=>{w(o)},[o,e,E]);return s.default.createElement(s.default.Fragment,null,s.default.createElement(c.Button,{ref:t,type:c.ButtonType.SECONDARY,size:c.ButtonSize.LARGE,onClick:y,className:u.default.uploadBtn},s.default.createElement(m.Icon,{height:"14",width:"14",std:!0,icon:_.UploadIcon}),s.default.createElement("span",null,"Import a feed")),s.default.createElement(d.Modal,{isOpen:a,onClose:E,title:"Import feed"},s.default.createElement(d.Modal.Content,null,s.default.createElement(p.DropZone,{onChange:e=>i(this,void 0,void 0,(function*(){for(let t=0;t<e.length;++t){const n=yield h.readFile(e[t]);w(n)}})),dragText:"Drop your files here to import"},"Drag your feed export files here"),s.default.createElement(g.OrSeparator,null),s.default.createElement(v.Spoiler,{label:"Paste your exported feed code",stealth:!0,showIcon:!0},s.default.createElement("textarea",{ref:n,className:u.default.field,value:o,onChange:S,autoFocus:!0,rows:4}),s.default.createElement(b.FlexRow,{justify:"flex-end"},s.default.createElement(c.Button,{className:u.default.submitBtn,type:"primary",size:"large",onClick:C,children:"Import"}))))))}},function(e,t,n){e.exports={message:"FeedImportButton__message",field:"FeedImportButton__field","upload-btn":"FeedImportButton__upload-btn",uploadBtn:"FeedImportButton__upload-btn","submit-btn":"FeedImportButton__submit-btn",submitBtn:"FeedImportButton__submit-btn"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UploadIcon=void 0;const l=a(n(0));t.UploadIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("line",{x1:"6.07319",y1:"15",x2:"6.07319",y2:"25.7143",stroke:"currentColor",strokeWidth:"3.57607"}),l.default.createElement("line",{x1:"15.0058",y1:"11.429",x2:"15.0058",y2:"18.5718",stroke:"currentColor",strokeWidth:"7.15213"}),l.default.createElement("line",{x1:"23.9326",y1:"15",x2:"23.9326",y2:"25.7143",stroke:"currentColor",strokeWidth:"3.57607"}),l.default.createElement("line",{x1:"7.85547",y1:"23.9268",x2:"22.1412",y2:"23.9268",stroke:"currentColor",strokeWidth:"3.57607"}),l.default.createElement("path",{d:"M14.997 4.28516L22.1412 12.3209H7.85547L14.997 4.28516Z",fill:"currentColor"}))},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropZone=void 0;const r=i(n(563)),s=o(n(0)),u=n(93),c=n(51),d=n(11);t.DropZone=function({children:e="Select or drag and drop your files here",dragText:t="Drop your files here",accept:n,onChange:a}){const l=s.useRef(),[o,i]=s.useState(!1),f=s.useCallback(()=>i(!0),[i]),m=s.useCallback(()=>i(!1),[i]),_=s.useCallback(()=>{var e;null===(e=l.current)||void 0===e||e.click()},[l]),p=s.useCallback(e=>{a&&a(e.target.files)},[a]);return c.useDocumentEventListener("dragenter",f,[],[f]),c.useDocumentEventListener("dragexit",m,[],[m]),c.useDocumentEventListener("dragend",m,[],[m]),s.default.createElement(u.Square,null,s.default.createElement("div",{className:o?r.default.dragging:r.default.box,onDragOver:e=>{e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{e.preventDefault(),e.stopPropagation();const t=e.dataTransfer.files;a&&a(t)}},o?s.default.createElement("div",{className:r.default.dropMsg},t):s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:r.default.msg},o?t:e),s.default.createElement("div",{className:r.default.or},"or"),s.default.createElement(d.Button,{type:"secondary",size:"hero",onClick:_},"Select files"),s.default.createElement("input",{ref:l,style:{display:"none"},type:"file",accept:n,onChange:p}))))}},function(e,t,n){e.exports={box:"DropZone__box layout__flex-column layout__flex-center",dragging:"DropZone__dragging DropZone__box layout__flex-column layout__flex-center",msg:"DropZone__msg",or:"DropZone__or","drop-msg":"DropZone__drop-msg",dropMsg:"DropZone__drop-msg"}},,function(e,t,n){e.exports={container:"OrSeperator__container",line:"OrSeperator__line",text:"OrSeperator__text"}},function(e,t,n){e.exports={button:"LargeButton__button",std:"LargeButton__std",static:"LargeButton__static",disabled:"LargeButton__disabled state__disabled",white:"LargeButton__white LargeButton__button",blue:"LargeButton__blue LargeButton__button LargeButton__std",active:"LargeButton__active",red:"LargeButton__red LargeButton__button LargeButton__std","left-col":"LargeButton__left-col LargeButton__col",leftCol:"LargeButton__left-col LargeButton__col","main-text":"LargeButton__main-text",mainText:"LargeButton__main-text",col:"LargeButton__col","center-col":"LargeButton__center-col LargeButton__col",centerCol:"LargeButton__center-col LargeButton__col","sub-text":"LargeButton__sub-text",subText:"LargeButton__sub-text","center-col-left":"LargeButton__center-col-left LargeButton__center-col LargeButton__col",centerColLeft:"LargeButton__center-col-left LargeButton__center-col LargeButton__col","center-col-center":"LargeButton__center-col-center LargeButton__center-col LargeButton__col",centerColCenter:"LargeButton__center-col-center LargeButton__center-col LargeButton__col","right-col":"LargeButton__right-col LargeButton__col",rightCol:"LargeButton__right-col LargeButton__col",link:"LargeButton__link"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowCaseIcon=void 0;const l=a(n(0));t.ShowCaseIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M4 23.2499C3.30975 23.2499 2.75019 22.6904 2.75019 22.0001L2.75019 5.00012C2.75019 4.30987 3.30975 3.75031 4 3.75031L26 3.75031C26.6903 3.75031 27.2498 4.30987 27.2498 5.00012L27.2498 22.0001C27.2498 22.6904 26.6903 23.2499 26 23.2499L15 23.2499L4 23.2499Z",fill:"white",stroke:"currentColor",strokeWidth:"1.50037"}),l.default.createElement("path",{d:"M15 18L20.1962 27H9.80385L15 18Z",fill:"currentColor",stroke:"white",strokeWidth:"1.5"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MarketingIcon=void 0;const l=a(n(0));t.MarketingIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("circle",{cx:"23.3791",cy:"11.8568",r:"3.00074",transform:"rotate(-15 23.3791 11.8568)",fill:"white",stroke:"currentColor",strokeWidth:"1.50037"}),l.default.createElement("path",{d:"M10.3378 15.3509L9.50472 12.2419L21.3247 4.18187L25.4373 19.5302L11.1708 18.46L10.3378 15.3509Z",fill:"white",stroke:"currentColor",strokeWidth:"1.50037"}),l.default.createElement("path",{d:"M2.50748 15.1191C2.40025 14.7189 2.63774 14.3075 3.03794 14.2003L8.83493 12.647C9.23513 12.5398 9.64649 12.7773 9.75372 13.1775L10.9187 17.5252C11.0259 17.9254 10.7884 18.3368 10.3882 18.444L4.59124 19.9973C4.19104 20.1045 3.77969 19.867 3.67245 19.4668L2.50748 15.1191Z",fill:"white",stroke:"currentColor",strokeWidth:"1.50037"}),l.default.createElement("path",{d:"M9.21117 26.5259C8.85695 26.6208 8.48602 26.4457 8.33416 26.1119L5.8147 20.5738C5.62274 20.1519 5.85561 19.6585 6.30338 19.5386L8.94034 18.832C9.34054 18.7248 9.7519 18.9623 9.85913 19.3625L11.4124 25.1594C11.5197 25.5596 11.2822 25.971 10.882 26.0782L9.21117 26.5259Z",fill:"white",stroke:"currentColor",strokeWidth:"1.50037"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SEOIcon=void 0;const l=a(n(0));t.SEOIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("rect",{x:"1",y:"1",width:"17.2857",height:"17.2857",rx:"8.64286",fill:"white",stroke:"currentColor",strokeWidth:"2"}),l.default.createElement("path",{d:"M17.5584 17.3565C18.3395 16.5754 19.6058 16.5754 20.3869 17.3565L28.7189 25.6885C29.4999 26.4696 29.4999 27.7359 28.7189 28.5169L28.5169 28.719C27.7358 29.5 26.4695 29.5 25.6884 28.719L17.3564 20.3869C16.5754 19.6059 16.5754 18.3396 17.3564 17.5585L17.5584 17.3565Z",fill:"currentColor"}),l.default.createElement("path",{d:"M5.84738 10.6497C5.84738 10.5673 5.83446 10.4938 5.80862 10.4291C5.78278 10.3623 5.73579 10.301 5.66766 10.2453C5.59953 10.1896 5.50321 10.1339 5.37869 10.0782C5.25418 10.0203 5.0909 9.96123 4.88886 9.90107C4.65862 9.82977 4.43896 9.74955 4.22987 9.66043C4.02313 9.56907 3.83871 9.46324 3.67661 9.34291C3.5145 9.22259 3.38646 9.08222 3.29249 8.92179C3.20087 8.76136 3.15506 8.5742 3.15506 8.36029C3.15506 8.15307 3.20322 7.96591 3.29954 7.7988C3.39586 7.63168 3.53095 7.48908 3.7048 7.37099C3.87865 7.25067 4.08304 7.15931 4.31797 7.09693C4.55291 7.03231 4.81133 7 5.09325 7C5.46914 7 5.79922 7.0635 6.08349 7.19051C6.37011 7.31529 6.5933 7.49131 6.75305 7.71858C6.9128 7.94363 6.99268 8.20544 6.99268 8.50401H5.85091C5.85091 8.37255 5.82154 8.25668 5.76281 8.15642C5.70642 8.05392 5.6195 7.97371 5.50203 7.91578C5.38692 7.85784 5.24243 7.82888 5.06858 7.82888C4.89943 7.82888 4.7573 7.85339 4.64218 7.90241C4.52941 7.9492 4.44366 8.01381 4.38493 8.09626C4.32854 8.1787 4.30035 8.26894 4.30035 8.36698C4.30035 8.44496 4.3215 8.51627 4.36378 8.58088C4.40842 8.64327 4.47185 8.70232 4.55408 8.75802C4.63866 8.8115 4.74203 8.86275 4.86419 8.91176C4.98636 8.96078 5.12614 9.00758 5.28355 9.05214C5.55842 9.13458 5.80157 9.22594 6.01301 9.3262C6.2268 9.42647 6.40652 9.54011 6.55218 9.66711C6.69784 9.79412 6.80708 9.93783 6.87991 10.0983C6.95509 10.2587 6.99268 10.4403 6.99268 10.643C6.99268 10.8592 6.94804 11.0508 6.85877 11.2179C6.77184 11.385 6.64498 11.5276 6.47818 11.6457C6.31373 11.7616 6.11638 11.8496 5.88615 11.9098C5.65591 11.9699 5.39866 12 5.11439 12C4.85597 12 4.60107 11.9688 4.34969 11.9064C4.09831 11.8418 3.87043 11.7438 3.66603 11.6123C3.46399 11.4808 3.30189 11.3137 3.17972 11.111C3.05991 10.906 3 10.6631 3 10.3824H4.14882C4.14882 10.5294 4.17114 10.6542 4.21578 10.7567C4.26041 10.857 4.32385 10.9383 4.40607 11.0007C4.49065 11.0631 4.59284 11.1076 4.71266 11.1344C4.83247 11.1611 4.96639 11.1745 5.11439 11.1745C5.2859 11.1745 5.42451 11.1522 5.53023 11.1076C5.63829 11.0608 5.71817 10.9973 5.76986 10.9171C5.82154 10.8369 5.84738 10.7478 5.84738 10.6497Z",fill:"currentColor"}),l.default.createElement("path",{d:"M11.158 11.0909V11.9332H8.42695V11.0909H11.158ZM8.81811 7.06684V11.9332H7.66929V7.06684H8.81811ZM10.8056 9.0254V9.84091H8.42695V9.0254H10.8056ZM11.1616 7.06684V7.91243H8.42695V7.06684H11.1616Z",fill:"currentColor"}),l.default.createElement("path",{d:"M16 9.39305V9.61029C16 9.98017 15.946 10.3122 15.8379 10.6063C15.7322 10.9004 15.5806 11.1511 15.3833 11.3583C15.1883 11.5655 14.9557 11.7248 14.6856 11.8362C14.4177 11.9454 14.1205 12 13.794 12C13.4674 12 13.1691 11.9454 12.8989 11.8362C12.6287 11.7248 12.3938 11.5655 12.1941 11.3583C11.9967 11.1511 11.844 10.9004 11.736 10.6063C11.6279 10.3122 11.5739 9.98017 11.5739 9.61029V9.39305C11.5739 9.02317 11.6279 8.69118 11.736 8.39706C11.844 8.10071 11.9956 7.84893 12.1906 7.64171C12.3879 7.43449 12.6217 7.27629 12.8918 7.16711C13.162 7.0557 13.4604 7 13.7869 7C14.1135 7 14.4119 7.0557 14.682 7.16711C14.9522 7.27629 15.1848 7.43449 15.3798 7.64171C15.5771 7.84893 15.7298 8.10071 15.8379 8.39706C15.946 8.69118 16 9.02317 16 9.39305ZM14.8406 9.61029V9.38636C14.8406 9.13904 14.8171 8.92068 14.7701 8.73128C14.7231 8.53966 14.655 8.37923 14.5657 8.25C14.4765 8.12077 14.366 8.02384 14.2345 7.95922C14.1029 7.89238 13.9537 7.85896 13.7869 7.85896C13.6131 7.85896 13.4616 7.89238 13.3323 7.95922C13.2031 8.02384 13.0939 8.12077 13.0046 8.25C12.9177 8.37923 12.8507 8.53966 12.8037 8.73128C12.7591 8.92068 12.7368 9.13904 12.7368 9.38636V9.61029C12.7368 9.85539 12.7591 10.0738 12.8037 10.2654C12.8507 10.4548 12.9189 10.6152 13.0081 10.7467C13.0974 10.8781 13.2067 10.9773 13.3359 11.0441C13.4674 11.111 13.6201 11.1444 13.794 11.1444C13.9608 11.1444 14.1088 11.111 14.238 11.0441C14.3696 10.9773 14.48 10.8781 14.5693 10.7467C14.6585 10.6152 14.7255 10.4548 14.7701 10.2654C14.8171 10.0738 14.8406 9.85539 14.8406 9.61029Z",fill:"currentColor"}))},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReviewBanner=void 0;const r=o(n(0)),s=n(10),u=n(339),c=i(n(572)),d=n(573),f=n(574),m=n(58),_=n(25);t.ReviewBanner=({onClose:e})=>{const t=r.useCallback(()=>e&&e(),[e]);return r.default.createElement("div",{className:c.default.review},r.default.createElement("div",{className:c.default.content},r.default.createElement("div",{className:c.default.contentHeader},r.default.createElement("h2",null,"Are you happy with Spotlight?"),r.default.createElement(s.Icon,{width:"103",height:"33",viewBox:"0 0 103 33",fill:"none",icon:d.StarsIcon}),r.default.createElement(s.Icon,{className:c.default.reviewExit,width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",icon:f.ExitIcon,onClick:t})),r.default.createElement("p",{className:c.default.contentP},r.default.createElement("b",null,"“Hands-down this is the best Instagram plugin I’ve come across.”")," - These are the kinds of words that keep us going. If you’re also happy with Spotlight, please take a moment to rate it 5 stars on WordPress.org. If you need any help, please ",r.default.createElement("a",{href:_.AdminResources.supportUrl,target:"_blank"},"contact us")," directly.")),r.default.createElement("div",{className:c.default.btnContainer},r.default.createElement(u.ReviewButton,{onClick:t},"Rate Spotlight"),r.default.createElement("div",null,r.default.createElement("img",{src:m.Common.image("Markphoto.png"),alt:"Spotlight"}),r.default.createElement("span",null,"Thank you! - Mark, CEO"))))}},function(e,t,n){e.exports={button:"ReviewButton__button",icon:"ReviewButton__icon"}},function(e,t,n){e.exports={review:"ReviewBanner__review",reviewExit:"ReviewBanner__reviewExit",content:"ReviewBanner__content",contentP:"ReviewBanner__contentP",contentHeader:"ReviewBanner__contentHeader",btnContainer:"ReviewBanner__btnContainer"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StarsIcon=void 0;const l=a(n(0));t.StarsIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("rect",{width:"103",height:"33",fill:"url(#pattern0)"}),l.default.createElement("defs",null,l.default.createElement("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},l.default.createElement("use",{xlinkHref:"#image0_1362_2420",transform:"translate(0 -0.0109949) scale(0.00442478 0.0138107)"})),l.default.createElement("image",{id:"image0_1362_2420",width:"226",height:"74",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOIAAABKCAYAAACmX4hUAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAA4qADAAQAAAABAAAASgAAAABM8jPEAAAG/0lEQVR4Ae2dzYscRRjG3+7ddXtGEnfNZkMkicYEIQchLFk/oiKIB0Hx7MmzVy8e4iF4EQRJDh68qv+ABz0FUcyaiKgg+JHLLipGxSSb/WZnP6bbqt7tSU9PdfdbXVXTfXgKlq6ufut9n/lVPdPDMDPrhWEYERoIgECtBPxaq6M4CIBATABGxEYAgQYQgBEbsAiQAAIwIvYACDSAAIzYgEWABBCAEbEHQKABBGDEBiwCJIAAjIg9AAINIAAjNmARIAEEYETsARBoAAEYsQGLAAkgACNiD4BAAwjAiA1YBEgAARgRewAEGkAARmzAIkACCNRvxMVviORfUxv0ma0M+LH4eXV/MTj87rlYqP/kHEvwsIOgz4w4+PH41XtHXJyjzsrN+I9Ev3EN+syWBPzY/Go1Yjh/oSc03e8N1txJa0r3a5bVK5/WlO73AmrupDWl+zXL6pVPa0r3ewFD7NRnxDtX9+6E+w9W3hlJjDWmQZ/ZUoCfFr/ajKh6BlKNaT0ai8EqLaoxiyW1Uqm0qMa0kloMVmlRjVksqZVKpUU1ppXUILgeI975mjqrfw/IjsfEtdob9JktAfhp86vFiEXPPEXXtB9dxQlFGoquVSynPa1IQ9E17UIVJxRpKLpWsZz2tCINRde0C2lMGLoRo9tfiLvhP7kS5TUZU1eDPjPy4FeN3/CNuHCxVGnEiClNUjGAU5sTU7F86TRObU5MaaGKAZzanJiK5UuncWpzYkoLaQYM1YjR7SuFd8NE+95d8UpyOrQj9JmhBr/q/Ib6yZrdb8/T9tq/LLX3HThKo09fZ8XaCoI+M5LgV52fXSNu3SLavEnR5jzRxl9EnT8p6tyg7uYSdbdWKQx3tJR6/hiNjh+kkWCSvNYZouBhovuPi/6jRK0TROPTWvkI+sBPY8dY338FtY2MGC1cpuju59TtLNPO1hqRptEKdPEuCaOOjR8QRp0g78FXyDv1Zt886OvDMXgCfoNMdEZK+Gml0gnOxnpHX45fau5s3h2+CaUYYXxZW77clVqyDfqyRDLn4JcBonlawk8nm9mbNe3HKJj5mEg8M9TWRO1Yg9Ay0KBvAMnAAPgNINEaKOKnkcjMiLLQxCy1Hn+fyPM0yloKFTXj2kJDboO+XDRyzcAvH0/pFQ6/0iR7AeZGFHm8I69S6/RbzJL2wmRNWbusQZ+aEPipuXBHufw4+awYURbyTr5BwYnXODWtxMhasia3QV8/KfDr56F7psuvLL/Ru6aDyUMKf3qdOreuDV6yOBJMP0P+2U9ERt3nEeiTywB+ZpuxOr/8upaNKO6M4p2k7vcv9H3XML+8/pXggWM0MvslRRXfIII+8NPfdfdmmO6/e5n6e7q3lP7ZijNpEH/mMxprTymumg3JnDJ3VRPK6tAHflV3oY39l1fbuhHjQmMTNHbuU/JHW3l1tcdlLpmTRG7jBn1mCMHPjJ9ithsjykLBMfL8EUXJakNxLpHTWoM+M5TgZ8YvM9udEXcXqbu9nilX/TTOtSs+wWOrQZ8ZSfAz45eZ7c6IKzcypSycrvxmIcl+CugzYwl+Zvwys50ZMVqzb0SbOW3mSpjazGkzF/QlBMyOLtYkUeTMiLT+a1LD3tFmTpu5kkdoM6fNXNCXEDA7uliTfUXOjBht/Gj2oBWzbea0mSuRajOnzVzQlxAwO7pYk0SRMyNubywmNawdbea0mSt5gDZz2swFfQkBs6OLNUkUuTHi1n8U7m4mNXKP8ucwWmc/jP9kv6zFOUVu4wZ9ZgjBz4yfYvaoYsx4KFr9uTBHcPAh8W36d8g7/GIvbnT6JRoRP6Mof0Gr6OcWZW7v8JHevCod6AO/Ovefas+6uSOuqd+okZ/Ta898RP5T1/pMmAiTxpTXZIyMVbac3MrYvMGcHNCXBywzDn4ZIOanbu6I67/0KQsmjpN/6l2iQ8/2jeeeTD1P/tQctcU/uQwXLlBnWfwQ1X6LRG7TryDLHOkGfWka5X3wK2ekG+HEiOHG3kYPJh8h//R7RJNP6OraixfG9Q9dpfbSdQrn36bO0h8kc5vexqGv2nIks8AvIWHv6MSIfnCS2mc+ED+jcc6O0snz5M9+Re3lHyj8/ZJxTugzQwh+ZvxUs61/H1FVBGMgAALFBExf5RVnx1UQAAEWARiRhQlBIOCWAIzoli+ygwCLAIzIwoQgEHBLAEZ0yxfZQYBFAEZkYUIQCLglACO65YvsIMAiACOyMCEIBNwSgBHd8kV2EGARgBFZmBAEAm4JwIhu+SI7CLAIwIgsTAgCAbcEYES3fJEdBFgEYEQWJgSBgFsCMKJbvsgOAiwCMCILE4JAwC0BGNEtX2QHARYBGJGFCUEg4JYAjOiWL7KDAIsAjMjChCAQcEsARnTLF9lBgEXgf9LuWxMLKwA6AAAAAElFTkSuQmCC"})))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExitIcon=void 0;const l=a(n(0));t.ExitIcon=l.default.createElement("path",{xmlns:"http://www.w3.org/2000/svg",d:"M0.664551 10L3.84473 5.14404L0.962891 0.694336H3.15918L5.02539 3.68408L6.85352 0.694336H9.03076L6.13623 5.21387L9.31641 10H7.05029L4.9873 6.78174L2.91797 10H0.664551Z",fill:"currentColor"})},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NewFeedScreen=void 0;const r=o(n(0)),s=n(340),u=n(12),c=n(296),d=n(1),f=n(59),m=i(n(22)),_=n(60),p=n(52),h=n(11),g=n(23);t.NewFeedScreen=function(){const e=d.useDispatch(),[t,n]=r.useState(!1),a=r.useCallback(()=>n(!0),[n]),l=Boolean(d.useSelector(f.selectQueryParam("newUser"))),o=d.useSelector(g.selectHasAccounts),i=d.useSelector(f.selectQueryParam("useCase")),v=d.useSelector(f.selectQueryParam("template")),b=m.default.getTemplate(v),y=u.getDefaultFeedOptions(i,b);return r.useEffect(()=>{e(c.setIsEditingNewFeed(!0))},[]),r.default.createElement(r.default.Fragment,null,r.default.createElement(s.AdminEditor,{feed:{id:null,name:"",options:y,usages:[]}}),r.default.createElement(_.Modal,{isOpen:l&&!o&&!t,onClose:a,width:500,allowShadeClose:!1,noGrowMobile:!0},r.default.createElement(_.Modal.Content,null,r.default.createElement(p.FlexColumn,{align:"center",style:{textAlign:"center"}},r.default.createElement("h2",null,"Welcome to your Instagram feed editor."),r.default.createElement("p",{style:{marginBottom:"35px"}},"The Spotlight Instagram feed editor is where you connect your Instagram accounts and customize your feeds.",r.default.createElement("br",null),r.default.createElement("br",null),r.default.createElement("span",{style:{fontWeight:"bold"}},"Ready to finish your first Instagram feed?")),r.default.createElement(h.Button,{type:h.ButtonType.PRIMARY,size:h.ButtonSize.LARGE,onClick:a},"Let’s go!")))))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedNameField=void 0;const l=a(n(623)),o=a(n(0)),i=n(11),r=n(15),s=n(150),u=n(149);t.FeedNameField=function({name:e,label:t,onDone:n}){const a=o.default.useRef(),[c,d]=o.default.useState(""),[f,m]=o.default.useState(!1),_=()=>{d(e),m(!0)},p=()=>{m(!1),n&&n(c),a.current&&a.current.focus()},h=e=>{switch(e.key){case"Enter":case" ":_()}};return o.default.createElement("div",{className:l.default.root},o.default.createElement(s.Menu,{isOpen:f,onBlur:()=>m(!1),placement:"bottom"},({ref:e})=>o.default.createElement("div",{ref:u.mergeRefs(e,a),className:l.default.staticContainer,onClick:_,onKeyPress:h,tabIndex:0,role:"button"},o.default.createElement("span",{className:l.default.label},t),o.default.createElement(r.Dashicon,{icon:"edit",className:l.default.editIcon})),o.default.createElement(s.MenuContent,null,o.default.createElement(s.MenuStatic,null,o.default.createElement("div",{className:l.default.editContainer},o.default.createElement("input",{type:"text",value:c,onChange:e=>{d(e.target.value)},onKeyDown:e=>{switch(e.key){case"Enter":p();break;case"Escape":m(!1);break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:!0,placeholder:"Feed name"}),o.default.createElement(i.Button,{className:l.default.doneBtn,type:i.ButtonType.PRIMARY,size:i.ButtonSize.NORMAL,onClick:p},o.default.createElement(r.Dashicon,{icon:"yes"})))))))}},function(e,t,n){e.exports={root:"FeedNameField__root layout__flex-row",container:"FeedNameField__container layout__flex-row","edit-container":"FeedNameField__edit-container FeedNameField__container layout__flex-row",editContainer:"FeedNameField__edit-container FeedNameField__container layout__flex-row","static-container":"FeedNameField__static-container FeedNameField__container layout__flex-row",staticContainer:"FeedNameField__static-container FeedNameField__container layout__flex-row","focus-visible":"FeedNameField__focus-visible",focusVisible:"FeedNameField__focus-visible","edit-icon":"FeedNameField__edit-icon dashicons__dashicon-normal",editIcon:"FeedNameField__edit-icon dashicons__dashicon-normal",label:"FeedNameField__label","done-btn":"FeedNameField__done-btn",doneBtn:"FeedNameField__done-btn"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedNamePrompt=void 0;const l=a(n(0)),o=a(n(625)),i=a(n(157));t.FeedNamePrompt=function({isOpen:e,onAccept:t,onCancel:n}){const[a,r]=l.default.useState("");function s(){t&&t(a)}return l.default.createElement(i.default,{title:"Feed name",isOpen:e,onCancel:function(){n&&n()},onAccept:s,buttons:["Save","Cancel"]},l.default.createElement("p",{className:o.default.message},"Give this feed a memorable name:"),l.default.createElement("input",{type:"text",className:o.default.input,value:a,onChange:e=>{r(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&(s(),e.preventDefault(),e.stopPropagation())},autoFocus:!0}))}},function(e,t,n){e.exports={message:"FeedNamePrompt__message",input:"FeedNamePrompt__input"}},function(e,t,n){e.exports={root:"ModalPrompt__root",button:"ModalPrompt__button"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Screen=void 0,(t.Screen||(t.Screen={})).Sizes={WIDE:1200,LARGE:1180,MEDIUM:960,SMALL:782,NARROW:600,ALL:[1200,1180,960,782,600]}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=a(n(0)),o=a(n(629)),i=a(n(169)),r=n(11),s=n(15);t.default=function({children:e,steps:t,current:n,onChangeStep:a,firstStep:u,lastStep:c}){var d;u=null!=u?u:[],c=null!=c?c:[];const f=null!==(d=t.findIndex(e=>e.key===n))&&void 0!==d?d:0,m=f<=0,_=f>=t.length-1,p=m?null:t[f-1],h=_?null:t[f+1],g=m?u:l.default.createElement(r.Button,{type:r.ButtonType.LINK,onClick:()=>!m&&a&&a(t[f-1].key),className:o.default.prevLink,disabled:p.disabled},l.default.createElement(s.Dashicon,{icon:"arrow-left-alt2"}),l.default.createElement("span",null,p.label)),v=_?c:l.default.createElement(r.Button,{type:r.ButtonType.LINK,onClick:()=>!_&&a&&a(t[f+1].key),className:o.default.nextLink,disabled:h.disabled},l.default.createElement("span",null,h.label),l.default.createElement(s.Dashicon,{icon:"arrow-right-alt2",style:{marginRight:0}}));return l.default.createElement(i.default,null,{path:[],left:g,right:v,center:e})}},function(e,t,n){e.exports={"arrow-link":"WizardNavbar__arrow-link",arrowLink:"WizardNavbar__arrow-link","prev-link":"WizardNavbar__prev-link WizardNavbar__arrow-link",prevLink:"WizardNavbar__prev-link WizardNavbar__arrow-link","next-link":"WizardNavbar__next-link WizardNavbar__arrow-link",nextLink:"WizardNavbar__next-link WizardNavbar__arrow-link"}},function(e,t,n){e.exports={root:"GenericNavbar__root",list:"GenericNavbar__list","left-list":"GenericNavbar__left-list GenericNavbar__list",leftList:"GenericNavbar__left-list GenericNavbar__list",item:"GenericNavbar__item","center-list":"GenericNavbar__center-list GenericNavbar__list",centerList:"GenericNavbar__center-list GenericNavbar__list","right-list":"GenericNavbar__right-list GenericNavbar__list",rightList:"GenericNavbar__right-list GenericNavbar__list","path-list":"GenericNavbar__path-list GenericNavbar__left-list GenericNavbar__list",pathList:"GenericNavbar__path-list GenericNavbar__left-list GenericNavbar__list","path-segment":"GenericNavbar__path-segment",pathSegment:"GenericNavbar__path-segment",separator:"GenericNavbar__separator GenericNavbar__item"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=a(n(0)),o=a(n(632)),i=a(n(169)),r=n(11),s=n(15),u=n(150);function c({pages:e,current:t,onClickPage:n,children:a}){const[i,r]=l.default.useState(!1),s=()=>r(!0),c=()=>r(!1);return l.default.createElement(u.Menu,{isOpen:i,onBlur:c,placement:"bottom-start",refClassName:o.default.menuRef},({ref:e})=>l.default.createElement("a",{ref:e,className:o.default.menuLink,onClick:s},a),l.default.createElement(u.MenuContent,null,e.map(e=>{return l.default.createElement(u.MenuItem,{key:e.key,disabled:e.disabled,active:e.key===t,onClick:(a=e.key,()=>{n&&n(a),c()})},e.label);var a})))}t.default=function({pages:e,current:t,onChangePage:n,showNavArrows:a,hideMenuArrow:u,children:d}){var f,m;const{path:_,right:p}=d,h=null!==(f=e.findIndex(e=>e.key===t))&&void 0!==f?f:0,g=null!==(m=e[h].label)&&void 0!==m?m:"",v=h<=0,b=h>=e.length-1,y=v?null:e[h-1],E=b?null:e[h+1];let S=[];return a&&S.push(l.default.createElement(r.Button,{key:"page-menu-left",type:r.ButtonType.PILL,onClick:()=>!v&&n&&n(e[h-1].key),disabled:v||y.disabled},l.default.createElement(s.Dashicon,{icon:"arrow-left-alt2"}))),S.push(l.default.createElement(c,{key:"page-menu",pages:e,current:t,onClickPage:e=>n&&n(e)},l.default.createElement("span",null,g),!u&&l.default.createElement(s.Dashicon,{icon:"arrow-down-alt2",className:o.default.arrowDown}))),a&&S.push(l.default.createElement(r.Button,{key:"page-menu-left",type:r.ButtonType.PILL,onClick:()=>!b&&n&&n(e[h+1].key),disabled:b||E.disabled},l.default.createElement(s.Dashicon,{icon:"arrow-right-alt2"}))),l.default.createElement(i.default,{pathStyle:_.length>1?"line":"none"},{path:_,right:p,center:S})}},function(e,t,n){e.exports={"menu-link":"PageMenuNavbar__menu-link",menuLink:"PageMenuNavbar__menu-link","menu-ref":"PageMenuNavbar__menu-ref",menuRef:"PageMenuNavbar__menu-ref","arrow-down":"PageMenuNavbar__arrow-down",arrowDown:"PageMenuNavbar__arrow-down"}},function(e,t,n){e.exports={label:"TabNavbar__label",tab:"TabNavbar__tab","focus-visible":"TabNavbar__focus-visible",focusVisible:"TabNavbar__focus-visible",current:"TabNavbar__current TabNavbar__tab",disabled:"TabNavbar__disabled TabNavbar__tab"}},,function(e,t,n){e.exports={layout:"SidebarLayout__layout","layout-primary-content":"SidebarLayout__layout-primary-content SidebarLayout__layout",layoutPrimaryContent:"SidebarLayout__layout-primary-content SidebarLayout__layout","layout-primary-sidebar":"SidebarLayout__layout-primary-sidebar SidebarLayout__layout",layoutPrimarySidebar:"SidebarLayout__layout-primary-sidebar SidebarLayout__layout",container:"SidebarLayout__container",content:"SidebarLayout__content SidebarLayout__container",sidebar:"SidebarLayout__sidebar SidebarLayout__container",navigation:"SidebarLayout__navigation","navigation-left":"SidebarLayout__navigation-left SidebarLayout__navigation",navigationLeft:"SidebarLayout__navigation-left SidebarLayout__navigation","navigation-right":"SidebarLayout__navigation-right SidebarLayout__navigation",navigationRight:"SidebarLayout__navigation-right SidebarLayout__navigation","nav-link":"SidebarLayout__nav-link",navLink:"SidebarLayout__nav-link"}},,,,,,,,,,,,,,,function(e,t,n){},,,,,,,function(e,t,n){e.exports={root:"ConnectAccountButton__root"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=a(n(0)),o=a(n(262)),i=n(60);t.default=function({isOpen:e,onClose:t,onConnect:n,beforeConnect:a}){return l.default.createElement(i.Modal,{title:"Connect an Instagram account",isOpen:e,width:650,onClose:t},l.default.createElement(i.Modal.Content,null,l.default.createElement(o.default,{onConnect:n,beforeConnect:e=>{a&&a(e),t()}})))}},function(e,t,n){e.exports={heading:"ConnectAccount__heading",icon:"ConnectAccount__icon"}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=l(n(0)),i=l(n(661)),r=n(1),s=n(11),u=n(25),c=n(52),d=n(110),f=n(60),m=n(65),_=n(89),p=n(19),h=n(198),g=/^(User ID: ([0-9]+)\s*)?(Access Token: )?([a-zA-Z0-9]+)$/im;t.default=function({isVertical:e,beforeConnect:t,onConnect:n}){const l=r.useStore(),v=o.default.useRef(!1),[b,y]=o.default.useState(!1),[E,S]=o.default.useState(""),[w,C]=o.default.useState(""),M=E.length>145&&E.trimLeft().startsWith("EA"),O=e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),P())},P=()=>a(this,void 0,void 0,(function*(){var e,a,o,i;y(!0);try{const e=yield d.connectAccessToken(l,E,M?w:void 0);t&&t(e),setTimeout(()=>n(e),f.Modal.ANIMATION_DELAY)}catch(t){"object"==typeof t.response&&t.response.status&&null!==(a=null===(e=t.response.data)||void 0===e?void 0:e.error)&&void 0!==a&&a?l.dispatch(m.showToast({key:"account/connect/fail",type:m.ToastType.NOTIFICATION,message:null!==(i=null===(o=t.response.data)||void 0===o?void 0:o.error)&&void 0!==i?i:"The access token is not valid"})):_.triggerError({type:"account/connect/fail",message:p.getErrorResponseMessage(t)})}y(!1)})),k=o.default.createElement(s.Button,{className:i.default.button,type:s.ButtonType.PRIMARY,size:s.ButtonSize.LARGE,onClick:P,disabled:0===E.length||M&&0===w.length||b},b?"Connecting ...":"Connect");return o.default.createElement(c.FlexColumn,{align:"stretch"},o.default.createElement("p",{className:i.default.description},o.default.createElement("span",null,"Clients don’t like to share their Instagram credentials, so we recommend using the"," "),o.default.createElement("a",{href:u.AdminResources.tokenGenerator,target:"_blank"},"Spotlight Access Token Generator"),o.default.createElement("span",null," ","to connect client accounts safely and securely.")),o.default.createElement(c.FlexRow,{className:i.default.inputRow},o.default.createElement("input",{id:"manual-connect-access-token",className:i.default.input,type:"password",value:E,onChange:e=>{const t=e.target.value;if(v.current){v.current=!1;const[e,n]=function(e){var t,n;const a=g.exec(e);return[null!==(t=a[4])&&void 0!==t?t:null,null!==(n=a[2])&&void 0!==n?n:null]}(t);e&&S(e),n&&C(n)}else S(t)},onPaste:e=>{v.current=!0,e.persist()},onKeyDown:O,placeholder:"Instagram/Facebook access token",autoComplete:"no"}),!M&&!e&&k),M&&o.default.createElement(c.FlexRow,{className:i.default.inputRow},o.default.createElement("input",{id:"manual-connect-user-id",className:i.default.input,type:"text",value:w,onChange:e=>C(e.target.value),onKeyDown:O,placeholder:"Enter the user ID"}),!e&&k),o.default.createElement(c.FlexRow,{justify:"space-between",align:"center"},o.default.createElement(h.ExternalLink,{href:u.AdminResources.tokenGenerator},"Open the Access Token Generator"),e&&k))}},function(e,t,n){e.exports={"input-row":"ConnectAccessToken__input-row",inputRow:"ConnectAccessToken__input-row",input:"ConnectAccessToken__input",button:"ConnectAccessToken__button",description:"ConnectAccessToken__description"}},function(e,t,n){e.exports={icon:"ExternalLink__icon",link:"ExternalLink__link",button:"ExternalLink__button"}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectAccountAuth=void 0;const o=l(n(664)),i=l(n(0)),r=n(1),s=n(11),u=n(250),c=n(25),d=n(52),f=n(198),m=n(60),_=n(110);t.ConnectAccountAuth=function({showDescription:e,isVertical:t,onConnect:n,beforeConnect:l}){const p=r.useStore(),h=e=>a(this,void 0,void 0,(function*(){const t=yield e;l&&l(t),n&&setTimeout(()=>n(t),m.Modal.ANIMATION_DELAY)})),g=t?void 0:o.default.column;return i.default.createElement(d.FlexColumn,{align:"stretch"},e&&i.default.createElement("div",{className:o.default.description},"Connect your Instagram account directly through Instagram or Facebook (Business)."),i.default.createElement(d.Flex,{dir:t?"column":"row",justify:"space-between",align:"stretch"},i.default.createElement(d.FlexColumn,{align:"stretch",className:g},i.default.createElement(s.Button,{type:s.ButtonType.PRIMARY,size:s.ButtonSize.HERO,onClick:()=>h(_.connectIgAccount(p))},t?"Connect your Personal account":"Personal account"),i.default.createElement(f.ExternalLink,{href:c.AdminResources.personalVsBusinessAccount,className:o.default.helpLink},"Limitations of Personal accounts")),t&&i.default.createElement(u.OrSeparator,null),i.default.createElement(d.FlexColumn,{align:"stretch",className:g},i.default.createElement(s.Button,{type:s.ButtonType.SECONDARY,size:s.ButtonSize.HERO,onClick:()=>h(_.connectFbAccount(p))},t?"Connect your Business account":"Business account"),i.default.createElement(f.ExternalLink,{href:c.AdminResources.businessAccounts,className:o.default.helpLink},"Get more with Business, it's free"))))}},function(e,t,n){e.exports={column:"ConnectAccountAuth__column","help-link":"ConnectAccountAuth__help-link",helpLink:"ConnectAccountAuth__help-link",description:"ConnectAccountAuth__description"}},,,function(e,t,n){e.exports={root:"AccountSelector__root","profile-pic":"AccountSelector__profile-pic",profilePic:"AccountSelector__profile-pic","tick-icon":"AccountSelector__tick-icon",tickIcon:"AccountSelector__tick-icon"}},function(e,t,n){e.exports={container:"FieldRow__container","container-wide":"FieldRow__container-wide FieldRow__container",containerWide:"FieldRow__container-wide FieldRow__container",content:"FieldRow__content",label:"FieldRow__label",disabled:"FieldRow__disabled FieldRow__container","pro-pill":"FieldRow__pro-pill",proPill:"FieldRow__pro-pill","disabled-wide":"FieldRow__disabled-wide FieldRow__container-wide FieldRow__container FieldRow__disabled FieldRow__container",disabledWide:"FieldRow__disabled-wide FieldRow__container-wide FieldRow__container FieldRow__disabled FieldRow__container","label-normal":"FieldRow__label-normal FieldRow__label",labelNormal:"FieldRow__label-normal FieldRow__label","label-centered":"FieldRow__label-centered FieldRow__label",labelCentered:"FieldRow__label-centered FieldRow__label",field:"FieldRow__field","field-normal":"FieldRow__field-normal FieldRow__field",fieldNormal:"FieldRow__field-normal FieldRow__field","field-centered":"FieldRow__field-centered FieldRow__field",fieldCentered:"FieldRow__field-centered FieldRow__field","responsive-container":"FieldRow__responsive-container",responsiveContainer:"FieldRow__responsive-container","responsive-field":"FieldRow__responsive-field FieldRow__field",responsiveField:"FieldRow__responsive-field FieldRow__field","label-aligner":"FieldRow__label-aligner",labelAligner:"FieldRow__label-aligner"}},function(e,t,n){e.exports={root:"HelpTooltip__root",tooltip:"HelpTooltip__tooltip layout__z-high","tooltip-container":"HelpTooltip__tooltip-container",tooltipContainer:"HelpTooltip__tooltip-container","tooltip-content":"HelpTooltip__tooltip-content",tooltipContent:"HelpTooltip__tooltip-content",icon:"HelpTooltip__icon"}},,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BusinessAccountSelector=void 0;const l=a(n(0)),o=n(1),i=n(199),r=n(39),s=n(23);t.BusinessAccountSelector=function(e){const t=o.useSelector(s.selectBusinessAccounts);return t.length>0?l.default.createElement(i.AccountSelector,Object.assign({accounts:t},e)):l.default.createElement(r.Message,{centered:!0,type:r.MessageType.WARNING},"Connect a business account to use this feature.")}},,,,,,,,,,,,,,,function(e,t,n){e.exports={primaryColor:"#007cba",secondaryColor:"#d04186",tertiaryColor:"#d82442",lightColor:"#f5f5f5",lightColor2:"#e6e7e8",lightColor3:"#e1e2e3",shadowColor:"rgba(20,25,60,.32)",washedColor:"#eaf0f4"}},,,,,function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UnitInput=void 0;const o=l(n(0)),i=l(n(693));t.UnitInput=function(e){var{className:t,unit:n}=e,l=a(e,["className","unit"]);return o.default.createElement("div",{className:i.default.root},o.default.createElement("input",Object.assign({},l,{className:`${i.default.field} ${null!=t?t:""}`})),o.default.createElement("div",{className:i.default.unit},o.default.createElement("span",null,n)))}},function(e,t,n){e.exports={root:"UnitInput__root",field:"UnitInput__field",unit:"UnitInput__unit"}},,,,,,,,,,function(e,t,n){e.exports={"checkbox-field":"CheckboxField__checkbox-field",checkboxField:"CheckboxField__checkbox-field",aligner:"CheckboxField__aligner"}},,,,function(e,t,n){e.exports={button:"ColorPicker__button","color-preview":"ColorPicker__color-preview",colorPreview:"ColorPicker__color-preview",popper:"ColorPicker__popper"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports={root:"FieldSet__root"}},,,,,,,,,,,,,,,,,function(e,t,n){e.exports={"checkbox-list":"CheckboxListField__checkbox-list",checkboxList:"CheckboxListField__checkbox-list",option:"CheckboxListField__option",disabled:"CheckboxListField__disabled theme__disabled","pro-pill":"CheckboxListField__pro-pill",proPill:"CheckboxListField__pro-pill"}},,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextAreaField=void 0;const l=a(n(0));t.TextAreaField=function({id:e,value:t,onChange:n}){return l.default.createElement("textarea",{id:e,value:t,onChange:e=>n(e.target.value)})}},,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonGroup=void 0;const l=a(n(0));n(323);const o=n(13);t.ButtonGroup=({wide:e,children:t})=>l.default.createElement("div",{className:o.classList("button-group",e&&"button-group-wide")},t)},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BorderDesignFields=void 0;const r=o(n(0)),s=i(n(956)),u=n(35),c=n(248),d=n(37),f=n(66),m=n(16),_=n(85);t.BorderDesignFields=function({design:e,onChange:t,labels:n,disabled:a,show:l}){const[o,i]=r.useState(c.BorderDesign.DEFAULT);return e=null!=e?e:o,t=null!=t?t:i,r.default.createElement("div",{className:s.default.root},(l.width||l.style||l.color)&&r.default.createElement(_.FieldRow,{label:n&&"Border",disabled:a},l.width&&r.default.createElement("div",{className:s.default.width},r.default.createElement(u.NumberField,{value:e.width,onChange:n=>{t(m.withPartial(e,{width:n}))},placeholder:"Thickness",min:0,unit:"px"})),l.style&&r.default.createElement("div",{className:s.default.style},r.default.createElement(d.Select,{value:e.style,onChange:n=>{t(m.withPartial(e,{style:n}))},disabled:a,options:[{value:"solid",label:"Solid line"},{value:"dotted",label:"Dotted line"},{value:"dashed",label:"Dashed line"},{value:"double",label:"Double line"},{value:"groove",label:"Grooved"}]})),l.color&&r.default.createElement("div",{className:s.default.color},r.default.createElement(f.ColorPicker,{value:e.color,onChange:n=>{t(m.withPartial(e,{color:n.rgb}))}}))),l.radius&&r.default.createElement(_.FieldRow,{label:n&&"Border Radius",disabled:a},r.default.createElement(u.NumberField,{value:e.radius,onChange:n=>{const a=parseInt(n.toString());t(m.withPartial(e,{radius:a||0}))},min:0,unit:"px"})))}},function(e,t,n){e.exports={root:"BorderDesignFields__root",row:"BorderDesignFields__row",label:"BorderDesignFields__label",style:"BorderDesignFields__style",width:"BorderDesignFields__width",color:"BorderDesignFields__color"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MultiTextInput=void 0;const r=o(n(0)),s=i(n(372)),u=n(39),c=n(37),d={DropdownIndicator:null},f=e=>({label:e,value:e});t.MultiTextInput=function({id:e,value:t,onChange:n,sanitize:a,autoFocus:l,message:o}){const[i,m]=r.default.useState(""),[_,p]=r.default.useState(-1),[h,g]=r.default.useState();r.useEffect(()=>{g(o)},[o]);const v=(t=Array.isArray(t)?t:[]).map(e=>f(e)),b=()=>{i.length&&(m(""),y([...v,f(i)]))},y=e=>{if(!n)return;let t=-1;e=e?e.map(e=>e&&a?a(e.value):e.value).filter((e,n,a)=>{const l=a.indexOf(e);return l!==n?(t=l,!1):!!e}):[],p(t),-1===t&&n(e)},E=c.SelectStyles();return r.default.createElement(r.default.Fragment,null,r.default.createElement(s.default,{inputId:e,className:"react-select",classNamePrefix:"react-select",components:d,inputValue:i,isClearable:!1,isMulti:!0,menuIsOpen:!1,onChange:y,onInputChange:e=>{m(e)},onKeyDown:e=>{if(i)switch(e.key){case",":case"Enter":case"Tab":b(),e.preventDefault()}},onBlur:b,placeholder:"Type something and press enter...",value:v,autoFocus:l,styles:E}),_<0||0===v.length?null:r.default.createElement(u.Message,{type:u.MessageType.WARNING,shake:!0,showIcon:!0,isDismissible:!0},r.default.createElement("code",null,v[_].label)," is already in the list"),h?r.default.createElement(u.Message,{type:u.MessageType.WARNING,shake:!0,showIcon:!0,isDismissible:!0},h):null)}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalFiltersModal=void 0;const l=a(n(0)),o=n(60),i=n(154),r=n(1),s=n(30),u=n(136),c=n(423);t.GlobalFiltersModal=function({isOpen:e,onClose:t,onSave:n}){const a=r.useDispatch(),d=r.useSelector(s.selectSettingsAreDirty),f=r.useSelector(s.selectSettingsAreSaving);return l.default.createElement(o.Modal,{title:"Global filters",isOpen:e,onClose:()=>{d&&!confirm("You have unsaved changes. If you close the window now, your settings will not be saved. Click OK to close anyway.")||t()}},l.default.createElement(o.Modal.Content,null,l.default.createElement(c.SettingsFiltersTab,null)),l.default.createElement(o.Modal.Footer,null,l.default.createElement(i.SaveButton,{disabled:!d,isSaving:f,onClick:()=>{a(u.saveSettings()).then(()=>{n&&n()})}})))}},function(e,t,n){e.exports={root:"SettingsPage__root layout__flex-column","after-groups":"SettingsPage__after-groups",afterGroups:"SettingsPage__after-groups","before-groups":"SettingsPage__before-groups",beforeGroups:"SettingsPage__before-groups","group-list":"SettingsPage__group-list layout__flex-column",groupList:"SettingsPage__group-list layout__flex-column"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsCaptionFiltersGroup=void 0;const l=a(n(0)),o=n(137),i=n(994),r=n(997);t.SettingsCaptionFiltersGroup=function(){return l.default.createElement(o.SettingsGroup,{title:"Caption filtering"},l.default.createElement(i.CaptionWhitelistField,null),l.default.createElement(r.CaptionBlacklistField,null))}},function(e,t,n){e.exports={root:"SettingsGroup__root layout__flex-column",title:"SettingsGroup__title","before-fields":"SettingsGroup__before-fields",beforeFields:"SettingsGroup__before-fields","after-fields":"SettingsGroup__after-fields",afterFields:"SettingsGroup__after-fields","field-list":"SettingsGroup__field-list layout__flex-column",fieldList:"SettingsGroup__field-list layout__flex-column"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CaptionWhitelistField=void 0;const l=a(n(0)),o=n(1),i=n(81),r=n(161),s=n(30),u=n(42);t.CaptionWhitelistField=function(){const e=o.useDispatch(),t=o.useSelector(s.selectSetting("captionWhitelist")),n=o.useSelector(s.selectSetting("captionBlacklist"));return l.default.createElement(i.SettingsField,{id:"captionWhitelist",label:"Only show posts with these words or phrases",fullWidth:!0},l.default.createElement(r.LimitedMultiTextInput,{id:"captionWhitelist",value:t,onChange:t=>e(u.updateSettings({captionWhitelist:t})),exclude:n,excludeMsg:"%s is already being used in the below option"}))}},function(e,t,n){e.exports={root:"SettingsField__root layout__flex-column",label:"SettingsField__label layout__flex-column",container:"SettingsField__container layout__flex-row",control:"SettingsField__control layout__flex-column","control-partial-width":"SettingsField__control-partial-width SettingsField__control layout__flex-column",controlPartialWidth:"SettingsField__control-partial-width SettingsField__control layout__flex-column","control-full-width":"SettingsField__control-full-width SettingsField__control layout__flex-column",controlFullWidth:"SettingsField__control-full-width SettingsField__control layout__flex-column",tooltip:"SettingsField__tooltip layout__flex-column"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CaptionBlacklistField=void 0;const l=a(n(0)),o=n(1),i=n(81),r=n(161),s=n(30),u=n(42);t.CaptionBlacklistField=function(){const e=o.useDispatch(),t=o.useSelector(s.selectSetting("captionBlacklist")),n=o.useSelector(s.selectSetting("captionWhitelist"));return l.default.createElement(i.SettingsField,{id:"captionBlacklist",label:"Hide posts with these words or phrases",fullWidth:!0},l.default.createElement(r.LimitedMultiTextInput,{id:"captionBlacklist",value:t,onChange:t=>e(u.updateSettings({captionBlacklist:t})),exclude:n,excludeMsg:"%s is already being used in the above option"}))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsHashtagFiltersGroup=void 0;const l=a(n(0)),o=n(137),i=n(999),r=n(1001);t.SettingsHashtagFiltersGroup=function(){return l.default.createElement(o.SettingsGroup,{title:"Hashtag filtering"},l.default.createElement(i.HashtagWhitelistField,null),l.default.createElement(r.HashtagBlacklistField,null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HashtagWhitelistField=void 0;const l=a(n(0)),o=n(1),i=n(81),r=n(30),s=n(42),u=n(216);t.HashtagWhitelistField=function(){const e=o.useDispatch(),t=o.useSelector(r.selectSetting("hashtagWhitelist")),n=o.useSelector(r.selectSetting("hashtagBlacklist"));return l.default.createElement(i.SettingsField,{id:"hashtagWhitelist",label:"Only show posts with these words or phrases",fullWidth:!0},l.default.createElement(u.MultiHashtagInput,{id:"hashtagWhitelist",value:t,onChange:t=>e(s.updateSettings({hashtagWhitelist:t})),exclude:n,excludeMsg:"The %s hashtag is already being used in the below option"}))}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HashtagBlacklistField=void 0;const l=a(n(0)),o=n(1),i=n(81),r=n(161),s=n(30),u=n(42);t.HashtagBlacklistField=function(){const e=o.useDispatch(),t=o.useSelector(s.selectSetting("hashtagBlacklist")),n=o.useSelector(s.selectSetting("hashtagWhitelist"));return l.default.createElement(i.SettingsField,{id:"hashtagBlacklist",label:"Hide posts with these words or phrases",fullWidth:!0},l.default.createElement(r.LimitedMultiTextInput,{id:"hashtagBlacklist",value:t,onChange:t=>e(u.updateSettings({hashtagBlacklist:t})),exclude:n,excludeMsg:"The %s hashtag is already being used in the above option"}))}},,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OpenEyeIcon=void 0;const l=a(n(0));t.OpenEyeIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M3.62102 17.1038L1.48962 14.9724L3.00487 13.3406C9.06331 6.81614 19.2683 6.45121 25.7773 12.5263L28.4562 15.0266L26.379 17.1038C20.0945 23.3883 9.90546 23.3883 3.62102 17.1038Z",fill:"none",stroke:"currentColor",strokeWidth:"2.14564"}),l.default.createElement("path",{d:"M18.4358 15.0001C18.4358 16.893 16.9013 18.4275 15.0084 18.4275C13.1154 18.4275 11.5809 16.893 11.5809 15.0001C11.5809 13.1071 13.1154 11.5726 15.0084 11.5726C16.9013 11.5726 18.4358 13.1071 18.4358 15.0001Z",fill:"none",stroke:"currentColor",strokeWidth:"1.71651"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ClosedEyeIcon=void 0;const l=a(n(0));t.ClosedEyeIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M3.62102 17.1038L1.48962 14.9724L3.00487 13.3406C9.06331 6.81614 19.2683 6.45121 25.7773 12.5263L28.4562 15.0266L26.379 17.1038C20.0945 23.3883 9.90546 23.3883 3.62102 17.1038Z",fill:"none",stroke:"currentColor",strokeWidth:"2.14564"}),l.default.createElement("circle",{cx:"15.0006",cy:"15.0001",r:"3.42746",fill:"none",stroke:"currentColor",strokeWidth:"1.71651"}),l.default.createElement("rect",{x:"0.942192",y:"26.8894",width:"36.6641",height:"3.21289",rx:"1.60645",transform:"rotate(-45 0.942192 26.8894)",fill:"currentColor",stroke:"none",strokeWidth:"1.07282"}))},,,,,function(e,t,n){e.exports={loading:"MediaSelectionGrid__loading",media:"MediaSelectionGrid__media","selected-media":"MediaSelectionGrid__selected-media MediaSelectionGrid__media",selectedMedia:"MediaSelectionGrid__selected-media MediaSelectionGrid__media",thumbnail:"MediaSelectionGrid__thumbnail"}},function(e,t,n){e.exports={root:"SelectionGrid__root",grid:"SelectionGrid__grid","grid-disabled":"SelectionGrid__grid-disabled SelectionGrid__grid",gridDisabled:"SelectionGrid__grid-disabled SelectionGrid__grid",item:"SelectionGrid__item"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JumboAddButton=void 0;const l=a(n(0)),o=a(n(1020)),i=n(15),r=n(189),s=n(13);t.JumboAddButton=l.default.forwardRef((function({className:e,isFocused:t=!1,icon:n="plus-alt",onClick:a,children:u=""},c){const d=t?o.default.focused:o.default.root,f=s.classList(d,e);return l.default.createElement(r.DivButton,{ref:c,onClick:a,className:f},l.default.createElement("div",{className:o.default.container},l.default.createElement(i.Dashicon,{icon:n}),l.default.createElement("span",{className:o.default.text},u)))}))},function(e,t,n){e.exports={root:"JumboAddButton__root",hoverStyle:"JumboAddButton__hoverStyle",focused:"JumboAddButton__focused JumboAddButton__root JumboAddButton__hoverStyle",container:"JumboAddButton__container",text:"JumboAddButton__text"}},function(e,t,n){e.exports={"loading-spinner":"LoadingSpinner__loading-spinner",loadingSpinner:"LoadingSpinner__loading-spinner","preview-spinner-animation":"LoadingSpinner__preview-spinner-animation",previewSpinnerAnimation:"LoadingSpinner__preview-spinner-animation"}},,,,,,,,,,function(e,t,n){e.exports={root:"PromotionsGrid__root",tile:"PromotionsGrid__tile","tile-icon":"PromotionsGrid__tile-icon layout__flex-column layout__flex-center",tileIcon:"PromotionsGrid__tile-icon layout__flex-column layout__flex-center","plus-icon":"PromotionsGrid__plus-icon PromotionsGrid__tile-icon layout__flex-column layout__flex-center",plusIcon:"PromotionsGrid__plus-icon PromotionsGrid__tile-icon layout__flex-column layout__flex-center","link-icon":"PromotionsGrid__link-icon PromotionsGrid__tile-icon layout__flex-column layout__flex-center",linkIcon:"PromotionsGrid__link-icon PromotionsGrid__tile-icon layout__flex-column layout__flex-center","link-icon-open":"PromotionsGrid__link-icon-open PromotionsGrid__link-icon PromotionsGrid__tile-icon layout__flex-column layout__flex-center",linkIconOpen:"PromotionsGrid__link-icon-open PromotionsGrid__link-icon PromotionsGrid__tile-icon layout__flex-column layout__flex-center","link-preview":"PromotionsGrid__link-preview layout__z-highest",linkPreview:"PromotionsGrid__link-preview layout__z-highest","tile-thumbnail":"PromotionsGrid__tile-thumbnail",tileThumbnail:"PromotionsGrid__tile-thumbnail","footer-arrow":"PromotionsGrid__footer-arrow",footerArrow:"PromotionsGrid__footer-arrow","modal-icon":"PromotionsGrid__modal-icon",modalIcon:"PromotionsGrid__modal-icon","modal-footer":"PromotionsGrid__modal-footer",modalFooter:"PromotionsGrid__modal-footer"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PromotionModalFields=void 0;const r=i(n(1033)),s=o(n(0)),u=n(52),c=n(131),d=n(78),f=n(93),m=n(430),_=n(1036),p=n(16),h=n(431);function g(e){var t;return"caption"===(null===(t=e.feedPromo.linkSource)||void 0===t?void 0:t.type)?e.feedPromo:p.withPartial(e.feedPromo,{linkSource:{type:null}})}t.PromotionModalFields=function({media:e,promo:t,feedOptions:n,onChange:a}){const[l,o]=s.useState(!1);s.useLayoutEffect(()=>o(!1),[e]);const i=d.Promos.getPromo(e,n),p=h.useNicePromoUrl(e,i),v=d.Promos.getReason(e,n),b=null===v,y="override"===v,E="feed"===v,S="global"===v,w="auto"===v,C=d.Promos.getReason(e,n,!0),M=y&&null!==C,O=e=>{a(e)},P=e=>{e.preventDefault(),O(void 0),o(!1)};return s.default.createElement(u.FlexColumn,{align:"stretch"},s.default.createElement(u.FlexRow,{align:"flex-start",justify:"flex-start"},s.default.createElement("div",{className:r.default.leftCol},s.default.createElement(f.Square,null,s.default.createElement(c.MediaThumbnail,{media:e}))),s.default.createElement(u.FlexColumn,{className:r.default.rightCol,style:{flex:1},align:"stretch"},s.default.createElement("div",{className:r.default.linkMsg},null===p?s.default.createElement("p",null,"This post currently has no link applied."):s.default.createElement(s.default.Fragment,null,s.default.createElement("p",null,"This post currently links to:"),s.default.createElement("a",{href:p,target:"_blank"},p))),!l&&(E||S||w)&&s.default.createElement(_.PromotionOverrideMessage,{reason:v,isOverriding:l,onOverride:()=>o(!0)}),(l||y||b)&&s.default.createElement(m.PromotionFields,{promo:null!=t?t:g(n),onChange:O}))),(l||y)&&s.default.createElement("div",{className:r.default.footer},l||M?s.default.createElement("div",{className:r.default.resetMsg},"Note: This post overrides ",_.promoReasonText(C),". ",s.default.createElement("a",{href:"",onClick:P,className:r.default.resetLink},"Remove this promotion")," to stop overriding."):s.default.createElement("div",{className:r.default.resetMsg},s.default.createElement("a",{href:"",onClick:P,className:r.default.resetLink},"Remove the promotion"))))}},function(e,t,n){e.exports={"left-col":"PromotionModalsFields__left-col",leftCol:"PromotionModalsFields__left-col","right-col":"PromotionModalsFields__right-col",rightCol:"PromotionModalsFields__right-col",footer:"PromotionModalsFields__footer","reset-link":"PromotionModalsFields__reset-link",resetLink:"PromotionModalsFields__reset-link","faded-note":"PromotionModalsFields__faded-note",fadedNote:"PromotionModalsFields__faded-note","link-msg":"PromotionModalsFields__link-msg PromotionModalsFields__faded-note",linkMsg:"PromotionModalsFields__link-msg PromotionModalsFields__faded-note","reset-msg":"PromotionModalsFields__reset-msg PromotionModalsFields__faded-note",resetMsg:"PromotionModalsFields__reset-msg PromotionModalsFields__faded-note"}},,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.PostSelector=void 0;const r=o(n(0)),s=n(37),u=(n(19),n(34)),c=e=>e.length?`No posts were found for "${e}"`:"Type to search for posts";t.PostSelector=function({id:e,postType:t,postId:n,postTitle:a,onChange:l,noPostsMsg:o,loadingMsg:d,placeholder:f}){o=null!=o?o:c,d=null!=d?d:"Searching...",f=null!=f?f:"Select or start typing...";const m=r.default.useRef(),_=r.default.useRef(!1),p=r.default.useRef(),[h,g]=r.default.useState([]),[v,b]=r.default.useState(!1),y=r.default.useCallback(e=>(clearTimeout(m.current),new Promise(n=>{m.current=setTimeout(()=>i(this,void 0,void 0,(function*(){try{const a=(p.current=yield u.AdminRestApi.wp.posts.search(t,e)).map(e=>({value:e.id,label:e.title}));n(a)}catch(e){}})),1e3)})),[t]),E=r.default.useCallback(e=>{if(null===e)l(null);else{const t=p.current.find(t=>t.id==e.value);l(null!=t?t:null)}},[l,p]);return r.useEffect(()=>(_.current=!1,t&&(b(!0),y("").then(e=>{_.current||g(e)}).finally(()=>{_.current||b(!1)})),()=>_.current=!0),[t,y,_]),r.default.createElement(s.Select,{async:!0,cacheOptions:!0,id:e,value:n||0,defaultValue:0,defaultInputValue:n?a:"",onChange:E,defaultOptions:!!v||h,loadOptions:y,placeholder:f,noOptionsMessage:o,loadingMessage:()=>d,isLoading:v,isSearchable:!0,isClearable:!0})}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.promoReasonText=t.PromotionOverrideMessage=void 0;const l=a(n(1037)),o=a(n(0)),i=n(39),r=n(11),s=n(183),u=n(52);function c(e){switch(e){case"feed":return"feed-level preferences";case"global":return o.default.createElement(o.default.Fragment,null,"a ",o.default.createElement(s.Link,{to:{screen:"promotions",tab:"global"},absolute:!0,newTab:!0},"global")," promotion");case"auto":return o.default.createElement(o.default.Fragment,null,"an ",o.default.createElement(s.Link,{to:{screen:"promotions",tab:"automate"},absolute:!0,newTab:!0},"automated")," promotion");default:return""}}t.PromotionOverrideMessage=function({reason:e,isOverriding:t,onOverride:n}){return o.default.createElement(u.FlexColumn,{className:l.default.root,align:"stretch"},o.default.createElement(i.Message,{type:i.MessageType.WARNING,showIcon:!0},o.default.createElement("span",null,"This post has ",c(e)," applied.")," ",t?o.default.createElement("span",null,"To stop overriding, simply remove the custom promotion."):o.default.createElement("span",null,"Changing the preferences here will override only this post’s preferences.")),!t&&o.default.createElement(o.default.Fragment,null,o.default.createElement("hr",null),o.default.createElement("div",null,o.default.createElement(r.Button,{size:r.ButtonSize.LARGE,onClick:n},"Override"))))},t.promoReasonText=c},function(e,t,n){e.exports={root:"PromotionOverrideMessage__root"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WpMediaField=void 0;const l=a(n(0)),o=a(n(1039)),i=n(235),r=n(11);t.WpMediaField=({id:e,title:t,mediaType:n,button:a,buttonSet:s,buttonChange:u,value:c,onChange:d})=>{s=void 0===a?s:a,u=void 0===a?u:a;const f=!!c,m=f?u:s,_=()=>{d&&d("")};return l.default.createElement(i.WpUploadMedia,{id:e,title:t,mediaType:n,button:m,value:c,onSelect:e=>{d&&d(e[0].attributes.url)}},({open:e})=>l.default.createElement("div",{className:o.default.wpMediaField},f&&l.default.createElement("div",{className:o.default.preview,tabIndex:0,onClick:e,role:"button"},l.default.createElement("img",{src:c,alt:"Custom profile picture"})),l.default.createElement(r.Button,{className:o.default.selectBtn,type:r.ButtonType.SECONDARY,onClick:e},m),f&&l.default.createElement(r.Button,{className:o.default.removeBtn,type:r.ButtonType.DANGER_LINK,onClick:_},"Remove custom photo")))}},function(e,t,n){e.exports={"wp-media-field":"WpMediaField__wp-media-field",wpMediaField:"WpMediaField__wp-media-field",preview:"WpMediaField__preview","select-btn":"WpMediaField__select-btn",selectBtn:"WpMediaField__select-btn","remove-btn":"WpMediaField__remove-btn",removeBtn:"WpMediaField__remove-btn"}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedSidebar=void 0;const o=l(n(0)),i=l(n(1041)),r=n(1),s=n(59),u=l(n(22)),c=n(39),d=n(327),f=n(11),m=n(26),_=n(111),p=n(52),h=n(198),g=n(25),v=n(48),b=n(34),y=n(89),E=n(19),S=n(65),w=n(10),C=n(1042),M=n(1043),O=n(1044),P=n(1045),k=n(2);t.EmbedSidebar=function(){var e,t;const n=r.useDispatch(),l=m.useFeedEditorCanShowTier(k.Tier.ESSENTIALS),N=r.useSelector(s.selectQueryParam("id")),A=r.useSelector(_.selectFeedById(N)),x=!!N,L=u.default.config.adminUrl+"/widgets.php",T=u.default.config.adminUrl+"/edit.php",F=u.default.config.adminUrl+"/edit.php?post_type=page",I=e=>a(this,void 0,void 0,(function*(){n(S.showToast({key:"sli/embed/create_post/wait",type:S.ToastType.STICKY,message:`Creating ${e}. Please wait ...`}));try{const t=yield b.AdminRestApi.embed.createPost(N,A.options.useCase,e);window.open(u.default.config.adminUrl+"/post.php?action=edit&post="+t.data.postId,"_blank")}catch(e){y.triggerError({type:"sli/embed/create_post/error",message:E.getErrorResponseMessage(e)})}finally{n(S.removeToast("sli/embed/create_post/wait"))}}));return o.default.createElement("div",{className:i.default.embedSidebar},!x&&o.default.createElement("div",{className:i.default.saveMessage},o.default.createElement(c.Message,{type:c.MessageType.INFO,showIcon:!0},"Save your Instagram feed to be able to embed it.")),x&&(null!==(e=null==A?void 0:A.usages)&&void 0!==e?e:[]).length>0&&o.default.createElement(v.FeedEditorGroup,{id:"instances",label:"Instances",defaultOpen:!0},o.default.createElement("div",{className:i.default.instances},o.default.createElement("p",null,"This feed is currently being shown on these pages:"),o.default.createElement("ul",null,A.usages.map((e,t)=>o.default.createElement("li",{key:t},o.default.createElement(h.ExternalLink,{href:`${u.default.config.adminUrl}/post.php?action=edit&post=${e.id}`},e.name),o.default.createElement("span",null,"(",e.type,")")))))),o.default.createElement(v.FeedEditorGroup,{id:"block",label:"Block",labelIcon:o.default.createElement(w.Icon,{icon:C.BlockIcon,std:!0}),disabled:!x,defaultOpen:!0},o.default.createElement("div",null,o.default.createElement("p",null,"On any page or post, start typing “/Spotlight” and search for the ",o.default.createElement("b",null,"Spotlight Instagram Feed")," block."),o.default.createElement(p.FlexRow,{justify:"flex-start"},o.default.createElement(p.FlexColumn,{align:"flex-start",style:{flex:1}},o.default.createElement(h.ExternalLink,{onClick:()=>I("page"),button:!0},"Create new page"),o.default.createElement(h.ExternalLink,{className:i.default.postsLink,href:F},"Go to Pages")),o.default.createElement(p.FlexColumn,{align:"flex-start",style:{flex:1}},o.default.createElement(h.ExternalLink,{onClick:()=>I("post"),button:!0},"Create new post"),o.default.createElement(h.ExternalLink,{className:i.default.postsLink,href:T},"Go to Posts"))))),u.default.config.hasElementor&&l&&o.default.createElement(v.FeedEditorGroup,{id:"elementor",label:"Elementor Widget",labelIcon:o.default.createElement(w.Icon,{icon:P.ElementorIcon,std:!0}),disabled:!x,defaultOpen:!0,tier:k.Tier.ESSENTIALS},o.default.createElement("div",null,o.default.createElement("p",null,o.default.createElement("b",null,"Elementor Free:")," ","Scroll down to the ",o.default.createElement("b",null,"WordPress widgets")," and find the ",o.default.createElement("b",null,"Spotlight Instagram Feed Widget"),"."),o.default.createElement("p",null,o.default.createElement("b",null,"Elementor Premium:")," ","Search for the ",o.default.createElement("b",null,"Spotlight Instagram Feed")," Elementor widget."," ","Create, customize, and embed feeds directly within the Elementor page builder."),o.default.createElement(h.ExternalLink,{button:!0,href:g.AdminResources.elementorDoc},"Learn more"))),o.default.createElement(v.FeedEditorGroup,{id:"shortcode",label:"Shortcode",labelIcon:o.default.createElement(w.Icon,{icon:M.ShortCodeIcon,std:!0}),disabled:!x,defaultOpen:!0},o.default.createElement("div",null,o.default.createElement("p",null,"Copy and paste this shortcode on any page or post."),o.default.createElement("div",{className:i.default.shortcode},o.default.createElement("code",null,'[instagram feed="',null!=N?N:"xx",'"]'),o.default.createElement(d.CopyShortcode,{feedId:null!==(t=null==A?void 0:A.id)&&void 0!==t?t:""},o.default.createElement(f.Button,{type:f.ButtonType.SECONDARY},"Copy"))))),o.default.createElement(v.FeedEditorGroup,{id:"wigdet",label:"WordPress Widget (legacy)",labelIcon:o.default.createElement(w.Icon,{icon:O.WordpressWidgetIcon,std:!0}),disabled:!x,defaultOpen:!1},o.default.createElement("p",null,"To embed this feed as a legacy WordPress widget, go to the ",o.default.createElement("a",{href:L,target:"_blank"},"Widgets area")," of your site and add a ",o.default.createElement("b",null,"Spotlight Instagram Feed widget"),".")))}},function(e,t,n){e.exports={"embed-sidebar":"EmbedSidebar__embed-sidebar",embedSidebar:"EmbedSidebar__embed-sidebar","save-message":"EmbedSidebar__save-message",saveMessage:"EmbedSidebar__save-message",shortcode:"EmbedSidebar__shortcode",instances:"EmbedSidebar__instances","posts-link":"EmbedSidebar__posts-link",postsLink:"EmbedSidebar__posts-link"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockIcon=void 0;const l=a(n(0));t.BlockIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("rect",{x:"1.07282",y:"5.35798",width:"27.8544",height:"19.2829",rx:"1.07282",fill:"white",stroke:"currentColor",strokeWidth:"2.14564"}),l.default.createElement("rect",{x:"5.35658",y:"3.21425",width:"6.42857",height:"2.14286",fill:"white",stroke:"currentColor",strokeWidth:"2.14286"}),l.default.createElement("rect",{x:"18.214",y:"3.21425",width:"6.42857",height:"2.14286",fill:"white",stroke:"currentColor",strokeWidth:"2.14286"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShortCodeIcon=void 0;const l=a(n(0));t.ShortCodeIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("line",{y1:"-1.07282",x2:"17.5455",y2:"-1.07282",transform:"matrix(-0.532939 0.846154 -0.883851 -0.467768 18.5078 7.5769)",stroke:"currentColor",strokeWidth:"2.14564"}),l.default.createElement("line",{x1:"3.2154",y1:"2.14282",x2:"3.2154",y2:"27.8571",stroke:"currentColor",strokeWidth:"2.14564"}),l.default.createElement("line",{x1:"8.57227",y1:"3.21564",x2:"2.14369",y2:"3.21564",stroke:"currentColor",strokeWidth:"2.14564"}),l.default.createElement("line",{x1:"8.57227",y1:"26.7872",x2:"2.14369",y2:"26.7872",stroke:"currentColor",strokeWidth:"2.14564"}),l.default.createElement("line",{y1:"-1.07282",x2:"25.7143",y2:"-1.07282",transform:"matrix(4.37671e-08 1 1 -4.36536e-08 27.8574 2.14282)",stroke:"currentColor",strokeWidth:"2.14564"}),l.default.createElement("line",{y1:"-1.07282",x2:"6.42857",y2:"-1.07282",transform:"matrix(1 0 0 -1 21.4238 2.14282)",stroke:"currentColor",strokeWidth:"2.14564"}),l.default.createElement("line",{y1:"-1.07282",x2:"6.42857",y2:"-1.07282",transform:"matrix(1 0 0 -1 21.4238 25.7144)",stroke:"currentColor",strokeWidth:"2.14564"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WordpressWidgetIcon=void 0;const l=a(n(0));t.WordpressWidgetIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("rect",{x:"1.07282",y:"1.07282",width:"11.7005",height:"11.7005",rx:"1.07282",fill:"white",stroke:"currentColor",strokeWidth:"2.14564"}),l.default.createElement("rect",{x:"16.4616",y:"5.62437",width:"8.31667",height:"8.31667",rx:"1.07282",transform:"rotate(-30 16.4616 5.62437)",fill:"white",stroke:"currentColor",strokeWidth:"2.14564"}),l.default.createElement("rect",{x:"1.07282",y:"17.2269",width:"11.7005",height:"11.7005",rx:"1.07282",fill:"white",stroke:"currentColor",strokeWidth:"2.14564"}),l.default.createElement("rect",{x:"17.2271",y:"17.2269",width:"11.7005",height:"11.7005",rx:"1.07282",fill:"white",stroke:"currentColor",strokeWidth:"2.14564"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ElementorIcon=void 0;const l=a(n(0));t.ElementorIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("g",{clipPath:"url(#clip0_1205_1018)"},l.default.createElement("path",{d:"M14.9961 29.9995C6.711 29.9995 -0.00390625 23.2846 -0.00390625 14.9994C-0.00390625 6.71707 6.711 -0.000637794 14.9961 -0.000637794C23.2812 -0.000637794 29.9961 6.7143 29.9961 14.9994C29.9934 23.2846 23.2784 29.9995 14.9961 29.9995ZM11.2468 8.75146H8.74814V21.2501H11.2468V8.75146ZM21.244 8.75146H13.7454V11.2501H21.244V8.75146ZM21.244 13.7515H13.7454V16.2501H21.244V13.7515ZM21.244 18.7515H13.7454V21.2501H21.244V18.7515Z",fill:"currentColor"})),l.default.createElement("defs",null,l.default.createElement("clipPath",{id:"clip0_1205_1018"},l.default.createElement("rect",{width:"30",height:"30.0001",fill:"white",transform:"matrix(1 0 0 -1 0 30)"}))))},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.EditFeedScreen=void 0;const i=o(n(0)),r=n(220),s=n(39),u=n(340),c=n(1),d=n(111),f=n(296),m=n(59);function _(){const e=c.useSelector(m.selectRoute);return i.default.createElement("div",null,i.default.createElement(s.Message,{type:s.MessageType.ERROR,showIcon:!0},"Feed does not exist.",i.default.createElement(r.Link,{to:e.withQuery({screen:"feeds"})},"Go back")))}t.EditFeedScreen=function(){const e=c.useDispatch(),t=c.useSelector(m.selectRoute).getParam("id"),n=t?parseInt(t):0,a=c.useSelector(d.selectFeedById(n)),l=c.useStore(),[o]=i.useState(()=>l.getState().app.isEditingNewFeed);return i.useEffect(()=>{e(f.setIsEditingNewFeed(!1))},[]),n?a?i.default.createElement(u.AdminEditor,{feed:a,keepState:o}):i.default.createElement(_,null):null}},function(e,t,n){e.exports={screen:"PromotionsScreen__screen",navbar:"PromotionsScreen__navbar","navbar-item":"PromotionsScreen__navbar-item",navbarItem:"PromotionsScreen__navbar-item","navbar-pro-pill":"PromotionsScreen__navbar-pro-pill",navbarProPill:"PromotionsScreen__navbar-pro-pill"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AutomatePromotionsTab=void 0;const r=o(n(0)),s=i(n(1049)),u=n(41),c=n(1050),d=n(1052),f=n(11),m=n(1054),_=n(1055),p=n(77),h=n(78);function g({onCreate:e}){return r.default.createElement("div",{className:s.default.tutorial},r.default.createElement("div",{className:s.default.tutorialBox},r.default.createElement("div",{className:s.default.tutorialText},r.default.createElement("h1",null,"Automatically drive more conversions with Instagram"),r.default.createElement("p",null,"Link Instagram posts to your products, blog posts, landing pages, and more."),r.default.createElement("p",null,r.default.createElement("b",null,"Promotions help you drive traffic and increase conversions through social proof.")),r.default.createElement("p",null,"For example, create an ",r.default.createElement("b",null,"Instagram hashtag"),", let’s call it ",r.default.createElement("b",null,"#mymaxidress"),"."," "," Display photos from Instagram that use this hashtag and feature your dress,"," "," then have them ",r.default.createElement("b",null,"link directly to your product page"),", whether it’s on the"," "," same website or not."),r.default.createElement("p",null,"Every new Instagram photo that Spotlight finds with this hashtag will then",r.default.createElement("br",null),r.default.createElement("b",null,"automatically link to the product page"),"."),r.default.createElement("p",null,r.default.createElement("b",null,"Simple. Powerful. Effective."))),r.default.createElement(f.Button,{type:f.ButtonType.SECONDARY,size:f.ButtonSize.HERO,onClick:e},"Create your first automation")))}t.AutomatePromotionsTab=function({automations:e,isFakePro:t,onChange:n}){e=null!=e?e:[],n=null!=n?n:p.fn.noop;const[a,l]=r.default.useState(0),[o,i]=r.default.useState("content"),f=_.clampIndex(a,e),v=e.length>0,b=()=>i("sidebar"),y=r.useCallback(()=>e[f],[e,f]);function E(e){l(e)}const S=r.useCallback((e,t)=>{n(e),void 0!==t&&l(t)},[n]),w=r.useCallback(t=>{n(m.arrayWith(e,f,t))},[f,n]),C=r.useCallback(()=>{n(e.concat({criteria:{type:"hashtags",hashtags:[]},promo:h.Promos.getDefaultPromo()})),l(0),b()},[e]);return r.default.createElement(u.SidebarLayout,{primary:"content",current:o,sidebar:v&&r.default.createElement(r.default.Fragment,null,r.default.createElement(d.AutoPromotionsSidebar,{automation:y(),onChange:w,isFakePro:t,onClose:()=>i("content")})),content:r.default.createElement("div",{className:s.default.content},!v&&r.default.createElement(g,{onCreate:C}),v&&r.default.createElement(c.AutoPromotionsList,{automations:e,selected:f,isFakePro:t,onChange:S,onSelect:E,onClick:function(e){E(e),b()}}))})}},function(e,t,n){e.exports={content:"AutomatePromotionsTab__content","content-heading":"AutomatePromotionsTab__content-heading",contentHeading:"AutomatePromotionsTab__content-heading",tutorial:"AutomatePromotionsTab__tutorial","tutorial-box":"AutomatePromotionsTab__tutorial-box",tutorialBox:"AutomatePromotionsTab__tutorial-box","tutorial-text":"AutomatePromotionsTab__tutorial-text",tutorialText:"AutomatePromotionsTab__tutorial-text","tutorial-video":"AutomatePromotionsTab__tutorial-video",tutorialVideo:"AutomatePromotionsTab__tutorial-video","mobile-instructions":"AutomatePromotionsTab__mobile-instructions",mobileInstructions:"AutomatePromotionsTab__mobile-instructions"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AutoPromotionsList=void 0;const r=o(n(0)),s=i(n(1051)),u=n(49),c=n(184),d=n(450),f=n(11),m=n(15),_=n(240),p=i(n(22)),h=i(n(157)),g=n(41),v=n(77),b=n(78);function y({automation:e,selected:t,disabled:n,onClick:a,onDuplicate:l,onRemove:o}){var i;const u=null===(i=e.promo)||void 0===i?void 0:i.linkSource,c="wp_post"===(null==u?void 0:u.type)?p.default.config.postTypes.find(e=>e.slug===u.postType):void 0,d=n?null:a,h=n?null:_.stopPropagation(l),g=n?null:_.stopPropagation(o);return r.default.createElement("div",{className:t?s.default.rowSelected:s.default.row,onClick:d},r.default.createElement("div",{className:s.default.rowDragHandle,style:{pointerEvents:n?"none":"all"}},r.default.createElement(m.Dashicon,{icon:"menu"})),r.default.createElement("div",{className:n?s.default.rowBoxDisabled:s.default.rowBox},r.default.createElement("div",{className:s.default.rowHashtags},e.criteria.hashtags&&Array.isArray(e.criteria.hashtags)?e.criteria.hashtags.map(e=>"#"+e).join(", "):r.default.createElement("span",{className:s.default.noHashtagsMessage},"No hashtags")),r.default.createElement("div",{className:s.default.rowSummary},r.default.createElement(E,{promo:e.promo,postType:c})),r.default.createElement("div",{className:s.default.rowActions},r.default.createElement(f.Button,{type:f.ButtonType.PILL,size:f.ButtonSize.SMALL,onClick:h,tooltip:"Duplicate automation",disabled:n},r.default.createElement(m.Dashicon,{icon:"admin-page"})),r.default.createElement(f.Button,{type:f.ButtonType.DANGER_PILL,size:f.ButtonSize.SMALL,onClick:g,tooltip:"Remove automation",disabled:n},r.default.createElement(m.Dashicon,{icon:"trash"})))))}function E({promo:e,postType:t}){return"url"===(null==e?void 0:e.linkSource.type)?r.default.createElement("span",{className:s.default.summaryItalics},"Custom URL"):"caption"===(null==e?void 0:e.linkSource.type)?r.default.createElement("span",{className:s.default.summaryItalics},"Links in captions"):"wp_post"===(null==e?void 0:e.linkSource.type)&&t?r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:s.default.summaryBold},e.linkSource.postTitle)," ",r.default.createElement("div",{className:s.default.summaryItalics},"(",t.labels.singularName,")")):r.default.createElement("span",{className:s.default.noPromoMessage},"No promotion")}t.AutoPromotionsList=function({automations:e,selected:t,isFakePro:n,onChange:a,onSelect:l,onClick:o}){const i=r.useContext(g.SidebarLayout.Context);!n&&a||(a=v.fn.noop);const[m,_]=r.default.useState(null);function p(e){l&&l(e)}const E=r.useCallback(()=>{a(e.concat({criteria:{type:"hashtags",hashtags:[]},promo:b.Promos.getDefaultPromo()}),e.length)},[e]),S=r.useCallback(t=>()=>{const n=e[t],l=u.cloneObj(n),o=e.slice();o.splice(t+1,0,l),a(o,t+1)},[e]);function w(){_(null)}const C=r.useCallback(t=>{const n=e.slice();n.splice(t,1),a(n,0),w()},[e]),M=r.useCallback(n=>{const l=e[t],o=n.map(e=>({criteria:e.criteria,promo:e.promo})),i=o.findIndex(e=>e.criteria===l.criteria);a(o,i)},[e]);function O(e){return()=>{p(e),o&&o(e)}}const P=e.map(e=>Object.assign(Object.assign({},e),{id:c.uniqueNum()}));return r.default.createElement(r.default.Fragment,null,i&&r.default.createElement("div",{className:s.default.mobileInstructions},r.default.createElement("p",null,"Click or tap on an automation to change its settings")),r.default.createElement("div",{className:s.default.list},r.default.createElement("div",{className:s.default.addButtonRow},r.default.createElement(f.Button,{type:f.ButtonType.SECONDARY,size:f.ButtonSize.LARGE,onClick:E,disabled:n},"Add automation")),r.default.createElement(d.ReactSortable,{list:P,handle:"."+s.default.rowDragHandle,setList:M,onStart:function(e){p(e.oldIndex)},animation:200,delay:1e3,fallbackTolerance:5,delayOnTouchOnly:!0},e.map((e,a)=>r.default.createElement(y,{key:a,automation:e,selected:t===a,onClick:O(a),onDuplicate:S(a),onRemove:()=>function(e){_(e)}(a),disabled:n}))),r.default.createElement(h.default,{isOpen:null!==m,title:"Are you sure?",buttons:["Yes, remove it","No, keep it"],onAccept:()=>C(m),onCancel:w},r.default.createElement("p",null,"Are you sure you want to remove this automation? This ",r.default.createElement("strong",null,"cannot")," be undone!"))))}},function(e,t,n){e.exports={list:"AutoPromotionsList__list","fake-pro-list":"AutoPromotionsList__fake-pro-list AutoPromotionsList__list",fakeProList:"AutoPromotionsList__fake-pro-list AutoPromotionsList__list",row:"AutoPromotionsList__row","row-selected":"AutoPromotionsList__row-selected AutoPromotionsList__row",rowSelected:"AutoPromotionsList__row-selected AutoPromotionsList__row","row-box":"AutoPromotionsList__row-box theme__panel",rowBox:"AutoPromotionsList__row-box theme__panel","row-hashtags":"AutoPromotionsList__row-hashtags",rowHashtags:"AutoPromotionsList__row-hashtags","row-summary":"AutoPromotionsList__row-summary layout__flex-row",rowSummary:"AutoPromotionsList__row-summary layout__flex-row","row-drag-handle":"AutoPromotionsList__row-drag-handle",rowDragHandle:"AutoPromotionsList__row-drag-handle","row-box-disabled":"AutoPromotionsList__row-box-disabled AutoPromotionsList__row-box theme__panel state__disabled",rowBoxDisabled:"AutoPromotionsList__row-box-disabled AutoPromotionsList__row-box theme__panel state__disabled","row-actions":"AutoPromotionsList__row-actions",rowActions:"AutoPromotionsList__row-actions","add-button-row":"AutoPromotionsList__add-button-row",addButtonRow:"AutoPromotionsList__add-button-row","no-hashtags-message":"AutoPromotionsList__no-hashtags-message",noHashtagsMessage:"AutoPromotionsList__no-hashtags-message","row-faded-text":"AutoPromotionsList__row-faded-text",rowFadedText:"AutoPromotionsList__row-faded-text","no-promo-message":"AutoPromotionsList__no-promo-message AutoPromotionsList__row-faded-text",noPromoMessage:"AutoPromotionsList__no-promo-message AutoPromotionsList__row-faded-text","summary-item":"AutoPromotionsList__summary-item",summaryItem:"AutoPromotionsList__summary-item","summary-italics":"AutoPromotionsList__summary-italics AutoPromotionsList__summary-item",summaryItalics:"AutoPromotionsList__summary-italics AutoPromotionsList__summary-item","summary-bold":"AutoPromotionsList__summary-bold AutoPromotionsList__summary-item",summaryBold:"AutoPromotionsList__summary-bold AutoPromotionsList__summary-item"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AutoPromotionsSidebar=void 0;const r=o(n(0)),s=i(n(1053)),u=n(158),c=n(216),d=n(13),f=n(77),m=n(41),_=n(16),p=n(85),h=n(430);t.AutoPromotionsSidebar=function({automation:e,isFakePro:t,onChange:n,onClose:a}){const l=r.useContext(m.SidebarLayout.Context);return!t&&n||(n=f.fn.noop),r.default.createElement(r.default.Fragment,null,l&&r.default.createElement(m.SidebarLayout.Navigation,{icon:"arrow-left-alt",text:"Automations",onClick:a}),r.default.createElement(u.Sidebar,null,e&&r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:d.classList(u.Sidebar.padded,t?s.default.fakePro:null)},r.default.createElement(p.FieldRow,{label:"Promote posts with any of these hashtags",labelId:"sli-auto-promo-hashtags",wide:!0},r.default.createElement(c.MultiHashtagInput,{id:"sli-auto-promo-hashtags",value:e.criteria.hashtags,onChange:function(t){n(_.withPartial(e,{criteria:{type:"hashtags",hashtags:t}}))},autoFocus:!t})),r.default.createElement("div",{className:s.default.promoFields},r.default.createElement(h.PromotionFields,{promo:e.promo,onChange:function(t){n(_.withPartial(e,{promo:t}))}})))),!e&&r.default.createElement("div",{className:u.Sidebar.padded},r.default.createElement("p",null,"Automatically link Instagram posts from any source that contain specific hashtags to"," ","posts, pages, products, custom links, and more. ",r.default.createElement("a",{href:"#"},"Learn more")),r.default.createElement("p",null,"To get started, create an automation or select an existing one."))))}},function(e,t,n){e.exports={"fake-pro":"AutoPromotionsSidebar__fake-pro",fakePro:"AutoPromotionsSidebar__fake-pro","promo-fields":"AutoPromotionsSidebar__promo-fields",promoFields:"AutoPromotionsSidebar__promo-fields"}},,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalPromotionsTab=void 0;const r=o(n(0)),s=n(1),u=i(n(1057)),c=n(41),d=n(1058),f=i(n(261)),m=n(1059),_=n(23),p=n(51),h=n(70);t.GlobalPromotionsTab=function({isFakePro:e}){const t=s.useSelector(_.selectAccounts),[n,a]=r.useState(!1);p.useDocumentEventListener(h.RestApi.media.events.fetch.start,()=>a(!0)),p.useDocumentEventListener(h.RestApi.media.events.fetch.end,()=>a(!1));const[l,o]=r.useState("content"),[i,g]=r.default.useState(()=>(e=>e.length>0?e[0].id:null)(t)),v=r.useCallback(()=>o("content"),[o]),b=r.useCallback(()=>o("sidebar"),[o]);return r.default.createElement(r.default.Fragment,null,0===t.length&&r.default.createElement("div",{className:u.default.tutorial},r.default.createElement("div",{className:u.default.tutorialBox},r.default.createElement("div",{className:u.default.tutorialText},r.default.createElement("h1",null,"Set up global promotions across all feeds"),r.default.createElement("p",null,"Link Instagram posts to your products, blog posts, landing pages, and more."),r.default.createElement("p",null,r.default.createElement("b",null,"Promotions help you drive traffic and increase conversions through social proof.")),r.default.createElement("p",null,"Set up global promotions for each account that will apply across all feeds."," ","You may then choose to enable or disable promotions on a per-feed basis."),r.default.createElement("p",null,"Connect your first Instagram account to set up global promotions."),r.default.createElement("p",null,r.default.createElement("b",null,"Simple. Powerful. Effective."))),r.default.createElement(f.default,null,"Connect your Instagram account"))),t.length>0&&r.default.createElement(c.SidebarLayout,{primary:"content",current:l,sidebar:r.default.createElement(d.GlobalPromotionsSidebar,{disabled:n||e,account:i,onChangeAccount:g,onClose:v}),content:r.default.createElement(m.GlobalPromotionsContent,{disabled:n||e,account:i,onOpenSidebar:b})}))}},function(e,t,n){e.exports={tutorial:"GlobalPromotionsTab__tutorial","tutorial-box":"GlobalPromotionsTab__tutorial-box",tutorialBox:"GlobalPromotionsTab__tutorial-box","tutorial-text":"GlobalPromotionsTab__tutorial-text",tutorialText:"GlobalPromotionsTab__tutorial-text"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalPromotionsSidebar=void 0;const i=o(n(0)),r=n(1),s=n(158),u=n(41),c=n(199),d=n(84),f=n(23);t.GlobalPromotionsSidebar=function({account:e,onChangeAccount:t,disabled:n,onClose:a}){const l=r.useSelector(f.selectAccounts),o=i.useContext(u.SidebarLayout.Context);return i.default.createElement(i.default.Fragment,null,o&&i.default.createElement(i.default.Fragment,null,i.default.createElement(u.SidebarLayout.Navigation,{icon:"arrow-left-alt",text:"Back",onClick:a})),i.default.createElement(s.Sidebar,{disabled:n},i.default.createElement("div",{className:s.Sidebar.padded},i.default.createElement("p",null,"Promote your blog posts, landing pages, products, and much more through your Instagram feed."),i.default.createElement("p",{style:{fontWeight:"bold"}},"How it works:"),i.default.createElement("ol",{style:{marginTop:0}},i.default.createElement("li",null,"Pick an account."),o?i.default.createElement(i.default.Fragment,null,i.default.createElement("li",null,"Go back to the previous page."),i.default.createElement("li",null,"Select a post from the grid.")):i.default.createElement("li",null,"Select a post from the preview on the left."),i.default.createElement("li",null,"Choose what the post should link to."))),i.default.createElement(d.Spoiler,{label:"Pick an account",showIcon:!1,isOpen:!0,fitted:!0},i.default.createElement(c.AccountSelector,{accounts:l,value:[e],onChange:e=>t(e[0]),singleMode:!0}))))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalPromotionsContent=void 0;const r=o(n(0)),s=i(n(1060)),u=n(1),c=n(41),d=n(429),f=n(244),m=n(30),_=n(42),p=n(11),h=n(15),g=n(23);t.GlobalPromotionsContent=function({account:e,disabled:t,onOpenSidebar:n}){const a=u.useDispatch(),l=u.useSelector(g.selectHasAccounts),o=u.useSelector(m.selectSetting("promotions")),i=r.useContext(c.SidebarLayout.Context),v=r.default.useCallback(e=>{t||a(_.updateSettings({promotions:e}))},[a,t]),b=f.createFeedOptions({accounts:[e],promoOverrides:t?{}:o,globalPromosEnabled:!1,autoPromosEnabled:!0,promosVersion:2});return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:s.default.content},i&&r.default.createElement("div",{className:s.default.heading},r.default.createElement("p",{className:s.default.mobileInstructions},"Click or tap a post to set up a promotion for it."),l&&r.default.createElement("div",{className:s.default.changeAccountButton},r.default.createElement(p.Button,{type:p.ButtonType.SECONDARY,size:p.ButtonSize.SMALL,onClick:n},r.default.createElement(h.Dashicon,{icon:"admin-users"})," Change account"))),r.default.createElement(d.PromotionsGrid,{feedOptions:b,onChange:v,disabled:t})))}},function(e,t,n){e.exports={content:"GlobalPromotionsContent__content",heading:"GlobalPromotionsContent__heading","mobile-instructions":"GlobalPromotionsContent__mobile-instructions",mobileInstructions:"GlobalPromotionsContent__mobile-instructions"}},function(e,t,n){},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsNavbar=void 0;const l=a(n(1063)),o=a(n(0)),i=a(n(191)),r=n(11),s=n(243),u=n(154),c=n(298),d=n(1),f=n(30),m=n(42),_=n(136),p=n(2),h=n(59);function g({}){const e=d.useDispatch(),t=d.useSelector(f.selectSettingsAreDirty),n=d.useSelector(f.selectSettingsAreSaving);return o.default.createElement("div",{className:l.default.buttons},o.default.createElement(r.Button,{className:l.default.cancelBtn,type:r.ButtonType.DANGER_PILL,size:r.ButtonSize.LARGE,onClick:()=>e(m.restoreSettings()),disabled:!t},"Cancel"),o.default.createElement(u.SaveButton,{className:l.default.saveBtn,onClick:()=>e(_.saveSettings()),isSaving:n,tooltip:"Save the settings (Ctrl+S)",disabled:!t}))}t.SettingsNavbar=function(){const e=d.useSelector(h.selectQueryParam("tab")),t=p.useTier().isAtLeast(p.Tier.PRO)?c.AdminSettings:c.AdminSettings.filter(e=>!e.isPro);return o.default.createElement(i.default,{chevron:!0,right:g},t.map((t,n)=>o.default.createElement(s.Navbar.Link,{key:t.id,linkTo:{tab:t.id},isCurrent:e===t.id||!e&&0===n},t.title)))}},function(e,t,n){e.exports={buttons:"SettingsNavbar__buttons layout__flex-row","cancel-btn":"SettingsNavbar__cancel-btn",cancelBtn:"SettingsNavbar__cancel-btn"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=a(n(0)),o=a(n(1065)),i=a(n(261)),r=a(n(1066)),s=n(39),u=n(1068),c=n(1),d=n(23),f=n(251);t.default=function(){const e=c.useSelector(d.selectAccounts),t=f.useForceUpdate(),[n,a]=l.default.useState("");return 0===e.length?l.default.createElement(u.AccountsOnboarding,null):l.default.createElement("div",{className:o.default.root},n.length>0&&l.default.createElement(s.Message,{type:s.MessageType.ERROR,showIcon:!0,isDismissible:!0,onDismiss:()=>a("")},n),l.default.createElement("div",{className:o.default.connectBtn},l.default.createElement(i.default,{onConnect:t})),l.default.createElement(r.default,{accounts:e,showDelete:!0,onDeleteError:a}))}},function(e,t,n){e.exports={"connect-btn":"AccountsPage__connect-btn",connectBtn:"AccountsPage__connect-btn"}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=l(n(0)),i=l(n(1067)),r=n(31),s=n(11),u=l(n(324)),c=l(n(233)),d=l(n(187)),f=l(n(157)),m=n(150),_=n(326),p=n(1),h=n(111),g=n(183),v=n(99),b=n(15),y=n(47),E=n(71),S=l(n(22)),w=n(110);t.default=function({accounts:e,showDelete:t,onDeleteError:n}){const l=p.useStore(),M=p.useDispatch(),O=p.useSelector(h.selectFeeds),P=(e=null!=e?e:[]).filter(e=>e.type===r.Account.Type.BUSINESS).length,[k,N]=o.default.useState(!1),[A,x]=o.default.useState(null),[L,T]=o.default.useState(!1),[F,I]=o.default.useState(),[j,B]=o.default.useState(!1),D=e=>()=>{x(e.id),N(!0)},R=e=>()=>w.reconnectAccount(l,e),W=e=>()=>{M(y.gotoRoute({screen:E.SCREENS.CUSTOM_MEDIA,id:e.id}))},G=e=>()=>{I(e),T(!0)},z=()=>{B(!1),I(null),T(!1)},H={cols:{username:i.default.usernameCol,type:i.default.typeCol,usages:i.default.usagesCol,actions:i.default.actionsCol},cells:{username:i.default.usernameCell,type:i.default.typeCell,usages:i.default.usagesCell,actions:i.default.actionsCell}};return o.default.createElement("div",{className:"accounts-list"},o.default.createElement(u.default,{styleMap:H,rows:e,cols:[{id:"username",label:"Username",render:e=>o.default.createElement("div",null,o.default.createElement(d.default,{account:e,className:i.default.profilePic}),o.default.createElement("a",{className:i.default.username,onClick:D(e)},"@",e.username))},{id:"type",label:"Type",render:e=>o.default.createElement("span",{className:i.default.accountType},e.type)},{id:"usages",label:"Feeds",render:e=>o.default.createElement("span",{className:i.default.usages},O.filter(C(e)).map((e,t)=>o.default.createElement(g.Link,{key:t,to:{screen:"edit",id:e.id.toString()}},e.name)))},{id:"actions",label:"Actions",render:e=>t&&o.default.createElement(m.StatefulMenu,null,({ref:e,openMenu:t})=>o.default.createElement(s.Button,{ref:e,className:i.default.actionsBtn,type:s.ButtonType.PILL,size:s.ButtonSize.NORMAL,onClick:t},o.default.createElement(_.Ellipsis,null)),o.default.createElement(m.MenuContent,null,o.default.createElement(m.MenuItem,{onClick:D(e)},o.default.createElement(b.Dashicon,{icon:"info"}),"Info"),S.default.config.customPosts.enabled&&o.default.createElement(m.MenuItem,{onClick:W(e)},o.default.createElement(b.Dashicon,{icon:"welcome-add-page"}),"Custom posts"),o.default.createElement(m.MenuItem,{onClick:R(e)},o.default.createElement(b.Dashicon,{icon:"image-rotate"}),"Reconnect"),o.default.createElement(m.MenuSeparator,null),o.default.createElement(m.MenuItem,{onClick:G(e),danger:!0},o.default.createElement(b.Dashicon,{icon:"trash"}),"Delete")))}]}),o.default.createElement(c.default,{isOpen:k,onClose:()=>N(!1),accountId:A}),o.default.createElement(f.default,{isOpen:L,title:"Are you sure?",buttons:[j?"Please wait ...":"Yes I'm sure","Cancel"],okDisabled:j,cancelDisabled:j,onAccept:()=>a(this,void 0,void 0,(function*(){B(!0);try{yield M(v.deleteAccount(F.id))}catch(e){n&&n("An error occurred while trying to remove the account.")}finally{z()}})),onCancel:z},o.default.createElement("p",null,"Are you sure you want to delete"," ",o.default.createElement("span",{style:{fontWeight:"bold"}},"@",F?F.username:""),"?"," ","This will also delete all saved media associated with this account."),F&&F.type===r.Account.Type.BUSINESS&&1===P&&o.default.createElement("p",null,o.default.createElement("b",null,"Note:")," ",o.default.createElement("span",null,"Because this is your only connected Business account, deleting it will"," ","also cause any feeds that show public hashtag posts to no longer work."))))};const C=e=>t=>t&&t.options.accounts.includes(e.id)||t.options.tagged.includes(e.id)},function(e,t,n){e.exports={"username-col":"AccountsList__username-col",usernameCol:"AccountsList__username-col","actions-col":"AccountsList__actions-col",actionsCol:"AccountsList__actions-col",cell:"AccountsList__cell","username-cell":"AccountsList__username-cell AccountsList__cell",usernameCell:"AccountsList__username-cell AccountsList__cell","actions-cell":"AccountsList__actions-cell AccountsList__cell",actionsCell:"AccountsList__actions-cell AccountsList__cell","type-cell":"AccountsList__type-cell AccountsList__cell",typeCell:"AccountsList__type-cell AccountsList__cell","usages-cell":"AccountsList__usages-cell AccountsList__cell",usagesCell:"AccountsList__usages-cell AccountsList__cell",username:"AccountsList__username","profile-pic":"AccountsList__profile-pic",profilePic:"AccountsList__profile-pic","account-type":"AccountsList__account-type",accountType:"AccountsList__account-type",usages:"AccountsList__usages","actions-btn":"AccountsList__actions-btn",actionsBtn:"AccountsList__actions-btn","usages-col":"AccountsList__usages-col",usagesCol:"AccountsList__usages-col","type-col":"AccountsList__type-col",typeCol:"AccountsList__type-col"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountsOnboarding=void 0;const l=a(n(0)),o=a(n(1069)),i=a(n(262)),r=n(368),s=n(25);t.AccountsOnboarding=function({onConnect:e,beforeConnect:t,isTransitioning:n}){return l.default.createElement(r.Onboarding,{className:o.default.root,isTransitioning:n},l.default.createElement("div",{className:o.default.left},l.default.createElement("h1",null,"Connect your Instagram account"),l.default.createElement("p",null,"You can connect the following types of accounts in Spotlight:"),l.default.createElement("ul",{className:o.default.list},l.default.createElement("li",null,l.default.createElement("a",{href:s.AdminResources.connectPersonalAccount,target:"_blank"},"Personal account")),l.default.createElement("li",null,l.default.createElement("a",{href:s.AdminResources.connectBusinessAccount,target:"_blank"},"Business account")),l.default.createElement("li",null,"Your client's account (",l.default.createElement("a",{href:s.AdminResources.connectAccessToken,target:"_blank"},"using an access token"),")")),l.default.createElement("p",null,l.default.createElement("a",{href:s.AdminResources.personalVsBusinessAccount,target:"_blank"},"What's the difference between a Personal account and a Business account?"))),l.default.createElement("div",null,l.default.createElement(i.default,{beforeConnect:e=>t&&t(e),onConnect:t=>e&&e(t),showDescription:!0,isVertical:!0})))}},function(e,t,n){e.exports={root:"AccountsOnboarding__root",left:"AccountsOnboarding__left",list:"AccountsOnboarding__list","learn-more-business":"AccountsOnboarding__learn-more-business",learnMoreBusiness:"AccountsOnboarding__learn-more-business","first-msg":"AccountsOnboarding__first-msg",firstMsg:"AccountsOnboarding__first-msg",spacer:"AccountsOnboarding__spacer"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsConfigTab=void 0;const l=a(n(0)),o=n(292),i=n(1071),r=n(1075),s=n(1079);t.SettingsConfigTab=function(){return l.default.createElement(o.SettingsPage,null,l.default.createElement(i.SettingsImportingGroup,null),l.default.createElement(r.SettingsOptimizationGroup,null),l.default.createElement(s.SettingsTweaksGroup,null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsImportingGroup=void 0;const l=a(n(0)),o=n(137),i=n(1072),r=n(1073);t.SettingsImportingGroup=function(){return l.default.createElement(o.SettingsGroup,{title:"Import options"},l.default.createElement(i.ImportIntervalField,null),l.default.createElement(r.ImportLimitField,null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImportIntervalField=void 0;const l=a(n(0)),o=n(81),i=a(n(22)),r=n(37),s=n(1),u=n(30),c=n(42),d=n(15);t.ImportIntervalField=function(){const e=s.useDispatch(),t=s.useSelector(u.selectSetting("importerInterval")),n="Check for new posts",a=l.default.createElement(d.Dashicon,{icon:"warning",style:{color:"#d63638"}}),f=l.default.createElement(l.default.Fragment,null,n," ",a),m=void 0===i.default.config.cronSchedules.find(({key:e})=>t===e);return l.default.createElement(o.SettingsField,{id:"settings-import-interval",label:m?f:n},l.default.createElement(r.Select,{id:"settings-import-interval",width:250,value:t,onChange:t=>{var n;e(c.updateSettings({importerInterval:t.value})),null===(n=document.getElementsByClassName("sli-update-interval-notice").item(0))||void 0===n||n.remove()},options:i.default.config.cronScheduleOptions}))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImportLimitField=void 0;const l=a(n(0)),o=n(81),i=n(1),r=n(30),s=n(42),u=a(n(437));t.ImportLimitField=function(){const e=i.useDispatch(),t=i.useSelector(r.selectSetting("importLimit"));return l.default.createElement(o.SettingsField,{id:"settings-import-limit",label:"Max number of posts to get for each account"},l.default.createElement(u.default,{id:"settings-import-limit",type:"number",value:null!=t?t:0,onChange:t=>e(s.updateSettings({importLimit:t})),unit:"posts",min:0,units:{posts:["post","posts"]},placeholder:"No limit",emptyMin:!0}),l.default.createElement("span",{style:{fontStyle:"italic"}},"Leave empty or set to 0 for no limit."))}},function(e,t,n){e.exports={root:"UnitField__root layout__flex-row",input:"UnitField__input","unit-container":"UnitField__unit-container layout__flex-column",unitContainer:"UnitField__unit-container layout__flex-column","unit-bubble":"UnitField__unit-bubble",unitBubble:"UnitField__unit-bubble","unit-static":"UnitField__unit-static UnitField__unit-bubble layout__flex-column",unitStatic:"UnitField__unit-static UnitField__unit-bubble layout__flex-column","unit-selector":"UnitField__unit-selector UnitField__unit-bubble layout__flex-row",unitSelector:"UnitField__unit-selector UnitField__unit-bubble layout__flex-row","current-unit":"UnitField__current-unit",currentUnit:"UnitField__current-unit","menu-chevron":"UnitField__menu-chevron",menuChevron:"UnitField__menu-chevron","menu-chevron-open":"UnitField__menu-chevron-open UnitField__menu-chevron",menuChevronOpen:"UnitField__menu-chevron-open UnitField__menu-chevron","unit-list":"UnitField__unit-list layout__flex-column layout__z-highest",unitList:"UnitField__unit-list layout__flex-column layout__z-highest","unit-option":"UnitField__unit-option",unitOption:"UnitField__unit-option","unit-selected":"UnitField__unit-selected UnitField__unit-option",unitSelected:"UnitField__unit-selected UnitField__unit-option"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsOptimizationGroup=void 0;const l=a(n(0)),o=n(84),i=n(137),r=n(1076),s=n(1077),u=n(1078),c=l.default.createElement("div",null,l.default.createElement(o.Spoiler,{label:"What is this?",stealth:!0},l.default.createElement("p",null,"Spotlight imports all Instagram posts that can be displayed in your feed, even "," ",'those hidden behind a "Load more" button. The posts furthest down the list may'," ","therefore rarely be seen."),l.default.createElement("p",null,"To improve your site’s performance, you can choose to delete these unseen posts"," ","after a set period of time. Once a site visitor requests those posts, they will"," ","be re-imported."))),d=l.default.createElement("div",null,l.default.createElement(u.CleanUpMediaButton,null));t.SettingsOptimizationGroup=function({}){return l.default.createElement(i.SettingsGroup,{title:"Optimization",before:c,after:d},l.default.createElement(r.OptimizeAgeLimitField,null),l.default.createElement(s.OptimizeIntervalField,null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OptimizeAgeLimitField=void 0;const l=a(n(0)),o=n(1),i=n(81),r=a(n(437)),s=n(30),u=n(42);t.OptimizeAgeLimitField=function({}){var e,t,n;const a=o.useDispatch(),c=(null!==(e=o.useSelector(s.selectSetting("cleanerAgeLimit")))&&void 0!==e?e:"").split(" "),d=null!==(t=parseInt(c[0]))&&void 0!==t?t:0,f=null!==(n=c[1])&&void 0!==n?n:"days";return l.default.createElement(i.SettingsField,{id:"cleanerAgeLimit",label:"Delete unseen posts after"},l.default.createElement(r.default,{id:"cleanerAgeLimit",type:"number",value:d,unit:f,onChange:(e,t)=>a(u.updateSettings({cleanerAgeLimit:`${e} ${t}`})),min:1,units:{days:["day","days"],hours:["hour","hours"],minutes:["minute","minutes"]}}))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OptimizeIntervalField=void 0;const l=a(n(0)),o=n(1),i=n(81),r=a(n(22)),s=n(37),u=n(30),c=n(42);t.OptimizeIntervalField=function({}){const e=o.useDispatch(),t=o.useSelector(u.selectSetting("cleanerInterval"));return l.default.createElement(i.SettingsField,{id:"cleanerInterval",label:"Run optimization"},l.default.createElement(s.Select,{id:"cleanerInterval",width:250,value:t,options:r.default.config.cronScheduleOptions,onChange:t=>e(c.updateSettings({cleanerInterval:t.value}))}))}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CleanUpMediaButton=void 0;const o=l(n(0)),i=n(11),r=n(1),s=n(65),u=n(30),c=n(34);t.CleanUpMediaButton=function(){const e=r.useDispatch(),t=r.useSelector(u.selectSetting("cleanerAgeLimit"));return o.default.createElement(i.Button,{type:i.ButtonType.SECONDARY,size:i.ButtonSize.NORMAL,onClick:()=>a(this,void 0,void 0,(function*(){var n;e(s.showToast({key:"admin/clean_up_media/wait",message:"Optimizing, please wait ...",type:s.ToastType.STICKY}));try{const a=null!==(n=(yield c.AdminRestApi.media.cleanUp(t)).data.numCleaned)&&void 0!==n?n:0;e(s.showToast({key:"admin/clean_up_media/done",message:`Done! ${a} old posts have been removed.`}))}finally{e(s.removeToast("admin/clean_up_media/wait"))}}))},"Optimize now")}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsTweaksGroup=void 0;const l=a(n(0)),o=n(84),i=n(137),r=n(1080),s=l.default.createElement("div",null,l.default.createElement(o.Spoiler,{label:"What is this?",stealth:!0},l.default.createElement("p",null,"With this option enabled, Spotlight will pre-load the first set of posts into the page. This"," ","makes the feed load faster, but can make the page slightly slower."),l.default.createElement("p",null,"By default, this option is disabled. The feed will show grey loading boxes while the posts are"," ","being loaded in the background. This makes the feed slower, but won't impact the rest of the page."),l.default.createElement("p",null,"We recommend turning this option on when your feed is immediately visible when the page loads."," ","If your feed is further down the page, it will probably have enough time to load before your"," ","visitors can see it, so you can leave this turned off for faster page loading.")));t.SettingsTweaksGroup=function(){return l.default.createElement(i.SettingsGroup,{title:"Performance tweaks",before:s},l.default.createElement(r.PreloadPostsField,null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreloadPostsField=void 0;const l=a(n(0)),o=n(81),i=n(1),r=n(30),s=n(42);t.PreloadPostsField=function(){const e=i.useDispatch(),t=i.useSelector(r.selectSetting("preloadMedia"));return l.default.createElement(o.SettingsField,{id:"preloadMedia"},l.default.createElement("label",{htmlFor:"preloadMedia"},l.default.createElement("span",{style:{marginRight:10}},"Pre-load the first page of posts"),l.default.createElement("input",{id:"preloadMedia",type:"checkbox",checked:t,onChange:t=>e(s.updateSettings({preloadMedia:t.target.checked}))})))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsToolsTab=void 0;const l=a(n(0)),o=n(292),i=n(1082),r=n(1085);t.SettingsToolsTab=function(){return l.default.createElement(o.SettingsPage,null,l.default.createElement(i.SettingsCacheGroup,null),l.default.createElement(r.SettingsPremiumFeaturesGroup,null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsCacheGroup=void 0;const l=a(n(0)),o=n(81),i=a(n(1083)),r=n(137);t.SettingsCacheGroup=function(){return l.default.createElement(r.SettingsGroup,{title:"Cache"},l.default.createElement(o.SettingsField,{id:"clearCache",label:"If you are experiencing issues, clearing the plugin's cache may help."},l.default.createElement(i.default,null)))}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=l(n(0)),i=l(n(1084)),r=n(11),s=n(299),u=n(1),c=n(65),d=n(19),f=n(34),m=n(25),_=n(89);t.default=function({}){const e=u.useDispatch(),[t,n]=o.default.useState(!1);s.useSafeEffect(e=>{e&&t&&l().then(()=>{e&&n(!1)})},[t]);const l=()=>a(this,void 0,void 0,(function*(){e(c.removeToast("admin/clear_cache/done")),e(c.showToast({key:"admin/clear_cache/please_wait",message:"Clearing the cache. This could take a while. Please wait ...",type:c.ToastType.STICKY}));try{yield f.AdminRestApi.cache.clearAll(),e(c.showToast({key:"admin/clear_cache/done",message:"Cleared cache successfully!"}))}catch(e){_.triggerError({type:"clear_cache/error",message:d.getErrorResponseMessage(e)})}finally{e(c.removeToast("admin/clear_cache/please_wait"))}}));return o.default.createElement("div",{className:i.default.root},o.default.createElement(r.Button,{disabled:t,onClick:()=>{n(!0)}},"Clear the cache"),o.default.createElement("a",{href:m.AdminResources.cacheDocsUrl,target:"_blank",className:i.default.docLink},"What's this?"))}},function(e,t,n){e.exports={root:"ClearCacheButton__root layout__flex-row","doc-link":"ClearCacheButton__doc-link",docLink:"ClearCacheButton__doc-link"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPremiumFeaturesGroup=void 0;const l=n(137),o=a(n(0)),i=n(1086);t.SettingsPremiumFeaturesGroup=function(){return o.default.createElement(l.SettingsGroup,{title:"Show premium features"},o.default.createElement(i.SettingsPremiumFeaturesField,null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPremiumFeaturesField=void 0;const l=a(n(0)),o=n(1),i=n(30),r=n(42),s=n(81);t.SettingsPremiumFeaturesField=function(){const e=o.useDispatch(),t=o.useSelector(i.selectSetting("showPremiumFeatures"));return l.default.createElement(s.SettingsField,{id:"showPremiumFeatures"},l.default.createElement("label",{htmlFor:"showPremiumFeatures"},l.default.createElement("span",{style:{marginRight:10}},"Show all premium options"),l.default.createElement("input",{id:"showPremiumFeatures",type:"checkbox",checked:t,onChange:t=>e(r.updateSettings({showPremiumFeatures:t.target.checked}))})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";(function(e){var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminRootInner=t.AdminRoot=void 0;const i=n(310),r=o(n(0)),s=n(220),u=n(1089),c=n(71),d=n(300),f=n(1091),m=n(1092),_=n(1097),p=n(1102),h=n(12),g=n(1),v=n(438),b=n(1104),y=n(65),E=n(47),S=n(59),w=n(70),C=n(89),M=n(299),O=document.title.replace("Spotlight","%s ‹ Spotlight");function P(){const e=g.useDispatch(),t=g.useSelector(b.selectIsAdminAppLoaded),n=g.useSelector(b.selectIsAdminAppLoading),a=g.useSelector(S.selectScreen),[l,o]=r.useState(!1),[i,v]=r.useState(!1),P=r.useCallback(()=>v(!0),[v]);M.useSafeEffect(e=>{t&&i&&setTimeout(()=>e().then(()=>o(!0)),800)},[t,i]),r.useEffect(()=>{const e=c.Screens.getScreen(a);e&&(document.title=O.replace("%s",e.title))},[a]);const k=e=>{var t,n;const a=null!==(n=null!==(t=e.detail.message)&&void 0!==t?t:e.detail.response.data.message)&&void 0!==n?n:null;C.triggerError({type:"feed/fetch_media/error",message:a})},N=()=>{e(y.showToast({key:"admin/feed/import/pending",type:y.ToastType.STICKY,message:"Retrieving posts from Instagram. This may take around 30 seconds."}))},A=t=>{var n;if((null===(n=null==t?void 0:t.detail)||void 0===n?void 0:n.batching)&&e(y.showToast({key:"admin/feed/import/done",type:y.ToastType.NOTIFICATION,message:"Imported the first set of posts from Instagram. Older posts are being imported in the background."})),Array.isArray(null==t?void 0:t.detail.errors)&&t.detail.errors.length>0){let n;n=1===t.detail.errors.length?t.detail.errors[0]:"Spotlight encountered some problems while importing posts from Instagram:\n\n"+t.detail.errors.map(e=>" • "+e).join("\n"),e(y.showToast({key:"admin/feed/import/errors",type:y.ToastType.STICKY,message:n}))}},x=e=>{C.triggerError({type:"feed/import_media/error",message:e.message})},L=()=>{e(y.removeToast("admin/feed/import/pending"))};return r.useEffect(()=>(document.addEventListener(h.FetchFailEvent.Type,k),document.addEventListener(w.RestApi.media.events.import.start,N),document.addEventListener(w.RestApi.media.events.import.success,A),document.addEventListener(w.RestApi.media.events.import.fail,x),document.addEventListener(w.RestApi.media.events.import.end,L),()=>{document.removeEventListener(h.FetchFailEvent.Type,k),document.removeEventListener(w.RestApi.media.events.import.start,N),document.removeEventListener(w.RestApi.media.events.import.success,A),document.removeEventListener(w.RestApi.media.events.import.fail,x),document.removeEventListener(w.RestApi.media.events.import.end,L)}),[]),n||!l?r.default.createElement(r.default.Fragment,null,r.default.createElement(d.AdminLoading,{onLoad:P}),r.default.createElement(_.Toaster,null)):r.default.createElement(s.Router,{history:E.RouterHistory},c.Screens.getList().map((e,t)=>r.default.createElement(u.QueryRoute,{key:e.id,when:"screen",is:e.id,isRoot:0===t,render:()=>{var t;return r.default.createElement(null!==(t=e.component)&&void 0!==t?t:"div")}})),r.default.createElement(m.NewsBeacon,null),r.default.createElement(p.ModalLayer,null),r.default.createElement(f.ConnectAccountListener,null),r.default.createElement(_.Toaster,null))}t.AdminRoot=i.hot(e)((function(){return r.default.createElement(g.Provider,{store:v.AdminAppStore},r.default.createElement(P,null))})),t.AdminRootInner=P}).call(this,n(95)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryRoute=void 0;const a=n(1090);t.QueryRoute=function({when:e,is:t,isRoot:n,render:l}){const o=a.useUrlParams().get(e);return o===t||!t&&!o||n&&!o?l():null}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectAccountListener=void 0;const l=a(n(0)),o=n(31),i=a(n(157)),r=a(n(233)),s=n(51),u=n(25),c=n(110);t.ConnectAccountListener=function(){const[e,t]=l.default.useState(null),[n,a]=l.default.useState(!1),[d,f]=l.default.useState(!1);return s.useDocumentEventListener(c.AccountConnectedEvent.NAME,e=>{const l=e.account;n||d||l.type!==o.Account.Type.PERSONAL||l.customBio.length||l.customProfilePicUrl.length||(t(l.id),a(!0))}),l.default.createElement(l.default.Fragment,null,l.default.createElement(i.default,{title:"You've successfully connected your account!",buttons:["Yes","No, maybe later"],isOpen:n,onAccept:()=>{a(!1),f(!0)},onCancel:()=>a(!1)},l.default.createElement("p",null,"One more thing ..."),l.default.createElement("p",null,"Instagram doesn't provide the profile photo and bio text for Personal accounts."," ","Would you like to set a custom photo and a custom bio in Spotlight to match your Instagram profile?"),l.default.createElement("p",null,l.default.createElement("a",{href:u.AdminResources.customPersonalInfoUrl,target:"_blank"},"What's this about?"))),l.default.createElement(r.default,{isOpen:d,onClose:()=>f(!1),accountId:e}))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NewsBeacon=void 0;const l=a(n(0)),o=a(n(1093)),i=n(1),r=n(15),s=n(92),u=n(150),c=n(1094),d=n(439),f=n(1095);t.NewsBeacon=function(){const e=i.useDispatch(),t=i.useSelector(c.selectNewsMessages),n=i.useSelector(c.selectIsNewsHidden),a=i.useSelector(c.selectIsNewsOpen),m=()=>e(d.openNews()),_=s.useKeyboardActivate(m);return!n&&t.length>0&&l.default.createElement(u.Menu,{className:o.default.menu,isOpen:a,onBlur:()=>e(d.closeNews()),placement:"top-end"},({ref:e})=>l.default.createElement("div",{ref:e,className:o.default.beacon},l.default.createElement("button",{className:o.default.button,onClick:m,onKeyPress:_},l.default.createElement(r.Dashicon,{icon:"megaphone"}),t.length>0&&l.default.createElement("div",{className:o.default.counter},t.length))),l.default.createElement(u.MenuContent,null,t.map(e=>l.default.createElement(f.NewsBeaconMessage,{key:e.id,message:e})),a&&l.default.createElement("a",{className:o.default.hideLink,onClick:()=>e(d.hideNews())},"Hide")))}},function(e,t,n){e.exports={beacon:"NewsBeacon__beacon",button:"NewsBeacon__button","button-animation":"NewsBeacon__button-animation",buttonAnimation:"NewsBeacon__button-animation",counter:"NewsBeacon__counter","hide-link":"NewsBeacon__hide-link",hideLink:"NewsBeacon__hide-link",menu:"NewsBeacon__menu"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectIsNewsHidden=t.selectIsNewsOpen=t.selectNewsMessages=void 0,t.selectNewsMessages=e=>e.news.messages,t.selectIsNewsOpen=e=>e.news.isOpen,t.selectIsNewsHidden=e=>e.news.isHidden},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NewsBeaconMessage=void 0;const r=o(n(0)),s=i(n(1096)),u=i(n(228)),c=i(n(449)),d=n(148),f=n(1),m=n(59),_=n(47);t.NewsBeaconMessage=function({message:e}){const t=f.useDispatch(),n=f.useSelector(m.selectRoute),a=r.default.useRef();return r.useEffect(()=>{if(!a.current)return;const e=a.current.getElementsByTagName("a");for(let a=0;a<e.length;++a){const l=e.item(a);if("true"===l.getAttribute("data-sli-link"))continue;const o=l.getAttribute("href");if("string"!=typeof o||!o.startsWith("app://"))continue;const i=d.parse(o.substr("app://".length)),r=(n.setQuery(i),n.getAbsUrl(i));l.setAttribute("href",r),l.setAttribute("data-sli-link","true"),l.addEventListener("click",e=>{t(_.gotoRoute(i)),e.preventDefault(),e.stopPropagation()})}},[a.current]),r.default.createElement("article",{className:s.default.root},e.title&&e.title.length&&r.default.createElement("header",{className:s.default.title},e.title),r.default.createElement("main",{ref:a,className:s.default.content,dangerouslySetInnerHTML:{__html:e.content}}),e.date&&r.default.createElement("footer",{className:s.default.date},c.default(u.default(e.date),{addSuffix:!0})))}},function(e,t,n){e.exports={root:"NewsBeaconMessage__root",text:"NewsBeaconMessage__text",title:"NewsBeaconMessage__title NewsBeaconMessage__text",content:"NewsBeaconMessage__content NewsBeaconMessage__text",date:"NewsBeaconMessage__date"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Toaster=void 0;const l=a(n(0)),o=a(n(1098)),i=n(1),r=n(1099),s=n(1100);t.Toaster=function(){const e=i.useSelector(r.selectToasts);return l.default.createElement("div",{className:o.default.root},l.default.createElement("div",{className:o.default.container},e.map(e=>l.default.createElement(s.Toast,{key:e.key,toast:e}))))}},function(e,t,n){e.exports={root:"Toaster__root layout__z-highest",container:"Toaster__container"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectToasts=void 0;const a=n(38);t.selectToasts=e=>a.Dictionary.values(e.toasts)},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Toast=void 0;const r=o(n(0)),s=i(n(1101)),u=n(1),c=n(15),d=n(65),f=n(25);function m({toast:e}){return r.default.createElement("p",{style:{whiteSpace:"pre-wrap"}},e.message)}function _({toast:e}){return r.default.createElement("div",null,r.default.createElement("p",{className:s.default.heading},"Spotlight has encountered an error:"),r.default.createElement("p",{className:s.default.message},e.message),e.details&&r.default.createElement("pre",{className:s.default.details},e.details),r.default.createElement("p",{className:s.default.footer},"If this error persists, kindly"," ",r.default.createElement("a",{href:f.AdminResources.supportUrl,target:"_blank"},"contact customer support"),"."))}t.Toast=function({toast:e}){var t;const n=u.useDispatch(),[a,l]=r.default.useState(!1);let o=r.default.useRef(),i=r.default.useRef();const f=null!==(t=e.type)&&void 0!==t?t:d.ToastType.NOTIFICATION,p=f===d.ToastType.NOTIFICATION,h=()=>n(d.removeToast(e.key)),g=()=>{p&&(o.current=setTimeout(b,5e3))},v=()=>{clearTimeout(o.current)},b=()=>{l(!0),i.current=setTimeout(h,200)};r.useEffect(()=>(g(),()=>{v(),clearTimeout(i.current)}),[]);const y=a?s.default.rootFadingOut:s.default.root;return r.default.createElement("div",{className:y,onMouseOver:v,onMouseOut:g},r.default.createElement("div",{className:s.default.content},f===d.ToastType.ERROR?r.default.createElement(_,{toast:e}):r.default.createElement(m,{toast:e})),r.default.createElement("button",{className:s.default.dismissBtn,onClick:()=>{v(),b()}},r.default.createElement(c.Dashicon,{icon:"no-alt",className:s.default.dismissIcon})))}},function(e,t,n){e.exports={root:"Toast__root","fade-in-animation":"Toast__fade-in-animation",fadeInAnimation:"Toast__fade-in-animation","root-fading-out":"Toast__root-fading-out Toast__root",rootFadingOut:"Toast__root-fading-out Toast__root","fade-out-animation":"Toast__fade-out-animation",fadeOutAnimation:"Toast__fade-out-animation",content:"Toast__content","dismiss-icon":"Toast__dismiss-icon",dismissIcon:"Toast__dismiss-icon","dismiss-btn":"Toast__dismiss-btn Toast__dismiss-icon",dismissBtn:"Toast__dismiss-btn Toast__dismiss-icon"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalLayer=void 0;const l=a(n(0)),o=a(n(1103)),i=n(13);t.ModalLayer=function(){return l.default.createElement("div",{className:i.classList(o.default.modalLayer,"spotlight-modal-target")})}},function(e,t,n){e.exports={"modal-layer":"ModalLayer__modal-layer",modalLayer:"ModalLayer__modal-layer"}},,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomMediaScreen=void 0;const s=o(n(0)),u=n(1),c=r(n(1106)),d=n(146),f=n(1107),m=n(59),_=n(40),p=n(1109),h=n(23),g=n(93),v=n(358),b=n(34),y=n(294),E=n(295);function S({media:e,isSelected:t}){return s.default.createElement("div",{className:c.default.tile},s.default.createElement(g.Square,null,s.default.createElement("div",{className:t?c.default.selectedMedia:c.default.media},s.default.createElement(v.MediaTile,{media:e,className:c.default.thumbnail,overlayEnabled:!1}))))}t.CustomMediaScreen=function(){const[e,t]=s.default.useState([]),[n,a]=s.default.useState(!1),[l,o]=s.default.useState(!1),[r,_]=s.default.useState(null),g=u.useSelector(m.selectRoute).getParam("id"),v=g?parseInt(g):0,C=u.useSelector(h.selectAccountById(v));function M(){return i(this,void 0,void 0,(function*(){a(!0);try{const e=yield b.AdminRestApi.accounts.customMedia.get(v);t(e.data)}finally{a(!1)}}))}if(s.useEffect(()=>{C&&M()},[v]),!C)return null;function O(){o(!1),_(null)}return s.default.createElement(d.AdminScreen,{navbar:f.CustomMediaNavbar},n?s.default.createElement("div",{className:c.default.loadingSpinner},s.default.createElement(E.LoadingSpinner,{size:80})):s.default.createElement(y.SelectionGrid,{items:e,addButton:{children:"Create a new post",onClick:function(){_(w(C)),o(!0)}},onClick:function(e){_(e),o(!0)},disabled:n,canDeselect:!0},({item:e,isSelected:t})=>s.default.createElement(S,{media:e,isSelected:t})),s.default.createElement(p.CustomMediaModal,{media:r,accountId:v,isOpen:l,onClose:O,onSave:function(){O(),M()},onDelete:function(e){t(t=>t.filter(t=>t.id!==e.id)),O()}}))};const w=e=>({id:0,url:"",username:e.username,children:[],sources:[{id:e.username,type:_.Media.Source.getTypeForAccountType(e.type)}]})},function(e,t,n){e.exports={"loading-spinner":"CustomMediaScreen__loading-spinner",loadingSpinner:"CustomMediaScreen__loading-spinner",tile:"CustomMediaScreen__tile",media:"CustomMediaScreen__media","selected-media":"CustomMediaScreen__selected-media CustomMediaScreen__media",selectedMedia:"CustomMediaScreen__selected-media CustomMediaScreen__media",thumbnail:"CustomMediaScreen__thumbnail"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomMediaNavbar=void 0;const l=a(n(0)),o=a(n(1108)),i=n(11),r=n(1),s=n(71),u=n(59),c=n(23),d=n(243),f=a(n(187)),m=n(15);t.CustomMediaNavbar=function(){var e;const t=r.useSelector(u.selectRoute).getParam("id"),n=t?parseInt(t):0,a=r.useSelector(c.selectAccountById(n)),_=null!==(e=null==a?void 0:a.username)&&void 0!==e?e:"(Account does not exist)";return l.default.createElement(d.Navbar,null,l.default.createElement(l.default.Fragment,null,l.default.createElement(d.Navbar.Item,null,"Settings"),l.default.createElement(d.Navbar.Chevron,null),l.default.createElement(d.Navbar.Link,{linkTo:{screen:s.SCREENS.SETTINGS,tab:"accounts"}},"Accounts"),l.default.createElement(d.Navbar.Chevron,null),l.default.createElement(d.Navbar.Item,null,l.default.createElement("div",{className:o.default.navUsernameItem},l.default.createElement(f.default,{account:a,className:o.default.profilePic}),l.default.createElement("span",null,"@",_)))),l.default.createElement(l.default.Fragment,null,l.default.createElement(d.Navbar.Section,null,l.default.createElement(i.Button,{type:i.ButtonType.PILL,size:i.ButtonSize.LARGE,onClick:function(){history.back()}},l.default.createElement(m.Dashicon,{icon:"arrow-left-alt"}),l.default.createElement("span",null,"Go back")))))}},function(e,t,n){e.exports={"nav-username-item":"CustomMediaNavbar__nav-username-item",navUsernameItem:"CustomMediaNavbar__nav-username-item","profile-pic":"CustomMediaNavbar__profile-pic",profilePic:"CustomMediaNavbar__profile-pic"}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(l,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,r)}s((a=a.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomMediaModal=void 0;const s=o(n(0)),u=r(n(1110)),c=n(60),d=n(40),f=n(11),m=n(16),_=n(1111),p=n(34),h=n(39);t.CustomMediaModal=function({media:e,accountId:t,isOpen:n,onClose:a,onSave:l,onDelete:o}){var r,g;const[v,b]=s.default.useState(e),[y,E]=s.default.useState(!1),[S,w]=s.default.useState(!1);s.useEffect(()=>{b(e)},[e]);const C=e&&(null==e?void 0:e.id),M=null===v||d.Media.explode(v).filter(e=>{var t;return(null!==(t=e.url)&&void 0!==t?t:"").length>0}).length>0;return s.default.createElement(c.Modal,{title:"Custom post",width:800,isOpen:n&&null!==e,onClose:a},s.default.createElement(c.Modal.Content,null,v&&s.default.createElement(s.default.Fragment,null,v.type!==d.Media.Type.ALBUM&&s.default.createElement(s.default.Fragment,null,s.default.createElement(h.Message,{type:h.MessageType.INFO,showIcon:!0},s.default.createElement("b",null,"Tip:")," Add multiple images or videos to create a gallery post."),s.default.createElement("br",null)),s.default.createElement(_.CustomMediaSelector,{media:v,onChange:b}),s.default.createElement("div",{className:u.default.fieldRow},s.default.createElement("label",null,s.default.createElement("span",null,"Instagram URL"),s.default.createElement("input",{type:"url",value:null!==(r=v.permalink)&&void 0!==r?r:"",onChange:function(e){const t=e.target.value;b(e=>m.withPartial(e,{permalink:t}))}}))),s.default.createElement("div",{className:u.default.fieldRow},s.default.createElement("label",null,s.default.createElement("span",null,"Caption"),s.default.createElement("textarea",{value:v.caption,onChange:function(e){const t=e.target.value;b(e=>m.withPartial(e,{caption:t}))},rows:4}))))),s.default.createElement(c.Modal.Footer,{style:"space-between"},C?s.default.createElement(f.Button,{type:f.ButtonType.DANGER,size:f.ButtonSize.LARGE,onClick:function(){return i(this,void 0,void 0,(function*(){w(!0);try{yield p.AdminRestApi.accounts.customMedia.delete(t,e.id)}finally{w(!1)}o(v)}))},disabled:S},S?"Please wait ...":"Delete post"):s.default.createElement("div",null),s.default.createElement(f.Button,{type:f.ButtonType.PRIMARY,size:f.ButtonSize.LARGE,onClick:function(){return i(this,void 0,void 0,(function*(){E(!0);try{e.id<=0?yield p.AdminRestApi.accounts.customMedia.add(t,v):yield p.AdminRestApi.accounts.customMedia.update(t,e.id,v)}finally{E(!1)}l(v)}))},disabled:y||!M||!v||!(null===(g=null==v?void 0:v.permalink)||void 0===g?void 0:g.length)},y?"Please wait ...":"Save post")))}},function(e,t,n){e.exports={"add-media-row":"CustomMediaModal__add-media-row",addMediaRow:"CustomMediaModal__add-media-row","field-row":"CustomMediaModal__field-row",fieldRow:"CustomMediaModal__field-row"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomMediaSelector=void 0;const l=a(n(0)),o=a(n(1112)),i=n(40),r=n(1113),s=n(235),u=n(294),c=n(93),d=n(131),f=n(189),m=n(15);function _({media:e,onRemove:t,onMoveLeft:n,onMoveRight:a,canMoveLeft:i,canMoveRight:r}){const[s,u]=l.default.useState(!1);return l.default.createElement("div",{onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1)},l.default.createElement(c.Square,null,l.default.createElement(d.MediaThumbnail,{media:e}),s&&l.default.createElement("div",{className:o.default.mediaOverlay},l.default.createElement("div",{className:o.default.moveControls},i?l.default.createElement(f.DivButton,{className:o.default.arrowButton,title:"Move left",onClick:n},l.default.createElement(m.Dashicon,{icon:"arrow-left-alt"})):l.default.createElement("div",null),r?l.default.createElement(f.DivButton,{className:o.default.arrowButton,title:"Move right",onClick:a},l.default.createElement(m.Dashicon,{icon:"arrow-right-alt"})):l.default.createElement("div",null)),l.default.createElement(f.DivButton,{className:o.default.deleteButton,title:"Remove",onClick:t},l.default.createElement(m.Dashicon,{icon:"trash"})))))}t.CustomMediaSelector=function({media:e,onChange:t}){const n=i.Media.explode(e).filter(e=>e.url);function a(n,a){t(r.moveChild(e,n,a))}return l.default.createElement("div",{className:o.default.mediaGrid},l.default.createElement(s.WpUploadMedia,{id:"custom-post-media",title:"Select media",onSelect:function(n){t(n.reduce(r.addToMedia,e))},multiple:!0},({open:o})=>l.default.createElement(u.SelectionGrid,{canDeselect:!0,items:n,gridStyle:{justifyContent:"center"},addButton:{children:"Add media",onClick:o}},({item:o,idx:i})=>l.default.createElement(_,{media:o,onRemove:()=>function(n){t(r.removeFromMedia(e,n))}(i),onMoveLeft:()=>a(i,-1),onMoveRight:()=>a(i,1),canMoveLeft:i>0,canMoveRight:i<n.length-1}))))}},function(e,t,n){e.exports={"media-grid":"CustomMediaSelector__media-grid",mediaGrid:"CustomMediaSelector__media-grid","media-overlay":"CustomMediaSelector__media-overlay",mediaOverlay:"CustomMediaSelector__media-overlay","move-controls":"CustomMediaSelector__move-controls",moveControls:"CustomMediaSelector__move-controls",button:"CustomMediaSelector__button","arrow-button":"CustomMediaSelector__arrow-button CustomMediaSelector__button",arrowButton:"CustomMediaSelector__arrow-button CustomMediaSelector__button","delete-button":"CustomMediaSelector__delete-button CustomMediaSelector__button",deleteButton:"CustomMediaSelector__delete-button CustomMediaSelector__button"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getMediaType=t.moveChild=t.removeFromMedia=t.addToMedia=void 0;const l=n(40),o=(a(n(236)),n(49)),i=n(16);function r(e){switch(e){case"image":return l.Media.Type.IMAGE;case"video":return l.Media.Type.VIDEO}}function s(e){var t,n;const a=null!==(t=e.size)&&void 0!==t?t:{width:0,height:0};return(null!==(n=null==e?void 0:e.children)&&void 0!==n?n:[]).forEach(e=>{var t,n,l,o;a.width=Math.max(a.width,null!==(n=null===(t=e.size)||void 0===t?void 0:t.width)&&void 0!==n?n:0),a.height=Math.max(a.height,null!==(o=null===(l=e.size)||void 0===l?void 0:l.height)&&void 0!==o?o:0)}),!e.size||0===e.size.width&&0===e.size.height?null:a}t.addToMedia=function(e,t){e=o.cloneObj(e);const n=t.attributes.url,a=r(t.attributes.type),i={width:t.attributes.width,height:t.attributes.height};if(e.url){const t=Object.assign({id:0},e);e.url="",e.type=l.Media.Type.ALBUM,e.children=[t]}return e.type==l.Media.Type.ALBUM?e.children.push({id:0,type:a,url:n,size:i}):(e.type=a,e.url=n,e.size=i),e.size=s(e),e},t.removeFromMedia=function(e,t){if((e=o.cloneObj(e)).type===l.Media.Type.ALBUM){if(e.children.splice(t,1),1===e.children.length){const t=e.children[0];e.children=[],e=i.withPartial(e,t)}}else e.url=null;return e.size=s(e),e},t.moveChild=function(e,t,n){const a=t+n;if(e.type!==l.Media.Type.ALBUM||a<0||a>e.children.length-1)return e;const i=(e=o.cloneObj(e)).children[a];return e.children[a]=e.children[t],e.children[t]=i,e},t.getMediaType=r},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArticleIcon=void 0;const l=a(n(0));t.ArticleIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M1 1H24V26H2C1.44771 26 1 25.5523 1 25V1Z",fill:"white",stroke:"currentColor",strokeWidth:"2"}),l.default.createElement("path",{d:"M6 4H29V29H7C6.44771 29 6 28.5523 6 28V4Z",fill:"white",stroke:"currentColor",strokeWidth:"2"}),l.default.createElement("path",{d:"M8.5 6.5H26.5V13.5H8.5V6.5Z",fill:"white",stroke:"currentColor"}),l.default.createElement("mask",{id:"path-4-inside-1_1205_453",fill:"white"},l.default.createElement("path",{d:"M8 16H27V17H8V16Z"})),l.default.createElement("path",{d:"M8 16H27V17H8V16Z",fill:"white"}),l.default.createElement("path",{d:"M8 16V14H6V16H8ZM27 16H29V14H27V16ZM27 17V19H29V17H27ZM8 17H6V19H8V17ZM8 18H27V14H8V18ZM25 16V17H29V16H25ZM27 15H8V19H27V15ZM10 17V16H6V17H10Z",fill:"currentColor",mask:"url(#path-4-inside-1_1205_453)"}),l.default.createElement("mask",{id:"path-6-inside-2_1205_453",fill:"white"},l.default.createElement("path",{d:"M8 19H27V20H8V19Z"})),l.default.createElement("path",{d:"M8 19H27V20H8V19Z",fill:"white"}),l.default.createElement("path",{d:"M8 19V17H6V19H8ZM27 19H29V17H27V19ZM27 20V22H29V20H27ZM8 20H6V22H8V20ZM8 21H27V17H8V21ZM25 19V20H29V19H25ZM27 18H8V22H27V18ZM10 20V19H6V20H10Z",fill:"currentColor",mask:"url(#path-6-inside-2_1205_453)"}),l.default.createElement("mask",{id:"path-8-inside-3_1205_453",fill:"white"},l.default.createElement("path",{d:"M8 22H27V23H8V22Z"})),l.default.createElement("path",{d:"M8 22H27V23H8V22Z",fill:"white"}),l.default.createElement("path",{d:"M8 22V20H6V22H8ZM27 22H29V20H27V22ZM27 23V25H29V23H27ZM8 23H6V25H8V23ZM8 24H27V20H8V24ZM25 22V23H29V22H25ZM27 21H8V25H27V21ZM10 23V22H6V23H10Z",fill:"currentColor",mask:"url(#path-8-inside-3_1205_453)"}),l.default.createElement("mask",{id:"path-10-inside-4_1205_453",fill:"white"},l.default.createElement("path",{d:"M8 25H27V26H8V25Z"})),l.default.createElement("path",{d:"M8 25H27V26H8V25Z",fill:"white"}),l.default.createElement("path",{d:"M8 25V23H6V25H8ZM27 25H29V23H27V25ZM27 26V28H29V26H27ZM8 26H6V28H8V26ZM8 27H27V23H8V27ZM25 25V26H29V25H25ZM27 24H8V28H27V24ZM10 26V25H6V26H10Z",fill:"currentColor",mask:"url(#path-10-inside-4_1205_453)"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ToolsIcon=void 0;const l=a(n(0));t.ToolsIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("circle",{xmlns:"http://www.w3.org/2000/svg",cx:"15",cy:"15",r:"14",fill:"white",stroke:"currentColor",strokeWidth:"2"}),l.default.createElement("path",{xmlns:"http://www.w3.org/2000/svg",d:"M19.7071 15.7071C20.0976 15.3166 20.0976 14.6834 19.7071 14.2929L13.3431 7.92893C12.9526 7.53841 12.3195 7.53841 11.9289 7.92893C11.5384 8.31946 11.5384 8.95262 11.9289 9.34315L17.5858 15L11.9289 20.6569C11.5384 21.0474 11.5384 21.6805 11.9289 22.0711C12.3195 22.4616 12.9526 22.4616 13.3431 22.0711L19.7071 15.7071ZM18 16H19V14H18V16Z",fill:"currentColor"}))},,,,,,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return l(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Wizard=t.WizardStep=void 0;const r=i(n(1124)),s=o(n(0)),u=n(1125),c=n(1211);n(1127),t.WizardStep=c.SwiperSlide,t.Wizard=function({children:e,steps:t=[],initialStep:n,current:a,incomplete:l}){const o=s.useRef(),i=s.useCallback(e=>o.current=e,[o]);return s.useEffect(()=>{var e;null===(e=o.current)||void 0===e||e.slideTo(a)},[a]),s.default.createElement("div",{className:r.default.wizard},t.length>0&&s.default.createElement(u.WizardSteps,{steps:t,current:a,incomplete:l}),s.default.createElement("div",{className:r.default.swiper},s.default.createElement(c.Swiper,{initialSlide:n,onSwiper:i,slidesPerView:1,allowTouchMove:!1,children:e})))}},function(e,t,n){e.exports={wizard:"Wizard__wizard layout__flex-column",swiper:"Wizard__swiper"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WizardSteps=void 0;const l=a(n(1126)),o=a(n(0));t.WizardSteps=function({current:e,steps:t,incomplete:n}){const a=e>=t.length&&!n?l.default.lineDone:n?l.default.lineDashed:l.default.line;return o.default.createElement("div",{className:l.default.root},o.default.createElement("div",{className:l.default.lineList},t.map((t,n)=>o.default.createElement("div",{key:n,className:e>=n?l.default.lineDone:l.default.line})),o.default.createElement("div",{className:a})),o.default.createElement("div",{className:l.default.stepList},t.map((t,n)=>o.default.createElement("div",{key:n,className:l.default.step},o.default.createElement("div",{className:l.default.label},t),o.default.createElement("div",{className:e>=n?l.default.dotDone:l.default.dot}))),o.default.createElement("div",{className:l.default.step})))}},function(e,t,n){e.exports={root:"WizardSteps__root","step-list":"WizardSteps__step-list",stepList:"WizardSteps__step-list",step:"WizardSteps__step",dot:"WizardSteps__dot","dot-done":"WizardSteps__dot-done WizardSteps__dot",dotDone:"WizardSteps__dot-done WizardSteps__dot",label:"WizardSteps__label","line-list":"WizardSteps__line-list",lineList:"WizardSteps__line-list",line:"WizardSteps__line","line-done":"WizardSteps__line-done WizardSteps__line",lineDone:"WizardSteps__line-done WizardSteps__line","line-dashed":"WizardSteps__line-dashed WizardSteps__line",lineDashed:"WizardSteps__line-dashed WizardSteps__line"}},,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RadioGroup=void 0;const l=a(n(0)),o=a(n(1129));t.RadioGroup=function({name:e,className:t,disabled:n,value:a,onChange:i,options:r}){const s=e=>{!n&&e.target.checked&&i&&i(e.target.value)};return t=(n?o.default.disabled:o.default.radioGroup)+" "+(null!=t?t:""),l.default.createElement("div",{className:t},r.map((t,n)=>l.default.createElement("label",{className:o.default.option,key:n},l.default.createElement("input",{type:"radio",name:e,value:t.value,checked:a===t.value,onChange:s}),l.default.createElement("span",null,t.label))))}},function(e,t,n){e.exports={"radio-group":"RadioGroup__radio-group",radioGroup:"RadioGroup__radio-group",disabled:"RadioGroup__disabled RadioGroup__radio-group theme__disabled",option:"RadioGroup__option"}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FollowIcon=void 0;const l=a(n(0));t.FollowIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("rect",{x:"0.500649",y:"0.500649",width:"28.9987",height:"28.9987",rx:"1.50195",fill:"white",stroke:"currentColor",strokeWidth:"2"}),l.default.createElement("path",{d:"M15 7L15 23",stroke:"currentColor",strokeWidth:"2.0026"}),l.default.createElement("path",{d:"M7 15L23 15",stroke:"currentColor",strokeWidth:"2.0026"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CaptionsIcon=void 0;const l=a(n(0));t.CaptionsIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("rect",{x:"0.500649",y:"0.500649",width:"28.9987",height:"28.9987",rx:"1.50195",fill:"white",stroke:"currentColor",strokeWidth:"1.0013"}),l.default.createElement("path",{d:"M10.7129 21.4275L25.7129 21.4275",stroke:"currentColor",strokeWidth:"1.0013"}),l.default.createElement("path",{d:"M4.28516 17.1421L25.7137 17.1421",stroke:"currentColor",strokeWidth:"1.0013"}),l.default.createElement("path",{d:"M4.28516 21.4275L8.1423 21.4275",stroke:"currentColor",strokeWidth:"1.0013"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutIcon=void 0;const l=a(n(0));t.LayoutIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("rect",{x:"0.500649",y:"0.500649",width:"12.8449",height:"12.8449",rx:"0.500649",fill:"white",stroke:"currentColor",strokeWidth:"1.5"}),l.default.createElement("rect",{x:"16.6549",y:"0.500649",width:"12.8449",height:"12.8449",rx:"0.500649",fill:"white",stroke:"currentColor",strokeWidth:"1.5"}),l.default.createElement("rect",{x:"0.500649",y:"16.6547",width:"12.8449",height:"12.8449",rx:"0.500649",fill:"white",stroke:"currentColor",strokeWidth:"1.5"}),l.default.createElement("rect",{x:"16.6549",y:"16.6547",width:"12.8449",height:"12.8449",rx:"0.500649",fill:"white",stroke:"currentColor",strokeWidth:"1.5"}))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LikesIcon=void 0;const l=a(n(0));t.LikesIcon=l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M27.0729 14.5732L15.8074 27.4481C15.38 27.9366 14.62 27.9366 14.1926 27.4481L3.05668 14.7213C1.79389 13.2781 1.13036 11.3924 1.20471 9.47288C1.35104 5.6952 5.2472 3.22783 8.69945 4.72423L12.4036 6.32982L13.5607 6.90835C14.4667 7.36139 15.5333 7.36139 16.4393 6.90835L17.5896 6.33322L21.5159 4.69727C25.0416 3.22823 28.9272 5.81863 28.9272 9.63813C28.9272 11.4535 28.2683 13.2071 27.0729 14.5732Z",fill:"white",stroke:"currentColor",strokeWidth:"2.14564"}))}]]);
ui/dist/admin-vendors.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see admin-vendors.js.LICENSE.txt */
2
- (window.webpackJsonpSpotlight=window.webpackJsonpSpotlight||[]).push([[5],[,function(e,t,n){"use strict";n.r(t),n.d(t,"Provider",(function(){return l})),n.d(t,"connectAdvanced",(function(){return j})),n.d(t,"ReactReduxContext",(function(){return i})),n.d(t,"connect",(function(){return V})),n.d(t,"batch",(function(){return K.unstable_batchedUpdates})),n.d(t,"useDispatch",(function(){return Y})),n.d(t,"createDispatchHook",(function(){return z})),n.d(t,"useSelector",(function(){return G})),n.d(t,"createSelectorHook",(function(){return X})),n.d(t,"useStore",(function(){return W})),n.d(t,"createStoreHook",(function(){return B})),n.d(t,"shallowEqual",(function(){return S}));var r=n(0),o=n.n(r),i=(n(20),o.a.createContext(null)),a=function(e){e()},u={notify:function(){}};var s=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=u,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t,n;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=(e=a,t=null,n=null,{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=u)},e}(),c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,l=function(e){var t=e.store,n=e.context,a=e.children,u=Object(r.useMemo)((function(){var e=new s(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),l=Object(r.useMemo)((function(){return t.getState()}),[t]);c((function(){var e=u.subscription;return e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[u,l]);var f=n||i;return o.a.createElement(f.Provider,{value:u},a)},f=n(14),p=n(50),d=n(63),h=n.n(d),v=n(99),b=[],y=[null,null];function g(e,t){var n=e[1];return[t.payload,n+1]}function m(e,t,n){c((function(){return e.apply(void 0,t)}),n)}function O(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function w(e,t,n,r,o,i,a,u,s,c){if(e){var l=!1,f=null,p=function(){if(!l){var e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||s():(i.current=e,u.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=p,n.trySubscribe(),p(),function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var x=function(){return[null,0]};function j(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,u=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,c=n.methodName,l=void 0===c?"connectAdvanced":c,d=n.renderCountProp,j=void 0===d?void 0:d,E=n.shouldHandleStateChanges,S=void 0===E||E,_=n.storeKey,P=void 0===_?"store":_,C=(n.withRef,n.forwardRef),A=void 0!==C&&C,M=n.context,k=void 0===M?i:M,I=Object(p.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),D=k;return function(t){var n=t.displayName||t.name||"Component",i=u(n),a=Object(f.a)({},I,{getDisplayName:u,methodName:l,renderCountProp:j,shouldHandleStateChanges:S,storeKey:P,displayName:i,wrappedComponentName:n,WrappedComponent:t}),c=I.pure,d=c?r.useMemo:function(e){return e()};function E(n){var i=Object(r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=Object(p.a)(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),u=i[0],c=i[1],l=i[2],h=Object(r.useMemo)((function(){return u&&u.Consumer&&Object(v.isContextConsumer)(o.a.createElement(u.Consumer,null))?u:D}),[u,D]),j=Object(r.useContext)(h),E=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(j)&&Boolean(j.store);var _=E?n.store:j.store,P=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(_)}),[_]),C=Object(r.useMemo)((function(){if(!S)return y;var e=new s(_,E?null:j.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[_,E,j]),A=C[0],M=C[1],k=Object(r.useMemo)((function(){return E?j:Object(f.a)({},j,{subscription:A})}),[E,j,A]),I=Object(r.useReducer)(g,b,x),R=I[0][0],T=I[1];if(R&&R.error)throw R.error;var N=Object(r.useRef)(),L=Object(r.useRef)(l),F=Object(r.useRef)(),U=Object(r.useRef)(!1),V=d((function(){return F.current&&l===L.current?F.current:P(_.getState(),l)}),[_,R,l]);m(O,[L,N,U,l,V,F,M]),m(w,[S,_,A,P,L,N,U,F,M,T],[_,A,P]);var H=Object(r.useMemo)((function(){return o.a.createElement(t,Object(f.a)({},V,{ref:c}))}),[c,t,V]);return Object(r.useMemo)((function(){return S?o.a.createElement(h.Provider,{value:k},H):H}),[h,H,k])}var _=c?o.a.memo(E):E;if(_.WrappedComponent=t,_.displayName=i,A){var C=o.a.forwardRef((function(e,t){return o.a.createElement(_,Object(f.a)({},e,{reactReduxForwardedRef:t}))}));return C.displayName=i,C.WrappedComponent=t,h()(C,t)}return h()(_,t)}}function E(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function S(e,t){if(E(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!E(e[n[o]],t[n[o]]))return!1;return!0}var _=n(75);function P(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function C(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function A(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=C(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=C(o),o=r(t,n)),o},r}}var M=[function(e){return"function"==typeof e?A(e):void 0},function(e){return e?void 0:P((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?P((function(t){return Object(_.c)(e,t)})):void 0}],k=[function(e){return"function"==typeof e?A(e):void 0},function(e){return e?void 0:P((function(){return{}}))}];function I(e,t,n){return Object(f.a)({},n,e,t)}var D=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,u){var s=e(t,n,u);return a?o&&i(s,r)||(r=s):(a=!0,r=s),r}}}(e):void 0},function(e){return e?void 0:function(){return I}}];function R(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function T(e,t,n,r,o){var i,a,u,s,c,l=o.areStatesEqual,f=o.areOwnPropsEqual,p=o.areStatePropsEqual,d=!1;return function(o,h){return d?function(o,d){var h,v,b=!f(d,a),y=!l(o,i);return i=o,a=d,b&&y?(u=e(i,a),t.dependsOnOwnProps&&(s=t(r,a)),c=n(u,s,a)):b?(e.dependsOnOwnProps&&(u=e(i,a)),t.dependsOnOwnProps&&(s=t(r,a)),c=n(u,s,a)):y?(h=e(i,a),v=!p(h,u),u=h,v&&(c=n(u,s,a)),c):c}(o,h):(u=e(i=o,a=h),s=t(r,a),c=n(u,s,a),d=!0,c)}}function N(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Object(p.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),u=r(e,i),s=o(e,i);return(i.pure?T:R)(a,u,s,e,i)}function L(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function F(e,t){return e===t}function U(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?j:n,o=t.mapStateToPropsFactories,i=void 0===o?k:o,a=t.mapDispatchToPropsFactories,u=void 0===a?M:a,s=t.mergePropsFactories,c=void 0===s?D:s,l=t.selectorFactory,d=void 0===l?N:l;return function(e,t,n,o){void 0===o&&(o={});var a=o,s=a.pure,l=void 0===s||s,h=a.areStatesEqual,v=void 0===h?F:h,b=a.areOwnPropsEqual,y=void 0===b?S:b,g=a.areStatePropsEqual,m=void 0===g?S:g,O=a.areMergedPropsEqual,w=void 0===O?S:O,x=Object(p.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),j=L(e,i,"mapStateToProps"),E=L(t,u,"mapDispatchToProps"),_=L(n,c,"mergeProps");return r(d,Object(f.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:j,initMapDispatchToProps:E,initMergeProps:_,pure:l,areStatesEqual:v,areOwnPropsEqual:y,areStatePropsEqual:m,areMergedPropsEqual:w},x))}}var V=U();function H(){return Object(r.useContext)(i)}function B(e){void 0===e&&(e=i);var t=e===i?H:function(){return Object(r.useContext)(e)};return function(){return t().store}}var W=B();function z(e){void 0===e&&(e=i);var t=e===i?W:B(e);return function(){return t().dispatch}}var Y=z(),q=function(e,t){return e===t};function X(e){void 0===e&&(e=i);var t=e===i?H:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=q);var o=t(),i=function(e,t,n,o){var i,a=Object(r.useReducer)((function(e){return e+1}),0)[1],u=Object(r.useMemo)((function(){return new s(n,o)}),[n,o]),l=Object(r.useRef)(),f=Object(r.useRef)(),p=Object(r.useRef)(),d=Object(r.useRef)(),h=n.getState();try{if(e!==f.current||h!==p.current||l.current){var v=e(h);i=void 0!==d.current&&t(v,d.current)?d.current:v}else i=d.current}catch(e){throw l.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),e}return c((function(){f.current=e,p.current=h,d.current=i,l.current=void 0})),c((function(){function e(){try{var e=f.current(n.getState());if(t(e,d.current))return;d.current=e}catch(e){l.current=e}a()}return u.onStateChange=e,u.trySubscribe(),e(),function(){return u.tryUnsubscribe()}}),[n,u]),i}(e,n,o.store,o.subscription);return Object(r.useDebugValue)(i),i}}var $,G=X(),K=n(22);$=K.unstable_batchedUpdates,a=$},,function(e,t,n){"use strict";n.d(t,"a",(function(){return R})),n.d(t,"b",(function(){return j})),n.d(t,"c",(function(){return Ie})),n.d(t,"d",(function(){return P})),n.d(t,"e",(function(){return E})),n.d(t,"f",(function(){return I})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return _})),n.d(t,"i",(function(){return W})),n.d(t,"j",(function(){return O})),n.d(t,"k",(function(){return y})),n.d(t,"l",(function(){return le})),n.d(t,"m",(function(){return ke})),n.d(t,"n",(function(){return te})),n.d(t,"o",(function(){return be})),n.d(t,"p",(function(){return ce})),n.d(t,"q",(function(){return ye})),n.d(t,"r",(function(){return ge})),n.d(t,"s",(function(){return re})),n.d(t,"t",(function(){return fe})),n.d(t,"u",(function(){return me})),n.d(t,"v",(function(){return de})),n.d(t,"w",(function(){return X})),n.d(t,"x",(function(){return H})),n.d(t,"y",(function(){return z})),n.d(t,"z",(function(){return Q})),n.d(t,"A",(function(){return we})),n.d(t,"B",(function(){return xe})),n.d(t,"C",(function(){return F})),n.d(t,"D",(function(){return je})),n.d(t,"E",(function(){return q})),n.d(t,"F",(function(){return Ce})),n.d(t,"G",(function(){return Ae})),n.d(t,"H",(function(){return Me})),n.d(t,"I",(function(){return ne})),n.d(t,"J",(function(){return D}));var r=n(7),o=n(5),i=n(76);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=n(170),s=n.n(u),c=n(57),l=n(58),f=n(59),p=n(65),d=n(0),h=n(22);function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}var w=function(){};function x(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function j(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(x(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var E=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===a(e)&&null!==e?[e]:[]},S=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,y({},Object(i.a)(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]))};function _(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}function P(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function C(e){return P(e)?window.pageYOffset:e.scrollTop}function A(e,t){P(e)?window.scrollTo(0,t):e.scrollTop=t}function M(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,o=C(e),i=t-o,a=10,u=0;function s(){var t=M(u+=a,o,i,n);A(e,t),u<n?window.requestAnimationFrame(s):r(e)}s()}function I(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?A(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&A(e,Math.max(t.offsetTop-o,0))}function D(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function R(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var T=!1,N={get passive(){return T=!0}},L="undefined"!=typeof window?window:{};L.addEventListener&&L.removeEventListener&&(L.addEventListener("p",w,N),L.removeEventListener("p",w,!1));var F=T;function U(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,u=e.theme.spacing,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var l=s.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,d=f.height,h=f.top,v=n.offsetParent.getBoundingClientRect().top,b=window.innerHeight,y=C(s),g=parseInt(getComputedStyle(n).marginBottom,10),m=parseInt(getComputedStyle(n).marginTop,10),O=v-m,w=b-h,x=O+y,j=l-y-h,E=p-b+y+g,S=y+h-m;switch(o){case"auto":case"bottom":if(w>=d)return{placement:"bottom",maxHeight:t};if(j>=d&&!a)return i&&k(s,E,160),{placement:"bottom",maxHeight:t};if(!a&&j>=r||a&&w>=r)return i&&k(s,E,160),{placement:"bottom",maxHeight:a?w-g:j-g};if("auto"===o||a){var _=t,P=a?O:x;return P>=r&&(_=Math.min(P-g-u.controlHeight,t)),{placement:"top",maxHeight:_}}if("bottom"===o)return i&&A(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(O>=d)return{placement:"top",maxHeight:t};if(x>=d&&!a)return i&&k(s,S,160),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&O>=r){var M=t;return(!a&&x>=r||a&&O>=r)&&(M=a?O-m:x-m),i&&k(s,S,160),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var V=function(e){return"auto"===e?"bottom":e},H=function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return t={label:"menu"},Object(p.a)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Object(p.a)(t,"backgroundColor",a.neutral0),Object(p.a)(t,"borderRadius",o),Object(p.a)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(p.a)(t,"marginBottom",i.menuGutter),Object(p.a)(t,"marginTop",i.menuGutter),Object(p.a)(t,"position","absolute"),Object(p.a)(t,"width","100%"),Object(p.a)(t,"zIndex",1),t},B=Object(d.createContext)({getPortalPlacement:null}),W=function(e){Object(f.a)(n,e);var t=O(n);function n(){var e;Object(c.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,u=n.menuShouldScrollIntoView,s=n.theme;if(t){var c="fixed"===a,l=U({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:u&&!c,isFixedPosition:c,theme:s}),f=e.context.getPortalPlacement;f&&f(l),e.setState(l)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||V(t);return y(y({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Object(l.a)(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(d.Component);W.contextType=B;var z=function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},Y=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},q=Y,X=Y,$=function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,u=e.innerProps;return Object(o.c)("div",Object(r.a)({css:a("noOptionsMessage",e),className:i({"menu-notice":!0,"menu-notice--no-options":!0},n)},u),t)};$.defaultProps={children:"No options"};var G=function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,u=e.innerProps;return Object(o.c)("div",Object(r.a)({css:a("loadingMessage",e),className:i({"menu-notice":!0,"menu-notice--loading":!0},n)},u),t)};G.defaultProps={children:"Loading..."};var K,J,Z,Q=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},ee=function(e){Object(f.a)(n,e);var t=O(n);function n(){var e;Object(c.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==V(e.props.menuPlacement)&&e.setState({placement:n})},e}return Object(l.a)(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,i=e.className,a=e.controlElement,u=e.cx,s=e.innerProps,c=e.menuPlacement,l=e.menuPosition,f=e.getStyles,p="fixed"===l;if(!t&&!p||!a)return null;var d=this.state.placement||V(c),v=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(a),b=p?0:window.pageYOffset,y={offset:v[d]+b,position:l,rect:v},g=Object(o.c)("div",Object(r.a)({css:f("menuPortal",y),className:u({"menu-portal":!0},i)},s),n);return Object(o.c)(B.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?Object(h.createPortal)(g,t):g)}}]),n}(d.Component),te=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},ne=function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},re=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},oe={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ie=function(e){var t=e.size,n=Object(i.a)(e,["size"]);return Object(o.c)("svg",Object(r.a)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:oe},n))},ae=function(e){return Object(o.c)(ie,Object(r.a)({size:20},e),Object(o.c)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ue=function(e){return Object(o.c)(ie,Object(r.a)({size:20},e),Object(o.c)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},se=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},ce=se,le=se,fe=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},pe=Object(o.d)(K||(J=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Z||(Z=J.slice(0)),K=Object.freeze(Object.defineProperties(J,{raw:{value:Object.freeze(Z)}})))),de=function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},he=function(e){var t=e.delay,n=e.offset;return Object(o.c)("span",{css:Object(o.b)({animation:"".concat(pe," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ve=function(e){var t=e.className,n=e.cx,i=e.getStyles,a=e.innerProps,u=e.isRtl;return Object(o.c)("div",Object(r.a)({css:i("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},a),Object(o.c)(he,{delay:0,offset:u}),Object(o.c)(he,{delay:160,offset:!0}),Object(o.c)(he,{delay:320,offset:!u}))};ve.defaultProps={size:4};var be=function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},ye=function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},ge=function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},me=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},Oe=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},we=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},xe=function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},je=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},Ee=function(e){var t=e.children,n=e.innerProps;return Object(o.c)("div",n,t)},Se=Ee,_e=Ee,Pe=function(e){var t=e.children,n=e.className,r=e.components,i=e.cx,a=e.data,u=e.getStyles,s=e.innerProps,c=e.isDisabled,l=e.removeProps,f=e.selectProps,p=r.Container,d=r.Label,h=r.Remove;return Object(o.c)(o.a,null,(function(r){var v=r.css,b=r.cx;return Object(o.c)(p,{data:a,innerProps:y({className:b(v(u("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":c},n))},s),selectProps:f},Object(o.c)(d,{data:a,innerProps:{className:b(v(u("multiValueLabel",e)),i({"multi-value__label":!0},n))},selectProps:f},t),Object(o.c)(h,{data:a,innerProps:y({className:b(v(u("multiValueRemove",e)),i({"multi-value__remove":!0},n))},l),selectProps:f}))}))};Pe.defaultProps={cropWithEllipsis:!0};var Ce=function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},Ae=function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},Me=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},ke={ClearIndicator:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,u=e.innerProps;return Object(o.c)("div",Object(r.a)({css:a("clearIndicator",e),className:i({indicator:!0,"clear-indicator":!0},n)},u),t||Object(o.c)(ae,null))},Control:function(e){var t=e.children,n=e.cx,i=e.getStyles,a=e.className,u=e.isDisabled,s=e.isFocused,c=e.innerRef,l=e.innerProps,f=e.menuIsOpen;return Object(o.c)("div",Object(r.a)({ref:c,css:i("control",e),className:n({control:!0,"control--is-disabled":u,"control--is-focused":s,"control--menu-is-open":f},a)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,u=e.innerProps;return Object(o.c)("div",Object(r.a)({css:a("dropdownIndicator",e),className:i({indicator:!0,"dropdown-indicator":!0},n)},u),t||Object(o.c)(ue,null))},DownChevron:ue,CrossIcon:ae,Group:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,u=e.Heading,s=e.headingProps,c=e.innerProps,l=e.label,f=e.theme,p=e.selectProps;return Object(o.c)("div",Object(r.a)({css:a("group",e),className:i({group:!0},n)},c),Object(o.c)(u,Object(r.a)({},s,{selectProps:p,theme:f,getStyles:a,cx:i}),l),Object(o.c)("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,a=e.className,u=S(e);u.data;var s=Object(i.a)(u,["data"]);return Object(o.c)("div",Object(r.a)({css:t("groupHeading",e),className:n({"group-heading":!0},a)},s))},IndicatorsContainer:function(e){var t=e.children,n=e.className,i=e.cx,a=e.innerProps,u=e.getStyles;return Object(o.c)("div",Object(r.a)({css:u("indicatorsContainer",e),className:i({indicators:!0},n)},a),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,i=e.getStyles,a=e.innerProps;return Object(o.c)("span",Object(r.a)({},a,{css:i("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,a=e.getStyles,u=S(e),c=u.innerRef,l=u.isDisabled,f=u.isHidden,p=Object(i.a)(u,["innerRef","isDisabled","isHidden"]);return Object(o.c)("div",{css:a("input",e)},Object(o.c)(s.a,Object(r.a)({className:n({input:!0},t),inputRef:c,inputStyle:Oe(f),disabled:l},p)))},LoadingIndicator:ve,Menu:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,u=e.innerRef,s=e.innerProps;return Object(o.c)("div",Object(r.a)({css:a("menu",e),className:i({menu:!0},n),ref:u},s),t)},MenuList:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,u=e.innerProps,s=e.innerRef,c=e.isMulti;return Object(o.c)("div",Object(r.a)({css:a("menuList",e),className:i({"menu-list":!0,"menu-list--is-multi":c},n),ref:s},u),t)},MenuPortal:ee,LoadingMessage:G,NoOptionsMessage:$,MultiValue:Pe,MultiValueContainer:Se,MultiValueLabel:_e,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Object(o.c)("div",n,t||Object(o.c)(ae,{size:14}))},Option:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,u=e.isDisabled,s=e.isFocused,c=e.isSelected,l=e.innerRef,f=e.innerProps;return Object(o.c)("div",Object(r.a)({css:a("option",e),className:i({option:!0,"option--is-disabled":u,"option--is-focused":s,"option--is-selected":c},n),ref:l},f),t)},Placeholder:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,u=e.innerProps;return Object(o.c)("div",Object(r.a)({css:a("placeholder",e),className:i({placeholder:!0},n)},u),t)},SelectContainer:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,u=e.innerProps,s=e.isDisabled,c=e.isRtl;return Object(o.c)("div",Object(r.a)({css:a("container",e),className:i({"--is-disabled":s,"--is-rtl":c},n)},u),t)},SingleValue:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,u=e.isDisabled,s=e.innerProps;return Object(o.c)("div",Object(r.a)({css:a("singleValue",e),className:i({"single-value":!0,"single-value--is-disabled":u},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,i=e.cx,a=e.innerProps,u=e.isMulti,s=e.getStyles,c=e.hasValue;return Object(o.c)("div",Object(r.a)({css:s("valueContainer",e),className:i({"value-container":!0,"value-container--is-multi":u,"value-container--has-value":c},n)},a),t)}},Ie=function(e){return y(y({},ke),e.components)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return c}));var r=n(0),o=(n(171),n(36)),i=(n(573),n(172),n(63),n(132)),a=n(155),u=(n(205),function(e,t){var n=arguments;if(null==t||!o.e.call(t,"css"))return r.createElement.apply(void 0,n);var i=n.length,a=new Array(i);a[0]=o.b,a[1]=Object(o.d)(e,t);for(var u=2;u<i;u++)a[u]=n[u];return r.createElement.apply(null,a)});function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(a.a)(t)}var c=function(){var e=s.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},l=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var u in a="",i)i[u]&&u&&(a&&(a+=" "),a+=u);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function f(e,t,n){var r=[],o=Object(i.a)(e,r,n);return r.length<2?n:o+t(r)}var p=Object(o.f)((function(e,t){var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Object(a.a)(n,t.registered);return Object(i.b)(t,o,!1),t.key+"-"+o.name},u={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return f(t.registered,n,l(r))},theme:Object(r.useContext)(o.c)};return e.children(u)}))},,function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},,,,,,,function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function o(e){return!!e&&!!e[Y]}function i(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&Function.toString.call(n)===q}(e)||Array.isArray(e)||!!e[z]||!!e.constructor[z]||p(e)||d(e))}function a(e){return o(e)||r(23,e),e[Y].t}function u(e,t,n){void 0===n&&(n=!1),0===s(e)?(n?Object.keys:X)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function s(e){var t=e[Y];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:p(e)?2:d(e)?3:0}function c(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function l(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){return V&&e instanceof Map}function d(e){return H&&e instanceof Set}function h(e){return e.o||e.t}function v(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=$(e);delete t[Y];for(var n=X(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function b(e,t){return void 0===t&&(t=!1),g(e)||o(e)||!i(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=y),Object.freeze(e),t&&u(e,(function(e,t){return b(t,!0)}),!0)),e}function y(){r(2)}function g(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function m(e){var t=G[e];return t||r(18,e),t}function O(){return F}function w(e,t){t&&(m("Patches"),e.u=[],e.s=[],e.v=t)}function x(e){j(e),e.p.forEach(S),e.p=null}function j(e){e===F&&(F=e.l)}function E(e){return F={p:[],l:F,h:e,m:!0,_:0}}function S(e){var t=e[Y];0===t.i||1===t.i?t.j():t.g=!0}function _(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||m("ES5").S(t,e,o),o?(n[Y].P&&(x(t),r(4)),i(e)&&(e=P(t,e),t.l||A(t,e)),t.u&&m("Patches").M(n[Y],e,t.u,t.s)):e=P(t,n,[]),x(t),t.u&&t.v(t.u,t.s),e!==W?e:void 0}function P(e,t,n){if(g(t))return t;var r=t[Y];if(!r)return u(t,(function(o,i){return C(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return A(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=v(r.k):r.o;u(3===r.i?new Set(o):o,(function(t,i){return C(e,r,o,t,i,n)})),A(e,o,!1),n&&e.u&&m("Patches").R(r,n,e.u,e.s)}return r.o}function C(e,t,n,r,a,u){if(o(a)){var s=P(e,a,u&&t&&3!==t.i&&!c(t.D,r)?u.concat(r):void 0);if(l(n,r,s),!o(s))return;e.m=!1}if(i(a)&&!g(a)){if(!e.h.F&&e._<1)return;P(e,a),t&&t.A.l||A(e,a)}}function A(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&b(t,n)}function M(e,t){var n=e[Y];return(n?h(n):e)[t]}function k(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function I(e){e.P||(e.P=!0,e.l&&I(e.l))}function D(e){e.o||(e.o=v(e.t))}function R(e,t,n){var r=p(t)?m("MapSet").N(t,n):d(t)?m("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:O(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=K;n&&(o=[r],i=J);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):m("ES5").J(t,n);return(n?n.A:O()).p.push(r),r}function T(e){return o(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[Y],o=s(t);if(r){if(!r.P&&(r.i<4||!m("ES5").K(r)))return r.t;r.I=!0,n=N(t,o),r.I=!1}else n=N(t,o);return u(n,(function(t,o){r&&function(e,t){return 2===s(e)?e.get(t):e[t]}(r.t,t)===o||l(n,t,e(o))})),3===o?new Set(n):n}(e)}function N(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return v(e)}n.r(t),n.d(t,"createNextState",(function(){return ee})),n.d(t,"current",(function(){return T})),n.d(t,"freeze",(function(){return b})),n.d(t,"isDraft",(function(){return o})),n.d(t,"original",(function(){return a})),n.d(t,"__DO_NOT_USE__ActionTypes",(function(){return te.a})),n.d(t,"applyMiddleware",(function(){return te.b})),n.d(t,"bindActionCreators",(function(){return te.c})),n.d(t,"combineReducers",(function(){return te.d})),n.d(t,"compose",(function(){return te.e})),n.d(t,"createStore",(function(){return te.f})),n.d(t,"createSelector",(function(){return ne.a})),n.d(t,"MiddlewareArray",(function(){return de})),n.d(t,"configureStore",(function(){return Oe})),n.d(t,"createAction",(function(){return we})),n.d(t,"createAsyncThunk",(function(){return Te})),n.d(t,"createDraftSafeSelector",(function(){return oe})),n.d(t,"createEntityAdapter",(function(){return Me})),n.d(t,"createImmutableStateInvariantMiddleware",(function(){return ve})),n.d(t,"createReducer",(function(){return Se})),n.d(t,"createSerializableStateInvariantMiddleware",(function(){return ge})),n.d(t,"createSlice",(function(){return _e})),n.d(t,"findNonSerializableValue",(function(){return ye})),n.d(t,"getDefaultMiddleware",(function(){return me})),n.d(t,"getType",(function(){return je})),n.d(t,"isAllOf",(function(){return Ue})),n.d(t,"isAnyOf",(function(){return Fe})),n.d(t,"isAsyncThunkAction",(function(){return qe})),n.d(t,"isFulfilled",(function(){return Ye})),n.d(t,"isImmutableDefault",(function(){return he})),n.d(t,"isPending",(function(){return Be})),n.d(t,"isPlain",(function(){return be})),n.d(t,"isPlainObject",(function(){return pe})),n.d(t,"isRejected",(function(){return We})),n.d(t,"isRejectedWithValue",(function(){return ze})),n.d(t,"nanoid",(function(){return ke})),n.d(t,"unwrapResult",(function(){return Ne}));var L,F,U="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),V="undefined"!=typeof Map,H="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,W=U?Symbol.for("immer-nothing"):((L={})["immer-nothing"]=!0,L),z=U?Symbol.for("immer-draftable"):"__$immer_draftable",Y=U?Symbol.for("immer-state"):"__$immer_state",q=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),X="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,$=Object.getOwnPropertyDescriptors||function(e){var t={};return X(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},G={},K={get:function(e,t){if(t===Y)return e;var n=h(e);if(!c(n,t))return function(e,t,n){var r,o=k(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!i(r)?r:r===M(e.t,t)?(D(e),e.o[t]=R(e.A.h,r,e)):r},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,n){var r=k(h(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=M(h(e),t),i=null==o?void 0:o[Y];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(f(n,o)&&(void 0!==n||c(e.t,t)))return!0;D(e),I(e)}return e.o[t]===n&&"number"!=typeof n||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==M(e.t,t)||t in e.t?(e.D[t]=!1,D(e),I(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=h(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},J={};u(K,(function(e,t){J[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),J.deleteProperty=function(e,t){return K.deleteProperty.call(this,e[0],t)},J.set=function(e,t,n){return K.set.call(this,e[0],t,n,e[0])};var Z=new(function(){function e(e){var t=this;this.O=B,this.F=!0,this.produce=function(e,n,o){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var u=t;return function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return u.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(o))}))}}var s;if("function"!=typeof n&&r(6),void 0!==o&&"function"!=typeof o&&r(7),i(e)){var c=E(t),l=R(t,e,void 0),f=!0;try{s=n(l),f=!1}finally{f?x(c):j(c)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(e){return w(c,o),_(e,c)}),(function(e){throw x(c),e})):(w(c,o),_(s,c))}if(!e||"object"!=typeof e){if((s=n(e))===W)return;return void 0===s&&(s=e),t.F&&b(s,!0),s}r(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){i(e)||r(8),o(e)&&(e=T(e));var t=E(this),n=R(this,e,void 0);return n[Y].C=!0,j(t),n},t.finishDraft=function(e,t){var n=(e&&e[Y]).A;return w(n,t),_(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!B&&r(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var i=m("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t.slice(n+1))}))},e}()),Q=Z.produce,ee=(Z.produceWithPatches.bind(Z),Z.setAutoFreeze.bind(Z),Z.setUseProxies.bind(Z),Z.applyPatches.bind(Z),Z.createDraft.bind(Z),Z.finishDraft.bind(Z),Q),te=n(75),ne=n(100),re=n(129),oe=function(){var e=ne.a.apply(void 0,arguments),t=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.apply(void 0,[o(t)?T(t):t].concat(r))};return t};function ie(){return(ie=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ue(e,t){return(ue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function se(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function ce(e,t,n){return(ce=se()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&ue(o,n.prototype),o}).apply(null,arguments)}function le(e){var t="function"==typeof Map?new Map:void 0;return(le=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return ce(e,arguments,ae(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ue(n,e)})(e)}var fe="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?te.e:te.e.apply(null,arguments)};function pe(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var de=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.concat=function(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return ce(r,(t=e.prototype.concat).call.apply(t,[this].concat(o)))},o.prepend=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?ce(r,t[0].concat(this)):ce(r,t.concat(this))},r}(le(Array));function he(e){return"object"!=typeof e||null==e||Object.isFrozen(e)}function ve(e){return void 0===e&&(e={}),function(){return function(e){return function(t){return e(t)}}}}function be(e){var t=typeof e;return"undefined"===t||null===e||"string"===t||"boolean"===t||"number"===t||Array.isArray(e)||pe(e)}function ye(e,t,n,r,o){var i;if(void 0===t&&(t=""),void 0===n&&(n=be),void 0===o&&(o=[]),!n(e))return{keyPath:t||"<root>",value:e};if("object"!=typeof e||null===e)return!1;var a=null!=r?r(e):Object.entries(e),u=o.length>0,s=a,c=Array.isArray(s),l=0;for(s=c?s:s[Symbol.iterator]();;){var f;if(c){if(l>=s.length)break;f=s[l++]}else{if((l=s.next()).done)break;f=l.value}var p=f,d=p[0],h=p[1],v=t?t+"."+d:d;if(!(u&&o.indexOf(v)>=0)){if(!n(h))return{keyPath:v,value:h};if("object"==typeof h&&(i=ye(h,v,n,r,o)))return i}}return!1}function ge(e){return void 0===e&&(e={}),function(){return function(e){return function(t){return e(t)}}}}function me(e){void 0===e&&(e={});var t=e,n=t.thunk,r=void 0===n||n,o=(t.immutableCheck,t.serializableCheck,new de);return r&&(function(e){return"boolean"==typeof e}(r)?o.push(re.a):o.push(re.a.withExtraArgument(r.extraArgument))),o}function Oe(e){var t,n=function(e){return me(e)},r=e||{},o=r.reducer,i=void 0===o?void 0:o,a=r.middleware,u=void 0===a?n():a,s=r.devTools,c=void 0===s||s,l=r.preloadedState,f=void 0===l?void 0:l,p=r.enhancers,d=void 0===p?void 0:p;if("function"==typeof i)t=i;else{if(!pe(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=Object(te.d)(i)}var h=te.b.apply(void 0,"function"==typeof u?u(n):u),v=te.e;c&&(v=fe(ie({trace:!1},"object"==typeof c&&c)));var b=[h];Array.isArray(d)?b=[h].concat(d):"function"==typeof d&&(b=d(b));var y=v.apply(void 0,b);return Object(te.f)(t,f,y)}function we(e,t){function n(){if(t){var n=t.apply(void 0,arguments);if(!n)throw new Error("prepareAction did not return an object");return ie({type:e,payload:n.payload},"meta"in n&&{meta:n.meta},{},"error"in n&&{error:n.error})}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function xe(e){return["type","payload","error","meta"].indexOf(e)>-1}function je(e){return""+e}function Ee(e){var t,n={},r=[],o={addCase:function(e,t){var r="string"==typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,o},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[n,r,t]}function Se(e,t,n,r){void 0===n&&(n=[]);var a="function"==typeof t?Ee(t):[t,n,r],u=a[0],s=a[1],c=a[2],l=ee(e,(function(){}));return function(e,t){void 0===e&&(e=l);var n=[u[t.type]].concat(s.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[c]),n.reduce((function(e,n){if(n){if(o(e)){var r=n(e,t);return void 0===r?e:r}if(i(e))return ee(e,(function(e){return n(e,t)}));var a=n(e,t);if(void 0===a){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return a}return e}),e)}}function _e(e){var t=e.name,n=e.initialState;if(!t)throw new Error("`name` is a required option for createSlice");var r=e.reducers||{},o=void 0===e.extraReducers?[]:"function"==typeof e.extraReducers?Ee(e.extraReducers):[e.extraReducers],i=o[0],a=void 0===i?{}:i,u=o[1],s=void 0===u?[]:u,c=o[2],l=void 0===c?void 0:c,f=Object.keys(r),p={},d={},h={};f.forEach((function(e){var n,o,i=r[e],a=t+"/"+e;"reducer"in i?(n=i.reducer,o=i.prepare):n=i,p[e]=n,d[a]=n,h[e]=o?we(a,o):we(a)}));var v=Se(n,ie({},a,{},d),s,l);return{name:t,reducer:v,actions:h,caseReducers:p}}function Pe(e){return function(t,n){var r=function(t){!function(e){return pe(t=e)&&"string"==typeof t.type&&Object.keys(t).every(xe);var t}(n)?e(n,t):e(n.payload,t)};return o(t)?(r(t),t):ee(t,r)}}function Ce(e,t){return t(e)}function Ae(e){function t(t,n){var r=Ce(t,e);r in n.entities||(n.ids.push(r),n.entities[r]=t)}function n(e,n){Array.isArray(e)||(e=Object.values(e));var r=e,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}t(a,n)}}function r(e,t){var n=!1;e.forEach((function(e){e in t.entities&&(delete t.entities[e],n=!0)})),n&&(t.ids=t.ids.filter((function(e){return e in t.entities})))}function o(t,n){var r={},o={};t.forEach((function(e){e.id in n.entities&&(o[e.id]={id:e.id,changes:ie({},o[e.id]?o[e.id].changes:null,{},e.changes)})})),(t=Object.values(o)).length>0&&t.filter((function(t){return function(t,n,r){var o=r.entities[n.id],i=Object.assign({},o,n.changes),a=Ce(i,e),u=a!==n.id;return u&&(t[n.id]=a,delete r.entities[n.id]),r.entities[a]=i,u}(r,t,n)})).length>0&&(n.ids=n.ids.map((function(e){return r[e]||e})))}function i(t,r){Array.isArray(t)||(t=Object.values(t));var i=[],a=[],u=t,s=Array.isArray(u),c=0;for(u=s?u:u[Symbol.iterator]();;){var l;if(s){if(c>=u.length)break;l=u[c++]}else{if((c=u.next()).done)break;l=c.value}var f=l,p=Ce(f,e);p in r.entities?a.push({id:p,changes:f}):i.push(f)}o(a,r),n(i,r)}return{removeAll:(a=function(e){Object.assign(e,{ids:[],entities:{}})},u=Pe((function(e,t){return a(t)})),function(e){return u(e,void 0)}),addOne:Pe(t),addMany:Pe(n),setAll:Pe((function(e,t){Array.isArray(e)||(e=Object.values(e)),t.ids=[],t.entities={},n(e,t)})),updateOne:Pe((function(e,t){return o([e],t)})),updateMany:Pe(o),upsertOne:Pe((function(e,t){return i([e],t)})),upsertMany:Pe(i),removeOne:Pe((function(e,t){return r([e],t)})),removeMany:Pe(r)};var a,u}function Me(e){void 0===e&&(e={});var t=ie({sortComparer:!1,selectId:function(e){return e.id}},e),n=t.selectId,r=t.sortComparer;return ie({selectId:n,sortComparer:r},{getInitialState:function(e){return void 0===e&&(e={}),Object.assign({ids:[],entities:{}},e)}},{},{getSelectors:function(e){var t=function(e){return e.ids},n=function(e){return e.entities},r=oe(t,n,(function(e,t){return e.map((function(e){return t[e]}))})),o=function(e,t){return t},i=function(e,t){return e[t]},a=oe(t,(function(e){return e.length}));if(!e)return{selectIds:t,selectEntities:n,selectAll:r,selectTotal:a,selectById:oe(n,o,i)};var u=oe(e,n);return{selectIds:oe(e,t),selectEntities:u,selectAll:oe(e,r),selectTotal:oe(e,a),selectById:oe(u,o,i)}}},{},r?function(e,t){var n=Ae(e);function r(t,n){Array.isArray(t)||(t=Object.values(t));var r=t.filter((function(t){return!(Ce(t,e)in n.entities)}));0!==r.length&&a(r,n)}function o(t,n){var r=[];t.forEach((function(t){return function(t,n,r){if(!(n.id in r.entities))return!1;var o=r.entities[n.id],i=Object.assign({},o,n.changes),a=Ce(i,e);return delete r.entities[n.id],t.push(i),a!==n.id}(r,t,n)})),0!==r.length&&a(r,n)}function i(t,n){Array.isArray(t)||(t=Object.values(t));var i=[],a=[],u=t,s=Array.isArray(u),c=0;for(u=s?u:u[Symbol.iterator]();;){var l;if(s){if(c>=u.length)break;l=u[c++]}else{if((c=u.next()).done)break;l=c.value}var f=l,p=Ce(f,e);p in n.entities?a.push({id:p,changes:f}):i.push(f)}o(a,n),r(i,n)}function a(n,r){n.sort(t),n.forEach((function(t){r.entities[e(t)]=t}));var o=Object.values(r.entities);o.sort(t);var i=o.map(e);(function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(e[n]!==t[n])return!1;return!0})(r.ids,i)||(r.ids=i)}return{removeOne:n.removeOne,removeMany:n.removeMany,removeAll:n.removeAll,addOne:Pe((function(e,t){return r([e],t)})),updateOne:Pe((function(e,t){return o([e],t)})),upsertOne:Pe((function(e,t){return i([e],t)})),setAll:Pe((function(e,t){Array.isArray(e)||(e=Object.values(e)),t.entities={},t.ids=[],r(e,t)})),addMany:Pe(r),updateMany:Pe(o),upsertMany:Pe(i)}}(n,r):Ae(n))}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var ke=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},Ie=["name","message","stack","code"],De=function(e){this.payload=e,this.name="RejectWithValue",this.message="Rejected"},Re=function(e){if("object"==typeof e&&null!==e){var t={},n=Ie,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;"string"==typeof e[a]&&(t[a]=e[a])}return t}return{message:String(e)}};function Te(e,t,n){var r=we(e+"/fulfilled",(function(e,t,n){return{payload:e,meta:{arg:n,requestId:t,requestStatus:"fulfilled"}}})),o=we(e+"/pending",(function(e,t){return{payload:void 0,meta:{arg:t,requestId:e,requestStatus:"pending"}}})),i=we(e+"/rejected",(function(e,t,r){var o=e instanceof De,i=!!e&&"AbortError"===e.name,a=!!e&&"ConditionError"===e.name;return{payload:e instanceof De?e.payload:void 0,error:(n&&n.serializeError||Re)(e||"Rejected"),meta:{arg:r,requestId:t,rejectedWithValue:o,requestStatus:"rejected",aborted:i,condition:a}}})),a="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return e.prototype.abort=function(){},e}();return Object.assign((function(e){return function(u,s,c){var l,f=ke(),p=new a,d=new Promise((function(e,t){return p.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:l||"Aborted"})}))})),h=!1,v=function(){try{var a,l=function(e){return v?e:(n&&!n.dispatchConditionRejection&&i.match(a)&&a.meta.condition||u(a),a)},v=!1,b=function(l,v){try{var b=function(){if(n&&n.condition&&!1===n.condition(e,{getState:s,extra:c}))throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return h=!0,u(o(f,e)),Promise.resolve(Promise.race([d,Promise.resolve(t(e,{dispatch:u,getState:s,extra:c,requestId:f,signal:p.signal,rejectWithValue:function(e){return new De(e)}})).then((function(t){return t instanceof De?i(t,f,e):r(t,f,e)}))])).then((function(e){a=e}))}()}catch(e){return v(e)}return b&&b.then?b.then(void 0,v):b}(0,(function(t){a=i(t,f,e)}));return Promise.resolve(b&&b.then?b.then(l):l(b))}catch(e){return Promise.reject(e)}}();return Object.assign(v,{abort:function(e){h&&(l=e,p.abort())},requestId:f,arg:e})}}),{pending:o,rejected:i,fulfilled:r,typePrefix:e})}function Ne(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var Le=function(e,t){return function(e){return e&&"function"==typeof e.match}(e)?e.match(t):e(t)};function Fe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.some((function(t){return Le(t,e)}))}}function Ue(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.every((function(t){return Le(t,e)}))}}function Ve(e,t){if(!e||!e.meta)return!1;var n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function He(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Be(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return Ve(e,["pending"])}:He(t)?function(e){var n=t.map((function(e){return e.pending}));return Fe.apply(void 0,n)(e)}:Be()(t[0])}function We(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return Ve(e,["rejected"])}:He(t)?function(e){var n=t.map((function(e){return e.rejected}));return Fe.apply(void 0,n)(e)}:We()(t[0])}function ze(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return e&&e.meta&&e.meta.rejectedWithValue};return 0===t.length||He(t)?function(e){return Ue(We.apply(void 0,t),r)(e)}:ze()(t[0])}function Ye(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return Ve(e,["fulfilled"])}:He(t)?function(e){var n=t.map((function(e){return e.fulfilled}));return Fe.apply(void 0,n)(e)}:Ye()(t[0])}function qe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return Ve(e,["pending","fulfilled","rejected"])}:He(t)?function(e){var n=[],r=t,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var u=a;n.push(u.pending,u.rejected,u.fulfilled)}return Fe.apply(void 0,n)(e)}:qe()(t[0])}!function(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[Y];return K.get(t,e)},set:function(t){var n=this[Y];K.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][Y];if(!o.P)switch(o.i){case 5:r(o)&&I(o);break;case 4:n(o)&&I(o)}}}function n(e){for(var t=e.t,n=e.k,r=X(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==Y){var a=t[i];if(void 0===a&&!c(t,i))return!0;var u=n[i],s=u&&u[Y];if(s?s.t!==a:!f(u,a))return!0}}var l=!!t[Y];return r.length!==X(t).length+(l?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!n||n.get)}var i={};!function(e,t){G[e]||(G[e]=t)}("ES5",{J:function(t,n){var r=Array.isArray(t),o=function(t,n){if(t){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,e(o,!0));return r}var i=$(n);delete i[Y];for(var a=X(i),u=0;u<a.length;u++){var s=a[u];i[s]=e(s,t||!!i[s].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:O(),P:!1,I:!1,D:{},l:n,t:t,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Y,{value:i,writable:!0}),o},S:function(e,n,i){i?o(n)&&n[Y].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[Y];if(n){var o=n.t,i=n.k,a=n.D,s=n.i;if(4===s)u(i,(function(t){t!==Y&&(void 0!==o[t]||c(o,t)?a[t]||e(i[t]):(a[t]=!0,I(n)))})),u(o,(function(e){void 0!==i[e]||c(i,e)||(a[e]=!1,I(n))}));else if(5===s){if(r(n)&&(I(n),a.length=!0),i.length<o.length)for(var l=i.length;l<o.length;l++)a[l]=!1;else for(var f=o.length;f<i.length;f++)a[f]=!0;for(var p=Math.min(i.length,o.length),d=0;d<p;d++)void 0===a[d]&&e(i[d])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}()},,,,,,,function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return l}));var r=n(0),o=n(171);n(172),n(289);var i=n(132),a=n(155),u=Object.prototype.hasOwnProperty,s=Object(r.createContext)("undefined"!=typeof HTMLElement?Object(o.a)({key:"css"}):null),c=s.Provider,l=function(e){return Object(r.forwardRef)((function(t,n){var o=Object(r.useContext)(s);return e(t,o,n)}))},f=Object(r.createContext)({}),p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",d=function(e,t){var n={};for(var r in t)u.call(t,r)&&(n[r]=t[r]);return n[p]=e,n},h=l((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var s=e[p],c=[o],l="";"string"==typeof e.className?l=Object(i.a)(t.registered,c,e.className):null!=e.className&&(l=e.className+" ");var d=Object(a.a)(c,void 0,"function"==typeof o||Array.isArray(o)?Object(r.useContext)(f):void 0);Object(i.b)(t,d,"string"==typeof s),l+=t.key+"-"+d.name;var h={};for(var v in e)u.call(e,v)&&"css"!==v&&v!==p&&(h[v]=e[v]);return h.ref=n,h.className=l,Object(r.createElement)(s,h)}))},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},,,,,,,,,,,,,function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"createBrowserHistory",(function(){return m})),n.d(t,"createHashHistory",(function(){return E})),n.d(t,"createMemoryHistory",(function(){return _})),n.d(t,"createLocation",(function(){return d})),n.d(t,"locationsAreEqual",(function(){return h})),n.d(t,"parsePath",(function(){return f})),n.d(t,"createPath",(function(){return p}));var r=n(14),o=n(166),i=n(167),a=n(30);function u(e){return"/"===e.charAt(0)?e:"/"+e}function s(e){return"/"===e.charAt(0)?e.substr(1):e}function c(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function l(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function f(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function p(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function d(e,t,n,i){var a;"string"==typeof e?(a=f(e)).state=t:(void 0===(a=Object(r.a)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(a.key=n),i?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=Object(o.a)(a.pathname,i.pathname)):a.pathname=i.pathname:a.pathname||(a.pathname="/"),a}function h(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Object(i.a)(e.state,t.state)}function v(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var b=!("undefined"==typeof window||!window.document||!window.document.createElement);function y(e,t){t(window.confirm(e))}function g(){try{return window.history.state||{}}catch(e){return{}}}function m(e){void 0===e&&(e={}),b||Object(a.a)(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),s=e,f=s.forceRefresh,h=void 0!==f&&f,m=s.getUserConfirmation,O=void 0===m?y:m,w=s.keyLength,x=void 0===w?6:w,j=e.basename?l(u(e.basename)):"";function E(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return j&&(i=c(i,j)),d(i,r,n)}function S(){return Math.random().toString(36).substr(2,x)}var _=v();function P(e){Object(r.a)(U,e),U.length=n.length,_.notifyListeners(U.location,U.action)}function C(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||k(E(e.state))}function A(){k(E(g()))}var M=!1;function k(e){M?(M=!1,P()):_.confirmTransitionTo(e,"POP",O,(function(t){t?P({action:"POP",location:e}):function(e){var t=U.location,n=D.indexOf(t.key);-1===n&&(n=0);var r=D.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(M=!0,T(o))}(e)}))}var I=E(g()),D=[I.key];function R(e){return j+p(e)}function T(e){n.go(e)}var N=0;function L(e){1===(N+=e)&&1===e?(window.addEventListener("popstate",C),i&&window.addEventListener("hashchange",A)):0===N&&(window.removeEventListener("popstate",C),i&&window.removeEventListener("hashchange",A))}var F=!1,U={length:n.length,action:"POP",location:I,createHref:R,push:function(e,t){var r=d(e,t,S(),U.location);_.confirmTransitionTo(r,"PUSH",O,(function(e){if(e){var t=R(r),i=r.key,a=r.state;if(o)if(n.pushState({key:i,state:a},null,t),h)window.location.href=t;else{var u=D.indexOf(U.location.key),s=D.slice(0,u+1);s.push(r.key),D=s,P({action:"PUSH",location:r})}else window.location.href=t}}))},replace:function(e,t){var r=d(e,t,S(),U.location);_.confirmTransitionTo(r,"REPLACE",O,(function(e){if(e){var t=R(r),i=r.key,a=r.state;if(o)if(n.replaceState({key:i,state:a},null,t),h)window.location.replace(t);else{var u=D.indexOf(U.location.key);-1!==u&&(D[u]=r.key),P({action:"REPLACE",location:r})}else window.location.replace(t)}}))},go:T,goBack:function(){T(-1)},goForward:function(){T(1)},block:function(e){void 0===e&&(e=!1);var t=_.setPrompt(e);return F||(L(1),F=!0),function(){return F&&(F=!1,L(-1)),t()}},listen:function(e){var t=_.appendListener(e);return L(1),function(){L(-1),t()}}};return U}var O={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+s(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:s,decodePath:u},slash:{encodePath:u,decodePath:u}};function w(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function x(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function j(e){window.location.replace(w(window.location.href)+"#"+e)}function E(e){void 0===e&&(e={}),b||Object(a.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,i=void 0===o?y:o,s=n.hashType,f=void 0===s?"slash":s,h=e.basename?l(u(e.basename)):"",g=O[f],m=g.encodePath,E=g.decodePath;function S(){var e=E(x());return h&&(e=c(e,h)),d(e)}var _=v();function P(e){Object(r.a)(U,e),U.length=t.length,_.notifyListeners(U.location,U.action)}var C=!1,A=null;function M(){var e,t,n=x(),r=m(n);if(n!==r)j(r);else{var o=S(),a=U.location;if(!C&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===p(o))return;A=null,function(e){C?(C=!1,P()):_.confirmTransitionTo(e,"POP",i,(function(t){t?P({action:"POP",location:e}):function(e){var t=U.location,n=R.lastIndexOf(p(t));-1===n&&(n=0);var r=R.lastIndexOf(p(e));-1===r&&(r=0);var o=n-r;o&&(C=!0,T(o))}(e)}))}(o)}}var k=x(),I=m(k);k!==I&&j(I);var D=S(),R=[p(D)];function T(e){t.go(e)}var N=0;function L(e){1===(N+=e)&&1===e?window.addEventListener("hashchange",M):0===N&&window.removeEventListener("hashchange",M)}var F=!1,U={length:t.length,action:"POP",location:D,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=w(window.location.href)),n+"#"+m(h+p(e))},push:function(e,t){var n=d(e,void 0,void 0,U.location);_.confirmTransitionTo(n,"PUSH",i,(function(e){if(e){var t=p(n),r=m(h+t);if(x()!==r){A=t,function(e){window.location.hash=e}(r);var o=R.lastIndexOf(p(U.location)),i=R.slice(0,o+1);i.push(t),R=i,P({action:"PUSH",location:n})}else P()}}))},replace:function(e,t){var n=d(e,void 0,void 0,U.location);_.confirmTransitionTo(n,"REPLACE",i,(function(e){if(e){var t=p(n),r=m(h+t);x()!==r&&(A=t,j(r));var o=R.indexOf(p(U.location));-1!==o&&(R[o]=t),P({action:"REPLACE",location:n})}}))},go:T,goBack:function(){T(-1)},goForward:function(){T(1)},block:function(e){void 0===e&&(e=!1);var t=_.setPrompt(e);return F||(L(1),F=!0),function(){return F&&(F=!1,L(-1)),t()}},listen:function(e){var t=_.appendListener(e);return L(1),function(){L(-1),t()}}};return U}function S(e,t,n){return Math.min(Math.max(e,t),n)}function _(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,u=void 0===a?0:a,s=t.keyLength,c=void 0===s?6:s,l=v();function f(e){Object(r.a)(O,e),O.length=O.entries.length,l.notifyListeners(O.location,O.action)}function h(){return Math.random().toString(36).substr(2,c)}var b=S(u,0,i.length-1),y=i.map((function(e){return d(e,void 0,"string"==typeof e?h():e.key||h())})),g=p;function m(e){var t=S(O.index+e,0,O.entries.length-1),r=O.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var O={length:y.length,action:"POP",location:y[b],index:b,entries:y,createHref:g,push:function(e,t){var r=d(e,t,h(),O.location);l.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=O.index+1,n=O.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=d(e,t,h(),O.location);l.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(O.entries[O.index]=r,f({action:"REPLACE",location:r}))}))},go:m,goBack:function(){m(-1)},goForward:function(){m(1)},canGo:function(e){var t=O.index+e;return t>=0&&t<O.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return O}},,,,,,function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return ie})),n.d(t,"b",(function(){return B})),n.d(t,"c",(function(){return C})),n.d(t,"d",(function(){return q})),n.d(t,"e",(function(){return W})),n.d(t,"f",(function(){return Y}));for(var r=n(7),o=n(3),i=n(57),a=n(58),u=n(59),s=n(133),c=n(0),l=n.n(c),f=n(5),p=n(91),d=n(76),h={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},v=function(e){return Object(f.c)("span",Object(r.a)({css:h},e))},b={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=void 0===n?{}:n,o=e.options,i=e.label,a=void 0===i?"":i,u=e.selectValue,s=e.isDisabled,c=e.isSelected,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&u)return"value ".concat(a," focused, ").concat(l(u,r),".");if("menu"===t){var f=s?" disabled":"",p="".concat(c?"selected":"focused").concat(f);return"option ".concat(a," ").concat(p,", ").concat(l(o,r),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},y=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,a=e.isFocused,u=e.selectValue,s=e.selectProps,p=s.ariaLiveMessages,d=s.getOptionLabel,h=s.inputValue,y=s.isMulti,g=s.isOptionDisabled,m=s.isSearchable,O=s.menuIsOpen,w=s.options,x=s.screenReaderStatus,j=s.tabSelectsValue,E=s["aria-label"],S=s["aria-live"],_=Object(c.useMemo)((function(){return Object(o.k)(Object(o.k)({},b),p||{})}),[p]),P=Object(c.useMemo)((function(){var e,n="";if(t&&_.onChange){var r=t.option,i=t.removedValue,a=t.value,u=i||r||(e=a,Array.isArray(e)?null:e),s=Object(o.k)({isDisabled:u&&g(u),label:u?d(u):""},t);n=_.onChange(s)}return n}),[t,g,d,_]),C=Object(c.useMemo)((function(){var e="",t=n||r,o=!!(n&&u&&u.includes(n));if(t&&_.onFocus){var i={focused:t,label:d(t),isDisabled:g(t),isSelected:o,options:w,context:t===n?"menu":"value",selectValue:u};e=_.onFocus(i)}return e}),[n,r,d,g,_,w,u]),A=Object(c.useMemo)((function(){var e="";if(O&&w.length&&_.onFilter){var t=x({count:i.length});e=_.onFilter({inputValue:h,resultsMessage:t})}return e}),[i,h,O,_,w,x]),M=Object(c.useMemo)((function(){var e="";if(_.guidance){var t=r?"value":O?"menu":"input";e=_.guidance({"aria-label":E,context:t,isDisabled:n&&g(n),isMulti:y,isSearchable:m,tabSelectsValue:j})}return e}),[E,n,r,y,g,m,O,_,j]),k="".concat(C," ").concat(A," ").concat(M);return Object(f.c)(v,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text"},a&&Object(f.c)(l.a.Fragment,null,Object(f.c)("span",{id:"aria-selection"},P),Object(f.c)("span",{id:"aria-context"},k)))},g=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],m=new RegExp("["+g.map((function(e){return e.letters})).join("")+"]","g"),O={},w=0;w<g.length;w++)for(var x=g[w],j=0;j<x.letters.length;j++)O[x.letters[j]]=x.base;var E=function(e){return e.replace(m,(function(e){return O[e]}))},S=Object(p.a)(E),_=function(e){return e.replace(/^\s+|\s+$/g,"")},P=function(e){return"".concat(e.label," ").concat(e.value)},C=function(e){return function(t,n){var r=Object(o.k)({ignoreCase:!0,ignoreAccents:!0,stringify:P,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,a=r.ignoreAccents,u=r.stringify,s=r.trim,c=r.matchFrom,l=s?_(n):n,f=s?_(u(t)):u(t);return i&&(l=l.toLowerCase(),f=f.toLowerCase()),a&&(l=S(l),f=E(f)),"start"===c?f.substr(0,l.length)===l:f.indexOf(l)>-1}};function A(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=Object(d.a)(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return Object(f.c)("input",Object(r.a)({ref:t},n,{css:Object(f.b)({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var M=["boxSizing","height","overflow","paddingRight","position"],k={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function I(e){e.preventDefault()}function D(e){e.stopPropagation()}function R(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function T(){return"ontouchstart"in window||navigator.maxTouchPoints}var N=!("undefined"==typeof window||!window.document||!window.document.createElement),L=0,F={capture:!1,passive:!1},U=function(){return document.activeElement&&document.activeElement.blur()},V={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function H(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,u=Object(c.useRef)(!1),s=Object(c.useRef)(!1),l=Object(c.useRef)(0),f=Object(c.useRef)(null),p=Object(c.useCallback)((function(e,t){if(null!==f.current){var o=f.current,c=o.scrollTop,l=o.scrollHeight,p=o.clientHeight,d=f.current,h=t>0,v=l-p-c,b=!1;v>t&&u.current&&(r&&r(e),u.current=!1),h&&s.current&&(a&&a(e),s.current=!1),h&&t>v?(n&&!u.current&&n(e),d.scrollTop=l,b=!0,u.current=!0):!h&&-t>c&&(i&&!s.current&&i(e),d.scrollTop=0,b=!0,s.current=!0),b&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),d=Object(c.useCallback)((function(e){p(e,e.deltaY)}),[p]),h=Object(c.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),v=Object(c.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;p(e,t)}),[p]),b=Object(c.useCallback)((function(e){if(e){var t=!!o.C&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",d,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",h,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",v,t)}}),[v,h,d]),y=Object(c.useCallback)((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",d,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",h,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",v,!1))}),[v,h,d]);return Object(c.useEffect)((function(){if(t){var e=f.current;return b(e),function(){y(e)}}}),[t,b,y]),function(e){f.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=Object(c.useRef)({}),i=Object(c.useRef)(null),a=Object(c.useCallback)((function(e){if(N){var t=document.body,n=t&&t.style;if(r&&M.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&L<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,u=window.innerWidth-a+i||0;Object.keys(k).forEach((function(e){var t=k[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(u,"px"))}t&&T()&&(t.addEventListener("touchmove",I,F),e&&(e.addEventListener("touchstart",R,F),e.addEventListener("touchmove",D,F))),L+=1}}),[]),u=Object(c.useCallback)((function(e){if(N){var t=document.body,n=t&&t.style;L=Math.max(L-1,0),r&&L<1&&M.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&T()&&(t.removeEventListener("touchmove",I,F),e&&(e.removeEventListener("touchstart",R,F),e.removeEventListener("touchmove",D,F)))}}),[]);return Object(c.useEffect)((function(){if(t){var e=i.current;return a(e),function(){u(e)}}}),[t,a,u]),function(e){i.current=e}}({isEnabled:n});return Object(f.c)(l.a.Fragment,null,n&&Object(f.c)("div",{onClick:U,css:V}),t((function(e){i(e),a(e)})))}var B=function(e){return e.label},W=function(e){return e.value},z={clearIndicator:o.l,container:o.n,control:o.o,dropdownIndicator:o.p,group:o.q,groupHeading:o.r,indicatorsContainer:o.s,indicatorSeparator:o.t,input:o.u,loadingIndicator:o.v,loadingMessage:o.w,menu:o.x,menuList:o.y,menuPortal:o.z,multiValue:o.A,multiValueLabel:o.B,multiValueRemove:o.D,noOptionsMessage:o.E,option:o.F,placeholder:o.G,singleValue:o.H,valueContainer:o.I};function Y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(o.k)({},e);return Object.keys(t).forEach((function(r){e[r]?n[r]=function(n,o){return t[r](e[r](n,o),o)}:n[r]=t[r]})),n}var q={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},X={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Object(o.J)(),captureMenuScroll:!Object(o.J)(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:C(),formatGroupLabel:function(e){return e.label},getOptionLabel:B,getOptionValue:W,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Object(o.a)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function $(e,t,n,r){return{type:"option",data:t,isDisabled:ee(e,t,n),isSelected:te(e,t,n),label:Z(e,t),value:Q(e,t),index:r}}function G(e,t){return e.options.map((function(n,r){if(n.options){var o=n.options.map((function(n,r){return $(e,n,t,r)})).filter((function(t){return J(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=$(e,n,t,r);return J(e,i)?i:void 0})).filter((function(e){return!!e}))}function K(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Object(s.a)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function J(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,u=t.value;return(!re(e)||!i)&&ne(e,{label:a,value:u,data:o},r)}var Z=function(e,t){return e.getOptionLabel(t)},Q=function(e,t){return e.getOptionValue(t)};function ee(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function te(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Q(e,t);return n.some((function(t){return Q(e,t)===r}))}function ne(e,t,n){return!e.filterOption||e.filterOption(t,n)}var re=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},oe=1,ie=function(e){Object(u.a)(n,e);var t=Object(o.j)(n);function n(e){var r;return Object(i.a)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,i=o.closeMenuOnSelect,a=o.isMulti;r.onInputChange("",{action:"set-value"}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,u=o&&r.isOptionSelected(e,a),c=r.isOptionDisabled(e,a);if(u){var l=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==l})),"deselect-option",e)}else{if(c)return void r.ariaOnChange(e,{action:"select-option",name:i});o?r.setValue([].concat(Object(s.a)(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=t?i:i[0]||null;r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(r.props.isMulti?[]:null,{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=e?o:o[0]||null;r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.b.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Z(r.props,e)},r.getOptionValue=function(e){return Q(r.props,e)},r.getStyles=function(e,t){var n=z[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return Object(o.c)(r.props)},r.buildCategorizedOptions=function(){return G(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return K(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Object(o.k)({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Object(o.d)(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return re(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,u=t.isClearable,s=t.isDisabled,c=t.menuIsOpen,l=t.onKeyDown,f=t.tabSelectsValue,p=t.openMenuOnFocus,d=r.state,h=d.focusedOption,v=d.focusedValue,b=d.selectValue;if(!(s||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(v)r.removeValue(v);else{if(!o)return;n?r.popValue():u&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!f||!h||p&&r.isOptionSelected(h,b))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):u&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++oe),r.state.selectValue=Object(o.e)(e.value),r}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Object(o.f)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var u=i.indexOf(r[0]);u>-1&&(a=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(q):Object(o.k)(Object(o.k)({},q),this.props.theme):q}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,u=a.isMulti,s=a.isRtl,c=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:u,isRtl:s,options:c,selectOption:o,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return ee(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return te(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ne(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,i=e.inputId,a=e.inputValue,u=e.tabIndex,s=e.form,c=this.getComponents().Input,f=this.state.inputIsHidden,p=this.commonProps,d=i||this.getElementId("input"),h={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return n?l.a.createElement(c,Object(r.a)({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:d,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:s,type:"text",value:a},h)):l.a.createElement(A,Object(r.a)({id:d,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:o.g,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:u,form:s,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,u=t.SingleValue,s=t.Placeholder,c=this.commonProps,f=this.props,p=f.controlShouldRenderValue,d=f.isDisabled,h=f.isMulti,v=f.inputValue,b=f.placeholder,y=this.state,g=y.selectValue,m=y.focusedValue,O=y.isFocused;if(!this.hasValue()||!p)return v?null:l.a.createElement(s,Object(r.a)({},c,{key:"placeholder",isDisabled:d,isFocused:O}),b);if(h)return g.map((function(t,u){var s=t===m;return l.a.createElement(n,Object(r.a)({},c,{components:{Container:o,Label:i,Remove:a},isFocused:s,isDisabled:d,key:"".concat(e.getOptionValue(t)).concat(u),index:u,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(v)return null;var w=g[0];return l.a.createElement(u,Object(r.a)({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return l.a.createElement(e,Object(r.a)({},t,{innerProps:u,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return e&&i?l.a.createElement(e,Object(r.a)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return l.a.createElement(n,Object(r.a)({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return l.a.createElement(e,Object(r.a)({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,i=t.GroupHeading,a=t.Menu,u=t.MenuList,s=t.MenuPortal,c=t.LoadingMessage,f=t.NoOptionsMessage,p=t.Option,d=this.commonProps,h=this.state.focusedOption,v=this.props,b=v.captureMenuScroll,y=v.inputValue,g=v.isLoading,m=v.loadingMessage,O=v.minMenuHeight,w=v.maxMenuHeight,x=v.menuIsOpen,j=v.menuPlacement,E=v.menuPosition,S=v.menuPortalTarget,_=v.menuShouldBlockScroll,P=v.menuShouldScrollIntoView,C=v.noOptionsMessage,A=v.onMenuScrollToTop,M=v.onMenuScrollToBottom;if(!x)return null;var k,I=function(t,n){var o=t.type,i=t.data,a=t.isDisabled,u=t.isSelected,s=t.label,c=t.value,f=h===i,v=a?void 0:function(){return e.onOptionHover(i)},b=a?void 0:function(){return e.selectOption(i)},y="".concat(e.getElementId("option"),"-").concat(n),g={id:y,onClick:b,onMouseMove:v,onMouseOver:v,tabIndex:-1};return l.a.createElement(p,Object(r.a)({},d,{innerProps:g,data:i,isDisabled:a,isSelected:u,key:y,label:s,type:o,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())k=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,u=t.index,s="".concat(e.getElementId("group"),"-").concat(u),c="".concat(s,"-heading");return l.a.createElement(n,Object(r.a)({},d,{key:s,data:o,options:a,Heading:i,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return I(e,"".concat(u,"-").concat(e.index))})))}if("option"===t.type)return I(t,"".concat(t.index))}));else if(g){var D=m({inputValue:y});if(null===D)return null;k=l.a.createElement(c,d,D)}else{var R=C({inputValue:y});if(null===R)return null;k=l.a.createElement(f,d,R)}var T={minMenuHeight:O,maxMenuHeight:w,menuPlacement:j,menuPosition:E,menuShouldScrollIntoView:P},N=l.a.createElement(o.i,Object(r.a)({},d,T),(function(t){var n=t.ref,o=t.placerProps,i=o.placement,s=o.maxHeight;return l.a.createElement(a,Object(r.a)({},d,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:i}),l.a.createElement(H,{captureEnabled:b,onTopArrive:A,onBottomArrive:M,lockEnabled:_},(function(t){return l.a.createElement(u,Object(r.a)({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:g,maxHeight:s,focusedOption:h}),k)})))}));return S||"fixed"===E?l.a.createElement(s,Object(r.a)({},d,{appendTo:S,controlElement:this.controlRef,menuPlacement:j,menuPosition:E}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=this.state.selectValue;if(i&&!r){if(o){if(n){var u=a.map((function(t){return e.getOptionValue(t)})).join(n);return l.a.createElement("input",{name:i,type:"hidden",value:u})}var s=a.length>0?a.map((function(t,n){return l.a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):l.a.createElement("input",{name:i,type:"hidden"});return l.a.createElement("div",null,s)}var c=a[0]?this.getOptionValue(a[0]):"";return l.a.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,a=t.isFocused,u=t.selectValue,s=this.getFocusableOptions();return l.a.createElement(y,Object(r.a)({},e,{ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:a,selectValue:u,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,a=this.props,u=a.className,s=a.id,c=a.isDisabled,f=a.menuIsOpen,p=this.state.isFocused,d=this.commonProps=this.getCommonProps();return l.a.createElement(o,Object(r.a)({},d,{className:u,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:p}),this.renderLiveRegion(),l.a.createElement(t,Object(r.a)({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:p,menuIsOpen:f}),l.a.createElement(i,Object(r.a)({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),l.a.createElement(n,Object(r.a)({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=e.options,u=e.value,s=e.menuIsOpen,c=e.inputValue,l={};if(n&&(u!==n.value||a!==n.options||s!==n.menuIsOpen||c!==n.inputValue)){var f=Object(o.e)(u),p=s?function(e,t){return K(G(e,t))}(e,f):[],d=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,f):null;l={selectValue:f,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,p),focusedValue:d,clearFocusValueOnUpdate:!1}}var h=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{};return Object(o.k)(Object(o.k)(Object(o.k)({},l),h),{},{prevProps:e})}}]),n}(c.Component);ie.defaultProps=X},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=c(n(603)),o=c(n(679)),i=c(n(705)),a=c(n(706)),u=c(n(707)),s=c(n(708));function c(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=u.default,t.loop=s.default;var l=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var u=(0,r.default)(n),s=(0,o.default)(e,u);return(0,i.default)(s)};t.default=l},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return u}));var r=n(128),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,n){var o;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,c=t,l=[],f=l,p=!1;function d(){f===l&&(f=l.slice())}function h(){if(p)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return c}function v(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(p)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return d(),f.push(e),function(){if(t){if(p)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,d();var n=f.indexOf(e);f.splice(n,1),l=null}}}function b(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,c=s(c,e)}finally{p=!1}for(var t=l=f,n=0;n<t.length;n++)(0,t[n])();return e}function y(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");s=e,b({type:i.REPLACE})}function g(){var e,t=v;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[r.a]=function(){return this},e}return b({type:i.INIT}),(o={dispatch:b,subscribe:v,getState:h,replaceReducer:y})[r.a]=g,o}function s(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function c(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var a,u=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+i.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,o={},i=0;i<u.length;i++){var c=u[i],l=n[c],f=e[c],p=l(f,t);if(void 0===p){var d=s(c,t);throw new Error(d)}o[c]=p,r=r||p!==f}return(r=r||u.length!==Object.keys(e).length)?o:e}}function l(e,t){return function(){return t(e.apply(this,arguments))}}function f(e,t){if("function"==typeof e)return l(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=l(o,t))}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(n,!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return h({},n,{dispatch:r=v.apply(void 0,i)(n.dispatch)})}}}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},,,,function(e,t,n){var r=n(343),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},,,,,,,function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},,,,,,function(e,t,n){"use strict";var r=Array.prototype.slice,o=n(302),i=Object.keys,a=i?function(e){return i(e)}:n(472),u=Object.keys;a.shim=function(){return Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return o(e)?u(r.call(e)):u(e)}):Object.keys=a,Object.keys||a},e.exports=a},function(e,t,n){"use strict";var r=SyntaxError,o=Function,i=TypeError,a=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var s=function(){throw new i},c=u?function(){try{return s}catch(e){try{return u(arguments,"callee").get}catch(e){return s}}}():s,l=n(86)(),f=Object.getPrototypeOf||function(e){return e.__proto__},p=a("async function* () {}"),d=p?p.prototype:void 0,h=d?d.prototype:void 0,v="undefined"==typeof Uint8Array?void 0:f(Uint8Array),b={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l?f([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":a("async function () {}"),"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":h?f(h):void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":a("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?f(f([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?f((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?f((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?f(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":c,"%TypedArray%":v,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(44),m=n(176),O=g.call(Function.call,Array.prototype.concat),w=g.call(Function.apply,Array.prototype.splice),x=g.call(Function.call,String.prototype.replace),j=g.call(Function.call,String.prototype.slice),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,_=function(e){var t=j(e,0,1),n=j(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var o=[];return x(e,E,(function(e,t,n,r){o[o.length]=n?x(r,S,"$1"):t||e})),o},P=function(e,t){var n,o=e;if(m(y,o)&&(o="%"+(n=y[o])[0]+"%"),m(b,o)){var a=b[o];if(void 0===a&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:a}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new i('"allowMissing" argument must be a boolean');var n=_(e),o=n.length>0?n[0]:"",a=P("%"+o+"%",t),s=a.name,c=a.value,l=!1,f=a.alias;f&&(o=f[0],w(n,O([0,1],f)));for(var p=1,d=!0;p<n.length;p+=1){var h=n[p],v=j(h,0,1),y=j(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===y||"'"===y||"`"===y)&&v!==y)throw new r("property names with quotes must have matching quotes");if("constructor"!==h&&d||(l=!0),m(b,s="%"+(o+="."+h)+"%"))c=b[s];else if(null!=c){if(!(h in c)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&p+1>=n.length){var g=u(c,h);c=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[h]}else d=m(c,h),c=c[h];d&&!l&&(b[s]=c)}}return c}},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(160),o=n(605),i=n(606),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(631),o=n(634);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(371),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},,,,,,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var o=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,void 0):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,"a",(function(){return o}))},,,,,,,,,,,,,function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},,,,,function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(7),o=n(76),i=n(57),a=n(58),u=n(59),s=n(3),c=n(0),l=n.n(c),f={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},p=function(e){var t,n;return n=t=function(t){Object(u.a)(c,t);var n=Object(s.j)(c);function c(){var e;Object(i.a)(this,c);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return Object(a.a)(c,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.props;n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue;var i=Object(o.a)(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return l.a.createElement(e,Object(r.a)({},i,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),c}(c.Component),t.defaultProps=f,n}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(288),a=/[A-Z]|^ms/g,u=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},l=Object(i.a)((function(e){return s(e)?e:e.replace(a,"-$&").toLowerCase()})),f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(u,(function(e,t,n){return d={name:t,styles:n,next:d},t}))}return 1===o[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return d={name:n.name,styles:n.styles,next:d},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)d={name:r.name,styles:r.styles,next:d},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=p(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":c(a)&&(r+=l(i)+":"+f(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var u=p(e,t,a);switch(i){case"animation":case"animationName":r+=l(i)+":"+u+";";break;default:r+=i+"{"+u+"}"}}else for(var s=0;s<a.length;s++)c(a[s])&&(r+=l(i)+":"+f(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=d,i=n(e);return d=o,p(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var d,h=/label:\s*([^\s;\n{]+)\s*(;|$)/g,v=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";d=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=p(n,t,a)):i+=a[0];for(var u=1;u<e.length;u++)i+=p(n,t,e[u]),o&&(i+=a[u]);h.lastIndex=0;for(var s,c="";null!==(s=h.exec(i));)c+="-"+s[1];return{name:r(i)+c,styles:i,next:d}}},,,,,function(e,t,n){var r=n(80).Symbol;e.exports=r},function(e,t,n){var r=n(345),o=n(613),i=n(184);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(370),o=n(722),i=n(723),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(260),o=n(378);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=s(i),u=s(n(20));function s(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},l=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],f=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},p=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),d=function(){return p?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||d(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||d(),prevId:n}:null}}]),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(f(e,this.sizer),this.placeHolderSizer&&f(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return p&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){l.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(i.Component);h.propTypes={className:u.default.string,defaultValue:u.default.any,extraWidth:u.default.oneOfType([u.default.number,u.default.string]),id:u.default.string,injectStyles:u.default.bool,inputClassName:u.default.string,inputRef:u.default.func,inputStyle:u.default.object,minWidth:u.default.oneOfType([u.default.number,u.default.string]),onAutosize:u.default.func,onChange:u.default.func,placeholder:u.default.string,placeholderIsMinWidth:u.default.bool,style:u.default.object,value:u.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.default=h},function(e,t,n){"use strict";var r=n(205),o=n(27),i=(n(172),n(288),function(e,t){return Object(o.c)(function(e,t){var n=-1,r=44;do{switch(Object(o.o)(r)){case 0:38===r&&12===Object(o.i)()&&(t[n]=1),e[n]+=Object(o.f)(o.j-1);break;case 2:e[n]+=Object(o.d)(r);break;case 4:if(44===r){e[++n]=58===Object(o.i)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Object(o.e)(r)}}while(r=Object(o.h)());return e}(Object(o.a)(e),t))}),a=new WeakMap,u=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||a.get(n))&&!r){a.set(e,!0);for(var o=[],u=i(t,o),s=n.props,c=0,l=0;c<u.length;c++)for(var f=0;f<s.length;f++,l++)e.props[l]=o[c]?u[c].replace(/&\f/g,s[f]):s[f]+" "+u[c]}}},s=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},c=[o.k];t.a=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){document.head.appendChild(e),e.setAttribute("data-s","")}))}var i,a,l=e.stylisPlugins||c,f={},p=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll("style[data-emotion]"),(function(e){var n=e.getAttribute("data-emotion").split(" ");if(n[0]===t){for(var r=1;r<n.length;r++)f[n[r]]=!0;p.push(e)}}));var d,h=[u,s],v=[o.n,Object(o.l)((function(e){d.insert(e)}))],b=Object(o.g)(h.concat(l,v));a=function(e,t,n,r){var i;d=n,i=e?e+"{"+t.styles+"}":t.styles,Object(o.m)(Object(o.b)(i),b),r&&(y.inserted[t.name]=!0)};var y={key:t,sheet:new r.a({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend}),nonce:e.nonce,inserted:f,registered:{},insert:a};return y.sheet.hydrate(p),y}},function(e,t,n){"use strict";t.a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}},,,,,function(e,t,n){"use strict";var r=n(44),o=n(473),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||r.call(a,i),s=o("%Object.defineProperty%",!0);if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(){return u(r,a,arguments)};var c=function(){return u(r,i,arguments)};s?s(e.exports,"apply",{value:c}):e.exports.apply=c},,,,,,,function(e,t,n){var r=n(350),o=n(245);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(621),o=n(622),i=n(623),a=n(624),u=n(625);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},function(e,t,n){var r=n(251);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(124)(Object,"create");e.exports=r},function(e,t,n){var r=n(643);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(658),o=n(252),i=n(659),a=n(660),u=n(661),s=n(123),c=n(353),l=c(r),f=c(o),p=c(i),d=c(a),h=c(u),v=s;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||u&&"[object WeakMap]"!=v(new u))&&(v=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=v},function(e,t,n){var r=n(256);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(365),o=n(366);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var u=-1,s=t.length;++u<s;){var c=t[u],l=i?i(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),a?o(n,c,l):r(n,c,l)}return n}},function(e,t,n){var r=n(711),o=n(712),i=n(713),a=n(714),u=n(715);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},function(e,t,n){var r=n(194);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(259)(Object,"create");e.exports=r},function(e,t,n){var r=n(737);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"MemoryRouter",(function(){return g})),n.d(t,"Prompt",(function(){return O})),n.d(t,"Redirect",(function(){return E})),n.d(t,"Route",(function(){return C})),n.d(t,"Router",(function(){return y})),n.d(t,"StaticRouter",(function(){return R})),n.d(t,"Switch",(function(){return T})),n.d(t,"generatePath",(function(){return j})),n.d(t,"matchPath",(function(){return P})),n.d(t,"useHistory",(function(){return F})),n.d(t,"useLocation",(function(){return U})),n.d(t,"useParams",(function(){return V})),n.d(t,"useRouteMatch",(function(){return H})),n.d(t,"withRouter",(function(){return N})),n.d(t,"BrowserRouter",(function(){return B})),n.d(t,"HashRouter",(function(){return W})),n.d(t,"Link",(function(){return G})),n.d(t,"NavLink",(function(){return Z}));var r=n(37),o=n(0),i=n.n(o),a=(n(20),n(51)),u=n(206),s=n(30),c=n(14),l=n(207),f=n.n(l),p=(n(99),n(50)),d=n(63),h=n.n(d),v=function(e){var t=Object(u.a)();return t.displayName="Router-History",t}(),b=function(e){var t=Object(u.a)();return t.displayName="Router",t}(),y=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return i.a.createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.a.createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.a.Component),g=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(a.createMemoryHistory)(t.props),t}return Object(r.a)(t,e),t.prototype.render=function(){return i.a.createElement(y,{history:this.history,children:this.props.children})},t}(i.a.Component),m=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.a.Component);function O(e){var t=e.message,n=e.when,r=void 0===n||n;return i.a.createElement(b.Consumer,null,(function(e){if(e||Object(s.a)(!1),!r||e.staticContext)return null;var n=e.history.block;return i.a.createElement(m,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var w={},x=0;function j(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(w[e])return w[e];var t=f.a.compile(e);return x<1e4&&(w[e]=t,x++),t}(e)(t,{pretty:!0})}function E(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i.a.createElement(b.Consumer,null,(function(e){e||Object(s.a)(!1);var r=e.history,u=e.staticContext,l=o?r.push:r.replace,f=Object(a.createLocation)(t?"string"==typeof n?j(n,t.params):Object(c.a)({},n,{pathname:j(n.pathname,t.params)}):n);return u?(l(f),null):i.a.createElement(m,{onMount:function(){l(f)},onUpdate:function(e,t){var n=Object(a.createLocation)(t.to);Object(a.locationsAreEqual)(n,Object(c.a)({},f,{key:n.key}))||l(f)},to:n})}))}var S={},_=0;function P(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,u=void 0!==a&&a,s=n.sensitive,c=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=S[n]||(S[n]={});if(r[e])return r[e];var o=[],i={regexp:f()(e,o,t),keys:o};return _<1e4&&(r[e]=i,_++),i}(n,{end:i,strict:u,sensitive:c}),o=r.regexp,a=r.keys,s=o.exec(e);if(!s)return null;var l=s[0],p=s.slice(1),d=e===l;return i&&!d?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var C=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b.Consumer,null,(function(t){t||Object(s.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?P(n.pathname,e.props):t.match,o=Object(c.a)({},t,{location:n,match:r}),a=e.props,u=a.children,l=a.component,f=a.render;return Array.isArray(u)&&0===u.length&&(u=null),i.a.createElement(b.Provider,{value:o},o.match?u?"function"==typeof u?u(o):u:l?i.a.createElement(l,o):f?f(o):null:"function"==typeof u?u(o):null)}))},t}(i.a.Component);function A(e){return"/"===e.charAt(0)?e:"/"+e}function M(e,t){if(!e)return t;var n=A(e);return 0!==t.pathname.indexOf(n)?t:Object(c.a)({},t,{pathname:t.pathname.substr(n.length)})}function k(e){return"string"==typeof e?e:Object(a.createPath)(e)}function I(e){return function(){Object(s.a)(!1)}}function D(){}var R=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handlePush=function(e){return t.navigateTo(e,"PUSH")},t.handleReplace=function(e){return t.navigateTo(e,"REPLACE")},t.handleListen=function(){return D},t.handleBlock=function(){return D},t}Object(r.a)(t,e);var n=t.prototype;return n.navigateTo=function(e,t){var n=this.props,r=n.basename,o=void 0===r?"":r,i=n.context,u=void 0===i?{}:i;u.action=t,u.location=function(e,t){return e?Object(c.a)({},t,{pathname:A(e)+t.pathname}):t}(o,Object(a.createLocation)(e)),u.url=k(u.location)},n.render=function(){var e=this.props,t=e.basename,n=void 0===t?"":t,r=e.context,o=void 0===r?{}:r,u=e.location,s=void 0===u?"/":u,l=Object(p.a)(e,["basename","context","location"]),f={createHref:function(e){return A(n+k(e))},action:"POP",location:M(n,Object(a.createLocation)(s)),push:this.handlePush,replace:this.handleReplace,go:I(),goBack:I(),goForward:I(),listen:this.handleListen,block:this.handleBlock};return i.a.createElement(y,Object(c.a)({},l,{history:f,staticContext:o}))},t}(i.a.Component),T=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b.Consumer,null,(function(t){t||Object(s.a)(!1);var n,r,o=e.props.location||t.location;return i.a.Children.forEach(e.props.children,(function(e){if(null==r&&i.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?P(o.pathname,Object(c.a)({},e.props,{path:a})):t.match}})),r?i.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i.a.Component);function N(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=Object(p.a)(t,["wrappedComponentRef"]);return i.a.createElement(b.Consumer,null,(function(t){return t||Object(s.a)(!1),i.a.createElement(e,Object(c.a)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,h()(n,e)}var L=i.a.useContext;function F(){return L(v)}function U(){return L(b).location}function V(){var e=L(b).match;return e?e.params:{}}function H(e){var t=U(),n=L(b).match;return e?P(t.pathname,e):n}var B=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(a.createBrowserHistory)(t.props),t}return Object(r.a)(t,e),t.prototype.render=function(){return i.a.createElement(y,{history:this.history,children:this.props.children})},t}(i.a.Component),W=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(a.createHashHistory)(t.props),t}return Object(r.a)(t,e),t.prototype.render=function(){return i.a.createElement(y,{history:this.history,children:this.props.children})},t}(i.a.Component),z=function(e,t){return"function"==typeof e?e(t):e},Y=function(e,t){return"string"==typeof e?Object(a.createLocation)(e,null,null,t):e},q=function(e){return e},X=i.a.forwardRef;void 0===X&&(X=q);var $=X((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,a=Object(p.a)(e,["innerRef","navigate","onClick"]),u=a.target,s=Object(c.a)({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||u&&"_self"!==u||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return s.ref=q!==X&&t||n,i.a.createElement("a",s)})),G=X((function(e,t){var n=e.component,r=void 0===n?$:n,o=e.replace,a=e.to,u=e.innerRef,l=Object(p.a)(e,["component","replace","to","innerRef"]);return i.a.createElement(b.Consumer,null,(function(e){e||Object(s.a)(!1);var n=e.history,f=Y(z(a,e.location),e.location),p=f?n.createHref(f):"",d=Object(c.a)({},l,{href:p,navigate:function(){var t=z(a,e.location);(o?n.replace:n.push)(t)}});return q!==X?d.ref=t||u:d.innerRef=u,i.a.createElement(r,d)}))})),K=function(e){return e},J=i.a.forwardRef;void 0===J&&(J=K);var Z=J((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,o=e.activeClassName,a=void 0===o?"active":o,u=e.activeStyle,l=e.className,f=e.exact,d=e.isActive,h=e.location,v=e.sensitive,y=e.strict,g=e.style,m=e.to,O=e.innerRef,w=Object(p.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i.a.createElement(b.Consumer,null,(function(e){e||Object(s.a)(!1);var n=h||e.location,o=Y(z(m,n),n),p=o.pathname,b=p&&p.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=b?P(n.pathname,{path:b,exact:f,sensitive:v,strict:y}):null,j=!!(d?d(x,n):x),E=j?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(l,a):l,S=j?Object(c.a)({},g,{},u):g,_=Object(c.a)({"aria-current":j&&r||null,className:E,style:S,to:o},w);return K!==J?_.ref=t||O:_.innerRef=O,i.a.createElement(G,_)}))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(344),o=n(615);e.exports=function(e,t){return e&&r(e,o(t))}},function(e,t,n){(function(e){var r=n(80),o=n(611),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,u=a&&a.exports===i?r.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;e.exports=s}).call(this,n(89)(e))},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(343),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u}).call(this,n(89)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(349)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(185),o=n(626),i=n(627),a=n(628),u=n(629),s=n(630);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=u,c.prototype.set=s,e.exports=c},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(124)(n(80),"Map");e.exports=r},function(e,t,n){var r=n(635),o=n(642),i=n(644),a=n(645),u=n(646);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},function(e,t,n){var r=n(657),o=n(360),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=u},function(e,t,n){var r=n(74),o=n(256),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},function(e,t,n){var r=n(123),o=n(88);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(345),o=n(686),i=n(184);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){var r=n(356);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(721),o=n(727);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(162),o=n(81);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(373);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Checkboard=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(0),i=s(o),a=s(n(73)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(774));function s(e){return e&&e.__esModule?e:{default:e}}var c=t.Checkboard=function(e){var t=e.white,n=e.grey,s=e.size,c=e.renderers,l=e.borderRadius,f=e.boxShadow,p=e.children,d=(0,a.default)({default:{grid:{borderRadius:l,boxShadow:f,absolute:"0px 0px 0px 0px",background:"url("+u.get(t,n,s,c.canvas)+") center left"}}});return(0,o.isValidElement)(p)?i.default.cloneElement(p,r({},p.props,{style:r({},p.props.style,d.grid)})):i.default.createElement("div",{style:d.grid})};c.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},t.default=c},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"Popper",(function(){return A})),n.d(t,"placements",(function(){return C})),n.d(t,"Manager",(function(){return w})),n.d(t,"Reference",(function(){return D}));var r=n(425),o=n.n(r),i=n(131),a=n.n(i),u=n(23),s=n.n(u),c=n(152),l=n.n(c),f=n(24),p=n.n(f),d=n(168),h=n.n(d),v=n(0),b=n(290),y=n(151),g=n.n(y),m=g()(),O=g()(),w=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,p()(s()(t),"referenceNode",void 0),p()(s()(t),"setReferenceNode",(function(e){e&&t.referenceNode!==e&&(t.referenceNode=e,t.forceUpdate())})),t}l()(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.referenceNode=null},n.render=function(){return v.createElement(m.Provider,{value:this.referenceNode},v.createElement(O.Provider,{value:this.setReferenceNode},this.props.children))},t}(v.Component),x=function(e){return Array.isArray(e)?e[0]:e},j=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},E=function(e,t){if("function"==typeof e)return j(e,t);null!=e&&(e.current=t)},S={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},_={},P=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,p()(s()(t),"state",{data:void 0,placement:void 0}),p()(s()(t),"popperInstance",void 0),p()(s()(t),"popperNode",null),p()(s()(t),"arrowNode",null),p()(s()(t),"setPopperNode",(function(e){e&&t.popperNode!==e&&(E(t.props.innerRef,e),t.popperNode=e,t.updatePopperInstance())})),p()(s()(t),"setArrowNode",(function(e){t.arrowNode=e})),p()(s()(t),"updateStateModifier",{enabled:!0,order:900,fn:function(e){var n=e.placement;return t.setState({data:e,placement:n}),e}}),p()(s()(t),"getOptions",(function(){return{placement:t.props.placement,eventsEnabled:t.props.eventsEnabled,positionFixed:t.props.positionFixed,modifiers:a()({},t.props.modifiers,{arrow:a()({},t.props.modifiers&&t.props.modifiers.arrow,{enabled:!!t.arrowNode,element:t.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:t.updateStateModifier})}})),p()(s()(t),"getPopperStyle",(function(){return t.popperNode&&t.state.data?a()({position:t.state.data.offsets.popper.position},t.state.data.styles):S})),p()(s()(t),"getPopperPlacement",(function(){return t.state.data?t.state.placement:void 0})),p()(s()(t),"getArrowStyle",(function(){return t.arrowNode&&t.state.data?t.state.data.arrowStyles:_})),p()(s()(t),"getOutOfBoundariesState",(function(){return t.state.data?t.state.data.hide:void 0})),p()(s()(t),"destroyPopperInstance",(function(){t.popperInstance&&(t.popperInstance.destroy(),t.popperInstance=null)})),p()(s()(t),"updatePopperInstance",(function(){t.destroyPopperInstance();var e=s()(t).popperNode,n=t.props.referenceElement;n&&e&&(t.popperInstance=new b.a(n,e,t.getOptions()))})),p()(s()(t),"scheduleUpdate",(function(){t.popperInstance&&t.popperInstance.scheduleUpdate()})),t}l()(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){this.props.placement===e.placement&&this.props.referenceElement===e.referenceElement&&this.props.positionFixed===e.positionFixed&&h()(this.props.modifiers,e.modifiers,{strict:!0})?this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()):this.updatePopperInstance(),t.placement!==this.state.placement&&this.scheduleUpdate()},n.componentWillUnmount=function(){E(this.props.innerRef,null),this.destroyPopperInstance()},n.render=function(){return x(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t}(v.Component);p()(P,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});var C=b.a.placements;function A(e){var t=e.referenceElement,n=o()(e,["referenceElement"]);return v.createElement(m.Consumer,null,(function(e){return v.createElement(P,a()({referenceElement:void 0!==t?t:e},n))}))}var M=n(90),k=n.n(M),I=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,p()(s()(t),"refHandler",(function(e){E(t.props.innerRef,e),j(t.props.setReferenceNode,e)})),t}l()(t,e);var n=t.prototype;return n.componentWillUnmount=function(){E(this.props.innerRef,null)},n.render=function(){return k()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),x(this.props.children)({ref:this.refHandler})},t}(v.Component);function D(e){return v.createElement(O.Consumer,null,(function(t){return v.createElement(I,a()({setReferenceNode:t},e))}))}},function(e,t,n){"use strict";t.a=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},function(e,t,n){"use strict";var r=n(63),o=n.n(r);t.a=function(e,t){return o()(e,t)}},function(e,t,n){"use strict";(function(e){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),o=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function u(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function s(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:s(u(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var l=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?l:10===e?f:l||f}function d(e){if(!e)return document.documentElement;for(var t=p(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?d(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function v(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,u,s=i.commonAncestorContainer;if(e!==s&&t!==s||r.contains(o))return"BODY"===(u=(a=s).nodeName)||"HTML"!==u&&d(a.firstElementChild)!==a?d(s):s;var c=h(e);return c.host?v(c.host,t):v(e,h(t).host)}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=b(t,"top"),o=b(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function g(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function m(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],p(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function O(e){var t=e.body,n=e.documentElement,r=p(10)&&getComputedStyle(n);return{height:m("Height",t,n,r),width:m("Width",t,n,r)}}var w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},x=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),j=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function S(e){return E({},e,{right:e.left+e.width,bottom:e.top+e.height})}function _(e){var t={};try{if(p(10)){t=e.getBoundingClientRect();var n=b(e,"top"),r=b(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?O(e.ownerDocument):{},u=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,c=e.offsetWidth-u,l=e.offsetHeight-s;if(c||l){var f=a(e);c-=g(f,"x"),l-=g(f,"y"),o.width-=c,o.height-=l}return S(o)}function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=p(10),o="HTML"===t.nodeName,i=_(e),u=_(t),c=s(e),l=a(t),f=parseFloat(l.borderTopWidth),d=parseFloat(l.borderLeftWidth);n&&o&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var h=S({top:i.top-u.top-f,left:i.left-u.left-d,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var v=parseFloat(l.marginTop),b=parseFloat(l.marginLeft);h.top-=f-v,h.bottom-=f-v,h.left-=d-b,h.right-=d-b,h.marginTop=v,h.marginLeft=b}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(h=y(h,t)),h}function C(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=P(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:b(n),u=t?0:b(n,"left"),s={top:a-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:o,height:i};return S(s)}function A(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=u(e);return!!n&&A(n)}function M(e){if(!e||!e.parentElement||p())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function k(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?M(e):v(e,c(t));if("viewport"===r)i=C(a,o);else{var l=void 0;"scrollParent"===r?"BODY"===(l=s(u(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===r?e.ownerDocument.documentElement:r;var f=P(l,a,o);if("HTML"!==l.nodeName||A(a))i=f;else{var p=O(e.ownerDocument),d=p.height,h=p.width;i.top+=f.top-f.marginTop,i.bottom=d+f.top,i.left+=f.left-f.marginLeft,i.right=h+f.left}}var b="number"==typeof(n=n||0);return i.left+=b?n:n.left||0,i.top+=b?n:n.top||0,i.right-=b?n:n.right||0,i.bottom-=b?n:n.bottom||0,i}function I(e){return e.width*e.height}function D(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=k(n,r,i,o),u={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},s=Object.keys(u).map((function(e){return E({key:e},u[e],{area:I(u[e])})})).sort((function(e,t){return t.area-e.area})),c=s.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=c.length>0?c[0].key:s[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function R(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?M(t):v(t,c(n));return P(n,o,r)}function T(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function N(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function L(e,t,n){n=n.split("-")[0];var r=T(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",u=i?"left":"top",s=i?"height":"width",c=i?"width":"height";return o[a]=t[a]+t[s]/2-r[s]/2,o[u]=n===u?t[u]-r[c]:t[N(u)],o}function F(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function U(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e.name===n}));var r=F(e,(function(e){return e.name===n}));return e.indexOf(r)}(e,0,n))).forEach((function(e){e.function;var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=S(t.offsets.popper),t.offsets.reference=S(t.offsets.reference),t=n(t,e))})),t}function V(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=R(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=D(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=L(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=U(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function H(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function B(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function W(){return this.state.isDestroyed=!0,H(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[B("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function z(e){var t=e.ownerDocument;return t?t.defaultView:window}function Y(){this.state.eventsEnabled||(this.state=function(e,t,n,r){n.updateBound=r,z(e).addEventListener("resize",n.updateBound,{passive:!0});var o=s(e);return function e(t,n,r,o){var i="BODY"===t.nodeName,a=i?t.ownerDocument.defaultView:t;a.addEventListener(n,r,{passive:!0}),i||e(s(a.parentNode),n,r,o),o.push(a)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}(this.reference,this.options,this.state,this.scheduleUpdate))}function q(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,z(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function X(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function $(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&X(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var G=n&&/Firefox/i.test(navigator.userAgent);function K(e,t,n){var r=F(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));return o}var J=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Z=J.slice(3);function Q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Z.indexOf(e),r=Z.slice(n+1).concat(Z.slice
1
  /*! For license information please see admin-vendors.js.LICENSE.txt */