Spotlight Social Media Feeds - Version 0.4

Version Description

(2020-10-26) =

Changed - Greatly improved the loading time for feeds on the site - All pages are now much more responsive and usable on mobile devices - Filtering fields will auto-add their typed value when they lose focus - Improved the message shown in the shortcode when a feed does not exist - Added redundant WordPress styles to ensure a consistent look and feel

Fixed - Addressed the "Cache key is invalid" entries in the debug log - Fixed thumbnails not loading due to Instagram deprecating their thumbnails API - Fixed an error that sometimes prevented feeds from being saved

Download this release

Release Info

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

Code changes from version 0.3.2 to 0.4

core/Actions/RenderShortcode.php CHANGED
@@ -4,6 +4,7 @@ namespace RebelCode\Spotlight\Instagram\Actions;
4
 
5
  use Dhii\Output\TemplateInterface;
6
  use RebelCode\Spotlight\Instagram\PostTypes\FeedPostType;
 
7
  use RebelCode\Spotlight\Instagram\Utils\Arrays;
8
  use RebelCode\Spotlight\Instagram\Utils\Strings;
9
  use RebelCode\Spotlight\Instagram\Wp\PostType;
@@ -21,7 +22,14 @@ class RenderShortcode
21
  *
22
  * @var PostType
23
  */
24
- protected $cpt;
 
 
 
 
 
 
 
25
 
26
  /**
27
  * @since 0.1
@@ -35,12 +43,14 @@ class RenderShortcode
35
  *
36
  * @since 0.1
37
  *
38
- * @param PostType $cpt The feeds post type.
 
39
  * @param TemplateInterface $template The template to use for rendering.
40
  */
41
- public function __construct(PostType $cpt, TemplateInterface $template)
42
  {
43
- $this->cpt = $cpt;
 
44
  $this->template = $template;
45
  }
46
 
@@ -62,18 +72,27 @@ class RenderShortcode
62
  // If the "feed" arg is given, get the feed for that ID and merge its options with the other args
63
  if (array_key_exists('feed', $options)) {
64
  $feedId = $options['feed'];
65
- $feedPost = $this->cpt->get($feedId);
66
 
67
  if ($feedPost instanceof WP_Post) {
68
  unset($options['feed']);
69
  $options = array_merge($feedPost->{FeedPostType::OPTIONS}, $options);
70
  } else {
71
  return is_user_logged_in()
72
- ? "<p>There is no feed with ID {$feedId} <small>(only admins can see this message)</small></p>"
73
  : '';
74
  }
75
  }
76
 
77
- return $this->template->render($options);
 
 
 
 
 
 
 
 
 
78
  }
79
  }
4
 
5
  use Dhii\Output\TemplateInterface;
6
  use RebelCode\Spotlight\Instagram\PostTypes\FeedPostType;
7
+ use RebelCode\Spotlight\Instagram\RestApi\Transformers\AccountTransformer;
8
  use RebelCode\Spotlight\Instagram\Utils\Arrays;
9
  use RebelCode\Spotlight\Instagram\Utils\Strings;
10
  use RebelCode\Spotlight\Instagram\Wp\PostType;
22
  *
23
  * @var PostType
24
  */
25
+ protected $feeds;
26
+
27
+ /**
28
+ * @since 0.4
29
+ *
30
+ * @var PostType
31
+ */
32
+ protected $accounts;
33
 
34
  /**
35
  * @since 0.1
43
  *
44
  * @since 0.1
45
  *
46
+ * @param PostType $feeds The feeds post type.
47
+ * @param PostType $accounts The accounts post type.
48
  * @param TemplateInterface $template The template to use for rendering.
49
  */
50
+ public function __construct(PostType $feeds, PostType $accounts, TemplateInterface $template)
51
  {
52
+ $this->feeds = $feeds;
53
+ $this->accounts = $accounts;
54
  $this->template = $template;
55
  }
56
 
72
  // If the "feed" arg is given, get the feed for that ID and merge its options with the other args
73
  if (array_key_exists('feed', $options)) {
74
  $feedId = $options['feed'];
75
+ $feedPost = $this->feeds->get($feedId);
76
 
77
  if ($feedPost instanceof WP_Post) {
78
  unset($options['feed']);
79
  $options = array_merge($feedPost->{FeedPostType::OPTIONS}, $options);
80
  } else {
81
  return is_user_logged_in()
82
+ ? "<p>The selected Instagram feed does not exist (ID {$feedId})<br/><small>(This message is only visible when logged in)</small></p>"
83
  : '';
84
  }
85
  }
86
 
87
+ $accountIds = array_unique(array_merge($options['accounts'] ?? [], $options['tagged'] ?? []));
88
+ $accountPosts = $this->accounts->query(['post_in' => $accountIds]);
89
+ $accounts = Arrays::map($accountPosts, function (WP_Post $post) {
90
+ return AccountTransformer::toArray($post);
91
+ });
92
+
93
+ return $this->template->render([
94
+ 'feed' => $options,
95
+ 'accounts' => $accounts,
96
+ ]);
97
  }
98
  }
core/Feeds/FeedTemplate.php CHANGED
@@ -22,15 +22,32 @@ class FeedTemplate implements TemplateInterface
22
  return '';
23
  }
24
 
25
- // Convert the options into JSON
26
- $feedJson = json_encode($ctx);
27
- // The name of the JS variable to use
28
- $varName = uniqid('feed');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  // Prepare the HTML class
31
  $className = 'spotlight-instagram-feed';
32
- if (array_key_exists('className', $ctx) && !empty($ctx['className'])) {
33
- $className .= ' ' . $ctx['className'];
34
  }
35
 
36
  // Output the required HTML and JS
@@ -42,7 +59,12 @@ class FeedTemplate implements TemplateInterface
42
  window.SliFrontCtx = {};
43
  }
44
 
 
 
 
 
45
  window.SliFrontCtx["<?= $varName ?>"] = <?= $feedJson ?>;
 
46
  </script>
47
  <?php
48
 
22
  return '';
23
  }
24
 
25
+ return static::renderFeed(uniqid('feed'), $ctx);
26
+ }
27
+
28
+ /**
29
+ * Renders a feed.
30
+ *
31
+ * @since 0.4
32
+ *
33
+ * @param string $varName The JS variable name in `SliFrontCtx`.
34
+ * @param array $ctx The render context.
35
+ *
36
+ * @return string The rendered feed.
37
+ */
38
+ public static function renderFeed(string $varName, array $ctx)
39
+ {
40
+ $feedOptions = $ctx['feed'] ?? [];
41
+ $accounts = $ctx['accounts'] ?? [];
42
+
43
+ // Convert into JSON, which is also valid JS syntax
44
+ $feedJson = json_encode($feedOptions);
45
+ $accountsJson = json_encode($accounts);
46
 
47
  // Prepare the HTML class
48
  $className = 'spotlight-instagram-feed';
49
+ if (array_key_exists('className', $feedOptions) && !empty($feedOptions['className'])) {
50
+ $className .= ' ' . $feedOptions['className'];
51
  }
52
 
53
  // Output the required HTML and JS
59
  window.SliFrontCtx = {};
60
  }
61
 
62
+ if (!window.SliAccountInfo) {
63
+ window.SliAccountInfo = {};
64
+ }
65
+
66
  window.SliFrontCtx["<?= $varName ?>"] = <?= $feedJson ?>;
67
+ window.SliAccountInfo["<?= $varName ?>"] = <?= $accountsJson ?>;
68
  </script>
69
  <?php
70
 
core/IgApi/IgBasicApiClient.php CHANGED
@@ -142,7 +142,7 @@ class IgBasicApiClient
142
  ]);
143
  };
144
 
145
- $body = IgApiUtils::getCachedResponse($this->cache, "media/p/{$userId}", $getRemote);
146
  $media = $body['data'];
147
 
148
  return array_map(function ($data) {
@@ -188,7 +188,7 @@ class IgBasicApiClient
188
  return IgApiUtils::request($this->client, 'GET', "https://instagram.com/{$username}?__a=1");
189
  };
190
 
191
- $info = IgApiUtils::getCachedResponse($this->cache, "legacy/p/{$username}", $getRemote);
192
  } catch (Exception $exception) {
193
  return $data;
194
  }
@@ -229,7 +229,7 @@ class IgBasicApiClient
229
  return IgApiUtils::request($this->client, 'GET', $permalink . "?__a=1");
230
  };
231
 
232
- $info = IgApiUtils::getCachedResponse($this->cache, "legacy/m/{$mediaId}", $getRemote);
233
  } catch (Exception $exception) {
234
  return $data;
235
  }
142
  ]);
143
  };
144
 
145
+ $body = IgApiUtils::getCachedResponse($this->cache, "media_p_{$userId}", $getRemote);
146
  $media = $body['data'];
147
 
148
  return array_map(function ($data) {
188
  return IgApiUtils::request($this->client, 'GET', "https://instagram.com/{$username}?__a=1");
189
  };
190
 
191
+ $info = IgApiUtils::getCachedResponse($this->cache, "legacy_p_{$username}", $getRemote);
192
  } catch (Exception $exception) {
193
  return $data;
194
  }
229
  return IgApiUtils::request($this->client, 'GET', $permalink . "?__a=1");
230
  };
231
 
232
+ $info = IgApiUtils::getCachedResponse($this->cache, "legacy_m_{$mediaId}", $getRemote);
233
  } catch (Exception $exception) {
234
  return $data;
235
  }
core/IgApi/IgGraphApiClient.php CHANGED
@@ -140,7 +140,7 @@ class IgGraphApiClient
140
  return $this->expandWithComments($response, $accessToken);
141
  };
142
 
143
- $body = IgApiUtils::getCachedResponse($this->cache, "media/b/{$userId}", $getRemote);
144
  $media = $body['data'];
145
  $media = !is_array($media) ? [] : $media;
146
 
140
  return $this->expandWithComments($response, $accessToken);
141
  };
142
 
143
+ $body = IgApiUtils::getCachedResponse($this->cache, "media_b_{$userId}", $getRemote);
144
  $media = $body['data'];
145
  $media = !is_array($media) ? [] : $media;
146
 
core/PostTypes/FeedPostType.php CHANGED
@@ -78,6 +78,7 @@ class FeedPostType extends PostType
78
  public static function getShortcodeUsages(Feed $feed, wpdb $wpdb)
79
  {
80
  $query = sprintf(
 
81
  "SELECT ID, post_title, post_type
82
  FROM %s
83
  WHERE post_type != 'revision' AND
@@ -133,7 +134,7 @@ class FeedPostType extends PostType
133
  $usages[] = [
134
  'id' => $actualId,
135
  'name' => $sliWidgets[$actualId]['title'],
136
- 'type' => 'Widget',
137
  'link' => $widgetEditLink,
138
  ];
139
  }
@@ -159,6 +160,7 @@ class FeedPostType extends PostType
159
  public static function getWpBlockUsages(Feed $feed, wpdb $wpdb)
160
  {
161
  $query = sprintf(
 
162
  "SELECT ID, post_title, post_type
163
  FROM %s
164
  WHERE post_type != 'revision' AND
@@ -179,4 +181,48 @@ class FeedPostType extends PostType
179
  ];
180
  });
181
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  }
78
  public static function getShortcodeUsages(Feed $feed, wpdb $wpdb)
79
  {
80
  $query = sprintf(
81
+ /** @lang text */
82
  "SELECT ID, post_title, post_type
83
  FROM %s
84
  WHERE post_type != 'revision' AND
134
  $usages[] = [
135
  'id' => $actualId,
136
  'name' => $sliWidgets[$actualId]['title'],
137
+ 'type' => __('WordPress widget', 'sl-insta'),
138
  'link' => $widgetEditLink,
139
  ];
140
  }
160
  public static function getWpBlockUsages(Feed $feed, wpdb $wpdb)
161
  {
162
  $query = sprintf(
163
+ /** @lang text */
164
  "SELECT ID, post_title, post_type
165
  FROM %s
166
  WHERE post_type != 'revision' AND
181
  ];
182
  });
183
  }
184
+
185
+ /**
186
+ * Finds usages of the Spotlight Elementor widget for a specific feed.
187
+ *
188
+ * @since 0.4
189
+ *
190
+ * @param Feed $feed The feed instance.
191
+ * @param wpdb $wpdb The WordPress database driver.
192
+ *
193
+ * @return array A list of associative sub-arrays, each containing information about posts whose Elementor page data
194
+ * includes a Spotlight widget that uses the given feed. Each sub-array will have the below keys:
195
+ * 'id' => The ID of the post
196
+ * 'name' => The title of the post
197
+ * 'type' => The post type
198
+ * 'link' => The URL to the post's edit page
199
+ */
200
+ public static function getElementorWidgetUsages(Feed $feed, wpdb $wpdb)
201
+ {
202
+ $query = sprintf(
203
+ /** @lang text */
204
+ "SELECT ID, post_title, post_type
205
+ FROM %s as post
206
+ JOIN %s as meta on post.ID = meta.post_id
207
+ WHERE post.post_type != 'revision' AND
208
+ post.post_status != 'trash' AND
209
+ meta.meta_key = '_elementor_data' AND
210
+ meta.meta_value LIKE '%%\"widgetType\":\"sl-insta-feed\"%%' AND
211
+ meta.meta_value LIKE '%%\"feed\":\"%d\"%%'",
212
+ $wpdb->posts,
213
+ $wpdb->postmeta,
214
+ $feed->getId()
215
+ );
216
+
217
+ $results = $wpdb->get_results($query);
218
+
219
+ return Arrays::map($results, function ($row) {
220
+ return [
221
+ 'id' => $row->ID,
222
+ 'name' => $row->post_title,
223
+ 'type' => __('Elementor widget', 'sl-insta'),
224
+ 'link' => get_edit_post_link($row->ID, ''),
225
+ ];
226
+ });
227
+ }
228
  }
core/RestApi/Transformers/AccountTransformer.php CHANGED
@@ -46,34 +46,49 @@ class AccountTransformer implements TransformerInterface
46
  return $source;
47
  }
48
 
49
- $account = AccountPostType::fromWpPost($source);
50
- $user = $account->getUser();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
 
52
  $usages = [];
53
- $feeds = $this->feedsCpt->query();
54
- foreach ($feeds as $feedPost) {
55
- $options = $feedPost->{FeedPostType::OPTIONS};
56
 
57
- $usedAccounts = $options['accounts'] ?? [];
58
- $usedTagged = $options['tagged'] ?? [];
59
 
60
- $used = array_search($source->ID, $usedAccounts) !== false ||
61
- array_search($source->ID, $usedTagged) !== false;
62
 
63
- if ($used) {
64
- $usages[] = $feedPost->ID;
 
65
  }
66
  }
67
 
68
  return [
69
- 'id' => $source->ID,
70
  'type' => $user->getType(),
71
  'userId' => $user->getId(),
72
  'username' => $user->getUsername(),
73
  'bio' => $user->getBio(),
74
- 'customBio' => $source->{AccountPostType::CUSTOM_BIO},
75
  'profilePicUrl' => $user->getProfilePicUrl(),
76
- 'customProfilePicUrl' => $source->{AccountPostType::CUSTOM_PROFILE_PIC},
77
  'mediaCount' => $user->getMediaCount(),
78
  'followersCount' => $user->getFollowersCount(),
79
  'usages' => $usages,
46
  return $source;
47
  }
48
 
49
+ return static::toArray($source, $this->feedsCpt);
50
+ }
51
+
52
+ /**
53
+ * Transforms an account post into an array.
54
+ *
55
+ * @since 0.4
56
+ *
57
+ * @param WP_Post $post The account post.
58
+ * @param PostType|null $feeds Optional feeds CPT to calculate usages.
59
+ *
60
+ * @return array
61
+ */
62
+ public static function toArray(WP_Post $post, PostType $feeds = null)
63
+ {
64
+ $user = AccountPostType::fromWpPost($post)->getUser();
65
 
66
  $usages = [];
67
+ if ($feeds !== null) {
68
+ foreach ($feeds->query() as $feedPost) {
69
+ $options = $feedPost->{FeedPostType::OPTIONS};
70
 
71
+ $usedAccounts = $options['accounts'] ?? [];
72
+ $usedTagged = $options['tagged'] ?? [];
73
 
74
+ $used = array_search($post->ID, $usedAccounts) !== false ||
75
+ array_search($post->ID, $usedTagged) !== false;
76
 
77
+ if ($used) {
78
+ $usages[] = $feedPost->ID;
79
+ }
80
  }
81
  }
82
 
83
  return [
84
+ 'id' => $post->ID,
85
  'type' => $user->getType(),
86
  'userId' => $user->getId(),
87
  'username' => $user->getUsername(),
88
  'bio' => $user->getBio(),
89
+ 'customBio' => $post->{AccountPostType::CUSTOM_BIO},
90
  'profilePicUrl' => $user->getProfilePicUrl(),
91
+ 'customProfilePicUrl' => $post->{AccountPostType::CUSTOM_PROFILE_PIC},
92
  'mediaCount' => $user->getMediaCount(),
93
  'followersCount' => $user->getFollowersCount(),
94
  'usages' => $usages,
core/RestApi/Transformers/FeedsTransformer.php CHANGED
@@ -52,10 +52,14 @@ class FeedsTransformer implements TransformerInterface
52
 
53
  $shortcodeUsages = FeedPostType::getShortcodeUsages($feed, $this->wpdb);
54
  $wpBlockUsages = FeedPostType::getWpBlockUsages($feed, $this->wpdb);
 
55
 
56
- $usages = Arrays::mergeUnique($shortcodeUsages, $wpBlockUsages, function ($a, $b) {
 
57
  return $a['id'] === $b['id'];
58
  });
 
 
59
 
60
  return array_merge([
61
  'id' => $feed->getId(),
52
 
53
  $shortcodeUsages = FeedPostType::getShortcodeUsages($feed, $this->wpdb);
54
  $wpBlockUsages = FeedPostType::getWpBlockUsages($feed, $this->wpdb);
55
+ $elementorUsages = FeedPostType::getElementorWidgetUsages($feed, $this->wpdb);
56
 
57
+ // Shortcodes and blocks can exist in the same page
58
+ $contentUsages = Arrays::mergeUnique($shortcodeUsages, $wpBlockUsages, function ($a, $b) {
59
  return $a['id'] === $b['id'];
60
  });
61
+ // Elementor widgets are not part of post_content, so we don't need to merge only uniques
62
+ $usages = array_merge($contentUsages, $elementorUsages);
63
 
64
  return array_merge([
65
  'id' => $feed->getId(),
core/RestApi/Transformers/MediaTransformer.php CHANGED
@@ -40,6 +40,9 @@ class MediaTransformer implements TransformerInterface
40
 
41
  $timestamp = $media->getTimestamp();
42
 
 
 
 
43
  return [
44
  'id' => $media->getId(),
45
  'username' => $media->getUsername(),
@@ -47,8 +50,9 @@ class MediaTransformer implements TransformerInterface
47
  'timestamp' => $timestamp ? $timestamp->format(DateTime::ISO8601) : null,
48
  'type' => $media->getType(),
49
  'url' => $media->getUrl(),
50
- 'permalink' => $media->getPermalink(),
51
  'thumbnail' => $media->getThumbnailUrl(),
 
52
  'likesCount' => $media->getLikesCount(),
53
  'commentsCount' => $media->getCommentsCount(),
54
  'comments' => array_map([$this, 'transformComment'], $media->getComments()),
40
 
41
  $timestamp = $media->getTimestamp();
42
 
43
+ $permalink = $media->getPermalink();
44
+ $sliThumbnail = 'https://auth.spotlightwp.com/thumbnails/get.php?url=' . urlencode($permalink);
45
+
46
  return [
47
  'id' => $media->getId(),
48
  'username' => $media->getUsername(),
50
  'timestamp' => $timestamp ? $timestamp->format(DateTime::ISO8601) : null,
51
  'type' => $media->getType(),
52
  'url' => $media->getUrl(),
53
+ 'permalink' => $permalink,
54
  'thumbnail' => $media->getThumbnailUrl(),
55
+ 'sliThumbnail' => $sliThumbnail,
56
  'likesCount' => $media->getLikesCount(),
57
  'commentsCount' => $media->getCommentsCount(),
58
  'comments' => array_map([$this, 'transformComment'], $media->getComments()),
freemius.php CHANGED
@@ -22,7 +22,7 @@ if ( !function_exists( 'sliFreemius' ) ) {
22
  'is_org_compliant' => true,
23
  'trial' => [
24
  'days' => 14,
25
- 'is_require_payment' => false,
26
  ],
27
  'has_affiliation' => 'selected',
28
  'menu' => [
@@ -55,6 +55,8 @@ if ( !function_exists( 'sliFreemius' ) ) {
55
  } );
56
  // Disable affiliate notice
57
  sliFreemius()->add_filter( 'show_affiliate_program_notice', '__return_false' );
 
 
58
  // Signal that SDK was initiated.
59
  do_action( 'sli_freemius_loaded' );
60
  }
22
  'is_org_compliant' => true,
23
  'trial' => [
24
  'days' => 14,
25
+ 'is_require_payment' => true,
26
  ],
27
  'has_affiliation' => 'selected',
28
  'menu' => [
55
  } );
56
  // Disable affiliate notice
57
  sliFreemius()->add_filter( 'show_affiliate_program_notice', '__return_false' );
58
+ // Disable auto deactivation
59
+ sliFreemius()->add_filter( 'deactivate_on_activation', '__return_false' );
60
  // Signal that SDK was initiated.
61
  do_action( 'sli_freemius_loaded' );
62
  }
includes/dev-api.php DELETED
@@ -1,69 +0,0 @@
1
- <?php
2
-
3
- use RebelCode\Spotlight\Instagram\MediaStore\IgCachedMedia;
4
- use RebelCode\Spotlight\Instagram\MediaStore\MediaStore;
5
- use RebelCode\Spotlight\Instagram\PostTypes\FeedPostType;
6
- use RebelCode\Spotlight\Instagram\Wp\PostType;
7
-
8
- /**
9
- * The Spotlight Instagram Developer API.
10
- *
11
- * A simple class that exposes common functionality for developers, themes and other integrations.
12
- *
13
- * @since 0.3.2
14
- */
15
- class SpotlightInstagram
16
- {
17
- /**
18
- * @since 0.3.2
19
- *
20
- * @param int $feedId The ID of the feed.
21
- * @param int $num The number of media objects to return. Will return all media objects if less than or equal
22
- * to zero.
23
- * @param int $offset The offset from which to begin returning media. Negative values will be treated as zero.
24
- *
25
- * @return IgCachedMedia[]
26
- */
27
- static function getFeedMedia(int $feedId, int $num = -1, int $offset = 0)
28
- {
29
- $plugin = spotlightInsta();
30
-
31
- /* @var $store MediaStore */
32
- /* @var $feeds PostType */
33
- $store = $plugin->get("media/store");
34
- $feeds = $plugin->get("feeds/cpt");
35
-
36
- $post = $feeds->get($feedId);
37
-
38
- if ($post instanceof WP_Post) {
39
- $feed = FeedPostType::fromWpPost($post);
40
- $media = $store->getFeedMedia($feed, $num, $offset);
41
-
42
- return $media[0];
43
- } else {
44
- return [];
45
- }
46
- }
47
-
48
- /**
49
- * @since 0.3.2
50
- *
51
- * @param int $feedId The ID of the feed.
52
- *
53
- * @return IgCachedMedia[]
54
- */
55
- static function getFeedStories(int $feedId)
56
- {
57
- $plugin = spotlightInsta();
58
-
59
- /* @var $store MediaStore */
60
- /* @var $feeds PostType */
61
- $store = $plugin->get("media/store");
62
- $feeds = $plugin->get("feeds/cpt");
63
-
64
- $feed = FeedPostType::fromWpPost($feeds->get($feedId));
65
- $media = $store->getFeedMedia($feed);
66
-
67
- return $media[1];
68
- }
69
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/init.php ADDED
@@ -0,0 +1,491 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if (!defined('SL_INSTA_FREE_PLUGIN_BASENAME')) {
4
+ define('SL_INSTA_FREE_PLUGIN_BASENAME', 'spotlight-social-photo-feeds/plugin.php');
5
+ }
6
+
7
+ if (!class_exists('SlInstaRuntime')) {
8
+ /**
9
+ * A simple struct that stores runtime information about active copies of the plugin.
10
+ *
11
+ * @since 0.4
12
+ */
13
+ class SlInstaRuntime
14
+ {
15
+ /**
16
+ * The info for the copy of the plugin that is truly active and running.
17
+ *
18
+ * @var SlInstaPluginInfo
19
+ */
20
+ public $info = null;
21
+
22
+ /**
23
+ * Whether or not a free version of the plugin is active.
24
+ *
25
+ * @var bool
26
+ */
27
+ public $isFreeActive = false;
28
+
29
+ /**
30
+ * Whether or not a PRO version of the plugin is active.
31
+ *
32
+ * @var bool
33
+ */
34
+ public $isProActive = false;
35
+
36
+ /**
37
+ * The version of the free plugin that is active, or null if a free version is not active.
38
+ *
39
+ * @var string|null
40
+ */
41
+ public $freeVersion = null;
42
+
43
+ /**
44
+ * The version of the PRO plugin that is active, or null if a PRO version is not active.
45
+ *
46
+ * @var string|null
47
+ */
48
+ public $proVersion = null;
49
+ }
50
+ }
51
+
52
+ if (!class_exists('SlInstaPluginInfo')) {
53
+ /**
54
+ * A simple struct that stores information about a Spotlight plugin.
55
+ *
56
+ * @since 0.4
57
+ */
58
+ class SlInstaPluginInfo
59
+ {
60
+ /**
61
+ * The basename of the plugin - the string by which WordPress identifies plugins.
62
+ *
63
+ * @var string
64
+ */
65
+ public $basename;
66
+
67
+ /**
68
+ * The path to the plugin's main file.
69
+ *
70
+ * @var string
71
+ */
72
+ public $file;
73
+
74
+ /**
75
+ * The path to the plugin's directory.
76
+ *
77
+ * @var string
78
+ */
79
+ public $dir;
80
+
81
+ /**
82
+ * The version of the plugin.
83
+ *
84
+ * @var string
85
+ */
86
+ public $version;
87
+
88
+ /**
89
+ * Whether the plugin is a PRO version or not.
90
+ *
91
+ * @var bool
92
+ */
93
+ public $isPro;
94
+ }
95
+ }
96
+
97
+ if (!function_exists('slInstaRunPlugin')) {
98
+ /**
99
+ * Runs the plugin. Maybe. Maybe not.
100
+ *
101
+ * This function checks to see if the plugin is allowed to run. This is determined by whether or not the plugin
102
+ * coexists alongside other copies of the plugin on the same site. If so, only the latest PRO version is allowed
103
+ * to run. If the plugin is not that version, the callback is not invoked.
104
+ *
105
+ * @since 0.4
106
+ *
107
+ * @param string $mainFile The path to the plugin's main file.
108
+ * @param callable $callback The function that runs the plugin, which will be called if all checks pass.
109
+ * An argument of type {@link SlInstaRuntime} is passed to this function to avoid using
110
+ * even more globals!
111
+ *
112
+ * @return bool True if the plugin callback was run, false if not.
113
+ */
114
+ function slInstaRunPlugin($mainFile, $callback)
115
+ {
116
+ global $slInsta;
117
+
118
+ if (!isset($slInsta)) {
119
+ if (!function_exists('get_plugin_data')) {
120
+ require_once ABSPATH . 'wp-admin/includes/plugin.php';
121
+ }
122
+
123
+ $slInsta = new SlInstaRuntime();
124
+ $slInstaPlugins = [];
125
+
126
+ // Get the plugins that are active
127
+ // We need to manually check if the plugin that triggered this script is active and add it to the list
128
+ // since it won't be available in the option if it was activated in this request
129
+ $activePlugins = get_option('active_plugins');
130
+ $thisBaseName = plugin_basename($mainFile);
131
+ if (!is_plugin_active($thisBaseName)) {
132
+ $activePlugins[] = $thisBaseName;
133
+ }
134
+
135
+ foreach ($activePlugins as $basename) {
136
+ $info = slInstaPluginInfo($basename);
137
+
138
+ if ($info === null) {
139
+ continue;
140
+ }
141
+
142
+ $slInstaPlugins[] = $info;
143
+
144
+ $slInsta->isFreeActive = $slInsta->isFreeActive || !$info->isPro;
145
+ $slInsta->isProActive = $slInsta->isProActive || $info->isPro;
146
+
147
+ if (!$info->isPro && version_compare($info->version, $slInsta->freeVersion, '>')) {
148
+ $slInsta->freeVersion = $info->version;
149
+ }
150
+
151
+ if ($info->isPro && version_compare($info->version, $slInsta->proVersion, '>')) {
152
+ $slInsta->proVersion = $info->version;
153
+ }
154
+ }
155
+
156
+ // Sort the instances by whether or not they are PRO first, and by their versions second
157
+ usort($slInstaPlugins, function ($a, $b) {
158
+ $vCmp = version_compare($a->version, $b->version);
159
+ $aScore = 1 + (intval($a->isPro) * 2) + $vCmp;
160
+ $bScore = 1 + (intval($b->isPro) * 2) + ($vCmp * -1);
161
+
162
+ return $bScore - $aScore;
163
+ });
164
+
165
+ // Set the first instance in the sorted list to run
166
+ $slInsta->info = $slInstaPlugins[0];
167
+
168
+ // Allows PRO to act as its own free version. This should only be used by developers that have access to the
169
+ // full version of the plugin, before any build processing occurs
170
+ if (defined('SL_INSTA_DEV_ENV') && SL_INSTA_DEV_ENV) {
171
+ $slInsta->freeVersion = $slInsta->proVersion;
172
+ $slInsta->isFreeActive = $slInsta->isProActive;
173
+ }
174
+ }
175
+
176
+ // If this plugin is not the elected one, stop here
177
+ if (plugin_basename($mainFile) !== $slInsta->info->basename) {
178
+ return false;
179
+ }
180
+
181
+ // Invoke the callback
182
+ $callback($slInsta);
183
+
184
+ return true;
185
+ }
186
+ }
187
+
188
+ if (!function_exists('slInstaPluginInfo')) {
189
+ /**
190
+ * Retrieves information about a plugin, if it's a copy of Spotlight of any tier or version.
191
+ *
192
+ * @since 0.4
193
+ *
194
+ * @param string $basename The WordPress basename of the plugin.
195
+ *
196
+ * @return SlInstaPluginInfo|null The obtained information about the plugin, or null if the plugin is not a copy
197
+ * of Spotlight.
198
+ */
199
+ function slInstaPluginInfo($basename)
200
+ {
201
+ $file = WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $basename;
202
+ $dir = dirname($file);
203
+
204
+ $info = null;
205
+ $result = new SlInstaPluginInfo();
206
+ $result->basename = $basename;
207
+ $result->file = $file;
208
+ $result->dir = $dir;
209
+ $result->version = null;
210
+ $result->isPro = false;
211
+
212
+ // Post-v0.4 we get the info from the spotlight.json file and check if its PRO by looking for the pro.php file
213
+ $jsonFile = $dir . '/plugin.json';
214
+ if (file_exists($jsonFile) && is_readable($jsonFile)) {
215
+ $info = @json_decode(file_get_contents($jsonFile));
216
+
217
+ if ($info !== null) {
218
+ $result->version = isset($info->version) ? $info->version : null;
219
+ $result->isPro = file_exists($dir . '/includes/pro.php');
220
+
221
+ return $result;
222
+ }
223
+ }
224
+
225
+ // Pre-v0.4 we have to parse the plugin header data to get the version and look for the PRO modules directory
226
+ if ($info === null && stripos($basename, 'spotlight-social') !== false) {
227
+ if (!function_exists('get_plugin_data')) {
228
+ require_once ABSPATH . 'wp-admin/includes/plugin.php';
229
+ }
230
+
231
+ $pluginData = get_plugin_data($file);
232
+
233
+ $result->version = $pluginData['Version'];
234
+ $result->isPro = is_dir($dir . '/modules/Pro');
235
+
236
+ return $result;
237
+ }
238
+
239
+ return null;
240
+ }
241
+ }
242
+
243
+ if (!function_exists('slInstaDepsSatisfied')) {
244
+ /**
245
+ * Checks whether the plugin dependencies are satisfied.
246
+ *
247
+ * @since 0.4
248
+ *
249
+ * @return bool True if dependencies are satisfied, false if not.
250
+ */
251
+ function slInstaDepsSatisfied()
252
+ {
253
+ // Check PHP version
254
+ if (version_compare(PHP_VERSION, SL_INSTA_MIN_PHP_VERSION, '<')) {
255
+ add_action('admin_notices', function () {
256
+ printf(
257
+ '<div class="notice notice-error"><p>%s</p></div>',
258
+ sprintf(
259
+ _x(
260
+ '%1$s requires PHP version %2$s or later',
261
+ '%1$s is the name of the plugin, %2$s is the required PHP version',
262
+ 'sli'
263
+ ),
264
+ '<strong>' . SL_INSTA_PLUGIN_NAME . '</strong>',
265
+ SL_INSTA_MIN_PHP_VERSION
266
+ )
267
+ );
268
+ });
269
+
270
+ return false;
271
+ }
272
+
273
+ // Check WordPress version
274
+ global $wp_version;
275
+ if (version_compare($wp_version, SL_INSTA_MIN_WP_VERSION, '<')) {
276
+ add_action('admin_notices', function () {
277
+ printf(
278
+ '<div class="notice notice-error"><p>%s</p></div>',
279
+ sprintf(
280
+ _x(
281
+ '%1$s requires WordPress version %2$s or later',
282
+ '%1$s is the name of the plugin, %2$s is the required WP version',
283
+ 'sli'
284
+ ),
285
+ '<strong>' . SL_INSTA_PLUGIN_NAME . '</strong>',
286
+ SL_INSTA_MIN_WP_VERSION
287
+ )
288
+ );
289
+ });
290
+
291
+ return false;
292
+ }
293
+
294
+ return true;
295
+ }
296
+ }
297
+
298
+ if (!function_exists('slInstaRequireFreeNotice')) {
299
+ /**
300
+ * Shows the notice that informs the user that the free version is required.
301
+ *
302
+ * Important: Only hook in this function if the free version of the plugin is not active.
303
+ *
304
+ * @since 0.4
305
+ */
306
+ function slInstaRequireFreeNotice()
307
+ {
308
+ $url = admin_url('admin-ajax.php');
309
+ $nonce = wp_create_nonce('updates');
310
+
311
+ ?>
312
+ <div class="notice notice-error">
313
+ <p>
314
+ <b><?= SL_INSTA_NAME ?></b>:
315
+ <?php
316
+ if (slInstaIsFreeInstalled()) {
317
+ echo strtr(
318
+ _x(
319
+ 'The free version of the plugin needs to remain activated in order to use the PRO version. {{Click here}} to activate it.',
320
+ 'Put {{ and }} around the text that should activate the plugin',
321
+ 'sl-insta'
322
+ ),
323
+ [
324
+ '{{' => '<a href="' . slInstaGetActivateUrl(SL_INSTA_FREE_PLUGIN_BASENAME) . '">',
325
+ '}}' => '</a>',
326
+ ]
327
+ );
328
+ } else {
329
+ echo strtr(
330
+ _x(
331
+ 'You need to install and activate the free version in order to use the PRO version. {{Click here}} to install it.',
332
+ 'Put {{ and }} around the text that should link to the free version download page',
333
+ 'sl-insta'
334
+ ),
335
+ [
336
+ '{{' => '<a href="' . $url . '" id="spotlight-install-free" data-nonce="' . $nonce . '">',
337
+ '}}' => '</a>',
338
+ ]
339
+ );
340
+ }
341
+ ?>
342
+ </p>
343
+ <p id="spotlight-during-install-free" style="display: none;">
344
+ <?= __('Installing ...', 'sl-insta') ?>
345
+ </p>
346
+ <p id="spotlight-error-install-free" style="display: none;">
347
+ <?=
348
+ strtr(
349
+ _x(
350
+ 'Something went wrong! We couldn\'t install the plugin for you. Kindly download and install the free version from {{this page}}.',
351
+ 'Put {{ and }} around the text that links to the plugin install page',
352
+ 'sl-insta'
353
+ ),
354
+ [
355
+ '{{' => '<a href="' . admin_url('plugin-install.php?s=spotlight&tab=search&type=term') . '">',
356
+ '}}' => '</a>',
357
+ ]
358
+ )
359
+ ?>
360
+ </p>
361
+ <p id="spotlight-done-install-free" style="display: none;">
362
+ <?=
363
+ strtr(
364
+ _x(
365
+ 'Done! Click {{here}} to activate it!',
366
+ 'Put {{ and }} around the text that activates the plugin',
367
+ 'sl-insta'
368
+ ),
369
+ [
370
+ '{{' => '<a id="spotlight-activate-free">',
371
+ '}}' => '</a>',
372
+ ]
373
+ )
374
+ ?>
375
+ </p>
376
+ </div>
377
+
378
+ <script type="text/javascript">
379
+ jQuery(function ($) {
380
+ function onSuccess(response) {
381
+ if (!response.success) {
382
+ return onError();
383
+ }
384
+
385
+ $('#spotlight-during-install-free').hide();
386
+ $('#spotlight-error-install-free').hide();
387
+ $('#spotlight-activate-free').attr('href', response.data.activateUrl);
388
+ $('#spotlight-done-install-free').show();
389
+ }
390
+
391
+ function onError() {
392
+ $('#spotlight-during-install-free').hide();
393
+ $('#spotlight-done-install-free').hide();
394
+ $('#spotlight-error-install-free').show();
395
+ }
396
+
397
+ $('#spotlight-install-free').on('click', function (e) {
398
+ e.preventDefault();
399
+
400
+ const nonce = $(this).data('nonce');
401
+
402
+ $('#spotlight-during-install-free').show();
403
+
404
+ $.ajax({
405
+ url: $(this).attr('href'),
406
+ method: "POST",
407
+ data: {
408
+ _ajax_nonce: nonce,
409
+ action: "install-plugin",
410
+ slug: "spotlight-social-photo-feeds"
411
+ },
412
+ dataType: "json",
413
+ success: onSuccess,
414
+ error: onError,
415
+ });
416
+ });
417
+ });
418
+
419
+ </script>
420
+ <?php
421
+ }
422
+ }
423
+
424
+ if (!function_exists('slInstaVersionMismatch')) {
425
+ /**
426
+ * Shows the notice that informs the user that their FREE and PRO versions do not match.
427
+ *
428
+ * @since 0.4
429
+ */
430
+ function slInstaVersionMismatch()
431
+ {
432
+ ?>
433
+ <div class="notice notice-error">
434
+ <p>
435
+ <b><?= SL_INSTA_NAME ?></b>:
436
+ <?= __('Your versions of the FREE and PRO plugins do not match. Kindly update your plugins to the
437
+ same version to continue using the plugin.', 'sl-insta') ?>
438
+ </p>
439
+ </div>
440
+ <?php
441
+ }
442
+ }
443
+
444
+ if (!function_exists('slInstaIsFreeInstalled')) {
445
+ /**
446
+ * Checks if the free version of the plugin is installed.
447
+ *
448
+ * @since 0.4
449
+ *
450
+ * @return bool True if the free version of the plugin is installed and inactive, false if it's installed or active.
451
+ */
452
+ function slInstaIsFreeInstalled()
453
+ {
454
+ $plugins = get_plugins();
455
+ $active = array_flip(get_option('active_plugins', []));
456
+
457
+ foreach ($plugins as $basename => $plugin) {
458
+ // Check if plugin is in list of active plugins
459
+ if (!array_key_exists($basename, $active)) {
460
+ // If not, get its info
461
+ $info = slInstaPluginInfo($basename);
462
+ // If it's a Spotlight copy and not PRO, return true
463
+ if ($info !== null && !$info->isPro) {
464
+ return true;
465
+ }
466
+ }
467
+ }
468
+
469
+ return false;
470
+ }
471
+ }
472
+
473
+ if (!function_exists('slInstaGetActivateUrl')) {
474
+ /**
475
+ * Creates a URL that can be used to activate a plugin.
476
+ *
477
+ * @since 0.4
478
+ *
479
+ * @param string $plugin The basename of the plugin toe be activated by the URL.
480
+ *
481
+ * @return string The created URL.
482
+ */
483
+ function slInstaGetActivateUrl($plugin)
484
+ {
485
+ return admin_url('plugins.php') . '?' . build_query([
486
+ 'action' => 'activate',
487
+ 'plugin' => $plugin,
488
+ '_wpnonce' => wp_create_nonce('activate-plugin_spotlight-social-photo-feeds/plugin.php'),
489
+ ]);
490
+ }
491
+ }
modules/ShortcodeModule.php CHANGED
@@ -26,7 +26,7 @@ class ShortcodeModule extends Module
26
  {
27
  return [
28
  'tag' => new Value('instagram'),
29
- 'callback' => new Constructor(RenderShortcode::class, ['@feeds/cpt', '@feeds/template',]),
30
  'instance' => new Constructor(Shortcode::class, ['tag', 'callback']),
31
  ];
32
  }
26
  {
27
  return [
28
  'tag' => new Value('instagram'),
29
+ 'callback' => new Constructor(RenderShortcode::class, ['@feeds/cpt', '@accounts/cpt', '@feeds/template']),
30
  'instance' => new Constructor(Shortcode::class, ['tag', 'callback']),
31
  ];
32
  }
modules/UiModule.php CHANGED
@@ -65,6 +65,7 @@ class UiModule extends Module
65
  return [
66
  SubMenu::url("{$parentUrl}&screen=feeds", 'Feeds', $cap),
67
  SubMenu::url("{$parentUrl}&screen=new", 'Add New', $cap),
 
68
  SubMenu::url("{$parentUrl}&screen=settings", 'Settings', $cap),
69
  ];
70
  }),
@@ -191,6 +192,12 @@ class UiModule extends Module
191
  ];
192
  }),
193
 
 
 
 
 
 
 
194
  //==========================================================================
195
  // LOCALIZATION
196
  //==========================================================================
@@ -227,6 +234,7 @@ class UiModule extends Module
227
  'postTypes' => PostType::getPostTypes('and', [
228
  'public' => true,
229
  ]),
 
230
  ];
231
  }
232
  ),
@@ -265,15 +273,7 @@ class UiModule extends Module
265
  {
266
  // Register the assets
267
  {
268
- $scripts = $c->get('scripts');
269
- $styles = $c->get('styles');
270
-
271
- $registerAssetsFn = function () use ($scripts, $styles) {
272
- Arrays::eachAssoc($scripts, [Asset::class, 'register']);
273
- Arrays::eachAssoc($styles, [Asset::class, 'register']);
274
- };
275
-
276
- add_action('init', $registerAssetsFn, 0);
277
  }
278
 
279
  // Actions for enqueueing assets
65
  return [
66
  SubMenu::url("{$parentUrl}&screen=feeds", 'Feeds', $cap),
67
  SubMenu::url("{$parentUrl}&screen=new", 'Add New', $cap),
68
+ SubMenu::url("{$parentUrl}&screen=promotions", 'Promotions', $cap),
69
  SubMenu::url("{$parentUrl}&screen=settings", 'Settings', $cap),
70
  ];
71
  }),
192
  ];
193
  }),
194
 
195
+ // The function that registers all the scripts and styles
196
+ 'register_assets_fn' => new FuncService(['scripts', 'styles'], function ($arg, $scripts, $styles) {
197
+ Arrays::eachAssoc($scripts, [Asset::class, 'register']);
198
+ Arrays::eachAssoc($styles, [Asset::class, 'register']);
199
+ }),
200
+
201
  //==========================================================================
202
  // LOCALIZATION
203
  //==========================================================================
234
  'postTypes' => PostType::getPostTypes('and', [
235
  'public' => true,
236
  ]),
237
+ 'hasElementor' => defined('ELEMENTOR_VERSION'),
238
  ];
239
  }
240
  ),
273
  {
274
  // Register the assets
275
  {
276
+ add_action('init', $c->get('register_assets_fn'), 0);
 
 
 
 
 
 
 
 
277
  }
278
 
279
  // Actions for enqueueing assets
modules/WpBlockModule.php CHANGED
@@ -55,17 +55,26 @@ class WpBlockModule extends Module
55
  'render_callback' => $renderFn,
56
  ];
57
  }),
58
- 'editor_script' => new Factory(['@ui/scripts_url', '@ui/assets_ver'], function ($url, $ver) {
59
- return Asset::script("{$url}/wp-block.js", $ver, [
60
- 'sli-admin-common',
61
- 'sli-editor',
62
- ]);
63
- }),
64
- 'editor_style' => new Factory(['@ui/scripts_url', '@ui/assets_ver'], function ($url, $ver) {
65
- return Asset::style("{$url}/styles/wp-block.css", $ver, [
66
- 'sli-admin-common',
67
- ]);
68
- }),
 
 
 
 
 
 
 
 
 
69
  'render_fn' => new Factory(['@shortcode/callback'], function ($shortcode) {
70
  return function ($attrs) use ($shortcode) {
71
  $feedId = $attrs['feedId'] ?? 0;
55
  'render_callback' => $renderFn,
56
  ];
57
  }),
58
+ 'editor_script' => new Factory(
59
+ ['@ui/scripts_url', '@ui/assets_ver', 'script_deps'],
60
+ function ($url, $ver, $deps) {
61
+ return Asset::script("{$url}/wp-block.js", $ver, $deps);
62
+ }
63
+ ),
64
+ 'editor_style' => new Factory(
65
+ ['@ui/scripts_url', '@ui/assets_ver', 'style_deps'],
66
+ function ($url, $ver, $deps) {
67
+ return Asset::style("{$url}/styles/wp-block.css", $ver, $deps);
68
+ }
69
+ ),
70
+ 'script_deps' => new Value([
71
+ 'sli-admin-common',
72
+ 'sli-editor',
73
+ ]),
74
+ 'style_deps' => new Value([
75
+ 'sli-admin-common',
76
+ 'sli-editor',
77
+ ]),
78
  'render_fn' => new Factory(['@shortcode/callback'], function ($shortcode) {
79
  return function ($attrs) use ($shortcode) {
80
  $feedId = $attrs['feedId'] ?? 0;
plugin.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "Spotlight - Social Media Feeds",
3
+ "description": "Easily embed beautiful Instagram feeds on your WordPress site.",
4
+ "version": "0.4",
5
+ "url": "https://spotlightwp.com",
6
+ "author": "RebelCode",
7
+ "authorUrl": "https://rebelcode.com",
8
+ "textDomain": "sl-insta",
9
+ "minWpVer": "5.0",
10
+ "minPhpVer": "7.1"
11
+ }
plugin.php CHANGED
@@ -3,9 +3,9 @@
3
  /*
4
  * @wordpress-plugin
5
  *
6
- * Plugin Name: Spotlight - Social Photo Feeds
7
  * Description: Easily embed beautiful Instagram feeds on your WordPress site.
8
- * Version: 0.3.2
9
  * Author: RebelCode
10
  * Plugin URI: https://spotlightwp.com
11
  * Author URI: https://rebelcode.com
@@ -21,78 +21,68 @@ if (!defined('ABSPATH')) {
21
  exit;
22
  }
23
 
24
- // Check if Freemius is already loaded by another instance of this plugin
25
- if (function_exists('sliFreemius')) {
26
- // A side-effect of doing this is the disabling of the free version when a premium version is activated
27
- sliFreemius()->set_basename(true, __FILE__);
28
-
29
- // Stop here if Freemius is already loaded
30
- return;
31
- }
32
-
33
- // Load Freemius
34
- require_once __DIR__ . '/freemius.php';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
- // Plugin logic - only if not already declared
37
- if (!defined('SL_INSTA')) {
38
- // Used for detecting that the plugin is running
39
- define('SL_INSTA', true);
40
- // The plugin version
41
- define('SL_INSTA_VERSION', '0.3.2');
42
 
43
- // Dev mode constant that controls whether development tools are enabled
44
- if (!defined('SL_INSTA_DEV')) {
45
- define('SL_INSTA_DEV', false);
46
  }
47
 
48
- // Check PHP version
49
- if (version_compare(PHP_VERSION, '7.1', '<')) {
50
- add_action('admin_notices', function () {
51
- printf(
52
- '<div class="notice notice-error"><p>%s</p></div>',
53
- sprintf(
54
- _x(
55
- '%1$s requires PHP version %2$s or later',
56
- '%1$s is the name of the plugin, %2$s is the required PHP version',
57
- 'sli'
58
- ),
59
- '<strong>Spotlight - Social Photo Feeds</strong>',
60
- '7.1'
61
- )
62
- );
63
- });
64
 
65
  return;
66
  }
67
 
68
- // Check WordPress version
69
- global $wp_version;
70
- if (version_compare($wp_version, '5.0', '<')) {
71
- add_action('admin_notices', function () {
72
- printf(
73
- '<div class="notice notice-error"><p>%s</p></div>',
74
- sprintf(
75
- _x(
76
- '%1$s requires WordPress version %2$s or later',
77
- '%1$s is the name of the plugin, %2$s is the required WP version',
78
- 'sli'
79
- ),
80
- '<strong>Spotlight - Social Photo Feeds</strong>',
81
- '5.0'
82
- )
83
- );
84
- });
85
-
86
  return;
87
  }
88
 
89
- // Autoloader
90
  if (file_exists(__DIR__ . '/vendor/autoload.php')) {
91
  require __DIR__ . '/vendor/autoload.php';
92
  }
93
 
94
- // Load the developer API
95
- require_once __DIR__ . '/includes/dev-api.php';
 
 
 
 
 
 
 
 
 
96
 
97
  /**
98
  * Retrieves the plugin instance.
@@ -110,15 +100,18 @@ if (!defined('SL_INSTA')) {
110
  : $instance;
111
  }
112
 
113
- try {
114
- spotlightInsta()->run();
115
- } catch (Throwable $exception) {
116
- wp_die(
117
- $exception->getMessage() . "\n<pre>" . $exception->getTraceAsString() . '</pre>',
118
- 'Spotlight - Social Photo Feeds | Error',
119
- [
120
- 'back_link' => true,
121
- ]
122
- );
123
- }
124
- }
 
 
 
3
  /*
4
  * @wordpress-plugin
5
  *
6
+ * Plugin Name: Spotlight - Social Media Feeds
7
  * Description: Easily embed beautiful Instagram feeds on your WordPress site.
8
+ * Version: 0.4
9
  * Author: RebelCode
10
  * Plugin URI: https://spotlightwp.com
11
  * Author URI: https://rebelcode.com
21
  exit;
22
  }
23
 
24
+ require_once __DIR__ . '/includes/init.php';
25
+
26
+ slInstaRunPlugin(__FILE__, function (SlInstaRuntime $sli) {
27
+ // Define plugin constants, if not already defined
28
+ if (!defined('SL_INSTA')) {
29
+ // Used to detect the plugin
30
+ define('SL_INSTA', true);
31
+ // The plugin name
32
+ define('SL_INSTA_NAME', 'Spotlight - Social Media Feeds');
33
+ // The plugin version
34
+ define('SL_INSTA_VERSION', '0.4');
35
+ // The path to the plugin's main file
36
+ define('SL_INSTA_FILE', __FILE__);
37
+ // The dir to the plugin's directory
38
+ define('SL_INSTA_DIR', __DIR__);
39
+ // The minimum required PHP version
40
+ define('SL_INSTA_PLUGIN_NAME', 'Spotlight - Social Media Feeds');
41
+ // The minimum required PHP version
42
+ define('SL_INSTA_MIN_PHP_VERSION', '7.1');
43
+ // The minimum required WordPress version
44
+ define('SL_INSTA_MIN_WP_VERSION', '5.0');
45
+
46
+ // Dev mode constant that controls whether development tools are enabled
47
+ if (!defined('SL_INSTA_DEV')) {
48
+ define('SL_INSTA_DEV', false);
49
+ }
50
+ }
51
 
52
+ // If a PRO version is running and the free version is not, show a notice
53
+ if ($sli->isProActive && !$sli->isFreeActive) {
54
+ add_action('admin_notices', 'slInstaRequireFreeNotice');
 
 
 
55
 
56
+ return;
 
 
57
  }
58
 
59
+ if ($sli->isFreeActive && $sli->isProActive && version_compare($sli->freeVersion, $sli->proVersion, '!=')) {
60
+ add_action('admin_notices', 'slInstaVersionMismatch');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
 
62
  return;
63
  }
64
 
65
+ // Stop if dependencies aren't satisfied
66
+ if (!slInstaDepsSatisfied()) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  return;
68
  }
69
 
70
+ // Load the autoloader - loaders all the way down!
71
  if (file_exists(__DIR__ . '/vendor/autoload.php')) {
72
  require __DIR__ . '/vendor/autoload.php';
73
  }
74
 
75
+ // Load Freemius
76
+ if (function_exists('sliFreemius')) {
77
+ sliFreemius()->set_basename(true, __FILE__);
78
+ } else {
79
+ require_once __DIR__ . '/freemius.php';
80
+ }
81
+
82
+ // Load the PRO script, if it exists
83
+ if (file_exists(__DIR__ . '/includes/pro.php')) {
84
+ require_once __DIR__ . '/includes/pro.php';
85
+ }
86
 
87
  /**
88
  * Retrieves the plugin instance.
100
  : $instance;
101
  }
102
 
103
+ // Run the plugin
104
+ add_action('plugins_loaded', function () {
105
+ try {
106
+ spotlightInsta()->run();
107
+ } catch (Throwable $exception) {
108
+ wp_die(
109
+ $exception->getMessage() . "\n<pre>" . $exception->getTraceAsString() . '</pre>',
110
+ SL_INSTA_PLUGIN_NAME . ' | Error',
111
+ [
112
+ 'back_link' => true,
113
+ ]
114
+ );
115
+ }
116
+ });
117
+ });
readme.txt CHANGED
@@ -5,8 +5,8 @@ Plugin URI: https://spotlightwp.com
5
  Tags: Instagram, Instagram feed, Instagram feeds, Instagram widget, social media, social media feed, social media feeds, Instagram posts, Instagram gallery, Instagram stories, hashtag
6
  Requires at least: 5.0
7
  Requires PHP: 7.1
8
- Tested up to: 5.5
9
- Stable tag: 0.3.2
10
  License: GPLv3
11
 
12
  == Description ==
@@ -227,6 +227,20 @@ If none of these solutions work for you, please do contact us through the [suppo
227
 
228
  == Changelog ==
229
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
  = 0.3.2 (2020-09-30) =
231
 
232
  **Changed**
5
  Tags: Instagram, Instagram feed, Instagram feeds, Instagram widget, social media, social media feed, social media feeds, Instagram posts, Instagram gallery, Instagram stories, hashtag
6
  Requires at least: 5.0
7
  Requires PHP: 7.1
8
+ Tested up to: 5.5.1
9
+ Stable tag: 0.4
10
  License: GPLv3
11
 
12
  == Description ==
227
 
228
  == Changelog ==
229
 
230
+ = 0.4 (2020-10-26) =
231
+
232
+ **Changed**
233
+ - Greatly improved the loading time for feeds on the site
234
+ - All pages are now much more responsive and usable on mobile devices
235
+ - Filtering fields will auto-add their typed value when they lose focus
236
+ - Improved the message shown in the shortcode when a feed does not exist
237
+ - Added redundant WordPress styles to ensure a consistent look and feel
238
+
239
+ **Fixed**
240
+ - Addressed the "Cache key is invalid" entries in the debug log
241
+ - Fixed thumbnails not loading due to Instagram deprecating their thumbnails API
242
+ - Fixed an error that sometimes prevented feeds from being saved
243
+
244
  = 0.3.2 (2020-09-30) =
245
 
246
  **Changed**
ui/dist/admin-app.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.spotlight=t(require("React"),require("ReactDOM")):e.spotlight=t(e.React,e.ReactDOM)}(window,(function(e,t){return(window.webpackJsonpspotlight=window.webpackJsonpspotlight||[]).push([[4],{0:function(t,n){t.exports=e},10:function(e,t,n){"use strict";var o;n.d(t,"a",(function(){return o})),function(e){let t,n;!function(e){e.IMAGE="IMAGE",e.VIDEO="VIDEO",e.ALBUM="CAROUSEL_ALBUM"}(t=e.Type||(e.Type={})),function(e){let t;!function(e){e.PERSONAL_ACCOUNT="PERSONAL_ACCOUNT",e.BUSINESS_ACCOUNT="BUSINESS_ACCOUNT",e.TAGGED_ACCOUNT="TAGGED_ACCOUNT",e.RECENT_HASHTAG="RECENT_HASHTAG",e.POPULAR_HASHTAG="POPULAR_HASHTAG",e.USER_STORY="USER_STORY"}(t=e.Type||(e.Type={}))}(n=e.Source||(e.Source={})),e.getAsRows=(e,t)=>{e=e.slice(),t=t>0?t:1;let n=[];for(;e.length;)n.push(e.splice(0,t));if(n.length>0){const e=n.length-1;for(;n[e].length<t;)n[e].push({})}return n},e.isFromHashtag=e=>e.source.type===n.Type.POPULAR_HASHTAG||e.source.type===n.Type.RECENT_HASHTAG}(o||(o={}))},100:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o=n(0),a=n.n(o),i=n(40),s=n(11),r=n.n(s),l=n(7),c=n(4),u=n(578),d=n(576),m=n(45),p=n(120),h=n(108),g=n(34),f=n(5),b=n(25),_=n(12),v=n(74),E=Object(l.b)((function({account:e,onUpdate:t}){const[n,o]=a.a.useState(!1),[i,s]=a.a.useState(""),[l,E]=a.a.useState(!1),y=e.type===c.a.Type.PERSONAL,w=c.b.getBioText(e),S=()=>{e.customBio=i,E(!0),g.a.updateAccount(e).then(()=>{o(!1),E(!1),t&&t()})},O=n=>{e.customProfilePicUrl=n,E(!0),g.a.updateAccount(e).then(()=>{E(!1),t&&t()})};return a.a.createElement("div",{className:r.a.root},a.a.createElement("div",{className:r.a.container},a.a.createElement("div",{className:r.a.infoColumn},a.a.createElement("a",{href:c.b.getProfileUrl(e),target:"_blank",className:r.a.username},"@",e.username),a.a.createElement("div",{className:r.a.row},a.a.createElement("span",{className:r.a.label},"Spotlight ID:"),e.id),a.a.createElement("div",{className:r.a.row},a.a.createElement("span",{className:r.a.label},"User ID:"),e.userId),a.a.createElement("div",{className:r.a.row},a.a.createElement("span",{className:r.a.label},"Type:"),e.type),!n&&a.a.createElement("div",{className:r.a.row},a.a.createElement("div",null,a.a.createElement("span",{className:r.a.label},"Bio:"),a.a.createElement("a",{className:r.a.editBioLink,onClick:()=>{s(c.b.getBioText(e)),o(!0)}},"Edit bio"),a.a.createElement("pre",{className:r.a.bio},w.length>0?w:"(No bio)"))),n&&a.a.createElement("div",{className:r.a.row},a.a.createElement("textarea",{className:r.a.bioEditor,value:i,onChange:e=>{s(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&e.ctrlKey&&(S(),e.preventDefault(),e.stopPropagation())},rows:4}),a.a.createElement("div",{className:r.a.bioFooter},a.a.createElement("div",{className:r.a.bioEditingControls},l&&a.a.createElement("span",null,"Please wait ...")),a.a.createElement("div",{className:r.a.bioEditingControls},a.a.createElement(f.a,{className:r.a.bioEditingButton,type:f.c.DANGER,disabled:l,onClick:()=>{e.customBio="",E(!0),g.a.updateAccount(e).then(()=>{o(!1),E(!1),t&&t()})}},"Reset"),a.a.createElement(f.a,{className:r.a.bioEditingButton,type:f.c.SECONDARY,disabled:l,onClick:()=>{o(!1)}},"Cancel"),a.a.createElement(f.a,{className:r.a.bioEditingButton,type:f.c.PRIMARY,disabled:l,onClick:S},"Save"))))),a.a.createElement("div",{className:r.a.picColumn},a.a.createElement("div",null,a.a.createElement(v.a,{account:e,className:r.a.profilePic})),a.a.createElement(p.a,{id:"account-custom-profile-pic",title:"Select profile picture",mediaType:"image",onSelect:e=>{const t=parseInt(e.attributes.id),n=h.a.media.attachment(t).attributes.url;O(n)}},({open:e})=>a.a.createElement(f.a,{type:f.c.SECONDARY,className:r.a.setCustomPic,onClick:e},"Change profile picture")),e.customProfilePicUrl.length>0&&a.a.createElement("a",{className:r.a.resetCustomPic,onClick:()=>{O("")}},"Reset profile picture"))),y&&a.a.createElement("div",{className:r.a.personalInfoMessage},a.a.createElement(b.a,{type:b.b.INFO,showIcon:!0},"Due to restrictions set by Instagram, Spotlight cannot import the profile photo and bio"," ","text for Personal accounts."," ",a.a.createElement("a",{href:_.a.resources.customPersonalInfoUrl,target:"_blank"},"Click here to learn more"),".")),a.a.createElement(m.a,{label:"View access token",stealth:!0},a.a.createElement("div",{className:r.a.row},e.accessToken&&a.a.createElement("div",null,a.a.createElement("p",null,a.a.createElement("span",{className:r.a.label},"Expires on:"),a.a.createElement("span",null,e.accessToken.expiry?Object(u.a)(Object(d.a)(e.accessToken.expiry),"PPPP"):"Unknown")),a.a.createElement("pre",{className:r.a.accessToken},e.accessToken.code)))))}));function y({isOpen:e,onClose:t,onUpdate:n,account:o}){return a.a.createElement(i.a,{isOpen:e,title:"Account details",icon:"admin-users",onClose:t},a.a.createElement(i.a.Content,null,a.a.createElement(E,{account:o,onUpdate:n})))}},107:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(0),a=n.n(o),i=n(7),s=n(27),r=n(6);const l=Object(i.b)(({feed:e})=>{const t=s.a.getById(e.options.layout),n=r.a.ComputedOptions.compute(e.options,e.mode);return a.a.createElement("div",{className:"feed"},a.a.createElement(t.component,{feed:e,options:n}))})},11: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",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"}},116:function(e,t,n){e.exports={pill:"ProPill__pill"}},117:function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o=n(0),a=n.n(o),i=n(76),s=n.n(i),r=n(23),l=n(65),c=n.n(l),u=n(50),d=n.n(u),m=n(7),p=n(3),h=n(122),g=Object(m.b)((function({field:e}){const t="settings-field-"+Object(p.r)(),n=!e.label||e.fullWidth;return a.a.createElement("div",{className:d.a.root},e.label&&a.a.createElement("div",{className:d.a.label},a.a.createElement("label",{htmlFor:t},e.label)),a.a.createElement("div",{className:d.a.container},a.a.createElement("div",{className:n?d.a.controlFullWidth:d.a.controlPartialWidth},a.a.createElement(e.component,{id:t})),e.tooltip&&a.a.createElement("div",{className:d.a.tooltip},a.a.createElement(h.a,null,e.tooltip))))}));function f({group:e}){return a.a.createElement("div",{className:c.a.root},e.title.length>0&&a.a.createElement("h1",{className:c.a.title},e.title),e.component&&a.a.createElement("div",{className:c.a.content},a.a.createElement(e.component)),a.a.createElement("div",{className:c.a.fieldList},e.fields.map(e=>a.a.createElement(g,{field:e,key:e.id}))))}var b=n(16);function _({page:e}){return Object(b.d)("keydown",e=>{e.key&&"s"===e.key.toLowerCase()&&e.ctrlKey&&(r.b.save(),e.preventDefault(),e.stopPropagation())}),a.a.createElement("article",{className:s.a.root},e.component&&a.a.createElement("div",{className:s.a.content},a.a.createElement(e.component)),e.groups&&a.a.createElement("div",{className:s.a.groupList},e.groups.map(e=>a.a.createElement(f,{key:e.id,group:e}))))}},123:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var o=n(0),a=n.n(o),i=n(96),s=n.n(i),r=n(209);function l({children:e,pathStyle:t}){let{path:n,left:o,right:i,center:r}=e;return n=null!=n?n:[],o=null!=o?o:[],i=null!=i?i:[],r=null!=r?r:[],a.a.createElement("div",{className:s.a.root},a.a.createElement("div",{className:s.a.leftList},a.a.createElement("div",{className:s.a.pathList},n.map((e,n)=>a.a.createElement(m,{key:n,style:t},a.a.createElement("div",{className:s.a.item},e)))),a.a.createElement("div",{className:s.a.leftList},a.a.createElement(u,null,o))),a.a.createElement("div",{className:s.a.centerList},a.a.createElement(u,null,r)),a.a.createElement("div",{className:s.a.rightList},a.a.createElement(u,null,i)))}function c(){return a.a.createElement(r.a,null)}function u({children:e}){const t=Array.isArray(e)?e:[e];return a.a.createElement(a.a.Fragment,null,t.map((e,t)=>a.a.createElement(d,{key:t},e)))}function d({children:e}){return a.a.createElement("div",{className:s.a.item},e)}function m({children:e,style:t}){return a.a.createElement("div",{className:s.a.pathSegment},e,a.a.createElement(p,{style:t}))}function p({style:e}){if("none"===e)return null;const t="chevron"===e?"M0 0 L100 50 L0 100":"M50 0 L50 100";return a.a.createElement("div",{className:s.a.separator},a.a.createElement("svg",{viewBox:"0 0 100 100",width:"100%",height:"100%",preserveAspectRatio:"none"},a.a.createElement("path",{d:t,fill:"none",stroke:"currentcolor",strokeLinejoin:"bevel"})))}},125:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o,a=n(1),i=n(12);n(14),function(e){e.list=Object(a.n)([]),e.fetch=function(){return i.a.restApi.getNotifications().then(t=>{"object"==typeof t&&Array.isArray(t.data)&&e.list.push(...t.data)}).catch(e=>{})}}(o||(o={}))},13:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));const o=e=>"string"==typeof e?e:"r"in e?"rgba("+e.r+","+e.g+","+e.b+","+e.a+")":"h"in e?"hsla("+e.h+","+e.s+","+e.l+","+e.a+")":"#fff"},131:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const o={value:"link",label:"Link",getIcon:()=>"admin-links",getPopupLinkText:(e,t)=>"string"==typeof t.linkText&&t.linkText.length>0?t.linkText:a.getDefaultLinkText(t),isValid:(e,t)=>t.linkType&&("url"===t.linkType&&t.url&&t.url.length>0||t.postId>0&&t.postUrl&&t.postUrl.length>0),getMediaUrl:(e,t)=>"url"===t.linkType?t.url:t.postUrl,onMediaClick:(e,t)=>{let n=o.getMediaUrl(e,t);return!!n&&(window.open(n,t.newTab?"_blank":"_self"),!0)}};var a;t.b=o,function(e){e.getDefaultLinkText=function(e){switch(e.linkType){case"product":return"Buy it now";case"post":return"Read the article";case"page":return"Learn more";default:return"Visit link"}}}(a||(a={}))},135:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));const o=(e,t)=>e.startsWith(t)?e:t+e,a=e=>{return(t=e,"#",t.startsWith("#")?t.substr("#".length):t).split(/\s/).map((e,t)=>t>0?e[0].toUpperCase()+e.substr(1):e).join("").replace(/\W/gi,"");var t}},14:function(e,t,n){"use strict";var o=n(37),a=n.n(o),i=n(19),s=n(39);const r=i.a.config.restApi.baseUrl,l={};i.a.config.restApi.authToken&&(l["X-Sli-Auth-Token"]=i.a.config.restApi.authToken);const c=a.a.create({baseURL:r,headers:l}),u={config:i.a.config.restApi,driver:c,getAccounts:()=>c.get("/accounts"),getFeeds:()=>c.get("/feeds"),getFeedMedia:(e,t=0,n=0,o)=>{const i=o?new a.a.CancelToken(o):void 0;return c.post("/media/fetch",{options:e,num:n,from:t},{cancelToken:i})},getErrorReason:e=>{let t;return t="object"==typeof e.response?e.response.data:"string"==typeof e.message?e.message:e.toString(),Object(s.b)(t)}};t.a=u},146:function(e,t,n){e.exports={root:"PopupTextField__root layout__flex-row",container:"PopupTextField__container layout__flex-row","edit-container":"PopupTextField__edit-container PopupTextField__container layout__flex-row",editContainer:"PopupTextField__edit-container PopupTextField__container layout__flex-row","static-container":"PopupTextField__static-container PopupTextField__container layout__flex-row",staticContainer:"PopupTextField__static-container PopupTextField__container layout__flex-row","edit-icon":"PopupTextField__edit-icon dashicons__dashicon-normal",editIcon:"PopupTextField__edit-icon dashicons__dashicon-normal",label:"PopupTextField__label","done-btn":"PopupTextField__done-btn",doneBtn:"PopupTextField__done-btn"}},148:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(0),a=n.n(o),i=n(32);function s({breakpoints:e,children:t}){const[n,s]=a.a.useState(1/0),r=a.a.useCallback(()=>{const t=Object(i.b)();s(()=>e.reduce((e,n)=>t.width<=n&&n<e?n:e,1/0))},[e]);return Object(o.useEffect)(()=>(r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[]),t(n)}},149:function(e,t,n){"use strict";var o=n(0),a=n.n(o),i=n(124),s=n(21),r=n.n(s),l=n(49),c=n(4),u=n(5),d=n(8),m=n(119),p=n(28),h=n(24),g=n(34),f=n(100),b=n(74),_=n(12),v=n(86);function E({accounts:e,showDelete:t,onDeleteError:n}){const o=(e=null!=e?e:[]).filter(e=>e.type===c.a.Type.BUSINESS).length,[i,s]=a.a.useState(!1),[E,y]=a.a.useState(null),[w,S]=a.a.useState(!1),[O,C]=a.a.useState(),[k,T]=a.a.useState(!1),L=e=>()=>{y(e),s(!0)},N=e=>()=>{g.a.openAuthWindow(e.type,0,()=>{_.a.restApi.deleteAccountMedia(e.id)})},P=e=>()=>{C(e),S(!0)},x=()=>{T(!1),C(null),S(!1)},A={cols:{username:r.a.usernameCol,type:r.a.typeCol,usages:r.a.usagesCol,actions:r.a.actionsCol},cells:{username:r.a.usernameCell,type:r.a.typeCell,usages:r.a.usagesCell,actions:r.a.actionsCell}};return a.a.createElement("div",{className:"accounts-list"},a.a.createElement(m.a,{styleMap:A,rows:e,cols:[{id:"username",label:"Username",render:e=>a.a.createElement("div",null,a.a.createElement(b.a,{account:e,className:r.a.profilePic}),a.a.createElement("a",{className:r.a.username,onClick:L(e)},e.username))},{id:"type",label:"Type",render:e=>a.a.createElement("span",{className:r.a.accountType},e.type)},{id:"usages",label:"Feeds",render:e=>a.a.createElement("span",{className:r.a.usages},e.usages.map((e,t)=>!!p.a.getById(e)&&a.a.createElement(l.a,{key:t,to:h.a.at({screen:"edit",id:e.toString()})},p.a.getById(e).name)))},{id:"actions",label:"Actions",render:e=>t&&a.a.createElement("div",{className:r.a.actionsList},a.a.createElement(u.a,{className:r.a.action,type:u.c.SECONDARY,tooltip:"Account info",onClick:L(e)},a.a.createElement(d.a,{icon:"info"})),a.a.createElement(u.a,{className:r.a.action,type:u.c.SECONDARY,tooltip:"Reconnect account",onClick:N(e)},a.a.createElement(d.a,{icon:"image-rotate"})),a.a.createElement(u.a,{className:r.a.actions,type:u.c.DANGER,tooltip:"Remove account",onClick:P(e)},a.a.createElement(d.a,{icon:"trash"})))}]}),a.a.createElement(f.a,{isOpen:i,onClose:()=>s(!1),account:E}),a.a.createElement(v.a,{isOpen:w,title:"Are you sure?",buttons:[k?"Please wait ...":"Yes I'm sure","Cancel"],okDisabled:k,cancelDisabled:k,onAccept:()=>{T(!0),g.a.deleteAccount(O.id).then(()=>x()).catch(()=>{n&&n("An error occurred while trying to remove the account."),x()})},onCancel:x},a.a.createElement("p",null,"Are you sure you want to delete"," ",a.a.createElement("span",{style:{fontWeight:"bold"}},O?O.username:""),"?"," ","This will also delete all saved media associated with this account."),O&&O.type===c.a.Type.BUSINESS&&1===o&&a.a.createElement("p",null,a.a.createElement("b",null,"Note:")," ",a.a.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."))))}var y=n(25),w=n(7),S=n(121),O=n(93),C=n.n(O);t.a=Object(w.b)((function(){const[,e]=a.a.useState(0),[t,n]=a.a.useState(""),o=a.a.useCallback(()=>e(e=>e++),[]);return c.b.hasAccounts()?a.a.createElement("div",{className:C.a.root},t.length>0&&a.a.createElement(y.a,{type:y.b.ERROR,showIcon:!0,isDismissible:!0,onDismiss:()=>n("")},t),a.a.createElement("div",{className:C.a.connectBtn},a.a.createElement(i.a,{onConnect:o})),a.a.createElement(E,{accounts:c.b.list,showDelete:!0,onDeleteError:n})):a.a.createElement(S.a,null)}))},16:function(e,t,n){"use strict";n.d(t,"i",(function(){return r})),n.d(t,"e",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"m",(function(){return m})),n.d(t,"g",(function(){return p})),n.d(t,"k",(function(){return h})),n.d(t,"j",(function(){return g})),n.d(t,"d",(function(){return b})),n.d(t,"l",(function(){return _})),n.d(t,"f",(function(){return v})),n.d(t,"h",(function(){return E}));var o=n(0),a=n.n(o),i=n(41),s=n(32);function r(e,t){!function(e,t,n){const o=a.a.useRef(!0);e(()=>{o.current=!0;const e=t(()=>new Promise(e=>{o.current&&e()}));return()=>{o.current=!1,e&&e()}},n)}(o.useEffect,e,t)}function l(e){const[t,n]=a.a.useState(e),o=a.a.useRef(t);return[t,()=>o.current,e=>n(o.current=e)]}function c(e,t,n=[]){function a(o){!e.current||e.current.contains(o.target)||n.some(e=>e&&e.current&&e.current.contains(o.target))||t(o)}Object(o.useEffect)(()=>(document.addEventListener("mousedown",a),document.addEventListener("touchend",a),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("touchend",a)}))}function u(e,t){Object(o.useEffect)(()=>{const n=()=>{0===e.filter(e=>!e.current||document.activeElement===e.current||e.current.contains(document.activeElement)).length&&t()};return document.addEventListener("keyup",n),()=>document.removeEventListener("keyup",n)},e)}function d(e,t,n=100){const[i,s]=a.a.useState(e);return Object(o.useEffect)(()=>{let o=null;return e===t?o=setTimeout(()=>s(t),n):s(!t),()=>{null!==o&&clearTimeout(o)}},[e]),[i,s]}function m(e){const[t,n]=a.a.useState(Object(s.b)()),i=()=>{const t=Object(s.b)();n(t),e&&e(t)};return Object(o.useEffect)(()=>(i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)),[]),t}function p(){return new URLSearchParams(Object(i.e)().search)}function h(e,t){const n=n=>{if(t)return(n||window.event).returnValue=e,e};Object(o.useEffect)(()=>(window.addEventListener("beforeunload",n),()=>window.removeEventListener("beforeunload",n)),[t])}function g(e,t){const n=a.a.useRef(!1);return Object(o.useEffect)(()=>{n.current&&void 0!==e.current&&(e.current.scrollIntoView(Object.assign({behavior:"smooth",block:"start"},null!=t?t:{})),n.current=!1)},[n.current]),()=>n.current=!0}function f(e,t,n,a=[],i=[]){Object(o.useEffect)(()=>(a.reduce((e,t)=>e&&t,!0)&&e.addEventListener(t,n),()=>e.removeEventListener(t,n)),i)}function b(e,t,n=[],o=[]){f(document,e,t,n,o)}function _(e,t,n=[],o=[]){f(window,e,t,n,o)}function v(e){return t=>{" "!==t.key&&"Enter"!==t.key||(e(),t.preventDefault(),t.stopPropagation())}}function E(e){const[t,n]=a.a.useState(e);return[function(e){const t=a.a.useRef(e);return t.current=e,t}(t),n]}n(39)},181:function(e,t,n){e.exports={root:"SpotlightGame__root layout__flex-column","game-text":"SpotlightGame__game-text",gameText:"SpotlightGame__game-text",score:"SpotlightGame__score SpotlightGame__game-text",message:"SpotlightGame__message SpotlightGame__game-text","message-bubble":"SpotlightGame__message-bubble",messageBubble:"SpotlightGame__message-bubble"}},182:function(e,t,n){e.exports={"field-container":"AdvancedSettings__field-container layout__flex-row",fieldContainer:"AdvancedSettings__field-container layout__flex-row","field-element":"AdvancedSettings__field-element",fieldElement:"AdvancedSettings__field-element","field-label":"AdvancedSettings__field-label AdvancedSettings__field-element",fieldLabel:"AdvancedSettings__field-label AdvancedSettings__field-element","field-control":"AdvancedSettings__field-control AdvancedSettings__field-element layout__flex-column",fieldControl:"AdvancedSettings__field-control AdvancedSettings__field-element layout__flex-column","field-centered":"AdvancedSettings__field-centered",fieldCentered:"AdvancedSettings__field-centered"}},183:function(e,t,n){e.exports={label:"TabNavbar__label",tab:"TabNavbar__tab",current:"TabNavbar__current TabNavbar__tab",disabled:"TabNavbar__disabled TabNavbar__tab"}},19:function(e,t,n){"use strict";let o;t.a=o={config:{restApi:SliCommonL10n.restApi,imagesUrl:SliCommonL10n.imagesUrl},image:e=>`${o.config.imagesUrl}/${e}`}},2:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o,a=n(1),i=function(e,t,n,o){var a,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(i<3?a(s):i>3?a(t,n,s):a(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){class t{constructor(e,t,n){this.prop=e,this.name=t,this.icon=n}}t.DESKTOP=new t("desktop","Desktop","desktop"),t.TABLET=new t("tablet","Tablet","tablet"),t.PHONE=new t("phone","Phone","smartphone"),e.Mode=t,e.MODES=[t.DESKTOP,t.TABLET,t.PHONE];class n{constructor(e,t,n){this.desktop=e,this.tablet=t,this.phone=n}get(e,t){return o(this,e,t)}set(e,t){s(this,t,e)}with(e,t){const o=r(this,t,e);return new n(o.desktop,o.tablet,o.phone)}}function o(e,t,n=!1){if(!e)return;const o=e[t.prop];return n&&null==o?e.desktop:o}function s(e,t,n){return e[n.prop]=t,e}function r(e,t,o){return s(new n(e.desktop,e.tablet,e.phone),t,o)}i([a.n],n.prototype,"desktop",void 0),i([a.n],n.prototype,"tablet",void 0),i([a.n],n.prototype,"phone",void 0),e.Value=n,e.getName=function(e){return e.name},e.getIcon=function(e){return e.icon},e.cycle=function(n){const o=e.MODES.findIndex(e=>e===n);return void 0===o?t.DESKTOP:e.MODES[(o+1)%e.MODES.length]},e.get=o,e.set=s,e.withValue=r,e.normalize=function(e,t){return null==e?t.hasOwnProperty("all")?new n(t.all,t.all,t.all):new n(t.desktop,t.tablet,t.phone):"object"==typeof e&&e.hasOwnProperty("desktop")?new n(e.desktop,e.tablet,e.phone):new n(e,e,e)},e.getModeForWindowSize=function(e){return e.width<=768?t.PHONE:e.width<=935?t.TABLET:t.DESKTOP},e.isValid=function(e){return"object"==typeof e&&e.hasOwnProperty("desktop")}}(o||(o={}))},21: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-list":"AccountsList__actions-list layout__flex-row",actionsList:"AccountsList__actions-list layout__flex-row",action:"AccountsList__action"}},219:function(e,t,n){e.exports={"contact-us":"FeedsOnboarding__contact-us",contactUs:"FeedsOnboarding__contact-us","call-to-action":"FeedsOnboarding__call-to-action",callToAction:"FeedsOnboarding__call-to-action"}},221:function(e,t,n){e.exports={buttons:"SettingsNavbar__buttons layout__flex-row","cancel-btn":"SettingsNavbar__cancel-btn",cancelBtn:"SettingsNavbar__cancel-btn"}},224: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"}},24:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(1),a=n(69),i=function(e,t,n,o){var a,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(i<3?a(s):i>3?a(t,n,s):a(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class s{constructor(){const e=window.location;this._pathName=e.pathname,this._baseUrl=e.protocol+"//"+e.host,this.parsed=Object(a.parse)(e.search),this.unListen=null,this.listeners=[],Object(o.o)(()=>this._path,e=>this.path=e)}createPath(e){return this._pathName+"?"+Object(a.stringify)(e)}get _path(){return this.createPath(this.parsed)}get(e,t=null){var n;return null!==(n=this.parsed[e])&&void 0!==n?n:t}at(e){return this.createPath(Object.assign({page:this.parsed.page},this.processQuery(e)))}fullUrl(e){return this._baseUrl+this.createPath(Object.assign({page:this.parsed.page},this.processQuery(e)))}with(e){return this.createPath(Object.assign(Object.assign({},this.parsed),this.processQuery(e)))}without(e){const t=Object.assign({},this.parsed);return delete t[e],this.createPath(t)}useHistory(e){return this.unListen&&this.unListen(),this.history=e,this.unListen=this.history.listen(e=>{this.parsed=Object(a.parse)(e.search),this.listeners.forEach(e=>e())}),this}listen(e){this.listeners.push(e)}unlisten(e){this.listeners=this.listeners.filter(t=>t===e)}processQuery(e){const t=Object.assign({},e);return Object.getOwnPropertyNames(e).forEach(n=>{e[n]&&0===e[n].length?delete t[n]:t[n]=e[n]}),t}}i([o.n],s.prototype,"path",void 0),i([o.n],s.prototype,"parsed",void 0),i([o.h],s.prototype,"_path",null);const r=new s},255:function(e,t,n){e.exports={"create-new-btn":"FeedsScreen__create-new-btn",createNewBtn:"FeedsScreen__create-new-btn"}},257: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"}},258:function(e,t,n){e.exports={message:"FeedNamePrompt__message",input:"FeedNamePrompt__input"}},27:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{static getById(e){const t=o.list.find(t=>t.id===e);return!t&&o.list.length>0?o.list[0]:t}static getName(e){const t=o.getById(e);return t?t.name:"(Missing layout)"}static addLayout(e){o.list.push(e)}}o.list=[]},3:function(e,t,n){"use strict";n.d(t,"r",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return p})),n.d(t,"m",(function(){return h})),n.d(t,"h",(function(){return g})),n.d(t,"e",(function(){return f})),n.d(t,"l",(function(){return b})),n.d(t,"n",(function(){return _})),n.d(t,"j",(function(){return v})),n.d(t,"a",(function(){return E})),n.d(t,"i",(function(){return y})),n.d(t,"k",(function(){return w})),n.d(t,"q",(function(){return S})),n.d(t,"p",(function(){return O})),n.d(t,"o",(function(){return C})),n.d(t,"g",(function(){return k}));var o=n(0),a=n.n(o),i=n(161),s=n(160),r=n(10);let l=0;function c(){return l++}function u(e){const t={};return Object.getOwnPropertyNames(e).forEach(n=>{const o=e[n];Array.isArray(o)?t[n]=o.slice():t[n]="object"==typeof o?u(o):o}),t}function d(e,t){return Object.getOwnPropertyNames(t).forEach(n=>{"object"!=typeof t[n]||Array.isArray(t[n])?e[n]=t[n]:("object"!=typeof e[n]&&(e[n]={}),d(e[n],t[n]))}),e}function m(e,t){return Array.isArray(e)&&Array.isArray(t)?p(e,t):"object"==typeof e&&"object"==typeof t?h(e,t):e===t}function p(e,t,n){if(e===t)return!0;if(e.length!==t.length)return!1;for(let o=0;o<e.length;++o)if(n){if(!n(e[o],t[o]))return!1}else if(!m(e[o],t[o]))return!1;return!0}function h(e,t){return e&&t&&"object"==typeof e&&"object"==typeof t?!Object.getOwnPropertyNames(e).some(n=>!m(e[n],t[n])):m(e,t)}function g(e,t,n){return n=null!=n?n:(e,t)=>e===t,e.filter(e=>!t.some(t=>n(e,t)))}function f(e,t,n){return n=null!=n?n:(e,t)=>e===t,e.every(e=>t.some(t=>n(e,t)))&&t.every(t=>e.some(e=>n(t,e)))}function b(e,t){return 0===e.tag.localeCompare(t.tag)&&e.sort===t.sort}function _(e,t,n=0,i=!1){let s=e.trim();i&&(s=s.replace(/((?:^[.*•]+(\r\n|\r|\n))+)/gm,"\n"));const r=s.split("\n"),l=r.map((e,n)=>{if(e=e.trim(),i&&/^[.*•]$/.test(e))return null;let s,l=[];for(;null!==(s=/#([^\s]+)/g.exec(e));){const t="https://instagram.com/explore/tags/"+s[1],n=a.a.createElement("a",{href:t,target:"_blank",key:c()},s[0]),o=e.substr(0,s.index),i=e.substr(s.index+s[0].length);l.push(o),l.push(n),e=i}return e.length&&l.push(e),t&&(l=t(l,n)),r.length>1&&l.push(a.a.createElement("br",{key:c()})),a.a.createElement(o.Fragment,{key:c()},l)});return n>0?l.slice(0,n):l}function v(e){const t=e.match(/instagram\.com\/p\/([^\/]+)\//);return t&&t.length>0?t[1]:null}var E;function y(e,t=E.MEDIUM){return`https://www.instagram.com/p/${e}/media/?size=${t}`}function w(e,t=E.MEDIUM){return e.thumbnail?e.thumbnail:y(v(e.permalink),t)}function S(e,t){const n=/(\s+)/g;let o,a=0,i=0,s="";for(;null!==(o=n.exec(e))&&a<t;){const t=o.index+o[1].length;s+=e.substr(i,t-i),i=t,a++}return i<e.length&&(s+=" ..."),s}function O(e){return Object(i.a)(Object(s.a)(e),{addSuffix:!0})}function C(e,t){const n=[];return e.forEach((e,o)=>{const a=o%t;Array.isArray(n[a])?n[a].push(e):n[a]=[e]}),n}function k(e,t){return function e(t){if(t.type===r.a.Type.VIDEO){const e=document.createElement("video");return e.autoplay=!1,e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.visibility="hidden",document.body.appendChild(e),new Promise(n=>{e.src=t.url,e.addEventListener("loadeddata",()=>{n({width:e.videoWidth,height:e.videoHeight}),document.body.removeChild(e)})})}if(t.type===r.a.Type.IMAGE){const e=new Image;return e.src=t.url,new Promise(t=>{e.onload=()=>{t({width:e.naturalWidth,height:e.naturalHeight})}})}return t.type===r.a.Type.ALBUM?e(t.children[0]):Promise.reject("Unknown media type")}(e).then(e=>function(e,t){const n=e.width>e.height?t.width/e.width:t.height/e.height;return{width:e.width*n,height:e.height*n}}(e,t))}!function(e){e.SMALL="t",e.MEDIUM="m",e.LARGE="l"}(E||(E={}))},30:function(e,n){e.exports=t},31:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return m}));var o=n(0),a=n.n(o),i=n(30),s=n.n(i),r=n(7);class l{constructor(e=new Map,t=[]){this.factories=e,this.extensions=new Map,this.cache=new Map,t.forEach(e=>this.addModule(e))}addModule(e){e.factories&&(this.factories=new Map([...this.factories,...e.factories])),e.extensions&&e.extensions.forEach((e,t)=>{this.extensions.has(t)?this.extensions.get(t).push(e):this.extensions.set(t,[e])})}get(e){let t=this.factories.get(e);if(void 0===t)throw new Error('Service "'+e+'" does not exist');let n=this.cache.get(e);if(void 0===n){n=t(this);let o=this.extensions.get(e);o&&o.forEach(e=>n=e(this,n)),this.cache.set(e,n)}return n}has(e){return this.factories.has(e)}}class c{constructor(e,t,n){this.key=e,this.mount=t,this.modules=n,this.container=null}addModules(e){this.modules=this.modules.concat(e)}run(){if(null!==this.container)return;const e=()=>{!function(e){const t=`app/${e.key}/run`;document.dispatchEvent(new d(t,e))}(this);const e=m({root:()=>null,"root/children":()=>[]});this.container=new l(e,this.modules);const t=this.container.get("root/children").map((e,t)=>a.a.createElement(e,{key:t})),n=a.a.createElement(r.a,{c:this.container},t);this.modules.forEach(e=>e.run&&e.run(this.container)),s.a.render(n,this.mount)};"complete"===document.readyState?e():window.addEventListener("load",e)}}function u(e,t){document.addEventListener(`app/${e}/run`,e=>{t(e.detail.app)})}class d extends CustomEvent{constructor(e,t){super(e,{detail:{app:t}})}}function m(e){return new Map(Object.entries(e))}},32:function(e,t,n){"use strict";function o(e,t,n={}){return window.open(e,t,function(e={}){return Object.getOwnPropertyNames(e).map(t=>`${t}=${e[t]}`).join(",")}(n))}function a(e,t){return{top:window.top.outerHeight/2+window.top.screenY-t/2,left:window.top.outerWidth/2+window.top.screenX-e/2,width:e,height:t}}function i(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}))},339:function(e,t,n){},341:function(e,t,n){e.exports={root:"ProUpgradeBtn__root"}},343:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(146),a=n.n(o),i=n(0),s=n.n(i),r=n(5),l=n(8),c=n(77),u=n(9);function d({value:e,defaultValue:t,onDone:n}){const o=s.a.useRef(),[i,d]=s.a.useState(""),[m,p]=s.a.useState(!1),h=()=>{d(e),p(!0)},g=()=>{p(!1),n&&n(i),o.current&&o.current.focus()},f=e=>{switch(e.key){case"Enter":case" ":h()}};return s.a.createElement("div",{className:a.a.root},s.a.createElement(c.a,{isOpen:m,onBlur:()=>p(!1),placement:"bottom"},({ref:n})=>s.a.createElement("div",{ref:Object(u.d)(n,o),className:a.a.staticContainer,onClick:h,onKeyPress:f,tabIndex:0,role:"button"},s.a.createElement("span",{className:a.a.label},e||t),s.a.createElement(l.a,{icon:"edit",className:a.a.editIcon})),s.a.createElement(c.b,null,s.a.createElement(c.d,null,s.a.createElement("div",{className:a.a.editContainer},s.a.createElement("input",{type:"text",value:i,onChange:e=>{d(e.target.value)},onKeyDown:e=>{switch(e.key){case"Enter":g();break;case"Escape":p(!1);break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:!0,placeholder:"Feed name"}),s.a.createElement(r.a,{className:a.a.doneBtn,type:r.c.PRIMARY,size:r.b.NORMAL,onClick:g},s.a.createElement(l.a,{icon:"yes"})))))))}},344:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(0),a=n.n(o),i=n(257),s=n.n(i),r=n(123),l=n(5),c=n(8);function u({children:e,steps:t,current:n,onChangeStep:o,firstStep:i,lastStep:u}){var d;i=null!=i?i:[],u=null!=u?u:[];const m=null!==(d=t.findIndex(e=>e.key===n))&&void 0!==d?d:0,p=m<=0,h=m>=t.length-1,g=p?null:t[m-1],f=h?null:t[m+1],b=p?i:a.a.createElement(l.a,{type:l.c.LINK,onClick:()=>!p&&o&&o(t[m-1].key),className:s.a.prevLink,disabled:g.disabled},a.a.createElement(c.a,{icon:"arrow-left-alt2"}),a.a.createElement("span",null,g.label)),_=h?u:a.a.createElement(l.a,{type:l.c.LINK,onClick:()=>!h&&o&&o(t[m+1].key),className:s.a.nextLink,disabled:f.disabled},a.a.createElement("span",null,f.label),a.a.createElement(c.a,{icon:"arrow-right-alt2"}));return a.a.createElement(r.b,null,{path:[],left:b,right:_,center:e})}},345:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(0),a=n.n(o),i=n(224),s=n.n(i),r=n(123),l=n(5),c=n(8),u=n(77);function d({pages:e,current:t,onChangePage:n,showNavArrows:o,hideMenuArrow:i,children:u}){var d,p;const{path:h,right:g}=u,f=null!==(d=e.findIndex(e=>e.key===t))&&void 0!==d?d:0,b=null!==(p=e[f].label)&&void 0!==p?p:"",_=f<=0,v=f>=e.length-1,E=_?null:e[f-1],y=v?null:e[f+1];let w=[];return o&&w.push(a.a.createElement(l.a,{key:"page-menu-left",type:l.c.PILL,onClick:()=>!_&&n&&n(e[f-1].key),disabled:_||E.disabled},a.a.createElement(c.a,{icon:"arrow-left-alt2"}))),w.push(a.a.createElement(m,{key:"page-menu",pages:e,current:t,onClickPage:e=>n&&n(e)},a.a.createElement("span",null,b),!i&&a.a.createElement(c.a,{icon:"arrow-down-alt2",className:s.a.arrowDown}))),o&&w.push(a.a.createElement(l.a,{key:"page-menu-left",type:l.c.PILL,onClick:()=>!v&&n&&n(e[f+1].key),disabled:v||y.disabled},a.a.createElement(c.a,{icon:"arrow-right-alt2"}))),a.a.createElement(r.b,{pathStyle:h.length>1?"line":"none"},{path:h,right:g,center:w})}function m({pages:e,current:t,onClickPage:n,children:o}){const[i,r]=a.a.useState(!1),l=()=>r(!0),c=()=>r(!1);return a.a.createElement(u.a,{isOpen:i,onBlur:c,placement:"bottom-start",refClassName:s.a.menuRef},({ref:e})=>a.a.createElement("a",{ref:e,className:s.a.menuLink,onClick:l},o),a.a.createElement(u.b,null,e.map(e=>{return a.a.createElement(u.c,{key:e.key,disabled:e.disabled,active:e.key===t,onClick:(o=e.key,()=>{n&&n(o),c()})},e.label);var o})))}},346:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(0),a=n.n(o),i=n(183),s=n.n(i),r=n(123),l=n(16);function c({children:{path:e,tabs:t,right:n},current:o,onClickTab:i}){return a.a.createElement(r.b,{pathStyle:"chevron"},{path:e,right:n,left:t.map(e=>{return a.a.createElement(u,{tab:e,key:e.key,isCurrent:e.key===o,onClick:(t=e.key,()=>i&&i(t))});var t})})}function u({tab:e,isCurrent:t,onClick:n}){return a.a.createElement("a",{key:e.key,role:"button",tabIndex:0,className:e.disabled?s.a.disabled:t?s.a.current:s.a.tab,onClick:n,onKeyDown:Object(l.f)(n)},a.a.createElement("span",{className:s.a.label},e.label))}},376:function(e,t,n){},39:function(e,t,n){"use strict";function o(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function a(e){const t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}))},4:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o,a=n(14),i=n(1);!function(e){let t;!function(e){e.PERSONAL="PERSONAL",e.BUSINESS="BUSINESS"}(t=e.Type||(e.Type={}))}(o||(o={}));const s=Object(i.n)([]),r="https://secure.gravatar.com/avatar/4a94d759753ade2961582f7345c1d7b2?s=64&d=mm&r=g",l=e=>s.find(t=>t.id===e),c=e=>"https://instagram.com/"+e;function u(e){if("object"==typeof e&&Array.isArray(e.data))return e.data.sort((e,t)=>e.type===t.type?0:e.type===o.Type.PERSONAL?-1:1),s.splice(0,s.length),e.data.forEach(e=>s.push(Object(i.n)(e))),s;throw"Spotlight encountered a problem trying to load your accounts. Kindly contact customer support for assistance."}t.b={list:s,DEFAULT_PROFILE_PIC:r,getById:l,getByUsername:e=>s.find(t=>t.username===e),hasAccounts:()=>s.length>0,filterExisting:e=>e.filter(e=>void 0!==l(e)),idsToAccounts:e=>e.map(e=>l(e)).filter(e=>void 0!==e),getBusinessAccounts:()=>s.filter(e=>e.type===o.Type.BUSINESS),getProfilePicUrl:e=>e.customProfilePicUrl?e.customProfilePicUrl:e.profilePicUrl?e.profilePicUrl:r,getBioText:e=>e.customBio.length?e.customBio:e.bio,getProfileUrl:e=>c(e.username),getUsernameUrl:c,loadAccounts:function(){return a.a.getAccounts().then(u).catch(e=>{throw a.a.getErrorReason(e)})},loadFromResponse:u}},42:function(e,t,n){"use strict";var o=n(68);t.a=new class{constructor(){this.types=[],this.mediaStore=o.a}addPromotionType(e){this.types.push(e)}getPromotionType(e){return this.types.find(t=>t.value===e)}getMediaPromo(e,t){var n;const o=t.promotions.get(e.id);if(!o)return[{},null];const a=this.getPromotionType(o.type);return a?[null!==(n=o.data)&&void 0!==n?n:{},a]:[{},null]}executeMediaClick(e,t){const[n,o]=this.getMediaPromo(e,t);return!(null===o||!o.isValid(e,n)||"function"!=typeof o.onMediaClick)&&o.onMediaClick(e,n)}getLinkText(e,t){var n,o;const[a,i]=this.getMediaPromo(e,t);return null!==i&&i.isValid(e,a)?{text:i.getPopupLinkText&&null!==(n=i.getPopupLinkText(e,a))&&void 0!==n?n:null,url:i.getMediaUrl&&null!==(o=i.getMediaUrl(e,a))&&void 0!==o?o:null}:{text:null,url:null}}}},47:function(e,t,n){e.exports={root:"MediaThumbnail__root","media-background-fade-in-animation":"MediaThumbnail__media-background-fade-in-animation",mediaBackgroundFadeInAnimation:"MediaThumbnail__media-background-fade-in-animation","media-object-fade-in-animation":"MediaThumbnail__media-object-fade-in-animation",mediaObjectFadeInAnimation:"MediaThumbnail__media-object-fade-in-animation",image:"MediaThumbnail__image","not-available":"MediaThumbnail__not-available",notAvailable:"MediaThumbnail__not-available"}},50: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"}},570:function(e,t,n){"use strict";n.r(t),n(227);var o=n(31),a=(n(376),n(320)),i=n(1),s=n(0),r=n.n(s),l=n(7);const c=(e,t)=>Object(l.b)(n=>r.a.createElement(e,Object.assign(Object.assign({},t),n))),u=(e,t)=>Object(l.b)(n=>{const o={};return Object.keys(t).forEach(e=>o[e]=t[e](n)),r.a.createElement(e,Object.assign({},o,n))});var d=n(41),m=n(321),p=n(24),h=n(19);function g(){const e=new Date,t=3===e.getMonth()&&1===e.getDate()?"spitloght-800w.png":"spotlight-800w.png";return r.a.createElement("div",{className:"admin-loading"},r.a.createElement("div",{className:"admin-loading__perspective"},r.a.createElement("div",{className:"admin-loading__container"},r.a.createElement("img",{src:h.a.image(t),className:"admin-loading__logo",alt:"Spotlight"}))))}var f=n(6),b=n(12),_=n(336);const v=Object(l.b)((function({store:e,screensStore:t,toaster:n,titleTemplate:o}){e.load();const a=t=>{var n,o;const a=null!==(o=null!==(n=t.detail.message)&&void 0!==n?n:t.detail.response.data.message)&&void 0!==o?o:null;e.toaster.addToast("feed/fetch_fail",()=>r.a.createElement("div",null,r.a.createElement("p",null,"An error occurred while retrieving the media for this feed. Details:"),a&&r.a.createElement("code",null,a),r.a.createElement("p",null,"If this error persists, kindly"," ",r.a.createElement("a",{href:b.a.resources.supportUrl,target:"_blank"},"contact customer support"),".")),0)};Object(s.useEffect)(()=>(document.addEventListener(f.a.Events.FETCH_FAIL,a),()=>document.removeEventListener(f.a.Events.FETCH_FAIL,a)),[]);const i=r.a.createElement(n);return e.isLoaded?r.a.createElement(d.b,{history:p.a.history},t.screens.map((e,t)=>r.a.createElement(m.a,{key:e.id,when:"screen",is:e.id,isRoot:0===t,render:()=>{const t=()=>r.a.createElement(e.component);return t.displayName=e.title,document.title=o.replace("%s",e.title),r.a.createElement(t)}})),i,r.a.createElement(_.a,null)):r.a.createElement(r.a.Fragment,null,r.a.createElement(g,null),i)}));var E;!function(e){e.NEW_FEED="new",e.EDIT_FEED="edit",e.FEED_LIST="feeds",e.SETTINGS="settings"}(E||(E={}));class y{constructor(e){this.screens=e,this.screens.sort((e,t)=>{var n,o;const a=null!==(n=e.position)&&void 0!==n?n:0,i=null!==(o=t.position)&&void 0!==o?o:0;return Math.sign(a-i)})}get current(){var e;const t=null!==(e=p.a.get("screen"))&&void 0!==e?e:"";return this.screens.find((e,n)=>t===e.id||!t&&0===n)}}var w=n(255),S=n.n(w),O=n(9),C=n(34);const k=Object(i.n)({initialized:!1,list:[]}),T=({navbar:e,className:t,fillPage:n,children:o})=>{const a=r.a.useRef(null);Object(s.useEffect)(()=>{a.current&&(function(){if(!k.initialized){const e=Array.from(document.querySelectorAll(".sli-notice")),t=Array.from(document.querySelectorAll(".fs-notice.fs-slug-spotlight-social-photo-feeds"));k.list=e.concat(t),k.initialized=!0}}(),k.list.forEach(e=>{e.remove(),a.current.appendChild(e)}))},[]);const i=C.a.getExpiringTokenAccounts(),l=Object(O.a)("admin-screen",{"--fillPage":n})+(t?" "+t:"");return r.a.createElement("div",{className:l},e&&r.a.createElement("div",{className:"admin-screen__navbar"},r.a.createElement(e)),r.a.createElement("div",{className:"admin-screen__content"},r.a.createElement("div",{className:"admin-screen__notices",ref:a},i.map(e=>r.a.createElement("div",{key:e.id,className:"notice notice-warning"},r.a.createElement("p",null,"The access token for the ",r.a.createElement("b",null,"@",e.username)," account is about to expire."," ",r.a.createElement("a",{className:"admin-screen__reconnect",onClick:t=>function(e,t){C.a.openAuthWindow(t.type,0,()=>{b.a.restApi.deleteAccountMedia(t.id)}),e.preventDefault()}(t,e)},"Re-connect the account")," ","to keep using it in Spotlight.")))),o))};var L=n(28),N=n(49),P=n(58),x=n.n(P),A=n(8),M=n(5),I=n(4),B=n(205),D=n(119),F=n(27);const j=({toaster:e})=>{const t={cols:{name:x.a.nameCol,sources:x.a.sourcesCol,usages:x.a.usagesCol,actions:x.a.actionsCol},cells:{name:x.a.nameCell,sources:x.a.sourcesCell,usages:x.a.usagesCell,actions:x.a.actionsCell}};return r.a.createElement("div",{className:"feeds-list"},r.a.createElement(D.a,{styleMap:t,cols:[{id:"name",label:"Name",render:e=>{const t=p.a.at({screen:E.EDIT_FEED,id:e.id.toString()});return r.a.createElement("div",null,r.a.createElement(N.a,{to:t,className:x.a.name},e.name?e.name:"(no name)"),r.a.createElement("div",{className:x.a.metaList},r.a.createElement("span",{className:x.a.id},"ID: ",e.id),r.a.createElement("span",{className:x.a.layout},F.a.getName(e.options.layout))))}},{id:"sources",label:"Shows posts from",render:e=>r.a.createElement(R,{feed:e})},{id:"usages",label:"Instances",render:e=>r.a.createElement(z,{feed:e})},{id:"actions",label:"Actions",render:t=>r.a.createElement("div",{className:x.a.actionsList},r.a.createElement(B.a,{feed:t,toaster:e},r.a.createElement(M.a,{type:M.c.SECONDARY,tooltip:"Copy shortcode"},r.a.createElement(A.a,{icon:"editor-code"}))),r.a.createElement(M.a,{type:M.c.DANGER,tooltip:"Delete feed",onClick:()=>(e=>{confirm("Are you sure you want to delete this feed? This cannot be undone.")&&L.a.deleteFeed(e)})(t)},r.a.createElement(A.a,{icon:"trash"})))}],rows:L.a.list}))},R=({feed:e})=>{let t=[];const n=f.a.Options.getSources(e.options);return n.accounts.forEach(e=>{const n=W(e);n&&t.push(n)}),n.tagged.forEach(e=>{const n=W(e,!0);n&&t.push(n)}),n.hashtags.forEach(e=>t.push(r.a.createElement("div",null,"#",e.tag))),0===t.length&&t.push(r.a.createElement("div",{className:x.a.noSourcesMsg},r.a.createElement(A.a,{icon:"warning"}),r.a.createElement("span",null,"Feed has no sources"))),r.a.createElement("div",{className:x.a.sourcesList},t.map((e,t)=>e&&r.a.createElement(H,{key:t},e)))},z=({feed:e})=>r.a.createElement("div",{className:x.a.usagesList},e.usages.map((e,t)=>r.a.createElement("div",{key:t,className:x.a.usage},r.a.createElement("a",{className:x.a.usageLink,href:e.link,target:"_blank"},e.name),r.a.createElement("span",{className:x.a.usageType},"(",e.type,")"))));function W(e,t){return e?r.a.createElement(U,{account:e,isTagged:t}):null}const U=({account:e,isTagged:t})=>{const n=t?"tag":e.type===I.a.Type.BUSINESS?"businessman":"admin-users";return r.a.createElement("div",null,r.a.createElement(A.a,{icon:n}),e.username)},H=({children:e})=>r.a.createElement("div",{className:x.a.source},e);var G=n(71),K=n(219),q=n.n(K);const Y=p.a.at({screen:E.NEW_FEED}),V=()=>{const[e,t]=r.a.useState(!1);return r.a.createElement(G.a,{className:q.a.root,isTransitioning:e},r.a.createElement("div",null,r.a.createElement("h1",null,"Start engaging with your audience"),r.a.createElement(G.a.Thin,null,r.a.createElement("p",null,"Connect with more people by embedding one or more Instagram feeds on this website."),r.a.createElement("p",null,"It only takes 3 steps! Let’s get going!"),r.a.createElement(G.a.StepList,null,r.a.createElement(G.a.Step,{num:1,isDone:I.b.list.length>0},r.a.createElement("span",null,"Connect your Instagram Account")),r.a.createElement(G.a.Step,{num:2},r.a.createElement("span",null,"Design your feed")),r.a.createElement(G.a.Step,{num:3},r.a.createElement("span",null,"Embed it on your site"))))),r.a.createElement("div",{className:q.a.callToAction},r.a.createElement(G.a.HeroButton,{onClick:()=>{t(!0),setTimeout(()=>p.a.history.push(Y,{}),G.a.TRANSITION_DURATION)}},I.b.list.length>0?"Design your feed":"Connect your Instagram Account"),r.a.createElement(G.a.HelpMsg,{className:q.a.contactUs},"If you need help at any time,"," ",r.a.createElement("a",{href:b.a.resources.supportUrl,target:"_blank",style:{whiteSpace:"nowrap"}},"contact me here"),".",r.a.createElement("br",null),"- Mark Zahra, Spotlight")))};var $=Object(l.b)((function({navbar:e,toaster:t}){return r.a.createElement(T,{navbar:e},r.a.createElement("div",{className:S.a.root},L.a.hasFeeds()?r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:S.a.createNewBtn},r.a.createElement(N.a,{to:p.a.at({screen:E.NEW_FEED}),className:"button button-primary button-large"},"Create a new feed")),r.a.createElement(j,{toaster:t})):r.a.createElement(V,null)))})),X=n(338),J=n(352),Q=n(339),Z=n.n(Q),ee=n(117),te=n(23),ne=n(69),oe=n(16);function ae({when:e,message:t}){return Object(oe.k)(t,e),r.a.createElement(d.a,{when:e,message:t})}const ie="You have unsaved changes. If you leave now, your changes will be lost.";var se=Object(l.b)((function({navbar:e}){const t=p.a.get("tab"),n=t?b.a.settings.pages.find(e=>t===e.id):b.a.settings.pages[0];return Object(s.useEffect)(()=>()=>{te.b.isDirty&&p.a.get("screen")!==E.SETTINGS&&te.b.restore()},[]),r.a.createElement(r.a.Fragment,null,r.a.createElement(T,{navbar:e,className:Z.a.root},n&&r.a.createElement(ee.a,{page:n})),r.a.createElement(d.a,{when:te.b.isDirty,message:re}),r.a.createElement(ae,{when:te.b.isDirty,message:ie}))}));function re(e){return Object(ne.parse)(e.search).screen===E.SETTINGS||ie}var le=n(154),ce=n(341),ue=n.n(ce),de=function({url:e,children:t}){return r.a.createElement("a",{className:ue.a.root,href:null!=e?e:b.a.resources.upgradeLocalUrl},null!=t?t:"Upgrade to PRO")},me=Object(l.b)((function({store:e,right:t,showUpgrade:n,chevron:o,children:a}){n=null!=n?n:null==t;const i=r.a.createElement(le.a.Item,null,e.current.title);return r.a.createElement(le.a,null,r.a.createElement(r.a.Fragment,null,i,o&&r.a.createElement(le.a.Chevron,null),a),t?r.a.createElement(t):n&&r.a.createElement(de,{url:b.a.resources.trialLocalUrl},"Start 14-day PRO trial"))}));class pe{constructor(e,t){this.fns=e,this.delay=null!=t?t:1}load(e=null,t){this.numLoaded=0,this.isLoading=!0;const n=()=>{this.numLoaded++,this.numLoaded>=this.fns.length&&setTimeout(()=>{this.isLoading=!1,t&&t()},this.delay)};this.fns.forEach(t=>t(e,n))}}var he=n(141),ge=n(125),fe=n(14),be=n(206),_e=function(e,t,n,o){var a,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(i<3?a(s):i>3?a(t,n,s):a(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ve=L.a.SavedFeed;class Ee{constructor(e,t,n){this.isLoaded=!1,this.isLoading=!1,this.editorTab="connect",this.isGoingFromNewToEdit=!1,this.isPromptingFeedName=!1,this.feed=new ve,this.loader=e,this.toaster=t,this.editorConfig=n,this.isDoingOnboarding=b.a.config.doOnboarding}edit(e){this.isGoingFromNewToEdit||(this.editorTab="connect"),this.isGoingFromNewToEdit=!1,this.feed=null,this.feed=new ve(e),this.isEditorDirty=!1}saveFeed(e){const t=null===e.id;return this.isDoingOnboarding=!1,new Promise((n,o)=>{L.a.saveFeed(e).then(e=>{this.toaster.addToast("feed/save/success",c(he.a,{message:"Feed saved."})),t&&(this.isGoingFromNewToEdit=!0,p.a.history.push(p.a.at({screen:E.EDIT_FEED,id:e.id.toString()}),{})),n(e)}).catch(e=>{const t=fe.a.getErrorReason(e);this.toaster.addToast("feed/save/error",c(be.a,{message:"Failed to save the feed: "+t})),o(t)})})}saveEditor(e){if(!this.isEditorDirty)return;const t=null===this.feed.id;if(0!==this.feed.name.length||e)return this.isSavingFeed=!0,this.isDoingOnboarding=!1,L.a.saveFeed(this.feed).then(e=>{this.feed=new ve(e),this.isSavingFeed=!1,this.isEditorDirty=!1,this.toaster.addToast("feed/saved",c(he.a,{message:"Feed saved."})),t&&(this.isGoingFromNewToEdit=!0,p.a.history.push(p.a.at({screen:E.EDIT_FEED,id:this.feed.id.toString()}),{}))});this.isPromptingFeedName=!0}cancelEditor(){this.isGoingFromNewToEdit||(this.feed=new ve,this.isEditorDirty=!1,this.isGoingFromNewToEdit=!1)}closeEditor(){this.cancelEditor(),setTimeout(()=>{p.a.history.push(p.a.at({screen:E.FEED_LIST}),{})},10)}onEditorChange(e){e&&ve.setFromObject(this.feed,e),this.isEditorDirty=!0}load(){this.isLoaded||this.isLoading||(this.isLoading=!0,this.loader.load(null,()=>{this.isLoaded=!0,this.isLoading=!1,ge.a.fetch()}))}}_e([i.n],Ee.prototype,"isLoaded",void 0),_e([i.n],Ee.prototype,"isLoading",void 0),_e([i.n],Ee.prototype,"feed",void 0),_e([i.n],Ee.prototype,"isSavingFeed",void 0),_e([i.n],Ee.prototype,"isEditorDirty",void 0),_e([i.n],Ee.prototype,"editorConfig",void 0),_e([i.n],Ee.prototype,"editorTab",void 0),_e([i.n],Ee.prototype,"isDoingOnboarding",void 0),_e([i.n],Ee.prototype,"isGoingFromNewToEdit",void 0),_e([i.n],Ee.prototype,"isPromptingFeedName",void 0),_e([i.f],Ee.prototype,"edit",null),_e([i.f],Ee.prototype,"saveEditor",null),_e([i.f],Ee.prototype,"cancelEditor",null),_e([i.f],Ee.prototype,"closeEditor",null),_e([i.f],Ee.prototype,"onEditorChange",null),_e([i.f],Ee.prototype,"load",null);var ye=n(221),we=n.n(ye),Se=n(151),Oe=Object(l.b)((function({store:e}){const t=p.a.get("tab");return r.a.createElement(me,{store:e,chevron:!0,showUpgrade:!1,right:Ce},b.a.settings.pages.map((e,n)=>r.a.createElement(le.a.Link,{key:e.id,linkTo:p.a.with({tab:e.id}),isCurrent:t===e.id||!t&&0===n},e.title)))}));const Ce=Object(l.b)((function({}){const e=!te.b.isDirty;return r.a.createElement("div",{className:we.a.buttons},r.a.createElement(M.a,{className:we.a.cancelBtn,type:M.c.DANGER_PILL,size:M.b.LARGE,onClick:()=>te.b.restore(),disabled:e},"Cancel"),r.a.createElement(Se.a,{className:we.a.saveBtn,onClick:()=>te.b.save(),isSaving:te.b.isSaving,tooltip:"Save the settings (Ctrl+S)",disabled:e}))}));var ke=n(181),Te=n.n(ke),Le=n(3),Ne=n(40);function Pe({}){const e=r.a.useRef(),t=r.a.useRef([]),[n,o]=r.a.useState(0),[a,i]=r.a.useState(!1),[,l]=r.a.useState(),c=()=>{const n=function(e){const t=.4*e.width,n=t/724,o=707*n,a=22*n,i=35*n;return{bounds:e,origin:{x:(e.width-t)/2+o-i/2,y:.5*e.height+a-i/2},scale:n,particleSize:i}}(e.current.getBoundingClientRect());t.current=t.current.map(e=>{const t=e.didSike?1:Math.max(1,1.3-1.3*Math.min(1,e.life/100));return Object.assign(Object.assign({},e),{pos:{x:e.pos.x+e.vel.x*t,y:e.pos.y+e.vel.y*t},life:e.life+1})}).filter(e=>e.life<500&&e.pos.x>=0&&e.pos.y>=0&&e.pos.x+e.size<=n.bounds.width&&e.pos.y+e.size<=n.bounds.height),t.current.length<30&&10*Math.random()>7&&t.current.push((e=>{const t=Math.max(1,4*Math.random()),n=2*Math.random()*Math.PI,o={x:Math.sin(n)*t,y:Math.cos(n)*t};return{pos:Object.assign({},e.origin),vel:o,size:e.particleSize,life:1}})(n)),l(Le.r)};Object(s.useEffect)(()=>{const e=setInterval(c,25);return()=>clearInterval(e)},[]);const u=function(e){let t=null;return xe.forEach(([n,o])=>{e>=n&&(t=o)}),t}(n);return r.a.createElement("div",{className:Te.a.root},r.a.createElement("h1",{style:{textAlign:"center"}},"Let's play!"),r.a.createElement("p",null,"Click on as many Spotlight dots as you can. We challenge you to ",r.a.createElement("strong",null,"hit ",100),"!"),r.a.createElement("br",null),r.a.createElement("div",{ref:e,style:Ae.container},n>0&&r.a.createElement("div",{className:Te.a.score},r.a.createElement("strong",null,"Score"),": ",r.a.createElement("span",null,n)),u&&r.a.createElement("div",{className:Te.a.message},r.a.createElement("span",{className:Te.a.messageBubble},u)),t.current.map((e,a)=>r.a.createElement("div",{key:a,onMouseDown:()=>(e=>{const a=t.current[e].didSike?5:1;t.current.splice(e,1),o(n+a)})(a),onMouseEnter:()=>(e=>{const n=t.current[e];if(n.didSike)return;const o=1e3*Math.random();o>100&&o<150&&(n.vel={x:5*Math.sign(-n.vel.x),y:5*Math.sign(-n.vel.y)},n.life=100,n.didSike=!0)})(a),style:Object.assign(Object.assign({},Ae.particle),{top:e.pos.y,left:e.pos.x,width:e.size,height:e.size,backgroundColor:e.didSike?"#ffaa00":"#"+(14492491+65536*e.life+256*e.life+e.life).toString(16)})},e.didSike&&r.a.createElement("span",{style:Ae.sike},"x",5)))),r.a.createElement(Ne.a,{title:"Get 20% off Spotlight PRO",isOpen:n>=100&&!a,onClose:()=>i(!0),allowShadeClose:!1},r.a.createElement(Ne.a.Content,null,r.a.createElement("div",{style:{textAlign:"center"}},r.a.createElement("p",{style:{display:"inline-block",width:"70%",marginTop:10}},r.a.createElement("strong",{style:{opacity:.7}},"You were just clicking the dot in the logo, weren't you?",r.a.createElement("br",null),"It doesn't matter. You made it a 100!")),r.a.createElement("h1",null,"Get 20% off Spotlight PRO"),r.a.createElement("p",{style:{display:"inline-block",width:"60%"}},"Open up to new opportunities with hashtag feeds, filtering options, visual moderation,"," ","tagged feeds, new layouts, promotions and much more."),r.a.createElement("div",{style:{margin:"10px 0"}},r.a.createElement("a",{href:b.a.resources.upgradeUrl,target:"_blank",style:{width:"100%"}},r.a.createElement(M.a,{type:M.c.PRIMARY,size:M.b.HERO,style:{width:"80%"}},"Get 20% off Spotlight PRO")))))))}const xe=[[10,r.a.createElement("span",null,"You're getting the hang of this!")],[50,r.a.createElement("span",null,"Not bad. You're half way to a 100!")],[120,r.a.createElement("span",null,"Just post a 5-star review already. You're clearly in love with us!")],[150,r.a.createElement("span",null,"Hey, we'd be curious if there were more messages too. But sadly, this is the last one. Good-bye!")],[500,r.a.createElement("span",null,"Error: User has become obsessed with clicking games.")],[1e3,r.a.createElement("span",null,"While the term Easter egg has been used to mean a hidden object for some time, in reference to an Easter egg hunt, it has come to be more commonly used to mean a message, image, or feature hidden in a video game, film, or other, usually electronic, medium. The term used in this manner was coined around 1979 by Steve Wright, the then Director of Software Development in the Atari Consumer Division, to describe a hidden message in the Atari video game Adventure. [Wikipedia]")]],Ae={container:{flex:1,position:"relative",backgroundColor:"#fff",backgroundImage:`url('${h.a.image("spotlight-800w.png")}')`,backgroundPosition:"center 50%",backgroundSize:"40%",backgroundRepeat:"no-repeat",borderRadius:8,marginTop:15,userSelect:"none"},particle:{position:"absolute",backgroundColor:"#dd234b",borderRadius:999,cursor:"pointer",color:"#000",userSelect:"none"},sike:{position:"relative",left:"calc(100% + 5px)",fontSize:"16px",userSelect:"none"}};var Me=n(149),Ie=n(182),Be=n.n(Ie),De=Object(l.b)((function({}){return r.a.createElement("div",{className:Be.a.root})}));Object(l.b)((function({className:e,label:t,children:n}){const o="settings-field-"+Object(Le.r)();return r.a.createElement("div",{className:Object(O.b)(Be.a.fieldContainer,e)},r.a.createElement("div",{className:Be.a.fieldLabel},r.a.createElement("label",{htmlFor:o},t)),r.a.createElement("div",{className:Be.a.fieldControl},n(o)))}));var Fe=n(351),je=n(2),Re=n(258),ze=n.n(Re),We=n(86);function Ue({isOpen:e,onAccept:t,onCancel:n}){const[o,a]=r.a.useState("");function i(){t&&t(o)}return r.a.createElement(We.a,{title:"Feed name",isOpen:e,onCancel:function(){n&&n()},onAccept:i,buttons:["Save","Cancel"]},r.a.createElement("p",{className:ze.a.message},"Give this feed a memorable name:"),r.a.createElement("input",{type:"text",className:ze.a.input,value:o,onChange:e=>{a(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&(i(),e.preventDefault(),e.stopPropagation())},autoFocus:!0}))}var He=L.a.SavedFeed;function Ge({feed:e,store:t,onSave:n,onCancel:o}){const[a,i]=Object(oe.h)(null),[s,l]=Object(oe.h)(e.name),[c,u]=r.a.useState(!0),[d,m]=r.a.useState(t.editorTab),[p,h]=r.a.useState(je.a.Mode.DESKTOP),[g,b]=Object(oe.h)(!1),[_,v]=Object(oe.h)(!1),[E,y]=r.a.useState(!1);null===a.current&&(a.current=new f.a.Options(e.options));const w=r.a.useCallback(e=>{m(e),t.editorTab=e},[t]),S=r.a.useCallback(e=>{const t=new f.a.Options(a.current);Object(Le.b)(t,e),i(t),b(!0)},[]),O=r.a.useCallback(e=>{l(e),b(!0)},[]),C=r.a.useCallback(o=>{if(g.current)if(void 0!==o||_.current||0!==s.current.length){o=null!=o?o:s.current,l(o),v(!1),y(!0);const i=null===e.id,r=new He({id:e.id,name:o,options:a.current});t.saveFeed(r).then(()=>{n&&n(r),i||(y(!1),b(!1))})}else v(!0)},[e,t]),k=r.a.useCallback(()=>{g.current&&!confirm("You have unsaved changes. If you leave now, your changes will be lost.")||(b(!1),o&&o(),t.closeEditor())},[t]);return Object(oe.d)("keydown",e=>{e.key&&"s"===e.key.toLowerCase()&&e.ctrlKey&&(C(),e.preventDefault(),e.stopPropagation())},[],[g]),r.a.createElement(r.a.Fragment,null,r.a.createElement(Fe.a,Object.assign({value:a.current,name:s.current,tabId:d,previewDevice:p,showFakeOptions:c,onChange:S,onRename:O,onChangeTab:w,onToggleFakeOptions:u,onChangeDevice:h,onSave:C,onCancel:k,isSaving:E,showDoneBtn:!0,showCancelBtn:!0,showNameField:!0,isDoneBtnEnabled:g.current,isCancelBtnEnabled:g.current,doneBtnText:"Save",cancelBtnText:"Cancel"},t.editorConfig)),r.a.createElement(Ue,{isOpen:_.current,onAccept:e=>{C(e)},onCancel:()=>{v(!1)}}),r.a.createElement(ae,{message:"You have unsaved changes. If you leave now, your changes will be lost.",when:g.current&&!E}))}var Ke=L.a.SavedFeed;function qe({store:e}){return e.edit(new Ke),r.a.createElement(Ge,{feed:e.feed,store:e})}var Ye=n(25);function Ve({store:e}){const t=Xe(),n=L.a.getById(t);return t&&n?(e.feed.id!==t&&e.edit(n),Object(s.useEffect)(()=>()=>e.cancelEditor(),[]),r.a.createElement(Ge,{store:e,feed:e.feed})):r.a.createElement($e,null)}const $e=()=>r.a.createElement("div",null,r.a.createElement(Ye.a,{type:Ye.b.ERROR,showIcon:!0},"Feed does not exist.",r.a.createElement(N.a,{to:p.a.with({screen:"feeds"})},"Go back"))),Xe=()=>{let e=p.a.get("id");return e?(e=Array.isArray(e)?e[0]:e,parseInt(e)):null};var Je=n(347);const Qe={factories:Object(o.c)({"admin/root/component":e=>c(v,{store:e.get("admin/store"),screensStore:e.get("admin/screens/store"),toaster:e.get("admin/toaster/component"),titleTemplate:e.get("admin/title_template")}),"admin/title_template":()=>document.title.replace("Spotlight","%s ‹ Spotlight"),"admin/store":e=>new Ee(e.get("admin/loading/loader"),e.get("admin/toaster/store"),e.get("admin/editor/config")),"admin/loading/loader":e=>new pe(e.get("admin/loading/functions"),750),"admin/loading/functions":e=>{const t=e.get("admin/toaster/store"),n=e=>n=>{t.addToast("load_error",c(be.a,{message:n}),0),e()};return[(e,t)=>L.a.loadFeeds().then(t).catch(n(t)),(e,t)=>I.b.loadAccounts().then(t).catch(n(t)),(e,t)=>te.b.load().then(t).catch(n(t))]},"admin/navbar/component":e=>u(me,{store:()=>e.get("admin/screens/store"),showUpgrade:()=>!b.a.config.isPro}),"admin/settings/navbar/component":e=>u(Oe,{store:()=>e.get("admin/screens/store")}),"admin/screens/store":e=>new y(e.get("admin/screens")),"admin/screens":e=>[e.get("admin/feeds/screen"),e.get("admin/editor/add_new/screen"),e.get("admin/editor/edit/screen"),e.get("admin/settings/screen")],"admin/feeds/screen":e=>({id:"feeds",title:"Feeds",position:0,component:c($,{navbar:e.get("admin/navbar/component"),toaster:e.get("admin/toaster/store")})}),"admin/editor/add_new/screen":e=>({id:"new",title:"Add New",position:10,component:c(qe,{store:e.get("admin/store")})}),"admin/editor/edit/screen":e=>({id:"edit",title:"Edit",isHidden:()=>!0,component:c(Ve,{store:e.get("admin/store")})}),"admin/editor/config":()=>Object.assign({},b.a.editor.config),"admin/settings/screen":e=>({id:"settings",title:"Settings",position:50,component:e.get("admin/settings/component")}),"admin/settings/component":e=>c(se,{navbar:e.get("admin/settings/navbar/component")}),"admin/settings/tabs/accounts":()=>({id:"accounts",label:"Manage Accounts",component:Me.a}),"admin/settings/tabs/crons":()=>({id:"crons",label:"Crons",component:u(ee.a,{page:()=>b.a.settings.pages.find(e=>"crons"===e.id)})}),"admin/settings/tabs/advanced":e=>({id:"advanced",label:"Advanced",component:e.get("admin/settings/show_game")?e.get("admin/settings/game/component"):e.get("admin/settings/advanced/component")}),"admin/settings/show_game":()=>!0,"admin/settings/advanced/component":e=>De,"admin/settings/game/component":()=>Pe,"admin/toaster/store":e=>new X.a(e.get("admin/toaster/ttl")),"admin/toaster/ttl":()=>5e3,"admin/toaster/component":e=>c(J.a,{store:e.get("admin/toaster/store")})}),extensions:Object(o.c)({"root/children":(e,t)=>[...t,e.get("admin/root/component")],"settings/tabs":(e,t)=>[e.get("admin/settings/tabs/accounts"),e.get("admin/settings/tabs/advanced"),...t],"admin/editor/config":(e,t)=>(t.tabs.push({id:"embed",label:"Embed",sidebar:u(Je.a,{store:()=>e.get("admin/store")})}),t)}),run:e=>{const t=e.get("admin/toaster/store");document.addEventListener(te.a,()=>{t.addToast("sli/settings/saved",c(he.a,{message:"Settings saved."}))});{const t=e.get("admin/screens/store"),n=document.getElementById("toplevel_page_spotlight-instagram").querySelector("ul.wp-submenu").querySelectorAll("li:not(.wp-submenu-head)"),o=Array.from(n);t.screens.forEach((e,t)=>{const n=0===t,a=e.state||{},s=p.a.fullUrl(Object.assign({screen:e.id},a)),r=p.a.at(Object.assign({screen:e.id},a)),l=o.find(e=>e.querySelector("a").href===s);l&&(l.addEventListener("click",e=>{p.a.history.push(r,{}),e.preventDefault(),e.stopPropagation()}),Object(i.g)(()=>{var t;const o=null!==(t=p.a.get("screen"))&&void 0!==t?t:"",a=e.id===o||!o&&n;l.classList.toggle("current",a)}))})}}},Ze=document.getElementById(b.a.config.rootId);if(Ze){const e=[a.a,Qe].filter(e=>null!==e);Ze.classList.add("wp-core-ui-override"),new o.a("admin",Ze,e).run()}},58:function(e,t,n){e.exports={"name-col":"FeedsList__name-col",nameCol:"FeedsList__name-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","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","usages-cell":"FeedsList__usages-cell",usagesCell:"FeedsList__usages-cell","usages-col":"FeedsList__usages-col",usagesCol:"FeedsList__usages-col","sources-cell":"FeedsList__sources-cell",sourcesCell:"FeedsList__sources-cell","sources-col":"FeedsList__sources-col",sourcesCol:"FeedsList__sources-col"}},59:function(e,t,n){"use strict";function o(e,t){let n;return()=>{clearTimeout(n),n=setTimeout(()=>{n=null,e()},t)}}function a(){}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}))},6:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var o=n(37),a=n.n(o),i=n(1),s=n(2),r=n(27),l=n(31),c=n(4),u=n(3),d=n(13),m=n(14),p=n(59),h=function(e,t,n,o){var a,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(i<3?a(s):i>3?a(t,n,s):a(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class g{constructor(e=new g.Options,t=s.a.Mode.DESKTOP){this.media=[],this.canLoadMore=!1,this.stories=[],this.numLoadedMore=0,this.totalMedia=0,this.mode=s.a.Mode.DESKTOP,this.isLoaded=!1,this.isLoading=!1,this.isLoadingMore=!1,this.numMediaToShow=0,this.numMediaPerPage=0,this.cancelFetch=()=>{},this.options=new g.Options(e),this.localMedia=[],this.mode=t,this.mediaCounter=this._numMediaPerPage,this.reload=Object(p.a)(()=>this.load(),300),Object(i.o)(()=>this.mode,()=>{0===this.numLoadedMore&&(this.mediaCounter=this._numMediaPerPage,this.localMedia.length<this.numMediaToShow&&this.loadMedia(this.localMedia.length,this.numMediaToShow-this.localMedia.length))}),Object(i.o)(()=>this.getReloadOptions(),()=>this.reload()),Object(i.o)(()=>({num:this._numMediaPerPage,mode:this.mode}),({num:e})=>{this.localMedia.length<e&&e<=this.totalMedia?this.reload():this.mediaCounter=Math.max(1,e)}),Object(i.o)(()=>this._media,e=>this.media=e),Object(i.o)(()=>this._numMediaToShow,e=>this.numMediaToShow=e),Object(i.o)(()=>this._numMediaPerPage,e=>this.numMediaPerPage=e),Object(i.o)(()=>this._canLoadMore,e=>this.canLoadMore=e)}get _media(){return this.localMedia.slice(0,this.numMediaToShow)}get _numMediaToShow(){return Math.min(this.mediaCounter,this.totalMedia)}get _numMediaPerPage(){return Math.max(1,g.ComputedOptions.normalizeMultiInt(this.options.numPosts,this.mode,1))}get _canLoadMore(){return this.localMedia.length>this.mediaCounter||this.localMedia.length<this.totalMedia}loadMore(){const e=this.numMediaToShow+this._numMediaPerPage-this.localMedia.length;return this.isLoadingMore=!0,e>0?this.loadMedia(this.localMedia.length,this._numMediaPerPage).then(()=>{this.mediaCounter+=this._numMediaPerPage,this.numLoadedMore++,this.isLoadingMore=!1}):new Promise(e=>{this.numLoadedMore++,this.mediaCounter+=this._numMediaPerPage,this.isLoadingMore=!1,e()})}load(){return this.numLoadedMore=0,this.loadMedia(0,this._numMediaPerPage,!0).then(()=>(this.isLoaded=!0,this.mediaCounter=this._numMediaPerPage))}loadMedia(e,t,n){return this.cancelFetch(),g.Options.hasSources(this.options,!0)?(this.isLoading=!0,new Promise((o,i)=>{m.a.getFeedMedia(this.options,e,t,e=>this.cancelFetch=e).then(e=>{var t;if("object"!=typeof e||"object"!=typeof e.data||!Array.isArray(e.data.media))throw{message:"The media response is malformed or corrupt",response:e};n&&(this.localMedia=[]),this.localMedia.push(...e.data.media),this.stories=null!==(t=e.data.stories)&&void 0!==t?t:[],this.totalMedia=e.data.total,o&&o()}).catch(e=>{var t;if(a.a.isCancel(e))return null;const n=new g.Events.FetchFailEvent(g.Events.FETCH_FAIL,{detail:{feed:this,message:null!==(t=e.response?e.response.data.message:void 0)&&void 0!==t?t:e.message,response:e.response}});return document.dispatchEvent(n),i&&i(e),e}).finally(()=>this.isLoading=!1)})):new Promise(e=>{this.localMedia=[],this.totalMedia=0,e&&e()})}getReloadOptions(){return JSON.stringify({accounts:this.options.accounts,hashtags:this.options.hashtags,tagged:this.options.tagged,postOrder:this.options.postOrder,mediaType:this.options.mediaType,moderation:this.options.moderation,moderationMode:this.options.moderationMode,hashtagBlacklist:this.options.hashtagBlacklist,hashtagWhitelist:this.options.hashtagWhitelist,captionBlacklist:this.options.captionBlacklist,captionWhitelist:this.options.captionWhitelist,hashtagBlacklistSettings:this.options.hashtagBlacklistSettings,hashtagWhitelistSettings:this.options.hashtagWhitelistSettings,captionBlacklistSettings:this.options.captionBlacklistSettings,captionWhitelistSettings:this.options.captionWhitelistSettings})}}h([i.n],g.prototype,"media",void 0),h([i.n],g.prototype,"canLoadMore",void 0),h([i.n],g.prototype,"stories",void 0),h([i.n],g.prototype,"numLoadedMore",void 0),h([i.n],g.prototype,"options",void 0),h([i.n],g.prototype,"totalMedia",void 0),h([i.n],g.prototype,"mode",void 0),h([i.n],g.prototype,"isLoaded",void 0),h([i.n],g.prototype,"isLoading",void 0),h([i.n],g.prototype,"isLoadingMore",void 0),h([i.f],g.prototype,"reload",void 0),h([i.n],g.prototype,"localMedia",void 0),h([i.n],g.prototype,"numMediaToShow",void 0),h([i.n],g.prototype,"numMediaPerPage",void 0),h([i.n],g.prototype,"mediaCounter",void 0),h([i.h],g.prototype,"_media",null),h([i.h],g.prototype,"_numMediaToShow",null),h([i.h],g.prototype,"_numMediaPerPage",null),h([i.h],g.prototype,"_canLoadMore",null),h([i.f],g.prototype,"loadMore",null),h([i.f],g.prototype,"load",null),h([i.f],g.prototype,"loadMedia",null),function(e){let t,n,o,a,m,p,g,f,b;!function(e){e.FETCH_FAIL="sli/feed/fetch_fail";class t extends CustomEvent{constructor(e,t){super(e,t)}}e.FetchFailEvent=t}(t=e.Events||(e.Events={}));class _{constructor(e={}){_.setFromObject(this,e)}static setFromObject(t,n={}){var o,a,i,l,u,d,m,p,h,g,f,b;return t.accounts=n.accounts?n.accounts.slice():e.DefaultOptions.accounts,t.hashtags=n.hashtags?n.hashtags.slice():e.DefaultOptions.hashtags,t.tagged=n.tagged?n.tagged.slice():e.DefaultOptions.tagged,t.layout=r.a.getById(n.layout).id,t.numColumns=s.a.normalize(n.numColumns,e.DefaultOptions.numColumns),t.highlightFreq=s.a.normalize(n.highlightFreq,e.DefaultOptions.highlightFreq),t.mediaType=n.mediaType||e.DefaultOptions.mediaType,t.postOrder=n.postOrder||e.DefaultOptions.postOrder,t.numPosts=s.a.normalize(n.numPosts,e.DefaultOptions.numPosts),t.linkBehavior=s.a.normalize(n.linkBehavior,e.DefaultOptions.linkBehavior),t.feedWidth=s.a.normalize(n.feedWidth,e.DefaultOptions.feedWidth),t.feedHeight=s.a.normalize(n.feedHeight,e.DefaultOptions.feedHeight),t.feedPadding=s.a.normalize(n.feedPadding,e.DefaultOptions.feedPadding),t.imgPadding=s.a.normalize(n.imgPadding,e.DefaultOptions.imgPadding),t.textSize=s.a.normalize(n.textSize,e.DefaultOptions.textSize),t.bgColor=n.bgColor||e.DefaultOptions.bgColor,t.hoverInfo=n.hoverInfo?n.hoverInfo.slice():e.DefaultOptions.hoverInfo,t.textColorHover=n.textColorHover||e.DefaultOptions.textColorHover,t.bgColorHover=n.bgColorHover||e.DefaultOptions.bgColorHover,t.showHeader=s.a.normalize(n.showHeader,e.DefaultOptions.showHeader),t.headerInfo=s.a.normalize(n.headerInfo,e.DefaultOptions.headerInfo),t.headerAccount=null!==(o=n.headerAccount)&&void 0!==o?o:e.DefaultOptions.headerAccount,t.headerAccount=null===t.headerAccount||void 0===c.b.getById(t.headerAccount)?c.b.list.length>0?c.b.list[0].id:null:t.headerAccount,t.headerStyle=s.a.normalize(n.headerStyle,e.DefaultOptions.headerStyle),t.headerTextSize=s.a.normalize(n.headerTextSize,e.DefaultOptions.headerTextSize),t.headerPhotoSize=s.a.normalize(n.headerPhotoSize,e.DefaultOptions.headerPhotoSize),t.headerTextColor=n.headerTextColor||e.DefaultOptions.headerTextColor,t.headerBgColor=n.headerBgColor||e.DefaultOptions.bgColor,t.headerPadding=s.a.normalize(n.headerPadding,e.DefaultOptions.headerPadding),t.customProfilePic=null!==(a=n.customProfilePic)&&void 0!==a?a:e.DefaultOptions.customProfilePic,t.customBioText=n.customBioText||e.DefaultOptions.customBioText,t.includeStories=null!==(i=n.includeStories)&&void 0!==i?i:e.DefaultOptions.includeStories,t.storiesInterval=n.storiesInterval||e.DefaultOptions.storiesInterval,t.showCaptions=s.a.normalize(n.showCaptions,e.DefaultOptions.showCaptions),t.captionMaxLength=s.a.normalize(n.captionMaxLength,e.DefaultOptions.captionMaxLength),t.captionRemoveDots=null!==(l=n.captionRemoveDots)&&void 0!==l?l:e.DefaultOptions.captionRemoveDots,t.captionSize=s.a.normalize(n.captionSize,e.DefaultOptions.captionSize),t.captionColor=n.captionColor||e.DefaultOptions.captionColor,t.showLikes=s.a.normalize(n.showLikes,e.DefaultOptions.showLikes),t.showComments=s.a.normalize(n.showComments,e.DefaultOptions.showCaptions),t.lcIconSize=s.a.normalize(n.lcIconSize,e.DefaultOptions.lcIconSize),t.likesIconColor=null!==(u=n.likesIconColor)&&void 0!==u?u:e.DefaultOptions.likesIconColor,t.commentsIconColor=n.commentsIconColor||e.DefaultOptions.commentsIconColor,t.lightboxShowSidebar=null!==(d=n.lightboxShowSidebar)&&void 0!==d?d:e.DefaultOptions.lightboxShowSidebar,t.numLightboxComments=n.numLightboxComments||e.DefaultOptions.numLightboxComments,t.showLoadMoreBtn=s.a.normalize(n.showLoadMoreBtn,e.DefaultOptions.showLoadMoreBtn),t.loadMoreBtnTextColor=n.loadMoreBtnTextColor||e.DefaultOptions.loadMoreBtnTextColor,t.loadMoreBtnBgColor=n.loadMoreBtnBgColor||e.DefaultOptions.loadMoreBtnBgColor,t.loadMoreBtnText=n.loadMoreBtnText||e.DefaultOptions.loadMoreBtnText,t.autoload=null!==(m=n.autoload)&&void 0!==m?m:e.DefaultOptions.autoload,t.showFollowBtn=s.a.normalize(n.showFollowBtn,e.DefaultOptions.showFollowBtn),t.followBtnText=null!==(p=n.followBtnText)&&void 0!==p?p:e.DefaultOptions.followBtnText,t.followBtnTextColor=n.followBtnTextColor||e.DefaultOptions.followBtnTextColor,t.followBtnBgColor=n.followBtnBgColor||e.DefaultOptions.followBtnBgColor,t.followBtnLocation=s.a.normalize(n.followBtnLocation,e.DefaultOptions.followBtnLocation),t.hashtagWhitelist=n.hashtagWhitelist||e.DefaultOptions.hashtagWhitelist,t.hashtagBlacklist=n.hashtagBlacklist||e.DefaultOptions.hashtagBlacklist,t.captionWhitelist=n.captionWhitelist||e.DefaultOptions.captionWhitelist,t.captionBlacklist=n.captionBlacklist||e.DefaultOptions.captionBlacklist,t.hashtagWhitelistSettings=null!==(h=n.hashtagWhitelistSettings)&&void 0!==h?h:e.DefaultOptions.hashtagWhitelistSettings,t.hashtagBlacklistSettings=null!==(g=n.hashtagBlacklistSettings)&&void 0!==g?g:e.DefaultOptions.hashtagBlacklistSettings,t.captionWhitelistSettings=null!==(f=n.captionWhitelistSettings)&&void 0!==f?f:e.DefaultOptions.captionWhitelistSettings,t.captionBlacklistSettings=null!==(b=n.captionBlacklistSettings)&&void 0!==b?b:e.DefaultOptions.captionBlacklistSettings,t.moderation=n.moderation||e.DefaultOptions.moderation,t.moderationMode=n.moderationMode||e.DefaultOptions.moderationMode,t.promotionEnabled=n.promotionEnabled||e.DefaultOptions.promotionEnabled,Array.isArray(n.promotions)?t.promotions=new Map(n.promotions):n.promotions&&n.promotions.constructor&&"Map"===n.promotions.constructor.name?t.promotions=n.promotions:"object"==typeof n.promotions?t.promotions=new Map(Object.entries(n.promotions)):t.promotions=e.DefaultOptions.promotions,t}static getAllAccounts(e){const t=c.b.idsToAccounts(e.accounts),n=c.b.idsToAccounts(e.tagged);return{all:t.concat(n),accounts:t,tagged:n}}static getSources(e){return{accounts:c.b.idsToAccounts(e.accounts),tagged:c.b.idsToAccounts(e.tagged),hashtags:c.b.getBusinessAccounts().length>0?e.hashtags.filter(e=>e.tag.length>0):[]}}static hasSources(t,n){const o=e.Options.getSources(t),a=o.accounts.length>0||n&&o.tagged.length>0,i=n&&o.hashtags.length>0;return a||i}static isLimitingPosts(e){return e.moderation.length>0||e.hashtagBlacklist.length>0||e.hashtagWhitelist.length>0||e.captionBlacklist.length>0||e.captionWhitelist.length>0}}h([i.n],_.prototype,"accounts",void 0),h([i.n],_.prototype,"hashtags",void 0),h([i.n],_.prototype,"tagged",void 0),h([i.n],_.prototype,"layout",void 0),h([i.n],_.prototype,"numColumns",void 0),h([i.n],_.prototype,"highlightFreq",void 0),h([i.n],_.prototype,"mediaType",void 0),h([i.n],_.prototype,"postOrder",void 0),h([i.n],_.prototype,"numPosts",void 0),h([i.n],_.prototype,"linkBehavior",void 0),h([i.n],_.prototype,"feedWidth",void 0),h([i.n],_.prototype,"feedHeight",void 0),h([i.n],_.prototype,"feedPadding",void 0),h([i.n],_.prototype,"imgPadding",void 0),h([i.n],_.prototype,"textSize",void 0),h([i.n],_.prototype,"bgColor",void 0),h([i.n],_.prototype,"textColorHover",void 0),h([i.n],_.prototype,"bgColorHover",void 0),h([i.n],_.prototype,"hoverInfo",void 0),h([i.n],_.prototype,"showHeader",void 0),h([i.n],_.prototype,"headerInfo",void 0),h([i.n],_.prototype,"headerAccount",void 0),h([i.n],_.prototype,"headerStyle",void 0),h([i.n],_.prototype,"headerTextSize",void 0),h([i.n],_.prototype,"headerPhotoSize",void 0),h([i.n],_.prototype,"headerTextColor",void 0),h([i.n],_.prototype,"headerBgColor",void 0),h([i.n],_.prototype,"headerPadding",void 0),h([i.n],_.prototype,"customBioText",void 0),h([i.n],_.prototype,"customProfilePic",void 0),h([i.n],_.prototype,"includeStories",void 0),h([i.n],_.prototype,"storiesInterval",void 0),h([i.n],_.prototype,"showCaptions",void 0),h([i.n],_.prototype,"captionMaxLength",void 0),h([i.n],_.prototype,"captionRemoveDots",void 0),h([i.n],_.prototype,"captionSize",void 0),h([i.n],_.prototype,"captionColor",void 0),h([i.n],_.prototype,"showLikes",void 0),h([i.n],_.prototype,"showComments",void 0),h([i.n],_.prototype,"lcIconSize",void 0),h([i.n],_.prototype,"likesIconColor",void 0),h([i.n],_.prototype,"commentsIconColor",void 0),h([i.n],_.prototype,"lightboxShowSidebar",void 0),h([i.n],_.prototype,"numLightboxComments",void 0),h([i.n],_.prototype,"showLoadMoreBtn",void 0),h([i.n],_.prototype,"loadMoreBtnText",void 0),h([i.n],_.prototype,"loadMoreBtnTextColor",void 0),h([i.n],_.prototype,"loadMoreBtnBgColor",void 0),h([i.n],_.prototype,"autoload",void 0),h([i.n],_.prototype,"showFollowBtn",void 0),h([i.n],_.prototype,"followBtnText",void 0),h([i.n],_.prototype,"followBtnTextColor",void 0),h([i.n],_.prototype,"followBtnBgColor",void 0),h([i.n],_.prototype,"followBtnLocation",void 0),h([i.n],_.prototype,"hashtagWhitelist",void 0),h([i.n],_.prototype,"hashtagBlacklist",void 0),h([i.n],_.prototype,"captionWhitelist",void 0),h([i.n],_.prototype,"captionBlacklist",void 0),h([i.n],_.prototype,"hashtagWhitelistSettings",void 0),h([i.n],_.prototype,"hashtagBlacklistSettings",void 0),h([i.n],_.prototype,"captionWhitelistSettings",void 0),h([i.n],_.prototype,"captionBlacklistSettings",void 0),h([i.n],_.prototype,"moderation",void 0),h([i.n],_.prototype,"moderationMode",void 0),e.Options=_;class v{constructor(e){Object.getOwnPropertyNames(e).map(t=>{this[t]=e[t]})}getCaption(e){const t=e.caption?e.caption:"";return this.captionMaxLength&&t.length?Object(u.n)(Object(u.q)(t,this.captionMaxLength)):t}static compute(t,n=s.a.Mode.DESKTOP){const o=new v({accounts:c.b.filterExisting(t.accounts),tagged:c.b.filterExisting(t.tagged),hashtags:t.hashtags.filter(e=>e.tag.length>0),layout:r.a.getById(t.layout),highlightFreq:s.a.get(t.highlightFreq,n,!0),linkBehavior:s.a.get(t.linkBehavior,n,!0),bgColor:Object(d.a)(t.bgColor),textColorHover:Object(d.a)(t.textColorHover),bgColorHover:Object(d.a)(t.bgColorHover),hoverInfo:t.hoverInfo,showHeader:s.a.get(t.showHeader,n,!0),headerInfo:s.a.get(t.headerInfo,n,!0),headerStyle:s.a.get(t.headerStyle,n,!0),headerTextColor:Object(d.a)(t.headerTextColor),headerBgColor:Object(d.a)(t.headerBgColor),headerPadding:s.a.get(t.headerPadding,n,!0),includeStories:t.includeStories,storiesInterval:t.storiesInterval,showCaptions:s.a.get(t.showCaptions,n,!0),captionMaxLength:s.a.get(t.captionMaxLength,n,!0),captionRemoveDots:t.captionRemoveDots,captionColor:Object(d.a)(t.captionColor),showLikes:s.a.get(t.showLikes,n,!0),showComments:s.a.get(t.showComments,n,!0),likesIconColor:Object(d.a)(t.likesIconColor),commentsIconColor:Object(d.a)(t.commentsIconColor),lightboxShowSidebar:t.lightboxShowSidebar,numLightboxComments:t.numLightboxComments,showLoadMoreBtn:s.a.get(t.showLoadMoreBtn,n,!0),loadMoreBtnTextColor:Object(d.a)(t.loadMoreBtnTextColor),loadMoreBtnBgColor:Object(d.a)(t.loadMoreBtnBgColor),loadMoreBtnText:t.loadMoreBtnText,showFollowBtn:s.a.get(t.showFollowBtn,n,!0),autoload:t.autoload,followBtnLocation:s.a.get(t.followBtnLocation,n,!0),followBtnTextColor:Object(d.a)(t.followBtnTextColor),followBtnBgColor:Object(d.a)(t.followBtnBgColor),followBtnText:t.followBtnText,account:null,showBio:!1,bioText:null,profilePhotoUrl:c.b.DEFAULT_PROFILE_PIC,feedWidth:"",feedHeight:"",feedPadding:"",imgPadding:"",textSize:"",headerTextSize:"",headerPhotoSize:"",captionSize:"",lcIconSize:"",showLcIcons:!1});if(o.numColumns=this.getNumCols(t,n),o.numPosts=this.getNumPosts(t,n),o.allAccounts=o.accounts.concat(o.tagged.filter(e=>!o.accounts.includes(e))),o.allAccounts.length>0&&(o.account=t.headerAccount&&o.allAccounts.includes(t.headerAccount)?c.b.getById(t.headerAccount):c.b.getById(o.allAccounts[0])),o.showHeader=o.showHeader&&null!==o.account,o.showHeader&&(o.profilePhotoUrl=t.customProfilePic.length?t.customProfilePic:c.b.getProfilePicUrl(o.account)),o.showFollowBtn=o.showFollowBtn&&null!==o.account,o.showBio=o.headerInfo.some(t=>t===e.HeaderInfo.BIO),o.showBio){const e=t.customBioText.trim().length>0?t.customBioText:null!==o.account?c.b.getBioText(o.account):"";o.bioText=Object(u.n)(e),o.showBio=o.bioText.length>0}return o.feedWidth=this.normalizeCssSize(t.feedWidth,n,"auto"),o.feedHeight=this.normalizeCssSize(t.feedHeight,n,"auto"),o.feedPadding=this.normalizeCssSize(t.feedPadding,n,"0"),o.imgPadding=this.normalizeCssSize(t.imgPadding,n,"0"),o.textSize=this.normalizeCssSize(t.textSize,n,"inherit",!0),o.headerTextSize=this.normalizeCssSize(t.headerTextSize,n,"inherit"),o.headerPhotoSize=this.normalizeCssSize(t.headerPhotoSize,n,"50px"),o.captionSize=this.normalizeCssSize(t.captionSize,n,"inherit"),o.lcIconSize=this.normalizeCssSize(t.lcIconSize,n,"inherit"),o.buttonPadding=Math.max(10,s.a.get(t.imgPadding,n))+"px",o.showLcIcons=o.showLikes||o.showComments,o}static getNumCols(e,t){return Math.max(1,this.normalizeMultiInt(e.numColumns,t,1))}static getNumPosts(e,t){return Math.max(1,this.normalizeMultiInt(e.numPosts,t,1))}static normalizeMultiInt(e,t,n=0){const o=parseInt(s.a.get(e,t)+"");return isNaN(o)?t===s.a.Mode.DESKTOP?n:this.normalizeMultiInt(e,s.a.Mode.DESKTOP,n):o}static normalizeCssSize(e,t,n=null,o=!1){const a=s.a.get(e,t,o);return a?a+"px":n}}e.ComputedOptions=v,e.HashtagSorting=Object(l.c)({recent:"Most recent",popular:"Most popular"}),function(e){e.ALL="all",e.PHOTOS="photos",e.VIDEOS="videos"}(n=e.MediaType||(e.MediaType={})),function(e){e.NOTHING="nothing",e.SELF="self",e.NEW_TAB="new_tab",e.LIGHTBOX="lightbox"}(o=e.LinkBehavior||(e.LinkBehavior={})),function(e){e.DATE_ASC="date_asc",e.DATE_DESC="date_desc",e.POPULARITY_ASC="popularity_asc",e.POPULARITY_DESC="popularity_desc",e.RANDOM="random"}(a=e.PostOrder||(e.PostOrder={})),function(e){e.USERNAME="username",e.DATE="date",e.CAPTION="caption",e.LIKES_COMMENTS="likes_comments",e.INSTA_LINK="insta_link"}(m=e.HoverInfo||(e.HoverInfo={})),function(e){e.NORMAL="normal",e.BOXED="boxed",e.CENTERED="centered"}(p=e.HeaderStyle||(e.HeaderStyle={})),function(e){e.BIO="bio",e.PROFILE_PIC="profile_pic",e.FOLLOWERS="followers",e.MEDIA_COUNT="media_count"}(g=e.HeaderInfo||(e.HeaderInfo={})),function(e){e.HEADER="header",e.BOTTOM="bottom",e.BOTH="both"}(f=e.FollowBtnLocation||(e.FollowBtnLocation={})),function(e){e.WHITELIST="whitelist",e.BLACKLIST="blacklist"}(b=e.ModerationMode||(e.ModerationMode={})),e.DefaultOptions={accounts:[],hashtags:[],tagged:[],layout:null,numColumns:{desktop:3},highlightFreq:{desktop:7},mediaType:n.ALL,postOrder:a.DATE_DESC,numPosts:{desktop:9},linkBehavior:{desktop:o.LIGHTBOX,phone:o.NEW_TAB},feedWidth:{desktop:""},feedHeight:{desktop:""},feedPadding:{desktop:20,tablet:14,phone:10},imgPadding:{desktop:14,tablet:10,phone:6},textSize:{all:""},bgColor:{r:255,g:255,b:255,a:1},hoverInfo:[m.LIKES_COMMENTS,m.INSTA_LINK],textColorHover:{r:255,g:255,b:255,a:1},bgColorHover:{r:0,g:0,b:0,a:.5},showHeader:{desktop:!0},headerInfo:{desktop:[g.PROFILE_PIC,g.BIO]},headerAccount:null,headerStyle:{desktop:p.NORMAL,phone:p.CENTERED},headerTextSize:{desktop:""},headerPhotoSize:{desktop:50},headerTextColor:{r:0,g:0,b:0,a:1},headerBgColor:{r:255,g:255,b:255,a:1},headerPadding:{desktop:0},customProfilePic:0,customBioText:"",includeStories:!1,storiesInterval:5,showCaptions:{desktop:!1},captionMaxLength:{desktop:0},captionRemoveDots:!1,captionSize:{desktop:0},captionColor:{r:0,g:0,b:0,a:1},showLikes:{desktop:!1},showComments:{desktop:!1},lcIconSize:{desktop:14},likesIconColor:{r:0,g:0,b:0,a:1},commentsIconColor:{r:0,g:0,b:0,a:1},lightboxShowSidebar:!1,numLightboxComments:50,showLoadMoreBtn:{desktop:!0},loadMoreBtnTextColor:{r:255,g:255,b:255,a:1},loadMoreBtnBgColor:{r:0,g:149,b:246,a:1},loadMoreBtnText:"Load more",autoload:!1,showFollowBtn:{desktop:!0},followBtnText:"Follow on Instagram",followBtnTextColor:{r:255,g:255,b:255,a:1},followBtnBgColor:{r:0,g:149,b:246,a:1},followBtnLocation:{desktop:f.HEADER,phone:f.BOTTOM},hashtagWhitelist:[],hashtagBlacklist:[],captionWhitelist:[],captionBlacklist:[],hashtagWhitelistSettings:!0,hashtagBlacklistSettings:!0,captionWhitelistSettings:!0,captionBlacklistSettings:!0,moderation:[],moderationMode:b.BLACKLIST,promotionEnabled:!0,promotions:new Map}}(g||(g={}))},64:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(0),a=n.n(o),i=n(73),s=n.n(i);function r(){return a.a.createElement("div",{className:s.a.root})}},65:function(e,t,n){e.exports={root:"SettingsGroup__root layout__flex-column",title:"SettingsGroup__title",content:"SettingsGroup__content","field-list":"SettingsGroup__field-list layout__flex-column",fieldList:"SettingsGroup__field-list layout__flex-column"}},67:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(0),a=n.n(o),i=n(47),s=n.n(i),r=n(10),l=n(3),c=n(64),u=n(9);function d(e){var{media:t,className:n,size:i,onLoadImage:d,width:m,height:p}=e,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}(e,["media","className","size","onLoadImage","width","height"]);const g=a.a.useRef(),[f,b]=a.a.useState(!0);return Object(o.useLayoutEffect)(()=>{if(g.current){g.current.onload=()=>{b(!1),d&&d()};const e=t.type===r.a.Type.ALBUM&&t.children.length>0?t.children[0]:t,n=Object(l.j)(e.permalink),o=t.type===r.a.Type.VIDEO?Object(l.i)(n,l.a.LARGE):t.url;if(void 0===i){const e=Object(l.i)(n,l.a.SMALL),a=Object(l.i)(n,l.a.MEDIUM),i=Object(l.i)(n,l.a.LARGE);g.current.src=t.type===r.a.Type.VIDEO?o:a,g.current.srcset=`${e} 150w, ${a} 320w, ${i} 600w, ${o} 1000w`}else g.current.src=o}return()=>g.current.onload=()=>null},[t,i]),t.url&&t.url.length>0?a.a.createElement("div",Object.assign({className:Object(u.b)(s.a.root,n)},h),a.a.createElement("img",{ref:g,className:s.a.image,loading:"lazy",alt:t.caption,width:m,height:p}),f&&a.a.createElement(c.a,null)):a.a.createElement("div",{className:s.a.notAvailable},a.a.createElement("span",null,"Thumbnail not available"))}},68:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return l}));var o=n(6),a=n(14),i=n(3);class s{constructor(e=!1,t=!1){this.incModeration=!1,this.incFilters=!1,this.prevOptions=null,this.media=new Array,this.incModeration=e,this.incFilters=t}fetchMedia(e,t){if(null!==this.prevOptions&&!this.isCacheInvalid(e))return Promise.resolve(this.media);const n=Object.assign({},e.options,{moderation:this.incModeration?e.options.moderation:[],moderationMode:e.options.moderationMode,hashtagBlacklist:this.incFilters?e.options.hashtagBlacklist:[],hashtagWhitelist:this.incFilters?e.options.hashtagWhitelist:[],captionBlacklist:this.incFilters?e.options.captionBlacklist:[],captionWhitelist:this.incFilters?e.options.captionWhitelist:[],hashtagBlacklistSettings:!!this.incFilters&&e.options.hashtagBlacklistSettings,hashtagWhitelistSettings:!!this.incFilters&&e.options.hashtagWhitelistSettings,captionBlacklistSettings:!!this.incFilters&&e.options.captionBlacklistSettings,captionWhitelistSettings:!!this.incFilters&&e.options.captionWhitelistSettings});return t&&t(),a.a.getFeedMedia(n).then(t=>(this.prevOptions=new o.a.Options(e.options),this.media=t.data.media,this.media))}isCacheInvalid(e){const t=e.options,n=this.prevOptions;if(Object(i.h)(e.media,this.media,(e,t)=>e.id===t.id).length>0)return!0;if(!Object(i.e)(t.accounts,n.accounts))return!0;if(!Object(i.e)(t.tagged,n.tagged))return!0;if(!Object(i.e)(t.hashtags,n.hashtags,i.l))return!0;if(this.incModeration){if(t.moderationMode!==n.moderationMode)return!0;if(!Object(i.e)(t.moderation,n.moderation))return!0}if(this.incFilters){if(t.captionWhitelistSettings!==n.captionWhitelistSettings||t.captionBlacklistSettings!==n.captionBlacklistSettings||t.hashtagWhitelistSettings!==n.hashtagWhitelistSettings||t.hashtagBlacklistSettings!==n.hashtagBlacklistSettings)return!0;if(!Object(i.e)(t.captionWhitelist,n.captionWhitelist))return!0;if(!Object(i.e)(t.captionBlacklist,n.captionBlacklist))return!0;if(!Object(i.e)(t.hashtagWhitelist,n.hashtagWhitelist))return!0;if(!Object(i.e)(t.hashtagBlacklist,n.hashtagBlacklist))return!0}return!1}}const r=new s(!0,!0),l=new s(!1,!0)},73:function(e,t,n){e.exports={root:"MediaLoading__root",animation:"MediaLoading__animation"}},74:function(e,t,n){"use strict";var o=n(0),a=n.n(o),i=n(92),s=n.n(i),r=n(4),l=n(9),c=n(7);t.a=Object(c.b)((function(e){var{account:t,square:n,className:o}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}(e,["account","square","className"]);const c=r.b.getProfilePicUrl(t),u=Object(l.b)(n?s.a.square:s.a.round,o);return a.a.createElement("img",Object.assign({},i,{className:u,src:r.b.DEFAULT_PROFILE_PIC,srcSet:c+" 1x",alt:t.username+" profile picture"}))}))},75:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(0),a=n.n(o),i=n(116),s=n.n(i),r=n(12),l=n(9);const c=({className:e,children:t})=>a.a.createElement("a",{className:Object(l.b)(s.a.pill,e),href:r.a.resources.upgradeLocalUrl,target:"_blank",tabIndex:-1},"PRO",t)},76:function(e,t,n){e.exports={root:"SettingsPage__root layout__flex-column",content:"SettingsPage__content","group-list":"SettingsPage__group-list layout__flex-column",groupList:"SettingsPage__group-list layout__flex-column"}},8:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(0),a=n.n(o),i=n(9);const s=e=>{var{icon:t,className:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}(e,["icon","className"]);return a.a.createElement("span",Object.assign({className:Object(i.b)("dashicons","dashicons-"+t,n)},o))}},9:function(e,t,n){"use strict";function o(...e){return e.filter(e=>!!e).join(" ")}function a(e){return o(...Object.getOwnPropertyNames(e).map(t=>e[t]?t:null))}function i(e,t={}){let n=Object.getOwnPropertyNames(t).map(n=>t[n]?e+n:null);return e+" "+n.filter(e=>!!e).join(" ")}function s(...e){return t=>{e.forEach(e=>e&&function(e,t){"function"==typeof e?e(t):e.current=t}(e,t))}}n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return s}))},92:function(e,t,n){e.exports={root:"ProfilePic__root",round:"ProfilePic__round ProfilePic__root",square:"ProfilePic__square ProfilePic__root"}},93:function(e,t,n){e.exports={"connect-btn":"AccountsPage__connect-btn",connectBtn:"AccountsPage__connect-btn"}},96: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"}}},[[570,0,1,3,2]]])}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.spotlight=t(require("React"),require("ReactDOM")):e.spotlight=t(e.React,e.ReactDOM)}(window,(function(e,t){return(window.webpackJsonpspotlight=window.webpackJsonpspotlight||[]).push([[4],{0:function(t,n){t.exports=e},10:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(0),a=n.n(o),i=n(11);const r=e=>{var{icon:t,className:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}(e,["icon","className"]);return a.a.createElement("span",Object.assign({className:Object(i.b)("dashicons","dashicons-"+t,n)},o))}},103:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u}));var o=n(0),a=n.n(o),i=n(3);const r=a.a.createContext(null),s={matched:!1};function l({value:e,children:t}){return s.matched=!1,a.a.createElement(r.Provider,{value:e},t.map((t,n)=>a.a.createElement(a.a.Fragment,{key:n},"function"==typeof t?t(e):t)))}function c({value:e,oneOf:t,children:n}){var o;const l=a.a.useContext(r);let c=!1;return void 0!==e&&(c="function"==typeof e?e(l):Object(i.c)(l,e)),void 0!==t&&(c=t.some(e=>Object(i.c)(e,l))),c?(s.matched=!0,"function"==typeof n?null!==(o=n(l))&&void 0!==o?o:null:null!=n?n:null):null}function u({children:e}){var t;if(s.matched)return null;const n=a.a.useContext(r);return"function"==typeof e?null!==(t=e(n))&&void 0!==t?t:null:null!=e?e:null}},108:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(0),a=n.n(o),i=n(6),r=n(27),s=n(7);const l=Object(i.b)(({feed:e})=>{const t=r.a.getById(e.options.layout),n=s.a.ComputedOptions.compute(e.options,e.mode);return a.a.createElement("div",{className:"feed"},a.a.createElement(t.component,{feed:e,options:n}))})},109:function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o=n(0),a=n.n(o),i=n(60),r=n.n(i),s=n(17),l=n(51),c=n.n(l),u=n(37),d=n.n(u),m=n(6),p=n(3),h=n(113),f=Object(m.b)((function({field:e}){const t="settings-field-"+Object(p.w)(),n=!e.label||e.fullWidth;return a.a.createElement("div",{className:d.a.root},e.label&&a.a.createElement("div",{className:d.a.label},a.a.createElement("label",{htmlFor:t},e.label)),a.a.createElement("div",{className:d.a.container},a.a.createElement("div",{className:n?d.a.controlFullWidth:d.a.controlPartialWidth},a.a.createElement(e.component,{id:t})),e.tooltip&&a.a.createElement("div",{className:d.a.tooltip},a.a.createElement(h.a,null,e.tooltip))))}));function g({group:e}){return a.a.createElement("div",{className:c.a.root},e.title&&e.title.length>0&&a.a.createElement("h1",{className:c.a.title},e.title),e.component&&a.a.createElement("div",{className:c.a.content},a.a.createElement(e.component)),e.fields&&a.a.createElement("div",{className:c.a.fieldList},e.fields.map(e=>a.a.createElement(f,{field:e,key:e.id}))))}var b=n(16);function _({page:e}){return Object(b.d)("keydown",e=>{e.key&&"s"===e.key.toLowerCase()&&e.ctrlKey&&(s.b.save(),e.preventDefault(),e.stopPropagation())}),a.a.createElement("article",{className:r.a.root},e.component&&a.a.createElement("div",{className:r.a.content},a.a.createElement(e.component)),e.groups&&a.a.createElement("div",{className:r.a.groupList},e.groups.map(e=>a.a.createElement(g,{key:e.id,group:e}))))}},11:function(e,t,n){"use strict";function o(...e){return e.filter(e=>!!e).join(" ")}function a(e){return o(...Object.getOwnPropertyNames(e).map(t=>e[t]?t:null))}function i(e,t={}){let n=Object.getOwnPropertyNames(t).map(n=>t[n]?e+n:null);return e+" "+n.filter(e=>!!e).join(" ")}n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return s}));const r={onMouseDown:e=>e.preventDefault()};function s(...e){return t=>{e.forEach(e=>e&&function(e,t){"function"==typeof e?e(t):e.current=t}(e,t))}}},12:function(e,t,n){"use strict";var o,a=n(8);let i;t.a=i={isPro:!1,config:{restApi:SliCommonL10n.restApi,imagesUrl:SliCommonL10n.imagesUrl,autoPromotions:SliCommonL10n.autoPromotions,globalPromotions:null!==(o=SliCommonL10n.globalPromotions)&&void 0!==o?o:{}},image:e=>`${i.config.imagesUrl}/${e}`},a.a.registerType({id:"link",label:"Link",isValid:()=>!1}),a.a.registerType({id:"-more-",label:"- More promotion types -",isValid:()=>!1}),a.a.Automation.registerType({id:"hashtag",label:"Hashtag",matches:()=>!1})},126:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o,a=n(1),i=n(14);n(18),function(e){e.list=Object(a.n)([]),e.fetch=function(){return i.a.restApi.getNotifications().then(t=>{"object"==typeof t&&Array.isArray(t.data)&&e.list.push(...t.data)}).catch(e=>{})}}(o||(o={}))},13:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));const o=e=>"string"==typeof e?e:"r"in e?"rgba("+e.r+","+e.g+","+e.b+","+e.a+")":"h"in e?"hsla("+e.h+","+e.s+","+e.l+","+e.a+")":"#fff"},134:function(e,t,n){"use strict";function o(e,t){return"url"===t.linkType?t.url:t.postUrl}var a;n.d(t,"a",(function(){return a})),t.b={id:"link",label:"Link",getIcon:()=>"admin-links",getPopupLink:function(e,t){return"string"==typeof t.linkText&&t.linkText.length>0?[t.linkText,t.newTab]:[a.getDefaultLinkText(t),t.newTab]},isValid:function(e){return"string"==typeof e.linkType&&e.linkType.length>0&&("url"===e.linkType&&"string"==typeof e.url&&e.url.length>0||!!e.postId&&"string"==typeof e.postUrl&&e.postUrl.length>0)},getMediaUrl:o,onMediaClick:function(e,t){var n;const a=o(0,t),i=null===(n=t.linkDirectly)||void 0===n||n;return!(!a||!i)&&(window.open(a,t.newTab?"_blank":"_self"),!0)}},function(e){e.getDefaultLinkText=function(e){switch(e.linkType){case"product":return"Buy it now";case"post":return"Read the article";case"page":return"Learn more";default:return"Visit link"}}}(a||(a={}))},135:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o=n(0),a=n.n(o),i=n(194),r=n.n(i),s=n(6),l=n(157),c=n(21),u=n(14),d=n(109),m=n(39),p=n(17),h=n(49),f=n(52),g=n(145);const b="You have unsaved changes. If you leave now, your changes will be lost.";function _(e){return Object(h.parse)(e.search).screen===f.a.SETTINGS||b}t.b=Object(s.b)((function({navbar:e}){const t=c.a.get("tab"),n=t?u.a.settings.pages.find(e=>t===e.id):u.a.settings.pages[0];return Object(o.useEffect)(()=>()=>{p.b.isDirty&&c.a.get("screen")!==f.a.SETTINGS&&p.b.restore()},[]),a.a.createElement(a.a.Fragment,null,a.a.createElement(l.a,{navbar:e,className:r.a.root},n&&a.a.createElement(d.a,{page:n})),a.a.createElement(m.a,{when:p.b.isDirty,message:_}),a.a.createElement(g.a,{when:p.b.isDirty,message:b}))}))},137: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"}},143:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(0),a=n.n(o),i=n(29);function r({breakpoints:e,children:t}){const[n,r]=a.a.useState(null),s=a.a.useCallback(()=>{const t=Object(i.b)();r(()=>e.reduce((e,n)=>t.width<=n&&n<e?n:e,1/0))},[e]);return Object(o.useEffect)(()=>(s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)),[]),null!==n&&t(n)}},144:function(e,t,n){"use strict";var o=n(0),a=n.n(o),i=n(98),r=n(19),s=n.n(r),l=n(40),c=n(4),u=n(5),d=n(10),m=n(110),p=n(26),h=n(21),f=n(30),g=n(89),b=n(59),_=n(14),v=n(65);function y({accounts:e,showDelete:t,onDeleteError:n}){const o=(e=null!=e?e:[]).filter(e=>e.type===c.a.Type.BUSINESS).length,[i,r]=a.a.useState(!1),[y,E]=a.a.useState(null),[w,O]=a.a.useState(!1),[S,k]=a.a.useState(),[C,P]=a.a.useState(!1),T=e=>()=>{E(e),r(!0)},L=e=>()=>{f.a.openAuthWindow(e.type,0,()=>{_.a.restApi.deleteAccountMedia(e.id)})},N=e=>()=>{k(e),O(!0)},A=()=>{P(!1),k(null),O(!1)},x={cols:{username:s.a.usernameCol,type:s.a.typeCol,usages:s.a.usagesCol,actions:s.a.actionsCol},cells:{username:s.a.usernameCell,type:s.a.typeCell,usages:s.a.usagesCell,actions:s.a.actionsCell}};return a.a.createElement("div",{className:"accounts-list"},a.a.createElement(m.a,{styleMap:x,rows:e,cols:[{id:"username",label:"Username",render:e=>a.a.createElement("div",null,a.a.createElement(b.a,{account:e,className:s.a.profilePic}),a.a.createElement("a",{className:s.a.username,onClick:T(e)},e.username))},{id:"type",label:"Type",render:e=>a.a.createElement("span",{className:s.a.accountType},e.type)},{id:"usages",label:"Feeds",render:e=>a.a.createElement("span",{className:s.a.usages},e.usages.map((e,t)=>!!p.a.getById(e)&&a.a.createElement(l.a,{key:t,to:h.a.at({screen:"edit",id:e.toString()})},p.a.getById(e).name)))},{id:"actions",label:"Actions",render:e=>t&&a.a.createElement("div",{className:s.a.actionsList},a.a.createElement(u.a,{className:s.a.action,type:u.c.SECONDARY,tooltip:"Account info",onClick:T(e)},a.a.createElement(d.a,{icon:"info"})),a.a.createElement(u.a,{className:s.a.action,type:u.c.SECONDARY,tooltip:"Reconnect account",onClick:L(e)},a.a.createElement(d.a,{icon:"image-rotate"})),a.a.createElement(u.a,{className:s.a.actions,type:u.c.DANGER,tooltip:"Remove account",onClick:N(e)},a.a.createElement(d.a,{icon:"trash"})))}]}),a.a.createElement(g.a,{isOpen:i,onClose:()=>r(!1),account:y}),a.a.createElement(v.a,{isOpen:w,title:"Are you sure?",buttons:[C?"Please wait ...":"Yes I'm sure","Cancel"],okDisabled:C,cancelDisabled:C,onAccept:()=>{P(!0),f.a.deleteAccount(S.id).then(()=>A()).catch(()=>{n&&n("An error occurred while trying to remove the account."),A()})},onCancel:A},a.a.createElement("p",null,"Are you sure you want to delete"," ",a.a.createElement("span",{style:{fontWeight:"bold"}},S?S.username:""),"?"," ","This will also delete all saved media associated with this account."),S&&S.type===c.a.Type.BUSINESS&&1===o&&a.a.createElement("p",null,a.a.createElement("b",null,"Note:")," ",a.a.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."))))}var E=n(23),w=n(6),O=n(112),S=n(78),k=n.n(S);t.a=Object(w.b)((function(){const[,e]=a.a.useState(0),[t,n]=a.a.useState(""),o=a.a.useCallback(()=>e(e=>e++),[]);return c.b.hasAccounts()?a.a.createElement("div",{className:k.a.root},t.length>0&&a.a.createElement(E.a,{type:E.b.ERROR,showIcon:!0,isDismissible:!0,onDismiss:()=>n("")},t),a.a.createElement("div",{className:k.a.connectBtn},a.a.createElement(i.a,{onConnect:o})),a.a.createElement(y,{accounts:c.b.list,showDelete:!0,onDeleteError:n})):a.a.createElement(O.a,null)}))},145:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(0),a=n.n(o),i=n(39),r=n(16);function s({when:e,message:t}){return Object(r.k)(t,e),a.a.createElement(i.a,{when:e,message:t})}},146:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(0),a=n.n(o),i=n(86),r=n.n(i),s=n(64),l=n(16);function c({children:{path:e,tabs:t,right:n},current:o,onClickTab:i}){return a.a.createElement(s.b,{pathStyle:"chevron"},{path:e,right:n,left:t.map(e=>{return a.a.createElement(u,{tab:e,key:e.key,isCurrent:e.key===o,onClick:(t=e.key,()=>i&&i(t))});var t})})}function u({tab:e,isCurrent:t,onClick:n}){return a.a.createElement("a",{key:e.key,role:"button",tabIndex:0,className:e.disabled?r.a.disabled:t?r.a.current:r.a.tab,onClick:n,onKeyDown:Object(l.f)(n)},a.a.createElement("span",{className:r.a.label},e.label))}},15:function(e,t,n){"use strict";var o;n.d(t,"a",(function(){return o})),function(e){let t,n;!function(e){e.IMAGE="IMAGE",e.VIDEO="VIDEO",e.ALBUM="CAROUSEL_ALBUM"}(t=e.Type||(e.Type={})),function(e){let t;!function(e){e.PERSONAL_ACCOUNT="PERSONAL_ACCOUNT",e.BUSINESS_ACCOUNT="BUSINESS_ACCOUNT",e.TAGGED_ACCOUNT="TAGGED_ACCOUNT",e.RECENT_HASHTAG="RECENT_HASHTAG",e.POPULAR_HASHTAG="POPULAR_HASHTAG",e.USER_STORY="USER_STORY"}(t=e.Type||(e.Type={}))}(n=e.Source||(e.Source={})),e.getAsRows=(e,t)=>{e=e.slice(),t=t>0?t:1;let n=[];for(;e.length;)n.push(e.splice(0,t));if(n.length>0){const e=n.length-1;for(;n[e].length<t;)n[e].push({})}return n},e.isFromHashtag=e=>e.source.type===n.Type.POPULAR_HASHTAG||e.source.type===n.Type.RECENT_HASHTAG}(o||(o={}))},157:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(0),a=n.n(o),i=n(11),r=n(30),s=n(14),l=n(1);const c=Object(l.n)({initialized:!1,list:[]}),u=({navbar:e,className:t,fillPage:n,children:l})=>{const u=a.a.useRef(null);Object(o.useEffect)(()=>{u.current&&(function(){if(!c.initialized){const e=Array.from(document.querySelectorAll(".sli-notice")),t=Array.from(document.querySelectorAll(".fs-notice.fs-slug-spotlight-social-photo-feeds"));c.list=e.concat(t),c.initialized=!0}}(),c.list.forEach(e=>{e.remove(),u.current.appendChild(e)}))},[]);const d=r.a.getExpiringTokenAccounts(),m=Object(i.a)("admin-screen",{"--fillPage":n})+(t?" "+t:"");return a.a.createElement("div",{className:m},e&&a.a.createElement("div",{className:"admin-screen__navbar"},a.a.createElement(e)),a.a.createElement("div",{className:"admin-screen__content"},a.a.createElement("div",{className:"admin-screen__notices",ref:u},d.map(e=>a.a.createElement("div",{key:e.id,className:"notice notice-warning"},a.a.createElement("p",null,"The access token for the ",a.a.createElement("b",null,"@",e.username)," account is about to expire."," ",a.a.createElement("a",{className:"admin-screen__reconnect",onClick:t=>function(e,t){r.a.openAuthWindow(t.type,0,()=>{s.a.restApi.deleteAccountMedia(t.id)}),e.preventDefault()}(t,e)},"Re-connect the account")," ","to keep using it in Spotlight.")))),l))}},16:function(e,t,n){"use strict";n.d(t,"i",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"m",(function(){return m})),n.d(t,"g",(function(){return p})),n.d(t,"k",(function(){return h})),n.d(t,"j",(function(){return f})),n.d(t,"d",(function(){return b})),n.d(t,"l",(function(){return _})),n.d(t,"f",(function(){return v})),n.d(t,"h",(function(){return y}));var o=n(0),a=n.n(o),i=n(39),r=n(29);function s(e,t){!function(e,t,n){const o=a.a.useRef(!0);e(()=>{o.current=!0;const e=t(()=>new Promise(e=>{o.current&&e()}));return()=>{o.current=!1,e&&e()}},n)}(o.useEffect,e,t)}function l(e){const[t,n]=a.a.useState(e),o=a.a.useRef(t);return[t,()=>o.current,e=>n(o.current=e)]}function c(e,t,n=[]){function a(o){!e.current||e.current.contains(o.target)||n.some(e=>e&&e.current&&e.current.contains(o.target))||t(o)}Object(o.useEffect)(()=>(document.addEventListener("mousedown",a),document.addEventListener("touchend",a),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("touchend",a)}))}function u(e,t){Object(o.useEffect)(()=>{const n=()=>{0===e.filter(e=>!e.current||document.activeElement===e.current||e.current.contains(document.activeElement)).length&&t()};return document.addEventListener("keyup",n),()=>document.removeEventListener("keyup",n)},e)}function d(e,t,n=100){const[i,r]=a.a.useState(e);return Object(o.useEffect)(()=>{let o=null;return e===t?o=setTimeout(()=>r(t),n):r(!t),()=>{null!==o&&clearTimeout(o)}},[e]),[i,r]}function m(e){const[t,n]=a.a.useState(Object(r.b)()),i=()=>{const t=Object(r.b)();n(t),e&&e(t)};return Object(o.useEffect)(()=>(i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)),[]),t}function p(){return new URLSearchParams(Object(i.e)().search)}function h(e,t){const n=n=>{if(t)return(n||window.event).returnValue=e,e};Object(o.useEffect)(()=>(window.addEventListener("beforeunload",n),()=>window.removeEventListener("beforeunload",n)),[t])}function f(e,t){const n=a.a.useRef(!1);return Object(o.useEffect)(()=>{n.current&&void 0!==e.current&&(e.current.scrollIntoView(Object.assign({behavior:"smooth",block:"start"},null!=t?t:{})),n.current=!1)},[n.current]),()=>n.current=!0}function g(e,t,n,a=[],i=[]){Object(o.useEffect)(()=>(a.reduce((e,t)=>e&&t,!0)&&e.addEventListener(t,n),()=>e.removeEventListener(t,n)),i)}function b(e,t,n=[],o=[]){g(document,e,t,n,o)}function _(e,t,n=[],o=[]){g(window,e,t,n,o)}function v(e){return t=>{" "!==t.key&&"Enter"!==t.key||(e(),t.preventDefault(),t.stopPropagation())}}function y(e){const[t,n]=a.a.useState(e);return[function(e){const t=a.a.useRef(e);return t.current=e,t}(t),n]}n(35)},164: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"}},165:function(e,t,n){e.exports={message:"FeedNamePrompt__message",input:"FeedNamePrompt__input"}},18:function(e,t,n){"use strict";var o=n(34),a=n.n(o),i=n(12),r=n(35);const s=i.a.config.restApi.baseUrl,l={};i.a.config.restApi.authToken&&(l["X-Sli-Auth-Token"]=i.a.config.restApi.authToken);const c=a.a.create({baseURL:s,headers:l}),u={config:i.a.config.restApi,driver:c,getAccounts:()=>c.get("/accounts"),getFeeds:()=>c.get("/feeds"),getFeedMedia:(e,t=0,n=0,o)=>{const i=o?new a.a.CancelToken(o):void 0;return c.post("/media/fetch",{options:e,num:n,from:t},{cancelToken:i})},getErrorReason:e=>{let t;return t="object"==typeof e.response?e.response.data:"string"==typeof e.message?e.message:e.toString(),Object(r.b)(t)}};t.a=u},19: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-list":"AccountsList__actions-list layout__flex-row",actionsList:"AccountsList__actions-list layout__flex-row",action:"AccountsList__action","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"}},194:function(e,t,n){},195:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{constructor(e,t){this.fns=e,this.delay=null!=t?t:1}load(e=null,t){this.numLoaded=0,this.isLoading=!0;const n=()=>{this.numLoaded++,this.numLoaded>=this.fns.length&&setTimeout(()=>{this.isLoading=!1,t&&t()},this.delay)};this.fns.forEach(t=>t(e,n))}}},196:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var o=n(0),a=n.n(o),i=n(81),r=n.n(i),s=n(6),l=n(21),c=n(146),u=n(5),d=n(64),m=n(103),p=n(236),h=n(239),f=n(17),g=n(125),b=n(135),_=n(49),v=n(52),y=n(16),E=n(39),w=n(83);const O=Object(s.b)((function({isFakePro:e}){var t;const n=null!==(t=l.a.get("tab"))&&void 0!==t?t:"automate",o=Array.isArray(n)?n[0]:n;Object(y.k)(b.a,f.b.isDirty),Object(y.d)("keydown",e=>{"s"===e.key.toLowerCase()&&e.ctrlKey&&(f.b.isDirty&&!f.b.isSaving&&f.b.save(),e.preventDefault(),e.stopPropagation())},[],[f.b.isDirty,f.b.isSaving]);const i=e?C:f.b.values.autoPromotions,s=e?{}:f.b.values.promotions;return a.a.createElement("div",{className:r.a.screen},a.a.createElement("div",{className:r.a.navbar},a.a.createElement(S,{currTabId:o,isFakePro:e})),a.a.createElement(m.a,{value:o},a.a.createElement(m.c,{value:"automate"},a.a.createElement(p.a,{automations:i,onChange:function(t){e||f.b.update({autoPromotions:t})},isFakePro:e})),a.a.createElement(m.c,{value:"global"},a.a.createElement(h.a,{promotions:s,onChange:function(t){e||f.b.update({promotions:t})},isFakePro:e}))),a.a.createElement(E.a,{when:f.b.isDirty,message:k}))})),S=Object(s.b)((function({currTabId:e,isFakePro:t}){return a.a.createElement(a.a.Fragment,null,a.a.createElement(c.a,{current:e,onClickTab:e=>l.a.goto({tab:e},!0)},{path:[a.a.createElement(d.a,{key:"logo"}),a.a.createElement("span",{key:"screen-title"},"Promotions")],tabs:[{key:"automate",label:a.a.createElement("span",{className:t?r.a.navbarFakeProItem:r.a.navbarItem},t&&a.a.createElement(w.a,{className:r.a.navbarProPill}),a.a.createElement("span",null,"Automate"))},{key:"global",label:a.a.createElement("span",{className:t?r.a.navbarFakeProItem:r.a.navbarItem},t&&a.a.createElement(w.a,{className:r.a.navbarProPill}),a.a.createElement("span",null,"Global Promotions"))}],right:[a.a.createElement(u.a,{key:"cancel",type:u.c.SECONDARY,disabled:!f.b.isDirty,onClick:f.b.restore},"Cancel"),a.a.createElement(g.a,{key:"save",onClick:f.b.save,isSaving:f.b.isSaving,disabled:!f.b.isDirty})]}))}));function k(e){return Object(_.parse)(e.search).screen===v.a.PROMOTIONS||b.a}const C=[{type:"hashtag",config:{hashtags:["merchandise"]},promotion:{type:"link",config:{linkType:"page",postId:1,postTitle:"Merchandise",linkText:"By my merch!"}}},{type:"hashtag",config:{hashtags:["yt"]},promotion:{type:"link",config:{linkType:"url",url:"https://youtube.com/my-youtube-channel",linkText:"Check out my YouTube"}}}]},2:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o,a=n(1),i=function(e,t,n,o){var a,i=arguments.length,r=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r};!function(e){class t{constructor(e,t,n){this.prop=e,this.name=t,this.icon=n}}t.DESKTOP=new t("desktop","Desktop","desktop"),t.TABLET=new t("tablet","Tablet","tablet"),t.PHONE=new t("phone","Phone","smartphone"),e.Mode=t,e.MODES=[t.DESKTOP,t.TABLET,t.PHONE];class n{constructor(e,t,n){this.desktop=e,this.tablet=t,this.phone=n}get(e,t){return o(this,e,t)}set(e,t){r(this,t,e)}with(e,t){const o=s(this,t,e);return new n(o.desktop,o.tablet,o.phone)}}function o(e,t,n=!1){if(!e)return;const o=e[t.prop];return n&&null==o?e.desktop:o}function r(e,t,n){return e[n.prop]=t,e}function s(e,t,o){return r(new n(e.desktop,e.tablet,e.phone),t,o)}i([a.n],n.prototype,"desktop",void 0),i([a.n],n.prototype,"tablet",void 0),i([a.n],n.prototype,"phone",void 0),e.Value=n,e.getName=function(e){return e.name},e.getIcon=function(e){return e.icon},e.cycle=function(n){const o=e.MODES.findIndex(e=>e===n);return void 0===o?t.DESKTOP:e.MODES[(o+1)%e.MODES.length]},e.get=o,e.set=r,e.withValue=s,e.normalize=function(e,t){return null==e?t.hasOwnProperty("all")?new n(t.all,t.all,t.all):new n(t.desktop,t.tablet,t.phone):"object"==typeof e&&e.hasOwnProperty("desktop")?new n(e.desktop,e.tablet,e.phone):new n(e,e,e)},e.getModeForWindowSize=function(e){return e.width<=768?t.PHONE:e.width<=935?t.TABLET:t.DESKTOP},e.isValid=function(e){return"object"==typeof e&&e.hasOwnProperty("desktop")}}(o||(o={}))},207:function(e,t,n){e.exports={root:"SpotlightGame__root layout__flex-column","game-text":"SpotlightGame__game-text",gameText:"SpotlightGame__game-text",score:"SpotlightGame__score SpotlightGame__game-text",message:"SpotlightGame__message SpotlightGame__game-text","message-bubble":"SpotlightGame__message-bubble",messageBubble:"SpotlightGame__message-bubble"}},208:function(e,t,n){e.exports={"field-container":"AdvancedSettings__field-container layout__flex-row",fieldContainer:"AdvancedSettings__field-container layout__flex-row","field-element":"AdvancedSettings__field-element",fieldElement:"AdvancedSettings__field-element","field-label":"AdvancedSettings__field-label AdvancedSettings__field-element",fieldLabel:"AdvancedSettings__field-label AdvancedSettings__field-element","field-control":"AdvancedSettings__field-control AdvancedSettings__field-element layout__flex-column",fieldControl:"AdvancedSettings__field-control AdvancedSettings__field-element layout__flex-column","field-centered":"AdvancedSettings__field-centered",fieldCentered:"AdvancedSettings__field-centered"}},21:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(1),a=n(49),i=function(e,t,n,o){var a,i=arguments.length,r=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r};class r{constructor(){const e=window.location;this._pathName=e.pathname,this._baseUrl=e.protocol+"//"+e.host,this.parsed=Object(a.parse)(e.search),this.unListen=null,this.listeners=[],Object(o.o)(()=>this._path,e=>this.path=e)}createPath(e){return this._pathName+"?"+Object(a.stringify)(e)}get _path(){return this.createPath(this.parsed)}get(e,t=null){var n;return null!==(n=this.parsed[e])&&void 0!==n?n:t}at(e){return this.createPath(Object.assign({page:this.parsed.page},this.processQuery(e)))}fullUrl(e){return this._baseUrl+this.createPath(Object.assign({page:this.parsed.page},this.processQuery(e)))}with(e){return this.createPath(Object.assign(Object.assign({},this.parsed),this.processQuery(e)))}without(e){const t=Object.assign({},this.parsed);return delete t[e],this.createPath(t)}goto(e,t=!1){this.history.push(t?this.with(e):this.at(e),{})}useHistory(e){return this.unListen&&this.unListen(),this.history=e,this.unListen=this.history.listen(e=>{this.parsed=Object(a.parse)(e.search),this.listeners.forEach(e=>e())}),this}listen(e){this.listeners.push(e)}unlisten(e){this.listeners=this.listeners.filter(t=>t===e)}processQuery(e){const t=Object.assign({},e);return Object.getOwnPropertyNames(e).forEach(n=>{e[n]&&0===e[n].length?delete t[n]:t[n]=e[n]}),t}}i([o.n],r.prototype,"path",void 0),i([o.n],r.prototype,"parsed",void 0),i([o.h],r.prototype,"_path",null);const s=new r},22:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o,a=n(3);!function(e){function t(e,t){return e.hasOwnProperty(t.toString())}function n(e,t){return e[t.toString()]}function o(e,t,n){return e[t.toString()]=n,e}e.has=t,e.get=n,e.set=o,e.ensure=function(n,a,i){return t(n,a)||o(n,a,i),e.get(n,a)},e.withEntry=function(t,n,o){return e.set(Object(a.h)(t),n,o)},e.remove=function(e,t){return delete e[t.toString()],e},e.without=function(t,n){return e.remove(Object(a.h)(t),n)},e.at=function(e,t){return n(e,Object.keys(e)[t])},e.keys=function(e){return Object.keys(e)},e.values=function(e){return Object.values(e)},e.entries=function(e){return Object.getOwnPropertyNames(e).map(t=>[t,e[t]])},e.map=function(t,n){const o={};return e.forEach(t,(e,t)=>o[e]=n(t,e)),o},e.size=function(t){return e.keys(t).length},e.isEmpty=function(t){return 0===e.size(t)},e.equals=function(e,t){return Object(a.r)(e,t)},e.forEach=function(t,n){e.keys(t).forEach(e=>n(e,t[e]))},e.fromArray=function(t){const n={};return t.forEach(([t,o])=>e.set(n,t,o)),n},e.fromMap=function(t){const n={};return t.forEach((t,o)=>e.set(n,o,t)),n}}(o||(o={}))},247:function(e,t,n){e.exports={"contact-us":"FeedsOnboarding__contact-us",contactUs:"FeedsOnboarding__contact-us","call-to-action":"FeedsOnboarding__call-to-action",callToAction:"FeedsOnboarding__call-to-action"}},249:function(e,t,n){e.exports={buttons:"SettingsNavbar__buttons layout__flex-row","cancel-btn":"SettingsNavbar__cancel-btn",cancelBtn:"SettingsNavbar__cancel-btn"}},27:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{static getById(e){const t=o.list.find(t=>t.id===e);return!t&&o.list.length>0?o.list[0]:t}static getName(e){const t=o.getById(e);return t?t.name:"(Missing layout)"}static addLayout(e){o.list.push(e)}}o.list=[]},275:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(96),a=n.n(o),i=n(0),r=n.n(i),s=n(5),l=n(10),c=n(66),u=n(11);function d({value:e,defaultValue:t,onDone:n}){const o=r.a.useRef(),[i,d]=r.a.useState(""),[m,p]=r.a.useState(!1),h=()=>{d(e),p(!0)},f=()=>{p(!1),n&&n(i),o.current&&o.current.focus()},g=e=>{switch(e.key){case"Enter":case" ":h()}};return r.a.createElement("div",{className:a.a.root},r.a.createElement(c.a,{isOpen:m,onBlur:()=>p(!1),placement:"bottom"},({ref:n})=>r.a.createElement("div",{ref:Object(u.d)(n,o),className:a.a.staticContainer,onClick:h,onKeyPress:g,tabIndex:0,role:"button"},r.a.createElement("span",{className:a.a.label},e||t),r.a.createElement(l.a,{icon:"edit",className:a.a.editIcon})),r.a.createElement(c.b,null,r.a.createElement(c.d,null,r.a.createElement("div",{className:a.a.editContainer},r.a.createElement("input",{type:"text",value:i,onChange:e=>{d(e.target.value)},onKeyDown:e=>{switch(e.key){case"Enter":f();break;case"Escape":p(!1);break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:!0,placeholder:"Feed name"}),r.a.createElement(s.a,{className:a.a.doneBtn,type:s.c.PRIMARY,size:s.b.NORMAL,onClick:f},r.a.createElement(l.a,{icon:"yes"})))))))}},276:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(0),a=n.n(o),i=n(164),r=n.n(i),s=n(64),l=n(5),c=n(10);function u({children:e,steps:t,current:n,onChangeStep:o,firstStep:i,lastStep:u}){var d;i=null!=i?i:[],u=null!=u?u:[];const m=null!==(d=t.findIndex(e=>e.key===n))&&void 0!==d?d:0,p=m<=0,h=m>=t.length-1,f=p?null:t[m-1],g=h?null:t[m+1],b=p?i:a.a.createElement(l.a,{type:l.c.LINK,onClick:()=>!p&&o&&o(t[m-1].key),className:r.a.prevLink,disabled:f.disabled},a.a.createElement(c.a,{icon:"arrow-left-alt2"}),a.a.createElement("span",null,f.label)),_=h?u:a.a.createElement(l.a,{type:l.c.LINK,onClick:()=>!h&&o&&o(t[m+1].key),className:r.a.nextLink,disabled:g.disabled},a.a.createElement("span",null,g.label),a.a.createElement(c.a,{icon:"arrow-right-alt2"}));return a.a.createElement(s.b,null,{path:[],left:b,right:_,center:e})}},277:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(0),a=n.n(o),i=n(137),r=n.n(i),s=n(64),l=n(5),c=n(10),u=n(66);function d({pages:e,current:t,onChangePage:n,showNavArrows:o,hideMenuArrow:i,children:u}){var d,p;const{path:h,right:f}=u,g=null!==(d=e.findIndex(e=>e.key===t))&&void 0!==d?d:0,b=null!==(p=e[g].label)&&void 0!==p?p:"",_=g<=0,v=g>=e.length-1,y=_?null:e[g-1],E=v?null:e[g+1];let w=[];return o&&w.push(a.a.createElement(l.a,{key:"page-menu-left",type:l.c.PILL,onClick:()=>!_&&n&&n(e[g-1].key),disabled:_||y.disabled},a.a.createElement(c.a,{icon:"arrow-left-alt2"}))),w.push(a.a.createElement(m,{key:"page-menu",pages:e,current:t,onClickPage:e=>n&&n(e)},a.a.createElement("span",null,b),!i&&a.a.createElement(c.a,{icon:"arrow-down-alt2",className:r.a.arrowDown}))),o&&w.push(a.a.createElement(l.a,{key:"page-menu-left",type:l.c.PILL,onClick:()=>!v&&n&&n(e[g+1].key),disabled:v||E.disabled},a.a.createElement(c.a,{icon:"arrow-right-alt2"}))),a.a.createElement(s.b,{pathStyle:h.length>1?"line":"none"},{path:h,right:f,center:w})}function m({pages:e,current:t,onClickPage:n,children:o}){const[i,s]=a.a.useState(!1),l=()=>s(!0),c=()=>s(!1);return a.a.createElement(u.a,{isOpen:i,onBlur:c,placement:"bottom-start",refClassName:r.a.menuRef},({ref:e})=>a.a.createElement("a",{ref:e,className:r.a.menuLink,onClick:l},o),a.a.createElement(u.b,null,e.map(e=>{return a.a.createElement(u.c,{key:e.key,disabled:e.disabled,active:e.key===t,onClick:(o=e.key,()=>{n&&n(o),c()})},e.label);var o})))}},278:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(0),a=n.n(o),i=n(165),r=n.n(i),s=n(65);function l({isOpen:e,onAccept:t,onCancel:n}){const[o,i]=a.a.useState("");function l(){t&&t(o)}return a.a.createElement(s.a,{title:"Feed name",isOpen:e,onCancel:function(){n&&n()},onAccept:l,buttons:["Save","Cancel"]},a.a.createElement("p",{className:r.a.message},"Give this feed a memorable name:"),a.a.createElement("input",{type:"text",className:r.a.input,value:o,onChange:e=>{i(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&(l(),e.preventDefault(),e.stopPropagation())},autoFocus:!0}))}},29:function(e,t,n){"use strict";function o(e,t,n={}){return window.open(e,t,function(e={}){return Object.getOwnPropertyNames(e).map(t=>`${t}=${e[t]}`).join(",")}(n))}function a(e,t){return{top:window.top.outerHeight/2+window.top.screenY-t/2,left:window.top.outerWidth/2+window.top.screenX-e/2,width:e,height:t}}function i(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}))},292:function(e,t,n){e.exports={"create-new-btn":"FeedsScreen__create-new-btn",createNewBtn:"FeedsScreen__create-new-btn"}},3:function(e,t,n){"use strict";n.d(t,"w",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"b",(function(){return m})),n.d(t,"x",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"r",(function(){return g})),n.d(t,"q",(function(){return b})),n.d(t,"k",(function(){return _})),n.d(t,"f",(function(){return v})),n.d(t,"p",(function(){return y})),n.d(t,"s",(function(){return E})),n.d(t,"n",(function(){return w})),n.d(t,"a",(function(){return O})),n.d(t,"m",(function(){return S})),n.d(t,"o",(function(){return k})),n.d(t,"v",(function(){return C})),n.d(t,"u",(function(){return P})),n.d(t,"t",(function(){return T})),n.d(t,"i",(function(){return L})),n.d(t,"j",(function(){return N})),n.d(t,"l",(function(){return A})),n.d(t,"g",(function(){return x})),n.d(t,"d",(function(){return M}));var o=n(0),a=n.n(o),i=n(141),r=n(140),s=n(15),l=n(47);let c=0;function u(){return c++}function d(e){const t={};return Object.keys(e).forEach(n=>{const o=e[n];Array.isArray(o)?t[n]=o.slice():o instanceof Map?t[n]=new Map(o.entries()):t[n]="object"==typeof o?d(o):o}),t}function m(e,t){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function p(e,t){return m(d(e),t)}function h(e,t){return Array.isArray(e)&&Array.isArray(t)?f(e,t):e instanceof Map&&t instanceof Map?f(Array.from(e.entries()),Array.from(t.entries())):"object"==typeof e&&"object"==typeof t?g(e,t):e===t}function f(e,t,n){if(e===t)return!0;if(e.length!==t.length)return!1;for(let o=0;o<e.length;++o)if(n){if(!n(e[o],t[o]))return!1}else if(!h(e[o],t[o]))return!1;return!0}function g(e,t){if(!e||!t||"object"!=typeof e||"object"!=typeof t)return h(e,t);const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;const a=new Set(n.concat(o));for(const n of a)if(!h(e[n],t[n]))return!1;return!0}function b(e){return 0===Object.keys(null!=e?e:{}).length}function _(e,t,n){return n=null!=n?n:(e,t)=>e===t,e.filter(e=>!t.some(t=>n(e,t)))}function v(e,t,n){return n=null!=n?n:(e,t)=>e===t,e.every(e=>t.some(t=>n(e,t)))&&t.every(t=>e.some(e=>n(t,e)))}function y(e,t){return 0===e.tag.localeCompare(t.tag)&&e.sort===t.sort}function E(e,t,n=0,i=!1){let r=e.trim();i&&(r=r.replace(/((?:^[.*•]+(\r\n|\r|\n))+)/gm,"\n"));const s=r.split("\n"),l=s.map((e,n)=>{if(e=e.trim(),i&&/^[.*•]$/.test(e))return null;let r,l=[];for(;null!==(r=/#([^\s]+)/g.exec(e));){const t="https://instagram.com/explore/tags/"+r[1],n=a.a.createElement("a",{href:t,target:"_blank",key:u()},r[0]),o=e.substr(0,r.index),i=e.substr(r.index+r[0].length);l.push(o),l.push(n),e=i}return e.length&&l.push(e),t&&(l=t(l,n)),s.length>1&&l.push(a.a.createElement("br",{key:u()})),a.a.createElement(o.Fragment,{key:u()},l)});return n>0?l.slice(0,n):l}function w(e){const t=e.match(/instagram\.com\/p\/([^\/]+)\//);return t&&t.length>0?t[1]:null}var O;function S(e,t=O.MEDIUM){return`https://www.instagram.com/p/${e}/media/?size=${t}`}function k(e,t=O.MEDIUM){return e.thumbnail?e.thumbnail:S(w(e.permalink),t)}function C(e,t){const n=/(\s+)/g;let o,a=0,i=0,r="";for(;null!==(o=n.exec(e))&&a<t;){const t=o.index+o[1].length;r+=e.substr(i,t-i),i=t,a++}return i<e.length&&(r+=" ..."),r}function P(e){return Object(i.a)(Object(r.a)(e),{addSuffix:!0})}function T(e,t){const n=[];return e.forEach((e,o)=>{const a=o%t;Array.isArray(n[a])?n[a].push(e):n[a]=[e]}),n}function L(e,t){return function e(t){if(t.type===s.a.Type.VIDEO){const e=document.createElement("video");return e.autoplay=!1,e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.visibility="hidden",document.body.appendChild(e),new Promise(n=>{e.src=t.url,e.addEventListener("loadeddata",()=>{n({width:e.videoWidth,height:e.videoHeight}),document.body.removeChild(e)})})}if(t.type===s.a.Type.IMAGE){const e=new Image;return e.src=t.url,new Promise(t=>{e.onload=()=>{t({width:e.naturalWidth,height:e.naturalHeight})}})}return t.type===s.a.Type.ALBUM?e(t.children[0]):Promise.reject("Unknown media type")}(e).then(e=>function(e,t){const n=e.width>e.height?t.width/e.width:t.height/e.height;return{width:e.width*n,height:e.height*n}}(e,t))}function N(e,t){const n=t.map(l.b).join("|");return new RegExp(`(?:^|\\B)#(${n})(?:\\b|\\r|$)`,"imu").test(e)}function A(e,t){for(const n of t){const t=n();if(e(t))return t}}function x(e,t){return Math.max(0,Math.min(t.length-1,e))}function M(e,t,n){const o=e.slice();return o[t]=n,o}!function(e){e.SMALL="t",e.MEDIUM="m",e.LARGE="l"}(O||(O={}))},32:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return m}));var o=n(0),a=n.n(o),i=n(33),r=n.n(i),s=n(6);class l{constructor(e=new Map,t=[]){this.factories=e,this.extensions=new Map,this.cache=new Map,t.forEach(e=>this.addModule(e))}addModule(e){e.factories&&(this.factories=new Map([...this.factories,...e.factories])),e.extensions&&e.extensions.forEach((e,t)=>{this.extensions.has(t)?this.extensions.get(t).push(e):this.extensions.set(t,[e])})}get(e){let t=this.factories.get(e);if(void 0===t)throw new Error('Service "'+e+'" does not exist');let n=this.cache.get(e);if(void 0===n){n=t(this);let o=this.extensions.get(e);o&&o.forEach(e=>n=e(this,n)),this.cache.set(e,n)}return n}has(e){return this.factories.has(e)}}class c{constructor(e,t,n){this.key=e,this.mount=t,this.modules=n,this.container=null}addModules(e){this.modules=this.modules.concat(e)}run(){if(null!==this.container)return;let e=!1;const t=()=>{e||"interactive"!==document.readyState&&"complete"!==document.readyState||(this.actualRun(),e=!0)};t(),e||document.addEventListener("readystatechange",t)}actualRun(){!function(e){const t=`app/${e.key}/run`;document.dispatchEvent(new d(t,e))}(this);const e=m({root:()=>null,"root/children":()=>[]});this.container=new l(e,this.modules);const t=this.container.get("root/children").map((e,t)=>a.a.createElement(e,{key:t})),n=a.a.createElement(s.a,{c:this.container},t);this.modules.forEach(e=>e.run&&e.run(this.container)),r.a.render(n,this.mount)}}function u(e,t){document.addEventListener(`app/${e}/run`,e=>{t(e.detail.app)})}class d extends CustomEvent{constructor(e,t){super(e,{detail:{app:t}})}}function m(e){return new Map(Object.entries(e))}},33:function(e,n){e.exports=t},35:function(e,t,n){"use strict";function o(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function a(e){const t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}))},37: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"}},377:function(e,t,n){e.exports={root:"ProUpgradeBtn__root"}},38:function(e,t,n){"use strict";function o(e){return t=>(t.stopPropagation(),e(t))}function a(e,t){let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{n=null,e(...o)},t)}}function i(){}n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}))},4:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o,a=n(18),i=n(1);!function(e){let t;!function(e){e.PERSONAL="PERSONAL",e.BUSINESS="BUSINESS"}(t=e.Type||(e.Type={}))}(o||(o={}));const r=Object(i.n)([]),s="https://secure.gravatar.com/avatar/4a94d759753ade2961582f7345c1d7b2?s=64&d=mm&r=g",l=e=>r.find(t=>t.id===e),c=e=>"https://instagram.com/"+e;function u(e){return e.slice().sort((e,t)=>e.type===t.type?0:e.type===o.Type.PERSONAL?-1:1),r.splice(0,r.length),e.forEach(e=>r.push(Object(i.n)(e))),r}function d(e){if("object"==typeof e&&Array.isArray(e.data))return u(e.data);throw"Spotlight encountered a problem trying to load your accounts. Kindly contact customer support for assistance."}t.b={list:r,DEFAULT_PROFILE_PIC:s,getById:l,getByUsername:e=>r.find(t=>t.username===e),hasAccounts:()=>r.length>0,filterExisting:e=>e.filter(e=>void 0!==l(e)),idsToAccounts:e=>e.map(e=>l(e)).filter(e=>void 0!==e),getBusinessAccounts:()=>r.filter(e=>e.type===o.Type.BUSINESS),getProfilePicUrl:e=>e.customProfilePicUrl?e.customProfilePicUrl:e.profilePicUrl?e.profilePicUrl:s,getBioText:e=>e.customBio.length?e.customBio:e.bio,getProfileUrl:e=>c(e.username),getUsernameUrl:c,loadAccounts:function(){return a.a.getAccounts().then(d).catch(e=>{throw a.a.getErrorReason(e)})},loadFromResponse:d,addAccounts:u}},407:function(e,t,n){},41: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"}},43:function(e,t,n){e.exports={root:"MediaThumbnail__root","media-background-fade-in-animation":"MediaThumbnail__media-background-fade-in-animation",mediaBackgroundFadeInAnimation:"MediaThumbnail__media-background-fade-in-animation","media-object-fade-in-animation":"MediaThumbnail__media-object-fade-in-animation",mediaObjectFadeInAnimation:"MediaThumbnail__media-object-fade-in-animation",image:"MediaThumbnail__image","not-available":"MediaThumbnail__not-available",notAvailable:"MediaThumbnail__not-available"}},47:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));const o=(e,t)=>e.startsWith(t)?e:t+e,a=e=>{return(t=e,"#",t.startsWith("#")?t.substr("#".length):t).split(/\s/).map((e,t)=>t>0?e[0].toUpperCase()+e.substr(1):e).join("").replace(/\W/gi,"");var t}},51:function(e,t,n){e.exports={root:"SettingsGroup__root layout__flex-column",title:"SettingsGroup__title",content:"SettingsGroup__content","field-list":"SettingsGroup__field-list layout__flex-column",fieldList:"SettingsGroup__field-list layout__flex-column"}},52:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var o,a,i=n(21),r=n(1);!function(e){e.NEW_FEED="new",e.EDIT_FEED="edit",e.FEED_LIST="feeds",e.SETTINGS="settings",e.PROMOTIONS="promotions"}(o||(o={})),function(e){const t=Object(r.n)([]);e.getList=function(){return t},e.register=function(n){return t.push(...n),t.sort((e,t)=>{var n,o;const a=null!==(n=e.position)&&void 0!==n?n:0,i=null!==(o=t.position)&&void 0!==o?o:0;return Math.sign(a-i)}),e},e.getScreen=function(e){return t.find(t=>t.id===e)},e.getCurrent=function(){var e;const n=null!==(e=i.a.get("screen"))&&void 0!==e?e:"";return t.find((e,t)=>n===e.id||!n&&0===t)}}(a||(a={}))},58:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(0),a=n.n(o),i=n(74),r=n.n(i);function s(){return a.a.createElement("div",{className:r.a.root})}},59:function(e,t,n){"use strict";var o=n(0),a=n.n(o),i=n(77),r=n.n(i),s=n(4),l=n(11),c=n(6);t.a=Object(c.b)((function(e){var{account:t,square:n,className:o}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}(e,["account","square","className"]);const c=s.b.getProfilePicUrl(t),u=Object(l.b)(n?r.a.square:r.a.round,o);return a.a.createElement("img",Object.assign({},i,{className:u,src:s.b.DEFAULT_PROFILE_PIC,srcSet:c+" 1x",alt:t.username+" profile picture"}))}))},60:function(e,t,n){e.exports={root:"SettingsPage__root layout__flex-column",content:"SettingsPage__content","group-list":"SettingsPage__group-list layout__flex-column",groupList:"SettingsPage__group-list layout__flex-column"}},605:function(e,t,n){"use strict";n.r(t),n(255);var o=n(32),a=(n(407),n(356)),i=n(1),r=n(85),s=n(0),l=n.n(s),c=n(39),u=n(357),d=n(21),m=n(52),p=n(6),h=n(12);function f(){const e=new Date,t=3===e.getMonth()&&1===e.getDate()?"spitloght-800w.png":"spotlight-800w.png";return l.a.createElement("div",{className:"admin-loading"},l.a.createElement("div",{className:"admin-loading__perspective"},l.a.createElement("div",{className:"admin-loading__container"},l.a.createElement("img",{src:h.a.image(t),className:"admin-loading__logo",alt:"Spotlight"}))))}var g=n(7),b=n(14),_=n(373);const v=Object(p.b)((function({store:e,toaster:t,titleTemplate:n}){e.load();const o=t=>{var n,o;const a=null!==(o=null!==(n=t.detail.message)&&void 0!==n?n:t.detail.response.data.message)&&void 0!==o?o:null;e.toaster.addToast("feed/fetch_fail",()=>l.a.createElement("div",null,l.a.createElement("p",null,"An error occurred while retrieving the media for this feed. Details:"),a&&l.a.createElement("code",null,a),l.a.createElement("p",null,"If this error persists, kindly"," ",l.a.createElement("a",{href:b.a.resources.supportUrl,target:"_blank"},"contact customer support"),".")),0)};Object(s.useEffect)(()=>(document.addEventListener(g.a.Events.FETCH_FAIL,o),()=>document.removeEventListener(g.a.Events.FETCH_FAIL,o)),[]);const a=l.a.createElement(t);return e.isLoaded?l.a.createElement(c.b,{history:d.a.history},m.b.getList().map((e,t)=>l.a.createElement(u.a,{key:e.id,when:"screen",is:e.id,isRoot:0===t,render:()=>{const t=()=>l.a.createElement(e.component);return t.displayName=e.title,document.title=n.replace("%s",e.title),l.a.createElement(t)}})),a,l.a.createElement(_.a,null)):l.a.createElement(l.a.Fragment,null,l.a.createElement(f,null),a)}));var y=n(292),E=n.n(y),w=n(157),O=n(26),S=n(40),k=n(72),C=n.n(k),P=n(10),T=n(5),L=n(4),N=n(231),A=n(110),x=n(27);const M=({toaster:e})=>{const t={cols:{name:C.a.nameCol,sources:C.a.sourcesCol,usages:C.a.usagesCol,actions:C.a.actionsCol},cells:{name:C.a.nameCell,sources:C.a.sourcesCell,usages:C.a.usagesCell,actions:C.a.actionsCell}};return l.a.createElement("div",{className:"feeds-list"},l.a.createElement(A.a,{styleMap:t,cols:[{id:"name",label:"Name",render:e=>{const t=d.a.at({screen:m.a.EDIT_FEED,id:e.id.toString()});return l.a.createElement("div",null,l.a.createElement(S.a,{to:t,className:C.a.name},e.name?e.name:"(no name)"),l.a.createElement("div",{className:C.a.metaList},l.a.createElement("span",{className:C.a.id},"ID: ",e.id),l.a.createElement("span",{className:C.a.layout},x.a.getName(e.options.layout))))}},{id:"sources",label:"Shows posts from",render:e=>l.a.createElement(I,{feed:e})},{id:"usages",label:"Instances",render:e=>l.a.createElement(B,{feed:e})},{id:"actions",label:"Actions",render:t=>l.a.createElement("div",{className:C.a.actionsList},l.a.createElement(N.a,{feed:t,toaster:e},l.a.createElement(T.a,{type:T.c.SECONDARY,tooltip:"Copy shortcode"},l.a.createElement(P.a,{icon:"editor-code"}))),l.a.createElement(T.a,{type:T.c.DANGER,tooltip:"Delete feed",onClick:()=>(e=>{confirm("Are you sure you want to delete this feed? This cannot be undone.")&&O.a.deleteFeed(e)})(t)},l.a.createElement(P.a,{icon:"trash"})))}],rows:O.a.list}))},I=({feed:e})=>{let t=[];const n=g.a.Options.getSources(e.options);return n.accounts.forEach(e=>{const n=j(e);n&&t.push(n)}),n.tagged.forEach(e=>{const n=j(e,!0);n&&t.push(n)}),n.hashtags.forEach(e=>t.push(l.a.createElement("div",null,"#",e.tag))),0===t.length&&t.push(l.a.createElement("div",{className:C.a.noSourcesMsg},l.a.createElement(P.a,{icon:"warning"}),l.a.createElement("span",null,"Feed has no sources"))),l.a.createElement("div",{className:C.a.sourcesList},t.map((e,t)=>e&&l.a.createElement(F,{key:t},e)))},B=({feed:e})=>l.a.createElement("div",{className:C.a.usagesList},e.usages.map((e,t)=>l.a.createElement("div",{key:t,className:C.a.usage},l.a.createElement("a",{className:C.a.usageLink,href:e.link,target:"_blank"},e.name),l.a.createElement("span",{className:C.a.usageType},"(",e.type,")"))));function j(e,t){return e?l.a.createElement(D,{account:e,isTagged:t}):null}const D=({account:e,isTagged:t})=>{const n=t?"tag":e.type===L.a.Type.BUSINESS?"businessman":"admin-users";return l.a.createElement("div",null,l.a.createElement(P.a,{icon:n}),e.username)},F=({children:e})=>l.a.createElement("div",{className:C.a.source},e);var R=n(92),z=n(247),W=n.n(z);const U=d.a.at({screen:m.a.NEW_FEED}),G=()=>{const[e,t]=l.a.useState(!1);return l.a.createElement(R.a,{className:W.a.root,isTransitioning:e},l.a.createElement("div",null,l.a.createElement("h1",null,"Start engaging with your audience"),l.a.createElement(R.a.Thin,null,l.a.createElement("p",null,"Connect with more people by embedding one or more Instagram feeds on this website."),l.a.createElement("p",null,"It only takes 3 steps! Let’s get going!"),l.a.createElement(R.a.StepList,null,l.a.createElement(R.a.Step,{num:1,isDone:L.b.list.length>0},l.a.createElement("span",null,"Connect your Instagram Account")),l.a.createElement(R.a.Step,{num:2},l.a.createElement("span",null,"Design your feed")),l.a.createElement(R.a.Step,{num:3},l.a.createElement("span",null,"Embed it on your site"))))),l.a.createElement("div",{className:W.a.callToAction},l.a.createElement(R.a.HeroButton,{onClick:()=>{t(!0),setTimeout(()=>d.a.history.push(U,{}),R.a.TRANSITION_DURATION)}},L.b.list.length>0?"Design your feed":"Connect your Instagram Account"),l.a.createElement(R.a.HelpMsg,{className:W.a.contactUs},"If you need help at any time,"," ",l.a.createElement("a",{href:b.a.resources.supportUrl,target:"_blank",style:{whiteSpace:"nowrap"}},"contact me here"),".",l.a.createElement("br",null),"- Mark Zahra, Spotlight")))};var H=Object(p.b)((function({navbar:e,toaster:t}){return l.a.createElement(w.a,{navbar:e},l.a.createElement("div",{className:E.a.root},O.a.hasFeeds()?l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:E.a.createNewBtn},l.a.createElement(S.a,{to:d.a.at({screen:m.a.NEW_FEED}),className:"button button-primary button-large"},"Create a new feed")),l.a.createElement(M,{toaster:t})):l.a.createElement(G,null)))})),K=n(375),q=n(384),Y=n(135),V=n(17),$=n(176),X=n(377),J=n.n(X),Q=function({url:e,children:t}){return l.a.createElement("a",{className:J.a.root,href:null!=e?e:b.a.resources.upgradeLocalUrl},null!=t?t:"Upgrade to PRO")},Z=Object(p.b)((function({right:e,chevron:t,children:n}){const o=l.a.createElement($.a.Item,null,m.b.getCurrent().title);return l.a.createElement($.a,null,l.a.createElement(l.a.Fragment,null,o,t&&l.a.createElement($.a.Chevron,null),n),e?l.a.createElement(e):!h.a.isPro&&l.a.createElement(Q,{url:b.a.resources.trialLocalUrl},"Start 14-day PRO trial"))})),ee=n(195),te=n(163),ne=n(126),oe=n(18),ae=n(232),ie=function(e,t,n,o){var a,i=arguments.length,r=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r},re=O.a.SavedFeed;class se{constructor(e,t){this.isLoaded=!1,this.isLoading=!1,this.editorTab="connect",this.isGoingFromNewToEdit=!1,this.isPromptingFeedName=!1,this.feed=new re,this.loader=e,this.toaster=t,this.isDoingOnboarding=b.a.config.doOnboarding}edit(e){this.isGoingFromNewToEdit||(this.editorTab="connect"),this.isGoingFromNewToEdit=!1,this.feed=null,this.feed=new re(e),this.isEditorDirty=!1}saveFeed(e){const t=null===e.id;return this.isDoingOnboarding=!1,new Promise((n,o)=>{O.a.saveFeed(e).then(e=>{this.toaster.addToast("feed/save/success",Object(r.a)(te.a,{message:"Feed saved."})),t&&(this.isGoingFromNewToEdit=!0,d.a.history.push(d.a.at({screen:m.a.EDIT_FEED,id:e.id.toString()}),{})),n(e)}).catch(e=>{const t=oe.a.getErrorReason(e);this.toaster.addToast("feed/save/error",Object(r.a)(ae.a,{message:"Failed to save the feed: "+t})),o(t)})})}saveEditor(e){if(!this.isEditorDirty)return;const t=null===this.feed.id;if(0!==this.feed.name.length||e)return this.isSavingFeed=!0,this.isDoingOnboarding=!1,O.a.saveFeed(this.feed).then(e=>{this.feed=new re(e),this.isSavingFeed=!1,this.isEditorDirty=!1,this.toaster.addToast("feed/saved",Object(r.a)(te.a,{message:"Feed saved."})),t&&(this.isGoingFromNewToEdit=!0,d.a.history.push(d.a.at({screen:m.a.EDIT_FEED,id:this.feed.id.toString()}),{}))});this.isPromptingFeedName=!0}cancelEditor(){this.isGoingFromNewToEdit||(this.feed=new re,this.isEditorDirty=!1,this.isGoingFromNewToEdit=!1)}closeEditor(){this.cancelEditor(),setTimeout(()=>{d.a.history.push(d.a.at({screen:m.a.FEED_LIST}),{})},10)}onEditorChange(e){e&&re.setFromObject(this.feed,e),this.isEditorDirty=!0}load(){this.isLoaded||this.isLoading||(this.isLoading=!0,this.loader.load(null,()=>{this.isLoaded=!0,this.isLoading=!1,ne.a.fetch()}))}}ie([i.n],se.prototype,"isLoaded",void 0),ie([i.n],se.prototype,"isLoading",void 0),ie([i.n],se.prototype,"feed",void 0),ie([i.n],se.prototype,"isSavingFeed",void 0),ie([i.n],se.prototype,"isEditorDirty",void 0),ie([i.n],se.prototype,"editorTab",void 0),ie([i.n],se.prototype,"isDoingOnboarding",void 0),ie([i.n],se.prototype,"isGoingFromNewToEdit",void 0),ie([i.n],se.prototype,"isPromptingFeedName",void 0),ie([i.f],se.prototype,"edit",null),ie([i.f],se.prototype,"saveEditor",null),ie([i.f],se.prototype,"cancelEditor",null),ie([i.f],se.prototype,"closeEditor",null),ie([i.f],se.prototype,"onEditorChange",null),ie([i.f],se.prototype,"load",null);var le=n(249),ce=n.n(le),ue=n(125),de=Object(p.b)((function(){const e=d.a.get("tab");return l.a.createElement(Z,{chevron:!0,right:me},b.a.settings.pages.map((t,n)=>l.a.createElement($.a.Link,{key:t.id,linkTo:d.a.with({tab:t.id}),isCurrent:e===t.id||!e&&0===n},t.title)))}));const me=Object(p.b)((function({}){const e=!V.b.isDirty;return l.a.createElement("div",{className:ce.a.buttons},l.a.createElement(T.a,{className:ce.a.cancelBtn,type:T.c.DANGER_PILL,size:T.b.LARGE,onClick:()=>V.b.restore(),disabled:e},"Cancel"),l.a.createElement(ue.a,{className:ce.a.saveBtn,onClick:()=>V.b.save(),isSaving:V.b.isSaving,tooltip:"Save the settings (Ctrl+S)",disabled:e}))}));var pe=n(207),he=n.n(pe),fe=n(3),ge=n(45);function be({}){const e=l.a.useRef(),t=l.a.useRef([]),[n,o]=l.a.useState(0),[a,i]=l.a.useState(!1),[,r]=l.a.useState(),c=()=>{const n=function(e){const t=.4*e.width,n=t/724,o=707*n,a=22*n,i=35*n;return{bounds:e,origin:{x:(e.width-t)/2+o-i/2,y:.5*e.height+a-i/2},scale:n,particleSize:i}}(e.current.getBoundingClientRect());t.current=t.current.map(e=>{const t=e.didSike?1:Math.max(1,1.3-1.3*Math.min(1,e.life/100));return Object.assign(Object.assign({},e),{pos:{x:e.pos.x+e.vel.x*t,y:e.pos.y+e.vel.y*t},life:e.life+1})}).filter(e=>e.life<500&&e.pos.x>=0&&e.pos.y>=0&&e.pos.x+e.size<=n.bounds.width&&e.pos.y+e.size<=n.bounds.height),t.current.length<30&&10*Math.random()>7&&t.current.push((e=>{const t=Math.max(1,4*Math.random()),n=2*Math.random()*Math.PI,o={x:Math.sin(n)*t,y:Math.cos(n)*t};return{pos:Object.assign({},e.origin),vel:o,size:e.particleSize,life:1}})(n)),r(fe.w)};Object(s.useEffect)(()=>{const e=setInterval(c,25);return()=>clearInterval(e)},[]);const u=function(e){let t=null;return _e.forEach(([n,o])=>{e>=n&&(t=o)}),t}(n);return l.a.createElement("div",{className:he.a.root},l.a.createElement("h1",{style:{textAlign:"center"}},"Let's play!"),l.a.createElement("p",null,"Click on as many Spotlight dots as you can. We challenge you to ",l.a.createElement("strong",null,"hit ",100),"!"),l.a.createElement("br",null),l.a.createElement("div",{ref:e,style:ve.container},n>0&&l.a.createElement("div",{className:he.a.score},l.a.createElement("strong",null,"Score"),": ",l.a.createElement("span",null,n)),u&&l.a.createElement("div",{className:he.a.message},l.a.createElement("span",{className:he.a.messageBubble},u)),t.current.map((e,a)=>l.a.createElement("div",{key:a,onMouseDown:()=>(e=>{const a=t.current[e].didSike?5:1;t.current.splice(e,1),o(n+a)})(a),onMouseEnter:()=>(e=>{const n=t.current[e];if(n.didSike)return;const o=1e3*Math.random();o>100&&o<150&&(n.vel={x:5*Math.sign(-n.vel.x),y:5*Math.sign(-n.vel.y)},n.life=100,n.didSike=!0)})(a),style:Object.assign(Object.assign({},ve.particle),{top:e.pos.y,left:e.pos.x,width:e.size,height:e.size,backgroundColor:e.didSike?"#ffaa00":"#"+(14492491+65536*e.life+256*e.life+e.life).toString(16)})},e.didSike&&l.a.createElement("span",{style:ve.sike},"x",5)))),l.a.createElement(ge.a,{title:"Get 20% off Spotlight PRO",isOpen:n>=100&&!a,onClose:()=>i(!0),allowShadeClose:!1},l.a.createElement(ge.a.Content,null,l.a.createElement("div",{style:{textAlign:"center"}},l.a.createElement("p",{style:{display:"inline-block",width:"70%",marginTop:10}},l.a.createElement("strong",{style:{opacity:.7}},"You were just clicking the dot in the logo, weren't you?",l.a.createElement("br",null),"It doesn't matter. You made it a 100!")),l.a.createElement("h1",null,"Get 20% off Spotlight PRO"),l.a.createElement("p",{style:{display:"inline-block",width:"60%"}},"Open up to new opportunities with hashtag feeds, filtering options, visual moderation,"," ","tagged feeds, new layouts, promotions and much more."),l.a.createElement("div",{style:{margin:"10px 0"}},l.a.createElement("a",{href:b.a.resources.upgradeUrl,target:"_blank",style:{width:"100%"}},l.a.createElement(T.a,{type:T.c.PRIMARY,size:T.b.HERO,style:{width:"80%"}},"Get 20% off Spotlight PRO")))))))}const _e=[[10,l.a.createElement("span",null,"You're getting the hang of this!")],[50,l.a.createElement("span",null,"Not bad. You're half way to a 100!")],[120,l.a.createElement("span",null,"Just post a 5-star review already. You're clearly in love with us!")],[150,l.a.createElement("span",null,"Hey, we'd be curious if there were more messages too. But sadly, this is the last one. Good-bye!")],[500,l.a.createElement("span",null,"Error: User has become obsessed with clicking games.")],[1e3,l.a.createElement("span",null,"While the term Easter egg has been used to mean a hidden object for some time, in reference to an Easter egg hunt, it has come to be more commonly used to mean a message, image, or feature hidden in a video game, film, or other, usually electronic, medium. The term used in this manner was coined around 1979 by Steve Wright, the then Director of Software Development in the Atari Consumer Division, to describe a hidden message in the Atari video game Adventure. [Wikipedia]")]],ve={container:{flex:1,position:"relative",backgroundColor:"#fff",backgroundImage:`url('${h.a.image("spotlight-800w.png")}')`,backgroundPosition:"center 50%",backgroundSize:"40%",backgroundRepeat:"no-repeat",borderRadius:8,marginTop:15,userSelect:"none"},particle:{position:"absolute",backgroundColor:"#dd234b",borderRadius:999,cursor:"pointer",color:"#000",userSelect:"none"},sike:{position:"relative",left:"calc(100% + 5px)",fontSize:"16px",userSelect:"none"}};var ye=n(144),Ee=n(208),we=n.n(Ee),Oe=n(11),Se=Object(p.b)((function({}){return l.a.createElement("div",{className:we.a.root})}));Object(p.b)((function({className:e,label:t,children:n}){const o="settings-field-"+Object(fe.w)();return l.a.createElement("div",{className:Object(Oe.b)(we.a.fieldContainer,e)},l.a.createElement("div",{className:we.a.fieldLabel},l.a.createElement("label",{htmlFor:o},t)),l.a.createElement("div",{className:we.a.fieldControl},n(o)))}));var ke=n(109),Ce=n(200),Pe=n(95),Te=n(380);function Le({feed:e,store:t,onSave:n,onCancel:o}){const a=l.a.useCallback(e=>new Promise(o=>{const a=null===e.id;t.saveFeed(e).then(()=>{n&&n(e),a||o()})}),[t]),i=l.a.useCallback(e=>t.editorTab=e,[t]),r={tabs:Pe.a.tabs.slice(),showNameField:!0,showDoneBtn:!0,showCancelBtn:!0,doneBtnText:"Save",cancelBtnText:"Cancel"};return r.tabs.push({id:"embed",label:"Embed",sidebar:e=>l.a.createElement(Te.a,Object.assign({},e,{store:t}))}),l.a.createElement(Ce.a,{feed:e,firstTab:t.editorTab,requireName:!0,confirmOnCancel:!0,useCtrlS:!0,onSave:a,onCancel:o,onChangeTab:i,config:r})}var Ne=O.a.SavedFeed;function Ae({store:e}){return e.edit(new Ne),l.a.createElement(Le,{feed:e.feed,store:e})}var xe=n(23);function Me({store:e}){const t=Be(),n=O.a.getById(t);return t&&n?(e.feed.id!==t&&e.edit(n),Object(s.useEffect)(()=>()=>e.cancelEditor(),[]),l.a.createElement(Le,{store:e,feed:e.feed})):l.a.createElement(Ie,null)}const Ie=()=>l.a.createElement("div",null,l.a.createElement(xe.a,{type:xe.b.ERROR,showIcon:!0},"Feed does not exist.",l.a.createElement(S.a,{to:d.a.with({screen:"feeds"})},"Go back"))),Be=()=>{let e=d.a.get("id");return e?(e=Array.isArray(e)?e[0]:e,parseInt(e)):null};var je=n(196);const De={factories:Object(o.c)({"admin/root/component":e=>Object(r.a)(v,{store:e.get("admin/store"),toaster:e.get("admin/toaster/component"),titleTemplate:e.get("admin/title_template")}),"admin/title_template":()=>document.title.replace("Spotlight","%s ‹ Spotlight"),"admin/store":e=>new se(e.get("admin/loading/loader"),e.get("admin/toaster/store")),"admin/loading/loader":e=>new ee.a(e.get("admin/loading/functions"),750),"admin/loading/functions":e=>{const t=e.get("admin/toaster/store"),n=e=>n=>{t.addToast("load_error",Object(r.a)(ae.a,{message:n}),0),e()};return[(e,t)=>O.a.loadFeeds().then(t).catch(n(t)),(e,t)=>L.b.loadAccounts().then(t).catch(n(t)),(e,t)=>V.b.load().then(t).catch(n(t))]},"admin/navbar/component":()=>Z,"admin/settings/navbar/component":()=>de,"admin/screens":e=>[e.get("admin/feeds/screen"),e.get("admin/editor/add_new/screen"),e.get("admin/editor/edit/screen"),e.get("admin/promotions/screen"),e.get("admin/settings/screen")],"admin/feeds/screen":e=>({id:"feeds",title:"Feeds",position:0,component:Object(r.a)(H,{navbar:e.get("admin/navbar/component"),toaster:e.get("admin/toaster/store")})}),"admin/editor/add_new/screen":e=>({id:"new",title:"Add New",position:10,component:Object(r.a)(Ae,{store:e.get("admin/store")})}),"admin/editor/edit/screen":e=>({id:"edit",title:"Edit",isHidden:()=>!0,component:Object(r.a)(Me,{store:e.get("admin/store")})}),"admin/promotions/screen":e=>({id:"promotions",title:"Promotions",position:40,component:Object(r.a)(je.a,{isFakePro:!0})}),"admin/settings/screen":e=>({id:"settings",title:"Settings",position:50,component:e.get("admin/settings/component")}),"admin/settings/component":e=>Object(r.a)(Y.b,{navbar:e.get("admin/settings/navbar/component")}),"admin/settings/tabs/accounts":()=>({id:"accounts",label:"Manage Accounts",component:ye.a}),"admin/settings/tabs/crons":()=>({id:"crons",label:"Crons",component:Object(r.b)(ke.a,{page:()=>b.a.settings.pages.find(e=>"crons"===e.id)})}),"admin/settings/tabs/advanced":e=>({id:"advanced",label:"Advanced",component:e.get("admin/settings/show_game")?e.get("admin/settings/game/component"):e.get("admin/settings/advanced/component")}),"admin/settings/show_game":()=>!0,"admin/settings/advanced/component":e=>Se,"admin/settings/game/component":()=>be,"admin/toaster/store":e=>new K.a(e.get("admin/toaster/ttl")),"admin/toaster/ttl":()=>5e3,"admin/toaster/component":e=>Object(r.a)(q.a,{store:e.get("admin/toaster/store")})}),extensions:Object(o.c)({"root/children":(e,t)=>[...t,e.get("admin/root/component")],"settings/tabs":(e,t)=>[e.get("admin/settings/tabs/accounts"),e.get("admin/settings/tabs/advanced"),...t]}),run:e=>{m.b.register(e.get("admin/screens"));const t=e.get("admin/toaster/store");document.addEventListener(V.a,()=>{t.addToast("sli/settings/saved",Object(r.a)(te.a,{message:"Settings saved."}))});{const e=document.getElementById("toplevel_page_spotlight-instagram").querySelector("ul.wp-submenu").querySelectorAll("li:not(.wp-submenu-head)"),t=Array.from(e);m.b.getList().forEach((e,n)=>{const o=0===n,a=e.state||{},r=d.a.fullUrl(Object.assign({screen:e.id},a)),s=d.a.at(Object.assign({screen:e.id},a)),l=t.find(e=>e.querySelector("a").href===r);l&&(l.addEventListener("click",e=>{d.a.history.push(s,{}),e.preventDefault(),e.stopPropagation()}),Object(i.g)(()=>{var t;const n=null!==(t=d.a.get("screen"))&&void 0!==t?t:"",a=e.id===n||!n&&o;l.classList.toggle("current",a)}))})}}},Fe=document.getElementById(b.a.config.rootId);if(Fe){const e=[a.a,De].filter(e=>null!==e);Fe.classList.add("wp-core-ui-override"),new o.a("admin",Fe,e).run()}},64:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var o=n(0),a=n.n(o),i=n(41),r=n.n(i),s=n(148);function l({children:e,pathStyle:t}){let{path:n,left:o,right:i,center:s}=e;return n=null!=n?n:[],o=null!=o?o:[],i=null!=i?i:[],s=null!=s?s:[],a.a.createElement("div",{className:r.a.root},a.a.createElement("div",{className:r.a.leftList},a.a.createElement("div",{className:r.a.pathList},n.map((e,n)=>a.a.createElement(m,{key:n,style:t},a.a.createElement("div",{className:r.a.item},e)))),a.a.createElement("div",{className:r.a.leftList},a.a.createElement(u,null,o))),a.a.createElement("div",{className:r.a.centerList},a.a.createElement(u,null,s)),a.a.createElement("div",{className:r.a.rightList},a.a.createElement(u,null,i)))}function c(){return a.a.createElement(s.a,null)}function u({children:e}){const t=Array.isArray(e)?e:[e];return a.a.createElement(a.a.Fragment,null,t.map((e,t)=>a.a.createElement(d,{key:t},e)))}function d({children:e}){return a.a.createElement("div",{className:r.a.item},e)}function m({children:e,style:t}){return a.a.createElement("div",{className:r.a.pathSegment},e,a.a.createElement(p,{style:t}))}function p({style:e}){if("none"===e)return null;const t="chevron"===e?"M0 0 L100 50 L0 100":"M50 0 L50 100";return a.a.createElement("div",{className:r.a.separator},a.a.createElement("svg",{viewBox:"0 0 100 100",width:"100%",height:"100%",preserveAspectRatio:"none"},a.a.createElement("path",{d:t,fill:"none",stroke:"currentcolor",strokeLinejoin:"bevel"})))}},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o=n(34),a=n.n(o),i=n(1),r=n(2),s=n(27),l=n(32),c=n(4),u=n(3),d=n(13),m=n(18),p=n(38),h=n(8),f=n(22),g=n(12),b=function(e,t,n,o){var a,i=arguments.length,r=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r};class _{constructor(e=new _.Options,t=r.a.Mode.DESKTOP){this.media=[],this.canLoadMore=!1,this.stories=[],this.numLoadedMore=0,this.totalMedia=0,this.mode=r.a.Mode.DESKTOP,this.isLoaded=!1,this.isLoading=!1,this.isLoadingMore=!1,this.numMediaToShow=0,this.numMediaPerPage=0,this.cancelFetch=()=>{},this.options=new _.Options(e),this.localMedia=[],this.mode=t,this.mediaCounter=this._numMediaPerPage,this.reload=Object(p.a)(()=>this.load(),300),Object(i.o)(()=>this.mode,()=>{0===this.numLoadedMore&&(this.mediaCounter=this._numMediaPerPage,this.localMedia.length<this.numMediaToShow&&this.loadMedia(this.localMedia.length,this.numMediaToShow-this.localMedia.length))}),Object(i.o)(()=>this.getReloadOptions(),()=>this.reload()),Object(i.o)(()=>({num:this._numMediaPerPage,mode:this.mode}),({num:e})=>{this.localMedia.length<e&&e<=this.totalMedia?this.reload():this.mediaCounter=Math.max(1,e)}),Object(i.o)(()=>this._media,e=>this.media=e),Object(i.o)(()=>this._numMediaToShow,e=>this.numMediaToShow=e),Object(i.o)(()=>this._numMediaPerPage,e=>this.numMediaPerPage=e),Object(i.o)(()=>this._canLoadMore,e=>this.canLoadMore=e)}get _media(){return this.localMedia.slice(0,this.numMediaToShow)}get _numMediaToShow(){return Math.min(this.mediaCounter,this.totalMedia)}get _numMediaPerPage(){return Math.max(1,_.ComputedOptions.normalizeMultiInt(this.options.numPosts,this.mode,1))}get _canLoadMore(){return this.localMedia.length>this.mediaCounter||this.localMedia.length<this.totalMedia}loadMore(){const e=this.numMediaToShow+this._numMediaPerPage-this.localMedia.length;return this.isLoadingMore=!0,e>0?this.loadMedia(this.localMedia.length,this._numMediaPerPage).then(()=>{this.mediaCounter+=this._numMediaPerPage,this.numLoadedMore++,this.isLoadingMore=!1}):new Promise(e=>{this.numLoadedMore++,this.mediaCounter+=this._numMediaPerPage,this.isLoadingMore=!1,e()})}load(){return this.numLoadedMore=0,this.loadMedia(0,this._numMediaPerPage,!0).then(()=>(this.isLoaded=!0,this.mediaCounter=this._numMediaPerPage))}loadMedia(e,t,n){return this.cancelFetch(),_.Options.hasSources(this.options)?(this.isLoading=!0,new Promise((o,i)=>{m.a.getFeedMedia(this.options,e,t,e=>this.cancelFetch=e).then(e=>{var t;if("object"!=typeof e||"object"!=typeof e.data||!Array.isArray(e.data.media))throw{message:"The media response is malformed or corrupt",response:e};n&&(this.localMedia=[]),this.localMedia.push(...e.data.media),this.stories=null!==(t=e.data.stories)&&void 0!==t?t:[],this.totalMedia=e.data.total,o&&o()}).catch(e=>{var t;if(a.a.isCancel(e))return null;const n=new _.Events.FetchFailEvent(_.Events.FETCH_FAIL,{detail:{feed:this,message:null!==(t=e.response?e.response.data.message:void 0)&&void 0!==t?t:e.message,response:e.response}});return document.dispatchEvent(n),i&&i(e),e}).finally(()=>this.isLoading=!1)})):new Promise(e=>{this.localMedia=[],this.totalMedia=0,e&&e()})}getReloadOptions(){return JSON.stringify({accounts:this.options.accounts,hashtags:this.options.hashtags,tagged:this.options.tagged,postOrder:this.options.postOrder,mediaType:this.options.mediaType,moderation:this.options.moderation,moderationMode:this.options.moderationMode,hashtagBlacklist:this.options.hashtagBlacklist,hashtagWhitelist:this.options.hashtagWhitelist,captionBlacklist:this.options.captionBlacklist,captionWhitelist:this.options.captionWhitelist,hashtagBlacklistSettings:this.options.hashtagBlacklistSettings,hashtagWhitelistSettings:this.options.hashtagWhitelistSettings,captionBlacklistSettings:this.options.captionBlacklistSettings,captionWhitelistSettings:this.options.captionWhitelistSettings})}}b([i.n],_.prototype,"media",void 0),b([i.n],_.prototype,"canLoadMore",void 0),b([i.n],_.prototype,"stories",void 0),b([i.n],_.prototype,"numLoadedMore",void 0),b([i.n],_.prototype,"options",void 0),b([i.n],_.prototype,"totalMedia",void 0),b([i.n],_.prototype,"mode",void 0),b([i.n],_.prototype,"isLoaded",void 0),b([i.n],_.prototype,"isLoading",void 0),b([i.n],_.prototype,"isLoadingMore",void 0),b([i.f],_.prototype,"reload",void 0),b([i.n],_.prototype,"localMedia",void 0),b([i.n],_.prototype,"numMediaToShow",void 0),b([i.n],_.prototype,"numMediaPerPage",void 0),b([i.n],_.prototype,"mediaCounter",void 0),b([i.h],_.prototype,"_media",null),b([i.h],_.prototype,"_numMediaToShow",null),b([i.h],_.prototype,"_numMediaPerPage",null),b([i.h],_.prototype,"_canLoadMore",null),b([i.f],_.prototype,"loadMore",null),b([i.f],_.prototype,"load",null),b([i.f],_.prototype,"loadMedia",null),function(e){let t,n,o,a,m,p,_,v,y;!function(e){e.FETCH_FAIL="sli/feed/fetch_fail";class t extends CustomEvent{constructor(e,t){super(e,t)}}e.FetchFailEvent=t}(t=e.Events||(e.Events={}));class E{constructor(e={}){E.setFromObject(this,e)}static setFromObject(t,n={}){var o,a,i,l,u,d,m,p,h,g,b,_,v,y,E;return t.accounts=n.accounts?n.accounts.slice():e.DefaultOptions.accounts,t.hashtags=n.hashtags?n.hashtags.slice():e.DefaultOptions.hashtags,t.tagged=n.tagged?n.tagged.slice():e.DefaultOptions.tagged,t.layout=s.a.getById(n.layout).id,t.numColumns=r.a.normalize(n.numColumns,e.DefaultOptions.numColumns),t.highlightFreq=r.a.normalize(n.highlightFreq,e.DefaultOptions.highlightFreq),t.mediaType=n.mediaType||e.DefaultOptions.mediaType,t.postOrder=n.postOrder||e.DefaultOptions.postOrder,t.numPosts=r.a.normalize(n.numPosts,e.DefaultOptions.numPosts),t.linkBehavior=r.a.normalize(n.linkBehavior,e.DefaultOptions.linkBehavior),t.feedWidth=r.a.normalize(n.feedWidth,e.DefaultOptions.feedWidth),t.feedHeight=r.a.normalize(n.feedHeight,e.DefaultOptions.feedHeight),t.feedPadding=r.a.normalize(n.feedPadding,e.DefaultOptions.feedPadding),t.imgPadding=r.a.normalize(n.imgPadding,e.DefaultOptions.imgPadding),t.textSize=r.a.normalize(n.textSize,e.DefaultOptions.textSize),t.bgColor=n.bgColor||e.DefaultOptions.bgColor,t.hoverInfo=n.hoverInfo?n.hoverInfo.slice():e.DefaultOptions.hoverInfo,t.textColorHover=n.textColorHover||e.DefaultOptions.textColorHover,t.bgColorHover=n.bgColorHover||e.DefaultOptions.bgColorHover,t.showHeader=r.a.normalize(n.showHeader,e.DefaultOptions.showHeader),t.headerInfo=r.a.normalize(n.headerInfo,e.DefaultOptions.headerInfo),t.headerAccount=null!==(o=n.headerAccount)&&void 0!==o?o:e.DefaultOptions.headerAccount,t.headerAccount=null===t.headerAccount||void 0===c.b.getById(t.headerAccount)?c.b.list.length>0?c.b.list[0].id:null:t.headerAccount,t.headerStyle=r.a.normalize(n.headerStyle,e.DefaultOptions.headerStyle),t.headerTextSize=r.a.normalize(n.headerTextSize,e.DefaultOptions.headerTextSize),t.headerPhotoSize=r.a.normalize(n.headerPhotoSize,e.DefaultOptions.headerPhotoSize),t.headerTextColor=n.headerTextColor||e.DefaultOptions.headerTextColor,t.headerBgColor=n.headerBgColor||e.DefaultOptions.bgColor,t.headerPadding=r.a.normalize(n.headerPadding,e.DefaultOptions.headerPadding),t.customProfilePic=null!==(a=n.customProfilePic)&&void 0!==a?a:e.DefaultOptions.customProfilePic,t.customBioText=n.customBioText||e.DefaultOptions.customBioText,t.includeStories=null!==(i=n.includeStories)&&void 0!==i?i:e.DefaultOptions.includeStories,t.storiesInterval=n.storiesInterval||e.DefaultOptions.storiesInterval,t.showCaptions=r.a.normalize(n.showCaptions,e.DefaultOptions.showCaptions),t.captionMaxLength=r.a.normalize(n.captionMaxLength,e.DefaultOptions.captionMaxLength),t.captionRemoveDots=null!==(l=n.captionRemoveDots)&&void 0!==l?l:e.DefaultOptions.captionRemoveDots,t.captionSize=r.a.normalize(n.captionSize,e.DefaultOptions.captionSize),t.captionColor=n.captionColor||e.DefaultOptions.captionColor,t.showLikes=r.a.normalize(n.showLikes,e.DefaultOptions.showLikes),t.showComments=r.a.normalize(n.showComments,e.DefaultOptions.showCaptions),t.lcIconSize=r.a.normalize(n.lcIconSize,e.DefaultOptions.lcIconSize),t.likesIconColor=null!==(u=n.likesIconColor)&&void 0!==u?u:e.DefaultOptions.likesIconColor,t.commentsIconColor=n.commentsIconColor||e.DefaultOptions.commentsIconColor,t.lightboxShowSidebar=null!==(d=n.lightboxShowSidebar)&&void 0!==d?d:e.DefaultOptions.lightboxShowSidebar,t.numLightboxComments=n.numLightboxComments||e.DefaultOptions.numLightboxComments,t.showLoadMoreBtn=r.a.normalize(n.showLoadMoreBtn,e.DefaultOptions.showLoadMoreBtn),t.loadMoreBtnTextColor=n.loadMoreBtnTextColor||e.DefaultOptions.loadMoreBtnTextColor,t.loadMoreBtnBgColor=n.loadMoreBtnBgColor||e.DefaultOptions.loadMoreBtnBgColor,t.loadMoreBtnText=n.loadMoreBtnText||e.DefaultOptions.loadMoreBtnText,t.autoload=null!==(m=n.autoload)&&void 0!==m?m:e.DefaultOptions.autoload,t.showFollowBtn=r.a.normalize(n.showFollowBtn,e.DefaultOptions.showFollowBtn),t.followBtnText=null!==(p=n.followBtnText)&&void 0!==p?p:e.DefaultOptions.followBtnText,t.followBtnTextColor=n.followBtnTextColor||e.DefaultOptions.followBtnTextColor,t.followBtnBgColor=n.followBtnBgColor||e.DefaultOptions.followBtnBgColor,t.followBtnLocation=r.a.normalize(n.followBtnLocation,e.DefaultOptions.followBtnLocation),t.hashtagWhitelist=n.hashtagWhitelist||e.DefaultOptions.hashtagWhitelist,t.hashtagBlacklist=n.hashtagBlacklist||e.DefaultOptions.hashtagBlacklist,t.captionWhitelist=n.captionWhitelist||e.DefaultOptions.captionWhitelist,t.captionBlacklist=n.captionBlacklist||e.DefaultOptions.captionBlacklist,t.hashtagWhitelistSettings=null!==(h=n.hashtagWhitelistSettings)&&void 0!==h?h:e.DefaultOptions.hashtagWhitelistSettings,t.hashtagBlacklistSettings=null!==(g=n.hashtagBlacklistSettings)&&void 0!==g?g:e.DefaultOptions.hashtagBlacklistSettings,t.captionWhitelistSettings=null!==(b=n.captionWhitelistSettings)&&void 0!==b?b:e.DefaultOptions.captionWhitelistSettings,t.captionBlacklistSettings=null!==(_=n.captionBlacklistSettings)&&void 0!==_?_:e.DefaultOptions.captionBlacklistSettings,t.moderation=n.moderation||e.DefaultOptions.moderation,t.moderationMode=n.moderationMode||e.DefaultOptions.moderationMode,t.promotionEnabled=null!==(v=n.promotionEnabled)&&void 0!==v?v:e.DefaultOptions.promotionEnabled,t.autoPromotionsEnabled=null!==(y=n.autoPromotionsEnabled)&&void 0!==y?y:e.DefaultOptions.autoPromotionsEnabled,t.globalPromotionsEnabled=null!==(E=n.globalPromotionsEnabled)&&void 0!==E?E:e.DefaultOptions.globalPromotionsEnabled,Array.isArray(n.promotions)?t.promotions=f.a.fromArray(n.promotions):n.promotions&&n.promotions instanceof Map?t.promotions=f.a.fromMap(n.promotions):"object"==typeof n.promotions?t.promotions=n.promotions:t.promotions=e.DefaultOptions.promotions,t}static getAllAccounts(e){const t=c.b.idsToAccounts(e.accounts),n=c.b.idsToAccounts(e.tagged);return{all:t.concat(n),accounts:t,tagged:n}}static getSources(e){return{accounts:c.b.idsToAccounts(e.accounts),tagged:c.b.idsToAccounts(e.tagged),hashtags:c.b.getBusinessAccounts().length>0?e.hashtags.filter(e=>e.tag.length>0):[]}}static hasSources(t){const n=e.Options.getSources(t),o=n.accounts.length>0||n.tagged.length>0,a=n.hashtags.length>0;return o||a}static isLimitingPosts(e){return e.moderation.length>0||e.hashtagBlacklist.length>0||e.hashtagWhitelist.length>0||e.captionBlacklist.length>0||e.captionWhitelist.length>0}}b([i.n],E.prototype,"accounts",void 0),b([i.n],E.prototype,"hashtags",void 0),b([i.n],E.prototype,"tagged",void 0),b([i.n],E.prototype,"layout",void 0),b([i.n],E.prototype,"numColumns",void 0),b([i.n],E.prototype,"highlightFreq",void 0),b([i.n],E.prototype,"mediaType",void 0),b([i.n],E.prototype,"postOrder",void 0),b([i.n],E.prototype,"numPosts",void 0),b([i.n],E.prototype,"linkBehavior",void 0),b([i.n],E.prototype,"feedWidth",void 0),b([i.n],E.prototype,"feedHeight",void 0),b([i.n],E.prototype,"feedPadding",void 0),b([i.n],E.prototype,"imgPadding",void 0),b([i.n],E.prototype,"textSize",void 0),b([i.n],E.prototype,"bgColor",void 0),b([i.n],E.prototype,"textColorHover",void 0),b([i.n],E.prototype,"bgColorHover",void 0),b([i.n],E.prototype,"hoverInfo",void 0),b([i.n],E.prototype,"showHeader",void 0),b([i.n],E.prototype,"headerInfo",void 0),b([i.n],E.prototype,"headerAccount",void 0),b([i.n],E.prototype,"headerStyle",void 0),b([i.n],E.prototype,"headerTextSize",void 0),b([i.n],E.prototype,"headerPhotoSize",void 0),b([i.n],E.prototype,"headerTextColor",void 0),b([i.n],E.prototype,"headerBgColor",void 0),b([i.n],E.prototype,"headerPadding",void 0),b([i.n],E.prototype,"customBioText",void 0),b([i.n],E.prototype,"customProfilePic",void 0),b([i.n],E.prototype,"includeStories",void 0),b([i.n],E.prototype,"storiesInterval",void 0),b([i.n],E.prototype,"showCaptions",void 0),b([i.n],E.prototype,"captionMaxLength",void 0),b([i.n],E.prototype,"captionRemoveDots",void 0),b([i.n],E.prototype,"captionSize",void 0),b([i.n],E.prototype,"captionColor",void 0),b([i.n],E.prototype,"showLikes",void 0),b([i.n],E.prototype,"showComments",void 0),b([i.n],E.prototype,"lcIconSize",void 0),b([i.n],E.prototype,"likesIconColor",void 0),b([i.n],E.prototype,"commentsIconColor",void 0),b([i.n],E.prototype,"lightboxShowSidebar",void 0),b([i.n],E.prototype,"numLightboxComments",void 0),b([i.n],E.prototype,"showLoadMoreBtn",void 0),b([i.n],E.prototype,"loadMoreBtnText",void 0),b([i.n],E.prototype,"loadMoreBtnTextColor",void 0),b([i.n],E.prototype,"loadMoreBtnBgColor",void 0),b([i.n],E.prototype,"autoload",void 0),b([i.n],E.prototype,"showFollowBtn",void 0),b([i.n],E.prototype,"followBtnText",void 0),b([i.n],E.prototype,"followBtnTextColor",void 0),b([i.n],E.prototype,"followBtnBgColor",void 0),b([i.n],E.prototype,"followBtnLocation",void 0),b([i.n],E.prototype,"hashtagWhitelist",void 0),b([i.n],E.prototype,"hashtagBlacklist",void 0),b([i.n],E.prototype,"captionWhitelist",void 0),b([i.n],E.prototype,"captionBlacklist",void 0),b([i.n],E.prototype,"hashtagWhitelistSettings",void 0),b([i.n],E.prototype,"hashtagBlacklistSettings",void 0),b([i.n],E.prototype,"captionWhitelistSettings",void 0),b([i.n],E.prototype,"captionBlacklistSettings",void 0),b([i.n],E.prototype,"moderation",void 0),b([i.n],E.prototype,"moderationMode",void 0),e.Options=E;class w{constructor(e){Object.getOwnPropertyNames(e).map(t=>{this[t]=e[t]})}getCaption(e){const t=e.caption?e.caption:"";return this.captionMaxLength&&t.length?Object(u.s)(Object(u.v)(t,this.captionMaxLength)):t}static compute(t,n=r.a.Mode.DESKTOP){const o=new w({accounts:c.b.filterExisting(t.accounts),tagged:c.b.filterExisting(t.tagged),hashtags:t.hashtags.filter(e=>e.tag.length>0),layout:s.a.getById(t.layout),highlightFreq:r.a.get(t.highlightFreq,n,!0),linkBehavior:r.a.get(t.linkBehavior,n,!0),bgColor:Object(d.a)(t.bgColor),textColorHover:Object(d.a)(t.textColorHover),bgColorHover:Object(d.a)(t.bgColorHover),hoverInfo:t.hoverInfo,showHeader:r.a.get(t.showHeader,n,!0),headerInfo:r.a.get(t.headerInfo,n,!0),headerStyle:r.a.get(t.headerStyle,n,!0),headerTextColor:Object(d.a)(t.headerTextColor),headerBgColor:Object(d.a)(t.headerBgColor),headerPadding:r.a.get(t.headerPadding,n,!0),includeStories:t.includeStories,storiesInterval:t.storiesInterval,showCaptions:r.a.get(t.showCaptions,n,!0),captionMaxLength:r.a.get(t.captionMaxLength,n,!0),captionRemoveDots:t.captionRemoveDots,captionColor:Object(d.a)(t.captionColor),showLikes:r.a.get(t.showLikes,n,!0),showComments:r.a.get(t.showComments,n,!0),likesIconColor:Object(d.a)(t.likesIconColor),commentsIconColor:Object(d.a)(t.commentsIconColor),lightboxShowSidebar:t.lightboxShowSidebar,numLightboxComments:t.numLightboxComments,showLoadMoreBtn:r.a.get(t.showLoadMoreBtn,n,!0),loadMoreBtnTextColor:Object(d.a)(t.loadMoreBtnTextColor),loadMoreBtnBgColor:Object(d.a)(t.loadMoreBtnBgColor),loadMoreBtnText:t.loadMoreBtnText,showFollowBtn:r.a.get(t.showFollowBtn,n,!0),autoload:t.autoload,followBtnLocation:r.a.get(t.followBtnLocation,n,!0),followBtnTextColor:Object(d.a)(t.followBtnTextColor),followBtnBgColor:Object(d.a)(t.followBtnBgColor),followBtnText:t.followBtnText,account:null,showBio:!1,bioText:null,profilePhotoUrl:c.b.DEFAULT_PROFILE_PIC,feedWidth:"",feedHeight:"",feedPadding:"",imgPadding:"",textSize:"",headerTextSize:"",headerPhotoSize:"",captionSize:"",lcIconSize:"",showLcIcons:!1});if(o.numColumns=this.getNumCols(t,n),o.numPosts=this.getNumPosts(t,n),o.allAccounts=o.accounts.concat(o.tagged.filter(e=>!o.accounts.includes(e))),o.allAccounts.length>0&&(o.account=t.headerAccount&&o.allAccounts.includes(t.headerAccount)?c.b.getById(t.headerAccount):c.b.getById(o.allAccounts[0])),o.showHeader=o.showHeader&&null!==o.account,o.showHeader&&(o.profilePhotoUrl=t.customProfilePic.length?t.customProfilePic:c.b.getProfilePicUrl(o.account)),o.showFollowBtn=o.showFollowBtn&&null!==o.account,o.showBio=o.headerInfo.some(t=>t===e.HeaderInfo.BIO),o.showBio){const e=t.customBioText.trim().length>0?t.customBioText:null!==o.account?c.b.getBioText(o.account):"";o.bioText=Object(u.s)(e),o.showBio=o.bioText.length>0}return o.feedWidth=this.normalizeCssSize(t.feedWidth,n,"auto"),o.feedHeight=this.normalizeCssSize(t.feedHeight,n,"auto"),o.feedPadding=this.normalizeCssSize(t.feedPadding,n,"0"),o.imgPadding=this.normalizeCssSize(t.imgPadding,n,"0"),o.textSize=this.normalizeCssSize(t.textSize,n,"inherit",!0),o.headerTextSize=this.normalizeCssSize(t.headerTextSize,n,"inherit"),o.headerPhotoSize=this.normalizeCssSize(t.headerPhotoSize,n,"50px"),o.captionSize=this.normalizeCssSize(t.captionSize,n,"inherit"),o.lcIconSize=this.normalizeCssSize(t.lcIconSize,n,"inherit"),o.buttonPadding=Math.max(10,r.a.get(t.imgPadding,n))+"px",o.showLcIcons=o.showLikes||o.showComments,o}static getNumCols(e,t){return Math.max(1,this.normalizeMultiInt(e.numColumns,t,1))}static getNumPosts(e,t){return Math.max(1,this.normalizeMultiInt(e.numPosts,t,1))}static normalizeMultiInt(e,t,n=0){const o=parseInt(r.a.get(e,t)+"");return isNaN(o)?t===r.a.Mode.DESKTOP?n:this.normalizeMultiInt(e,r.a.Mode.DESKTOP,n):o}static normalizeCssSize(e,t,n=null,o=!1){const a=r.a.get(e,t,o);return a?a+"px":n}}function O(e,t){if(g.a.isPro)return Object(u.l)(h.a.isValid,[()=>S(e,t),()=>t.globalPromotionsEnabled&&h.a.getGlobalPromo(e),()=>t.autoPromotionsEnabled&&h.a.getAutoPromo(e)])}function S(e,t){return e?h.a.getPromoFromDictionary(e,t.promotions):void 0}e.ComputedOptions=w,e.HashtagSorting=Object(l.c)({recent:"Most recent",popular:"Most popular"}),function(e){e.ALL="all",e.PHOTOS="photos",e.VIDEOS="videos"}(n=e.MediaType||(e.MediaType={})),function(e){e.NOTHING="nothing",e.SELF="self",e.NEW_TAB="new_tab",e.LIGHTBOX="lightbox"}(o=e.LinkBehavior||(e.LinkBehavior={})),function(e){e.DATE_ASC="date_asc",e.DATE_DESC="date_desc",e.POPULARITY_ASC="popularity_asc",e.POPULARITY_DESC="popularity_desc",e.RANDOM="random"}(a=e.PostOrder||(e.PostOrder={})),function(e){e.USERNAME="username",e.DATE="date",e.CAPTION="caption",e.LIKES_COMMENTS="likes_comments",e.INSTA_LINK="insta_link"}(m=e.HoverInfo||(e.HoverInfo={})),function(e){e.NORMAL="normal",e.BOXED="boxed",e.CENTERED="centered"}(p=e.HeaderStyle||(e.HeaderStyle={})),function(e){e.BIO="bio",e.PROFILE_PIC="profile_pic",e.FOLLOWERS="followers",e.MEDIA_COUNT="media_count"}(_=e.HeaderInfo||(e.HeaderInfo={})),function(e){e.HEADER="header",e.BOTTOM="bottom",e.BOTH="both"}(v=e.FollowBtnLocation||(e.FollowBtnLocation={})),function(e){e.WHITELIST="whitelist",e.BLACKLIST="blacklist"}(y=e.ModerationMode||(e.ModerationMode={})),e.DefaultOptions={accounts:[],hashtags:[],tagged:[],layout:null,numColumns:{desktop:3},highlightFreq:{desktop:7},mediaType:n.ALL,postOrder:a.DATE_DESC,numPosts:{desktop:9},linkBehavior:{desktop:o.LIGHTBOX,phone:o.NEW_TAB},feedWidth:{desktop:""},feedHeight:{desktop:""},feedPadding:{desktop:20,tablet:14,phone:10},imgPadding:{desktop:14,tablet:10,phone:6},textSize:{all:""},bgColor:{r:255,g:255,b:255,a:1},hoverInfo:[m.LIKES_COMMENTS,m.INSTA_LINK],textColorHover:{r:255,g:255,b:255,a:1},bgColorHover:{r:0,g:0,b:0,a:.5},showHeader:{desktop:!0},headerInfo:{desktop:[_.PROFILE_PIC,_.BIO]},headerAccount:null,headerStyle:{desktop:p.NORMAL,phone:p.CENTERED},headerTextSize:{desktop:""},headerPhotoSize:{desktop:50},headerTextColor:{r:0,g:0,b:0,a:1},headerBgColor:{r:255,g:255,b:255,a:1},headerPadding:{desktop:0},customProfilePic:0,customBioText:"",includeStories:!1,storiesInterval:5,showCaptions:{desktop:!1},captionMaxLength:{desktop:0},captionRemoveDots:!1,captionSize:{desktop:0},captionColor:{r:0,g:0,b:0,a:1},showLikes:{desktop:!1},showComments:{desktop:!1},lcIconSize:{desktop:14},likesIconColor:{r:0,g:0,b:0,a:1},commentsIconColor:{r:0,g:0,b:0,a:1},lightboxShowSidebar:!1,numLightboxComments:50,showLoadMoreBtn:{desktop:!0},loadMoreBtnTextColor:{r:255,g:255,b:255,a:1},loadMoreBtnBgColor:{r:0,g:149,b:246,a:1},loadMoreBtnText:"Load more",autoload:!1,showFollowBtn:{desktop:!0},followBtnText:"Follow on Instagram",followBtnTextColor:{r:255,g:255,b:255,a:1},followBtnBgColor:{r:0,g:149,b:246,a:1},followBtnLocation:{desktop:v.HEADER,phone:v.BOTTOM},hashtagWhitelist:[],hashtagBlacklist:[],captionWhitelist:[],captionBlacklist:[],hashtagWhitelistSettings:!0,hashtagBlacklistSettings:!0,captionWhitelistSettings:!0,captionBlacklistSettings:!0,moderation:[],moderationMode:y.BLACKLIST,promotionEnabled:!0,autoPromotionsEnabled:!0,globalPromotionsEnabled:!0,promotions:{}},e.getPromo=O,e.getFeedPromo=S,e.executeMediaClick=function(e,t){const n=O(e,t),o=h.a.getConfig(n),a=h.a.getType(n);return!(!a||!a.isValid(o)||"function"!=typeof a.onMediaClick)&&a.onMediaClick(e,o)},e.getLink=function(e,t){var n,o;const a=O(e,t),i=h.a.getConfig(a),r=h.a.getType(a);if(void 0===r||!r.isValid(i))return{text:null,url:null,newTab:!1};let[s,l]=r.getPopupLink?null!==(n=r.getPopupLink(e,i))&&void 0!==n?n:null:[null,!1];return{text:s,url:r.getMediaUrl&&null!==(o=r.getMediaUrl(e,i))&&void 0!==o?o:null,newTab:l}}}(_||(_={}))},72:function(e,t,n){e.exports={"name-col":"FeedsList__name-col",nameCol:"FeedsList__name-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","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","sources-cell":"FeedsList__sources-cell",sourcesCell:"FeedsList__sources-cell","sources-col":"FeedsList__sources-col",sourcesCol:"FeedsList__sources-col","usages-cell":"FeedsList__usages-cell",usagesCell:"FeedsList__usages-cell","usages-col":"FeedsList__usages-col",usagesCol:"FeedsList__usages-col"}},73:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(0),a=n.n(o),i=n(43),r=n.n(i),s=n(15),l=n(3),c=n(58),u=n(11),d=n(16);function m(e){var{media:t,className:n,size:i,onLoadImage:m,width:p,height:h}=e,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}(e,["media","className","size","onLoadImage","width","height"]);const g=a.a.useRef(),[b,_]=a.a.useState(!0);function v(){if(g.current){const e=t.type===s.a.Type.ALBUM&&t.children.length>0?t.children[0]:t;let n;if(void 0===i){const e=g.current.getBoundingClientRect();n=e.width<=320?l.a.SMALL:e.width<=480?l.a.MEDIUM:l.a.LARGE}else n=i;if("string"==typeof t.sliThumbnail&&t.sliThumbnail.length>0)g.current.src=t.sliThumbnail+"&size="+n;else{const t=Object(l.n)(e.permalink);g.current.src=Object(l.m)(t,n)}}}return Object(o.useLayoutEffect)(()=>(g.current&&(g.current.onload=()=>{_(!1),m&&m()},v()),()=>g.current.onload=()=>null),[t,i]),Object(d.m)(()=>{void 0===i&&v()}),t.url&&t.url.length>0?a.a.createElement("div",Object.assign({className:Object(u.b)(r.a.root,n)},f),a.a.createElement("img",Object.assign({ref:g,className:r.a.image,loading:"lazy",alt:t.caption,width:p,height:h},u.e)),b&&a.a.createElement(c.a,null)):a.a.createElement("div",{className:r.a.notAvailable},a.a.createElement("span",null,"Thumbnail not available"))}},74:function(e,t,n){e.exports={root:"MediaLoading__root",animation:"MediaLoading__animation"}},76:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var o=n(7),a=n(18),i=n(3);class r{constructor(e=!1,t=!1){this.incModeration=!1,this.incFilters=!1,this.prevOptions=null,this.media=new Array,this.incModeration=e,this.incFilters=t}fetchMedia(e,t){if(this.hasCache(e))return Promise.resolve(this.media);const n=Object.assign({},e.options,{moderation:this.incModeration?e.options.moderation:[],moderationMode:e.options.moderationMode,hashtagBlacklist:this.incFilters?e.options.hashtagBlacklist:[],hashtagWhitelist:this.incFilters?e.options.hashtagWhitelist:[],captionBlacklist:this.incFilters?e.options.captionBlacklist:[],captionWhitelist:this.incFilters?e.options.captionWhitelist:[],hashtagBlacklistSettings:!!this.incFilters&&e.options.hashtagBlacklistSettings,hashtagWhitelistSettings:!!this.incFilters&&e.options.hashtagWhitelistSettings,captionBlacklistSettings:!!this.incFilters&&e.options.captionBlacklistSettings,captionWhitelistSettings:!!this.incFilters&&e.options.captionWhitelistSettings});return t&&t(),a.a.getFeedMedia(n).then(t=>(this.prevOptions=new o.a.Options(e.options),this.media=t.data.media,this.media))}hasCache(e){return null!==this.prevOptions&&!this.isCacheInvalid(e)}isCacheInvalid(e){const t=e.options,n=this.prevOptions;if(Object(i.k)(e.media,this.media,(e,t)=>e.id===t.id).length>0)return!0;if(!Object(i.f)(t.accounts,n.accounts))return!0;if(!Object(i.f)(t.tagged,n.tagged))return!0;if(!Object(i.f)(t.hashtags,n.hashtags,i.p))return!0;if(this.incModeration){if(t.moderationMode!==n.moderationMode)return!0;if(!Object(i.f)(t.moderation,n.moderation))return!0}if(this.incFilters){if(t.captionWhitelistSettings!==n.captionWhitelistSettings||t.captionBlacklistSettings!==n.captionBlacklistSettings||t.hashtagWhitelistSettings!==n.hashtagWhitelistSettings||t.hashtagBlacklistSettings!==n.hashtagBlacklistSettings)return!0;if(!Object(i.f)(t.captionWhitelist,n.captionWhitelist))return!0;if(!Object(i.f)(t.captionBlacklist,n.captionBlacklist))return!0;if(!Object(i.f)(t.hashtagWhitelist,n.hashtagWhitelist))return!0;if(!Object(i.f)(t.hashtagBlacklist,n.hashtagBlacklist))return!0}return!1}}const s=new r(!0,!0),l=new r(!1,!0)},77:function(e,t,n){e.exports={root:"ProfilePic__root",round:"ProfilePic__round ProfilePic__root",square:"ProfilePic__square ProfilePic__root"}},78:function(e,t,n){e.exports={"connect-btn":"AccountsPage__connect-btn",connectBtn:"AccountsPage__connect-btn"}},8:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o,a=n(12),i=n(22),r=n(3);!function(e){function t(e){return e?c(e.type):void 0}function n(e){var n;if("object"!=typeof e)return!1;const o=t(e);return void 0!==o&&o.isValid(null!==(n=e.config)&&void 0!==n?n:{})}function o(t){return t?e.getPromoFromDictionary(t,a.a.config.globalPromotions):void 0}function s(e){const t=l(e);return void 0===t?void 0:t.promotion}function l(t){if(t)for(const n of a.a.config.autoPromotions){const o=e.Automation.getType(n),a=e.Automation.getConfig(n);if(o&&o.matches(t,a))return n}}function c(t){return e.types.find(e=>e.id===t)}let u;e.getConfig=function(e){var t,n;return e&&null!==(n=null!==(t=e.config)&&void 0!==t?t:e.data)&&void 0!==n?n:{}},e.getType=t,e.isValid=n,e.getPromoFromDictionary=function(t,n){const o=i.a.get(n,t.id);if(o)return e.getType(o)?o:void 0},e.getPromo=function(e){return Object(r.l)(n,[()=>o(e),()=>s(e)])},e.getGlobalPromo=o,e.getAutoPromo=s,e.getAutomation=l,e.types=[],e.getTypes=function(){return e.types},e.registerType=function(t){e.types.push(t)},e.getTypeById=c,e.clearTypes=function(){e.types.splice(0,e.types.length)},function(e){e.getType=function(e){return e?n(e.type):void 0},e.getConfig=function(e){var t,n;return e&&null!==(n=null!==(t=e.config)&&void 0!==t?t:e.data)&&void 0!==n?n:{}},e.getPromotion=function(e){return e?e.promotion:void 0};const t=[];function n(e){return t.find(t=>t.id===e)}e.getTypes=function(){return t},e.registerType=function(e){t.push(e)},e.getTypeById=n,e.clearTypes=function(){t.splice(0,t.length)}}(u=e.Automation||(e.Automation={}))}(o||(o={}))},81: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"}},85:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s}));var o=n(0),a=n.n(o),i=n(6);function r(e,t){return Object(i.b)(n=>a.a.createElement(e,Object.assign(Object.assign({},t),n)))}function s(e,t){return Object(i.b)(n=>{const o={};return Object.keys(t).forEach(e=>o[e]=t[e](n)),a.a.createElement(e,Object.assign({},o,n))})}},86:function(e,t,n){e.exports={label:"TabNavbar__label",tab:"TabNavbar__tab",current:"TabNavbar__current TabNavbar__tab",disabled:"TabNavbar__disabled TabNavbar__tab"}},89:function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o=n(0),a=n.n(o),i=n(45),r=n(9),s=n.n(r),l=n(6),c=n(4),u=n(613),d=n(611),m=n(55),p=n(111),h=n(102),f=n(30),g=n(5),b=n(23),_=n(14),v=n(59),y=Object(l.b)((function({account:e,onUpdate:t}){const[n,o]=a.a.useState(!1),[i,r]=a.a.useState(""),[l,y]=a.a.useState(!1),E=e.type===c.a.Type.PERSONAL,w=c.b.getBioText(e),O=()=>{e.customBio=i,y(!0),f.a.updateAccount(e).then(()=>{o(!1),y(!1),t&&t()})},S=n=>{e.customProfilePicUrl=n,y(!0),f.a.updateAccount(e).then(()=>{y(!1),t&&t()})};return a.a.createElement("div",{className:s.a.root},a.a.createElement("div",{className:s.a.container},a.a.createElement("div",{className:s.a.infoColumn},a.a.createElement("a",{href:c.b.getProfileUrl(e),target:"_blank",className:s.a.username},"@",e.username),a.a.createElement("div",{className:s.a.row},a.a.createElement("span",{className:s.a.label},"Spotlight ID:"),e.id),a.a.createElement("div",{className:s.a.row},a.a.createElement("span",{className:s.a.label},"User ID:"),e.userId),a.a.createElement("div",{className:s.a.row},a.a.createElement("span",{className:s.a.label},"Type:"),e.type),!n&&a.a.createElement("div",{className:s.a.row},a.a.createElement("div",null,a.a.createElement("span",{className:s.a.label},"Bio:"),a.a.createElement("a",{className:s.a.editBioLink,onClick:()=>{r(c.b.getBioText(e)),o(!0)}},"Edit bio"),a.a.createElement("pre",{className:s.a.bio},w.length>0?w:"(No bio)"))),n&&a.a.createElement("div",{className:s.a.row},a.a.createElement("textarea",{className:s.a.bioEditor,value:i,onChange:e=>{r(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&e.ctrlKey&&(O(),e.preventDefault(),e.stopPropagation())},rows:4}),a.a.createElement("div",{className:s.a.bioFooter},a.a.createElement("div",{className:s.a.bioEditingControls},l&&a.a.createElement("span",null,"Please wait ...")),a.a.createElement("div",{className:s.a.bioEditingControls},a.a.createElement(g.a,{className:s.a.bioEditingButton,type:g.c.DANGER,disabled:l,onClick:()=>{e.customBio="",y(!0),f.a.updateAccount(e).then(()=>{o(!1),y(!1),t&&t()})}},"Reset"),a.a.createElement(g.a,{className:s.a.bioEditingButton,type:g.c.SECONDARY,disabled:l,onClick:()=>{o(!1)}},"Cancel"),a.a.createElement(g.a,{className:s.a.bioEditingButton,type:g.c.PRIMARY,disabled:l,onClick:O},"Save"))))),a.a.createElement("div",{className:s.a.picColumn},a.a.createElement("div",null,a.a.createElement(v.a,{account:e,className:s.a.profilePic})),a.a.createElement(p.a,{id:"account-custom-profile-pic",title:"Select profile picture",mediaType:"image",onSelect:e=>{const t=parseInt(e.attributes.id),n=h.a.media.attachment(t).attributes.url;S(n)}},({open:e})=>a.a.createElement(g.a,{type:g.c.SECONDARY,className:s.a.setCustomPic,onClick:e},"Change profile picture")),e.customProfilePicUrl.length>0&&a.a.createElement("a",{className:s.a.resetCustomPic,onClick:()=>{S("")}},"Reset profile picture"))),E&&a.a.createElement("div",{className:s.a.personalInfoMessage},a.a.createElement(b.a,{type:b.b.INFO,showIcon:!0},"Due to restrictions set by Instagram, Spotlight cannot import the profile photo and bio"," ","text for Personal accounts."," ",a.a.createElement("a",{href:_.a.resources.customPersonalInfoUrl,target:"_blank"},"Click here to learn more"),".")),a.a.createElement(m.a,{label:"View access token",stealth:!0},a.a.createElement("div",{className:s.a.row},e.accessToken&&a.a.createElement("div",null,a.a.createElement("p",null,a.a.createElement("span",{className:s.a.label},"Expires on:"),a.a.createElement("span",null,e.accessToken.expiry?Object(u.a)(Object(d.a)(e.accessToken.expiry),"PPPP"):"Unknown")),a.a.createElement("pre",{className:s.a.accessToken},e.accessToken.code)))))}));function E({isOpen:e,onClose:t,onUpdate:n,account:o}){return a.a.createElement(i.a,{isOpen:e,title:"Account details",icon:"admin-users",onClose:t},a.a.createElement(i.a.Content,null,a.a.createElement(y,{account:o,onUpdate:n})))}},9: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",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"}},96:function(e,t,n){e.exports={root:"PopupTextField__root layout__flex-row",container:"PopupTextField__container layout__flex-row","edit-container":"PopupTextField__edit-container PopupTextField__container layout__flex-row",editContainer:"PopupTextField__edit-container PopupTextField__container layout__flex-row","static-container":"PopupTextField__static-container PopupTextField__container layout__flex-row",staticContainer:"PopupTextField__static-container PopupTextField__container layout__flex-row","edit-icon":"PopupTextField__edit-icon dashicons__dashicon-normal",editIcon:"PopupTextField__edit-icon dashicons__dashicon-normal",label:"PopupTextField__label","done-btn":"PopupTextField__done-btn",doneBtn:"PopupTextField__done-btn"}},97:function(e,t,n){"use strict";var o=n(76);t.a=new class{constructor(){this.mediaStore=o.a}}}},[[605,0,1,2,3]]])}));
ui/dist/admin-common.js CHANGED
@@ -1 +1 @@
1
- (window.webpackJsonpspotlight=window.webpackJsonpspotlight||[]).push([[2],{103: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"}},105: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",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"}},108:function(e,t,n){"use strict";t.a=wp},110:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),o=n.n(a),r=n(94),c=n(135);const s=e=>{const t=Object.assign(Object.assign({},e),{value:e.value?e.value.map(e=>Object(c.a)(e,"#")):[],sanitize:c.b});return o.a.createElement(r.a,Object.assign({},t))}},112:function(e,t,n){"use strict";t.a={Sizes:{WIDE:1200,LARGE:1180,MEDIUM:960,SMALL:782,NARROW:600,ALL:[1200,1180,960,782,600]}}},113: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"}},119:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),o=n.n(a),r=n(9),c=n(103),s=n.n(c);function i({cols:e,rows:t,footerCols:n,styleMap:a}){return a=null!=a?a:{cols:{},cells:{}},o.a.createElement("table",{className:s.a.table},o.a.createElement("thead",{className:s.a.header},o.a.createElement(u,{cols:e,styleMap:a})),o.a.createElement("tbody",null,t.map((t,n)=>o.a.createElement(l,{key:n,row:t,cols:e,styleMap:a}))),n&&o.a.createElement("tfoot",{className:s.a.footer},o.a.createElement(u,{cols:e,styleMap:a})))}function l({row:e,cols:t,styleMap:n}){return o.a.createElement("tr",{className:s.a.row},t.map(t=>o.a.createElement("td",{key:t.id,className:Object(r.b)(s.a.cell,m(t),n.cells[t.id])},t.render(e))))}function u({cols:e,styleMap:t}){return o.a.createElement("tr",null,e.map(e=>{const n=Object(r.b)(s.a.colHeading,m(e),t.cols[e.id]);return o.a.createElement("th",{key:e.id,className:n},e.label)}))}function m(e){return"center"===e.align?s.a.alignCenter:"right"===e.align?s.a.alignRight:s.a.alignLeft}},12:function(e,t,n){"use strict";var a=n(14),o=n(0),r=n.n(o),c=n(23),s=n(149),i=n(7),l=n(53),u=n(113),m=n.n(u),d=n(77),p=n(8);function _(e){var{type:t,unit:n,units:a,value:o,onChange:c}=e,s=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}(e,["type","unit","units","value","onChange"]);const[i,l]=r.a.useState(!1),u=Array.isArray(a)&&a.length,_=()=>l(e=>!e),b=e=>{switch(e.key){case" ":case"Enter":_();break;default:return}e.preventDefault(),e.stopPropagation()};return(null==o||isNaN(o))&&(o=""),r.a.createElement("div",{className:m.a.root},r.a.createElement("input",Object.assign({},s,{className:m.a.input,type:null!=t?t:"text",value:o,onChange:e=>c&&c(e.currentTarget.value,n)})),r.a.createElement("div",{className:m.a.unitContainer},u&&r.a.createElement(d.a,{isOpen:i,onBlur:()=>l(!1)},({ref:e})=>r.a.createElement("div",{ref:e,className:m.a.unitSelector,role:"button",onClick:_,onKeyDown:b,tabIndex:0},r.a.createElement("span",{className:m.a.currentUnit},n),r.a.createElement(p.a,{icon:"arrow-down-alt2",className:i?m.a.menuChevronOpen:m.a.menuChevron})),a.map(e=>r.a.createElement(d.c,{key:e,onClick:()=>(c&&c(o,e),void l(!1))},e))),!u&&r.a.createElement("div",{className:m.a.unitStatic},r.a.createElement("span",null,n))))}var b=n(45),f=n(251),g=n.n(f),h=n(5),v=[{id:"accounts",title:"Accounts",component:s.a},{id:"config",title:"Configuration",groups:[{id:"importing",title:"Import options",fields:[{id:"importerInterval",label:"Check for new posts",component:Object(i.b)(({id:e})=>r.a.createElement(l.a,{id:e,width:250,value:c.b.values.importerInterval,options:y.config.cronScheduleOptions,onChange:e=>c.b.values.importerInterval=e.value}))}]},{id:"cleaner",title:"Optimization",component:()=>r.a.createElement("div",null,r.a.createElement(b.a,{label:"What is this?",stealth:!0},r.a.createElement("div",null,r.a.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."),r.a.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.")))),fields:[{id:"cleanerAgeLimit",label:"Delete unseen posts after",component:Object(i.b)(({id:e})=>{const t=c.b.values.cleanerAgeLimit.split(" "),n=parseInt(t[0]),a=t[1];return r.a.createElement(_,{id:e,units:["days","hours","minutes"],value:n,unit:a,type:"number",onChange:(e,t)=>c.b.values.cleanerAgeLimit=e+" "+t})})},{id:"cleanerInterval",label:"Run optimization",component:Object(i.b)(({id:e})=>r.a.createElement(l.a,{id:e,width:250,value:c.b.values.cleanerInterval,options:y.config.cronScheduleOptions,onChange:e=>c.b.values.cleanerInterval=e.value}))}]}]},{id:"tools",title:"Tools",groups:[{id:"cache",title:"Cache",fields:[{id:"clearCache",label:"If you are experiencing issues, clearing the plugin's cache may help.",component:function({}){const[e,t]=r.a.useState(!1),[n,a]=r.a.useState(!1);return r.a.createElement("div",{className:g.a.root},r.a.createElement(h.a,{disabled:e,onClick:()=>{t(!0),y.restApi.clearCache().finally(()=>{a(!0),setTimeout(()=>{a(!1),t(!1)},3e3)})}},n?"Done!":e?"Please wait ...":"Clear the cache"),r.a.createElement("a",{href:y.resources.cacheDocsUrl,target:"_blank",className:g.a.docLink},"What's this?"))}}]}]}],E=n(350);a.a.driver.interceptors.request.use(e=>(e.headers["X-WP-Nonce"]=SliAdminCommonL10n.restApi.wpNonce,e),e=>Promise.reject(e));var y=t.a={config:{rootId:"spotlight-instagram-admin",adminUrl:SliAdminCommonL10n.adminUrl,restApi:SliAdminCommonL10n.restApi,doOnboarding:"1"==SliAdminCommonL10n.doOnboarding,cronSchedules:SliAdminCommonL10n.cronSchedules,cronScheduleOptions:SliAdminCommonL10n.cronSchedules.map(e=>({value:e.key,label:e.display})),postTypes:SliAdminCommonL10n.postTypes,isPro:!1},resources:{upgradeUrl:"https://spotlightwp.com/pricing/",upgradeLocalUrl:SliAdminCommonL10n.adminUrl+"admin.php?page=spotlight-instagram-pricing",trialUrl:"https://spotlightwp.com/pricing/",trialLocalUrl:SliAdminCommonL10n.adminUrl+"admin.php?page=spotlight-instagram-pricing&billing_cycle=annual&trial=true",proComingSoonUrl:"https://spotlightwp.com/pro-coming-soon/",supportUrl:"https://spotlightwp.com/support/",customPersonalInfoUrl:"https://docs.spotlightwp.com/article/624-custom-profile-photo-and-bio-text",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/",accessTokenDocUrl:""},editor:{config:{isPro:!1,tabs:E.a,openGroups:["accounts","tagged","hashtags","layouts","feed","caption-filters","hashtag-filters"]}},restApi:{config:SliAdminCommonL10n.restApi,saveFeed:e=>{const t=Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{promotions:Array.from(e.options.promotions.entries())})});return a.a.driver.post("/feeds"+(e.id?"/"+e.id:""),{feed:t})},deleteFeed:e=>a.a.driver.delete("/feeds/"+e),connectPersonal:e=>a.a.driver.post("/connect",{accessToken:e}),connectBusiness:(e,t)=>a.a.driver.post("/connect",{accessToken:e,userId:t}),updateAccount:e=>a.a.driver.post("/accounts",e),deleteAccount:e=>a.a.driver.delete("/accounts/"+e),deleteAccountMedia:e=>a.a.driver.delete("/account_media/"+e),searchPosts:(e,t)=>a.a.driver.get(`/search_posts?search=${e}&type=${t}`),getSettings:()=>a.a.driver.get("/settings"),saveSettings:e=>a.a.driver.patch("/settings",{settings:e}),getNotifications:()=>a.a.driver.get("/notifications"),clearCache:()=>a.a.driver.post("/clear_cache")},settings:{pages:v}}},120:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),o=n.n(a),r=n(108),c=n(3);const s=({id:e,value:t,title:n,button:a,mediaType:s,multiple:i,children:l,onOpen:u,onClose:m,onSelect:d})=>{e=null!=e?e:"wp-media-"+Object(c.r)(),s=null!=s?s:"image",a=null!=a?a:"Select";const p=o.a.useRef();p.current||(p.current=r.a.media({id:e,title:n,library:{type:s},button:{text:a},multiple:i}));const _=()=>{const e=p.current.state().get("selection").first();d&&d(e)};return m&&p.current.on("close",m),p.current.on("open",()=>{if(t){const e="object"==typeof t?t:r.a.media.attachment(t);e.fetch(),p.current.state().get("selection").add(e?[e]:[])}u&&u()}),p.current.on("insert",_),p.current.on("select",_),l({open:()=>p.current.open()})}},122:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),o=n.n(a),r=n(175),c=n.n(r),s=n(8),i=n(194);function l({maxWidth:e,children:t}){e=null!=e?e:300;const[n,a]=o.a.useState(!1),r=()=>a(!0),l=()=>a(!1),u={content:c.a.tooltipContent,container:c.a.tooltipContainer};return o.a.createElement("div",{className:c.a.root},o.a.createElement(i.a,{visible:n,theme:u},({ref:e})=>o.a.createElement("span",{ref:e,className:c.a.icon,style:{opacity:n?1:.7},onMouseEnter:r,onMouseLeave:l},o.a.createElement(s.a,{icon:"info"})),o.a.createElement("div",{style:{maxWidth:e+"px"}},t)))}},124:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),o=n.n(a),r=n(322),c=n.n(r),s=n(5),i=n(8),l=n(211),u=n(40);function m({isOpen:e,onClose:t,onConnect:n,beforeConnect:a}){return o.a.createElement(u.a,{title:"Connect an Instagram account",isOpen:e,width:650,onClose:t},o.a.createElement(u.a.Content,null,o.a.createElement(l.a,{onConnect:n,beforeConnect:e=>{a&&a(e),t()}})))}function d({children:e,onConnect:t,beforeConnect:n}){const[a,r]=o.a.useState(!1);return o.a.createElement(o.a.Fragment,null,o.a.createElement(s.a,{className:c.a.root,size:s.b.HERO,type:s.c.SECONDARY,onClick:()=>r(!0)},o.a.createElement(i.a,{icon:"instagram"}),null!=e?e:o.a.createElement("span",null,"Connect more Instagram accounts")),o.a.createElement(m,{isOpen:a,onClose:()=>{r(!1)},onConnect:t,beforeConnect:n}))}},141:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),o=n.n(a);function r(e){return o.a.createElement("p",null,e.message)}},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(254),o=n.n(a),r=n(0),c=n.n(r),s=n(5),i=n(9);function l({className:e,content:t,tooltip:n,onClick:a,disabled:r,isSaving:l}){return t=null!=t?t:e=>e?"Saving ...":"Save",n=null!=n?n:"Save",c.a.createElement(s.a,{className:Object(i.b)(o.a.root,e),type:s.c.PRIMARY,size:s.b.LARGE,tooltip:n,onClick:()=>a&&a(),disabled:r},l&&c.a.createElement("div",{className:o.a.savingOverlay}),t(l))}},154:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),o=n.n(a),r=n(105),c=n.n(r),s=n(49),i=n(9),l=n(75),u=n(209);function m({children:e}){return o.a.createElement("div",{className:c.a.root},o.a.createElement(m.Item,null,o.a.createElement(u.a,null)),o.a.createElement(m.Chevron,null),o.a.createElement("div",{className:c.a.leftContainer},e[0]),e[1]&&o.a.createElement("div",{className:c.a.rightContainer},e[1]))}!function(e){e.Item=({children:e})=>o.a.createElement("div",{className:c.a.item},e),e.Link=({linkTo:t,onClick:n,isCurrent:a,isDisabled:r,children:l})=>{const u=Object(i.c)({[c.a.link]:!0,[c.a.current]:a,[c.a.disabled]:r}),m=e=>{"Enter"!==e.key&&" "!==e.key||e.currentTarget.click()},d=r?-1:0;return o.a.createElement(e.Item,null,t?o.a.createElement(s.a,{to:t,className:u,role:"button",onKeyPress:m,tabIndex:d},l):o.a.createElement("div",{className:u,role:"button",onClick:()=>!r&&n&&n(),onKeyPress:m,tabIndex:d},l))},e.ProPill=()=>o.a.createElement("div",{className:c.a.proPill},o.a.createElement(l.a,null)),e.Chevron=()=>o.a.createElement("div",{className:c.a.chevron},o.a.createElement("svg",{viewBox:"0 0 100 100",width:"100%",height:"100%",preserveAspectRatio:"none"},o.a.createElement("path",{d:"M0 0 L100 50 L0 100",fill:"none",stroke:"currentcolor",strokeLinejoin:"bevel"})))}(m||(m={}))},156: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"}},157: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"}},159: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"}},173: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"}},175: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"}},180:function(e,t,n){e.exports={root:"Notification__root",text:"Notification__text",title:"Notification__title Notification__text",content:"Notification__content Notification__text",date:"Notification__date"}},194:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),o=n.n(a),r=n(173),c=n.n(r),s=n(143),i=n(260),l=n(261),u=n(12),m=n(9);function d({visible:e,delay:t,placement:n,theme:r,children:d}){r=null!=r?r:{},n=n||"bottom";const[_,b]=o.a.useState(!1),f={preventOverflow:{boundariesElement:document.getElementById(u.a.config.rootId),padding:5}};Object(a.useEffect)(()=>{const n=setTimeout(()=>b(e),e?t:1);return()=>clearTimeout(n)},[e]);const g=p("container",n),h=p("arrow",n),v=Object(m.b)(c.a[g],r.container,r[g]),E=Object(m.b)(c.a[h],r.arrow,r[h]);return o.a.createElement(s.c,null,o.a.createElement(i.a,null,e=>d[0](e)),o.a.createElement(l.a,{placement:n,modifiers:f,positionFixed:!0},({ref:e,style:t,placement:n,arrowProps:a})=>_?o.a.createElement("div",{ref:e,className:Object(m.b)(c.a.root,r.root),style:t,tabIndex:-1},o.a.createElement("div",{className:v,"data-placement":n},o.a.createElement("div",{className:Object(m.b)(c.a.content,r.content)},d[1]),o.a.createElement("div",{className:E,ref:a.ref,style:a.style,"data-placement":n}))):null))}function p(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}}},205:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),o=n.n(a),r=n(337),c=n.n(r),s=n(141);const i=({feed:e,onCopy:t,toaster:n,children:a})=>o.a.createElement(c.a,{text:`[instagram feed="${e.id}"]`,onCopy:()=>{n&&n.addToast("feeds/shortcode/copied",()=>o.a.createElement(s.a,{message:"Copied shortcode to clipboard."})),t&&t()}},a)},206:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),o=n.n(a),r=n(342),c=n.n(r);function s({message:e}){return o.a.createElement("pre",{className:c.a.content},e)}},209:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var a=n(0),o=n.n(a),r=n(220),c=n.n(r),s=n(7),i=n(16),l=n(19),u=n(125),m=n(340),d=n.n(m),p=n(77),_=n(180),b=n.n(_),f=n(161),g=n(576),h=n(24),v=n(69);function E({notification:e}){const t=o.a.useRef();return Object(a.useEffect)(()=>{if(!t.current)return;const e=t.current.getElementsByTagName("a");for(let t=0;t<e.length;++t){const n=e.item(t);if("true"===n.getAttribute("data-sli-link"))continue;const a=n.getAttribute("href");if("string"!=typeof a||!a.startsWith("app://"))continue;const o=Object(v.parse)(a.substr("app://".length)),r=h.a.at(o),c=h.a.fullUrl(o);n.setAttribute("href",c),n.setAttribute("data-sli-link","true"),n.addEventListener("click",e=>{h.a.history.push(r,{}),e.preventDefault(),e.stopPropagation()})}},[t.current]),o.a.createElement("article",{className:b.a.root},e.title&&e.title.length&&o.a.createElement("header",{className:b.a.title},e.title),o.a.createElement("main",{ref:t,className:b.a.content,dangerouslySetInnerHTML:{__html:e.content}}),e.date&&o.a.createElement("footer",{className:b.a.date},Object(f.a)(Object(g.a)(e.date),{addSuffix:!0})))}function y({isOpen:e,onBlur:t,children:n}){return o.a.createElement(p.a,{isOpen:e,onBlur:t,placement:"bottom-start",className:d.a.menu},n,o.a.createElement(p.b,null,u.a.list.map(e=>o.a.createElement(E,{key:e.id,notification:e}))))}const O=Object(s.b)((function(){const[e,t]=o.a.useState(!1),n=o.a.useCallback(()=>t(!0),[]),a=o.a.useCallback(()=>t(!1),[]),r=Object(i.f)(n),s=({ref:e})=>o.a.createElement("div",{ref:e,className:c.a.logo,role:"button",onClick:n,onKeyPress:r,tabIndex:0},o.a.createElement("img",{className:c.a.logoImage,src:l.a.image("spotlight-favicon.png"),alt:"Spotlight"}),u.a.list.length>0&&o.a.createElement("div",{className:c.a.counter},u.a.list.length));return 0===u.a.list.length?s({ref:void 0}):o.a.createElement(y,{isOpen:e,onBlur:a},s)}))},211:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),o=n.n(a),r=n(87),c=n.n(r),s=n(34),i=n(4),l=n(40),u=n(5),m=n(8),d=n(88),p=n.n(d),_=n(45),b=n(12);function f({isColumn:e,onConnectPersonal:t,onConnectBusiness:n}){const[r,c]=o.a.useState(!1),[s,i]=o.a.useState(""),[l,m]=o.a.useState(""),[d,b]=o.a.useState(!1);Object(a.useEffect)(()=>{b(s.length>145&&!s.trimLeft().startsWith("IG"))},[s]);const f=o.a.createElement("div",{className:p.a.helpMessage},!1),g=o.a.createElement("div",{className:p.a.buttonContainer},e&&f,o.a.createElement(u.a,{className:p.a.button,onClick:()=>{d?n(s,l):t(s)},type:u.c.PRIMARY,disabled:0===s.length&&(0===l.length||!d)},"Connect"));return o.a.createElement("div",{className:e?p.a.column:p.a.row},o.a.createElement(_.a,{label:"Connect using an access token (for developers)",stealth:!0,isOpen:r,onClick:()=>c(!r)},o.a.createElement("div",{className:p.a.content},o.a.createElement("label",{className:p.a.label,htmlFor:"manual-connect-access-token"},o.a.createElement("div",null,"Enter your Instagram or Facebook access token")),o.a.createElement("div",{className:p.a.bottom},o.a.createElement("input",{id:"manual-connect-access-token",type:"text",value:s,onChange:e=>i(e.target.value),placeholder:"Your access token"}),!d&&g)),d&&o.a.createElement("div",{className:p.a.content},o.a.createElement("label",{className:p.a.label,htmlFor:"manual-connect-user-id"},o.a.createElement("div",null,"This access token is for a ",o.a.createElement("strong",null,"Business")," account."," ","Enter the user ID:")),o.a.createElement("div",{className:p.a.bottom},o.a.createElement("input",{id:"manual-connect-user-id",type:"text",value:l,onChange:e=>m(e.target.value),placeholder:"Enter the user ID"}),d&&g)),!e&&f))}function g({onConnect:e,beforeConnect:t,useColumns:n,showPrompt:a}){a=null==a||a,e||(e=()=>{});const r=e=>{s.a.State.connectSuccess&&t&&t(e)};return o.a.createElement("div",{className:c.a.root},a&&o.a.createElement("p",{className:c.a.promptMsg},"Choose the type of account to connect:"),o.a.createElement("div",{className:n?c.a.typesColumns:c.a.typesRows},o.a.createElement("div",{className:c.a.type},o.a.createElement(u.a,{type:u.c.PRIMARY,size:u.b.HERO,onClick:()=>s.a.openAuthWindow(i.a.Type.PERSONAL,l.a.ANIMATION_DELAY,r).then(e).catch(()=>{})},"Connect your Personal account"),o.a.createElement("div",{className:c.a.capabilities},o.a.createElement(h,null,"Connects directly through Instagram"),o.a.createElement(h,null,"Show posts from your account"))),o.a.createElement("div",{className:c.a.type},o.a.createElement(u.a,{type:u.c.SECONDARY,size:u.b.HERO,onClick:()=>s.a.openAuthWindow(i.a.Type.BUSINESS,l.a.ANIMATION_DELAY,r).then(e).catch(()=>{})},"Connect your Business account"),o.a.createElement("div",{className:c.a.capabilities},o.a.createElement(h,null,"Connects through your Facebook page"),o.a.createElement(h,null,"Show posts from your account"),o.a.createElement(h,null,"Show posts where you are tagged"),o.a.createElement(h,null,"Show posts with a specific hashtag from all across Instagram"),o.a.createElement("div",{className:c.a.businessLearnMore},o.a.createElement(m.a,{icon:"editor-help"}),o.a.createElement("a",{href:b.a.resources.businessAccounts,target:"_blank"},"Learn more about Business accounts"))))),o.a.createElement("div",{className:c.a.connectAccessToken},o.a.createElement(f,{isColumn:n,onConnectPersonal:t=>s.a.manualConnectPersonal(t,l.a.ANIMATION_DELAY,r).then(e),onConnectBusiness:(t,n)=>s.a.manualConnectBusiness(t,n,l.a.ANIMATION_DELAY,r).then(e)})))}const h=e=>{var{children:t}=e,n=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}(e,["children"]);return o.a.createElement("div",Object.assign({className:c.a.capability},n),o.a.createElement(m.a,{icon:"yes"}),o.a.createElement("div",null,t))}},213:function(e,t,n){e.exports={root:"ModalPrompt__root",button:"ModalPrompt__button"}},215:function(e,t,n){e.exports={button:"ColorPicker__button","color-preview":"ColorPicker__color-preview",colorPreview:"ColorPicker__color-preview",popper:"ColorPicker__popper"}},220:function(e,t,n){e.exports={logo:"LogoNewsMenu__logo","logo-image":"LogoNewsMenu__logo-image",logoImage:"LogoNewsMenu__logo-image",counter:"LogoNewsMenu__counter"}},23:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1),o=n(12),r=n(3),c=n(14);let s;t.b=s=a.n.object({values:Object(a.n)({}),original:{},isDirty:!1,isSaving:!1,save:Object(a.f)(()=>{if(s.isDirty)return s.isSaving=!0,o.a.restApi.saveSettings(s.values).then(e=>{s.fromResponse(e),document.dispatchEvent(new l(i))}).finally(()=>s.isSaving=!1)}),load:Object(a.f)(()=>o.a.restApi.getSettings().then(e=>s.fromResponse(e)).catch(e=>{throw c.a.getErrorReason(e)})),restore:Object(a.f)(()=>{Object.assign(s.values,s.original),s.isDirty=!1}),fromResponse:e=>{if("object"!=typeof e||void 0===e.data)throw"Spotlight encountered a problem while trying to load your settings. Kindly contact customer support for assistance.";s.original=e.data,s.restore()}}),Object(a.g)(()=>{s.isDirty=!Object(r.m)(s.original,s.values)});const i="sli/settings/saved";class l extends CustomEvent{constructor(e,t={}){super(e,t)}}},25:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}));var a,o=n(0),r=n.n(o),c=n(156),s=n.n(c),i=n(9),l=n(8);!function(e){e.SUCCESS="success",e.INFO="info",e.PRO_TIP="pro-tip",e.WARNING="warning",e.ERROR="error"}(a||(a={}));const u=({children:e,type:t,showIcon:n,shake:a,isDismissible:o,onDismiss:c})=>{const[u,d]=r.a.useState(!1),p=Object(i.b)(s.a[t],a?s.a.shaking:null);return u?null:r.a.createElement("div",{className:p},n?r.a.createElement("div",null,r.a.createElement(l.a,{className:s.a.icon,icon:m(t)})):null,r.a.createElement("div",{className:s.a.content},e),o?r.a.createElement("button",{className:s.a.dismissBtn,onClick:()=>{o&&(d(!0),c&&c())}},r.a.createElement(l.a,{icon:"no"})):null)};function m(e){switch(e){case a.SUCCESS:return"yes-alt";case a.PRO_TIP:return"lightbulb";case a.ERROR:case a.WARNING:return"warning";case a.INFO:default:return"info"}}},251:function(e,t,n){e.exports={root:"ClearCacheButton__root layout__flex-row","doc-link":"ClearCacheButton__doc-link",docLink:"ClearCacheButton__doc-link"}},253:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),o=n.n(a);n(282);const r=({children:e})=>o.a.createElement("div",{className:"button-group"},e)},254: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"}},256:function(e,t,n){e.exports={root:"Toaster__root layout__z-highest",container:"Toaster__container"}},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a,o=n(1),r=n(6),c=n(14),s=n(12),i=function(e,t,n,a){var o,r=arguments.length,c=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,a);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(c=(r<3?o(c):r>3?o(t,n,c):o(t,n))||c);return r>3&&c&&Object.defineProperty(t,n,c),c};!function(e){class t{constructor(e={}){t.setFromObject(this,null!=e?e:{})}static setFromObject(e,t={}){var n,a,o,c;e.id=null!==(n=t.id)&&void 0!==n?n:null,e.name=null!==(a=t.name)&&void 0!==a?a:"",e.usages=null!==(o=t.usages)&&void 0!==o?o:[],e.options=new r.a.Options(e.options),r.a.Options.setFromObject(e.options,null!==(c=t.options)&&void 0!==c?c:{})}get label(){return this.name.length>0?this.name:this.id?"(no name)":"New Feed"}}function n(n){if("object"!=typeof n||!Array.isArray(n.data))throw"Spotlight encountered a problem trying to load your feeds. Kindly contact customer support for assistance.";e.list.replace(n.data.map(e=>new t(e)))}i([o.n],t.prototype,"id",void 0),i([o.n],t.prototype,"name",void 0),i([o.n],t.prototype,"usages",void 0),i([o.n],t.prototype,"options",void 0),i([o.h],t.prototype,"label",null),e.SavedFeed=t,e.list=Object(o.n)([]),e.loadFeeds=()=>c.a.getFeeds().then(n).catch(e=>{throw c.a.getErrorReason(e)}),e.getById=t=>(t="string"==typeof t?parseInt(t):t)?e.list.find(e=>e.id==t):void 0,e.hasFeeds=()=>e.list.length>0,e.create=function(n,a){const o=new t({id:null,name:l(n),options:new r.a.Options(a)});return e.list.push(o),o},e.saveFeed=function(n){return s.a.restApi.saveFeed(n).then(a=>{const o=new t(a.data.feed);if(null===n.id)e.list.push(o);else{const t=e.list.findIndex(e=>e.id===n.id);e.list[t]=o}return o})},e.deleteFeed=function(t){const n=null!==t.id?e.list.findIndex(e=>e.id===t.id):e.list.findIndex(e=>e===t);return n>=0&&e.list.splice(n,1),null!==t.id?s.a.restApi.deleteFeed(t.id).catch(e=>{}):new Promise(e=>e())};const a=new RegExp("([\\w\\s]+)\\s?\\((\\d+)\\)?");function l(t){const n=u(t)[0],a=e.list.map(e=>u(e.name)).filter(e=>e[0]===n),o=a.reduce((e,t)=>Math.max(e,t[1]),1);return a.length>0?`${n} (${o+1})`:t.trim()}function u(e){e=e.trim();const t=a.exec(e);return t?[t[1].trim(),parseInt(t[2])]:[e,0]}}(a||(a={}))},282:function(e,t,n){},317:function(e,t,n){},320:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(31),o=n(78),r=n(24);const c={factories:Object(a.c)({"router/history":()=>Object(o.a)(),"router/store":e=>r.a.useHistory(e.get("router/history"))}),run:e=>{e.get("router/store")}}},321:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(16);function o({when:e,is:t,isRoot:n,render:o}){const r=Object(a.g)().get(e);return r===t||!t&&!r||n&&!r?o():null}},322:function(e,t,n){e.exports={root:"ConnectAccountButton__root"}},330:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),o=n.n(a),r=n(9),c=(n(398),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});const s=e=>{var{className:t,unit:n}=e,a=c(e,["className","unit"]);const s=Object(r.b)("unit-input__field",t);return o.a.createElement("div",{className:"unit-input"},o.a.createElement("input",Object.assign({},a,{className:s})),o.a.createElement("div",{className:"unit-input__unit"},o.a.createElement("span",null,n)))}},332:function(e,t,n){"use strict";var a=n(0),o=n.n(a),r=n(40),c=n(151),s=n(23),i=n(117),l=n(12),u=n(7);t.a=Object(u.b)((function({isOpen:e,onClose:t,onSave:n}){return o.a.createElement(r.a,{title:"Global filters",isOpen:e,onClose:()=>{s.b.isDirty&&!confirm("You have unsaved changes. If you close the window now, your settings will not be saved. Click OK to close anyway.")||t()}},o.a.createElement(r.a.Content,null,o.a.createElement(i.a,{page:l.a.settings.pages.find(e=>"filters"===e.id)})),o.a.createElement(r.a.Footer,null,o.a.createElement(c.a,{disabled:!s.b.isDirty,isSaving:s.b.isSaving,onClick:()=>{s.b.save().then(()=>{n&&n()})}})))}))},333:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),o=n.n(a),r=n(9);n(564);const c=({name:e,className:t,disabled:n,value:a,onChange:c,options:s})=>{const i=e=>{!n&&e.target.checked&&c&&c(e.target.value)},l=Object(r.b)(Object(r.a)("radio-group",{"--disabled":n}),t);return o.a.createElement("div",{className:l},s.map((t,n)=>o.a.createElement("label",{className:"radio-group__option",key:n},o.a.createElement("input",{type:"radio",name:e,value:t.value,checked:a===t.value,onChange:i}),o.a.createElement("span",null,t.label))))}},335:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),o=n.n(a);n(565);const r=({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.a.createElement("span",{className:"loading-spinner",style:n})}},336:function(e,t,n){"use strict";var a=n(0),o=n.n(a),r=n(4),c=n(86),s=n(100),i=n(34),l=n(7),u=n(12);t.a=Object(l.b)((function({}){Object(a.useEffect)(()=>{const e=e=>{const a=e.detail.account;n||m||a.type!==r.a.Type.PERSONAL||a.customBio.length||a.customProfilePicUrl.length||(t(a),l(!0))};return document.addEventListener(i.a.ACCOUNT_CONNECTED_EVENT,e),()=>document.removeEventListener(i.a.ACCOUNT_CONNECTED_EVENT,e)},[]);const[e,t]=o.a.useState(null),[n,l]=o.a.useState(!1),[m,d]=o.a.useState(!1),p=()=>{i.a.State.connectedId=null};return o.a.createElement(o.a.Fragment,null,o.a.createElement(c.a,{title:"You've successfully connected your account!",buttons:["Yes","No, maybe later"],isOpen:n,onAccept:()=>{l(!1),d(!0)},onCancel:()=>{l(!1),p()}},o.a.createElement("p",null,"One more thing ..."),o.a.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.a.createElement("p",null,o.a.createElement("a",{href:u.a.resources.customPersonalInfoUrl,target:"_blank"},"What's this about?"))),o.a.createElement(s.a,{isOpen:m,onClose:()=>{d(!1),p()},account:e}))}))},338:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(1),o=n(3),r=function(e,t,n,a){var o,r=arguments.length,c=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,a);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(c=(r<3?o(c):r>3?o(t,n,c):o(t,n))||c);return r>3&&c&&Object.defineProperty(t,n,c),c};class c{constructor(e){this.ttl=e,this.toasts=new Array}addToast(e,t,n){this.toasts.push({key:e+Object(o.r)(),component:t,ttl:n})}removeToast(e){const t=this.toasts.findIndex(t=>t.key===e);t>-1&&this.toasts.splice(t,1)}}r([a.n],c.prototype,"toasts",void 0),r([a.f],c.prototype,"addToast",null),r([a.f],c.prototype,"removeToast",null)},34:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a,o=n(4),r=n(32),c=n(12),s=n(1),i=n(577),l=n(575),u=n(576);!function(e){let t=null,n=null;e.State=window.SliAccountManagerState=Object(s.n)({accessToken:null,connectSuccess:!1,connectedId:null});const a=Object(i.a)(new Date,{days:7});function m(t,n,a){a&&a(e.State.connectedId),setTimeout(()=>o.b.loadAccounts().then(()=>{const t=o.b.getById(e.State.connectedId),a=new p(e.ACCOUNT_CONNECTED_EVENT,t);document.dispatchEvent(a),n(e.State.connectedId)}),t)}function d(e){return e.type===o.a.Type.BUSINESS&&e.accessToken&&e.accessToken.expiry&&Object(l.a)(a,Object(u.a)(e.accessToken.expiry))}e.manualConnectPersonal=function(t,n=0,a){return new Promise((o,r)=>{e.State.connectSuccess=!1,c.a.restApi.connectPersonal(t).then(t=>{e.State.connectSuccess=!0,e.State.connectedId=t.data.accountId,m(n,o,a)}).catch(r)})},e.manualConnectBusiness=function(t,n,a=0,o){return new Promise((r,s)=>{e.State.connectSuccess=!1,c.a.restApi.connectBusiness(t,n).then(t=>{e.State.connectSuccess=!0,e.State.connectedId=t.data.accountId,m(a,r,o)}).catch(s)})},e.openAuthWindow=function(a,s=0,i){return new Promise((l,u)=>{if(e.State.connectedId=null,null==t||t.closed){const e=Object(r.a)(700,800),n=a===o.a.Type.PERSONAL?c.a.restApi.config.personalAuthUrl:c.a.restApi.config.businessAuthUrl;t=Object(r.c)(n,"_blank",Object.assign({dependent:"yes",resizable:"yes",toolbar:"no",location:"no",scrollbars:"no"},e))}else t.focus();null==t||t.closed||(n=setInterval(()=>{t&&!t.closed||(clearInterval(n),null===e.State.connectedId?u&&u():m(s,l,i))},500))})},e.updateAccount=function(e){return c.a.restApi.updateAccount(e)},e.deleteAccount=function(e){return c.a.restApi.deleteAccount(e).then(o.b.loadFromResponse)},e.getExpiringTokenAccounts=function(){return o.b.list.filter(d)},e.isTokenExpiring=d,e.ACCOUNT_CONNECTED_EVENT="sli/account/connected";class p extends CustomEvent{constructor(e,t){super(e,{detail:{account:t}})}}e.AccountConnectedEvent=p}(a||(a={}))},340:function(e,t,n){e.exports={menu:"NotificationMenu__menu"}},342:function(e,t,n){e.exports={content:"ErrorToast__content"}},352:function(e,t,n){"use strict";var a=n(0),o=n.n(a),r=n(256),c=n.n(r),s=n(159),i=n.n(s),l=n(8);function u({children:e,ttl:t,onExpired:n}){t=null!=t?t:0;const[r,c]=o.a.useState(!1);let s=o.a.useRef(),u=o.a.useRef();const m=()=>{t>0&&(s.current=setTimeout(p,t))},d=()=>{clearTimeout(s.current)},p=()=>{c(!0),u.current=setTimeout(_,200)},_=()=>{n&&n()};Object(a.useEffect)(()=>(m(),()=>{d(),clearTimeout(u.current)}),[]);const b=r?i.a.rootFadingOut:i.a.root;return o.a.createElement("div",{className:b,onMouseOver:d,onMouseOut:m},o.a.createElement("div",{className:i.a.content},e),o.a.createElement("button",{className:i.a.dismissBtn,onClick:()=>{d(),p()}},o.a.createElement(l.a,{icon:"no-alt",className:i.a.dismissIcon})))}var m=n(7);t.a=Object(m.b)((function({store:e}){return o.a.createElement("div",{className:c.a.root},o.a.createElement("div",{className:c.a.container},e.toasts.map(t=>{var n;return o.a.createElement(u,{key:t.key,ttl:null!==(n=t.ttl)&&void 0!==n?n:e.ttl,onExpired:()=>{return n=t.key,void e.removeToast(n);var n}},o.a.createElement(t.component))})))}))},393:function(e,t,n){},394:function(e,t,n){},395:function(e,t,n){},396:function(e,t,n){},398:function(e,t,n){},40:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),o=n.n(a),r=n(30),c=n.n(r),s=n(9),i=(n(393),n(16)),l=n(5),u=n(8);function m({children:e,className:t,isOpen:n,icon:r,title:l,width:u,height:d,onClose:p,allowShadeClose:_,focusChild:b,portalTo:f}){const g=o.a.useRef(),[h]=Object(i.a)(n,!1,m.ANIMATION_DELAY);if(Object(i.d)("keydown",e=>{"Escape"===e.key&&(p&&p(),e.preventDefault(),e.stopPropagation())},[],[p]),Object(a.useEffect)(()=>{g&&g.current&&n&&(null!=b?b:g).current.focus()},[]),!h)return null;const v={width:u=null!=u?u:600,height:d},E=Object(s.b)("modal",n?"modal--open":null,n?null:"modal--close",t,"wp-core-ui-override");_=null==_||_;const y=o.a.createElement("div",{className:E},o.a.createElement("div",{className:"modal__shade",tabIndex:-1,onClick:()=>{_&&p&&p()}}),o.a.createElement("div",{ref:g,className:"modal__container",style:v,tabIndex:-1},l?o.a.createElement(m.Header,null,o.a.createElement("h1",null,o.a.createElement(m.Icon,{icon:r}),l),o.a.createElement(m.CloseBtn,{onClick:p})):null,e));return c.a.createPortal(y,null!=f?f:document.body)}!function(e){e.ANIMATION_DELAY=120,e.CloseBtn=({onClick:e})=>o.a.createElement(l.a,{className:"modal__close-btn",type:l.c.NONE,onClick:e,tooltip:"Close"},o.a.createElement("span",{className:"dashicons dashicons-no-alt"})),e.Icon=({icon:e})=>e?o.a.createElement(u.a,{icon:e,className:"modal__icon"}):null,e.Header=({children:e})=>o.a.createElement("div",{className:"modal__header"},e),e.Content=({children:e})=>o.a.createElement("div",{className:"modal__scroller"},o.a.createElement("div",{className:"modal__content"},e)),e.Footer=({children:e})=>o.a.createElement("div",{className:"modal__footer"},e)}(m||(m={}))},45:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),o=n.n(a),r=n(9),c=(n(394),n(8));const s=o.a.forwardRef((function({label:e,className:t,isOpen:n,showIcon:a,disabled:s,stealth:i,fitted:l,hideOnly:u,onClick:m,children:d},p){u=null!=u&&u,a=null==a||a,s=null!=s&&s;const[_,b]=o.a.useState(!1),f=void 0!==n;f||(n=_);const g=()=>{s||(f||b(!n),m&&m())},h=n&&void 0===m&&!a,v=h?void 0:0,E=h?void 0:"button",y=Object(r.a)("spoiler",{"--open":n,"--disabled":s,"--fitted":l,"--stealth":i,"--static":h}),O=Object(r.b)(y,t),N=n?"arrow-up-alt2":"arrow-down-alt2",C=Array.isArray(e)?e.map((e,t)=>o.a.createElement(o.a.Fragment,{key:t},e)):"string"==typeof e?o.a.createElement("span",null,e):e;return o.a.createElement("div",{ref:p,className:O},o.a.createElement("div",{className:"spoiler__header",onClick:g,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||g()},role:E,tabIndex:v},o.a.createElement("div",{className:"spoiler__label"},C),a&&o.a.createElement(c.a,{icon:N,className:"spoiler__icon"})),(n||u)&&o.a.createElement("div",{className:"spoiler__content"},d))}))},5:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return u}));var a,o,r=n(0),c=n.n(r),s=n(9),i=n(194),l=(n(282),n(3));!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"}(a||(a={})),function(e){e[e.SMALL=0]="SMALL",e[e.NORMAL=1]="NORMAL",e[e.LARGE=2]="LARGE",e[e.HERO=3]="HERO"}(o||(o={}));const u=c.a.forwardRef((e,t)=>{let{children:n,className:r,type:u,size:m,active:d,tooltip:p,tooltipPlacement:_,onClick:b,linkTo:f}=e,g=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}(e,["children","className","type","size","active","tooltip","tooltipPlacement","onClick","linkTo"]);u=null!=u?u:a.SECONDARY,m=null!=m?m:o.NORMAL,_=null!=_?_:"bottom";const[h,v]=c.a.useState(!1),E=()=>v(!0),y=()=>v(!1),O=Object(s.b)(r,u!==a.NONE?"button":null,u===a.PRIMARY?"button-primary":null,u===a.SECONDARY?"button-secondary":null,u===a.LINK?"button-secondary button-tertiary":null,u===a.PILL?"button-secondary button-tertiary button-pill":null,u===a.TOGGLE?"button-toggle":null,u===a.TOGGLE&&d?"button-primary button-active":null,u!==a.TOGGLE||d?null:"button-secondary",u===a.DANGER?"button-secondary button-danger":null,u===a.DANGER_LINK?"button-tertiary button-danger":null,u===a.DANGER_PILL?"button-tertiary button-danger button-danger-pill":null,m===o.SMALL?"button-small":null,m===o.LARGE?"button-large":null,m===o.HERO?"button-hero":null),N=e=>{b&&b(e)};let C="button";if("string"==typeof f?(C="a",g.href=f):g.type="button",g.tabIndex=0,!p)return c.a.createElement(C,Object.assign({ref:t,className:O,onClick:N},g),n);const w="string"==typeof p,A="btn-tooltip-"+Object(l.r)(),T=w?p:c.a.createElement(p,{id:A});return c.a.createElement(i.a,{visible:h&&!e.disabled,placement:_,delay:300},({ref:e})=>c.a.createElement(C,Object.assign({ref:t?Object(s.d)(e,t):e,className:O,onClick:N,onMouseEnter:E,onMouseLeave:y},g),n),T)})},53:function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return d}));var a=n(0),o=n.n(a),r=n(326),c=n(195),s=n(325),i=n(157),l=n.n(i),u=n(9);const m=(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 "+l.a.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=l.a.primaryColor,n.boxShadow="0 0 0 1px "+l.a.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"})}),d=o.a.forwardRef((e,t)=>{var n;const a=(null!==(n=e.options)&&void 0!==n?n:[]).find(t=>t.value===e.value);e=Object.assign(Object.assign({},e),{id:void 0,className:Object(u.b)("react-select",e.className),classNamePrefix:"react-select",inputId:e.id,menuPosition:"fixed"});const i=m(e),d=e.isCreatable?c.a:e.async?s.a:r.a;return o.a.createElement(d,Object.assign({},e,{ref:t,isSearchable:e.isCreatable,value:a,styles:i,theme:e=>Object.assign(Object.assign({},e),{borderRadius:3,colors:Object.assign(Object.assign({},e.colors),{primary:l.a.primaryColor,primary25:l.a.washedColor})}),menuPlacement:"auto",menuShouldScrollIntoView:!0}))})},562:function(e,t,n){},564:function(e,t,n){},565:function(e,t,n){},63:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var a=n(0),o=n.n(a),r=n(215),c=n.n(r),s=n(331),i=n(16),l=n(13),u=n(143),m=n(260),d=n(261),p=n(9),_=n(12);function b({id:e,value:t,disableAlpha:n,onChange:r}){t=null!=t?t:"#fff";const[b,f]=o.a.useState(t),[g,h]=o.a.useState(!1),v=o.a.useRef(),E=o.a.useRef(),y=o.a.useCallback(()=>h(!1),[]),O=o.a.useCallback(()=>h(e=>!e),[]),N=o.a.useCallback(e=>{f(e.rgb),r&&r(e)},[r]),C=o.a.useCallback(e=>{"Escape"===e.key&&g&&(y(),e.preventDefault(),e.stopPropagation())},[g]);Object(a.useEffect)(()=>f(t),[t]),Object(i.b)(v,y,[E]),Object(i.c)([v,E],y),Object(i.d)("keydown",C,[g]);const w={preventOverflow:{boundariesElement:document.getElementById(_.a.config.rootId),padding:5}};return o.a.createElement(u.c,null,o.a.createElement(m.a,null,({ref:t})=>o.a.createElement("button",{ref:Object(p.d)(v,t),id:e,className:c.a.button,onClick:O},o.a.createElement("span",{className:c.a.colorPreview,style:{backgroundColor:Object(l.a)(b)}}))),o.a.createElement(d.a,{placement:"bottom-end",positionFixed:!0,modifiers:w},({ref:e,style:t})=>g&&o.a.createElement("div",{className:c.a.popper,ref:Object(p.d)(E,e),style:t},o.a.createElement(s.ChromePicker,{color:b,onChange:N,disableAlpha:n}))))}},71:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),o=n.n(a),r=n(9),c=n(5),s=(n(395),n(8)),i=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};function l(e){var{className:t,children:n,isTransitioning:a}=e,c=i(e,["className","children","isTransitioning"]);const s=Object(r.a)("onboarding",{"--transitioning":a});return o.a.createElement("div",Object.assign({className:Object(r.b)(s,t)},c),Array.isArray(n)?n.map((e,t)=>o.a.createElement("div",{key:t},e)):n)}!function(e){e.TRANSITION_DURATION=200,e.Thin=e=>{var{className:t,children:n}=e,a=i(e,["className","children"]);return o.a.createElement("div",Object.assign({className:Object(r.b)("onboarding__thin",t)},a),n)},e.HelpMsg=e=>{var{className:t,children:n}=e,a=i(e,["className","children"]);return o.a.createElement("div",Object.assign({className:Object(r.b)("onboarding__help-msg",t)},a),n)},e.ProTip=({children:t})=>o.a.createElement(e.HelpMsg,null,o.a.createElement("div",{className:"onboarding__pro-tip"},o.a.createElement("span",null,o.a.createElement(s.a,{icon:"lightbulb"}),o.a.createElement("strong",null,"Pro tip!")),t)),e.StepList=e=>{var{className:t,children:n}=e,a=i(e,["className","children"]);return o.a.createElement("ul",Object.assign({className:Object(r.b)("onboarding__steps",t)},a),n)},e.Step=e=>{var{isDone:t,num:n,className:a,children:c}=e,s=i(e,["isDone","num","className","children"]);return o.a.createElement("li",Object.assign({className:Object(r.b)(t?"onboarding__done":null,a)},s),o.a.createElement("strong",null,"Step ",n,":")," ",c)},e.HeroButton=e=>{var t,{className:n,children:a}=e,s=i(e,["className","children"]);return o.a.createElement(c.a,Object.assign({type:null!==(t=s.type)&&void 0!==t?t:c.c.PRIMARY,size:c.b.HERO,className:Object(r.b)("onboarding__hero-button",n)},s),a)}}(l||(l={}))},77:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return _})),n.d(t,"d",(function(){return b}));var a=n(0),o=n.n(a),r=n(143),c=n(260),s=n(261),i=n(16),l=n(12),u=(n(396),n(9));const m=({children:e,className:t,refClassName:n,isOpen:a,onBlur:m,placement:p,modifiers:_,useVisibility:b})=>{p=null!=p?p:"bottom-end",b=null!=b&&b;const f=o.a.useRef(),g=a||b,h=!a&&b,v=Object.assign({preventOverflow:{boundariesElement:document.getElementById(l.a.config.rootId),padding:5}},_),E=()=>{m()},y=e=>{switch(e.key){case"ArrowDown":break;case"Escape":E();break;default:return}e.preventDefault(),e.stopPropagation()};return Object(i.b)(f,E,[f]),Object(i.c)([f],E),o.a.createElement("div",{ref:f,className:Object(u.b)("menu__ref",n)},o.a.createElement(r.c,null,o.a.createElement(c.a,null,t=>e[0](t)),o.a.createElement(s.a,{placement:p,positionFixed:!0,modifiers:v},({ref:n,style:a,placement:r})=>g?o.a.createElement("div",{ref:n,className:"menu",style:d(a,h),"data-placement":r,onKeyDown:y},o.a.createElement("div",{className:"menu__container"+(t?" "+t:"")},e[1])):null)))};function d(e,t){return Object.assign(Object.assign({},e),{opacity:1,pointerEvents:"all",visibility:t?"hidden":"visible"})}const p=({children:e,onClick:t,disabled:n,active:a})=>{const r=Object(u.a)("menu__item",{"--disabled":n,"--active":a});return o.a.createElement("div",{className:r},o.a.createElement("button",{onClick:()=>!a&&!n&&t&&t()},e))},_=({children:e})=>e,b=({children:e})=>o.a.createElement("div",{className:"menu__static"},e)},86:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),o=n.n(a),r=n(213),c=n.n(r),s=n(40),i=n(5);function l({children:e,title:t,buttons:n,onAccept:a,onCancel:r,isOpen:l,okDisabled:u,cancelDisabled:m}){n=null!=n?n:["OK","Cancel"];const d=()=>r&&r();return o.a.createElement(s.a,{isOpen:l,title:t,onClose:d,className:c.a.root},o.a.createElement(s.a.Content,null,"string"==typeof e?o.a.createElement("p",null,e):e),o.a.createElement(s.a.Footer,null,o.a.createElement(i.a,{className:c.a.button,type:i.c.SECONDARY,onClick:d,disabled:m},n[1]),o.a.createElement(i.a,{className:c.a.button,type:i.c.PRIMARY,onClick:()=>a&&a(),disabled:u},n[0])))}},87:function(e,t,n){e.exports={root:"ConnectAccount__root","prompt-msg":"ConnectAccount__prompt-msg",promptMsg:"ConnectAccount__prompt-msg",types:"ConnectAccount__types",type:"ConnectAccount__type","types-rows":"ConnectAccount__types-rows ConnectAccount__types",typesRows:"ConnectAccount__types-rows ConnectAccount__types","types-columns":"ConnectAccount__types-columns ConnectAccount__types",typesColumns:"ConnectAccount__types-columns ConnectAccount__types",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"}},88: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"}},94:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),o=n.n(a),r=n(195),c=n(25),s=n(53);const i={DropdownIndicator:null},l=e=>({label:e,value:e}),u=({id:e,value:t,onChange:n,sanitize:u,autoFocus:m,message:d})=>{const[p,_]=o.a.useState(""),[b,f]=o.a.useState(-1),[g,h]=o.a.useState();Object(a.useEffect)(()=>{h(d)},[d]);const v=(t=Array.isArray(t)?t:[]).map(e=>l(e)),E=e=>{if(!n)return;let t=-1;e=e?e.map(e=>e&&u?u(e.value):e.value).filter((e,n,a)=>{const o=a.indexOf(e);return o!==n?(t=o,!1):!!e}):[],f(t),-1===t&&n(e)},y=Object(s.b)();return o.a.createElement(o.a.Fragment,null,o.a.createElement(r.a,{inputId:e,className:"react-select",classNamePrefix:"react-select",components:i,inputValue:p,isClearable:!1,isMulti:!0,menuIsOpen:!1,onChange:E,onInputChange:e=>{_(e)},onKeyDown:e=>{if(p)switch(e.key){case",":case"Enter":case"Tab":_(""),E([...v,l(p)]),e.preventDefault()}},placeholder:"Type something and press enter...",value:v,autoFocus:m,styles:y}),b<0||0===v.length?null:o.a.createElement(c.a,{type:c.b.WARNING,shake:!0,showIcon:!0,isDismissible:!0},o.a.createElement("code",null,v[b].label)," is already in the list"),g?o.a.createElement(c.a,{type:c.b.WARNING,shake:!0,showIcon:!0,isDismissible:!0},g):null)};var m=n(7);const d=Object(m.b)(e=>{const[t,n]=o.a.useState("");e.exclude&&0===e.exclude.length&&t.length>0&&n("");let a=void 0;if(t.length>0){const n="%s",r=e.excludeMsg.indexOf("%s"),c=e.excludeMsg.substring(0,r),s=e.excludeMsg.substring(r+n.length);a=o.a.createElement(o.a.Fragment,null,c,o.a.createElement("code",null,t),s)}const r=Object.assign(Object.assign({},e),{message:a,onChange:t=>{const a=t.findIndex(t=>e.exclude.includes(t));a>-1?n(t[a]):e.onChange(t)}});return o.a.createElement(u,Object.assign({},r))})}}]);
1
+ (window.webpackJsonpspotlight=window.webpackJsonpspotlight||[]).push([[2],{102:function(e,t,n){"use strict";t.a=wp},110:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),o=n.n(a),r=n(11),l=n(129),i=n.n(l);function c({cols:e,rows:t,footerCols:n,styleMap:a}){return a=null!=a?a:{cols:{},cells:{}},o.a.createElement("table",{className:i.a.table},o.a.createElement("thead",{className:i.a.header},o.a.createElement(u,{cols:e,styleMap:a})),o.a.createElement("tbody",null,t.map((t,n)=>o.a.createElement(s,{key:n,idx:n,row:t,cols:e,styleMap:a}))),n&&o.a.createElement("tfoot",{className:i.a.footer},o.a.createElement(u,{cols:e,styleMap:a})))}function s({idx:e,row:t,cols:n,styleMap:a}){return o.a.createElement("tr",{className:i.a.row},n.map(n=>o.a.createElement("td",{key:n.id,className:Object(r.b)(i.a.cell,m(n),a.cells[n.id])},n.render(t,e))))}function u({cols:e,styleMap:t}){return o.a.createElement("tr",null,e.map(e=>{const n=Object(r.b)(i.a.colHeading,m(e),t.cols[e.id]);return o.a.createElement("th",{key:e.id,className:n},e.label)}))}function m(e){return"center"===e.align?i.a.alignCenter:"right"===e.align?i.a.alignRight:i.a.alignLeft}},111:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),o=n.n(a),r=n(102),l=n(3);const i=({id:e,value:t,title:n,button:a,mediaType:i,multiple:c,children:s,onOpen:u,onClose:m,onSelect:d})=>{e=null!=e?e:"wp-media-"+Object(l.w)(),i=null!=i?i:"image",a=null!=a?a:"Select";const p=o.a.useRef();p.current||(p.current=r.a.media({id:e,title:n,library:{type:i},button:{text:a},multiple:c}));const b=()=>{const e=p.current.state().get("selection").first();d&&d(e)};return m&&p.current.on("close",m),p.current.on("open",()=>{if(t){const e="object"==typeof t?t:r.a.media.attachment(t);e.fetch(),p.current.state().get("selection").add(e?[e]:[])}u&&u()}),p.current.on("insert",b),p.current.on("select",b),s({open:()=>p.current.open()})}},113:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),o=n.n(a),r=n(203),l=n.n(r),i=n(10),c=n(220);function s({maxWidth:e,children:t}){e=null!=e?e:300;const[n,a]=o.a.useState(!1),r=()=>a(!0),s=()=>a(!1),u={content:l.a.tooltipContent,container:l.a.tooltipContainer};return o.a.createElement("div",{className:l.a.root},o.a.createElement(c.a,{visible:n,theme:u},({ref:e})=>o.a.createElement("span",{ref:e,className:l.a.icon,style:{opacity:n?1:.7},onMouseEnter:r,onMouseLeave:s},o.a.createElement(i.a,{icon:"info"})),o.a.createElement("div",{style:{maxWidth:e+"px"}},t)))}},114:function(e,t,n){e.exports={root:"ConnectAccount__root","prompt-msg":"ConnectAccount__prompt-msg",promptMsg:"ConnectAccount__prompt-msg",types:"ConnectAccount__types",type:"ConnectAccount__type","types-rows":"ConnectAccount__types-rows ConnectAccount__types",typesRows:"ConnectAccount__types-rows ConnectAccount__types","types-columns":"ConnectAccount__types-columns ConnectAccount__types",typesColumns:"ConnectAccount__types-columns ConnectAccount__types",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"}},115: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"}},116:function(e,t,n){e.exports={content:"GlobalPromotionsTab__content","mobile-instructions":"GlobalPromotionsTab__mobile-instructions",mobileInstructions:"GlobalPromotionsTab__mobile-instructions",tutorial:"GlobalPromotionsTab__tutorial","tutorial-box":"GlobalPromotionsTab__tutorial-box",tutorialBox:"GlobalPromotionsTab__tutorial-box","tutorial-text":"GlobalPromotionsTab__tutorial-text",tutorialText:"GlobalPromotionsTab__tutorial-text","account-list":"GlobalPromotionsTab__account-list",accountList:"GlobalPromotionsTab__account-list","account-scroller":"GlobalPromotionsTab__account-scroller",accountScroller:"GlobalPromotionsTab__account-scroller","account-button":"GlobalPromotionsTab__account-button",accountButton:"GlobalPromotionsTab__account-button","account-selected":"GlobalPromotionsTab__account-selected GlobalPromotionsTab__account-button",accountSelected:"GlobalPromotionsTab__account-selected GlobalPromotionsTab__account-button","profile-pic":"GlobalPromotionsTab__profile-pic",profilePic:"GlobalPromotionsTab__profile-pic",username:"GlobalPromotionsTab__username","fake-pro":"GlobalPromotionsTab__fake-pro",fakePro:"GlobalPromotionsTab__fake-pro"}},120:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),o=n.n(a),r=n(121),l=n(47);const i=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=>Object(l.a)(e,"#")),sanitize:l.b});return o.a.createElement(r.a,Object.assign({},a))}},121:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),o=n.n(a),r=n(221),l=n(23),i=n(56);const c={DropdownIndicator:null},s=e=>({label:e,value:e}),u=({id:e,value:t,onChange:n,sanitize:u,autoFocus:m,message:d})=>{const[p,b]=o.a.useState(""),[_,g]=o.a.useState(-1),[f,h]=o.a.useState();Object(a.useEffect)(()=>{h(d)},[d]);const v=(t=Array.isArray(t)?t:[]).map(e=>s(e)),E=()=>{p.length&&(b(""),y([...v,s(p)]))},y=e=>{if(!n)return;let t=-1;e=e?e.map(e=>e&&u?u(e.value):e.value).filter((e,n,a)=>{const o=a.indexOf(e);return o!==n?(t=o,!1):!!e}):[],g(t),-1===t&&n(e)},C=Object(i.b)();return o.a.createElement(o.a.Fragment,null,o.a.createElement(r.a,{inputId:e,className:"react-select",classNamePrefix:"react-select",components:c,inputValue:p,isClearable:!1,isMulti:!0,menuIsOpen:!1,onChange:y,onInputChange:e=>{b(e)},onKeyDown:e=>{if(p)switch(e.key){case",":case"Enter":case"Tab":E(),e.preventDefault()}},onBlur:E,placeholder:"Type something and press enter...",value:v,autoFocus:m,styles:C}),_<0||0===v.length?null:o.a.createElement(l.a,{type:l.b.WARNING,shake:!0,showIcon:!0,isDismissible:!0},o.a.createElement("code",null,v[_].label)," is already in the list"),f?o.a.createElement(l.a,{type:l.b.WARNING,shake:!0,showIcon:!0,isDismissible:!0},f):null)};var m=n(6);const d=Object(m.b)(e=>{const[t,n]=o.a.useState("");e.exclude&&0===e.exclude.length&&t.length>0&&n("");let a=void 0;if(t.length>0){const n="%s",r=e.excludeMsg.indexOf("%s"),l=e.excludeMsg.substring(0,r),i=e.excludeMsg.substring(r+n.length);a=o.a.createElement(o.a.Fragment,null,l,o.a.createElement("code",null,t),i)}const r=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.a.createElement(u,Object.assign({},r))})},125:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(287),o=n.n(a),r=n(0),l=n.n(r),i=n(5),c=n(11);function s({className:e,content:t,tooltip:n,onClick:a,disabled:r,isSaving:s}){return t=null!=t?t:e=>e?"Saving ...":"Save",n=null!=n?n:"Save",l.a.createElement(i.a,{className:Object(c.b)(o.a.root,e),type:i.c.PRIMARY,size:i.b.LARGE,tooltip:n,onClick:()=>a&&a(),disabled:r},s&&l.a.createElement("div",{className:o.a.savingOverlay}),t(s))}},129: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"}},131: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",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"}},139: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"}},14:function(e,t,n){"use strict";n(411);var a=n(18),o=n(0),r=n.n(o),l=n(17),i=n(144),c=n(6),s=n(56),u=n(139),m=n.n(u),d=n(66),p=n(10);function b(e){var{type:t,unit:n,units:a,value:o,onChange:l}=e,i=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}(e,["type","unit","units","value","onChange"]);const[c,s]=r.a.useState(!1),u=Array.isArray(a)&&a.length,b=()=>s(e=>!e),_=e=>{switch(e.key){case" ":case"Enter":b();break;default:return}e.preventDefault(),e.stopPropagation()};return(null==o||isNaN(o))&&(o=""),r.a.createElement("div",{className:m.a.root},r.a.createElement("input",Object.assign({},i,{className:m.a.input,type:null!=t?t:"text",value:o,onChange:e=>l&&l(e.currentTarget.value,n)})),r.a.createElement("div",{className:m.a.unitContainer},u&&r.a.createElement(d.a,{isOpen:c,onBlur:()=>s(!1)},({ref:e})=>r.a.createElement("div",{ref:e,className:m.a.unitSelector,role:"button",onClick:b,onKeyDown:_,tabIndex:0},r.a.createElement("span",{className:m.a.currentUnit},n),r.a.createElement(p.a,{icon:"arrow-down-alt2",className:c?m.a.menuChevronOpen:m.a.menuChevron})),a.map(e=>r.a.createElement(d.c,{key:e,onClick:()=>(l&&l(o,e),void s(!1))},e))),!u&&r.a.createElement("div",{className:m.a.unitStatic},r.a.createElement("span",null,n))))}var _=n(55),g=n(283),f=n.n(g),h=n(5),v=[{id:"accounts",title:"Accounts",component:i.a},{id:"config",title:"Configuration",groups:[{id:"importing",title:"Import options",fields:[{id:"importerInterval",label:"Check for new posts",component:Object(c.b)(({id:e})=>r.a.createElement(s.a,{id:e,width:250,value:l.b.values.importerInterval,options:y.config.cronScheduleOptions,onChange:e=>l.b.values.importerInterval=e.value}))}]},{id:"cleaner",title:"Optimization",component:()=>r.a.createElement("div",null,r.a.createElement(_.a,{label:"What is this?",stealth:!0},r.a.createElement("div",null,r.a.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."),r.a.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.")))),fields:[{id:"cleanerAgeLimit",label:"Delete unseen posts after",component:Object(c.b)(({id:e})=>{const t=l.b.values.cleanerAgeLimit.split(" "),n=parseInt(t[0]),a=t[1];return r.a.createElement(b,{id:e,units:["days","hours","minutes"],value:n,unit:a,type:"number",onChange:(e,t)=>l.b.values.cleanerAgeLimit=e+" "+t})})},{id:"cleanerInterval",label:"Run optimization",component:Object(c.b)(({id:e})=>r.a.createElement(s.a,{id:e,width:250,value:l.b.values.cleanerInterval,options:y.config.cronScheduleOptions,onChange:e=>l.b.values.cleanerInterval=e.value}))}]}]},{id:"tools",title:"Tools",groups:[{id:"cache",title:"Cache",fields:[{id:"clearCache",label:"If you are experiencing issues, clearing the plugin's cache may help.",component:function({}){const[e,t]=r.a.useState(!1),[n,a]=r.a.useState(!1);return r.a.createElement("div",{className:f.a.root},r.a.createElement(h.a,{disabled:e,onClick:()=>{t(!0),y.restApi.clearCache().finally(()=>{a(!0),setTimeout(()=>{a(!1),t(!1)},3e3)})}},n?"Done!":e?"Please wait ...":"Clear the cache"),r.a.createElement("a",{href:y.resources.cacheDocsUrl,target:"_blank",className:f.a.docLink},"What's this?"))}}]}]}],E=n(95);a.a.driver.interceptors.request.use(e=>(e.headers["X-WP-Nonce"]=SliAdminCommonL10n.restApi.wpNonce,e),e=>Promise.reject(e));var y=t.a={config:{rootId:"spotlight-instagram-admin",adminUrl:SliAdminCommonL10n.adminUrl,restApi:SliAdminCommonL10n.restApi,doOnboarding:"1"==SliAdminCommonL10n.doOnboarding,cronSchedules:SliAdminCommonL10n.cronSchedules,cronScheduleOptions:SliAdminCommonL10n.cronSchedules.map(e=>({value:e.key,label:e.display})),postTypes:SliAdminCommonL10n.postTypes,hasElementor:SliAdminCommonL10n.hasElementor},resources:{upgradeUrl:"https://spotlightwp.com/pricing/",upgradeLocalUrl:SliAdminCommonL10n.adminUrl+"admin.php?page=spotlight-instagram-pricing",trialUrl:"https://spotlightwp.com/pricing/",trialLocalUrl:SliAdminCommonL10n.adminUrl+"admin.php?page=spotlight-instagram-pricing&billing_cycle=annual&trial=true",proComingSoonUrl:"https://spotlightwp.com/pro-coming-soon/",supportUrl:"https://spotlightwp.com/support/",customPersonalInfoUrl:"https://docs.spotlightwp.com/article/624-custom-profile-photo-and-bio-text",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/",accessTokenDocUrl:""},editor:{config:Object.assign({},E.a)},restApi:{config:SliAdminCommonL10n.restApi,saveFeed:e=>a.a.driver.post("/feeds"+(e.id?"/"+e.id:""),{feed:e}),deleteFeed:e=>a.a.driver.delete("/feeds/"+e),connectPersonal:e=>a.a.driver.post("/connect",{accessToken:e}),connectBusiness:(e,t)=>a.a.driver.post("/connect",{accessToken:e,userId:t}),updateAccount:e=>a.a.driver.post("/accounts",e),deleteAccount:e=>a.a.driver.delete("/accounts/"+e),deleteAccountMedia:e=>a.a.driver.delete("/account_media/"+e),searchPosts:(e,t)=>a.a.driver.get(`/search_posts?search=${e}&type=${t}`),getSettings:()=>a.a.driver.get("/settings"),saveSettings:e=>a.a.driver.patch("/settings",{settings:e}),getNotifications:()=>a.a.driver.get("/notifications"),clearCache:()=>a.a.driver.post("/clear_cache")},settings:{pages:v,showGame:!0}}},148:function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var a=n(0),o=n.n(a),r=n(248),l=n.n(r),i=n(6),c=n(16),s=n(12),u=n(126),m=n(376),d=n.n(m),p=n(66),b=n(206),_=n.n(b),g=n(141),f=n(611),h=n(21),v=n(49);function E({notification:e}){const t=o.a.useRef();return Object(a.useEffect)(()=>{if(!t.current)return;const e=t.current.getElementsByTagName("a");for(let t=0;t<e.length;++t){const n=e.item(t);if("true"===n.getAttribute("data-sli-link"))continue;const a=n.getAttribute("href");if("string"!=typeof a||!a.startsWith("app://"))continue;const o=Object(v.parse)(a.substr("app://".length)),r=h.a.at(o),l=h.a.fullUrl(o);n.setAttribute("href",l),n.setAttribute("data-sli-link","true"),n.addEventListener("click",e=>{h.a.history.push(r,{}),e.preventDefault(),e.stopPropagation()})}},[t.current]),o.a.createElement("article",{className:_.a.root},e.title&&e.title.length&&o.a.createElement("header",{className:_.a.title},e.title),o.a.createElement("main",{ref:t,className:_.a.content,dangerouslySetInnerHTML:{__html:e.content}}),e.date&&o.a.createElement("footer",{className:_.a.date},Object(g.a)(Object(f.a)(e.date),{addSuffix:!0})))}function y({isOpen:e,onBlur:t,children:n,placement:a}){return o.a.createElement(p.a,{isOpen:e,onBlur:t,placement:null!=a?a:"bottom-start",className:d.a.menu},n,o.a.createElement(p.b,null,u.a.list.map(e=>o.a.createElement(E,{key:e.id,notification:e}))))}const C=Object(i.b)((function(){const[e,t]=o.a.useState(!1),n=o.a.useCallback(()=>t(!0),[]),a=o.a.useCallback(()=>t(!1),[]),r=Object(c.f)(n),i=({ref:e})=>o.a.createElement("div",{ref:e,className:l.a.logo,role:"button",onClick:n,onKeyPress:r,tabIndex:0},o.a.createElement("img",{className:l.a.logoImage,src:s.a.image("spotlight-favicon.png"),alt:"Spotlight"}),u.a.list.length>0&&o.a.createElement("div",{className:l.a.counter},u.a.list.length));return 0===u.a.list.length?i({ref:void 0}):o.a.createElement(y,{isOpen:e,onBlur:a},i)}))},150: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"}},163:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),o=n.n(a);function r(e){return o.a.createElement("p",null,e.message)}},17:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(1),o=n(14),r=n(3),l=n(18),i=n(12);let c;t.b=c=Object(a.n)({values:{},original:{},isDirty:!1,isSaving:!1,update(e){Object(r.b)(c.values,e)},save(){if(!c.isDirty)return;c.isSaving=!0;const e={importerInterval:c.values.importerInterval,cleanerAgeLimit:c.values.cleanerAgeLimit,cleanerInterval:c.values.cleanerInterval,hashtagWhitelist:c.values.hashtagWhitelist,hashtagBlacklist:c.values.hashtagBlacklist,captionWhitelist:c.values.captionWhitelist,captionBlacklist:c.values.captionBlacklist,autoPromotions:c.values.autoPromotions,promotions:c.values.promotions};return o.a.restApi.saveSettings(e).then(e=>{c.fromResponse(e),document.dispatchEvent(new u(s))}).finally(()=>c.isSaving=!1)},load:()=>o.a.restApi.getSettings().then(e=>c.fromResponse(e)).catch(e=>{throw l.a.getErrorReason(e)}),restore(){c.values=Object(r.h)(c.original),c.isDirty=!1},fromResponse(e){var t,n,a,o,r,l,i,s,u;if("object"!=typeof e||void 0===e.data)throw"Spotlight encountered a problem while trying to load your settings. Kindly contact customer support for assistance.";c.original={importerInterval:null!==(t=e.data.importerInterval)&&void 0!==t?t:"",cleanerAgeLimit:null!==(n=e.data.cleanerAgeLimit)&&void 0!==n?n:"",cleanerInterval:null!==(a=e.data.cleanerInterval)&&void 0!==a?a:"",hashtagWhitelist:null!==(o=e.data.hashtagWhitelist)&&void 0!==o?o:[],hashtagBlacklist:null!==(r=e.data.hashtagBlacklist)&&void 0!==r?r:[],captionWhitelist:null!==(l=e.data.captionWhitelist)&&void 0!==l?l:[],captionBlacklist:null!==(i=e.data.captionBlacklist)&&void 0!==i?i:[],autoPromotions:null!==(s=e.data.autoPromotions)&&void 0!==s?s:[],promotions:null!==(u=e.data.promotions)&&void 0!==u?u:{}},Array.isArray(c.original.promotions)&&0===c.original.promotions.length&&(c.original.promotions={}),c.restore()}},{values:a.n,update:a.f,save:a.f,load:a.f,restore:a.f}),Object(a.g)(()=>{c.isDirty=!Object(r.r)(c.original,c.values),i.a.config.globalPromotions=c.values.promotions,i.a.config.autoPromotions=c.values.autoPromotions});const s="sli/settings/saved";class u extends CustomEvent{constructor(e,t={}){super(e,t)}}},176:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),o=n.n(a),r=n(131),l=n.n(r),i=n(40),c=n(11),s=n(83),u=n(148);function m({children:e}){return o.a.createElement("div",{className:l.a.root},o.a.createElement(m.Item,null,o.a.createElement(u.a,null)),o.a.createElement(m.Chevron,null),o.a.createElement("div",{className:l.a.leftContainer},e[0]),e[1]&&o.a.createElement("div",{className:l.a.rightContainer},e[1]))}!function(e){e.Item=({children:e})=>o.a.createElement("div",{className:l.a.item},e),e.Link=({linkTo:t,onClick:n,isCurrent:a,isDisabled:r,children:s})=>{const u=Object(c.c)({[l.a.link]:!0,[l.a.current]:a,[l.a.disabled]:r}),m=e=>{"Enter"!==e.key&&" "!==e.key||e.currentTarget.click()},d=r?-1:0;return o.a.createElement(e.Item,null,t?o.a.createElement(i.a,{to:t,className:u,role:"button",onKeyPress:m,tabIndex:d},s):o.a.createElement("div",{className:u,role:"button",onClick:()=>!r&&n&&n(),onKeyPress:m,tabIndex:d},s))},e.ProPill=()=>o.a.createElement("div",{className:l.a.proPill},o.a.createElement(s.a,null)),e.Chevron=()=>o.a.createElement("div",{className:l.a.chevron},o.a.createElement("svg",{viewBox:"0 0 100 100",width:"100%",height:"100%",preserveAspectRatio:"none"},o.a.createElement("path",{d:"M0 0 L100 50 L0 100",fill:"none",stroke:"currentcolor",strokeLinejoin:"bevel"})))}(m||(m={}))},178: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"}},179: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"}},180: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"}},182: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"}},183: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"}},200:function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return g}));var a=n(0),o=n.n(a),r=n(16),l=n(7),i=n(2),c=n(26),s=n(3),u=n(383),m=n(278),d=n(145),p=n(95),b=c.a.SavedFeed;const _="You have unsaved changes. If you leave now, your changes will be lost.";function g({feed:e,config:t,requireName:n,confirmOnCancel:a,firstTab:c,useCtrlS:g,onChange:f,onSave:h,onCancel:v,onRename:E,onChangeTab:y,onDirtyChange:C}){const O=Object(s.x)(p.a,null!=t?t:{});c=null!=c?c:O.tabs[0].id;const[N,w]=Object(r.h)(null),[A,k]=Object(r.h)(e.name),[T,S]=o.a.useState(!0),[P,j]=o.a.useState(c),[L,x]=o.a.useState(i.a.Mode.DESKTOP),[I,R]=Object(r.h)(!1),[F,M]=Object(r.h)(!1),[D,B]=o.a.useState(!1),U=e=>{R(e),C&&C(e)};null===N.current&&(N.current=new l.a.Options(e.options));const G=o.a.useCallback(e=>{j(e),y&&y(e)},[y]),H=o.a.useCallback(e=>{const t=new l.a.Options(N.current);Object(s.b)(t,e),w(t),U(!0),f&&f(e,t)},[f]),Y=o.a.useCallback(e=>{k(e),U(!0),E&&E(e)},[E]),W=o.a.useCallback(t=>{if(I.current)if(n&&void 0===t&&!F.current&&0===A.current.length)M(!0);else{t=null!=t?t:A.current,k(t),M(!1),B(!0);const n=new b({id:e.id,name:t,options:N.current});h&&h(n).finally(()=>{B(!1),U(!1)})}},[e,h]),z=o.a.useCallback(()=>{I.current&&!confirm(_)||(U(!1),v&&v())},[v]);return Object(r.d)("keydown",e=>{g&&e.key&&"s"===e.key.toLowerCase()&&e.ctrlKey&&(W(),e.preventDefault(),e.stopPropagation())},[],[I]),o.a.createElement(o.a.Fragment,null,o.a.createElement(u.a,Object.assign({value:N.current,name:A.current,tabId:P,previewDevice:L,showFakeOptions:T,onChange:H,onRename:Y,onChangeTab:G,onToggleFakeOptions:S,onChangeDevice:x,onSave:W,onCancel:z,isSaving:D},O,{isDoneBtnEnabled:I.current,isCancelBtnEnabled:I.current})),o.a.createElement(m.a,{isOpen:F.current,onAccept:e=>{W(e)},onCancel:()=>{M(!1)}}),a&&o.a.createElement(d.a,{message:_,when:I.current&&!D}))}},201: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"}},203: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"}},206:function(e,t,n){e.exports={root:"Notification__root",text:"Notification__text",title:"Notification__title Notification__text",content:"Notification__content Notification__text",date:"Notification__date"}},220:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),o=n.n(a),r=n(201),l=n.n(r),i=n(167),c=n(296),s=n(297),u=n(14),m=n(11);function d({visible:e,delay:t,placement:n,theme:r,children:d}){r=null!=r?r:{},n=n||"bottom";const[b,_]=o.a.useState(!1),g={preventOverflow:{boundariesElement:document.getElementById(u.a.config.rootId),padding:5}};Object(a.useEffect)(()=>{const n=setTimeout(()=>_(e),e?t:1);return()=>clearTimeout(n)},[e]);const f=p("container",n),h=p("arrow",n),v=Object(m.b)(l.a[f],r.container,r[f]),E=Object(m.b)(l.a[h],r.arrow,r[h]);return o.a.createElement(i.c,null,o.a.createElement(c.a,null,e=>d[0](e)),o.a.createElement(s.a,{placement:n,modifiers:g,positionFixed:!0},({ref:e,style:t,placement:n,arrowProps:a})=>b?o.a.createElement("div",{ref:e,className:Object(m.b)(l.a.root,r.root),style:t,tabIndex:-1},o.a.createElement("div",{className:v,"data-placement":n},o.a.createElement("div",{className:Object(m.b)(l.a.content,r.content)},d[1]),o.a.createElement("div",{className:E,ref:a.ref,style:a.style,"data-placement":n}))):null))}function p(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}}},223:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),o=n.n(a),r=n(364),l=n.n(r),i=n(83);function c({children:e}){return o.a.createElement("div",null,o.a.createElement("div",{className:l.a.proPill},o.a.createElement(i.a,null)),o.a.createElement("span",null,e))}},23:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}));var a,o=n(0),r=n.n(o),l=n(178),i=n.n(l),c=n(11),s=n(10);!function(e){e.SUCCESS="success",e.INFO="info",e.PRO_TIP="pro-tip",e.WARNING="warning",e.ERROR="error"}(a||(a={}));const u=({children:e,type:t,showIcon:n,shake:a,isDismissible:o,onDismiss:l})=>{const[u,d]=r.a.useState(!1),p=Object(c.b)(i.a[t],a?i.a.shaking:null);return u?null:r.a.createElement("div",{className:p},n?r.a.createElement("div",null,r.a.createElement(s.a,{className:i.a.icon,icon:m(t)})):null,r.a.createElement("div",{className:i.a.content},e),o?r.a.createElement("button",{className:i.a.dismissBtn,onClick:()=>{o&&(d(!0),l&&l())}},r.a.createElement(s.a,{icon:"no"})):null)};function m(e){switch(e){case a.SUCCESS:return"yes-alt";case a.PRO_TIP:return"lightbulb";case a.ERROR:case a.WARNING:return"warning";case a.INFO:default:return"info"}}},231:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),o=n.n(a),r=n(374),l=n.n(r),i=n(163);const c=({feed:e,onCopy:t,toaster:n,children:a})=>o.a.createElement(l.a,{text:`[instagram feed="${e.id}"]`,onCopy:()=>{n&&n.addToast("feeds/shortcode/copied",()=>o.a.createElement(i.a,{message:"Copied shortcode to clipboard."})),t&&t()}},a)},232:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),o=n.n(a),r=n(378),l=n.n(r);function i({message:e}){return o.a.createElement("pre",{className:l.a.content},e)}},236:function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var a=n(0),o=n.n(a),r=n(183),l=n.n(r),i=n(90),c=n(88),s=n.n(c),u=n(3),m=n(238),d=n(5),p=n(10),b=n(8),_=n(38),g=n(103),f=n(14),h=n(65);function v({automations:e,selected:t,isFakePro:n,onChange:r,onSelect:l,onClick:i}){!n&&r||(r=_.b);const[c,p]=o.a.useState(null);function g(e){l&&l(e)}const f=Object(a.useCallback)(()=>{r(e.concat({type:"hashtag",config:{},promotion:{type:"link",config:{}}}),e.length)},[e]),v=Object(a.useCallback)(t=>()=>{const n=e[t],a=Object(u.h)(n),o=e.slice();o.splice(t+1,0,a),r(o,t+1)},[e]);function y(){p(null)}const C=Object(a.useCallback)(t=>{const n=e.slice();n.splice(t,1),r(n,0),y()},[e]),O=Object(a.useCallback)(n=>{const a=e[t],o=n.map(e=>({type:e.type,config:b.a.Automation.getConfig(e),promotion:b.a.Automation.getPromotion(e)})),l=o.findIndex(e=>e.promotion===a.promotion);r(o,l)},[e]);function N(e){return()=>{g(e),i&&i(e)}}const w=e.map(e=>Object.assign(Object.assign({},e),{id:Object(u.w)()}));return o.a.createElement("div",{className:n?s.a.fakeProList:s.a.list},o.a.createElement("div",{className:s.a.addButtonRow},o.a.createElement(d.a,{type:d.c.SECONDARY,size:d.b.LARGE,onClick:f},"Add automation")),o.a.createElement(m.a,{list:w,handle:"."+s.a.rowDragHandle,setList:O,onStart:function(e){g(e.oldIndex)},animation:200,delay:1e3,fallbackTolerance:5,delayOnTouchOnly:!0},e.map((e,n)=>o.a.createElement(E,{key:n,automation:e,selected:t===n,onClick:N(n),onDuplicate:v(n),onRemove:()=>function(e){p(e)}(n)}))),o.a.createElement(h.a,{isOpen:null!==c,title:"Are you sure?",buttons:["Yes, remove it","No, keep it"],onAccept:()=>C(c),onCancel:y},o.a.createElement("p",null,"Are you sure you want to remove this automation? This ",o.a.createElement("strong",null,"cannot")," be undone!")))}function E({automation:e,selected:t,onClick:n,onDuplicate:a,onRemove:r}){const l=b.a.Automation.getConfig(e),i=b.a.Automation.getPromotion(e),c=b.a.getConfig(i),u=f.a.config.postTypes.find(e=>e.name===c.linkType);return o.a.createElement("div",{className:t?s.a.rowSelected:s.a.row,onClick:n},o.a.createElement("div",{className:s.a.rowDragHandle},o.a.createElement(p.a,{icon:"menu"})),o.a.createElement("div",{className:s.a.rowBox},o.a.createElement("div",{className:s.a.rowHashtags},l.hashtags&&Array.isArray(l.hashtags)?l.hashtags.map(e=>"#"+e).join(", "):o.a.createElement("span",{className:s.a.noHashtagsMessage},"No hashtags")),o.a.createElement("div",{className:s.a.rowSummary},o.a.createElement(g.a,{value:c.linkType},o.a.createElement(g.c,{value:"url"},o.a.createElement("span",{className:s.a.summaryItalics},"Custom URL")),o.a.createElement(g.b,null,()=>u?o.a.createElement("span",null,o.a.createElement("span",{className:s.a.summaryBold},c.postTitle)," ",o.a.createElement("span",{className:s.a.summaryItalics},"(",u.labels.singular_name,")")):o.a.createElement("span",{className:s.a.noPromoMessage},"No promotion")))),o.a.createElement("div",{className:s.a.rowActions},o.a.createElement(d.a,{type:d.c.PILL,size:d.b.SMALL,onClick:Object(_.c)(a),tooltip:"Duplicate automation"},o.a.createElement(p.a,{icon:"admin-page"})),o.a.createElement(d.a,{type:d.c.DANGER_PILL,size:d.b.SMALL,onClick:Object(_.c)(r),tooltip:"Remove automation"},o.a.createElement(p.a,{icon:"trash"})))))}var y=n(294),C=n.n(y),O=n(94),N=n(56),w=n(84),A=n(120),k=n(173),T=n(11);let S;function P({automation:e,isFakePro:t,onChange:n}){var a;!t&&n||(n=_.b),void 0===S&&(S=b.a.getTypes().filter(e=>"-more-"!==e.id).map(e=>({value:e.id,label:e.label})));const r=b.a.Automation.getPromotion(e),l=b.a.getType(r),i=b.a.getConfig(r),c=null!==(a=b.a.Automation.getConfig(e).hashtags)&&void 0!==a?a:[];return o.a.createElement(O.a,null,e&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:Object(T.b)(O.a.padded,t?C.a.fakePro:null)},o.a.createElement(w.a,{id:"sli-auto-promo-hashtags",label:"Promote posts with any of these hashtags",wide:!0},o.a.createElement(A.a,{id:"sli-auto-promo-hashtags",value:c,onChange:function(t){n(Object.assign(Object.assign({},e),{config:{hashtags:t}}))},autoFocus:!t})),o.a.createElement(w.a,{id:"auto-promo-type",label:"Promotion type",wide:!0},o.a.createElement(N.a,{id:"sli-auto-promo-type",value:e.promotion.type,onChange:function(t){n(Object.assign(Object.assign({},e),{type:t.value}))},options:S,isSearchable:!1,isCreatable:!1,isClearable:!1}))),o.a.createElement("div",{className:t?C.a.fakePro:null},o.a.createElement(k.a,{type:l,config:i,onChange:function(t){n(Object.assign(Object.assign({},e),{promotion:Object.assign(Object.assign({},e.promotion),{config:t})}))},hideRemove:!0}))),!e&&o.a.createElement("div",{className:O.a.padded},o.a.createElement("p",null,"Automatically link Instagram posts from any source that contain specific hashtags to posts,"," ","pages, products, custom links, and more."," ",o.a.createElement("a",{href:"#"},"Learn more")),o.a.createElement("p",null,"To get started, create an automation or select an existing one.")))}function j({automations:e,isFakePro:t,onChange:n}){e=null!=e?e:[],n=null!=n?n:_.b;const[r,c]=o.a.useState(0),[s,m]=o.a.useState("content"),d=Object(u.g)(r,e),p=e.length>0,b=()=>m("content"),g=()=>m("sidebar"),f=Object(a.useCallback)(()=>e[d],[e,d]);function h(e){c(e)}function E(e){h(e),g()}const y=Object(a.useCallback)((e,t)=>{n(e),void 0!==t&&c(t)},[n]),C=Object(a.useCallback)(t=>{n(Object(u.d)(e,d,t))},[d,n]),O=Object(a.useCallback)(()=>{n(e.concat({type:"hashtag",config:{},promotion:{type:"link",config:{}}})),c(0),g()},[e]);return o.a.createElement(i.a,{primary:"content",current:s,sidebar:p&&(e=>o.a.createElement(o.a.Fragment,null,e&&o.a.createElement(i.a.Navigation,{icon:"arrow-left-alt",text:"Automations",onClick:b}),o.a.createElement(P,{automation:f(),onChange:C,isFakePro:t}))),content:n=>o.a.createElement("div",{className:l.a.content},!p&&o.a.createElement(L,{onCreate:O}),p&&o.a.createElement(o.a.Fragment,null,n&&o.a.createElement("div",{className:l.a.mobileInstructions},o.a.createElement("p",null,"Click or tap on an automation to change its settings")),o.a.createElement(v,{automations:e,selected:d,isFakePro:t,onChange:y,onSelect:h,onClick:E})))})}function L({onCreate:e}){return o.a.createElement("div",{className:l.a.tutorial},o.a.createElement("div",{className:l.a.tutorialBox},o.a.createElement("div",{className:l.a.tutorialText},o.a.createElement("h1",null,"Automatically drive more conversions with Instagram"),o.a.createElement("p",null,"Link Instagram posts to your products, blog posts, landing pages, and more."),o.a.createElement("p",null,o.a.createElement("b",null,"Promotions help you drive traffic and increase conversions through social proof.")),o.a.createElement("p",null,"For example, create an ",o.a.createElement("b",null,"Instagram hashtag"),", let’s call it ",o.a.createElement("b",null,"#mymaxidress"),"."," "," Display photos from Instagram that use this hashtag and feature your dress,"," "," then have them ",o.a.createElement("b",null,"link directly to your product page"),", whether it’s on the"," "," same website or not."),o.a.createElement("p",null,"Every new Instagram photo that Spotlight finds with this hashtag will then",o.a.createElement("br",null),o.a.createElement("b",null,"automatically link to the product page"),"."),o.a.createElement("p",null,o.a.createElement("b",null,"Simple. Powerful. Effective."))),o.a.createElement(d.a,{type:d.c.SECONDARY,size:d.b.HERO,onClick:e},"Create your first automation")))}},239:function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var a=n(0),o=n.n(a),r=n(116),l=n.n(r),i=n(4),c=n(7),s=n(8),u=n(76),m=n(22),d=n(90),p=n(94),b=n(84),_=n(56),g=n(173);function f({media:e,promo:t,isLastPost:n,isFakePro:r,onChange:l,onNextPost:i}){let c,u,m;e&&(c=t?t.type:s.a.getTypes()[0].id,u=s.a.getTypeById(c),m=s.a.getConfig(t));const d=Object(a.useCallback)(e=>{const t={type:u.id,config:e};l(t)},[e,u]),f=Object(a.useCallback)(e=>{const t={type:e.value,config:m};l(t)},[e,m]);if(!e)return o.a.createElement(p.a,{disabled:r},o.a.createElement("div",{className:p.a.padded},o.a.createElement("p",null,"Promote your blog posts, landing pages, products, and much more through your Instagram feed."),o.a.createElement("p",{style:{fontWeight:"bold"}},"How it works:"),o.a.createElement("ol",{style:{marginTop:0}},o.a.createElement("li",null,"Select a post from the preview on the left."),o.a.createElement("li",null,"Choose what the post should link to.")),o.a.createElement("p",null,"That’s it!")));const h=void 0!==s.a.getAutoPromo(e);return o.a.createElement(p.a,{disabled:r},o.a.createElement("div",{className:p.a.padded},o.a.createElement(b.a,{label:"Promotion type",wide:!0},o.a.createElement(_.a,{value:c,onChange:f,options:s.a.getTypes().map(e=>({value:e.id,label:e.label}))}))),o.a.createElement(g.a,{key:e?e.id:void 0,type:u,config:m,onChange:d,hasAuto:h,showNextBtn:!0,isNextBtnDisabled:n,onNext:i}))}var h=n(172),v=n(229),E=n(11),y=n(230),C=n(38),O=n(98);const N={};function w({promotions:e,isFakePro:t,onChange:n}){!t&&n||(n=C.b);const[a,r]=o.a.useState("content"),[p,b]=o.a.useState(i.b.list.length>0?i.b.list[0].id:null),[_,g]=o.a.useState(),E=o.a.useRef(new c.a);k();const w=()=>r("content");function k(){E.current=new c.a(new c.a.Options({accounts:[p]}))}const T=o.a.useCallback(e=>{b(e.id),k()},[b]),S=o.a.useCallback((e,t)=>{g(t)},[g]),P=e=>e&&r("sidebar"),j=o.a.useCallback(()=>{g(e=>e+1)},[g]),L=p?m.a.ensure(N,p,new u.c(!1,!1)):new u.c(!1,!1),x=L.media[_],I=x?s.a.getPromoFromDictionary(x,e):void 0,R=o.a.useCallback(t=>{n(m.a.withEntry(e,x.id,t))},[x,e,n]);return o.a.createElement(o.a.Fragment,null,0===i.b.list.length&&o.a.createElement("div",{className:l.a.tutorial},o.a.createElement("div",{className:l.a.tutorialBox},o.a.createElement("div",{className:l.a.tutorialText},o.a.createElement("h1",null,"Set up global promotions across all feeds"),o.a.createElement("p",null,"Link Instagram posts to your products, blog posts, landing pages, and more."),o.a.createElement("p",null,o.a.createElement("b",null,"Promotions help you drive traffic and increase conversions through social proof.")),o.a.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."),o.a.createElement("p",null,"Connect your first Instagram account to set up global promotions."),o.a.createElement("p",null,o.a.createElement("b",null,"Simple. Powerful. Effective."))),o.a.createElement(O.a,{onConnect:b},"Connect your Instagram account"))),i.b.list.length>0&&o.a.createElement(d.a,{primary:"content",current:a,sidebar:e=>o.a.createElement(o.a.Fragment,null,e&&o.a.createElement(o.a.Fragment,null,o.a.createElement(d.a.Navigation,{icon:"arrow-left-alt",text:"Back",onClick:w}),o.a.createElement(y.a,{media:x})),o.a.createElement(f,{media:x,promo:I,isLastPost:_>=L.media.length-1,onChange:R,onNextPost:j,isFakePro:t})),content:e=>o.a.createElement(o.a.Fragment,null,i.b.list.length>1&&o.a.createElement(A,{selected:p,onSelect:T}),o.a.createElement("div",{className:l.a.content},e&&o.a.createElement("div",{className:l.a.mobileInstructions},o.a.createElement("p",null,"Click or tap a post to set up a promotion for it")),o.a.createElement(h.a,{key:E.current.options.accounts.join("-"),feed:E.current,store:L,selected:_,onSelectMedia:S,onClickMedia:P,autoFocusFirst:!0,disabled:t},(e,n)=>{const a=t?void 0:s.a.getPromo(e);return o.a.createElement(v.a,{media:e,promo:a,selected:n===_})})))}))}function A({selected:e,onSelect:t}){return o.a.createElement("div",{className:l.a.accountList},o.a.createElement("div",{className:l.a.accountScroller},i.b.list.map(n=>{const a="global-promo-account-"+n.id;return o.a.createElement("div",{key:n.id,className:e===n.id?l.a.accountSelected:l.a.accountButton,onClick:()=>t(n),role:"button","aria-labelledby":a},o.a.createElement("div",{className:l.a.profilePic},o.a.createElement("img",Object.assign({src:i.b.getProfilePicUrl(n),alt:n.username},E.e))),o.a.createElement("div",{id:a,className:l.a.username},o.a.createElement("span",null,"@"+n.username)))})))}},240:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),o=n.n(a),r=n(114),l=n.n(r),i=n(30),c=n(4),s=n(45),u=n(5),m=n(10),d=n(115),p=n.n(d),b=n(55),_=n(14);function g({isColumn:e,onConnectPersonal:t,onConnectBusiness:n}){const[r,l]=o.a.useState(!1),[i,c]=o.a.useState(""),[s,m]=o.a.useState(""),[d,_]=o.a.useState(!1);Object(a.useEffect)(()=>{_(i.length>145&&!i.trimLeft().startsWith("IG"))},[i]);const g=o.a.createElement("div",{className:p.a.helpMessage},!1),f=o.a.createElement("div",{className:p.a.buttonContainer},e&&g,o.a.createElement(u.a,{className:p.a.button,onClick:()=>{d?n(i,s):t(i)},type:u.c.PRIMARY,disabled:0===i.length&&(0===s.length||!d)},"Connect"));return o.a.createElement("div",{className:e?p.a.column:p.a.row},o.a.createElement(b.a,{label:"Connect using an access token (for developers)",stealth:!0,isOpen:r,onClick:()=>l(!r)},o.a.createElement("div",{className:p.a.content},o.a.createElement("label",{className:p.a.label,htmlFor:"manual-connect-access-token"},o.a.createElement("div",null,"Enter your Instagram or Facebook access token")),o.a.createElement("div",{className:p.a.bottom},o.a.createElement("input",{id:"manual-connect-access-token",type:"text",value:i,onChange:e=>c(e.target.value),placeholder:"Your access token"}),!d&&f)),d&&o.a.createElement("div",{className:p.a.content},o.a.createElement("label",{className:p.a.label,htmlFor:"manual-connect-user-id"},o.a.createElement("div",null,"This access token is for a ",o.a.createElement("strong",null,"Business")," account."," ","Enter the user ID:")),o.a.createElement("div",{className:p.a.bottom},o.a.createElement("input",{id:"manual-connect-user-id",type:"text",value:s,onChange:e=>m(e.target.value),placeholder:"Enter the user ID"}),d&&f)),!e&&g))}function f({onConnect:e,beforeConnect:t,useColumns:n,showPrompt:a}){a=null==a||a,e||(e=()=>{});const r=e=>{i.a.State.connectSuccess&&t&&t(e)};return o.a.createElement("div",{className:l.a.root},a&&o.a.createElement("p",{className:l.a.promptMsg},"Choose the type of account to connect:"),o.a.createElement("div",{className:n?l.a.typesColumns:l.a.typesRows},o.a.createElement("div",{className:l.a.type},o.a.createElement(u.a,{type:u.c.PRIMARY,size:u.b.HERO,onClick:()=>i.a.openAuthWindow(c.a.Type.PERSONAL,s.a.ANIMATION_DELAY,r).then(e).catch(()=>{})},"Connect your Personal account"),o.a.createElement("div",{className:l.a.capabilities},o.a.createElement(h,null,"Connects directly through Instagram"),o.a.createElement(h,null,"Show posts from your account"))),o.a.createElement("div",{className:l.a.type},o.a.createElement(u.a,{type:u.c.SECONDARY,size:u.b.HERO,onClick:()=>i.a.openAuthWindow(c.a.Type.BUSINESS,s.a.ANIMATION_DELAY,r).then(e).catch(()=>{})},"Connect your Business account"),o.a.createElement("div",{className:l.a.capabilities},o.a.createElement(h,null,"Connects through your Facebook page"),o.a.createElement(h,null,"Show posts from your account"),o.a.createElement(h,null,"Show posts where you are tagged"),o.a.createElement(h,null,"Show posts with a specific hashtag from all across Instagram"),o.a.createElement("div",{className:l.a.businessLearnMore},o.a.createElement(m.a,{icon:"editor-help"}),o.a.createElement("a",{href:_.a.resources.businessAccounts,target:"_blank"},"Learn more about Business accounts"))))),o.a.createElement("div",{className:l.a.connectAccessToken},o.a.createElement(g,{isColumn:n,onConnectPersonal:t=>i.a.manualConnectPersonal(t,s.a.ANIMATION_DELAY,r).then(e),onConnectBusiness:(t,n)=>i.a.manualConnectBusiness(t,n,s.a.ANIMATION_DELAY,r).then(e)})))}const h=e=>{var{children:t}=e,n=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}(e,["children"]);return o.a.createElement("div",Object.assign({className:l.a.capability},n),o.a.createElement(m.a,{icon:"yes"}),o.a.createElement("div",null,t))}},241:function(e,t,n){e.exports={root:"ModalPrompt__root",button:"ModalPrompt__button"}},242:function(e,t,n){e.exports={button:"ColorPicker__button","color-preview":"ColorPicker__color-preview",colorPreview:"ColorPicker__color-preview",popper:"ColorPicker__popper"}},248:function(e,t,n){e.exports={logo:"LogoNewsMenu__logo","logo-image":"LogoNewsMenu__logo-image",logoImage:"LogoNewsMenu__logo-image",counter:"LogoNewsMenu__counter"}},252:function(e,t,n){"use strict";t.a={Sizes:{WIDE:1200,LARGE:1180,MEDIUM:960,SMALL:782,NARROW:600,ALL:[1200,1180,960,782,600]}}},26:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a,o=n(1),r=n(7),l=n(18),i=n(14),c=function(e,t,n,a){var o,r=arguments.length,l=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,a);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(l=(r<3?o(l):r>3?o(t,n,l):o(t,n))||l);return r>3&&l&&Object.defineProperty(t,n,l),l};!function(e){class t{constructor(e={}){t.setFromObject(this,null!=e?e:{})}static setFromObject(e,t={}){var n,a,o,l,i;e.id=null!==(n=t.id)&&void 0!==n?n:null,e.name=null!==(a=t.name)&&void 0!==a?a:"",e.usages=null!==(o=t.usages)&&void 0!==o?o:[],e.options=new r.a.Options(null!==(l=e.options)&&void 0!==l?l:{}),r.a.Options.setFromObject(e.options,null!==(i=t.options)&&void 0!==i?i:{})}get label(){return t.getLabel(this.name)}static getLabel(e){return e.length>0?e:this.getDefaultName()}static getDefaultName(){return"(no name)"}}function n(n){if("object"!=typeof n||!Array.isArray(n.data))throw"Spotlight encountered a problem trying to load your feeds. Kindly contact customer support for assistance.";e.list.replace(n.data.map(e=>new t(e)))}c([o.n],t.prototype,"id",void 0),c([o.n],t.prototype,"name",void 0),c([o.n],t.prototype,"usages",void 0),c([o.n],t.prototype,"options",void 0),c([o.h],t.prototype,"label",null),e.SavedFeed=t,e.list=Object(o.n)([]),e.loadFeeds=()=>l.a.getFeeds().then(n).catch(e=>{throw l.a.getErrorReason(e)}),e.getById=t=>(t="string"==typeof t?parseInt(t):t)?e.list.find(e=>e.id==t):void 0,e.hasFeeds=()=>e.list.length>0,e.create=function(n,a){const o=new t({id:null,name:s(n),options:new r.a.Options(a)});return e.list.push(o),o},e.saveFeed=function(n){return i.a.restApi.saveFeed(n).then(a=>{const o=new t(a.data.feed);if(null===n.id)e.list.push(o);else{const t=e.list.findIndex(e=>e.id===n.id);e.list[t]=o}return o})},e.deleteFeed=function(t){const n=null!==t.id?e.list.findIndex(e=>e.id===t.id):e.list.findIndex(e=>e===t);return n>=0&&e.list.splice(n,1),null!==t.id?i.a.restApi.deleteFeed(t.id).catch(e=>{}):new Promise(e=>e())};const a=new RegExp("([\\w\\s]+)\\s?\\((\\d+)\\)?");function s(t){const n=u(t)[0],a=e.list.map(e=>u(e.name)).filter(e=>e[0]===n),o=a.reduce((e,t)=>Math.max(e,t[1]),1);return a.length>0?`${n} (${o+1})`:t.trim()}function u(e){e=e.trim();const t=a.exec(e);return t?[t[1].trim(),parseInt(t[2])]:[e,0]}}(a||(a={}))},283:function(e,t,n){e.exports={root:"ClearCacheButton__root layout__flex-row","doc-link":"ClearCacheButton__doc-link",docLink:"ClearCacheButton__doc-link"}},286:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),o=n.n(a);n(318);const r=({children:e})=>o.a.createElement("div",{className:"button-group"},e)},287: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"}},293:function(e,t,n){e.exports={root:"Toaster__root layout__z-highest",container:"Toaster__container"}},294:function(e,t,n){e.exports={"fake-pro":"AutoPromotionsSidebar__fake-pro",fakePro:"AutoPromotionsSidebar__fake-pro"}},30:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a,o=n(4),r=n(29),l=n(14),i=n(1),c=n(612),s=n(610),u=n(611);!function(e){let t=null,n=null;e.State=window.SliAccountManagerState=Object(i.n)({accessToken:null,connectSuccess:!1,connectedId:null});const a=Object(c.a)(new Date,{days:7});function m(t,n,a){a&&a(e.State.connectedId),setTimeout(()=>o.b.loadAccounts().then(()=>{const t=o.b.getById(e.State.connectedId),a=new p(e.ACCOUNT_CONNECTED_EVENT,t);document.dispatchEvent(a),n(e.State.connectedId)}),t)}function d(e){return e.type===o.a.Type.BUSINESS&&e.accessToken&&e.accessToken.expiry&&Object(s.a)(a,Object(u.a)(e.accessToken.expiry))}e.manualConnectPersonal=function(t,n=0,a){return new Promise((o,r)=>{e.State.connectSuccess=!1,l.a.restApi.connectPersonal(t).then(t=>{e.State.connectSuccess=!0,e.State.connectedId=t.data.accountId,m(n,o,a)}).catch(r)})},e.manualConnectBusiness=function(t,n,a=0,o){return new Promise((r,i)=>{e.State.connectSuccess=!1,l.a.restApi.connectBusiness(t,n).then(t=>{e.State.connectSuccess=!0,e.State.connectedId=t.data.accountId,m(a,r,o)}).catch(i)})},e.openAuthWindow=function(a,i=0,c){return new Promise((s,u)=>{if(e.State.connectedId=null,null==t||t.closed){const e=Object(r.a)(700,800),n=a===o.a.Type.PERSONAL?l.a.restApi.config.personalAuthUrl:l.a.restApi.config.businessAuthUrl;t=Object(r.c)(n,"_blank",Object.assign({dependent:"yes",resizable:"yes",toolbar:"no",location:"no",scrollbars:"no"},e))}else t.focus();null==t||t.closed||(n=setInterval(()=>{t&&!t.closed||(clearInterval(n),null===e.State.connectedId?u&&u():m(i,s,c))},500))})},e.updateAccount=function(e){return l.a.restApi.updateAccount(e)},e.deleteAccount=function(e){return l.a.restApi.deleteAccount(e).then(o.b.loadFromResponse)},e.getExpiringTokenAccounts=function(){return o.b.list.filter(d)},e.isTokenExpiring=d,e.ACCOUNT_CONNECTED_EVENT="sli/account/connected";class p extends CustomEvent{constructor(e,t){super(e,{detail:{account:t}})}}e.AccountConnectedEvent=p}(a||(a={}))},318:function(e,t,n){},353:function(e,t,n){},356:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(32),o=n(93),r=n(21);const l={factories:Object(a.c)({"router/history":()=>Object(o.a)(),"router/store":e=>r.a.useHistory(e.get("router/history"))}),run:e=>{e.get("router/store")}}},357:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(16);function o({when:e,is:t,isRoot:n,render:o}){const r=Object(a.g)().get(e);return r===t||!t&&!r||n&&!r?o():null}},358:function(e,t,n){e.exports={root:"ConnectAccountButton__root"}},364:function(e,t,n){e.exports={"pro-pill":"SpoilerProLabel__pro-pill",proPill:"SpoilerProLabel__pro-pill"}},365:function(e,t,n){e.exports={pill:"ProPill__pill"}},368:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),o=n.n(a),r=n(11),l=(n(430),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});const i=e=>{var{className:t,unit:n}=e,a=l(e,["className","unit"]);const i=Object(r.b)("unit-input__field",t);return o.a.createElement("div",{className:"unit-input"},o.a.createElement("input",Object.assign({},a,{className:i})),o.a.createElement("div",{className:"unit-input__unit"},o.a.createElement("span",null,n)))}},370:function(e,t,n){"use strict";var a=n(0),o=n.n(a),r=n(45),l=n(125),i=n(17),c=n(109),s=n(14),u=n(6);t.a=Object(u.b)((function({isOpen:e,onClose:t,onSave:n}){return o.a.createElement(r.a,{title:"Global filters",isOpen:e,onClose:()=>{i.b.isDirty&&!confirm("You have unsaved changes. If you close the window now, your settings will not be saved. Click OK to close anyway.")||t()}},o.a.createElement(r.a.Content,null,o.a.createElement(c.a,{page:s.a.settings.pages.find(e=>"filters"===e.id)})),o.a.createElement(r.a.Footer,null,o.a.createElement(l.a,{disabled:!i.b.isDirty,isSaving:i.b.isSaving,onClick:()=>{i.b.save().then(()=>{n&&n()})}})))}))},371:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),o=n.n(a),r=n(11);n(596);const l=({name:e,className:t,disabled:n,value:a,onChange:l,options:i})=>{const c=e=>{!n&&e.target.checked&&l&&l(e.target.value)},s=Object(r.b)(Object(r.a)("radio-group",{"--disabled":n}),t);return o.a.createElement("div",{className:s},i.map((t,n)=>o.a.createElement("label",{className:"radio-group__option",key:n},o.a.createElement("input",{type:"radio",name:e,value:t.value,checked:a===t.value,onChange:c}),o.a.createElement("span",null,t.label))))}},372:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),o=n.n(a);n(597);const r=({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.a.createElement("span",{className:"loading-spinner",style:n})}},373:function(e,t,n){"use strict";var a=n(0),o=n.n(a),r=n(4),l=n(65),i=n(89),c=n(30),s=n(6),u=n(14);t.a=Object(s.b)((function({}){Object(a.useEffect)(()=>{const e=e=>{const a=e.detail.account;n||m||a.type!==r.a.Type.PERSONAL||a.customBio.length||a.customProfilePicUrl.length||(t(a),s(!0))};return document.addEventListener(c.a.ACCOUNT_CONNECTED_EVENT,e),()=>document.removeEventListener(c.a.ACCOUNT_CONNECTED_EVENT,e)},[]);const[e,t]=o.a.useState(null),[n,s]=o.a.useState(!1),[m,d]=o.a.useState(!1),p=()=>{c.a.State.connectedId=null};return o.a.createElement(o.a.Fragment,null,o.a.createElement(l.a,{title:"You've successfully connected your account!",buttons:["Yes","No, maybe later"],isOpen:n,onAccept:()=>{s(!1),d(!0)},onCancel:()=>{s(!1),p()}},o.a.createElement("p",null,"One more thing ..."),o.a.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.a.createElement("p",null,o.a.createElement("a",{href:u.a.resources.customPersonalInfoUrl,target:"_blank"},"What's this about?"))),o.a.createElement(i.a,{isOpen:m,onClose:()=>{d(!1),p()},account:e}))}))},375:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(1),o=n(3),r=function(e,t,n,a){var o,r=arguments.length,l=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,a);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(l=(r<3?o(l):r>3?o(t,n,l):o(t,n))||l);return r>3&&l&&Object.defineProperty(t,n,l),l};class l{constructor(e){this.ttl=e,this.toasts=new Array}addToast(e,t,n){this.toasts.push({key:e+Object(o.w)(),component:t,ttl:n})}removeToast(e){const t=this.toasts.findIndex(t=>t.key===e);t>-1&&this.toasts.splice(t,1)}}r([a.n],l.prototype,"toasts",void 0),r([a.f],l.prototype,"addToast",null),r([a.f],l.prototype,"removeToast",null)},376:function(e,t,n){e.exports={menu:"NotificationMenu__menu"}},378:function(e,t,n){e.exports={content:"ErrorToast__content"}},384:function(e,t,n){"use strict";var a=n(0),o=n.n(a),r=n(293),l=n.n(r),i=n(182),c=n.n(i),s=n(10);function u({children:e,ttl:t,onExpired:n}){t=null!=t?t:0;const[r,l]=o.a.useState(!1);let i=o.a.useRef(),u=o.a.useRef();const m=()=>{t>0&&(i.current=setTimeout(p,t))},d=()=>{clearTimeout(i.current)},p=()=>{l(!0),u.current=setTimeout(b,200)},b=()=>{n&&n()};Object(a.useEffect)(()=>(m(),()=>{d(),clearTimeout(u.current)}),[]);const _=r?c.a.rootFadingOut:c.a.root;return o.a.createElement("div",{className:_,onMouseOver:d,onMouseOut:m},o.a.createElement("div",{className:c.a.content},e),o.a.createElement("button",{className:c.a.dismissBtn,onClick:()=>{d(),p()}},o.a.createElement(s.a,{icon:"no-alt",className:c.a.dismissIcon})))}var m=n(6);t.a=Object(m.b)((function({store:e}){return o.a.createElement("div",{className:l.a.root},o.a.createElement("div",{className:l.a.container},e.toasts.map(t=>{var n;return o.a.createElement(u,{key:t.key,ttl:null!==(n=t.ttl)&&void 0!==n?n:e.ttl,onExpired:()=>{return n=t.key,void e.removeToast(n);var n}},o.a.createElement(t.component))})))}))},411:function(e,t,n){},425:function(e,t,n){},426:function(e,t,n){},427:function(e,t,n){},428:function(e,t,n){},430:function(e,t,n){},45:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),o=n.n(a),r=n(33),l=n.n(r),i=n(11),c=(n(425),n(16)),s=n(5),u=n(10);function m({children:e,className:t,isOpen:n,icon:r,title:s,width:u,height:d,onClose:p,allowShadeClose:b,focusChild:_,portalTo:g}){const f=o.a.useRef(),[h]=Object(c.a)(n,!1,m.ANIMATION_DELAY);if(Object(c.d)("keydown",e=>{"Escape"===e.key&&(p&&p(),e.preventDefault(),e.stopPropagation())},[],[p]),Object(a.useEffect)(()=>{f&&f.current&&n&&(null!=_?_:f).current.focus()},[]),!h)return null;const v={width:u=null!=u?u:600,height:d},E=Object(i.b)("modal",n?"modal--open":null,n?null:"modal--close",t,"wp-core-ui-override");b=null==b||b;const y=o.a.createElement("div",{className:E},o.a.createElement("div",{className:"modal__shade",tabIndex:-1,onClick:()=>{b&&p&&p()}}),o.a.createElement("div",{ref:f,className:"modal__container",style:v,tabIndex:-1},s?o.a.createElement(m.Header,null,o.a.createElement("h1",null,o.a.createElement(m.Icon,{icon:r}),s),o.a.createElement(m.CloseBtn,{onClick:p})):null,e));let C=g;if(void 0===C){const e=document.getElementsByClassName("spotlight-modal-target");C=0===e.length?document.body:e.item(0)}return l.a.createPortal(y,C)}!function(e){e.ANIMATION_DELAY=120,e.CloseBtn=({onClick:e})=>o.a.createElement(s.a,{className:"modal__close-btn",type:s.c.NONE,onClick:e,tooltip:"Close"},o.a.createElement("span",{className:"dashicons dashicons-no-alt"})),e.Icon=({icon:e})=>e?o.a.createElement(u.a,{icon:e,className:"modal__icon"}):null,e.Header=({children:e})=>o.a.createElement("div",{className:"modal__header"},e),e.Content=({children:e})=>o.a.createElement("div",{className:"modal__scroller"},o.a.createElement("div",{className:"modal__content"},e)),e.Footer=({children:e})=>o.a.createElement("div",{className:"modal__footer"},e)}(m||(m={}))},5:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return u}));var a,o,r=n(0),l=n.n(r),i=n(11),c=n(220),s=(n(318),n(3));!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"}(a||(a={})),function(e){e[e.SMALL=0]="SMALL",e[e.NORMAL=1]="NORMAL",e[e.LARGE=2]="LARGE",e[e.HERO=3]="HERO"}(o||(o={}));const u=l.a.forwardRef((e,t)=>{let{children:n,className:r,type:u,size:m,active:d,tooltip:p,tooltipPlacement:b,onClick:_,linkTo:g}=e,f=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}(e,["children","className","type","size","active","tooltip","tooltipPlacement","onClick","linkTo"]);u=null!=u?u:a.SECONDARY,m=null!=m?m:o.NORMAL,b=null!=b?b:"bottom";const[h,v]=l.a.useState(!1),E=()=>v(!0),y=()=>v(!1),C=Object(i.b)(r,u!==a.NONE?"button":null,u===a.PRIMARY?"button-primary":null,u===a.SECONDARY?"button-secondary":null,u===a.LINK?"button-secondary button-tertiary":null,u===a.PILL?"button-secondary button-tertiary button-pill":null,u===a.TOGGLE?"button-toggle":null,u===a.TOGGLE&&d?"button-primary button-active":null,u!==a.TOGGLE||d?null:"button-secondary",u===a.DANGER?"button-secondary button-danger":null,u===a.DANGER_LINK?"button-tertiary button-danger":null,u===a.DANGER_PILL?"button-tertiary button-danger button-danger-pill":null,m===o.SMALL?"button-small":null,m===o.LARGE?"button-large":null,m===o.HERO?"button-hero":null),O=e=>{_&&_(e)};let N="button";if("string"==typeof g?(N="a",f.href=g):f.type="button",f.tabIndex=0,!p)return l.a.createElement(N,Object.assign({ref:t,className:C,onClick:O},f),n);const w="string"==typeof p,A="btn-tooltip-"+Object(s.w)(),k=w?p:l.a.createElement(p,{id:A});return l.a.createElement(c.a,{visible:h&&!e.disabled,placement:b,delay:300},({ref:e})=>l.a.createElement(N,Object.assign({ref:t?Object(i.d)(e,t):e,className:C,onClick:O,onMouseEnter:E,onMouseLeave:y},f),n),k)})},55:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),o=n.n(a),r=n(11),l=(n(426),n(10)),i=n(16);const c=o.a.forwardRef((function({label:e,className:t,isOpen:n,defaultOpen:a,showIcon:c,disabled:s,stealth:u,fitted:m,scrollIntoView:d,hideOnly:p,onClick:b,children:_},g){p=null!=p&&p,c=null==c||c,s=null!=s&&s,d=null!=d&&d;const[f,h]=o.a.useState(!!a),v=void 0!==n;v||(n=f);const E=o.a.useRef(),y=Object(i.j)(E),C=()=>{s||(!n&&d&&y(),v||h(!n),b&&b())},O=n&&void 0===b&&!c,N=O?void 0:0,w=O?void 0:"button",A=Object(r.a)("spoiler",{"--open":n,"--disabled":s,"--fitted":m,"--stealth":u,"--static":O}),k=Object(r.b)(A,t),T=n?"arrow-up-alt2":"arrow-down-alt2",S=Array.isArray(e)?e.map((e,t)=>o.a.createElement(o.a.Fragment,{key:t},e)):"string"==typeof e?o.a.createElement("span",null,e):e;return o.a.createElement("div",{ref:Object(r.d)(E,g),className:k},o.a.createElement("div",{className:"spoiler__header",onClick:C,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||C()},role:w,tabIndex:N},o.a.createElement("div",{className:"spoiler__label"},S),c&&o.a.createElement(l.a,{icon:T,className:"spoiler__icon"})),(n||p)&&o.a.createElement("div",{className:"spoiler__content"},_))}))},56:function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return d}));var a=n(0),o=n.n(a),r=n(362),l=n(221),i=n(361),c=n(179),s=n.n(c),u=n(11);const m=(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.a.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.a.primaryColor,n.boxShadow="0 0 0 1px "+s.a.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"})}),d=o.a.forwardRef((e,t)=>{var n;const a=(null!==(n=e.options)&&void 0!==n?n:[]).find(t=>t.value===e.value);e=Object.assign(Object.assign({},e),{id:void 0,className:Object(u.b)("react-select",e.className),classNamePrefix:"react-select",inputId:e.id,menuPosition:"fixed"});const c=m(e),d=e.isCreatable?l.a:e.async?i.a:r.a;return o.a.createElement(d,Object.assign({},e,{ref:t,isSearchable:e.isCreatable,value:a,styles:c,theme:e=>Object.assign(Object.assign({},e),{borderRadius:3,colors:Object.assign(Object.assign({},e.colors),{primary:s.a.primaryColor,primary25:s.a.washedColor})}),menuPlacement:"auto",menuShouldScrollIntoView:!0}))})},594:function(e,t,n){},596:function(e,t,n){},597:function(e,t,n){},65:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),o=n.n(a),r=n(241),l=n.n(r),i=n(45),c=n(5);function s({children:e,title:t,buttons:n,onAccept:a,onCancel:r,isOpen:s,okDisabled:u,cancelDisabled:m}){n=null!=n?n:["OK","Cancel"];const d=()=>r&&r();return o.a.createElement(i.a,{isOpen:s,title:t,onClose:d,className:l.a.root},o.a.createElement(i.a.Content,null,"string"==typeof e?o.a.createElement("p",null,e):e),o.a.createElement(i.a.Footer,null,o.a.createElement(c.a,{className:l.a.button,type:c.c.SECONDARY,onClick:d,disabled:m},n[1]),o.a.createElement(c.a,{className:l.a.button,type:c.c.PRIMARY,onClick:()=>a&&a(),disabled:u},n[0])))}},66:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return b})),n.d(t,"d",(function(){return _}));var a=n(0),o=n.n(a),r=n(167),l=n(296),i=n(297),c=n(16),s=n(14),u=(n(428),n(11));const m=({children:e,className:t,refClassName:n,isOpen:a,onBlur:m,placement:p,modifiers:b,useVisibility:_})=>{p=null!=p?p:"bottom-end",_=null!=_&&_;const g=o.a.useRef(),f=a||_,h=!a&&_,v=Object.assign({preventOverflow:{boundariesElement:document.getElementById(s.a.config.rootId),padding:5}},b),E=()=>{m()},y=e=>{switch(e.key){case"ArrowDown":break;case"Escape":E();break;default:return}e.preventDefault(),e.stopPropagation()};return Object(c.b)(g,E,[g]),Object(c.c)([g],E),o.a.createElement("div",{ref:g,className:Object(u.b)("menu__ref",n)},o.a.createElement(r.c,null,o.a.createElement(l.a,null,t=>e[0](t)),o.a.createElement(i.a,{placement:p,positionFixed:!0,modifiers:v},({ref:n,style:a,placement:r})=>f?o.a.createElement("div",{ref:n,className:"menu",style:d(a,h),"data-placement":r,onKeyDown:y},o.a.createElement("div",{className:"menu__container"+(t?" "+t:"")},e[1])):null)))};function d(e,t){return Object.assign(Object.assign({},e),{opacity:1,pointerEvents:"all",visibility:t?"hidden":"visible"})}const p=({children:e,onClick:t,disabled:n,active:a})=>{const r=Object(u.a)("menu__item",{"--disabled":n,"--active":a});return o.a.createElement("div",{className:r},o.a.createElement("button",{onClick:()=>!a&&!n&&t&&t()},e))},b=({children:e})=>e,_=({children:e})=>o.a.createElement("div",{className:"menu__static"},e)},82:function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var a=n(0),o=n.n(a),r=n(242),l=n.n(r),i=n(369),c=n(16),s=n(13),u=n(167),m=n(296),d=n(297),p=n(11),b=n(14);function _({id:e,value:t,disableAlpha:n,onChange:r}){t=null!=t?t:"#fff";const[_,g]=o.a.useState(t),[f,h]=o.a.useState(!1),v=o.a.useRef(),E=o.a.useRef(),y=o.a.useCallback(()=>h(!1),[]),C=o.a.useCallback(()=>h(e=>!e),[]),O=o.a.useCallback(e=>{g(e.rgb),r&&r(e)},[r]),N=o.a.useCallback(e=>{"Escape"===e.key&&f&&(y(),e.preventDefault(),e.stopPropagation())},[f]);Object(a.useEffect)(()=>g(t),[t]),Object(c.b)(v,y,[E]),Object(c.c)([v,E],y),Object(c.d)("keydown",N,[f]);const w={preventOverflow:{boundariesElement:document.getElementById(b.a.config.rootId),padding:5}};return o.a.createElement(u.c,null,o.a.createElement(m.a,null,({ref:t})=>o.a.createElement("button",{ref:Object(p.d)(v,t),id:e,className:l.a.button,onClick:C},o.a.createElement("span",{className:l.a.colorPreview,style:{backgroundColor:Object(s.a)(_)}}))),o.a.createElement(d.a,{placement:"bottom-end",positionFixed:!0,modifiers:w},({ref:e,style:t})=>f&&o.a.createElement("div",{className:l.a.popper,ref:Object(p.d)(E,e),style:t},o.a.createElement(i.ChromePicker,{color:_,onChange:O,disableAlpha:n}))))}},83:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),o=n.n(a),r=n(365),l=n.n(r),i=n(14),c=n(11);const s=({className:e,children:t})=>{const n=o.a.useCallback(()=>{window.open(i.a.resources.upgradeLocalUrl,"_blank")},[]);return o.a.createElement("span",{className:Object(c.b)(l.a.pill,e),onClick:n,tabIndex:-1},"PRO",t)}},88: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"}},90:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),o=n.n(a),r=n(150),l=n.n(r),i=n(10),c=n(143);function s({content:e,sidebar:t,primary:n,current:r,useDefaults:i}){const[u,m]=Object(a.useState)(n),d=()=>m(b?"content":"sidebar"),p=()=>m(b?"sidebar":"content"),b="content"===(n=null!=n?n:"content"),_="sidebar"===n,g="content"===(r=i?u:r),f="sidebar"===r,h=b?l.a.layoutPrimaryContent:l.a.layoutPrimarySidebar;return o.a.createElement(c.a,{breakpoints:[s.BREAKPOINT]},n=>{const a=n<=s.BREAKPOINT;return o.a.createElement("div",{className:h},e&&(g||!a)&&o.a.createElement("div",{className:l.a.content},i&&o.a.createElement(s.Navigation,{align:b?"right":"left",text:!b&&o.a.createElement("span",null,"Go back"),icon:b?"admin-generic":"arrow-left",onClick:b?p:d}),"function"==typeof e?e(a):null!=e?e:null),t&&(f||!a)&&o.a.createElement("div",{className:l.a.sidebar},i&&o.a.createElement(s.Navigation,{align:_?"right":"left",text:!_&&o.a.createElement("span",null,"Go back"),icon:_?"admin-generic":"arrow-left",onClick:_?p:d}),"function"==typeof t?t(a):null!=t?t:null))})}!function(e){e.BREAKPOINT=968,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",o.a.createElement("div",{className:"right"===n?l.a.navigationRight:l.a.navigationLeft},o.a.createElement("a",{className:l.a.navLink,onClick:a},e&&o.a.createElement(i.a,{icon:e}),o.a.createElement("span",null,null!=t?t:"")))}}(s||(s={}))},92:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),o=n.n(a),r=n(11),l=n(5),i=(n(427),n(10)),c=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};function s(e){var{className:t,children:n,isTransitioning:a}=e,l=c(e,["className","children","isTransitioning"]);const i=Object(r.a)("onboarding",{"--transitioning":a});return o.a.createElement("div",Object.assign({className:Object(r.b)(i,t)},l),Array.isArray(n)?n.map((e,t)=>o.a.createElement("div",{key:t},e)):n)}!function(e){e.TRANSITION_DURATION=200,e.Thin=e=>{var{className:t,children:n}=e,a=c(e,["className","children"]);return o.a.createElement("div",Object.assign({className:Object(r.b)("onboarding__thin",t)},a),n)},e.HelpMsg=e=>{var{className:t,children:n}=e,a=c(e,["className","children"]);return o.a.createElement("div",Object.assign({className:Object(r.b)("onboarding__help-msg",t)},a),n)},e.ProTip=({children:t})=>o.a.createElement(e.HelpMsg,null,o.a.createElement("div",{className:"onboarding__pro-tip"},o.a.createElement("span",null,o.a.createElement(i.a,{icon:"lightbulb"}),o.a.createElement("strong",null,"Pro tip!")),t)),e.StepList=e=>{var{className:t,children:n}=e,a=c(e,["className","children"]);return o.a.createElement("ul",Object.assign({className:Object(r.b)("onboarding__steps",t)},a),n)},e.Step=e=>{var{isDone:t,num:n,className:a,children:l}=e,i=c(e,["isDone","num","className","children"]);return o.a.createElement("li",Object.assign({className:Object(r.b)(t?"onboarding__done":null,a)},i),o.a.createElement("strong",null,"Step ",n,":")," ",l)},e.HeroButton=e=>{var t,{className:n,children:a}=e,i=c(e,["className","children"]);return o.a.createElement(l.a,Object.assign({type:null!==(t=i.type)&&void 0!==t?t:l.c.PRIMARY,size:l.b.HERO,className:Object(r.b)("onboarding__hero-button",n)},i),a)}}(s||(s={}))},94:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),o=n.n(a),r=n(180),l=n.n(r);function i({children:e,padded:t,disabled:n}){return o.a.createElement("div",{className:n?l.a.disabled:l.a.sidebar},o.a.createElement("div",{className:t?l.a.paddedContent:l.a.content},null!=e?e:null))}!function(e){e.padded=l.a.padded}(i||(i={}))},98:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),o=n.n(a),r=n(358),l=n.n(r),i=n(5),c=n(10),s=n(240),u=n(45);function m({isOpen:e,onClose:t,onConnect:n,beforeConnect:a}){return o.a.createElement(u.a,{title:"Connect an Instagram account",isOpen:e,width:650,onClose:t},o.a.createElement(u.a.Content,null,o.a.createElement(s.a,{onConnect:n,beforeConnect:e=>{a&&a(e),t()}})))}function d({children:e,onConnect:t,beforeConnect:n}){const[a,r]=o.a.useState(!1);return o.a.createElement(o.a.Fragment,null,o.a.createElement(i.a,{className:l.a.root,size:i.b.HERO,type:i.c.SECONDARY,onClick:()=>r(!0)},o.a.createElement(c.a,{icon:"instagram"}),null!=e?e:o.a.createElement("span",null,"Connect more Instagram accounts")),o.a.createElement(m,{isOpen:a,onClose:()=>{r(!1)},onConnect:t,beforeConnect:n}))}}}]);
ui/dist/common.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.spotlight=t(require("React"),require("ReactDOM")):e.spotlight=t(e.React,e.ReactDOM)}(window,(function(e,t){return(window.webpackJsonpspotlight=window.webpackJsonpspotlight||[]).push([[6],{0:function(t,o){t.exports=e},10:function(e,t,o){"use strict";var a;o.d(t,"a",(function(){return a})),function(e){let t,o;!function(e){e.IMAGE="IMAGE",e.VIDEO="VIDEO",e.ALBUM="CAROUSEL_ALBUM"}(t=e.Type||(e.Type={})),function(e){let t;!function(e){e.PERSONAL_ACCOUNT="PERSONAL_ACCOUNT",e.BUSINESS_ACCOUNT="BUSINESS_ACCOUNT",e.TAGGED_ACCOUNT="TAGGED_ACCOUNT",e.RECENT_HASHTAG="RECENT_HASHTAG",e.POPULAR_HASHTAG="POPULAR_HASHTAG",e.USER_STORY="USER_STORY"}(t=e.Type||(e.Type={}))}(o=e.Source||(e.Source={})),e.getAsRows=(e,t)=>{e=e.slice(),t=t>0?t:1;let o=[];for(;e.length;)o.push(e.splice(0,t));if(o.length>0){const e=o.length-1;for(;o[e].length<t;)o[e].push({})}return o},e.isFromHashtag=e=>e.source.type===o.Type.POPULAR_HASHTAG||e.source.type===o.Type.RECENT_HASHTAG}(a||(a={}))},109:function(e,t,o){e.exports={root:"MediaTileIcons__root layout__flex-row",icon:"MediaTileIcons__icon"}},13:function(e,t,o){"use strict";o.d(t,"a",(function(){return a}));const a=e=>"string"==typeof e?e:"r"in e?"rgba("+e.r+","+e.g+","+e.b+","+e.a+")":"h"in e?"hsla("+e.h+","+e.s+","+e.l+","+e.a+")":"#fff"},132:function(e,t,o){"use strict";var a=o(0),n=o.n(a),i=o(138),r=o.n(i),l=o(7),s=o(3);t.a=Object(l.b)((function({media:e,options:t,full:o}){if(!t.showCaptions||!e.type)return null;const a={color:t.captionColor,fontSize:t.captionSize},i=o?0:1,l=e.caption?e.caption:"",c=t.captionMaxLength?Object(s.q)(l,t.captionMaxLength):l,d=Object(s.n)(c,void 0,i,t.captionRemoveDots),u=o?r.a.full:r.a.preview;return n.a.createElement("div",{className:u,style:a},d)}))},133:function(e,t,o){"use strict";var a=o(0),n=o.n(a),i=o(109),r=o.n(i),l=o(7),s=o(10),c=o(8);t.a=Object(l.b)((function({media:e,options:t}){if(!e.type||e.source.type===s.a.Source.Type.PERSONAL_ACCOUNT)return null;const o={fontSize:t.lcIconSize,lineHeight:t.lcIconSize},a=Object.assign(Object.assign({},o),{color:t.likesIconColor}),i=Object.assign(Object.assign({},o),{color:t.commentsIconColor}),l={fontSize:t.lcIconSize,width:t.lcIconSize,height:t.lcIconSize};return t.showLcIcons&&n.a.createElement("div",{className:r.a.root},t.showLikes&&n.a.createElement("div",{className:r.a.icon,style:a},n.a.createElement(c.a,{icon:"heart",style:l}),n.a.createElement("span",null,e.likesCount)),t.showComments&&n.a.createElement("div",{className:r.a.icon,style:i},n.a.createElement(c.a,{icon:"admin-comments",style:l}),n.a.createElement("span",null,e.commentsCount)))}))},136:function(e,t,o){"use strict";var a=o(0),n=o.n(a),i=o(83),r=o.n(i),l=o(7),s=o(17),c=o.n(s),d=o(30),u=o.n(d),m=o(10),h=o(3),p=o(8),g=o(66),_=o.n(g),b=o(9),f=o(4);const y=({comment:e,className:t})=>{const o=e.username?n.a.createElement("a",{key:-1,href:f.b.getUsernameUrl(e.username),target:"_blank",className:_.a.username},e.username):null,a=o?(e,t)=>t>0?e:[o,...e]:void 0,i=Object(h.n)(e.text,a),r=1===e.likeCount?"like":"likes";return n.a.createElement("div",{className:Object(b.b)(_.a.root,t)},n.a.createElement("div",{className:_.a.content},n.a.createElement("div",{key:e.id,className:_.a.text},i)),n.a.createElement("div",{className:_.a.metaList},n.a.createElement("div",{className:_.a.date},Object(h.p)(e.timestamp)),e.likeCount>0&&n.a.createElement("div",{className:_.a.likeCount},`${e.likeCount} ${r}`)))};var v=o(170),M=o.n(v),x=o(139),L=o.n(x);function w(e){var{url:t,caption:o,size:a}=e,i=function(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(o[a[n]]=e[a[n]])}return o}(e,["url","caption","size"]);const[r,l]=n.a.useState(!1),s={width:a.width+"px",height:a.height+"px"};return n.a.createElement("img",Object.assign({style:s,className:r?L.a.image:L.a.loading,src:t,alt:o,loading:"eager",onLoad:()=>l(!0)},i))}var O=o(57),E=o.n(O);function S(e){var{album:t,autoplayVideos:o,size:a}=e,i=function(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(o[a[n]]=e[a[n]])}return o}(e,["album","autoplayVideos","size"]);const r=n.a.useRef(),[l,s]=n.a.useState(0),c={transform:`translateX(${100*-l}%)`},d=t.length-1,u={width:a.width+"px",height:a.height+"px"};return n.a.createElement("div",{className:E.a.root,style:u},n.a.createElement("div",{className:E.a.strip,style:c},t.map((e,t)=>n.a.createElement("div",{key:e.id,className:E.a.frame,ref:t>0?void 0:r},n.a.createElement(P,Object.assign({media:e,size:a,autoplayVideos:o},i))))),n.a.createElement("div",{className:E.a.controls},n.a.createElement("div",null,l>0&&n.a.createElement("div",{className:E.a.prevButton,onClick:()=>s(Math.max(l-1,0)),role:"button"},n.a.createElement(p.a,{icon:"arrow-left-alt2"}))),n.a.createElement("div",null,l<d&&n.a.createElement("div",{className:E.a.nextButton,onClick:()=>s(Math.min(l+1,d)),role:"button"},n.a.createElement(p.a,{icon:"arrow-right-alt2"})))),n.a.createElement("div",{className:E.a.indicatorList},t.map((e,t)=>n.a.createElement("div",{key:t,className:t===l?E.a.indicatorCurrent:E.a.indicator}))))}var C=o(60),B=o.n(C),T=o(67);function k(e){var{media:t,thumbnailUrl:o,size:i,autoPlay:r,onGetMetaData:l}=e,s=function(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(o[a[n]]=e[a[n]])}return o}(e,["media","thumbnailUrl","size","autoPlay","onGetMetaData"]);const c=n.a.useRef(),[d,u]=n.a.useState(!r),[m,g]=n.a.useState(r);Object(a.useEffect)(()=>{r?d&&u(!1):d||u(!0),m&&g(r)},[t.url]),Object(a.useLayoutEffect)(()=>{if(c.current){const e=()=>g(!0),t=()=>g(!1);return c.current.addEventListener("play",e),c.current.addEventListener("pause",t),()=>{c.current.removeEventListener("play",e),c.current.removeEventListener("pause",t)}}},[c.current]);const _={width:i.width+"px",height:i.height+"px"};return n.a.createElement("div",{key:t.url,className:B.a.root,style:_},n.a.createElement(T.a,{className:d?B.a.thumbnail:B.a.thumbnailHidden,media:t,size:h.a.LARGE,width:i.width,height:i.height}),n.a.createElement("video",Object.assign({ref:c,className:d?B.a.videoHidden:B.a.video,src:t.url,autoPlay:r,controls:!1,playsInline:!0,loop:!0,onCanPlay:()=>{r&&c.current.play()}},s),n.a.createElement("source",{src:t.url}),"Your browser does not support videos"),n.a.createElement("div",{className:m?B.a.controlPlaying:B.a.controlPaused,onClick:()=>{c.current&&(d?(u(!1),c.current.currentTime=0,c.current.play()):c.current.paused?c.current.play():c.current.pause())}},n.a.createElement(p.a,{className:B.a.playButton,icon:"controls-play"})))}function P({media:e,size:t,autoplayVideos:o}){if(e.url&&e.url.length>0)switch(e.type){case m.a.Type.IMAGE:return n.a.createElement(w,{url:e.url,size:t,caption:e.caption});case m.a.Type.VIDEO:const a=Object(h.k)(e,h.a.LARGE);return n.a.createElement(k,{media:e,size:t,thumbnailUrl:a,autoPlay:o});case m.a.Type.ALBUM:if(e.children&&e.children.length>0)return n.a.createElement(S,{album:e.children,size:t,autoplayVideos:o})}const a={width:t.width,height:t.height};return n.a.createElement("div",{className:M.a.notAvailable,style:a},n.a.createElement("span",null,"Media is not available"))}var I=o(16),N=o(64),A=o(42);const j=new Map;function H({feed:e,mediaList:t,current:o,options:i,onClose:r}){var l,s;const d=t.length-1,[g,_]=n.a.useState(o),b=n.a.useRef(g),v=e=>{_(e),b.current=e;const o=t[b.current];j.has(o.id)?S(j.get(o.id)):(x(!0),Object(h.g)(o,{width:600,height:600}).then(e=>{S(e),j.set(o.id,e)}))},[M,x]=n.a.useState(!1),[L,w]=n.a.useState(function(){const e=window.innerWidth<1080?window.innerWidth/1080*600:600;return{width:e,height:e}}()),[O,E]=n.a.useState(!1),S=e=>{w(e),x(!1),E(e.width+435>=window.innerWidth)};Object(a.useEffect)(()=>{v(o)},[o]),Object(I.l)("resize",()=>{const e=t[b.current];if(j.has(e.id)){let t=j.get(e.id);S(t)}});const C=t[g],B=C.comments?C.comments.slice(0,i.numLightboxComments):[],T=A.a.getLinkText(C,e.options),k=null!==T.text&&null!==T.url;C.caption&&C.caption.length&&B.splice(0,0,{id:C.id,text:C.caption,timestamp:C.timestamp,username:C.username});let H=null,D=null,z=null;switch(C.source.type){case m.a.Source.Type.PERSONAL_ACCOUNT:case m.a.Source.Type.BUSINESS_ACCOUNT:case m.a.Source.Type.TAGGED_ACCOUNT:H="@"+C.username,D=f.b.getUsernameUrl(C.username);const e=f.b.getByUsername(C.username);z=e?f.b.getProfilePicUrl(e):null;break;case m.a.Source.Type.RECENT_HASHTAG:case m.a.Source.Type.POPULAR_HASHTAG:H="#"+C.source.name,D="https://instagram.com/explore/tags/"+C.source.name}const F={fontSize:i.textSize},R=e=>{v(Math.max(0,b.current-1)),e.stopPropagation(),e.preventDefault()},U=e=>{v(Math.min(d,b.current+1)),e.stopPropagation(),e.preventDefault()},W=e=>{r&&r(),e.stopPropagation(),e.preventDefault()};{Object(a.useEffect)(()=>(document.body.addEventListener("keydown",e),()=>document.body.removeEventListener("keydown",e)),[]);const e=e=>{switch(e.key){case"ArrowRight":U(e);break;case"ArrowLeft":R(e);break;case"Escape":W(e)}}}const G={width:L.width+"px",height:L.height+"px"},V=n.a.createElement("div",{style:F,className:c.a.root,tabIndex:-1},n.a.createElement("div",{className:c.a.shade,onClick:W}),M&&n.a.createElement("div",{className:c.a.loadingSkeleton,style:G}),!M&&n.a.createElement("div",{className:O?c.a.wrapVertical:c.a.wrap},n.a.createElement("div",{className:c.a.container,role:"dialog"},n.a.createElement("div",{className:c.a.frame},M?n.a.createElement(N.a,null):n.a.createElement(P,{key:C.id,media:C,size:L})),e.options.lightboxShowSidebar&&n.a.createElement("div",{className:c.a.sidebar},n.a.createElement("div",{className:c.a.sidebarHeader},z&&n.a.createElement("a",{href:D,target:"_blank",className:c.a.sidebarHeaderPicLink},n.a.createElement("img",{className:c.a.sidebarHeaderPic,src:z,alt:null!=H?H:""})),H&&n.a.createElement("div",{className:c.a.sidebarSourceName},n.a.createElement("a",{href:D,target:"_blank"},H))),n.a.createElement("div",{className:c.a.sidebarScroller},B.length>0&&n.a.createElement("div",{className:c.a.sidebarCommentList},B.map((e,t)=>n.a.createElement(y,{key:t,comment:e,className:c.a.sidebarComment})))),n.a.createElement("div",{className:c.a.sidebarFooter},n.a.createElement("div",{className:c.a.sidebarInfo},C.source.type!==m.a.Source.Type.PERSONAL_ACCOUNT&&n.a.createElement("div",{className:c.a.sidebarNumLikes},n.a.createElement("span",null,C.likesCount)," ",n.a.createElement("span",null,"likes")),C.timestamp&&n.a.createElement("div",{className:c.a.sidebarDate},Object(h.p)(C.timestamp))),n.a.createElement("div",{className:c.a.sidebarIgLink},n.a.createElement("a",{href:null!==(l=T.url)&&void 0!==l?l:C.permalink,target:"_blank"},n.a.createElement(p.a,{icon:k?"external":"instagram"}),n.a.createElement("span",null,null!==(s=T.text)&&void 0!==s?s:"View on Instagram")))))),g>0&&n.a.createElement("div",{className:c.a.prevButtonContainer},n.a.createElement("div",{className:c.a.prevButton,onClick:R,role:"button",tabIndex:0},n.a.createElement(p.a,{icon:"arrow-left-alt",className:c.a.buttonIcon}))),g<t.length-1&&n.a.createElement("div",{className:c.a.nextButtonContainer},n.a.createElement("div",{className:c.a.nextButton,onClick:U,role:"button",tabIndex:0},n.a.createElement(p.a,{icon:"arrow-right-alt",className:c.a.buttonIcon})))),n.a.createElement("div",{className:c.a.closeButton,onClick:W,role:"button",tabIndex:0},n.a.createElement(p.a,{icon:"no-alt",className:c.a.buttonIcon})));return u.a.createPortal(V,document.body)}var D=o(6),z=o(36),F=o.n(z),R=o(140),U=o.n(R);const W=Object(l.b)(({options:e})=>{const t="https://instagram.com/"+e.account.username,o={color:e.followBtnTextColor,backgroundColor:e.followBtnBgColor};return n.a.createElement("a",{href:t,target:"__blank",className:U.a.link},n.a.createElement("button",{className:U.a.button,style:o},e.followBtnText))});var G=o(29),V=o.n(G),$=o(161),K=o(160),q=Object(l.b)((function({stories:e,options:t,onClose:o}){const[i,r]=n.a.useState(0),l=e.length-1,[s,c]=n.a.useState(0),[d,h]=n.a.useState(0);Object(a.useEffect)(()=>{0!==s&&c(0)},[i]);const g=i<l,_=i>0,b=()=>o&&o(),f=()=>i<l?r(i+1):b(),y=()=>r(e=>Math.max(e-1,0)),v=e[i],M="https://instagram.com/"+t.account.username,x=v.type===m.a.Type.VIDEO?d:t.storiesInterval;Object(I.d)("keydown",e=>{switch(e.key){case"Escape":b();break;case"ArrowLeft":y();break;case"ArrowRight":f();break;default:return}e.preventDefault(),e.stopPropagation()});const L=n.a.createElement("div",{className:V.a.root},n.a.createElement("div",{className:V.a.container},n.a.createElement("div",{className:V.a.header},n.a.createElement("a",{href:M,target:"_blank"},n.a.createElement("img",{className:V.a.profilePicture,src:t.profilePhotoUrl,alt:t.account.username})),n.a.createElement("a",{href:M,className:V.a.username,target:"_blank"},t.account.username),n.a.createElement("div",{className:V.a.date},Object($.a)(Object(K.a)(v.timestamp),{addSuffix:!0}))),n.a.createElement("div",{className:V.a.progress},e.map((e,t)=>n.a.createElement(X,{key:e.id,duration:x,animate:t===i,isDone:t<i}))),n.a.createElement("div",{className:V.a.content},_&&n.a.createElement("div",{className:V.a.prevButton,onClick:y,role:"button"},n.a.createElement(p.a,{icon:"arrow-left-alt2"})),n.a.createElement("div",{className:V.a.media},n.a.createElement(Y,{key:v.id,media:v,imgDuration:t.storiesInterval,onGetDuration:h,onEnd:()=>g?f():b()})),g&&n.a.createElement("div",{className:V.a.nextButton,onClick:f,role:"button"},n.a.createElement(p.a,{icon:"arrow-right-alt2"})),n.a.createElement("div",{className:V.a.closeButton,onClick:b,role:"button"},n.a.createElement(p.a,{icon:"no-alt"})))));return u.a.createPortal(L,document.body)}));function X({animate:e,isDone:t,duration:o}){const a=e?V.a.progressOverlayAnimating:t?V.a.progressOverlayDone:V.a.progressOverlay,i={animationDuration:o+"s"};return n.a.createElement("div",{className:V.a.progressSegment},n.a.createElement("div",{className:a,style:i}))}function Y({media:e,imgDuration:t,onGetDuration:o,onEnd:a}){return e.type===m.a.Type.VIDEO?n.a.createElement(Q,{media:e,onEnd:a,onGetDuration:o}):n.a.createElement(J,{media:e,onEnd:a,duration:t})}function J({media:e,duration:t,onEnd:o}){const[i,r]=n.a.useState(!1);return Object(a.useEffect)(()=>{const e=i?setTimeout(o,1e3*t):null;return()=>clearTimeout(e)},[e,i]),n.a.createElement("img",{src:e.url,onLoad:()=>r(!0),loading:"eager",alt:""})}function Q({media:e,onEnd:t,onGetDuration:o}){const a=n.a.useRef(),i=Object(h.k)(e,h.a.LARGE);return n.a.createElement("video",{ref:a,src:e.url,poster:i,autoPlay:!0,controls:!1,playsInline:!0,loop:!1,onCanPlay:()=>o(a.current.duration),onEnded:t},n.a.createElement("source",{src:e.url}),"Your browser does not support embedded videos")}var Z=Object(l.b)((function({feed:e,options:t}){const[o,a]=n.a.useState(null),i=t.account,r="https://instagram.com/"+i.username,l=e.stories.filter(e=>e.username===i.username),s=l.length>0,c=t.headerInfo.includes(D.a.HeaderInfo.MEDIA_COUNT),d=t.headerInfo.includes(D.a.HeaderInfo.FOLLOWERS)&&i.type!=f.a.Type.PERSONAL,u=t.headerInfo.includes(D.a.HeaderInfo.PROFILE_PIC),m=t.includeStories&&s,h=t.headerStyle===D.a.HeaderStyle.BOXED,p={fontSize:t.headerTextSize,color:t.headerTextColor,backgroundColor:t.headerBgColor,padding:t.headerPadding},g=m?"button":void 0,_={width:t.headerPhotoSize,height:t.headerPhotoSize,cursor:m?"pointer":"normal"},b=t.showFollowBtn&&(t.followBtnLocation===D.a.FollowBtnLocation.HEADER||t.followBtnLocation===D.a.FollowBtnLocation.BOTH),y={justifyContent:t.showBio&&h?"flex-start":"center"},v=n.a.createElement("img",{src:t.profilePhotoUrl,alt:i.username}),M=m&&s?F.a.profilePicWithStories:F.a.profilePic;return n.a.createElement("div",{className:ee(t.headerStyle),style:p},n.a.createElement("div",{className:F.a.leftContainer},u&&n.a.createElement("div",{className:M,style:_,role:g,onClick:()=>{m&&a(0)}},m?v:n.a.createElement("a",{href:r,target:"_blank"},v)),n.a.createElement("div",{className:F.a.info},n.a.createElement("div",{className:F.a.username},n.a.createElement("a",{href:r,target:"_blank"},n.a.createElement("span",null,"@"),n.a.createElement("span",null,i.username))),t.showBio&&n.a.createElement("div",{className:F.a.bio},t.bioText),(c||d)&&n.a.createElement("div",{className:F.a.counterList},c&&n.a.createElement("div",{className:F.a.counter},n.a.createElement("span",null,i.mediaCount)," posts"),d&&n.a.createElement("div",{className:F.a.counter},n.a.createElement("span",null,i.followersCount)," followers")))),n.a.createElement("div",{className:F.a.rightContainer},b&&n.a.createElement("div",{className:F.a.followButton,style:y},n.a.createElement(W,{options:t}))),m&&null!==o&&n.a.createElement(q,{stories:l,options:t,onClose:()=>{a(null)}}))}));function ee(e){switch(e){case D.a.HeaderStyle.NORMAL:return F.a.normalStyle;case D.a.HeaderStyle.CENTERED:return F.a.centeredStyle;case D.a.HeaderStyle.BOXED:return F.a.boxedStyle;default:return}}var te=o(171),oe=o.n(te);const ae=Object(l.b)(({feed:e,options:t})=>{const o=n.a.useRef(),a=Object(I.j)(o,{block:"end",inline:"nearest"}),i={color:t.loadMoreBtnTextColor,backgroundColor:t.loadMoreBtnBgColor};return n.a.createElement("button",{ref:o,className:oe.a.root,style:i,onClick:()=>{a(),e.loadMore()}},e.isLoading?n.a.createElement("span",null,"Loading ..."):n.a.createElement("span",null,e.options.loadMoreBtnText))});t.a=Object(l.b)((function({children:e,feed:t,options:o}){const[a,i]=n.a.useState(null),l={width:o.feedWidth,height:o.feedHeight,fontSize:o.textSize},s={backgroundColor:o.bgColor,padding:o.feedPadding},c={marginBottom:o.imgPadding},d={marginTop:o.buttonPadding},u=o.showHeader&&n.a.createElement("div",{style:c},n.a.createElement(Z,{feed:t,options:o})),m=o.showLoadMoreBtn&&t.canLoadMore&&n.a.createElement("div",{className:r.a.loadMoreBtn,style:d},n.a.createElement(ae,{feed:t,options:o})),h=o.showFollowBtn&&(o.followBtnLocation===D.a.FollowBtnLocation.BOTTOM||o.followBtnLocation===D.a.FollowBtnLocation.BOTH)&&n.a.createElement("div",{className:r.a.followBtn,style:d},n.a.createElement(W,{options:o})),p=new Array(o.numPosts).fill(r.a.fakeMedia);return n.a.createElement("div",{className:r.a.root,style:l},n.a.createElement("div",{className:r.a.wrapper,style:s},e({mediaList:t.media,openMedia:function(e){const a=t.media[e];if(!t.options.promotionEnabled||!A.a.executeMediaClick(a,t.options))switch(o.linkBehavior){case D.a.LinkBehavior.LIGHTBOX:return void i(e);case D.a.LinkBehavior.NEW_TAB:return void window.open(a.permalink,"_blank");case D.a.LinkBehavior.SELF:return void window.open(a.permalink,"_self")}},header:u,loadMoreBtn:m,followBtn:h,loadingMedia:p})),null!==a&&n.a.createElement(H,{feed:t,mediaList:t.media,current:a,options:o,onClose:()=>i(null)}))}))},137:function(e,t,o){"use strict";var a=o(82),n=o.n(a),i=o(0),r=o.n(i),l=o(10),s=o(7),c=o(43),d=o.n(c),u=o(160),m=o(579),h=o(578),p=o(6),g=o(8),_=o(3),b=Object(s.b)((function({options:e,media:t}){var o;const a=r.a.useRef(),[n,s]=r.a.useState(null);Object(i.useEffect)(()=>{a.current&&s(a.current.getBoundingClientRect().width)},[]);let c=e.hoverInfo.some(e=>e===p.a.HoverInfo.LIKES_COMMENTS);c=c&&(t.source.type!==l.a.Source.Type.PERSONAL_ACCOUNT||t.source.type===l.a.Source.Type.PERSONAL_ACCOUNT&&t.likesCount+t.commentsCount>0);const b=e.hoverInfo.some(e=>e===p.a.HoverInfo.CAPTION),f=e.hoverInfo.some(e=>e===p.a.HoverInfo.USERNAME),y=e.hoverInfo.some(e=>e===p.a.HoverInfo.DATE),v=e.hoverInfo.some(e=>e===p.a.HoverInfo.INSTA_LINK),M=null!==(o=t.caption)&&void 0!==o?o:"",x=t.timestamp?Object(u.a)(t.timestamp):null,L=t.timestamp?Object(m.a)(x).toString():null,w=t.timestamp?Object(h.a)(x,"HH:mm - do MMM yyyy"):null,O=t.timestamp?Object(_.p)(t.timestamp):null,E={color:e.textColorHover,backgroundColor:e.bgColorHover};let S=null;if(null!==n){const e=Math.sqrt(1.3*(n+30)),o=Math.sqrt(1.6*n+100),a=Math.max(e,8)+"px",i=Math.max(o,8)+"px",l={fontSize:a},s={fontSize:a,width:a,height:a},u={fontSize:i,width:i,height:i};S=r.a.createElement("div",{className:d.a.rows},r.a.createElement("div",{className:d.a.topRow},f&&t.username&&r.a.createElement("div",{className:d.a.username},r.a.createElement("a",{href:"https://instagram.com/"+t.username,target:"_blank"},"@",t.username)),b&&t.caption&&r.a.createElement("div",{className:d.a.caption},M)),r.a.createElement("div",{className:d.a.middleRow},c&&r.a.createElement("div",{className:d.a.counterList},r.a.createElement("span",{className:d.a.likesCount,style:l},r.a.createElement(g.a,{icon:"heart",style:s})," ",t.likesCount),r.a.createElement("span",{className:d.a.commentsCount,style:l},r.a.createElement(g.a,{icon:"admin-comments",style:s})," ",t.commentsCount))),r.a.createElement("div",{className:d.a.bottomRow},y&&t.timestamp&&r.a.createElement("div",{className:d.a.date},r.a.createElement("time",{dateTime:L,title:w},O)),v&&r.a.createElement("a",{className:d.a.igLinkIcon,href:t.permalink,title:M,target:"_blank",style:u,onClick:e=>e.stopPropagation()},r.a.createElement(g.a,{icon:"instagram",style:u}))))}return r.a.createElement("div",{ref:a,className:d.a.root,style:E},S)})),f=o(19),y=o(67);t.a=Object(s.b)((function({media:e,options:t,forceOverlay:o,onClick:a}){const[i,s]=r.a.useState(!1),c=function(e){switch(e.type){case l.a.Type.IMAGE:return n.a.imageTypeIcon;case l.a.Type.VIDEO:return n.a.videoTypeIcon;case l.a.Type.ALBUM:return n.a.albumTypeIcon;default:return}}(e),d={backgroundImage:`url(${f.a.image("ig-type-sprites.png")})`};return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:n.a.root,onClick:e=>{a&&a(e)},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)},r.a.createElement(y.a,{media:e}),r.a.createElement("div",{className:c,style:d}),(i||o)&&r.a.createElement("div",{className:n.a.overlay},r.a.createElement(b,{media:e,options:t}))))}))},138:function(e,t,o){e.exports={root:"MediaTileCaption__root",preview:"MediaTileCaption__preview MediaTileCaption__root",full:"MediaTileCaption__full MediaTileCaption__root"}},139:function(e,t,o){e.exports={image:"MediaLightboxImage__image MediaLightboxObject__media",loading:"MediaLightboxImage__loading MediaLightboxObject__media MediaLightboxObject__loading-animation"}},14:function(e,t,o){"use strict";var a=o(37),n=o.n(a),i=o(19),r=o(39);const l=i.a.config.restApi.baseUrl,s={};i.a.config.restApi.authToken&&(s["X-Sli-Auth-Token"]=i.a.config.restApi.authToken);const c=n.a.create({baseURL:l,headers:s}),d={config:i.a.config.restApi,driver:c,getAccounts:()=>c.get("/accounts"),getFeeds:()=>c.get("/feeds"),getFeedMedia:(e,t=0,o=0,a)=>{const i=a?new n.a.CancelToken(a):void 0;return c.post("/media/fetch",{options:e,num:o,from:t},{cancelToken:i})},getErrorReason:e=>{let t;return t="object"==typeof e.response?e.response.data:"string"==typeof e.message?e.message:e.toString(),Object(r.b)(t)}};t.a=d},140:function(e,t,o){e.exports={link:"FollowButton__link",button:"FollowButton__button feed__feed-button"}},16:function(e,t,o){"use strict";o.d(t,"i",(function(){return l})),o.d(t,"e",(function(){return s})),o.d(t,"b",(function(){return c})),o.d(t,"c",(function(){return d})),o.d(t,"a",(function(){return u})),o.d(t,"m",(function(){return m})),o.d(t,"g",(function(){return h})),o.d(t,"k",(function(){return p})),o.d(t,"j",(function(){return g})),o.d(t,"d",(function(){return b})),o.d(t,"l",(function(){return f})),o.d(t,"f",(function(){return y})),o.d(t,"h",(function(){return v}));var a=o(0),n=o.n(a),i=o(41),r=o(32);function l(e,t){!function(e,t,o){const a=n.a.useRef(!0);e(()=>{a.current=!0;const e=t(()=>new Promise(e=>{a.current&&e()}));return()=>{a.current=!1,e&&e()}},o)}(a.useEffect,e,t)}function s(e){const[t,o]=n.a.useState(e),a=n.a.useRef(t);return[t,()=>a.current,e=>o(a.current=e)]}function c(e,t,o=[]){function n(a){!e.current||e.current.contains(a.target)||o.some(e=>e&&e.current&&e.current.contains(a.target))||t(a)}Object(a.useEffect)(()=>(document.addEventListener("mousedown",n),document.addEventListener("touchend",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchend",n)}))}function d(e,t){Object(a.useEffect)(()=>{const o=()=>{0===e.filter(e=>!e.current||document.activeElement===e.current||e.current.contains(document.activeElement)).length&&t()};return document.addEventListener("keyup",o),()=>document.removeEventListener("keyup",o)},e)}function u(e,t,o=100){const[i,r]=n.a.useState(e);return Object(a.useEffect)(()=>{let a=null;return e===t?a=setTimeout(()=>r(t),o):r(!t),()=>{null!==a&&clearTimeout(a)}},[e]),[i,r]}function m(e){const[t,o]=n.a.useState(Object(r.b)()),i=()=>{const t=Object(r.b)();o(t),e&&e(t)};return Object(a.useEffect)(()=>(i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)),[]),t}function h(){return new URLSearchParams(Object(i.e)().search)}function p(e,t){const o=o=>{if(t)return(o||window.event).returnValue=e,e};Object(a.useEffect)(()=>(window.addEventListener("beforeunload",o),()=>window.removeEventListener("beforeunload",o)),[t])}function g(e,t){const o=n.a.useRef(!1);return Object(a.useEffect)(()=>{o.current&&void 0!==e.current&&(e.current.scrollIntoView(Object.assign({behavior:"smooth",block:"start"},null!=t?t:{})),o.current=!1)},[o.current]),()=>o.current=!0}function _(e,t,o,n=[],i=[]){Object(a.useEffect)(()=>(n.reduce((e,t)=>e&&t,!0)&&e.addEventListener(t,o),()=>e.removeEventListener(t,o)),i)}function b(e,t,o=[],a=[]){_(document,e,t,o,a)}function f(e,t,o=[],a=[]){_(window,e,t,o,a)}function y(e){return t=>{" "!==t.key&&"Enter"!==t.key||(e(),t.preventDefault(),t.stopPropagation())}}function v(e){const[t,o]=n.a.useState(e);return[function(e){const t=n.a.useRef(e);return t.current=e,t}(t),o]}o(39)},169:function(e,t,o){"use strict";var a=o(0),n=o.n(a),i=o(51),r=o.n(i),l=o(7),s=o(137),c=o(132),d=o(133),u=o(136),m=o(9),h=o(3);t.a=Object(l.b)((function({feed:e,options:t,cellClassName:o}){const i=n.a.useRef(),[l,p]=n.a.useState(0);Object(a.useLayoutEffect)(()=>{i.current&&p(i.current.getBoundingClientRect().height)},[t]),o=null!=o?o:()=>{};const g={gridGap:t.imgPadding,gridTemplateColumns:`repeat(${t.numColumns}, auto)`},_={paddingBottom:`calc(100% + ${l}px)`};return n.a.createElement(u.a,{feed:e,options:t},({mediaList:a,openMedia:l,header:u,loadMoreBtn:p,followBtn:b,loadingMedia:f})=>n.a.createElement("div",{className:r.a.root},u,(!e.isLoading||e.isLoadingMore)&&n.a.createElement("div",{className:r.a.grid,style:g},e.media.length?a.map((e,a)=>n.a.createElement("div",{key:`${a}-${e.id}`,className:Object(m.b)(r.a.cell,o(e,a)),style:_},n.a.createElement("div",{className:r.a.cellContent},n.a.createElement("div",{className:r.a.mediaContainer},n.a.createElement(s.a,{media:e,onClick:()=>l(a),options:t})),n.a.createElement("div",{className:r.a.mediaMeta,ref:i},n.a.createElement(c.a,{options:t,media:e}),n.a.createElement(d.a,{options:t,media:e}))))):null,e.isLoadingMore&&f.map((e,t)=>n.a.createElement("div",{key:"fake-media-"+Object(h.r)(),className:Object(m.b)(r.a.loadingCell,e,o(null,t))}))),e.isLoading&&!e.isLoadingMore&&n.a.createElement("div",{className:r.a.grid,style:g},f.map((e,t)=>n.a.createElement("div",{key:"fake-media-"+Object(h.r)(),className:Object(m.b)(r.a.loadingCell,e,o(null,t))}))),n.a.createElement("div",{className:r.a.buttonList},p,b)))}))},17:function(e,t,o){e.exports={root:"MediaLightbox__root layout__fill-parent layout__z-higher layout__flex-row layout__flex-center layout__no-overflow",shade:"MediaLightbox__shade layout__fill-parent layout__z-low","loading-skeleton":"MediaLightbox__loading-skeleton layout__z-high",loadingSkeleton:"MediaLightbox__loading-skeleton layout__z-high",wrap:"MediaLightbox__wrap","wrap-vertical":"MediaLightbox__wrap-vertical MediaLightbox__wrap layout__z-high",wrapVertical:"MediaLightbox__wrap-vertical MediaLightbox__wrap layout__z-high",container:"MediaLightbox__container layout__flex-row",sidebar:"MediaLightbox__sidebar layout__flex-column layout__scroll-y","sidebar-element":"MediaLightbox__sidebar-element",sidebarElement:"MediaLightbox__sidebar-element",frame:"MediaLightbox__frame layout__flex-column layout__flex-center","nav-button-container":"MediaLightbox__nav-button-container layout__flex-column layout__flex-center",navButtonContainer:"MediaLightbox__nav-button-container layout__flex-column layout__flex-center","next-button-container":"MediaLightbox__next-button-container MediaLightbox__nav-button-container layout__flex-column layout__flex-center",nextButtonContainer:"MediaLightbox__next-button-container MediaLightbox__nav-button-container layout__flex-column layout__flex-center","prev-button-container":"MediaLightbox__prev-button-container MediaLightbox__nav-button-container layout__flex-column layout__flex-center",prevButtonContainer:"MediaLightbox__prev-button-container MediaLightbox__nav-button-container layout__flex-column layout__flex-center",button:"MediaLightbox__button layout__z-low","button-icon":"MediaLightbox__button-icon",buttonIcon:"MediaLightbox__button-icon","close-button":"MediaLightbox__close-button MediaLightbox__button layout__z-low",closeButton:"MediaLightbox__close-button MediaLightbox__button layout__z-low","next-button":"MediaLightbox__next-button MediaLightbox__button layout__z-low",nextButton:"MediaLightbox__next-button MediaLightbox__button layout__z-low","prev-button":"MediaLightbox__prev-button MediaLightbox__button layout__z-low",prevButton:"MediaLightbox__prev-button MediaLightbox__button layout__z-low","sidebar-element-bordered":"MediaLightbox__sidebar-element-bordered MediaLightbox__sidebar-element",sidebarElementBordered:"MediaLightbox__sidebar-element-bordered MediaLightbox__sidebar-element","sidebar-header":"MediaLightbox__sidebar-header MediaLightbox__sidebar-element-bordered MediaLightbox__sidebar-element layout__flex-row",sidebarHeader:"MediaLightbox__sidebar-header MediaLightbox__sidebar-element-bordered MediaLightbox__sidebar-element layout__flex-row","sidebar-header-pic":"MediaLightbox__sidebar-header-pic",sidebarHeaderPic:"MediaLightbox__sidebar-header-pic","sidebar-header-pic-link":"MediaLightbox__sidebar-header-pic-link MediaLightbox__sidebar-header-pic",sidebarHeaderPicLink:"MediaLightbox__sidebar-header-pic-link MediaLightbox__sidebar-header-pic","sidebar-scroller":"MediaLightbox__sidebar-scroller layout__scroll-y",sidebarScroller:"MediaLightbox__sidebar-scroller layout__scroll-y","sidebar-comment-list":"MediaLightbox__sidebar-comment-list MediaLightbox__sidebar-element layout__flex-column",sidebarCommentList:"MediaLightbox__sidebar-comment-list MediaLightbox__sidebar-element layout__flex-column","sidebar-comment":"MediaLightbox__sidebar-comment",sidebarComment:"MediaLightbox__sidebar-comment","sidebar-source-name":"MediaLightbox__sidebar-source-name",sidebarSourceName:"MediaLightbox__sidebar-source-name","sidebar-footer":"MediaLightbox__sidebar-footer layout__flex-column",sidebarFooter:"MediaLightbox__sidebar-footer layout__flex-column","sidebar-info":"MediaLightbox__sidebar-info layout__flex-column MediaLightbox__sidebar-element-bordered MediaLightbox__sidebar-element",sidebarInfo:"MediaLightbox__sidebar-info layout__flex-column MediaLightbox__sidebar-element-bordered MediaLightbox__sidebar-element","sidebar-info-line":"MediaLightbox__sidebar-info-line",sidebarInfoLine:"MediaLightbox__sidebar-info-line","sidebar-num-likes":"MediaLightbox__sidebar-num-likes MediaLightbox__sidebar-info-line",sidebarNumLikes:"MediaLightbox__sidebar-num-likes MediaLightbox__sidebar-info-line","sidebar-date":"MediaLightbox__sidebar-date MediaLightbox__sidebar-info-line",sidebarDate:"MediaLightbox__sidebar-date MediaLightbox__sidebar-info-line","sidebar-ig-link":"MediaLightbox__sidebar-ig-link MediaLightbox__sidebar-element-bordered MediaLightbox__sidebar-element",sidebarIgLink:"MediaLightbox__sidebar-ig-link MediaLightbox__sidebar-element-bordered MediaLightbox__sidebar-element"}},170:function(e,t,o){e.exports={media:"MediaLightboxObject__media","not-available":"MediaLightboxObject__not-available MediaLightboxObject__media",notAvailable:"MediaLightboxObject__not-available MediaLightboxObject__media","loading-animation":"MediaLightboxObject__loading-animation",loadingAnimation:"MediaLightboxObject__loading-animation",loading:"MediaLightboxObject__loading"}},171:function(e,t,o){e.exports={root:"LoadMoreButton__root feed__feed-button"}},19:function(e,t,o){"use strict";let a;t.a=a={config:{restApi:SliCommonL10n.restApi,imagesUrl:SliCommonL10n.imagesUrl},image:e=>`${a.config.imagesUrl}/${e}`}},2:function(e,t,o){"use strict";o.d(t,"a",(function(){return a}));var a,n=o(1),i=function(e,t,o,a){var n,i=arguments.length,r=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,a);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(r=(i<3?n(r):i>3?n(t,o,r):n(t,o))||r);return i>3&&r&&Object.defineProperty(t,o,r),r};!function(e){class t{constructor(e,t,o){this.prop=e,this.name=t,this.icon=o}}t.DESKTOP=new t("desktop","Desktop","desktop"),t.TABLET=new t("tablet","Tablet","tablet"),t.PHONE=new t("phone","Phone","smartphone"),e.Mode=t,e.MODES=[t.DESKTOP,t.TABLET,t.PHONE];class o{constructor(e,t,o){this.desktop=e,this.tablet=t,this.phone=o}get(e,t){return a(this,e,t)}set(e,t){r(this,t,e)}with(e,t){const a=l(this,t,e);return new o(a.desktop,a.tablet,a.phone)}}function a(e,t,o=!1){if(!e)return;const a=e[t.prop];return o&&null==a?e.desktop:a}function r(e,t,o){return e[o.prop]=t,e}function l(e,t,a){return r(new o(e.desktop,e.tablet,e.phone),t,a)}i([n.n],o.prototype,"desktop",void 0),i([n.n],o.prototype,"tablet",void 0),i([n.n],o.prototype,"phone",void 0),e.Value=o,e.getName=function(e){return e.name},e.getIcon=function(e){return e.icon},e.cycle=function(o){const a=e.MODES.findIndex(e=>e===o);return void 0===a?t.DESKTOP:e.MODES[(a+1)%e.MODES.length]},e.get=a,e.set=r,e.withValue=l,e.normalize=function(e,t){return null==e?t.hasOwnProperty("all")?new o(t.all,t.all,t.all):new o(t.desktop,t.tablet,t.phone):"object"==typeof e&&e.hasOwnProperty("desktop")?new o(e.desktop,e.tablet,e.phone):new o(e,e,e)},e.getModeForWindowSize=function(e){return e.width<=768?t.PHONE:e.width<=935?t.TABLET:t.DESKTOP},e.isValid=function(e){return"object"==typeof e&&e.hasOwnProperty("desktop")}}(a||(a={}))},27:function(e,t,o){"use strict";o.d(t,"a",(function(){return a}));class a{static getById(e){const t=a.list.find(t=>t.id===e);return!t&&a.list.length>0?a.list[0]:t}static getName(e){const t=a.getById(e);return t?t.name:"(Missing layout)"}static addLayout(e){a.list.push(e)}}a.list=[]},29:function(e,t,o){e.exports={root:"StoryLightbox__root layout__fill-parent layout__z-highest layout__flex-column",container:"StoryLightbox__container layout__flex-column",header:"StoryLightbox__header layout__flex-row","profile-picture":"StoryLightbox__profile-picture",profilePicture:"StoryLightbox__profile-picture",username:"StoryLightbox__username",date:"StoryLightbox__date",progress:"StoryLightbox__progress layout__flex-row","progress-segment":"StoryLightbox__progress-segment",progressSegment:"StoryLightbox__progress-segment","progress-overlay":"StoryLightbox__progress-overlay StoryLightbox__progress-segment",progressOverlay:"StoryLightbox__progress-overlay StoryLightbox__progress-segment","progress-overlay-animating":"StoryLightbox__progress-overlay-animating StoryLightbox__progress-overlay StoryLightbox__progress-segment",progressOverlayAnimating:"StoryLightbox__progress-overlay-animating StoryLightbox__progress-overlay StoryLightbox__progress-segment","progress-segment-animation":"StoryLightbox__progress-segment-animation",progressSegmentAnimation:"StoryLightbox__progress-segment-animation","progress-overlay-done":"StoryLightbox__progress-overlay-done StoryLightbox__progress-overlay StoryLightbox__progress-segment",progressOverlayDone:"StoryLightbox__progress-overlay-done StoryLightbox__progress-overlay StoryLightbox__progress-segment",content:"StoryLightbox__content layout__flex-row layout__flex-center",media:"StoryLightbox__media",button:"StoryLightbox__button","close-button":"StoryLightbox__close-button StoryLightbox__button",closeButton:"StoryLightbox__close-button StoryLightbox__button","nav-button":"StoryLightbox__nav-button StoryLightbox__button",navButton:"StoryLightbox__nav-button StoryLightbox__button","prev-button":"StoryLightbox__prev-button StoryLightbox__nav-button StoryLightbox__button",prevButton:"StoryLightbox__prev-button StoryLightbox__nav-button StoryLightbox__button","next-button":"StoryLightbox__next-button StoryLightbox__nav-button StoryLightbox__button",nextButton:"StoryLightbox__next-button StoryLightbox__nav-button StoryLightbox__button"}},3:function(e,t,o){"use strict";o.d(t,"r",(function(){return c})),o.d(t,"f",(function(){return d})),o.d(t,"b",(function(){return u})),o.d(t,"c",(function(){return m})),o.d(t,"d",(function(){return h})),o.d(t,"m",(function(){return p})),o.d(t,"h",(function(){return g})),o.d(t,"e",(function(){return _})),o.d(t,"l",(function(){return b})),o.d(t,"n",(function(){return f})),o.d(t,"j",(function(){return y})),o.d(t,"a",(function(){return v})),o.d(t,"i",(function(){return M})),o.d(t,"k",(function(){return x})),o.d(t,"q",(function(){return L})),o.d(t,"p",(function(){return w})),o.d(t,"o",(function(){return O})),o.d(t,"g",(function(){return E}));var a=o(0),n=o.n(a),i=o(161),r=o(160),l=o(10);let s=0;function c(){return s++}function d(e){const t={};return Object.getOwnPropertyNames(e).forEach(o=>{const a=e[o];Array.isArray(a)?t[o]=a.slice():t[o]="object"==typeof a?d(a):a}),t}function u(e,t){return Object.getOwnPropertyNames(t).forEach(o=>{"object"!=typeof t[o]||Array.isArray(t[o])?e[o]=t[o]:("object"!=typeof e[o]&&(e[o]={}),u(e[o],t[o]))}),e}function m(e,t){return Array.isArray(e)&&Array.isArray(t)?h(e,t):"object"==typeof e&&"object"==typeof t?p(e,t):e===t}function h(e,t,o){if(e===t)return!0;if(e.length!==t.length)return!1;for(let a=0;a<e.length;++a)if(o){if(!o(e[a],t[a]))return!1}else if(!m(e[a],t[a]))return!1;return!0}function p(e,t){return e&&t&&"object"==typeof e&&"object"==typeof t?!Object.getOwnPropertyNames(e).some(o=>!m(e[o],t[o])):m(e,t)}function g(e,t,o){return o=null!=o?o:(e,t)=>e===t,e.filter(e=>!t.some(t=>o(e,t)))}function _(e,t,o){return o=null!=o?o:(e,t)=>e===t,e.every(e=>t.some(t=>o(e,t)))&&t.every(t=>e.some(e=>o(t,e)))}function b(e,t){return 0===e.tag.localeCompare(t.tag)&&e.sort===t.sort}function f(e,t,o=0,i=!1){let r=e.trim();i&&(r=r.replace(/((?:^[.*•]+(\r\n|\r|\n))+)/gm,"\n"));const l=r.split("\n"),s=l.map((e,o)=>{if(e=e.trim(),i&&/^[.*•]$/.test(e))return null;let r,s=[];for(;null!==(r=/#([^\s]+)/g.exec(e));){const t="https://instagram.com/explore/tags/"+r[1],o=n.a.createElement("a",{href:t,target:"_blank",key:c()},r[0]),a=e.substr(0,r.index),i=e.substr(r.index+r[0].length);s.push(a),s.push(o),e=i}return e.length&&s.push(e),t&&(s=t(s,o)),l.length>1&&s.push(n.a.createElement("br",{key:c()})),n.a.createElement(a.Fragment,{key:c()},s)});return o>0?s.slice(0,o):s}function y(e){const t=e.match(/instagram\.com\/p\/([^\/]+)\//);return t&&t.length>0?t[1]:null}var v;function M(e,t=v.MEDIUM){return`https://www.instagram.com/p/${e}/media/?size=${t}`}function x(e,t=v.MEDIUM){return e.thumbnail?e.thumbnail:M(y(e.permalink),t)}function L(e,t){const o=/(\s+)/g;let a,n=0,i=0,r="";for(;null!==(a=o.exec(e))&&n<t;){const t=a.index+a[1].length;r+=e.substr(i,t-i),i=t,n++}return i<e.length&&(r+=" ..."),r}function w(e){return Object(i.a)(Object(r.a)(e),{addSuffix:!0})}function O(e,t){const o=[];return e.forEach((e,a)=>{const n=a%t;Array.isArray(o[n])?o[n].push(e):o[n]=[e]}),o}function E(e,t){return function e(t){if(t.type===l.a.Type.VIDEO){const e=document.createElement("video");return e.autoplay=!1,e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.visibility="hidden",document.body.appendChild(e),new Promise(o=>{e.src=t.url,e.addEventListener("loadeddata",()=>{o({width:e.videoWidth,height:e.videoHeight}),document.body.removeChild(e)})})}if(t.type===l.a.Type.IMAGE){const e=new Image;return e.src=t.url,new Promise(t=>{e.onload=()=>{t({width:e.naturalWidth,height:e.naturalHeight})}})}return t.type===l.a.Type.ALBUM?e(t.children[0]):Promise.reject("Unknown media type")}(e).then(e=>function(e,t){const o=e.width>e.height?t.width/e.width:t.height/e.height;return{width:e.width*o,height:e.height*o}}(e,t))}!function(e){e.SMALL="t",e.MEDIUM="m",e.LARGE="l"}(v||(v={}))},30:function(e,o){e.exports=t},31:function(e,t,o){"use strict";o.d(t,"a",(function(){return c})),o.d(t,"b",(function(){return d})),o.d(t,"c",(function(){return m}));var a=o(0),n=o.n(a),i=o(30),r=o.n(i),l=o(7);class s{constructor(e=new Map,t=[]){this.factories=e,this.extensions=new Map,this.cache=new Map,t.forEach(e=>this.addModule(e))}addModule(e){e.factories&&(this.factories=new Map([...this.factories,...e.factories])),e.extensions&&e.extensions.forEach((e,t)=>{this.extensions.has(t)?this.extensions.get(t).push(e):this.extensions.set(t,[e])})}get(e){let t=this.factories.get(e);if(void 0===t)throw new Error('Service "'+e+'" does not exist');let o=this.cache.get(e);if(void 0===o){o=t(this);let a=this.extensions.get(e);a&&a.forEach(e=>o=e(this,o)),this.cache.set(e,o)}return o}has(e){return this.factories.has(e)}}class c{constructor(e,t,o){this.key=e,this.mount=t,this.modules=o,this.container=null}addModules(e){this.modules=this.modules.concat(e)}run(){if(null!==this.container)return;const e=()=>{!function(e){const t=`app/${e.key}/run`;document.dispatchEvent(new u(t,e))}(this);const e=m({root:()=>null,"root/children":()=>[]});this.container=new s(e,this.modules);const t=this.container.get("root/children").map((e,t)=>n.a.createElement(e,{key:t})),o=n.a.createElement(l.a,{c:this.container},t);this.modules.forEach(e=>e.run&&e.run(this.container)),r.a.render(o,this.mount)};"complete"===document.readyState?e():window.addEventListener("load",e)}}function d(e,t){document.addEventListener(`app/${e}/run`,e=>{t(e.detail.app)})}class u extends CustomEvent{constructor(e,t){super(e,{detail:{app:t}})}}function m(e){return new Map(Object.entries(e))}},32:function(e,t,o){"use strict";function a(e,t,o={}){return window.open(e,t,function(e={}){return Object.getOwnPropertyNames(e).map(t=>`${t}=${e[t]}`).join(",")}(o))}function n(e,t){return{top:window.top.outerHeight/2+window.top.screenY-t/2,left:window.top.outerWidth/2+window.top.screenX-e/2,width:e,height:t}}function i(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}o.d(t,"c",(function(){return a})),o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return i}))},355:function(e,t,o){"use strict";o.r(t);var a=o(27),n=o(19),i=o(169);a.a.addLayout({id:"grid",name:"Grid",img:n.a.image("grid-layout.png"),component:i.a})},36:function(e,t,o){e.exports={root:"FeedHeader__root",container:"FeedHeader__container","left-container":"FeedHeader__left-container FeedHeader__container",leftContainer:"FeedHeader__left-container FeedHeader__container","right-container":"FeedHeader__right-container FeedHeader__container",rightContainer:"FeedHeader__right-container FeedHeader__container","profile-pic":"FeedHeader__profile-pic",profilePic:"FeedHeader__profile-pic","profile-pic-with-stories":"FeedHeader__profile-pic-with-stories FeedHeader__profile-pic",profilePicWithStories:"FeedHeader__profile-pic-with-stories FeedHeader__profile-pic",info:"FeedHeader__info","info-row":"FeedHeader__info-row",infoRow:"FeedHeader__info-row",username:"FeedHeader__username FeedHeader__info-row",subtext:"FeedHeader__subtext FeedHeader__info-row",bio:"FeedHeader__bio FeedHeader__subtext FeedHeader__info-row","counter-list":"FeedHeader__counter-list FeedHeader__subtext FeedHeader__info-row",counterList:"FeedHeader__counter-list FeedHeader__subtext FeedHeader__info-row",counter:"FeedHeader__counter","follow-button":"FeedHeader__follow-button",followButton:"FeedHeader__follow-button","centered-style":"FeedHeader__centered-style FeedHeader__root",centeredStyle:"FeedHeader__centered-style FeedHeader__root","normal-style":"FeedHeader__normal-style FeedHeader__root",normalStyle:"FeedHeader__normal-style FeedHeader__root","boxed-style":"FeedHeader__boxed-style FeedHeader__root",boxedStyle:"FeedHeader__boxed-style FeedHeader__root"}},39:function(e,t,o){"use strict";function a(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function n(e){const t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}o.d(t,"a",(function(){return a})),o.d(t,"b",(function(){return n}))},4:function(e,t,o){"use strict";o.d(t,"a",(function(){return a}));var a,n=o(14),i=o(1);!function(e){let t;!function(e){e.PERSONAL="PERSONAL",e.BUSINESS="BUSINESS"}(t=e.Type||(e.Type={}))}(a||(a={}));const r=Object(i.n)([]),l="https://secure.gravatar.com/avatar/4a94d759753ade2961582f7345c1d7b2?s=64&d=mm&r=g",s=e=>r.find(t=>t.id===e),c=e=>"https://instagram.com/"+e;function d(e){if("object"==typeof e&&Array.isArray(e.data))return e.data.sort((e,t)=>e.type===t.type?0:e.type===a.Type.PERSONAL?-1:1),r.splice(0,r.length),e.data.forEach(e=>r.push(Object(i.n)(e))),r;throw"Spotlight encountered a problem trying to load your accounts. Kindly contact customer support for assistance."}t.b={list:r,DEFAULT_PROFILE_PIC:l,getById:s,getByUsername:e=>r.find(t=>t.username===e),hasAccounts:()=>r.length>0,filterExisting:e=>e.filter(e=>void 0!==s(e)),idsToAccounts:e=>e.map(e=>s(e)).filter(e=>void 0!==e),getBusinessAccounts:()=>r.filter(e=>e.type===a.Type.BUSINESS),getProfilePicUrl:e=>e.customProfilePicUrl?e.customProfilePicUrl:e.profilePicUrl?e.profilePicUrl:l,getBioText:e=>e.customBio.length?e.customBio:e.bio,getProfileUrl:e=>c(e.username),getUsernameUrl:c,loadAccounts:function(){return n.a.getAccounts().then(d).catch(e=>{throw n.a.getErrorReason(e)})},loadFromResponse:d}},42:function(e,t,o){"use strict";var a=o(68);t.a=new class{constructor(){this.types=[],this.mediaStore=a.a}addPromotionType(e){this.types.push(e)}getPromotionType(e){return this.types.find(t=>t.value===e)}getMediaPromo(e,t){var o;const a=t.promotions.get(e.id);if(!a)return[{},null];const n=this.getPromotionType(a.type);return n?[null!==(o=a.data)&&void 0!==o?o:{},n]:[{},null]}executeMediaClick(e,t){const[o,a]=this.getMediaPromo(e,t);return!(null===a||!a.isValid(e,o)||"function"!=typeof a.onMediaClick)&&a.onMediaClick(e,o)}getLinkText(e,t){var o,a;const[n,i]=this.getMediaPromo(e,t);return null!==i&&i.isValid(e,n)?{text:i.getPopupLinkText&&null!==(o=i.getPopupLinkText(e,n))&&void 0!==o?o:null,url:i.getMediaUrl&&null!==(a=i.getMediaUrl(e,n))&&void 0!==a?a:null}:{text:null,url:null}}}},43:function(e,t,o){e.exports={root:"MediaOverlay__root layout__fill-parent",rows:"MediaOverlay__rows",row:"MediaOverlay__row","top-row":"MediaOverlay__top-row MediaOverlay__row",topRow:"MediaOverlay__top-row MediaOverlay__row","middle-row":"MediaOverlay__middle-row MediaOverlay__row",middleRow:"MediaOverlay__middle-row MediaOverlay__row","bottom-row":"MediaOverlay__bottom-row MediaOverlay__row",bottomRow:"MediaOverlay__bottom-row MediaOverlay__row","counter-list":"MediaOverlay__counter-list",counterList:"MediaOverlay__counter-list",username:"MediaOverlay__username",date:"MediaOverlay__date",caption:"MediaOverlay__caption",counter:"MediaOverlay__counter","comments-count":"MediaOverlay__comments-count MediaOverlay__counter",commentsCount:"MediaOverlay__comments-count MediaOverlay__counter","likes-count":"MediaOverlay__likes-count MediaOverlay__counter",likesCount:"MediaOverlay__likes-count MediaOverlay__counter","ig-link-icon":"MediaOverlay__ig-link-icon",igLinkIcon:"MediaOverlay__ig-link-icon"}},47:function(e,t,o){e.exports={root:"MediaThumbnail__root","media-background-fade-in-animation":"MediaThumbnail__media-background-fade-in-animation",mediaBackgroundFadeInAnimation:"MediaThumbnail__media-background-fade-in-animation","media-object-fade-in-animation":"MediaThumbnail__media-object-fade-in-animation",mediaObjectFadeInAnimation:"MediaThumbnail__media-object-fade-in-animation",image:"MediaThumbnail__image","not-available":"MediaThumbnail__not-available",notAvailable:"MediaThumbnail__not-available"}},51:function(e,t,o){e.exports={root:"GridLayout__root layout__flex-column",grid:"GridLayout__grid",cell:"GridLayout__cell","cell-content":"GridLayout__cell-content layout__fill-parent layout__flex-column",cellContent:"GridLayout__cell-content layout__fill-parent layout__flex-column","media-container":"GridLayout__media-container",mediaContainer:"GridLayout__media-container","media-meta":"GridLayout__media-meta layout__flex-column",mediaMeta:"GridLayout__media-meta layout__flex-column","button-list":"GridLayout__button-list layout__flex-column",buttonList:"GridLayout__button-list layout__flex-column"}},57:function(e,t,o){e.exports={root:"MediaLightboxAlbum__root",strip:"MediaLightboxAlbum__strip layout__flex-row",frame:"MediaLightboxAlbum__frame",controls:"MediaLightboxAlbum__controls layout__fill-parent layout__flex-row","nav-button":"MediaLightboxAlbum__nav-button",navButton:"MediaLightboxAlbum__nav-button","next-button":"MediaLightboxAlbum__next-button MediaLightboxAlbum__nav-button",nextButton:"MediaLightboxAlbum__next-button MediaLightboxAlbum__nav-button","prev-button":"MediaLightboxAlbum__prev-button MediaLightboxAlbum__nav-button",prevButton:"MediaLightboxAlbum__prev-button MediaLightboxAlbum__nav-button","indicator-list":"MediaLightboxAlbum__indicator-list layout__flex-row",indicatorList:"MediaLightboxAlbum__indicator-list layout__flex-row",indicator:"MediaLightboxAlbum__indicator","indicator-current":"MediaLightboxAlbum__indicator-current MediaLightboxAlbum__indicator",indicatorCurrent:"MediaLightboxAlbum__indicator-current MediaLightboxAlbum__indicator"}},59:function(e,t,o){"use strict";function a(e,t){let o;return()=>{clearTimeout(o),o=setTimeout(()=>{o=null,e()},t)}}function n(){}o.d(t,"a",(function(){return a})),o.d(t,"b",(function(){return n}))},6:function(e,t,o){"use strict";o.d(t,"a",(function(){return g}));var a=o(37),n=o.n(a),i=o(1),r=o(2),l=o(27),s=o(31),c=o(4),d=o(3),u=o(13),m=o(14),h=o(59),p=function(e,t,o,a){var n,i=arguments.length,r=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,a);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(r=(i<3?n(r):i>3?n(t,o,r):n(t,o))||r);return i>3&&r&&Object.defineProperty(t,o,r),r};class g{constructor(e=new g.Options,t=r.a.Mode.DESKTOP){this.media=[],this.canLoadMore=!1,this.stories=[],this.numLoadedMore=0,this.totalMedia=0,this.mode=r.a.Mode.DESKTOP,this.isLoaded=!1,this.isLoading=!1,this.isLoadingMore=!1,this.numMediaToShow=0,this.numMediaPerPage=0,this.cancelFetch=()=>{},this.options=new g.Options(e),this.localMedia=[],this.mode=t,this.mediaCounter=this._numMediaPerPage,this.reload=Object(h.a)(()=>this.load(),300),Object(i.o)(()=>this.mode,()=>{0===this.numLoadedMore&&(this.mediaCounter=this._numMediaPerPage,this.localMedia.length<this.numMediaToShow&&this.loadMedia(this.localMedia.length,this.numMediaToShow-this.localMedia.length))}),Object(i.o)(()=>this.getReloadOptions(),()=>this.reload()),Object(i.o)(()=>({num:this._numMediaPerPage,mode:this.mode}),({num:e})=>{this.localMedia.length<e&&e<=this.totalMedia?this.reload():this.mediaCounter=Math.max(1,e)}),Object(i.o)(()=>this._media,e=>this.media=e),Object(i.o)(()=>this._numMediaToShow,e=>this.numMediaToShow=e),Object(i.o)(()=>this._numMediaPerPage,e=>this.numMediaPerPage=e),Object(i.o)(()=>this._canLoadMore,e=>this.canLoadMore=e)}get _media(){return this.localMedia.slice(0,this.numMediaToShow)}get _numMediaToShow(){return Math.min(this.mediaCounter,this.totalMedia)}get _numMediaPerPage(){return Math.max(1,g.ComputedOptions.normalizeMultiInt(this.options.numPosts,this.mode,1))}get _canLoadMore(){return this.localMedia.length>this.mediaCounter||this.localMedia.length<this.totalMedia}loadMore(){const e=this.numMediaToShow+this._numMediaPerPage-this.localMedia.length;return this.isLoadingMore=!0,e>0?this.loadMedia(this.localMedia.length,this._numMediaPerPage).then(()=>{this.mediaCounter+=this._numMediaPerPage,this.numLoadedMore++,this.isLoadingMore=!1}):new Promise(e=>{this.numLoadedMore++,this.mediaCounter+=this._numMediaPerPage,this.isLoadingMore=!1,e()})}load(){return this.numLoadedMore=0,this.loadMedia(0,this._numMediaPerPage,!0).then(()=>(this.isLoaded=!0,this.mediaCounter=this._numMediaPerPage))}loadMedia(e,t,o){return this.cancelFetch(),g.Options.hasSources(this.options,!0)?(this.isLoading=!0,new Promise((a,i)=>{m.a.getFeedMedia(this.options,e,t,e=>this.cancelFetch=e).then(e=>{var t;if("object"!=typeof e||"object"!=typeof e.data||!Array.isArray(e.data.media))throw{message:"The media response is malformed or corrupt",response:e};o&&(this.localMedia=[]),this.localMedia.push(...e.data.media),this.stories=null!==(t=e.data.stories)&&void 0!==t?t:[],this.totalMedia=e.data.total,a&&a()}).catch(e=>{var t;if(n.a.isCancel(e))return null;const o=new g.Events.FetchFailEvent(g.Events.FETCH_FAIL,{detail:{feed:this,message:null!==(t=e.response?e.response.data.message:void 0)&&void 0!==t?t:e.message,response:e.response}});return document.dispatchEvent(o),i&&i(e),e}).finally(()=>this.isLoading=!1)})):new Promise(e=>{this.localMedia=[],this.totalMedia=0,e&&e()})}getReloadOptions(){return JSON.stringify({accounts:this.options.accounts,hashtags:this.options.hashtags,tagged:this.options.tagged,postOrder:this.options.postOrder,mediaType:this.options.mediaType,moderation:this.options.moderation,moderationMode:this.options.moderationMode,hashtagBlacklist:this.options.hashtagBlacklist,hashtagWhitelist:this.options.hashtagWhitelist,captionBlacklist:this.options.captionBlacklist,captionWhitelist:this.options.captionWhitelist,hashtagBlacklistSettings:this.options.hashtagBlacklistSettings,hashtagWhitelistSettings:this.options.hashtagWhitelistSettings,captionBlacklistSettings:this.options.captionBlacklistSettings,captionWhitelistSettings:this.options.captionWhitelistSettings})}}p([i.n],g.prototype,"media",void 0),p([i.n],g.prototype,"canLoadMore",void 0),p([i.n],g.prototype,"stories",void 0),p([i.n],g.prototype,"numLoadedMore",void 0),p([i.n],g.prototype,"options",void 0),p([i.n],g.prototype,"totalMedia",void 0),p([i.n],g.prototype,"mode",void 0),p([i.n],g.prototype,"isLoaded",void 0),p([i.n],g.prototype,"isLoading",void 0),p([i.n],g.prototype,"isLoadingMore",void 0),p([i.f],g.prototype,"reload",void 0),p([i.n],g.prototype,"localMedia",void 0),p([i.n],g.prototype,"numMediaToShow",void 0),p([i.n],g.prototype,"numMediaPerPage",void 0),p([i.n],g.prototype,"mediaCounter",void 0),p([i.h],g.prototype,"_media",null),p([i.h],g.prototype,"_numMediaToShow",null),p([i.h],g.prototype,"_numMediaPerPage",null),p([i.h],g.prototype,"_canLoadMore",null),p([i.f],g.prototype,"loadMore",null),p([i.f],g.prototype,"load",null),p([i.f],g.prototype,"loadMedia",null),function(e){let t,o,a,n,m,h,g,_,b;!function(e){e.FETCH_FAIL="sli/feed/fetch_fail";class t extends CustomEvent{constructor(e,t){super(e,t)}}e.FetchFailEvent=t}(t=e.Events||(e.Events={}));class f{constructor(e={}){f.setFromObject(this,e)}static setFromObject(t,o={}){var a,n,i,s,d,u,m,h,p,g,_,b;return t.accounts=o.accounts?o.accounts.slice():e.DefaultOptions.accounts,t.hashtags=o.hashtags?o.hashtags.slice():e.DefaultOptions.hashtags,t.tagged=o.tagged?o.tagged.slice():e.DefaultOptions.tagged,t.layout=l.a.getById(o.layout).id,t.numColumns=r.a.normalize(o.numColumns,e.DefaultOptions.numColumns),t.highlightFreq=r.a.normalize(o.highlightFreq,e.DefaultOptions.highlightFreq),t.mediaType=o.mediaType||e.DefaultOptions.mediaType,t.postOrder=o.postOrder||e.DefaultOptions.postOrder,t.numPosts=r.a.normalize(o.numPosts,e.DefaultOptions.numPosts),t.linkBehavior=r.a.normalize(o.linkBehavior,e.DefaultOptions.linkBehavior),t.feedWidth=r.a.normalize(o.feedWidth,e.DefaultOptions.feedWidth),t.feedHeight=r.a.normalize(o.feedHeight,e.DefaultOptions.feedHeight),t.feedPadding=r.a.normalize(o.feedPadding,e.DefaultOptions.feedPadding),t.imgPadding=r.a.normalize(o.imgPadding,e.DefaultOptions.imgPadding),t.textSize=r.a.normalize(o.textSize,e.DefaultOptions.textSize),t.bgColor=o.bgColor||e.DefaultOptions.bgColor,t.hoverInfo=o.hoverInfo?o.hoverInfo.slice():e.DefaultOptions.hoverInfo,t.textColorHover=o.textColorHover||e.DefaultOptions.textColorHover,t.bgColorHover=o.bgColorHover||e.DefaultOptions.bgColorHover,t.showHeader=r.a.normalize(o.showHeader,e.DefaultOptions.showHeader),t.headerInfo=r.a.normalize(o.headerInfo,e.DefaultOptions.headerInfo),t.headerAccount=null!==(a=o.headerAccount)&&void 0!==a?a:e.DefaultOptions.headerAccount,t.headerAccount=null===t.headerAccount||void 0===c.b.getById(t.headerAccount)?c.b.list.length>0?c.b.list[0].id:null:t.headerAccount,t.headerStyle=r.a.normalize(o.headerStyle,e.DefaultOptions.headerStyle),t.headerTextSize=r.a.normalize(o.headerTextSize,e.DefaultOptions.headerTextSize),t.headerPhotoSize=r.a.normalize(o.headerPhotoSize,e.DefaultOptions.headerPhotoSize),t.headerTextColor=o.headerTextColor||e.DefaultOptions.headerTextColor,t.headerBgColor=o.headerBgColor||e.DefaultOptions.bgColor,t.headerPadding=r.a.normalize(o.headerPadding,e.DefaultOptions.headerPadding),t.customProfilePic=null!==(n=o.customProfilePic)&&void 0!==n?n:e.DefaultOptions.customProfilePic,t.customBioText=o.customBioText||e.DefaultOptions.customBioText,t.includeStories=null!==(i=o.includeStories)&&void 0!==i?i:e.DefaultOptions.includeStories,t.storiesInterval=o.storiesInterval||e.DefaultOptions.storiesInterval,t.showCaptions=r.a.normalize(o.showCaptions,e.DefaultOptions.showCaptions),t.captionMaxLength=r.a.normalize(o.captionMaxLength,e.DefaultOptions.captionMaxLength),t.captionRemoveDots=null!==(s=o.captionRemoveDots)&&void 0!==s?s:e.DefaultOptions.captionRemoveDots,t.captionSize=r.a.normalize(o.captionSize,e.DefaultOptions.captionSize),t.captionColor=o.captionColor||e.DefaultOptions.captionColor,t.showLikes=r.a.normalize(o.showLikes,e.DefaultOptions.showLikes),t.showComments=r.a.normalize(o.showComments,e.DefaultOptions.showCaptions),t.lcIconSize=r.a.normalize(o.lcIconSize,e.DefaultOptions.lcIconSize),t.likesIconColor=null!==(d=o.likesIconColor)&&void 0!==d?d:e.DefaultOptions.likesIconColor,t.commentsIconColor=o.commentsIconColor||e.DefaultOptions.commentsIconColor,t.lightboxShowSidebar=null!==(u=o.lightboxShowSidebar)&&void 0!==u?u:e.DefaultOptions.lightboxShowSidebar,t.numLightboxComments=o.numLightboxComments||e.DefaultOptions.numLightboxComments,t.showLoadMoreBtn=r.a.normalize(o.showLoadMoreBtn,e.DefaultOptions.showLoadMoreBtn),t.loadMoreBtnTextColor=o.loadMoreBtnTextColor||e.DefaultOptions.loadMoreBtnTextColor,t.loadMoreBtnBgColor=o.loadMoreBtnBgColor||e.DefaultOptions.loadMoreBtnBgColor,t.loadMoreBtnText=o.loadMoreBtnText||e.DefaultOptions.loadMoreBtnText,t.autoload=null!==(m=o.autoload)&&void 0!==m?m:e.DefaultOptions.autoload,t.showFollowBtn=r.a.normalize(o.showFollowBtn,e.DefaultOptions.showFollowBtn),t.followBtnText=null!==(h=o.followBtnText)&&void 0!==h?h:e.DefaultOptions.followBtnText,t.followBtnTextColor=o.followBtnTextColor||e.DefaultOptions.followBtnTextColor,t.followBtnBgColor=o.followBtnBgColor||e.DefaultOptions.followBtnBgColor,t.followBtnLocation=r.a.normalize(o.followBtnLocation,e.DefaultOptions.followBtnLocation),t.hashtagWhitelist=o.hashtagWhitelist||e.DefaultOptions.hashtagWhitelist,t.hashtagBlacklist=o.hashtagBlacklist||e.DefaultOptions.hashtagBlacklist,t.captionWhitelist=o.captionWhitelist||e.DefaultOptions.captionWhitelist,t.captionBlacklist=o.captionBlacklist||e.DefaultOptions.captionBlacklist,t.hashtagWhitelistSettings=null!==(p=o.hashtagWhitelistSettings)&&void 0!==p?p:e.DefaultOptions.hashtagWhitelistSettings,t.hashtagBlacklistSettings=null!==(g=o.hashtagBlacklistSettings)&&void 0!==g?g:e.DefaultOptions.hashtagBlacklistSettings,t.captionWhitelistSettings=null!==(_=o.captionWhitelistSettings)&&void 0!==_?_:e.DefaultOptions.captionWhitelistSettings,t.captionBlacklistSettings=null!==(b=o.captionBlacklistSettings)&&void 0!==b?b:e.DefaultOptions.captionBlacklistSettings,t.moderation=o.moderation||e.DefaultOptions.moderation,t.moderationMode=o.moderationMode||e.DefaultOptions.moderationMode,t.promotionEnabled=o.promotionEnabled||e.DefaultOptions.promotionEnabled,Array.isArray(o.promotions)?t.promotions=new Map(o.promotions):o.promotions&&o.promotions.constructor&&"Map"===o.promotions.constructor.name?t.promotions=o.promotions:"object"==typeof o.promotions?t.promotions=new Map(Object.entries(o.promotions)):t.promotions=e.DefaultOptions.promotions,t}static getAllAccounts(e){const t=c.b.idsToAccounts(e.accounts),o=c.b.idsToAccounts(e.tagged);return{all:t.concat(o),accounts:t,tagged:o}}static getSources(e){return{accounts:c.b.idsToAccounts(e.accounts),tagged:c.b.idsToAccounts(e.tagged),hashtags:c.b.getBusinessAccounts().length>0?e.hashtags.filter(e=>e.tag.length>0):[]}}static hasSources(t,o){const a=e.Options.getSources(t),n=a.accounts.length>0||o&&a.tagged.length>0,i=o&&a.hashtags.length>0;return n||i}static isLimitingPosts(e){return e.moderation.length>0||e.hashtagBlacklist.length>0||e.hashtagWhitelist.length>0||e.captionBlacklist.length>0||e.captionWhitelist.length>0}}p([i.n],f.prototype,"accounts",void 0),p([i.n],f.prototype,"hashtags",void 0),p([i.n],f.prototype,"tagged",void 0),p([i.n],f.prototype,"layout",void 0),p([i.n],f.prototype,"numColumns",void 0),p([i.n],f.prototype,"highlightFreq",void 0),p([i.n],f.prototype,"mediaType",void 0),p([i.n],f.prototype,"postOrder",void 0),p([i.n],f.prototype,"numPosts",void 0),p([i.n],f.prototype,"linkBehavior",void 0),p([i.n],f.prototype,"feedWidth",void 0),p([i.n],f.prototype,"feedHeight",void 0),p([i.n],f.prototype,"feedPadding",void 0),p([i.n],f.prototype,"imgPadding",void 0),p([i.n],f.prototype,"textSize",void 0),p([i.n],f.prototype,"bgColor",void 0),p([i.n],f.prototype,"textColorHover",void 0),p([i.n],f.prototype,"bgColorHover",void 0),p([i.n],f.prototype,"hoverInfo",void 0),p([i.n],f.prototype,"showHeader",void 0),p([i.n],f.prototype,"headerInfo",void 0),p([i.n],f.prototype,"headerAccount",void 0),p([i.n],f.prototype,"headerStyle",void 0),p([i.n],f.prototype,"headerTextSize",void 0),p([i.n],f.prototype,"headerPhotoSize",void 0),p([i.n],f.prototype,"headerTextColor",void 0),p([i.n],f.prototype,"headerBgColor",void 0),p([i.n],f.prototype,"headerPadding",void 0),p([i.n],f.prototype,"customBioText",void 0),p([i.n],f.prototype,"customProfilePic",void 0),p([i.n],f.prototype,"includeStories",void 0),p([i.n],f.prototype,"storiesInterval",void 0),p([i.n],f.prototype,"showCaptions",void 0),p([i.n],f.prototype,"captionMaxLength",void 0),p([i.n],f.prototype,"captionRemoveDots",void 0),p([i.n],f.prototype,"captionSize",void 0),p([i.n],f.prototype,"captionColor",void 0),p([i.n],f.prototype,"showLikes",void 0),p([i.n],f.prototype,"showComments",void 0),p([i.n],f.prototype,"lcIconSize",void 0),p([i.n],f.prototype,"likesIconColor",void 0),p([i.n],f.prototype,"commentsIconColor",void 0),p([i.n],f.prototype,"lightboxShowSidebar",void 0),p([i.n],f.prototype,"numLightboxComments",void 0),p([i.n],f.prototype,"showLoadMoreBtn",void 0),p([i.n],f.prototype,"loadMoreBtnText",void 0),p([i.n],f.prototype,"loadMoreBtnTextColor",void 0),p([i.n],f.prototype,"loadMoreBtnBgColor",void 0),p([i.n],f.prototype,"autoload",void 0),p([i.n],f.prototype,"showFollowBtn",void 0),p([i.n],f.prototype,"followBtnText",void 0),p([i.n],f.prototype,"followBtnTextColor",void 0),p([i.n],f.prototype,"followBtnBgColor",void 0),p([i.n],f.prototype,"followBtnLocation",void 0),p([i.n],f.prototype,"hashtagWhitelist",void 0),p([i.n],f.prototype,"hashtagBlacklist",void 0),p([i.n],f.prototype,"captionWhitelist",void 0),p([i.n],f.prototype,"captionBlacklist",void 0),p([i.n],f.prototype,"hashtagWhitelistSettings",void 0),p([i.n],f.prototype,"hashtagBlacklistSettings",void 0),p([i.n],f.prototype,"captionWhitelistSettings",void 0),p([i.n],f.prototype,"captionBlacklistSettings",void 0),p([i.n],f.prototype,"moderation",void 0),p([i.n],f.prototype,"moderationMode",void 0),e.Options=f;class y{constructor(e){Object.getOwnPropertyNames(e).map(t=>{this[t]=e[t]})}getCaption(e){const t=e.caption?e.caption:"";return this.captionMaxLength&&t.length?Object(d.n)(Object(d.q)(t,this.captionMaxLength)):t}static compute(t,o=r.a.Mode.DESKTOP){const a=new y({accounts:c.b.filterExisting(t.accounts),tagged:c.b.filterExisting(t.tagged),hashtags:t.hashtags.filter(e=>e.tag.length>0),layout:l.a.getById(t.layout),highlightFreq:r.a.get(t.highlightFreq,o,!0),linkBehavior:r.a.get(t.linkBehavior,o,!0),bgColor:Object(u.a)(t.bgColor),textColorHover:Object(u.a)(t.textColorHover),bgColorHover:Object(u.a)(t.bgColorHover),hoverInfo:t.hoverInfo,showHeader:r.a.get(t.showHeader,o,!0),headerInfo:r.a.get(t.headerInfo,o,!0),headerStyle:r.a.get(t.headerStyle,o,!0),headerTextColor:Object(u.a)(t.headerTextColor),headerBgColor:Object(u.a)(t.headerBgColor),headerPadding:r.a.get(t.headerPadding,o,!0),includeStories:t.includeStories,storiesInterval:t.storiesInterval,showCaptions:r.a.get(t.showCaptions,o,!0),captionMaxLength:r.a.get(t.captionMaxLength,o,!0),captionRemoveDots:t.captionRemoveDots,captionColor:Object(u.a)(t.captionColor),showLikes:r.a.get(t.showLikes,o,!0),showComments:r.a.get(t.showComments,o,!0),likesIconColor:Object(u.a)(t.likesIconColor),commentsIconColor:Object(u.a)(t.commentsIconColor),lightboxShowSidebar:t.lightboxShowSidebar,numLightboxComments:t.numLightboxComments,showLoadMoreBtn:r.a.get(t.showLoadMoreBtn,o,!0),loadMoreBtnTextColor:Object(u.a)(t.loadMoreBtnTextColor),loadMoreBtnBgColor:Object(u.a)(t.loadMoreBtnBgColor),loadMoreBtnText:t.loadMoreBtnText,showFollowBtn:r.a.get(t.showFollowBtn,o,!0),autoload:t.autoload,followBtnLocation:r.a.get(t.followBtnLocation,o,!0),followBtnTextColor:Object(u.a)(t.followBtnTextColor),followBtnBgColor:Object(u.a)(t.followBtnBgColor),followBtnText:t.followBtnText,account:null,showBio:!1,bioText:null,profilePhotoUrl:c.b.DEFAULT_PROFILE_PIC,feedWidth:"",feedHeight:"",feedPadding:"",imgPadding:"",textSize:"",headerTextSize:"",headerPhotoSize:"",captionSize:"",lcIconSize:"",showLcIcons:!1});if(a.numColumns=this.getNumCols(t,o),a.numPosts=this.getNumPosts(t,o),a.allAccounts=a.accounts.concat(a.tagged.filter(e=>!a.accounts.includes(e))),a.allAccounts.length>0&&(a.account=t.headerAccount&&a.allAccounts.includes(t.headerAccount)?c.b.getById(t.headerAccount):c.b.getById(a.allAccounts[0])),a.showHeader=a.showHeader&&null!==a.account,a.showHeader&&(a.profilePhotoUrl=t.customProfilePic.length?t.customProfilePic:c.b.getProfilePicUrl(a.account)),a.showFollowBtn=a.showFollowBtn&&null!==a.account,a.showBio=a.headerInfo.some(t=>t===e.HeaderInfo.BIO),a.showBio){const e=t.customBioText.trim().length>0?t.customBioText:null!==a.account?c.b.getBioText(a.account):"";a.bioText=Object(d.n)(e),a.showBio=a.bioText.length>0}return a.feedWidth=this.normalizeCssSize(t.feedWidth,o,"auto"),a.feedHeight=this.normalizeCssSize(t.feedHeight,o,"auto"),a.feedPadding=this.normalizeCssSize(t.feedPadding,o,"0"),a.imgPadding=this.normalizeCssSize(t.imgPadding,o,"0"),a.textSize=this.normalizeCssSize(t.textSize,o,"inherit",!0),a.headerTextSize=this.normalizeCssSize(t.headerTextSize,o,"inherit"),a.headerPhotoSize=this.normalizeCssSize(t.headerPhotoSize,o,"50px"),a.captionSize=this.normalizeCssSize(t.captionSize,o,"inherit"),a.lcIconSize=this.normalizeCssSize(t.lcIconSize,o,"inherit"),a.buttonPadding=Math.max(10,r.a.get(t.imgPadding,o))+"px",a.showLcIcons=a.showLikes||a.showComments,a}static getNumCols(e,t){return Math.max(1,this.normalizeMultiInt(e.numColumns,t,1))}static getNumPosts(e,t){return Math.max(1,this.normalizeMultiInt(e.numPosts,t,1))}static normalizeMultiInt(e,t,o=0){const a=parseInt(r.a.get(e,t)+"");return isNaN(a)?t===r.a.Mode.DESKTOP?o:this.normalizeMultiInt(e,r.a.Mode.DESKTOP,o):a}static normalizeCssSize(e,t,o=null,a=!1){const n=r.a.get(e,t,a);return n?n+"px":o}}e.ComputedOptions=y,e.HashtagSorting=Object(s.c)({recent:"Most recent",popular:"Most popular"}),function(e){e.ALL="all",e.PHOTOS="photos",e.VIDEOS="videos"}(o=e.MediaType||(e.MediaType={})),function(e){e.NOTHING="nothing",e.SELF="self",e.NEW_TAB="new_tab",e.LIGHTBOX="lightbox"}(a=e.LinkBehavior||(e.LinkBehavior={})),function(e){e.DATE_ASC="date_asc",e.DATE_DESC="date_desc",e.POPULARITY_ASC="popularity_asc",e.POPULARITY_DESC="popularity_desc",e.RANDOM="random"}(n=e.PostOrder||(e.PostOrder={})),function(e){e.USERNAME="username",e.DATE="date",e.CAPTION="caption",e.LIKES_COMMENTS="likes_comments",e.INSTA_LINK="insta_link"}(m=e.HoverInfo||(e.HoverInfo={})),function(e){e.NORMAL="normal",e.BOXED="boxed",e.CENTERED="centered"}(h=e.HeaderStyle||(e.HeaderStyle={})),function(e){e.BIO="bio",e.PROFILE_PIC="profile_pic",e.FOLLOWERS="followers",e.MEDIA_COUNT="media_count"}(g=e.HeaderInfo||(e.HeaderInfo={})),function(e){e.HEADER="header",e.BOTTOM="bottom",e.BOTH="both"}(_=e.FollowBtnLocation||(e.FollowBtnLocation={})),function(e){e.WHITELIST="whitelist",e.BLACKLIST="blacklist"}(b=e.ModerationMode||(e.ModerationMode={})),e.DefaultOptions={accounts:[],hashtags:[],tagged:[],layout:null,numColumns:{desktop:3},highlightFreq:{desktop:7},mediaType:o.ALL,postOrder:n.DATE_DESC,numPosts:{desktop:9},linkBehavior:{desktop:a.LIGHTBOX,phone:a.NEW_TAB},feedWidth:{desktop:""},feedHeight:{desktop:""},feedPadding:{desktop:20,tablet:14,phone:10},imgPadding:{desktop:14,tablet:10,phone:6},textSize:{all:""},bgColor:{r:255,g:255,b:255,a:1},hoverInfo:[m.LIKES_COMMENTS,m.INSTA_LINK],textColorHover:{r:255,g:255,b:255,a:1},bgColorHover:{r:0,g:0,b:0,a:.5},showHeader:{desktop:!0},headerInfo:{desktop:[g.PROFILE_PIC,g.BIO]},headerAccount:null,headerStyle:{desktop:h.NORMAL,phone:h.CENTERED},headerTextSize:{desktop:""},headerPhotoSize:{desktop:50},headerTextColor:{r:0,g:0,b:0,a:1},headerBgColor:{r:255,g:255,b:255,a:1},headerPadding:{desktop:0},customProfilePic:0,customBioText:"",includeStories:!1,storiesInterval:5,showCaptions:{desktop:!1},captionMaxLength:{desktop:0},captionRemoveDots:!1,captionSize:{desktop:0},captionColor:{r:0,g:0,b:0,a:1},showLikes:{desktop:!1},showComments:{desktop:!1},lcIconSize:{desktop:14},likesIconColor:{r:0,g:0,b:0,a:1},commentsIconColor:{r:0,g:0,b:0,a:1},lightboxShowSidebar:!1,numLightboxComments:50,showLoadMoreBtn:{desktop:!0},loadMoreBtnTextColor:{r:255,g:255,b:255,a:1},loadMoreBtnBgColor:{r:0,g:149,b:246,a:1},loadMoreBtnText:"Load more",autoload:!1,showFollowBtn:{desktop:!0},followBtnText:"Follow on Instagram",followBtnTextColor:{r:255,g:255,b:255,a:1},followBtnBgColor:{r:0,g:149,b:246,a:1},followBtnLocation:{desktop:_.HEADER,phone:_.BOTTOM},hashtagWhitelist:[],hashtagBlacklist:[],captionWhitelist:[],captionBlacklist:[],hashtagWhitelistSettings:!0,hashtagBlacklistSettings:!0,captionWhitelistSettings:!0,captionBlacklistSettings:!0,moderation:[],moderationMode:b.BLACKLIST,promotionEnabled:!0,promotions:new Map}}(g||(g={}))},60:function(e,t,o){e.exports={root:"IgVideoPlayer__root",thumbnail:"IgVideoPlayer__thumbnail","thumbnail-hidden":"IgVideoPlayer__thumbnail-hidden IgVideoPlayer__thumbnail",thumbnailHidden:"IgVideoPlayer__thumbnail-hidden IgVideoPlayer__thumbnail",video:"IgVideoPlayer__video","video-hidden":"IgVideoPlayer__video-hidden IgVideoPlayer__video",videoHidden:"IgVideoPlayer__video-hidden IgVideoPlayer__video",control:"IgVideoPlayer__control","control-playing":"IgVideoPlayer__control-playing IgVideoPlayer__control",controlPlaying:"IgVideoPlayer__control-playing IgVideoPlayer__control","control-paused":"IgVideoPlayer__control-paused IgVideoPlayer__control",controlPaused:"IgVideoPlayer__control-paused IgVideoPlayer__control","play-button":"IgVideoPlayer__play-button",playButton:"IgVideoPlayer__play-button"}},64:function(e,t,o){"use strict";o.d(t,"a",(function(){return l}));var a=o(0),n=o.n(a),i=o(73),r=o.n(i);function l(){return n.a.createElement("div",{className:r.a.root})}},66:function(e,t,o){e.exports={root:"MediaComment__root",row:"MediaComment__row",username:"MediaComment__username",content:"MediaComment__content MediaComment__row",text:"MediaComment__text","meta-list":"MediaComment__meta-list MediaComment__row",metaList:"MediaComment__meta-list MediaComment__row",meta:"MediaComment__meta",date:"MediaComment__date MediaComment__meta","like-count":"MediaComment__like-count MediaComment__meta",likeCount:"MediaComment__like-count MediaComment__meta"}},67:function(e,t,o){"use strict";o.d(t,"a",(function(){return u}));var a=o(0),n=o.n(a),i=o(47),r=o.n(i),l=o(10),s=o(3),c=o(64),d=o(9);function u(e){var{media:t,className:o,size:i,onLoadImage:u,width:m,height:h}=e,p=function(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(o[a[n]]=e[a[n]])}return o}(e,["media","className","size","onLoadImage","width","height"]);const g=n.a.useRef(),[_,b]=n.a.useState(!0);return Object(a.useLayoutEffect)(()=>{if(g.current){g.current.onload=()=>{b(!1),u&&u()};const e=t.type===l.a.Type.ALBUM&&t.children.length>0?t.children[0]:t,o=Object(s.j)(e.permalink),a=t.type===l.a.Type.VIDEO?Object(s.i)(o,s.a.LARGE):t.url;if(void 0===i){const e=Object(s.i)(o,s.a.SMALL),n=Object(s.i)(o,s.a.MEDIUM),i=Object(s.i)(o,s.a.LARGE);g.current.src=t.type===l.a.Type.VIDEO?a:n,g.current.srcset=`${e} 150w, ${n} 320w, ${i} 600w, ${a} 1000w`}else g.current.src=a}return()=>g.current.onload=()=>null},[t,i]),t.url&&t.url.length>0?n.a.createElement("div",Object.assign({className:Object(d.b)(r.a.root,o)},p),n.a.createElement("img",{ref:g,className:r.a.image,loading:"lazy",alt:t.caption,width:m,height:h}),_&&n.a.createElement(c.a,null)):n.a.createElement("div",{className:r.a.notAvailable},n.a.createElement("span",null,"Thumbnail not available"))}},68:function(e,t,o){"use strict";o.d(t,"a",(function(){return l})),o.d(t,"b",(function(){return s}));var a=o(6),n=o(14),i=o(3);class r{constructor(e=!1,t=!1){this.incModeration=!1,this.incFilters=!1,this.prevOptions=null,this.media=new Array,this.incModeration=e,this.incFilters=t}fetchMedia(e,t){if(null!==this.prevOptions&&!this.isCacheInvalid(e))return Promise.resolve(this.media);const o=Object.assign({},e.options,{moderation:this.incModeration?e.options.moderation:[],moderationMode:e.options.moderationMode,hashtagBlacklist:this.incFilters?e.options.hashtagBlacklist:[],hashtagWhitelist:this.incFilters?e.options.hashtagWhitelist:[],captionBlacklist:this.incFilters?e.options.captionBlacklist:[],captionWhitelist:this.incFilters?e.options.captionWhitelist:[],hashtagBlacklistSettings:!!this.incFilters&&e.options.hashtagBlacklistSettings,hashtagWhitelistSettings:!!this.incFilters&&e.options.hashtagWhitelistSettings,captionBlacklistSettings:!!this.incFilters&&e.options.captionBlacklistSettings,captionWhitelistSettings:!!this.incFilters&&e.options.captionWhitelistSettings});return t&&t(),n.a.getFeedMedia(o).then(t=>(this.prevOptions=new a.a.Options(e.options),this.media=t.data.media,this.media))}isCacheInvalid(e){const t=e.options,o=this.prevOptions;if(Object(i.h)(e.media,this.media,(e,t)=>e.id===t.id).length>0)return!0;if(!Object(i.e)(t.accounts,o.accounts))return!0;if(!Object(i.e)(t.tagged,o.tagged))return!0;if(!Object(i.e)(t.hashtags,o.hashtags,i.l))return!0;if(this.incModeration){if(t.moderationMode!==o.moderationMode)return!0;if(!Object(i.e)(t.moderation,o.moderation))return!0}if(this.incFilters){if(t.captionWhitelistSettings!==o.captionWhitelistSettings||t.captionBlacklistSettings!==o.captionBlacklistSettings||t.hashtagWhitelistSettings!==o.hashtagWhitelistSettings||t.hashtagBlacklistSettings!==o.hashtagBlacklistSettings)return!0;if(!Object(i.e)(t.captionWhitelist,o.captionWhitelist))return!0;if(!Object(i.e)(t.captionBlacklist,o.captionBlacklist))return!0;if(!Object(i.e)(t.hashtagWhitelist,o.hashtagWhitelist))return!0;if(!Object(i.e)(t.hashtagBlacklist,o.hashtagBlacklist))return!0}return!1}}const l=new r(!0,!0),s=new r(!1,!0)},73:function(e,t,o){e.exports={root:"MediaLoading__root",animation:"MediaLoading__animation"}},8:function(e,t,o){"use strict";o.d(t,"a",(function(){return r}));var a=o(0),n=o.n(a),i=o(9);const r=e=>{var{icon:t,className:o}=e,a=function(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(o[a[n]]=e[a[n]])}return o}(e,["icon","className"]);return n.a.createElement("span",Object.assign({className:Object(i.b)("dashicons","dashicons-"+t,o)},a))}},82:function(e,t,o){e.exports={root:"MediaTile__root","type-icon":"MediaTile__type-icon",typeIcon:"MediaTile__type-icon","image-type-icon":"MediaTile__image-type-icon MediaTile__type-icon",imageTypeIcon:"MediaTile__image-type-icon MediaTile__type-icon","video-type-icon":"MediaTile__video-type-icon MediaTile__type-icon",videoTypeIcon:"MediaTile__video-type-icon MediaTile__type-icon","album-type-icon":"MediaTile__album-type-icon MediaTile__type-icon",albumTypeIcon:"MediaTile__album-type-icon MediaTile__type-icon",overlay:"MediaTile__overlay layout__fill-parent"}},83:function(e,t,o){e.exports={root:"FeedLayout__root",wrapper:"FeedLayout__wrapper",button:"FeedLayout__button","follow-btn":"FeedLayout__follow-btn FeedLayout__button",followBtn:"FeedLayout__follow-btn FeedLayout__button","load-more-btn":"FeedLayout__load-more-btn FeedLayout__button",loadMoreBtn:"FeedLayout__load-more-btn FeedLayout__button","fake-media":"FeedLayout__fake-media",fakeMedia:"FeedLayout__fake-media","fake-media-flash-animation":"FeedLayout__fake-media-flash-animation",fakeMediaFlashAnimation:"FeedLayout__fake-media-flash-animation"}},9:function(e,t,o){"use strict";function a(...e){return e.filter(e=>!!e).join(" ")}function n(e){return a(...Object.getOwnPropertyNames(e).map(t=>e[t]?t:null))}function i(e,t={}){let o=Object.getOwnPropertyNames(t).map(o=>t[o]?e+o:null);return e+" "+o.filter(e=>!!e).join(" ")}function r(...e){return t=>{e.forEach(e=>e&&function(e,t){"function"==typeof e?e(t):e.current=t}(e,t))}}o.d(t,"b",(function(){return a})),o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){return i})),o.d(t,"d",(function(){return r}))}},[[355,0,1]]])}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.spotlight=t(require("React"),require("ReactDOM")):e.spotlight=t(e.React,e.ReactDOM)}(window,(function(e,t){return(window.webpackJsonpspotlight=window.webpackJsonpspotlight||[]).push([[6],{0:function(t,o){t.exports=e},10:function(e,t,o){"use strict";o.d(t,"a",(function(){return r}));var n=o(0),a=o.n(n),i=o(11);const r=e=>{var{icon:t,className:o}=e,n=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]])}return o}(e,["icon","className"]);return a.a.createElement("span",Object.assign({className:Object(i.b)("dashicons","dashicons-"+t,o)},n))}},104:function(e,t,o){e.exports={root:"MediaTile__root","type-icon":"MediaTile__type-icon",typeIcon:"MediaTile__type-icon","image-type-icon":"MediaTile__image-type-icon MediaTile__type-icon",imageTypeIcon:"MediaTile__image-type-icon MediaTile__type-icon","video-type-icon":"MediaTile__video-type-icon MediaTile__type-icon",videoTypeIcon:"MediaTile__video-type-icon MediaTile__type-icon","album-type-icon":"MediaTile__album-type-icon MediaTile__type-icon",albumTypeIcon:"MediaTile__album-type-icon MediaTile__type-icon",overlay:"MediaTile__overlay layout__fill-parent"}},106:function(e,t,o){e.exports={root:"FeedLayout__root",wrapper:"FeedLayout__wrapper",button:"FeedLayout__button","follow-btn":"FeedLayout__follow-btn FeedLayout__button",followBtn:"FeedLayout__follow-btn FeedLayout__button","load-more-btn":"FeedLayout__load-more-btn FeedLayout__button",loadMoreBtn:"FeedLayout__load-more-btn FeedLayout__button","fake-media":"FeedLayout__fake-media",fakeMedia:"FeedLayout__fake-media","fake-media-flash-animation":"FeedLayout__fake-media-flash-animation",fakeMediaFlashAnimation:"FeedLayout__fake-media-flash-animation"}},11:function(e,t,o){"use strict";function n(...e){return e.filter(e=>!!e).join(" ")}function a(e){return n(...Object.getOwnPropertyNames(e).map(t=>e[t]?t:null))}function i(e,t={}){let o=Object.getOwnPropertyNames(t).map(o=>t[o]?e+o:null);return e+" "+o.filter(e=>!!e).join(" ")}o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return a})),o.d(t,"a",(function(){return i})),o.d(t,"e",(function(){return r})),o.d(t,"d",(function(){return l}));const r={onMouseDown:e=>e.preventDefault()};function l(...e){return t=>{e.forEach(e=>e&&function(e,t){"function"==typeof e?e(t):e.current=t}(e,t))}}},12:function(e,t,o){"use strict";var n,a=o(8);let i;t.a=i={isPro:!1,config:{restApi:SliCommonL10n.restApi,imagesUrl:SliCommonL10n.imagesUrl,autoPromotions:SliCommonL10n.autoPromotions,globalPromotions:null!==(n=SliCommonL10n.globalPromotions)&&void 0!==n?n:{}},image:e=>`${i.config.imagesUrl}/${e}`},a.a.registerType({id:"link",label:"Link",isValid:()=>!1}),a.a.registerType({id:"-more-",label:"- More promotion types -",isValid:()=>!1}),a.a.Automation.registerType({id:"hashtag",label:"Hashtag",matches:()=>!1})},13:function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));const n=e=>"string"==typeof e?e:"r"in e?"rgba("+e.r+","+e.g+","+e.b+","+e.a+")":"h"in e?"hsla("+e.h+","+e.s+","+e.l+","+e.a+")":"#fff"},136:function(e,t,o){e.exports={root:"MediaTileIcons__root layout__flex-row",icon:"MediaTileIcons__icon"}},15:function(e,t,o){"use strict";var n;o.d(t,"a",(function(){return n})),function(e){let t,o;!function(e){e.IMAGE="IMAGE",e.VIDEO="VIDEO",e.ALBUM="CAROUSEL_ALBUM"}(t=e.Type||(e.Type={})),function(e){let t;!function(e){e.PERSONAL_ACCOUNT="PERSONAL_ACCOUNT",e.BUSINESS_ACCOUNT="BUSINESS_ACCOUNT",e.TAGGED_ACCOUNT="TAGGED_ACCOUNT",e.RECENT_HASHTAG="RECENT_HASHTAG",e.POPULAR_HASHTAG="POPULAR_HASHTAG",e.USER_STORY="USER_STORY"}(t=e.Type||(e.Type={}))}(o=e.Source||(e.Source={})),e.getAsRows=(e,t)=>{e=e.slice(),t=t>0?t:1;let o=[];for(;e.length;)o.push(e.splice(0,t));if(o.length>0){const e=o.length-1;for(;o[e].length<t;)o[e].push({})}return o},e.isFromHashtag=e=>e.source.type===o.Type.POPULAR_HASHTAG||e.source.type===o.Type.RECENT_HASHTAG}(n||(n={}))},154:function(e,t,o){"use strict";var n=o(0),a=o.n(n),i=o(160),r=o.n(i),l=o(6),s=o(3);t.a=Object(l.b)((function({media:e,options:t,full:o}){if(!t.showCaptions||!e.type)return null;const n={color:t.captionColor,fontSize:t.captionSize},i=o?0:1,l=e.caption?e.caption:"",c=t.captionMaxLength?Object(s.v)(l,t.captionMaxLength):l,d=Object(s.s)(c,void 0,i,t.captionRemoveDots),u=o?r.a.full:r.a.preview;return a.a.createElement("div",{className:u,style:n},d)}))},155:function(e,t,o){"use strict";var n=o(0),a=o.n(n),i=o(136),r=o.n(i),l=o(6),s=o(15),c=o(10);t.a=Object(l.b)((function({media:e,options:t}){if(!e.type||e.source.type===s.a.Source.Type.PERSONAL_ACCOUNT)return null;const o={fontSize:t.lcIconSize,lineHeight:t.lcIconSize},n=Object.assign(Object.assign({},o),{color:t.likesIconColor}),i=Object.assign(Object.assign({},o),{color:t.commentsIconColor}),l={fontSize:t.lcIconSize,width:t.lcIconSize,height:t.lcIconSize};return t.showLcIcons&&a.a.createElement("div",{className:r.a.root},t.showLikes&&a.a.createElement("div",{className:r.a.icon,style:n},a.a.createElement(c.a,{icon:"heart",style:l}),a.a.createElement("span",null,e.likesCount)),t.showComments&&a.a.createElement("div",{className:r.a.icon,style:i},a.a.createElement(c.a,{icon:"admin-comments",style:l}),a.a.createElement("span",null,e.commentsCount)))}))},158:function(e,t,o){"use strict";var n=o(0),a=o.n(n),i=o(106),r=o.n(i),l=o(6),s=o(24),c=o.n(s),d=o(33),u=o.n(d),m=o(15),h=o(3),p=o(10),g=o(87),f=o.n(g),_=o(11),b=o(4);const y=({comment:e,className:t})=>{const o=e.username?a.a.createElement("a",{key:-1,href:b.b.getUsernameUrl(e.username),target:"_blank",className:f.a.username},e.username):null,n=o?(e,t)=>t>0?e:[o,...e]:void 0,i=Object(h.s)(e.text,n),r=1===e.likeCount?"like":"likes";return a.a.createElement("div",{className:Object(_.b)(f.a.root,t)},a.a.createElement("div",{className:f.a.content},a.a.createElement("div",{key:e.id,className:f.a.text},i)),a.a.createElement("div",{className:f.a.metaList},a.a.createElement("div",{className:f.a.date},Object(h.u)(e.timestamp)),e.likeCount>0&&a.a.createElement("div",{className:f.a.likeCount},`${e.likeCount} ${r}`)))};var v=o(7),x=o(192),M=o.n(x),L=o(161),w=o.n(L);function E(e){var{url:t,caption:o,size:n}=e,i=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]])}return o}(e,["url","caption","size"]);const[r,l]=a.a.useState(!1),s={width:n.width+"px",height:n.height+"px"};return a.a.createElement("img",Object.assign({style:s,className:r?w.a.image:w.a.loading,src:t,alt:o,loading:"eager",onLoad:()=>l(!0)},i))}var O=o(71),S=o.n(O);function C(e){var{album:t,autoplayVideos:o,size:n}=e,i=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]])}return o}(e,["album","autoplayVideos","size"]);const r=a.a.useRef(),[l,s]=a.a.useState(0),c={transform:`translateX(${100*-l}%)`},d=t.length-1,u={width:n.width+"px",height:n.height+"px"};return a.a.createElement("div",{className:S.a.root,style:u},a.a.createElement("div",{className:S.a.strip,style:c},t.map((e,t)=>a.a.createElement("div",{key:e.id,className:S.a.frame,ref:t>0?void 0:r},a.a.createElement(I,Object.assign({media:e,size:n,autoplayVideos:o},i))))),a.a.createElement("div",{className:S.a.controls},a.a.createElement("div",null,l>0&&a.a.createElement("div",{className:S.a.prevButton,onClick:()=>s(Math.max(l-1,0)),role:"button"},a.a.createElement(p.a,{icon:"arrow-left-alt2"}))),a.a.createElement("div",null,l<d&&a.a.createElement("div",{className:S.a.nextButton,onClick:()=>s(Math.min(l+1,d)),role:"button"},a.a.createElement(p.a,{icon:"arrow-right-alt2"})))),a.a.createElement("div",{className:S.a.indicatorList},t.map((e,t)=>a.a.createElement("div",{key:t,className:t===l?S.a.indicatorCurrent:S.a.indicator}))))}var T=o(80),P=o.n(T),k=o(73);function B(e){var{media:t,thumbnailUrl:o,size:i,autoPlay:r,onGetMetaData:l}=e,s=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]])}return o}(e,["media","thumbnailUrl","size","autoPlay","onGetMetaData"]);const c=a.a.useRef(),[d,u]=a.a.useState(!r),[m,g]=a.a.useState(r);Object(n.useEffect)(()=>{r?d&&u(!1):d||u(!0),m&&g(r)},[t.url]),Object(n.useLayoutEffect)(()=>{if(c.current){const e=()=>g(!0),t=()=>g(!1);return c.current.addEventListener("play",e),c.current.addEventListener("pause",t),()=>{c.current.removeEventListener("play",e),c.current.removeEventListener("pause",t)}}},[c.current]);const f={width:i.width+"px",height:i.height+"px"};return a.a.createElement("div",{key:t.url,className:P.a.root,style:f},a.a.createElement(k.a,{className:d?P.a.thumbnail:P.a.thumbnailHidden,media:t,size:h.a.LARGE,width:i.width,height:i.height}),a.a.createElement("video",Object.assign({ref:c,className:d?P.a.videoHidden:P.a.video,src:t.url,autoPlay:r,controls:!1,playsInline:!0,loop:!0,onCanPlay:()=>{r&&c.current.play()}},s),a.a.createElement("source",{src:t.url}),"Your browser does not support videos"),a.a.createElement("div",{className:m?P.a.controlPlaying:P.a.controlPaused,onClick:()=>{c.current&&(d?(u(!1),c.current.currentTime=0,c.current.play()):c.current.paused?c.current.play():c.current.pause())}},a.a.createElement(p.a,{className:P.a.playButton,icon:"controls-play"})))}function I({media:e,size:t,autoplayVideos:o}){if(e.url&&e.url.length>0)switch(e.type){case m.a.Type.IMAGE:return a.a.createElement(E,{url:e.url,size:t,caption:e.caption});case m.a.Type.VIDEO:const n=Object(h.o)(e,h.a.LARGE);return a.a.createElement(B,{media:e,size:t,thumbnailUrl:n,autoPlay:o});case m.a.Type.ALBUM:if(e.children&&e.children.length>0)return a.a.createElement(C,{album:e.children,size:t,autoplayVideos:o})}const n={width:t.width,height:t.height};return a.a.createElement("div",{className:M.a.notAvailable,style:n},a.a.createElement("span",null,"Media is not available"))}var A=o(16),N=o(58);const j=new Map;function D({feed:e,mediaList:t,current:o,options:i,onClose:r}){var l,s;const d=t.length-1,[g,f]=a.a.useState(o),_=a.a.useRef(g),x=e=>{f(e),_.current=e;const o=t[_.current];j.has(o.id)?C(j.get(o.id)):(L(!0),Object(h.i)(o,{width:600,height:600}).then(e=>{C(e),j.set(o.id,e)}))},[M,L]=a.a.useState(!1),[w,E]=a.a.useState(function(){const e=window.innerWidth<1080?window.innerWidth/1080*600:600;return{width:e,height:e}}()),[O,S]=a.a.useState(!1),C=e=>{E(e),L(!1),S(e.width+435>=window.innerWidth)};Object(n.useEffect)(()=>{x(o)},[o]),Object(A.l)("resize",()=>{const e=t[_.current];if(j.has(e.id)){let t=j.get(e.id);C(t)}});const T=t[g],P=T.comments?T.comments.slice(0,i.numLightboxComments):[],k=v.a.getLink(T,e.options),B=null!==k.text&&null!==k.url;T.caption&&T.caption.length&&P.splice(0,0,{id:T.id,text:T.caption,timestamp:T.timestamp,username:T.username});let D=null,H=null,z=null;switch(T.source.type){case m.a.Source.Type.PERSONAL_ACCOUNT:case m.a.Source.Type.BUSINESS_ACCOUNT:case m.a.Source.Type.TAGGED_ACCOUNT:D="@"+T.username,H=b.b.getUsernameUrl(T.username);const e=b.b.getByUsername(T.username);z=e?b.b.getProfilePicUrl(e):null;break;case m.a.Source.Type.RECENT_HASHTAG:case m.a.Source.Type.POPULAR_HASHTAG:D="#"+T.source.name,H="https://instagram.com/explore/tags/"+T.source.name}const F={fontSize:i.textSize},R=e=>{x(Math.max(0,_.current-1)),e.stopPropagation(),e.preventDefault()},U=e=>{x(Math.min(d,_.current+1)),e.stopPropagation(),e.preventDefault()},W=e=>{r&&r(),e.stopPropagation(),e.preventDefault()};{Object(n.useEffect)(()=>(document.body.addEventListener("keydown",e),()=>document.body.removeEventListener("keydown",e)),[]);const e=e=>{switch(e.key){case"ArrowRight":U(e);break;case"ArrowLeft":R(e);break;case"Escape":W(e)}}}const V={width:w.width+"px",height:w.height+"px"},G=a.a.createElement("div",{style:F,className:c.a.root,tabIndex:-1},a.a.createElement("div",{className:c.a.shade,onClick:W}),M&&a.a.createElement("div",{className:c.a.loadingSkeleton,style:V}),!M&&a.a.createElement("div",{className:O?c.a.wrapVertical:c.a.wrap},a.a.createElement("div",{className:c.a.container,role:"dialog"},a.a.createElement("div",{className:c.a.frame},M?a.a.createElement(N.a,null):a.a.createElement(I,{key:T.id,media:T,size:w})),e.options.lightboxShowSidebar&&a.a.createElement("div",{className:c.a.sidebar},a.a.createElement("div",{className:c.a.sidebarHeader},z&&a.a.createElement("a",{href:H,target:"_blank",className:c.a.sidebarHeaderPicLink},a.a.createElement("img",{className:c.a.sidebarHeaderPic,src:z,alt:null!=D?D:""})),D&&a.a.createElement("div",{className:c.a.sidebarSourceName},a.a.createElement("a",{href:H,target:"_blank"},D))),a.a.createElement("div",{className:c.a.sidebarScroller},P.length>0&&a.a.createElement("div",{className:c.a.sidebarCommentList},P.map((e,t)=>a.a.createElement(y,{key:t,comment:e,className:c.a.sidebarComment})))),a.a.createElement("div",{className:c.a.sidebarFooter},a.a.createElement("div",{className:c.a.sidebarInfo},T.source.type!==m.a.Source.Type.PERSONAL_ACCOUNT&&a.a.createElement("div",{className:c.a.sidebarNumLikes},a.a.createElement("span",null,T.likesCount)," ",a.a.createElement("span",null,"likes")),T.timestamp&&a.a.createElement("div",{className:c.a.sidebarDate},Object(h.u)(T.timestamp))),a.a.createElement("div",{className:c.a.sidebarIgLink},a.a.createElement("a",{href:null!==(l=k.url)&&void 0!==l?l:T.permalink,target:k.newTab?"_blank":"_self"},a.a.createElement(p.a,{icon:B?"external":"instagram"}),a.a.createElement("span",null,null!==(s=k.text)&&void 0!==s?s:"View on Instagram")))))),g>0&&a.a.createElement("div",{className:c.a.prevButtonContainer},a.a.createElement("div",{className:c.a.prevButton,onClick:R,role:"button",tabIndex:0},a.a.createElement(p.a,{icon:"arrow-left-alt",className:c.a.buttonIcon}))),g<t.length-1&&a.a.createElement("div",{className:c.a.nextButtonContainer},a.a.createElement("div",{className:c.a.nextButton,onClick:U,role:"button",tabIndex:0},a.a.createElement(p.a,{icon:"arrow-right-alt",className:c.a.buttonIcon})))),a.a.createElement("div",{className:c.a.closeButton,onClick:W,role:"button",tabIndex:0},a.a.createElement(p.a,{icon:"no-alt",className:c.a.buttonIcon})));return u.a.createPortal(G,document.body)}var H=o(48),z=o.n(H),F=o(162),R=o.n(F);const U=Object(l.b)(({options:e})=>{const t="https://instagram.com/"+e.account.username,o={color:e.followBtnTextColor,backgroundColor:e.followBtnBgColor};return a.a.createElement("a",{href:t,target:"__blank",className:R.a.link},a.a.createElement("button",{className:R.a.button,style:o},e.followBtnText))});var W=o(42),V=o.n(W),G=o(141),$=o(140),K=Object(l.b)((function({stories:e,options:t,onClose:o}){const[i,r]=a.a.useState(0),l=e.length-1,[s,c]=a.a.useState(0),[d,h]=a.a.useState(0);Object(n.useEffect)(()=>{0!==s&&c(0)},[i]);const g=i<l,f=i>0,_=()=>o&&o(),b=()=>i<l?r(i+1):_(),y=()=>r(e=>Math.max(e-1,0)),v=e[i],x="https://instagram.com/"+t.account.username,M=v.type===m.a.Type.VIDEO?d:t.storiesInterval;Object(A.d)("keydown",e=>{switch(e.key){case"Escape":_();break;case"ArrowLeft":y();break;case"ArrowRight":b();break;default:return}e.preventDefault(),e.stopPropagation()});const L=a.a.createElement("div",{className:V.a.root},a.a.createElement("div",{className:V.a.container},a.a.createElement("div",{className:V.a.header},a.a.createElement("a",{href:x,target:"_blank"},a.a.createElement("img",{className:V.a.profilePicture,src:t.profilePhotoUrl,alt:t.account.username})),a.a.createElement("a",{href:x,className:V.a.username,target:"_blank"},t.account.username),a.a.createElement("div",{className:V.a.date},Object(G.a)(Object($.a)(v.timestamp),{addSuffix:!0}))),a.a.createElement("div",{className:V.a.progress},e.map((e,t)=>a.a.createElement(q,{key:e.id,duration:M,animate:t===i,isDone:t<i}))),a.a.createElement("div",{className:V.a.content},f&&a.a.createElement("div",{className:V.a.prevButton,onClick:y,role:"button"},a.a.createElement(p.a,{icon:"arrow-left-alt2"})),a.a.createElement("div",{className:V.a.media},a.a.createElement(X,{key:v.id,media:v,imgDuration:t.storiesInterval,onGetDuration:h,onEnd:()=>g?b():_()})),g&&a.a.createElement("div",{className:V.a.nextButton,onClick:b,role:"button"},a.a.createElement(p.a,{icon:"arrow-right-alt2"})),a.a.createElement("div",{className:V.a.closeButton,onClick:_,role:"button"},a.a.createElement(p.a,{icon:"no-alt"})))));return u.a.createPortal(L,document.body)}));function q({animate:e,isDone:t,duration:o}){const n=e?V.a.progressOverlayAnimating:t?V.a.progressOverlayDone:V.a.progressOverlay,i={animationDuration:o+"s"};return a.a.createElement("div",{className:V.a.progressSegment},a.a.createElement("div",{className:n,style:i}))}function X({media:e,imgDuration:t,onGetDuration:o,onEnd:n}){return e.type===m.a.Type.VIDEO?a.a.createElement(J,{media:e,onEnd:n,onGetDuration:o}):a.a.createElement(Y,{media:e,onEnd:n,duration:t})}function Y({media:e,duration:t,onEnd:o}){const[i,r]=a.a.useState(!1);return Object(n.useEffect)(()=>{const e=i?setTimeout(o,1e3*t):null;return()=>clearTimeout(e)},[e,i]),a.a.createElement("img",{src:e.url,onLoad:()=>r(!0),loading:"eager",alt:""})}function J({media:e,onEnd:t,onGetDuration:o}){const n=a.a.useRef(),i=Object(h.o)(e,h.a.LARGE);return a.a.createElement("video",{ref:n,src:e.url,poster:i,autoPlay:!0,controls:!1,playsInline:!0,loop:!1,onCanPlay:()=>o(n.current.duration),onEnded:t},a.a.createElement("source",{src:e.url}),"Your browser does not support embedded videos")}var Q=Object(l.b)((function({feed:e,options:t}){const[o,n]=a.a.useState(null),i=t.account,r="https://instagram.com/"+i.username,l=e.stories.filter(e=>e.username===i.username),s=l.length>0,c=t.headerInfo.includes(v.a.HeaderInfo.MEDIA_COUNT),d=t.headerInfo.includes(v.a.HeaderInfo.FOLLOWERS)&&i.type!=b.a.Type.PERSONAL,u=t.headerInfo.includes(v.a.HeaderInfo.PROFILE_PIC),m=t.includeStories&&s,h=t.headerStyle===v.a.HeaderStyle.BOXED,p={fontSize:t.headerTextSize,color:t.headerTextColor,backgroundColor:t.headerBgColor,padding:t.headerPadding},g=m?"button":void 0,f={width:t.headerPhotoSize,height:t.headerPhotoSize,cursor:m?"pointer":"normal"},_=t.showFollowBtn&&(t.followBtnLocation===v.a.FollowBtnLocation.HEADER||t.followBtnLocation===v.a.FollowBtnLocation.BOTH),y={justifyContent:t.showBio&&h?"flex-start":"center"},x=a.a.createElement("img",{src:t.profilePhotoUrl,alt:i.username}),M=m&&s?z.a.profilePicWithStories:z.a.profilePic;return a.a.createElement("div",{className:Z(t.headerStyle),style:p},a.a.createElement("div",{className:z.a.leftContainer},u&&a.a.createElement("div",{className:M,style:f,role:g,onClick:()=>{m&&n(0)}},m?x:a.a.createElement("a",{href:r,target:"_blank"},x)),a.a.createElement("div",{className:z.a.info},a.a.createElement("div",{className:z.a.username},a.a.createElement("a",{href:r,target:"_blank",style:{color:t.headerTextColor}},a.a.createElement("span",null,"@"),a.a.createElement("span",null,i.username))),t.showBio&&a.a.createElement("div",{className:z.a.bio},t.bioText),(c||d)&&a.a.createElement("div",{className:z.a.counterList},c&&a.a.createElement("div",{className:z.a.counter},a.a.createElement("span",null,i.mediaCount)," posts"),d&&a.a.createElement("div",{className:z.a.counter},a.a.createElement("span",null,i.followersCount)," followers")))),a.a.createElement("div",{className:z.a.rightContainer},_&&a.a.createElement("div",{className:z.a.followButton,style:y},a.a.createElement(U,{options:t}))),m&&null!==o&&a.a.createElement(K,{stories:l,options:t,onClose:()=>{n(null)}}))}));function Z(e){switch(e){case v.a.HeaderStyle.NORMAL:return z.a.normalStyle;case v.a.HeaderStyle.CENTERED:return z.a.centeredStyle;case v.a.HeaderStyle.BOXED:return z.a.boxedStyle;default:return}}var ee=o(193),te=o.n(ee);const oe=Object(l.b)(({feed:e,options:t})=>{const o=a.a.useRef(),n=Object(A.j)(o,{block:"end",inline:"nearest"}),i={color:t.loadMoreBtnTextColor,backgroundColor:t.loadMoreBtnBgColor};return a.a.createElement("button",{ref:o,className:te.a.root,style:i,onClick:()=>{n(),e.loadMore()}},e.isLoading?a.a.createElement("span",null,"Loading ..."):a.a.createElement("span",null,e.options.loadMoreBtnText))});t.a=Object(l.b)((function({children:e,feed:t,options:o}){const[n,i]=a.a.useState(null),l={width:o.feedWidth,height:o.feedHeight,fontSize:o.textSize},s={backgroundColor:o.bgColor,padding:o.feedPadding},c={marginBottom:o.imgPadding},d={marginTop:o.buttonPadding},u=o.showHeader&&a.a.createElement("div",{style:c},a.a.createElement(Q,{feed:t,options:o})),m=o.showLoadMoreBtn&&t.canLoadMore&&a.a.createElement("div",{className:r.a.loadMoreBtn,style:d},a.a.createElement(oe,{feed:t,options:o})),h=o.showFollowBtn&&(o.followBtnLocation===v.a.FollowBtnLocation.BOTTOM||o.followBtnLocation===v.a.FollowBtnLocation.BOTH)&&a.a.createElement("div",{className:r.a.followBtn,style:d},a.a.createElement(U,{options:o})),p=new Array(o.numPosts).fill(r.a.fakeMedia);return a.a.createElement("div",{className:r.a.root,style:l},a.a.createElement("div",{className:r.a.wrapper,style:s},e({mediaList:t.media,openMedia:function(e){const n=t.media[e];if(!t.options.promotionEnabled||!v.a.executeMediaClick(n,t.options))switch(o.linkBehavior){case v.a.LinkBehavior.LIGHTBOX:return void i(e);case v.a.LinkBehavior.NEW_TAB:return void window.open(n.permalink,"_blank");case v.a.LinkBehavior.SELF:return void window.open(n.permalink,"_self")}},header:u,loadMoreBtn:m,followBtn:h,loadingMedia:p})),null!==n&&a.a.createElement(D,{feed:t,mediaList:t.media,current:n,options:o,onClose:()=>i(null)}))}))},159:function(e,t,o){"use strict";var n=o(104),a=o.n(n),i=o(0),r=o.n(i),l=o(15),s=o(6),c=o(53),d=o.n(c),u=o(140),m=o(614),h=o(613),p=o(7),g=o(10),f=o(3),_=Object(s.b)((function({options:e,media:t}){var o;const n=r.a.useRef(),[a,s]=r.a.useState(null);Object(i.useEffect)(()=>{n.current&&s(n.current.getBoundingClientRect().width)},[]);let c=e.hoverInfo.some(e=>e===p.a.HoverInfo.LIKES_COMMENTS);c=c&&(t.source.type!==l.a.Source.Type.PERSONAL_ACCOUNT||t.source.type===l.a.Source.Type.PERSONAL_ACCOUNT&&t.likesCount+t.commentsCount>0);const _=e.hoverInfo.some(e=>e===p.a.HoverInfo.CAPTION),b=e.hoverInfo.some(e=>e===p.a.HoverInfo.USERNAME),y=e.hoverInfo.some(e=>e===p.a.HoverInfo.DATE),v=e.hoverInfo.some(e=>e===p.a.HoverInfo.INSTA_LINK),x=null!==(o=t.caption)&&void 0!==o?o:"",M=t.timestamp?Object(u.a)(t.timestamp):null,L=t.timestamp?Object(m.a)(M).toString():null,w=t.timestamp?Object(h.a)(M,"HH:mm - do MMM yyyy"):null,E=t.timestamp?Object(f.u)(t.timestamp):null,O={color:e.textColorHover,backgroundColor:e.bgColorHover};let S=null;if(null!==a){const o=Math.sqrt(1.3*(a+30)),n=Math.sqrt(1.6*a+100),i=Math.max(o,8)+"px",l=Math.max(n,8)+"px",s={fontSize:i},u={fontSize:i,width:i,height:i},m={color:e.textColorHover,fontSize:l,width:l,height:l};S=r.a.createElement("div",{className:d.a.rows},r.a.createElement("div",{className:d.a.topRow},b&&t.username&&r.a.createElement("div",{className:d.a.username},r.a.createElement("a",{href:"https://instagram.com/"+t.username,target:"_blank"},"@",t.username)),_&&t.caption&&r.a.createElement("div",{className:d.a.caption},x)),r.a.createElement("div",{className:d.a.middleRow},c&&r.a.createElement("div",{className:d.a.counterList},r.a.createElement("span",{className:d.a.likesCount,style:s},r.a.createElement(g.a,{icon:"heart",style:u})," ",t.likesCount),r.a.createElement("span",{className:d.a.commentsCount,style:s},r.a.createElement(g.a,{icon:"admin-comments",style:u})," ",t.commentsCount))),r.a.createElement("div",{className:d.a.bottomRow},y&&t.timestamp&&r.a.createElement("div",{className:d.a.date},r.a.createElement("time",{dateTime:L,title:w},E)),v&&r.a.createElement("a",{className:d.a.igLinkIcon,href:t.permalink,title:x,target:"_blank",style:m,onClick:e=>e.stopPropagation()},r.a.createElement(g.a,{icon:"instagram",style:m}))))}return r.a.createElement("div",{ref:n,className:d.a.root,style:O},S)})),b=o(12),y=o(73);t.a=Object(s.b)((function({media:e,options:t,forceOverlay:o,onClick:n}){const[i,s]=r.a.useState(!1),c=function(e){switch(e.type){case l.a.Type.IMAGE:return a.a.imageTypeIcon;case l.a.Type.VIDEO:return a.a.videoTypeIcon;case l.a.Type.ALBUM:return a.a.albumTypeIcon;default:return}}(e),d={backgroundImage:`url(${b.a.image("ig-type-sprites.png")})`};return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:a.a.root,onClick:e=>{n&&n(e)},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)},r.a.createElement(y.a,{media:e}),r.a.createElement("div",{className:c,style:d}),(i||o)&&r.a.createElement("div",{className:a.a.overlay},r.a.createElement(_,{media:e,options:t}))))}))},16:function(e,t,o){"use strict";o.d(t,"i",(function(){return l})),o.d(t,"e",(function(){return s})),o.d(t,"b",(function(){return c})),o.d(t,"c",(function(){return d})),o.d(t,"a",(function(){return u})),o.d(t,"m",(function(){return m})),o.d(t,"g",(function(){return h})),o.d(t,"k",(function(){return p})),o.d(t,"j",(function(){return g})),o.d(t,"d",(function(){return _})),o.d(t,"l",(function(){return b})),o.d(t,"f",(function(){return y})),o.d(t,"h",(function(){return v}));var n=o(0),a=o.n(n),i=o(39),r=o(29);function l(e,t){!function(e,t,o){const n=a.a.useRef(!0);e(()=>{n.current=!0;const e=t(()=>new Promise(e=>{n.current&&e()}));return()=>{n.current=!1,e&&e()}},o)}(n.useEffect,e,t)}function s(e){const[t,o]=a.a.useState(e),n=a.a.useRef(t);return[t,()=>n.current,e=>o(n.current=e)]}function c(e,t,o=[]){function a(n){!e.current||e.current.contains(n.target)||o.some(e=>e&&e.current&&e.current.contains(n.target))||t(n)}Object(n.useEffect)(()=>(document.addEventListener("mousedown",a),document.addEventListener("touchend",a),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("touchend",a)}))}function d(e,t){Object(n.useEffect)(()=>{const o=()=>{0===e.filter(e=>!e.current||document.activeElement===e.current||e.current.contains(document.activeElement)).length&&t()};return document.addEventListener("keyup",o),()=>document.removeEventListener("keyup",o)},e)}function u(e,t,o=100){const[i,r]=a.a.useState(e);return Object(n.useEffect)(()=>{let n=null;return e===t?n=setTimeout(()=>r(t),o):r(!t),()=>{null!==n&&clearTimeout(n)}},[e]),[i,r]}function m(e){const[t,o]=a.a.useState(Object(r.b)()),i=()=>{const t=Object(r.b)();o(t),e&&e(t)};return Object(n.useEffect)(()=>(i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)),[]),t}function h(){return new URLSearchParams(Object(i.e)().search)}function p(e,t){const o=o=>{if(t)return(o||window.event).returnValue=e,e};Object(n.useEffect)(()=>(window.addEventListener("beforeunload",o),()=>window.removeEventListener("beforeunload",o)),[t])}function g(e,t){const o=a.a.useRef(!1);return Object(n.useEffect)(()=>{o.current&&void 0!==e.current&&(e.current.scrollIntoView(Object.assign({behavior:"smooth",block:"start"},null!=t?t:{})),o.current=!1)},[o.current]),()=>o.current=!0}function f(e,t,o,a=[],i=[]){Object(n.useEffect)(()=>(a.reduce((e,t)=>e&&t,!0)&&e.addEventListener(t,o),()=>e.removeEventListener(t,o)),i)}function _(e,t,o=[],n=[]){f(document,e,t,o,n)}function b(e,t,o=[],n=[]){f(window,e,t,o,n)}function y(e){return t=>{" "!==t.key&&"Enter"!==t.key||(e(),t.preventDefault(),t.stopPropagation())}}function v(e){const[t,o]=a.a.useState(e);return[function(e){const t=a.a.useRef(e);return t.current=e,t}(t),o]}o(35)},160:function(e,t,o){e.exports={root:"MediaTileCaption__root",preview:"MediaTileCaption__preview MediaTileCaption__root",full:"MediaTileCaption__full MediaTileCaption__root"}},161:function(e,t,o){e.exports={image:"MediaLightboxImage__image MediaLightboxObject__media",loading:"MediaLightboxImage__loading MediaLightboxObject__media MediaLightboxObject__loading-animation"}},162:function(e,t,o){e.exports={link:"FollowButton__link",button:"FollowButton__button feed__feed-button"}},18:function(e,t,o){"use strict";var n=o(34),a=o.n(n),i=o(12),r=o(35);const l=i.a.config.restApi.baseUrl,s={};i.a.config.restApi.authToken&&(s["X-Sli-Auth-Token"]=i.a.config.restApi.authToken);const c=a.a.create({baseURL:l,headers:s}),d={config:i.a.config.restApi,driver:c,getAccounts:()=>c.get("/accounts"),getFeeds:()=>c.get("/feeds"),getFeedMedia:(e,t=0,o=0,n)=>{const i=n?new a.a.CancelToken(n):void 0;return c.post("/media/fetch",{options:e,num:o,from:t},{cancelToken:i})},getErrorReason:e=>{let t;return t="object"==typeof e.response?e.response.data:"string"==typeof e.message?e.message:e.toString(),Object(r.b)(t)}};t.a=d},191:function(e,t,o){"use strict";var n=o(0),a=o.n(n),i=o(62),r=o.n(i),l=o(6),s=o(159),c=o(154),d=o(155),u=o(158),m=o(11),h=o(3);t.a=Object(l.b)((function({feed:e,options:t,cellClassName:o}){const i=a.a.useRef(),[l,p]=a.a.useState(0);Object(n.useLayoutEffect)(()=>{i.current&&p(i.current.getBoundingClientRect().height)},[t]),o=null!=o?o:()=>{};const g={gridGap:t.imgPadding,gridTemplateColumns:`repeat(${t.numColumns}, auto)`},f={paddingBottom:`calc(100% + ${l}px)`};return a.a.createElement(u.a,{feed:e,options:t},({mediaList:n,openMedia:l,header:u,loadMoreBtn:p,followBtn:_,loadingMedia:b})=>a.a.createElement("div",{className:r.a.root},u,(!e.isLoading||e.isLoadingMore)&&a.a.createElement("div",{className:r.a.grid,style:g},e.media.length?n.map((e,n)=>a.a.createElement("div",{key:`${n}-${e.id}`,className:Object(m.b)(r.a.cell,o(e,n)),style:f},a.a.createElement("div",{className:r.a.cellContent},a.a.createElement("div",{className:r.a.mediaContainer},a.a.createElement(s.a,{media:e,onClick:()=>l(n),options:t})),a.a.createElement("div",{className:r.a.mediaMeta,ref:i},a.a.createElement(c.a,{options:t,media:e}),a.a.createElement(d.a,{options:t,media:e}))))):null,e.isLoadingMore&&b.map((e,t)=>a.a.createElement("div",{key:"fake-media-"+Object(h.w)(),className:Object(m.b)(r.a.loadingCell,e,o(null,t))}))),e.isLoading&&!e.isLoadingMore&&a.a.createElement("div",{className:r.a.grid,style:g},b.map((e,t)=>a.a.createElement("div",{key:"fake-media-"+Object(h.w)(),className:Object(m.b)(r.a.loadingCell,e,o(null,t))}))),a.a.createElement("div",{className:r.a.buttonList},p,_)))}))},192:function(e,t,o){e.exports={media:"MediaLightboxObject__media","not-available":"MediaLightboxObject__not-available MediaLightboxObject__media",notAvailable:"MediaLightboxObject__not-available MediaLightboxObject__media","loading-animation":"MediaLightboxObject__loading-animation",loadingAnimation:"MediaLightboxObject__loading-animation",loading:"MediaLightboxObject__loading"}},193:function(e,t,o){e.exports={root:"LoadMoreButton__root feed__feed-button"}},2:function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));var n,a=o(1),i=function(e,t,o,n){var a,i=arguments.length,r=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(i<3?a(r):i>3?a(t,o,r):a(t,o))||r);return i>3&&r&&Object.defineProperty(t,o,r),r};!function(e){class t{constructor(e,t,o){this.prop=e,this.name=t,this.icon=o}}t.DESKTOP=new t("desktop","Desktop","desktop"),t.TABLET=new t("tablet","Tablet","tablet"),t.PHONE=new t("phone","Phone","smartphone"),e.Mode=t,e.MODES=[t.DESKTOP,t.TABLET,t.PHONE];class o{constructor(e,t,o){this.desktop=e,this.tablet=t,this.phone=o}get(e,t){return n(this,e,t)}set(e,t){r(this,t,e)}with(e,t){const n=l(this,t,e);return new o(n.desktop,n.tablet,n.phone)}}function n(e,t,o=!1){if(!e)return;const n=e[t.prop];return o&&null==n?e.desktop:n}function r(e,t,o){return e[o.prop]=t,e}function l(e,t,n){return r(new o(e.desktop,e.tablet,e.phone),t,n)}i([a.n],o.prototype,"desktop",void 0),i([a.n],o.prototype,"tablet",void 0),i([a.n],o.prototype,"phone",void 0),e.Value=o,e.getName=function(e){return e.name},e.getIcon=function(e){return e.icon},e.cycle=function(o){const n=e.MODES.findIndex(e=>e===o);return void 0===n?t.DESKTOP:e.MODES[(n+1)%e.MODES.length]},e.get=n,e.set=r,e.withValue=l,e.normalize=function(e,t){return null==e?t.hasOwnProperty("all")?new o(t.all,t.all,t.all):new o(t.desktop,t.tablet,t.phone):"object"==typeof e&&e.hasOwnProperty("desktop")?new o(e.desktop,e.tablet,e.phone):new o(e,e,e)},e.getModeForWindowSize=function(e){return e.width<=768?t.PHONE:e.width<=935?t.TABLET:t.DESKTOP},e.isValid=function(e){return"object"==typeof e&&e.hasOwnProperty("desktop")}}(n||(n={}))},22:function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));var n,a=o(3);!function(e){function t(e,t){return e.hasOwnProperty(t.toString())}function o(e,t){return e[t.toString()]}function n(e,t,o){return e[t.toString()]=o,e}e.has=t,e.get=o,e.set=n,e.ensure=function(o,a,i){return t(o,a)||n(o,a,i),e.get(o,a)},e.withEntry=function(t,o,n){return e.set(Object(a.h)(t),o,n)},e.remove=function(e,t){return delete e[t.toString()],e},e.without=function(t,o){return e.remove(Object(a.h)(t),o)},e.at=function(e,t){return o(e,Object.keys(e)[t])},e.keys=function(e){return Object.keys(e)},e.values=function(e){return Object.values(e)},e.entries=function(e){return Object.getOwnPropertyNames(e).map(t=>[t,e[t]])},e.map=function(t,o){const n={};return e.forEach(t,(e,t)=>n[e]=o(t,e)),n},e.size=function(t){return e.keys(t).length},e.isEmpty=function(t){return 0===e.size(t)},e.equals=function(e,t){return Object(a.r)(e,t)},e.forEach=function(t,o){e.keys(t).forEach(e=>o(e,t[e]))},e.fromArray=function(t){const o={};return t.forEach(([t,n])=>e.set(o,t,n)),o},e.fromMap=function(t){const o={};return t.forEach((t,n)=>e.set(o,n,t)),o}}(n||(n={}))},24:function(e,t,o){e.exports={root:"MediaLightbox__root layout__fill-parent layout__z-higher layout__flex-row layout__flex-center layout__no-overflow",shade:"MediaLightbox__shade layout__fill-parent layout__z-low","loading-skeleton":"MediaLightbox__loading-skeleton layout__z-high",loadingSkeleton:"MediaLightbox__loading-skeleton layout__z-high",wrap:"MediaLightbox__wrap","wrap-vertical":"MediaLightbox__wrap-vertical MediaLightbox__wrap layout__z-high",wrapVertical:"MediaLightbox__wrap-vertical MediaLightbox__wrap layout__z-high",container:"MediaLightbox__container layout__flex-row",sidebar:"MediaLightbox__sidebar layout__flex-column layout__scroll-y","sidebar-element":"MediaLightbox__sidebar-element",sidebarElement:"MediaLightbox__sidebar-element",frame:"MediaLightbox__frame layout__flex-column layout__flex-center","nav-button-container":"MediaLightbox__nav-button-container layout__flex-column layout__flex-center",navButtonContainer:"MediaLightbox__nav-button-container layout__flex-column layout__flex-center","next-button-container":"MediaLightbox__next-button-container MediaLightbox__nav-button-container layout__flex-column layout__flex-center",nextButtonContainer:"MediaLightbox__next-button-container MediaLightbox__nav-button-container layout__flex-column layout__flex-center","prev-button-container":"MediaLightbox__prev-button-container MediaLightbox__nav-button-container layout__flex-column layout__flex-center",prevButtonContainer:"MediaLightbox__prev-button-container MediaLightbox__nav-button-container layout__flex-column layout__flex-center",button:"MediaLightbox__button layout__z-low","button-icon":"MediaLightbox__button-icon",buttonIcon:"MediaLightbox__button-icon","close-button":"MediaLightbox__close-button MediaLightbox__button layout__z-low",closeButton:"MediaLightbox__close-button MediaLightbox__button layout__z-low","next-button":"MediaLightbox__next-button MediaLightbox__button layout__z-low",nextButton:"MediaLightbox__next-button MediaLightbox__button layout__z-low","prev-button":"MediaLightbox__prev-button MediaLightbox__button layout__z-low",prevButton:"MediaLightbox__prev-button MediaLightbox__button layout__z-low","sidebar-element-bordered":"MediaLightbox__sidebar-element-bordered MediaLightbox__sidebar-element",sidebarElementBordered:"MediaLightbox__sidebar-element-bordered MediaLightbox__sidebar-element","sidebar-header":"MediaLightbox__sidebar-header MediaLightbox__sidebar-element-bordered MediaLightbox__sidebar-element layout__flex-row",sidebarHeader:"MediaLightbox__sidebar-header MediaLightbox__sidebar-element-bordered MediaLightbox__sidebar-element layout__flex-row","sidebar-header-pic":"MediaLightbox__sidebar-header-pic",sidebarHeaderPic:"MediaLightbox__sidebar-header-pic","sidebar-header-pic-link":"MediaLightbox__sidebar-header-pic-link MediaLightbox__sidebar-header-pic",sidebarHeaderPicLink:"MediaLightbox__sidebar-header-pic-link MediaLightbox__sidebar-header-pic","sidebar-scroller":"MediaLightbox__sidebar-scroller layout__scroll-y",sidebarScroller:"MediaLightbox__sidebar-scroller layout__scroll-y","sidebar-comment-list":"MediaLightbox__sidebar-comment-list MediaLightbox__sidebar-element layout__flex-column",sidebarCommentList:"MediaLightbox__sidebar-comment-list MediaLightbox__sidebar-element layout__flex-column","sidebar-comment":"MediaLightbox__sidebar-comment",sidebarComment:"MediaLightbox__sidebar-comment","sidebar-source-name":"MediaLightbox__sidebar-source-name",sidebarSourceName:"MediaLightbox__sidebar-source-name","sidebar-footer":"MediaLightbox__sidebar-footer layout__flex-column",sidebarFooter:"MediaLightbox__sidebar-footer layout__flex-column","sidebar-info":"MediaLightbox__sidebar-info layout__flex-column MediaLightbox__sidebar-element-bordered MediaLightbox__sidebar-element",sidebarInfo:"MediaLightbox__sidebar-info layout__flex-column MediaLightbox__sidebar-element-bordered MediaLightbox__sidebar-element","sidebar-info-line":"MediaLightbox__sidebar-info-line",sidebarInfoLine:"MediaLightbox__sidebar-info-line","sidebar-num-likes":"MediaLightbox__sidebar-num-likes MediaLightbox__sidebar-info-line",sidebarNumLikes:"MediaLightbox__sidebar-num-likes MediaLightbox__sidebar-info-line","sidebar-date":"MediaLightbox__sidebar-date MediaLightbox__sidebar-info-line",sidebarDate:"MediaLightbox__sidebar-date MediaLightbox__sidebar-info-line","sidebar-ig-link":"MediaLightbox__sidebar-ig-link MediaLightbox__sidebar-element-bordered MediaLightbox__sidebar-element",sidebarIgLink:"MediaLightbox__sidebar-ig-link MediaLightbox__sidebar-element-bordered MediaLightbox__sidebar-element"}},27:function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));class n{static getById(e){const t=n.list.find(t=>t.id===e);return!t&&n.list.length>0?n.list[0]:t}static getName(e){const t=n.getById(e);return t?t.name:"(Missing layout)"}static addLayout(e){n.list.push(e)}}n.list=[]},29:function(e,t,o){"use strict";function n(e,t,o={}){return window.open(e,t,function(e={}){return Object.getOwnPropertyNames(e).map(t=>`${t}=${e[t]}`).join(",")}(o))}function a(e,t){return{top:window.top.outerHeight/2+window.top.screenY-t/2,left:window.top.outerWidth/2+window.top.screenX-e/2,width:e,height:t}}function i(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){return a})),o.d(t,"b",(function(){return i}))},3:function(e,t,o){"use strict";o.d(t,"w",(function(){return d})),o.d(t,"h",(function(){return u})),o.d(t,"b",(function(){return m})),o.d(t,"x",(function(){return h})),o.d(t,"c",(function(){return p})),o.d(t,"e",(function(){return g})),o.d(t,"r",(function(){return f})),o.d(t,"q",(function(){return _})),o.d(t,"k",(function(){return b})),o.d(t,"f",(function(){return y})),o.d(t,"p",(function(){return v})),o.d(t,"s",(function(){return x})),o.d(t,"n",(function(){return M})),o.d(t,"a",(function(){return L})),o.d(t,"m",(function(){return w})),o.d(t,"o",(function(){return E})),o.d(t,"v",(function(){return O})),o.d(t,"u",(function(){return S})),o.d(t,"t",(function(){return C})),o.d(t,"i",(function(){return T})),o.d(t,"j",(function(){return P})),o.d(t,"l",(function(){return k})),o.d(t,"g",(function(){return B})),o.d(t,"d",(function(){return I}));var n=o(0),a=o.n(n),i=o(141),r=o(140),l=o(15),s=o(47);let c=0;function d(){return c++}function u(e){const t={};return Object.keys(e).forEach(o=>{const n=e[o];Array.isArray(n)?t[o]=n.slice():n instanceof Map?t[o]=new Map(n.entries()):t[o]="object"==typeof n?u(n):n}),t}function m(e,t){return Object.keys(t).forEach(o=>{e[o]=t[o]}),e}function h(e,t){return m(u(e),t)}function p(e,t){return Array.isArray(e)&&Array.isArray(t)?g(e,t):e instanceof Map&&t instanceof Map?g(Array.from(e.entries()),Array.from(t.entries())):"object"==typeof e&&"object"==typeof t?f(e,t):e===t}function g(e,t,o){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(o){if(!o(e[n],t[n]))return!1}else if(!p(e[n],t[n]))return!1;return!0}function f(e,t){if(!e||!t||"object"!=typeof e||"object"!=typeof t)return p(e,t);const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;const a=new Set(o.concat(n));for(const o of a)if(!p(e[o],t[o]))return!1;return!0}function _(e){return 0===Object.keys(null!=e?e:{}).length}function b(e,t,o){return o=null!=o?o:(e,t)=>e===t,e.filter(e=>!t.some(t=>o(e,t)))}function y(e,t,o){return o=null!=o?o:(e,t)=>e===t,e.every(e=>t.some(t=>o(e,t)))&&t.every(t=>e.some(e=>o(t,e)))}function v(e,t){return 0===e.tag.localeCompare(t.tag)&&e.sort===t.sort}function x(e,t,o=0,i=!1){let r=e.trim();i&&(r=r.replace(/((?:^[.*•]+(\r\n|\r|\n))+)/gm,"\n"));const l=r.split("\n"),s=l.map((e,o)=>{if(e=e.trim(),i&&/^[.*•]$/.test(e))return null;let r,s=[];for(;null!==(r=/#([^\s]+)/g.exec(e));){const t="https://instagram.com/explore/tags/"+r[1],o=a.a.createElement("a",{href:t,target:"_blank",key:d()},r[0]),n=e.substr(0,r.index),i=e.substr(r.index+r[0].length);s.push(n),s.push(o),e=i}return e.length&&s.push(e),t&&(s=t(s,o)),l.length>1&&s.push(a.a.createElement("br",{key:d()})),a.a.createElement(n.Fragment,{key:d()},s)});return o>0?s.slice(0,o):s}function M(e){const t=e.match(/instagram\.com\/p\/([^\/]+)\//);return t&&t.length>0?t[1]:null}var L;function w(e,t=L.MEDIUM){return`https://www.instagram.com/p/${e}/media/?size=${t}`}function E(e,t=L.MEDIUM){return e.thumbnail?e.thumbnail:w(M(e.permalink),t)}function O(e,t){const o=/(\s+)/g;let n,a=0,i=0,r="";for(;null!==(n=o.exec(e))&&a<t;){const t=n.index+n[1].length;r+=e.substr(i,t-i),i=t,a++}return i<e.length&&(r+=" ..."),r}function S(e){return Object(i.a)(Object(r.a)(e),{addSuffix:!0})}function C(e,t){const o=[];return e.forEach((e,n)=>{const a=n%t;Array.isArray(o[a])?o[a].push(e):o[a]=[e]}),o}function T(e,t){return function e(t){if(t.type===l.a.Type.VIDEO){const e=document.createElement("video");return e.autoplay=!1,e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.visibility="hidden",document.body.appendChild(e),new Promise(o=>{e.src=t.url,e.addEventListener("loadeddata",()=>{o({width:e.videoWidth,height:e.videoHeight}),document.body.removeChild(e)})})}if(t.type===l.a.Type.IMAGE){const e=new Image;return e.src=t.url,new Promise(t=>{e.onload=()=>{t({width:e.naturalWidth,height:e.naturalHeight})}})}return t.type===l.a.Type.ALBUM?e(t.children[0]):Promise.reject("Unknown media type")}(e).then(e=>function(e,t){const o=e.width>e.height?t.width/e.width:t.height/e.height;return{width:e.width*o,height:e.height*o}}(e,t))}function P(e,t){const o=t.map(s.b).join("|");return new RegExp(`(?:^|\\B)#(${o})(?:\\b|\\r|$)`,"imu").test(e)}function k(e,t){for(const o of t){const t=o();if(e(t))return t}}function B(e,t){return Math.max(0,Math.min(t.length-1,e))}function I(e,t,o){const n=e.slice();return n[t]=o,n}!function(e){e.SMALL="t",e.MEDIUM="m",e.LARGE="l"}(L||(L={}))},32:function(e,t,o){"use strict";o.d(t,"a",(function(){return c})),o.d(t,"b",(function(){return d})),o.d(t,"c",(function(){return m}));var n=o(0),a=o.n(n),i=o(33),r=o.n(i),l=o(6);class s{constructor(e=new Map,t=[]){this.factories=e,this.extensions=new Map,this.cache=new Map,t.forEach(e=>this.addModule(e))}addModule(e){e.factories&&(this.factories=new Map([...this.factories,...e.factories])),e.extensions&&e.extensions.forEach((e,t)=>{this.extensions.has(t)?this.extensions.get(t).push(e):this.extensions.set(t,[e])})}get(e){let t=this.factories.get(e);if(void 0===t)throw new Error('Service "'+e+'" does not exist');let o=this.cache.get(e);if(void 0===o){o=t(this);let n=this.extensions.get(e);n&&n.forEach(e=>o=e(this,o)),this.cache.set(e,o)}return o}has(e){return this.factories.has(e)}}class c{constructor(e,t,o){this.key=e,this.mount=t,this.modules=o,this.container=null}addModules(e){this.modules=this.modules.concat(e)}run(){if(null!==this.container)return;let e=!1;const t=()=>{e||"interactive"!==document.readyState&&"complete"!==document.readyState||(this.actualRun(),e=!0)};t(),e||document.addEventListener("readystatechange",t)}actualRun(){!function(e){const t=`app/${e.key}/run`;document.dispatchEvent(new u(t,e))}(this);const e=m({root:()=>null,"root/children":()=>[]});this.container=new s(e,this.modules);const t=this.container.get("root/children").map((e,t)=>a.a.createElement(e,{key:t})),o=a.a.createElement(l.a,{c:this.container},t);this.modules.forEach(e=>e.run&&e.run(this.container)),r.a.render(o,this.mount)}}function d(e,t){document.addEventListener(`app/${e}/run`,e=>{t(e.detail.app)})}class u extends CustomEvent{constructor(e,t){super(e,{detail:{app:t}})}}function m(e){return new Map(Object.entries(e))}},33:function(e,o){e.exports=t},35:function(e,t,o){"use strict";function n(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function a(e){const t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return a}))},38:function(e,t,o){"use strict";function n(e){return t=>(t.stopPropagation(),e(t))}function a(e,t){let o;return(...n)=>{clearTimeout(o),o=setTimeout(()=>{o=null,e(...n)},t)}}function i(){}o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){return a})),o.d(t,"b",(function(){return i}))},386:function(e,t,o){"use strict";o.r(t);var n=o(27),a=o(12),i=o(191);n.a.addLayout({id:"grid",name:"Grid",img:a.a.image("grid-layout.png"),component:i.a})},4:function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));var n,a=o(18),i=o(1);!function(e){let t;!function(e){e.PERSONAL="PERSONAL",e.BUSINESS="BUSINESS"}(t=e.Type||(e.Type={}))}(n||(n={}));const r=Object(i.n)([]),l="https://secure.gravatar.com/avatar/4a94d759753ade2961582f7345c1d7b2?s=64&d=mm&r=g",s=e=>r.find(t=>t.id===e),c=e=>"https://instagram.com/"+e;function d(e){return e.slice().sort((e,t)=>e.type===t.type?0:e.type===n.Type.PERSONAL?-1:1),r.splice(0,r.length),e.forEach(e=>r.push(Object(i.n)(e))),r}function u(e){if("object"==typeof e&&Array.isArray(e.data))return d(e.data);throw"Spotlight encountered a problem trying to load your accounts. Kindly contact customer support for assistance."}t.b={list:r,DEFAULT_PROFILE_PIC:l,getById:s,getByUsername:e=>r.find(t=>t.username===e),hasAccounts:()=>r.length>0,filterExisting:e=>e.filter(e=>void 0!==s(e)),idsToAccounts:e=>e.map(e=>s(e)).filter(e=>void 0!==e),getBusinessAccounts:()=>r.filter(e=>e.type===n.Type.BUSINESS),getProfilePicUrl:e=>e.customProfilePicUrl?e.customProfilePicUrl:e.profilePicUrl?e.profilePicUrl:l,getBioText:e=>e.customBio.length?e.customBio:e.bio,getProfileUrl:e=>c(e.username),getUsernameUrl:c,loadAccounts:function(){return a.a.getAccounts().then(u).catch(e=>{throw a.a.getErrorReason(e)})},loadFromResponse:u,addAccounts:d}},42:function(e,t,o){e.exports={root:"StoryLightbox__root layout__fill-parent layout__z-highest layout__flex-column",container:"StoryLightbox__container layout__flex-column",header:"StoryLightbox__header layout__flex-row","profile-picture":"StoryLightbox__profile-picture",profilePicture:"StoryLightbox__profile-picture",username:"StoryLightbox__username",date:"StoryLightbox__date",progress:"StoryLightbox__progress layout__flex-row","progress-segment":"StoryLightbox__progress-segment",progressSegment:"StoryLightbox__progress-segment","progress-overlay":"StoryLightbox__progress-overlay StoryLightbox__progress-segment",progressOverlay:"StoryLightbox__progress-overlay StoryLightbox__progress-segment","progress-overlay-animating":"StoryLightbox__progress-overlay-animating StoryLightbox__progress-overlay StoryLightbox__progress-segment",progressOverlayAnimating:"StoryLightbox__progress-overlay-animating StoryLightbox__progress-overlay StoryLightbox__progress-segment","progress-segment-animation":"StoryLightbox__progress-segment-animation",progressSegmentAnimation:"StoryLightbox__progress-segment-animation","progress-overlay-done":"StoryLightbox__progress-overlay-done StoryLightbox__progress-overlay StoryLightbox__progress-segment",progressOverlayDone:"StoryLightbox__progress-overlay-done StoryLightbox__progress-overlay StoryLightbox__progress-segment",content:"StoryLightbox__content layout__flex-row layout__flex-center",media:"StoryLightbox__media",button:"StoryLightbox__button","close-button":"StoryLightbox__close-button StoryLightbox__button",closeButton:"StoryLightbox__close-button StoryLightbox__button","nav-button":"StoryLightbox__nav-button StoryLightbox__button",navButton:"StoryLightbox__nav-button StoryLightbox__button","prev-button":"StoryLightbox__prev-button StoryLightbox__nav-button StoryLightbox__button",prevButton:"StoryLightbox__prev-button StoryLightbox__nav-button StoryLightbox__button","next-button":"StoryLightbox__next-button StoryLightbox__nav-button StoryLightbox__button",nextButton:"StoryLightbox__next-button StoryLightbox__nav-button StoryLightbox__button"}},43:function(e,t,o){e.exports={root:"MediaThumbnail__root","media-background-fade-in-animation":"MediaThumbnail__media-background-fade-in-animation",mediaBackgroundFadeInAnimation:"MediaThumbnail__media-background-fade-in-animation","media-object-fade-in-animation":"MediaThumbnail__media-object-fade-in-animation",mediaObjectFadeInAnimation:"MediaThumbnail__media-object-fade-in-animation",image:"MediaThumbnail__image","not-available":"MediaThumbnail__not-available",notAvailable:"MediaThumbnail__not-available"}},47:function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return a}));const n=(e,t)=>e.startsWith(t)?e:t+e,a=e=>{return(t=e,"#",t.startsWith("#")?t.substr("#".length):t).split(/\s/).map((e,t)=>t>0?e[0].toUpperCase()+e.substr(1):e).join("").replace(/\W/gi,"");var t}},48:function(e,t,o){e.exports={root:"FeedHeader__root",container:"FeedHeader__container","left-container":"FeedHeader__left-container FeedHeader__container",leftContainer:"FeedHeader__left-container FeedHeader__container","right-container":"FeedHeader__right-container FeedHeader__container",rightContainer:"FeedHeader__right-container FeedHeader__container","profile-pic":"FeedHeader__profile-pic",profilePic:"FeedHeader__profile-pic","profile-pic-with-stories":"FeedHeader__profile-pic-with-stories FeedHeader__profile-pic",profilePicWithStories:"FeedHeader__profile-pic-with-stories FeedHeader__profile-pic",info:"FeedHeader__info","info-row":"FeedHeader__info-row",infoRow:"FeedHeader__info-row",username:"FeedHeader__username FeedHeader__info-row",subtext:"FeedHeader__subtext FeedHeader__info-row",bio:"FeedHeader__bio FeedHeader__subtext FeedHeader__info-row","counter-list":"FeedHeader__counter-list FeedHeader__subtext FeedHeader__info-row",counterList:"FeedHeader__counter-list FeedHeader__subtext FeedHeader__info-row",counter:"FeedHeader__counter","follow-button":"FeedHeader__follow-button",followButton:"FeedHeader__follow-button","centered-style":"FeedHeader__centered-style FeedHeader__root",centeredStyle:"FeedHeader__centered-style FeedHeader__root","normal-style":"FeedHeader__normal-style FeedHeader__root",normalStyle:"FeedHeader__normal-style FeedHeader__root","boxed-style":"FeedHeader__boxed-style FeedHeader__root",boxedStyle:"FeedHeader__boxed-style FeedHeader__root"}},53:function(e,t,o){e.exports={root:"MediaOverlay__root layout__fill-parent",rows:"MediaOverlay__rows",row:"MediaOverlay__row","top-row":"MediaOverlay__top-row MediaOverlay__row",topRow:"MediaOverlay__top-row MediaOverlay__row","middle-row":"MediaOverlay__middle-row MediaOverlay__row",middleRow:"MediaOverlay__middle-row MediaOverlay__row","bottom-row":"MediaOverlay__bottom-row MediaOverlay__row",bottomRow:"MediaOverlay__bottom-row MediaOverlay__row","counter-list":"MediaOverlay__counter-list",counterList:"MediaOverlay__counter-list",username:"MediaOverlay__username",date:"MediaOverlay__date",caption:"MediaOverlay__caption",counter:"MediaOverlay__counter","comments-count":"MediaOverlay__comments-count MediaOverlay__counter",commentsCount:"MediaOverlay__comments-count MediaOverlay__counter","likes-count":"MediaOverlay__likes-count MediaOverlay__counter",likesCount:"MediaOverlay__likes-count MediaOverlay__counter","ig-link-icon":"MediaOverlay__ig-link-icon",igLinkIcon:"MediaOverlay__ig-link-icon"}},58:function(e,t,o){"use strict";o.d(t,"a",(function(){return l}));var n=o(0),a=o.n(n),i=o(74),r=o.n(i);function l(){return a.a.createElement("div",{className:r.a.root})}},62:function(e,t,o){e.exports={root:"GridLayout__root layout__flex-column",grid:"GridLayout__grid",cell:"GridLayout__cell","cell-content":"GridLayout__cell-content layout__fill-parent layout__flex-column",cellContent:"GridLayout__cell-content layout__fill-parent layout__flex-column","media-container":"GridLayout__media-container",mediaContainer:"GridLayout__media-container","media-meta":"GridLayout__media-meta layout__flex-column",mediaMeta:"GridLayout__media-meta layout__flex-column","button-list":"GridLayout__button-list layout__flex-column",buttonList:"GridLayout__button-list layout__flex-column"}},7:function(e,t,o){"use strict";o.d(t,"a",(function(){return b}));var n=o(34),a=o.n(n),i=o(1),r=o(2),l=o(27),s=o(32),c=o(4),d=o(3),u=o(13),m=o(18),h=o(38),p=o(8),g=o(22),f=o(12),_=function(e,t,o,n){var a,i=arguments.length,r=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(i<3?a(r):i>3?a(t,o,r):a(t,o))||r);return i>3&&r&&Object.defineProperty(t,o,r),r};class b{constructor(e=new b.Options,t=r.a.Mode.DESKTOP){this.media=[],this.canLoadMore=!1,this.stories=[],this.numLoadedMore=0,this.totalMedia=0,this.mode=r.a.Mode.DESKTOP,this.isLoaded=!1,this.isLoading=!1,this.isLoadingMore=!1,this.numMediaToShow=0,this.numMediaPerPage=0,this.cancelFetch=()=>{},this.options=new b.Options(e),this.localMedia=[],this.mode=t,this.mediaCounter=this._numMediaPerPage,this.reload=Object(h.a)(()=>this.load(),300),Object(i.o)(()=>this.mode,()=>{0===this.numLoadedMore&&(this.mediaCounter=this._numMediaPerPage,this.localMedia.length<this.numMediaToShow&&this.loadMedia(this.localMedia.length,this.numMediaToShow-this.localMedia.length))}),Object(i.o)(()=>this.getReloadOptions(),()=>this.reload()),Object(i.o)(()=>({num:this._numMediaPerPage,mode:this.mode}),({num:e})=>{this.localMedia.length<e&&e<=this.totalMedia?this.reload():this.mediaCounter=Math.max(1,e)}),Object(i.o)(()=>this._media,e=>this.media=e),Object(i.o)(()=>this._numMediaToShow,e=>this.numMediaToShow=e),Object(i.o)(()=>this._numMediaPerPage,e=>this.numMediaPerPage=e),Object(i.o)(()=>this._canLoadMore,e=>this.canLoadMore=e)}get _media(){return this.localMedia.slice(0,this.numMediaToShow)}get _numMediaToShow(){return Math.min(this.mediaCounter,this.totalMedia)}get _numMediaPerPage(){return Math.max(1,b.ComputedOptions.normalizeMultiInt(this.options.numPosts,this.mode,1))}get _canLoadMore(){return this.localMedia.length>this.mediaCounter||this.localMedia.length<this.totalMedia}loadMore(){const e=this.numMediaToShow+this._numMediaPerPage-this.localMedia.length;return this.isLoadingMore=!0,e>0?this.loadMedia(this.localMedia.length,this._numMediaPerPage).then(()=>{this.mediaCounter+=this._numMediaPerPage,this.numLoadedMore++,this.isLoadingMore=!1}):new Promise(e=>{this.numLoadedMore++,this.mediaCounter+=this._numMediaPerPage,this.isLoadingMore=!1,e()})}load(){return this.numLoadedMore=0,this.loadMedia(0,this._numMediaPerPage,!0).then(()=>(this.isLoaded=!0,this.mediaCounter=this._numMediaPerPage))}loadMedia(e,t,o){return this.cancelFetch(),b.Options.hasSources(this.options)?(this.isLoading=!0,new Promise((n,i)=>{m.a.getFeedMedia(this.options,e,t,e=>this.cancelFetch=e).then(e=>{var t;if("object"!=typeof e||"object"!=typeof e.data||!Array.isArray(e.data.media))throw{message:"The media response is malformed or corrupt",response:e};o&&(this.localMedia=[]),this.localMedia.push(...e.data.media),this.stories=null!==(t=e.data.stories)&&void 0!==t?t:[],this.totalMedia=e.data.total,n&&n()}).catch(e=>{var t;if(a.a.isCancel(e))return null;const o=new b.Events.FetchFailEvent(b.Events.FETCH_FAIL,{detail:{feed:this,message:null!==(t=e.response?e.response.data.message:void 0)&&void 0!==t?t:e.message,response:e.response}});return document.dispatchEvent(o),i&&i(e),e}).finally(()=>this.isLoading=!1)})):new Promise(e=>{this.localMedia=[],this.totalMedia=0,e&&e()})}getReloadOptions(){return JSON.stringify({accounts:this.options.accounts,hashtags:this.options.hashtags,tagged:this.options.tagged,postOrder:this.options.postOrder,mediaType:this.options.mediaType,moderation:this.options.moderation,moderationMode:this.options.moderationMode,hashtagBlacklist:this.options.hashtagBlacklist,hashtagWhitelist:this.options.hashtagWhitelist,captionBlacklist:this.options.captionBlacklist,captionWhitelist:this.options.captionWhitelist,hashtagBlacklistSettings:this.options.hashtagBlacklistSettings,hashtagWhitelistSettings:this.options.hashtagWhitelistSettings,captionBlacklistSettings:this.options.captionBlacklistSettings,captionWhitelistSettings:this.options.captionWhitelistSettings})}}_([i.n],b.prototype,"media",void 0),_([i.n],b.prototype,"canLoadMore",void 0),_([i.n],b.prototype,"stories",void 0),_([i.n],b.prototype,"numLoadedMore",void 0),_([i.n],b.prototype,"options",void 0),_([i.n],b.prototype,"totalMedia",void 0),_([i.n],b.prototype,"mode",void 0),_([i.n],b.prototype,"isLoaded",void 0),_([i.n],b.prototype,"isLoading",void 0),_([i.n],b.prototype,"isLoadingMore",void 0),_([i.f],b.prototype,"reload",void 0),_([i.n],b.prototype,"localMedia",void 0),_([i.n],b.prototype,"numMediaToShow",void 0),_([i.n],b.prototype,"numMediaPerPage",void 0),_([i.n],b.prototype,"mediaCounter",void 0),_([i.h],b.prototype,"_media",null),_([i.h],b.prototype,"_numMediaToShow",null),_([i.h],b.prototype,"_numMediaPerPage",null),_([i.h],b.prototype,"_canLoadMore",null),_([i.f],b.prototype,"loadMore",null),_([i.f],b.prototype,"load",null),_([i.f],b.prototype,"loadMedia",null),function(e){let t,o,n,a,m,h,b,y,v;!function(e){e.FETCH_FAIL="sli/feed/fetch_fail";class t extends CustomEvent{constructor(e,t){super(e,t)}}e.FetchFailEvent=t}(t=e.Events||(e.Events={}));class x{constructor(e={}){x.setFromObject(this,e)}static setFromObject(t,o={}){var n,a,i,s,d,u,m,h,p,f,_,b,y,v,x;return t.accounts=o.accounts?o.accounts.slice():e.DefaultOptions.accounts,t.hashtags=o.hashtags?o.hashtags.slice():e.DefaultOptions.hashtags,t.tagged=o.tagged?o.tagged.slice():e.DefaultOptions.tagged,t.layout=l.a.getById(o.layout).id,t.numColumns=r.a.normalize(o.numColumns,e.DefaultOptions.numColumns),t.highlightFreq=r.a.normalize(o.highlightFreq,e.DefaultOptions.highlightFreq),t.mediaType=o.mediaType||e.DefaultOptions.mediaType,t.postOrder=o.postOrder||e.DefaultOptions.postOrder,t.numPosts=r.a.normalize(o.numPosts,e.DefaultOptions.numPosts),t.linkBehavior=r.a.normalize(o.linkBehavior,e.DefaultOptions.linkBehavior),t.feedWidth=r.a.normalize(o.feedWidth,e.DefaultOptions.feedWidth),t.feedHeight=r.a.normalize(o.feedHeight,e.DefaultOptions.feedHeight),t.feedPadding=r.a.normalize(o.feedPadding,e.DefaultOptions.feedPadding),t.imgPadding=r.a.normalize(o.imgPadding,e.DefaultOptions.imgPadding),t.textSize=r.a.normalize(o.textSize,e.DefaultOptions.textSize),t.bgColor=o.bgColor||e.DefaultOptions.bgColor,t.hoverInfo=o.hoverInfo?o.hoverInfo.slice():e.DefaultOptions.hoverInfo,t.textColorHover=o.textColorHover||e.DefaultOptions.textColorHover,t.bgColorHover=o.bgColorHover||e.DefaultOptions.bgColorHover,t.showHeader=r.a.normalize(o.showHeader,e.DefaultOptions.showHeader),t.headerInfo=r.a.normalize(o.headerInfo,e.DefaultOptions.headerInfo),t.headerAccount=null!==(n=o.headerAccount)&&void 0!==n?n:e.DefaultOptions.headerAccount,t.headerAccount=null===t.headerAccount||void 0===c.b.getById(t.headerAccount)?c.b.list.length>0?c.b.list[0].id:null:t.headerAccount,t.headerStyle=r.a.normalize(o.headerStyle,e.DefaultOptions.headerStyle),t.headerTextSize=r.a.normalize(o.headerTextSize,e.DefaultOptions.headerTextSize),t.headerPhotoSize=r.a.normalize(o.headerPhotoSize,e.DefaultOptions.headerPhotoSize),t.headerTextColor=o.headerTextColor||e.DefaultOptions.headerTextColor,t.headerBgColor=o.headerBgColor||e.DefaultOptions.bgColor,t.headerPadding=r.a.normalize(o.headerPadding,e.DefaultOptions.headerPadding),t.customProfilePic=null!==(a=o.customProfilePic)&&void 0!==a?a:e.DefaultOptions.customProfilePic,t.customBioText=o.customBioText||e.DefaultOptions.customBioText,t.includeStories=null!==(i=o.includeStories)&&void 0!==i?i:e.DefaultOptions.includeStories,t.storiesInterval=o.storiesInterval||e.DefaultOptions.storiesInterval,t.showCaptions=r.a.normalize(o.showCaptions,e.DefaultOptions.showCaptions),t.captionMaxLength=r.a.normalize(o.captionMaxLength,e.DefaultOptions.captionMaxLength),t.captionRemoveDots=null!==(s=o.captionRemoveDots)&&void 0!==s?s:e.DefaultOptions.captionRemoveDots,t.captionSize=r.a.normalize(o.captionSize,e.DefaultOptions.captionSize),t.captionColor=o.captionColor||e.DefaultOptions.captionColor,t.showLikes=r.a.normalize(o.showLikes,e.DefaultOptions.showLikes),t.showComments=r.a.normalize(o.showComments,e.DefaultOptions.showCaptions),t.lcIconSize=r.a.normalize(o.lcIconSize,e.DefaultOptions.lcIconSize),t.likesIconColor=null!==(d=o.likesIconColor)&&void 0!==d?d:e.DefaultOptions.likesIconColor,t.commentsIconColor=o.commentsIconColor||e.DefaultOptions.commentsIconColor,t.lightboxShowSidebar=null!==(u=o.lightboxShowSidebar)&&void 0!==u?u:e.DefaultOptions.lightboxShowSidebar,t.numLightboxComments=o.numLightboxComments||e.DefaultOptions.numLightboxComments,t.showLoadMoreBtn=r.a.normalize(o.showLoadMoreBtn,e.DefaultOptions.showLoadMoreBtn),t.loadMoreBtnTextColor=o.loadMoreBtnTextColor||e.DefaultOptions.loadMoreBtnTextColor,t.loadMoreBtnBgColor=o.loadMoreBtnBgColor||e.DefaultOptions.loadMoreBtnBgColor,t.loadMoreBtnText=o.loadMoreBtnText||e.DefaultOptions.loadMoreBtnText,t.autoload=null!==(m=o.autoload)&&void 0!==m?m:e.DefaultOptions.autoload,t.showFollowBtn=r.a.normalize(o.showFollowBtn,e.DefaultOptions.showFollowBtn),t.followBtnText=null!==(h=o.followBtnText)&&void 0!==h?h:e.DefaultOptions.followBtnText,t.followBtnTextColor=o.followBtnTextColor||e.DefaultOptions.followBtnTextColor,t.followBtnBgColor=o.followBtnBgColor||e.DefaultOptions.followBtnBgColor,t.followBtnLocation=r.a.normalize(o.followBtnLocation,e.DefaultOptions.followBtnLocation),t.hashtagWhitelist=o.hashtagWhitelist||e.DefaultOptions.hashtagWhitelist,t.hashtagBlacklist=o.hashtagBlacklist||e.DefaultOptions.hashtagBlacklist,t.captionWhitelist=o.captionWhitelist||e.DefaultOptions.captionWhitelist,t.captionBlacklist=o.captionBlacklist||e.DefaultOptions.captionBlacklist,t.hashtagWhitelistSettings=null!==(p=o.hashtagWhitelistSettings)&&void 0!==p?p:e.DefaultOptions.hashtagWhitelistSettings,t.hashtagBlacklistSettings=null!==(f=o.hashtagBlacklistSettings)&&void 0!==f?f:e.DefaultOptions.hashtagBlacklistSettings,t.captionWhitelistSettings=null!==(_=o.captionWhitelistSettings)&&void 0!==_?_:e.DefaultOptions.captionWhitelistSettings,t.captionBlacklistSettings=null!==(b=o.captionBlacklistSettings)&&void 0!==b?b:e.DefaultOptions.captionBlacklistSettings,t.moderation=o.moderation||e.DefaultOptions.moderation,t.moderationMode=o.moderationMode||e.DefaultOptions.moderationMode,t.promotionEnabled=null!==(y=o.promotionEnabled)&&void 0!==y?y:e.DefaultOptions.promotionEnabled,t.autoPromotionsEnabled=null!==(v=o.autoPromotionsEnabled)&&void 0!==v?v:e.DefaultOptions.autoPromotionsEnabled,t.globalPromotionsEnabled=null!==(x=o.globalPromotionsEnabled)&&void 0!==x?x:e.DefaultOptions.globalPromotionsEnabled,Array.isArray(o.promotions)?t.promotions=g.a.fromArray(o.promotions):o.promotions&&o.promotions instanceof Map?t.promotions=g.a.fromMap(o.promotions):"object"==typeof o.promotions?t.promotions=o.promotions:t.promotions=e.DefaultOptions.promotions,t}static getAllAccounts(e){const t=c.b.idsToAccounts(e.accounts),o=c.b.idsToAccounts(e.tagged);return{all:t.concat(o),accounts:t,tagged:o}}static getSources(e){return{accounts:c.b.idsToAccounts(e.accounts),tagged:c.b.idsToAccounts(e.tagged),hashtags:c.b.getBusinessAccounts().length>0?e.hashtags.filter(e=>e.tag.length>0):[]}}static hasSources(t){const o=e.Options.getSources(t),n=o.accounts.length>0||o.tagged.length>0,a=o.hashtags.length>0;return n||a}static isLimitingPosts(e){return e.moderation.length>0||e.hashtagBlacklist.length>0||e.hashtagWhitelist.length>0||e.captionBlacklist.length>0||e.captionWhitelist.length>0}}_([i.n],x.prototype,"accounts",void 0),_([i.n],x.prototype,"hashtags",void 0),_([i.n],x.prototype,"tagged",void 0),_([i.n],x.prototype,"layout",void 0),_([i.n],x.prototype,"numColumns",void 0),_([i.n],x.prototype,"highlightFreq",void 0),_([i.n],x.prototype,"mediaType",void 0),_([i.n],x.prototype,"postOrder",void 0),_([i.n],x.prototype,"numPosts",void 0),_([i.n],x.prototype,"linkBehavior",void 0),_([i.n],x.prototype,"feedWidth",void 0),_([i.n],x.prototype,"feedHeight",void 0),_([i.n],x.prototype,"feedPadding",void 0),_([i.n],x.prototype,"imgPadding",void 0),_([i.n],x.prototype,"textSize",void 0),_([i.n],x.prototype,"bgColor",void 0),_([i.n],x.prototype,"textColorHover",void 0),_([i.n],x.prototype,"bgColorHover",void 0),_([i.n],x.prototype,"hoverInfo",void 0),_([i.n],x.prototype,"showHeader",void 0),_([i.n],x.prototype,"headerInfo",void 0),_([i.n],x.prototype,"headerAccount",void 0),_([i.n],x.prototype,"headerStyle",void 0),_([i.n],x.prototype,"headerTextSize",void 0),_([i.n],x.prototype,"headerPhotoSize",void 0),_([i.n],x.prototype,"headerTextColor",void 0),_([i.n],x.prototype,"headerBgColor",void 0),_([i.n],x.prototype,"headerPadding",void 0),_([i.n],x.prototype,"customBioText",void 0),_([i.n],x.prototype,"customProfilePic",void 0),_([i.n],x.prototype,"includeStories",void 0),_([i.n],x.prototype,"storiesInterval",void 0),_([i.n],x.prototype,"showCaptions",void 0),_([i.n],x.prototype,"captionMaxLength",void 0),_([i.n],x.prototype,"captionRemoveDots",void 0),_([i.n],x.prototype,"captionSize",void 0),_([i.n],x.prototype,"captionColor",void 0),_([i.n],x.prototype,"showLikes",void 0),_([i.n],x.prototype,"showComments",void 0),_([i.n],x.prototype,"lcIconSize",void 0),_([i.n],x.prototype,"likesIconColor",void 0),_([i.n],x.prototype,"commentsIconColor",void 0),_([i.n],x.prototype,"lightboxShowSidebar",void 0),_([i.n],x.prototype,"numLightboxComments",void 0),_([i.n],x.prototype,"showLoadMoreBtn",void 0),_([i.n],x.prototype,"loadMoreBtnText",void 0),_([i.n],x.prototype,"loadMoreBtnTextColor",void 0),_([i.n],x.prototype,"loadMoreBtnBgColor",void 0),_([i.n],x.prototype,"autoload",void 0),_([i.n],x.prototype,"showFollowBtn",void 0),_([i.n],x.prototype,"followBtnText",void 0),_([i.n],x.prototype,"followBtnTextColor",void 0),_([i.n],x.prototype,"followBtnBgColor",void 0),_([i.n],x.prototype,"followBtnLocation",void 0),_([i.n],x.prototype,"hashtagWhitelist",void 0),_([i.n],x.prototype,"hashtagBlacklist",void 0),_([i.n],x.prototype,"captionWhitelist",void 0),_([i.n],x.prototype,"captionBlacklist",void 0),_([i.n],x.prototype,"hashtagWhitelistSettings",void 0),_([i.n],x.prototype,"hashtagBlacklistSettings",void 0),_([i.n],x.prototype,"captionWhitelistSettings",void 0),_([i.n],x.prototype,"captionBlacklistSettings",void 0),_([i.n],x.prototype,"moderation",void 0),_([i.n],x.prototype,"moderationMode",void 0),e.Options=x;class M{constructor(e){Object.getOwnPropertyNames(e).map(t=>{this[t]=e[t]})}getCaption(e){const t=e.caption?e.caption:"";return this.captionMaxLength&&t.length?Object(d.s)(Object(d.v)(t,this.captionMaxLength)):t}static compute(t,o=r.a.Mode.DESKTOP){const n=new M({accounts:c.b.filterExisting(t.accounts),tagged:c.b.filterExisting(t.tagged),hashtags:t.hashtags.filter(e=>e.tag.length>0),layout:l.a.getById(t.layout),highlightFreq:r.a.get(t.highlightFreq,o,!0),linkBehavior:r.a.get(t.linkBehavior,o,!0),bgColor:Object(u.a)(t.bgColor),textColorHover:Object(u.a)(t.textColorHover),bgColorHover:Object(u.a)(t.bgColorHover),hoverInfo:t.hoverInfo,showHeader:r.a.get(t.showHeader,o,!0),headerInfo:r.a.get(t.headerInfo,o,!0),headerStyle:r.a.get(t.headerStyle,o,!0),headerTextColor:Object(u.a)(t.headerTextColor),headerBgColor:Object(u.a)(t.headerBgColor),headerPadding:r.a.get(t.headerPadding,o,!0),includeStories:t.includeStories,storiesInterval:t.storiesInterval,showCaptions:r.a.get(t.showCaptions,o,!0),captionMaxLength:r.a.get(t.captionMaxLength,o,!0),captionRemoveDots:t.captionRemoveDots,captionColor:Object(u.a)(t.captionColor),showLikes:r.a.get(t.showLikes,o,!0),showComments:r.a.get(t.showComments,o,!0),likesIconColor:Object(u.a)(t.likesIconColor),commentsIconColor:Object(u.a)(t.commentsIconColor),lightboxShowSidebar:t.lightboxShowSidebar,numLightboxComments:t.numLightboxComments,showLoadMoreBtn:r.a.get(t.showLoadMoreBtn,o,!0),loadMoreBtnTextColor:Object(u.a)(t.loadMoreBtnTextColor),loadMoreBtnBgColor:Object(u.a)(t.loadMoreBtnBgColor),loadMoreBtnText:t.loadMoreBtnText,showFollowBtn:r.a.get(t.showFollowBtn,o,!0),autoload:t.autoload,followBtnLocation:r.a.get(t.followBtnLocation,o,!0),followBtnTextColor:Object(u.a)(t.followBtnTextColor),followBtnBgColor:Object(u.a)(t.followBtnBgColor),followBtnText:t.followBtnText,account:null,showBio:!1,bioText:null,profilePhotoUrl:c.b.DEFAULT_PROFILE_PIC,feedWidth:"",feedHeight:"",feedPadding:"",imgPadding:"",textSize:"",headerTextSize:"",headerPhotoSize:"",captionSize:"",lcIconSize:"",showLcIcons:!1});if(n.numColumns=this.getNumCols(t,o),n.numPosts=this.getNumPosts(t,o),n.allAccounts=n.accounts.concat(n.tagged.filter(e=>!n.accounts.includes(e))),n.allAccounts.length>0&&(n.account=t.headerAccount&&n.allAccounts.includes(t.headerAccount)?c.b.getById(t.headerAccount):c.b.getById(n.allAccounts[0])),n.showHeader=n.showHeader&&null!==n.account,n.showHeader&&(n.profilePhotoUrl=t.customProfilePic.length?t.customProfilePic:c.b.getProfilePicUrl(n.account)),n.showFollowBtn=n.showFollowBtn&&null!==n.account,n.showBio=n.headerInfo.some(t=>t===e.HeaderInfo.BIO),n.showBio){const e=t.customBioText.trim().length>0?t.customBioText:null!==n.account?c.b.getBioText(n.account):"";n.bioText=Object(d.s)(e),n.showBio=n.bioText.length>0}return n.feedWidth=this.normalizeCssSize(t.feedWidth,o,"auto"),n.feedHeight=this.normalizeCssSize(t.feedHeight,o,"auto"),n.feedPadding=this.normalizeCssSize(t.feedPadding,o,"0"),n.imgPadding=this.normalizeCssSize(t.imgPadding,o,"0"),n.textSize=this.normalizeCssSize(t.textSize,o,"inherit",!0),n.headerTextSize=this.normalizeCssSize(t.headerTextSize,o,"inherit"),n.headerPhotoSize=this.normalizeCssSize(t.headerPhotoSize,o,"50px"),n.captionSize=this.normalizeCssSize(t.captionSize,o,"inherit"),n.lcIconSize=this.normalizeCssSize(t.lcIconSize,o,"inherit"),n.buttonPadding=Math.max(10,r.a.get(t.imgPadding,o))+"px",n.showLcIcons=n.showLikes||n.showComments,n}static getNumCols(e,t){return Math.max(1,this.normalizeMultiInt(e.numColumns,t,1))}static getNumPosts(e,t){return Math.max(1,this.normalizeMultiInt(e.numPosts,t,1))}static normalizeMultiInt(e,t,o=0){const n=parseInt(r.a.get(e,t)+"");return isNaN(n)?t===r.a.Mode.DESKTOP?o:this.normalizeMultiInt(e,r.a.Mode.DESKTOP,o):n}static normalizeCssSize(e,t,o=null,n=!1){const a=r.a.get(e,t,n);return a?a+"px":o}}function L(e,t){if(f.a.isPro)return Object(d.l)(p.a.isValid,[()=>w(e,t),()=>t.globalPromotionsEnabled&&p.a.getGlobalPromo(e),()=>t.autoPromotionsEnabled&&p.a.getAutoPromo(e)])}function w(e,t){return e?p.a.getPromoFromDictionary(e,t.promotions):void 0}e.ComputedOptions=M,e.HashtagSorting=Object(s.c)({recent:"Most recent",popular:"Most popular"}),function(e){e.ALL="all",e.PHOTOS="photos",e.VIDEOS="videos"}(o=e.MediaType||(e.MediaType={})),function(e){e.NOTHING="nothing",e.SELF="self",e.NEW_TAB="new_tab",e.LIGHTBOX="lightbox"}(n=e.LinkBehavior||(e.LinkBehavior={})),function(e){e.DATE_ASC="date_asc",e.DATE_DESC="date_desc",e.POPULARITY_ASC="popularity_asc",e.POPULARITY_DESC="popularity_desc",e.RANDOM="random"}(a=e.PostOrder||(e.PostOrder={})),function(e){e.USERNAME="username",e.DATE="date",e.CAPTION="caption",e.LIKES_COMMENTS="likes_comments",e.INSTA_LINK="insta_link"}(m=e.HoverInfo||(e.HoverInfo={})),function(e){e.NORMAL="normal",e.BOXED="boxed",e.CENTERED="centered"}(h=e.HeaderStyle||(e.HeaderStyle={})),function(e){e.BIO="bio",e.PROFILE_PIC="profile_pic",e.FOLLOWERS="followers",e.MEDIA_COUNT="media_count"}(b=e.HeaderInfo||(e.HeaderInfo={})),function(e){e.HEADER="header",e.BOTTOM="bottom",e.BOTH="both"}(y=e.FollowBtnLocation||(e.FollowBtnLocation={})),function(e){e.WHITELIST="whitelist",e.BLACKLIST="blacklist"}(v=e.ModerationMode||(e.ModerationMode={})),e.DefaultOptions={accounts:[],hashtags:[],tagged:[],layout:null,numColumns:{desktop:3},highlightFreq:{desktop:7},mediaType:o.ALL,postOrder:a.DATE_DESC,numPosts:{desktop:9},linkBehavior:{desktop:n.LIGHTBOX,phone:n.NEW_TAB},feedWidth:{desktop:""},feedHeight:{desktop:""},feedPadding:{desktop:20,tablet:14,phone:10},imgPadding:{desktop:14,tablet:10,phone:6},textSize:{all:""},bgColor:{r:255,g:255,b:255,a:1},hoverInfo:[m.LIKES_COMMENTS,m.INSTA_LINK],textColorHover:{r:255,g:255,b:255,a:1},bgColorHover:{r:0,g:0,b:0,a:.5},showHeader:{desktop:!0},headerInfo:{desktop:[b.PROFILE_PIC,b.BIO]},headerAccount:null,headerStyle:{desktop:h.NORMAL,phone:h.CENTERED},headerTextSize:{desktop:""},headerPhotoSize:{desktop:50},headerTextColor:{r:0,g:0,b:0,a:1},headerBgColor:{r:255,g:255,b:255,a:1},headerPadding:{desktop:0},customProfilePic:0,customBioText:"",includeStories:!1,storiesInterval:5,showCaptions:{desktop:!1},captionMaxLength:{desktop:0},captionRemoveDots:!1,captionSize:{desktop:0},captionColor:{r:0,g:0,b:0,a:1},showLikes:{desktop:!1},showComments:{desktop:!1},lcIconSize:{desktop:14},likesIconColor:{r:0,g:0,b:0,a:1},commentsIconColor:{r:0,g:0,b:0,a:1},lightboxShowSidebar:!1,numLightboxComments:50,showLoadMoreBtn:{desktop:!0},loadMoreBtnTextColor:{r:255,g:255,b:255,a:1},loadMoreBtnBgColor:{r:0,g:149,b:246,a:1},loadMoreBtnText:"Load more",autoload:!1,showFollowBtn:{desktop:!0},followBtnText:"Follow on Instagram",followBtnTextColor:{r:255,g:255,b:255,a:1},followBtnBgColor:{r:0,g:149,b:246,a:1},followBtnLocation:{desktop:y.HEADER,phone:y.BOTTOM},hashtagWhitelist:[],hashtagBlacklist:[],captionWhitelist:[],captionBlacklist:[],hashtagWhitelistSettings:!0,hashtagBlacklistSettings:!0,captionWhitelistSettings:!0,captionBlacklistSettings:!0,moderation:[],moderationMode:v.BLACKLIST,promotionEnabled:!0,autoPromotionsEnabled:!0,globalPromotionsEnabled:!0,promotions:{}},e.getPromo=L,e.getFeedPromo=w,e.executeMediaClick=function(e,t){const o=L(e,t),n=p.a.getConfig(o),a=p.a.getType(o);return!(!a||!a.isValid(n)||"function"!=typeof a.onMediaClick)&&a.onMediaClick(e,n)},e.getLink=function(e,t){var o,n;const a=L(e,t),i=p.a.getConfig(a),r=p.a.getType(a);if(void 0===r||!r.isValid(i))return{text:null,url:null,newTab:!1};let[l,s]=r.getPopupLink?null!==(o=r.getPopupLink(e,i))&&void 0!==o?o:null:[null,!1];return{text:l,url:r.getMediaUrl&&null!==(n=r.getMediaUrl(e,i))&&void 0!==n?n:null,newTab:s}}}(b||(b={}))},71:function(e,t,o){e.exports={root:"MediaLightboxAlbum__root",strip:"MediaLightboxAlbum__strip layout__flex-row",frame:"MediaLightboxAlbum__frame",controls:"MediaLightboxAlbum__controls layout__fill-parent layout__flex-row","nav-button":"MediaLightboxAlbum__nav-button",navButton:"MediaLightboxAlbum__nav-button","next-button":"MediaLightboxAlbum__next-button MediaLightboxAlbum__nav-button",nextButton:"MediaLightboxAlbum__next-button MediaLightboxAlbum__nav-button","prev-button":"MediaLightboxAlbum__prev-button MediaLightboxAlbum__nav-button",prevButton:"MediaLightboxAlbum__prev-button MediaLightboxAlbum__nav-button","indicator-list":"MediaLightboxAlbum__indicator-list layout__flex-row",indicatorList:"MediaLightboxAlbum__indicator-list layout__flex-row",indicator:"MediaLightboxAlbum__indicator","indicator-current":"MediaLightboxAlbum__indicator-current MediaLightboxAlbum__indicator",indicatorCurrent:"MediaLightboxAlbum__indicator-current MediaLightboxAlbum__indicator"}},73:function(e,t,o){"use strict";o.d(t,"a",(function(){return m}));var n=o(0),a=o.n(n),i=o(43),r=o.n(i),l=o(15),s=o(3),c=o(58),d=o(11),u=o(16);function m(e){var{media:t,className:o,size:i,onLoadImage:m,width:h,height:p}=e,g=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]])}return o}(e,["media","className","size","onLoadImage","width","height"]);const f=a.a.useRef(),[_,b]=a.a.useState(!0);function y(){if(f.current){const e=t.type===l.a.Type.ALBUM&&t.children.length>0?t.children[0]:t;let o;if(void 0===i){const e=f.current.getBoundingClientRect();o=e.width<=320?s.a.SMALL:e.width<=480?s.a.MEDIUM:s.a.LARGE}else o=i;if("string"==typeof t.sliThumbnail&&t.sliThumbnail.length>0)f.current.src=t.sliThumbnail+"&size="+o;else{const t=Object(s.n)(e.permalink);f.current.src=Object(s.m)(t,o)}}}return Object(n.useLayoutEffect)(()=>(f.current&&(f.current.onload=()=>{b(!1),m&&m()},y()),()=>f.current.onload=()=>null),[t,i]),Object(u.m)(()=>{void 0===i&&y()}),t.url&&t.url.length>0?a.a.createElement("div",Object.assign({className:Object(d.b)(r.a.root,o)},g),a.a.createElement("img",Object.assign({ref:f,className:r.a.image,loading:"lazy",alt:t.caption,width:h,height:p},d.e)),_&&a.a.createElement(c.a,null)):a.a.createElement("div",{className:r.a.notAvailable},a.a.createElement("span",null,"Thumbnail not available"))}},74:function(e,t,o){e.exports={root:"MediaLoading__root",animation:"MediaLoading__animation"}},8:function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));var n,a=o(12),i=o(22),r=o(3);!function(e){function t(e){return e?c(e.type):void 0}function o(e){var o;if("object"!=typeof e)return!1;const n=t(e);return void 0!==n&&n.isValid(null!==(o=e.config)&&void 0!==o?o:{})}function n(t){return t?e.getPromoFromDictionary(t,a.a.config.globalPromotions):void 0}function l(e){const t=s(e);return void 0===t?void 0:t.promotion}function s(t){if(t)for(const o of a.a.config.autoPromotions){const n=e.Automation.getType(o),a=e.Automation.getConfig(o);if(n&&n.matches(t,a))return o}}function c(t){return e.types.find(e=>e.id===t)}let d;e.getConfig=function(e){var t,o;return e&&null!==(o=null!==(t=e.config)&&void 0!==t?t:e.data)&&void 0!==o?o:{}},e.getType=t,e.isValid=o,e.getPromoFromDictionary=function(t,o){const n=i.a.get(o,t.id);if(n)return e.getType(n)?n:void 0},e.getPromo=function(e){return Object(r.l)(o,[()=>n(e),()=>l(e)])},e.getGlobalPromo=n,e.getAutoPromo=l,e.getAutomation=s,e.types=[],e.getTypes=function(){return e.types},e.registerType=function(t){e.types.push(t)},e.getTypeById=c,e.clearTypes=function(){e.types.splice(0,e.types.length)},function(e){e.getType=function(e){return e?o(e.type):void 0},e.getConfig=function(e){var t,o;return e&&null!==(o=null!==(t=e.config)&&void 0!==t?t:e.data)&&void 0!==o?o:{}},e.getPromotion=function(e){return e?e.promotion:void 0};const t=[];function o(e){return t.find(t=>t.id===e)}e.getTypes=function(){return t},e.registerType=function(e){t.push(e)},e.getTypeById=o,e.clearTypes=function(){t.splice(0,t.length)}}(d=e.Automation||(e.Automation={}))}(n||(n={}))},80:function(e,t,o){e.exports={root:"IgVideoPlayer__root",thumbnail:"IgVideoPlayer__thumbnail","thumbnail-hidden":"IgVideoPlayer__thumbnail-hidden IgVideoPlayer__thumbnail",thumbnailHidden:"IgVideoPlayer__thumbnail-hidden IgVideoPlayer__thumbnail",video:"IgVideoPlayer__video","video-hidden":"IgVideoPlayer__video-hidden IgVideoPlayer__video",videoHidden:"IgVideoPlayer__video-hidden IgVideoPlayer__video",control:"IgVideoPlayer__control","control-playing":"IgVideoPlayer__control-playing IgVideoPlayer__control",controlPlaying:"IgVideoPlayer__control-playing IgVideoPlayer__control","control-paused":"IgVideoPlayer__control-paused IgVideoPlayer__control",controlPaused:"IgVideoPlayer__control-paused IgVideoPlayer__control","play-button":"IgVideoPlayer__play-button",playButton:"IgVideoPlayer__play-button"}},87:function(e,t,o){e.exports={root:"MediaComment__root",row:"MediaComment__row",username:"MediaComment__username",content:"MediaComment__content MediaComment__row",text:"MediaComment__text","meta-list":"MediaComment__meta-list MediaComment__row",metaList:"MediaComment__meta-list MediaComment__row",meta:"MediaComment__meta",date:"MediaComment__date MediaComment__meta","like-count":"MediaComment__like-count MediaComment__meta",likeCount:"MediaComment__like-count MediaComment__meta"}}},[[386,0,1]]])}));
ui/dist/editor-pro.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],e):"object"==typeof exports?exports.spotlight=e(require("React"),require("ReactDOM")):t.spotlight=e(t.React,t.ReactDOM)}(window,(function(t,e){return(window.webpackJsonpspotlight=window.webpackJsonpspotlight||[]).push([[8],{0:function(e,o){e.exports=t},10:function(t,e,o){"use strict";o.d(e,"a",(function(){return s}));var n=o(0),i=o.n(n),a=o(11);const s=t=>{var{icon:e,className:o}=t,n=function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(o[n[i]]=t[n[i]])}return o}(t,["icon","className"]);return i.a.createElement("span",Object.assign({className:Object(a.b)("dashicons","dashicons-"+e,o)},n))}},109:function(t,e,o){"use strict";o.d(e,"a",(function(){return y}));var n=o(0),i=o.n(n),a=o(60),s=o.n(a),r=o(17),l=o(51),c=o.n(l),u=o(37),d=o.n(u),h=o(6),p=o(3),m=o(113),f=Object(h.b)((function({field:t}){const e="settings-field-"+Object(p.w)(),o=!t.label||t.fullWidth;return i.a.createElement("div",{className:d.a.root},t.label&&i.a.createElement("div",{className:d.a.label},i.a.createElement("label",{htmlFor:e},t.label)),i.a.createElement("div",{className:d.a.container},i.a.createElement("div",{className:o?d.a.controlFullWidth:d.a.controlPartialWidth},i.a.createElement(t.component,{id:e})),t.tooltip&&i.a.createElement("div",{className:d.a.tooltip},i.a.createElement(m.a,null,t.tooltip))))}));function g({group:t}){return i.a.createElement("div",{className:c.a.root},t.title&&t.title.length>0&&i.a.createElement("h1",{className:c.a.title},t.title),t.component&&i.a.createElement("div",{className:c.a.content},i.a.createElement(t.component)),t.fields&&i.a.createElement("div",{className:c.a.fieldList},t.fields.map(t=>i.a.createElement(f,{field:t,key:t.id}))))}var b=o(16);function y({page:t}){return Object(b.d)("keydown",t=>{t.key&&"s"===t.key.toLowerCase()&&t.ctrlKey&&(r.b.save(),t.preventDefault(),t.stopPropagation())}),i.a.createElement("article",{className:s.a.root},t.component&&i.a.createElement("div",{className:s.a.content},i.a.createElement(t.component)),t.groups&&i.a.createElement("div",{className:s.a.groupList},t.groups.map(t=>i.a.createElement(g,{key:t.id,group:t}))))}},11:function(t,e,o){"use strict";function n(...t){return t.filter(t=>!!t).join(" ")}function i(t){return n(...Object.getOwnPropertyNames(t).map(e=>t[e]?e:null))}function a(t,e={}){let o=Object.getOwnPropertyNames(e).map(o=>e[o]?t+o:null);return t+" "+o.filter(t=>!!t).join(" ")}o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return a})),o.d(e,"e",(function(){return s})),o.d(e,"d",(function(){return r}));const s={onMouseDown:t=>t.preventDefault()};function r(...t){return e=>{t.forEach(t=>t&&function(t,e){"function"==typeof t?t(e):t.current=e}(t,e))}}},12:function(t,e,o){"use strict";var n,i=o(8);let a;e.a=a={isPro:!1,config:{restApi:SliCommonL10n.restApi,imagesUrl:SliCommonL10n.imagesUrl,autoPromotions:SliCommonL10n.autoPromotions,globalPromotions:null!==(n=SliCommonL10n.globalPromotions)&&void 0!==n?n:{}},image:t=>`${a.config.imagesUrl}/${t}`},i.a.registerType({id:"link",label:"Link",isValid:()=>!1}),i.a.registerType({id:"-more-",label:"- More promotion types -",isValid:()=>!1}),i.a.Automation.registerType({id:"hashtag",label:"Hashtag",matches:()=>!1})},13:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));const n=t=>"string"==typeof t?t:"r"in t?"rgba("+t.r+","+t.g+","+t.b+","+t.a+")":"h"in t?"hsla("+t.h+","+t.s+","+t.l+","+t.a+")":"#fff"},134:function(t,e,o){"use strict";function n(t,e){return"url"===e.linkType?e.url:e.postUrl}var i;o.d(e,"a",(function(){return i})),e.b={id:"link",label:"Link",getIcon:()=>"admin-links",getPopupLink:function(t,e){return"string"==typeof e.linkText&&e.linkText.length>0?[e.linkText,e.newTab]:[i.getDefaultLinkText(e),e.newTab]},isValid:function(t){return"string"==typeof t.linkType&&t.linkType.length>0&&("url"===t.linkType&&"string"==typeof t.url&&t.url.length>0||!!t.postId&&"string"==typeof t.postUrl&&t.postUrl.length>0)},getMediaUrl:n,onMediaClick:function(t,e){var o;const i=n(0,e),a=null===(o=e.linkDirectly)||void 0===o||o;return!(!i||!a)&&(window.open(i,e.newTab?"_blank":"_self"),!0)}},function(t){t.getDefaultLinkText=function(t){switch(t.linkType){case"product":return"Buy it now";case"post":return"Read the article";case"page":return"Learn more";default:return"Visit link"}}}(i||(i={}))},143:function(t,e,o){"use strict";o.d(e,"a",(function(){return s}));var n=o(0),i=o.n(n),a=o(29);function s({breakpoints:t,children:e}){const[o,s]=i.a.useState(null),r=i.a.useCallback(()=>{const e=Object(a.b)();s(()=>t.reduce((t,o)=>e.width<=o&&o<t?o:t,1/0))},[t]);return Object(n.useEffect)(()=>(r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[]),null!==o&&e(o)}},144:function(t,e,o){"use strict";var n=o(0),i=o.n(n),a=o(98),s=o(19),r=o.n(s),l=o(40),c=o(4),u=o(5),d=o(10),h=o(110),p=o(26),m=o(21),f=o(30),g=o(89),b=o(59),y=o(14),v=o(65);function O({accounts:t,showDelete:e,onDeleteError:o}){const n=(t=null!=t?t:[]).filter(t=>t.type===c.a.Type.BUSINESS).length,[a,s]=i.a.useState(!1),[O,E]=i.a.useState(null),[w,_]=i.a.useState(!1),[S,C]=i.a.useState(),[P,k]=i.a.useState(!1),T=t=>()=>{E(t),s(!0)},M=t=>()=>{f.a.openAuthWindow(t.type,0,()=>{y.a.restApi.deleteAccountMedia(t.id)})},A=t=>()=>{C(t),_(!0)},B=()=>{k(!1),C(null),_(!1)},L={cols:{username:r.a.usernameCol,type:r.a.typeCol,usages:r.a.usagesCol,actions:r.a.actionsCol},cells:{username:r.a.usernameCell,type:r.a.typeCell,usages:r.a.usagesCell,actions:r.a.actionsCell}};return i.a.createElement("div",{className:"accounts-list"},i.a.createElement(h.a,{styleMap:L,rows:t,cols:[{id:"username",label:"Username",render:t=>i.a.createElement("div",null,i.a.createElement(b.a,{account:t,className:r.a.profilePic}),i.a.createElement("a",{className:r.a.username,onClick:T(t)},t.username))},{id:"type",label:"Type",render:t=>i.a.createElement("span",{className:r.a.accountType},t.type)},{id:"usages",label:"Feeds",render:t=>i.a.createElement("span",{className:r.a.usages},t.usages.map((t,e)=>!!p.a.getById(t)&&i.a.createElement(l.a,{key:e,to:m.a.at({screen:"edit",id:t.toString()})},p.a.getById(t).name)))},{id:"actions",label:"Actions",render:t=>e&&i.a.createElement("div",{className:r.a.actionsList},i.a.createElement(u.a,{className:r.a.action,type:u.c.SECONDARY,tooltip:"Account info",onClick:T(t)},i.a.createElement(d.a,{icon:"info"})),i.a.createElement(u.a,{className:r.a.action,type:u.c.SECONDARY,tooltip:"Reconnect account",onClick:M(t)},i.a.createElement(d.a,{icon:"image-rotate"})),i.a.createElement(u.a,{className:r.a.actions,type:u.c.DANGER,tooltip:"Remove account",onClick:A(t)},i.a.createElement(d.a,{icon:"trash"})))}]}),i.a.createElement(g.a,{isOpen:a,onClose:()=>s(!1),account:O}),i.a.createElement(v.a,{isOpen:w,title:"Are you sure?",buttons:[P?"Please wait ...":"Yes I'm sure","Cancel"],okDisabled:P,cancelDisabled:P,onAccept:()=>{k(!0),f.a.deleteAccount(S.id).then(()=>B()).catch(()=>{o&&o("An error occurred while trying to remove the account."),B()})},onCancel:B},i.a.createElement("p",null,"Are you sure you want to delete"," ",i.a.createElement("span",{style:{fontWeight:"bold"}},S?S.username:""),"?"," ","This will also delete all saved media associated with this account."),S&&S.type===c.a.Type.BUSINESS&&1===n&&i.a.createElement("p",null,i.a.createElement("b",null,"Note:")," ",i.a.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."))))}var E=o(23),w=o(6),_=o(112),S=o(78),C=o.n(S);e.a=Object(w.b)((function(){const[,t]=i.a.useState(0),[e,o]=i.a.useState(""),n=i.a.useCallback(()=>t(t=>t++),[]);return c.b.hasAccounts()?i.a.createElement("div",{className:C.a.root},e.length>0&&i.a.createElement(E.a,{type:E.b.ERROR,showIcon:!0,isDismissible:!0,onDismiss:()=>o("")},e),i.a.createElement("div",{className:C.a.connectBtn},i.a.createElement(a.a,{onConnect:n})),i.a.createElement(O,{accounts:c.b.list,showDelete:!0,onDeleteError:o})):i.a.createElement(_.a,null)}))},15:function(t,e,o){"use strict";var n;o.d(e,"a",(function(){return n})),function(t){let e,o;!function(t){t.IMAGE="IMAGE",t.VIDEO="VIDEO",t.ALBUM="CAROUSEL_ALBUM"}(e=t.Type||(t.Type={})),function(t){let e;!function(t){t.PERSONAL_ACCOUNT="PERSONAL_ACCOUNT",t.BUSINESS_ACCOUNT="BUSINESS_ACCOUNT",t.TAGGED_ACCOUNT="TAGGED_ACCOUNT",t.RECENT_HASHTAG="RECENT_HASHTAG",t.POPULAR_HASHTAG="POPULAR_HASHTAG",t.USER_STORY="USER_STORY"}(e=t.Type||(t.Type={}))}(o=t.Source||(t.Source={})),t.getAsRows=(t,e)=>{t=t.slice(),e=e>0?e:1;let o=[];for(;t.length;)o.push(t.splice(0,e));if(o.length>0){const t=o.length-1;for(;o[t].length<e;)o[t].push({})}return o},t.isFromHashtag=t=>t.source.type===o.Type.POPULAR_HASHTAG||t.source.type===o.Type.RECENT_HASHTAG}(n||(n={}))},16:function(t,e,o){"use strict";o.d(e,"i",(function(){return r})),o.d(e,"e",(function(){return l})),o.d(e,"b",(function(){return c})),o.d(e,"c",(function(){return u})),o.d(e,"a",(function(){return d})),o.d(e,"m",(function(){return h})),o.d(e,"g",(function(){return p})),o.d(e,"k",(function(){return m})),o.d(e,"j",(function(){return f})),o.d(e,"d",(function(){return b})),o.d(e,"l",(function(){return y})),o.d(e,"f",(function(){return v})),o.d(e,"h",(function(){return O}));var n=o(0),i=o.n(n),a=o(39),s=o(29);function r(t,e){!function(t,e,o){const n=i.a.useRef(!0);t(()=>{n.current=!0;const t=e(()=>new Promise(t=>{n.current&&t()}));return()=>{n.current=!1,t&&t()}},o)}(n.useEffect,t,e)}function l(t){const[e,o]=i.a.useState(t),n=i.a.useRef(e);return[e,()=>n.current,t=>o(n.current=t)]}function c(t,e,o=[]){function i(n){!t.current||t.current.contains(n.target)||o.some(t=>t&&t.current&&t.current.contains(n.target))||e(n)}Object(n.useEffect)(()=>(document.addEventListener("mousedown",i),document.addEventListener("touchend",i),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("touchend",i)}))}function u(t,e){Object(n.useEffect)(()=>{const o=()=>{0===t.filter(t=>!t.current||document.activeElement===t.current||t.current.contains(document.activeElement)).length&&e()};return document.addEventListener("keyup",o),()=>document.removeEventListener("keyup",o)},t)}function d(t,e,o=100){const[a,s]=i.a.useState(t);return Object(n.useEffect)(()=>{let n=null;return t===e?n=setTimeout(()=>s(e),o):s(!e),()=>{null!==n&&clearTimeout(n)}},[t]),[a,s]}function h(t){const[e,o]=i.a.useState(Object(s.b)()),a=()=>{const e=Object(s.b)();o(e),t&&t(e)};return Object(n.useEffect)(()=>(a(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)),[]),e}function p(){return new URLSearchParams(Object(a.e)().search)}function m(t,e){const o=o=>{if(e)return(o||window.event).returnValue=t,t};Object(n.useEffect)(()=>(window.addEventListener("beforeunload",o),()=>window.removeEventListener("beforeunload",o)),[e])}function f(t,e){const o=i.a.useRef(!1);return Object(n.useEffect)(()=>{o.current&&void 0!==t.current&&(t.current.scrollIntoView(Object.assign({behavior:"smooth",block:"start"},null!=e?e:{})),o.current=!1)},[o.current]),()=>o.current=!0}function g(t,e,o,i=[],a=[]){Object(n.useEffect)(()=>(i.reduce((t,e)=>t&&e,!0)&&t.addEventListener(e,o),()=>t.removeEventListener(e,o)),a)}function b(t,e,o=[],n=[]){g(document,t,e,o,n)}function y(t,e,o=[],n=[]){g(window,t,e,o,n)}function v(t){return e=>{" "!==e.key&&"Enter"!==e.key||(t(),e.preventDefault(),e.stopPropagation())}}function O(t){const[e,o]=i.a.useState(t);return[function(t){const e=i.a.useRef(t);return e.current=t,e}(e),o]}o(35)},18:function(t,e,o){"use strict";var n=o(34),i=o.n(n),a=o(12),s=o(35);const r=a.a.config.restApi.baseUrl,l={};a.a.config.restApi.authToken&&(l["X-Sli-Auth-Token"]=a.a.config.restApi.authToken);const c=i.a.create({baseURL:r,headers:l}),u={config:a.a.config.restApi,driver:c,getAccounts:()=>c.get("/accounts"),getFeeds:()=>c.get("/feeds"),getFeedMedia:(t,e=0,o=0,n)=>{const a=n?new i.a.CancelToken(n):void 0;return c.post("/media/fetch",{options:t,num:o,from:e},{cancelToken:a})},getErrorReason:t=>{let e;return e="object"==typeof t.response?t.response.data:"string"==typeof t.message?t.message:t.toString(),Object(s.b)(e)}};e.a=u},19:function(t,e,o){t.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-list":"AccountsList__actions-list layout__flex-row",actionsList:"AccountsList__actions-list layout__flex-row",action:"AccountsList__action","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"}},2:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n,i=o(1),a=function(t,e,o,n){var i,a=arguments.length,s=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var r=t.length-1;r>=0;r--)(i=t[r])&&(s=(a<3?i(s):a>3?i(e,o,s):i(e,o))||s);return a>3&&s&&Object.defineProperty(e,o,s),s};!function(t){class e{constructor(t,e,o){this.prop=t,this.name=e,this.icon=o}}e.DESKTOP=new e("desktop","Desktop","desktop"),e.TABLET=new e("tablet","Tablet","tablet"),e.PHONE=new e("phone","Phone","smartphone"),t.Mode=e,t.MODES=[e.DESKTOP,e.TABLET,e.PHONE];class o{constructor(t,e,o){this.desktop=t,this.tablet=e,this.phone=o}get(t,e){return n(this,t,e)}set(t,e){s(this,e,t)}with(t,e){const n=r(this,e,t);return new o(n.desktop,n.tablet,n.phone)}}function n(t,e,o=!1){if(!t)return;const n=t[e.prop];return o&&null==n?t.desktop:n}function s(t,e,o){return t[o.prop]=e,t}function r(t,e,n){return s(new o(t.desktop,t.tablet,t.phone),e,n)}a([i.n],o.prototype,"desktop",void 0),a([i.n],o.prototype,"tablet",void 0),a([i.n],o.prototype,"phone",void 0),t.Value=o,t.getName=function(t){return t.name},t.getIcon=function(t){return t.icon},t.cycle=function(o){const n=t.MODES.findIndex(t=>t===o);return void 0===n?e.DESKTOP:t.MODES[(n+1)%t.MODES.length]},t.get=n,t.set=s,t.withValue=r,t.normalize=function(t,e){return null==t?e.hasOwnProperty("all")?new o(e.all,e.all,e.all):new o(e.desktop,e.tablet,e.phone):"object"==typeof t&&t.hasOwnProperty("desktop")?new o(t.desktop,t.tablet,t.phone):new o(t,t,t)},t.getModeForWindowSize=function(t){return t.width<=768?e.PHONE:t.width<=935?e.TABLET:e.DESKTOP},t.isValid=function(t){return"object"==typeof t&&t.hasOwnProperty("desktop")}}(n||(n={}))},21:function(t,e,o){"use strict";o.d(e,"a",(function(){return r}));var n=o(1),i=o(49),a=function(t,e,o,n){var i,a=arguments.length,s=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var r=t.length-1;r>=0;r--)(i=t[r])&&(s=(a<3?i(s):a>3?i(e,o,s):i(e,o))||s);return a>3&&s&&Object.defineProperty(e,o,s),s};class s{constructor(){const t=window.location;this._pathName=t.pathname,this._baseUrl=t.protocol+"//"+t.host,this.parsed=Object(i.parse)(t.search),this.unListen=null,this.listeners=[],Object(n.o)(()=>this._path,t=>this.path=t)}createPath(t){return this._pathName+"?"+Object(i.stringify)(t)}get _path(){return this.createPath(this.parsed)}get(t,e=null){var o;return null!==(o=this.parsed[t])&&void 0!==o?o:e}at(t){return this.createPath(Object.assign({page:this.parsed.page},this.processQuery(t)))}fullUrl(t){return this._baseUrl+this.createPath(Object.assign({page:this.parsed.page},this.processQuery(t)))}with(t){return this.createPath(Object.assign(Object.assign({},this.parsed),this.processQuery(t)))}without(t){const e=Object.assign({},this.parsed);return delete e[t],this.createPath(e)}goto(t,e=!1){this.history.push(e?this.with(t):this.at(t),{})}useHistory(t){return this.unListen&&this.unListen(),this.history=t,this.unListen=this.history.listen(t=>{this.parsed=Object(i.parse)(t.search),this.listeners.forEach(t=>t())}),this}listen(t){this.listeners.push(t)}unlisten(t){this.listeners=this.listeners.filter(e=>e===t)}processQuery(t){const e=Object.assign({},t);return Object.getOwnPropertyNames(t).forEach(o=>{t[o]&&0===t[o].length?delete e[o]:e[o]=t[o]}),e}}a([n.n],s.prototype,"path",void 0),a([n.n],s.prototype,"parsed",void 0),a([n.h],s.prototype,"_path",null);const r=new s},22:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n,i=o(3);!function(t){function e(t,e){return t.hasOwnProperty(e.toString())}function o(t,e){return t[e.toString()]}function n(t,e,o){return t[e.toString()]=o,t}t.has=e,t.get=o,t.set=n,t.ensure=function(o,i,a){return e(o,i)||n(o,i,a),t.get(o,i)},t.withEntry=function(e,o,n){return t.set(Object(i.h)(e),o,n)},t.remove=function(t,e){return delete t[e.toString()],t},t.without=function(e,o){return t.remove(Object(i.h)(e),o)},t.at=function(t,e){return o(t,Object.keys(t)[e])},t.keys=function(t){return Object.keys(t)},t.values=function(t){return Object.values(t)},t.entries=function(t){return Object.getOwnPropertyNames(t).map(e=>[e,t[e]])},t.map=function(e,o){const n={};return t.forEach(e,(t,e)=>n[t]=o(e,t)),n},t.size=function(e){return t.keys(e).length},t.isEmpty=function(e){return 0===t.size(e)},t.equals=function(t,e){return Object(i.r)(t,e)},t.forEach=function(e,o){t.keys(e).forEach(t=>o(t,e[t]))},t.fromArray=function(e){const o={};return e.forEach(([e,n])=>t.set(o,e,n)),o},t.fromMap=function(e){const o={};return e.forEach((e,n)=>t.set(o,n,e)),o}}(n||(n={}))},27:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));class n{static getById(t){const e=n.list.find(e=>e.id===t);return!e&&n.list.length>0?n.list[0]:e}static getName(t){const e=n.getById(t);return e?e.name:"(Missing layout)"}static addLayout(t){n.list.push(t)}}n.list=[]},29:function(t,e,o){"use strict";function n(t,e,o={}){return window.open(t,e,function(t={}){return Object.getOwnPropertyNames(t).map(e=>`${e}=${t[e]}`).join(",")}(o))}function i(t,e){return{top:window.top.outerHeight/2+window.top.screenY-e/2,left:window.top.outerWidth/2+window.top.screenX-t/2,width:t,height:e}}function a(){const{innerWidth:t,innerHeight:e}=window;return{width:t,height:e}}o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return a}))},3:function(t,e,o){"use strict";o.d(e,"w",(function(){return u})),o.d(e,"h",(function(){return d})),o.d(e,"b",(function(){return h})),o.d(e,"x",(function(){return p})),o.d(e,"c",(function(){return m})),o.d(e,"e",(function(){return f})),o.d(e,"r",(function(){return g})),o.d(e,"q",(function(){return b})),o.d(e,"k",(function(){return y})),o.d(e,"f",(function(){return v})),o.d(e,"p",(function(){return O})),o.d(e,"s",(function(){return E})),o.d(e,"n",(function(){return w})),o.d(e,"a",(function(){return _})),o.d(e,"m",(function(){return S})),o.d(e,"o",(function(){return C})),o.d(e,"v",(function(){return P})),o.d(e,"u",(function(){return k})),o.d(e,"t",(function(){return T})),o.d(e,"i",(function(){return M})),o.d(e,"j",(function(){return A})),o.d(e,"l",(function(){return B})),o.d(e,"g",(function(){return L})),o.d(e,"d",(function(){return I}));var n=o(0),i=o.n(n),a=o(141),s=o(140),r=o(15),l=o(47);let c=0;function u(){return c++}function d(t){const e={};return Object.keys(t).forEach(o=>{const n=t[o];Array.isArray(n)?e[o]=n.slice():n instanceof Map?e[o]=new Map(n.entries()):e[o]="object"==typeof n?d(n):n}),e}function h(t,e){return Object.keys(e).forEach(o=>{t[o]=e[o]}),t}function p(t,e){return h(d(t),e)}function m(t,e){return Array.isArray(t)&&Array.isArray(e)?f(t,e):t instanceof Map&&e instanceof Map?f(Array.from(t.entries()),Array.from(e.entries())):"object"==typeof t&&"object"==typeof e?g(t,e):t===e}function f(t,e,o){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(o){if(!o(t[n],e[n]))return!1}else if(!m(t[n],e[n]))return!1;return!0}function g(t,e){if(!t||!e||"object"!=typeof t||"object"!=typeof e)return m(t,e);const o=Object.keys(t),n=Object.keys(e);if(o.length!==n.length)return!1;const i=new Set(o.concat(n));for(const o of i)if(!m(t[o],e[o]))return!1;return!0}function b(t){return 0===Object.keys(null!=t?t:{}).length}function y(t,e,o){return o=null!=o?o:(t,e)=>t===e,t.filter(t=>!e.some(e=>o(t,e)))}function v(t,e,o){return o=null!=o?o:(t,e)=>t===e,t.every(t=>e.some(e=>o(t,e)))&&e.every(e=>t.some(t=>o(e,t)))}function O(t,e){return 0===t.tag.localeCompare(e.tag)&&t.sort===e.sort}function E(t,e,o=0,a=!1){let s=t.trim();a&&(s=s.replace(/((?:^[.*•]+(\r\n|\r|\n))+)/gm,"\n"));const r=s.split("\n"),l=r.map((t,o)=>{if(t=t.trim(),a&&/^[.*•]$/.test(t))return null;let s,l=[];for(;null!==(s=/#([^\s]+)/g.exec(t));){const e="https://instagram.com/explore/tags/"+s[1],o=i.a.createElement("a",{href:e,target:"_blank",key:u()},s[0]),n=t.substr(0,s.index),a=t.substr(s.index+s[0].length);l.push(n),l.push(o),t=a}return t.length&&l.push(t),e&&(l=e(l,o)),r.length>1&&l.push(i.a.createElement("br",{key:u()})),i.a.createElement(n.Fragment,{key:u()},l)});return o>0?l.slice(0,o):l}function w(t){const e=t.match(/instagram\.com\/p\/([^\/]+)\//);return e&&e.length>0?e[1]:null}var _;function S(t,e=_.MEDIUM){return`https://www.instagram.com/p/${t}/media/?size=${e}`}function C(t,e=_.MEDIUM){return t.thumbnail?t.thumbnail:S(w(t.permalink),e)}function P(t,e){const o=/(\s+)/g;let n,i=0,a=0,s="";for(;null!==(n=o.exec(t))&&i<e;){const e=n.index+n[1].length;s+=t.substr(a,e-a),a=e,i++}return a<t.length&&(s+=" ..."),s}function k(t){return Object(a.a)(Object(s.a)(t),{addSuffix:!0})}function T(t,e){const o=[];return t.forEach((t,n)=>{const i=n%e;Array.isArray(o[i])?o[i].push(t):o[i]=[t]}),o}function M(t,e){return function t(e){if(e.type===r.a.Type.VIDEO){const t=document.createElement("video");return t.autoplay=!1,t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.visibility="hidden",document.body.appendChild(t),new Promise(o=>{t.src=e.url,t.addEventListener("loadeddata",()=>{o({width:t.videoWidth,height:t.videoHeight}),document.body.removeChild(t)})})}if(e.type===r.a.Type.IMAGE){const t=new Image;return t.src=e.url,new Promise(e=>{t.onload=()=>{e({width:t.naturalWidth,height:t.naturalHeight})}})}return e.type===r.a.Type.ALBUM?t(e.children[0]):Promise.reject("Unknown media type")}(t).then(t=>function(t,e){const o=t.width>t.height?e.width/t.width:e.height/t.height;return{width:t.width*o,height:t.height*o}}(t,e))}function A(t,e){const o=e.map(l.b).join("|");return new RegExp(`(?:^|\\B)#(${o})(?:\\b|\\r|$)`,"imu").test(t)}function B(t,e){for(const o of e){const e=o();if(t(e))return e}}function L(t,e){return Math.max(0,Math.min(e.length-1,t))}function I(t,e,o){const n=t.slice();return n[e]=o,n}!function(t){t.SMALL="t",t.MEDIUM="m",t.LARGE="l"}(_||(_={}))},32:function(t,e,o){"use strict";o.d(e,"a",(function(){return c})),o.d(e,"b",(function(){return u})),o.d(e,"c",(function(){return h}));var n=o(0),i=o.n(n),a=o(33),s=o.n(a),r=o(6);class l{constructor(t=new Map,e=[]){this.factories=t,this.extensions=new Map,this.cache=new Map,e.forEach(t=>this.addModule(t))}addModule(t){t.factories&&(this.factories=new Map([...this.factories,...t.factories])),t.extensions&&t.extensions.forEach((t,e)=>{this.extensions.has(e)?this.extensions.get(e).push(t):this.extensions.set(e,[t])})}get(t){let e=this.factories.get(t);if(void 0===e)throw new Error('Service "'+t+'" does not exist');let o=this.cache.get(t);if(void 0===o){o=e(this);let n=this.extensions.get(t);n&&n.forEach(t=>o=t(this,o)),this.cache.set(t,o)}return o}has(t){return this.factories.has(t)}}class c{constructor(t,e,o){this.key=t,this.mount=e,this.modules=o,this.container=null}addModules(t){this.modules=this.modules.concat(t)}run(){if(null!==this.container)return;let t=!1;const e=()=>{t||"interactive"!==document.readyState&&"complete"!==document.readyState||(this.actualRun(),t=!0)};e(),t||document.addEventListener("readystatechange",e)}actualRun(){!function(t){const e=`app/${t.key}/run`;document.dispatchEvent(new d(e,t))}(this);const t=h({root:()=>null,"root/children":()=>[]});this.container=new l(t,this.modules);const e=this.container.get("root/children").map((t,e)=>i.a.createElement(t,{key:e})),o=i.a.createElement(r.a,{c:this.container},e);this.modules.forEach(t=>t.run&&t.run(this.container)),s.a.render(o,this.mount)}}function u(t,e){document.addEventListener(`app/${t}/run`,t=>{e(t.detail.app)})}class d extends CustomEvent{constructor(t,e){super(t,{detail:{app:e}})}}function h(t){return new Map(Object.entries(t))}},33:function(t,o){t.exports=e},35:function(t,e,o){"use strict";function n(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function i(t){const e=document.createElement("DIV");return e.innerHTML=t,e.textContent||e.innerText||""}o.d(e,"a",(function(){return n})),o.d(e,"b",(function(){return i}))},37:function(t,e,o){t.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"}},38:function(t,e,o){"use strict";function n(t){return e=>(e.stopPropagation(),t(e))}function i(t,e){let o;return(...n)=>{clearTimeout(o),o=setTimeout(()=>{o=null,t(...n)},e)}}function a(){}o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return a}))},4:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n,i=o(18),a=o(1);!function(t){let e;!function(t){t.PERSONAL="PERSONAL",t.BUSINESS="BUSINESS"}(e=t.Type||(t.Type={}))}(n||(n={}));const s=Object(a.n)([]),r="https://secure.gravatar.com/avatar/4a94d759753ade2961582f7345c1d7b2?s=64&d=mm&r=g",l=t=>s.find(e=>e.id===t),c=t=>"https://instagram.com/"+t;function u(t){return t.slice().sort((t,e)=>t.type===e.type?0:t.type===n.Type.PERSONAL?-1:1),s.splice(0,s.length),t.forEach(t=>s.push(Object(a.n)(t))),s}function d(t){if("object"==typeof t&&Array.isArray(t.data))return u(t.data);throw"Spotlight encountered a problem trying to load your accounts. Kindly contact customer support for assistance."}e.b={list:s,DEFAULT_PROFILE_PIC:r,getById:l,getByUsername:t=>s.find(e=>e.username===t),hasAccounts:()=>s.length>0,filterExisting:t=>t.filter(t=>void 0!==l(t)),idsToAccounts:t=>t.map(t=>l(t)).filter(t=>void 0!==t),getBusinessAccounts:()=>s.filter(t=>t.type===n.Type.BUSINESS),getProfilePicUrl:t=>t.customProfilePicUrl?t.customProfilePicUrl:t.profilePicUrl?t.profilePicUrl:r,getBioText:t=>t.customBio.length?t.customBio:t.bio,getProfileUrl:t=>c(t.username),getUsernameUrl:c,loadAccounts:function(){return i.a.getAccounts().then(d).catch(t=>{throw i.a.getErrorReason(t)})},loadFromResponse:d,addAccounts:u}},43:function(t,e,o){t.exports={root:"MediaThumbnail__root","media-background-fade-in-animation":"MediaThumbnail__media-background-fade-in-animation",mediaBackgroundFadeInAnimation:"MediaThumbnail__media-background-fade-in-animation","media-object-fade-in-animation":"MediaThumbnail__media-object-fade-in-animation",mediaObjectFadeInAnimation:"MediaThumbnail__media-object-fade-in-animation",image:"MediaThumbnail__image","not-available":"MediaThumbnail__not-available",notAvailable:"MediaThumbnail__not-available"}},47:function(t,e,o){"use strict";o.d(e,"a",(function(){return n})),o.d(e,"b",(function(){return i}));const n=(t,e)=>t.startsWith(e)?t:e+t,i=t=>{return(e=t,"#",e.startsWith("#")?e.substr("#".length):e).split(/\s/).map((t,e)=>e>0?t[0].toUpperCase()+t.substr(1):t).join("").replace(/\W/gi,"");var e}},51:function(t,e,o){t.exports={root:"SettingsGroup__root layout__flex-column",title:"SettingsGroup__title",content:"SettingsGroup__content","field-list":"SettingsGroup__field-list layout__flex-column",fieldList:"SettingsGroup__field-list layout__flex-column"}},58:function(t,e,o){"use strict";o.d(e,"a",(function(){return r}));var n=o(0),i=o.n(n),a=o(74),s=o.n(a);function r(){return i.a.createElement("div",{className:s.a.root})}},59:function(t,e,o){"use strict";var n=o(0),i=o.n(n),a=o(77),s=o.n(a),r=o(4),l=o(11),c=o(6);e.a=Object(c.b)((function(t){var{account:e,square:o,className:n}=t,a=function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(o[n[i]]=t[n[i]])}return o}(t,["account","square","className"]);const c=r.b.getProfilePicUrl(e),u=Object(l.b)(o?s.a.square:s.a.round,n);return i.a.createElement("img",Object.assign({},a,{className:u,src:r.b.DEFAULT_PROFILE_PIC,srcSet:c+" 1x",alt:e.username+" profile picture"}))}))},60:function(t,e,o){t.exports={root:"SettingsPage__root layout__flex-column",content:"SettingsPage__content","group-list":"SettingsPage__group-list layout__flex-column",groupList:"SettingsPage__group-list layout__flex-column"}},603:function(t,e,o){"use strict";o.r(e);var n=o(0),i=o.n(n),a=o(95),s=o(7),r=o(50),l=o(177),c=o(225),u=o(226),d=o(20),h=o(63),p=o(56),m=o(82),f=o(67),g=o(227),b=o(127),y=o(121),v=o(17),O=o(128),E=o(120),w=o(234),_=o(235);a.a.tabs=a.a.tabs.filter(t=>!t.isFakePro),a.a.openGroups.push("caption-filters","hashtag-filters");const S=a.a.tabs.find(t=>"connect"===t.id);S.groups=S.groups.filter(t=>!t.isFakePro),S.groups.push({id:"tagged",label:"Show posts where these accounts are tagged",fields:[{id:"tagged",component:Object(r.a)(({value:t,onChange:e})=>i.a.createElement(c.a,{value:t.tagged,onChange:t=>e({tagged:t})}),["tagged"])}]},{id:"hashtags",label:"Show posts with these hashtags",fields:[{id:"hashtags",component:Object(r.a)(({value:t,onChange:e})=>i.a.createElement(u.a,{value:t.hashtags,onChange:t=>e({hashtags:t})}),["hashtags"])}]});const C=a.a.tabs.find(t=>"design"===t.id);{C.groups=C.groups.filter(t=>!t.isFakePro),C.groups.find(t=>"layouts"===t.id).fields.push({id:"highlight-freq",component:Object(d.a)({label:"Highlight every",option:"highlightFreq",deps:["layout"],when:t=>"highlight"===t.value.layout,render:(t,e,o)=>i.a.createElement(h.a,{id:t.field.id,value:e,onChange:o,min:1,unit:"posts",placeholder:"1"})})});const t=C.groups.find(t=>"feed"===t.id);t.fields=t.fields.filter(t=>!t.isFakePro),t.fields.splice(3,0,{id:"media-type",component:Object(d.a)({label:"Types of posts",option:"mediaType",render:(t,e,o)=>i.a.createElement(p.a,{id:t.field.id,value:e,onChange:t=>o(t.value),options:[{value:s.a.MediaType.ALL,label:"All posts"},{value:s.a.MediaType.PHOTOS,label:"Photos Only"},{value:s.a.MediaType.VIDEOS,label:"Videos Only"}]})})});const e=C.groups.find(t=>"appearance"===t.id);{e.fields=e.fields.filter(t=>!t.isFakePro),e.fields.push({id:"hover-text-color",component:Object(d.a)({label:"Hover text color",option:"textColorHover",render:(t,e,o)=>i.a.createElement(m.a,{id:t.field.id,value:e,onChange:t=>o(t.rgb)})})},{id:"hover-bg-color",component:Object(d.a)({label:"Hover background color",option:"bgColorHover",render:(t,e,o)=>i.a.createElement(m.a,{id:t.field.id,value:e,onChange:t=>o(t.rgb)})})});const t=e.fields.find(t=>"hover-info"===t.id);t&&(t.data.options=t.data.options.filter(t=>!t.isFakePro),t.data.options.push({value:s.a.HoverInfo.CAPTION,label:"Caption"},{value:s.a.HoverInfo.USERNAME,label:"Username"},{value:s.a.HoverInfo.DATE,label:"Date"}))}const o=C.groups.find(t=>"header"===t.id);{o.fields=o.fields.filter(t=>!t.isFakePro),o.fields.splice(2,0,{id:"header-style",component:Object(d.a)({label:"Header style",option:"headerStyle",deps:["showHeader"],disabled:t=>Object(l.b)(t),render:(t,e,o)=>i.a.createElement(p.a,{id:t.field.id,value:e,onChange:t=>o(t.value),options:[{value:s.a.HeaderStyle.NORMAL,label:"Normal"},{value:s.a.HeaderStyle.CENTERED,label:"Centered"}]})})}),o.fields.push({id:"include-stories",component:Object(d.a)({label:"Include stories",option:"includeStories",deps:["showHeader"],disabled:t=>Object(l.b)(t),render:(t,e,o)=>i.a.createElement(f.a,{id:t.field.id,value:e,onChange:o}),tooltip:()=>i.a.createElement("span",null,"Re-shared stories are not available due to a restriction by Instagram.")})},{id:"stories-interval",component:Object(d.a)({label:"Stories interval time",option:"storiesInterval",deps:["includeStories","showHeader"],disabled:t=>function(t){return Object(l.b)(t)||!t.value.includeStories}(t),render:(t,e,o)=>i.a.createElement(h.a,{id:t.field.id,value:e,onChange:o,min:1,unit:"sec"})})});const t=o.fields.find(t=>"header-info"===t.id);t&&(t.data.options=t.data.options.filter(t=>!t.isFakePro),t.data.options.push({value:s.a.HeaderInfo.MEDIA_COUNT,label:"Post count"},{value:s.a.HeaderInfo.FOLLOWERS,label:"Follower count"}))}const n={id:"lightbox",label:"Popup box",fields:[{id:"show-lightbox-sidebar",component:Object(d.a)({label:"Show sidebar",option:"lightboxShowSidebar",render:(t,e,o)=>i.a.createElement(f.a,{id:t.field.id,value:e,onChange:o})})},{id:"num-lightbox-comments",label:"Number of comments",component:Object(d.a)({label:"Number of comments",option:"numLightboxComments",deps:["lightboxShowSidebar"],disabled:t=>!t.value.lightboxShowSidebar,render:(t,e,o)=>i.a.createElement(h.a,{id:t.field.id,value:e,onChange:o,min:0,placeholder:"No comments"}),tooltip:()=>i.a.createElement("span",null,"Comments are only available for posts from a ",i.a.createElement("strong",null,"Business")," account")})}]},a={id:"captions",label:"Captions",fields:[{id:"show-captions",component:Object(d.a)({label:"Show captions",option:"showCaptions",render:(t,e,o)=>i.a.createElement(f.a,{id:t.field.id,value:e,onChange:o})})},{id:"caption-max-length",component:Object(d.a)({label:"Caption max length",option:"captionMaxLength",deps:["showCaptions"],disabled:t=>A(t),render:(t,e,o)=>i.a.createElement(h.a,{id:t.field.id,value:e,onChange:o,min:0,unit:"words",placeholder:"No limit"})})},{id:"caption-size",component:Object(d.a)({label:"Caption text size",option:"captionSize",deps:["showCaptions"],disabled:t=>A(t),render:(t,e,o)=>i.a.createElement(h.a,{id:t.field.id,value:e,onChange:o,min:0,unit:"px",placeholder:"Theme default"})})},{id:"caption-color",component:Object(d.a)({label:"Caption text color",option:"captionColor",deps:["showCaptions"],disabled:t=>A(t),render:(t,e,o)=>i.a.createElement(m.a,{id:t.field.id,value:e,onChange:t=>o(t.rgb)})})},{id:"caption-remove-dots",component:Object(d.a)({label:"Remove dot lines",option:"captionRemoveDots",deps:["showCaptions"],disabled:t=>A(t),render:(t,e,o)=>i.a.createElement(f.a,{id:t.field.id,value:e,onChange:o}),tooltip:()=>i.a.createElement("span",null,'Enable this option to remove lines in captions that are only "dots", such as'," ",i.a.createElement("code",null,"."),", ",i.a.createElement("code",null,"•"),", ",i.a.createElement("code",null,"*"),", etc.")})}]},r={id:"likes-comments",label:"Likes & Comments",fields:[{id:"show-likes",component:Object(d.a)({label:"Show likes icon",option:"showLikes",render:(t,e,o)=>i.a.createElement(f.a,{id:t.field.id,value:e,onChange:o}),tooltip:()=>i.a.createElement("span",null,"Likes are not available for Personal accounts, due to restrictions set by Instagram.")})},{id:"likes-icon-color",component:Object(d.a)({label:"Likes icon color",option:"likesIconColor",deps:["showLikes"],disabled:t=>!t.computed.showLikes,render:(t,e,o)=>i.a.createElement(m.a,{id:t.field.id,value:e,onChange:t=>o(t.rgb)})})},{id:"show-comments",component:Object(d.a)({label:"Show comments icon",option:"showComments",render:(t,e,o)=>i.a.createElement(f.a,{id:t.field.id,value:e,onChange:o}),tooltip:()=>i.a.createElement("span",null,"Comments are not available for Personal accounts, due to restrictions set by Instagram.")})},{id:"comments-icon-color",component:Object(d.a)({label:"Comments icon color",option:"commentsIconColor",deps:["showComments"],disabled:t=>!t.computed.showComments,render:(t,e,o)=>i.a.createElement(m.a,{id:t.field.id,value:e,onChange:t=>o(t.rgb)})})},{id:"lcIconSize",component:Object(d.a)({label:"Icon size",option:"lcIconSize",deps:["showLikes","showComments"],disabled:t=>!t.computed.showLikes&&!t.computed.showComments,render:(t,e,o)=>i.a.createElement(h.a,{id:t.field.id,value:e,onChange:o,min:0,unit:"px"})})}]};C.groups.splice(4,0,n,a,r)}const P={id:"filters",label:"Filter",sidebar:g.a,groups:[{id:"caption-filters",label:"Caption filtering",fields:[{id:"caption-whitelist",component:Object(r.a)(({value:t,onChange:e,field:o})=>i.a.createElement(b.a,{label:"Only show posts with these words or phrases"},i.a.createElement(y.a,{id:o.id,value:t.captionWhitelist,onChange:t=>e({captionWhitelist:t}),exclude:v.b.values.captionBlacklist.concat(t.captionBlacklist),excludeMsg:"%s is already being used in the below option or your global filters"})),["captionWhitelist"])},{id:"caption-whitelist-settings",component:Object(r.a)(({value:t,onChange:e,feed:o})=>i.a.createElement(O.a,{value:t.captionWhitelistSettings,onChange:t=>e({captionWhitelistSettings:t}),feed:o}),["captionWhitelistSettings"])},{id:"caption-blacklist",component:Object(r.a)(({value:t,onChange:e,field:o})=>i.a.createElement(b.a,{label:"Hide posts with these words or phrases",bordered:!0},i.a.createElement(y.a,{id:o.id,value:t.captionBlacklist,onChange:t=>e({captionBlacklist:t}),exclude:v.b.values.captionWhitelist.concat(t.captionWhitelist),excludeMsg:"%s is already being used in the above option or your global filters"})),["captionBlacklist"])},{id:"caption-blacklist-settings",component:Object(r.a)(({value:t,onChange:e,feed:o})=>i.a.createElement(O.a,{value:t.captionBlacklistSettings,onChange:t=>e({captionBlacklistSettings:t}),feed:o}),["captionBlacklistSettings"])}]},{id:"hashtag-filters",label:"Hashtag filtering",fields:[{id:"hashtag-whitelist",component:Object(r.a)(({value:t,onChange:e,field:o})=>i.a.createElement(b.a,{label:"Only show posts with these hashtags"},i.a.createElement(E.a,{id:o.id,value:t.hashtagWhitelist,onChange:t=>e({hashtagWhitelist:t}),exclude:v.b.values.hashtagBlacklist.concat(t.hashtagBlacklist),excludeMsg:"The %s hashtag is already being used in the below option or your global filters"})),["hashtagWhitelist"])},{id:"hashtag-whitelist-settings",component:Object(r.a)(({value:t,onChange:e,feed:o})=>i.a.createElement(O.a,{value:t.hashtagWhitelistSettings,onChange:t=>e({hashtagWhitelistSettings:t}),feed:o}),["hashtagWhitelistSettings"])},{id:"hashtag-blacklist",component:Object(r.a)(({value:t,onChange:e,field:o})=>i.a.createElement(b.a,{label:"Hide posts with these hashtags",bordered:!0},i.a.createElement(E.a,{id:o.id,value:t.hashtagBlacklist,onChange:t=>e({hashtagBlacklist:t}),exclude:v.b.values.hashtagWhitelist.concat(t.hashtagWhitelist),excludeMsg:"The %s hashtag is already being used by the above option or your global filters"})),["hashtagBlacklist"])},{id:"hashtag-blacklist-settings",component:Object(r.a)(({value:t,onChange:e,feed:o})=>i.a.createElement(O.a,{value:t.hashtagBlacklistSettings,onChange:t=>e({hashtagBlacklistSettings:t}),feed:o}),["hashtagBlacklistSettings"])}]}]},k={id:"moderate",label:"Moderate",component:w.a},T={id:"promote",label:"Promote",component:_.a},M=a.a.tabs.findIndex(t=>"embed"===t.id);function A(t){return!t.computed.showCaptions}M<0?a.a.tabs.push(P,k,T):a.a.tabs.splice(M,0,P,k,T)},7:function(t,e,o){"use strict";o.d(e,"a",(function(){return y}));var n=o(34),i=o.n(n),a=o(1),s=o(2),r=o(27),l=o(32),c=o(4),u=o(3),d=o(13),h=o(18),p=o(38),m=o(8),f=o(22),g=o(12),b=function(t,e,o,n){var i,a=arguments.length,s=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var r=t.length-1;r>=0;r--)(i=t[r])&&(s=(a<3?i(s):a>3?i(e,o,s):i(e,o))||s);return a>3&&s&&Object.defineProperty(e,o,s),s};class y{constructor(t=new y.Options,e=s.a.Mode.DESKTOP){this.media=[],this.canLoadMore=!1,this.stories=[],this.numLoadedMore=0,this.totalMedia=0,this.mode=s.a.Mode.DESKTOP,this.isLoaded=!1,this.isLoading=!1,this.isLoadingMore=!1,this.numMediaToShow=0,this.numMediaPerPage=0,this.cancelFetch=()=>{},this.options=new y.Options(t),this.localMedia=[],this.mode=e,this.mediaCounter=this._numMediaPerPage,this.reload=Object(p.a)(()=>this.load(),300),Object(a.o)(()=>this.mode,()=>{0===this.numLoadedMore&&(this.mediaCounter=this._numMediaPerPage,this.localMedia.length<this.numMediaToShow&&this.loadMedia(this.localMedia.length,this.numMediaToShow-this.localMedia.length))}),Object(a.o)(()=>this.getReloadOptions(),()=>this.reload()),Object(a.o)(()=>({num:this._numMediaPerPage,mode:this.mode}),({num:t})=>{this.localMedia.length<t&&t<=this.totalMedia?this.reload():this.mediaCounter=Math.max(1,t)}),Object(a.o)(()=>this._media,t=>this.media=t),Object(a.o)(()=>this._numMediaToShow,t=>this.numMediaToShow=t),Object(a.o)(()=>this._numMediaPerPage,t=>this.numMediaPerPage=t),Object(a.o)(()=>this._canLoadMore,t=>this.canLoadMore=t)}get _media(){return this.localMedia.slice(0,this.numMediaToShow)}get _numMediaToShow(){return Math.min(this.mediaCounter,this.totalMedia)}get _numMediaPerPage(){return Math.max(1,y.ComputedOptions.normalizeMultiInt(this.options.numPosts,this.mode,1))}get _canLoadMore(){return this.localMedia.length>this.mediaCounter||this.localMedia.length<this.totalMedia}loadMore(){const t=this.numMediaToShow+this._numMediaPerPage-this.localMedia.length;return this.isLoadingMore=!0,t>0?this.loadMedia(this.localMedia.length,this._numMediaPerPage).then(()=>{this.mediaCounter+=this._numMediaPerPage,this.numLoadedMore++,this.isLoadingMore=!1}):new Promise(t=>{this.numLoadedMore++,this.mediaCounter+=this._numMediaPerPage,this.isLoadingMore=!1,t()})}load(){return this.numLoadedMore=0,this.loadMedia(0,this._numMediaPerPage,!0).then(()=>(this.isLoaded=!0,this.mediaCounter=this._numMediaPerPage))}loadMedia(t,e,o){return this.cancelFetch(),y.Options.hasSources(this.options)?(this.isLoading=!0,new Promise((n,a)=>{h.a.getFeedMedia(this.options,t,e,t=>this.cancelFetch=t).then(t=>{var e;if("object"!=typeof t||"object"!=typeof t.data||!Array.isArray(t.data.media))throw{message:"The media response is malformed or corrupt",response:t};o&&(this.localMedia=[]),this.localMedia.push(...t.data.media),this.stories=null!==(e=t.data.stories)&&void 0!==e?e:[],this.totalMedia=t.data.total,n&&n()}).catch(t=>{var e;if(i.a.isCancel(t))return null;const o=new y.Events.FetchFailEvent(y.Events.FETCH_FAIL,{detail:{feed:this,message:null!==(e=t.response?t.response.data.message:void 0)&&void 0!==e?e:t.message,response:t.response}});return document.dispatchEvent(o),a&&a(t),t}).finally(()=>this.isLoading=!1)})):new Promise(t=>{this.localMedia=[],this.totalMedia=0,t&&t()})}getReloadOptions(){return JSON.stringify({accounts:this.options.accounts,hashtags:this.options.hashtags,tagged:this.options.tagged,postOrder:this.options.postOrder,mediaType:this.options.mediaType,moderation:this.options.moderation,moderationMode:this.options.moderationMode,hashtagBlacklist:this.options.hashtagBlacklist,hashtagWhitelist:this.options.hashtagWhitelist,captionBlacklist:this.options.captionBlacklist,captionWhitelist:this.options.captionWhitelist,hashtagBlacklistSettings:this.options.hashtagBlacklistSettings,hashtagWhitelistSettings:this.options.hashtagWhitelistSettings,captionBlacklistSettings:this.options.captionBlacklistSettings,captionWhitelistSettings:this.options.captionWhitelistSettings})}}b([a.n],y.prototype,"media",void 0),b([a.n],y.prototype,"canLoadMore",void 0),b([a.n],y.prototype,"stories",void 0),b([a.n],y.prototype,"numLoadedMore",void 0),b([a.n],y.prototype,"options",void 0),b([a.n],y.prototype,"totalMedia",void 0),b([a.n],y.prototype,"mode",void 0),b([a.n],y.prototype,"isLoaded",void 0),b([a.n],y.prototype,"isLoading",void 0),b([a.n],y.prototype,"isLoadingMore",void 0),b([a.f],y.prototype,"reload",void 0),b([a.n],y.prototype,"localMedia",void 0),b([a.n],y.prototype,"numMediaToShow",void 0),b([a.n],y.prototype,"numMediaPerPage",void 0),b([a.n],y.prototype,"mediaCounter",void 0),b([a.h],y.prototype,"_media",null),b([a.h],y.prototype,"_numMediaToShow",null),b([a.h],y.prototype,"_numMediaPerPage",null),b([a.h],y.prototype,"_canLoadMore",null),b([a.f],y.prototype,"loadMore",null),b([a.f],y.prototype,"load",null),b([a.f],y.prototype,"loadMedia",null),function(t){let e,o,n,i,h,p,y,v,O;!function(t){t.FETCH_FAIL="sli/feed/fetch_fail";class e extends CustomEvent{constructor(t,e){super(t,e)}}t.FetchFailEvent=e}(e=t.Events||(t.Events={}));class E{constructor(t={}){E.setFromObject(this,t)}static setFromObject(e,o={}){var n,i,a,l,u,d,h,p,m,g,b,y,v,O,E;return e.accounts=o.accounts?o.accounts.slice():t.DefaultOptions.accounts,e.hashtags=o.hashtags?o.hashtags.slice():t.DefaultOptions.hashtags,e.tagged=o.tagged?o.tagged.slice():t.DefaultOptions.tagged,e.layout=r.a.getById(o.layout).id,e.numColumns=s.a.normalize(o.numColumns,t.DefaultOptions.numColumns),e.highlightFreq=s.a.normalize(o.highlightFreq,t.DefaultOptions.highlightFreq),e.mediaType=o.mediaType||t.DefaultOptions.mediaType,e.postOrder=o.postOrder||t.DefaultOptions.postOrder,e.numPosts=s.a.normalize(o.numPosts,t.DefaultOptions.numPosts),e.linkBehavior=s.a.normalize(o.linkBehavior,t.DefaultOptions.linkBehavior),e.feedWidth=s.a.normalize(o.feedWidth,t.DefaultOptions.feedWidth),e.feedHeight=s.a.normalize(o.feedHeight,t.DefaultOptions.feedHeight),e.feedPadding=s.a.normalize(o.feedPadding,t.DefaultOptions.feedPadding),e.imgPadding=s.a.normalize(o.imgPadding,t.DefaultOptions.imgPadding),e.textSize=s.a.normalize(o.textSize,t.DefaultOptions.textSize),e.bgColor=o.bgColor||t.DefaultOptions.bgColor,e.hoverInfo=o.hoverInfo?o.hoverInfo.slice():t.DefaultOptions.hoverInfo,e.textColorHover=o.textColorHover||t.DefaultOptions.textColorHover,e.bgColorHover=o.bgColorHover||t.DefaultOptions.bgColorHover,e.showHeader=s.a.normalize(o.showHeader,t.DefaultOptions.showHeader),e.headerInfo=s.a.normalize(o.headerInfo,t.DefaultOptions.headerInfo),e.headerAccount=null!==(n=o.headerAccount)&&void 0!==n?n:t.DefaultOptions.headerAccount,e.headerAccount=null===e.headerAccount||void 0===c.b.getById(e.headerAccount)?c.b.list.length>0?c.b.list[0].id:null:e.headerAccount,e.headerStyle=s.a.normalize(o.headerStyle,t.DefaultOptions.headerStyle),e.headerTextSize=s.a.normalize(o.headerTextSize,t.DefaultOptions.headerTextSize),e.headerPhotoSize=s.a.normalize(o.headerPhotoSize,t.DefaultOptions.headerPhotoSize),e.headerTextColor=o.headerTextColor||t.DefaultOptions.headerTextColor,e.headerBgColor=o.headerBgColor||t.DefaultOptions.bgColor,e.headerPadding=s.a.normalize(o.headerPadding,t.DefaultOptions.headerPadding),e.customProfilePic=null!==(i=o.customProfilePic)&&void 0!==i?i:t.DefaultOptions.customProfilePic,e.customBioText=o.customBioText||t.DefaultOptions.customBioText,e.includeStories=null!==(a=o.includeStories)&&void 0!==a?a:t.DefaultOptions.includeStories,e.storiesInterval=o.storiesInterval||t.DefaultOptions.storiesInterval,e.showCaptions=s.a.normalize(o.showCaptions,t.DefaultOptions.showCaptions),e.captionMaxLength=s.a.normalize(o.captionMaxLength,t.DefaultOptions.captionMaxLength),e.captionRemoveDots=null!==(l=o.captionRemoveDots)&&void 0!==l?l:t.DefaultOptions.captionRemoveDots,e.captionSize=s.a.normalize(o.captionSize,t.DefaultOptions.captionSize),e.captionColor=o.captionColor||t.DefaultOptions.captionColor,e.showLikes=s.a.normalize(o.showLikes,t.DefaultOptions.showLikes),e.showComments=s.a.normalize(o.showComments,t.DefaultOptions.showCaptions),e.lcIconSize=s.a.normalize(o.lcIconSize,t.DefaultOptions.lcIconSize),e.likesIconColor=null!==(u=o.likesIconColor)&&void 0!==u?u:t.DefaultOptions.likesIconColor,e.commentsIconColor=o.commentsIconColor||t.DefaultOptions.commentsIconColor,e.lightboxShowSidebar=null!==(d=o.lightboxShowSidebar)&&void 0!==d?d:t.DefaultOptions.lightboxShowSidebar,e.numLightboxComments=o.numLightboxComments||t.DefaultOptions.numLightboxComments,e.showLoadMoreBtn=s.a.normalize(o.showLoadMoreBtn,t.DefaultOptions.showLoadMoreBtn),e.loadMoreBtnTextColor=o.loadMoreBtnTextColor||t.DefaultOptions.loadMoreBtnTextColor,e.loadMoreBtnBgColor=o.loadMoreBtnBgColor||t.DefaultOptions.loadMoreBtnBgColor,e.loadMoreBtnText=o.loadMoreBtnText||t.DefaultOptions.loadMoreBtnText,e.autoload=null!==(h=o.autoload)&&void 0!==h?h:t.DefaultOptions.autoload,e.showFollowBtn=s.a.normalize(o.showFollowBtn,t.DefaultOptions.showFollowBtn),e.followBtnText=null!==(p=o.followBtnText)&&void 0!==p?p:t.DefaultOptions.followBtnText,e.followBtnTextColor=o.followBtnTextColor||t.DefaultOptions.followBtnTextColor,e.followBtnBgColor=o.followBtnBgColor||t.DefaultOptions.followBtnBgColor,e.followBtnLocation=s.a.normalize(o.followBtnLocation,t.DefaultOptions.followBtnLocation),e.hashtagWhitelist=o.hashtagWhitelist||t.DefaultOptions.hashtagWhitelist,e.hashtagBlacklist=o.hashtagBlacklist||t.DefaultOptions.hashtagBlacklist,e.captionWhitelist=o.captionWhitelist||t.DefaultOptions.captionWhitelist,e.captionBlacklist=o.captionBlacklist||t.DefaultOptions.captionBlacklist,e.hashtagWhitelistSettings=null!==(m=o.hashtagWhitelistSettings)&&void 0!==m?m:t.DefaultOptions.hashtagWhitelistSettings,e.hashtagBlacklistSettings=null!==(g=o.hashtagBlacklistSettings)&&void 0!==g?g:t.DefaultOptions.hashtagBlacklistSettings,e.captionWhitelistSettings=null!==(b=o.captionWhitelistSettings)&&void 0!==b?b:t.DefaultOptions.captionWhitelistSettings,e.captionBlacklistSettings=null!==(y=o.captionBlacklistSettings)&&void 0!==y?y:t.DefaultOptions.captionBlacklistSettings,e.moderation=o.moderation||t.DefaultOptions.moderation,e.moderationMode=o.moderationMode||t.DefaultOptions.moderationMode,e.promotionEnabled=null!==(v=o.promotionEnabled)&&void 0!==v?v:t.DefaultOptions.promotionEnabled,e.autoPromotionsEnabled=null!==(O=o.autoPromotionsEnabled)&&void 0!==O?O:t.DefaultOptions.autoPromotionsEnabled,e.globalPromotionsEnabled=null!==(E=o.globalPromotionsEnabled)&&void 0!==E?E:t.DefaultOptions.globalPromotionsEnabled,Array.isArray(o.promotions)?e.promotions=f.a.fromArray(o.promotions):o.promotions&&o.promotions instanceof Map?e.promotions=f.a.fromMap(o.promotions):"object"==typeof o.promotions?e.promotions=o.promotions:e.promotions=t.DefaultOptions.promotions,e}static getAllAccounts(t){const e=c.b.idsToAccounts(t.accounts),o=c.b.idsToAccounts(t.tagged);return{all:e.concat(o),accounts:e,tagged:o}}static getSources(t){return{accounts:c.b.idsToAccounts(t.accounts),tagged:c.b.idsToAccounts(t.tagged),hashtags:c.b.getBusinessAccounts().length>0?t.hashtags.filter(t=>t.tag.length>0):[]}}static hasSources(e){const o=t.Options.getSources(e),n=o.accounts.length>0||o.tagged.length>0,i=o.hashtags.length>0;return n||i}static isLimitingPosts(t){return t.moderation.length>0||t.hashtagBlacklist.length>0||t.hashtagWhitelist.length>0||t.captionBlacklist.length>0||t.captionWhitelist.length>0}}b([a.n],E.prototype,"accounts",void 0),b([a.n],E.prototype,"hashtags",void 0),b([a.n],E.prototype,"tagged",void 0),b([a.n],E.prototype,"layout",void 0),b([a.n],E.prototype,"numColumns",void 0),b([a.n],E.prototype,"highlightFreq",void 0),b([a.n],E.prototype,"mediaType",void 0),b([a.n],E.prototype,"postOrder",void 0),b([a.n],E.prototype,"numPosts",void 0),b([a.n],E.prototype,"linkBehavior",void 0),b([a.n],E.prototype,"feedWidth",void 0),b([a.n],E.prototype,"feedHeight",void 0),b([a.n],E.prototype,"feedPadding",void 0),b([a.n],E.prototype,"imgPadding",void 0),b([a.n],E.prototype,"textSize",void 0),b([a.n],E.prototype,"bgColor",void 0),b([a.n],E.prototype,"textColorHover",void 0),b([a.n],E.prototype,"bgColorHover",void 0),b([a.n],E.prototype,"hoverInfo",void 0),b([a.n],E.prototype,"showHeader",void 0),b([a.n],E.prototype,"headerInfo",void 0),b([a.n],E.prototype,"headerAccount",void 0),b([a.n],E.prototype,"headerStyle",void 0),b([a.n],E.prototype,"headerTextSize",void 0),b([a.n],E.prototype,"headerPhotoSize",void 0),b([a.n],E.prototype,"headerTextColor",void 0),b([a.n],E.prototype,"headerBgColor",void 0),b([a.n],E.prototype,"headerPadding",void 0),b([a.n],E.prototype,"customBioText",void 0),b([a.n],E.prototype,"customProfilePic",void 0),b([a.n],E.prototype,"includeStories",void 0),b([a.n],E.prototype,"storiesInterval",void 0),b([a.n],E.prototype,"showCaptions",void 0),b([a.n],E.prototype,"captionMaxLength",void 0),b([a.n],E.prototype,"captionRemoveDots",void 0),b([a.n],E.prototype,"captionSize",void 0),b([a.n],E.prototype,"captionColor",void 0),b([a.n],E.prototype,"showLikes",void 0),b([a.n],E.prototype,"showComments",void 0),b([a.n],E.prototype,"lcIconSize",void 0),b([a.n],E.prototype,"likesIconColor",void 0),b([a.n],E.prototype,"commentsIconColor",void 0),b([a.n],E.prototype,"lightboxShowSidebar",void 0),b([a.n],E.prototype,"numLightboxComments",void 0),b([a.n],E.prototype,"showLoadMoreBtn",void 0),b([a.n],E.prototype,"loadMoreBtnText",void 0),b([a.n],E.prototype,"loadMoreBtnTextColor",void 0),b([a.n],E.prototype,"loadMoreBtnBgColor",void 0),b([a.n],E.prototype,"autoload",void 0),b([a.n],E.prototype,"showFollowBtn",void 0),b([a.n],E.prototype,"followBtnText",void 0),b([a.n],E.prototype,"followBtnTextColor",void 0),b([a.n],E.prototype,"followBtnBgColor",void 0),b([a.n],E.prototype,"followBtnLocation",void 0),b([a.n],E.prototype,"hashtagWhitelist",void 0),b([a.n],E.prototype,"hashtagBlacklist",void 0),b([a.n],E.prototype,"captionWhitelist",void 0),b([a.n],E.prototype,"captionBlacklist",void 0),b([a.n],E.prototype,"hashtagWhitelistSettings",void 0),b([a.n],E.prototype,"hashtagBlacklistSettings",void 0),b([a.n],E.prototype,"captionWhitelistSettings",void 0),b([a.n],E.prototype,"captionBlacklistSettings",void 0),b([a.n],E.prototype,"moderation",void 0),b([a.n],E.prototype,"moderationMode",void 0),t.Options=E;class w{constructor(t){Object.getOwnPropertyNames(t).map(e=>{this[e]=t[e]})}getCaption(t){const e=t.caption?t.caption:"";return this.captionMaxLength&&e.length?Object(u.s)(Object(u.v)(e,this.captionMaxLength)):e}static compute(e,o=s.a.Mode.DESKTOP){const n=new w({accounts:c.b.filterExisting(e.accounts),tagged:c.b.filterExisting(e.tagged),hashtags:e.hashtags.filter(t=>t.tag.length>0),layout:r.a.getById(e.layout),highlightFreq:s.a.get(e.highlightFreq,o,!0),linkBehavior:s.a.get(e.linkBehavior,o,!0),bgColor:Object(d.a)(e.bgColor),textColorHover:Object(d.a)(e.textColorHover),bgColorHover:Object(d.a)(e.bgColorHover),hoverInfo:e.hoverInfo,showHeader:s.a.get(e.showHeader,o,!0),headerInfo:s.a.get(e.headerInfo,o,!0),headerStyle:s.a.get(e.headerStyle,o,!0),headerTextColor:Object(d.a)(e.headerTextColor),headerBgColor:Object(d.a)(e.headerBgColor),headerPadding:s.a.get(e.headerPadding,o,!0),includeStories:e.includeStories,storiesInterval:e.storiesInterval,showCaptions:s.a.get(e.showCaptions,o,!0),captionMaxLength:s.a.get(e.captionMaxLength,o,!0),captionRemoveDots:e.captionRemoveDots,captionColor:Object(d.a)(e.captionColor),showLikes:s.a.get(e.showLikes,o,!0),showComments:s.a.get(e.showComments,o,!0),likesIconColor:Object(d.a)(e.likesIconColor),commentsIconColor:Object(d.a)(e.commentsIconColor),lightboxShowSidebar:e.lightboxShowSidebar,numLightboxComments:e.numLightboxComments,showLoadMoreBtn:s.a.get(e.showLoadMoreBtn,o,!0),loadMoreBtnTextColor:Object(d.a)(e.loadMoreBtnTextColor),loadMoreBtnBgColor:Object(d.a)(e.loadMoreBtnBgColor),loadMoreBtnText:e.loadMoreBtnText,showFollowBtn:s.a.get(e.showFollowBtn,o,!0),autoload:e.autoload,followBtnLocation:s.a.get(e.followBtnLocation,o,!0),followBtnTextColor:Object(d.a)(e.followBtnTextColor),followBtnBgColor:Object(d.a)(e.followBtnBgColor),followBtnText:e.followBtnText,account:null,showBio:!1,bioText:null,profilePhotoUrl:c.b.DEFAULT_PROFILE_PIC,feedWidth:"",feedHeight:"",feedPadding:"",imgPadding:"",textSize:"",headerTextSize:"",headerPhotoSize:"",captionSize:"",lcIconSize:"",showLcIcons:!1});if(n.numColumns=this.getNumCols(e,o),n.numPosts=this.getNumPosts(e,o),n.allAccounts=n.accounts.concat(n.tagged.filter(t=>!n.accounts.includes(t))),n.allAccounts.length>0&&(n.account=e.headerAccount&&n.allAccounts.includes(e.headerAccount)?c.b.getById(e.headerAccount):c.b.getById(n.allAccounts[0])),n.showHeader=n.showHeader&&null!==n.account,n.showHeader&&(n.profilePhotoUrl=e.customProfilePic.length?e.customProfilePic:c.b.getProfilePicUrl(n.account)),n.showFollowBtn=n.showFollowBtn&&null!==n.account,n.showBio=n.headerInfo.some(e=>e===t.HeaderInfo.BIO),n.showBio){const t=e.customBioText.trim().length>0?e.customBioText:null!==n.account?c.b.getBioText(n.account):"";n.bioText=Object(u.s)(t),n.showBio=n.bioText.length>0}return n.feedWidth=this.normalizeCssSize(e.feedWidth,o,"auto"),n.feedHeight=this.normalizeCssSize(e.feedHeight,o,"auto"),n.feedPadding=this.normalizeCssSize(e.feedPadding,o,"0"),n.imgPadding=this.normalizeCssSize(e.imgPadding,o,"0"),n.textSize=this.normalizeCssSize(e.textSize,o,"inherit",!0),n.headerTextSize=this.normalizeCssSize(e.headerTextSize,o,"inherit"),n.headerPhotoSize=this.normalizeCssSize(e.headerPhotoSize,o,"50px"),n.captionSize=this.normalizeCssSize(e.captionSize,o,"inherit"),n.lcIconSize=this.normalizeCssSize(e.lcIconSize,o,"inherit"),n.buttonPadding=Math.max(10,s.a.get(e.imgPadding,o))+"px",n.showLcIcons=n.showLikes||n.showComments,n}static getNumCols(t,e){return Math.max(1,this.normalizeMultiInt(t.numColumns,e,1))}static getNumPosts(t,e){return Math.max(1,this.normalizeMultiInt(t.numPosts,e,1))}static normalizeMultiInt(t,e,o=0){const n=parseInt(s.a.get(t,e)+"");return isNaN(n)?e===s.a.Mode.DESKTOP?o:this.normalizeMultiInt(t,s.a.Mode.DESKTOP,o):n}static normalizeCssSize(t,e,o=null,n=!1){const i=s.a.get(t,e,n);return i?i+"px":o}}function _(t,e){if(g.a.isPro)return Object(u.l)(m.a.isValid,[()=>S(t,e),()=>e.globalPromotionsEnabled&&m.a.getGlobalPromo(t),()=>e.autoPromotionsEnabled&&m.a.getAutoPromo(t)])}function S(t,e){return t?m.a.getPromoFromDictionary(t,e.promotions):void 0}t.ComputedOptions=w,t.HashtagSorting=Object(l.c)({recent:"Most recent",popular:"Most popular"}),function(t){t.ALL="all",t.PHOTOS="photos",t.VIDEOS="videos"}(o=t.MediaType||(t.MediaType={})),function(t){t.NOTHING="nothing",t.SELF="self",t.NEW_TAB="new_tab",t.LIGHTBOX="lightbox"}(n=t.LinkBehavior||(t.LinkBehavior={})),function(t){t.DATE_ASC="date_asc",t.DATE_DESC="date_desc",t.POPULARITY_ASC="popularity_asc",t.POPULARITY_DESC="popularity_desc",t.RANDOM="random"}(i=t.PostOrder||(t.PostOrder={})),function(t){t.USERNAME="username",t.DATE="date",t.CAPTION="caption",t.LIKES_COMMENTS="likes_comments",t.INSTA_LINK="insta_link"}(h=t.HoverInfo||(t.HoverInfo={})),function(t){t.NORMAL="normal",t.BOXED="boxed",t.CENTERED="centered"}(p=t.HeaderStyle||(t.HeaderStyle={})),function(t){t.BIO="bio",t.PROFILE_PIC="profile_pic",t.FOLLOWERS="followers",t.MEDIA_COUNT="media_count"}(y=t.HeaderInfo||(t.HeaderInfo={})),function(t){t.HEADER="header",t.BOTTOM="bottom",t.BOTH="both"}(v=t.FollowBtnLocation||(t.FollowBtnLocation={})),function(t){t.WHITELIST="whitelist",t.BLACKLIST="blacklist"}(O=t.ModerationMode||(t.ModerationMode={})),t.DefaultOptions={accounts:[],hashtags:[],tagged:[],layout:null,numColumns:{desktop:3},highlightFreq:{desktop:7},mediaType:o.ALL,postOrder:i.DATE_DESC,numPosts:{desktop:9},linkBehavior:{desktop:n.LIGHTBOX,phone:n.NEW_TAB},feedWidth:{desktop:""},feedHeight:{desktop:""},feedPadding:{desktop:20,tablet:14,phone:10},imgPadding:{desktop:14,tablet:10,phone:6},textSize:{all:""},bgColor:{r:255,g:255,b:255,a:1},hoverInfo:[h.LIKES_COMMENTS,h.INSTA_LINK],textColorHover:{r:255,g:255,b:255,a:1},bgColorHover:{r:0,g:0,b:0,a:.5},showHeader:{desktop:!0},headerInfo:{desktop:[y.PROFILE_PIC,y.BIO]},headerAccount:null,headerStyle:{desktop:p.NORMAL,phone:p.CENTERED},headerTextSize:{desktop:""},headerPhotoSize:{desktop:50},headerTextColor:{r:0,g:0,b:0,a:1},headerBgColor:{r:255,g:255,b:255,a:1},headerPadding:{desktop:0},customProfilePic:0,customBioText:"",includeStories:!1,storiesInterval:5,showCaptions:{desktop:!1},captionMaxLength:{desktop:0},captionRemoveDots:!1,captionSize:{desktop:0},captionColor:{r:0,g:0,b:0,a:1},showLikes:{desktop:!1},showComments:{desktop:!1},lcIconSize:{desktop:14},likesIconColor:{r:0,g:0,b:0,a:1},commentsIconColor:{r:0,g:0,b:0,a:1},lightboxShowSidebar:!1,numLightboxComments:50,showLoadMoreBtn:{desktop:!0},loadMoreBtnTextColor:{r:255,g:255,b:255,a:1},loadMoreBtnBgColor:{r:0,g:149,b:246,a:1},loadMoreBtnText:"Load more",autoload:!1,showFollowBtn:{desktop:!0},followBtnText:"Follow on Instagram",followBtnTextColor:{r:255,g:255,b:255,a:1},followBtnBgColor:{r:0,g:149,b:246,a:1},followBtnLocation:{desktop:v.HEADER,phone:v.BOTTOM},hashtagWhitelist:[],hashtagBlacklist:[],captionWhitelist:[],captionBlacklist:[],hashtagWhitelistSettings:!0,hashtagBlacklistSettings:!0,captionWhitelistSettings:!0,captionBlacklistSettings:!0,moderation:[],moderationMode:O.BLACKLIST,promotionEnabled:!0,autoPromotionsEnabled:!0,globalPromotionsEnabled:!0,promotions:{}},t.getPromo=_,t.getFeedPromo=S,t.executeMediaClick=function(t,e){const o=_(t,e),n=m.a.getConfig(o),i=m.a.getType(o);return!(!i||!i.isValid(n)||"function"!=typeof i.onMediaClick)&&i.onMediaClick(t,n)},t.getLink=function(t,e){var o,n;const i=_(t,e),a=m.a.getConfig(i),s=m.a.getType(i);if(void 0===s||!s.isValid(a))return{text:null,url:null,newTab:!1};let[r,l]=s.getPopupLink?null!==(o=s.getPopupLink(t,a))&&void 0!==o?o:null:[null,!1];return{text:r,url:s.getMediaUrl&&null!==(n=s.getMediaUrl(t,a))&&void 0!==n?n:null,newTab:l}}}(y||(y={}))},73:function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));var n=o(0),i=o.n(n),a=o(43),s=o.n(a),r=o(15),l=o(3),c=o(58),u=o(11),d=o(16);function h(t){var{media:e,className:o,size:a,onLoadImage:h,width:p,height:m}=t,f=function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(o[n[i]]=t[n[i]])}return o}(t,["media","className","size","onLoadImage","width","height"]);const g=i.a.useRef(),[b,y]=i.a.useState(!0);function v(){if(g.current){const t=e.type===r.a.Type.ALBUM&&e.children.length>0?e.children[0]:e;let o;if(void 0===a){const t=g.current.getBoundingClientRect();o=t.width<=320?l.a.SMALL:t.width<=480?l.a.MEDIUM:l.a.LARGE}else o=a;if("string"==typeof e.sliThumbnail&&e.sliThumbnail.length>0)g.current.src=e.sliThumbnail+"&size="+o;else{const e=Object(l.n)(t.permalink);g.current.src=Object(l.m)(e,o)}}}return Object(n.useLayoutEffect)(()=>(g.current&&(g.current.onload=()=>{y(!1),h&&h()},v()),()=>g.current.onload=()=>null),[e,a]),Object(d.m)(()=>{void 0===a&&v()}),e.url&&e.url.length>0?i.a.createElement("div",Object.assign({className:Object(u.b)(s.a.root,o)},f),i.a.createElement("img",Object.assign({ref:g,className:s.a.image,loading:"lazy",alt:e.caption,width:p,height:m},u.e)),b&&i.a.createElement(c.a,null)):i.a.createElement("div",{className:s.a.notAvailable},i.a.createElement("span",null,"Thumbnail not available"))}},74:function(t,e,o){t.exports={root:"MediaLoading__root",animation:"MediaLoading__animation"}},76:function(t,e,o){"use strict";o.d(e,"c",(function(){return s})),o.d(e,"a",(function(){return r})),o.d(e,"b",(function(){return l}));var n=o(7),i=o(18),a=o(3);class s{constructor(t=!1,e=!1){this.incModeration=!1,this.incFilters=!1,this.prevOptions=null,this.media=new Array,this.incModeration=t,this.incFilters=e}fetchMedia(t,e){if(this.hasCache(t))return Promise.resolve(this.media);const o=Object.assign({},t.options,{moderation:this.incModeration?t.options.moderation:[],moderationMode:t.options.moderationMode,hashtagBlacklist:this.incFilters?t.options.hashtagBlacklist:[],hashtagWhitelist:this.incFilters?t.options.hashtagWhitelist:[],captionBlacklist:this.incFilters?t.options.captionBlacklist:[],captionWhitelist:this.incFilters?t.options.captionWhitelist:[],hashtagBlacklistSettings:!!this.incFilters&&t.options.hashtagBlacklistSettings,hashtagWhitelistSettings:!!this.incFilters&&t.options.hashtagWhitelistSettings,captionBlacklistSettings:!!this.incFilters&&t.options.captionBlacklistSettings,captionWhitelistSettings:!!this.incFilters&&t.options.captionWhitelistSettings});return e&&e(),i.a.getFeedMedia(o).then(e=>(this.prevOptions=new n.a.Options(t.options),this.media=e.data.media,this.media))}hasCache(t){return null!==this.prevOptions&&!this.isCacheInvalid(t)}isCacheInvalid(t){const e=t.options,o=this.prevOptions;if(Object(a.k)(t.media,this.media,(t,e)=>t.id===e.id).length>0)return!0;if(!Object(a.f)(e.accounts,o.accounts))return!0;if(!Object(a.f)(e.tagged,o.tagged))return!0;if(!Object(a.f)(e.hashtags,o.hashtags,a.p))return!0;if(this.incModeration){if(e.moderationMode!==o.moderationMode)return!0;if(!Object(a.f)(e.moderation,o.moderation))return!0}if(this.incFilters){if(e.captionWhitelistSettings!==o.captionWhitelistSettings||e.captionBlacklistSettings!==o.captionBlacklistSettings||e.hashtagWhitelistSettings!==o.hashtagWhitelistSettings||e.hashtagBlacklistSettings!==o.hashtagBlacklistSettings)return!0;if(!Object(a.f)(e.captionWhitelist,o.captionWhitelist))return!0;if(!Object(a.f)(e.captionBlacklist,o.captionBlacklist))return!0;if(!Object(a.f)(e.hashtagWhitelist,o.hashtagWhitelist))return!0;if(!Object(a.f)(e.hashtagBlacklist,o.hashtagBlacklist))return!0}return!1}}const r=new s(!0,!0),l=new s(!1,!0)},77:function(t,e,o){t.exports={root:"ProfilePic__root",round:"ProfilePic__round ProfilePic__root",square:"ProfilePic__square ProfilePic__root"}},78:function(t,e,o){t.exports={"connect-btn":"AccountsPage__connect-btn",connectBtn:"AccountsPage__connect-btn"}},8:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n,i=o(12),a=o(22),s=o(3);!function(t){function e(t){return t?c(t.type):void 0}function o(t){var o;if("object"!=typeof t)return!1;const n=e(t);return void 0!==n&&n.isValid(null!==(o=t.config)&&void 0!==o?o:{})}function n(e){return e?t.getPromoFromDictionary(e,i.a.config.globalPromotions):void 0}function r(t){const e=l(t);return void 0===e?void 0:e.promotion}function l(e){if(e)for(const o of i.a.config.autoPromotions){const n=t.Automation.getType(o),i=t.Automation.getConfig(o);if(n&&n.matches(e,i))return o}}function c(e){return t.types.find(t=>t.id===e)}let u;t.getConfig=function(t){var e,o;return t&&null!==(o=null!==(e=t.config)&&void 0!==e?e:t.data)&&void 0!==o?o:{}},t.getType=e,t.isValid=o,t.getPromoFromDictionary=function(e,o){const n=a.a.get(o,e.id);if(n)return t.getType(n)?n:void 0},t.getPromo=function(t){return Object(s.l)(o,[()=>n(t),()=>r(t)])},t.getGlobalPromo=n,t.getAutoPromo=r,t.getAutomation=l,t.types=[],t.getTypes=function(){return t.types},t.registerType=function(e){t.types.push(e)},t.getTypeById=c,t.clearTypes=function(){t.types.splice(0,t.types.length)},function(t){t.getType=function(t){return t?o(t.type):void 0},t.getConfig=function(t){var e,o;return t&&null!==(o=null!==(e=t.config)&&void 0!==e?e:t.data)&&void 0!==o?o:{}},t.getPromotion=function(t){return t?t.promotion:void 0};const e=[];function o(t){return e.find(e=>e.id===t)}t.getTypes=function(){return e},t.registerType=function(t){e.push(t)},t.getTypeById=o,t.clearTypes=function(){e.splice(0,e.length)}}(u=t.Automation||(t.Automation={}))}(n||(n={}))},89:function(t,e,o){"use strict";o.d(e,"a",(function(){return E}));var n=o(0),i=o.n(n),a=o(45),s=o(9),r=o.n(s),l=o(6),c=o(4),u=o(613),d=o(611),h=o(55),p=o(111),m=o(102),f=o(30),g=o(5),b=o(23),y=o(14),v=o(59),O=Object(l.b)((function({account:t,onUpdate:e}){const[o,n]=i.a.useState(!1),[a,s]=i.a.useState(""),[l,O]=i.a.useState(!1),E=t.type===c.a.Type.PERSONAL,w=c.b.getBioText(t),_=()=>{t.customBio=a,O(!0),f.a.updateAccount(t).then(()=>{n(!1),O(!1),e&&e()})},S=o=>{t.customProfilePicUrl=o,O(!0),f.a.updateAccount(t).then(()=>{O(!1),e&&e()})};return i.a.createElement("div",{className:r.a.root},i.a.createElement("div",{className:r.a.container},i.a.createElement("div",{className:r.a.infoColumn},i.a.createElement("a",{href:c.b.getProfileUrl(t),target:"_blank",className:r.a.username},"@",t.username),i.a.createElement("div",{className:r.a.row},i.a.createElement("span",{className:r.a.label},"Spotlight ID:"),t.id),i.a.createElement("div",{className:r.a.row},i.a.createElement("span",{className:r.a.label},"User ID:"),t.userId),i.a.createElement("div",{className:r.a.row},i.a.createElement("span",{className:r.a.label},"Type:"),t.type),!o&&i.a.createElement("div",{className:r.a.row},i.a.createElement("div",null,i.a.createElement("span",{className:r.a.label},"Bio:"),i.a.createElement("a",{className:r.a.editBioLink,onClick:()=>{s(c.b.getBioText(t)),n(!0)}},"Edit bio"),i.a.createElement("pre",{className:r.a.bio},w.length>0?w:"(No bio)"))),o&&i.a.createElement("div",{className:r.a.row},i.a.createElement("textarea",{className:r.a.bioEditor,value:a,onChange:t=>{s(t.target.value)},onKeyDown:t=>{"Enter"===t.key&&t.ctrlKey&&(_(),t.preventDefault(),t.stopPropagation())},rows:4}),i.a.createElement("div",{className:r.a.bioFooter},i.a.createElement("div",{className:r.a.bioEditingControls},l&&i.a.createElement("span",null,"Please wait ...")),i.a.createElement("div",{className:r.a.bioEditingControls},i.a.createElement(g.a,{className:r.a.bioEditingButton,type:g.c.DANGER,disabled:l,onClick:()=>{t.customBio="",O(!0),f.a.updateAccount(t).then(()=>{n(!1),O(!1),e&&e()})}},"Reset"),i.a.createElement(g.a,{className:r.a.bioEditingButton,type:g.c.SECONDARY,disabled:l,onClick:()=>{n(!1)}},"Cancel"),i.a.createElement(g.a,{className:r.a.bioEditingButton,type:g.c.PRIMARY,disabled:l,onClick:_},"Save"))))),i.a.createElement("div",{className:r.a.picColumn},i.a.createElement("div",null,i.a.createElement(v.a,{account:t,className:r.a.profilePic})),i.a.createElement(p.a,{id:"account-custom-profile-pic",title:"Select profile picture",mediaType:"image",onSelect:t=>{const e=parseInt(t.attributes.id),o=m.a.media.attachment(e).attributes.url;S(o)}},({open:t})=>i.a.createElement(g.a,{type:g.c.SECONDARY,className:r.a.setCustomPic,onClick:t},"Change profile picture")),t.customProfilePicUrl.length>0&&i.a.createElement("a",{className:r.a.resetCustomPic,onClick:()=>{S("")}},"Reset profile picture"))),E&&i.a.createElement("div",{className:r.a.personalInfoMessage},i.a.createElement(b.a,{type:b.b.INFO,showIcon:!0},"Due to restrictions set by Instagram, Spotlight cannot import the profile photo and bio"," ","text for Personal accounts."," ",i.a.createElement("a",{href:y.a.resources.customPersonalInfoUrl,target:"_blank"},"Click here to learn more"),".")),i.a.createElement(h.a,{label:"View access token",stealth:!0},i.a.createElement("div",{className:r.a.row},t.accessToken&&i.a.createElement("div",null,i.a.createElement("p",null,i.a.createElement("span",{className:r.a.label},"Expires on:"),i.a.createElement("span",null,t.accessToken.expiry?Object(u.a)(Object(d.a)(t.accessToken.expiry),"PPPP"):"Unknown")),i.a.createElement("pre",{className:r.a.accessToken},t.accessToken.code)))))}));function E({isOpen:t,onClose:e,onUpdate:o,account:n}){return i.a.createElement(a.a,{isOpen:t,title:"Account details",icon:"admin-users",onClose:e},i.a.createElement(a.a.Content,null,i.a.createElement(O,{account:n,onUpdate:o})))}},9:function(t,e,o){t.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",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"}},97:function(t,e,o){"use strict";var n=o(76);e.a=new class{constructor(){this.mediaStore=n.a}}}},[[603,0,1,2,3]]])}));
ui/dist/editor.js CHANGED
@@ -1 +1 @@
1
- (window.webpackJsonpspotlight=window.webpackJsonpspotlight||[]).push([[3],{101:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var o=a(0),n=a.n(o),l=a(217),r=a.n(l);function i({children:e,label:t,bordered:a}){const o=a?r.a.bordered:r.a.filterField;return n.a.createElement("div",{className:o},n.a.createElement("span",{className:r.a.label},t),e)}},102:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var o=a(0),n=a.n(o),l=a(218),r=a.n(l),i=a(5),c=a(332);function s({id:e,value:t,onChange:a,feed:o}){const[l,s]=n.a.useState(!1);return n.a.createElement("div",{className:r.a.incGlobalFilters},n.a.createElement("label",{className:r.a.label},n.a.createElement("div",{className:r.a.field},n.a.createElement("input",{id:e,type:"checkbox",value:"1",checked:t,onChange:e=>a&&a(e.target.checked)}),n.a.createElement("span",null,"Include global filters")),n.a.createElement(i.a,{type:i.c.LINK,size:i.b.SMALL,onClick:()=>s(!0)},"Edit global filters"),n.a.createElement(c.a,{isOpen:l,onClose:()=>s(!1),onSave:()=>o&&o.reload()})))}},104:function(e,t,a){e.exports={root:"AccountSelector__root",row:"AccountSelector__row",account:"AccountSelector__account button__toggle-button","account-selected":"AccountSelector__account-selected AccountSelector__account button__toggle-button button__toggle-button-on button__toggle-button",accountSelected:"AccountSelector__account-selected AccountSelector__account button__toggle-button button__toggle-button-on button__toggle-button","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"}},114:function(e,t,a){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"}},121:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var o=a(0),n=a.n(o),l=a(211),r=a(71),i=a(45),c=a(12);const s=({onConnect:e,beforeConnect:t,isTransitioning:a})=>n.a.createElement(r.a,{className:"accounts-onboarding",isTransitioning:a},n.a.createElement("div",{className:"accounts-onboarding__left"},n.a.createElement("h1",null,"Let's connect your Instagram account"),n.a.createElement("p",{className:"accounts-onboarding__first-msg"},"If you're unsure which button applies to you, it's most likely a ",n.a.createElement("strong",null,"Personal")," account."," ","Try that first."),n.a.createElement("div",{className:"accounts-onboarding__spacer"}),n.a.createElement(i.a,{label:"Upgrade to an Instagram Business account for free",stealth:!0},n.a.createElement("p",null,"Business accounts get additional API features that give you more control over your feeds in "," ","Spotlight, especially with ",n.a.createElement("strong",null,"PRO"),"."),n.a.createElement("p",null,"Plus, they get access to ",n.a.createElement("strong",null,"more cool stuff")," within Instagram itself, such as "," ","analytics."),n.a.createElement("p",null,n.a.createElement("a",{href:c.a.resources.businessAccounts,target:"_blank",className:"accounts-onboarding__learn-more-business"},"Learn more")))),n.a.createElement("div",null,n.a.createElement(l.a,{beforeConnect:e=>t&&t(e),onConnect:t=>e&&e(t),useColumns:!0,showPrompt:!1})))},126:function(e,t,a){e.exports={container:"EditorFieldRow__container",label:"EditorFieldRow__label",content:"EditorFieldRow__content","label-aligner":"EditorFieldRow__label-aligner",labelAligner:"EditorFieldRow__label-aligner",disabled:"EditorFieldRow__disabled EditorFieldRow__container","pro-pill":"EditorFieldRow__pro-pill",proPill:"EditorFieldRow__pro-pill",wide:"EditorFieldRow__wide EditorFieldRow__container"}},127:function(e,t,a){e.exports={sidebar:"EditorSidebar__sidebar","sidebar-open":"EditorSidebar__sidebar-open EditorSidebar__sidebar",sidebarOpen:"EditorSidebar__sidebar-open EditorSidebar__sidebar","sidebar-closed":"EditorSidebar__sidebar-closed EditorSidebar__sidebar",sidebarClosed:"EditorSidebar__sidebar-closed EditorSidebar__sidebar",drawer:"EditorSidebar__drawer","toggle-button-container":"EditorSidebar__toggle-button-container",toggleButtonContainer:"EditorSidebar__toggle-button-container","toggle-button":"EditorSidebar__toggle-button",toggleButton:"EditorSidebar__toggle-button",header:"EditorSidebar__header",content:"EditorSidebar__content"}},15:function(e,t,a){"use strict";var o=a(0),n=a.n(o),l=a(38),r=a(95),i=a(216),c=a.n(i),s=a(2),d=a(5),u=a(8);function m({option:e,children:t,value:a,previewDevice:o,onChange:l,onChangeDevice:r}){const i=n.a.useCallback(t=>{l({[e]:s.a.isValid(a[e])?s.a.withValue(a[e],t,o):t})},[a[e],o,l]),m=s.a.isValid(a[e]),p=m?s.a.get(a[e],o,!0):a[e];return n.a.createElement("div",{className:c.a.propField},m&&n.a.createElement("div",{className:c.a.deviceBtn},n.a.createElement(d.a,{type:d.c.PILL,size:d.b.NORMAL,onClick:()=>r(s.a.cycle(o)),tooltip:""},n.a.createElement(u.a,{icon:s.a.getIcon(o)}))),n.a.createElement("div",{className:c.a.field},t(p,i)))}t.a=function({label:e,option:t,render:a,memo:o,deps:i,when:c,disabled:s,tooltip:d}){return o=null==o||o,c=null!=c?c:()=>!0,s=null!=s?s:()=>!1,(i=null!=i?i:[]).includes(t),Object(l.a)(o=>c(o)&&n.a.createElement(r.a,Object.assign({},o,{label:e,disabled:s(o),isFakePro:o.field.isFakePro}),n.a.createElement(m,Object.assign({},o,{option:t}),(e,t)=>a(o,e,t)),d&&d(o)),o?[t].concat(i):[])}},152:function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));var o=a(0),n=a.n(o),l=a(327),r=a.n(l),i=a(214),c=a.n(i),s=a(16),d=a(45),u=a(75),m=a(59);function p(e){const{group:t,showFakeOptions:a,isPro:o}=e,l=n.a.useRef(),[r,i]=n.a.useState(e.openGroups.includes(t.id)),u=Object(s.j)(l),p=n.a.useCallback(()=>{i(e=>!e),r||u()},[r]),h=t.isFakePro?n.a.createElement(b,{label:t.label}):t.label;return!t.isFakePro||a||o?n.a.createElement(d.a,{ref:l,className:t.isFakePro&&!o?c.a.disabled:c.a.spoiler,label:h,isOpen:r,onClick:p,fitted:!0},t.fields.map(o=>{const l=Object.assign({},e);if(t.isFakePro||o.isFakePro){if(!a)return null;l.onChange=m.b}return n.a.createElement(o.component,Object.assign({key:o.id,field:o},e))})):null}const b=({label:e})=>n.a.createElement("div",null,n.a.createElement("div",{className:c.a.proPill},n.a.createElement(u.a,null)),n.a.createElement("span",null,e));function h(e){var{groups:t}=e,a=function(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(a[o[n]]=e[o[n]])}return a}(e,["groups"]);return n.a.createElement("div",{className:r.a.fieldGroupList},t.map(e=>n.a.createElement(p,Object.assign({key:e.id,group:e},a))))}},153:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var o=a(0),n=a.n(o);function l({id:e,value:t,onChange:a,placeholder:o}){return n.a.createElement("input",{id:e,type:"text",value:t,onChange:e=>a(e.target.value),placeholder:o})}a(317)},155:function(e,t,a){"use strict";a.d(t,"b",(function(){return x}));var o=a(0),n=a.n(o),l=a(38),r=a(174),i=a.n(r),c=a(27),s=a(12),d=a(16);const u=({value:e,onChange:t,layouts:a,showUpgrade:o})=>(a=null!=a?a:c.a.list,n.a.createElement("div",{className:i.a.root},a.map((a,o)=>{const l=a.id===e?i.a.layoutSelected:i.a.layout,r=()=>t(a.id),c=Object(d.f)(r);return n.a.createElement("div",{key:o,className:l,role:"button",tabIndex:0,onClick:r,onKeyPress:c},a.name,a.img&&n.a.createElement("img",{src:a.img,alt:a.name}))}),o&&n.a.createElement("div",{className:i.a.comingSoon},n.a.createElement("span",null,"More layouts available in PRO!"),n.a.createElement("br",null),n.a.createElement("a",{href:s.a.resources.upgradeLocalUrl,target:"_blank"},"Upgrade now!"))));var m=a(6),p=a(53),b=a(52),h=a(2),g=a(63),f=a(75),v=a(9);function E({id:e,value:t,onChange:a,showProOptions:o,options:l}){const r=new Set(t),i=e=>{const t=e.target.value,o=e.target.checked,n=l.find(e=>e.value===t);n.isFakePro||n.isDisabled||(o?r.add(t):r.delete(t),a(Array.from(r)))};return n.a.createElement("div",{className:"checkbox-list"},l.filter(e=>!!e).map((t,a)=>{var l;if(t.isFakePro&&!o)return null;const c=Object(v.a)("checkbox-list__option",{"--disabled":t.isDisabled||t.isFakePro});return n.a.createElement("label",{className:c,key:a},n.a.createElement("input",{type:"checkbox",id:e,value:null!==(l=t.value)&&void 0!==l?l:"",checked:r.has(t.value),onChange:i,disabled:t.isDisabled||t.isFakePro}),n.a.createElement("span",null,t.label),t.isFakePro&&n.a.createElement("div",{className:"checkbox-list__pro-pill"},n.a.createElement(f.a,null)))}))}a(562);var _=a(25),w=a(56),k=a(4),y=a(120),O=a(5);a(563);const C=({id:e,title:t,mediaType:a,button:o,buttonSet:l,buttonChange:r,value:i,onChange:c})=>{l=void 0===o?l:o,r=void 0===o?r:o;const s=!!i,d=s?r:l,u=()=>{c&&c("")};return n.a.createElement(y.a,{id:e,title:t,mediaType:a,button:d,value:i,onSelect:e=>{c&&c(e.attributes.url)}},({open:e})=>n.a.createElement("div",{className:"wp-media-field"},s&&n.a.createElement("div",{className:"wp-media-field__preview",tabIndex:0,onClick:e,role:"button"},n.a.createElement("img",{src:i,alt:"Custom profile picture"})),n.a.createElement(O.a,{className:"wp-media-field__select-btn",type:O.c.SECONDARY,onClick:e},d),s&&n.a.createElement(O.a,{className:"wp-media-field__remove-btn",type:O.c.DANGER_LINK,onClick:u},"Remove custom photo")))};function S({id:e,value:t,onChange:a}){return n.a.createElement("textarea",{id:e,value:t,onChange:e=>a(e.target.value)})}var P=a(153),F=a(15),T=m.a.FollowBtnLocation,N=m.a.HeaderInfo;function x(e){return!e.computed.showHeader}function I(e,t){return x(t)||!t.computed.headerInfo.includes(e)}function M(e){return 0===e.value.accounts.length&&0===e.value.tagged.length&&e.value.hashtags.length>0}function j(e){return!e.computed.showFollowBtn}function L(e){return!e.computed.showLoadMoreBtn}t.a=[{id:"layouts",label:"Layout",fields:[{id:"layout",component:Object(l.a)(({value:e,onChange:t,isPro:a})=>n.a.createElement(u,{value:e.layout,onChange:e=>t({layout:e}),showUpgrade:!a}),["layout"])}]},{id:"feed",label:"Feed",fields:[{id:"num-posts",component:Object(F.a)({label:"Number of posts",option:"numPosts",render:(e,t,a)=>{const o=e.previewDevice===h.a.Mode.DESKTOP;return n.a.createElement(b.a,{id:e.field.id,value:t,onChange:a,min:1,placeholder:o?"1":e.value.numPosts.desktop})}})},{id:"num-columns",component:Object(F.a)({label:"Number of columns",option:"numColumns",render:(e,t,a)=>{const o=e.previewDevice===h.a.Mode.DESKTOP;return n.a.createElement(b.a,{id:e.field.id,value:t,onChange:a,min:o?1:0,placeholder:o?"1":e.value.numColumns.desktop})}})},{id:"post-order",component:Object(F.a)({label:"Post order",option:"postOrder",render:(e,t,a)=>n.a.createElement(p.a,{id:e.field.id,value:t,onChange:e=>a(e.value),options:[{value:m.a.PostOrder.DATE_DESC,label:"Most recent first"},{value:m.a.PostOrder.DATE_ASC,label:"Oldest first"},{value:m.a.PostOrder.POPULARITY_DESC,label:"Most popular first"},{value:m.a.PostOrder.POPULARITY_ASC,label:"Least popular first"},{value:m.a.PostOrder.RANDOM,label:"Random"}]})})},{id:"media-type",isFakePro:!0,component:Object(F.a)({label:"Types of posts",option:"mediaType",render:e=>n.a.createElement(p.a,{id:e.field.id,value:m.a.MediaType.ALL,options:[{value:m.a.MediaType.ALL,label:"All posts"},{value:m.a.MediaType.PHOTOS,label:"Photos Only"},{value:m.a.MediaType.VIDEOS,label:"Videos Only"}]})})},{id:"link-behavior",component:Object(F.a)({label:"Open posts in",option:"linkBehavior",render:(e,t,a)=>n.a.createElement(p.a,{id:e.field.id,value:t,onChange:e=>a(e.value),options:[{value:m.a.LinkBehavior.NOTHING,label:"- Do not open -"},{value:m.a.LinkBehavior.SELF,label:"Same tab"},{value:m.a.LinkBehavior.NEW_TAB,label:"New tab"},{value:m.a.LinkBehavior.LIGHTBOX,label:"Popup box"}]})})}]},{id:"appearance",label:"Appearance",fields:[{id:"feed-width",component:Object(F.a)({label:"Feed width",option:"feedWidth",render:(e,t,a)=>n.a.createElement(b.a,{id:e.field.id,value:t,onChange:a,min:0,unit:"px",emptyMin:!0,placeholder:"Auto"})})},{id:"feed-height",component:Object(F.a)({label:"Feed height",option:"feedHeight",render:(e,t,a)=>n.a.createElement(b.a,{id:e.field.id,value:t,onChange:a,min:0,unit:"px",emptyMin:!0,placeholder:"Auto"})})},{id:"feed-padding",component:Object(F.a)({label:"Outside padding",option:"feedPadding",render:(e,t,a)=>n.a.createElement(b.a,{id:e.field.id,value:t,onChange:a,min:0,unit:"px",placeholder:"No padding"})})},{id:"image-padding",component:Object(F.a)({label:"Image padding",option:"imgPadding",render:(e,t,a)=>n.a.createElement(b.a,{id:e.field.id,value:t,onChange:a,min:0,unit:"px",placeholder:"No padding"})})},{id:"text-size",component:Object(F.a)({label:"Text size",option:"textSize",render:(e,t,a)=>n.a.createElement(b.a,{id:e.field.id,value:t,onChange:a,min:0,unit:"px",placeholder:"Theme default"}),tooltip:()=>n.a.createElement("span",null,"If left empty, the text size will be controlled by your theme."," ",'This option will be ignored for the header if the "Text size" option in the'," ",'"Header" section is not empty.')})},{id:"bg-color",component:Object(F.a)({label:"Background color",option:"bgColor",render:(e,t,a)=>n.a.createElement(g.a,{id:e.field.id,value:t,onChange:e=>a(e.rgb)})})},{id:"hover-info",component:Object(F.a)({label:"Show on hover",option:"hoverInfo",render:(e,t,a)=>n.a.createElement(E,{id:e.field.id,value:t,onChange:a,showProOptions:e.showFakeOptions,options:e.field.data.options}),tooltip:()=>n.a.createElement("span",null,"Usernames are not available for hashtag posts, due to a restriction by Instagram.")}),data:{options:[{value:m.a.HoverInfo.LIKES_COMMENTS,label:"Likes & comments icons"},{value:m.a.HoverInfo.INSTA_LINK,label:"Instagram icon/link"},{value:m.a.HoverInfo.CAPTION,label:"Caption",isFakePro:!0},{value:m.a.HoverInfo.USERNAME,label:"Username",isFakePro:!0},{value:m.a.HoverInfo.DATE,label:"Date",isFakePro:!0}]}},{id:"hover-text-color",isFakePro:!0,component:Object(F.a)({label:"Hover text color",option:"textColorHover",render:e=>n.a.createElement(g.a,{id:e.field.id})})},{id:"hover-bg-color",isFakePro:!0,component:Object(F.a)({label:"Hover background color",option:"bgColorHover",render:e=>n.a.createElement(g.a,{id:e.field.id,value:{r:0,g:0,b:0,a:.5}})})}]},{id:"header",label:"Header",fields:[{id:"header-hashtag-msg",component:Object(l.a)(e=>M(e)&&n.a.createElement(_.a,{type:_.b.INFO,showIcon:!0,shake:!0},"The header is disabled because you are currently only showing posts from"," ","hashtags, so there are no accounts to show in the header."))},{id:"show-header",component:Object(F.a)({label:"Show header",option:"showHeader",disabled:e=>M(e),render:(e,t,a)=>n.a.createElement(w.a,{id:e.field.id,value:t,onChange:a})})},{id:"header-style",isFakePro:!0,component:Object(F.a)({label:"Header style",option:"headerStyle",render:e=>n.a.createElement(p.a,{id:e.field.id,value:m.a.HeaderStyle.NORMAL,options:[{value:m.a.HeaderStyle.NORMAL,label:"Normal"},{value:m.a.HeaderStyle.CENTERED,label:"Centered"}]})})},{id:"header-account",component:Object(F.a)({label:"Account to show",option:"headerAccount",deps:["showHeader"],disabled:e=>x(e),render:(e,t,a)=>n.a.createElement(p.a,{id:e.field.id,value:e.computed.account?e.computed.account.id:"",onChange:e=>a(e.value),options:e.computed.allAccounts.map(e=>({value:e,label:k.b.getById(e).username}))})})},{id:"header-info",component:Object(F.a)({label:"Show",option:"headerInfo",deps:["showHeader"],disabled:e=>x(e),render:(e,t,a)=>n.a.createElement(E,{id:e.field.id,value:t,onChange:a,options:e.field.data.options}),tooltip:()=>n.a.createElement("span",null,"Follower count is not available for Personal accounts due to restrictions set by Instagram.")}),data:{options:[{value:m.a.HeaderInfo.PROFILE_PIC,label:"Profile photo"},{value:m.a.HeaderInfo.BIO,label:"Profile bio text"},{value:N.MEDIA_COUNT,label:"Post count",isFakePro:!0},{value:N.FOLLOWERS,label:"Follower count",isFakePro:!0}]}},{id:"header-photo-size",component:Object(F.a)({label:"Profile photo size",option:"headerPhotoSize",deps:["showHeader","headerInfo"],disabled:e=>I(N.PROFILE_PIC,e),render:(e,t,a)=>n.a.createElement(b.a,{id:e.field.id,value:null!=t?t:"",onChange:a,min:0,unit:"px",placeholder:"Default"})})},{id:"custom-profile-pic",component:Object(F.a)({label:"Custom profile pic",option:"customProfilePic",deps:["showHeader","headerInfo"],disabled:e=>I(N.PROFILE_PIC,e),render:(e,t,a)=>n.a.createElement(C,{id:e.field.id,value:t,onChange:a,title:"Select custom profile photo",buttonSet:"Choose custom photo",buttonChange:"Change custom photo",mediaType:"image"}),tooltip:()=>n.a.createElement("span",null,"Add a custom profile photo just for this feed. It will override the original"," ","profile photo from Instagram and any custom profile photo added in Spotlight.")})},{id:"custom-bio-text",component:Object(F.a)({label:"Custom bio text",option:"customBioText",deps:["headerInfo","showHeader"],disabled:e=>I(N.BIO,e),render:(e,t,a)=>n.a.createElement(S,{id:e.field.id,value:t,onChange:a}),tooltip:()=>n.a.createElement("span",null,"Add a custom bio text just for this feed. It will override the original custom bio"," ","text from Instagram and any custom bio text added in Spotlight.")})},{id:"header-text-size",component:Object(F.a)({label:"Header text size",option:"headerTextSize",deps:["showHeader"],disabled:e=>x(e),render:(e,t,a)=>n.a.createElement(b.a,{id:e.field.id,value:null!=t?t:"",onChange:a,min:0,unit:"px",placeholder:"Default"}),tooltip:()=>n.a.createElement("span",null,'If left empty, the "Text size" option in the "Appearance" section will control the'," ","header's text size.")})},{id:"header-text-color",component:Object(F.a)({label:"Header text color",option:"headerTextColor",deps:["showHeader"],disabled:e=>x(e),render:(e,t,a)=>n.a.createElement(g.a,{id:e.field.id,value:t,onChange:e=>a(e.rgb)})})},{id:"header-bg-color",component:Object(F.a)({label:"Header background color",option:"headerBgColor",deps:["showHeader"],disabled:e=>x(e),render:(e,t,a)=>n.a.createElement(g.a,{id:e.field.id,value:t,onChange:e=>a(e.rgb)})})},{id:"header-padding",component:Object(F.a)({label:"Header padding",option:"headerPadding",deps:["showHeader"],disabled:e=>x(e),render:(e,t,a)=>n.a.createElement(b.a,{id:e.field.id,value:t,onChange:a,min:0,unit:"px",placeholder:"No padding"})})},{id:"include-stories",isFakePro:!0,component:Object(F.a)({label:"Include stories",option:"includeStories",render:e=>n.a.createElement(w.a,{id:e.field.id,value:!0}),tooltip:()=>n.a.createElement("span",null,"Re-shared stories are not available due to a restriction by Instagram.")})},{id:"stories-interval",isFakePro:!0,component:Object(F.a)({label:"Stories interval time",option:"storiesInterval",render:e=>n.a.createElement(b.a,{id:e.field.id,value:5,min:1,unit:"sec"})})}]},{id:"lightbox",label:"Popup box",isFakePro:!0,fields:[{id:"show-lightbox-sidebar",component:Object(F.a)({label:"Show sidebar",option:"lightboxShowSidebar",render:e=>n.a.createElement(w.a,{id:e.field.id,value:!1})})},{id:"num-lightbox-comments",label:"Number of comments",component:Object(F.a)({label:"Number of comments",option:"numLightboxComments",render:e=>n.a.createElement(b.a,{id:e.field.id,value:20,min:0,placeholder:"No comments"}),tooltip:()=>n.a.createElement("span",null,"Comments are only available for posts from a ",n.a.createElement("strong",null,"Business")," account")})}]},{id:"captions",label:"Captions",isFakePro:!0,fields:[{id:"show-captions",component:Object(F.a)({label:"Show captions",option:"showCaptions",render:e=>n.a.createElement(w.a,{id:e.field.id,value:!0})})},{id:"caption-max-length",component:Object(F.a)({label:"Caption max length",option:"captionMaxLength",render:e=>n.a.createElement(b.a,{id:e.field.id,value:"",min:0,unit:"words",placeholder:"No limit"})})},{id:"caption-size",component:Object(F.a)({label:"Caption text size",option:"captionSize",render:e=>n.a.createElement(b.a,{id:e.field.id,value:"",min:0,unit:"px",placeholder:"Theme default"})})},{id:"caption-color",component:Object(F.a)({label:"Caption text color",option:"captionColor",render:e=>n.a.createElement(g.a,{id:e.field.id,value:{r:0,g:0,b:0,a:0}})})},{id:"caption-remove-dots",component:Object(F.a)({label:"Remove dot lines",option:"captionRemoveDots",render:e=>n.a.createElement(w.a,{id:e.field.id,value:!1}),tooltip:()=>n.a.createElement("span",null,'Enable this option to remove lines in captions that are only "dots", such as'," ",n.a.createElement("code",null,"."),", ",n.a.createElement("code",null,"•"),", ",n.a.createElement("code",null,"*"),", etc.")})}]},{id:"likes-comments",label:"Likes & Comments",isFakePro:!0,fields:[{id:"show-likes",component:Object(F.a)({label:"Show likes icon",option:"showLikes",render:e=>n.a.createElement(w.a,{id:e.field.id,value:!1})})},{id:"likes-icon-color",component:Object(F.a)({label:"Likes icon color",option:"likesIconColor",render:e=>n.a.createElement(g.a,{id:e.field.id,value:{r:0,g:0,b:0,a:1}})})},{id:"show-comments",component:Object(F.a)({label:"Show comments icon",option:"showComments",render:e=>n.a.createElement(w.a,{id:e.field.id,value:!1})})},{id:"comments-icon-color",component:Object(F.a)({label:"Comments icon color",option:"commentsIconColor",render:e=>n.a.createElement(g.a,{id:e.field.id,value:{r:0,g:0,b:0,a:1}})})},{id:"lcIconSize",component:Object(F.a)({label:"Icon size",option:"lcIconSize",render:e=>n.a.createElement(b.a,{id:e.field.id,value:"",min:0,unit:"px"})})}]},{id:"follow-btn",label:"Follow button",fields:[{id:"follow-btn-hashtag-msg",component:Object(l.a)(e=>M(e)&&n.a.createElement(_.a,{type:_.b.INFO,showIcon:!0,shake:!0},"The follow button is disabled because you are currently only showing posts from"," ","hashtags, so there are no accounts to follow."))},{id:"show-follow-btn",component:Object(F.a)({label:"Show 'Follow' button",option:"showFollowBtn",disabled:e=>M(e),render:(e,t,a)=>n.a.createElement(w.a,{id:e.field.id,value:t,onChange:a})})},{id:"follow-btn-location",component:Object(F.a)({label:"Location",option:"followBtnLocation",deps:["showFollowBtn"],disabled:e=>j(e),render:(e,t,a)=>n.a.createElement(p.a,{id:e.field.id,value:t,onChange:e=>a(e.value),options:[{value:T.HEADER,label:"Header"},{value:T.BOTTOM,label:"Bottom"},{value:T.BOTH,label:"Both"}]})})},{id:"follow-btn-text",component:Object(F.a)({label:"'Follow' text",option:"followBtnText",deps:["showFollowBtn"],disabled:e=>j(e),render:(e,t,a)=>n.a.createElement(P.a,{id:e.field.id,value:t,onChange:a})})},{id:"follow-btn-text-color",component:Object(F.a)({label:"Text color",option:"followBtnTextColor",deps:["showFollowBtn"],disabled:e=>j(e),render:(e,t,a)=>n.a.createElement(g.a,{id:e.field.id,value:t,onChange:e=>a(e.rgb)})})},{id:"follow-btn-bg-color",component:Object(F.a)({label:"Background color",option:"followBtnBgColor",deps:["showFollowBtn"],disabled:e=>j(e),render:(e,t,a)=>n.a.createElement(g.a,{id:e.field.id,value:t,onChange:e=>a(e.rgb)})})}]},{id:"load-more-btn",label:"Load more button",fields:[{id:"show-load-more-btn",component:Object(F.a)({label:"Show 'Load more' button",option:"showLoadMoreBtn",render:(e,t,a)=>n.a.createElement(w.a,{id:e.field.id,value:t,onChange:a})})},{id:"load-more-btn-text",component:Object(F.a)({label:"'Load more' text",option:"loadMoreBtnText",deps:["showLoadMoreBtn"],disabled:e=>L(e),render:(e,t,a)=>n.a.createElement(P.a,{id:e.field.id,value:t,onChange:a})})},{id:"load-more-btn-text-color",component:Object(F.a)({label:"Text color",option:"loadMoreBtnTextColor",deps:["showLoadMoreBtn"],disabled:e=>L(e),render:(e,t,a)=>n.a.createElement(g.a,{id:e.field.id,value:t,onChange:e=>a(e.rgb)})})},{id:"load-more-btn-bg-color",component:Object(F.a)({label:"Background color",option:"loadMoreBtnBgColor",deps:["showLoadMoreBtn"],disabled:e=>L(e),render:(e,t,a)=>n.a.createElement(g.a,{id:e.field.id,value:t,onChange:e=>a(e.rgb)})})}]}]},158:function(e,t,a){e.exports={root:"MediaGridPicker__root",loading:"MediaGridPicker__loading layout__fill-parent",grid:"MediaGridPicker__grid","grid-disabled":"MediaGridPicker__grid-disabled MediaGridPicker__grid",gridDisabled:"MediaGridPicker__grid-disabled MediaGridPicker__grid",item:"MediaGridPicker__item"}},174:function(e,t,a){e.exports={root:"LayoutSelector__root","coming-soon":"LayoutSelector__coming-soon",comingSoon:"LayoutSelector__coming-soon",layout:"LayoutSelector__layout button__toggle-button","layout-selected":"LayoutSelector__layout-selected LayoutSelector__layout button__toggle-button button__toggle-button-on button__toggle-button",layoutSelected:"LayoutSelector__layout-selected LayoutSelector__layout button__toggle-button button__toggle-button-on button__toggle-button"}},176:function(e,t,a){e.exports={"moderate-sidebar":"ModerateSidebar__moderate-sidebar",moderateSidebar:"ModerateSidebar__moderate-sidebar",heading:"ModerateSidebar__heading",mode:"ModerateSidebar__mode","pro-pill":"ModerateSidebar__pro-pill",proPill:"ModerateSidebar__pro-pill",reset:"ModerateSidebar__reset"}},177:function(e,t,a){e.exports={bottom:"PromoteSidebar__bottom",top:"PromoteSidebar__top",row:"PromoteSidebar__row","remove-promo":"PromoteSidebar__remove-promo",removePromo:"PromoteSidebar__remove-promo","disabled-overlay":"PromoteSidebar__disabled-overlay",disabledOverlay:"PromoteSidebar__disabled-overlay"}},178:function(e,t,a){e.exports={item:"PromoteViewport__item",selected:"PromoteViewport__selected PromoteViewport__item",thumbnail:"PromoteViewport__thumbnail",unselected:"PromoteViewport__unselected PromoteViewport__item","promo-type-icon":"PromoteViewport__promo-type-icon",promoTypeIcon:"PromoteViewport__promo-type-icon"}},179:function(e,t,a){e.exports={"moderate-viewport":"ModerateViewport__moderate-viewport",moderateViewport:"ModerateViewport__moderate-viewport","moderate-blacklist":"ModerateViewport__moderate-blacklist ModerateViewport__moderate-viewport",moderateBlacklist:"ModerateViewport__moderate-blacklist ModerateViewport__moderate-viewport","moderate-whitelist":"ModerateViewport__moderate-whitelist ModerateViewport__moderate-viewport",moderateWhitelist:"ModerateViewport__moderate-whitelist ModerateViewport__moderate-viewport",loading:"ModerateViewport__loading layout__fill-parent",grid:"ModerateViewport__grid","grid-disabled":"ModerateViewport__grid-disabled ModerateViewport__grid",gridDisabled:"ModerateViewport__grid-disabled ModerateViewport__grid",item:"ModerateViewport__item","item-allowed":"ModerateViewport__item-allowed ModerateViewport__item",itemAllowed:"ModerateViewport__item-allowed ModerateViewport__item","item-thumbnail":"ModerateViewport__item-thumbnail",itemThumbnail:"ModerateViewport__item-thumbnail","item-removed":"ModerateViewport__item-removed ModerateViewport__item",itemRemoved:"ModerateViewport__item-removed ModerateViewport__item","item-focused":"ModerateViewport__item-focused",itemFocused:"ModerateViewport__item-focused"}},197:function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));var o=a(0),n=a.n(o),l=a(104),r=a.n(l),i=a(4),c=a(8),s=a(16),d=a(7);const u=Object(d.b)((function({accounts:e,value:t,onChange:a}){t=null!=t?t:[],e=null!=e?e:i.b.list;const o=t.filter(t=>e.some(e=>e.id===t)),l=new Set(o);return n.a.createElement("div",{className:r.a.root},e.map((e,t)=>n.a.createElement(m,{key:t,account:e,selected:l.has(e.id),onChange:t=>{return o=e.id,t?l.add(o):l.delete(o),void a(Array.from(l));var o}})))}));function m({account:e,selected:t,onChange:a}){const o=`url("${i.b.getProfilePicUrl(e)}")`,l=()=>{a(!t)},d=Object(s.f)(l);return n.a.createElement("div",{className:r.a.row},n.a.createElement("div",{className:t?r.a.accountSelected:r.a.account,onClick:l,onKeyPress:d,role:"button",tabIndex:0},n.a.createElement("div",{className:r.a.profilePic,style:{backgroundImage:o}}),n.a.createElement("div",{className:r.a.infoColumn},n.a.createElement("div",{className:r.a.username},e.username),n.a.createElement("div",{className:r.a.accountType},e.type)),t&&n.a.createElement(c.a,{icon:"yes-alt",className:r.a.tickIcon})))}},198:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var o=a(0),n=a.n(o),l=a(197),r=a(25),i=a(4);function c(e){const t=i.b.getBusinessAccounts();return t.length>0?n.a.createElement(l.a,Object.assign({accounts:t},e)):n.a.createElement(r.a,{type:r.b.WARNING},"Connect a business account to use this feature.")}},199:function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));var o,n=a(0),l=a.n(n),r=a(53),i=a(6),c=a(135),s=a(25),d=(a(397),a(5)),u=a(8),m=a(353),p=a(3),b=a(9);function h({value:e,onChange:t}){const a=(e=null!=e?e:[]).slice(),n=a.map(e=>({id:e.tag,tag:e.tag,sort:e.sort})),[r,i]=l.a.useState(""),[c,s]=l.a.useState(""),[d,u]=l.a.useState(null);return l.a.createElement("div",{className:"hashtag-selector"},l.a.createElement(m.a,{className:"hashtag-selector__list",list:n,setList:e=>{const o=e.map(e=>({tag:e.tag,sort:e.sort}));t&&!Object(p.d)(o,a,(e,t)=>e.tag===t.tag&&e.sort===t.sort)&&t(o)},handle:".hashtag-selector__drag-handle",animation:200,delay:1e3,fallbackTolerance:5,delayOnTouchOnly:!0},a.map((e,o)=>l.a.createElement(g,{key:o,disabled:null!==d&&d!==o,hashtag:e,onEdit:e=>((e,o)=>{a[e]=o,t&&t(a)})(o,e),onDelete:()=>(e=>{a.splice(e,1),t&&t(a)})(o),onStartEdit:()=>u(o),onStopEdit:()=>u(null)}))),l.a.createElement(v,{type:o.ADD,disabled:null!==d,hashtag:{tag:r,sort:c},onDone:e=>{a.push(e),t&&t(a),i(""),s("")}}))}function g({hashtag:e,disabled:t,onEdit:a,onDelete:n,onStartEdit:r,onStopEdit:i}){const[c,s]=l.a.useState(!1),d=()=>{s(!1),i&&i()};return c?l.a.createElement(v,{type:o.EDIT,disabled:t,hashtag:e,onDone:e=>{a&&a(e),d()},onCancel:d}):l.a.createElement(f,{hashtag:e,disabled:t,onEdit:()=>{s(!0),r&&r()},onDelete:n})}function f({hashtag:e,disabled:t,onEdit:a,onDelete:o}){const n=Object(b.a)("hashtag-selector__row",{"--static":!0,"--disabled":t});return l.a.createElement("div",{className:n},l.a.createElement("div",{className:"hashtag-selector__drag-handle"},l.a.createElement(u.a,{icon:"menu"})),l.a.createElement("div",{className:"hashtag-selector__tag"},i.a.HashtagSorting.get(e.sort)," posts with ",l.a.createElement("strong",null,"#",e.tag)),l.a.createElement("div",{className:"hashtag-selector__buttons"},l.a.createElement(d.a,{className:"hashtag-selector__edit-btn",type:d.c.PILL,onClick:a,tooltip:"Edit hashtag"},l.a.createElement(u.a,{icon:"edit"})),l.a.createElement(d.a,{className:"hashtag-selector__delete-btn",type:d.c.DANGER_PILL,onClick:o,tooltip:"Remove hashtag"},l.a.createElement(u.a,{icon:"trash"}))))}function v({type:e,hashtag:t,disabled:a,onChange:m,onDone:p,onCancel:h,focus:g}){const f=e===o.ADD,[v,E]=l.a.useState({tag:"",sort:"recent"});Object(n.useEffect)(()=>{var e;E({tag:null!==(e=t.tag)&&void 0!==e?e:"",sort:t.sort?t.sort:"recent"})},[t]);const[_,w]=l.a.useState(0),[k,y]=l.a.useState(!0);Object(n.useEffect)(()=>{if(y(!1),_>0){const e=setTimeout(()=>y(!0),10),t=setTimeout(()=>y(!1),310);return()=>{clearTimeout(e),clearTimeout(t)}}},[_]);const O=()=>{!_&&p&&p(v)},C=Object(b.a)("hashtag-selector__row",{"--disabled":a});return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:C},l.a.createElement("input",{className:"hashtag-selector__tag",type:"text",value:"#"+v.tag,onChange:e=>{const t=e.target.value.slice(1),a={tag:Object(c.b)(t),sort:v.sort};w(t!==a.tag?Date.now():0),E(a),m&&m(a)},onKeyDown:e=>{switch(e.key){case"Enter":O();break;case"Escape":h&&h()}},autoFocus:g}),l.a.createElement(r.a,{className:"hashtag-selector__sort",placeholder:"Sort by",value:v.sort,onChange:e=>{E({tag:v.tag,sort:e.value}),m&&m({tag:v.tag,sort:e.value})},isSearchable:!1,options:Array.from(i.a.HashtagSorting.entries()).map(([e,t])=>({value:e,label:t}))}),l.a.createElement("div",{className:"hashtag-selector__buttons"},f?l.a.createElement(d.a,{type:d.c.PRIMARY,className:"hashtag-selector__add-btn",tooltip:"Add new hashtag",onClick:O,disabled:0===v.tag.length},"Add"):l.a.createElement(d.a,{type:f?d.c.PRIMARY:d.c.PILL,className:"hashtag-selector__done-btn",tooltip:"Done",disabled:0===v.tag.length,onClick:O},l.a.createElement(u.a,{icon:"yes"})),!f&&l.a.createElement(d.a,{type:d.c.DANGER_PILL,className:"hashtag-selector__cancel-btn",onClick:h,tooltip:"Cancel changes"},l.a.createElement(u.a,{icon:"no"})))),_?l.a.createElement(s.a,{type:s.b.ERROR,shake:k,showIcon:!0,isDismissible:!0,onDismiss:()=>w(0)},"Hashtags may only contain letters, numbers and underscores"):null)}!function(e){e[e.ADD=0]="ADD",e[e.EDIT=1]="EDIT"}(o||(o={}))},200:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var o=a(0),n=a.n(o),l=a(152);function r(e){return n.a.createElement(l.a,Object.assign({groups:e.tab.groups},e))}},201:function(e,t,a){"use strict";a.d(t,"a",(function(){return m}));var o=a(0),n=a.n(o),l=a(176),r=a.n(l),i=a(6),c=a(75),s=a(333),d=a(25),u=a(86);const m=n.a.memo((function({value:e,onChange:t,tab:a}){const[o,l]=n.a.useState(!1);function m(){l(!1)}const p=e.moderationMode===i.a.ModerationMode.WHITELIST;return n.a.createElement("div",{className:r.a.moderateSidebar},n.a.createElement("div",null,n.a.createElement("p",null,"You can choose to hide specific posts or to only show posts that you choose."),n.a.createElement("p",null,"Choose the type of moderation that you wish to apply, then simply click on the posts that you "," ","want to show or hide. Posts that appear in grey will not be shown in the feed."),n.a.createElement("hr",null),n.a.createElement("div",{className:r.a.mode},a.isFakePro&&n.a.createElement("div",{className:r.a.proPill},n.a.createElement(c.a,null)),n.a.createElement(s.a,{name:"manualFilterMode",value:e.moderationMode,onChange:function(o){a.isFakePro||t({moderationMode:o,moderation:e.moderation})},disabled:a.isFakePro,options:[{value:i.a.ModerationMode.BLACKLIST,label:"Hide the selected posts"},{value:i.a.ModerationMode.WHITELIST,label:"Only show the selected posts"}]})),(e.moderation.length>0||p)&&n.a.createElement("a",{className:r.a.reset,onClick:function(){l(!0)}},"Reset moderation")),!a.isFakePro&&n.a.createElement("div",null,n.a.createElement("hr",null),n.a.createElement(d.a,{type:d.b.PRO_TIP,showIcon:!0},n.a.createElement("span",null,n.a.createElement("strong",null,"Pro tip"),":"," ","You can navigate the posts using arrow keys and select them by pressing Enter."))),n.a.createElement(u.a,{isOpen:o,title:"Are you sure?",buttons:["Yes","No"],onAccept:function(){a.isFakePro||(m(),t({moderationMode:i.a.ModerationMode.BLACKLIST,moderation:[]}))},onCancel:m},n.a.createElement("p",null,"Are you sure you want to reset your moderation settings? This cannot be undone.")))}),(e,t)=>e.value.moderationMode===t.value.moderationMode&&e.value.moderation.length===t.value.moderation.length)},202:function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));var o=a(0),n=a.n(o),l=a(127),r=a.n(l),i=a(112),c=a(148),s=a(5),d=a(8);function u(e){var{children:t}=e,a=function(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(a[o[n]]=e[o[n]])}return a}(e,["children"]);const[o,l]=n.a.useState(!0),u=n.a.useCallback(()=>l(e=>!e),[]);return void 0!==t||a.tab.sidebar&&(!a.tab.showSidebar||a.tab.showSidebar())?n.a.createElement(c.a,{breakpoints:i.a.Sizes.ALL},e=>{const l=e<=i.a.Sizes.MEDIUM,c=e<=i.a.Sizes.MEDIUM,m=o||!l?r.a.sidebarOpen:r.a.sidebarClosed;return n.a.createElement("div",{className:m},l&&n.a.createElement("div",{className:r.a.toggleButtonContainer},n.a.createElement(s.a,{className:r.a.toggleButton,type:s.c.TOGGLE,active:o,onClick:u},n.a.createElement(d.a,{icon:"menu-alt"}))),n.a.createElement("div",{className:r.a.drawer},c&&n.a.createElement("div",{className:r.a.header},a.tab.label),t||n.a.createElement("div",{className:r.a.content},n.a.createElement(a.tab.sidebar,Object.assign({tab:a.tab},a)))))}):null}},203:function(e,t,a){"use strict";var o=a(0),n=a.n(o),l=a(158),r=a.n(l),i=a(7),c=a(335),s=a(16);t.a=Object(i.b)((function({feed:e,store:t,selected:a,disabled:l,autoFocusFirst:i,onClickMedia:u,onSelectMedia:m,children:p}){l=null!=l&&l,i=null!=i&&i;const[b,h]=n.a.useState([]),[g,f]=n.a.useState(!0),[v,E,_]=Object(s.e)(a),w=n.a.useRef(),k=n.a.useRef(),y=n.a.useRef();Object(o.useEffect)(()=>{_(a)},[a]),Object(s.i)(a=>{t.fetchMedia(e).then(e=>{a().then(()=>{h(e),f(!1),e.length>0&&i&&m&&m(e[0],0)})})},[]);const O=e=>{null===E()||e.target!==w.current&&e.target!==k.current||C(null)};function C(e){l||(S(e),u&&u(b[e],e))}function S(e){e===E()||l||(m&&m(b[e],e),_(e))}Object(o.useLayoutEffect)(()=>{if(w.current)return w.current.addEventListener("click",O),()=>w.current.removeEventListener("click",O)},[w.current]);const P=l?r.a.gridDisabled:r.a.grid;return n.a.createElement("div",{ref:w,className:r.a.root},n.a.createElement("div",{ref:k,className:P,style:{gridGap:15},tabIndex:0,onKeyDown:function(e){if(l)return;const t=E(),a=function(){const e=k.current.getBoundingClientRect(),t=y.current.getBoundingClientRect(),a=e.width,o=t.width;return Math.floor((a+15)/(o+15))}(),o=Math.ceil(b.length/a);switch(e.key){case" ":case"Enter":C(t);break;case"ArrowLeft":S(Math.max(t-1,0));break;case"ArrowRight":S(Math.min(t+1,b.length-1));break;case"ArrowUp":{const e=Math.max(0,t-a),n=Math.floor(t/a),l=Math.floor(e/a);o>1&&l!==n&&S(e);break}case"ArrowDown":{const e=Math.min(b.length-1,t+a),n=Math.floor(t/a),l=Math.floor(e/a);o>1&&l!==n&&S(e);break}default:return}e.preventDefault(),e.stopPropagation()}},b.map((e,t)=>n.a.createElement(d,{key:e.id,ref:0===t?y:null,focused:!l&&v===t,onClick:()=>C(t),onFocus:()=>S(t)},p(e,t)))),g&&n.a.createElement("div",{className:r.a.loading},n.a.createElement(c.a,{size:60})))}));const d=n.a.forwardRef(({focused:e,onClick:t,onFocus:a,children:l},i)=>(i||(i=n.a.useRef()),Object(o.useEffect)(()=>{e&&i.current.focus()},[e]),n.a.createElement("div",{ref:i,className:r.a.item,onClick:t,onFocus:a,tabIndex:0},l)))},204:function(e,t,a){"use strict";a.d(t,"a",(function(){return b}));var o=a(0),n=a.n(o),l=a(179),r=a.n(l),i=a(6),c=a(67),s=a(68),d=a(3),u=a(203),m=a(9),p=i.a.ModerationMode;const b=n.a.memo((function({value:e,feed:t,tab:a,onChange:o}){const[l,r]=n.a.useState(0),i=new Set(e.moderation);return n.a.createElement(u.a,{feed:t,selected:l,onSelectMedia:(e,t)=>r(t),onClickMedia:function(t){if(a.isFakePro||!t)return;const n=new Set(e.moderation);n.has(t.id)?n.delete(t.id):n.add(t.id),o({moderation:Array.from(n),moderationMode:e.moderationMode})},autoFocusFirst:!0,disabled:a.isFakePro,store:s.b},(t,a)=>n.a.createElement(h,{media:t,mode:e.moderationMode,focused:a===l,selected:i.has(t.id)}))}),(function(e,t){return e.value.moderationMode===t.value.moderationMode&&e.value.moderation.length===t.value.moderation.length&&Object(d.d)(e.value.moderation,t.value.moderation)})),h=n.a.forwardRef(({media:e,selected:t,focused:a,mode:l},i)=>{i||(i=n.a.useRef()),Object(o.useEffect)(()=>{a&&i.current.focus()},[a]);const s=l===p.BLACKLIST,d=Object(m.b)(t!==s?r.a.itemAllowed:r.a.itemRemoved,a?r.a.itemFocused:null);return n.a.createElement("div",{ref:i,className:d},n.a.createElement(c.a,{media:e,className:r.a.itemThumbnail}))})},208:function(e,t,a){"use strict";a.d(t,"a",(function(){return G}));var o=a(0),n=a.n(o),l=a(202),r=a(212),i=a(177),c=a.n(i),s=a(53),d=a(42),u=a(5),m=a(12),p=(a(14),a(6)),b=a(45),h=a(131),g=a(19),f=a(95),v=a(56),E=a(153),_=a(3),w=p.a.LinkBehavior;const k=[],y={linkType:"",postId:0,postTitle:"",postUrl:"",url:"",linkText:"",newTab:!1};function O({options:e,onChange:t,value:a}){e=null!=e?e:y,e=Object.assign(Object.assign({},y),e),0===k.length&&(k.push({value:"",label:"- Do not link -"},{value:"url",label:"Custom URL"}),m.a.config.postTypes.forEach(e=>{"attachment"!==e.name&&k.push({value:e.name,label:e.labels.singular_name})}));const l=n.a.useRef(),r=n.a.useRef(!1),i=n.a.useRef(),[c,s]=n.a.useState([]),[d,u]=n.a.useState(!1);Object(o.useEffect)(()=>(r.current=!1,e.linkType&&"url"!==e.linkType&&(u(!0),_("").then(e=>{r.current||s(e)}).finally(()=>{r.current||u(!1)})),()=>r.current=!0),[e.linkType]);const p=n.a.useCallback(a=>{t({linkType:a,postId:0,postTitle:"",postUrl:"",url:e.url,newTab:e.newTab,linkText:e.linkText})},[e,t]),g=n.a.useCallback(a=>{if(null===a)t(Object.assign(Object.assign({},e),{postId:0,postTitle:"",postUrl:""}));else{const o=i.current.find(e=>e.id==a.value);t(Object.assign(Object.assign({},e),{postId:a.value,postTitle:o.title,postUrl:o.permalink}))}},[e,t]),f=n.a.useCallback(a=>{t(Object.assign(Object.assign({},e),{url:a}))},[e,t]),v=n.a.useCallback(a=>{t(Object.assign(Object.assign({},e),{newTab:a}))},[e,t]),E=n.a.useCallback(a=>{t(Object.assign(Object.assign({},e),{linkText:a}))},[e,t]),_=n.a.useCallback(t=>(clearTimeout(l.current),new Promise(a=>{l.current=setTimeout(()=>{m.a.restApi.searchPosts(t,e.linkType).then(e=>{i.current=e.data,a(e.data.map(e=>({value:e.id,label:e.title})))}).catch(e=>{})},1e3)})),[e.linkType]),O=m.a.config.postTypes.find(t=>t.name===e.linkType),N=e.linkType&&a.lightboxShowSidebar&&(a.linkBehavior.desktop===w.LIGHTBOX||a.linkBehavior.tablet===w.LIGHTBOX||a.linkBehavior.phone===w.LIGHTBOX);return n.a.createElement(b.a,{label:"Link options",fitted:!0,isOpen:!0,showIcon:!1},n.a.createElement(C,{value:e.linkType,onChange:p}),"url"===e.linkType&&n.a.createElement(S,{value:e.url,onChange:f}),e.linkType&&"url"!==e.linkType&&n.a.createElement(P,{postType:O,postId:e.postId,postTitle:e.postTitle,onChange:g,loadOptions:_,isLoading:d,defaultPosts:c}),e.linkType&&n.a.createElement(F,{value:e.newTab,onChange:v}),N&&n.a.createElement(T,{value:e.linkText,onChange:E,placeholder:h.a.getDefaultLinkText(e)}))}const C=n.a.memo((function({value:e,onChange:t}){return n.a.createElement(f.a,{id:"promo-link-to",label:"Link to"},n.a.createElement(s.a,{id:"promo-link-to",value:e||"",onChange:e=>t(e.value),options:k}))})),S=n.a.memo((function({value:e,onChange:t}){return n.a.createElement(f.a,{id:"link-promo-url",label:"URL",wide:!0},n.a.createElement(E.a,{id:"link-promo-url",value:e,onChange:t}))})),P=n.a.memo((function({postType:e,postId:t,postTitle:a,onChange:o,defaultPosts:l,isLoading:r,loadOptions:i}){const c=e?"Search for a "+e.labels.singular_name:"Search";return n.a.createElement(f.a,{id:"link-promo-url",label:c,wide:!0},n.a.createElement(s.a,{async:!0,cacheOptions:!0,key:Object(_.r)(),id:"sli-promo-search-post",placeholder:"Select or start typing...",value:t||0,defaultValue:0,defaultInputValue:t?a:"",onChange:o,defaultOptions:l,loadOptions:i,noOptionsMessage:({inputValue:e})=>e.length?`No posts were found for "${e}"`:"Type to search for posts",loadingMessage:()=>"Searching...",isLoading:r,isSearchable:!0,isClearable:!0}))})),F=n.a.memo((function({value:e,onChange:t}){return n.a.createElement(f.a,{id:"promo-link-new-tab",label:"Open in a new tab"},n.a.createElement(v.a,{id:"promo-link-new-tab",value:e,onChange:t}))})),T=n.a.memo((function({value:e,onChange:t,placeholder:a}){return n.a.createElement(f.a,{id:"promo-link-text",label:"Popup box link text"},n.a.createElement(E.a,{id:"promo-link-text",value:e,onChange:t,placeholder:a}),n.a.createElement("p",null,n.a.createElement("span",null,"The text to use for the link in the popup box:"),n.a.createElement("br",null),n.a.createElement("img",{src:g.a.image("popup-link-text.png"),alt:""})))}));var N=a(25),x=new Map([["link",{fields:O,tutorial:function({}){return n.a.createElement(b.a,{label:"Link promotion",fitted:!0,isOpen:!0,showIcon:!1},n.a.createElement("p",{style:{fontWeight:"bold"}},"How it works:"),n.a.createElement("ol",{style:{marginTop:0}},n.a.createElement("li",null,"Select a post from the preview on the left."),n.a.createElement("li",null,"Choose what the post should link to.")),n.a.createElement("p",null,"That’s it!"))}}],["-more-",{fields:function({}){return n.a.createElement(b.a,{label:"Have your say...",fitted:!0,isOpen:!0,showIcon:!1},n.a.createElement("p",null,"Spotlight’s ‘Promote’ feature has lots more to come. Share your thoughts on what you’d like to"," ","promote and how."),n.a.createElement("p",null,"Take our 2-minute survey."),n.a.createElement("div",null,n.a.createElement(u.a,{type:u.c.PRIMARY,size:u.b.LARGE,onClick:function(){window.open(m.a.resources.promoTypesSurvey)}},"Start Survey")))}}]]);const I={value:"link",label:"Link",component:O,isValid:()=>!1},M={linkType:"url",url:"https://your-promotion-url.com",linkText:"Check out my promotion"};function j({value:e,tab:t,onChange:a,selected:o,onNextPost:l,promoTypeRef:r}){var i;const s=d.a.mediaStore.media[o],m=o>=d.a.mediaStore.media.length-1,p=n.a.useRef(e.promotions.size?e.promotions.values().next().value.type:"link"),b=n.a.useCallback(o=>{if(!t.isFakePro){p.current=o;const t=new Map;e.promotions.forEach((e,a)=>{t.set(a,{type:o,data:e.data})}),a({promotions:t})}},[t,e.promotions]),h=n.a.useCallback(e=>{a({promotionEnabled:e})},[]),g=n.a.useCallback(n=>{if(!t.isFakePro){const t=d.a.mediaStore.media[o];e.promotions.set(t.id,{type:p.current,data:Object(_.f)(n)}),a({promotions:e.promotions})}},[o,t.isFakePro]),f=n.a.useCallback(()=>{!t.isFakePro&&l()},[t.isFakePro]),v=n.a.useCallback(()=>{g({})},[]);let E,w;t.isFakePro?(E=I,w=M):(w=s?d.a.getMediaPromo(s,e)[0]:{},E=d.a.types.find(e=>e.value===p.current));const k=null!==(i=x.get(E.value))&&void 0!==i?i:{fields:void 0};return n.a.createElement(n.a.Fragment,null,n.a.createElement(L,{value:e,promoType:p.current,isFakePro:t.isFakePro,typeFieldRef:r,onToggle:h,onChangeType:b}),k.fields&&(s&&E||"-more-"===E.value)&&n.a.createElement(k.fields,{value:e,media:s,options:w,onChange:g}),k.tutorial&&!s&&n.a.createElement(k.tutorial),n.a.createElement("div",{className:c.a.bottom},s&&"-more-"!==E.value&&n.a.createElement(u.a,{size:u.b.LARGE,type:u.c.SECONDARY,onClick:f,disabled:m},"Promote next post →"),E.isValid(s,w)&&n.a.createElement("a",{className:c.a.removePromo,onClick:v},"Remove promotion")),t.isFakePro&&n.a.createElement("div",{className:c.a.disabledOverlay}))}const L=n.a.memo((function({value:e,promoType:t,onToggle:a,onChangeType:o,isFakePro:l,typeFieldRef:r}){return n.a.createElement("div",{className:c.a.top},n.a.createElement("p",null,"Promote your blog posts, landing pages, products, and much more through your Instagram feed."," ","Start by selecting the promotion type for this feed."),n.a.createElement("hr",null),n.a.createElement(f.a,{id:"enable-promo",label:"Enable promotion"},n.a.createElement(v.a,{value:e.promotionEnabled,onChange:a})),!e.promotionEnabled&&n.a.createElement(N.a,{type:N.b.WARNING,showIcon:!0},"Promotion is now disabled. You may still add and edit promotions."," ","They will remain saved but will not apply."),n.a.createElement(f.a,{id:"promo-type",label:"Promotion type"},n.a.createElement(s.a,{id:"sli-promo-type",ref:r,value:t,onChange:e=>o(e.value),options:d.a.types,isSearchable:!1,isCreatable:!1,isClearable:!1,disabled:l})))}));var A=a(178),B=a.n(A),D=a(203),R=a(67),z=a(8);const H=n.a.memo((function({value:e,feed:t,tab:a,selected:o,onSelectMedia:l,onClickMedia:r}){return n.a.createElement(D.a,{feed:t,store:d.a.mediaStore,selected:o,onSelectMedia:l,onClickMedia:r,disabled:a.isFakePro},(t,a)=>{const[l,r]=d.a.getMediaPromo(t,e);return n.a.createElement(V,{media:t,selected:a===o,promo:l,promoType:r})})}),(function(e,t){return e.selected===t.selected&&e.onSelectMedia===t.onSelectMedia&&e.onClickMedia===t.onClickMedia&&e.value.promotionEnabled===t.value.promotionEnabled&&e.value.promotions.size===t.value.promotions.size&&e.feed.media.length===t.feed.media.length&&e.value.promotions===t.value.promotions})),V=n.a.memo((function({media:e,selected:t,promo:a,promoType:o}){const l=o&&o.isValid(e,a)&&o.getIcon?o.getIcon(e,a):void 0;return n.a.createElement("div",{className:t?B.a.selected:B.a.unselected},n.a.createElement(R.a,{media:e,className:B.a.thumbnail}),l&&n.a.createElement(z.a,{className:B.a.promoTypeIcon,icon:l}))}),(function(e,t){return e.selected===t.selected&&e.media.id===t.media.id&&(e.promoType?e.promoType.value:null)===(t.promoType?t.promoType.value:null)&&Object(_.c)(e.promo,t.promo)}));function G(e){const[t,a]=n.a.useState(null),o=n.a.useRef(),i=n.a.useCallback(()=>{a(e=>Math.min(e+1,d.a.mediaStore.media.length-1))},[]),c=n.a.useCallback((e,t)=>{a(t)},[]),s=n.a.useCallback((e,t)=>{a(t),o.current&&null!==t&&o.current.focus()},[o]);return n.a.createElement(n.a.Fragment,null,n.a.createElement(l.a,Object.assign({},e),n.a.createElement(j,Object.assign({},e,{selected:t,onNextPost:i,promoTypeRef:o}))),n.a.createElement(r.a,Object.assign({},e),n.a.createElement(H,Object.assign({},e,{selected:t,onSelectMedia:c,onClickMedia:s}))))}},212:function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));var o=a(0),n=a.n(o),l=a(334),r=a.n(l),i=a(62),c=a.n(i),s=a(7),d=a(2),u=a(6),m=a(107),p=a(71);const b=Object(s.b)(e=>{var{feed:t,previewDevice:a}=e,o=function(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(a[o[n]]=e[o[n]])}return a}(e,["feed","previewDevice"]);if(!u.a.Options.hasSources(t.options,o.isPro))return n.a.createElement(p.a,{className:c.a.onboarding},n.a.createElement("div",null,n.a.createElement("h1",null,"Select an account to get"," ",n.a.createElement("span",{className:c.a.noBreak},"started"," "," →")),n.a.createElement("p",null,"Your Instagram posts will be displayed instantly so you can easily design your feed using"," ","the live interactive preview.")));const l=t.mode,r=l===d.a.Mode.DESKTOP,i=l===d.a.Mode.TABLET,s=l===d.a.Mode.PHONE,b=r?c.a.root:c.a.shrunkRoot,h=s?c.a.phoneSizer:i?c.a.tabletSizer:c.a.sizer;return n.a.createElement("div",{className:b},n.a.createElement("div",{className:c.a.statusBar},n.a.createElement("div",{className:c.a.statusIndicator},n.a.createElement("svg",{viewBox:"0 0 24 24"},n.a.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"red"})),n.a.createElement("span",null,"Live interactive preview"),n.a.createElement("span",null," — "),n.a.createElement("span",null,"Showing ",t.media.length," out of ",t.totalMedia," posts"),t.numLoadedMore>0&&n.a.createElement("span",{className:c.a.reset},"(",n.a.createElement("a",{onClick:()=>t.load()},"Reset"),")"))),n.a.createElement("div",{className:c.a.container},n.a.createElement("div",{className:h},0===t.media.length&&u.a.Options.hasSources(t.options,o.isPro)&&u.a.Options.isLimitingPosts(t.options)?n.a.createElement("div",{className:c.a.noPostsMsg},n.a.createElement("p",null,"There are no posts to show. Try relaxing your filters and moderation.")):n.a.createElement(m.a,{feed:t}))))});function h(e){var{children:t}=e,a=function(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(a[o[n]]=e[o[n]])}return a}(e,["children"]);return n.a.createElement("div",{className:r.a.viewport},t||(a.tab.viewport?n.a.createElement(a.tab.viewport,Object.assign({},a)):n.a.createElement(b,Object.assign({},a))))}},214:function(e,t,a){e.exports={"field-group":"FieldGroup__field-group",fieldGroup:"FieldGroup__field-group",spoiler:"FieldGroup__spoiler","pro-pill":"FieldGroup__pro-pill",proPill:"FieldGroup__pro-pill",disabled:"FieldGroup__disabled"}},216:function(e,t,a){e.exports={"prop-field":"EditorPropField__prop-field",propField:"EditorPropField__prop-field","device-btn":"EditorPropField__device-btn",deviceBtn:"EditorPropField__device-btn",field:"EditorPropField__field"}},217:function(e,t,a){e.exports={"filter-field":"FilterFieldRow__filter-field",filterField:"FilterFieldRow__filter-field",bordered:"FilterFieldRow__bordered FilterFieldRow__filter-field",label:"FilterFieldRow__label"}},218:function(e,t,a){e.exports={"inc-global-filters":"IncGlobalFiltersField__inc-global-filters",incGlobalFilters:"IncGlobalFiltersField__inc-global-filters",label:"IncGlobalFiltersField__label",field:"IncGlobalFiltersField__field"}},222:function(e,t,a){e.exports={root:"FeedEditor__root",hidden:"FeedEditor__hidden",content:"FeedEditor__content","accounts-onboarding":"FeedEditor__accounts-onboarding",accountsOnboarding:"FeedEditor__accounts-onboarding"}},223:function(e,t,a){e.exports={navbar:"EditorNavbar__navbar layout__z-high","fake-pro-item":"EditorNavbar__fake-pro-item",fakeProItem:"EditorNavbar__fake-pro-item","pro-pill":"EditorNavbar__pro-pill",proPill:"EditorNavbar__pro-pill"}},252:function(e,t,a){e.exports={"connect-button":"ConnectSidebar__connect-button",connectButton:"ConnectSidebar__connect-button","connect-sidebar":"ConnectSidebar__connect-sidebar",connectSidebar:"ConnectSidebar__connect-sidebar","connect-account":"ConnectSidebar__connect-account",connectAccount:"ConnectSidebar__connect-account"}},327:function(e,t,a){e.exports={"field-group-list":"FieldGroupList__field-group-list",fieldGroupList:"FieldGroupList__field-group-list"}},328:function(e,t,a){e.exports={"preview-options":"DesignSidebar__preview-options",previewOptions:"DesignSidebar__preview-options"}},334:function(e,t,a){e.exports={viewport:"EditorViewport__viewport"}},347:function(e,t,a){"use strict";a.d(t,"a",(function(){return b}));var o=a(0),n=a.n(o),l=a(114),r=a.n(l),i=a(12),c=a(25),s=a(45),d=a(205),u=a(5),m=a(19),p=a(28);function b({store:e}){const t=`[instagram feed="${e.feed.id}"]`,a=i.a.config.adminUrl+"/widgets.php",o=i.a.config.adminUrl+"/customize.php?autofocus%5Bpanel%5D=widgets";return e.feed.id?n.a.createElement("div",{className:r.a.embedSidebar},e.feed.usages.length>0&&n.a.createElement(s.a,{label:"Instances",isOpen:!0,showIcon:!1,fitted:!0},n.a.createElement("div",{className:r.a.instances},n.a.createElement("p",null,"This feed is currently being shown in these pages:"),n.a.createElement("ul",null,e.feed.usages.map((e,t)=>n.a.createElement("li",{key:t},n.a.createElement("a",{href:`${i.a.config.adminUrl}/post.php?action=edit&post=${e.id}`,target:"_blank"},e.name),n.a.createElement("span",null,"(",e.type,")")))))),n.a.createElement(s.a,{label:"Shortcode",isOpen:!0,showIcon:!1,fitted:!0},n.a.createElement("div",null,n.a.createElement("p",null,"Copy the shortcode below and paste it in any page or post to embed this feed:"),n.a.createElement("div",{className:r.a.shortcode},n.a.createElement("code",null,t),n.a.createElement(d.a,{feed:e.feed,toaster:e.toaster},n.a.createElement(u.a,{type:u.c.SECONDARY},"Copy"))))),n.a.createElement(s.a,{label:"WordPress Block",isOpen:!0,showIcon:!1,fitted:!0},n.a.createElement("div",null,n.a.createElement("p",null,"To embed the feed in the WordPress block editor, search for the"," ",n.a.createElement("b",null,"Spotlight Instagram feed")," block and add it to your post or page."),p.a.list.length>1?n.a.createElement(n.a.Fragment,null,n.a.createElement("p",null,"Next, choose ",n.a.createElement("strong",null,e.feed.label)," from the list of feeds."),n.a.createElement(g,{images:[{src:"wp-block-search.png",alt:"Searching for the block"},{src:"wp-block-select.png",alt:"Choosing a feed for the block"},{src:"wp-block.png",alt:"The feed in a block"}]})):n.a.createElement(n.a.Fragment,null,n.a.createElement("p",null,"Since this is your only feed, Spotlight will automatically show this feed."),n.a.createElement(g,{images:[{src:"wp-block-search.png",alt:"Searching for the block"},{src:"wp-block.png",alt:"The feed in a block"}]})))),n.a.createElement(s.a,{label:"Widget",isOpen:!0,showIcon:!1,fitted:!0},n.a.createElement("div",null,n.a.createElement("p",null,"To embed this feed in a widget, go to the"," ",n.a.createElement("a",{href:a,target:"_blank"},"Appearance » Widgets")," page or the"," ",n.a.createElement("a",{href:o,target:"_blank"},"Widgets section of the Customizer"),", add"," ","a ",n.a.createElement("strong",null,"Spotlight Instagram Feed")," widget and choose"," ",n.a.createElement("strong",null,e.feed.name)," as the feed to be shown."),n.a.createElement(h,{img:"widget.png",alt:"Example of a widget"})))):n.a.createElement("div",{className:r.a.embedSidebar},n.a.createElement("div",{className:r.a.saveMessage},n.a.createElement(c.a,{type:c.b.INFO,showIcon:!0},"You're almost there... Click the ",n.a.createElement("strong",null,"Save")," button at the top-right to be able"," ","to embed this feed on your site!")))}function h({img:e,alt:t,annotation:a,onClick:o}){return n.a.createElement("figure",{className:r.a.example},n.a.createElement("figcaption",{className:r.a.caption},"Example:"),n.a.createElement("img",{src:m.a.image(e),alt:null!=t?t:"",style:{cursor:o?"pointer":"default"},onClick:o}),void 0!==a&&n.a.createElement("div",{className:r.a.exampleAnnotation},a))}function g({images:e}){const[t,a]=n.a.useState(0),l=n.a.useRef(),r=()=>{i(),l.current=setInterval(c,2e3)},i=()=>{clearInterval(l.current)},c=()=>{r(),a(t=>(t+1)%e.length)};Object(o.useEffect)(()=>(r(),i),[]);const s=e[t];return n.a.createElement(h,{img:s.src,alt:s.alt,annotation:t+1,onClick:c})}},350:function(e,t,a){"use strict";var o=a(0),n=a.n(o),l=a(252),r=a.n(l),i=a(4),c=a(124),s=a(152),d=a(328),u=a.n(d),m=a(2),p=a(6),b=a(62),h=a.n(b),g=a(253),f=a(5),v=a(8),E=a(12);function _(e){const t=n.a.useCallback(()=>e.onToggleFakeOptions(!0),[]),a=n.a.useCallback(()=>e.onToggleFakeOptions(!1),[]);return n.a.createElement("div",{className:h.a.controls},n.a.createElement("div",{className:h.a.control},n.a.createElement("span",{className:h.a.controlLabel},"Preview device"),n.a.createElement(g.a,null,m.a.MODES.map((t,a)=>n.a.createElement(f.a,{key:a,type:f.c.TOGGLE,onClick:()=>e.onChangeDevice(t),active:e.previewDevice===t,tooltip:t.name},n.a.createElement(v.a,{icon:t.icon}))))),!e.isPro&&n.a.createElement("div",{className:h.a.control},n.a.createElement("span",{className:h.a.controlLabel},"PRO features",n.a.createElement("span",null," ","—"," ",n.a.createElement("a",{href:E.a.resources.upgradeLocalUrl,target:"_blank"},"Upgrade now"))),n.a.createElement(g.a,null,n.a.createElement(f.a,{type:f.c.TOGGLE,active:e.showFakeOptions,onClick:t,tooltip:"Show PRO features"},"Show"),n.a.createElement(f.a,{type:f.c.TOGGLE,active:!e.showFakeOptions,onClick:a,tooltip:"Hide PRO features"},"Hide"))))}var w=a(38),k=a(197),y=a(198),O=a(199),C=[{id:"accounts",label:"Show posts from these accounts",fields:[{id:"accounts",component:Object(w.a)(({value:e,onChange:t})=>n.a.createElement(k.a,{value:e.accounts,onChange:e=>t({accounts:e})}),["accounts"])}]},{id:"tagged",label:"Show posts where these accounts are tagged",isFakePro:!0,fields:[{id:"tagged",component:Object(w.a)(()=>n.a.createElement(y.a,{value:[]}),["tagged"])}]},{id:"hashtags",label:"Show posts with these hashtags",isFakePro:!0,fields:[{id:"hashtags",component:Object(w.a)(()=>n.a.createElement(O.a,{value:[]}),["hashtags"])}]}],S=a(155),P=a(101),F=a(94),T=a(102),N=a(110),x=[{id:"caption-filters",label:"Caption filtering",isFakePro:!0,fields:[{id:"caption-whitelist",component:Object(w.a)(({field:e})=>n.a.createElement(P.a,{label:"Only show posts with these words or phrases"},n.a.createElement(F.a,{id:e.id,value:[]})))},{id:"caption-whitelist-settings",component:Object(w.a)(()=>n.a.createElement(T.a,{value:!0}))},{id:"caption-blacklist",component:Object(w.a)(({field:e})=>n.a.createElement(P.a,{label:"Hide posts with these words or phrases",bordered:!0},n.a.createElement(F.a,{id:e.id,value:[]})))},{id:"caption-blacklist-settings",component:Object(w.a)(()=>n.a.createElement(T.a,{value:!0}))}]},{id:"hashtag-filters",label:"Hashtag filtering",isFakePro:!0,fields:[{id:"hashtag-whitelist",component:Object(w.a)(({field:e})=>n.a.createElement(P.a,{label:"Only show posts with these hashtags"},n.a.createElement(N.a,{id:e.id,value:[]})))},{id:"hashtag-whitelist-settings",component:Object(w.a)(()=>n.a.createElement(T.a,{value:!0}))},{id:"hashtag-blacklist",component:Object(w.a)(({field:e})=>n.a.createElement(P.a,{label:"Hide posts with these hashtags",bordered:!0},n.a.createElement(N.a,{id:e.id,value:[]})))},{id:"hashtag-blacklist-settings",component:Object(w.a)(()=>n.a.createElement(T.a,{value:!0}))}]}],I=a(200),M=a(201),j=a(208),L=a(204);t.a=[{id:"connect",label:"Connect",alwaysEnabled:!0,groups:C,sidebar:function(e){const[,t]=n.a.useState(0);return i.b.hasAccounts()?n.a.createElement("div",{className:r.a.connectSidebar},n.a.createElement("div",{className:r.a.connectButton},n.a.createElement(c.a,{onConnect:a=>{e.onChange&&e.onChange({accounts:e.value.accounts.concat([a])}),t(e=>e++)}})),n.a.createElement(s.a,Object.assign({groups:e.tab.groups},e))):null}},{id:"design",label:"Design",groups:S.a,sidebar:function(e){let t=e.tab.groups;return m.a.get(e.value.linkBehavior,e.previewDevice,!0)!==p.a.LinkBehavior.LIGHTBOX&&(t=t.filter(({id:e})=>"lightbox"!==e)),n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:u.a.previewOptions},n.a.createElement(_,Object.assign({},e))),n.a.createElement(s.a,Object.assign({groups:t},e)))}},{id:"filter",label:"Filter",isFakePro:!0,groups:x,sidebar:I.a},{id:"moderate",label:"Moderate",isFakePro:!0,groups:x,sidebar:M.a,viewport:L.a},{id:"promote",label:"Promote",isFakePro:!0,component:j.a}]},351:function(e,t,a){"use strict";a.d(t,"a",(function(){return T}));var o=a(0),n=a.n(o),l=a(222),r=a.n(l),i=a(223),c=a.n(i),s=a(6),d=a(123),u=a(75),m=a(148),p=a(112),b=a(343),h=a(151),g=a(5),f=a(344),v=a(345),E=a(346);const _=n.a.memo((function(e){const t=s.a.Options.hasSources(e.value,e.isPro),a=(e.showFakeOptions||e.isPro?e.tabs:e.tabs.filter(e=>!e.isFakePro)).map(e=>({key:e.id,label:n.a.createElement(w,{key:e.id,tab:e}),disabled:!e.alwaysEnabled&&!t}));return n.a.createElement("div",{className:c.a.navbar},n.a.createElement(m.a,{breakpoints:p.a.Sizes.ALL},t=>{const o=e.showNameField?n.a.createElement(b.a,{key:"name-field",value:e.name,onDone:e.onRename,defaultValue:"(unnamed)"}):void 0,l=e.showDoneBtn?n.a.createElement(h.a,{key:"save-btn",content:t=>t?"Saving ...":e.doneBtnText,isSaving:e.isSaving,disabled:!e.isDoneBtnEnabled,onClick:e.onSave}):void 0,r=e.showCancelBtn?n.a.createElement(g.a,{key:"cancel-btn",onClick:e.onCancel,disabled:!e.isCancelBtnEnabled,children:e.cancelBtnText}):void 0;if(t<=p.a.Sizes.SMALL)return n.a.createElement(f.a,{steps:a,current:e.tabId,onChangeStep:e.onChangeTab,firstStep:r,lastStep:l},o);if(t<=p.a.Sizes.MEDIUM)return n.a.createElement(v.a,{pages:a,current:e.tabId,onChangePage:e.onChangeTab,hideMenuArrow:!0,showNavArrows:!0},{path:o?[o]:[],right:[r,l]});let i=[n.a.createElement(d.a,{key:"logo"})];return t>p.a.Sizes.WIDE&&i.push(n.a.createElement("span",{key:"page"},"Feeds")),o&&i.push(o),n.a.createElement(E.a,{current:e.tabId,onClickTab:e.onChangeTab},{path:i,tabs:a,right:[r,l]})}))}),(e,t)=>e.tabId===t.tabId&&e.name===t.name&&e.showFakeOptions===t.showFakeOptions&&e.isPro===t.isPro&&e.showDoneBtn===t.showDoneBtn&&e.showCancelBtn===t.showCancelBtn&&e.doneBtnText===t.doneBtnText&&e.cancelBtnText===t.cancelBtnText&&e.showNameField===t.showNameField&&e.onChangeTab===t.onChangeTab&&e.onRename===t.onRename&&e.onSave===t.onSave&&e.onCancel===t.onCancel&&e.isSaving===t.isSaving&&e.isDoneBtnEnabled===t.isDoneBtnEnabled&&e.isCancelBtnEnabled===t.isCancelBtnEnabled&&s.a.Options.hasSources(e.value,e.isPro)===s.a.Options.hasSources(t.value,t.isPro));function w({tab:e}){return e.isFakePro?n.a.createElement(k,{tab:e}):n.a.createElement("span",null,e.label)}function k({tab:e}){return n.a.createElement("span",{className:c.a.fakeProItem},n.a.createElement(u.a,{className:c.a.proPill}),n.a.createElement("span",null,e.label))}var y=a(202),O=a(212),C=a(4),S=a(121),P=a(71);function F({value:e,feed:t,onChange:a,onChangeTab:o}){const[l,r]=n.a.useState(!1);return n.a.createElement(S.a,{beforeConnect:t=>{r(!0),a&&a({accounts:e.accounts.concat([t])})},onConnect:()=>{setTimeout(()=>{t.load(),o&&o("design")},P.a.TRANSITION_DURATION)},isTransitioning:l})}function T(e){var t,a,l,i,c,d,u,m,p,b=function(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(a[o[n]]=e[o[n]])}return a}(e,[]);b.tabs=null!==(t=b.tabs)&&void 0!==t?t:[],b.isPro=null!==(a=b.isPro)&&void 0!==a&&a,b.showDoneBtn=null===(l=b.showDoneBtn)||void 0===l||l,b.showCancelBtn=null===(i=b.showCancelBtn)||void 0===i||i,b.showNameField=null!==(c=b.showNameField)&&void 0!==c&&c,b.doneBtnText=null!==(d=b.doneBtnText)&&void 0!==d?d:"Done",b.cancelBtnText=null!==(u=b.cancelBtnText)&&void 0!==u?u:"Cancel",b.isDoneBtnEnabled=null===(m=b.isDoneBtnEnabled)||void 0===m||m,b.isCancelBtnEnabled=null===(p=b.isCancelBtnEnabled)||void 0===p||p;const h=b.tabs.find(e=>e.id===b.tabId),g=n.a.useRef();g.current||(g.current=new s.a(b.value),g.current.load()),Object(o.useEffect)(()=>{g.current.options=b.value},[b.value]),Object(o.useEffect)(()=>{g.current.mode=b.previewDevice},[b.previewDevice]);const f=s.a.ComputedOptions.compute(b.value),v=Object.assign(Object.assign({},b),{computed:f,tab:h,feed:g.current});return n.a.createElement("div",{className:r.a.root},n.a.createElement(_,Object.assign({},b)),C.b.hasAccounts()?n.a.createElement("div",{className:r.a.content},void 0===h.component?n.a.createElement(n.a.Fragment,null,n.a.createElement(y.a,Object.assign({},v)),n.a.createElement(O.a,Object.assign({},v))):n.a.createElement(h.component,Object.assign({},v))):n.a.createElement("div",{className:r.a.accountsOnboarding},n.a.createElement(F,Object.assign({},v))))}},38:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var o=a(0),n=a.n(o),l=a(3),r=a(2);function i(e,t=[]){return n.a.memo(e,(e,a)=>{const o=t.reduce((t,o)=>t&&Object(l.c)(e.value[o],a.value[o]),t.length>0),n=!t.reduce((e,t)=>e||r.a.isValid(a.value[t]),!1)||e.previewDevice===a.previewDevice&&e.onChangeDevice===a.onChangeDevice;return o&&n&&e.showFakeOptions===a.showFakeOptions&&e.onChange===a.onChange})}},397:function(e,t,a){},52:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var o=a(0),n=a.n(o),l=a(330);function r({value:e,onChange:t,min:a,emptyMin:o,placeholder:r,id:i,unit:c}){e=null!=e?e:"",a=null!=a?a:0,r=null!=r?r:"",o=null!=o&&o;const s=n.a.useCallback(e=>{const o=e.target.value,n=parseInt(o),l=isNaN(n)?o:Math.max(a,n);t&&t(l)},[a,t]),d=n.a.useCallback(()=>{o&&e<=a&&t&&t("")},[o,e,a,t]),u=n.a.useCallback(n=>{"ArrowUp"===n.key&&""===e&&t&&t(o?a+1:a)},[e,a,o,t]),m=o&&e<=a?"":e;return c?n.a.createElement(l.a,{id:i,type:"number",unit:c,value:m,min:a,placeholder:r+"",onChange:s,onBlur:d,onKeyDown:u}):n.a.createElement("input",{id:i,type:"number",value:m,min:a,placeholder:r+"",onChange:s,onBlur:d,onKeyDown:u})}},56:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var o=a(0),n=a.n(o);function l({id:e,value:t,onChange:a,disabled:o}){return n.a.createElement("div",{className:"checkbox-field"},n.a.createElement("div",{className:"checkbox-field__aligner"},n.a.createElement("input",{id:e,type:"checkbox",value:"1",checked:!!t,onChange:e=>a(e.target.checked),disabled:o})))}a(317)},563:function(e,t,a){},62:function(e,t,a){e.exports={root:"FeedPreview__root","shrunk-root":"FeedPreview__shrunk-root FeedPreview__root",shrunkRoot:"FeedPreview__shrunk-root FeedPreview__root","status-bar":"FeedPreview__status-bar",statusBar:"FeedPreview__status-bar","status-indicator":"FeedPreview__status-indicator",statusIndicator:"FeedPreview__status-indicator",reset:"FeedPreview__reset",container:"FeedPreview__container","no-posts-msg":"FeedPreview__no-posts-msg",noPostsMsg:"FeedPreview__no-posts-msg",indicators:"FeedPreview__indicators","waiting-indicator":"FeedPreview__waiting-indicator",waitingIndicator:"FeedPreview__waiting-indicator","loading-indicator":"FeedPreview__loading-indicator",loadingIndicator:"FeedPreview__loading-indicator",sizer:"FeedPreview__sizer","shrunk-sizer":"FeedPreview__shrunk-sizer FeedPreview__sizer",shrunkSizer:"FeedPreview__shrunk-sizer FeedPreview__sizer","tablet-sizer":"FeedPreview__tablet-sizer FeedPreview__shrunk-sizer FeedPreview__sizer",tabletSizer:"FeedPreview__tablet-sizer FeedPreview__shrunk-sizer FeedPreview__sizer","phone-sizer":"FeedPreview__phone-sizer FeedPreview__shrunk-sizer FeedPreview__sizer",phoneSizer:"FeedPreview__phone-sizer FeedPreview__shrunk-sizer FeedPreview__sizer",onboarding:"FeedPreview__onboarding","no-break":"FeedPreview__no-break",noBreak:"FeedPreview__no-break",controls:"FeedPreview__controls",control:"FeedPreview__control","control-label":"FeedPreview__control-label",controlLabel:"FeedPreview__control-label","indicator-animation":"FeedPreview__indicator-animation",indicatorAnimation:"FeedPreview__indicator-animation","loading-animation":"FeedPreview__loading-animation",loadingAnimation:"FeedPreview__loading-animation"}},95:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var o=a(0),n=a.n(o),l=a(126),r=a.n(l),i=a(122),c=a(75);function s({id:e,label:t,children:a,wide:o,disabled:l,isFakePro:s}){const d=Array.isArray(a)?a[0]:a,u=Array.isArray(a)?a[1]:void 0;return n.a.createElement("div",{className:l||s?r.a.disabled:o?r.a.wide:r.a.container},n.a.createElement("div",{className:r.a.label},n.a.createElement("div",{className:r.a.labelAligner},n.a.createElement("label",{htmlFor:e},t),u&&n.a.createElement(i.a,null,u))),n.a.createElement("div",{className:r.a.content},d),s&&n.a.createElement(c.a,{className:r.a.proPill}))}}}]);
1
+ (window.webpackJsonpspotlight=window.webpackJsonpspotlight||[]).push([[3],{112:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(0),o=a.n(n),l=a(240),i=a(92),r=a(55),c=a(14);const s=({onConnect:e,beforeConnect:t,isTransitioning:a})=>o.a.createElement(i.a,{className:"accounts-onboarding",isTransitioning:a},o.a.createElement("div",{className:"accounts-onboarding__left"},o.a.createElement("h1",null,"Let's connect your Instagram account"),o.a.createElement("p",{className:"accounts-onboarding__first-msg"},"If you're unsure which button applies to you, it's most likely a ",o.a.createElement("strong",null,"Personal")," account."," ","Try that first."),o.a.createElement("div",{className:"accounts-onboarding__spacer"}),o.a.createElement(r.a,{label:"Upgrade to an Instagram Business account for free",stealth:!0},o.a.createElement("p",null,"Business accounts get additional API features that give you more control over your feeds in "," ","Spotlight, especially with ",o.a.createElement("strong",null,"PRO"),"."),o.a.createElement("p",null,"Plus, they get access to ",o.a.createElement("strong",null,"more cool stuff")," within Instagram itself, such as "," ","analytics."),o.a.createElement("p",null,o.a.createElement("a",{href:c.a.resources.businessAccounts,target:"_blank",className:"accounts-onboarding__learn-more-business"},"Learn more")))),o.a.createElement("div",null,o.a.createElement(l.a,{beforeConnect:e=>t&&t(e),onConnect:t=>e&&e(t),useColumns:!0,showPrompt:!1})))},127:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(0),o=a.n(n),l=a(244),i=a.n(l);function r({children:e,label:t,bordered:a}){const n=a?i.a.bordered:i.a.filterField;return o.a.createElement("div",{className:n},o.a.createElement("span",{className:i.a.label},t),e)}},128:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(0),o=a.n(n),l=a(245),i=a.n(l),r=a(5),c=a(370);function s({id:e,value:t,onChange:a,feed:n}){const[l,s]=o.a.useState(!1);return o.a.createElement("div",{className:i.a.incGlobalFilters},o.a.createElement("label",{className:i.a.label},o.a.createElement("div",{className:i.a.field},o.a.createElement("input",{id:e,type:"checkbox",value:"1",checked:t,onChange:e=>a&&a(e.target.checked)}),o.a.createElement("span",null,"Include global filters")),o.a.createElement(r.a,{type:r.c.LINK,size:r.b.SMALL,onClick:()=>s(!0)},"Edit global filters"),o.a.createElement(c.a,{isOpen:l,onClose:()=>s(!1),onSave:()=>n&&n.reload()})))}},130:function(e,t,a){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","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"}},132:function(e,t,a){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"}},149:function(e,t,a){e.exports={container:"EditorFieldRow__container",wide:"EditorFieldRow__wide EditorFieldRow__container",label:"EditorFieldRow__label",content:"EditorFieldRow__content","label-aligner":"EditorFieldRow__label-aligner",labelAligner:"EditorFieldRow__label-aligner",disabled:"EditorFieldRow__disabled EditorFieldRow__container","pro-pill":"EditorFieldRow__pro-pill",proPill:"EditorFieldRow__pro-pill"}},172:function(e,t,a){"use strict";var n=a(0),o=a.n(n),l=a(181),i=a.n(l),r=a(6),c=a(372),s=a(16);t.a=Object(r.b)((function({feed:e,store:t,selected:a,disabled:l,autoFocusFirst:r,onClickMedia:u,onSelectMedia:m,children:p}){l=null!=l&&l,r=null!=r&&r;const[b,h]=o.a.useState([]),[g,f]=o.a.useState(!t.hasCache(e)),[E,v,_]=Object(s.e)(a),w=o.a.useRef(),k=o.a.useRef(),y=o.a.useRef();Object(n.useEffect)(()=>{_(a)},[a]),Object(s.i)(a=>{t.fetchMedia(e).then(e=>{a().then(()=>{h(e),f(!1),e.length>0&&r&&m&&m(e[0],0)})})},[]);const C=e=>{null===v()||e.target!==w.current&&e.target!==k.current||O(null)};function O(e){l||(P(e),u&&u(b[e],e))}function P(e){e===v()||l||(m&&m(b[e],e),_(e))}Object(n.useLayoutEffect)(()=>{if(w.current)return w.current.addEventListener("click",C),()=>w.current.removeEventListener("click",C)},[w.current]);const S=l?i.a.gridDisabled:i.a.grid;return o.a.createElement("div",{ref:w,className:i.a.root},o.a.createElement("div",{ref:k,className:S,style:{gridGap:15},tabIndex:0,onKeyDown:function(e){if(l)return;const t=v(),a=function(){const e=k.current.getBoundingClientRect(),t=y.current.getBoundingClientRect(),a=e.width,n=t.width;return Math.floor((a+15)/(n+15))}(),n=Math.ceil(b.length/a);switch(e.key){case" ":case"Enter":O(t);break;case"ArrowLeft":P(Math.max(t-1,0));break;case"ArrowRight":P(Math.min(t+1,b.length-1));break;case"ArrowUp":{const e=Math.max(0,t-a),o=Math.floor(t/a),l=Math.floor(e/a);n>1&&l!==o&&P(e);break}case"ArrowDown":{const e=Math.min(b.length-1,t+a),o=Math.floor(t/a),l=Math.floor(e/a);n>1&&l!==o&&P(e);break}default:return}e.preventDefault(),e.stopPropagation()}},b.map((e,t)=>o.a.createElement(d,{key:e.id,ref:0===t?y:null,focused:!l&&E===t,onClick:()=>O(t),onFocus:()=>P(t)},p(e,t)))),g&&o.a.createElement("div",{className:i.a.loading},o.a.createElement(c.a,{size:60})))}));const d=o.a.forwardRef(({focused:e,onClick:t,onFocus:a,children:l},r)=>(r||(r=o.a.useRef()),Object(n.useEffect)(()=>{e&&r.current.focus()},[e]),o.a.createElement("div",{ref:r,className:i.a.item,onClick:t,onFocus:a,tabIndex:0},l)))},173:function(e,t,a){"use strict";a.d(t,"a",(function(){return f}));var n=a(0),o=a.n(n),l=a(290),i=a.n(l),r=a(228),c=a(5),s=a(14),d=new Map([["link",{heading:"Link options",fields:r.a,tutorial:function({}){return o.a.createElement(o.a.Fragment,null,o.a.createElement("p",{style:{fontWeight:"bold"}},"How it works:"),o.a.createElement("ol",{style:{marginTop:0}},o.a.createElement("li",null,"Select a post from the preview on the left."),o.a.createElement("li",null,"Choose what the post should link to.")),o.a.createElement("p",null,"That’s it!"))}}],["-more-",{heading:"Have your say...",fields:function({}){return o.a.createElement(o.a.Fragment,null,o.a.createElement("p",null,"Spotlight’s ‘Promote’ feature has lots more to come. Share your thoughts on what you’d like to"," ","promote and how."),o.a.createElement("p",null,"Take our 2-minute survey."),o.a.createElement("div",null,o.a.createElement(c.a,{type:c.c.PRIMARY,size:c.b.LARGE,onClick:function(){window.open(s.a.resources.promoTypesSurvey)}},"Start Survey")))}}]]),u=a(55),m=a(23),p=a(21);function b({hasGlobal:e,hasAuto:t,isOverriding:a,onOverride:n}){return o.a.createElement(o.a.Fragment,null,o.a.createElement(m.a,{type:m.b.WARNING,showIcon:!0},o.a.createElement("span",null,"You have")," ",t&&o.a.createElement("a",{href:p.a.at({screen:"promotions",tab:"automate"}),target:"_blank"},"automated"),t&&e&&o.a.createElement(o.a.Fragment,null," ",o.a.createElement("span",null,"and")," "),e&&o.a.createElement("a",{href:p.a.at({screen:"promotions",tab:"global"}),target:"_blank"},"global")," ",o.a.createElement("span",null,"promotions that apply to this post.")," ",a?o.a.createElement("span",null,"To stop overriding, simply remove the custom promotion."):o.a.createElement("span",null,"Click the button below to use a custom promotion instead.")),!a&&o.a.createElement(c.a,{onClick:n},"Override"))}var h=a(3),g=a(65);function f({type:e,config:t,hasGlobal:a,hasAuto:l,showTutorial:r,showNextBtn:s,isNextBtnDisabled:m,hideRemove:p,onNext:f,onChange:E}){var v,_;const[w,k]=Object(n.useState)(!1),[y,C]=Object(n.useState)(!1),O=Object(n.useCallback)(()=>C(!0),[C]),P=Object(n.useCallback)(()=>C(!1),[C]),S=Object(n.useCallback)(()=>{k(!0),E&&E({})},[e,E]),F=!Object(h.q)(t),T=a||l,N=T&&(F||w),x=null!==(v=d.get(e?e.id:""))&&void 0!==v?v:{heading:"",fields:void 0,tutorial:void 0};return o.a.createElement(o.a.Fragment,null,o.a.createElement(u.a,{label:null!==(_=x.heading)&&void 0!==_?_:"Promotion options",fitted:!0,isOpen:!0,showIcon:!1},T&&o.a.createElement(b,{hasAuto:l,hasGlobal:a,isOverriding:N,onOverride:S}),N&&o.a.createElement("hr",null),(!T||N)&&!r&&x.fields&&o.a.createElement(x.fields,{config:null!=t?t:{},onChange:E}),r&&x.tutorial&&o.a.createElement(x.tutorial,null)),o.a.createElement("div",{className:i.a.bottom},s&&o.a.createElement(c.a,{size:c.b.LARGE,onClick:f,disabled:m},"Promote next post →"),(F||N)&&!p&&o.a.createElement("a",{className:i.a.removePromo,onClick:O},"Remove promotion")),o.a.createElement(g.a,{isOpen:y,title:"Are you sure?",buttons:["Yes, I'm sure","No, keep it"],onCancel:P,onAccept:()=>{E&&E({}),k(!1),C(!1)}},o.a.createElement("p",null,"Are you sure you want to remove this promotion? This ",o.a.createElement("strong",null,"cannot")," be undone!")))}},174:function(e,t,a){"use strict";a.d(t,"a",(function(){return b}));var n=a(0),o=a.n(n),l=a(363),i=a.n(l),r=a(285),c=a.n(r),s=a(55),d=a(38),u=a(12),m=a(223);function p(e){const{group:t,showFakeOptions:a}=e,[n,l]=o.a.useState(e.openGroups.includes(t.id)),i=o.a.useCallback(()=>{l(e=>!e)},[n]),r=t.isFakePro?o.a.createElement(m.a,null,t.label):t.label;return!t.isFakePro||a||u.a.isPro?o.a.createElement(s.a,{className:t.isFakePro&&!u.a.isPro?c.a.disabled:c.a.spoiler,label:r,isOpen:n,onClick:i,scrollIntoView:!0,fitted:!0},t.fields.map(n=>{const l=Object.assign({},e);if(t.isFakePro||n.isFakePro){if(!a)return null;l.onChange=d.b}return o.a.createElement(n.component,Object.assign({key:n.id,field:n},e))})):null}function b(e){var{groups:t}=e,a=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(a[n[o]]=e[n[o]])}return a}(e,["groups"]);return o.a.createElement("div",{className:i.a.fieldGroupList},t.map(e=>o.a.createElement(p,Object.assign({key:e.id,group:e},a))))}},175:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a(0),o=a.n(n);function l({id:e,value:t,onChange:a,placeholder:n}){return o.a.createElement("input",{id:e,type:"text",value:t,onChange:e=>a(e.target.value),placeholder:n})}a(353)},177:function(e,t,a){"use strict";a.d(t,"b",(function(){return N}));var n=a(0),o=a.n(n),l=a(50),i=a(202),r=a.n(i),c=a(27),s=a(14),d=a(16);const u=({value:e,onChange:t,layouts:a,showUpgrade:n})=>(a=null!=a?a:c.a.list,o.a.createElement("div",{className:r.a.root},a.map((a,n)=>{const l=a.id===e?r.a.layoutSelected:r.a.layout,i=()=>t(a.id),c=Object(d.f)(i);return o.a.createElement("div",{key:n,className:l,role:"button",tabIndex:0,onClick:i,onKeyPress:c},a.name,a.img&&o.a.createElement("img",{src:a.img,alt:a.name}))}),n&&o.a.createElement("div",{className:r.a.comingSoon},o.a.createElement("span",null,"More layouts available in PRO!"),o.a.createElement("br",null),o.a.createElement("a",{href:s.a.resources.upgradeLocalUrl,target:"_blank"},"Upgrade now!"))));var m=a(7),p=a(56),b=a(63),h=a(2),g=a(82),f=a(199),E=a(23),v=a(67),_=a(4),w=a(111),k=a(5);a(595);const y=({id:e,title:t,mediaType:a,button:n,buttonSet:l,buttonChange:i,value:r,onChange:c})=>{l=void 0===n?l:n,i=void 0===n?i:n;const s=!!r,d=s?i:l,u=()=>{c&&c("")};return o.a.createElement(w.a,{id:e,title:t,mediaType:a,button:d,value:r,onSelect:e=>{c&&c(e.attributes.url)}},({open:e})=>o.a.createElement("div",{className:"wp-media-field"},s&&o.a.createElement("div",{className:"wp-media-field__preview",tabIndex:0,onClick:e,role:"button"},o.a.createElement("img",{src:r,alt:"Custom profile picture"})),o.a.createElement(k.a,{className:"wp-media-field__select-btn",type:k.c.SECONDARY,onClick:e},d),s&&o.a.createElement(k.a,{className:"wp-media-field__remove-btn",type:k.c.DANGER_LINK,onClick:u},"Remove custom photo")))};function C({id:e,value:t,onChange:a}){return o.a.createElement("textarea",{id:e,value:t,onChange:e=>a(e.target.value)})}var O=a(175),P=a(20),S=a(12),F=m.a.FollowBtnLocation,T=m.a.HeaderInfo;function N(e){return!e.computed.showHeader}function x(e,t){return N(t)||!t.computed.headerInfo.includes(e)}function I(e){return 0===e.value.accounts.length&&0===e.value.tagged.length&&e.value.hashtags.length>0}function j(e){return!e.computed.showFollowBtn}function M(e){return!e.computed.showLoadMoreBtn}t.a=[{id:"layouts",label:"Layout",fields:[{id:"layout",component:Object(l.a)(({value:e,onChange:t})=>o.a.createElement(u,{value:e.layout,onChange:e=>t({layout:e}),showUpgrade:!S.a.isPro}),["layout"])}]},{id:"feed",label:"Feed",fields:[{id:"num-posts",component:Object(P.a)({label:"Number of posts",option:"numPosts",render:(e,t,a)=>{const n=e.previewDevice===h.a.Mode.DESKTOP;return o.a.createElement(b.a,{id:e.field.id,value:t,onChange:a,min:1,placeholder:n?"1":e.value.numPosts.desktop})}})},{id:"num-columns",component:Object(P.a)({label:"Number of columns",option:"numColumns",render:(e,t,a)=>{const n=e.previewDevice===h.a.Mode.DESKTOP;return o.a.createElement(b.a,{id:e.field.id,value:t,onChange:a,min:n?1:0,placeholder:n?"1":e.value.numColumns.desktop})}})},{id:"post-order",component:Object(P.a)({label:"Post order",option:"postOrder",render:(e,t,a)=>o.a.createElement(p.a,{id:e.field.id,value:t,onChange:e=>a(e.value),options:[{value:m.a.PostOrder.DATE_DESC,label:"Most recent first"},{value:m.a.PostOrder.DATE_ASC,label:"Oldest first"},{value:m.a.PostOrder.POPULARITY_DESC,label:"Most popular first"},{value:m.a.PostOrder.POPULARITY_ASC,label:"Least popular first"},{value:m.a.PostOrder.RANDOM,label:"Random"}]})})},{id:"media-type",isFakePro:!0,component:Object(P.a)({label:"Types of posts",option:"mediaType",render:e=>o.a.createElement(p.a,{id:e.field.id,value:m.a.MediaType.ALL,options:[{value:m.a.MediaType.ALL,label:"All posts"},{value:m.a.MediaType.PHOTOS,label:"Photos Only"},{value:m.a.MediaType.VIDEOS,label:"Videos Only"}]})})},{id:"link-behavior",component:Object(P.a)({label:"Open posts in",option:"linkBehavior",render:(e,t,a)=>o.a.createElement(p.a,{id:e.field.id,value:t,onChange:e=>a(e.value),options:[{value:m.a.LinkBehavior.NOTHING,label:"- Do not open -"},{value:m.a.LinkBehavior.SELF,label:"Same tab"},{value:m.a.LinkBehavior.NEW_TAB,label:"New tab"},{value:m.a.LinkBehavior.LIGHTBOX,label:"Popup box"}]})})}]},{id:"appearance",label:"Appearance",fields:[{id:"feed-width",component:Object(P.a)({label:"Feed width",option:"feedWidth",render:(e,t,a)=>o.a.createElement(b.a,{id:e.field.id,value:t,onChange:a,min:0,unit:"px",emptyMin:!0,placeholder:"Auto"})})},{id:"feed-height",component:Object(P.a)({label:"Feed height",option:"feedHeight",render:(e,t,a)=>o.a.createElement(b.a,{id:e.field.id,value:t,onChange:a,min:0,unit:"px",emptyMin:!0,placeholder:"Auto"})})},{id:"feed-padding",component:Object(P.a)({label:"Outside padding",option:"feedPadding",render:(e,t,a)=>o.a.createElement(b.a,{id:e.field.id,value:t,onChange:a,min:0,unit:"px",placeholder:"No padding"})})},{id:"image-padding",component:Object(P.a)({label:"Image padding",option:"imgPadding",render:(e,t,a)=>o.a.createElement(b.a,{id:e.field.id,value:t,onChange:a,min:0,unit:"px",placeholder:"No padding"})})},{id:"text-size",component:Object(P.a)({label:"Text size",option:"textSize",render:(e,t,a)=>o.a.createElement(b.a,{id:e.field.id,value:t,onChange:a,min:0,unit:"px",placeholder:"Theme default"}),tooltip:()=>o.a.createElement("span",null,"If left empty, the text size will be controlled by your theme."," ",'This option will be ignored for the header if the "Text size" option in the'," ",'"Header" section is not empty.')})},{id:"bg-color",component:Object(P.a)({label:"Background color",option:"bgColor",render:(e,t,a)=>o.a.createElement(g.a,{id:e.field.id,value:t,onChange:e=>a(e.rgb)})})},{id:"hover-info",component:Object(P.a)({label:"Show on hover",option:"hoverInfo",render:(e,t,a)=>o.a.createElement(f.a,{id:e.field.id,value:t,onChange:a,showProOptions:e.showFakeOptions,options:e.field.data.options}),tooltip:()=>o.a.createElement("span",null,"Usernames are not available for hashtag posts, due to a restriction by Instagram.")}),data:{options:[{value:m.a.HoverInfo.LIKES_COMMENTS,label:"Likes & comments icons"},{value:m.a.HoverInfo.INSTA_LINK,label:"Instagram icon/link"},{value:m.a.HoverInfo.CAPTION,label:"Caption",isFakePro:!0},{value:m.a.HoverInfo.USERNAME,label:"Username",isFakePro:!0},{value:m.a.HoverInfo.DATE,label:"Date",isFakePro:!0}]}},{id:"hover-text-color",isFakePro:!0,component:Object(P.a)({label:"Hover text color",option:"textColorHover",render:e=>o.a.createElement(g.a,{id:e.field.id})})},{id:"hover-bg-color",isFakePro:!0,component:Object(P.a)({label:"Hover background color",option:"bgColorHover",render:e=>o.a.createElement(g.a,{id:e.field.id,value:{r:0,g:0,b:0,a:.5}})})}]},{id:"header",label:"Header",fields:[{id:"header-hashtag-msg",component:Object(l.a)(e=>I(e)&&o.a.createElement(E.a,{type:E.b.INFO,showIcon:!0,shake:!0},"The header is disabled because you are currently only showing posts from"," ","hashtags, so there are no accounts to show in the header."))},{id:"show-header",component:Object(P.a)({label:"Show header",option:"showHeader",disabled:e=>I(e),render:(e,t,a)=>o.a.createElement(v.a,{id:e.field.id,value:t,onChange:a})})},{id:"header-style",isFakePro:!0,component:Object(P.a)({label:"Header style",option:"headerStyle",render:e=>o.a.createElement(p.a,{id:e.field.id,value:m.a.HeaderStyle.NORMAL,options:[{value:m.a.HeaderStyle.NORMAL,label:"Normal"},{value:m.a.HeaderStyle.CENTERED,label:"Centered"}]})})},{id:"header-account",component:Object(P.a)({label:"Account to show",option:"headerAccount",deps:["showHeader"],disabled:e=>N(e),render:(e,t,a)=>o.a.createElement(p.a,{id:e.field.id,value:e.computed.account?e.computed.account.id:"",onChange:e=>a(e.value),options:e.computed.allAccounts.map(e=>({value:e,label:_.b.getById(e).username}))})})},{id:"header-info",component:Object(P.a)({label:"Show",option:"headerInfo",deps:["showHeader"],disabled:e=>N(e),render:(e,t,a)=>o.a.createElement(f.a,{id:e.field.id,value:t,onChange:a,options:e.field.data.options}),tooltip:()=>o.a.createElement("span",null,"Follower count is not available for Personal accounts due to restrictions set by Instagram.")}),data:{options:[{value:m.a.HeaderInfo.PROFILE_PIC,label:"Profile photo"},{value:m.a.HeaderInfo.BIO,label:"Profile bio text"},{value:T.MEDIA_COUNT,label:"Post count",isFakePro:!0},{value:T.FOLLOWERS,label:"Follower count",isFakePro:!0}]}},{id:"header-photo-size",component:Object(P.a)({label:"Profile photo size",option:"headerPhotoSize",deps:["showHeader","headerInfo"],disabled:e=>x(T.PROFILE_PIC,e),render:(e,t,a)=>o.a.createElement(b.a,{id:e.field.id,value:null!=t?t:"",onChange:a,min:0,unit:"px",placeholder:"Default"})})},{id:"custom-profile-pic",component:Object(P.a)({label:"Custom profile pic",option:"customProfilePic",deps:["showHeader","headerInfo"],disabled:e=>x(T.PROFILE_PIC,e),render:(e,t,a)=>o.a.createElement(y,{id:e.field.id,value:t,onChange:a,title:"Select custom profile photo",buttonSet:"Choose custom photo",buttonChange:"Change custom photo",mediaType:"image"}),tooltip:()=>o.a.createElement("span",null,"Add a custom profile photo just for this feed. It will override the original"," ","profile photo from Instagram and any custom profile photo added in Spotlight.")})},{id:"custom-bio-text",component:Object(P.a)({label:"Custom bio text",option:"customBioText",deps:["headerInfo","showHeader"],disabled:e=>x(T.BIO,e),render:(e,t,a)=>o.a.createElement(C,{id:e.field.id,value:t,onChange:a}),tooltip:()=>o.a.createElement("span",null,"Add a custom bio text just for this feed. It will override the original custom bio"," ","text from Instagram and any custom bio text added in Spotlight.")})},{id:"header-text-size",component:Object(P.a)({label:"Header text size",option:"headerTextSize",deps:["showHeader"],disabled:e=>N(e),render:(e,t,a)=>o.a.createElement(b.a,{id:e.field.id,value:null!=t?t:"",onChange:a,min:0,unit:"px",placeholder:"Default"}),tooltip:()=>o.a.createElement("span",null,'If left empty, the "Text size" option in the "Appearance" section will control the'," ","header's text size.")})},{id:"header-text-color",component:Object(P.a)({label:"Header text color",option:"headerTextColor",deps:["showHeader"],disabled:e=>N(e),render:(e,t,a)=>o.a.createElement(g.a,{id:e.field.id,value:t,onChange:e=>a(e.rgb)})})},{id:"header-bg-color",component:Object(P.a)({label:"Header background color",option:"headerBgColor",deps:["showHeader"],disabled:e=>N(e),render:(e,t,a)=>o.a.createElement(g.a,{id:e.field.id,value:t,onChange:e=>a(e.rgb)})})},{id:"header-padding",component:Object(P.a)({label:"Header padding",option:"headerPadding",deps:["showHeader"],disabled:e=>N(e),render:(e,t,a)=>o.a.createElement(b.a,{id:e.field.id,value:t,onChange:a,min:0,unit:"px",placeholder:"No padding"})})},{id:"include-stories",isFakePro:!0,component:Object(P.a)({label:"Include stories",option:"includeStories",render:e=>o.a.createElement(v.a,{id:e.field.id,value:!0}),tooltip:()=>o.a.createElement("span",null,"Re-shared stories are not available due to a restriction by Instagram.")})},{id:"stories-interval",isFakePro:!0,component:Object(P.a)({label:"Stories interval time",option:"storiesInterval",render:e=>o.a.createElement(b.a,{id:e.field.id,value:5,min:1,unit:"sec"})})}]},{id:"lightbox",label:"Popup box",isFakePro:!0,fields:[{id:"show-lightbox-sidebar",component:Object(P.a)({label:"Show sidebar",option:"lightboxShowSidebar",render:e=>o.a.createElement(v.a,{id:e.field.id,value:!1})})},{id:"num-lightbox-comments",label:"Number of comments",component:Object(P.a)({label:"Number of comments",option:"numLightboxComments",render:e=>o.a.createElement(b.a,{id:e.field.id,value:20,min:0,placeholder:"No comments"}),tooltip:()=>o.a.createElement("span",null,"Comments are only available for posts from a ",o.a.createElement("strong",null,"Business")," account")})}]},{id:"captions",label:"Captions",isFakePro:!0,fields:[{id:"show-captions",component:Object(P.a)({label:"Show captions",option:"showCaptions",render:e=>o.a.createElement(v.a,{id:e.field.id,value:!0})})},{id:"caption-max-length",component:Object(P.a)({label:"Caption max length",option:"captionMaxLength",render:e=>o.a.createElement(b.a,{id:e.field.id,value:"",min:0,unit:"words",placeholder:"No limit"})})},{id:"caption-size",component:Object(P.a)({label:"Caption text size",option:"captionSize",render:e=>o.a.createElement(b.a,{id:e.field.id,value:"",min:0,unit:"px",placeholder:"Theme default"})})},{id:"caption-color",component:Object(P.a)({label:"Caption text color",option:"captionColor",render:e=>o.a.createElement(g.a,{id:e.field.id,value:{r:0,g:0,b:0,a:0}})})},{id:"caption-remove-dots",component:Object(P.a)({label:"Remove dot lines",option:"captionRemoveDots",render:e=>o.a.createElement(v.a,{id:e.field.id,value:!1}),tooltip:()=>o.a.createElement("span",null,'Enable this option to remove lines in captions that are only "dots", such as'," ",o.a.createElement("code",null,"."),", ",o.a.createElement("code",null,"•"),", ",o.a.createElement("code",null,"*"),", etc.")})}]},{id:"likes-comments",label:"Likes & Comments",isFakePro:!0,fields:[{id:"show-likes",component:Object(P.a)({label:"Show likes icon",option:"showLikes",render:e=>o.a.createElement(v.a,{id:e.field.id,value:!1})})},{id:"likes-icon-color",component:Object(P.a)({label:"Likes icon color",option:"likesIconColor",render:e=>o.a.createElement(g.a,{id:e.field.id,value:{r:0,g:0,b:0,a:1}})})},{id:"show-comments",component:Object(P.a)({label:"Show comments icon",option:"showComments",render:e=>o.a.createElement(v.a,{id:e.field.id,value:!1})})},{id:"comments-icon-color",component:Object(P.a)({label:"Comments icon color",option:"commentsIconColor",render:e=>o.a.createElement(g.a,{id:e.field.id,value:{r:0,g:0,b:0,a:1}})})},{id:"lcIconSize",component:Object(P.a)({label:"Icon size",option:"lcIconSize",render:e=>o.a.createElement(b.a,{id:e.field.id,value:"",min:0,unit:"px"})})}]},{id:"follow-btn",label:"Follow button",fields:[{id:"follow-btn-hashtag-msg",component:Object(l.a)(e=>I(e)&&o.a.createElement(E.a,{type:E.b.INFO,showIcon:!0,shake:!0},"The follow button is disabled because you are currently only showing posts from"," ","hashtags, so there are no accounts to follow."))},{id:"show-follow-btn",component:Object(P.a)({label:"Show 'Follow' button",option:"showFollowBtn",disabled:e=>I(e),render:(e,t,a)=>o.a.createElement(v.a,{id:e.field.id,value:t,onChange:a})})},{id:"follow-btn-location",component:Object(P.a)({label:"Location",option:"followBtnLocation",deps:["showFollowBtn"],disabled:e=>j(e),render:(e,t,a)=>o.a.createElement(p.a,{id:e.field.id,value:t,onChange:e=>a(e.value),options:[{value:F.HEADER,label:"Header"},{value:F.BOTTOM,label:"Bottom"},{value:F.BOTH,label:"Both"}]})})},{id:"follow-btn-text",component:Object(P.a)({label:"'Follow' text",option:"followBtnText",deps:["showFollowBtn"],disabled:e=>j(e),render:(e,t,a)=>o.a.createElement(O.a,{id:e.field.id,value:t,onChange:a})})},{id:"follow-btn-text-color",component:Object(P.a)({label:"Text color",option:"followBtnTextColor",deps:["showFollowBtn"],disabled:e=>j(e),render:(e,t,a)=>o.a.createElement(g.a,{id:e.field.id,value:t,onChange:e=>a(e.rgb)})})},{id:"follow-btn-bg-color",component:Object(P.a)({label:"Background color",option:"followBtnBgColor",deps:["showFollowBtn"],disabled:e=>j(e),render:(e,t,a)=>o.a.createElement(g.a,{id:e.field.id,value:t,onChange:e=>a(e.rgb)})})}]},{id:"load-more-btn",label:"Load more button",fields:[{id:"show-load-more-btn",component:Object(P.a)({label:"Show 'Load more' button",option:"showLoadMoreBtn",render:(e,t,a)=>o.a.createElement(v.a,{id:e.field.id,value:t,onChange:a})})},{id:"load-more-btn-text",component:Object(P.a)({label:"'Load more' text",option:"loadMoreBtnText",deps:["showLoadMoreBtn"],disabled:e=>M(e),render:(e,t,a)=>o.a.createElement(O.a,{id:e.field.id,value:t,onChange:a})})},{id:"load-more-btn-text-color",component:Object(P.a)({label:"Text color",option:"loadMoreBtnTextColor",deps:["showLoadMoreBtn"],disabled:e=>M(e),render:(e,t,a)=>o.a.createElement(g.a,{id:e.field.id,value:t,onChange:e=>a(e.rgb)})})},{id:"load-more-btn-bg-color",component:Object(P.a)({label:"Background color",option:"loadMoreBtnBgColor",deps:["showLoadMoreBtn"],disabled:e=>M(e),render:(e,t,a)=>o.a.createElement(g.a,{id:e.field.id,value:t,onChange:e=>a(e.rgb)})})}]}]},181:function(e,t,a){e.exports={root:"MediaGridPicker__root",loading:"MediaGridPicker__loading layout__fill-parent",grid:"MediaGridPicker__grid","grid-disabled":"MediaGridPicker__grid-disabled MediaGridPicker__grid",gridDisabled:"MediaGridPicker__grid-disabled MediaGridPicker__grid",item:"MediaGridPicker__item"}},199:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(0),o=a.n(n),l=a(83),i=a(11);function r({id:e,value:t,onChange:a,showProOptions:n,options:r}){const c=new Set(t.map(e=>e.toString())),s=e=>{const t=e.target.value,n=e.target.checked,o=r.find(e=>e.value.toString()===t);o.isFakePro||o.isDisabled||(n?c.add(t):c.delete(t),a&&a(Array.from(c)))};return o.a.createElement("div",{className:"checkbox-list"},r.filter(e=>!!e).map((t,a)=>{var r;if(t.isFakePro&&!n)return null;const d=Object(i.a)("checkbox-list__option",{"--disabled":t.isDisabled||t.isFakePro});return o.a.createElement("label",{className:d,key:a},o.a.createElement("input",{type:"checkbox",id:e,value:null!==(r=t.value.toString())&&void 0!==r?r:"",checked:c.has(t.value.toString()),onChange:s,disabled:t.isDisabled||t.isFakePro}),o.a.createElement("span",null,t.label),t.isFakePro&&o.a.createElement("div",{className:"checkbox-list__pro-pill"},o.a.createElement(l.a,null)))}))}a(594)},20:function(e,t,a){"use strict";var n=a(0),o=a.n(n),l=a(50),i=a(84),r=a(243),c=a.n(r),s=a(2),d=a(5),u=a(10);function m({option:e,children:t,value:a,previewDevice:n,onChange:l,onChangeDevice:i}){const r=o.a.useCallback(t=>{l({[e]:s.a.isValid(a[e])?s.a.withValue(a[e],t,n):t})},[a[e],n,l]),m=s.a.isValid(a[e]),p=m?s.a.get(a[e],n,!0):a[e];return o.a.createElement("div",{className:c.a.propField},m&&o.a.createElement("div",{className:c.a.deviceBtn},o.a.createElement(d.a,{type:d.c.PILL,size:d.b.NORMAL,onClick:()=>i(s.a.cycle(n)),tooltip:""},o.a.createElement(u.a,{icon:s.a.getIcon(n)}))),o.a.createElement("div",{className:c.a.field},t(p,r)))}t.a=function({label:e,option:t,render:a,memo:n,deps:r,when:c,disabled:s,tooltip:d}){return n=null==n||n,c=null!=c?c:()=>!0,s=null!=s?s:()=>!1,(r=null!=r?r:[]).includes(t),Object(l.a)(n=>c(n)&&o.a.createElement(i.a,Object.assign({},n,{label:e,disabled:s(n),isFakePro:n.field.isFakePro}),o.a.createElement(m,Object.assign({},n,{option:t}),(e,t)=>a(n,e,t)),d&&d(n)),n?[t].concat(r):[])}},202:function(e,t,a){e.exports={root:"LayoutSelector__root","coming-soon":"LayoutSelector__coming-soon",comingSoon:"LayoutSelector__coming-soon",layout:"LayoutSelector__layout button__toggle-button button__panel-button theme__panel","layout-selected":"LayoutSelector__layout-selected LayoutSelector__layout button__toggle-button button__panel-button theme__panel button__toggle-button-on button__toggle-button button__panel-button theme__panel",layoutSelected:"LayoutSelector__layout-selected LayoutSelector__layout button__toggle-button button__panel-button theme__panel button__toggle-button-on button__toggle-button button__panel-button theme__panel"}},204:function(e,t,a){e.exports={"moderate-viewport":"ModerateViewport__moderate-viewport",moderateViewport:"ModerateViewport__moderate-viewport","moderate-blacklist":"ModerateViewport__moderate-blacklist ModerateViewport__moderate-viewport",moderateBlacklist:"ModerateViewport__moderate-blacklist ModerateViewport__moderate-viewport","moderate-whitelist":"ModerateViewport__moderate-whitelist ModerateViewport__moderate-viewport",moderateWhitelist:"ModerateViewport__moderate-whitelist ModerateViewport__moderate-viewport",loading:"ModerateViewport__loading layout__fill-parent",grid:"ModerateViewport__grid","grid-disabled":"ModerateViewport__grid-disabled ModerateViewport__grid",gridDisabled:"ModerateViewport__grid-disabled ModerateViewport__grid",item:"ModerateViewport__item","item-allowed":"ModerateViewport__item-allowed ModerateViewport__item",itemAllowed:"ModerateViewport__item-allowed ModerateViewport__item","item-thumbnail":"ModerateViewport__item-thumbnail",itemThumbnail:"ModerateViewport__item-thumbnail","item-removed":"ModerateViewport__item-removed ModerateViewport__item",itemRemoved:"ModerateViewport__item-removed ModerateViewport__item","item-focused":"ModerateViewport__item-focused",itemFocused:"ModerateViewport__item-focused"}},205:function(e,t,a){e.exports={item:"PromoteTile__item",selected:"PromoteTile__selected PromoteTile__item",thumbnail:"PromoteTile__thumbnail",unselected:"PromoteTile__unselected PromoteTile__item",icon:"PromoteTile__icon"}},224:function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));var n=a(0),o=a.n(n),l=a(130),i=a.n(l),r=a(4),c=a(10),s=a(16),d=a(6);const u=Object(d.b)((function({accounts:e,value:t,onChange:a}){t=null!=t?t:[],e=null!=e?e:r.b.list;const n=t.filter(t=>e.some(e=>e.id===t)),l=new Set(n);return o.a.createElement("div",{className:i.a.root},e.map((e,t)=>o.a.createElement(m,{key:t,account:e,selected:l.has(e.id),onChange:t=>{return n=e.id,t?l.add(n):l.delete(n),void a(Array.from(l));var n}})))}));function m({account:e,selected:t,onChange:a}){const n=`url("${r.b.getProfilePicUrl(e)}")`,l=()=>{a(!t)},d=Object(s.f)(l);return o.a.createElement("div",{className:i.a.row},o.a.createElement("div",{className:t?i.a.accountSelected:i.a.account,onClick:l,onKeyPress:d,role:"button",tabIndex:0},o.a.createElement("div",{className:i.a.profilePic,style:{backgroundImage:n}}),o.a.createElement("div",{className:i.a.infoColumn},o.a.createElement("div",{className:i.a.username},e.username),o.a.createElement("div",{className:i.a.accountType},e.type)),t&&o.a.createElement(c.a,{icon:"yes-alt",className:i.a.tickIcon})))}},225:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var n=a(0),o=a.n(n),l=a(224),i=a(23),r=a(4);function c(e){const t=r.b.getBusinessAccounts();return t.length>0?o.a.createElement(l.a,Object.assign({accounts:t},e)):o.a.createElement(i.a,{type:i.b.WARNING},"Connect a business account to use this feature.")}},226:function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));var n,o=a(0),l=a.n(o),i=a(56),r=a(7),c=a(47),s=a(23),d=(a(429),a(5)),u=a(10),m=a(238),p=a(3),b=a(11);function h({value:e,onChange:t}){const a=(e=null!=e?e:[]).slice(),o=a.map(e=>({id:e.tag,tag:e.tag,sort:e.sort})),[i,r]=l.a.useState(""),[c,s]=l.a.useState(""),[d,u]=l.a.useState(null);return l.a.createElement("div",{className:"hashtag-selector"},l.a.createElement(m.a,{className:"hashtag-selector__list",list:o,setList:e=>{const n=e.map(e=>({tag:e.tag,sort:e.sort}));t&&!Object(p.e)(n,a,(e,t)=>e.tag===t.tag&&e.sort===t.sort)&&t(n)},handle:".hashtag-selector__drag-handle",animation:200,delay:1e3,fallbackTolerance:5,delayOnTouchOnly:!0},a.map((e,n)=>l.a.createElement(g,{key:n,disabled:null!==d&&d!==n,hashtag:e,onEdit:e=>((e,n)=>{a[e]=n,t&&t(a)})(n,e),onDelete:()=>(e=>{a.splice(e,1),t&&t(a)})(n),onStartEdit:()=>u(n),onStopEdit:()=>u(null)}))),l.a.createElement(E,{type:n.ADD,disabled:null!==d,hashtag:{tag:i,sort:c},onDone:e=>{a.push(e),t&&t(a),r(""),s("")}}))}function g({hashtag:e,disabled:t,onEdit:a,onDelete:o,onStartEdit:i,onStopEdit:r}){const[c,s]=l.a.useState(!1),d=()=>{s(!1),r&&r()};return c?l.a.createElement(E,{type:n.EDIT,disabled:t,hashtag:e,onDone:e=>{a&&a(e),d()},onCancel:d}):l.a.createElement(f,{hashtag:e,disabled:t,onEdit:()=>{s(!0),i&&i()},onDelete:o})}function f({hashtag:e,disabled:t,onEdit:a,onDelete:n}){const o=Object(b.a)("hashtag-selector__row",{"--static":!0,"--disabled":t});return l.a.createElement("div",{className:o},l.a.createElement("div",{className:"hashtag-selector__drag-handle"},l.a.createElement(u.a,{icon:"menu"})),l.a.createElement("div",{className:"hashtag-selector__tag"},r.a.HashtagSorting.get(e.sort)," posts with ",l.a.createElement("strong",null,"#",e.tag)),l.a.createElement("div",{className:"hashtag-selector__buttons"},l.a.createElement(d.a,{className:"hashtag-selector__edit-btn",type:d.c.PILL,onClick:a,tooltip:"Edit hashtag"},l.a.createElement(u.a,{icon:"edit"})),l.a.createElement(d.a,{className:"hashtag-selector__delete-btn",type:d.c.DANGER_PILL,onClick:n,tooltip:"Remove hashtag"},l.a.createElement(u.a,{icon:"trash"}))))}function E({type:e,hashtag:t,disabled:a,onChange:m,onDone:p,onCancel:h,focus:g}){const f=e===n.ADD,[E,v]=l.a.useState({tag:"",sort:"recent"});Object(o.useEffect)(()=>{var e;v({tag:null!==(e=t.tag)&&void 0!==e?e:"",sort:t.sort?t.sort:"recent"})},[t]);const[_,w]=l.a.useState(0),[k,y]=l.a.useState(!0);Object(o.useEffect)(()=>{if(y(!1),_>0){const e=setTimeout(()=>y(!0),10),t=setTimeout(()=>y(!1),310);return()=>{clearTimeout(e),clearTimeout(t)}}},[_]);const C=()=>{!_&&p&&p(E)},O=Object(b.a)("hashtag-selector__row",{"--disabled":a});return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:O},l.a.createElement("input",{className:"hashtag-selector__tag",type:"text",value:"#"+E.tag,onChange:e=>{const t=e.target.value.slice(1),a={tag:Object(c.b)(t),sort:E.sort};w(t!==a.tag?Date.now():0),v(a),m&&m(a)},onKeyDown:e=>{switch(e.key){case"Enter":C();break;case"Escape":h&&h()}},autoFocus:g}),l.a.createElement(i.a,{className:"hashtag-selector__sort",placeholder:"Sort by",value:E.sort,onChange:e=>{v({tag:E.tag,sort:e.value}),m&&m({tag:E.tag,sort:e.value})},isSearchable:!1,options:Array.from(r.a.HashtagSorting.entries()).map(([e,t])=>({value:e,label:t}))}),l.a.createElement("div",{className:"hashtag-selector__buttons"},f?l.a.createElement(d.a,{type:d.c.PRIMARY,className:"hashtag-selector__add-btn",tooltip:"Add new hashtag",onClick:C,disabled:0===E.tag.length},"Add"):l.a.createElement(d.a,{type:f?d.c.PRIMARY:d.c.PILL,className:"hashtag-selector__done-btn",tooltip:"Done",disabled:0===E.tag.length,onClick:C},l.a.createElement(u.a,{icon:"yes"})),!f&&l.a.createElement(d.a,{type:d.c.DANGER_PILL,className:"hashtag-selector__cancel-btn",onClick:h,tooltip:"Cancel changes"},l.a.createElement(u.a,{icon:"no"})))),_?l.a.createElement(s.a,{type:s.b.ERROR,shake:k,showIcon:!0,isDismissible:!0,onDismiss:()=>w(0)},"Hashtags may only contain letters, numbers and underscores"):null)}!function(e){e[e.ADD=0]="ADD",e[e.EDIT=1]="EDIT"}(n||(n={}))},227:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a(0),o=a.n(n),l=a(174);function i(e){return o.a.createElement(l.a,Object.assign({groups:e.tab.groups},e))}},228:function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));var n=a(0),o=a.n(n),l=a(56),i=a(12),r=a(14),c=(a(18),a(134)),s=a(84),d=a(67),u=a(175),m=a(3);const p=[],b={linkType:"",postId:0,postTitle:"",postUrl:"",url:"",linkText:"",newTab:!1,linkDirectly:!0};function h({config:e,onChange:t}){e=null!=e?e:b,e=Object.assign(Object.assign({},b),e),0===p.length&&(p.push({value:"",label:"- Do not link -"},{value:"url",label:"Custom URL"}),r.a.config.postTypes.forEach(e=>{"attachment"!==e.name&&p.push({value:e.name,label:e.labels.singular_name})}));const a=o.a.useRef(),l=o.a.useRef(!1),i=o.a.useRef(),[s,d]=o.a.useState([]),[u,m]=o.a.useState(!1);Object(n.useEffect)(()=>(l.current=!1,e.linkType&&"url"!==e.linkType&&(m(!0),S("").then(e=>{l.current||d(e)}).finally(()=>{l.current||m(!1)})),()=>l.current=!0),[e.linkType]);const h=o.a.useCallback(a=>{t({linkType:a,postId:0,postTitle:"",postUrl:"",url:e.url,newTab:e.newTab,linkText:e.linkText})},[e,t]),k=o.a.useCallback(a=>{if(null===a)t(Object.assign(Object.assign({},e),{postId:0,postTitle:"",postUrl:""}));else{const n=i.current.find(e=>e.id==a.value);t(Object.assign(Object.assign({},e),{postId:a.value,postTitle:n.title,postUrl:n.permalink}))}},[e,t]),y=o.a.useCallback(a=>{t(Object.assign(Object.assign({},e),{url:a}))},[e,t]),C=o.a.useCallback(a=>{t(Object.assign(Object.assign({},e),{newTab:a}))},[e,t]),O=o.a.useCallback(a=>{t(Object.assign(Object.assign({},e),{linkDirectly:a}))},[e,t]),P=o.a.useCallback(a=>{t(Object.assign(Object.assign({},e),{linkText:a}))},[e,t]),S=o.a.useCallback(t=>(clearTimeout(a.current),new Promise(n=>{a.current=setTimeout(()=>{r.a.restApi.searchPosts(t,e.linkType).then(e=>{i.current=e.data,n(e.data.map(e=>({value:e.id,label:e.title})))}).catch(e=>{})},1e3)})),[e.linkType]),F=r.a.config.postTypes.find(t=>t.name===e.linkType);return o.a.createElement(o.a.Fragment,null,o.a.createElement(g,{value:e.linkType,onChange:h}),"url"===e.linkType&&o.a.createElement(f,{value:e.url,onChange:y}),e.linkType&&"url"!==e.linkType&&o.a.createElement(E,{postType:F,postId:e.postId,postTitle:e.postTitle,onChange:k,loadOptions:S,isLoading:u,defaultPosts:s}),e.linkType&&o.a.createElement(v,{value:e.linkDirectly,onChange:O}),e.linkType&&o.a.createElement(_,{value:e.newTab,onChange:C}),e.linkType&&o.a.createElement(w,{value:e.linkText,onChange:P,placeholder:c.a.getDefaultLinkText(e)}))}const g=o.a.memo((function({value:e,onChange:t}){return o.a.createElement(s.a,{id:"promo-link-to",label:"Link to"},o.a.createElement(l.a,{id:"promo-link-to",value:e||"",onChange:e=>t(e.value),options:p,isCreatable:!1}))})),f=o.a.memo((function({value:e,onChange:t}){return o.a.createElement(s.a,{id:"link-promo-url",label:"URL",wide:!0},o.a.createElement(u.a,{id:"link-promo-url",value:e,onChange:t}))})),E=o.a.memo((function({postType:e,postId:t,postTitle:a,onChange:n,defaultPosts:i,isLoading:r,loadOptions:c}){const d=e?"Search for a "+e.labels.singular_name:"Search";return o.a.createElement(s.a,{id:"link-promo-url",label:d,wide:!0},o.a.createElement(l.a,{async:!0,cacheOptions:!0,key:Object(m.w)(),id:"sli-promo-search-post",placeholder:"Select or start typing...",value:t||0,defaultValue:0,defaultInputValue:t?a:"",onChange:n,defaultOptions:i,loadOptions:c,noOptionsMessage:({inputValue:e})=>e.length?`No posts were found for "${e}"`:"Type to search for posts",loadingMessage:()=>"Searching...",isLoading:r,isSearchable:!0,isClearable:!0}))})),v=o.a.memo((function({value:e,onChange:t}){return o.a.createElement(s.a,{id:"promo-link-directly",label:"Link directly"},o.a.createElement(d.a,{id:"promo-link-directly",value:e,onChange:t}),o.a.createElement(o.a.Fragment,null,o.a.createElement("p",null,"Tick this box to make posts go directly to the link. If left unticked, posts will open the popup box."),o.a.createElement("p",null,"To enable your feed's popup box and sidebar:"),o.a.createElement("ol",{style:{marginLeft:15}},o.a.createElement("li",null,"Set the ",o.a.createElement("b",null,"Design » Feed » Open posts in")," option to ",o.a.createElement("b",null,"Popup box")),o.a.createElement("li",null,"Enable the ",o.a.createElement("b",null,"Design » Popup box » Show sidebar")," option."))))})),_=o.a.memo((function({value:e,onChange:t}){return o.a.createElement(s.a,{id:"promo-link-new-tab",label:"Open in a new tab"},o.a.createElement(d.a,{id:"promo-link-new-tab",value:e,onChange:t}))})),w=o.a.memo((function({value:e,onChange:t,placeholder:a}){return o.a.createElement(s.a,{id:"promo-link-text",label:"Popup box link text"},o.a.createElement(u.a,{id:"promo-link-text",value:e,onChange:t,placeholder:a}),o.a.createElement(o.a.Fragment,null,o.a.createElement("p",null,"The text to use for the link in the popup box sidebar:",o.a.createElement("br",null),o.a.createElement("img",{src:i.a.image("popup-link-text.png"),alt:""})),o.a.createElement("p",null,"Remember to enable your feed's popup box and sidebar, like so:"),o.a.createElement("ol",{style:{marginLeft:15}},o.a.createElement("li",null,"Set the ",o.a.createElement("b",null,"Design » Feed » Open posts in")," option to ",o.a.createElement("b",null,"Popup box")),o.a.createElement("li",null,"Enable the ",o.a.createElement("b",null,"Design » Popup box » Show sidebar")," option."))))}))},229:function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));var n=a(0),o=a.n(n),l=a(205),i=a.n(l),r=a(8),c=a(73),s=a(10),d=a(3);const u=o.a.memo((function({media:e,selected:t,promo:a}){const n=r.a.getType(a),l=r.a.getConfig(a),d=n&&n.isValid(l)&&n.getIcon?n.getIcon(e,l):void 0;return o.a.createElement("div",{className:t?i.a.selected:i.a.unselected},o.a.createElement(c.a,{media:e,className:i.a.thumbnail}),d&&o.a.createElement(s.a,{className:i.a.icon,icon:d}))}),(function(e,t){return e.selected===t.selected&&e.media.id===t.media.id&&r.a.getType(e.promo)==r.a.getType(e.promo)&&Object(d.c)(r.a.getConfig(e.promo),r.a.getConfig(t.promo))}))},230:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var n=a(0),o=a.n(n),l=a(291),i=a.n(l),r=a(73);function c({media:e}){return o.a.createElement("div",{className:i.a.container},o.a.createElement("div",{className:i.a.sizer},o.a.createElement(r.a,{media:e})))}},234:function(e,t,a){"use strict";a.d(t,"a",(function(){return T}));var n=a(0),o=a.n(n),l=a(288),i=a.n(l),r=a(90),c=a(246),s=a.n(c),d=a(7),u=a(83),m=a(371),p=a(23),b=a(65),h=a(94);const g=o.a.memo((function({value:e,onChange:t,tab:a}){const[n,l]=o.a.useState(!1);function i(){l(!1)}const r=e.moderationMode===d.a.ModerationMode.WHITELIST;return o.a.createElement(h.a,{padded:!0},o.a.createElement("div",null,o.a.createElement("p",null,"You can choose to hide specific posts or to only show posts that you choose."),o.a.createElement("p",null,"Choose the type of moderation that you wish to apply, then simply click on the posts that you "," ","want to show or hide. Posts that appear in grey will not be shown in the feed."),o.a.createElement("hr",null),o.a.createElement("div",{className:s.a.mode},a.isFakePro&&o.a.createElement("div",{className:s.a.proPill},o.a.createElement(u.a,null)),o.a.createElement(m.a,{name:"manualFilterMode",value:e.moderationMode,onChange:function(n){a.isFakePro||t({moderationMode:n,moderation:e.moderation})},disabled:a.isFakePro,options:[{value:d.a.ModerationMode.BLACKLIST,label:"Hide the selected posts"},{value:d.a.ModerationMode.WHITELIST,label:"Only show the selected posts"}]})),(e.moderation.length>0||r)&&o.a.createElement("a",{className:s.a.reset,onClick:function(){l(!0)}},"Reset moderation")),!a.isFakePro&&o.a.createElement("div",null,o.a.createElement("hr",null),o.a.createElement(p.a,{type:p.b.PRO_TIP,showIcon:!0},o.a.createElement("span",null,o.a.createElement("strong",null,"Pro tip"),":"," ","You can navigate the posts using arrow keys and select them by pressing Enter."))),o.a.createElement(b.a,{isOpen:n,title:"Are you sure?",buttons:["Yes","No"],onAccept:function(){a.isFakePro||(i(),t({moderationMode:d.a.ModerationMode.BLACKLIST,moderation:[]}))},onCancel:i},o.a.createElement("p",null,"Are you sure you want to reset your moderation settings? This cannot be undone.")))}),(e,t)=>e.value.moderationMode===t.value.moderationMode&&e.value.moderation.length===t.value.moderation.length);var f=a(204),E=a.n(f),v=a(73),_=a(76),w=a(3),k=a(172),y=a(11),C=d.a.ModerationMode;const O=o.a.memo((function({value:e,feed:t,tab:a,onChange:n}){const[l,i]=o.a.useState(0),r=new Set(e.moderation);return o.a.createElement(k.a,{feed:t,selected:l,onSelectMedia:(e,t)=>i(t),onClickMedia:function(t){if(a.isFakePro||!t)return;const o=new Set(e.moderation);o.has(t.id)?o.delete(t.id):o.add(t.id),n({moderation:Array.from(o),moderationMode:e.moderationMode})},autoFocusFirst:!0,disabled:a.isFakePro,store:_.b},(t,a)=>o.a.createElement(P,{media:t,mode:e.moderationMode,focused:a===l,selected:r.has(t.id)}))}),(function(e,t){return e.value.moderationMode===t.value.moderationMode&&e.value.moderation.length===t.value.moderation.length&&Object(w.e)(e.value.moderation,t.value.moderation)})),P=o.a.forwardRef(({media:e,selected:t,focused:a,mode:l},i)=>{i||(i=o.a.useRef()),Object(n.useEffect)(()=>{a&&i.current.focus()},[a]);const r=l===C.BLACKLIST,c=Object(y.b)(t!==r?E.a.itemAllowed:E.a.itemRemoved,a?E.a.itemFocused:null);return o.a.createElement("div",{ref:i,className:c},o.a.createElement(v.a,{media:e,className:E.a.itemThumbnail}))});var S=a(5),F=a(10);function T(e){const[t,a]=Object(n.useState)("content"),l=()=>a("sidebar"),c=()=>a("content");return o.a.createElement(r.a,{primary:"content",current:t,sidebar:t=>o.a.createElement(o.a.Fragment,null,t&&o.a.createElement(r.a.Navigation,{onClick:c}),o.a.createElement(g,Object.assign({},e))),content:t=>o.a.createElement("div",{className:i.a.viewport},t&&o.a.createElement("div",{className:i.a.mobileViewportHeader},o.a.createElement(S.a,{onClick:l},o.a.createElement(F.a,{icon:"admin-generic"}),o.a.createElement("span",null,"Moderation options"))),o.a.createElement(O,Object.assign({},e)))})}},235:function(e,t,a){"use strict";a.d(t,"a",(function(){return N}));var n=a(0),o=a.n(n),l=a(289),i=a.n(l),r=a(56),c=a(97),s=a(8),d=a(228),u=a(23),m=a(3),p=a(84),b=a(67),h=a(7),g=a(22),f=a(199),E=a(173);const v={id:"link",label:"Link",component:d.a,isValid:()=>!1},_={type:"link",config:{linkType:"url",url:"https://your-promotion-url.com",linkText:"Check out my promotion"}};function w({value:e,tab:t,onChange:a,selected:n,onNextPost:l,promoTypeRef:d}){const f=c.a.mediaStore.media[n],w=n>=c.a.mediaStore.media.length-1,k=o.a.useRef(g.a.isEmpty(e.promotions)?"link":g.a.values(e.promotions)[0].type),C=o.a.useCallback(n=>{if(!t.isFakePro){k.current=n.value;const t=g.a.map(e.promotions,e=>({type:n.value,config:s.a.getConfig(e)}));a({promotions:t})}},[t,e.promotions]),O=o.a.useCallback(o=>{if(!t.isFakePro){const t=c.a.mediaStore.media[n],l={type:k.current,config:Object(m.h)(o)},i=g.a.withEntry(e.promotions,t.id,l);a({promotions:i})}},[n,t.isFakePro]),P=o.a.useCallback(()=>{!t.isFakePro&&l()},[t.isFakePro]),S=t.isFakePro?_:h.a.getFeedPromo(f,e),F=t.isFakePro?v:s.a.getTypeById(k.current),T=s.a.getConfig(S),N=void 0!==s.a.getGlobalPromo(f)&&e.globalPromotionsEnabled,x=void 0!==s.a.getAutoPromo(f)&&e.autoPromotionsEnabled,I=s.a.getTypes().map(e=>({value:e.id,label:e.label}));return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:i.a.top},o.a.createElement("p",null,"Promote your blog posts, landing pages, products, and much more through your Instagram feed."),o.a.createElement("hr",null),o.a.createElement(p.a,{id:"enable-promo",label:"Enable promotion"},o.a.createElement(b.a,{value:e.promotionEnabled,onChange:e=>a({promotionEnabled:e})})),!e.promotionEnabled&&o.a.createElement(u.a,{type:u.b.WARNING,showIcon:!0},"All feed, global and automated promotions are disabled."," ","Promotions may still be edited but will not apply to posts in this feed."),o.a.createElement(y,{options:e,onChange:a}),o.a.createElement(p.a,{id:"promo-type",label:"Promotion type"},o.a.createElement(r.a,{id:"sli-promo-type",ref:d,value:F.id,onChange:C,options:I,isSearchable:!1,isCreatable:!1,isClearable:!1,disabled:t.isFakePro}))),o.a.createElement(E.a,{key:f?f.id:void 0,type:F,config:T,onChange:O,hasGlobal:N,hasAuto:x,showTutorial:!f,showNextBtn:"-more-"!==F.id,isNextBtnDisabled:w,onNext:P}),t.isFakePro&&o.a.createElement("div",{className:i.a.disabledOverlay}))}const k=[{value:"global",label:"Global promotions"},{value:"auto",label:"Automated promotions"}];function y({options:e,onChange:t}){const a=Object(n.useCallback)(e=>{t({globalPromotionsEnabled:e.includes("global"),autoPromotionsEnabled:e.includes("auto")})},[t]),l=[e.globalPromotionsEnabled?"global":0,e.autoPromotionsEnabled?"auto":0];return o.a.createElement(p.a,{id:"enable-other-promos",label:"Include other promotions",disabled:!e.promotionEnabled},o.a.createElement(f.a,{value:l,onChange:a,options:k}))}var C=a(172),O=a(229);const P=o.a.memo((function({value:e,feed:t,tab:a,selected:n,onSelectMedia:l,onClickMedia:i}){return o.a.createElement(C.a,{feed:t,store:c.a.mediaStore,selected:n,onSelectMedia:l,onClickMedia:i,disabled:a.isFakePro},(t,a)=>{const l=h.a.getPromo(t,e);return o.a.createElement(O.a,{media:t,selected:a===n,promo:l})})}),(function(e,t){return e.selected===t.selected&&e.onSelectMedia===t.onSelectMedia&&e.onClickMedia===t.onClickMedia&&e.value.promotionEnabled===t.value.promotionEnabled&&e.value.autoPromotionsEnabled===t.value.autoPromotionsEnabled&&e.value.globalPromotionsEnabled===t.value.globalPromotionsEnabled&&g.a.size(e.value.promotions)===g.a.size(t.value.promotions)&&e.feed.media.length===t.feed.media.length&&e.value.promotions===t.value.promotions}));var S=a(90),F=a(94),T=a(230);function N(e){const[t,a]=o.a.useState(null),[n,l]=o.a.useState(!1),i=()=>l(!1),r=o.a.useRef(),s=o.a.useCallback(()=>{a(e=>Math.min(e+1,c.a.mediaStore.media.length-1))},[]),d=o.a.useCallback((e,t)=>{a(t)},[]),u=o.a.useCallback((e,t)=>{a(t),l(!0),requestAnimationFrame(()=>{r.current&&null!==t&&r.current.focus()})},[r]);return o.a.createElement(S.a,{primary:"content",current:n?"sidebar":"content",sidebar:a=>o.a.createElement(o.a.Fragment,null,a&&o.a.createElement(o.a.Fragment,null,o.a.createElement(S.a.Navigation,{onClick:i}),c.a.mediaStore.media[t]&&o.a.createElement(T.a,{media:c.a.mediaStore.media[t]})),o.a.createElement(F.a,null,o.a.createElement(w,Object.assign({},e,{selected:t,onNextPost:s,promoTypeRef:r})))),content:a=>o.a.createElement(o.a.Fragment,null,a&&o.a.createElement("div",{style:{textAlign:"center"}},o.a.createElement("p",null,"Click or tap a post to set up a promotion for it")),o.a.createElement(P,Object.assign({},e,{selected:t,onSelectMedia:d,onClickMedia:u})))})}},243:function(e,t,a){e.exports={"prop-field":"EditorPropField__prop-field",propField:"EditorPropField__prop-field","device-btn":"EditorPropField__device-btn",deviceBtn:"EditorPropField__device-btn",field:"EditorPropField__field"}},244:function(e,t,a){e.exports={"filter-field":"FilterFieldRow__filter-field",filterField:"FilterFieldRow__filter-field",bordered:"FilterFieldRow__bordered FilterFieldRow__filter-field",label:"FilterFieldRow__label"}},245:function(e,t,a){e.exports={"inc-global-filters":"IncGlobalFiltersField__inc-global-filters",incGlobalFilters:"IncGlobalFiltersField__inc-global-filters",label:"IncGlobalFiltersField__label",field:"IncGlobalFiltersField__field"}},246:function(e,t,a){e.exports={mode:"ModerateSidebar__mode","pro-pill":"ModerateSidebar__pro-pill",proPill:"ModerateSidebar__pro-pill",reset:"ModerateSidebar__reset"}},250:function(e,t,a){e.exports={root:"FeedEditor__root",hidden:"FeedEditor__hidden",content:"FeedEditor__content","accounts-onboarding":"FeedEditor__accounts-onboarding",accountsOnboarding:"FeedEditor__accounts-onboarding"}},251:function(e,t,a){e.exports={navbar:"EditorNavbar__navbar layout__z-high","fake-pro-item":"EditorNavbar__fake-pro-item",fakeProItem:"EditorNavbar__fake-pro-item","pro-pill":"EditorNavbar__pro-pill",proPill:"EditorNavbar__pro-pill"}},284:function(e,t,a){e.exports={"connect-button":"ConnectSidebar__connect-button",connectButton:"ConnectSidebar__connect-button","connect-sidebar":"ConnectSidebar__connect-sidebar",connectSidebar:"ConnectSidebar__connect-sidebar","connect-account":"ConnectSidebar__connect-account",connectAccount:"ConnectSidebar__connect-account"}},285:function(e,t,a){e.exports={"field-group":"FieldGroup__field-group",fieldGroup:"FieldGroup__field-group",spoiler:"FieldGroup__spoiler","pro-pill":"FieldGroup__pro-pill",proPill:"FieldGroup__pro-pill",disabled:"FieldGroup__disabled"}},288:function(e,t,a){e.exports={viewport:"ModerateTab__viewport","mobile-viewport-header":"ModerateTab__mobile-viewport-header",mobileViewportHeader:"ModerateTab__mobile-viewport-header"}},289:function(e,t,a){e.exports={top:"PromoteSidebar__top",row:"PromoteSidebar__row","disabled-overlay":"PromoteSidebar__disabled-overlay",disabledOverlay:"PromoteSidebar__disabled-overlay"}},290:function(e,t,a){e.exports={bottom:"PromotionFields__bottom","remove-promo":"PromotionFields__remove-promo",removePromo:"PromotionFields__remove-promo"}},291:function(e,t,a){e.exports={container:"PromotePreviewTile__container",sizer:"PromotePreviewTile__sizer"}},363:function(e,t,a){e.exports={"field-group-list":"FieldGroupList__field-group-list",fieldGroupList:"FieldGroupList__field-group-list"}},366:function(e,t,a){e.exports={"preview-options":"DesignSidebar__preview-options",previewOptions:"DesignSidebar__preview-options"}},379:function(e,t,a){e.exports={viewport:"EditorViewport__viewport"}},380:function(e,t,a){"use strict";a.d(t,"a",(function(){return g}));var n=a(0),o=a.n(n),l=a(132),i=a.n(l),r=a(14),c=a(23),s=a(55),d=a(231),u=a(5),m=a(12),p=a(26),b=a(223),h=p.a.SavedFeed;function g({store:e,name:t}){const a=h.getLabel(t),n=`[instagram feed="${e.feed.id}"]`,l=r.a.config.adminUrl+"/widgets.php",g=r.a.config.adminUrl+"/customize.php?autofocus%5Bpanel%5D=widgets";return e.feed.id?o.a.createElement("div",{className:i.a.embedSidebar},e.feed.usages.length>0&&o.a.createElement(s.a,{label:"Instances",defaultOpen:!0,fitted:!0,scrollIntoView:!0},o.a.createElement("div",{className:i.a.instances},o.a.createElement("p",null,"This feed is currently being shown in these pages:"),o.a.createElement("ul",null,e.feed.usages.map((e,t)=>o.a.createElement("li",{key:t},o.a.createElement("a",{href:`${r.a.config.adminUrl}/post.php?action=edit&post=${e.id}`,target:"_blank"},e.name),o.a.createElement("span",null,"(",e.type,")")))))),o.a.createElement(s.a,{label:"Shortcode",defaultOpen:!0,fitted:!0,scrollIntoView:!0},o.a.createElement("div",null,o.a.createElement("p",null,"Copy the shortcode below and paste it in any page or post to embed this feed:"),o.a.createElement("div",{className:i.a.shortcode},o.a.createElement("code",null,n),o.a.createElement(d.a,{feed:e.feed,toaster:e.toaster},o.a.createElement(u.a,{type:u.c.SECONDARY},"Copy"))))),r.a.config.hasElementor&&o.a.createElement(s.a,{className:m.a.isPro?void 0:i.a.pro,label:m.a.isPro?"Elementor Widget":o.a.createElement(b.a,null,"Elementor widget"),defaultOpen:!0,fitted:!0,scrollIntoView:!0},o.a.createElement("div",null,o.a.createElement("p",null,"To embed this feed in Elementor:"),o.a.createElement("ol",null,o.a.createElement("li",null,o.a.createElement("span",null,"Search for the ",o.a.createElement("b",null,"Spotlight Instagram feed")," widget",o.a.createElement(c.a,{type:c.b.INFO,showIcon:!0},"Choose the one with the Instagram logo. The other one is for the normal"," ","WordPress widget."))),o.a.createElement("li",null,"Add it to your post or page"),o.a.createElement("li",null,"Then choose ",o.a.createElement("strong",null,a)," from the list of feeds.")),o.a.createElement(E,{images:[{src:"elementor-widget-search.png",alt:"Searching for the widget"},{src:"elementor-widget-feed.png",alt:"The feed in a widget"}]}))),o.a.createElement(s.a,{label:"WordPress Block",defaultOpen:!r.a.config.hasElementor,fitted:!0,scrollIntoView:!0},o.a.createElement("div",null,o.a.createElement("p",null,"To embed this feed in the WordPress block editor:"),o.a.createElement("ol",null,o.a.createElement("li",null,"Search for the ",o.a.createElement("b",null,"Spotlight Instagram feed")," block"),o.a.createElement("li",null,"add it to your post or page."),p.a.list.length>1?o.a.createElement("li",null,"Next, choose ",o.a.createElement("strong",null,a)," from the list of feeds."):o.a.createElement("li",null,"Since this is your only feed, Spotlight will automatically show this feed.")),p.a.list.length>1?o.a.createElement(E,{images:[{src:"wp-block-search.png",alt:"Searching for the block"},{src:"wp-block-select.png",alt:"Choosing a feed for the block"},{src:"wp-block.png",alt:"The feed in a block"}]}):o.a.createElement(E,{images:[{src:"wp-block-search.png",alt:"Searching for the block"},{src:"wp-block.png",alt:"The feed in a block"}]}))),o.a.createElement(s.a,{label:"WordPress Widget",defaultOpen:!1,fitted:!0,scrollIntoView:!0},o.a.createElement("div",null,o.a.createElement("p",null,"To embed this feed as a WordPress widget:"),o.a.createElement("ol",null,o.a.createElement("li",null,"Go to the"," ",o.a.createElement("a",{href:l,target:"_blank"},"Appearance » Widgets")," ","page or the"," ",o.a.createElement("a",{href:g,target:"_blank"},"Widgets section of the Customizer")),o.a.createElement("li",null,"Then, add a ",o.a.createElement("strong",null,"Spotlight Instagram Feed")," widget"),o.a.createElement("li",null,"In the widget's settings, choose the ",o.a.createElement("strong",null,a)," as the feed"," ","to be shown.")),o.a.createElement(f,{img:"widget.png",alt:"Example of a widget"})))):o.a.createElement("div",{className:i.a.embedSidebar},o.a.createElement("div",{className:i.a.saveMessage},o.a.createElement(c.a,{type:c.b.INFO,showIcon:!0},"You're almost there... Click the ",o.a.createElement("strong",null,"Save")," button at the top-right to be"," ","able to embed this feed on your site!")))}function f({img:e,alt:t,annotation:a,onClick:n}){return o.a.createElement("figure",{className:i.a.example},o.a.createElement("figcaption",{className:i.a.caption},"Example:"),o.a.createElement("img",{src:m.a.image(e),alt:null!=t?t:"",style:{cursor:n?"pointer":"default"},onClick:n}),void 0!==a&&o.a.createElement("div",{className:i.a.exampleAnnotation},a))}function E({images:e}){const[t,a]=o.a.useState(0),l=o.a.useRef(),i=()=>{r(),l.current=setInterval(c,2e3)},r=()=>{clearInterval(l.current)},c=()=>{i(),a(t=>(t+1)%e.length)};Object(n.useEffect)(()=>(i(),r),[]);const s=e[t];return o.a.createElement(f,{img:s.src,alt:s.alt,annotation:t+1,onClick:c})}},383:function(e,t,a){"use strict";a.d(t,"a",(function(){return G}));var n=a(0),o=a.n(n),l=a(250),i=a.n(l),r=a(251),c=a.n(r),s=a(12),d=a(7),u=a(64),m=a(83),p=a(143),b=a(252),h=a(275),g=a(125),f=a(5),E=a(276),v=a(277),_=a(146),w=a(26).a.SavedFeed;const k=o.a.memo((function(e){const t=d.a.Options.hasSources(e.value),a=(e.showFakeOptions||s.a.isPro?e.tabs:e.tabs.filter(e=>!e.isFakePro)).map(e=>({key:e.id,label:o.a.createElement(y,{key:e.id,tab:e}),disabled:!e.alwaysEnabled&&!t}));return o.a.createElement("div",{className:c.a.navbar},o.a.createElement(p.a,{breakpoints:b.a.Sizes.ALL},t=>{const n=e.showNameField?o.a.createElement(h.a,{key:"name-field",value:e.name,onDone:e.onRename,defaultValue:w.getDefaultName()}):void 0,l=e.showDoneBtn?o.a.createElement(g.a,{key:"save-btn",content:t=>t?"Saving ...":e.doneBtnText,isSaving:e.isSaving,disabled:!e.isDoneBtnEnabled,onClick:e.onSave}):void 0,i=e.showCancelBtn?o.a.createElement(f.a,{key:"cancel-btn",onClick:e.onCancel,disabled:!e.isCancelBtnEnabled,children:e.cancelBtnText}):void 0;if(t<=b.a.Sizes.SMALL)return o.a.createElement(E.a,{steps:a,current:e.tabId,onChangeStep:e.onChangeTab,firstStep:i,lastStep:l},n);if(t<=b.a.Sizes.MEDIUM)return o.a.createElement(v.a,{pages:a,current:e.tabId,onChangePage:e.onChangeTab,hideMenuArrow:!0,showNavArrows:!0},{path:n?[n]:[],right:[i,l]});let r=[o.a.createElement(u.a,{key:"logo"})];return n&&r.push(n),o.a.createElement(_.a,{current:e.tabId,onClickTab:e.onChangeTab},{path:r,tabs:a,right:[i,l]})}))}),(e,t)=>e.tabId===t.tabId&&e.name===t.name&&e.showFakeOptions===t.showFakeOptions&&e.showDoneBtn===t.showDoneBtn&&e.showCancelBtn===t.showCancelBtn&&e.doneBtnText===t.doneBtnText&&e.cancelBtnText===t.cancelBtnText&&e.showNameField===t.showNameField&&e.onChangeTab===t.onChangeTab&&e.onRename===t.onRename&&e.onSave===t.onSave&&e.onCancel===t.onCancel&&e.isSaving===t.isSaving&&e.isDoneBtnEnabled===t.isDoneBtnEnabled&&e.isCancelBtnEnabled===t.isCancelBtnEnabled&&d.a.Options.hasSources(e.value)===d.a.Options.hasSources(t.value));function y({tab:e}){return e.isFakePro?o.a.createElement(C,{tab:e}):o.a.createElement("span",null,e.label)}function C({tab:e}){return o.a.createElement("span",{className:c.a.fakeProItem},o.a.createElement(m.a,{className:c.a.proPill}),o.a.createElement("span",null,e.label))}var O=a(94),P=a(90);function S(e){var{children:t,showPreviewBtn:a,onOpenPreview:n}=e,l=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(a[n[o]]=e[n[o]])}return a}(e,["children","showPreviewBtn","onOpenPreview"]);return!l.tab.sidebar||l.tab.showSidebar&&!l.tab.showSidebar()?null:o.a.createElement(o.a.Fragment,null,a&&o.a.createElement(P.a.Navigation,{align:"right",text:"Preview",icon:"visibility",onClick:n}),o.a.createElement(O.a,null,l.tab.sidebar&&o.a.createElement(l.tab.sidebar,Object.assign({tab:l.tab},l)),null!=t?t:null))}var F=a(379),T=a.n(F),N=a(70),x=a.n(N),I=a(6),j=a(2),M=a(108),A=a(92),L=a(10);const B=Object(I.b)(({feed:e,showCloseBtn:t,onClose:a})=>{if(!d.a.Options.hasSources(e.options))return o.a.createElement(A.a,{className:x.a.onboarding},t&&o.a.createElement(f.a,{onClick:a},o.a.createElement(L.a,{icon:"hidden"}),o.a.createElement("span",null,"Close Preview")),o.a.createElement("div",null,o.a.createElement("h1",null,"Select an account to get"," ",o.a.createElement("span",{className:x.a.noBreak},"started"," "," →")),o.a.createElement("p",null,"Your Instagram posts will be displayed instantly so you can easily design your feed using"," ","the live interactive preview.")));const n=e.mode,l=n===j.a.Mode.DESKTOP,i=n===j.a.Mode.TABLET,r=n===j.a.Mode.PHONE,c=l?x.a.root:x.a.shrunkRoot,s=r?x.a.phoneSizer:i?x.a.tabletSizer:x.a.sizer;return o.a.createElement("div",{className:c},o.a.createElement("div",{className:x.a.statusBar},o.a.createElement("div",{className:x.a.statusIndicator},o.a.createElement("svg",{viewBox:"0 0 24 24"},o.a.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"red"})),o.a.createElement("span",{className:x.a.indicatorText},"Live interactive preview"),o.a.createElement("span",{className:x.a.indicatorDash}," — "),o.a.createElement("span",{className:x.a.indicatorCounter},"Showing ",e.media.length," out of ",e.totalMedia," posts"),e.numLoadedMore>0&&o.a.createElement("span",{className:x.a.reset},"(",o.a.createElement("a",{onClick:()=>e.load()},"Reset"),")")),t&&o.a.createElement(f.a,{onClick:a},o.a.createElement(L.a,{icon:"hidden"}),o.a.createElement("span",null,"Close Preview"))),o.a.createElement("div",{className:x.a.container},o.a.createElement("div",{className:s},0===e.media.length&&d.a.Options.hasSources(e.options)&&d.a.Options.isLimitingPosts(e.options)?o.a.createElement("div",{className:x.a.noPostsMsg},o.a.createElement("p",null,"There are no posts to show. Try relaxing your filters and moderation.")):o.a.createElement(M.a,{feed:e}))))});function D(e){var{children:t,isCollapsed:a,onClosePreview:n}=e,l=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(a[n[o]]=e[n[o]])}return a}(e,["children","isCollapsed","onClosePreview"]);return o.a.createElement("div",{className:T.a.viewport},t||(l.tab.viewport?o.a.createElement(l.tab.viewport,Object.assign({},l)):o.a.createElement(B,Object.assign({},l,{showCloseBtn:a,onClose:n}))))}var R=a(4),z=a(112);function H({value:e,feed:t,onChange:a,onChangeTab:n}){const[l,i]=o.a.useState(!1);return o.a.createElement(z.a,{beforeConnect:t=>{i(!0),a&&a({accounts:e.accounts.concat([t])})},onConnect:()=>{setTimeout(()=>{t.load(),n&&n("design")},A.a.TRANSITION_DURATION)},isTransitioning:l})}function G(e){var t,a,l,r,c,s,u,m,p=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(a[n[o]]=e[n[o]])}return a}(e,[]);const[b,h]=Object(n.useState)(!1),g=()=>h(!0),f=()=>h(!1);p.tabs=null!==(t=p.tabs)&&void 0!==t?t:[],p.showDoneBtn=null===(a=p.showDoneBtn)||void 0===a||a,p.showCancelBtn=null===(l=p.showCancelBtn)||void 0===l||l,p.showNameField=null!==(r=p.showNameField)&&void 0!==r&&r,p.doneBtnText=null!==(c=p.doneBtnText)&&void 0!==c?c:"Done",p.cancelBtnText=null!==(s=p.cancelBtnText)&&void 0!==s?s:"Cancel",p.isDoneBtnEnabled=null===(u=p.isDoneBtnEnabled)||void 0===u||u,p.isCancelBtnEnabled=null===(m=p.isCancelBtnEnabled)||void 0===m||m;const E=p.tabs.find(e=>e.id===p.tabId),v=o.a.useRef();v.current||(v.current=new d.a(p.value),v.current.load()),Object(n.useEffect)(()=>{v.current.options=p.value},[p.value]),Object(n.useEffect)(()=>{v.current.mode=p.previewDevice},[p.previewDevice]);const _=d.a.ComputedOptions.compute(p.value),w=Object.assign(Object.assign({},p),{computed:_,tab:E,feed:v.current});return o.a.createElement("div",{className:i.a.root},o.a.createElement(k,Object.assign({},p)),R.b.hasAccounts()?o.a.createElement("div",{className:i.a.content},void 0===E.component?o.a.createElement(P.a,{primary:"content",current:b?"content":"sidebar",sidebar:e=>o.a.createElement(S,Object.assign({},w,{showPreviewBtn:e,onOpenPreview:g})),content:e=>o.a.createElement(D,Object.assign({},w,{isCollapsed:e,onClosePreview:f}))}):o.a.createElement(E.component,Object.assign({},w))):o.a.createElement("div",{className:i.a.accountsOnboarding},o.a.createElement(H,Object.assign({},w))))}},429:function(e,t,a){},50:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(0),o=a.n(n),l=a(3),i=a(2);function r(e,t=[]){return o.a.memo(e,(e,a)=>{const n=t.reduce((t,n)=>t&&Object(l.c)(e.value[n],a.value[n]),t.length>0),o=!t.reduce((e,t)=>e||i.a.isValid(a.value[t]),!1)||e.previewDevice===a.previewDevice&&e.onChangeDevice===a.onChangeDevice;return n&&o&&e.showFakeOptions===a.showFakeOptions&&e.onChange===a.onChange})}},595:function(e,t,a){},63:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a(0),o=a.n(n),l=a(368);function i({value:e,onChange:t,min:a,emptyMin:n,placeholder:i,id:r,unit:c}){e=null!=e?e:"",a=null!=a?a:0,i=null!=i?i:"",n=null!=n&&n;const s=o.a.useCallback(e=>{const n=e.target.value,o=parseInt(n),l=isNaN(o)?n:Math.max(a,o);t&&t(l)},[a,t]),d=o.a.useCallback(()=>{n&&e<=a&&t&&t("")},[n,e,a,t]),u=o.a.useCallback(o=>{"ArrowUp"===o.key&&""===e&&t&&t(n?a+1:a)},[e,a,n,t]),m=n&&e<=a?"":e;return c?o.a.createElement(l.a,{id:r,type:"number",unit:c,value:m,min:a,placeholder:i+"",onChange:s,onBlur:d,onKeyDown:u}):o.a.createElement("input",{id:r,type:"number",value:m,min:a,placeholder:i+"",onChange:s,onBlur:d,onKeyDown:u})}},67:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a(0),o=a.n(n);function l({id:e,value:t,onChange:a,disabled:n}){return o.a.createElement("div",{className:"checkbox-field"},o.a.createElement("div",{className:"checkbox-field__aligner"},o.a.createElement("input",{id:e,type:"checkbox",value:"1",checked:!!t,onChange:e=>a(e.target.checked),disabled:n})))}a(353)},70:function(e,t,a){e.exports={root:"FeedPreview__root","shrunk-root":"FeedPreview__shrunk-root FeedPreview__root",shrunkRoot:"FeedPreview__shrunk-root FeedPreview__root","status-bar":"FeedPreview__status-bar",statusBar:"FeedPreview__status-bar","status-indicator":"FeedPreview__status-indicator",statusIndicator:"FeedPreview__status-indicator",reset:"FeedPreview__reset",container:"FeedPreview__container","no-posts-msg":"FeedPreview__no-posts-msg",noPostsMsg:"FeedPreview__no-posts-msg",indicators:"FeedPreview__indicators","waiting-indicator":"FeedPreview__waiting-indicator",waitingIndicator:"FeedPreview__waiting-indicator","loading-indicator":"FeedPreview__loading-indicator",loadingIndicator:"FeedPreview__loading-indicator",sizer:"FeedPreview__sizer","shrunk-sizer":"FeedPreview__shrunk-sizer FeedPreview__sizer",shrunkSizer:"FeedPreview__shrunk-sizer FeedPreview__sizer","tablet-sizer":"FeedPreview__tablet-sizer FeedPreview__shrunk-sizer FeedPreview__sizer",tabletSizer:"FeedPreview__tablet-sizer FeedPreview__shrunk-sizer FeedPreview__sizer","phone-sizer":"FeedPreview__phone-sizer FeedPreview__shrunk-sizer FeedPreview__sizer",phoneSizer:"FeedPreview__phone-sizer FeedPreview__shrunk-sizer FeedPreview__sizer",onboarding:"FeedPreview__onboarding","no-break":"FeedPreview__no-break",noBreak:"FeedPreview__no-break",controls:"FeedPreview__controls",control:"FeedPreview__control","control-label":"FeedPreview__control-label",controlLabel:"FeedPreview__control-label","indicator-dash":"FeedPreview__indicator-dash",indicatorDash:"FeedPreview__indicator-dash","indicator-text":"FeedPreview__indicator-text",indicatorText:"FeedPreview__indicator-text","indicator-animation":"FeedPreview__indicator-animation",indicatorAnimation:"FeedPreview__indicator-animation","loading-animation":"FeedPreview__loading-animation",loadingAnimation:"FeedPreview__loading-animation"}},84:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(0),o=a.n(n),l=a(149),i=a.n(l),r=a(113),c=a(83);function s({id:e,label:t,children:a,wide:n,disabled:l,isFakePro:s}){const d=Array.isArray(a)?a[0]:a,u=Array.isArray(a)?a[1]:void 0;return o.a.createElement("div",{className:l||s?i.a.disabled:n?i.a.wide:i.a.container},o.a.createElement("div",{className:i.a.label},o.a.createElement("div",{className:i.a.labelAligner},o.a.createElement("label",{htmlFor:e},t),u&&o.a.createElement(r.a,null,u))),o.a.createElement("div",{className:i.a.content},d),s&&o.a.createElement(c.a,{className:i.a.proPill}))}},95:function(e,t,a){"use strict";var n=a(0),o=a.n(n),l=a(284),i=a.n(l),r=a(4),c=a(98),s=a(174),d=a(366),u=a.n(d),m=a(2),p=a(7),b=a(70),h=a.n(b),g=a(286),f=a(5),E=a(10),v=a(14),_=a(12);function w(e){const t=o.a.useCallback(()=>e.onToggleFakeOptions(!0),[]),a=o.a.useCallback(()=>e.onToggleFakeOptions(!1),[]);return o.a.createElement("div",{className:h.a.controls},o.a.createElement("div",{className:h.a.control},o.a.createElement("span",{className:h.a.controlLabel},"Preview device"),o.a.createElement(g.a,null,m.a.MODES.map((t,a)=>o.a.createElement(f.a,{key:a,type:f.c.TOGGLE,onClick:()=>e.onChangeDevice(t),active:e.previewDevice===t,tooltip:t.name},o.a.createElement(E.a,{icon:t.icon}))))),!_.a.isPro&&o.a.createElement("div",{className:h.a.control},o.a.createElement("span",{className:h.a.controlLabel},"PRO features",o.a.createElement("span",null," ","—"," ",o.a.createElement("a",{href:v.a.resources.upgradeLocalUrl,target:"_blank"},"Upgrade now"))),o.a.createElement(g.a,null,o.a.createElement(f.a,{type:f.c.TOGGLE,active:e.showFakeOptions,onClick:t,tooltip:"Show PRO features"},"Show"),o.a.createElement(f.a,{type:f.c.TOGGLE,active:!e.showFakeOptions,onClick:a,tooltip:"Hide PRO features"},"Hide"))))}var k=a(50),y=a(224),C=a(225),O=a(226),P=[{id:"accounts",label:"Show posts from these accounts",fields:[{id:"accounts",component:Object(k.a)(({value:e,onChange:t})=>o.a.createElement(y.a,{value:e.accounts,onChange:e=>t({accounts:e})}),["accounts"])}]},{id:"tagged",label:"Show posts where these accounts are tagged",isFakePro:!0,fields:[{id:"tagged",component:Object(k.a)(()=>o.a.createElement(C.a,{value:[]}),["tagged"])}]},{id:"hashtags",label:"Show posts with these hashtags",isFakePro:!0,fields:[{id:"hashtags",component:Object(k.a)(()=>o.a.createElement(O.a,{value:[]}),["hashtags"])}]}],S=a(177),F=a(127),T=a(121),N=a(128),x=a(120),I=[{id:"caption-filters",label:"Caption filtering",isFakePro:!0,fields:[{id:"caption-whitelist",component:Object(k.a)(({field:e})=>o.a.createElement(F.a,{label:"Only show posts with these words or phrases"},o.a.createElement(T.a,{id:e.id,value:[]})))},{id:"caption-whitelist-settings",component:Object(k.a)(()=>o.a.createElement(N.a,{value:!0}))},{id:"caption-blacklist",component:Object(k.a)(({field:e})=>o.a.createElement(F.a,{label:"Hide posts with these words or phrases",bordered:!0},o.a.createElement(T.a,{id:e.id,value:[]})))},{id:"caption-blacklist-settings",component:Object(k.a)(()=>o.a.createElement(N.a,{value:!0}))}]},{id:"hashtag-filters",label:"Hashtag filtering",isFakePro:!0,fields:[{id:"hashtag-whitelist",component:Object(k.a)(({field:e})=>o.a.createElement(F.a,{label:"Only show posts with these hashtags"},o.a.createElement(x.a,{id:e.id,value:[]})))},{id:"hashtag-whitelist-settings",component:Object(k.a)(()=>o.a.createElement(N.a,{value:!0}))},{id:"hashtag-blacklist",component:Object(k.a)(({field:e})=>o.a.createElement(F.a,{label:"Hide posts with these hashtags",bordered:!0},o.a.createElement(x.a,{id:e.id,value:[]})))},{id:"hashtag-blacklist-settings",component:Object(k.a)(()=>o.a.createElement(N.a,{value:!0}))}]}],j=a(227),M=a(234),A=a(235),L=[{id:"connect",label:"Connect",alwaysEnabled:!0,groups:P,sidebar:function(e){const[,t]=o.a.useState(0);return r.b.hasAccounts()?o.a.createElement("div",{className:i.a.connectSidebar},o.a.createElement("div",{className:i.a.connectButton},o.a.createElement(c.a,{onConnect:a=>{e.onChange&&e.onChange({accounts:e.value.accounts.concat([a])}),t(e=>e++)}})),o.a.createElement(s.a,Object.assign({groups:e.tab.groups},e))):null}},{id:"design",label:"Design",groups:S.a,sidebar:function(e){let t=e.tab.groups;return m.a.get(e.value.linkBehavior,e.previewDevice,!0)!==p.a.LinkBehavior.LIGHTBOX&&(t=t.filter(({id:e})=>"lightbox"!==e)),o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:u.a.previewOptions},o.a.createElement(w,Object.assign({},e))),o.a.createElement(s.a,Object.assign({groups:t},e)))}},{id:"filter",label:"Filter",isFakePro:!0,groups:I,sidebar:j.a},{id:"moderate",label:"Moderate",isFakePro:!0,groups:I,component:M.a},{id:"promote",label:"Promote",isFakePro:!0,component:A.a}];t.a={tabs:L,openGroups:["accounts","tagged","hashtags","layouts","feed"],showDoneBtn:!0,showCancelBtn:!1,showNameField:!1,isDoneBtnEnabled:!0,isCancelBtnEnabled:!0,doneBtnText:"Done",cancelBtnText:"Cancel"}}}]);
ui/dist/elementor-editor.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.spotlight=t(require("React"),require("ReactDOM")):e.spotlight=t(e.React,e.ReactDOM)}(window,(function(e,t){return(window.webpackJsonpspotlight=window.webpackJsonpspotlight||[]).push([[9],{0:function(t,n){t.exports=e},10:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(0),a=n.n(o),i=n(11);const r=e=>{var{icon:t,className:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}(e,["icon","className"]);return a.a.createElement("span",Object.assign({className:Object(i.b)("dashicons","dashicons-"+t,n)},o))}},108:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(0),a=n.n(o),i=n(6),r=n(27),s=n(7);const l=Object(i.b)(({feed:e})=>{const t=r.a.getById(e.options.layout),n=s.a.ComputedOptions.compute(e.options,e.mode);return a.a.createElement("div",{className:"feed"},a.a.createElement(t.component,{feed:e,options:n}))})},109:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o=n(0),a=n.n(o),i=n(60),r=n.n(i),s=n(17),l=n(51),c=n.n(l),u=n(37),d=n.n(u),p=n(6),h=n(3),m=n(113),f=Object(p.b)((function({field:e}){const t="settings-field-"+Object(h.w)(),n=!e.label||e.fullWidth;return a.a.createElement("div",{className:d.a.root},e.label&&a.a.createElement("div",{className:d.a.label},a.a.createElement("label",{htmlFor:t},e.label)),a.a.createElement("div",{className:d.a.container},a.a.createElement("div",{className:n?d.a.controlFullWidth:d.a.controlPartialWidth},a.a.createElement(e.component,{id:t})),e.tooltip&&a.a.createElement("div",{className:d.a.tooltip},a.a.createElement(m.a,null,e.tooltip))))}));function g({group:e}){return a.a.createElement("div",{className:c.a.root},e.title&&e.title.length>0&&a.a.createElement("h1",{className:c.a.title},e.title),e.component&&a.a.createElement("div",{className:c.a.content},a.a.createElement(e.component)),e.fields&&a.a.createElement("div",{className:c.a.fieldList},e.fields.map(e=>a.a.createElement(f,{field:e,key:e.id}))))}var b=n(16);function y({page:e}){return Object(b.d)("keydown",e=>{e.key&&"s"===e.key.toLowerCase()&&e.ctrlKey&&(s.b.save(),e.preventDefault(),e.stopPropagation())}),a.a.createElement("article",{className:r.a.root},e.component&&a.a.createElement("div",{className:r.a.content},a.a.createElement(e.component)),e.groups&&a.a.createElement("div",{className:r.a.groupList},e.groups.map(e=>a.a.createElement(g,{key:e.id,group:e}))))}},11:function(e,t,n){"use strict";function o(...e){return e.filter(e=>!!e).join(" ")}function a(e){return o(...Object.getOwnPropertyNames(e).map(t=>e[t]?t:null))}function i(e,t={}){let n=Object.getOwnPropertyNames(t).map(n=>t[n]?e+n:null);return e+" "+n.filter(e=>!!e).join(" ")}n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return s}));const r={onMouseDown:e=>e.preventDefault()};function s(...e){return t=>{e.forEach(e=>e&&function(e,t){"function"==typeof e?e(t):e.current=t}(e,t))}}},12:function(e,t,n){"use strict";var o,a=n(8);let i;t.a=i={isPro:!1,config:{restApi:SliCommonL10n.restApi,imagesUrl:SliCommonL10n.imagesUrl,autoPromotions:SliCommonL10n.autoPromotions,globalPromotions:null!==(o=SliCommonL10n.globalPromotions)&&void 0!==o?o:{}},image:e=>`${i.config.imagesUrl}/${e}`},a.a.registerType({id:"link",label:"Link",isValid:()=>!1}),a.a.registerType({id:"-more-",label:"- More promotion types -",isValid:()=>!1}),a.a.Automation.registerType({id:"hashtag",label:"Hashtag",matches:()=>!1})},126:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o,a=n(1),i=n(14);n(18),function(e){e.list=Object(a.n)([]),e.fetch=function(){return i.a.restApi.getNotifications().then(t=>{"object"==typeof t&&Array.isArray(t.data)&&e.list.push(...t.data)}).catch(e=>{})}}(o||(o={}))},13:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));const o=e=>"string"==typeof e?e:"r"in e?"rgba("+e.r+","+e.g+","+e.b+","+e.a+")":"h"in e?"hsla("+e.h+","+e.s+","+e.l+","+e.a+")":"#fff"},134:function(e,t,n){"use strict";function o(e,t){return"url"===t.linkType?t.url:t.postUrl}var a;n.d(t,"a",(function(){return a})),t.b={id:"link",label:"Link",getIcon:()=>"admin-links",getPopupLink:function(e,t){return"string"==typeof t.linkText&&t.linkText.length>0?[t.linkText,t.newTab]:[a.getDefaultLinkText(t),t.newTab]},isValid:function(e){return"string"==typeof e.linkType&&e.linkType.length>0&&("url"===e.linkType&&"string"==typeof e.url&&e.url.length>0||!!e.postId&&"string"==typeof e.postUrl&&e.postUrl.length>0)},getMediaUrl:o,onMediaClick:function(e,t){var n;const a=o(0,t),i=null===(n=t.linkDirectly)||void 0===n||n;return!(!a||!i)&&(window.open(a,t.newTab?"_blank":"_self"),!0)}},function(e){e.getDefaultLinkText=function(e){switch(e.linkType){case"product":return"Buy it now";case"post":return"Read the article";case"page":return"Learn more";default:return"Visit link"}}}(a||(a={}))},137: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"}},143:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(0),a=n.n(o),i=n(29);function r({breakpoints:e,children:t}){const[n,r]=a.a.useState(null),s=a.a.useCallback(()=>{const t=Object(i.b)();r(()=>e.reduce((e,n)=>t.width<=n&&n<e?n:e,1/0))},[e]);return Object(o.useEffect)(()=>(s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)),[]),null!==n&&t(n)}},144:function(e,t,n){"use strict";var o=n(0),a=n.n(o),i=n(98),r=n(19),s=n.n(r),l=n(40),c=n(4),u=n(5),d=n(10),p=n(110),h=n(26),m=n(21),f=n(30),g=n(89),b=n(59),y=n(14),_=n(65);function v({accounts:e,showDelete:t,onDeleteError:n}){const o=(e=null!=e?e:[]).filter(e=>e.type===c.a.Type.BUSINESS).length,[i,r]=a.a.useState(!1),[v,E]=a.a.useState(null),[w,O]=a.a.useState(!1),[S,C]=a.a.useState(),[k,P]=a.a.useState(!1),T=e=>()=>{E(e),r(!0)},A=e=>()=>{f.a.openAuthWindow(e.type,0,()=>{y.a.restApi.deleteAccountMedia(e.id)})},M=e=>()=>{C(e),O(!0)},B=()=>{P(!1),C(null),O(!1)},L={cols:{username:s.a.usernameCol,type:s.a.typeCol,usages:s.a.usagesCol,actions:s.a.actionsCol},cells:{username:s.a.usernameCell,type:s.a.typeCell,usages:s.a.usagesCell,actions:s.a.actionsCell}};return a.a.createElement("div",{className:"accounts-list"},a.a.createElement(p.a,{styleMap:L,rows:e,cols:[{id:"username",label:"Username",render:e=>a.a.createElement("div",null,a.a.createElement(b.a,{account:e,className:s.a.profilePic}),a.a.createElement("a",{className:s.a.username,onClick:T(e)},e.username))},{id:"type",label:"Type",render:e=>a.a.createElement("span",{className:s.a.accountType},e.type)},{id:"usages",label:"Feeds",render:e=>a.a.createElement("span",{className:s.a.usages},e.usages.map((e,t)=>!!h.a.getById(e)&&a.a.createElement(l.a,{key:t,to:m.a.at({screen:"edit",id:e.toString()})},h.a.getById(e).name)))},{id:"actions",label:"Actions",render:e=>t&&a.a.createElement("div",{className:s.a.actionsList},a.a.createElement(u.a,{className:s.a.action,type:u.c.SECONDARY,tooltip:"Account info",onClick:T(e)},a.a.createElement(d.a,{icon:"info"})),a.a.createElement(u.a,{className:s.a.action,type:u.c.SECONDARY,tooltip:"Reconnect account",onClick:A(e)},a.a.createElement(d.a,{icon:"image-rotate"})),a.a.createElement(u.a,{className:s.a.actions,type:u.c.DANGER,tooltip:"Remove account",onClick:M(e)},a.a.createElement(d.a,{icon:"trash"})))}]}),a.a.createElement(g.a,{isOpen:i,onClose:()=>r(!1),account:v}),a.a.createElement(_.a,{isOpen:w,title:"Are you sure?",buttons:[k?"Please wait ...":"Yes I'm sure","Cancel"],okDisabled:k,cancelDisabled:k,onAccept:()=>{P(!0),f.a.deleteAccount(S.id).then(()=>B()).catch(()=>{n&&n("An error occurred while trying to remove the account."),B()})},onCancel:B},a.a.createElement("p",null,"Are you sure you want to delete"," ",a.a.createElement("span",{style:{fontWeight:"bold"}},S?S.username:""),"?"," ","This will also delete all saved media associated with this account."),S&&S.type===c.a.Type.BUSINESS&&1===o&&a.a.createElement("p",null,a.a.createElement("b",null,"Note:")," ",a.a.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."))))}var E=n(23),w=n(6),O=n(112),S=n(78),C=n.n(S);t.a=Object(w.b)((function(){const[,e]=a.a.useState(0),[t,n]=a.a.useState(""),o=a.a.useCallback(()=>e(e=>e++),[]);return c.b.hasAccounts()?a.a.createElement("div",{className:C.a.root},t.length>0&&a.a.createElement(E.a,{type:E.b.ERROR,showIcon:!0,isDismissible:!0,onDismiss:()=>n("")},t),a.a.createElement("div",{className:C.a.connectBtn},a.a.createElement(i.a,{onConnect:o})),a.a.createElement(v,{accounts:c.b.list,showDelete:!0,onDeleteError:n})):a.a.createElement(O.a,null)}))},145:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(0),a=n.n(o),i=n(39),r=n(16);function s({when:e,message:t}){return Object(r.k)(t,e),a.a.createElement(i.a,{when:e,message:t})}},146:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(0),a=n.n(o),i=n(86),r=n.n(i),s=n(64),l=n(16);function c({children:{path:e,tabs:t,right:n},current:o,onClickTab:i}){return a.a.createElement(s.b,{pathStyle:"chevron"},{path:e,right:n,left:t.map(e=>{return a.a.createElement(u,{tab:e,key:e.key,isCurrent:e.key===o,onClick:(t=e.key,()=>i&&i(t))});var t})})}function u({tab:e,isCurrent:t,onClick:n}){return a.a.createElement("a",{key:e.key,role:"button",tabIndex:0,className:e.disabled?r.a.disabled:t?r.a.current:r.a.tab,onClick:n,onKeyDown:Object(l.f)(n)},a.a.createElement("span",{className:r.a.label},e.label))}},15:function(e,t,n){"use strict";var o;n.d(t,"a",(function(){return o})),function(e){let t,n;!function(e){e.IMAGE="IMAGE",e.VIDEO="VIDEO",e.ALBUM="CAROUSEL_ALBUM"}(t=e.Type||(e.Type={})),function(e){let t;!function(e){e.PERSONAL_ACCOUNT="PERSONAL_ACCOUNT",e.BUSINESS_ACCOUNT="BUSINESS_ACCOUNT",e.TAGGED_ACCOUNT="TAGGED_ACCOUNT",e.RECENT_HASHTAG="RECENT_HASHTAG",e.POPULAR_HASHTAG="POPULAR_HASHTAG",e.USER_STORY="USER_STORY"}(t=e.Type||(e.Type={}))}(n=e.Source||(e.Source={})),e.getAsRows=(e,t)=>{e=e.slice(),t=t>0?t:1;let n=[];for(;e.length;)n.push(e.splice(0,t));if(n.length>0){const e=n.length-1;for(;n[e].length<t;)n[e].push({})}return n},e.isFromHashtag=e=>e.source.type===n.Type.POPULAR_HASHTAG||e.source.type===n.Type.RECENT_HASHTAG}(o||(o={}))},16:function(e,t,n){"use strict";n.d(t,"i",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"m",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"j",(function(){return f})),n.d(t,"d",(function(){return b})),n.d(t,"l",(function(){return y})),n.d(t,"f",(function(){return _})),n.d(t,"h",(function(){return v}));var o=n(0),a=n.n(o),i=n(39),r=n(29);function s(e,t){!function(e,t,n){const o=a.a.useRef(!0);e(()=>{o.current=!0;const e=t(()=>new Promise(e=>{o.current&&e()}));return()=>{o.current=!1,e&&e()}},n)}(o.useEffect,e,t)}function l(e){const[t,n]=a.a.useState(e),o=a.a.useRef(t);return[t,()=>o.current,e=>n(o.current=e)]}function c(e,t,n=[]){function a(o){!e.current||e.current.contains(o.target)||n.some(e=>e&&e.current&&e.current.contains(o.target))||t(o)}Object(o.useEffect)(()=>(document.addEventListener("mousedown",a),document.addEventListener("touchend",a),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("touchend",a)}))}function u(e,t){Object(o.useEffect)(()=>{const n=()=>{0===e.filter(e=>!e.current||document.activeElement===e.current||e.current.contains(document.activeElement)).length&&t()};return document.addEventListener("keyup",n),()=>document.removeEventListener("keyup",n)},e)}function d(e,t,n=100){const[i,r]=a.a.useState(e);return Object(o.useEffect)(()=>{let o=null;return e===t?o=setTimeout(()=>r(t),n):r(!t),()=>{null!==o&&clearTimeout(o)}},[e]),[i,r]}function p(e){const[t,n]=a.a.useState(Object(r.b)()),i=()=>{const t=Object(r.b)();n(t),e&&e(t)};return Object(o.useEffect)(()=>(i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)),[]),t}function h(){return new URLSearchParams(Object(i.e)().search)}function m(e,t){const n=n=>{if(t)return(n||window.event).returnValue=e,e};Object(o.useEffect)(()=>(window.addEventListener("beforeunload",n),()=>window.removeEventListener("beforeunload",n)),[t])}function f(e,t){const n=a.a.useRef(!1);return Object(o.useEffect)(()=>{n.current&&void 0!==e.current&&(e.current.scrollIntoView(Object.assign({behavior:"smooth",block:"start"},null!=t?t:{})),n.current=!1)},[n.current]),()=>n.current=!0}function g(e,t,n,a=[],i=[]){Object(o.useEffect)(()=>(a.reduce((e,t)=>e&&t,!0)&&e.addEventListener(t,n),()=>e.removeEventListener(t,n)),i)}function b(e,t,n=[],o=[]){g(document,e,t,n,o)}function y(e,t,n=[],o=[]){g(window,e,t,n,o)}function _(e){return t=>{" "!==t.key&&"Enter"!==t.key||(e(),t.preventDefault(),t.stopPropagation())}}function v(e){const[t,n]=a.a.useState(e);return[function(e){const t=a.a.useRef(e);return t.current=e,t}(t),n]}n(35)},164: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"}},165:function(e,t,n){e.exports={message:"FeedNamePrompt__message",input:"FeedNamePrompt__input"}},18:function(e,t,n){"use strict";var o=n(34),a=n.n(o),i=n(12),r=n(35);const s=i.a.config.restApi.baseUrl,l={};i.a.config.restApi.authToken&&(l["X-Sli-Auth-Token"]=i.a.config.restApi.authToken);const c=a.a.create({baseURL:s,headers:l}),u={config:i.a.config.restApi,driver:c,getAccounts:()=>c.get("/accounts"),getFeeds:()=>c.get("/feeds"),getFeedMedia:(e,t=0,n=0,o)=>{const i=o?new a.a.CancelToken(o):void 0;return c.post("/media/fetch",{options:e,num:n,from:t},{cancelToken:i})},getErrorReason:e=>{let t;return t="object"==typeof e.response?e.response.data:"string"==typeof e.message?e.message:e.toString(),Object(r.b)(t)}};t.a=u},19: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-list":"AccountsList__actions-list layout__flex-row",actionsList:"AccountsList__actions-list layout__flex-row",action:"AccountsList__action","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"}},195:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{constructor(e,t){this.fns=e,this.delay=null!=t?t:1}load(e=null,t){this.numLoaded=0,this.isLoading=!0;const n=()=>{this.numLoaded++,this.numLoaded>=this.fns.length&&setTimeout(()=>{this.isLoading=!1,t&&t()},this.delay)};this.fns.forEach(t=>t(e,n))}}},2:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o,a=n(1),i=function(e,t,n,o){var a,i=arguments.length,r=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r};!function(e){class t{constructor(e,t,n){this.prop=e,this.name=t,this.icon=n}}t.DESKTOP=new t("desktop","Desktop","desktop"),t.TABLET=new t("tablet","Tablet","tablet"),t.PHONE=new t("phone","Phone","smartphone"),e.Mode=t,e.MODES=[t.DESKTOP,t.TABLET,t.PHONE];class n{constructor(e,t,n){this.desktop=e,this.tablet=t,this.phone=n}get(e,t){return o(this,e,t)}set(e,t){r(this,t,e)}with(e,t){const o=s(this,t,e);return new n(o.desktop,o.tablet,o.phone)}}function o(e,t,n=!1){if(!e)return;const o=e[t.prop];return n&&null==o?e.desktop:o}function r(e,t,n){return e[n.prop]=t,e}function s(e,t,o){return r(new n(e.desktop,e.tablet,e.phone),t,o)}i([a.n],n.prototype,"desktop",void 0),i([a.n],n.prototype,"tablet",void 0),i([a.n],n.prototype,"phone",void 0),e.Value=n,e.getName=function(e){return e.name},e.getIcon=function(e){return e.icon},e.cycle=function(n){const o=e.MODES.findIndex(e=>e===n);return void 0===o?t.DESKTOP:e.MODES[(o+1)%e.MODES.length]},e.get=o,e.set=r,e.withValue=s,e.normalize=function(e,t){return null==e?t.hasOwnProperty("all")?new n(t.all,t.all,t.all):new n(t.desktop,t.tablet,t.phone):"object"==typeof e&&e.hasOwnProperty("desktop")?new n(e.desktop,e.tablet,e.phone):new n(e,e,e)},e.getModeForWindowSize=function(e){return e.width<=768?t.PHONE:e.width<=935?t.TABLET:t.DESKTOP},e.isValid=function(e){return"object"==typeof e&&e.hasOwnProperty("desktop")}}(o||(o={}))},209:function(e,t,n){e.exports={root:"ElementorApp__root",shade:"ElementorApp__shade",container:"ElementorApp__container","close-button":"ElementorApp__close-button",closeButton:"ElementorApp__close-button"}},21:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(1),a=n(49),i=function(e,t,n,o){var a,i=arguments.length,r=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r};class r{constructor(){const e=window.location;this._pathName=e.pathname,this._baseUrl=e.protocol+"//"+e.host,this.parsed=Object(a.parse)(e.search),this.unListen=null,this.listeners=[],Object(o.o)(()=>this._path,e=>this.path=e)}createPath(e){return this._pathName+"?"+Object(a.stringify)(e)}get _path(){return this.createPath(this.parsed)}get(e,t=null){var n;return null!==(n=this.parsed[e])&&void 0!==n?n:t}at(e){return this.createPath(Object.assign({page:this.parsed.page},this.processQuery(e)))}fullUrl(e){return this._baseUrl+this.createPath(Object.assign({page:this.parsed.page},this.processQuery(e)))}with(e){return this.createPath(Object.assign(Object.assign({},this.parsed),this.processQuery(e)))}without(e){const t=Object.assign({},this.parsed);return delete t[e],this.createPath(t)}goto(e,t=!1){this.history.push(t?this.with(e):this.at(e),{})}useHistory(e){return this.unListen&&this.unListen(),this.history=e,this.unListen=this.history.listen(e=>{this.parsed=Object(a.parse)(e.search),this.listeners.forEach(e=>e())}),this}listen(e){this.listeners.push(e)}unlisten(e){this.listeners=this.listeners.filter(t=>t===e)}processQuery(e){const t=Object.assign({},e);return Object.getOwnPropertyNames(e).forEach(n=>{e[n]&&0===e[n].length?delete t[n]:t[n]=e[n]}),t}}i([o.n],r.prototype,"path",void 0),i([o.n],r.prototype,"parsed",void 0),i([o.h],r.prototype,"_path",null);const s=new r},22:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o,a=n(3);!function(e){function t(e,t){return e.hasOwnProperty(t.toString())}function n(e,t){return e[t.toString()]}function o(e,t,n){return e[t.toString()]=n,e}e.has=t,e.get=n,e.set=o,e.ensure=function(n,a,i){return t(n,a)||o(n,a,i),e.get(n,a)},e.withEntry=function(t,n,o){return e.set(Object(a.h)(t),n,o)},e.remove=function(e,t){return delete e[t.toString()],e},e.without=function(t,n){return e.remove(Object(a.h)(t),n)},e.at=function(e,t){return n(e,Object.keys(e)[t])},e.keys=function(e){return Object.keys(e)},e.values=function(e){return Object.values(e)},e.entries=function(e){return Object.getOwnPropertyNames(e).map(t=>[t,e[t]])},e.map=function(t,n){const o={};return e.forEach(t,(e,t)=>o[e]=n(t,e)),o},e.size=function(t){return e.keys(t).length},e.isEmpty=function(t){return 0===e.size(t)},e.equals=function(e,t){return Object(a.r)(e,t)},e.forEach=function(t,n){e.keys(t).forEach(e=>n(e,t[e]))},e.fromArray=function(t){const n={};return t.forEach(([t,o])=>e.set(n,t,o)),n},e.fromMap=function(t){const n={};return t.forEach((t,o)=>e.set(n,o,t)),n}}(o||(o={}))},27:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{static getById(e){const t=o.list.find(t=>t.id===e);return!t&&o.list.length>0?o.list[0]:t}static getName(e){const t=o.getById(e);return t?t.name:"(Missing layout)"}static addLayout(e){o.list.push(e)}}o.list=[]},275:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(96),a=n.n(o),i=n(0),r=n.n(i),s=n(5),l=n(10),c=n(66),u=n(11);function d({value:e,defaultValue:t,onDone:n}){const o=r.a.useRef(),[i,d]=r.a.useState(""),[p,h]=r.a.useState(!1),m=()=>{d(e),h(!0)},f=()=>{h(!1),n&&n(i),o.current&&o.current.focus()},g=e=>{switch(e.key){case"Enter":case" ":m()}};return r.a.createElement("div",{className:a.a.root},r.a.createElement(c.a,{isOpen:p,onBlur:()=>h(!1),placement:"bottom"},({ref:n})=>r.a.createElement("div",{ref:Object(u.d)(n,o),className:a.a.staticContainer,onClick:m,onKeyPress:g,tabIndex:0,role:"button"},r.a.createElement("span",{className:a.a.label},e||t),r.a.createElement(l.a,{icon:"edit",className:a.a.editIcon})),r.a.createElement(c.b,null,r.a.createElement(c.d,null,r.a.createElement("div",{className:a.a.editContainer},r.a.createElement("input",{type:"text",value:i,onChange:e=>{d(e.target.value)},onKeyDown:e=>{switch(e.key){case"Enter":f();break;case"Escape":h(!1);break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:!0,placeholder:"Feed name"}),r.a.createElement(s.a,{className:a.a.doneBtn,type:s.c.PRIMARY,size:s.b.NORMAL,onClick:f},r.a.createElement(l.a,{icon:"yes"})))))))}},276:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(0),a=n.n(o),i=n(164),r=n.n(i),s=n(64),l=n(5),c=n(10);function u({children:e,steps:t,current:n,onChangeStep:o,firstStep:i,lastStep:u}){var d;i=null!=i?i:[],u=null!=u?u:[];const p=null!==(d=t.findIndex(e=>e.key===n))&&void 0!==d?d:0,h=p<=0,m=p>=t.length-1,f=h?null:t[p-1],g=m?null:t[p+1],b=h?i:a.a.createElement(l.a,{type:l.c.LINK,onClick:()=>!h&&o&&o(t[p-1].key),className:r.a.prevLink,disabled:f.disabled},a.a.createElement(c.a,{icon:"arrow-left-alt2"}),a.a.createElement("span",null,f.label)),y=m?u:a.a.createElement(l.a,{type:l.c.LINK,onClick:()=>!m&&o&&o(t[p+1].key),className:r.a.nextLink,disabled:g.disabled},a.a.createElement("span",null,g.label),a.a.createElement(c.a,{icon:"arrow-right-alt2"}));return a.a.createElement(s.b,null,{path:[],left:b,right:y,center:e})}},277:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(0),a=n.n(o),i=n(137),r=n.n(i),s=n(64),l=n(5),c=n(10),u=n(66);function d({pages:e,current:t,onChangePage:n,showNavArrows:o,hideMenuArrow:i,children:u}){var d,h;const{path:m,right:f}=u,g=null!==(d=e.findIndex(e=>e.key===t))&&void 0!==d?d:0,b=null!==(h=e[g].label)&&void 0!==h?h:"",y=g<=0,_=g>=e.length-1,v=y?null:e[g-1],E=_?null:e[g+1];let w=[];return o&&w.push(a.a.createElement(l.a,{key:"page-menu-left",type:l.c.PILL,onClick:()=>!y&&n&&n(e[g-1].key),disabled:y||v.disabled},a.a.createElement(c.a,{icon:"arrow-left-alt2"}))),w.push(a.a.createElement(p,{key:"page-menu",pages:e,current:t,onClickPage:e=>n&&n(e)},a.a.createElement("span",null,b),!i&&a.a.createElement(c.a,{icon:"arrow-down-alt2",className:r.a.arrowDown}))),o&&w.push(a.a.createElement(l.a,{key:"page-menu-left",type:l.c.PILL,onClick:()=>!_&&n&&n(e[g+1].key),disabled:_||E.disabled},a.a.createElement(c.a,{icon:"arrow-right-alt2"}))),a.a.createElement(s.b,{pathStyle:m.length>1?"line":"none"},{path:m,right:f,center:w})}function p({pages:e,current:t,onClickPage:n,children:o}){const[i,s]=a.a.useState(!1),l=()=>s(!0),c=()=>s(!1);return a.a.createElement(u.a,{isOpen:i,onBlur:c,placement:"bottom-start",refClassName:r.a.menuRef},({ref:e})=>a.a.createElement("a",{ref:e,className:r.a.menuLink,onClick:l},o),a.a.createElement(u.b,null,e.map(e=>{return a.a.createElement(u.c,{key:e.key,disabled:e.disabled,active:e.key===t,onClick:(o=e.key,()=>{n&&n(o),c()})},e.label);var o})))}},278:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(0),a=n.n(o),i=n(165),r=n.n(i),s=n(65);function l({isOpen:e,onAccept:t,onCancel:n}){const[o,i]=a.a.useState("");function l(){t&&t(o)}return a.a.createElement(s.a,{title:"Feed name",isOpen:e,onCancel:function(){n&&n()},onAccept:l,buttons:["Save","Cancel"]},a.a.createElement("p",{className:r.a.message},"Give this feed a memorable name:"),a.a.createElement("input",{type:"text",className:r.a.input,value:o,onChange:e=>{i(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&(l(),e.preventDefault(),e.stopPropagation())},autoFocus:!0}))}},29:function(e,t,n){"use strict";function o(e,t,n={}){return window.open(e,t,function(e={}){return Object.getOwnPropertyNames(e).map(t=>`${t}=${e[t]}`).join(",")}(n))}function a(e,t){return{top:window.top.outerHeight/2+window.top.screenY-t/2,left:window.top.outerWidth/2+window.top.screenX-e/2,width:e,height:t}}function i(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}))},3:function(e,t,n){"use strict";n.d(t,"w",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"x",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"e",(function(){return f})),n.d(t,"r",(function(){return g})),n.d(t,"q",(function(){return b})),n.d(t,"k",(function(){return y})),n.d(t,"f",(function(){return _})),n.d(t,"p",(function(){return v})),n.d(t,"s",(function(){return E})),n.d(t,"n",(function(){return w})),n.d(t,"a",(function(){return O})),n.d(t,"m",(function(){return S})),n.d(t,"o",(function(){return C})),n.d(t,"v",(function(){return k})),n.d(t,"u",(function(){return P})),n.d(t,"t",(function(){return T})),n.d(t,"i",(function(){return A})),n.d(t,"j",(function(){return M})),n.d(t,"l",(function(){return B})),n.d(t,"g",(function(){return L})),n.d(t,"d",(function(){return x}));var o=n(0),a=n.n(o),i=n(141),r=n(140),s=n(15),l=n(47);let c=0;function u(){return c++}function d(e){const t={};return Object.keys(e).forEach(n=>{const o=e[n];Array.isArray(o)?t[n]=o.slice():o instanceof Map?t[n]=new Map(o.entries()):t[n]="object"==typeof o?d(o):o}),t}function p(e,t){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function h(e,t){return p(d(e),t)}function m(e,t){return Array.isArray(e)&&Array.isArray(t)?f(e,t):e instanceof Map&&t instanceof Map?f(Array.from(e.entries()),Array.from(t.entries())):"object"==typeof e&&"object"==typeof t?g(e,t):e===t}function f(e,t,n){if(e===t)return!0;if(e.length!==t.length)return!1;for(let o=0;o<e.length;++o)if(n){if(!n(e[o],t[o]))return!1}else if(!m(e[o],t[o]))return!1;return!0}function g(e,t){if(!e||!t||"object"!=typeof e||"object"!=typeof t)return m(e,t);const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;const a=new Set(n.concat(o));for(const n of a)if(!m(e[n],t[n]))return!1;return!0}function b(e){return 0===Object.keys(null!=e?e:{}).length}function y(e,t,n){return n=null!=n?n:(e,t)=>e===t,e.filter(e=>!t.some(t=>n(e,t)))}function _(e,t,n){return n=null!=n?n:(e,t)=>e===t,e.every(e=>t.some(t=>n(e,t)))&&t.every(t=>e.some(e=>n(t,e)))}function v(e,t){return 0===e.tag.localeCompare(t.tag)&&e.sort===t.sort}function E(e,t,n=0,i=!1){let r=e.trim();i&&(r=r.replace(/((?:^[.*•]+(\r\n|\r|\n))+)/gm,"\n"));const s=r.split("\n"),l=s.map((e,n)=>{if(e=e.trim(),i&&/^[.*•]$/.test(e))return null;let r,l=[];for(;null!==(r=/#([^\s]+)/g.exec(e));){const t="https://instagram.com/explore/tags/"+r[1],n=a.a.createElement("a",{href:t,target:"_blank",key:u()},r[0]),o=e.substr(0,r.index),i=e.substr(r.index+r[0].length);l.push(o),l.push(n),e=i}return e.length&&l.push(e),t&&(l=t(l,n)),s.length>1&&l.push(a.a.createElement("br",{key:u()})),a.a.createElement(o.Fragment,{key:u()},l)});return n>0?l.slice(0,n):l}function w(e){const t=e.match(/instagram\.com\/p\/([^\/]+)\//);return t&&t.length>0?t[1]:null}var O;function S(e,t=O.MEDIUM){return`https://www.instagram.com/p/${e}/media/?size=${t}`}function C(e,t=O.MEDIUM){return e.thumbnail?e.thumbnail:S(w(e.permalink),t)}function k(e,t){const n=/(\s+)/g;let o,a=0,i=0,r="";for(;null!==(o=n.exec(e))&&a<t;){const t=o.index+o[1].length;r+=e.substr(i,t-i),i=t,a++}return i<e.length&&(r+=" ..."),r}function P(e){return Object(i.a)(Object(r.a)(e),{addSuffix:!0})}function T(e,t){const n=[];return e.forEach((e,o)=>{const a=o%t;Array.isArray(n[a])?n[a].push(e):n[a]=[e]}),n}function A(e,t){return function e(t){if(t.type===s.a.Type.VIDEO){const e=document.createElement("video");return e.autoplay=!1,e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.visibility="hidden",document.body.appendChild(e),new Promise(n=>{e.src=t.url,e.addEventListener("loadeddata",()=>{n({width:e.videoWidth,height:e.videoHeight}),document.body.removeChild(e)})})}if(t.type===s.a.Type.IMAGE){const e=new Image;return e.src=t.url,new Promise(t=>{e.onload=()=>{t({width:e.naturalWidth,height:e.naturalHeight})}})}return t.type===s.a.Type.ALBUM?e(t.children[0]):Promise.reject("Unknown media type")}(e).then(e=>function(e,t){const n=e.width>e.height?t.width/e.width:t.height/e.height;return{width:e.width*n,height:e.height*n}}(e,t))}function M(e,t){const n=t.map(l.b).join("|");return new RegExp(`(?:^|\\B)#(${n})(?:\\b|\\r|$)`,"imu").test(e)}function B(e,t){for(const n of t){const t=n();if(e(t))return t}}function L(e,t){return Math.max(0,Math.min(t.length-1,e))}function x(e,t,n){const o=e.slice();return o[t]=n,o}!function(e){e.SMALL="t",e.MEDIUM="m",e.LARGE="l"}(O||(O={}))},32:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return p}));var o=n(0),a=n.n(o),i=n(33),r=n.n(i),s=n(6);class l{constructor(e=new Map,t=[]){this.factories=e,this.extensions=new Map,this.cache=new Map,t.forEach(e=>this.addModule(e))}addModule(e){e.factories&&(this.factories=new Map([...this.factories,...e.factories])),e.extensions&&e.extensions.forEach((e,t)=>{this.extensions.has(t)?this.extensions.get(t).push(e):this.extensions.set(t,[e])})}get(e){let t=this.factories.get(e);if(void 0===t)throw new Error('Service "'+e+'" does not exist');let n=this.cache.get(e);if(void 0===n){n=t(this);let o=this.extensions.get(e);o&&o.forEach(e=>n=e(this,n)),this.cache.set(e,n)}return n}has(e){return this.factories.has(e)}}class c{constructor(e,t,n){this.key=e,this.mount=t,this.modules=n,this.container=null}addModules(e){this.modules=this.modules.concat(e)}run(){if(null!==this.container)return;let e=!1;const t=()=>{e||"interactive"!==document.readyState&&"complete"!==document.readyState||(this.actualRun(),e=!0)};t(),e||document.addEventListener("readystatechange",t)}actualRun(){!function(e){const t=`app/${e.key}/run`;document.dispatchEvent(new d(t,e))}(this);const e=p({root:()=>null,"root/children":()=>[]});this.container=new l(e,this.modules);const t=this.container.get("root/children").map((e,t)=>a.a.createElement(e,{key:t})),n=a.a.createElement(s.a,{c:this.container},t);this.modules.forEach(e=>e.run&&e.run(this.container)),r.a.render(n,this.mount)}}function u(e,t){document.addEventListener(`app/${e}/run`,e=>{t(e.detail.app)})}class d extends CustomEvent{constructor(e,t){super(e,{detail:{app:t}})}}function p(e){return new Map(Object.entries(e))}},33:function(e,n){e.exports=t},35:function(e,t,n){"use strict";function o(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function a(e){const t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}))},37: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"}},38:function(e,t,n){"use strict";function o(e){return t=>(t.stopPropagation(),e(t))}function a(e,t){let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{n=null,e(...o)},t)}}function i(){}n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}))},4:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o,a=n(18),i=n(1);!function(e){let t;!function(e){e.PERSONAL="PERSONAL",e.BUSINESS="BUSINESS"}(t=e.Type||(e.Type={}))}(o||(o={}));const r=Object(i.n)([]),s="https://secure.gravatar.com/avatar/4a94d759753ade2961582f7345c1d7b2?s=64&d=mm&r=g",l=e=>r.find(t=>t.id===e),c=e=>"https://instagram.com/"+e;function u(e){return e.slice().sort((e,t)=>e.type===t.type?0:e.type===o.Type.PERSONAL?-1:1),r.splice(0,r.length),e.forEach(e=>r.push(Object(i.n)(e))),r}function d(e){if("object"==typeof e&&Array.isArray(e.data))return u(e.data);throw"Spotlight encountered a problem trying to load your accounts. Kindly contact customer support for assistance."}t.b={list:r,DEFAULT_PROFILE_PIC:s,getById:l,getByUsername:e=>r.find(t=>t.username===e),hasAccounts:()=>r.length>0,filterExisting:e=>e.filter(e=>void 0!==l(e)),idsToAccounts:e=>e.map(e=>l(e)).filter(e=>void 0!==e),getBusinessAccounts:()=>r.filter(e=>e.type===o.Type.BUSINESS),getProfilePicUrl:e=>e.customProfilePicUrl?e.customProfilePicUrl:e.profilePicUrl?e.profilePicUrl:s,getBioText:e=>e.customBio.length?e.customBio:e.bio,getProfileUrl:e=>c(e.username),getUsernameUrl:c,loadAccounts:function(){return a.a.getAccounts().then(d).catch(e=>{throw a.a.getErrorReason(e)})},loadFromResponse:d,addAccounts:u}},41: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"}},43:function(e,t,n){e.exports={root:"MediaThumbnail__root","media-background-fade-in-animation":"MediaThumbnail__media-background-fade-in-animation",mediaBackgroundFadeInAnimation:"MediaThumbnail__media-background-fade-in-animation","media-object-fade-in-animation":"MediaThumbnail__media-object-fade-in-animation",mediaObjectFadeInAnimation:"MediaThumbnail__media-object-fade-in-animation",image:"MediaThumbnail__image","not-available":"MediaThumbnail__not-available",notAvailable:"MediaThumbnail__not-available"}},47:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));const o=(e,t)=>e.startsWith(t)?e:t+e,a=e=>{return(t=e,"#",t.startsWith("#")?t.substr("#".length):t).split(/\s/).map((e,t)=>t>0?e[0].toUpperCase()+e.substr(1):e).join("").replace(/\W/gi,"");var t}},51:function(e,t,n){e.exports={root:"SettingsGroup__root layout__flex-column",title:"SettingsGroup__title",content:"SettingsGroup__content","field-list":"SettingsGroup__field-list layout__flex-column",fieldList:"SettingsGroup__field-list layout__flex-column"}},58:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(0),a=n.n(o),i=n(74),r=n.n(i);function s(){return a.a.createElement("div",{className:r.a.root})}},59:function(e,t,n){"use strict";var o=n(0),a=n.n(o),i=n(77),r=n.n(i),s=n(4),l=n(11),c=n(6);t.a=Object(c.b)((function(e){var{account:t,square:n,className:o}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}(e,["account","square","className"]);const c=s.b.getProfilePicUrl(t),u=Object(l.b)(n?r.a.square:r.a.round,o);return a.a.createElement("img",Object.assign({},i,{className:u,src:s.b.DEFAULT_PROFILE_PIC,srcSet:c+" 1x",alt:t.username+" profile picture"}))}))},60:function(e,t,n){e.exports={root:"SettingsPage__root layout__flex-column",content:"SettingsPage__content","group-list":"SettingsPage__group-list layout__flex-column",groupList:"SettingsPage__group-list layout__flex-column"}},609:function(e,t,n){"use strict";n.r(t);var o=n(0),a=n.n(o),i=n(33),r=n.n(i),s=n(209),l=n.n(s),c=n(200),u=n(26),d=n(195),p=n(4),h=n(17),m=n(11),f=n(39),g=n(93),b=n(10),y=u.a.SavedFeed;const _=Object(g.a)(),v={loaded:!1,loader:new d.a([(e,t)=>h.b.load().then(()=>t()),(e,t)=>u.a.loadFeeds().then(()=>t()),(e,t)=>p.b.loadAccounts().then(()=>t())])};function E({rows:e,loading:t,select:n,editBtn:o,newBtn:i,value:r,update:s}){const d=a.a.useRef(!1),[p,h]=a.a.useState(v.loaded),[g,E]=a.a.useState(!1),[O,S]=a.a.useState(null),C=a.a.useCallback(()=>{E(!0),d.current=!1},[]),k=a.a.useCallback(()=>{E(!1),d.current=!1},[]),P=a.a.useCallback(()=>{d.current?confirm(c.b)&&k():k()},[d]),T=a.a.useCallback(()=>{S(u.a.getById(n.value)),C()},[]),A=a.a.useCallback(()=>{S(new y),C()},[]),M=a.a.useCallback(t=>{const o=u.a.hasFeeds(),a=null!=t?t:r;for(e.forEach((e,t)=>{e.style.display=0!==t||o?"flex":"none"});n.options.length>0;)n.remove(n.options.length-1);a&&void 0===u.a.getById(a)&&n.add(w(a,"(Missing feed)",!0)),u.a.list.forEach(e=>{n.add(w(e.id.toString(),e.label,a===e.id.toString()))}),i.textContent=o?"Create a new feed":"Design your feed",t!==r&&(n.value=t.toString(),s(n.value))},[n,r,s]),B=a.a.useCallback(()=>{v.loaded=!0,M(r),t.remove(),h(!0)},[r]),L=a.a.useCallback(e=>new Promise(t=>{u.a.saveFeed(e).then(e=>{M(e.id),t(),setTimeout(k,500)})}),[]),x=a.a.useCallback(()=>{d.current=!0},[]);return a.a.useEffect(()=>(v.loaded?B():v.loader.load(null,B),o.addEventListener("click",T),i.addEventListener("click",A),()=>{o.removeEventListener("click",T),i.removeEventListener("click",A)}),[]),g&&a.a.createElement(f.b,{history:_},a.a.createElement("div",{className:Object(m.b)(l.a.root,"wp-core-ui-override wp-core-ui spotlight-modal-target")},a.a.createElement("div",{className:l.a.shade,onClick:P}),p&&a.a.createElement("div",{className:l.a.container},a.a.createElement(c.a,{feed:O,onSave:L,onCancel:P,onDirtyChange:x,useCtrlS:!1,requireName:!0,confirmOnCancel:!0,config:{showDoneBtn:!0,showCancelBtn:!1,showNameField:!0,doneBtnText:"Save and embed"}})),a.a.createElement("div",{className:l.a.closeButton,onClick:P,role:"button","aria-label":"Cancel",tabIndex:0},a.a.createElement(b.a,{icon:"no-alt"}))))}function w(e,t,n,o){const a=document.createElement("option");return a.value=e.toString(),a.text=t,n&&(a.selected=!0),o&&(a.disabled=!0),a}elementor.addControlView("sli-select-feed",elementor.modules.controls.BaseData.extend({onReady(){const e=this.$el.find("div.sli-select-field-row"),t=this.$el.find("div.sli-select-loading"),n=this.$el.find("select.sli-select-element"),o=this.$el.find("button.sli-select-edit-btn"),i=this.$el.find("button.sli-select-new-btn");if(!n.length||!o.length||!i.length)return;const s=document.createElement("div");s.id="spotlight-elementor-app",document.body.appendChild(s);const l=a.a.createElement(E,{rows:e.get(),loading:t[0],select:n[0],editBtn:o[0],newBtn:i[0],value:this.elementSettingsModel.attributes.feed,update:e=>this.updateElementModel(e)});r.a.render(l,s)},onBeforeDestroy(){},saveValue(){}}))},64:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var o=n(0),a=n.n(o),i=n(41),r=n.n(i),s=n(148);function l({children:e,pathStyle:t}){let{path:n,left:o,right:i,center:s}=e;return n=null!=n?n:[],o=null!=o?o:[],i=null!=i?i:[],s=null!=s?s:[],a.a.createElement("div",{className:r.a.root},a.a.createElement("div",{className:r.a.leftList},a.a.createElement("div",{className:r.a.pathList},n.map((e,n)=>a.a.createElement(p,{key:n,style:t},a.a.createElement("div",{className:r.a.item},e)))),a.a.createElement("div",{className:r.a.leftList},a.a.createElement(u,null,o))),a.a.createElement("div",{className:r.a.centerList},a.a.createElement(u,null,s)),a.a.createElement("div",{className:r.a.rightList},a.a.createElement(u,null,i)))}function c(){return a.a.createElement(s.a,null)}function u({children:e}){const t=Array.isArray(e)?e:[e];return a.a.createElement(a.a.Fragment,null,t.map((e,t)=>a.a.createElement(d,{key:t},e)))}function d({children:e}){return a.a.createElement("div",{className:r.a.item},e)}function p({children:e,style:t}){return a.a.createElement("div",{className:r.a.pathSegment},e,a.a.createElement(h,{style:t}))}function h({style:e}){if("none"===e)return null;const t="chevron"===e?"M0 0 L100 50 L0 100":"M50 0 L50 100";return a.a.createElement("div",{className:r.a.separator},a.a.createElement("svg",{viewBox:"0 0 100 100",width:"100%",height:"100%",preserveAspectRatio:"none"},a.a.createElement("path",{d:t,fill:"none",stroke:"currentcolor",strokeLinejoin:"bevel"})))}},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o=n(34),a=n.n(o),i=n(1),r=n(2),s=n(27),l=n(32),c=n(4),u=n(3),d=n(13),p=n(18),h=n(38),m=n(8),f=n(22),g=n(12),b=function(e,t,n,o){var a,i=arguments.length,r=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r};class y{constructor(e=new y.Options,t=r.a.Mode.DESKTOP){this.media=[],this.canLoadMore=!1,this.stories=[],this.numLoadedMore=0,this.totalMedia=0,this.mode=r.a.Mode.DESKTOP,this.isLoaded=!1,this.isLoading=!1,this.isLoadingMore=!1,this.numMediaToShow=0,this.numMediaPerPage=0,this.cancelFetch=()=>{},this.options=new y.Options(e),this.localMedia=[],this.mode=t,this.mediaCounter=this._numMediaPerPage,this.reload=Object(h.a)(()=>this.load(),300),Object(i.o)(()=>this.mode,()=>{0===this.numLoadedMore&&(this.mediaCounter=this._numMediaPerPage,this.localMedia.length<this.numMediaToShow&&this.loadMedia(this.localMedia.length,this.numMediaToShow-this.localMedia.length))}),Object(i.o)(()=>this.getReloadOptions(),()=>this.reload()),Object(i.o)(()=>({num:this._numMediaPerPage,mode:this.mode}),({num:e})=>{this.localMedia.length<e&&e<=this.totalMedia?this.reload():this.mediaCounter=Math.max(1,e)}),Object(i.o)(()=>this._media,e=>this.media=e),Object(i.o)(()=>this._numMediaToShow,e=>this.numMediaToShow=e),Object(i.o)(()=>this._numMediaPerPage,e=>this.numMediaPerPage=e),Object(i.o)(()=>this._canLoadMore,e=>this.canLoadMore=e)}get _media(){return this.localMedia.slice(0,this.numMediaToShow)}get _numMediaToShow(){return Math.min(this.mediaCounter,this.totalMedia)}get _numMediaPerPage(){return Math.max(1,y.ComputedOptions.normalizeMultiInt(this.options.numPosts,this.mode,1))}get _canLoadMore(){return this.localMedia.length>this.mediaCounter||this.localMedia.length<this.totalMedia}loadMore(){const e=this.numMediaToShow+this._numMediaPerPage-this.localMedia.length;return this.isLoadingMore=!0,e>0?this.loadMedia(this.localMedia.length,this._numMediaPerPage).then(()=>{this.mediaCounter+=this._numMediaPerPage,this.numLoadedMore++,this.isLoadingMore=!1}):new Promise(e=>{this.numLoadedMore++,this.mediaCounter+=this._numMediaPerPage,this.isLoadingMore=!1,e()})}load(){return this.numLoadedMore=0,this.loadMedia(0,this._numMediaPerPage,!0).then(()=>(this.isLoaded=!0,this.mediaCounter=this._numMediaPerPage))}loadMedia(e,t,n){return this.cancelFetch(),y.Options.hasSources(this.options)?(this.isLoading=!0,new Promise((o,i)=>{p.a.getFeedMedia(this.options,e,t,e=>this.cancelFetch=e).then(e=>{var t;if("object"!=typeof e||"object"!=typeof e.data||!Array.isArray(e.data.media))throw{message:"The media response is malformed or corrupt",response:e};n&&(this.localMedia=[]),this.localMedia.push(...e.data.media),this.stories=null!==(t=e.data.stories)&&void 0!==t?t:[],this.totalMedia=e.data.total,o&&o()}).catch(e=>{var t;if(a.a.isCancel(e))return null;const n=new y.Events.FetchFailEvent(y.Events.FETCH_FAIL,{detail:{feed:this,message:null!==(t=e.response?e.response.data.message:void 0)&&void 0!==t?t:e.message,response:e.response}});return document.dispatchEvent(n),i&&i(e),e}).finally(()=>this.isLoading=!1)})):new Promise(e=>{this.localMedia=[],this.totalMedia=0,e&&e()})}getReloadOptions(){return JSON.stringify({accounts:this.options.accounts,hashtags:this.options.hashtags,tagged:this.options.tagged,postOrder:this.options.postOrder,mediaType:this.options.mediaType,moderation:this.options.moderation,moderationMode:this.options.moderationMode,hashtagBlacklist:this.options.hashtagBlacklist,hashtagWhitelist:this.options.hashtagWhitelist,captionBlacklist:this.options.captionBlacklist,captionWhitelist:this.options.captionWhitelist,hashtagBlacklistSettings:this.options.hashtagBlacklistSettings,hashtagWhitelistSettings:this.options.hashtagWhitelistSettings,captionBlacklistSettings:this.options.captionBlacklistSettings,captionWhitelistSettings:this.options.captionWhitelistSettings})}}b([i.n],y.prototype,"media",void 0),b([i.n],y.prototype,"canLoadMore",void 0),b([i.n],y.prototype,"stories",void 0),b([i.n],y.prototype,"numLoadedMore",void 0),b([i.n],y.prototype,"options",void 0),b([i.n],y.prototype,"totalMedia",void 0),b([i.n],y.prototype,"mode",void 0),b([i.n],y.prototype,"isLoaded",void 0),b([i.n],y.prototype,"isLoading",void 0),b([i.n],y.prototype,"isLoadingMore",void 0),b([i.f],y.prototype,"reload",void 0),b([i.n],y.prototype,"localMedia",void 0),b([i.n],y.prototype,"numMediaToShow",void 0),b([i.n],y.prototype,"numMediaPerPage",void 0),b([i.n],y.prototype,"mediaCounter",void 0),b([i.h],y.prototype,"_media",null),b([i.h],y.prototype,"_numMediaToShow",null),b([i.h],y.prototype,"_numMediaPerPage",null),b([i.h],y.prototype,"_canLoadMore",null),b([i.f],y.prototype,"loadMore",null),b([i.f],y.prototype,"load",null),b([i.f],y.prototype,"loadMedia",null),function(e){let t,n,o,a,p,h,y,_,v;!function(e){e.FETCH_FAIL="sli/feed/fetch_fail";class t extends CustomEvent{constructor(e,t){super(e,t)}}e.FetchFailEvent=t}(t=e.Events||(e.Events={}));class E{constructor(e={}){E.setFromObject(this,e)}static setFromObject(t,n={}){var o,a,i,l,u,d,p,h,m,g,b,y,_,v,E;return t.accounts=n.accounts?n.accounts.slice():e.DefaultOptions.accounts,t.hashtags=n.hashtags?n.hashtags.slice():e.DefaultOptions.hashtags,t.tagged=n.tagged?n.tagged.slice():e.DefaultOptions.tagged,t.layout=s.a.getById(n.layout).id,t.numColumns=r.a.normalize(n.numColumns,e.DefaultOptions.numColumns),t.highlightFreq=r.a.normalize(n.highlightFreq,e.DefaultOptions.highlightFreq),t.mediaType=n.mediaType||e.DefaultOptions.mediaType,t.postOrder=n.postOrder||e.DefaultOptions.postOrder,t.numPosts=r.a.normalize(n.numPosts,e.DefaultOptions.numPosts),t.linkBehavior=r.a.normalize(n.linkBehavior,e.DefaultOptions.linkBehavior),t.feedWidth=r.a.normalize(n.feedWidth,e.DefaultOptions.feedWidth),t.feedHeight=r.a.normalize(n.feedHeight,e.DefaultOptions.feedHeight),t.feedPadding=r.a.normalize(n.feedPadding,e.DefaultOptions.feedPadding),t.imgPadding=r.a.normalize(n.imgPadding,e.DefaultOptions.imgPadding),t.textSize=r.a.normalize(n.textSize,e.DefaultOptions.textSize),t.bgColor=n.bgColor||e.DefaultOptions.bgColor,t.hoverInfo=n.hoverInfo?n.hoverInfo.slice():e.DefaultOptions.hoverInfo,t.textColorHover=n.textColorHover||e.DefaultOptions.textColorHover,t.bgColorHover=n.bgColorHover||e.DefaultOptions.bgColorHover,t.showHeader=r.a.normalize(n.showHeader,e.DefaultOptions.showHeader),t.headerInfo=r.a.normalize(n.headerInfo,e.DefaultOptions.headerInfo),t.headerAccount=null!==(o=n.headerAccount)&&void 0!==o?o:e.DefaultOptions.headerAccount,t.headerAccount=null===t.headerAccount||void 0===c.b.getById(t.headerAccount)?c.b.list.length>0?c.b.list[0].id:null:t.headerAccount,t.headerStyle=r.a.normalize(n.headerStyle,e.DefaultOptions.headerStyle),t.headerTextSize=r.a.normalize(n.headerTextSize,e.DefaultOptions.headerTextSize),t.headerPhotoSize=r.a.normalize(n.headerPhotoSize,e.DefaultOptions.headerPhotoSize),t.headerTextColor=n.headerTextColor||e.DefaultOptions.headerTextColor,t.headerBgColor=n.headerBgColor||e.DefaultOptions.bgColor,t.headerPadding=r.a.normalize(n.headerPadding,e.DefaultOptions.headerPadding),t.customProfilePic=null!==(a=n.customProfilePic)&&void 0!==a?a:e.DefaultOptions.customProfilePic,t.customBioText=n.customBioText||e.DefaultOptions.customBioText,t.includeStories=null!==(i=n.includeStories)&&void 0!==i?i:e.DefaultOptions.includeStories,t.storiesInterval=n.storiesInterval||e.DefaultOptions.storiesInterval,t.showCaptions=r.a.normalize(n.showCaptions,e.DefaultOptions.showCaptions),t.captionMaxLength=r.a.normalize(n.captionMaxLength,e.DefaultOptions.captionMaxLength),t.captionRemoveDots=null!==(l=n.captionRemoveDots)&&void 0!==l?l:e.DefaultOptions.captionRemoveDots,t.captionSize=r.a.normalize(n.captionSize,e.DefaultOptions.captionSize),t.captionColor=n.captionColor||e.DefaultOptions.captionColor,t.showLikes=r.a.normalize(n.showLikes,e.DefaultOptions.showLikes),t.showComments=r.a.normalize(n.showComments,e.DefaultOptions.showCaptions),t.lcIconSize=r.a.normalize(n.lcIconSize,e.DefaultOptions.lcIconSize),t.likesIconColor=null!==(u=n.likesIconColor)&&void 0!==u?u:e.DefaultOptions.likesIconColor,t.commentsIconColor=n.commentsIconColor||e.DefaultOptions.commentsIconColor,t.lightboxShowSidebar=null!==(d=n.lightboxShowSidebar)&&void 0!==d?d:e.DefaultOptions.lightboxShowSidebar,t.numLightboxComments=n.numLightboxComments||e.DefaultOptions.numLightboxComments,t.showLoadMoreBtn=r.a.normalize(n.showLoadMoreBtn,e.DefaultOptions.showLoadMoreBtn),t.loadMoreBtnTextColor=n.loadMoreBtnTextColor||e.DefaultOptions.loadMoreBtnTextColor,t.loadMoreBtnBgColor=n.loadMoreBtnBgColor||e.DefaultOptions.loadMoreBtnBgColor,t.loadMoreBtnText=n.loadMoreBtnText||e.DefaultOptions.loadMoreBtnText,t.autoload=null!==(p=n.autoload)&&void 0!==p?p:e.DefaultOptions.autoload,t.showFollowBtn=r.a.normalize(n.showFollowBtn,e.DefaultOptions.showFollowBtn),t.followBtnText=null!==(h=n.followBtnText)&&void 0!==h?h:e.DefaultOptions.followBtnText,t.followBtnTextColor=n.followBtnTextColor||e.DefaultOptions.followBtnTextColor,t.followBtnBgColor=n.followBtnBgColor||e.DefaultOptions.followBtnBgColor,t.followBtnLocation=r.a.normalize(n.followBtnLocation,e.DefaultOptions.followBtnLocation),t.hashtagWhitelist=n.hashtagWhitelist||e.DefaultOptions.hashtagWhitelist,t.hashtagBlacklist=n.hashtagBlacklist||e.DefaultOptions.hashtagBlacklist,t.captionWhitelist=n.captionWhitelist||e.DefaultOptions.captionWhitelist,t.captionBlacklist=n.captionBlacklist||e.DefaultOptions.captionBlacklist,t.hashtagWhitelistSettings=null!==(m=n.hashtagWhitelistSettings)&&void 0!==m?m:e.DefaultOptions.hashtagWhitelistSettings,t.hashtagBlacklistSettings=null!==(g=n.hashtagBlacklistSettings)&&void 0!==g?g:e.DefaultOptions.hashtagBlacklistSettings,t.captionWhitelistSettings=null!==(b=n.captionWhitelistSettings)&&void 0!==b?b:e.DefaultOptions.captionWhitelistSettings,t.captionBlacklistSettings=null!==(y=n.captionBlacklistSettings)&&void 0!==y?y:e.DefaultOptions.captionBlacklistSettings,t.moderation=n.moderation||e.DefaultOptions.moderation,t.moderationMode=n.moderationMode||e.DefaultOptions.moderationMode,t.promotionEnabled=null!==(_=n.promotionEnabled)&&void 0!==_?_:e.DefaultOptions.promotionEnabled,t.autoPromotionsEnabled=null!==(v=n.autoPromotionsEnabled)&&void 0!==v?v:e.DefaultOptions.autoPromotionsEnabled,t.globalPromotionsEnabled=null!==(E=n.globalPromotionsEnabled)&&void 0!==E?E:e.DefaultOptions.globalPromotionsEnabled,Array.isArray(n.promotions)?t.promotions=f.a.fromArray(n.promotions):n.promotions&&n.promotions instanceof Map?t.promotions=f.a.fromMap(n.promotions):"object"==typeof n.promotions?t.promotions=n.promotions:t.promotions=e.DefaultOptions.promotions,t}static getAllAccounts(e){const t=c.b.idsToAccounts(e.accounts),n=c.b.idsToAccounts(e.tagged);return{all:t.concat(n),accounts:t,tagged:n}}static getSources(e){return{accounts:c.b.idsToAccounts(e.accounts),tagged:c.b.idsToAccounts(e.tagged),hashtags:c.b.getBusinessAccounts().length>0?e.hashtags.filter(e=>e.tag.length>0):[]}}static hasSources(t){const n=e.Options.getSources(t),o=n.accounts.length>0||n.tagged.length>0,a=n.hashtags.length>0;return o||a}static isLimitingPosts(e){return e.moderation.length>0||e.hashtagBlacklist.length>0||e.hashtagWhitelist.length>0||e.captionBlacklist.length>0||e.captionWhitelist.length>0}}b([i.n],E.prototype,"accounts",void 0),b([i.n],E.prototype,"hashtags",void 0),b([i.n],E.prototype,"tagged",void 0),b([i.n],E.prototype,"layout",void 0),b([i.n],E.prototype,"numColumns",void 0),b([i.n],E.prototype,"highlightFreq",void 0),b([i.n],E.prototype,"mediaType",void 0),b([i.n],E.prototype,"postOrder",void 0),b([i.n],E.prototype,"numPosts",void 0),b([i.n],E.prototype,"linkBehavior",void 0),b([i.n],E.prototype,"feedWidth",void 0),b([i.n],E.prototype,"feedHeight",void 0),b([i.n],E.prototype,"feedPadding",void 0),b([i.n],E.prototype,"imgPadding",void 0),b([i.n],E.prototype,"textSize",void 0),b([i.n],E.prototype,"bgColor",void 0),b([i.n],E.prototype,"textColorHover",void 0),b([i.n],E.prototype,"bgColorHover",void 0),b([i.n],E.prototype,"hoverInfo",void 0),b([i.n],E.prototype,"showHeader",void 0),b([i.n],E.prototype,"headerInfo",void 0),b([i.n],E.prototype,"headerAccount",void 0),b([i.n],E.prototype,"headerStyle",void 0),b([i.n],E.prototype,"headerTextSize",void 0),b([i.n],E.prototype,"headerPhotoSize",void 0),b([i.n],E.prototype,"headerTextColor",void 0),b([i.n],E.prototype,"headerBgColor",void 0),b([i.n],E.prototype,"headerPadding",void 0),b([i.n],E.prototype,"customBioText",void 0),b([i.n],E.prototype,"customProfilePic",void 0),b([i.n],E.prototype,"includeStories",void 0),b([i.n],E.prototype,"storiesInterval",void 0),b([i.n],E.prototype,"showCaptions",void 0),b([i.n],E.prototype,"captionMaxLength",void 0),b([i.n],E.prototype,"captionRemoveDots",void 0),b([i.n],E.prototype,"captionSize",void 0),b([i.n],E.prototype,"captionColor",void 0),b([i.n],E.prototype,"showLikes",void 0),b([i.n],E.prototype,"showComments",void 0),b([i.n],E.prototype,"lcIconSize",void 0),b([i.n],E.prototype,"likesIconColor",void 0),b([i.n],E.prototype,"commentsIconColor",void 0),b([i.n],E.prototype,"lightboxShowSidebar",void 0),b([i.n],E.prototype,"numLightboxComments",void 0),b([i.n],E.prototype,"showLoadMoreBtn",void 0),b([i.n],E.prototype,"loadMoreBtnText",void 0),b([i.n],E.prototype,"loadMoreBtnTextColor",void 0),b([i.n],E.prototype,"loadMoreBtnBgColor",void 0),b([i.n],E.prototype,"autoload",void 0),b([i.n],E.prototype,"showFollowBtn",void 0),b([i.n],E.prototype,"followBtnText",void 0),b([i.n],E.prototype,"followBtnTextColor",void 0),b([i.n],E.prototype,"followBtnBgColor",void 0),b([i.n],E.prototype,"followBtnLocation",void 0),b([i.n],E.prototype,"hashtagWhitelist",void 0),b([i.n],E.prototype,"hashtagBlacklist",void 0),b([i.n],E.prototype,"captionWhitelist",void 0),b([i.n],E.prototype,"captionBlacklist",void 0),b([i.n],E.prototype,"hashtagWhitelistSettings",void 0),b([i.n],E.prototype,"hashtagBlacklistSettings",void 0),b([i.n],E.prototype,"captionWhitelistSettings",void 0),b([i.n],E.prototype,"captionBlacklistSettings",void 0),b([i.n],E.prototype,"moderation",void 0),b([i.n],E.prototype,"moderationMode",void 0),e.Options=E;class w{constructor(e){Object.getOwnPropertyNames(e).map(t=>{this[t]=e[t]})}getCaption(e){const t=e.caption?e.caption:"";return this.captionMaxLength&&t.length?Object(u.s)(Object(u.v)(t,this.captionMaxLength)):t}static compute(t,n=r.a.Mode.DESKTOP){const o=new w({accounts:c.b.filterExisting(t.accounts),tagged:c.b.filterExisting(t.tagged),hashtags:t.hashtags.filter(e=>e.tag.length>0),layout:s.a.getById(t.layout),highlightFreq:r.a.get(t.highlightFreq,n,!0),linkBehavior:r.a.get(t.linkBehavior,n,!0),bgColor:Object(d.a)(t.bgColor),textColorHover:Object(d.a)(t.textColorHover),bgColorHover:Object(d.a)(t.bgColorHover),hoverInfo:t.hoverInfo,showHeader:r.a.get(t.showHeader,n,!0),headerInfo:r.a.get(t.headerInfo,n,!0),headerStyle:r.a.get(t.headerStyle,n,!0),headerTextColor:Object(d.a)(t.headerTextColor),headerBgColor:Object(d.a)(t.headerBgColor),headerPadding:r.a.get(t.headerPadding,n,!0),includeStories:t.includeStories,storiesInterval:t.storiesInterval,showCaptions:r.a.get(t.showCaptions,n,!0),captionMaxLength:r.a.get(t.captionMaxLength,n,!0),captionRemoveDots:t.captionRemoveDots,captionColor:Object(d.a)(t.captionColor),showLikes:r.a.get(t.showLikes,n,!0),showComments:r.a.get(t.showComments,n,!0),likesIconColor:Object(d.a)(t.likesIconColor),commentsIconColor:Object(d.a)(t.commentsIconColor),lightboxShowSidebar:t.lightboxShowSidebar,numLightboxComments:t.numLightboxComments,showLoadMoreBtn:r.a.get(t.showLoadMoreBtn,n,!0),loadMoreBtnTextColor:Object(d.a)(t.loadMoreBtnTextColor),loadMoreBtnBgColor:Object(d.a)(t.loadMoreBtnBgColor),loadMoreBtnText:t.loadMoreBtnText,showFollowBtn:r.a.get(t.showFollowBtn,n,!0),autoload:t.autoload,followBtnLocation:r.a.get(t.followBtnLocation,n,!0),followBtnTextColor:Object(d.a)(t.followBtnTextColor),followBtnBgColor:Object(d.a)(t.followBtnBgColor),followBtnText:t.followBtnText,account:null,showBio:!1,bioText:null,profilePhotoUrl:c.b.DEFAULT_PROFILE_PIC,feedWidth:"",feedHeight:"",feedPadding:"",imgPadding:"",textSize:"",headerTextSize:"",headerPhotoSize:"",captionSize:"",lcIconSize:"",showLcIcons:!1});if(o.numColumns=this.getNumCols(t,n),o.numPosts=this.getNumPosts(t,n),o.allAccounts=o.accounts.concat(o.tagged.filter(e=>!o.accounts.includes(e))),o.allAccounts.length>0&&(o.account=t.headerAccount&&o.allAccounts.includes(t.headerAccount)?c.b.getById(t.headerAccount):c.b.getById(o.allAccounts[0])),o.showHeader=o.showHeader&&null!==o.account,o.showHeader&&(o.profilePhotoUrl=t.customProfilePic.length?t.customProfilePic:c.b.getProfilePicUrl(o.account)),o.showFollowBtn=o.showFollowBtn&&null!==o.account,o.showBio=o.headerInfo.some(t=>t===e.HeaderInfo.BIO),o.showBio){const e=t.customBioText.trim().length>0?t.customBioText:null!==o.account?c.b.getBioText(o.account):"";o.bioText=Object(u.s)(e),o.showBio=o.bioText.length>0}return o.feedWidth=this.normalizeCssSize(t.feedWidth,n,"auto"),o.feedHeight=this.normalizeCssSize(t.feedHeight,n,"auto"),o.feedPadding=this.normalizeCssSize(t.feedPadding,n,"0"),o.imgPadding=this.normalizeCssSize(t.imgPadding,n,"0"),o.textSize=this.normalizeCssSize(t.textSize,n,"inherit",!0),o.headerTextSize=this.normalizeCssSize(t.headerTextSize,n,"inherit"),o.headerPhotoSize=this.normalizeCssSize(t.headerPhotoSize,n,"50px"),o.captionSize=this.normalizeCssSize(t.captionSize,n,"inherit"),o.lcIconSize=this.normalizeCssSize(t.lcIconSize,n,"inherit"),o.buttonPadding=Math.max(10,r.a.get(t.imgPadding,n))+"px",o.showLcIcons=o.showLikes||o.showComments,o}static getNumCols(e,t){return Math.max(1,this.normalizeMultiInt(e.numColumns,t,1))}static getNumPosts(e,t){return Math.max(1,this.normalizeMultiInt(e.numPosts,t,1))}static normalizeMultiInt(e,t,n=0){const o=parseInt(r.a.get(e,t)+"");return isNaN(o)?t===r.a.Mode.DESKTOP?n:this.normalizeMultiInt(e,r.a.Mode.DESKTOP,n):o}static normalizeCssSize(e,t,n=null,o=!1){const a=r.a.get(e,t,o);return a?a+"px":n}}function O(e,t){if(g.a.isPro)return Object(u.l)(m.a.isValid,[()=>S(e,t),()=>t.globalPromotionsEnabled&&m.a.getGlobalPromo(e),()=>t.autoPromotionsEnabled&&m.a.getAutoPromo(e)])}function S(e,t){return e?m.a.getPromoFromDictionary(e,t.promotions):void 0}e.ComputedOptions=w,e.HashtagSorting=Object(l.c)({recent:"Most recent",popular:"Most popular"}),function(e){e.ALL="all",e.PHOTOS="photos",e.VIDEOS="videos"}(n=e.MediaType||(e.MediaType={})),function(e){e.NOTHING="nothing",e.SELF="self",e.NEW_TAB="new_tab",e.LIGHTBOX="lightbox"}(o=e.LinkBehavior||(e.LinkBehavior={})),function(e){e.DATE_ASC="date_asc",e.DATE_DESC="date_desc",e.POPULARITY_ASC="popularity_asc",e.POPULARITY_DESC="popularity_desc",e.RANDOM="random"}(a=e.PostOrder||(e.PostOrder={})),function(e){e.USERNAME="username",e.DATE="date",e.CAPTION="caption",e.LIKES_COMMENTS="likes_comments",e.INSTA_LINK="insta_link"}(p=e.HoverInfo||(e.HoverInfo={})),function(e){e.NORMAL="normal",e.BOXED="boxed",e.CENTERED="centered"}(h=e.HeaderStyle||(e.HeaderStyle={})),function(e){e.BIO="bio",e.PROFILE_PIC="profile_pic",e.FOLLOWERS="followers",e.MEDIA_COUNT="media_count"}(y=e.HeaderInfo||(e.HeaderInfo={})),function(e){e.HEADER="header",e.BOTTOM="bottom",e.BOTH="both"}(_=e.FollowBtnLocation||(e.FollowBtnLocation={})),function(e){e.WHITELIST="whitelist",e.BLACKLIST="blacklist"}(v=e.ModerationMode||(e.ModerationMode={})),e.DefaultOptions={accounts:[],hashtags:[],tagged:[],layout:null,numColumns:{desktop:3},highlightFreq:{desktop:7},mediaType:n.ALL,postOrder:a.DATE_DESC,numPosts:{desktop:9},linkBehavior:{desktop:o.LIGHTBOX,phone:o.NEW_TAB},feedWidth:{desktop:""},feedHeight:{desktop:""},feedPadding:{desktop:20,tablet:14,phone:10},imgPadding:{desktop:14,tablet:10,phone:6},textSize:{all:""},bgColor:{r:255,g:255,b:255,a:1},hoverInfo:[p.LIKES_COMMENTS,p.INSTA_LINK],textColorHover:{r:255,g:255,b:255,a:1},bgColorHover:{r:0,g:0,b:0,a:.5},showHeader:{desktop:!0},headerInfo:{desktop:[y.PROFILE_PIC,y.BIO]},headerAccount:null,headerStyle:{desktop:h.NORMAL,phone:h.CENTERED},headerTextSize:{desktop:""},headerPhotoSize:{desktop:50},headerTextColor:{r:0,g:0,b:0,a:1},headerBgColor:{r:255,g:255,b:255,a:1},headerPadding:{desktop:0},customProfilePic:0,customBioText:"",includeStories:!1,storiesInterval:5,showCaptions:{desktop:!1},captionMaxLength:{desktop:0},captionRemoveDots:!1,captionSize:{desktop:0},captionColor:{r:0,g:0,b:0,a:1},showLikes:{desktop:!1},showComments:{desktop:!1},lcIconSize:{desktop:14},likesIconColor:{r:0,g:0,b:0,a:1},commentsIconColor:{r:0,g:0,b:0,a:1},lightboxShowSidebar:!1,numLightboxComments:50,showLoadMoreBtn:{desktop:!0},loadMoreBtnTextColor:{r:255,g:255,b:255,a:1},loadMoreBtnBgColor:{r:0,g:149,b:246,a:1},loadMoreBtnText:"Load more",autoload:!1,showFollowBtn:{desktop:!0},followBtnText:"Follow on Instagram",followBtnTextColor:{r:255,g:255,b:255,a:1},followBtnBgColor:{r:0,g:149,b:246,a:1},followBtnLocation:{desktop:_.HEADER,phone:_.BOTTOM},hashtagWhitelist:[],hashtagBlacklist:[],captionWhitelist:[],captionBlacklist:[],hashtagWhitelistSettings:!0,hashtagBlacklistSettings:!0,captionWhitelistSettings:!0,captionBlacklistSettings:!0,moderation:[],moderationMode:v.BLACKLIST,promotionEnabled:!0,autoPromotionsEnabled:!0,globalPromotionsEnabled:!0,promotions:{}},e.getPromo=O,e.getFeedPromo=S,e.executeMediaClick=function(e,t){const n=O(e,t),o=m.a.getConfig(n),a=m.a.getType(n);return!(!a||!a.isValid(o)||"function"!=typeof a.onMediaClick)&&a.onMediaClick(e,o)},e.getLink=function(e,t){var n,o;const a=O(e,t),i=m.a.getConfig(a),r=m.a.getType(a);if(void 0===r||!r.isValid(i))return{text:null,url:null,newTab:!1};let[s,l]=r.getPopupLink?null!==(n=r.getPopupLink(e,i))&&void 0!==n?n:null:[null,!1];return{text:s,url:r.getMediaUrl&&null!==(o=r.getMediaUrl(e,i))&&void 0!==o?o:null,newTab:l}}}(y||(y={}))},73:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(0),a=n.n(o),i=n(43),r=n.n(i),s=n(15),l=n(3),c=n(58),u=n(11),d=n(16);function p(e){var{media:t,className:n,size:i,onLoadImage:p,width:h,height:m}=e,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}(e,["media","className","size","onLoadImage","width","height"]);const g=a.a.useRef(),[b,y]=a.a.useState(!0);function _(){if(g.current){const e=t.type===s.a.Type.ALBUM&&t.children.length>0?t.children[0]:t;let n;if(void 0===i){const e=g.current.getBoundingClientRect();n=e.width<=320?l.a.SMALL:e.width<=480?l.a.MEDIUM:l.a.LARGE}else n=i;if("string"==typeof t.sliThumbnail&&t.sliThumbnail.length>0)g.current.src=t.sliThumbnail+"&size="+n;else{const t=Object(l.n)(e.permalink);g.current.src=Object(l.m)(t,n)}}}return Object(o.useLayoutEffect)(()=>(g.current&&(g.current.onload=()=>{y(!1),p&&p()},_()),()=>g.current.onload=()=>null),[t,i]),Object(d.m)(()=>{void 0===i&&_()}),t.url&&t.url.length>0?a.a.createElement("div",Object.assign({className:Object(u.b)(r.a.root,n)},f),a.a.createElement("img",Object.assign({ref:g,className:r.a.image,loading:"lazy",alt:t.caption,width:h,height:m},u.e)),b&&a.a.createElement(c.a,null)):a.a.createElement("div",{className:r.a.notAvailable},a.a.createElement("span",null,"Thumbnail not available"))}},74:function(e,t,n){e.exports={root:"MediaLoading__root",animation:"MediaLoading__animation"}},76:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var o=n(7),a=n(18),i=n(3);class r{constructor(e=!1,t=!1){this.incModeration=!1,this.incFilters=!1,this.prevOptions=null,this.media=new Array,this.incModeration=e,this.incFilters=t}fetchMedia(e,t){if(this.hasCache(e))return Promise.resolve(this.media);const n=Object.assign({},e.options,{moderation:this.incModeration?e.options.moderation:[],moderationMode:e.options.moderationMode,hashtagBlacklist:this.incFilters?e.options.hashtagBlacklist:[],hashtagWhitelist:this.incFilters?e.options.hashtagWhitelist:[],captionBlacklist:this.incFilters?e.options.captionBlacklist:[],captionWhitelist:this.incFilters?e.options.captionWhitelist:[],hashtagBlacklistSettings:!!this.incFilters&&e.options.hashtagBlacklistSettings,hashtagWhitelistSettings:!!this.incFilters&&e.options.hashtagWhitelistSettings,captionBlacklistSettings:!!this.incFilters&&e.options.captionBlacklistSettings,captionWhitelistSettings:!!this.incFilters&&e.options.captionWhitelistSettings});return t&&t(),a.a.getFeedMedia(n).then(t=>(this.prevOptions=new o.a.Options(e.options),this.media=t.data.media,this.media))}hasCache(e){return null!==this.prevOptions&&!this.isCacheInvalid(e)}isCacheInvalid(e){const t=e.options,n=this.prevOptions;if(Object(i.k)(e.media,this.media,(e,t)=>e.id===t.id).length>0)return!0;if(!Object(i.f)(t.accounts,n.accounts))return!0;if(!Object(i.f)(t.tagged,n.tagged))return!0;if(!Object(i.f)(t.hashtags,n.hashtags,i.p))return!0;if(this.incModeration){if(t.moderationMode!==n.moderationMode)return!0;if(!Object(i.f)(t.moderation,n.moderation))return!0}if(this.incFilters){if(t.captionWhitelistSettings!==n.captionWhitelistSettings||t.captionBlacklistSettings!==n.captionBlacklistSettings||t.hashtagWhitelistSettings!==n.hashtagWhitelistSettings||t.hashtagBlacklistSettings!==n.hashtagBlacklistSettings)return!0;if(!Object(i.f)(t.captionWhitelist,n.captionWhitelist))return!0;if(!Object(i.f)(t.captionBlacklist,n.captionBlacklist))return!0;if(!Object(i.f)(t.hashtagWhitelist,n.hashtagWhitelist))return!0;if(!Object(i.f)(t.hashtagBlacklist,n.hashtagBlacklist))return!0}return!1}}const s=new r(!0,!0),l=new r(!1,!0)},77:function(e,t,n){e.exports={root:"ProfilePic__root",round:"ProfilePic__round ProfilePic__root",square:"ProfilePic__square ProfilePic__root"}},78:function(e,t,n){e.exports={"connect-btn":"AccountsPage__connect-btn",connectBtn:"AccountsPage__connect-btn"}},8:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o,a=n(12),i=n(22),r=n(3);!function(e){function t(e){return e?c(e.type):void 0}function n(e){var n;if("object"!=typeof e)return!1;const o=t(e);return void 0!==o&&o.isValid(null!==(n=e.config)&&void 0!==n?n:{})}function o(t){return t?e.getPromoFromDictionary(t,a.a.config.globalPromotions):void 0}function s(e){const t=l(e);return void 0===t?void 0:t.promotion}function l(t){if(t)for(const n of a.a.config.autoPromotions){const o=e.Automation.getType(n),a=e.Automation.getConfig(n);if(o&&o.matches(t,a))return n}}function c(t){return e.types.find(e=>e.id===t)}let u;e.getConfig=function(e){var t,n;return e&&null!==(n=null!==(t=e.config)&&void 0!==t?t:e.data)&&void 0!==n?n:{}},e.getType=t,e.isValid=n,e.getPromoFromDictionary=function(t,n){const o=i.a.get(n,t.id);if(o)return e.getType(o)?o:void 0},e.getPromo=function(e){return Object(r.l)(n,[()=>o(e),()=>s(e)])},e.getGlobalPromo=o,e.getAutoPromo=s,e.getAutomation=l,e.types=[],e.getTypes=function(){return e.types},e.registerType=function(t){e.types.push(t)},e.getTypeById=c,e.clearTypes=function(){e.types.splice(0,e.types.length)},function(e){e.getType=function(e){return e?n(e.type):void 0},e.getConfig=function(e){var t,n;return e&&null!==(n=null!==(t=e.config)&&void 0!==t?t:e.data)&&void 0!==n?n:{}},e.getPromotion=function(e){return e?e.promotion:void 0};const t=[];function n(e){return t.find(t=>t.id===e)}e.getTypes=function(){return t},e.registerType=function(e){t.push(e)},e.getTypeById=n,e.clearTypes=function(){t.splice(0,t.length)}}(u=e.Automation||(e.Automation={}))}(o||(o={}))},86:function(e,t,n){e.exports={label:"TabNavbar__label",tab:"TabNavbar__tab",current:"TabNavbar__current TabNavbar__tab",disabled:"TabNavbar__disabled TabNavbar__tab"}},89:function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o=n(0),a=n.n(o),i=n(45),r=n(9),s=n.n(r),l=n(6),c=n(4),u=n(613),d=n(611),p=n(55),h=n(111),m=n(102),f=n(30),g=n(5),b=n(23),y=n(14),_=n(59),v=Object(l.b)((function({account:e,onUpdate:t}){const[n,o]=a.a.useState(!1),[i,r]=a.a.useState(""),[l,v]=a.a.useState(!1),E=e.type===c.a.Type.PERSONAL,w=c.b.getBioText(e),O=()=>{e.customBio=i,v(!0),f.a.updateAccount(e).then(()=>{o(!1),v(!1),t&&t()})},S=n=>{e.customProfilePicUrl=n,v(!0),f.a.updateAccount(e).then(()=>{v(!1),t&&t()})};return a.a.createElement("div",{className:s.a.root},a.a.createElement("div",{className:s.a.container},a.a.createElement("div",{className:s.a.infoColumn},a.a.createElement("a",{href:c.b.getProfileUrl(e),target:"_blank",className:s.a.username},"@",e.username),a.a.createElement("div",{className:s.a.row},a.a.createElement("span",{className:s.a.label},"Spotlight ID:"),e.id),a.a.createElement("div",{className:s.a.row},a.a.createElement("span",{className:s.a.label},"User ID:"),e.userId),a.a.createElement("div",{className:s.a.row},a.a.createElement("span",{className:s.a.label},"Type:"),e.type),!n&&a.a.createElement("div",{className:s.a.row},a.a.createElement("div",null,a.a.createElement("span",{className:s.a.label},"Bio:"),a.a.createElement("a",{className:s.a.editBioLink,onClick:()=>{r(c.b.getBioText(e)),o(!0)}},"Edit bio"),a.a.createElement("pre",{className:s.a.bio},w.length>0?w:"(No bio)"))),n&&a.a.createElement("div",{className:s.a.row},a.a.createElement("textarea",{className:s.a.bioEditor,value:i,onChange:e=>{r(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&e.ctrlKey&&(O(),e.preventDefault(),e.stopPropagation())},rows:4}),a.a.createElement("div",{className:s.a.bioFooter},a.a.createElement("div",{className:s.a.bioEditingControls},l&&a.a.createElement("span",null,"Please wait ...")),a.a.createElement("div",{className:s.a.bioEditingControls},a.a.createElement(g.a,{className:s.a.bioEditingButton,type:g.c.DANGER,disabled:l,onClick:()=>{e.customBio="",v(!0),f.a.updateAccount(e).then(()=>{o(!1),v(!1),t&&t()})}},"Reset"),a.a.createElement(g.a,{className:s.a.bioEditingButton,type:g.c.SECONDARY,disabled:l,onClick:()=>{o(!1)}},"Cancel"),a.a.createElement(g.a,{className:s.a.bioEditingButton,type:g.c.PRIMARY,disabled:l,onClick:O},"Save"))))),a.a.createElement("div",{className:s.a.picColumn},a.a.createElement("div",null,a.a.createElement(_.a,{account:e,className:s.a.profilePic})),a.a.createElement(h.a,{id:"account-custom-profile-pic",title:"Select profile picture",mediaType:"image",onSelect:e=>{const t=parseInt(e.attributes.id),n=m.a.media.attachment(t).attributes.url;S(n)}},({open:e})=>a.a.createElement(g.a,{type:g.c.SECONDARY,className:s.a.setCustomPic,onClick:e},"Change profile picture")),e.customProfilePicUrl.length>0&&a.a.createElement("a",{className:s.a.resetCustomPic,onClick:()=>{S("")}},"Reset profile picture"))),E&&a.a.createElement("div",{className:s.a.personalInfoMessage},a.a.createElement(b.a,{type:b.b.INFO,showIcon:!0},"Due to restrictions set by Instagram, Spotlight cannot import the profile photo and bio"," ","text for Personal accounts."," ",a.a.createElement("a",{href:y.a.resources.customPersonalInfoUrl,target:"_blank"},"Click here to learn more"),".")),a.a.createElement(p.a,{label:"View access token",stealth:!0},a.a.createElement("div",{className:s.a.row},e.accessToken&&a.a.createElement("div",null,a.a.createElement("p",null,a.a.createElement("span",{className:s.a.label},"Expires on:"),a.a.createElement("span",null,e.accessToken.expiry?Object(u.a)(Object(d.a)(e.accessToken.expiry),"PPPP"):"Unknown")),a.a.createElement("pre",{className:s.a.accessToken},e.accessToken.code)))))}));function E({isOpen:e,onClose:t,onUpdate:n,account:o}){return a.a.createElement(i.a,{isOpen:e,title:"Account details",icon:"admin-users",onClose:t},a.a.createElement(i.a.Content,null,a.a.createElement(v,{account:o,onUpdate:n})))}},9: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",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"}},96:function(e,t,n){e.exports={root:"PopupTextField__root layout__flex-row",container:"PopupTextField__container layout__flex-row","edit-container":"PopupTextField__edit-container PopupTextField__container layout__flex-row",editContainer:"PopupTextField__edit-container PopupTextField__container layout__flex-row","static-container":"PopupTextField__static-container PopupTextField__container layout__flex-row",staticContainer:"PopupTextField__static-container PopupTextField__container layout__flex-row","edit-icon":"PopupTextField__edit-icon dashicons__dashicon-normal",editIcon:"PopupTextField__edit-icon dashicons__dashicon-normal",label:"PopupTextField__label","done-btn":"PopupTextField__done-btn",doneBtn:"PopupTextField__done-btn"}},97:function(e,t,n){"use strict";var o=n(76);t.a=new class{constructor(){this.mediaStore=o.a}}}},[[609,0,1,2,3]]])}));
ui/dist/elementor-widget.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],e):"object"==typeof exports?exports.spotlight=e(require("React"),require("ReactDOM")):t.spotlight=e(t.React,t.ReactDOM)}(window,(function(t,e){return(window.webpackJsonpspotlight=window.webpackJsonpspotlight||[]).push([[10],{0:function(e,o){e.exports=t},108:function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n=o(0),i=o.n(n),r=o(6),a=o(27),s=o(7);const l=Object(r.b)(({feed:t})=>{const e=a.a.getById(t.options.layout),o=s.a.ComputedOptions.compute(t.options,t.mode);return i.a.createElement("div",{className:"feed"},i.a.createElement(e.component,{feed:t,options:o}))})},12:function(t,e,o){"use strict";var n,i=o(8);let r;e.a=r={isPro:!1,config:{restApi:SliCommonL10n.restApi,imagesUrl:SliCommonL10n.imagesUrl,autoPromotions:SliCommonL10n.autoPromotions,globalPromotions:null!==(n=SliCommonL10n.globalPromotions)&&void 0!==n?n:{}},image:t=>`${r.config.imagesUrl}/${t}`},i.a.registerType({id:"link",label:"Link",isValid:()=>!1}),i.a.registerType({id:"-more-",label:"- More promotion types -",isValid:()=>!1}),i.a.Automation.registerType({id:"hashtag",label:"Hashtag",matches:()=>!1})},13:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));const n=t=>"string"==typeof t?t:"r"in t?"rgba("+t.r+","+t.g+","+t.b+","+t.a+")":"h"in t?"hsla("+t.h+","+t.s+","+t.l+","+t.a+")":"#fff"},15:function(t,e,o){"use strict";var n;o.d(e,"a",(function(){return n})),function(t){let e,o;!function(t){t.IMAGE="IMAGE",t.VIDEO="VIDEO",t.ALBUM="CAROUSEL_ALBUM"}(e=t.Type||(t.Type={})),function(t){let e;!function(t){t.PERSONAL_ACCOUNT="PERSONAL_ACCOUNT",t.BUSINESS_ACCOUNT="BUSINESS_ACCOUNT",t.TAGGED_ACCOUNT="TAGGED_ACCOUNT",t.RECENT_HASHTAG="RECENT_HASHTAG",t.POPULAR_HASHTAG="POPULAR_HASHTAG",t.USER_STORY="USER_STORY"}(e=t.Type||(t.Type={}))}(o=t.Source||(t.Source={})),t.getAsRows=(t,e)=>{t=t.slice(),e=e>0?e:1;let o=[];for(;t.length;)o.push(t.splice(0,e));if(o.length>0){const t=o.length-1;for(;o[t].length<e;)o[t].push({})}return o},t.isFromHashtag=t=>t.source.type===o.Type.POPULAR_HASHTAG||t.source.type===o.Type.RECENT_HASHTAG}(n||(n={}))},16:function(t,e,o){"use strict";o.d(e,"i",(function(){return s})),o.d(e,"e",(function(){return l})),o.d(e,"b",(function(){return c})),o.d(e,"c",(function(){return u})),o.d(e,"a",(function(){return d})),o.d(e,"m",(function(){return h})),o.d(e,"g",(function(){return p})),o.d(e,"k",(function(){return f})),o.d(e,"j",(function(){return g})),o.d(e,"d",(function(){return y})),o.d(e,"l",(function(){return v})),o.d(e,"f",(function(){return w})),o.d(e,"h",(function(){return b}));var n=o(0),i=o.n(n),r=o(39),a=o(29);function s(t,e){!function(t,e,o){const n=i.a.useRef(!0);t(()=>{n.current=!0;const t=e(()=>new Promise(t=>{n.current&&t()}));return()=>{n.current=!1,t&&t()}},o)}(n.useEffect,t,e)}function l(t){const[e,o]=i.a.useState(t),n=i.a.useRef(e);return[e,()=>n.current,t=>o(n.current=t)]}function c(t,e,o=[]){function i(n){!t.current||t.current.contains(n.target)||o.some(t=>t&&t.current&&t.current.contains(n.target))||e(n)}Object(n.useEffect)(()=>(document.addEventListener("mousedown",i),document.addEventListener("touchend",i),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("touchend",i)}))}function u(t,e){Object(n.useEffect)(()=>{const o=()=>{0===t.filter(t=>!t.current||document.activeElement===t.current||t.current.contains(document.activeElement)).length&&e()};return document.addEventListener("keyup",o),()=>document.removeEventListener("keyup",o)},t)}function d(t,e,o=100){const[r,a]=i.a.useState(t);return Object(n.useEffect)(()=>{let n=null;return t===e?n=setTimeout(()=>a(e),o):a(!e),()=>{null!==n&&clearTimeout(n)}},[t]),[r,a]}function h(t){const[e,o]=i.a.useState(Object(a.b)()),r=()=>{const e=Object(a.b)();o(e),t&&t(e)};return Object(n.useEffect)(()=>(r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[]),e}function p(){return new URLSearchParams(Object(r.e)().search)}function f(t,e){const o=o=>{if(e)return(o||window.event).returnValue=t,t};Object(n.useEffect)(()=>(window.addEventListener("beforeunload",o),()=>window.removeEventListener("beforeunload",o)),[e])}function g(t,e){const o=i.a.useRef(!1);return Object(n.useEffect)(()=>{o.current&&void 0!==t.current&&(t.current.scrollIntoView(Object.assign({behavior:"smooth",block:"start"},null!=e?e:{})),o.current=!1)},[o.current]),()=>o.current=!0}function m(t,e,o,i=[],r=[]){Object(n.useEffect)(()=>(i.reduce((t,e)=>t&&e,!0)&&t.addEventListener(e,o),()=>t.removeEventListener(e,o)),r)}function y(t,e,o=[],n=[]){m(document,t,e,o,n)}function v(t,e,o=[],n=[]){m(window,t,e,o,n)}function w(t){return e=>{" "!==e.key&&"Enter"!==e.key||(t(),e.preventDefault(),e.stopPropagation())}}function b(t){const[e,o]=i.a.useState(t);return[function(t){const e=i.a.useRef(t);return e.current=t,e}(e),o]}o(35)},18:function(t,e,o){"use strict";var n=o(34),i=o.n(n),r=o(12),a=o(35);const s=r.a.config.restApi.baseUrl,l={};r.a.config.restApi.authToken&&(l["X-Sli-Auth-Token"]=r.a.config.restApi.authToken);const c=i.a.create({baseURL:s,headers:l}),u={config:r.a.config.restApi,driver:c,getAccounts:()=>c.get("/accounts"),getFeeds:()=>c.get("/feeds"),getFeedMedia:(t,e=0,o=0,n)=>{const r=n?new i.a.CancelToken(n):void 0;return c.post("/media/fetch",{options:t,num:o,from:e},{cancelToken:r})},getErrorReason:t=>{let e;return e="object"==typeof t.response?t.response.data:"string"==typeof t.message?t.message:t.toString(),Object(a.b)(e)}};e.a=u},197:function(t,e,o){"use strict";o.d(e,"a",(function(){return O}));var n=o(0),i=o.n(n),r=o(32),a=o(1),s=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};class l{constructor(t){this.feed=t,this.isLoaded=!1}load(t){this.isLoaded||this.feed.load().then(()=>{this.isLoaded=!0,t&&t()}).catch(t=>{})}}s([a.n],l.prototype,"isLoaded",void 0),s([a.n],l.prototype,"feed",void 0);var c=o(6),u=o(2),d=o(16),h=o(108);const p=Object(c.b)(({store:t})=>(Object(d.m)(e=>t.feed.mode=u.a.getModeForWindowSize(e)),i.a.createElement("div",{className:"spotlight-instagram-app"},i.a.createElement(h.a,{feed:t.feed}))));var f=o(7),g=o(29);const m=t=>({factories:Object(r.c)({"front/feed":()=>{const e=u.a.getModeForWindowSize(Object(g.b)());return new f.a(t,e)},"front/store":t=>new l(t.get("front/feed")),"front/component":t=>()=>i.a.createElement(p,{store:t.get("front/store")})}),extensions:Object(r.c)({"root/children":(t,e)=>[...e,t.get("front/component")]}),run:t=>{t.get("front/store").load()}});var y=o(3),v=o(4);window.SliFrontCtx||(window.SliFrontCtx={}),window.SliAccountInfo||(window.SliAccountInfo={}),window.SpotlightInstagram||(window.SpotlightInstagram={instances:[],init(t={}){window.SpotlightInstagram.instances=[];const e=document.getElementsByClassName("spotlight-instagram-feed");for(let o=0,n=e.length||0;o<n;++o){const n=e[o];window.SpotlightInstagram.feed(n,t)}},feed(t,e={}){var o;const n=t.getAttribute("data-feed-var");if(n&&window.SliFrontCtx.hasOwnProperty(n))if(t.children.length>0)e.silent;else{const e=Object(y.w)();v.b.addAccounts(null!==(o=b[n])&&void 0!==o?o:[]);const i=w[n],a=[m(i)],s=new r.a("front/vars/"+e,t,a);window.SpotlightInstagram.instances.push(s),s.run()}}});const w=window.SliFrontCtx,b=window.SliAccountInfo,O=window.SpotlightInstagram},2:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n,i=o(1),r=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};!function(t){class e{constructor(t,e,o){this.prop=t,this.name=e,this.icon=o}}e.DESKTOP=new e("desktop","Desktop","desktop"),e.TABLET=new e("tablet","Tablet","tablet"),e.PHONE=new e("phone","Phone","smartphone"),t.Mode=e,t.MODES=[e.DESKTOP,e.TABLET,e.PHONE];class o{constructor(t,e,o){this.desktop=t,this.tablet=e,this.phone=o}get(t,e){return n(this,t,e)}set(t,e){a(this,e,t)}with(t,e){const n=s(this,e,t);return new o(n.desktop,n.tablet,n.phone)}}function n(t,e,o=!1){if(!t)return;const n=t[e.prop];return o&&null==n?t.desktop:n}function a(t,e,o){return t[o.prop]=e,t}function s(t,e,n){return a(new o(t.desktop,t.tablet,t.phone),e,n)}r([i.n],o.prototype,"desktop",void 0),r([i.n],o.prototype,"tablet",void 0),r([i.n],o.prototype,"phone",void 0),t.Value=o,t.getName=function(t){return t.name},t.getIcon=function(t){return t.icon},t.cycle=function(o){const n=t.MODES.findIndex(t=>t===o);return void 0===n?e.DESKTOP:t.MODES[(n+1)%t.MODES.length]},t.get=n,t.set=a,t.withValue=s,t.normalize=function(t,e){return null==t?e.hasOwnProperty("all")?new o(e.all,e.all,e.all):new o(e.desktop,e.tablet,e.phone):"object"==typeof t&&t.hasOwnProperty("desktop")?new o(t.desktop,t.tablet,t.phone):new o(t,t,t)},t.getModeForWindowSize=function(t){return t.width<=768?e.PHONE:t.width<=935?e.TABLET:e.DESKTOP},t.isValid=function(t){return"object"==typeof t&&t.hasOwnProperty("desktop")}}(n||(n={}))},22:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n,i=o(3);!function(t){function e(t,e){return t.hasOwnProperty(e.toString())}function o(t,e){return t[e.toString()]}function n(t,e,o){return t[e.toString()]=o,t}t.has=e,t.get=o,t.set=n,t.ensure=function(o,i,r){return e(o,i)||n(o,i,r),t.get(o,i)},t.withEntry=function(e,o,n){return t.set(Object(i.h)(e),o,n)},t.remove=function(t,e){return delete t[e.toString()],t},t.without=function(e,o){return t.remove(Object(i.h)(e),o)},t.at=function(t,e){return o(t,Object.keys(t)[e])},t.keys=function(t){return Object.keys(t)},t.values=function(t){return Object.values(t)},t.entries=function(t){return Object.getOwnPropertyNames(t).map(e=>[e,t[e]])},t.map=function(e,o){const n={};return t.forEach(e,(t,e)=>n[t]=o(e,t)),n},t.size=function(e){return t.keys(e).length},t.isEmpty=function(e){return 0===t.size(e)},t.equals=function(t,e){return Object(i.r)(t,e)},t.forEach=function(e,o){t.keys(e).forEach(t=>o(t,e[t]))},t.fromArray=function(e){const o={};return e.forEach(([e,n])=>t.set(o,e,n)),o},t.fromMap=function(e){const o={};return e.forEach((e,n)=>t.set(o,n,e)),o}}(n||(n={}))},27:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));class n{static getById(t){const e=n.list.find(e=>e.id===t);return!e&&n.list.length>0?n.list[0]:e}static getName(t){const e=n.getById(t);return e?e.name:"(Missing layout)"}static addLayout(t){n.list.push(t)}}n.list=[]},29:function(t,e,o){"use strict";function n(t,e,o={}){return window.open(t,e,function(t={}){return Object.getOwnPropertyNames(t).map(e=>`${e}=${t[e]}`).join(",")}(o))}function i(t,e){return{top:window.top.outerHeight/2+window.top.screenY-e/2,left:window.top.outerWidth/2+window.top.screenX-t/2,width:t,height:e}}function r(){const{innerWidth:t,innerHeight:e}=window;return{width:t,height:e}}o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return r}))},3:function(t,e,o){"use strict";o.d(e,"w",(function(){return u})),o.d(e,"h",(function(){return d})),o.d(e,"b",(function(){return h})),o.d(e,"x",(function(){return p})),o.d(e,"c",(function(){return f})),o.d(e,"e",(function(){return g})),o.d(e,"r",(function(){return m})),o.d(e,"q",(function(){return y})),o.d(e,"k",(function(){return v})),o.d(e,"f",(function(){return w})),o.d(e,"p",(function(){return b})),o.d(e,"s",(function(){return O})),o.d(e,"n",(function(){return S})),o.d(e,"a",(function(){return M})),o.d(e,"m",(function(){return C})),o.d(e,"o",(function(){return P})),o.d(e,"v",(function(){return T})),o.d(e,"u",(function(){return B})),o.d(e,"t",(function(){return E})),o.d(e,"i",(function(){return L})),o.d(e,"j",(function(){return x})),o.d(e,"l",(function(){return A})),o.d(e,"g",(function(){return k})),o.d(e,"d",(function(){return I}));var n=o(0),i=o.n(n),r=o(141),a=o(140),s=o(15),l=o(47);let c=0;function u(){return c++}function d(t){const e={};return Object.keys(t).forEach(o=>{const n=t[o];Array.isArray(n)?e[o]=n.slice():n instanceof Map?e[o]=new Map(n.entries()):e[o]="object"==typeof n?d(n):n}),e}function h(t,e){return Object.keys(e).forEach(o=>{t[o]=e[o]}),t}function p(t,e){return h(d(t),e)}function f(t,e){return Array.isArray(t)&&Array.isArray(e)?g(t,e):t instanceof Map&&e instanceof Map?g(Array.from(t.entries()),Array.from(e.entries())):"object"==typeof t&&"object"==typeof e?m(t,e):t===e}function g(t,e,o){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(o){if(!o(t[n],e[n]))return!1}else if(!f(t[n],e[n]))return!1;return!0}function m(t,e){if(!t||!e||"object"!=typeof t||"object"!=typeof e)return f(t,e);const o=Object.keys(t),n=Object.keys(e);if(o.length!==n.length)return!1;const i=new Set(o.concat(n));for(const o of i)if(!f(t[o],e[o]))return!1;return!0}function y(t){return 0===Object.keys(null!=t?t:{}).length}function v(t,e,o){return o=null!=o?o:(t,e)=>t===e,t.filter(t=>!e.some(e=>o(t,e)))}function w(t,e,o){return o=null!=o?o:(t,e)=>t===e,t.every(t=>e.some(e=>o(t,e)))&&e.every(e=>t.some(t=>o(e,t)))}function b(t,e){return 0===t.tag.localeCompare(e.tag)&&t.sort===e.sort}function O(t,e,o=0,r=!1){let a=t.trim();r&&(a=a.replace(/((?:^[.*•]+(\r\n|\r|\n))+)/gm,"\n"));const s=a.split("\n"),l=s.map((t,o)=>{if(t=t.trim(),r&&/^[.*•]$/.test(t))return null;let a,l=[];for(;null!==(a=/#([^\s]+)/g.exec(t));){const e="https://instagram.com/explore/tags/"+a[1],o=i.a.createElement("a",{href:e,target:"_blank",key:u()},a[0]),n=t.substr(0,a.index),r=t.substr(a.index+a[0].length);l.push(n),l.push(o),t=r}return t.length&&l.push(t),e&&(l=e(l,o)),s.length>1&&l.push(i.a.createElement("br",{key:u()})),i.a.createElement(n.Fragment,{key:u()},l)});return o>0?l.slice(0,o):l}function S(t){const e=t.match(/instagram\.com\/p\/([^\/]+)\//);return e&&e.length>0?e[1]:null}var M;function C(t,e=M.MEDIUM){return`https://www.instagram.com/p/${t}/media/?size=${e}`}function P(t,e=M.MEDIUM){return t.thumbnail?t.thumbnail:C(S(t.permalink),e)}function T(t,e){const o=/(\s+)/g;let n,i=0,r=0,a="";for(;null!==(n=o.exec(t))&&i<e;){const e=n.index+n[1].length;a+=t.substr(r,e-r),r=e,i++}return r<t.length&&(a+=" ..."),a}function B(t){return Object(r.a)(Object(a.a)(t),{addSuffix:!0})}function E(t,e){const o=[];return t.forEach((t,n)=>{const i=n%e;Array.isArray(o[i])?o[i].push(t):o[i]=[t]}),o}function L(t,e){return function t(e){if(e.type===s.a.Type.VIDEO){const t=document.createElement("video");return t.autoplay=!1,t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.visibility="hidden",document.body.appendChild(t),new Promise(o=>{t.src=e.url,t.addEventListener("loadeddata",()=>{o({width:t.videoWidth,height:t.videoHeight}),document.body.removeChild(t)})})}if(e.type===s.a.Type.IMAGE){const t=new Image;return t.src=e.url,new Promise(e=>{t.onload=()=>{e({width:t.naturalWidth,height:t.naturalHeight})}})}return e.type===s.a.Type.ALBUM?t(e.children[0]):Promise.reject("Unknown media type")}(t).then(t=>function(t,e){const o=t.width>t.height?e.width/t.width:e.height/t.height;return{width:t.width*o,height:t.height*o}}(t,e))}function x(t,e){const o=e.map(l.b).join("|");return new RegExp(`(?:^|\\B)#(${o})(?:\\b|\\r|$)`,"imu").test(t)}function A(t,e){for(const o of e){const e=o();if(t(e))return e}}function k(t,e){return Math.max(0,Math.min(e.length-1,t))}function I(t,e,o){const n=t.slice();return n[e]=o,n}!function(t){t.SMALL="t",t.MEDIUM="m",t.LARGE="l"}(M||(M={}))},32:function(t,e,o){"use strict";o.d(e,"a",(function(){return c})),o.d(e,"b",(function(){return u})),o.d(e,"c",(function(){return h}));var n=o(0),i=o.n(n),r=o(33),a=o.n(r),s=o(6);class l{constructor(t=new Map,e=[]){this.factories=t,this.extensions=new Map,this.cache=new Map,e.forEach(t=>this.addModule(t))}addModule(t){t.factories&&(this.factories=new Map([...this.factories,...t.factories])),t.extensions&&t.extensions.forEach((t,e)=>{this.extensions.has(e)?this.extensions.get(e).push(t):this.extensions.set(e,[t])})}get(t){let e=this.factories.get(t);if(void 0===e)throw new Error('Service "'+t+'" does not exist');let o=this.cache.get(t);if(void 0===o){o=e(this);let n=this.extensions.get(t);n&&n.forEach(t=>o=t(this,o)),this.cache.set(t,o)}return o}has(t){return this.factories.has(t)}}class c{constructor(t,e,o){this.key=t,this.mount=e,this.modules=o,this.container=null}addModules(t){this.modules=this.modules.concat(t)}run(){if(null!==this.container)return;let t=!1;const e=()=>{t||"interactive"!==document.readyState&&"complete"!==document.readyState||(this.actualRun(),t=!0)};e(),t||document.addEventListener("readystatechange",e)}actualRun(){!function(t){const e=`app/${t.key}/run`;document.dispatchEvent(new d(e,t))}(this);const t=h({root:()=>null,"root/children":()=>[]});this.container=new l(t,this.modules);const e=this.container.get("root/children").map((t,e)=>i.a.createElement(t,{key:e})),o=i.a.createElement(s.a,{c:this.container},e);this.modules.forEach(t=>t.run&&t.run(this.container)),a.a.render(o,this.mount)}}function u(t,e){document.addEventListener(`app/${t}/run`,t=>{e(t.detail.app)})}class d extends CustomEvent{constructor(t,e){super(t,{detail:{app:e}})}}function h(t){return new Map(Object.entries(t))}},33:function(t,o){t.exports=e},35:function(t,e,o){"use strict";function n(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function i(t){const e=document.createElement("DIV");return e.innerHTML=t,e.textContent||e.innerText||""}o.d(e,"a",(function(){return n})),o.d(e,"b",(function(){return i}))},38:function(t,e,o){"use strict";function n(t){return e=>(e.stopPropagation(),t(e))}function i(t,e){let o;return(...n)=>{clearTimeout(o),o=setTimeout(()=>{o=null,t(...n)},e)}}function r(){}o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return r}))},4:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n,i=o(18),r=o(1);!function(t){let e;!function(t){t.PERSONAL="PERSONAL",t.BUSINESS="BUSINESS"}(e=t.Type||(t.Type={}))}(n||(n={}));const a=Object(r.n)([]),s="https://secure.gravatar.com/avatar/4a94d759753ade2961582f7345c1d7b2?s=64&d=mm&r=g",l=t=>a.find(e=>e.id===t),c=t=>"https://instagram.com/"+t;function u(t){return t.slice().sort((t,e)=>t.type===e.type?0:t.type===n.Type.PERSONAL?-1:1),a.splice(0,a.length),t.forEach(t=>a.push(Object(r.n)(t))),a}function d(t){if("object"==typeof t&&Array.isArray(t.data))return u(t.data);throw"Spotlight encountered a problem trying to load your accounts. Kindly contact customer support for assistance."}e.b={list:a,DEFAULT_PROFILE_PIC:s,getById:l,getByUsername:t=>a.find(e=>e.username===t),hasAccounts:()=>a.length>0,filterExisting:t=>t.filter(t=>void 0!==l(t)),idsToAccounts:t=>t.map(t=>l(t)).filter(t=>void 0!==t),getBusinessAccounts:()=>a.filter(t=>t.type===n.Type.BUSINESS),getProfilePicUrl:t=>t.customProfilePicUrl?t.customProfilePicUrl:t.profilePicUrl?t.profilePicUrl:s,getBioText:t=>t.customBio.length?t.customBio:t.bio,getProfileUrl:t=>c(t.username),getUsernameUrl:c,loadAccounts:function(){return i.a.getAccounts().then(d).catch(t=>{throw i.a.getErrorReason(t)})},loadFromResponse:d,addAccounts:u}},47:function(t,e,o){"use strict";o.d(e,"a",(function(){return n})),o.d(e,"b",(function(){return i}));const n=(t,e)=>t.startsWith(e)?t:e+t,i=t=>{return(e=t,"#",e.startsWith("#")?e.substr("#".length):e).split(/\s/).map((t,e)=>e>0?t[0].toUpperCase()+t.substr(1):t).join("").replace(/\W/gi,"");var e}},604:function(t,e,o){"use strict";o.r(e);var n=o(197);jQuery(window).on("elementor/frontend/init",()=>{elementorFrontend.hooks.addAction("frontend/element_ready/sl-insta-feed.default",t=>{var e;e=t,elementorFrontend.elementsHandler.addHandler(i,{$element:e})})});class i extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{}}getDefaultElements(){return{$feed:this.$element.find("div.spotlight-instagram-feed")}}bindEvents(){this.elements.$feed.length>0&&n.a.feed(this.elements.$feed.get(0))}}},7:function(t,e,o){"use strict";o.d(e,"a",(function(){return v}));var n=o(34),i=o.n(n),r=o(1),a=o(2),s=o(27),l=o(32),c=o(4),u=o(3),d=o(13),h=o(18),p=o(38),f=o(8),g=o(22),m=o(12),y=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};class v{constructor(t=new v.Options,e=a.a.Mode.DESKTOP){this.media=[],this.canLoadMore=!1,this.stories=[],this.numLoadedMore=0,this.totalMedia=0,this.mode=a.a.Mode.DESKTOP,this.isLoaded=!1,this.isLoading=!1,this.isLoadingMore=!1,this.numMediaToShow=0,this.numMediaPerPage=0,this.cancelFetch=()=>{},this.options=new v.Options(t),this.localMedia=[],this.mode=e,this.mediaCounter=this._numMediaPerPage,this.reload=Object(p.a)(()=>this.load(),300),Object(r.o)(()=>this.mode,()=>{0===this.numLoadedMore&&(this.mediaCounter=this._numMediaPerPage,this.localMedia.length<this.numMediaToShow&&this.loadMedia(this.localMedia.length,this.numMediaToShow-this.localMedia.length))}),Object(r.o)(()=>this.getReloadOptions(),()=>this.reload()),Object(r.o)(()=>({num:this._numMediaPerPage,mode:this.mode}),({num:t})=>{this.localMedia.length<t&&t<=this.totalMedia?this.reload():this.mediaCounter=Math.max(1,t)}),Object(r.o)(()=>this._media,t=>this.media=t),Object(r.o)(()=>this._numMediaToShow,t=>this.numMediaToShow=t),Object(r.o)(()=>this._numMediaPerPage,t=>this.numMediaPerPage=t),Object(r.o)(()=>this._canLoadMore,t=>this.canLoadMore=t)}get _media(){return this.localMedia.slice(0,this.numMediaToShow)}get _numMediaToShow(){return Math.min(this.mediaCounter,this.totalMedia)}get _numMediaPerPage(){return Math.max(1,v.ComputedOptions.normalizeMultiInt(this.options.numPosts,this.mode,1))}get _canLoadMore(){return this.localMedia.length>this.mediaCounter||this.localMedia.length<this.totalMedia}loadMore(){const t=this.numMediaToShow+this._numMediaPerPage-this.localMedia.length;return this.isLoadingMore=!0,t>0?this.loadMedia(this.localMedia.length,this._numMediaPerPage).then(()=>{this.mediaCounter+=this._numMediaPerPage,this.numLoadedMore++,this.isLoadingMore=!1}):new Promise(t=>{this.numLoadedMore++,this.mediaCounter+=this._numMediaPerPage,this.isLoadingMore=!1,t()})}load(){return this.numLoadedMore=0,this.loadMedia(0,this._numMediaPerPage,!0).then(()=>(this.isLoaded=!0,this.mediaCounter=this._numMediaPerPage))}loadMedia(t,e,o){return this.cancelFetch(),v.Options.hasSources(this.options)?(this.isLoading=!0,new Promise((n,r)=>{h.a.getFeedMedia(this.options,t,e,t=>this.cancelFetch=t).then(t=>{var e;if("object"!=typeof t||"object"!=typeof t.data||!Array.isArray(t.data.media))throw{message:"The media response is malformed or corrupt",response:t};o&&(this.localMedia=[]),this.localMedia.push(...t.data.media),this.stories=null!==(e=t.data.stories)&&void 0!==e?e:[],this.totalMedia=t.data.total,n&&n()}).catch(t=>{var e;if(i.a.isCancel(t))return null;const o=new v.Events.FetchFailEvent(v.Events.FETCH_FAIL,{detail:{feed:this,message:null!==(e=t.response?t.response.data.message:void 0)&&void 0!==e?e:t.message,response:t.response}});return document.dispatchEvent(o),r&&r(t),t}).finally(()=>this.isLoading=!1)})):new Promise(t=>{this.localMedia=[],this.totalMedia=0,t&&t()})}getReloadOptions(){return JSON.stringify({accounts:this.options.accounts,hashtags:this.options.hashtags,tagged:this.options.tagged,postOrder:this.options.postOrder,mediaType:this.options.mediaType,moderation:this.options.moderation,moderationMode:this.options.moderationMode,hashtagBlacklist:this.options.hashtagBlacklist,hashtagWhitelist:this.options.hashtagWhitelist,captionBlacklist:this.options.captionBlacklist,captionWhitelist:this.options.captionWhitelist,hashtagBlacklistSettings:this.options.hashtagBlacklistSettings,hashtagWhitelistSettings:this.options.hashtagWhitelistSettings,captionBlacklistSettings:this.options.captionBlacklistSettings,captionWhitelistSettings:this.options.captionWhitelistSettings})}}y([r.n],v.prototype,"media",void 0),y([r.n],v.prototype,"canLoadMore",void 0),y([r.n],v.prototype,"stories",void 0),y([r.n],v.prototype,"numLoadedMore",void 0),y([r.n],v.prototype,"options",void 0),y([r.n],v.prototype,"totalMedia",void 0),y([r.n],v.prototype,"mode",void 0),y([r.n],v.prototype,"isLoaded",void 0),y([r.n],v.prototype,"isLoading",void 0),y([r.n],v.prototype,"isLoadingMore",void 0),y([r.f],v.prototype,"reload",void 0),y([r.n],v.prototype,"localMedia",void 0),y([r.n],v.prototype,"numMediaToShow",void 0),y([r.n],v.prototype,"numMediaPerPage",void 0),y([r.n],v.prototype,"mediaCounter",void 0),y([r.h],v.prototype,"_media",null),y([r.h],v.prototype,"_numMediaToShow",null),y([r.h],v.prototype,"_numMediaPerPage",null),y([r.h],v.prototype,"_canLoadMore",null),y([r.f],v.prototype,"loadMore",null),y([r.f],v.prototype,"load",null),y([r.f],v.prototype,"loadMedia",null),function(t){let e,o,n,i,h,p,v,w,b;!function(t){t.FETCH_FAIL="sli/feed/fetch_fail";class e extends CustomEvent{constructor(t,e){super(t,e)}}t.FetchFailEvent=e}(e=t.Events||(t.Events={}));class O{constructor(t={}){O.setFromObject(this,t)}static setFromObject(e,o={}){var n,i,r,l,u,d,h,p,f,m,y,v,w,b,O;return e.accounts=o.accounts?o.accounts.slice():t.DefaultOptions.accounts,e.hashtags=o.hashtags?o.hashtags.slice():t.DefaultOptions.hashtags,e.tagged=o.tagged?o.tagged.slice():t.DefaultOptions.tagged,e.layout=s.a.getById(o.layout).id,e.numColumns=a.a.normalize(o.numColumns,t.DefaultOptions.numColumns),e.highlightFreq=a.a.normalize(o.highlightFreq,t.DefaultOptions.highlightFreq),e.mediaType=o.mediaType||t.DefaultOptions.mediaType,e.postOrder=o.postOrder||t.DefaultOptions.postOrder,e.numPosts=a.a.normalize(o.numPosts,t.DefaultOptions.numPosts),e.linkBehavior=a.a.normalize(o.linkBehavior,t.DefaultOptions.linkBehavior),e.feedWidth=a.a.normalize(o.feedWidth,t.DefaultOptions.feedWidth),e.feedHeight=a.a.normalize(o.feedHeight,t.DefaultOptions.feedHeight),e.feedPadding=a.a.normalize(o.feedPadding,t.DefaultOptions.feedPadding),e.imgPadding=a.a.normalize(o.imgPadding,t.DefaultOptions.imgPadding),e.textSize=a.a.normalize(o.textSize,t.DefaultOptions.textSize),e.bgColor=o.bgColor||t.DefaultOptions.bgColor,e.hoverInfo=o.hoverInfo?o.hoverInfo.slice():t.DefaultOptions.hoverInfo,e.textColorHover=o.textColorHover||t.DefaultOptions.textColorHover,e.bgColorHover=o.bgColorHover||t.DefaultOptions.bgColorHover,e.showHeader=a.a.normalize(o.showHeader,t.DefaultOptions.showHeader),e.headerInfo=a.a.normalize(o.headerInfo,t.DefaultOptions.headerInfo),e.headerAccount=null!==(n=o.headerAccount)&&void 0!==n?n:t.DefaultOptions.headerAccount,e.headerAccount=null===e.headerAccount||void 0===c.b.getById(e.headerAccount)?c.b.list.length>0?c.b.list[0].id:null:e.headerAccount,e.headerStyle=a.a.normalize(o.headerStyle,t.DefaultOptions.headerStyle),e.headerTextSize=a.a.normalize(o.headerTextSize,t.DefaultOptions.headerTextSize),e.headerPhotoSize=a.a.normalize(o.headerPhotoSize,t.DefaultOptions.headerPhotoSize),e.headerTextColor=o.headerTextColor||t.DefaultOptions.headerTextColor,e.headerBgColor=o.headerBgColor||t.DefaultOptions.bgColor,e.headerPadding=a.a.normalize(o.headerPadding,t.DefaultOptions.headerPadding),e.customProfilePic=null!==(i=o.customProfilePic)&&void 0!==i?i:t.DefaultOptions.customProfilePic,e.customBioText=o.customBioText||t.DefaultOptions.customBioText,e.includeStories=null!==(r=o.includeStories)&&void 0!==r?r:t.DefaultOptions.includeStories,e.storiesInterval=o.storiesInterval||t.DefaultOptions.storiesInterval,e.showCaptions=a.a.normalize(o.showCaptions,t.DefaultOptions.showCaptions),e.captionMaxLength=a.a.normalize(o.captionMaxLength,t.DefaultOptions.captionMaxLength),e.captionRemoveDots=null!==(l=o.captionRemoveDots)&&void 0!==l?l:t.DefaultOptions.captionRemoveDots,e.captionSize=a.a.normalize(o.captionSize,t.DefaultOptions.captionSize),e.captionColor=o.captionColor||t.DefaultOptions.captionColor,e.showLikes=a.a.normalize(o.showLikes,t.DefaultOptions.showLikes),e.showComments=a.a.normalize(o.showComments,t.DefaultOptions.showCaptions),e.lcIconSize=a.a.normalize(o.lcIconSize,t.DefaultOptions.lcIconSize),e.likesIconColor=null!==(u=o.likesIconColor)&&void 0!==u?u:t.DefaultOptions.likesIconColor,e.commentsIconColor=o.commentsIconColor||t.DefaultOptions.commentsIconColor,e.lightboxShowSidebar=null!==(d=o.lightboxShowSidebar)&&void 0!==d?d:t.DefaultOptions.lightboxShowSidebar,e.numLightboxComments=o.numLightboxComments||t.DefaultOptions.numLightboxComments,e.showLoadMoreBtn=a.a.normalize(o.showLoadMoreBtn,t.DefaultOptions.showLoadMoreBtn),e.loadMoreBtnTextColor=o.loadMoreBtnTextColor||t.DefaultOptions.loadMoreBtnTextColor,e.loadMoreBtnBgColor=o.loadMoreBtnBgColor||t.DefaultOptions.loadMoreBtnBgColor,e.loadMoreBtnText=o.loadMoreBtnText||t.DefaultOptions.loadMoreBtnText,e.autoload=null!==(h=o.autoload)&&void 0!==h?h:t.DefaultOptions.autoload,e.showFollowBtn=a.a.normalize(o.showFollowBtn,t.DefaultOptions.showFollowBtn),e.followBtnText=null!==(p=o.followBtnText)&&void 0!==p?p:t.DefaultOptions.followBtnText,e.followBtnTextColor=o.followBtnTextColor||t.DefaultOptions.followBtnTextColor,e.followBtnBgColor=o.followBtnBgColor||t.DefaultOptions.followBtnBgColor,e.followBtnLocation=a.a.normalize(o.followBtnLocation,t.DefaultOptions.followBtnLocation),e.hashtagWhitelist=o.hashtagWhitelist||t.DefaultOptions.hashtagWhitelist,e.hashtagBlacklist=o.hashtagBlacklist||t.DefaultOptions.hashtagBlacklist,e.captionWhitelist=o.captionWhitelist||t.DefaultOptions.captionWhitelist,e.captionBlacklist=o.captionBlacklist||t.DefaultOptions.captionBlacklist,e.hashtagWhitelistSettings=null!==(f=o.hashtagWhitelistSettings)&&void 0!==f?f:t.DefaultOptions.hashtagWhitelistSettings,e.hashtagBlacklistSettings=null!==(m=o.hashtagBlacklistSettings)&&void 0!==m?m:t.DefaultOptions.hashtagBlacklistSettings,e.captionWhitelistSettings=null!==(y=o.captionWhitelistSettings)&&void 0!==y?y:t.DefaultOptions.captionWhitelistSettings,e.captionBlacklistSettings=null!==(v=o.captionBlacklistSettings)&&void 0!==v?v:t.DefaultOptions.captionBlacklistSettings,e.moderation=o.moderation||t.DefaultOptions.moderation,e.moderationMode=o.moderationMode||t.DefaultOptions.moderationMode,e.promotionEnabled=null!==(w=o.promotionEnabled)&&void 0!==w?w:t.DefaultOptions.promotionEnabled,e.autoPromotionsEnabled=null!==(b=o.autoPromotionsEnabled)&&void 0!==b?b:t.DefaultOptions.autoPromotionsEnabled,e.globalPromotionsEnabled=null!==(O=o.globalPromotionsEnabled)&&void 0!==O?O:t.DefaultOptions.globalPromotionsEnabled,Array.isArray(o.promotions)?e.promotions=g.a.fromArray(o.promotions):o.promotions&&o.promotions instanceof Map?e.promotions=g.a.fromMap(o.promotions):"object"==typeof o.promotions?e.promotions=o.promotions:e.promotions=t.DefaultOptions.promotions,e}static getAllAccounts(t){const e=c.b.idsToAccounts(t.accounts),o=c.b.idsToAccounts(t.tagged);return{all:e.concat(o),accounts:e,tagged:o}}static getSources(t){return{accounts:c.b.idsToAccounts(t.accounts),tagged:c.b.idsToAccounts(t.tagged),hashtags:c.b.getBusinessAccounts().length>0?t.hashtags.filter(t=>t.tag.length>0):[]}}static hasSources(e){const o=t.Options.getSources(e),n=o.accounts.length>0||o.tagged.length>0,i=o.hashtags.length>0;return n||i}static isLimitingPosts(t){return t.moderation.length>0||t.hashtagBlacklist.length>0||t.hashtagWhitelist.length>0||t.captionBlacklist.length>0||t.captionWhitelist.length>0}}y([r.n],O.prototype,"accounts",void 0),y([r.n],O.prototype,"hashtags",void 0),y([r.n],O.prototype,"tagged",void 0),y([r.n],O.prototype,"layout",void 0),y([r.n],O.prototype,"numColumns",void 0),y([r.n],O.prototype,"highlightFreq",void 0),y([r.n],O.prototype,"mediaType",void 0),y([r.n],O.prototype,"postOrder",void 0),y([r.n],O.prototype,"numPosts",void 0),y([r.n],O.prototype,"linkBehavior",void 0),y([r.n],O.prototype,"feedWidth",void 0),y([r.n],O.prototype,"feedHeight",void 0),y([r.n],O.prototype,"feedPadding",void 0),y([r.n],O.prototype,"imgPadding",void 0),y([r.n],O.prototype,"textSize",void 0),y([r.n],O.prototype,"bgColor",void 0),y([r.n],O.prototype,"textColorHover",void 0),y([r.n],O.prototype,"bgColorHover",void 0),y([r.n],O.prototype,"hoverInfo",void 0),y([r.n],O.prototype,"showHeader",void 0),y([r.n],O.prototype,"headerInfo",void 0),y([r.n],O.prototype,"headerAccount",void 0),y([r.n],O.prototype,"headerStyle",void 0),y([r.n],O.prototype,"headerTextSize",void 0),y([r.n],O.prototype,"headerPhotoSize",void 0),y([r.n],O.prototype,"headerTextColor",void 0),y([r.n],O.prototype,"headerBgColor",void 0),y([r.n],O.prototype,"headerPadding",void 0),y([r.n],O.prototype,"customBioText",void 0),y([r.n],O.prototype,"customProfilePic",void 0),y([r.n],O.prototype,"includeStories",void 0),y([r.n],O.prototype,"storiesInterval",void 0),y([r.n],O.prototype,"showCaptions",void 0),y([r.n],O.prototype,"captionMaxLength",void 0),y([r.n],O.prototype,"captionRemoveDots",void 0),y([r.n],O.prototype,"captionSize",void 0),y([r.n],O.prototype,"captionColor",void 0),y([r.n],O.prototype,"showLikes",void 0),y([r.n],O.prototype,"showComments",void 0),y([r.n],O.prototype,"lcIconSize",void 0),y([r.n],O.prototype,"likesIconColor",void 0),y([r.n],O.prototype,"commentsIconColor",void 0),y([r.n],O.prototype,"lightboxShowSidebar",void 0),y([r.n],O.prototype,"numLightboxComments",void 0),y([r.n],O.prototype,"showLoadMoreBtn",void 0),y([r.n],O.prototype,"loadMoreBtnText",void 0),y([r.n],O.prototype,"loadMoreBtnTextColor",void 0),y([r.n],O.prototype,"loadMoreBtnBgColor",void 0),y([r.n],O.prototype,"autoload",void 0),y([r.n],O.prototype,"showFollowBtn",void 0),y([r.n],O.prototype,"followBtnText",void 0),y([r.n],O.prototype,"followBtnTextColor",void 0),y([r.n],O.prototype,"followBtnBgColor",void 0),y([r.n],O.prototype,"followBtnLocation",void 0),y([r.n],O.prototype,"hashtagWhitelist",void 0),y([r.n],O.prototype,"hashtagBlacklist",void 0),y([r.n],O.prototype,"captionWhitelist",void 0),y([r.n],O.prototype,"captionBlacklist",void 0),y([r.n],O.prototype,"hashtagWhitelistSettings",void 0),y([r.n],O.prototype,"hashtagBlacklistSettings",void 0),y([r.n],O.prototype,"captionWhitelistSettings",void 0),y([r.n],O.prototype,"captionBlacklistSettings",void 0),y([r.n],O.prototype,"moderation",void 0),y([r.n],O.prototype,"moderationMode",void 0),t.Options=O;class S{constructor(t){Object.getOwnPropertyNames(t).map(e=>{this[e]=t[e]})}getCaption(t){const e=t.caption?t.caption:"";return this.captionMaxLength&&e.length?Object(u.s)(Object(u.v)(e,this.captionMaxLength)):e}static compute(e,o=a.a.Mode.DESKTOP){const n=new S({accounts:c.b.filterExisting(e.accounts),tagged:c.b.filterExisting(e.tagged),hashtags:e.hashtags.filter(t=>t.tag.length>0),layout:s.a.getById(e.layout),highlightFreq:a.a.get(e.highlightFreq,o,!0),linkBehavior:a.a.get(e.linkBehavior,o,!0),bgColor:Object(d.a)(e.bgColor),textColorHover:Object(d.a)(e.textColorHover),bgColorHover:Object(d.a)(e.bgColorHover),hoverInfo:e.hoverInfo,showHeader:a.a.get(e.showHeader,o,!0),headerInfo:a.a.get(e.headerInfo,o,!0),headerStyle:a.a.get(e.headerStyle,o,!0),headerTextColor:Object(d.a)(e.headerTextColor),headerBgColor:Object(d.a)(e.headerBgColor),headerPadding:a.a.get(e.headerPadding,o,!0),includeStories:e.includeStories,storiesInterval:e.storiesInterval,showCaptions:a.a.get(e.showCaptions,o,!0),captionMaxLength:a.a.get(e.captionMaxLength,o,!0),captionRemoveDots:e.captionRemoveDots,captionColor:Object(d.a)(e.captionColor),showLikes:a.a.get(e.showLikes,o,!0),showComments:a.a.get(e.showComments,o,!0),likesIconColor:Object(d.a)(e.likesIconColor),commentsIconColor:Object(d.a)(e.commentsIconColor),lightboxShowSidebar:e.lightboxShowSidebar,numLightboxComments:e.numLightboxComments,showLoadMoreBtn:a.a.get(e.showLoadMoreBtn,o,!0),loadMoreBtnTextColor:Object(d.a)(e.loadMoreBtnTextColor),loadMoreBtnBgColor:Object(d.a)(e.loadMoreBtnBgColor),loadMoreBtnText:e.loadMoreBtnText,showFollowBtn:a.a.get(e.showFollowBtn,o,!0),autoload:e.autoload,followBtnLocation:a.a.get(e.followBtnLocation,o,!0),followBtnTextColor:Object(d.a)(e.followBtnTextColor),followBtnBgColor:Object(d.a)(e.followBtnBgColor),followBtnText:e.followBtnText,account:null,showBio:!1,bioText:null,profilePhotoUrl:c.b.DEFAULT_PROFILE_PIC,feedWidth:"",feedHeight:"",feedPadding:"",imgPadding:"",textSize:"",headerTextSize:"",headerPhotoSize:"",captionSize:"",lcIconSize:"",showLcIcons:!1});if(n.numColumns=this.getNumCols(e,o),n.numPosts=this.getNumPosts(e,o),n.allAccounts=n.accounts.concat(n.tagged.filter(t=>!n.accounts.includes(t))),n.allAccounts.length>0&&(n.account=e.headerAccount&&n.allAccounts.includes(e.headerAccount)?c.b.getById(e.headerAccount):c.b.getById(n.allAccounts[0])),n.showHeader=n.showHeader&&null!==n.account,n.showHeader&&(n.profilePhotoUrl=e.customProfilePic.length?e.customProfilePic:c.b.getProfilePicUrl(n.account)),n.showFollowBtn=n.showFollowBtn&&null!==n.account,n.showBio=n.headerInfo.some(e=>e===t.HeaderInfo.BIO),n.showBio){const t=e.customBioText.trim().length>0?e.customBioText:null!==n.account?c.b.getBioText(n.account):"";n.bioText=Object(u.s)(t),n.showBio=n.bioText.length>0}return n.feedWidth=this.normalizeCssSize(e.feedWidth,o,"auto"),n.feedHeight=this.normalizeCssSize(e.feedHeight,o,"auto"),n.feedPadding=this.normalizeCssSize(e.feedPadding,o,"0"),n.imgPadding=this.normalizeCssSize(e.imgPadding,o,"0"),n.textSize=this.normalizeCssSize(e.textSize,o,"inherit",!0),n.headerTextSize=this.normalizeCssSize(e.headerTextSize,o,"inherit"),n.headerPhotoSize=this.normalizeCssSize(e.headerPhotoSize,o,"50px"),n.captionSize=this.normalizeCssSize(e.captionSize,o,"inherit"),n.lcIconSize=this.normalizeCssSize(e.lcIconSize,o,"inherit"),n.buttonPadding=Math.max(10,a.a.get(e.imgPadding,o))+"px",n.showLcIcons=n.showLikes||n.showComments,n}static getNumCols(t,e){return Math.max(1,this.normalizeMultiInt(t.numColumns,e,1))}static getNumPosts(t,e){return Math.max(1,this.normalizeMultiInt(t.numPosts,e,1))}static normalizeMultiInt(t,e,o=0){const n=parseInt(a.a.get(t,e)+"");return isNaN(n)?e===a.a.Mode.DESKTOP?o:this.normalizeMultiInt(t,a.a.Mode.DESKTOP,o):n}static normalizeCssSize(t,e,o=null,n=!1){const i=a.a.get(t,e,n);return i?i+"px":o}}function M(t,e){if(m.a.isPro)return Object(u.l)(f.a.isValid,[()=>C(t,e),()=>e.globalPromotionsEnabled&&f.a.getGlobalPromo(t),()=>e.autoPromotionsEnabled&&f.a.getAutoPromo(t)])}function C(t,e){return t?f.a.getPromoFromDictionary(t,e.promotions):void 0}t.ComputedOptions=S,t.HashtagSorting=Object(l.c)({recent:"Most recent",popular:"Most popular"}),function(t){t.ALL="all",t.PHOTOS="photos",t.VIDEOS="videos"}(o=t.MediaType||(t.MediaType={})),function(t){t.NOTHING="nothing",t.SELF="self",t.NEW_TAB="new_tab",t.LIGHTBOX="lightbox"}(n=t.LinkBehavior||(t.LinkBehavior={})),function(t){t.DATE_ASC="date_asc",t.DATE_DESC="date_desc",t.POPULARITY_ASC="popularity_asc",t.POPULARITY_DESC="popularity_desc",t.RANDOM="random"}(i=t.PostOrder||(t.PostOrder={})),function(t){t.USERNAME="username",t.DATE="date",t.CAPTION="caption",t.LIKES_COMMENTS="likes_comments",t.INSTA_LINK="insta_link"}(h=t.HoverInfo||(t.HoverInfo={})),function(t){t.NORMAL="normal",t.BOXED="boxed",t.CENTERED="centered"}(p=t.HeaderStyle||(t.HeaderStyle={})),function(t){t.BIO="bio",t.PROFILE_PIC="profile_pic",t.FOLLOWERS="followers",t.MEDIA_COUNT="media_count"}(v=t.HeaderInfo||(t.HeaderInfo={})),function(t){t.HEADER="header",t.BOTTOM="bottom",t.BOTH="both"}(w=t.FollowBtnLocation||(t.FollowBtnLocation={})),function(t){t.WHITELIST="whitelist",t.BLACKLIST="blacklist"}(b=t.ModerationMode||(t.ModerationMode={})),t.DefaultOptions={accounts:[],hashtags:[],tagged:[],layout:null,numColumns:{desktop:3},highlightFreq:{desktop:7},mediaType:o.ALL,postOrder:i.DATE_DESC,numPosts:{desktop:9},linkBehavior:{desktop:n.LIGHTBOX,phone:n.NEW_TAB},feedWidth:{desktop:""},feedHeight:{desktop:""},feedPadding:{desktop:20,tablet:14,phone:10},imgPadding:{desktop:14,tablet:10,phone:6},textSize:{all:""},bgColor:{r:255,g:255,b:255,a:1},hoverInfo:[h.LIKES_COMMENTS,h.INSTA_LINK],textColorHover:{r:255,g:255,b:255,a:1},bgColorHover:{r:0,g:0,b:0,a:.5},showHeader:{desktop:!0},headerInfo:{desktop:[v.PROFILE_PIC,v.BIO]},headerAccount:null,headerStyle:{desktop:p.NORMAL,phone:p.CENTERED},headerTextSize:{desktop:""},headerPhotoSize:{desktop:50},headerTextColor:{r:0,g:0,b:0,a:1},headerBgColor:{r:255,g:255,b:255,a:1},headerPadding:{desktop:0},customProfilePic:0,customBioText:"",includeStories:!1,storiesInterval:5,showCaptions:{desktop:!1},captionMaxLength:{desktop:0},captionRemoveDots:!1,captionSize:{desktop:0},captionColor:{r:0,g:0,b:0,a:1},showLikes:{desktop:!1},showComments:{desktop:!1},lcIconSize:{desktop:14},likesIconColor:{r:0,g:0,b:0,a:1},commentsIconColor:{r:0,g:0,b:0,a:1},lightboxShowSidebar:!1,numLightboxComments:50,showLoadMoreBtn:{desktop:!0},loadMoreBtnTextColor:{r:255,g:255,b:255,a:1},loadMoreBtnBgColor:{r:0,g:149,b:246,a:1},loadMoreBtnText:"Load more",autoload:!1,showFollowBtn:{desktop:!0},followBtnText:"Follow on Instagram",followBtnTextColor:{r:255,g:255,b:255,a:1},followBtnBgColor:{r:0,g:149,b:246,a:1},followBtnLocation:{desktop:w.HEADER,phone:w.BOTTOM},hashtagWhitelist:[],hashtagBlacklist:[],captionWhitelist:[],captionBlacklist:[],hashtagWhitelistSettings:!0,hashtagBlacklistSettings:!0,captionWhitelistSettings:!0,captionBlacklistSettings:!0,moderation:[],moderationMode:b.BLACKLIST,promotionEnabled:!0,autoPromotionsEnabled:!0,globalPromotionsEnabled:!0,promotions:{}},t.getPromo=M,t.getFeedPromo=C,t.executeMediaClick=function(t,e){const o=M(t,e),n=f.a.getConfig(o),i=f.a.getType(o);return!(!i||!i.isValid(n)||"function"!=typeof i.onMediaClick)&&i.onMediaClick(t,n)},t.getLink=function(t,e){var o,n;const i=M(t,e),r=f.a.getConfig(i),a=f.a.getType(i);if(void 0===a||!a.isValid(r))return{text:null,url:null,newTab:!1};let[s,l]=a.getPopupLink?null!==(o=a.getPopupLink(t,r))&&void 0!==o?o:null:[null,!1];return{text:s,url:a.getMediaUrl&&null!==(n=a.getMediaUrl(t,r))&&void 0!==n?n:null,newTab:l}}}(v||(v={}))},8:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n,i=o(12),r=o(22),a=o(3);!function(t){function e(t){return t?c(t.type):void 0}function o(t){var o;if("object"!=typeof t)return!1;const n=e(t);return void 0!==n&&n.isValid(null!==(o=t.config)&&void 0!==o?o:{})}function n(e){return e?t.getPromoFromDictionary(e,i.a.config.globalPromotions):void 0}function s(t){const e=l(t);return void 0===e?void 0:e.promotion}function l(e){if(e)for(const o of i.a.config.autoPromotions){const n=t.Automation.getType(o),i=t.Automation.getConfig(o);if(n&&n.matches(e,i))return o}}function c(e){return t.types.find(t=>t.id===e)}let u;t.getConfig=function(t){var e,o;return t&&null!==(o=null!==(e=t.config)&&void 0!==e?e:t.data)&&void 0!==o?o:{}},t.getType=e,t.isValid=o,t.getPromoFromDictionary=function(e,o){const n=r.a.get(o,e.id);if(n)return t.getType(n)?n:void 0},t.getPromo=function(t){return Object(a.l)(o,[()=>n(t),()=>s(t)])},t.getGlobalPromo=n,t.getAutoPromo=s,t.getAutomation=l,t.types=[],t.getTypes=function(){return t.types},t.registerType=function(e){t.types.push(e)},t.getTypeById=c,t.clearTypes=function(){t.types.splice(0,t.types.length)},function(t){t.getType=function(t){return t?o(t.type):void 0},t.getConfig=function(t){var e,o;return t&&null!==(o=null!==(e=t.config)&&void 0!==e?e:t.data)&&void 0!==o?o:{}},t.getPromotion=function(t){return t?t.promotion:void 0};const e=[];function o(t){return e.find(e=>e.id===t)}t.getTypes=function(){return e},t.registerType=function(t){e.push(t)},t.getTypeById=o,t.clearTypes=function(){e.splice(0,e.length)}}(u=t.Automation||(t.Automation={}))}(n||(n={}))}},[[604,0,1]]])}));
ui/dist/front-app.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],e):"object"==typeof exports?exports.spotlight=e(require("React"),require("ReactDOM")):t.spotlight=e(t.React,t.ReactDOM)}(window,(function(t,e){return(window.webpackJsonpspotlight=window.webpackJsonpspotlight||[]).push([[8],{0:function(e,o){e.exports=t},10:function(t,e,o){"use strict";var n;o.d(e,"a",(function(){return n})),function(t){let e,o;!function(t){t.IMAGE="IMAGE",t.VIDEO="VIDEO",t.ALBUM="CAROUSEL_ALBUM"}(e=t.Type||(t.Type={})),function(t){let e;!function(t){t.PERSONAL_ACCOUNT="PERSONAL_ACCOUNT",t.BUSINESS_ACCOUNT="BUSINESS_ACCOUNT",t.TAGGED_ACCOUNT="TAGGED_ACCOUNT",t.RECENT_HASHTAG="RECENT_HASHTAG",t.POPULAR_HASHTAG="POPULAR_HASHTAG",t.USER_STORY="USER_STORY"}(e=t.Type||(t.Type={}))}(o=t.Source||(t.Source={})),t.getAsRows=(t,e)=>{t=t.slice(),e=e>0?e:1;let o=[];for(;t.length;)o.push(t.splice(0,e));if(o.length>0){const t=o.length-1;for(;o[t].length<e;)o[t].push({})}return o},t.isFromHashtag=t=>t.source.type===o.Type.POPULAR_HASHTAG||t.source.type===o.Type.RECENT_HASHTAG}(n||(n={}))},107:function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n=o(0),i=o.n(n),r=o(7),a=o(27),s=o(6);const l=Object(r.b)(({feed:t})=>{const e=a.a.getById(t.options.layout),o=s.a.ComputedOptions.compute(t.options,t.mode);return i.a.createElement("div",{className:"feed"},i.a.createElement(e.component,{feed:t,options:o}))})},13:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));const n=t=>"string"==typeof t?t:"r"in t?"rgba("+t.r+","+t.g+","+t.b+","+t.a+")":"h"in t?"hsla("+t.h+","+t.s+","+t.l+","+t.a+")":"#fff"},14:function(t,e,o){"use strict";var n=o(37),i=o.n(n),r=o(19),a=o(39);const s=r.a.config.restApi.baseUrl,l={};r.a.config.restApi.authToken&&(l["X-Sli-Auth-Token"]=r.a.config.restApi.authToken);const c=i.a.create({baseURL:s,headers:l}),d={config:r.a.config.restApi,driver:c,getAccounts:()=>c.get("/accounts"),getFeeds:()=>c.get("/feeds"),getFeedMedia:(t,e=0,o=0,n)=>{const r=n?new i.a.CancelToken(n):void 0;return c.post("/media/fetch",{options:t,num:o,from:e},{cancelToken:r})},getErrorReason:t=>{let e;return e="object"==typeof t.response?t.response.data:"string"==typeof t.message?t.message:t.toString(),Object(a.b)(e)}};e.a=d},16:function(t,e,o){"use strict";o.d(e,"i",(function(){return s})),o.d(e,"e",(function(){return l})),o.d(e,"b",(function(){return c})),o.d(e,"c",(function(){return d})),o.d(e,"a",(function(){return u})),o.d(e,"m",(function(){return h})),o.d(e,"g",(function(){return p})),o.d(e,"k",(function(){return f})),o.d(e,"j",(function(){return g})),o.d(e,"d",(function(){return y})),o.d(e,"l",(function(){return w})),o.d(e,"f",(function(){return O})),o.d(e,"h",(function(){return v}));var n=o(0),i=o.n(n),r=o(41),a=o(32);function s(t,e){!function(t,e,o){const n=i.a.useRef(!0);t(()=>{n.current=!0;const t=e(()=>new Promise(t=>{n.current&&t()}));return()=>{n.current=!1,t&&t()}},o)}(n.useEffect,t,e)}function l(t){const[e,o]=i.a.useState(t),n=i.a.useRef(e);return[e,()=>n.current,t=>o(n.current=t)]}function c(t,e,o=[]){function i(n){!t.current||t.current.contains(n.target)||o.some(t=>t&&t.current&&t.current.contains(n.target))||e(n)}Object(n.useEffect)(()=>(document.addEventListener("mousedown",i),document.addEventListener("touchend",i),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("touchend",i)}))}function d(t,e){Object(n.useEffect)(()=>{const o=()=>{0===t.filter(t=>!t.current||document.activeElement===t.current||t.current.contains(document.activeElement)).length&&e()};return document.addEventListener("keyup",o),()=>document.removeEventListener("keyup",o)},t)}function u(t,e,o=100){const[r,a]=i.a.useState(t);return Object(n.useEffect)(()=>{let n=null;return t===e?n=setTimeout(()=>a(e),o):a(!e),()=>{null!==n&&clearTimeout(n)}},[t]),[r,a]}function h(t){const[e,o]=i.a.useState(Object(a.b)()),r=()=>{const e=Object(a.b)();o(e),t&&t(e)};return Object(n.useEffect)(()=>(r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[]),e}function p(){return new URLSearchParams(Object(r.e)().search)}function f(t,e){const o=o=>{if(e)return(o||window.event).returnValue=t,t};Object(n.useEffect)(()=>(window.addEventListener("beforeunload",o),()=>window.removeEventListener("beforeunload",o)),[e])}function g(t,e){const o=i.a.useRef(!1);return Object(n.useEffect)(()=>{o.current&&void 0!==t.current&&(t.current.scrollIntoView(Object.assign({behavior:"smooth",block:"start"},null!=e?e:{})),o.current=!1)},[o.current]),()=>o.current=!0}function m(t,e,o,i=[],r=[]){Object(n.useEffect)(()=>(i.reduce((t,e)=>t&&e,!0)&&t.addEventListener(e,o),()=>t.removeEventListener(e,o)),r)}function y(t,e,o=[],n=[]){m(document,t,e,o,n)}function w(t,e,o=[],n=[]){m(window,t,e,o,n)}function O(t){return e=>{" "!==e.key&&"Enter"!==e.key||(t(),e.preventDefault(),e.stopPropagation())}}function v(t){const[e,o]=i.a.useState(t);return[function(t){const e=i.a.useRef(t);return e.current=t,e}(e),o]}o(39)},19:function(t,e,o){"use strict";let n;e.a=n={config:{restApi:SliCommonL10n.restApi,imagesUrl:SliCommonL10n.imagesUrl},image:t=>`${n.config.imagesUrl}/${t}`}},2:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n,i=o(1),r=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};!function(t){class e{constructor(t,e,o){this.prop=t,this.name=e,this.icon=o}}e.DESKTOP=new e("desktop","Desktop","desktop"),e.TABLET=new e("tablet","Tablet","tablet"),e.PHONE=new e("phone","Phone","smartphone"),t.Mode=e,t.MODES=[e.DESKTOP,e.TABLET,e.PHONE];class o{constructor(t,e,o){this.desktop=t,this.tablet=e,this.phone=o}get(t,e){return n(this,t,e)}set(t,e){a(this,e,t)}with(t,e){const n=s(this,e,t);return new o(n.desktop,n.tablet,n.phone)}}function n(t,e,o=!1){if(!t)return;const n=t[e.prop];return o&&null==n?t.desktop:n}function a(t,e,o){return t[o.prop]=e,t}function s(t,e,n){return a(new o(t.desktop,t.tablet,t.phone),e,n)}r([i.n],o.prototype,"desktop",void 0),r([i.n],o.prototype,"tablet",void 0),r([i.n],o.prototype,"phone",void 0),t.Value=o,t.getName=function(t){return t.name},t.getIcon=function(t){return t.icon},t.cycle=function(o){const n=t.MODES.findIndex(t=>t===o);return void 0===n?e.DESKTOP:t.MODES[(n+1)%t.MODES.length]},t.get=n,t.set=a,t.withValue=s,t.normalize=function(t,e){return null==t?e.hasOwnProperty("all")?new o(e.all,e.all,e.all):new o(e.desktop,e.tablet,e.phone):"object"==typeof t&&t.hasOwnProperty("desktop")?new o(t.desktop,t.tablet,t.phone):new o(t,t,t)},t.getModeForWindowSize=function(t){return t.width<=768?e.PHONE:t.width<=935?e.TABLET:e.DESKTOP},t.isValid=function(t){return"object"==typeof t&&t.hasOwnProperty("desktop")}}(n||(n={}))},27:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));class n{static getById(t){const e=n.list.find(e=>e.id===t);return!e&&n.list.length>0?n.list[0]:e}static getName(t){const e=n.getById(t);return e?e.name:"(Missing layout)"}static addLayout(t){n.list.push(t)}}n.list=[]},3:function(t,e,o){"use strict";o.d(e,"r",(function(){return c})),o.d(e,"f",(function(){return d})),o.d(e,"b",(function(){return u})),o.d(e,"c",(function(){return h})),o.d(e,"d",(function(){return p})),o.d(e,"m",(function(){return f})),o.d(e,"h",(function(){return g})),o.d(e,"e",(function(){return m})),o.d(e,"l",(function(){return y})),o.d(e,"n",(function(){return w})),o.d(e,"j",(function(){return O})),o.d(e,"a",(function(){return v})),o.d(e,"i",(function(){return b})),o.d(e,"k",(function(){return S})),o.d(e,"q",(function(){return M})),o.d(e,"p",(function(){return C})),o.d(e,"o",(function(){return B})),o.d(e,"g",(function(){return T}));var n=o(0),i=o.n(n),r=o(161),a=o(160),s=o(10);let l=0;function c(){return l++}function d(t){const e={};return Object.getOwnPropertyNames(t).forEach(o=>{const n=t[o];Array.isArray(n)?e[o]=n.slice():e[o]="object"==typeof n?d(n):n}),e}function u(t,e){return Object.getOwnPropertyNames(e).forEach(o=>{"object"!=typeof e[o]||Array.isArray(e[o])?t[o]=e[o]:("object"!=typeof t[o]&&(t[o]={}),u(t[o],e[o]))}),t}function h(t,e){return Array.isArray(t)&&Array.isArray(e)?p(t,e):"object"==typeof t&&"object"==typeof e?f(t,e):t===e}function p(t,e,o){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(o){if(!o(t[n],e[n]))return!1}else if(!h(t[n],e[n]))return!1;return!0}function f(t,e){return t&&e&&"object"==typeof t&&"object"==typeof e?!Object.getOwnPropertyNames(t).some(o=>!h(t[o],e[o])):h(t,e)}function g(t,e,o){return o=null!=o?o:(t,e)=>t===e,t.filter(t=>!e.some(e=>o(t,e)))}function m(t,e,o){return o=null!=o?o:(t,e)=>t===e,t.every(t=>e.some(e=>o(t,e)))&&e.every(e=>t.some(t=>o(e,t)))}function y(t,e){return 0===t.tag.localeCompare(e.tag)&&t.sort===e.sort}function w(t,e,o=0,r=!1){let a=t.trim();r&&(a=a.replace(/((?:^[.*•]+(\r\n|\r|\n))+)/gm,"\n"));const s=a.split("\n"),l=s.map((t,o)=>{if(t=t.trim(),r&&/^[.*•]$/.test(t))return null;let a,l=[];for(;null!==(a=/#([^\s]+)/g.exec(t));){const e="https://instagram.com/explore/tags/"+a[1],o=i.a.createElement("a",{href:e,target:"_blank",key:c()},a[0]),n=t.substr(0,a.index),r=t.substr(a.index+a[0].length);l.push(n),l.push(o),t=r}return t.length&&l.push(t),e&&(l=e(l,o)),s.length>1&&l.push(i.a.createElement("br",{key:c()})),i.a.createElement(n.Fragment,{key:c()},l)});return o>0?l.slice(0,o):l}function O(t){const e=t.match(/instagram\.com\/p\/([^\/]+)\//);return e&&e.length>0?e[1]:null}var v;function b(t,e=v.MEDIUM){return`https://www.instagram.com/p/${t}/media/?size=${e}`}function S(t,e=v.MEDIUM){return t.thumbnail?t.thumbnail:b(O(t.permalink),e)}function M(t,e){const o=/(\s+)/g;let n,i=0,r=0,a="";for(;null!==(n=o.exec(t))&&i<e;){const e=n.index+n[1].length;a+=t.substr(r,e-r),r=e,i++}return r<t.length&&(a+=" ..."),a}function C(t){return Object(r.a)(Object(a.a)(t),{addSuffix:!0})}function B(t,e){const o=[];return t.forEach((t,n)=>{const i=n%e;Array.isArray(o[i])?o[i].push(t):o[i]=[t]}),o}function T(t,e){return function t(e){if(e.type===s.a.Type.VIDEO){const t=document.createElement("video");return t.autoplay=!1,t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.visibility="hidden",document.body.appendChild(t),new Promise(o=>{t.src=e.url,t.addEventListener("loadeddata",()=>{o({width:t.videoWidth,height:t.videoHeight}),document.body.removeChild(t)})})}if(e.type===s.a.Type.IMAGE){const t=new Image;return t.src=e.url,new Promise(e=>{t.onload=()=>{e({width:t.naturalWidth,height:t.naturalHeight})}})}return e.type===s.a.Type.ALBUM?t(e.children[0]):Promise.reject("Unknown media type")}(t).then(t=>function(t,e){const o=t.width>t.height?e.width/t.width:e.height/t.height;return{width:t.width*o,height:t.height*o}}(t,e))}!function(t){t.SMALL="t",t.MEDIUM="m",t.LARGE="l"}(v||(v={}))},30:function(t,o){t.exports=e},31:function(t,e,o){"use strict";o.d(e,"a",(function(){return c})),o.d(e,"b",(function(){return d})),o.d(e,"c",(function(){return h}));var n=o(0),i=o.n(n),r=o(30),a=o.n(r),s=o(7);class l{constructor(t=new Map,e=[]){this.factories=t,this.extensions=new Map,this.cache=new Map,e.forEach(t=>this.addModule(t))}addModule(t){t.factories&&(this.factories=new Map([...this.factories,...t.factories])),t.extensions&&t.extensions.forEach((t,e)=>{this.extensions.has(e)?this.extensions.get(e).push(t):this.extensions.set(e,[t])})}get(t){let e=this.factories.get(t);if(void 0===e)throw new Error('Service "'+t+'" does not exist');let o=this.cache.get(t);if(void 0===o){o=e(this);let n=this.extensions.get(t);n&&n.forEach(t=>o=t(this,o)),this.cache.set(t,o)}return o}has(t){return this.factories.has(t)}}class c{constructor(t,e,o){this.key=t,this.mount=e,this.modules=o,this.container=null}addModules(t){this.modules=this.modules.concat(t)}run(){if(null!==this.container)return;const t=()=>{!function(t){const e=`app/${t.key}/run`;document.dispatchEvent(new u(e,t))}(this);const t=h({root:()=>null,"root/children":()=>[]});this.container=new l(t,this.modules);const e=this.container.get("root/children").map((t,e)=>i.a.createElement(t,{key:e})),o=i.a.createElement(s.a,{c:this.container},e);this.modules.forEach(t=>t.run&&t.run(this.container)),a.a.render(o,this.mount)};"complete"===document.readyState?t():window.addEventListener("load",t)}}function d(t,e){document.addEventListener(`app/${t}/run`,t=>{e(t.detail.app)})}class u extends CustomEvent{constructor(t,e){super(t,{detail:{app:e}})}}function h(t){return new Map(Object.entries(t))}},32:function(t,e,o){"use strict";function n(t,e,o={}){return window.open(t,e,function(t={}){return Object.getOwnPropertyNames(t).map(e=>`${e}=${t[e]}`).join(",")}(o))}function i(t,e){return{top:window.top.outerHeight/2+window.top.screenY-e/2,left:window.top.outerWidth/2+window.top.screenX-t/2,width:t,height:e}}function r(){const{innerWidth:t,innerHeight:e}=window;return{width:t,height:e}}o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return r}))},39:function(t,e,o){"use strict";function n(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function i(t){const e=document.createElement("DIV");return e.innerHTML=t,e.textContent||e.innerText||""}o.d(e,"a",(function(){return n})),o.d(e,"b",(function(){return i}))},4:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n,i=o(14),r=o(1);!function(t){let e;!function(t){t.PERSONAL="PERSONAL",t.BUSINESS="BUSINESS"}(e=t.Type||(t.Type={}))}(n||(n={}));const a=Object(r.n)([]),s="https://secure.gravatar.com/avatar/4a94d759753ade2961582f7345c1d7b2?s=64&d=mm&r=g",l=t=>a.find(e=>e.id===t),c=t=>"https://instagram.com/"+t;function d(t){if("object"==typeof t&&Array.isArray(t.data))return t.data.sort((t,e)=>t.type===e.type?0:t.type===n.Type.PERSONAL?-1:1),a.splice(0,a.length),t.data.forEach(t=>a.push(Object(r.n)(t))),a;throw"Spotlight encountered a problem trying to load your accounts. Kindly contact customer support for assistance."}e.b={list:a,DEFAULT_PROFILE_PIC:s,getById:l,getByUsername:t=>a.find(e=>e.username===t),hasAccounts:()=>a.length>0,filterExisting:t=>t.filter(t=>void 0!==l(t)),idsToAccounts:t=>t.map(t=>l(t)).filter(t=>void 0!==t),getBusinessAccounts:()=>a.filter(t=>t.type===n.Type.BUSINESS),getProfilePicUrl:t=>t.customProfilePicUrl?t.customProfilePicUrl:t.profilePicUrl?t.profilePicUrl:s,getBioText:t=>t.customBio.length?t.customBio:t.bio,getProfileUrl:t=>c(t.username),getUsernameUrl:c,loadAccounts:function(){return i.a.getAccounts().then(d).catch(t=>{throw i.a.getErrorReason(t)})},loadFromResponse:d}},569:function(t,e,o){},571:function(t,e,o){"use strict";o.r(e),o(227);var n=o(31),i=(o(569),o(0)),r=o.n(i),a=o(1),s=o(4),l=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};class c{constructor(t){this.feed=t,this.isLoaded=!1}load(t){this.isLoaded||s.b.loadAccounts().then(()=>{this.feed.load().then(()=>{this.isLoaded=!0,t&&t()}).catch(t=>{})}).catch(t=>{})}}l([a.n],c.prototype,"isLoaded",void 0),l([a.n],c.prototype,"feed",void 0);var d=o(7),u=o(2),h=o(16),p=o(107);const f=Object(d.b)(({store:t})=>(Object(h.m)(e=>t.feed.mode=u.a.getModeForWindowSize(e)),r.a.createElement("div",{className:"spotlight-instagram-app"},r.a.createElement(p.a,{feed:t.feed}))));var g=o(6),m=o(32);const y=t=>({factories:Object(n.c)({"front/feed":()=>{const e=u.a.getModeForWindowSize(Object(m.b)());return new g.a(t,e)},"front/store":t=>new c(t.get("front/feed")),"front/component":t=>()=>r.a.createElement(f,{store:t.get("front/store")})}),extensions:Object(n.c)({"root/children":(t,e)=>[...e,t.get("front/component")]}),run:t=>{t.get("front/store").load()}}),w=window.SpotlightInstagram={instances:[],init:function(){w.instances=[];const t=document.getElementsByClassName("spotlight-instagram-feed");for(let e=0,o=t.length||0;e<o;++e){const o=t[e],i=o.getAttribute("data-feed-var");if(i&&SliFrontCtx.hasOwnProperty(i))if(o.children.length>0);else{const t=SliFrontCtx[i],r=[y(t)],a=new n.a("front/vars/"+e,o,r);w.instances.push(a),a.run()}}}};w.init()},59:function(t,e,o){"use strict";function n(t,e){let o;return()=>{clearTimeout(o),o=setTimeout(()=>{o=null,t()},e)}}function i(){}o.d(e,"a",(function(){return n})),o.d(e,"b",(function(){return i}))},6:function(t,e,o){"use strict";o.d(e,"a",(function(){return g}));var n=o(37),i=o.n(n),r=o(1),a=o(2),s=o(27),l=o(31),c=o(4),d=o(3),u=o(13),h=o(14),p=o(59),f=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};class g{constructor(t=new g.Options,e=a.a.Mode.DESKTOP){this.media=[],this.canLoadMore=!1,this.stories=[],this.numLoadedMore=0,this.totalMedia=0,this.mode=a.a.Mode.DESKTOP,this.isLoaded=!1,this.isLoading=!1,this.isLoadingMore=!1,this.numMediaToShow=0,this.numMediaPerPage=0,this.cancelFetch=()=>{},this.options=new g.Options(t),this.localMedia=[],this.mode=e,this.mediaCounter=this._numMediaPerPage,this.reload=Object(p.a)(()=>this.load(),300),Object(r.o)(()=>this.mode,()=>{0===this.numLoadedMore&&(this.mediaCounter=this._numMediaPerPage,this.localMedia.length<this.numMediaToShow&&this.loadMedia(this.localMedia.length,this.numMediaToShow-this.localMedia.length))}),Object(r.o)(()=>this.getReloadOptions(),()=>this.reload()),Object(r.o)(()=>({num:this._numMediaPerPage,mode:this.mode}),({num:t})=>{this.localMedia.length<t&&t<=this.totalMedia?this.reload():this.mediaCounter=Math.max(1,t)}),Object(r.o)(()=>this._media,t=>this.media=t),Object(r.o)(()=>this._numMediaToShow,t=>this.numMediaToShow=t),Object(r.o)(()=>this._numMediaPerPage,t=>this.numMediaPerPage=t),Object(r.o)(()=>this._canLoadMore,t=>this.canLoadMore=t)}get _media(){return this.localMedia.slice(0,this.numMediaToShow)}get _numMediaToShow(){return Math.min(this.mediaCounter,this.totalMedia)}get _numMediaPerPage(){return Math.max(1,g.ComputedOptions.normalizeMultiInt(this.options.numPosts,this.mode,1))}get _canLoadMore(){return this.localMedia.length>this.mediaCounter||this.localMedia.length<this.totalMedia}loadMore(){const t=this.numMediaToShow+this._numMediaPerPage-this.localMedia.length;return this.isLoadingMore=!0,t>0?this.loadMedia(this.localMedia.length,this._numMediaPerPage).then(()=>{this.mediaCounter+=this._numMediaPerPage,this.numLoadedMore++,this.isLoadingMore=!1}):new Promise(t=>{this.numLoadedMore++,this.mediaCounter+=this._numMediaPerPage,this.isLoadingMore=!1,t()})}load(){return this.numLoadedMore=0,this.loadMedia(0,this._numMediaPerPage,!0).then(()=>(this.isLoaded=!0,this.mediaCounter=this._numMediaPerPage))}loadMedia(t,e,o){return this.cancelFetch(),g.Options.hasSources(this.options,!0)?(this.isLoading=!0,new Promise((n,r)=>{h.a.getFeedMedia(this.options,t,e,t=>this.cancelFetch=t).then(t=>{var e;if("object"!=typeof t||"object"!=typeof t.data||!Array.isArray(t.data.media))throw{message:"The media response is malformed or corrupt",response:t};o&&(this.localMedia=[]),this.localMedia.push(...t.data.media),this.stories=null!==(e=t.data.stories)&&void 0!==e?e:[],this.totalMedia=t.data.total,n&&n()}).catch(t=>{var e;if(i.a.isCancel(t))return null;const o=new g.Events.FetchFailEvent(g.Events.FETCH_FAIL,{detail:{feed:this,message:null!==(e=t.response?t.response.data.message:void 0)&&void 0!==e?e:t.message,response:t.response}});return document.dispatchEvent(o),r&&r(t),t}).finally(()=>this.isLoading=!1)})):new Promise(t=>{this.localMedia=[],this.totalMedia=0,t&&t()})}getReloadOptions(){return JSON.stringify({accounts:this.options.accounts,hashtags:this.options.hashtags,tagged:this.options.tagged,postOrder:this.options.postOrder,mediaType:this.options.mediaType,moderation:this.options.moderation,moderationMode:this.options.moderationMode,hashtagBlacklist:this.options.hashtagBlacklist,hashtagWhitelist:this.options.hashtagWhitelist,captionBlacklist:this.options.captionBlacklist,captionWhitelist:this.options.captionWhitelist,hashtagBlacklistSettings:this.options.hashtagBlacklistSettings,hashtagWhitelistSettings:this.options.hashtagWhitelistSettings,captionBlacklistSettings:this.options.captionBlacklistSettings,captionWhitelistSettings:this.options.captionWhitelistSettings})}}f([r.n],g.prototype,"media",void 0),f([r.n],g.prototype,"canLoadMore",void 0),f([r.n],g.prototype,"stories",void 0),f([r.n],g.prototype,"numLoadedMore",void 0),f([r.n],g.prototype,"options",void 0),f([r.n],g.prototype,"totalMedia",void 0),f([r.n],g.prototype,"mode",void 0),f([r.n],g.prototype,"isLoaded",void 0),f([r.n],g.prototype,"isLoading",void 0),f([r.n],g.prototype,"isLoadingMore",void 0),f([r.f],g.prototype,"reload",void 0),f([r.n],g.prototype,"localMedia",void 0),f([r.n],g.prototype,"numMediaToShow",void 0),f([r.n],g.prototype,"numMediaPerPage",void 0),f([r.n],g.prototype,"mediaCounter",void 0),f([r.h],g.prototype,"_media",null),f([r.h],g.prototype,"_numMediaToShow",null),f([r.h],g.prototype,"_numMediaPerPage",null),f([r.h],g.prototype,"_canLoadMore",null),f([r.f],g.prototype,"loadMore",null),f([r.f],g.prototype,"load",null),f([r.f],g.prototype,"loadMedia",null),function(t){let e,o,n,i,h,p,g,m,y;!function(t){t.FETCH_FAIL="sli/feed/fetch_fail";class e extends CustomEvent{constructor(t,e){super(t,e)}}t.FetchFailEvent=e}(e=t.Events||(t.Events={}));class w{constructor(t={}){w.setFromObject(this,t)}static setFromObject(e,o={}){var n,i,r,l,d,u,h,p,f,g,m,y;return e.accounts=o.accounts?o.accounts.slice():t.DefaultOptions.accounts,e.hashtags=o.hashtags?o.hashtags.slice():t.DefaultOptions.hashtags,e.tagged=o.tagged?o.tagged.slice():t.DefaultOptions.tagged,e.layout=s.a.getById(o.layout).id,e.numColumns=a.a.normalize(o.numColumns,t.DefaultOptions.numColumns),e.highlightFreq=a.a.normalize(o.highlightFreq,t.DefaultOptions.highlightFreq),e.mediaType=o.mediaType||t.DefaultOptions.mediaType,e.postOrder=o.postOrder||t.DefaultOptions.postOrder,e.numPosts=a.a.normalize(o.numPosts,t.DefaultOptions.numPosts),e.linkBehavior=a.a.normalize(o.linkBehavior,t.DefaultOptions.linkBehavior),e.feedWidth=a.a.normalize(o.feedWidth,t.DefaultOptions.feedWidth),e.feedHeight=a.a.normalize(o.feedHeight,t.DefaultOptions.feedHeight),e.feedPadding=a.a.normalize(o.feedPadding,t.DefaultOptions.feedPadding),e.imgPadding=a.a.normalize(o.imgPadding,t.DefaultOptions.imgPadding),e.textSize=a.a.normalize(o.textSize,t.DefaultOptions.textSize),e.bgColor=o.bgColor||t.DefaultOptions.bgColor,e.hoverInfo=o.hoverInfo?o.hoverInfo.slice():t.DefaultOptions.hoverInfo,e.textColorHover=o.textColorHover||t.DefaultOptions.textColorHover,e.bgColorHover=o.bgColorHover||t.DefaultOptions.bgColorHover,e.showHeader=a.a.normalize(o.showHeader,t.DefaultOptions.showHeader),e.headerInfo=a.a.normalize(o.headerInfo,t.DefaultOptions.headerInfo),e.headerAccount=null!==(n=o.headerAccount)&&void 0!==n?n:t.DefaultOptions.headerAccount,e.headerAccount=null===e.headerAccount||void 0===c.b.getById(e.headerAccount)?c.b.list.length>0?c.b.list[0].id:null:e.headerAccount,e.headerStyle=a.a.normalize(o.headerStyle,t.DefaultOptions.headerStyle),e.headerTextSize=a.a.normalize(o.headerTextSize,t.DefaultOptions.headerTextSize),e.headerPhotoSize=a.a.normalize(o.headerPhotoSize,t.DefaultOptions.headerPhotoSize),e.headerTextColor=o.headerTextColor||t.DefaultOptions.headerTextColor,e.headerBgColor=o.headerBgColor||t.DefaultOptions.bgColor,e.headerPadding=a.a.normalize(o.headerPadding,t.DefaultOptions.headerPadding),e.customProfilePic=null!==(i=o.customProfilePic)&&void 0!==i?i:t.DefaultOptions.customProfilePic,e.customBioText=o.customBioText||t.DefaultOptions.customBioText,e.includeStories=null!==(r=o.includeStories)&&void 0!==r?r:t.DefaultOptions.includeStories,e.storiesInterval=o.storiesInterval||t.DefaultOptions.storiesInterval,e.showCaptions=a.a.normalize(o.showCaptions,t.DefaultOptions.showCaptions),e.captionMaxLength=a.a.normalize(o.captionMaxLength,t.DefaultOptions.captionMaxLength),e.captionRemoveDots=null!==(l=o.captionRemoveDots)&&void 0!==l?l:t.DefaultOptions.captionRemoveDots,e.captionSize=a.a.normalize(o.captionSize,t.DefaultOptions.captionSize),e.captionColor=o.captionColor||t.DefaultOptions.captionColor,e.showLikes=a.a.normalize(o.showLikes,t.DefaultOptions.showLikes),e.showComments=a.a.normalize(o.showComments,t.DefaultOptions.showCaptions),e.lcIconSize=a.a.normalize(o.lcIconSize,t.DefaultOptions.lcIconSize),e.likesIconColor=null!==(d=o.likesIconColor)&&void 0!==d?d:t.DefaultOptions.likesIconColor,e.commentsIconColor=o.commentsIconColor||t.DefaultOptions.commentsIconColor,e.lightboxShowSidebar=null!==(u=o.lightboxShowSidebar)&&void 0!==u?u:t.DefaultOptions.lightboxShowSidebar,e.numLightboxComments=o.numLightboxComments||t.DefaultOptions.numLightboxComments,e.showLoadMoreBtn=a.a.normalize(o.showLoadMoreBtn,t.DefaultOptions.showLoadMoreBtn),e.loadMoreBtnTextColor=o.loadMoreBtnTextColor||t.DefaultOptions.loadMoreBtnTextColor,e.loadMoreBtnBgColor=o.loadMoreBtnBgColor||t.DefaultOptions.loadMoreBtnBgColor,e.loadMoreBtnText=o.loadMoreBtnText||t.DefaultOptions.loadMoreBtnText,e.autoload=null!==(h=o.autoload)&&void 0!==h?h:t.DefaultOptions.autoload,e.showFollowBtn=a.a.normalize(o.showFollowBtn,t.DefaultOptions.showFollowBtn),e.followBtnText=null!==(p=o.followBtnText)&&void 0!==p?p:t.DefaultOptions.followBtnText,e.followBtnTextColor=o.followBtnTextColor||t.DefaultOptions.followBtnTextColor,e.followBtnBgColor=o.followBtnBgColor||t.DefaultOptions.followBtnBgColor,e.followBtnLocation=a.a.normalize(o.followBtnLocation,t.DefaultOptions.followBtnLocation),e.hashtagWhitelist=o.hashtagWhitelist||t.DefaultOptions.hashtagWhitelist,e.hashtagBlacklist=o.hashtagBlacklist||t.DefaultOptions.hashtagBlacklist,e.captionWhitelist=o.captionWhitelist||t.DefaultOptions.captionWhitelist,e.captionBlacklist=o.captionBlacklist||t.DefaultOptions.captionBlacklist,e.hashtagWhitelistSettings=null!==(f=o.hashtagWhitelistSettings)&&void 0!==f?f:t.DefaultOptions.hashtagWhitelistSettings,e.hashtagBlacklistSettings=null!==(g=o.hashtagBlacklistSettings)&&void 0!==g?g:t.DefaultOptions.hashtagBlacklistSettings,e.captionWhitelistSettings=null!==(m=o.captionWhitelistSettings)&&void 0!==m?m:t.DefaultOptions.captionWhitelistSettings,e.captionBlacklistSettings=null!==(y=o.captionBlacklistSettings)&&void 0!==y?y:t.DefaultOptions.captionBlacklistSettings,e.moderation=o.moderation||t.DefaultOptions.moderation,e.moderationMode=o.moderationMode||t.DefaultOptions.moderationMode,e.promotionEnabled=o.promotionEnabled||t.DefaultOptions.promotionEnabled,Array.isArray(o.promotions)?e.promotions=new Map(o.promotions):o.promotions&&o.promotions.constructor&&"Map"===o.promotions.constructor.name?e.promotions=o.promotions:"object"==typeof o.promotions?e.promotions=new Map(Object.entries(o.promotions)):e.promotions=t.DefaultOptions.promotions,e}static getAllAccounts(t){const e=c.b.idsToAccounts(t.accounts),o=c.b.idsToAccounts(t.tagged);return{all:e.concat(o),accounts:e,tagged:o}}static getSources(t){return{accounts:c.b.idsToAccounts(t.accounts),tagged:c.b.idsToAccounts(t.tagged),hashtags:c.b.getBusinessAccounts().length>0?t.hashtags.filter(t=>t.tag.length>0):[]}}static hasSources(e,o){const n=t.Options.getSources(e),i=n.accounts.length>0||o&&n.tagged.length>0,r=o&&n.hashtags.length>0;return i||r}static isLimitingPosts(t){return t.moderation.length>0||t.hashtagBlacklist.length>0||t.hashtagWhitelist.length>0||t.captionBlacklist.length>0||t.captionWhitelist.length>0}}f([r.n],w.prototype,"accounts",void 0),f([r.n],w.prototype,"hashtags",void 0),f([r.n],w.prototype,"tagged",void 0),f([r.n],w.prototype,"layout",void 0),f([r.n],w.prototype,"numColumns",void 0),f([r.n],w.prototype,"highlightFreq",void 0),f([r.n],w.prototype,"mediaType",void 0),f([r.n],w.prototype,"postOrder",void 0),f([r.n],w.prototype,"numPosts",void 0),f([r.n],w.prototype,"linkBehavior",void 0),f([r.n],w.prototype,"feedWidth",void 0),f([r.n],w.prototype,"feedHeight",void 0),f([r.n],w.prototype,"feedPadding",void 0),f([r.n],w.prototype,"imgPadding",void 0),f([r.n],w.prototype,"textSize",void 0),f([r.n],w.prototype,"bgColor",void 0),f([r.n],w.prototype,"textColorHover",void 0),f([r.n],w.prototype,"bgColorHover",void 0),f([r.n],w.prototype,"hoverInfo",void 0),f([r.n],w.prototype,"showHeader",void 0),f([r.n],w.prototype,"headerInfo",void 0),f([r.n],w.prototype,"headerAccount",void 0),f([r.n],w.prototype,"headerStyle",void 0),f([r.n],w.prototype,"headerTextSize",void 0),f([r.n],w.prototype,"headerPhotoSize",void 0),f([r.n],w.prototype,"headerTextColor",void 0),f([r.n],w.prototype,"headerBgColor",void 0),f([r.n],w.prototype,"headerPadding",void 0),f([r.n],w.prototype,"customBioText",void 0),f([r.n],w.prototype,"customProfilePic",void 0),f([r.n],w.prototype,"includeStories",void 0),f([r.n],w.prototype,"storiesInterval",void 0),f([r.n],w.prototype,"showCaptions",void 0),f([r.n],w.prototype,"captionMaxLength",void 0),f([r.n],w.prototype,"captionRemoveDots",void 0),f([r.n],w.prototype,"captionSize",void 0),f([r.n],w.prototype,"captionColor",void 0),f([r.n],w.prototype,"showLikes",void 0),f([r.n],w.prototype,"showComments",void 0),f([r.n],w.prototype,"lcIconSize",void 0),f([r.n],w.prototype,"likesIconColor",void 0),f([r.n],w.prototype,"commentsIconColor",void 0),f([r.n],w.prototype,"lightboxShowSidebar",void 0),f([r.n],w.prototype,"numLightboxComments",void 0),f([r.n],w.prototype,"showLoadMoreBtn",void 0),f([r.n],w.prototype,"loadMoreBtnText",void 0),f([r.n],w.prototype,"loadMoreBtnTextColor",void 0),f([r.n],w.prototype,"loadMoreBtnBgColor",void 0),f([r.n],w.prototype,"autoload",void 0),f([r.n],w.prototype,"showFollowBtn",void 0),f([r.n],w.prototype,"followBtnText",void 0),f([r.n],w.prototype,"followBtnTextColor",void 0),f([r.n],w.prototype,"followBtnBgColor",void 0),f([r.n],w.prototype,"followBtnLocation",void 0),f([r.n],w.prototype,"hashtagWhitelist",void 0),f([r.n],w.prototype,"hashtagBlacklist",void 0),f([r.n],w.prototype,"captionWhitelist",void 0),f([r.n],w.prototype,"captionBlacklist",void 0),f([r.n],w.prototype,"hashtagWhitelistSettings",void 0),f([r.n],w.prototype,"hashtagBlacklistSettings",void 0),f([r.n],w.prototype,"captionWhitelistSettings",void 0),f([r.n],w.prototype,"captionBlacklistSettings",void 0),f([r.n],w.prototype,"moderation",void 0),f([r.n],w.prototype,"moderationMode",void 0),t.Options=w;class O{constructor(t){Object.getOwnPropertyNames(t).map(e=>{this[e]=t[e]})}getCaption(t){const e=t.caption?t.caption:"";return this.captionMaxLength&&e.length?Object(d.n)(Object(d.q)(e,this.captionMaxLength)):e}static compute(e,o=a.a.Mode.DESKTOP){const n=new O({accounts:c.b.filterExisting(e.accounts),tagged:c.b.filterExisting(e.tagged),hashtags:e.hashtags.filter(t=>t.tag.length>0),layout:s.a.getById(e.layout),highlightFreq:a.a.get(e.highlightFreq,o,!0),linkBehavior:a.a.get(e.linkBehavior,o,!0),bgColor:Object(u.a)(e.bgColor),textColorHover:Object(u.a)(e.textColorHover),bgColorHover:Object(u.a)(e.bgColorHover),hoverInfo:e.hoverInfo,showHeader:a.a.get(e.showHeader,o,!0),headerInfo:a.a.get(e.headerInfo,o,!0),headerStyle:a.a.get(e.headerStyle,o,!0),headerTextColor:Object(u.a)(e.headerTextColor),headerBgColor:Object(u.a)(e.headerBgColor),headerPadding:a.a.get(e.headerPadding,o,!0),includeStories:e.includeStories,storiesInterval:e.storiesInterval,showCaptions:a.a.get(e.showCaptions,o,!0),captionMaxLength:a.a.get(e.captionMaxLength,o,!0),captionRemoveDots:e.captionRemoveDots,captionColor:Object(u.a)(e.captionColor),showLikes:a.a.get(e.showLikes,o,!0),showComments:a.a.get(e.showComments,o,!0),likesIconColor:Object(u.a)(e.likesIconColor),commentsIconColor:Object(u.a)(e.commentsIconColor),lightboxShowSidebar:e.lightboxShowSidebar,numLightboxComments:e.numLightboxComments,showLoadMoreBtn:a.a.get(e.showLoadMoreBtn,o,!0),loadMoreBtnTextColor:Object(u.a)(e.loadMoreBtnTextColor),loadMoreBtnBgColor:Object(u.a)(e.loadMoreBtnBgColor),loadMoreBtnText:e.loadMoreBtnText,showFollowBtn:a.a.get(e.showFollowBtn,o,!0),autoload:e.autoload,followBtnLocation:a.a.get(e.followBtnLocation,o,!0),followBtnTextColor:Object(u.a)(e.followBtnTextColor),followBtnBgColor:Object(u.a)(e.followBtnBgColor),followBtnText:e.followBtnText,account:null,showBio:!1,bioText:null,profilePhotoUrl:c.b.DEFAULT_PROFILE_PIC,feedWidth:"",feedHeight:"",feedPadding:"",imgPadding:"",textSize:"",headerTextSize:"",headerPhotoSize:"",captionSize:"",lcIconSize:"",showLcIcons:!1});if(n.numColumns=this.getNumCols(e,o),n.numPosts=this.getNumPosts(e,o),n.allAccounts=n.accounts.concat(n.tagged.filter(t=>!n.accounts.includes(t))),n.allAccounts.length>0&&(n.account=e.headerAccount&&n.allAccounts.includes(e.headerAccount)?c.b.getById(e.headerAccount):c.b.getById(n.allAccounts[0])),n.showHeader=n.showHeader&&null!==n.account,n.showHeader&&(n.profilePhotoUrl=e.customProfilePic.length?e.customProfilePic:c.b.getProfilePicUrl(n.account)),n.showFollowBtn=n.showFollowBtn&&null!==n.account,n.showBio=n.headerInfo.some(e=>e===t.HeaderInfo.BIO),n.showBio){const t=e.customBioText.trim().length>0?e.customBioText:null!==n.account?c.b.getBioText(n.account):"";n.bioText=Object(d.n)(t),n.showBio=n.bioText.length>0}return n.feedWidth=this.normalizeCssSize(e.feedWidth,o,"auto"),n.feedHeight=this.normalizeCssSize(e.feedHeight,o,"auto"),n.feedPadding=this.normalizeCssSize(e.feedPadding,o,"0"),n.imgPadding=this.normalizeCssSize(e.imgPadding,o,"0"),n.textSize=this.normalizeCssSize(e.textSize,o,"inherit",!0),n.headerTextSize=this.normalizeCssSize(e.headerTextSize,o,"inherit"),n.headerPhotoSize=this.normalizeCssSize(e.headerPhotoSize,o,"50px"),n.captionSize=this.normalizeCssSize(e.captionSize,o,"inherit"),n.lcIconSize=this.normalizeCssSize(e.lcIconSize,o,"inherit"),n.buttonPadding=Math.max(10,a.a.get(e.imgPadding,o))+"px",n.showLcIcons=n.showLikes||n.showComments,n}static getNumCols(t,e){return Math.max(1,this.normalizeMultiInt(t.numColumns,e,1))}static getNumPosts(t,e){return Math.max(1,this.normalizeMultiInt(t.numPosts,e,1))}static normalizeMultiInt(t,e,o=0){const n=parseInt(a.a.get(t,e)+"");return isNaN(n)?e===a.a.Mode.DESKTOP?o:this.normalizeMultiInt(t,a.a.Mode.DESKTOP,o):n}static normalizeCssSize(t,e,o=null,n=!1){const i=a.a.get(t,e,n);return i?i+"px":o}}t.ComputedOptions=O,t.HashtagSorting=Object(l.c)({recent:"Most recent",popular:"Most popular"}),function(t){t.ALL="all",t.PHOTOS="photos",t.VIDEOS="videos"}(o=t.MediaType||(t.MediaType={})),function(t){t.NOTHING="nothing",t.SELF="self",t.NEW_TAB="new_tab",t.LIGHTBOX="lightbox"}(n=t.LinkBehavior||(t.LinkBehavior={})),function(t){t.DATE_ASC="date_asc",t.DATE_DESC="date_desc",t.POPULARITY_ASC="popularity_asc",t.POPULARITY_DESC="popularity_desc",t.RANDOM="random"}(i=t.PostOrder||(t.PostOrder={})),function(t){t.USERNAME="username",t.DATE="date",t.CAPTION="caption",t.LIKES_COMMENTS="likes_comments",t.INSTA_LINK="insta_link"}(h=t.HoverInfo||(t.HoverInfo={})),function(t){t.NORMAL="normal",t.BOXED="boxed",t.CENTERED="centered"}(p=t.HeaderStyle||(t.HeaderStyle={})),function(t){t.BIO="bio",t.PROFILE_PIC="profile_pic",t.FOLLOWERS="followers",t.MEDIA_COUNT="media_count"}(g=t.HeaderInfo||(t.HeaderInfo={})),function(t){t.HEADER="header",t.BOTTOM="bottom",t.BOTH="both"}(m=t.FollowBtnLocation||(t.FollowBtnLocation={})),function(t){t.WHITELIST="whitelist",t.BLACKLIST="blacklist"}(y=t.ModerationMode||(t.ModerationMode={})),t.DefaultOptions={accounts:[],hashtags:[],tagged:[],layout:null,numColumns:{desktop:3},highlightFreq:{desktop:7},mediaType:o.ALL,postOrder:i.DATE_DESC,numPosts:{desktop:9},linkBehavior:{desktop:n.LIGHTBOX,phone:n.NEW_TAB},feedWidth:{desktop:""},feedHeight:{desktop:""},feedPadding:{desktop:20,tablet:14,phone:10},imgPadding:{desktop:14,tablet:10,phone:6},textSize:{all:""},bgColor:{r:255,g:255,b:255,a:1},hoverInfo:[h.LIKES_COMMENTS,h.INSTA_LINK],textColorHover:{r:255,g:255,b:255,a:1},bgColorHover:{r:0,g:0,b:0,a:.5},showHeader:{desktop:!0},headerInfo:{desktop:[g.PROFILE_PIC,g.BIO]},headerAccount:null,headerStyle:{desktop:p.NORMAL,phone:p.CENTERED},headerTextSize:{desktop:""},headerPhotoSize:{desktop:50},headerTextColor:{r:0,g:0,b:0,a:1},headerBgColor:{r:255,g:255,b:255,a:1},headerPadding:{desktop:0},customProfilePic:0,customBioText:"",includeStories:!1,storiesInterval:5,showCaptions:{desktop:!1},captionMaxLength:{desktop:0},captionRemoveDots:!1,captionSize:{desktop:0},captionColor:{r:0,g:0,b:0,a:1},showLikes:{desktop:!1},showComments:{desktop:!1},lcIconSize:{desktop:14},likesIconColor:{r:0,g:0,b:0,a:1},commentsIconColor:{r:0,g:0,b:0,a:1},lightboxShowSidebar:!1,numLightboxComments:50,showLoadMoreBtn:{desktop:!0},loadMoreBtnTextColor:{r:255,g:255,b:255,a:1},loadMoreBtnBgColor:{r:0,g:149,b:246,a:1},loadMoreBtnText:"Load more",autoload:!1,showFollowBtn:{desktop:!0},followBtnText:"Follow on Instagram",followBtnTextColor:{r:255,g:255,b:255,a:1},followBtnBgColor:{r:0,g:149,b:246,a:1},followBtnLocation:{desktop:m.HEADER,phone:m.BOTTOM},hashtagWhitelist:[],hashtagBlacklist:[],captionWhitelist:[],captionBlacklist:[],hashtagWhitelistSettings:!0,hashtagBlacklistSettings:!0,captionWhitelistSettings:!0,captionBlacklistSettings:!0,moderation:[],moderationMode:y.BLACKLIST,promotionEnabled:!0,promotions:new Map}}(g||(g={}))}},[[571,0,1]]])}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],e):"object"==typeof exports?exports.spotlight=e(require("React"),require("ReactDOM")):t.spotlight=e(t.React,t.ReactDOM)}(window,(function(t,e){return(window.webpackJsonpspotlight=window.webpackJsonpspotlight||[]).push([[11],{0:function(e,o){e.exports=t},108:function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n=o(0),i=o.n(n),r=o(6),a=o(27),s=o(7);const l=Object(r.b)(({feed:t})=>{const e=a.a.getById(t.options.layout),o=s.a.ComputedOptions.compute(t.options,t.mode);return i.a.createElement("div",{className:"feed"},i.a.createElement(e.component,{feed:t,options:o}))})},12:function(t,e,o){"use strict";var n,i=o(8);let r;e.a=r={isPro:!1,config:{restApi:SliCommonL10n.restApi,imagesUrl:SliCommonL10n.imagesUrl,autoPromotions:SliCommonL10n.autoPromotions,globalPromotions:null!==(n=SliCommonL10n.globalPromotions)&&void 0!==n?n:{}},image:t=>`${r.config.imagesUrl}/${t}`},i.a.registerType({id:"link",label:"Link",isValid:()=>!1}),i.a.registerType({id:"-more-",label:"- More promotion types -",isValid:()=>!1}),i.a.Automation.registerType({id:"hashtag",label:"Hashtag",matches:()=>!1})},13:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));const n=t=>"string"==typeof t?t:"r"in t?"rgba("+t.r+","+t.g+","+t.b+","+t.a+")":"h"in t?"hsla("+t.h+","+t.s+","+t.l+","+t.a+")":"#fff"},15:function(t,e,o){"use strict";var n;o.d(e,"a",(function(){return n})),function(t){let e,o;!function(t){t.IMAGE="IMAGE",t.VIDEO="VIDEO",t.ALBUM="CAROUSEL_ALBUM"}(e=t.Type||(t.Type={})),function(t){let e;!function(t){t.PERSONAL_ACCOUNT="PERSONAL_ACCOUNT",t.BUSINESS_ACCOUNT="BUSINESS_ACCOUNT",t.TAGGED_ACCOUNT="TAGGED_ACCOUNT",t.RECENT_HASHTAG="RECENT_HASHTAG",t.POPULAR_HASHTAG="POPULAR_HASHTAG",t.USER_STORY="USER_STORY"}(e=t.Type||(t.Type={}))}(o=t.Source||(t.Source={})),t.getAsRows=(t,e)=>{t=t.slice(),e=e>0?e:1;let o=[];for(;t.length;)o.push(t.splice(0,e));if(o.length>0){const t=o.length-1;for(;o[t].length<e;)o[t].push({})}return o},t.isFromHashtag=t=>t.source.type===o.Type.POPULAR_HASHTAG||t.source.type===o.Type.RECENT_HASHTAG}(n||(n={}))},16:function(t,e,o){"use strict";o.d(e,"i",(function(){return s})),o.d(e,"e",(function(){return l})),o.d(e,"b",(function(){return c})),o.d(e,"c",(function(){return u})),o.d(e,"a",(function(){return d})),o.d(e,"m",(function(){return h})),o.d(e,"g",(function(){return p})),o.d(e,"k",(function(){return f})),o.d(e,"j",(function(){return g})),o.d(e,"d",(function(){return y})),o.d(e,"l",(function(){return v})),o.d(e,"f",(function(){return w})),o.d(e,"h",(function(){return b}));var n=o(0),i=o.n(n),r=o(39),a=o(29);function s(t,e){!function(t,e,o){const n=i.a.useRef(!0);t(()=>{n.current=!0;const t=e(()=>new Promise(t=>{n.current&&t()}));return()=>{n.current=!1,t&&t()}},o)}(n.useEffect,t,e)}function l(t){const[e,o]=i.a.useState(t),n=i.a.useRef(e);return[e,()=>n.current,t=>o(n.current=t)]}function c(t,e,o=[]){function i(n){!t.current||t.current.contains(n.target)||o.some(t=>t&&t.current&&t.current.contains(n.target))||e(n)}Object(n.useEffect)(()=>(document.addEventListener("mousedown",i),document.addEventListener("touchend",i),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("touchend",i)}))}function u(t,e){Object(n.useEffect)(()=>{const o=()=>{0===t.filter(t=>!t.current||document.activeElement===t.current||t.current.contains(document.activeElement)).length&&e()};return document.addEventListener("keyup",o),()=>document.removeEventListener("keyup",o)},t)}function d(t,e,o=100){const[r,a]=i.a.useState(t);return Object(n.useEffect)(()=>{let n=null;return t===e?n=setTimeout(()=>a(e),o):a(!e),()=>{null!==n&&clearTimeout(n)}},[t]),[r,a]}function h(t){const[e,o]=i.a.useState(Object(a.b)()),r=()=>{const e=Object(a.b)();o(e),t&&t(e)};return Object(n.useEffect)(()=>(r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[]),e}function p(){return new URLSearchParams(Object(r.e)().search)}function f(t,e){const o=o=>{if(e)return(o||window.event).returnValue=t,t};Object(n.useEffect)(()=>(window.addEventListener("beforeunload",o),()=>window.removeEventListener("beforeunload",o)),[e])}function g(t,e){const o=i.a.useRef(!1);return Object(n.useEffect)(()=>{o.current&&void 0!==t.current&&(t.current.scrollIntoView(Object.assign({behavior:"smooth",block:"start"},null!=e?e:{})),o.current=!1)},[o.current]),()=>o.current=!0}function m(t,e,o,i=[],r=[]){Object(n.useEffect)(()=>(i.reduce((t,e)=>t&&e,!0)&&t.addEventListener(e,o),()=>t.removeEventListener(e,o)),r)}function y(t,e,o=[],n=[]){m(document,t,e,o,n)}function v(t,e,o=[],n=[]){m(window,t,e,o,n)}function w(t){return e=>{" "!==e.key&&"Enter"!==e.key||(t(),e.preventDefault(),e.stopPropagation())}}function b(t){const[e,o]=i.a.useState(t);return[function(t){const e=i.a.useRef(t);return e.current=t,e}(e),o]}o(35)},18:function(t,e,o){"use strict";var n=o(34),i=o.n(n),r=o(12),a=o(35);const s=r.a.config.restApi.baseUrl,l={};r.a.config.restApi.authToken&&(l["X-Sli-Auth-Token"]=r.a.config.restApi.authToken);const c=i.a.create({baseURL:s,headers:l}),u={config:r.a.config.restApi,driver:c,getAccounts:()=>c.get("/accounts"),getFeeds:()=>c.get("/feeds"),getFeedMedia:(t,e=0,o=0,n)=>{const r=n?new i.a.CancelToken(n):void 0;return c.post("/media/fetch",{options:t,num:o,from:e},{cancelToken:r})},getErrorReason:t=>{let e;return e="object"==typeof t.response?t.response.data:"string"==typeof t.message?t.message:t.toString(),Object(a.b)(e)}};e.a=u},197:function(t,e,o){"use strict";o.d(e,"a",(function(){return O}));var n=o(0),i=o.n(n),r=o(32),a=o(1),s=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};class l{constructor(t){this.feed=t,this.isLoaded=!1}load(t){this.isLoaded||this.feed.load().then(()=>{this.isLoaded=!0,t&&t()}).catch(t=>{})}}s([a.n],l.prototype,"isLoaded",void 0),s([a.n],l.prototype,"feed",void 0);var c=o(6),u=o(2),d=o(16),h=o(108);const p=Object(c.b)(({store:t})=>(Object(d.m)(e=>t.feed.mode=u.a.getModeForWindowSize(e)),i.a.createElement("div",{className:"spotlight-instagram-app"},i.a.createElement(h.a,{feed:t.feed}))));var f=o(7),g=o(29);const m=t=>({factories:Object(r.c)({"front/feed":()=>{const e=u.a.getModeForWindowSize(Object(g.b)());return new f.a(t,e)},"front/store":t=>new l(t.get("front/feed")),"front/component":t=>()=>i.a.createElement(p,{store:t.get("front/store")})}),extensions:Object(r.c)({"root/children":(t,e)=>[...e,t.get("front/component")]}),run:t=>{t.get("front/store").load()}});var y=o(3),v=o(4);window.SliFrontCtx||(window.SliFrontCtx={}),window.SliAccountInfo||(window.SliAccountInfo={}),window.SpotlightInstagram||(window.SpotlightInstagram={instances:[],init(t={}){window.SpotlightInstagram.instances=[];const e=document.getElementsByClassName("spotlight-instagram-feed");for(let o=0,n=e.length||0;o<n;++o){const n=e[o];window.SpotlightInstagram.feed(n,t)}},feed(t,e={}){var o;const n=t.getAttribute("data-feed-var");if(n&&window.SliFrontCtx.hasOwnProperty(n))if(t.children.length>0)e.silent;else{const e=Object(y.w)();v.b.addAccounts(null!==(o=b[n])&&void 0!==o?o:[]);const i=w[n],a=[m(i)],s=new r.a("front/vars/"+e,t,a);window.SpotlightInstagram.instances.push(s),s.run()}}});const w=window.SliFrontCtx,b=window.SliAccountInfo,O=window.SpotlightInstagram},2:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n,i=o(1),r=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};!function(t){class e{constructor(t,e,o){this.prop=t,this.name=e,this.icon=o}}e.DESKTOP=new e("desktop","Desktop","desktop"),e.TABLET=new e("tablet","Tablet","tablet"),e.PHONE=new e("phone","Phone","smartphone"),t.Mode=e,t.MODES=[e.DESKTOP,e.TABLET,e.PHONE];class o{constructor(t,e,o){this.desktop=t,this.tablet=e,this.phone=o}get(t,e){return n(this,t,e)}set(t,e){a(this,e,t)}with(t,e){const n=s(this,e,t);return new o(n.desktop,n.tablet,n.phone)}}function n(t,e,o=!1){if(!t)return;const n=t[e.prop];return o&&null==n?t.desktop:n}function a(t,e,o){return t[o.prop]=e,t}function s(t,e,n){return a(new o(t.desktop,t.tablet,t.phone),e,n)}r([i.n],o.prototype,"desktop",void 0),r([i.n],o.prototype,"tablet",void 0),r([i.n],o.prototype,"phone",void 0),t.Value=o,t.getName=function(t){return t.name},t.getIcon=function(t){return t.icon},t.cycle=function(o){const n=t.MODES.findIndex(t=>t===o);return void 0===n?e.DESKTOP:t.MODES[(n+1)%t.MODES.length]},t.get=n,t.set=a,t.withValue=s,t.normalize=function(t,e){return null==t?e.hasOwnProperty("all")?new o(e.all,e.all,e.all):new o(e.desktop,e.tablet,e.phone):"object"==typeof t&&t.hasOwnProperty("desktop")?new o(t.desktop,t.tablet,t.phone):new o(t,t,t)},t.getModeForWindowSize=function(t){return t.width<=768?e.PHONE:t.width<=935?e.TABLET:e.DESKTOP},t.isValid=function(t){return"object"==typeof t&&t.hasOwnProperty("desktop")}}(n||(n={}))},22:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n,i=o(3);!function(t){function e(t,e){return t.hasOwnProperty(e.toString())}function o(t,e){return t[e.toString()]}function n(t,e,o){return t[e.toString()]=o,t}t.has=e,t.get=o,t.set=n,t.ensure=function(o,i,r){return e(o,i)||n(o,i,r),t.get(o,i)},t.withEntry=function(e,o,n){return t.set(Object(i.h)(e),o,n)},t.remove=function(t,e){return delete t[e.toString()],t},t.without=function(e,o){return t.remove(Object(i.h)(e),o)},t.at=function(t,e){return o(t,Object.keys(t)[e])},t.keys=function(t){return Object.keys(t)},t.values=function(t){return Object.values(t)},t.entries=function(t){return Object.getOwnPropertyNames(t).map(e=>[e,t[e]])},t.map=function(e,o){const n={};return t.forEach(e,(t,e)=>n[t]=o(e,t)),n},t.size=function(e){return t.keys(e).length},t.isEmpty=function(e){return 0===t.size(e)},t.equals=function(t,e){return Object(i.r)(t,e)},t.forEach=function(e,o){t.keys(e).forEach(t=>o(t,e[t]))},t.fromArray=function(e){const o={};return e.forEach(([e,n])=>t.set(o,e,n)),o},t.fromMap=function(e){const o={};return e.forEach((e,n)=>t.set(o,n,e)),o}}(n||(n={}))},27:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));class n{static getById(t){const e=n.list.find(e=>e.id===t);return!e&&n.list.length>0?n.list[0]:e}static getName(t){const e=n.getById(t);return e?e.name:"(Missing layout)"}static addLayout(t){n.list.push(t)}}n.list=[]},29:function(t,e,o){"use strict";function n(t,e,o={}){return window.open(t,e,function(t={}){return Object.getOwnPropertyNames(t).map(e=>`${e}=${t[e]}`).join(",")}(o))}function i(t,e){return{top:window.top.outerHeight/2+window.top.screenY-e/2,left:window.top.outerWidth/2+window.top.screenX-t/2,width:t,height:e}}function r(){const{innerWidth:t,innerHeight:e}=window;return{width:t,height:e}}o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return r}))},3:function(t,e,o){"use strict";o.d(e,"w",(function(){return u})),o.d(e,"h",(function(){return d})),o.d(e,"b",(function(){return h})),o.d(e,"x",(function(){return p})),o.d(e,"c",(function(){return f})),o.d(e,"e",(function(){return g})),o.d(e,"r",(function(){return m})),o.d(e,"q",(function(){return y})),o.d(e,"k",(function(){return v})),o.d(e,"f",(function(){return w})),o.d(e,"p",(function(){return b})),o.d(e,"s",(function(){return O})),o.d(e,"n",(function(){return S})),o.d(e,"a",(function(){return M})),o.d(e,"m",(function(){return C})),o.d(e,"o",(function(){return P})),o.d(e,"v",(function(){return T})),o.d(e,"u",(function(){return B})),o.d(e,"t",(function(){return E})),o.d(e,"i",(function(){return L})),o.d(e,"j",(function(){return x})),o.d(e,"l",(function(){return A})),o.d(e,"g",(function(){return k})),o.d(e,"d",(function(){return I}));var n=o(0),i=o.n(n),r=o(141),a=o(140),s=o(15),l=o(47);let c=0;function u(){return c++}function d(t){const e={};return Object.keys(t).forEach(o=>{const n=t[o];Array.isArray(n)?e[o]=n.slice():n instanceof Map?e[o]=new Map(n.entries()):e[o]="object"==typeof n?d(n):n}),e}function h(t,e){return Object.keys(e).forEach(o=>{t[o]=e[o]}),t}function p(t,e){return h(d(t),e)}function f(t,e){return Array.isArray(t)&&Array.isArray(e)?g(t,e):t instanceof Map&&e instanceof Map?g(Array.from(t.entries()),Array.from(e.entries())):"object"==typeof t&&"object"==typeof e?m(t,e):t===e}function g(t,e,o){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(o){if(!o(t[n],e[n]))return!1}else if(!f(t[n],e[n]))return!1;return!0}function m(t,e){if(!t||!e||"object"!=typeof t||"object"!=typeof e)return f(t,e);const o=Object.keys(t),n=Object.keys(e);if(o.length!==n.length)return!1;const i=new Set(o.concat(n));for(const o of i)if(!f(t[o],e[o]))return!1;return!0}function y(t){return 0===Object.keys(null!=t?t:{}).length}function v(t,e,o){return o=null!=o?o:(t,e)=>t===e,t.filter(t=>!e.some(e=>o(t,e)))}function w(t,e,o){return o=null!=o?o:(t,e)=>t===e,t.every(t=>e.some(e=>o(t,e)))&&e.every(e=>t.some(t=>o(e,t)))}function b(t,e){return 0===t.tag.localeCompare(e.tag)&&t.sort===e.sort}function O(t,e,o=0,r=!1){let a=t.trim();r&&(a=a.replace(/((?:^[.*•]+(\r\n|\r|\n))+)/gm,"\n"));const s=a.split("\n"),l=s.map((t,o)=>{if(t=t.trim(),r&&/^[.*•]$/.test(t))return null;let a,l=[];for(;null!==(a=/#([^\s]+)/g.exec(t));){const e="https://instagram.com/explore/tags/"+a[1],o=i.a.createElement("a",{href:e,target:"_blank",key:u()},a[0]),n=t.substr(0,a.index),r=t.substr(a.index+a[0].length);l.push(n),l.push(o),t=r}return t.length&&l.push(t),e&&(l=e(l,o)),s.length>1&&l.push(i.a.createElement("br",{key:u()})),i.a.createElement(n.Fragment,{key:u()},l)});return o>0?l.slice(0,o):l}function S(t){const e=t.match(/instagram\.com\/p\/([^\/]+)\//);return e&&e.length>0?e[1]:null}var M;function C(t,e=M.MEDIUM){return`https://www.instagram.com/p/${t}/media/?size=${e}`}function P(t,e=M.MEDIUM){return t.thumbnail?t.thumbnail:C(S(t.permalink),e)}function T(t,e){const o=/(\s+)/g;let n,i=0,r=0,a="";for(;null!==(n=o.exec(t))&&i<e;){const e=n.index+n[1].length;a+=t.substr(r,e-r),r=e,i++}return r<t.length&&(a+=" ..."),a}function B(t){return Object(r.a)(Object(a.a)(t),{addSuffix:!0})}function E(t,e){const o=[];return t.forEach((t,n)=>{const i=n%e;Array.isArray(o[i])?o[i].push(t):o[i]=[t]}),o}function L(t,e){return function t(e){if(e.type===s.a.Type.VIDEO){const t=document.createElement("video");return t.autoplay=!1,t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.visibility="hidden",document.body.appendChild(t),new Promise(o=>{t.src=e.url,t.addEventListener("loadeddata",()=>{o({width:t.videoWidth,height:t.videoHeight}),document.body.removeChild(t)})})}if(e.type===s.a.Type.IMAGE){const t=new Image;return t.src=e.url,new Promise(e=>{t.onload=()=>{e({width:t.naturalWidth,height:t.naturalHeight})}})}return e.type===s.a.Type.ALBUM?t(e.children[0]):Promise.reject("Unknown media type")}(t).then(t=>function(t,e){const o=t.width>t.height?e.width/t.width:e.height/t.height;return{width:t.width*o,height:t.height*o}}(t,e))}function x(t,e){const o=e.map(l.b).join("|");return new RegExp(`(?:^|\\B)#(${o})(?:\\b|\\r|$)`,"imu").test(t)}function A(t,e){for(const o of e){const e=o();if(t(e))return e}}function k(t,e){return Math.max(0,Math.min(e.length-1,t))}function I(t,e,o){const n=t.slice();return n[e]=o,n}!function(t){t.SMALL="t",t.MEDIUM="m",t.LARGE="l"}(M||(M={}))},32:function(t,e,o){"use strict";o.d(e,"a",(function(){return c})),o.d(e,"b",(function(){return u})),o.d(e,"c",(function(){return h}));var n=o(0),i=o.n(n),r=o(33),a=o.n(r),s=o(6);class l{constructor(t=new Map,e=[]){this.factories=t,this.extensions=new Map,this.cache=new Map,e.forEach(t=>this.addModule(t))}addModule(t){t.factories&&(this.factories=new Map([...this.factories,...t.factories])),t.extensions&&t.extensions.forEach((t,e)=>{this.extensions.has(e)?this.extensions.get(e).push(t):this.extensions.set(e,[t])})}get(t){let e=this.factories.get(t);if(void 0===e)throw new Error('Service "'+t+'" does not exist');let o=this.cache.get(t);if(void 0===o){o=e(this);let n=this.extensions.get(t);n&&n.forEach(t=>o=t(this,o)),this.cache.set(t,o)}return o}has(t){return this.factories.has(t)}}class c{constructor(t,e,o){this.key=t,this.mount=e,this.modules=o,this.container=null}addModules(t){this.modules=this.modules.concat(t)}run(){if(null!==this.container)return;let t=!1;const e=()=>{t||"interactive"!==document.readyState&&"complete"!==document.readyState||(this.actualRun(),t=!0)};e(),t||document.addEventListener("readystatechange",e)}actualRun(){!function(t){const e=`app/${t.key}/run`;document.dispatchEvent(new d(e,t))}(this);const t=h({root:()=>null,"root/children":()=>[]});this.container=new l(t,this.modules);const e=this.container.get("root/children").map((t,e)=>i.a.createElement(t,{key:e})),o=i.a.createElement(s.a,{c:this.container},e);this.modules.forEach(t=>t.run&&t.run(this.container)),a.a.render(o,this.mount)}}function u(t,e){document.addEventListener(`app/${t}/run`,t=>{e(t.detail.app)})}class d extends CustomEvent{constructor(t,e){super(t,{detail:{app:e}})}}function h(t){return new Map(Object.entries(t))}},33:function(t,o){t.exports=e},35:function(t,e,o){"use strict";function n(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function i(t){const e=document.createElement("DIV");return e.innerHTML=t,e.textContent||e.innerText||""}o.d(e,"a",(function(){return n})),o.d(e,"b",(function(){return i}))},38:function(t,e,o){"use strict";function n(t){return e=>(e.stopPropagation(),t(e))}function i(t,e){let o;return(...n)=>{clearTimeout(o),o=setTimeout(()=>{o=null,t(...n)},e)}}function r(){}o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return r}))},4:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n,i=o(18),r=o(1);!function(t){let e;!function(t){t.PERSONAL="PERSONAL",t.BUSINESS="BUSINESS"}(e=t.Type||(t.Type={}))}(n||(n={}));const a=Object(r.n)([]),s="https://secure.gravatar.com/avatar/4a94d759753ade2961582f7345c1d7b2?s=64&d=mm&r=g",l=t=>a.find(e=>e.id===t),c=t=>"https://instagram.com/"+t;function u(t){return t.slice().sort((t,e)=>t.type===e.type?0:t.type===n.Type.PERSONAL?-1:1),a.splice(0,a.length),t.forEach(t=>a.push(Object(r.n)(t))),a}function d(t){if("object"==typeof t&&Array.isArray(t.data))return u(t.data);throw"Spotlight encountered a problem trying to load your accounts. Kindly contact customer support for assistance."}e.b={list:a,DEFAULT_PROFILE_PIC:s,getById:l,getByUsername:t=>a.find(e=>e.username===t),hasAccounts:()=>a.length>0,filterExisting:t=>t.filter(t=>void 0!==l(t)),idsToAccounts:t=>t.map(t=>l(t)).filter(t=>void 0!==t),getBusinessAccounts:()=>a.filter(t=>t.type===n.Type.BUSINESS),getProfilePicUrl:t=>t.customProfilePicUrl?t.customProfilePicUrl:t.profilePicUrl?t.profilePicUrl:s,getBioText:t=>t.customBio.length?t.customBio:t.bio,getProfileUrl:t=>c(t.username),getUsernameUrl:c,loadAccounts:function(){return i.a.getAccounts().then(d).catch(t=>{throw i.a.getErrorReason(t)})},loadFromResponse:d,addAccounts:u}},47:function(t,e,o){"use strict";o.d(e,"a",(function(){return n})),o.d(e,"b",(function(){return i}));const n=(t,e)=>t.startsWith(e)?t:e+t,i=t=>{return(e=t,"#",e.startsWith("#")?e.substr("#".length):e).split(/\s/).map((t,e)=>e>0?t[0].toUpperCase()+t.substr(1):t).join("").replace(/\W/gi,"");var e}},601:function(t,e,o){"use strict";o.r(e),o(255),o(602),o(197).a.init()},602:function(t,e,o){},7:function(t,e,o){"use strict";o.d(e,"a",(function(){return v}));var n=o(34),i=o.n(n),r=o(1),a=o(2),s=o(27),l=o(32),c=o(4),u=o(3),d=o(13),h=o(18),p=o(38),f=o(8),g=o(22),m=o(12),y=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};class v{constructor(t=new v.Options,e=a.a.Mode.DESKTOP){this.media=[],this.canLoadMore=!1,this.stories=[],this.numLoadedMore=0,this.totalMedia=0,this.mode=a.a.Mode.DESKTOP,this.isLoaded=!1,this.isLoading=!1,this.isLoadingMore=!1,this.numMediaToShow=0,this.numMediaPerPage=0,this.cancelFetch=()=>{},this.options=new v.Options(t),this.localMedia=[],this.mode=e,this.mediaCounter=this._numMediaPerPage,this.reload=Object(p.a)(()=>this.load(),300),Object(r.o)(()=>this.mode,()=>{0===this.numLoadedMore&&(this.mediaCounter=this._numMediaPerPage,this.localMedia.length<this.numMediaToShow&&this.loadMedia(this.localMedia.length,this.numMediaToShow-this.localMedia.length))}),Object(r.o)(()=>this.getReloadOptions(),()=>this.reload()),Object(r.o)(()=>({num:this._numMediaPerPage,mode:this.mode}),({num:t})=>{this.localMedia.length<t&&t<=this.totalMedia?this.reload():this.mediaCounter=Math.max(1,t)}),Object(r.o)(()=>this._media,t=>this.media=t),Object(r.o)(()=>this._numMediaToShow,t=>this.numMediaToShow=t),Object(r.o)(()=>this._numMediaPerPage,t=>this.numMediaPerPage=t),Object(r.o)(()=>this._canLoadMore,t=>this.canLoadMore=t)}get _media(){return this.localMedia.slice(0,this.numMediaToShow)}get _numMediaToShow(){return Math.min(this.mediaCounter,this.totalMedia)}get _numMediaPerPage(){return Math.max(1,v.ComputedOptions.normalizeMultiInt(this.options.numPosts,this.mode,1))}get _canLoadMore(){return this.localMedia.length>this.mediaCounter||this.localMedia.length<this.totalMedia}loadMore(){const t=this.numMediaToShow+this._numMediaPerPage-this.localMedia.length;return this.isLoadingMore=!0,t>0?this.loadMedia(this.localMedia.length,this._numMediaPerPage).then(()=>{this.mediaCounter+=this._numMediaPerPage,this.numLoadedMore++,this.isLoadingMore=!1}):new Promise(t=>{this.numLoadedMore++,this.mediaCounter+=this._numMediaPerPage,this.isLoadingMore=!1,t()})}load(){return this.numLoadedMore=0,this.loadMedia(0,this._numMediaPerPage,!0).then(()=>(this.isLoaded=!0,this.mediaCounter=this._numMediaPerPage))}loadMedia(t,e,o){return this.cancelFetch(),v.Options.hasSources(this.options)?(this.isLoading=!0,new Promise((n,r)=>{h.a.getFeedMedia(this.options,t,e,t=>this.cancelFetch=t).then(t=>{var e;if("object"!=typeof t||"object"!=typeof t.data||!Array.isArray(t.data.media))throw{message:"The media response is malformed or corrupt",response:t};o&&(this.localMedia=[]),this.localMedia.push(...t.data.media),this.stories=null!==(e=t.data.stories)&&void 0!==e?e:[],this.totalMedia=t.data.total,n&&n()}).catch(t=>{var e;if(i.a.isCancel(t))return null;const o=new v.Events.FetchFailEvent(v.Events.FETCH_FAIL,{detail:{feed:this,message:null!==(e=t.response?t.response.data.message:void 0)&&void 0!==e?e:t.message,response:t.response}});return document.dispatchEvent(o),r&&r(t),t}).finally(()=>this.isLoading=!1)})):new Promise(t=>{this.localMedia=[],this.totalMedia=0,t&&t()})}getReloadOptions(){return JSON.stringify({accounts:this.options.accounts,hashtags:this.options.hashtags,tagged:this.options.tagged,postOrder:this.options.postOrder,mediaType:this.options.mediaType,moderation:this.options.moderation,moderationMode:this.options.moderationMode,hashtagBlacklist:this.options.hashtagBlacklist,hashtagWhitelist:this.options.hashtagWhitelist,captionBlacklist:this.options.captionBlacklist,captionWhitelist:this.options.captionWhitelist,hashtagBlacklistSettings:this.options.hashtagBlacklistSettings,hashtagWhitelistSettings:this.options.hashtagWhitelistSettings,captionBlacklistSettings:this.options.captionBlacklistSettings,captionWhitelistSettings:this.options.captionWhitelistSettings})}}y([r.n],v.prototype,"media",void 0),y([r.n],v.prototype,"canLoadMore",void 0),y([r.n],v.prototype,"stories",void 0),y([r.n],v.prototype,"numLoadedMore",void 0),y([r.n],v.prototype,"options",void 0),y([r.n],v.prototype,"totalMedia",void 0),y([r.n],v.prototype,"mode",void 0),y([r.n],v.prototype,"isLoaded",void 0),y([r.n],v.prototype,"isLoading",void 0),y([r.n],v.prototype,"isLoadingMore",void 0),y([r.f],v.prototype,"reload",void 0),y([r.n],v.prototype,"localMedia",void 0),y([r.n],v.prototype,"numMediaToShow",void 0),y([r.n],v.prototype,"numMediaPerPage",void 0),y([r.n],v.prototype,"mediaCounter",void 0),y([r.h],v.prototype,"_media",null),y([r.h],v.prototype,"_numMediaToShow",null),y([r.h],v.prototype,"_numMediaPerPage",null),y([r.h],v.prototype,"_canLoadMore",null),y([r.f],v.prototype,"loadMore",null),y([r.f],v.prototype,"load",null),y([r.f],v.prototype,"loadMedia",null),function(t){let e,o,n,i,h,p,v,w,b;!function(t){t.FETCH_FAIL="sli/feed/fetch_fail";class e extends CustomEvent{constructor(t,e){super(t,e)}}t.FetchFailEvent=e}(e=t.Events||(t.Events={}));class O{constructor(t={}){O.setFromObject(this,t)}static setFromObject(e,o={}){var n,i,r,l,u,d,h,p,f,m,y,v,w,b,O;return e.accounts=o.accounts?o.accounts.slice():t.DefaultOptions.accounts,e.hashtags=o.hashtags?o.hashtags.slice():t.DefaultOptions.hashtags,e.tagged=o.tagged?o.tagged.slice():t.DefaultOptions.tagged,e.layout=s.a.getById(o.layout).id,e.numColumns=a.a.normalize(o.numColumns,t.DefaultOptions.numColumns),e.highlightFreq=a.a.normalize(o.highlightFreq,t.DefaultOptions.highlightFreq),e.mediaType=o.mediaType||t.DefaultOptions.mediaType,e.postOrder=o.postOrder||t.DefaultOptions.postOrder,e.numPosts=a.a.normalize(o.numPosts,t.DefaultOptions.numPosts),e.linkBehavior=a.a.normalize(o.linkBehavior,t.DefaultOptions.linkBehavior),e.feedWidth=a.a.normalize(o.feedWidth,t.DefaultOptions.feedWidth),e.feedHeight=a.a.normalize(o.feedHeight,t.DefaultOptions.feedHeight),e.feedPadding=a.a.normalize(o.feedPadding,t.DefaultOptions.feedPadding),e.imgPadding=a.a.normalize(o.imgPadding,t.DefaultOptions.imgPadding),e.textSize=a.a.normalize(o.textSize,t.DefaultOptions.textSize),e.bgColor=o.bgColor||t.DefaultOptions.bgColor,e.hoverInfo=o.hoverInfo?o.hoverInfo.slice():t.DefaultOptions.hoverInfo,e.textColorHover=o.textColorHover||t.DefaultOptions.textColorHover,e.bgColorHover=o.bgColorHover||t.DefaultOptions.bgColorHover,e.showHeader=a.a.normalize(o.showHeader,t.DefaultOptions.showHeader),e.headerInfo=a.a.normalize(o.headerInfo,t.DefaultOptions.headerInfo),e.headerAccount=null!==(n=o.headerAccount)&&void 0!==n?n:t.DefaultOptions.headerAccount,e.headerAccount=null===e.headerAccount||void 0===c.b.getById(e.headerAccount)?c.b.list.length>0?c.b.list[0].id:null:e.headerAccount,e.headerStyle=a.a.normalize(o.headerStyle,t.DefaultOptions.headerStyle),e.headerTextSize=a.a.normalize(o.headerTextSize,t.DefaultOptions.headerTextSize),e.headerPhotoSize=a.a.normalize(o.headerPhotoSize,t.DefaultOptions.headerPhotoSize),e.headerTextColor=o.headerTextColor||t.DefaultOptions.headerTextColor,e.headerBgColor=o.headerBgColor||t.DefaultOptions.bgColor,e.headerPadding=a.a.normalize(o.headerPadding,t.DefaultOptions.headerPadding),e.customProfilePic=null!==(i=o.customProfilePic)&&void 0!==i?i:t.DefaultOptions.customProfilePic,e.customBioText=o.customBioText||t.DefaultOptions.customBioText,e.includeStories=null!==(r=o.includeStories)&&void 0!==r?r:t.DefaultOptions.includeStories,e.storiesInterval=o.storiesInterval||t.DefaultOptions.storiesInterval,e.showCaptions=a.a.normalize(o.showCaptions,t.DefaultOptions.showCaptions),e.captionMaxLength=a.a.normalize(o.captionMaxLength,t.DefaultOptions.captionMaxLength),e.captionRemoveDots=null!==(l=o.captionRemoveDots)&&void 0!==l?l:t.DefaultOptions.captionRemoveDots,e.captionSize=a.a.normalize(o.captionSize,t.DefaultOptions.captionSize),e.captionColor=o.captionColor||t.DefaultOptions.captionColor,e.showLikes=a.a.normalize(o.showLikes,t.DefaultOptions.showLikes),e.showComments=a.a.normalize(o.showComments,t.DefaultOptions.showCaptions),e.lcIconSize=a.a.normalize(o.lcIconSize,t.DefaultOptions.lcIconSize),e.likesIconColor=null!==(u=o.likesIconColor)&&void 0!==u?u:t.DefaultOptions.likesIconColor,e.commentsIconColor=o.commentsIconColor||t.DefaultOptions.commentsIconColor,e.lightboxShowSidebar=null!==(d=o.lightboxShowSidebar)&&void 0!==d?d:t.DefaultOptions.lightboxShowSidebar,e.numLightboxComments=o.numLightboxComments||t.DefaultOptions.numLightboxComments,e.showLoadMoreBtn=a.a.normalize(o.showLoadMoreBtn,t.DefaultOptions.showLoadMoreBtn),e.loadMoreBtnTextColor=o.loadMoreBtnTextColor||t.DefaultOptions.loadMoreBtnTextColor,e.loadMoreBtnBgColor=o.loadMoreBtnBgColor||t.DefaultOptions.loadMoreBtnBgColor,e.loadMoreBtnText=o.loadMoreBtnText||t.DefaultOptions.loadMoreBtnText,e.autoload=null!==(h=o.autoload)&&void 0!==h?h:t.DefaultOptions.autoload,e.showFollowBtn=a.a.normalize(o.showFollowBtn,t.DefaultOptions.showFollowBtn),e.followBtnText=null!==(p=o.followBtnText)&&void 0!==p?p:t.DefaultOptions.followBtnText,e.followBtnTextColor=o.followBtnTextColor||t.DefaultOptions.followBtnTextColor,e.followBtnBgColor=o.followBtnBgColor||t.DefaultOptions.followBtnBgColor,e.followBtnLocation=a.a.normalize(o.followBtnLocation,t.DefaultOptions.followBtnLocation),e.hashtagWhitelist=o.hashtagWhitelist||t.DefaultOptions.hashtagWhitelist,e.hashtagBlacklist=o.hashtagBlacklist||t.DefaultOptions.hashtagBlacklist,e.captionWhitelist=o.captionWhitelist||t.DefaultOptions.captionWhitelist,e.captionBlacklist=o.captionBlacklist||t.DefaultOptions.captionBlacklist,e.hashtagWhitelistSettings=null!==(f=o.hashtagWhitelistSettings)&&void 0!==f?f:t.DefaultOptions.hashtagWhitelistSettings,e.hashtagBlacklistSettings=null!==(m=o.hashtagBlacklistSettings)&&void 0!==m?m:t.DefaultOptions.hashtagBlacklistSettings,e.captionWhitelistSettings=null!==(y=o.captionWhitelistSettings)&&void 0!==y?y:t.DefaultOptions.captionWhitelistSettings,e.captionBlacklistSettings=null!==(v=o.captionBlacklistSettings)&&void 0!==v?v:t.DefaultOptions.captionBlacklistSettings,e.moderation=o.moderation||t.DefaultOptions.moderation,e.moderationMode=o.moderationMode||t.DefaultOptions.moderationMode,e.promotionEnabled=null!==(w=o.promotionEnabled)&&void 0!==w?w:t.DefaultOptions.promotionEnabled,e.autoPromotionsEnabled=null!==(b=o.autoPromotionsEnabled)&&void 0!==b?b:t.DefaultOptions.autoPromotionsEnabled,e.globalPromotionsEnabled=null!==(O=o.globalPromotionsEnabled)&&void 0!==O?O:t.DefaultOptions.globalPromotionsEnabled,Array.isArray(o.promotions)?e.promotions=g.a.fromArray(o.promotions):o.promotions&&o.promotions instanceof Map?e.promotions=g.a.fromMap(o.promotions):"object"==typeof o.promotions?e.promotions=o.promotions:e.promotions=t.DefaultOptions.promotions,e}static getAllAccounts(t){const e=c.b.idsToAccounts(t.accounts),o=c.b.idsToAccounts(t.tagged);return{all:e.concat(o),accounts:e,tagged:o}}static getSources(t){return{accounts:c.b.idsToAccounts(t.accounts),tagged:c.b.idsToAccounts(t.tagged),hashtags:c.b.getBusinessAccounts().length>0?t.hashtags.filter(t=>t.tag.length>0):[]}}static hasSources(e){const o=t.Options.getSources(e),n=o.accounts.length>0||o.tagged.length>0,i=o.hashtags.length>0;return n||i}static isLimitingPosts(t){return t.moderation.length>0||t.hashtagBlacklist.length>0||t.hashtagWhitelist.length>0||t.captionBlacklist.length>0||t.captionWhitelist.length>0}}y([r.n],O.prototype,"accounts",void 0),y([r.n],O.prototype,"hashtags",void 0),y([r.n],O.prototype,"tagged",void 0),y([r.n],O.prototype,"layout",void 0),y([r.n],O.prototype,"numColumns",void 0),y([r.n],O.prototype,"highlightFreq",void 0),y([r.n],O.prototype,"mediaType",void 0),y([r.n],O.prototype,"postOrder",void 0),y([r.n],O.prototype,"numPosts",void 0),y([r.n],O.prototype,"linkBehavior",void 0),y([r.n],O.prototype,"feedWidth",void 0),y([r.n],O.prototype,"feedHeight",void 0),y([r.n],O.prototype,"feedPadding",void 0),y([r.n],O.prototype,"imgPadding",void 0),y([r.n],O.prototype,"textSize",void 0),y([r.n],O.prototype,"bgColor",void 0),y([r.n],O.prototype,"textColorHover",void 0),y([r.n],O.prototype,"bgColorHover",void 0),y([r.n],O.prototype,"hoverInfo",void 0),y([r.n],O.prototype,"showHeader",void 0),y([r.n],O.prototype,"headerInfo",void 0),y([r.n],O.prototype,"headerAccount",void 0),y([r.n],O.prototype,"headerStyle",void 0),y([r.n],O.prototype,"headerTextSize",void 0),y([r.n],O.prototype,"headerPhotoSize",void 0),y([r.n],O.prototype,"headerTextColor",void 0),y([r.n],O.prototype,"headerBgColor",void 0),y([r.n],O.prototype,"headerPadding",void 0),y([r.n],O.prototype,"customBioText",void 0),y([r.n],O.prototype,"customProfilePic",void 0),y([r.n],O.prototype,"includeStories",void 0),y([r.n],O.prototype,"storiesInterval",void 0),y([r.n],O.prototype,"showCaptions",void 0),y([r.n],O.prototype,"captionMaxLength",void 0),y([r.n],O.prototype,"captionRemoveDots",void 0),y([r.n],O.prototype,"captionSize",void 0),y([r.n],O.prototype,"captionColor",void 0),y([r.n],O.prototype,"showLikes",void 0),y([r.n],O.prototype,"showComments",void 0),y([r.n],O.prototype,"lcIconSize",void 0),y([r.n],O.prototype,"likesIconColor",void 0),y([r.n],O.prototype,"commentsIconColor",void 0),y([r.n],O.prototype,"lightboxShowSidebar",void 0),y([r.n],O.prototype,"numLightboxComments",void 0),y([r.n],O.prototype,"showLoadMoreBtn",void 0),y([r.n],O.prototype,"loadMoreBtnText",void 0),y([r.n],O.prototype,"loadMoreBtnTextColor",void 0),y([r.n],O.prototype,"loadMoreBtnBgColor",void 0),y([r.n],O.prototype,"autoload",void 0),y([r.n],O.prototype,"showFollowBtn",void 0),y([r.n],O.prototype,"followBtnText",void 0),y([r.n],O.prototype,"followBtnTextColor",void 0),y([r.n],O.prototype,"followBtnBgColor",void 0),y([r.n],O.prototype,"followBtnLocation",void 0),y([r.n],O.prototype,"hashtagWhitelist",void 0),y([r.n],O.prototype,"hashtagBlacklist",void 0),y([r.n],O.prototype,"captionWhitelist",void 0),y([r.n],O.prototype,"captionBlacklist",void 0),y([r.n],O.prototype,"hashtagWhitelistSettings",void 0),y([r.n],O.prototype,"hashtagBlacklistSettings",void 0),y([r.n],O.prototype,"captionWhitelistSettings",void 0),y([r.n],O.prototype,"captionBlacklistSettings",void 0),y([r.n],O.prototype,"moderation",void 0),y([r.n],O.prototype,"moderationMode",void 0),t.Options=O;class S{constructor(t){Object.getOwnPropertyNames(t).map(e=>{this[e]=t[e]})}getCaption(t){const e=t.caption?t.caption:"";return this.captionMaxLength&&e.length?Object(u.s)(Object(u.v)(e,this.captionMaxLength)):e}static compute(e,o=a.a.Mode.DESKTOP){const n=new S({accounts:c.b.filterExisting(e.accounts),tagged:c.b.filterExisting(e.tagged),hashtags:e.hashtags.filter(t=>t.tag.length>0),layout:s.a.getById(e.layout),highlightFreq:a.a.get(e.highlightFreq,o,!0),linkBehavior:a.a.get(e.linkBehavior,o,!0),bgColor:Object(d.a)(e.bgColor),textColorHover:Object(d.a)(e.textColorHover),bgColorHover:Object(d.a)(e.bgColorHover),hoverInfo:e.hoverInfo,showHeader:a.a.get(e.showHeader,o,!0),headerInfo:a.a.get(e.headerInfo,o,!0),headerStyle:a.a.get(e.headerStyle,o,!0),headerTextColor:Object(d.a)(e.headerTextColor),headerBgColor:Object(d.a)(e.headerBgColor),headerPadding:a.a.get(e.headerPadding,o,!0),includeStories:e.includeStories,storiesInterval:e.storiesInterval,showCaptions:a.a.get(e.showCaptions,o,!0),captionMaxLength:a.a.get(e.captionMaxLength,o,!0),captionRemoveDots:e.captionRemoveDots,captionColor:Object(d.a)(e.captionColor),showLikes:a.a.get(e.showLikes,o,!0),showComments:a.a.get(e.showComments,o,!0),likesIconColor:Object(d.a)(e.likesIconColor),commentsIconColor:Object(d.a)(e.commentsIconColor),lightboxShowSidebar:e.lightboxShowSidebar,numLightboxComments:e.numLightboxComments,showLoadMoreBtn:a.a.get(e.showLoadMoreBtn,o,!0),loadMoreBtnTextColor:Object(d.a)(e.loadMoreBtnTextColor),loadMoreBtnBgColor:Object(d.a)(e.loadMoreBtnBgColor),loadMoreBtnText:e.loadMoreBtnText,showFollowBtn:a.a.get(e.showFollowBtn,o,!0),autoload:e.autoload,followBtnLocation:a.a.get(e.followBtnLocation,o,!0),followBtnTextColor:Object(d.a)(e.followBtnTextColor),followBtnBgColor:Object(d.a)(e.followBtnBgColor),followBtnText:e.followBtnText,account:null,showBio:!1,bioText:null,profilePhotoUrl:c.b.DEFAULT_PROFILE_PIC,feedWidth:"",feedHeight:"",feedPadding:"",imgPadding:"",textSize:"",headerTextSize:"",headerPhotoSize:"",captionSize:"",lcIconSize:"",showLcIcons:!1});if(n.numColumns=this.getNumCols(e,o),n.numPosts=this.getNumPosts(e,o),n.allAccounts=n.accounts.concat(n.tagged.filter(t=>!n.accounts.includes(t))),n.allAccounts.length>0&&(n.account=e.headerAccount&&n.allAccounts.includes(e.headerAccount)?c.b.getById(e.headerAccount):c.b.getById(n.allAccounts[0])),n.showHeader=n.showHeader&&null!==n.account,n.showHeader&&(n.profilePhotoUrl=e.customProfilePic.length?e.customProfilePic:c.b.getProfilePicUrl(n.account)),n.showFollowBtn=n.showFollowBtn&&null!==n.account,n.showBio=n.headerInfo.some(e=>e===t.HeaderInfo.BIO),n.showBio){const t=e.customBioText.trim().length>0?e.customBioText:null!==n.account?c.b.getBioText(n.account):"";n.bioText=Object(u.s)(t),n.showBio=n.bioText.length>0}return n.feedWidth=this.normalizeCssSize(e.feedWidth,o,"auto"),n.feedHeight=this.normalizeCssSize(e.feedHeight,o,"auto"),n.feedPadding=this.normalizeCssSize(e.feedPadding,o,"0"),n.imgPadding=this.normalizeCssSize(e.imgPadding,o,"0"),n.textSize=this.normalizeCssSize(e.textSize,o,"inherit",!0),n.headerTextSize=this.normalizeCssSize(e.headerTextSize,o,"inherit"),n.headerPhotoSize=this.normalizeCssSize(e.headerPhotoSize,o,"50px"),n.captionSize=this.normalizeCssSize(e.captionSize,o,"inherit"),n.lcIconSize=this.normalizeCssSize(e.lcIconSize,o,"inherit"),n.buttonPadding=Math.max(10,a.a.get(e.imgPadding,o))+"px",n.showLcIcons=n.showLikes||n.showComments,n}static getNumCols(t,e){return Math.max(1,this.normalizeMultiInt(t.numColumns,e,1))}static getNumPosts(t,e){return Math.max(1,this.normalizeMultiInt(t.numPosts,e,1))}static normalizeMultiInt(t,e,o=0){const n=parseInt(a.a.get(t,e)+"");return isNaN(n)?e===a.a.Mode.DESKTOP?o:this.normalizeMultiInt(t,a.a.Mode.DESKTOP,o):n}static normalizeCssSize(t,e,o=null,n=!1){const i=a.a.get(t,e,n);return i?i+"px":o}}function M(t,e){if(m.a.isPro)return Object(u.l)(f.a.isValid,[()=>C(t,e),()=>e.globalPromotionsEnabled&&f.a.getGlobalPromo(t),()=>e.autoPromotionsEnabled&&f.a.getAutoPromo(t)])}function C(t,e){return t?f.a.getPromoFromDictionary(t,e.promotions):void 0}t.ComputedOptions=S,t.HashtagSorting=Object(l.c)({recent:"Most recent",popular:"Most popular"}),function(t){t.ALL="all",t.PHOTOS="photos",t.VIDEOS="videos"}(o=t.MediaType||(t.MediaType={})),function(t){t.NOTHING="nothing",t.SELF="self",t.NEW_TAB="new_tab",t.LIGHTBOX="lightbox"}(n=t.LinkBehavior||(t.LinkBehavior={})),function(t){t.DATE_ASC="date_asc",t.DATE_DESC="date_desc",t.POPULARITY_ASC="popularity_asc",t.POPULARITY_DESC="popularity_desc",t.RANDOM="random"}(i=t.PostOrder||(t.PostOrder={})),function(t){t.USERNAME="username",t.DATE="date",t.CAPTION="caption",t.LIKES_COMMENTS="likes_comments",t.INSTA_LINK="insta_link"}(h=t.HoverInfo||(t.HoverInfo={})),function(t){t.NORMAL="normal",t.BOXED="boxed",t.CENTERED="centered"}(p=t.HeaderStyle||(t.HeaderStyle={})),function(t){t.BIO="bio",t.PROFILE_PIC="profile_pic",t.FOLLOWERS="followers",t.MEDIA_COUNT="media_count"}(v=t.HeaderInfo||(t.HeaderInfo={})),function(t){t.HEADER="header",t.BOTTOM="bottom",t.BOTH="both"}(w=t.FollowBtnLocation||(t.FollowBtnLocation={})),function(t){t.WHITELIST="whitelist",t.BLACKLIST="blacklist"}(b=t.ModerationMode||(t.ModerationMode={})),t.DefaultOptions={accounts:[],hashtags:[],tagged:[],layout:null,numColumns:{desktop:3},highlightFreq:{desktop:7},mediaType:o.ALL,postOrder:i.DATE_DESC,numPosts:{desktop:9},linkBehavior:{desktop:n.LIGHTBOX,phone:n.NEW_TAB},feedWidth:{desktop:""},feedHeight:{desktop:""},feedPadding:{desktop:20,tablet:14,phone:10},imgPadding:{desktop:14,tablet:10,phone:6},textSize:{all:""},bgColor:{r:255,g:255,b:255,a:1},hoverInfo:[h.LIKES_COMMENTS,h.INSTA_LINK],textColorHover:{r:255,g:255,b:255,a:1},bgColorHover:{r:0,g:0,b:0,a:.5},showHeader:{desktop:!0},headerInfo:{desktop:[v.PROFILE_PIC,v.BIO]},headerAccount:null,headerStyle:{desktop:p.NORMAL,phone:p.CENTERED},headerTextSize:{desktop:""},headerPhotoSize:{desktop:50},headerTextColor:{r:0,g:0,b:0,a:1},headerBgColor:{r:255,g:255,b:255,a:1},headerPadding:{desktop:0},customProfilePic:0,customBioText:"",includeStories:!1,storiesInterval:5,showCaptions:{desktop:!1},captionMaxLength:{desktop:0},captionRemoveDots:!1,captionSize:{desktop:0},captionColor:{r:0,g:0,b:0,a:1},showLikes:{desktop:!1},showComments:{desktop:!1},lcIconSize:{desktop:14},likesIconColor:{r:0,g:0,b:0,a:1},commentsIconColor:{r:0,g:0,b:0,a:1},lightboxShowSidebar:!1,numLightboxComments:50,showLoadMoreBtn:{desktop:!0},loadMoreBtnTextColor:{r:255,g:255,b:255,a:1},loadMoreBtnBgColor:{r:0,g:149,b:246,a:1},loadMoreBtnText:"Load more",autoload:!1,showFollowBtn:{desktop:!0},followBtnText:"Follow on Instagram",followBtnTextColor:{r:255,g:255,b:255,a:1},followBtnBgColor:{r:0,g:149,b:246,a:1},followBtnLocation:{desktop:w.HEADER,phone:w.BOTTOM},hashtagWhitelist:[],hashtagBlacklist:[],captionWhitelist:[],captionBlacklist:[],hashtagWhitelistSettings:!0,hashtagBlacklistSettings:!0,captionWhitelistSettings:!0,captionBlacklistSettings:!0,moderation:[],moderationMode:b.BLACKLIST,promotionEnabled:!0,autoPromotionsEnabled:!0,globalPromotionsEnabled:!0,promotions:{}},t.getPromo=M,t.getFeedPromo=C,t.executeMediaClick=function(t,e){const o=M(t,e),n=f.a.getConfig(o),i=f.a.getType(o);return!(!i||!i.isValid(n)||"function"!=typeof i.onMediaClick)&&i.onMediaClick(t,n)},t.getLink=function(t,e){var o,n;const i=M(t,e),r=f.a.getConfig(i),a=f.a.getType(i);if(void 0===a||!a.isValid(r))return{text:null,url:null,newTab:!1};let[s,l]=a.getPopupLink?null!==(o=a.getPopupLink(t,r))&&void 0!==o?o:null:[null,!1];return{text:s,url:a.getMediaUrl&&null!==(n=a.getMediaUrl(t,r))&&void 0!==n?n:null,newTab:l}}}(v||(v={}))},8:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n,i=o(12),r=o(22),a=o(3);!function(t){function e(t){return t?c(t.type):void 0}function o(t){var o;if("object"!=typeof t)return!1;const n=e(t);return void 0!==n&&n.isValid(null!==(o=t.config)&&void 0!==o?o:{})}function n(e){return e?t.getPromoFromDictionary(e,i.a.config.globalPromotions):void 0}function s(t){const e=l(t);return void 0===e?void 0:e.promotion}function l(e){if(e)for(const o of i.a.config.autoPromotions){const n=t.Automation.getType(o),i=t.Automation.getConfig(o);if(n&&n.matches(e,i))return o}}function c(e){return t.types.find(t=>t.id===e)}let u;t.getConfig=function(t){var e,o;return t&&null!==(o=null!==(e=t.config)&&void 0!==e?e:t.data)&&void 0!==o?o:{}},t.getType=e,t.isValid=o,t.getPromoFromDictionary=function(e,o){const n=r.a.get(o,e.id);if(n)return t.getType(n)?n:void 0},t.getPromo=function(t){return Object(a.l)(o,[()=>n(t),()=>s(t)])},t.getGlobalPromo=n,t.getAutoPromo=s,t.getAutomation=l,t.types=[],t.getTypes=function(){return t.types},t.registerType=function(e){t.types.push(e)},t.getTypeById=c,t.clearTypes=function(){t.types.splice(0,t.types.length)},function(t){t.getType=function(t){return t?o(t.type):void 0},t.getConfig=function(t){var e,o;return t&&null!==(o=null!==(e=t.config)&&void 0!==e?e:t.data)&&void 0!==o?o:{}},t.getPromotion=function(t){return t?t.promotion:void 0};const e=[];function o(t){return e.find(e=>e.id===t)}t.getTypes=function(){return e},t.registerType=function(t){e.push(t)},t.getTypeById=o,t.clearTypes=function(){e.splice(0,e.length)}}(u=t.Automation||(t.Automation={}))}(n||(n={}))}},[[601,0,1]]])}));
ui/dist/styles/admin-app.css CHANGED
@@ -1,27 +1,27 @@
1
- .admin-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;-webkit-animation:admin-loading-blink 1.5s linear .35s infinite;animation:admin-loading-blink 1.5s linear .35s infinite}.admin-loading__perspective{position:relative;top:-20%;perspective:40em;perspective-origin:top}.admin-loading__container{position:relative;height:200px;transform-origin:center;transform-style:preserve-3d;-webkit-animation:admin-loading-pop-in .35s cubic-bezier(.67,.15,.52,1.48) 1;animation:admin-loading-pop-in .35s cubic-bezier(.67,.15,.52,1.48) 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.admin-loading__logo{-o-object-fit:contain;object-fit:contain;height:100px;position:relative;display:inline-block;transform-origin:center;transform:rotateX(90deg)}@-webkit-keyframes admin-loading-pop-in{0%{transform:rotateX(0deg) translateY(0)}to{transform:rotateX(-90deg) translateY(10px)}}@keyframes admin-loading-pop-in{0%{transform:rotateX(0deg) translateY(0)}to{transform:rotateX(-90deg) translateY(10px)}}@-webkit-keyframes admin-loading-blink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes admin-loading-blink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.admin-screen{flex:1;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:0;margin:0;height:100%;max-height:100%;box-sizing:border-box}.admin-screen__navbar{flex-grow:0;flex-shrink:0;display:flex;flex-direction:row;align-items:stretch;height:52px;z-index:1000}.admin-screen:not(.admin-screen--fill-page) .admin-screen__content{padding:25px}.admin-screen__content{flex-grow:1;overflow-y:auto}.admin-screen__notices{display:flex;flex-direction:column;align-items:stretch;margin:-10px 0 25px}.admin-screen__notices:empty{margin:0}.admin-screen__notices .notice:not(:last-child){margin:0 0 10px}.admin-screen__reconnect{cursor:pointer}.wp-notices__menu{max-width:500px;min-width:300px;background:#f1f1f1}.wp-notices__list{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:5px 10px}.wp-notices__list .notice{margin:0}.wp-notices__list .notice:not(:last-of-type){margin-bottom:15px}.editor-embed .spoiler__content,.editor-embed .spoiler__header{border-left:0;border-right:0}.editor-embed>.message{margin:15px 10px}.editor-embed__shortcode{display:flex;flex-direction:row;align-items:stretch;justify-content:space-between;margin-top:10px}.editor-embed__shortcode code{flex:1;display:block;text-align:center;font-size:12px;line-height:1.5em;padding:8px 10px;background:#fff;box-shadow:inset 0 0 0 1px #ccc;border-radius:3px;margin-right:10px}.editor-embed__widget{position:relative;padding:5px;border:1px solid #d3d8dc;border-radius:4px;background:#f1f1f1;box-shadow:0 3px 3px -3px rgba(0,0,0,.2);margin-top:10px}.editor-embed__widget img{width:100%;-o-object-fit:contain;object-fit:contain}.editor-embed__widget p{margin:0 8px;padding:0;opacity:.7;font-weight:700}.editor-embed p{margin-top:0}.editor-embed__instances p{margin:0 0 8px}.editor-embed__instances ul{margin:0;list-style:disc inside!important}.editor-embed__instances li span{margin-left:5px;font-weight:700;opacity:.8}#wpcontent{padding-left:0}#wpbody-content{float:unset;padding-bottom:0}#wpfooter{display:none}.wrap{margin:0}#wpbody,#wpcontent,.wrap{position:absolute!important;top:0;left:0;right:0;bottom:0}#adminmenu li.wp-has-current-submenu ul.wp-submenu{cursor:auto}#adminmenu li.wp-has-current-submenu ul.wp-submenu.sli-onboarding{display:none}#adminmenu li.wp-has-current-submenu ul.wp-submenu a,#adminmenu li.wp-has-current-submenu ul.wp-submenu li{cursor:pointer}#adminmenu li.wp-has-current-submenu ul.wp-submenu li.disabled{opacity:.7;cursor:not-allowed}#adminmenu li.wp-has-current-submenu ul.wp-submenu li.disabled a{pointer-events:none}.std-admin-page{padding:20px 22px}#spotlight-instagram-admin{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:99;display:flex;flex-direction:column;color:#333;background-color:#f1f1f1}#spotlight-instagram-admin pre{display:block}#spotlight-instagram-admin code{display:inline-block}#spotlight-instagram-admin input:not([type]),#spotlight-instagram-admin input[type=date],#spotlight-instagram-admin input[type=email],#spotlight-instagram-admin input[type=number],#spotlight-instagram-admin input[type=password],#spotlight-instagram-admin input[type=search],#spotlight-instagram-admin input[type=text],#spotlight-instagram-admin input[type=time],#spotlight-instagram-admin select{padding:0 10px;border:1px solid #d3d8dc;border-radius:3px;background:#fff;min-height:38px;font-size:13px}#spotlight-instagram-admin input:not([type]):focus,#spotlight-instagram-admin input[type=date]:focus,#spotlight-instagram-admin input[type=email]:focus,#spotlight-instagram-admin input[type=number]:focus,#spotlight-instagram-admin input[type=password]:focus,#spotlight-instagram-admin input[type=search]:focus,#spotlight-instagram-admin input[type=text]:focus,#spotlight-instagram-admin input[type=time]:focus,#spotlight-instagram-admin select:focus{border-color:#007cba;background-color:#fff;box-shadow:0 0 0 1px #007cba}#spotlight-instagram-admin input[type=checkbox],#spotlight-instagram-admin input[type=radio]{margin:0 8px 0 0}#spotlight-instagram-admin select{display:inline-block;height:26px;box-sizing:content-box}#spotlight-instagram-admin .dashicons{transition:none}#spotlight-instagram-admin .dashicons:focus{outline:0}@media screen and (max-width:600px){#wpbody{top:46px!important;padding-top:0!important}}.react-select input[type=text]{min-height:unset!important;border:0!important;background:transparent!important;box-shadow:0 0 0 transparent!important}
2
  .layout__fill-parent{top:0;bottom:0;left:0;right:0}.layout__no-overflow{overflow:hidden}.layout__scroll-x{overflow-x:auto;overflow-y:hidden}.layout__scroll-y{overflow-x:hidden;overflow-y:auto}.layout__overflow-x{overflow-x:visible;overflow-y:hidden}.layout__overflow-y{overflow-x:hidden;overflow-y:visible}.layout__text-overflow-ellipsis{text-overflow:ellipsis;overflow:hidden}.layout__flex-row{display:flex;flex-direction:row}.layout__flex-column{display:flex;flex-direction:column}.layout__flex-center{align-items:center;justify-content:center}.layout__z-medium{z-index:100}.layout__z-lower{z-index:-100}.layout__z-low{z-index:0}.layout__z-high{z-index:1000}.layout__z-higher{z-index:100000}.layout__z-highest{z-index:1000000}
3
- .AccountsList__username-col{width:30%}.AccountsList__actions-col{width:50px}.AccountsList__username-cell>div{display:flex;flex-direction:row;align-items:center}.AccountsList__username{font-weight:700;cursor:pointer}.AccountsList__profile-pic{width:40px;height:40px;margin-right:10px;vertical-align:middle}.AccountsList__account-type{text-transform:uppercase;font-weight:700;opacity:.7}.AccountsList__usages{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.AccountsList__usages>a{margin-bottom:5px}.AccountsList__usages>a:last-of-type{margin-bottom:0}.AccountsList__actions-list{}.AccountsList__actions-list>:not(:last-child){margin-right:7px}.AccountsList__action .dashicons{font-size:16px;height:16px}
4
  .AccountInfo__root{display:flex;flex-direction:column}.AccountInfo__root p{margin:0 0 7px}.AccountInfo__root p:last-child{margin-bottom:0}.AccountInfo__container{flex-direction:row;align-items:stretch;margin-bottom:10px}.AccountInfo__column,.AccountInfo__container{display:flex;justify-content:flex-start}.AccountInfo__column{flex-direction:column}.AccountInfo__info-column{flex:1;align-items:stretch;margin-right:15px}.AccountInfo__pic-column{flex:100px 0;align-items:center;padding-left:15px;border-left:1px solid var(--sli-line-color)}.AccountInfo__pic-column>div:not(:last-child){margin-bottom:10px}.AccountInfo__id{font-size:.9em;opacity:.7}.AccountInfo__username{font-weight:400;text-decoration:none;font-size:22px;line-height:32px;margin:0 0 10px;padding:0}.AccountInfo__profile-pic{width:100px;height:100px;overflow:hidden}.AccountInfo__label{font-weight:700;margin-right:7px}.AccountInfo__row{margin-bottom:10px}.AccountInfo__row:last-of-type{margin-bottom:0}.AccountInfo__pre{display:block;padding:7px 10px;margin:5px 0;border-radius:2px;background:var(--sli-wp-grey);white-space:pre-wrap;word-wrap:anywhere}.AccountInfo__bio{}.AccountInfo__link-button{cursor:pointer}.AccountInfo__edit-bio-link{margin-left:5px}.AccountInfo__bio-editor{display:block;width:100%}.AccountInfo__bio-footer{justify-content:space-between;margin-top:5px}.AccountInfo__bio-editing-controls,.AccountInfo__bio-footer{display:flex;flex-direction:row;align-items:center}.AccountInfo__bio-editing-controls{justify-content:flex-start}.AccountInfo__bio-editing-controls>:not(:last-child){margin-right:5px}.AccountInfo__access-token{-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all}.AccountInfo__set-custom-pic{margin-top:7px;cursor:pointer}.AccountInfo__reset-custom-pic{margin-top:10px}.AccountInfo__reset-custom-pic,.AccountInfo__reset-custom-pic:visited{color:var(--sli-rouge)}.AccountInfo__reset-custom-pic:active,.AccountInfo__reset-custom-pic:focus,.AccountInfo__reset-custom-pic:hover{color:var(--sli-rouge);filter:brightness(110%);text-decoration:underline}.AccountInfo__subtext{font-style:italic;opacity:.8}.AccountInfo__personal-info-message{margin-bottom:10px}
5
  .ProfilePic__root{display:inline-block;-o-object-fit:cover;object-fit:cover;overflow:hidden}.ProfilePic__round{border-radius:99999px}.ProfilePic__square{border-radius:0}
6
  .AccountsPage__connect-btn{margin-bottom:15px}
7
- .ProPill__pill{display:inline-block;font-size:10px;font-weight:700;padding:0 8px;height:18px;line-height:18px;border-radius:99px;background:var(--sli-pro-bg-color);box-shadow:0 2px 8px -2px rgba(0,0,0,.25);box-sizing:border-box}.ProPill__pill,.ProPill__pill:active,.ProPill__pill:focus,.ProPill__pill:hover,.ProPill__pill:visited{color:var(--sli-pro-fg-color);text-decoration:none!important}
8
  .SettingsPage__root{padding:0;margin:0}.SettingsPage__content{display:block}.SettingsPage__group-list{}
9
  .SettingsGroup__root{margin-bottom:30px}.SettingsGroup__title{font-size:20px;margin:0 0 15px!important;padding:0!important}.SettingsGroup__content{display:block;margin-bottom:15px}.SettingsGroup__field-list{max-width:600px}
10
  .SettingsField__root{justify-content:flex-start;align-items:stretch}.SettingsField__root:not(:last-of-type){margin-bottom:15px}.SettingsField__root p{margin:10px 0}.SettingsField__root p:first-child{margin-top:0}.SettingsField__label{justify-content:center;align-items:flex-start;margin-bottom:5px}.SettingsField__container{align-items:stretch;flex:1}.SettingsField__container,.SettingsField__control{justify-content:flex-start}.SettingsField__control{}.SettingsField__control .react-select{width:100%}.SettingsField__control-partial-width{flex:300px 0;max-width:300px;min-width:100px}.SettingsField__control-full-width{flex:1}.SettingsField__tooltip{justify-content:center;margin-left:5px}@media (--tiny-screen){.SettingsField__root{flex-direction:column}.SettingsField__label{flex:30px 0}.SettingsField__container,.SettingsField__label{align-items:flex-start}.SettingsField__container{flex:0}}
11
  .MediaThumbnail__root{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:visible;background-color:var(--sli-grey);-webkit-animation-name:MediaThumbnail__media-background-fade-in-animation;animation-name:MediaThumbnail__media-background-fade-in-animation;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.MediaThumbnail__root,.MediaThumbnail__root img,.MediaThumbnail__root video{-webkit-animation-duration:.3s;animation-duration:.3s}.MediaThumbnail__root img,.MediaThumbnail__root video{width:auto;height:auto;max-width:100%;max-height:100%;min-width:100%;min-height:100%;-o-object-fit:cover;object-fit:cover;margin:0!important;padding:0!important;border:0 solid transparent!important;outline:0 solid transparent!important;box-shadow:0 0 0 transparent!important;-webkit-animation-name:MediaThumbnail__media-object-fade-in-animation;animation-name:MediaThumbnail__media-object-fade-in-animation;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;box-sizing:content-box!important}.MediaThumbnail__image,.MediaThumbnail__root{width:100%!important;height:100%!important}.MediaThumbnail__image{max-width:100%;max-height:100%;min-width:100%;min-height:100%;-o-object-fit:cover!important;object-fit:cover!important;margin:0!important;padding:0!important;border:0 solid transparent!important;outline:0 solid transparent!important;box-shadow:0 0 0 transparent!important;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-name:MediaThumbnail__media-object-fade-in-animation;animation-name:MediaThumbnail__media-object-fade-in-animation;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;box-sizing:content-box!important}.MediaThumbnail__image:after{display:none;content:" "}.MediaThumbnail__not-available{display:flex;flex-direction:column;align-items:center;justify-content:center;width:600px;color:#fff;background-color:var(--sli-grey)}
12
  .MediaLoading__root{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden;-webkit-animation-name:MediaLoading__animation;animation-name:MediaLoading__animation;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes MediaLoading__animation{0%,to{background:#e3e3e3}50%{background:#efefef}}@keyframes MediaLoading__animation{0%,to{background:#e3e3e3}50%{background:#efefef}}
13
  .FeedsScreen__create-new-btn{margin-bottom:20px}
14
- .FeedsList__name-col{min-width:120px;max-width:20%}.FeedsList__actions-col{min-width:120px;max-width:140px}.FeedsList__actions-cell{width:100px}.FeedsList__name{font-size:14px;font-weight:700;margin-bottom:3px}.FeedsList__meta-list{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;margin-top:2px}.FeedsList__meta-list>:not(:last-child){margin-right:7px}.FeedsList__meta-info{color:var(--sli-grey);text-transform:uppercase}.FeedsList__meta-info:not(:last-child){padding-right:7px;border-right:1px solid var(--sli-line-color)}.FeedsList__id,.FeedsList__layout{}.FeedsList__sources-list{align-items:center;justify-content:flex-start;flex-wrap:wrap}.FeedsList__source{white-space:nowrap;display:inline-block;padding:3px 6px;margin-right:15px;margin-bottom:5px;border:1px solid var(--sli-line-color);border-radius:3px;background:#fff;opacity:.8}.FeedsList__source :last-of-type{margin-right:0}.FeedsList__source .dashicons{margin-right:6px!important}.FeedsList__no-sources-msg{color:#952020}.FeedsList__usages-list{}.FeedsList__usage{white-space:nowrap}.FeedsList__usage-link{white-space:nowrap}.FeedsList__usage-type{opacity:.75;margin-left:5px}.FeedsList__actions-list{display:flex;flex-direction:row}.FeedsList__actions-list>:not(:last-child){margin-right:7px}@media (--tiny-screen){.FeedsList__usages-cell,.FeedsList__usages-col{display:none}}@media (--thin-screen){.FeedsList__sources-cell,.FeedsList__sources-col{display:none}}
15
  .FeedsOnboarding__contact-us{text-align:center}.FeedsOnboarding__call-to-action{max-width:460px}@media (--tiny-screen){.FeedsOnboarding__call-to-action{max-width:100%}}
16
 
17
- .ProUpgradeBtn__root{display:inline-block;padding:0 25px;margin:8px 0;font-size:14px;font-weight:700;white-space:nowrap;text-decoration:none;line-height:36px;background:var(--sli-pro-bg-color);border-radius:3px}.ProUpgradeBtn__root,.ProUpgradeBtn__root:active,.ProUpgradeBtn__root:focus,.ProUpgradeBtn__root:hover,.ProUpgradeBtn__root:visited{color:var(--sli-pro-fg-color)}.ProUpgradeBtn__root:active,.ProUpgradeBtn__root:hover{text-decoration:none;box-shadow:inset 0 0 50px rgba(0,0,0,.1)}.ProUpgradeBtn__root:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px $color}
18
  .SettingsNavbar__buttons{padding:7px 0}.SettingsNavbar__cancel-btn{margin-right:10px!important}
19
  .SpotlightGame__root{height:100%;padding:0 50px 30px;box-sizing:border-box}.SpotlightGame__root h1{margin-bottom:15px}.SpotlightGame__root p{text-align:center;margin:0 0 10px;font-size:14px}.SpotlightGame__root p:last-child{margin-bottom:0}.SpotlightGame__game-text{position:absolute;left:20px;right:20px;color:#000;text-align:center;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.SpotlightGame__score{top:20px;font-size:20px;font-weight:700;opacity:.7}.SpotlightGame__message,.SpotlightGame__score{}.SpotlightGame__message{top:55px;font-size:18px}.SpotlightGame__message-bubble{display:inline-block;position:relative;padding:8px 12px;border-radius:4px;background-color:var(--sli-yellow);border:2px solid #000}.SpotlightGame__message-bubble:before{--size:10px;border:var(--size) solid transparent;border-bottom-color:#000}.SpotlightGame__message-bubble:after,.SpotlightGame__message-bubble:before{content:" ";display:block;position:absolute;top:calc(var(--size)*-2);left:calc(50% - var(--size));width:var(--size);height:var(--size);box-sizing:border-box}.SpotlightGame__message-bubble:after{--size:8px;border-bottom-color:transparent;border:var(--size) solid transparent;border-bottom:var(--size) solid var(--sli-yellow)}
20
  .AdvancedSettings__field-container{justify-content:flex-start;align-items:flex-start;margin-bottom:5px}.AdvancedSettings__field-container :last-child{margin-bottom:0}.AdvancedSettings__field-element{min-height:38px;box-sizing:border-box}.AdvancedSettings__field-label{flex:0 1 200px;padding:10px 0}.AdvancedSettings__field-control{justify-content:stretch;align-items:flex-start}.AdvancedSettings__field-centered .AdvancedSettings__field-control{justify-content:center}
21
- .GenericNavbar__root{position:relative;font-size:14px;padding:0 var(--sli-navbar-spacing);background:#fff;box-shadow:0 1px 1px var(--sli-line-color);box-sizing:border-box}.GenericNavbar__list,.GenericNavbar__root{display:flex;flex-direction:row;justify-content:space-between;align-items:stretch;margin:0;height:100%}.GenericNavbar__list{padding:0}.GenericNavbar__left-list{}.GenericNavbar__left-list .GenericNavbar__item{margin-right:var(--sli-navbar-spacing)}.GenericNavbar__center-list{position:absolute;left:0;right:0;justify-content:center;pointer-events:none}.GenericNavbar__center-list .GenericNavbar__item{pointer-events:all;margin-left:calc(var(--sli-navbar-spacing)/2);margin-right:calc(var(--sli-navbar-spacing)/2)}.GenericNavbar__right-list{}.GenericNavbar__right-list .GenericNavbar__item{margin-left:var(--sli-navbar-spacing)}.GenericNavbar__path-list{}.GenericNavbar__item{display:flex;flex-direction:column;justify-content:center;align-items:stretch;position:relative;max-height:100%;font-size:inherit;white-space:nowrap}.GenericNavbar__item>button{height:100%;margin:5px 0!important}.GenericNavbar__path-segment{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;height:100%}.GenericNavbar__separator{flex-shrink:0;width:10px;height:42%;color:var(--sli-line-color)}.GenericNavbar__separator svg{stroke-width:8}
22
  :root{--sli-dashicon-normal-size:20px;--sli-dashicon-large-size:40px}.dashicons__dashicon-large{font-size:40px;font-size:var(--sli-dashicon-large-size);width:40px;width:var(--sli-dashicon-large-size);height:40px;height:var(--sli-dashicon-large-size);line-height:40px;line-height:var(--sli-dashicon-large-size)}.dashicons__dashicon-normal{font-size:20px;font-size:var(--sli-dashicon-normal-size);width:20px;width:var(--sli-dashicon-normal-size);height:20px;height:var(--sli-dashicon-normal-size);line-height:20px;line-height:var(--sli-dashicon-normal-size)}
23
  .PopupTextField__root{position:relative}.PopupTextField__container,.PopupTextField__root{}.PopupTextField__edit-container,.PopupTextField__static-container{}.PopupTextField__static-container{align-items:center;cursor:pointer}.PopupTextField__static-container:focus{outline:1px dotted #000}.PopupTextField__static-container:hover .PopupTextField__edit-icon{opacity:1}.PopupTextField__edit-icon{margin-left:8px;color:var(--sli-grey);opacity:.8}.PopupTextField__label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:150px}.PopupTextField__edit-container{align-items:stretch}.PopupTextField__done-btn{margin-left:8px!important}.PopupTextField__done-btn .dashicons{margin-right:0!important}
24
  .WizardNavbar__arrow-link{height:20px;line-height:20px}.WizardNavbar__arrow-link .dashicons{vertical-align:text-bottom}.WizardNavbar__prev-link{}.WizardNavbar__prev-link .dashicons{margin-right:5px!important}.WizardNavbar__next-link{}.WizardNavbar__next-link .dashicons{margin-left:5px!important}
25
  .PageMenuNavbar__menu-link,.PageMenuNavbar__menu-ref{height:100%}.PageMenuNavbar__menu-link{display:flex;flex-direction:column;justify-content:center;width:80px;text-align:center;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.PageMenuNavbar__arrow-down{margin-left:5px!important}
26
  .TabNavbar__label{color:#000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.TabNavbar__tab{display:flex;flex-direction:column;justify-content:center;height:100%;padding:0 5px;border-bottom:2px solid transparent;box-sizing:border-box;cursor:pointer}.TabNavbar__tab:focus{outline:1px dotted #000;border-width:0 0 2px;box-shadow:0 0 0}.TabNavbar__current{border-color:var(--sli-primary-color)}.TabNavbar__current .TabNavbar__label{font-weight:700}.TabNavbar__disabled{opacity:.6;pointer-events:none}
27
  .FeedNamePrompt__message{margin-bottom:5px}.FeedNamePrompt__input{width:100%}
 
1
+ .admin-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;max-width:100%;padding:0 50px;box-sizing:border-box;-webkit-animation:admin-loading-blink 1.5s linear .35s infinite;animation:admin-loading-blink 1.5s linear .35s infinite}.admin-loading__perspective{position:relative;top:-20%;perspective:40em;perspective-origin:top}.admin-loading__container{position:relative;height:200px;transform-origin:center;transform-style:preserve-3d;-webkit-animation:admin-loading-pop-in .35s cubic-bezier(.67,.15,.52,1.48) 1;animation:admin-loading-pop-in .35s cubic-bezier(.67,.15,.52,1.48) 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.admin-loading__logo{-o-object-fit:contain;object-fit:contain;height:100px;max-width:100%;position:relative;display:inline-block;transform-origin:center;transform:rotateX(90deg)}@-webkit-keyframes admin-loading-pop-in{0%{transform:rotateX(0deg) translateY(0)}to{transform:rotateX(-90deg) translateY(10px)}}@keyframes admin-loading-pop-in{0%{transform:rotateX(0deg) translateY(0)}to{transform:rotateX(-90deg) translateY(10px)}}@-webkit-keyframes admin-loading-blink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes admin-loading-blink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.admin-screen{flex:1;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:0;margin:0;height:100%;max-height:100%;box-sizing:border-box}.admin-screen__navbar{flex-grow:0;flex-shrink:0;display:flex;flex-direction:row;align-items:stretch;height:52px;z-index:1000}.admin-screen:not(.admin-screen--fill-page) .admin-screen__content{padding:25px}.admin-screen__content{flex-grow:1;overflow-y:auto}.admin-screen__notices{display:flex;flex-direction:column;align-items:stretch;margin:-10px 0 25px}.admin-screen__notices:empty{margin:0}.admin-screen__notices .notice:not(:last-child){margin:0 0 10px}.admin-screen__reconnect{cursor:pointer}.wp-notices__menu{max-width:500px;min-width:300px;background:#f1f1f1}.wp-notices__list{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:5px 10px}.wp-notices__list .notice{margin:0}.wp-notices__list .notice:not(:last-of-type){margin-bottom:15px}.editor-embed .spoiler__content,.editor-embed .spoiler__header{border-left:0;border-right:0}.editor-embed>.message{margin:15px 10px}.editor-embed__shortcode{display:flex;flex-direction:row;align-items:stretch;justify-content:space-between;margin-top:10px}.editor-embed__shortcode code{flex:1;display:block;text-align:center;font-size:12px;line-height:1.5em;padding:8px 10px;background:#fff;box-shadow:inset 0 0 0 1px #ccc;border-radius:3px;margin-right:10px}.editor-embed__widget{position:relative;padding:5px;border:1px solid #d3d8dc;border-radius:4px;background:#f1f1f1;box-shadow:0 3px 3px -3px rgba(0,0,0,.2);margin-top:10px}.editor-embed__widget img{width:100%;-o-object-fit:contain;object-fit:contain}.editor-embed__widget p{margin:0 8px;padding:0;opacity:.7;font-weight:700}.editor-embed p{margin-top:0}.editor-embed__instances p{margin:0 0 8px}.editor-embed__instances ul{margin:0;list-style:disc inside!important}.editor-embed__instances li span{margin-left:5px;font-weight:700;opacity:.8}#wpcontent{padding-left:0}#wpbody-content{float:unset;padding-bottom:0}#wpfooter{display:none}.wrap{margin:0}#wpbody,#wpcontent,.wrap{position:absolute!important;top:0;left:0;right:0;bottom:0}#adminmenu li.wp-has-current-submenu ul.wp-submenu{cursor:auto}#adminmenu li.wp-has-current-submenu ul.wp-submenu.sli-onboarding{display:none}#adminmenu li.wp-has-current-submenu ul.wp-submenu a,#adminmenu li.wp-has-current-submenu ul.wp-submenu li{cursor:pointer}#adminmenu li.wp-has-current-submenu ul.wp-submenu li.disabled{opacity:.7;cursor:not-allowed}#adminmenu li.wp-has-current-submenu ul.wp-submenu li.disabled a{pointer-events:none}.std-admin-page{padding:20px 22px}#spotlight-instagram-admin{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:99;display:flex;flex-direction:column;color:#333;background-color:#f1f1f1}@media screen and (max-width:600px){#wpbody{top:46px!important;padding-top:0!important}}
2
  .layout__fill-parent{top:0;bottom:0;left:0;right:0}.layout__no-overflow{overflow:hidden}.layout__scroll-x{overflow-x:auto;overflow-y:hidden}.layout__scroll-y{overflow-x:hidden;overflow-y:auto}.layout__overflow-x{overflow-x:visible;overflow-y:hidden}.layout__overflow-y{overflow-x:hidden;overflow-y:visible}.layout__text-overflow-ellipsis{text-overflow:ellipsis;overflow:hidden}.layout__flex-row{display:flex;flex-direction:row}.layout__flex-column{display:flex;flex-direction:column}.layout__flex-center{align-items:center;justify-content:center}.layout__z-medium{z-index:100}.layout__z-lower{z-index:-100}.layout__z-low{z-index:0}.layout__z-high{z-index:1000}.layout__z-higher{z-index:100000}.layout__z-highest{z-index:1000000}
3
+ .AccountsList__username-col{width:30%}.AccountsList__actions-col{width:50px}.AccountsList__username-cell>div{display:flex;flex-direction:row;align-items:center}.AccountsList__username{font-weight:700;cursor:pointer}.AccountsList__profile-pic{width:40px;height:40px;margin-right:10px;vertical-align:middle}.AccountsList__account-type{text-transform:uppercase;font-weight:700;opacity:.7}.AccountsList__usages{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.AccountsList__usages>a{margin-bottom:5px}.AccountsList__usages>a:last-of-type{margin-bottom:0}.AccountsList__actions-list{}.AccountsList__actions-list>:not(:last-child){margin-right:7px}.AccountsList__action .dashicons{font-size:16px;height:16px}@media screen and (max-width:768px){.AccountsList__username-col{width:50%}.AccountsList__usages-cell,.AccountsList__usages-col{display:none}}@media screen and (max-width:520px){.AccountsList__username-col{width:90%}.AccountsList__type-cell,.AccountsList__type-col{display:none}}
4
  .AccountInfo__root{display:flex;flex-direction:column}.AccountInfo__root p{margin:0 0 7px}.AccountInfo__root p:last-child{margin-bottom:0}.AccountInfo__container{flex-direction:row;align-items:stretch;margin-bottom:10px}.AccountInfo__column,.AccountInfo__container{display:flex;justify-content:flex-start}.AccountInfo__column{flex-direction:column}.AccountInfo__info-column{flex:1;align-items:stretch;margin-right:15px}.AccountInfo__pic-column{flex:100px 0;align-items:center;padding-left:15px;border-left:1px solid var(--sli-line-color)}.AccountInfo__pic-column>div:not(:last-child){margin-bottom:10px}.AccountInfo__id{font-size:.9em;opacity:.7}.AccountInfo__username{font-weight:400;text-decoration:none;font-size:22px;line-height:32px;margin:0 0 10px;padding:0}.AccountInfo__profile-pic{width:100px;height:100px;overflow:hidden}.AccountInfo__label{font-weight:700;margin-right:7px}.AccountInfo__row{margin-bottom:10px}.AccountInfo__row:last-of-type{margin-bottom:0}.AccountInfo__pre{display:block;padding:7px 10px;margin:5px 0;border-radius:2px;background:var(--sli-wp-grey);white-space:pre-wrap;word-wrap:anywhere}.AccountInfo__bio{}.AccountInfo__link-button{cursor:pointer}.AccountInfo__edit-bio-link{margin-left:5px}.AccountInfo__bio-editor{display:block;width:100%}.AccountInfo__bio-footer{justify-content:space-between;margin-top:5px}.AccountInfo__bio-editing-controls,.AccountInfo__bio-footer{display:flex;flex-direction:row;align-items:center}.AccountInfo__bio-editing-controls{justify-content:flex-start}.AccountInfo__bio-editing-controls>:not(:last-child){margin-right:5px}.AccountInfo__access-token{-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all}.AccountInfo__set-custom-pic{margin-top:7px;cursor:pointer}.AccountInfo__reset-custom-pic{margin-top:10px}.AccountInfo__reset-custom-pic,.AccountInfo__reset-custom-pic:visited{color:var(--sli-rouge)}.AccountInfo__reset-custom-pic:active,.AccountInfo__reset-custom-pic:focus,.AccountInfo__reset-custom-pic:hover{color:var(--sli-rouge);filter:brightness(110%);text-decoration:underline}.AccountInfo__subtext{font-style:italic;opacity:.8}.AccountInfo__personal-info-message{margin-bottom:10px}
5
  .ProfilePic__root{display:inline-block;-o-object-fit:cover;object-fit:cover;overflow:hidden}.ProfilePic__round{border-radius:99999px}.ProfilePic__square{border-radius:0}
6
  .AccountsPage__connect-btn{margin-bottom:15px}
 
7
  .SettingsPage__root{padding:0;margin:0}.SettingsPage__content{display:block}.SettingsPage__group-list{}
8
  .SettingsGroup__root{margin-bottom:30px}.SettingsGroup__title{font-size:20px;margin:0 0 15px!important;padding:0!important}.SettingsGroup__content{display:block;margin-bottom:15px}.SettingsGroup__field-list{max-width:600px}
9
  .SettingsField__root{justify-content:flex-start;align-items:stretch}.SettingsField__root:not(:last-of-type){margin-bottom:15px}.SettingsField__root p{margin:10px 0}.SettingsField__root p:first-child{margin-top:0}.SettingsField__label{justify-content:center;align-items:flex-start;margin-bottom:5px}.SettingsField__container{align-items:stretch;flex:1}.SettingsField__container,.SettingsField__control{justify-content:flex-start}.SettingsField__control{}.SettingsField__control .react-select{width:100%}.SettingsField__control-partial-width{flex:300px 0;max-width:300px;min-width:100px}.SettingsField__control-full-width{flex:1}.SettingsField__tooltip{justify-content:center;margin-left:5px}@media (--tiny-screen){.SettingsField__root{flex-direction:column}.SettingsField__label{flex:30px 0}.SettingsField__container,.SettingsField__label{align-items:flex-start}.SettingsField__container{flex:0}}
10
  .MediaThumbnail__root{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:visible;background-color:var(--sli-grey);-webkit-animation-name:MediaThumbnail__media-background-fade-in-animation;animation-name:MediaThumbnail__media-background-fade-in-animation;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.MediaThumbnail__root,.MediaThumbnail__root img,.MediaThumbnail__root video{-webkit-animation-duration:.3s;animation-duration:.3s}.MediaThumbnail__root img,.MediaThumbnail__root video{width:auto;height:auto;max-width:100%;max-height:100%;min-width:100%;min-height:100%;-o-object-fit:cover;object-fit:cover;margin:0!important;padding:0!important;border:0 solid transparent!important;outline:0 solid transparent!important;box-shadow:0 0 0 transparent!important;-webkit-animation-name:MediaThumbnail__media-object-fade-in-animation;animation-name:MediaThumbnail__media-object-fade-in-animation;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;box-sizing:content-box!important}.MediaThumbnail__image,.MediaThumbnail__root{width:100%!important;height:100%!important}.MediaThumbnail__image{max-width:100%;max-height:100%;min-width:100%;min-height:100%;-o-object-fit:cover!important;object-fit:cover!important;margin:0!important;padding:0!important;border:0 solid transparent!important;outline:0 solid transparent!important;box-shadow:0 0 0 transparent!important;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-name:MediaThumbnail__media-object-fade-in-animation;animation-name:MediaThumbnail__media-object-fade-in-animation;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;box-sizing:content-box!important}.MediaThumbnail__image:after{display:none;content:" "}.MediaThumbnail__not-available{display:flex;flex-direction:column;align-items:center;justify-content:center;width:600px;color:#fff;background-color:var(--sli-grey)}
11
  .MediaLoading__root{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden;-webkit-animation-name:MediaLoading__animation;animation-name:MediaLoading__animation;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes MediaLoading__animation{0%,to{background:#e3e3e3}50%{background:#efefef}}@keyframes MediaLoading__animation{0%,to{background:#e3e3e3}50%{background:#efefef}}
12
  .FeedsScreen__create-new-btn{margin-bottom:20px}
13
+ .FeedsList__name-col{min-width:120px;max-width:20%}.FeedsList__actions-col{min-width:120px;max-width:140px}.FeedsList__actions-cell{width:100px}.FeedsList__name{font-size:14px;font-weight:700;margin-bottom:3px}.FeedsList__meta-list{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;margin-top:2px}.FeedsList__meta-list>:not(:last-child){margin-right:7px}.FeedsList__meta-info{color:var(--sli-grey);text-transform:uppercase}.FeedsList__meta-info:not(:last-child){padding-right:7px;border-right:1px solid var(--sli-line-color)}.FeedsList__id,.FeedsList__layout{}.FeedsList__sources-list{align-items:center;justify-content:flex-start;flex-wrap:wrap}.FeedsList__source{white-space:nowrap;display:inline-block;padding:3px 6px;margin-right:15px;margin-bottom:5px;border:1px solid var(--sli-line-color);border-radius:3px;background:#fff;opacity:.8}.FeedsList__source :last-of-type{margin-right:0}.FeedsList__source .dashicons{margin-right:6px!important}.FeedsList__no-sources-msg{color:#952020}.FeedsList__usages-list{}.FeedsList__usage{white-space:nowrap}.FeedsList__usage-link{white-space:nowrap}.FeedsList__usage-type{opacity:.75;margin-left:5px}.FeedsList__actions-list{display:flex;flex-direction:row}.FeedsList__actions-list>:not(:last-child){margin-right:7px}@media screen and (max-width:768px){.FeedsList__sources-cell,.FeedsList__sources-col,.FeedsList__usages-cell,.FeedsList__usages-col{display:none}}@media screen and (max-width:520px){.FeedsList__meta-list{display:none}}
14
  .FeedsOnboarding__contact-us{text-align:center}.FeedsOnboarding__call-to-action{max-width:460px}@media (--tiny-screen){.FeedsOnboarding__call-to-action{max-width:100%}}
15
 
16
+ .ProUpgradeBtn__root{display:inline-block;padding:0 25px;margin:8px 0;font-size:14px;font-weight:700;white-space:nowrap;text-decoration:none;line-height:36px;background:var(--sli-pro-bg-color);border-radius:3px}.ProUpgradeBtn__root,.ProUpgradeBtn__root:active,.ProUpgradeBtn__root:focus,.ProUpgradeBtn__root:hover,.ProUpgradeBtn__root:visited{color:var(--sli-pro-fg-color)!important}.ProUpgradeBtn__root:active,.ProUpgradeBtn__root:hover{text-decoration:none;box-shadow:inset 0 0 50px rgba(0,0,0,.1)}.ProUpgradeBtn__root:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px $color}
17
  .SettingsNavbar__buttons{padding:7px 0}.SettingsNavbar__cancel-btn{margin-right:10px!important}
18
  .SpotlightGame__root{height:100%;padding:0 50px 30px;box-sizing:border-box}.SpotlightGame__root h1{margin-bottom:15px}.SpotlightGame__root p{text-align:center;margin:0 0 10px;font-size:14px}.SpotlightGame__root p:last-child{margin-bottom:0}.SpotlightGame__game-text{position:absolute;left:20px;right:20px;color:#000;text-align:center;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.SpotlightGame__score{top:20px;font-size:20px;font-weight:700;opacity:.7}.SpotlightGame__message,.SpotlightGame__score{}.SpotlightGame__message{top:55px;font-size:18px}.SpotlightGame__message-bubble{display:inline-block;position:relative;padding:8px 12px;border-radius:4px;background-color:var(--sli-yellow);border:2px solid #000}.SpotlightGame__message-bubble:before{--size:10px;border:var(--size) solid transparent;border-bottom-color:#000}.SpotlightGame__message-bubble:after,.SpotlightGame__message-bubble:before{content:" ";display:block;position:absolute;top:calc(var(--size)*-2);left:calc(50% - var(--size));width:var(--size);height:var(--size);box-sizing:border-box}.SpotlightGame__message-bubble:after{--size:8px;border-bottom-color:transparent;border:var(--size) solid transparent;border-bottom:var(--size) solid var(--sli-yellow)}
19
  .AdvancedSettings__field-container{justify-content:flex-start;align-items:flex-start;margin-bottom:5px}.AdvancedSettings__field-container :last-child{margin-bottom:0}.AdvancedSettings__field-element{min-height:38px;box-sizing:border-box}.AdvancedSettings__field-label{flex:0 1 200px;padding:10px 0}.AdvancedSettings__field-control{justify-content:stretch;align-items:flex-start}.AdvancedSettings__field-centered .AdvancedSettings__field-control{justify-content:center}
20
+ .GenericNavbar__root{flex:1;flex-direction:row;position:relative;font-size:14px;padding:0 var(--sli-navbar-spacing);background:#fff;box-shadow:0 1px 1px var(--sli-line-color);box-sizing:border-box}.GenericNavbar__list,.GenericNavbar__root{display:flex;justify-content:space-between;align-items:stretch;margin:0;height:100%}.GenericNavbar__list{flex-direction:row;padding:0}.GenericNavbar__left-list{}.GenericNavbar__left-list .GenericNavbar__item{margin-right:var(--sli-navbar-spacing)}.GenericNavbar__center-list{position:absolute;left:0;right:0;justify-content:center;pointer-events:none}.GenericNavbar__center-list .GenericNavbar__item{pointer-events:all;margin-left:calc(var(--sli-navbar-spacing)/2);margin-right:calc(var(--sli-navbar-spacing)/2)}.GenericNavbar__right-list{}.GenericNavbar__right-list .GenericNavbar__item{margin-left:var(--sli-navbar-spacing)}.GenericNavbar__path-list{}.GenericNavbar__item{display:flex;flex-direction:column;justify-content:center;align-items:stretch;position:relative;max-height:100%;font-size:inherit;white-space:nowrap}.GenericNavbar__item>button{height:100%;margin:5px 0!important}.GenericNavbar__path-segment{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;height:100%}.GenericNavbar__separator{flex-shrink:0;width:10px;height:42%;color:var(--sli-line-color)}.GenericNavbar__separator svg{stroke-width:8}
21
  :root{--sli-dashicon-normal-size:20px;--sli-dashicon-large-size:40px}.dashicons__dashicon-large{font-size:40px;font-size:var(--sli-dashicon-large-size);width:40px;width:var(--sli-dashicon-large-size);height:40px;height:var(--sli-dashicon-large-size);line-height:40px;line-height:var(--sli-dashicon-large-size)}.dashicons__dashicon-normal{font-size:20px;font-size:var(--sli-dashicon-normal-size);width:20px;width:var(--sli-dashicon-normal-size);height:20px;height:var(--sli-dashicon-normal-size);line-height:20px;line-height:var(--sli-dashicon-normal-size)}
22
  .PopupTextField__root{position:relative}.PopupTextField__container,.PopupTextField__root{}.PopupTextField__edit-container,.PopupTextField__static-container{}.PopupTextField__static-container{align-items:center;cursor:pointer}.PopupTextField__static-container:focus{outline:1px dotted #000}.PopupTextField__static-container:hover .PopupTextField__edit-icon{opacity:1}.PopupTextField__edit-icon{margin-left:8px;color:var(--sli-grey);opacity:.8}.PopupTextField__label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:150px}.PopupTextField__edit-container{align-items:stretch}.PopupTextField__done-btn{margin-left:8px!important}.PopupTextField__done-btn .dashicons{margin-right:0!important}
23
  .WizardNavbar__arrow-link{height:20px;line-height:20px}.WizardNavbar__arrow-link .dashicons{vertical-align:text-bottom}.WizardNavbar__prev-link{}.WizardNavbar__prev-link .dashicons{margin-right:5px!important}.WizardNavbar__next-link{}.WizardNavbar__next-link .dashicons{margin-left:5px!important}
24
  .PageMenuNavbar__menu-link,.PageMenuNavbar__menu-ref{height:100%}.PageMenuNavbar__menu-link{display:flex;flex-direction:column;justify-content:center;width:80px;text-align:center;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.PageMenuNavbar__arrow-down{margin-left:5px!important}
25
  .TabNavbar__label{color:#000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.TabNavbar__tab{display:flex;flex-direction:column;justify-content:center;height:100%;padding:0 5px;border-bottom:2px solid transparent;box-sizing:border-box;cursor:pointer}.TabNavbar__tab:focus{outline:1px dotted #000;border-width:0 0 2px;box-shadow:0 0 0}.TabNavbar__current{border-color:var(--sli-primary-color)}.TabNavbar__current .TabNavbar__label{font-weight:700}.TabNavbar__disabled{opacity:.6;pointer-events:none}
26
  .FeedNamePrompt__message{margin-bottom:5px}.FeedNamePrompt__input{width:100%}
27
+ .PromotionsScreen__screen{flex:1;display:flex;flex-direction:column;max-height:100%}.PromotionsScreen__navbar{display:flex;flex-direction:row;z-index:1}.PromotionsScreen__navbar-item{position:relative}.PromotionsScreen__navbar-fake-pro-item{margin-right:12px;padding-right:2px}.PromotionsScreen__navbar-pro-pill{position:absolute;bottom:calc(100% - 8px);left:calc(100% - 3px)}
ui/dist/styles/admin-common.css CHANGED
@@ -1,32 +1,41 @@
1
- .ConnectAccountButton__root .dashicons{font-size:23px;width:23px;height:23px;line-height:20px;vertical-align:middle}
 
2
  :root{--sli-tooltip-offset:10px;--sli-tooltip-arrow-size:18px;--sli-tooltip-border:9px;--sli-tooltip-margin:-8px}.Tooltip__root{font-size:13px;pointer-events:none}.Tooltip__container{position:relative;color:#fff;background:var(--sli-tooltip-color);padding:5px 15px 6px;text-align:center;border-radius:2px;line-height:20px}.Tooltip__container-top{bottom:10px;bottom:var(--sli-tooltip-offset)}.Tooltip__container-bottom{top:10px;top:var(--sli-tooltip-offset)}.Tooltip__container-left{right:10px;right:var(--sli-tooltip-offset)}.Tooltip__container-right{left:10px;left:var(--sli-tooltip-offset)}.Tooltip__content code{display:inline-block;padding:0 4px;border-radius:2px;background:rgba(255,255,225,.2)}.Tooltip__arrow{position:absolute;width:18px;width:var(--sli-tooltip-arrow-size);height:18px;height:var(--sli-tooltip-arrow-size)}.Tooltip__arrow:before{content:"";display:block;margin:auto;width:0;height:0;border:9px solid transparent;border-width:var(--sli-tooltip-border)}.Tooltip__arrow-top{bottom:0;left:0;margin-bottom:-8px;margin-bottom:var(--sli-tooltip-margin)}.Tooltip__arrow-top:before{margin-top:9px;margin-top:var(--sli-tooltip-border);border-bottom-width:0;border-top-color:var(--sli-tooltip-color)}.Tooltip__arrow-bottom{top:0;left:0;margin-top:-8px;margin-top:var(--sli-tooltip-margin)}.Tooltip__arrow-bottom:before{border-top-width:0;border-bottom-color:var(--sli-tooltip-color)}.Tooltip__arrow-left{right:0;margin-right:-8px;margin-right:var(--sli-tooltip-margin)}.Tooltip__arrow-left:before{margin-left:9px;margin-left:var(--sli-tooltip-border);border-right-width:0;border-left-color:var(--sli-tooltip-color)}.Tooltip__arrow-right{left:0;margin-left:-8px;margin-left:var(--sli-tooltip-margin)}.Tooltip__arrow-right:before{margin-right:9px;margin-right:var(--sli-tooltip-border);border-left-width:0;border-right-color:var(--sli-tooltip-color)}
3
- .wp-core-ui .wp-core-ui-override button{cursor:pointer;line-height:16px}.wp-core-ui .wp-core-ui-override button .dashicons:not(:only-child){margin-right:5px}.wp-core-ui .wp-core-ui-override .button{position:relative}.wp-core-ui .wp-core-ui-override .button-primary:disabled:focus,.wp-core-ui .wp-core-ui-override .button-primary[disabled]:focus{outline:1px dotted #000!important}.wp-core-ui .wp-core-ui-override .button-large{padding:3px 20px}.wp-core-ui .wp-core-ui-override .button-tertiary{border:0;background:transparent}.wp-core-ui .wp-core-ui-override .button-tertiary:disabled,.wp-core-ui .wp-core-ui-override .button-tertiary[disabled]{background:transparent;text-decoration:none!important}.wp-core-ui .wp-core-ui-override .button-tertiary:hover{text-decoration:underline}.wp-core-ui .wp-core-ui-override .button-tertiary:hover .dashicons{text-decoration:none}.wp-core-ui .wp-core-ui-override .button-danger{color:#c82641;border-color:#d82442;background:#fdf4f6}.wp-core-ui .wp-core-ui-override .button-danger:focus,.wp-core-ui .wp-core-ui-override .button-danger:hover{color:#d82442}.wp-core-ui .wp-core-ui-override .button-danger:active{color:#ad1d35}.wp-core-ui .wp-core-ui-override .button-danger:focus{box-shadow:0 0 0 1px #ad1d35;outline:2px solid transparent;outline-offset:0}.wp-core-ui .wp-core-ui-override .button-danger:disabled,.wp-core-ui .wp-core-ui-override .button-danger[disabled]{color:#a68288!important;background:#ede4e5!important}.wp-core-ui .wp-core-ui-override .button-pill:hover{background:#e6f2f8}.wp-core-ui .wp-core-ui-override .button-pill:active{background:#d6e3e9}.wp-core-ui .wp-core-ui-override .button-pill:focus{box-shadow:0 0 0 1px #006395;outline:2px solid transparent;outline-offset:0}.wp-core-ui .wp-core-ui-override .button-pill:disabled,.wp-core-ui .wp-core-ui-override .button-pill[disabled],.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger,.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger:disabled,.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger[disabled]{background:transparent!important}.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger-pill{background:transparent}.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger-pill:hover{text-decoration:none}.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger-pill:focus,.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger-pill:hover{background:#fbe9ec}.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger-pill:active{background:#eedde0}.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger-pill:disabled,.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger-pill[disabled]{background:transparent!important}.wp-core-ui .wp-core-ui-override .button[data-num]:not([data-num=""]):not([data-num="0"]){position:relative}.wp-core-ui .wp-core-ui-override .button[data-num]:not([data-num=""]):not([data-num="0"]):after{content:attr(data-num);position:absolute;top:0;left:calc(100% - 15px);min-width:15px;height:15px;line-height:15px;font-size:12px;text-align:center;padding:2px;border-radius:15px;overflow:hidden;color:#333;background-color:#ffcb00}@media screen and (max-width:768px){.wp-core-ui .wp-core-ui-override .button{margin-bottom:unset}}.button-group{display:flex;flex-direction:row;justify-content:flex-start;border-radius:4px}.button-group button:first-of-type{border-right:0;border-radius:4px 0 0 4px!important}.button-group button:last-of-type{border-left:0;border-radius:0 4px 4px 0!important}.button-group button:not(:last-of-type):not(:first-of-type){margin-left:0;margin-right:0;border-radius:0}.button-group button:focus,.button-group button:hover{background:#f5f5f5}.button-group button:focus{box-shadow:inset 0 0 100px #007cba,0 0 0 1px rgba(0,0,0,.7)}.button-group button--selected{z-index:1}
4
- .ConnectAccount__root{display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}.ConnectAccount__prompt-msg{margin:20px 0;text-align:center}.ConnectAccount__prompt-msg:first-child{margin-top:0}.ConnectAccount__prompt-msg:last-child{margin-bottom:0}.ConnectAccount__types{display:flex;align-items:stretch;justify-content:space-between}.ConnectAccount__type{display:flex;flex-direction:column;width:48%;box-sizing:border-box}.ConnectAccount__types-rows{flex-direction:row}.ConnectAccount__types-columns{flex-direction:column}.ConnectAccount__types-columns .ConnectAccount__type{width:100%;margin-bottom:30px}.ConnectAccount__capabilities{list-style:none outside none;padding:0;margin:20px 0 0}.ConnectAccount__capability{display:flex;flex-direction:row;align-items:flex-start}.ConnectAccount__capability .dashicons{font-size:24px;width:24px;height:24px;line-height:24px;margin-right:4px;color:var(--sli-green)}.ConnectAccount__capability div{flex:1}.ConnectAccount__business-learn-more{margin-top:5px;line-height:20px}.ConnectAccount__business-learn-more .dashicons{font-size:20px;width:24px;height:24px;line-height:inherit;margin-right:4px;vertical-align:text-top;color:var(--sli-wp-blue)}.ConnectAccount__business-learn-more a{display:inline-block;line-height:inherit}.ConnectAccount__connect-access-token{margin-top:20px}
5
- .modal{position:absolute!important;position:fixed;padding:46px 0;box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:flex-start;z-index:100000}.modal,.modal__shade{top:0;left:0;right:0;bottom:0}.modal__shade{position:absolute!important;background:rgba(0,0,0,.3);z-index:99999}.modal__container{display:flex;flex-direction:column;max-height:100%;border-radius:10px;box-sizing:border-box;z-index:100000;background:#fff;box-shadow:0 5px 30px rgba(20,25,60,.32)}.modal--open .modal__container{-webkit-animation:modal-open-animation .1s 1 forwards;animation:modal-open-animation .1s 1 forwards}.modal--close .modal__container{-webkit-animation:modal-close-animation .12s 1 forwards;animation:modal-close-animation .12s 1 forwards}.modal__content,.modal__header{background:#fff}.modal__header{flex-grow:0;justify-content:space-between;box-shadow:inset 0 -1px 0 0 #d3d8dc}.modal__header,.modal__header h1{display:flex;flex-direction:row;align-items:center}.modal__header h1{color:#666;font-size:14px;font-weight:700;margin:0;padding:0 0 0 15px}.modal__icon{margin-right:8px}.modal__close-btn{font-size:14px;padding:12px 15px;color:#999;border:0;box-shadow:inset 1px 0 0 #d3d8dc;background:transparent;cursor:pointer}.modal__close-btn .dashicons{font-size:22px;width:22px;height:22px;line-height:22px}.modal__close-btn:hover{color:#555}.modal__close-btn:focus{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.modal__scroller{overflow-y:auto}.modal__content{padding:20px 30px 25px}.modal__footer{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start;padding:16px 30px;background:#f1f1f1;box-shadow:inset 0 1px 0 0 #d3d8dc}@media screen and (max-width:768px){.modal{padding:0}.modal__container{width:100%!important;height:100%!important;border-radius:0}.modal__footer{flex-grow:1}}@-webkit-keyframes modal-open-animation{0%{opacity:.5;transform:scale(.9)}50%{opacity:.7;transform:scale(1)}85%{opacity:.9;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}@keyframes modal-open-animation{0%{opacity:.5;transform:scale(.9)}50%{opacity:.7;transform:scale(1)}85%{opacity:.9;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}@-webkit-keyframes modal-close-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes modal-close-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}
6
- .ConnectAccessToken__root{display:block}.ConnectAccessToken__row{}.ConnectAccessToken__content{display:flex;flex-direction:column;align-items:stretch}.ConnectAccessToken__content:not(:last-of-type){margin-bottom:5px}.ConnectAccessToken__label{margin-bottom:8px}.ConnectAccessToken__bottom,.ConnectAccessToken__label{display:flex;flex-direction:row}.ConnectAccessToken__bottom{align-items:stretch}.ConnectAccessToken__bottom input{flex:5;padding-top:5px;padding-bottom:5px;margin-right:8px}.ConnectAccessToken__button-container{flex:1;display:flex;flex-direction:row;align-items:stretch;justify-content:flex-start}.ConnectAccessToken__button{width:100%;margin-bottom:0!important}.ConnectAccessToken__help-message{filter:grayscale(1);margin-top:8px}.ConnectAccessToken__column{}.ConnectAccessToken__column .ConnectAccessToken__bottom{flex-direction:column}.ConnectAccessToken__column .ConnectAccessToken__bottom input{flex:unset;margin-right:0;margin-bottom:8px}.ConnectAccessToken__column .ConnectAccessToken__button-container{align-items:center;justify-content:space-between}.ConnectAccessToken__column .ConnectAccessToken__button{width:unset;align-self:flex-end;padding:10px 18px}.ConnectAccessToken__column .ConnectAccessToken__help-message{margin-top:0}
7
- .spoiler{display:flex;flex-direction:column}.spoiler__header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:15px;border:1px solid;border-radius:0;background:#fff;cursor:pointer}.spoiler__header,.spoiler__header:active,.spoiler__header:hover{box-shadow:0 0 0 transparent}.spoiler__header,.spoiler__header:active,.spoiler__header:focus{border-color:#d3d8dc}.spoiler__header:focus{outline:0}.spoiler__header:focus .spoiler__label span:not(.dashicons){text-decoration:underline}.spoiler__label{flex-grow:1;flex-shrink:1;display:flex;flex-direction:row;align-items:center;color:#333;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.spoiler__label .dashicons{font-size:14px;width:14px;height:14px;line-height:14px;text-decoration:none;margin:5px}.spoiler__label .dashicons:first-child{margin-left:0}.spoiler__label .dashicons:last-child{margin-right:0}.spoiler__icon{flex-grow:0;flex-shrink:0}.spoiler__content{flex-grow:1;display:flex;flex-direction:column;padding:15px;background:#f5f5f5;border:1px solid #d3d8dc;border-top:0}.spoiler__content p{margin:0 0 10px}.spoiler__content p:last-of-type{margin-bottom:0}.spoiler .spoiler__content>p{margin:0 0 15px}.spoiler .spoiler__content>p:last-child{margin-bottom:0}.spoiler:not(.spoiler--open) .spoiler__content{display:none}.spoiler--stealth .spoiler__content,.spoiler--stealth .spoiler__header{border:0}.spoiler--stealth .spoiler__header{opacity:.8;padding:2px 0;font-weight:400;justify-content:flex-start;align-self:flex-start;background:transparent}.spoiler--stealth .spoiler__header:hover{opacity:.6}.spoiler--stealth .spoiler__header:focus{outline:1px dotted #333}.spoiler--stealth .spoiler__label{flex-grow:0;font-weight:400}.spoiler--stealth .spoiler__icon{font-size:18px;width:18px;height:18px;line-height:18px;margin-left:8px}.spoiler--stealth .spoiler__content{margin-top:8px;border-radius:3px;background:#fff;border:1px solid var(--sli-line-color)}.spoiler--stealth.spoiler--open .spoiler__header .spoiler__label>span:not(.dashicons){text-decoration:underline}.spoiler--disabled .spoiler__content,.spoiler--disabled .spoiler__header{opacity:.45;filter:grayscale(60%);pointer-events:none;cursor:not-allowed!important}.spoiler+.spoiler .spoiler__content,.spoiler+.spoiler .spoiler__header{border-top:0}.spoiler--fitted,.spoiler--fitted .spoiler__content,.spoiler--fitted .spoiler__header{border-left:0;border-right:0}.spoiler--static .spoiler__header{cursor:default}
8
- :root{--sli-yellow:#ffb83b;--sli-indigo:#564dd8;--sli-green:#3d8e34;--sli-cyan:#1898b2;--sli-teal:#429b93;--sli-pink:#d04186;--sli-blue:#0f69cb;--sli-gold:#ffbf00;--sli-orange:#ff9300;--sli-rouge:#d82442;--sli-grey:#999;--sli-dark:#191e23;--sli-wp-blue:#007cba;--sli-insta-purple:#595fcd;--sli-wp-grey:#f1f1f1;--sli-wp-light-grey:#f9f9f9;--sli-primary-color:var(--sli-wp-blue);--sli-secondary-color:var(--sli-yellow);--sli-tertiary-color:var(--sli-pink);--sli-pro-bg-color:#dd234b;--sli-pro-fg-color:#fff;--sli-focus-color:var(--sli-wp-blue);--sli-tooltip-color:var(--sli-dark);--sli-line-color:#d3d8dc;--sli-line-color-2:#e6e7e8;--sli-shade-color:rgba(0,0,0,0.3)}.theme__subtle-drop-shadow{box-shadow:0 1px 1px 1px #d3d8dc;box-shadow:0 1px 1px 1px var(--sli-line-color)}.theme__slightly-rounded{border-radius:4px}.theme__circle{border-radius:999999px}.theme__wp-grey-bg{background:#f1f1f1}
9
  :root{--sli-yellow:#ffb83b;--sli-indigo:#564dd8;--sli-green:#3d8e34;--sli-cyan:#1898b2;--sli-teal:#429b93;--sli-pink:#d04186;--sli-blue:#0f69cb;--sli-gold:#ffbf00;--sli-orange:#ff9300;--sli-rouge:#d82442;--sli-grey:#999;--sli-dark:#191e23;--sli-wp-blue:#007cba;--sli-insta-purple:#595fcd;--sli-wp-grey:#f1f1f1;--sli-wp-light-grey:#f9f9f9;--sli-primary-color:var(--sli-wp-blue);--sli-secondary-color:var(--sli-yellow);--sli-tertiary-color:var(--sli-pink);--sli-pro-bg-color:#dd234b;--sli-pro-fg-color:#fff;--sli-focus-color:var(--sli-wp-blue);--sli-tooltip-color:var(--sli-dark);--sli-line-color:#d3d8dc;--sli-line-color-2:#e6e7e8;--sli-shade-color:rgba(0,0,0,0.3)}.Table__table{width:100%;background:#fff;box-sizing:border-box;border-collapse:collapse;overflow:hidden}.Table__header{border-bottom:1px solid #d3d8dc;border-bottom:1px solid var(--sli-line-color)}.Table__footer{border-top:1px solid #d3d8dc;border-top:1px solid var(--sli-line-color)}.Table__cell{padding:10px 14px;box-sizing:border-box}.Table__col-heading{font-size:14px;font-weight:400}.Table__row{background:#fff}.Table__row:nth-child(odd){background:#f9f9f9;background:var(--sli-wp-light-grey)}.Table__align-left{text-align:left}.Table__align-right{text-align:right}.Table__align-center{text-align:center}
10
- .Message__message{display:flex;flex-direction:row;align-items:baseline;position:relative;padding:6px 8px;line-height:18px;background:#fff;border:1px solid;border-radius:3px}.Message__message:not(:first-child){margin-top:10px}.Message__message:not(:last-child){margin-bottom:10px}.Message__shaking{-webkit-animation:Message__shake-animation .2s;animation:Message__shake-animation .2s}.Message__icon{width:16px;margin-right:8px;flex-grow:0;flex-shrink:0;font-size:18px}.Message__content{flex-grow:1}.Message__dismiss-btn{color:#333;padding:0 1px;border:0;border-radius:100px;background:transparent;opacity:.5}.Message__dismiss-btn:hover{opacity:1}.Message__dismiss-btn:focus{box-shadow:0 0 0 2px var(--sli-focus-color)}@-webkit-keyframes Message__shake-animation{0%,20%,40%,60%,80%,to{transform:translateX(0)}30%,70%{transform:translateX(-2px)}10%,50%,90%{transform:translateX(2px)}}@keyframes Message__shake-animation{0%,20%,40%,60%,80%,to{transform:translateX(0)}30%,70%{transform:translateX(-2px)}10%,50%,90%{transform:translateX(2px)}}.Message__success{background:#ecf4eb;box-shadow:0 1px 2px rgba(37,85,31,.15);border-color:rgba(61,142,52,.4)}.Message__success .Message__dismiss-btn,.Message__success .Message__icon{color:#2e6b27}.Message__success .Message__content{color:#122b10}.Message__info{background:#e8f5f7;box-shadow:0 1px 2px rgba(14,91,107,.15);border-color:rgba(24,152,178,.4)}.Message__info .Message__dismiss-btn,.Message__info .Message__icon{color:#127286}.Message__info .Message__content{color:#072e35}.Message__warning{background:#fff4e6;box-shadow:0 1px 2px rgba(153,88,0,.15);border-color:rgba(255,147,0,.4)}.Message__warning .Message__dismiss-btn,.Message__warning .Message__icon{color:#bf6e00}.Message__warning .Message__content{color:#4d2c00}.Message__pro-tip{background:#eeeffa;box-shadow:0 1px 2px rgba(53,57,123,.15);border-color:rgba(89,95,205,.4)}.Message__pro-tip .Message__dismiss-btn,.Message__pro-tip .Message__icon{color:#43479a}.Message__pro-tip .Message__content{color:#1b1d3e}.Message__error{background:#fbe9ec;box-shadow:0 1px 2px rgba(130,22,40,.15);border-color:rgba(216,36,66,.4)}.Message__error .Message__dismiss-btn,.Message__error .Message__icon{color:#a21b32}.Message__error .Message__content{color:#410b14}
 
 
11
  .ModalPrompt__root p:first-child{margin-top:0}.ModalPrompt__root p:last-child{margin-bottom:0}.ModalPrompt__button:not(:last-of-type){margin-right:10px}
 
 
12
  .onboarding{display:flex;flex-direction:row;justify-content:center;align-items:stretch;width:75%;padding:50px 0;margin:0 auto;font-size:14px;-webkit-animation:onboarding-entrance .2s ease-out;animation:onboarding-entrance .2s ease-out;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.onboarding--transitioning{-webkit-animation:onboarding-transition .2s ease-out;animation:onboarding-transition .2s ease-out;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.onboarding>div{display:flex;flex-direction:column;justify-content:center;align-items:stretch}.onboarding>div:first-child{flex:5 1;justify-content:flex-start}.onboarding>div:not(:first-child){flex:3}.onboarding>div:not(:last-child){margin-right:5%}.onboarding h1{font-size:32px;font-weight:700;margin:0 0 20px}.onboarding__steps,.onboarding p{font-size:inherit;margin:0 0 30px}.onboarding__thin{max-width:300px}.onboarding__steps{list-style:none}.onboarding__steps li{margin-bottom:25px}.onboarding__help-msg{opacity:.6;filter:grayscale(1)}.onboarding__pro-tip>span:first-child{margin-right:5px}.onboarding__pro-tip>span:first-child>.dashicons{margin-right:3px;margin-left:-5px}.onboarding__hero-button{width:100%;box-sizing:border-box;margin-bottom:30px!important}@media screen and (max-width:1400px){.onboarding{width:85%}.onboarding h1{font-size:28px}}@media screen and (max-width:1024px){.onboarding{width:95%}.onboarding__thin{max-width:unset}}@media screen and (max-width:768px){.onboarding{flex-direction:column;justify-content:flex-start;align-items:stretch;width:100%;padding-top:10px}.onboarding>div:not(:last-child){margin-bottom:30px}.onboarding__call-to-action{max-width:unset}}@-webkit-keyframes onboarding-entrance{0%{opacity:0}to{opacity:1}}@keyframes onboarding-entrance{0%{opacity:0}to{opacity:1}}@-webkit-keyframes onboarding-transition{0%{opacity:1}to{opacity:0;transform:translateX(-50px)}}@keyframes onboarding-transition{0%{opacity:1}to{opacity:0;transform:translateX(-50px)}}
13
 
14
  .UnitField__root{justify-content:flex-start;align-items:stretch;border:1px solid var(--sli-line-color);border-radius:2px;box-sizing:border-box;width:100%}.UnitField__root:focus-within{box-shadow:0 0 0 2px var(--sli-focus-color)}.UnitField__input{flex:2;min-width:50px!important;margin:0!important;border-radius:0!important}.UnitField__input,.UnitField__input:focus{border:0!important;outline:0!important;box-shadow:0 0 0 transparent!important}.UnitField__unit-container{flex:0 1;justify-content:stretch;align-items:stretch}.UnitField__unit-container .menu__ref{height:100%}.UnitField__unit-bubble{padding:3px 7px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.UnitField__unit-static{justify-content:center}.UnitField__unit-selector{align-items:center;justify-content:space-around;position:relative;cursor:pointer;line-height:20px}.UnitField__unit-selector:focus{outline:1px dotted #000}.UnitField__current-unit{flex:1;margin-left:2px}.UnitField__menu-chevron{flex:0;font-size:18px;width:20px;height:20px;vertical-align:middle;margin:3px 0 0 5px;color:var(--sli-grey)}.UnitField__menu-chevron-open{color:var(--sli-dark)}.UnitField__unit-list{position:absolute;top:calc(100% + 2px);left:0;border:1px solid var(--sli-line-color);border-radius:2px;background:#fff;overflow:hidden}.UnitField__unit-option{color:inherit;background:transparent;padding:7px 13px}.UnitField__unit-option:hover{background:var(--sli-wp-grey)}.UnitField__unit-selected{color:#fff}.UnitField__unit-selected,.UnitField__unit-selected:hover{background:var(--sli-primary-color)}
15
  .menu{padding:0;margin:0;z-index:1000}.menu__ref{display:flex;flex-direction:row;justify-content:stretch}.menu__container{position:relative;line-height:28px;padding:6px 0;background:#fff;box-shadow:0 0 15px rgba(20,25,60,.32);border-radius:4px;max-height:80%;overflow-x:hidden;overflow-y:auto}.menu[data-placement*=bottom] .menu__container{top:10px}.menu[data-placement*=top] .menu__container{bottom:10px}.menu[data-placement*=left] .menu__container{right:10px}.menu[data-placement*=right] .menu__container{left:10px}.menu__list{display:flex;flex-direction:column}.menu__item{display:block}.menu__item button{position:relative;color:#333;background:#e9eaed;border-radius:3px;box-sizing:border-box;text-align:center;cursor:pointer;width:100%;border:0;line-height:22px!important;padding:7px 28px;border-radius:0;background:transparent;text-align:left}.menu__item button:focus{outline:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.7);border-color:rgba(0,0,0,.7)}.menu__item button:focus span{text-decoration:underline}.menu__item button:focus .dashicons{text-decoration:none!important}.menu__item button .dashicons{margin-right:4px}.menu__item button:hover{outline:0;background:#edeef1}.menu__item button:active{box-shadow:inset 0 0 200px rgba(35,45,78,.15)}.menu__item button .dashicons{vertical-align:middle;margin-right:5px}.menu__item--disabled{opacity:.7;pointer-events:none}.menu__item--active{font-weight:700}.menu__separator{display:block;width:100%;margin:6px 0;border-bottom:1px solid #e1e2e3}.menu__static{padding:3px 28px}.menu__heading,.menu__static{display:block;text-align:left}.menu__heading{color:#777;font-size:12px;padding:0 14px;margin-bottom:3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
 
16
  .ClearCacheButton__root{align-items:center}.ClearCacheButton__doc-link{margin-left:10px}
17
- .button__toggle-button{position:relative;box-sizing:border-box;color:#000;background:#fafafa;border:1px solid var(--sli-line-color);border-radius:4px;text-align:center;cursor:pointer}.button__toggle-button:hover{background:var(--sli-wp-light-grey)}.button__toggle-button:active{background:#fff}.button__toggle-button:focus{border-color:var(--sli-primary-color);box-shadow:0 0 0 1px var(--sli-primary-color)}.button__toggle-button-on{}.button__toggle-button-on,.button__toggle-button-on:active,.button__toggle-button-on:focus,.button__toggle-button-on:hover{color:#fff;background:var(--sli-primary-color);border-color:var(--sli-primary-color)}.button__toggle-button-on:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--sli-primary-color)}
 
 
18
  .unit-input{position:relative;display:flex;flex-direction:row;align-items:stretch;padding:0;border-radius:3px}.unit-input,.unit-input__field{width:100%;margin:0;box-sizing:border-box}.unit-input__field{flex-grow:1;flex-shrink:1;display:block;padding-right:50px!important}.unit-input__unit{flex-grow:0;flex-shrink:0;position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;top:1px;bottom:1px;right:1px;width:50px;border-radius:0 3px 3px 0;box-sizing:border-box;margin:0;padding:0;color:#444;background:#e6f2f8;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
19
  :root{--sli-color-picker-padding:5px;--sli-color-picker-alpha-grid-size:14px;--sli-color-picker-inner-shadow:0 0 0 5px #fff inset}.ColorPicker__button{position:relative;padding:7px 12px;width:100%;height:36px;border:1px solid var(--sli-line-color);border-radius:3px;cursor:pointer}.ColorPicker__button,.ColorPicker__button:active,.ColorPicker__button:focus,.ColorPicker__button:hover{background-size:14px;background-size:var(--sli-color-picker-alpha-grid-size);background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSIVUYuoOGSoThZERRy1CkWoEGqFVh1MLv2CJg1Jiouj4Fpw8GOx6uDirKuDqyAIfoA4OTopukiJ/0sKLWI9OO7Hu3uPu3eAUC0yzWobBzTdNhOxqJhKr4qBVwjoRQ/6MSgzy5iTpDhajq97+Ph6F+FZrc/9ObrUjMUAn0g8ywzTJt4gnt60Dc77xCGWl1Xic+Ixky5I/Mh1xeM3zjmXBZ4ZMpOJeeIQsZhrYqWJWd7UiKeIw6qmU76Q8ljlvMVZK5ZZ/Z78hcGMvrLMdZrDiGERS5AgQkEZBRRhI0KrToqFBO1HW/iHXL9ELoVcBTByLKAEDbLrB/+D391a2ckJLykYBdpfHOdjBAjsArWK43wfO07tBPA/A1d6w1+qAjOfpFcaWvgI6N4GLq4bmrIHXO4AA0+GbMqu5KcpZLPA+xl9UxrouwU617ze6vs4fQCS1FX8Bjg4BEZzlL3e4t0dzb39e6be3w88D3KRJNOW/QAAAAZiS0dEACcAAAAB/aV4/QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+QCEhEhKGUfSx4AAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMElEQVQ4y2M8cuTIfwY8INnGlhGfPBMDhWDUgMFgAKM6A95oZph75PD/0UAc9gYAAER7B5JZPHhAAAAAAElFTkSuQmCC") 5px,5px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSIVUYuoOGSoThZERRy1CkWoEGqFVh1MLv2CJg1Jiouj4Fpw8GOx6uDirKuDqyAIfoA4OTopukiJ/0sKLWI9OO7Hu3uPu3eAUC0yzWobBzTdNhOxqJhKr4qBVwjoRQ/6MSgzy5iTpDhajq97+Ph6F+FZrc/9ObrUjMUAn0g8ywzTJt4gnt60Dc77xCGWl1Xic+Ixky5I/Mh1xeM3zjmXBZ4ZMpOJeeIQsZhrYqWJWd7UiKeIw6qmU76Q8ljlvMVZK5ZZ/Z78hcGMvrLMdZrDiGERS5AgQkEZBRRhI0KrToqFBO1HW/iHXL9ELoVcBTByLKAEDbLrB/+D391a2ckJLykYBdpfHOdjBAjsArWK43wfO07tBPA/A1d6w1+qAjOfpFcaWvgI6N4GLq4bmrIHXO4AA0+GbMqu5KcpZLPA+xl9UxrouwU617ze6vs4fQCS1FX8Bjg4BEZzlL3e4t0dzb39e6be3w88D3KRJNOW/QAAAAZiS0dEACcAAAAB/aV4/QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+QCEhEhKGUfSx4AAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMElEQVQ4y2M8cuTIfwY8INnGlhGfPBMDhWDUgMFgAKM6A95oZph75PD/0UAc9gYAAER7B5JZPHhAAAAAAElFTkSuQmCC") var(--sli-color-picker-padding),var(--sli-color-picker-padding)}.ColorPicker__button,.ColorPicker__button:active,.ColorPicker__button:focus{box-shadow:inset 0 0 0 5px #fff;box-shadow:var(--sli-color-picker-inner-shadow)}.ColorPicker__button:focus{outline:0;box-shadow:0 0 0 5px #fff inset,0 0 0 2px var(--sli-focus-color)!important;box-shadow:var(--sli-color-picker-inner-shadow),0 0 0 2px var(--sli-focus-color)!important}.ColorPicker__color-preview{position:absolute;top:4px;top:calc(var(--sli-color-picker-padding) - 1px);bottom:4px;bottom:calc(var(--sli-color-picker-padding) - 1px);left:4px;left:calc(var(--sli-color-picker-padding) - 1px);right:4px;right:calc(var(--sli-color-picker-padding) - 1px)}.ColorPicker__popper{z-index:100}
20
  .checkbox-list{display:flex;flex-direction:column;padding-bottom:10px}.checkbox-list__option{display:flex;flex-direction:row;align-items:center;margin-bottom:-12px;padding:10px 0}.checkbox-list__option>input{flex-grow:0;flex-shrink:0}.checkbox-list__option>span{flex-grow:1}.checkbox-list__option--disabled span{opacity:.45;filter:grayscale(60%);pointer-events:none;cursor:not-allowed!important}.checkbox-list__pro-pill{position:relative;left:10px}@media screen and (max-width:768px){.checkbox-list__option{margin-bottom:0}}
21
  .checkbox-field{display:flex;flex-direction:column;justify-content:center;min-height:40px;padding:10px 0;box-sizing:border-box}.checkbox-field__aligner{display:flex;flex-direction:row}
22
  .HelpTooltip__root{display:inline-flex;flex-direction:column;justify-content:center}.HelpTooltip__tooltip{}.HelpTooltip__tooltip-container{text-align:left;padding-top:7px;padding-bottom:7px}.HelpTooltip__tooltip-content p{margin:0 0 5px}.HelpTooltip__tooltip-content p:last-child{margin-bottom:0}.HelpTooltip__tooltip-content img{max-width:100%;margin:5px 0;border-radius:2px}.HelpTooltip__tooltip-content img:first-child{margin-top:0}.HelpTooltip__tooltip-content img:last-child{margin-bottom:0}.HelpTooltip__icon{height:18px;line-height:18px}.HelpTooltip__icon .dashicons{font-size:16px;width:16px;height:16px;line-height:16px;vertical-align:bottom}
23
  .SaveButton__root{padding-left:20px!important;padding-right:20px!important}.SaveButton__saving-overlay{position:absolute;opacity:.7;background-image:linear-gradient(-45deg,hsla(0,0%,100%,.5) 28%,transparent 0,transparent 72%,hsla(0,0%,100%,.5) 0);background-position:100px 0;background-size:100px 100%;-webkit-animation:SaveButton__saving-animation 1s linear infinite;animation:SaveButton__saving-animation 1s linear infinite}@-webkit-keyframes SaveButton__saving-animation{0%{background-position:0 0}}@keyframes SaveButton__saving-animation{0%{background-position:0 0}}
 
24
  .radio-group{display:flex;flex-direction:column}.radio-group--disabled{opacity:.45;filter:grayscale(60%);pointer-events:none;cursor:not-allowed!important}.radio-group__option{display:flex;flex-direction:row;margin:5px 0}
 
25
  .loading-spinner{display:inline-block;border-radius:9999px;-webkit-animation:preview-spinner-animation 1s linear infinite;animation:preview-spinner-animation 1s linear infinite}@-webkit-keyframes preview-spinner-animation{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes preview-spinner-animation{0%{transform:rotate(0)}to{transform:rotate(1turn)}}
26
  .Toaster__root{position:absolute;top:60px;left:30px;right:8px;flex-direction:row;pointer-events:none}.Toaster__container,.Toaster__root{display:flex;justify-content:flex-end}.Toaster__container{width:300px;flex-direction:column-reverse;overflow-y:visible;pointer-events:all}
27
  .Toast__root{display:flex;flex-direction:row;max-width:100%;padding:10px 24px;color:#fff;font-size:13px;line-height:20px;border-radius:3px;background:#32373c;box-shadow:0 0 5px rgba(0,0,0,.3);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-name:Toast__fade-in-animation;animation-name:Toast__fade-in-animation}.Toast__root:not(:last-of-type){margin-top:10px}.Toast__root-fading-out{-webkit-animation-name:Toast__fade-out-animation;animation-name:Toast__fade-out-animation}.Toast__content{flex:1}.Toast__content p{margin:2px;line-height:inherit}.Toast__content code{margin:8px 0;padding:3px 8px;background:hsla(0,0%,100%,.1);line-height:inherit}.Toast__content a{color:#fff!important}.Toast__dismiss-icon{--size:24px;width:24px;height:24px;font-size:var(--size)}.Toast__dismiss-btn{background:transparent;color:#fff;padding:0;margin:0;border:0!important;outline:0!important;box-shadow:0 0 transparent}@-webkit-keyframes Toast__fade-in-animation{0%{transform:translateX(20px);opacity:0}to{transform:translateX(0);opacity:1}}@keyframes Toast__fade-in-animation{0%{transform:translateX(20px);opacity:0}to{transform:translateX(0);opacity:1}}@-webkit-keyframes Toast__fade-out-animation{0%{transform:translateX(0);opacity:1}to{transform:translateX(60px);opacity:0}}@keyframes Toast__fade-out-animation{0%{transform:translateX(0);opacity:1}to{transform:translateX(60px);opacity:0}}
28
- :root{--sli-navbar-font-size:14px;--sli-navbar-spacing:16px;--sli-navbar-logo-size:100px;--sli-navbar-height:52px}.Navbar__root{justify-content:space-between;position:relative;width:100%;font-size:14px;font-size:var(--sli-navbar-font-size);padding:0 16px;padding:0 var(--sli-navbar-spacing);background:#fff;box-shadow:0 1px 1px var(--sli-line-color);box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.Navbar__container,.Navbar__root{align-items:stretch}.Navbar__container{flex:1}.Navbar__left-container{justify-content:flex-start}.Navbar__right-container{justify-content:flex-end}.Navbar__right-container:not(:empty){margin-left:16px;margin-left:var(--sli-navbar-spacing)}.Navbar__child{margin-right:16px;margin-right:var(--sli-navbar-spacing)}.Navbar__child:last-child{margin-right:0}.Navbar__item{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:inherit;white-space:nowrap}.Navbar__item>*{flex:1}.Navbar__item>:not(.Navbar__disabled):focus{outline:1px dotted #000;box-shadow:0 0 transparent}.Navbar__chevron{flex-shrink:0;width:10px;height:40%;align-self:center;color:var(--sli-line-color)}.Navbar__chevron svg{stroke-width:8}.Navbar__link{position:relative;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 8px;margin:0 -8px}.Navbar__link,.Navbar__link:active,.Navbar__link:focus,.Navbar__link:hover{color:inherit;text-decoration:none}.Navbar__link:not(.Navbar__disabled){cursor:pointer}.Navbar__link.Navbar__disabled>*{opacity:.5}.Navbar__link.Navbar__disabled>.Navbar__pro-pill{opacity:1}.Navbar__link:after{content:" ";position:absolute;bottom:0;left:0;right:0;height:0;background-color:var(--sli-primary-color);transition:height .05s}.Navbar__link.Navbar__current{font-weight:700}.Navbar__link.Navbar__current:after{height:3px}.Navbar__pro-pill{position:relative;top:-10px;left:1px;margin-right:-4px}.Navbar__button-container{padding:7px 0}@media (--medium-screen){:root{--sli-navbar-spacing:20px;--sli-navbar-font-size:14px;--sli-navbar-logo-size:90px}}@media (--small-screen){:root{--sli-navbar-spacing:16px;--sli-navbar-font-size:13px;--sli-navbar-logo-size:80px}}@media (--tiny-screen){:root{--sli-navbar-spacing:13px;--sli-navbar-font-size:12px;--sli-navbar-logo-size:60px}}
29
  .LogoNewsMenu__logo{position:relative;display:block;height:var(--sli-navbar-height);max-height:100%;padding:8px 0;box-sizing:border-box;cursor:pointer}.LogoNewsMenu__logo:focus{outline:1px dotted #000}.LogoNewsMenu__logo-image{height:100%;-o-object-fit:contain;object-fit:contain;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.LogoNewsMenu__counter{position:absolute;top:5px;right:-13px;width:8px;height:8px;line-height:7px;padding:4px;font-size:10px;font-weight:700;text-align:center;color:#fff;background:var(--sli-primary-color);box-shadow:0 1px 1px 1px rgba(0,0,0,.1);border-radius:99999px}
30
  .NotificationMenu__menu{width:400px}
31
  .Notification__root{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:10px 5px;margin:0 10px}.Notification__root:not(:last-of-type){border-bottom:1px solid var(--sli-line-color)}.Notification__text{line-height:1.5em;white-space:pre-wrap}.Notification__title{font-size:14px;font-weight:700;margin-bottom:5px}.Notification__content{display:flex;flex-direction:column;font-size:13px}.Notification__content p{margin:0}.Notification__date{margin-top:5px;font-size:12px;font-weight:700;opacity:.7}
32
  .ErrorToast__content{white-space:pre-wrap;word-break:break-word}
 
 
 
 
1
+ .ConnectAccountButton__root .dashicons{font-size:23px;width:23px;height:23px;line-height:20px;vertical-align:middle;margin-right:5px}
2
+ .wp-core-ui.wp-core-ui-override pre,.wp-core-ui .wp-core-ui-override pre{display:block}.wp-core-ui.wp-core-ui-override code,.wp-core-ui .wp-core-ui-override code{display:inline-block}.wp-core-ui.wp-core-ui-override input:not([type]),.wp-core-ui.wp-core-ui-override input[type=date],.wp-core-ui.wp-core-ui-override input[type=email],.wp-core-ui.wp-core-ui-override input[type=number],.wp-core-ui.wp-core-ui-override input[type=password],.wp-core-ui.wp-core-ui-override input[type=search],.wp-core-ui.wp-core-ui-override input[type=text],.wp-core-ui.wp-core-ui-override input[type=time],.wp-core-ui.wp-core-ui-override select,.wp-core-ui .wp-core-ui-override input:not([type]),.wp-core-ui .wp-core-ui-override input[type=date],.wp-core-ui .wp-core-ui-override input[type=email],.wp-core-ui .wp-core-ui-override input[type=number],.wp-core-ui .wp-core-ui-override input[type=password],.wp-core-ui .wp-core-ui-override input[type=search],.wp-core-ui .wp-core-ui-override input[type=text],.wp-core-ui .wp-core-ui-override input[type=time],.wp-core-ui .wp-core-ui-override select{padding:0 10px;color:#000;border:1px solid var(--sli-line-color);border-radius:3px;background:#fff;min-height:40px;font-size:13px}.wp-core-ui.wp-core-ui-override input:not([type]):focus,.wp-core-ui.wp-core-ui-override input[type=date]:focus,.wp-core-ui.wp-core-ui-override input[type=email]:focus,.wp-core-ui.wp-core-ui-override input[type=number]:focus,.wp-core-ui.wp-core-ui-override input[type=password]:focus,.wp-core-ui.wp-core-ui-override input[type=search]:focus,.wp-core-ui.wp-core-ui-override input[type=text]:focus,.wp-core-ui.wp-core-ui-override input[type=time]:focus,.wp-core-ui.wp-core-ui-override select:focus,.wp-core-ui .wp-core-ui-override input:not([type]):focus,.wp-core-ui .wp-core-ui-override input[type=date]:focus,.wp-core-ui .wp-core-ui-override input[type=email]:focus,.wp-core-ui .wp-core-ui-override input[type=number]:focus,.wp-core-ui .wp-core-ui-override input[type=password]:focus,.wp-core-ui .wp-core-ui-override input[type=search]:focus,.wp-core-ui .wp-core-ui-override input[type=text]:focus,.wp-core-ui .wp-core-ui-override input[type=time]:focus,.wp-core-ui .wp-core-ui-override select:focus{border-color:var(--sli-wp-blue);background-color:#fff;box-shadow:0 0 0 1px var(--sli-wp-blue)}.wp-core-ui.wp-core-ui-override input:not([type])::-moz-placeholder,.wp-core-ui.wp-core-ui-override input[type=date]::-moz-placeholder,.wp-core-ui.wp-core-ui-override input[type=email]::-moz-placeholder,.wp-core-ui.wp-core-ui-override input[type=number]::-moz-placeholder,.wp-core-ui.wp-core-ui-override input[type=password]::-moz-placeholder,.wp-core-ui.wp-core-ui-override input[type=search]::-moz-placeholder,.wp-core-ui.wp-core-ui-override input[type=text]::-moz-placeholder,.wp-core-ui.wp-core-ui-override input[type=time]::-moz-placeholder,.wp-core-ui.wp-core-ui-override select::-moz-placeholder,.wp-core-ui .wp-core-ui-override input:not([type])::-moz-placeholder,.wp-core-ui .wp-core-ui-override input[type=date]::-moz-placeholder,.wp-core-ui .wp-core-ui-override input[type=email]::-moz-placeholder,.wp-core-ui .wp-core-ui-override input[type=number]::-moz-placeholder,.wp-core-ui .wp-core-ui-override input[type=password]::-moz-placeholder,.wp-core-ui .wp-core-ui-override input[type=search]::-moz-placeholder,.wp-core-ui .wp-core-ui-override input[type=text]::-moz-placeholder,.wp-core-ui .wp-core-ui-override input[type=time]::-moz-placeholder,.wp-core-ui .wp-core-ui-override select::-moz-placeholder{color:#72777c;opacity:1}.wp-core-ui.wp-core-ui-override input:not([type]):-ms-input-placeholder,.wp-core-ui.wp-core-ui-override input[type=date]:-ms-input-placeholder,.wp-core-ui.wp-core-ui-override input[type=email]:-ms-input-placeholder,.wp-core-ui.wp-core-ui-override input[type=number]:-ms-input-placeholder,.wp-core-ui.wp-core-ui-override input[type=password]:-ms-input-placeholder,.wp-core-ui.wp-core-ui-override input[type=search]:-ms-input-placeholder,.wp-core-ui.wp-core-ui-override input[type=text]:-ms-input-placeholder,.wp-core-ui.wp-core-ui-override input[type=time]:-ms-input-placeholder,.wp-core-ui.wp-core-ui-override select:-ms-input-placeholder,.wp-core-ui .wp-core-ui-override input:not([type]):-ms-input-placeholder,.wp-core-ui .wp-core-ui-override input[type=date]:-ms-input-placeholder,.wp-core-ui .wp-core-ui-override input[type=email]:-ms-input-placeholder,.wp-core-ui .wp-core-ui-override input[type=number]:-ms-input-placeholder,.wp-core-ui .wp-core-ui-override input[type=password]:-ms-input-placeholder,.wp-core-ui .wp-core-ui-override input[type=search]:-ms-input-placeholder,.wp-core-ui .wp-core-ui-override input[type=text]:-ms-input-placeholder,.wp-core-ui .wp-core-ui-override input[type=time]:-ms-input-placeholder,.wp-core-ui .wp-core-ui-override select:-ms-input-placeholder{color:#72777c;opacity:1}.wp-core-ui.wp-core-ui-override input:not([type])::placeholder,.wp-core-ui.wp-core-ui-override input[type=date]::placeholder,.wp-core-ui.wp-core-ui-override input[type=email]::placeholder,.wp-core-ui.wp-core-ui-override input[type=number]::placeholder,.wp-core-ui.wp-core-ui-override input[type=password]::placeholder,.wp-core-ui.wp-core-ui-override input[type=search]::placeholder,.wp-core-ui.wp-core-ui-override input[type=text]::placeholder,.wp-core-ui.wp-core-ui-override input[type=time]::placeholder,.wp-core-ui.wp-core-ui-override select::placeholder,.wp-core-ui .wp-core-ui-override input:not([type])::placeholder,.wp-core-ui .wp-core-ui-override input[type=date]::placeholder,.wp-core-ui .wp-core-ui-override input[type=email]::placeholder,.wp-core-ui .wp-core-ui-override input[type=number]::placeholder,.wp-core-ui .wp-core-ui-override input[type=password]::placeholder,.wp-core-ui .wp-core-ui-override input[type=search]::placeholder,.wp-core-ui .wp-core-ui-override input[type=text]::placeholder,.wp-core-ui .wp-core-ui-override input[type=time]::placeholder,.wp-core-ui .wp-core-ui-override select::placeholder{color:#72777c;opacity:1}.wp-core-ui.wp-core-ui-override input[type=checkbox],.wp-core-ui.wp-core-ui-override input[type=radio],.wp-core-ui .wp-core-ui-override input[type=checkbox],.wp-core-ui .wp-core-ui-override input[type=radio]{margin:0 8px 0 0}.wp-core-ui.wp-core-ui-override select,.wp-core-ui .wp-core-ui-override select{display:inline-block;height:26px;box-sizing:content-box}.wp-core-ui.wp-core-ui-override .dashicons,.wp-core-ui .wp-core-ui-override .dashicons{transition:none}.wp-core-ui.wp-core-ui-override .dashicons:focus,.wp-core-ui .wp-core-ui-override .dashicons:focus{outline:0}.wp-core-ui.wp-core-ui-override a:not(.button),.wp-core-ui .wp-core-ui-override a:not(.button){color:#0073aa}.wp-core-ui.wp-core-ui-override a:not(.button):active,.wp-core-ui.wp-core-ui-override a:not(.button):hover,.wp-core-ui .wp-core-ui-override a:not(.button):active,.wp-core-ui .wp-core-ui-override a:not(.button):hover{color:#006799}.wp-core-ui.wp-core-ui-override a:not(.button):focus,.wp-core-ui .wp-core-ui-override a:not(.button):focus{color:#124964}.wp-core-ui.wp-core-ui-override hr,.wp-core-ui .wp-core-ui-override hr{border:0;border-top:1px solid #ddd;border-bottom:1px solid #fafafa}.wp-core-ui.wp-core-ui-override p,.wp-core-ui .wp-core-ui-override p{font-size:13px;line-height:1.5}.wp-core-ui.wp-core-ui-override ol,.wp-core-ui.wp-core-ui-override ul,.wp-core-ui .wp-core-ui-override ol,.wp-core-ui .wp-core-ui-override ul{margin-bottom:13px}.wp-core-ui.wp-core-ui-override ol,.wp-core-ui .wp-core-ui-override ol{list-style-type:decimal;margin-left:2em}.wp-core-ui.wp-core-ui-override ol li,.wp-core-ui .wp-core-ui-override ol li{list-style-type:decimal}.wp-core-ui.wp-core-ui-override dd,.wp-core-ui.wp-core-ui-override li,.wp-core-ui .wp-core-ui-override dd,.wp-core-ui .wp-core-ui-override li{margin-bottom:6px}.wp-core-ui.wp-core-ui-override .react-select input[type=text],.wp-core-ui .wp-core-ui-override .react-select input[type=text]{min-height:unset!important;border:0!important;background:transparent!important;box-shadow:0 0 0 transparent!important}
3
  :root{--sli-tooltip-offset:10px;--sli-tooltip-arrow-size:18px;--sli-tooltip-border:9px;--sli-tooltip-margin:-8px}.Tooltip__root{font-size:13px;pointer-events:none}.Tooltip__container{position:relative;color:#fff;background:var(--sli-tooltip-color);padding:5px 15px 6px;text-align:center;border-radius:2px;line-height:20px}.Tooltip__container-top{bottom:10px;bottom:var(--sli-tooltip-offset)}.Tooltip__container-bottom{top:10px;top:var(--sli-tooltip-offset)}.Tooltip__container-left{right:10px;right:var(--sli-tooltip-offset)}.Tooltip__container-right{left:10px;left:var(--sli-tooltip-offset)}.Tooltip__content code{display:inline-block;padding:0 4px;border-radius:2px;background:rgba(255,255,225,.2)}.Tooltip__arrow{position:absolute;width:18px;width:var(--sli-tooltip-arrow-size);height:18px;height:var(--sli-tooltip-arrow-size)}.Tooltip__arrow:before{content:"";display:block;margin:auto;width:0;height:0;border:9px solid transparent;border-width:var(--sli-tooltip-border)}.Tooltip__arrow-top{bottom:0;left:0;margin-bottom:-8px;margin-bottom:var(--sli-tooltip-margin)}.Tooltip__arrow-top:before{margin-top:9px;margin-top:var(--sli-tooltip-border);border-bottom-width:0;border-top-color:var(--sli-tooltip-color)}.Tooltip__arrow-bottom{top:0;left:0;margin-top:-8px;margin-top:var(--sli-tooltip-margin)}.Tooltip__arrow-bottom:before{border-top-width:0;border-bottom-color:var(--sli-tooltip-color)}.Tooltip__arrow-left{right:0;margin-right:-8px;margin-right:var(--sli-tooltip-margin)}.Tooltip__arrow-left:before{margin-left:9px;margin-left:var(--sli-tooltip-border);border-right-width:0;border-left-color:var(--sli-tooltip-color)}.Tooltip__arrow-right{left:0;margin-left:-8px;margin-left:var(--sli-tooltip-margin)}.Tooltip__arrow-right:before{margin-right:9px;margin-right:var(--sli-tooltip-border);border-left-width:0;border-right-color:var(--sli-tooltip-color)}
4
+ :root{--sli-yellow:#ffb83b;--sli-indigo:#564dd8;--sli-green:#3d8e34;--sli-cyan:#1898b2;--sli-teal:#429b93;--sli-pink:#d04186;--sli-blue:#0f69cb;--sli-gold:#ffbf00;--sli-orange:#ff9300;--sli-rouge:#d82442;--sli-grey:#999;--sli-dark:#191e23;--sli-wp-blue:#007cba;--sli-insta-purple:#595fcd;--sli-wp-grey:#f1f1f1;--sli-wp-light-grey:#f9f9f9;--sli-primary-color:var(--sli-wp-blue);--sli-secondary-color:var(--sli-yellow);--sli-tertiary-color:var(--sli-pink);--sli-pro-bg-color:#dd234b;--sli-pro-fg-color:#fff;--sli-focus-color:var(--sli-wp-blue);--sli-tooltip-color:var(--sli-dark);--sli-line-color:#d3d8dc;--sli-line-color-2:#e6e7e8;--sli-shade-color:rgba(0,0,0,0.3)}.theme__subtle-drop-shadow{box-shadow:0 1px 1px 1px #d3d8dc;box-shadow:0 1px 1px 1px var(--sli-line-color)}.theme__slightly-rounded{border-radius:4px}.theme__circle{border-radius:999999px}.theme__wp-grey-bg{background:#f1f1f1}.theme__panel{position:relative;box-sizing:border-box;color:#000;background:#fafafa;border:1px solid #d3d8dc;border:1px solid var(--sli-line-color);border-radius:4px;padding:10px 15px}
 
 
 
 
 
5
  :root{--sli-yellow:#ffb83b;--sli-indigo:#564dd8;--sli-green:#3d8e34;--sli-cyan:#1898b2;--sli-teal:#429b93;--sli-pink:#d04186;--sli-blue:#0f69cb;--sli-gold:#ffbf00;--sli-orange:#ff9300;--sli-rouge:#d82442;--sli-grey:#999;--sli-dark:#191e23;--sli-wp-blue:#007cba;--sli-insta-purple:#595fcd;--sli-wp-grey:#f1f1f1;--sli-wp-light-grey:#f9f9f9;--sli-primary-color:var(--sli-wp-blue);--sli-secondary-color:var(--sli-yellow);--sli-tertiary-color:var(--sli-pink);--sli-pro-bg-color:#dd234b;--sli-pro-fg-color:#fff;--sli-focus-color:var(--sli-wp-blue);--sli-tooltip-color:var(--sli-dark);--sli-line-color:#d3d8dc;--sli-line-color-2:#e6e7e8;--sli-shade-color:rgba(0,0,0,0.3)}.Table__table{width:100%;background:#fff;box-sizing:border-box;border-collapse:collapse;overflow:hidden}.Table__header{border-bottom:1px solid #d3d8dc;border-bottom:1px solid var(--sli-line-color)}.Table__footer{border-top:1px solid #d3d8dc;border-top:1px solid var(--sli-line-color)}.Table__cell{padding:10px 14px;box-sizing:border-box}.Table__col-heading{font-size:14px;font-weight:400}.Table__row{background:#fff}.Table__row:nth-child(odd){background:#f9f9f9;background:var(--sli-wp-light-grey)}.Table__align-left{text-align:left}.Table__align-right{text-align:right}.Table__align-center{text-align:center}
6
+ .modal{position:absolute!important;position:fixed;padding:46px 0;box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:flex-start;z-index:100000}.modal,.modal__shade{top:0;left:0;right:0;bottom:0}.modal__shade{position:absolute!important;background:rgba(0,0,0,.3);z-index:99999}.modal__container{display:flex;flex-direction:column;max-height:100%;border-radius:10px;box-sizing:border-box;z-index:100000;background:#fff;box-shadow:0 5px 30px rgba(20,25,60,.32)}.modal--open .modal__container{-webkit-animation:modal-open-animation .1s 1 forwards;animation:modal-open-animation .1s 1 forwards}.modal--close .modal__container{-webkit-animation:modal-close-animation .12s 1 forwards;animation:modal-close-animation .12s 1 forwards}.modal__content,.modal__header{background:#fff}.modal__header{flex-grow:0;justify-content:space-between;box-shadow:inset 0 -1px 0 0 #d3d8dc}.modal__header,.modal__header h1{display:flex;flex-direction:row;align-items:center}.modal__header h1{color:#666;font-size:14px;font-weight:700;margin:0;padding:0 0 0 15px}.modal__icon{margin-right:8px}.modal__close-btn{font-size:14px;padding:12px 15px;color:#999;border:0;box-shadow:inset 1px 0 0 #d3d8dc;background:transparent;cursor:pointer}.modal__close-btn .dashicons{font-size:22px;width:22px;height:22px;line-height:22px}.modal__close-btn:hover{color:#555}.modal__close-btn:focus{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.modal__scroller{overflow-y:auto}.modal__content{padding:20px 30px 25px}.modal__footer{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start;padding:16px 30px;background:#f1f1f1;box-shadow:inset 0 1px 0 0 #d3d8dc}@media screen and (max-width:768px){.modal{padding:0}.modal__container{width:100%!important;height:100%!important;border-radius:0}.modal__scroller{flex-grow:1}.modal__footer{flex-grow:0;align-items:flex-end}}@-webkit-keyframes modal-open-animation{0%{opacity:.5;transform:scale(.9)}50%{opacity:.7;transform:scale(1)}85%{opacity:.9;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}@keyframes modal-open-animation{0%{opacity:.5;transform:scale(.9)}50%{opacity:.7;transform:scale(1)}85%{opacity:.9;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}@-webkit-keyframes modal-close-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes modal-close-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}
7
+ .spoiler{display:flex;flex-direction:column}.spoiler__header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:15px;border:1px solid;border-radius:0;background:#fff;cursor:pointer}.spoiler__header,.spoiler__header:active,.spoiler__header:hover{box-shadow:0 0 0 transparent}.spoiler__header,.spoiler__header:active,.spoiler__header:focus{border-color:#d3d8dc}.spoiler__header:focus{outline:0}.spoiler__header:focus .spoiler__label span:not(.dashicons){text-decoration:underline}.spoiler__label{flex-grow:1;flex-shrink:1;display:flex;flex-direction:row;align-items:center;color:#333;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.spoiler__label .dashicons{font-size:14px;width:14px;height:14px;line-height:14px;text-decoration:none;margin:5px}.spoiler__label .dashicons:first-child{margin-left:0}.spoiler__label .dashicons:last-child{margin-right:0}.spoiler__icon{flex-grow:0;flex-shrink:0}.spoiler__content{flex-grow:1;display:flex;flex-direction:column;padding:15px;background:#f5f5f5;border:1px solid #d3d8dc;border-top:0}.spoiler__content p{margin:0 0 10px}.spoiler__content p:last-of-type{margin-bottom:0}.spoiler .spoiler__content>p{margin:0 0 15px}.spoiler .spoiler__content>p:last-child{margin-bottom:0}.spoiler:not(.spoiler--open) .spoiler__content{display:none}.spoiler--stealth .spoiler__content,.spoiler--stealth .spoiler__header{border:0}.spoiler--stealth .spoiler__header{opacity:.8;padding:2px 0;font-weight:400;justify-content:flex-start;align-self:flex-start;background:transparent}.spoiler--stealth .spoiler__header:hover{opacity:.6}.spoiler--stealth .spoiler__header:focus{outline:1px dotted #333}.spoiler--stealth .spoiler__label{flex-grow:0;font-weight:400}.spoiler--stealth .spoiler__icon{font-size:18px;width:18px;height:18px;line-height:18px;margin-left:8px}.spoiler--stealth .spoiler__content{margin-top:8px;border-radius:3px;background:#fff;border:1px solid var(--sli-line-color)}.spoiler--stealth.spoiler--open .spoiler__header .spoiler__label>span:not(.dashicons){text-decoration:underline}.spoiler--disabled .spoiler__content,.spoiler--disabled .spoiler__header{opacity:.45;filter:grayscale(60%);pointer-events:none;cursor:not-allowed!important}.spoiler+.spoiler .spoiler__content,.spoiler+.spoiler .spoiler__header{border-top:0}.spoiler--fitted,.spoiler--fitted .spoiler__content,.spoiler--fitted .spoiler__header{border-left:0;border-right:0}.spoiler--static .spoiler__header{cursor:default}
8
+ .Message__message{display:flex;flex-direction:row;align-items:baseline;position:relative;padding:6px 8px;line-height:18px;background:#fff;border:1px solid;border-radius:3px}.Message__message:not(:first-child){margin-top:10px}.Message__message:not(:last-child){margin-bottom:10px}.Message__shaking{-webkit-animation-name:Message__shake-animation;animation-name:Message__shake-animation;-webkit-animation-duration:.2s;animation-duration:.2s}.Message__icon{width:16px;margin-right:8px;flex-grow:0;flex-shrink:0;font-size:18px}.Message__content{flex-grow:1}.Message__dismiss-btn{color:#333;padding:0 1px;border:0;border-radius:100px;background:transparent;opacity:.5}.Message__dismiss-btn:hover{opacity:1}.Message__dismiss-btn:focus{box-shadow:0 0 0 2px var(--sli-focus-color)}@-webkit-keyframes Message__shake-animation{0%,20%,40%,60%,80%,to{transform:translateX(0)}30%,70%{transform:translateX(-2px)}10%,50%,90%{transform:translateX(2px)}}@keyframes Message__shake-animation{0%,20%,40%,60%,80%,to{transform:translateX(0)}30%,70%{transform:translateX(-2px)}10%,50%,90%{transform:translateX(2px)}}.Message__success{background:#ecf4eb;box-shadow:0 1px 2px rgba(37,85,31,.15);border-color:rgba(61,142,52,.4)}.Message__success .Message__dismiss-btn,.Message__success .Message__icon{color:#2e6b27}.Message__success .Message__content{color:#122b10}.Message__info{background:#e8f5f7;box-shadow:0 1px 2px rgba(14,91,107,.15);border-color:rgba(24,152,178,.4)}.Message__info .Message__dismiss-btn,.Message__info .Message__icon{color:#127286}.Message__info .Message__content{color:#072e35}.Message__warning{background:#fff4e6;box-shadow:0 1px 2px rgba(153,88,0,.15);border-color:rgba(255,147,0,.4)}.Message__warning .Message__dismiss-btn,.Message__warning .Message__icon{color:#bf6e00}.Message__warning .Message__content{color:#4d2c00}.Message__pro-tip{background:#eeeffa;box-shadow:0 1px 2px rgba(53,57,123,.15);border-color:rgba(89,95,205,.4)}.Message__pro-tip .Message__dismiss-btn,.Message__pro-tip .Message__icon{color:#43479a}.Message__pro-tip .Message__content{color:#1b1d3e}.Message__error{background:#fbe9ec;box-shadow:0 1px 2px rgba(130,22,40,.15);border-color:rgba(216,36,66,.4)}.Message__error .Message__dismiss-btn,.Message__error .Message__icon{color:#a21b32}.Message__error .Message__content{color:#410b14}
9
  .ModalPrompt__root p:first-child{margin-top:0}.ModalPrompt__root p:last-child{margin-bottom:0}.ModalPrompt__button:not(:last-of-type){margin-right:10px}
10
+ .ConnectAccount__root{display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}.ConnectAccount__prompt-msg{margin:20px 0;text-align:center}.ConnectAccount__prompt-msg:first-child{margin-top:0}.ConnectAccount__prompt-msg:last-child{margin-bottom:0}.ConnectAccount__types{display:flex;align-items:stretch;justify-content:space-between}.ConnectAccount__type{display:flex;flex-direction:column;width:48%;box-sizing:border-box}.ConnectAccount__types-rows{flex-direction:row}.ConnectAccount__types-columns{flex-direction:column}.ConnectAccount__types-columns .ConnectAccount__type{width:100%;margin-bottom:30px}.ConnectAccount__capabilities{list-style:none outside none;padding:0;margin:20px 0 0}.ConnectAccount__capability{display:flex;flex-direction:row;align-items:flex-start}.ConnectAccount__capability .dashicons{font-size:24px;width:24px;height:24px;line-height:24px;margin-right:4px;color:var(--sli-green)}.ConnectAccount__capability div{flex:1}.ConnectAccount__business-learn-more{margin-top:5px;line-height:20px}.ConnectAccount__business-learn-more .dashicons{font-size:20px;width:24px;height:24px;line-height:inherit;margin-right:4px;vertical-align:text-top;color:var(--sli-wp-blue)}.ConnectAccount__business-learn-more a{display:inline-block;line-height:inherit}.ConnectAccount__connect-access-token{margin-top:20px}@media screen and (max-width:720px){.ConnectAccount__types-rows{flex-direction:column;align-items:center}.ConnectAccount__type:not(:first-of-type){margin-top:25px}.ConnectAccount__connect-access-token .spoiler__header{align-self:center}}
11
+ .ConnectAccessToken__root{display:block}.ConnectAccessToken__row{}.ConnectAccessToken__content{display:flex;flex-direction:column;align-items:stretch}.ConnectAccessToken__content:not(:last-of-type){margin-bottom:5px}.ConnectAccessToken__label{margin-bottom:8px}.ConnectAccessToken__bottom,.ConnectAccessToken__label{display:flex;flex-direction:row}.ConnectAccessToken__bottom{align-items:stretch}.ConnectAccessToken__bottom input{flex:5;padding-top:5px;padding-bottom:5px;margin-right:8px}.ConnectAccessToken__button-container{flex:1;display:flex;flex-direction:row;align-items:stretch;justify-content:flex-start}.ConnectAccessToken__button{width:100%;margin-bottom:0!important}.ConnectAccessToken__help-message{filter:grayscale(1);margin-top:8px}.ConnectAccessToken__column{}.ConnectAccessToken__column .ConnectAccessToken__bottom{flex-direction:column}.ConnectAccessToken__column .ConnectAccessToken__bottom input{flex:unset;margin-right:0;margin-bottom:8px}.ConnectAccessToken__column .ConnectAccessToken__button-container{align-items:center;justify-content:space-between}.ConnectAccessToken__column .ConnectAccessToken__button{width:unset;align-self:flex-end;padding:10px 18px}.ConnectAccessToken__column .ConnectAccessToken__help-message{margin-top:0}
12
  .onboarding{display:flex;flex-direction:row;justify-content:center;align-items:stretch;width:75%;padding:50px 0;margin:0 auto;font-size:14px;-webkit-animation:onboarding-entrance .2s ease-out;animation:onboarding-entrance .2s ease-out;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.onboarding--transitioning{-webkit-animation:onboarding-transition .2s ease-out;animation:onboarding-transition .2s ease-out;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.onboarding>div{display:flex;flex-direction:column;justify-content:center;align-items:stretch}.onboarding>div:first-child{flex:5 1;justify-content:flex-start}.onboarding>div:not(:first-child){flex:3}.onboarding>div:not(:last-child){margin-right:5%}.onboarding h1{font-size:32px;font-weight:700;margin:0 0 20px}.onboarding__steps,.onboarding p{font-size:inherit;margin:0 0 30px}.onboarding__thin{max-width:300px}.onboarding__steps{list-style:none}.onboarding__steps li{margin-bottom:25px}.onboarding__help-msg{opacity:.6;filter:grayscale(1)}.onboarding__pro-tip>span:first-child{margin-right:5px}.onboarding__pro-tip>span:first-child>.dashicons{margin-right:3px;margin-left:-5px}.onboarding__hero-button{width:100%;box-sizing:border-box;margin-bottom:30px!important}@media screen and (max-width:1400px){.onboarding{width:85%}.onboarding h1{font-size:28px}}@media screen and (max-width:1024px){.onboarding{width:95%}.onboarding__thin{max-width:unset}}@media screen and (max-width:768px){.onboarding{flex-direction:column;justify-content:flex-start;align-items:stretch;width:100%;padding-top:10px}.onboarding>div:not(:last-child){margin-bottom:30px}.onboarding__call-to-action{max-width:unset}}@-webkit-keyframes onboarding-entrance{0%{opacity:0}to{opacity:1}}@keyframes onboarding-entrance{0%{opacity:0}to{opacity:1}}@-webkit-keyframes onboarding-transition{0%{opacity:1}to{opacity:0;transform:translateX(-50px)}}@keyframes onboarding-transition{0%{opacity:1}to{opacity:0;transform:translateX(-50px)}}
13
 
14
  .UnitField__root{justify-content:flex-start;align-items:stretch;border:1px solid var(--sli-line-color);border-radius:2px;box-sizing:border-box;width:100%}.UnitField__root:focus-within{box-shadow:0 0 0 2px var(--sli-focus-color)}.UnitField__input{flex:2;min-width:50px!important;margin:0!important;border-radius:0!important}.UnitField__input,.UnitField__input:focus{border:0!important;outline:0!important;box-shadow:0 0 0 transparent!important}.UnitField__unit-container{flex:0 1;justify-content:stretch;align-items:stretch}.UnitField__unit-container .menu__ref{height:100%}.UnitField__unit-bubble{padding:3px 7px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.UnitField__unit-static{justify-content:center}.UnitField__unit-selector{align-items:center;justify-content:space-around;position:relative;cursor:pointer;line-height:20px}.UnitField__unit-selector:focus{outline:1px dotted #000}.UnitField__current-unit{flex:1;margin-left:2px}.UnitField__menu-chevron{flex:0;font-size:18px;width:20px;height:20px;vertical-align:middle;margin:3px 0 0 5px;color:var(--sli-grey)}.UnitField__menu-chevron-open{color:var(--sli-dark)}.UnitField__unit-list{position:absolute;top:calc(100% + 2px);left:0;border:1px solid var(--sli-line-color);border-radius:2px;background:#fff;overflow:hidden}.UnitField__unit-option{color:inherit;background:transparent;padding:7px 13px}.UnitField__unit-option:hover{background:var(--sli-wp-grey)}.UnitField__unit-selected{color:#fff}.UnitField__unit-selected,.UnitField__unit-selected:hover{background:var(--sli-primary-color)}
15
  .menu{padding:0;margin:0;z-index:1000}.menu__ref{display:flex;flex-direction:row;justify-content:stretch}.menu__container{position:relative;line-height:28px;padding:6px 0;background:#fff;box-shadow:0 0 15px rgba(20,25,60,.32);border-radius:4px;max-height:80%;overflow-x:hidden;overflow-y:auto}.menu[data-placement*=bottom] .menu__container{top:10px}.menu[data-placement*=top] .menu__container{bottom:10px}.menu[data-placement*=left] .menu__container{right:10px}.menu[data-placement*=right] .menu__container{left:10px}.menu__list{display:flex;flex-direction:column}.menu__item{display:block}.menu__item button{position:relative;color:#333;background:#e9eaed;border-radius:3px;box-sizing:border-box;text-align:center;cursor:pointer;width:100%;border:0;line-height:22px!important;padding:7px 28px;border-radius:0;background:transparent;text-align:left}.menu__item button:focus{outline:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.7);border-color:rgba(0,0,0,.7)}.menu__item button:focus span{text-decoration:underline}.menu__item button:focus .dashicons{text-decoration:none!important}.menu__item button .dashicons{margin-right:4px}.menu__item button:hover{outline:0;background:#edeef1}.menu__item button:active{box-shadow:inset 0 0 200px rgba(35,45,78,.15)}.menu__item button .dashicons{vertical-align:middle;margin-right:5px}.menu__item--disabled{opacity:.7;pointer-events:none}.menu__item--active{font-weight:700}.menu__separator{display:block;width:100%;margin:6px 0;border-bottom:1px solid #e1e2e3}.menu__static{padding:3px 28px}.menu__heading,.menu__static{display:block;text-align:left}.menu__heading{color:#777;font-size:12px;padding:0 14px;margin-bottom:3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
16
+ .wp-core-ui.wp-core-ui-override button,.wp-core-ui .wp-core-ui-override button{cursor:pointer;line-height:16px}.wp-core-ui.wp-core-ui-override button .dashicons:not(:only-child),.wp-core-ui .wp-core-ui-override button .dashicons:not(:only-child){margin-right:5px}.wp-core-ui.wp-core-ui-override .button,.wp-core-ui .wp-core-ui-override .button{position:relative}.wp-core-ui.wp-core-ui-override .button-primary:disabled:focus,.wp-core-ui .wp-core-ui-override .button-primary:disabled:focus,.wp-core-ui.wp-core-ui-override .button-primary[disabled]:focus,.wp-core-ui .wp-core-ui-override .button-primary[disabled]:focus{outline:1px dotted #000!important}.wp-core-ui.wp-core-ui-override .button-large,.wp-core-ui .wp-core-ui-override .button-large{padding:3px 20px}.wp-core-ui.wp-core-ui-override .button-tertiary,.wp-core-ui .wp-core-ui-override .button-tertiary{border:0;background:transparent}.wp-core-ui.wp-core-ui-override .button-tertiary:disabled,.wp-core-ui .wp-core-ui-override .button-tertiary:disabled,.wp-core-ui.wp-core-ui-override .button-tertiary[disabled],.wp-core-ui .wp-core-ui-override .button-tertiary[disabled]{background:transparent;text-decoration:none!important}.wp-core-ui.wp-core-ui-override .button-tertiary:hover,.wp-core-ui .wp-core-ui-override .button-tertiary:hover{text-decoration:underline}.wp-core-ui.wp-core-ui-override .button-tertiary:hover .dashicons,.wp-core-ui .wp-core-ui-override .button-tertiary:hover .dashicons{text-decoration:none}.wp-core-ui.wp-core-ui-override .button-danger,.wp-core-ui .wp-core-ui-override .button-danger{color:#c82641;border-color:#d82442;background:#fdf4f6}.wp-core-ui.wp-core-ui-override .button-danger:focus,.wp-core-ui .wp-core-ui-override .button-danger:focus,.wp-core-ui.wp-core-ui-override .button-danger:hover,.wp-core-ui .wp-core-ui-override .button-danger:hover{color:#d82442}.wp-core-ui.wp-core-ui-override .button-danger:active,.wp-core-ui .wp-core-ui-override .button-danger:active{color:#ad1d35}.wp-core-ui.wp-core-ui-override .button-danger:focus,.wp-core-ui .wp-core-ui-override .button-danger:focus{box-shadow:0 0 0 1px #ad1d35;outline:2px solid transparent;outline-offset:0}.wp-core-ui.wp-core-ui-override .button-danger:disabled,.wp-core-ui .wp-core-ui-override .button-danger:disabled,.wp-core-ui.wp-core-ui-override .button-danger[disabled],.wp-core-ui .wp-core-ui-override .button-danger[disabled]{color:#a68288!important;background:#ede4e5!important}.wp-core-ui.wp-core-ui-override .button-pill:hover,.wp-core-ui .wp-core-ui-override .button-pill:hover{background:#e6f2f8}.wp-core-ui.wp-core-ui-override .button-pill:active,.wp-core-ui .wp-core-ui-override .button-pill:active{background:#d6e3e9}.wp-core-ui.wp-core-ui-override .button-pill:focus,.wp-core-ui .wp-core-ui-override .button-pill:focus{box-shadow:0 0 0 1px #006395;outline:2px solid transparent;outline-offset:0}.wp-core-ui.wp-core-ui-override .button-pill:disabled,.wp-core-ui .wp-core-ui-override .button-pill:disabled,.wp-core-ui.wp-core-ui-override .button-pill[disabled],.wp-core-ui .wp-core-ui-override .button-pill[disabled],.wp-core-ui.wp-core-ui-override .button-tertiary.button-danger,.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger,.wp-core-ui.wp-core-ui-override .button-tertiary.button-danger:disabled,.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger:disabled,.wp-core-ui.wp-core-ui-override .button-tertiary.button-danger[disabled],.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger[disabled]{background:transparent!important}.wp-core-ui.wp-core-ui-override .button-tertiary.button-danger-pill,.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger-pill{background:transparent}.wp-core-ui.wp-core-ui-override .button-tertiary.button-danger-pill:hover,.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger-pill:hover{text-decoration:none;background:#fbe9ec!important}.wp-core-ui.wp-core-ui-override .button-tertiary.button-danger-pill:focus,.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger-pill:focus,.wp-core-ui.wp-core-ui-override .button-tertiary.button-danger-pill:hover,.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger-pill:hover{background:#fbe9ec}.wp-core-ui.wp-core-ui-override .button-tertiary.button-danger-pill:active,.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger-pill:active{background:#eedde0}.wp-core-ui.wp-core-ui-override .button-tertiary.button-danger-pill:disabled,.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger-pill:disabled,.wp-core-ui.wp-core-ui-override .button-tertiary.button-danger-pill[disabled],.wp-core-ui .wp-core-ui-override .button-tertiary.button-danger-pill[disabled]{background:transparent!important}.wp-core-ui.wp-core-ui-override .button[data-num]:not([data-num=""]):not([data-num="0"]),.wp-core-ui .wp-core-ui-override .button[data-num]:not([data-num=""]):not([data-num="0"]){position:relative}.wp-core-ui.wp-core-ui-override .button[data-num]:not([data-num=""]):not([data-num="0"]):after,.wp-core-ui .wp-core-ui-override .button[data-num]:not([data-num=""]):not([data-num="0"]):after{content:attr(data-num);position:absolute;top:0;left:calc(100% - 15px);min-width:15px;height:15px;line-height:15px;font-size:12px;text-align:center;padding:2px;border-radius:15px;overflow:hidden;color:#333;background-color:#ffcb00}@media screen and (max-width:768px){.wp-core-ui.wp-core-ui-override .button,.wp-core-ui .wp-core-ui-override .button{margin-bottom:unset}}.button-group{display:flex;flex-direction:row;justify-content:flex-start;border-radius:4px}.button-group button:first-of-type{border-right:0;border-radius:4px 0 0 4px!important}.button-group button:last-of-type{border-left:0;border-radius:0 4px 4px 0!important}.button-group button:not(:last-of-type):not(:first-of-type){margin-left:0;margin-right:0;border-radius:0}.button-group button:focus,.button-group button:hover{background:#f5f5f5}.button-group button:focus{box-shadow:inset 0 0 100px #007cba,0 0 0 1px rgba(0,0,0,.7)}.button-group button--selected{z-index:1}.wp-core-ui.wp-core-ui-override .button .dashicons,.wp-core-ui .wp-core-ui-override .button .dashicons{font-size:20px;width:20px;height:20px;line-height:20px;vertical-align:text-bottom}@media screen and (max-width:768px){.wp-core-ui.wp-core-ui-override .button .dashicons,.wp-core-ui .wp-core-ui-override .button .dashicons{font-size:22px;width:22px;height:22px;line-height:22px}}.wp-core-ui.wp-core-ui-override .button-small .dashicons,.wp-core-ui .wp-core-ui-override .button-small .dashicons{font-size:18px;width:18px;height:18px;line-height:18px;vertical-align:text-bottom}
17
  .ClearCacheButton__root{align-items:center}.ClearCacheButton__doc-link{margin-left:10px}
18
+ .SpoilerProLabel__pro-pill{display:inline-block;margin-right:8px}
19
+ .ProPill__pill{display:inline-block;font-size:10px;font-weight:700;padding:0 8px;height:18px;line-height:18px;border-radius:99px;background:var(--sli-pro-bg-color);box-shadow:0 2px 8px -2px rgba(0,0,0,.25);box-sizing:border-box}.ProPill__pill,.ProPill__pill:active,.ProPill__pill:focus,.ProPill__pill:hover,.ProPill__pill:visited{color:var(--sli-pro-fg-color);text-decoration:none!important}
20
+ .button__panel-button{}.button__panel-button:hover{background:var(--sli-wp-light-grey)}.button__panel-button:active{background:#fff}.button__panel-button:focus{border-color:var(--sli-primary-color);box-shadow:0 0 0 1px var(--sli-primary-color)}.button__toggle-button{}.button__toggle-button-on{}.button__toggle-button-on,.button__toggle-button-on:active,.button__toggle-button-on:focus,.button__toggle-button-on:hover{color:#fff;background:var(--sli-primary-color);border-color:var(--sli-primary-color)}.button__toggle-button-on:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--sli-primary-color)}
21
  .unit-input{position:relative;display:flex;flex-direction:row;align-items:stretch;padding:0;border-radius:3px}.unit-input,.unit-input__field{width:100%;margin:0;box-sizing:border-box}.unit-input__field{flex-grow:1;flex-shrink:1;display:block;padding-right:50px!important}.unit-input__unit{flex-grow:0;flex-shrink:0;position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;top:1px;bottom:1px;right:1px;width:50px;border-radius:0 3px 3px 0;box-sizing:border-box;margin:0;padding:0;color:#444;background:#e6f2f8;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
22
  :root{--sli-color-picker-padding:5px;--sli-color-picker-alpha-grid-size:14px;--sli-color-picker-inner-shadow:0 0 0 5px #fff inset}.ColorPicker__button{position:relative;padding:7px 12px;width:100%;height:36px;border:1px solid var(--sli-line-color);border-radius:3px;cursor:pointer}.ColorPicker__button,.ColorPicker__button:active,.ColorPicker__button:focus,.ColorPicker__button:hover{background-size:14px;background-size:var(--sli-color-picker-alpha-grid-size);background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSIVUYuoOGSoThZERRy1CkWoEGqFVh1MLv2CJg1Jiouj4Fpw8GOx6uDirKuDqyAIfoA4OTopukiJ/0sKLWI9OO7Hu3uPu3eAUC0yzWobBzTdNhOxqJhKr4qBVwjoRQ/6MSgzy5iTpDhajq97+Ph6F+FZrc/9ObrUjMUAn0g8ywzTJt4gnt60Dc77xCGWl1Xic+Ixky5I/Mh1xeM3zjmXBZ4ZMpOJeeIQsZhrYqWJWd7UiKeIw6qmU76Q8ljlvMVZK5ZZ/Z78hcGMvrLMdZrDiGERS5AgQkEZBRRhI0KrToqFBO1HW/iHXL9ELoVcBTByLKAEDbLrB/+D391a2ckJLykYBdpfHOdjBAjsArWK43wfO07tBPA/A1d6w1+qAjOfpFcaWvgI6N4GLq4bmrIHXO4AA0+GbMqu5KcpZLPA+xl9UxrouwU617ze6vs4fQCS1FX8Bjg4BEZzlL3e4t0dzb39e6be3w88D3KRJNOW/QAAAAZiS0dEACcAAAAB/aV4/QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+QCEhEhKGUfSx4AAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMElEQVQ4y2M8cuTIfwY8INnGlhGfPBMDhWDUgMFgAKM6A95oZph75PD/0UAc9gYAAER7B5JZPHhAAAAAAElFTkSuQmCC") 5px,5px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSIVUYuoOGSoThZERRy1CkWoEGqFVh1MLv2CJg1Jiouj4Fpw8GOx6uDirKuDqyAIfoA4OTopukiJ/0sKLWI9OO7Hu3uPu3eAUC0yzWobBzTdNhOxqJhKr4qBVwjoRQ/6MSgzy5iTpDhajq97+Ph6F+FZrc/9ObrUjMUAn0g8ywzTJt4gnt60Dc77xCGWl1Xic+Ixky5I/Mh1xeM3zjmXBZ4ZMpOJeeIQsZhrYqWJWd7UiKeIw6qmU76Q8ljlvMVZK5ZZ/Z78hcGMvrLMdZrDiGERS5AgQkEZBRRhI0KrToqFBO1HW/iHXL9ELoVcBTByLKAEDbLrB/+D391a2ckJLykYBdpfHOdjBAjsArWK43wfO07tBPA/A1d6w1+qAjOfpFcaWvgI6N4GLq4bmrIHXO4AA0+GbMqu5KcpZLPA+xl9UxrouwU617ze6vs4fQCS1FX8Bjg4BEZzlL3e4t0dzb39e6be3w88D3KRJNOW/QAAAAZiS0dEACcAAAAB/aV4/QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+QCEhEhKGUfSx4AAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMElEQVQ4y2M8cuTIfwY8INnGlhGfPBMDhWDUgMFgAKM6A95oZph75PD/0UAc9gYAAER7B5JZPHhAAAAAAElFTkSuQmCC") var(--sli-color-picker-padding),var(--sli-color-picker-padding)}.ColorPicker__button,.ColorPicker__button:active,.ColorPicker__button:focus{box-shadow:inset 0 0 0 5px #fff;box-shadow:var(--sli-color-picker-inner-shadow)}.ColorPicker__button:focus{outline:0;box-shadow:0 0 0 5px #fff inset,0 0 0 2px var(--sli-focus-color)!important;box-shadow:var(--sli-color-picker-inner-shadow),0 0 0 2px var(--sli-focus-color)!important}.ColorPicker__color-preview{position:absolute;top:4px;top:calc(var(--sli-color-picker-padding) - 1px);bottom:4px;bottom:calc(var(--sli-color-picker-padding) - 1px);left:4px;left:calc(var(--sli-color-picker-padding) - 1px);right:4px;right:calc(var(--sli-color-picker-padding) - 1px)}.ColorPicker__popper{z-index:100}
23
  .checkbox-list{display:flex;flex-direction:column;padding-bottom:10px}.checkbox-list__option{display:flex;flex-direction:row;align-items:center;margin-bottom:-12px;padding:10px 0}.checkbox-list__option>input{flex-grow:0;flex-shrink:0}.checkbox-list__option>span{flex-grow:1}.checkbox-list__option--disabled span{opacity:.45;filter:grayscale(60%);pointer-events:none;cursor:not-allowed!important}.checkbox-list__pro-pill{position:relative;left:10px}@media screen and (max-width:768px){.checkbox-list__option{margin-bottom:0}}
24
  .checkbox-field{display:flex;flex-direction:column;justify-content:center;min-height:40px;padding:10px 0;box-sizing:border-box}.checkbox-field__aligner{display:flex;flex-direction:row}
25
  .HelpTooltip__root{display:inline-flex;flex-direction:column;justify-content:center}.HelpTooltip__tooltip{}.HelpTooltip__tooltip-container{text-align:left;padding-top:7px;padding-bottom:7px}.HelpTooltip__tooltip-content p{margin:0 0 5px}.HelpTooltip__tooltip-content p:last-child{margin-bottom:0}.HelpTooltip__tooltip-content img{max-width:100%;margin:5px 0;border-radius:2px}.HelpTooltip__tooltip-content img:first-child{margin-top:0}.HelpTooltip__tooltip-content img:last-child{margin-bottom:0}.HelpTooltip__icon{height:18px;line-height:18px}.HelpTooltip__icon .dashicons{font-size:16px;width:16px;height:16px;line-height:16px;vertical-align:bottom}
26
  .SaveButton__root{padding-left:20px!important;padding-right:20px!important}.SaveButton__saving-overlay{position:absolute;opacity:.7;background-image:linear-gradient(-45deg,hsla(0,0%,100%,.5) 28%,transparent 0,transparent 72%,hsla(0,0%,100%,.5) 0);background-position:100px 0;background-size:100px 100%;-webkit-animation:SaveButton__saving-animation 1s linear infinite;animation:SaveButton__saving-animation 1s linear infinite}@-webkit-keyframes SaveButton__saving-animation{0%{background-position:0 0}}@keyframes SaveButton__saving-animation{0%{background-position:0 0}}
27
+ .SidebarLayout__layout{flex:1;display:flex;flex-direction:row;align-items:stretch;position:relative;overflow:hidden;min-width:400px;z-index:0}.SidebarLayout__layout-primary-content,.SidebarLayout__layout-primary-sidebar{}.SidebarLayout__container{display:flex;flex-direction:column;overflow:auto}.SidebarLayout__content{flex:1;justify-content:flex-start;align-items:stretch;background:var(--sli-wp-grey)}.SidebarLayout__content,.SidebarLayout__sidebar{}.SidebarLayout__sidebar{position:relative;flex:0 0 400px;justify-content:stretch;background:var(--sli-wp-light-grey)}.SidebarLayout__sidebar>*{flex:1}.SidebarLayout__navigation{flex:0 0 50px;display:none;flex-direction:row;padding:0 var(--sli-sidebar-padding);align-items:center;background:#fff;border-bottom:1px solid var(--sli-line-color)}.SidebarLayout__navigation-left{justify-content:flex-start}.SidebarLayout__navigation-right{justify-content:flex-end}.SidebarLayout__nav-link{cursor:pointer;line-height:20px}.SidebarLayout__nav-link .dashicons{margin-right:10px}@media screen and (max-width:967px){.SidebarLayout__navigation{display:flex}.SidebarLayout__layout-primary-content .SidebarLayout__sidebar{flex:0;position:absolute;top:0;left:0;right:0;bottom:0}.SidebarLayout__layout-primary-content .SidebarLayout__content{flex:1;z-index:0}.SidebarLayout__layout-primary-sidebar .SidebarLayout__content{flex:0;position:absolute;top:0;left:0;right:0;bottom:0}.SidebarLayout__layout-primary-sidebar .SidebarLayout__sidebar{flex:1;z-index:0}}
28
  .radio-group{display:flex;flex-direction:column}.radio-group--disabled{opacity:.45;filter:grayscale(60%);pointer-events:none;cursor:not-allowed!important}.radio-group__option{display:flex;flex-direction:row;margin:5px 0}
29
+ :root{--sli-sidebar-padding:15px}.Sidebar__content,.Sidebar__sidebar{box-sizing:border-box}.Sidebar__content{flex:0 0 400px;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;height:100%;background:var(--sli-wp-light-grey);border-left:1px solid var(--sli-line-color);transition:transform .1s ease-out;z-index:1}.Sidebar__content hr{margin:15px 0;margin:var(--sli-sidebar-padding) 0}.Sidebar__padded{padding:15px;padding:var(--sli-sidebar-padding)}.Sidebar__padded-content{}.Sidebar__disabled{pointer-events:none;opacity:.7;filter:contrast(90%) grayscale(80%)}
30
  .loading-spinner{display:inline-block;border-radius:9999px;-webkit-animation:preview-spinner-animation 1s linear infinite;animation:preview-spinner-animation 1s linear infinite}@-webkit-keyframes preview-spinner-animation{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes preview-spinner-animation{0%{transform:rotate(0)}to{transform:rotate(1turn)}}
31
  .Toaster__root{position:absolute;top:60px;left:30px;right:8px;flex-direction:row;pointer-events:none}.Toaster__container,.Toaster__root{display:flex;justify-content:flex-end}.Toaster__container{width:300px;flex-direction:column-reverse;overflow-y:visible;pointer-events:all}
32
  .Toast__root{display:flex;flex-direction:row;max-width:100%;padding:10px 24px;color:#fff;font-size:13px;line-height:20px;border-radius:3px;background:#32373c;box-shadow:0 0 5px rgba(0,0,0,.3);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-name:Toast__fade-in-animation;animation-name:Toast__fade-in-animation}.Toast__root:not(:last-of-type){margin-top:10px}.Toast__root-fading-out{-webkit-animation-name:Toast__fade-out-animation;animation-name:Toast__fade-out-animation}.Toast__content{flex:1}.Toast__content p{margin:2px;line-height:inherit}.Toast__content code{margin:8px 0;padding:3px 8px;background:hsla(0,0%,100%,.1);line-height:inherit}.Toast__content a{color:#fff!important}.Toast__dismiss-icon{--size:24px;width:24px;height:24px;font-size:var(--size)}.Toast__dismiss-btn{background:transparent;color:#fff;padding:0;margin:0;border:0!important;outline:0!important;box-shadow:0 0 transparent}@-webkit-keyframes Toast__fade-in-animation{0%{transform:translateX(20px);opacity:0}to{transform:translateX(0);opacity:1}}@keyframes Toast__fade-in-animation{0%{transform:translateX(20px);opacity:0}to{transform:translateX(0);opacity:1}}@-webkit-keyframes Toast__fade-out-animation{0%{transform:translateX(0);opacity:1}to{transform:translateX(60px);opacity:0}}@keyframes Toast__fade-out-animation{0%{transform:translateX(0);opacity:1}to{transform:translateX(60px);opacity:0}}
33
+ :root{--sli-navbar-font-size:14px;--sli-navbar-spacing:16px;--sli-navbar-logo-size:100px;--sli-navbar-height:52px}.Navbar__root{justify-content:space-between;position:relative;width:100%;font-size:14px;font-size:var(--sli-navbar-font-size);padding:0 16px;padding:0 var(--sli-navbar-spacing);background:#fff;box-shadow:0 1px 1px var(--sli-line-color);box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.Navbar__container,.Navbar__root{align-items:stretch}.Navbar__container{flex:1}.Navbar__left-container{justify-content:flex-start}.Navbar__right-container{justify-content:flex-end}.Navbar__right-container:not(:empty){margin-left:16px;margin-left:var(--sli-navbar-spacing)}.Navbar__child{margin-right:16px;margin-right:var(--sli-navbar-spacing)}.Navbar__child:last-child{margin-right:0}.Navbar__item{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:inherit;white-space:nowrap}.Navbar__item>*{flex:1}.Navbar__item>:not(.Navbar__disabled):focus{outline:1px dotted #000;box-shadow:0 0 transparent}.Navbar__chevron{flex-shrink:0;width:10px;height:40%;align-self:center;color:var(--sli-line-color)}.Navbar__chevron svg{stroke-width:8}.Navbar__link{position:relative;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 5px}.Navbar__link,.Navbar__link:active,.Navbar__link:focus,.Navbar__link:hover{color:#000!important;text-decoration:none}.Navbar__link:not(.Navbar__disabled){cursor:pointer}.Navbar__link.Navbar__disabled>*{opacity:.5}.Navbar__link.Navbar__disabled>.Navbar__pro-pill{opacity:1}.Navbar__link:after{content:" ";position:absolute;bottom:0;left:0;right:0;height:0;background-color:var(--sli-primary-color);transition:height .05s}.Navbar__link.Navbar__current{font-weight:700}.Navbar__link.Navbar__current:after{height:2px}.Navbar__pro-pill{position:relative;top:-10px;left:1px;margin-right:-4px}.Navbar__button-container{padding:7px 0}@media (--medium-screen){:root{--sli-navbar-spacing:20px;--sli-navbar-font-size:14px;--sli-navbar-logo-size:90px}}@media (--small-screen){:root{--sli-navbar-spacing:16px;--sli-navbar-font-size:13px;--sli-navbar-logo-size:80px}}@media (--tiny-screen){:root{--sli-navbar-spacing:13px;--sli-navbar-font-size:12px;--sli-navbar-logo-size:60px}}
34
  .LogoNewsMenu__logo{position:relative;display:block;height:var(--sli-navbar-height);max-height:100%;padding:8px 0;box-sizing:border-box;cursor:pointer}.LogoNewsMenu__logo:focus{outline:1px dotted #000}.LogoNewsMenu__logo-image{height:100%;-o-object-fit:contain;object-fit:contain;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.LogoNewsMenu__counter{position:absolute;top:5px;right:-13px;width:8px;height:8px;line-height:7px;padding:4px;font-size:10px;font-weight:700;text-align:center;color:#fff;background:var(--sli-primary-color);box-shadow:0 1px 1px 1px rgba(0,0,0,.1);border-radius:99999px}
35
  .NotificationMenu__menu{width:400px}
36
  .Notification__root{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:10px 5px;margin:0 10px}.Notification__root:not(:last-of-type){border-bottom:1px solid var(--sli-line-color)}.Notification__text{line-height:1.5em;white-space:pre-wrap}.Notification__title{font-size:14px;font-weight:700;margin-bottom:5px}.Notification__content{display:flex;flex-direction:column;font-size:13px}.Notification__content p{margin:0}.Notification__date{margin-top:5px;font-size:12px;font-weight:700;opacity:.7}
37
  .ErrorToast__content{white-space:pre-wrap;word-break:break-word}
38
+ :root{--sli-auto-promos-spacing:20px}.AutomatePromotionsTab__content{display:flex;flex-direction:column;align-items:stretch;align-self:stretch;width:100%;padding:30px 50px;box-sizing:border-box}.AutomatePromotionsTab__content-heading{flex:0;margin:0 0 20px;margin:0 0 var(--sli-auto-promos-spacing)}.AutomatePromotionsTab__tutorial{display:flex;flex-flow:row;justify-content:center}.AutomatePromotionsTab__tutorial-box{flex:0 1 700px;display:flex;flex-flow:column nowrap;align-items:center;text-align:center;margin-top:20px;padding:50px;background:#fff;border-radius:3px}.AutomatePromotionsTab__tutorial-text{white-space:pre-line;max-width:600px;margin-bottom:35px}.AutomatePromotionsTab__tutorial-text h1{font-size:24px;font-weight:700}.AutomatePromotionsTab__tutorial-text p:first-child{margin-top:0}.AutomatePromotionsTab__tutorial-text p:last-child{margin-bottom:0}.AutomatePromotionsTab__tutorial-video{margin-top:35px}.AutomatePromotionsTab__mobile-instructions{display:flex;flex-direction:column;align-items:center;text-align:center;margin-bottom:20px}.AutomatePromotionsTab__mobile-instructions p{margin:0}
39
+ .AutoPromotionsList__list{display:flex;flex-direction:column;align-items:stretch}.AutoPromotionsList__fake-pro-list{opacity:.7;filter:contrast(90%) grayscale(80%);pointer-events:none}.AutoPromotionsList__row{display:flex;flex-direction:row;justify-content:space-between;align-items:stretch}.AutoPromotionsList__row:not(:first-of-type){margin-top:var(--sli-auto-promos-spacing)}.AutoPromotionsList__row-selected{}.AutoPromotionsList__row-selected .AutoPromotionsList__row-box{box-shadow:0 0 0 1px var(--sli-primary-color);border-color:var(--sli-primary-color)}.AutoPromotionsList__row-hashtags,.AutoPromotionsList__row-summary{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.AutoPromotionsList__row-drag-handle{flex:0 0 30px;display:flex;flex-direction:column;justify-content:center;margin-right:10px;cursor:-webkit-grab;cursor:grab}.AutoPromotionsList__row-box{flex:1;display:grid;grid-gap:10px;grid-template-columns:1.3fr 1fr 100px;align-items:center;line-height:30px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.AutoPromotionsList__row-box .dashicons{font-size:20px;width:20px;height:20px;line-height:30px;vertical-align:baseline;font-weight:400}.AutoPromotionsList__row-actions{display:flex;flex-direction:row;justify-content:flex-end}.AutoPromotionsList__row-actions .button{height:30px}.AutoPromotionsList__row-actions .button:not(:first-of-type){margin-left:5px}.AutoPromotionsList__add-button-row{display:flex;flex-direction:row;justify-content:flex-end;margin-bottom:var(--sli-auto-promos-spacing)}.AutoPromotionsList__no-hashtags-message,.AutoPromotionsList__row-faded-text{font-style:italic;opacity:.7}.AutoPromotionsList__no-promo-message{}.AutoPromotionsList__summary-italics{font-style:italic}.AutoPromotionsList__summary-bold{font-weight:700}
40
+ .AutoPromotionsSidebar__fake-pro{pointer-events:none;opacity:.7;filter:contrast(90%) grayscale(80%)}
41
+ :root{--sli-account-pill-size:28px}.GlobalPromotionsTab__content{flex:1;display:flex;flex-direction:column;align-items:stretch;align-self:stretch;width:100%;box-sizing:border-box}.GlobalPromotionsTab__mobile-instructions{display:flex;flex-direction:column;align-items:center;text-align:center;margin-top:20px}.GlobalPromotionsTab__mobile-instructions p{margin:0}.GlobalPromotionsTab__tutorial{display:flex;flex-flow:row;justify-content:center;padding-top:25px}.GlobalPromotionsTab__tutorial-box{flex:0 1 700px;display:flex;flex-flow:column nowrap;align-items:center;text-align:center;margin-top:20px;padding:50px;background:#fff;border-radius:3px}.GlobalPromotionsTab__tutorial-text{white-space:pre-line;max-width:600px;margin-bottom:35px}.GlobalPromotionsTab__tutorial-text h1{font-size:24px;font-weight:700}.GlobalPromotionsTab__tutorial-text p:first-child{margin-top:0}.GlobalPromotionsTab__tutorial-text p:last-child{margin-bottom:0}.GlobalPromotionsTab__account-list{flex:0 0 auto;position:-webkit-sticky;position:sticky;top:0;white-space:nowrap;background:#fff;border-bottom:1px solid var(--sli-line-color);overflow-x:auto;overflow-y:hidden;z-index:1}.GlobalPromotionsTab__account-scroller{padding:10px 15px}.GlobalPromotionsTab__account-button{display:inline-flex;flex-direction:row;justify-content:flex-start;align-items:center;min-width:120px;max-width:180px;padding:4px 6px;color:#000;border-radius:20px;border:1px solid var(--sli-line-color);background:var(--sli-wp-light-grey);box-sizing:border-box;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.GlobalPromotionsTab__account-button:not(:first-child){margin-left:10px}.GlobalPromotionsTab__account-button:last-child{margin-right:15px}.GlobalPromotionsTab__account-selected{color:#fff;b