MailPoet Newsletters (New) - Version 3.45.0

Version Description

  • 2020-02-04 =
  • Improved: PHP 7 is now required. Our team jubilates;
  • Fixed: PHP warning from unauthorized email notice;
  • Removed: old form editor has been removed with a new Gutenberg based replacement.
Download this release

Release Info

Developer wysija
Plugin Icon 128x128 MailPoet Newsletters (New)
Version 3.45.0
Comparing to
See all releases

Code changes from version 3.44.0 to 3.45.0

assets/dist/css/{formEditor.c135de00.css → formEditor.062f5086.css} RENAMED
@@ -1,75 +1,105 @@
1
  @charset "UTF-8";
2
  /** Colors */
3
  /** Breakpoints & Media Queries */
 
4
  /** Often re-used variables */
5
  /** Breakpoint mixins */
6
  /** Long content fade mixin Creates a fading overlay to signify that the content is longer than the space allows. */
7
  /** Button states and focus styles */
8
  /** Applies editor left position to the selector passed as argument */
9
- /** Applies editor right position to the selector passed as argument */
10
  /** Styles that are reused verbatim in a few places */
11
  /** Allows users to opt-out of animations via OS-level preferences. */
12
  /** Reset default styles for JavaScript UI based pages. This is a WP-admin agnostic reset */
13
  /** Reset the WP Admin page styles for Gutenberg-like pages. */
14
- @media (min-width: 782px) { body.js.is-fullscreen-mode { margin-top: -46px; height: calc(100% + 46px); } }
15
 
16
- @media (min-width: 782px) and (min-width: 782px) { body.js.is-fullscreen-mode { margin-top: -32px; height: calc(100% + 32px); } }
17
 
18
- @media (min-width: 782px) { body.js.is-fullscreen-mode #adminmenumain, body.js.is-fullscreen-mode #wpadminbar { display: none; }
19
- body.js.is-fullscreen-mode #wpcontent, body.js.is-fullscreen-mode #wpfooter { margin-left: 0; }
20
- body.js.is-fullscreen-mode .edit-post-header { transform: translateY(-100%); -webkit-animation: edit-post-fullscreen-mode__slide-in-animation 0.1s forwards; animation: edit-post-fullscreen-mode__slide-in-animation 0.1s forwards; } }
21
 
22
- @media (min-width: 782px) and (prefers-reduced-motion: reduce) { body.js.is-fullscreen-mode .edit-post-header { -webkit-animation-duration: 1ms; animation-duration: 1ms; } }
 
23
 
24
- @-webkit-keyframes edit-post-fullscreen-mode__slide-in-animation { 100% { transform: translateY(0%); } }
25
 
26
- @keyframes edit-post-fullscreen-mode__slide-in-animation { 100% { transform: translateY(0%); } }
27
 
28
- .edit-post-header { height: 56px; padding: 4px 2px; border-bottom: 1px solid #e2e4e7; background: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; max-width: 100vw; z-index: 30; left: 0; right: 0; }
29
 
30
- @media (min-width: 280px) { .edit-post-header { height: 56px; top: 0; position: -webkit-sticky; position: sticky; flex-wrap: nowrap; } }
31
 
32
- @media (min-width: 600px) { .edit-post-header { position: fixed; padding: 8px; top: 46px; } }
33
 
34
- @media (min-width: 782px) { .edit-post-header { top: 32px; }
35
- body.is-fullscreen-mode .edit-post-header { top: 0; } }
36
 
37
- .edit-post-header > .edit-post-header__settings { order: 1; }
38
 
39
- @supports ((position: -webkit-sticky) or (position: sticky)) { .edit-post-header > .edit-post-header__settings { order: initial; } }
 
40
 
41
- .edit-post-header { /* Set left position when auto-fold is not on the body element. */ left: 0; }
 
42
 
43
- @media (min-width: 782px) { .edit-post-header { left: 160px; } }
44
 
45
- .auto-fold .edit-post-header { /* Auto fold is when on smaller breakpoints, nav menu auto collapses. */ }
46
 
47
- @media (min-width: 782px) { .auto-fold .edit-post-header { left: 36px; } }
48
 
49
- @media (min-width: 960px) { .auto-fold .edit-post-header { left: 160px; } }
50
 
51
- /* Sidebar manually collapsed. */
52
- .folded .edit-post-header { left: 0; }
53
 
54
- @media (min-width: 782px) { .folded .edit-post-header { left: 36px; } }
55
 
56
- /* Mobile menu opened. */
57
- @media (max-width: 782px) { .auto-fold .wp-responsive-open .edit-post-header { left: 190px; } }
58
 
59
- /* In small screens with responsive menu expanded there is small white space. */
60
- @media (max-width: 600px) { .auto-fold .wp-responsive-open .edit-post-header { margin-left: -18px; } }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
 
62
- body.is-fullscreen-mode .edit-post-header { left: 0 !important; }
 
 
 
 
 
 
 
 
 
 
 
 
63
 
64
  .edit-post-header__toolbar { display: flex; }
65
 
66
  .edit-post-header__settings { display: inline-flex; align-items: center; flex-wrap: wrap; }
67
 
68
- .edit-post-header .components-button.is-toggled { color: #fff; background: #555d66; margin: 1px; padding: 7px; }
69
 
70
- .edit-post-header .components-button.is-toggled:hover, .edit-post-header .components-button.is-toggled:focus { box-shadow: 0 0 0 1px #555d66, inset 0 0 0 1px #fff !important; color: #fff !important; background: #555d66 !important; }
71
 
72
- .edit-post-header .components-button.editor-post-save-draft, .edit-post-header .components-button.editor-post-switch-to-draft, .edit-post-header .components-button.editor-post-preview, .edit-post-header .components-button.editor-post-publish-button, .edit-post-header .components-button.editor-post-publish-panel__toggle { margin: 2px; height: 34px; line-height: 32px; font-size: 13px; }
73
 
74
  .edit-post-header .components-button.editor-post-save-draft, .edit-post-header .components-button.editor-post-switch-to-draft { padding: 0 5px; }
75
 
@@ -96,7 +126,9 @@ body.is-fullscreen-mode .edit-post-header { left: 0 !important; }
96
 
97
  @media (min-width: 600px) { .edit-post-header-toolbar .block-editor-block-navigation, .edit-post-header-toolbar .table-of-contents { display: flex; } }
98
 
99
- .edit-post-header-toolbar__block-toolbar { position: absolute; top: 56px; left: 0; right: 0; background: #fff; min-height: 37px; border-bottom: 1px solid #e2e4e7; }
 
 
100
 
101
  .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar { border-top: none; border-bottom: none; }
102
 
@@ -111,10 +143,10 @@ body.is-fullscreen-mode .edit-post-header { left: 0 !important; }
111
 
112
  .edit-post-more-menu { margin-left: -4px; }
113
 
114
- .edit-post-more-menu .components-icon-button { width: auto; padding: 8px 2px; }
115
 
116
  @media (min-width: 600px) { .edit-post-more-menu { margin-left: 4px; }
117
- .edit-post-more-menu .components-icon-button { padding: 8px 4px; } }
118
 
119
  .edit-post-more-menu .components-button svg { transform: rotate(90deg); }
120
 
@@ -130,93 +162,72 @@ body.is-fullscreen-mode .edit-post-header { left: 0 !important; }
130
 
131
  @media (min-width: 600px) { .edit-post-pinned-plugins { display: flex; } }
132
 
133
- .edit-post-pinned-plugins .components-icon-button { margin-left: 4px; }
134
 
135
- .edit-post-pinned-plugins .components-icon-button.is-toggled { margin-left: 5px; }
136
 
137
- .edit-post-pinned-plugins .components-icon-button svg { max-width: 24px; max-height: 24px; }
138
 
139
- .edit-post-pinned-plugins .components-icon-button:not(.is-toggled) svg, .edit-post-pinned-plugins .components-icon-button:not(.is-toggled) svg * { stroke: #555d66; fill: #555d66; stroke-width: 0; }
140
 
141
- .edit-post-pinned-plugins .components-icon-button.is-toggled svg, .edit-post-pinned-plugins .components-icon-button.is-toggled svg *, .edit-post-pinned-plugins .components-icon-button.is-toggled:hover svg, .edit-post-pinned-plugins .components-icon-button.is-toggled:hover svg * { stroke: #fff !important; fill: #fff !important; stroke-width: 0; }
142
 
143
- .edit-post-pinned-plugins .components-icon-button:hover svg, .edit-post-pinned-plugins .components-icon-button:hover svg * { stroke: #191e23 !important; fill: #191e23 !important; stroke-width: 0; }
144
 
145
- .edit-post-keyboard-shortcut-help__section { margin: 0 0 2rem 0; }
146
 
147
- .edit-post-keyboard-shortcut-help__main-shortcuts .edit-post-keyboard-shortcut-help__shortcut-list { margin-top: -17px; }
148
 
149
- .edit-post-keyboard-shortcut-help__section-title { font-size: 0.9rem; font-weight: 600; }
150
 
151
- .edit-post-keyboard-shortcut-help__shortcut { display: flex; align-items: center; padding: 0.6rem 0; border-top: 1px solid #e2e4e7; margin-bottom: 0; }
152
 
153
- .edit-post-keyboard-shortcut-help__shortcut:last-child { border-bottom: 1px solid #e2e4e7; }
154
 
155
- .edit-post-keyboard-shortcut-help__shortcut-term { font-weight: 600; margin: 0 0 0 1rem; }
156
 
157
- .edit-post-keyboard-shortcut-help__shortcut-description { flex: 1; margin: 0; flex-basis: auto; }
158
 
159
- .edit-post-keyboard-shortcut-help__shortcut-key-combination { background: none; margin: 0; padding: 0; }
160
 
161
- .edit-post-keyboard-shortcut-help__shortcut-key { padding: 0.25rem 0.5rem; border-radius: 8%; margin: 0 0.2rem 0 0.2rem; }
162
 
163
- .edit-post-keyboard-shortcut-help__shortcut-key:last-child { margin: 0 0 0 0.2rem; }
164
 
165
- .edit-post-layout, .edit-post-layout__content { height: 100%; }
166
 
167
- .edit-post-layout { position: relative; box-sizing: border-box; }
168
 
169
- @media (min-width: 600px) { .edit-post-layout { padding-top: 56px; } }
170
 
171
- .edit-post-layout__metaboxes:not(:empty) { border-top: 1px solid #e2e4e7; margin-top: 10px; padding: 10px 0 10px; clear: both; }
172
 
173
  .edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area { margin: auto 20px; }
174
 
175
- .edit-post-layout__content .components-editor-notices__snackbar { position: fixed; right: 0; bottom: 20px; padding-left: 16px; padding-right: 16px; }
176
 
177
- .edit-post-layout__content .components-editor-notices__snackbar { /* Set left position when auto-fold is not on the body element. */ left: 0; }
178
 
179
- @media (min-width: 782px) { .edit-post-layout__content .components-editor-notices__snackbar { left: 160px; } }
180
 
181
- .auto-fold .edit-post-layout__content .components-editor-notices__snackbar { /* Auto fold is when on smaller breakpoints, nav menu auto collapses. */ }
182
 
183
- @media (min-width: 782px) { .auto-fold .edit-post-layout__content .components-editor-notices__snackbar { left: 36px; } }
184
 
185
- @media (min-width: 960px) { .auto-fold .edit-post-layout__content .components-editor-notices__snackbar { left: 160px; } }
186
 
187
  /* Sidebar manually collapsed. */
188
- .folded .edit-post-layout__content .components-editor-notices__snackbar { left: 0; }
189
 
190
- @media (min-width: 782px) { .folded .edit-post-layout__content .components-editor-notices__snackbar { left: 36px; } }
191
 
192
  /* Mobile menu opened. */
193
- @media (max-width: 782px) { .auto-fold .wp-responsive-open .edit-post-layout__content .components-editor-notices__snackbar { left: 190px; } }
194
 
195
  /* In small screens with responsive menu expanded there is small white space. */
196
- @media (max-width: 600px) { .auto-fold .wp-responsive-open .edit-post-layout__content .components-editor-notices__snackbar { margin-left: -18px; } }
197
-
198
- body.is-fullscreen-mode .edit-post-layout__content .components-editor-notices__snackbar { left: 0 !important; }
199
-
200
- .edit-post-layout__content { display: flex; flex-direction: column; min-height: 100%; position: relative; }
201
-
202
- @media (min-width: 782px) { .edit-post-layout__content { position: fixed; bottom: 24px; left: 0; right: 0; top: 88px; min-height: calc(100% - 88px); height: auto; margin-left: 160px; }
203
- .edit-post-layout.is-mode-visual .edit-post-layout__content { bottom: 24px; min-height: calc(100% - 112px); }
204
- body.auto-fold .edit-post-layout__content { margin-left: 36px; } }
205
-
206
- @media (min-width: 782px) and (min-width: 960px) { body.auto-fold .edit-post-layout__content { margin-left: 160px; } }
207
-
208
- @media (min-width: 782px) { body.folded .edit-post-layout__content { margin-left: 36px; }
209
- body.is-fullscreen-mode .edit-post-layout__content { margin-left: 0 !important; top: 56px; } }
210
 
211
- @media (min-width: 782px) { .has-fixed-toolbar .edit-post-layout__content { top: 124px; } }
212
-
213
- @media (min-width: 1080px) { .has-fixed-toolbar .edit-post-layout__content { top: 88px; } }
214
-
215
- .edit-post-layout__content .edit-post-visual-editor { flex: 1 1 auto; }
216
-
217
- @supports ((position: -webkit-sticky) or (position: sticky)) { .edit-post-layout__content .edit-post-visual-editor { flex-basis: 100%; } }
218
-
219
- .edit-post-layout__content .edit-post-layout__metaboxes { flex-shrink: 0; }
220
 
221
  .edit-post-layout .editor-post-publish-panel { position: fixed; z-index: 100001; top: 46px; bottom: 0; right: 0; left: 0; overflow: auto; }
222
 
@@ -231,13 +242,9 @@ body.is-fullscreen-mode .edit-post-layout__content .components-editor-notices__s
231
 
232
  @keyframes edit-post-post-publish-panel__slide-in-animation { 100% { transform: translateX(0%); } }
233
 
234
- .edit-post-layout .editor-post-publish-panel__header-publish-button .components-button.is-large { height: 33px; line-height: 32px; }
235
 
236
- .edit-post-layout .editor-post-publish-panel__header-publish-button .editor-post-publish-panel__spacer { display: inline-flex; flex: 0 1 52px; }
237
-
238
- .edit-post-toggle-publish-panel { position: fixed; top: -9999em; bottom: auto; left: auto; right: 0; z-index: 100000; padding: 10px 10px 10px 0; width: 280px; background-color: #fff; }
239
-
240
- .edit-post-toggle-publish-panel:focus { top: auto; bottom: 0; }
241
 
242
  .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button { width: auto; height: auto; display: block; font-size: 14px; font-weight: 600; margin: 0 0 0 auto; padding: 15px 23px 14px; line-height: normal; text-decoration: none; outline: none; background: #f1f1f1; color: #11a0d2; }
243
 
@@ -259,38 +266,7 @@ body.admin-color-light .edit-post-toggle-publish-panel .edit-post-toggle-publish
259
 
260
  .edit-post-layout__footer { display: none; z-index: 30; }
261
 
262
- @media (min-width: 782px) { .edit-post-layout__footer { display: flex; position: fixed; bottom: 0; right: 0; background: #fff; height: 24px; padding: 0 8px; align-items: center; border-top: 1px solid #e2e4e7; font-size: 13px; box-sizing: border-box; } }
263
-
264
- .edit-post-layout__footer { /* Set left position when auto-fold is not on the body element. */ left: 0; }
265
-
266
- @media (min-width: 782px) { .edit-post-layout__footer { left: 160px; } }
267
-
268
- .auto-fold .edit-post-layout__footer { /* Auto fold is when on smaller breakpoints, nav menu auto collapses. */ }
269
-
270
- @media (min-width: 782px) { .auto-fold .edit-post-layout__footer { left: 36px; } }
271
-
272
- @media (min-width: 960px) { .auto-fold .edit-post-layout__footer { left: 160px; } }
273
-
274
- /* Sidebar manually collapsed. */
275
- .folded .edit-post-layout__footer { left: 0; }
276
-
277
- @media (min-width: 782px) { .folded .edit-post-layout__footer { left: 36px; } }
278
-
279
- /* Mobile menu opened. */
280
- @media (max-width: 782px) { .auto-fold .wp-responsive-open .edit-post-layout__footer { left: 190px; } }
281
-
282
- /* In small screens with responsive menu expanded there is small white space. */
283
- @media (max-width: 600px) { .auto-fold .wp-responsive-open .edit-post-layout__footer { margin-left: -18px; } }
284
-
285
- body.is-fullscreen-mode .edit-post-layout__footer { left: 0 !important; }
286
-
287
- .edit-post-layout__scrollable-container { -webkit-overflow-scrolling: touch; padding-bottom: 50vh; }
288
-
289
- @media (min-width: 600px) { .edit-post-layout__scrollable-container { overflow-y: auto; } }
290
-
291
- @media (min-width: 600px) { .edit-post-layout__scrollable-container { overscroll-behavior-y: none; } }
292
-
293
- @media (min-width: 600px) { .edit-post-layout__scrollable-container { padding-bottom: 0; } }
294
 
295
  @media (min-width: 600px) { .edit-post-manage-blocks-modal { height: calc(100% - 56px - 56px); } }
296
 
@@ -334,7 +310,7 @@ body.is-fullscreen-mode .edit-post-layout__footer { left: 0 !important; }
334
 
335
  .edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label { display: flex; align-items: center; justify-content: space-between; flex-grow: 1; padding: 0.6rem 0 0.6rem 10px; }
336
 
337
- .edit-post-manage-blocks-modal__checklist-item .editor-block-icon { margin-right: 10px; fill: #555d66; }
338
 
339
  .edit-post-manage-blocks-modal__results { height: 100%; overflow: auto; margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; border-top: 1px solid #e2e4e7; }
340
 
@@ -368,17 +344,15 @@ body.is-fullscreen-mode .edit-post-layout__footer { left: 0 !important; }
368
 
369
  .edit-post-meta-boxes-area__clear { clear: both; }
370
 
371
- .edit-post-sidebar { position: fixed; z-index: 100000; top: 0; right: 0; bottom: 0; width: 280px; border-left: 1px solid #e2e4e7; background: #fff; color: #555d66; height: 100vh; overflow: hidden; }
372
 
373
- @media (min-width: 600px) { .edit-post-sidebar { top: 102px; z-index: 90; height: auto; overflow: auto; -webkit-overflow-scrolling: touch; } }
374
 
375
- @media (min-width: 782px) { .edit-post-sidebar { top: 88px; }
376
- .edit-post-layout.is-mode-visual .edit-post-sidebar { bottom: 24px; }
377
- body.is-fullscreen-mode .edit-post-sidebar { top: 56px; } }
378
 
379
- .edit-post-sidebar > .components-panel { border-left: none; border-right: none; overflow: auto; -webkit-overflow-scrolling: touch; height: auto; max-height: calc(100vh - 96px); margin-top: -1px; margin-bottom: -1px; position: relative; z-index: -2; }
380
 
381
- @media (min-width: 600px) { .edit-post-sidebar > .components-panel { overflow: hidden; height: auto; max-height: none; } }
382
 
383
  .edit-post-sidebar > .components-panel .components-panel__header { position: fixed; z-index: 1; top: 0; left: 0; right: 0; height: 50px; }
384
 
@@ -398,13 +372,6 @@ body.is-fullscreen-mode .edit-post-layout__footer { left: 0 !important; }
398
 
399
  .edit-post-sidebar .block-editor-skip-to-selected-block:focus { top: auto; right: 10px; bottom: 10px; left: auto; }
400
 
401
- /* Visual and Text editor both */
402
- @media (min-width: 782px) { .edit-post-layout.is-sidebar-opened .edit-post-layout__content { margin-right: 280px; } }
403
-
404
- .edit-post-layout.is-sidebar-opened .edit-post-sidebar, .edit-post-layout.is-sidebar-opened .edit-post-plugin-sidebar__sidebar-layout { /* Sidebar covers screen on mobile */ width: 100%; /* Sidebar sits on the side on larger breakpoints */ }
405
-
406
- @media (min-width: 782px) { .edit-post-layout.is-sidebar-opened .edit-post-sidebar, .edit-post-layout.is-sidebar-opened .edit-post-plugin-sidebar__sidebar-layout { width: 280px; } }
407
-
408
  /* Text Editor specific */
409
  .components-panel__header.edit-post-sidebar__header { background: #fff; padding-right: 8px; }
410
 
@@ -414,11 +381,11 @@ body.is-fullscreen-mode .edit-post-layout__footer { left: 0 !important; }
414
 
415
  .components-panel__header.edit-post-sidebar__panel-tabs { justify-content: flex-start; padding-left: 0; padding-right: 4px; border-top: 0; margin-top: 0; }
416
 
417
- .components-panel__header.edit-post-sidebar__panel-tabs .components-icon-button { display: none; margin-left: auto; }
418
 
419
- @media (min-width: 782px) { .components-panel__header.edit-post-sidebar__panel-tabs .components-icon-button { display: flex; } }
420
 
421
- .edit-post-sidebar__panel-tab { background: transparent; border: none; box-shadow: none; cursor: pointer; height: 50px; padding: 3px 15px; margin-left: 0; font-weight: 400; outline-offset: -1px; transition: box-shadow 0.1s linear; }
422
 
423
  @media (prefers-reduced-motion: reduce) { .edit-post-sidebar__panel-tab { transition-duration: 0s; } }
424
 
@@ -440,7 +407,7 @@ body.admin-color-light .edit-post-sidebar__panel-tab.is-active { box-shadow: ins
440
 
441
  .edit-post-sidebar__panel-tab.is-active::before { content: ""; position: absolute; top: 0; bottom: 1px; right: 0; left: 0; border-bottom: 3px solid transparent; }
442
 
443
- .edit-post-sidebar__panel-tab:focus { color: #191e23; outline-offset: -1px; outline: 1px dotted #555d66; }
444
 
445
  .components-panel__body.is-opened.edit-post-last-revision__panel { padding: 0; }
446
 
@@ -464,10 +431,6 @@ body.admin-color-light .edit-post-sidebar__panel-tab.is-active { box-shadow: ins
464
 
465
  .components-button.edit-post-post-schedule__toggle { text-align: right; }
466
 
467
- .edit-post-post-schedule__dialog .components-popover__content { padding: 10px; }
468
-
469
- @media (min-width: 782px) { .edit-post-post-schedule__dialog .components-popover__content { width: 270px; } }
470
-
471
  .editor-post-slug__input { margin: -5px 0; padding: 2px; }
472
 
473
  .edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft { margin-top: 15px; width: 100%; text-align: center; }
@@ -488,37 +451,37 @@ body.admin-color-light .edit-post-sidebar__panel-tab.is-active { box-shadow: ins
488
 
489
  .edit-post-post-visibility__dialog-info { color: #7e8993; padding-left: 20px; font-style: italic; margin: 4px 0 0; line-height: 1.4; }
490
 
491
- .components-panel__header.edit-post-sidebar__panel-tabs { justify-content: flex-start; padding-left: 0; padding-right: 4px; border-top: 0; position: -webkit-sticky; position: sticky; z-index: -1; top: 0; }
492
 
493
  .components-panel__header.edit-post-sidebar__panel-tabs ul { display: flex; }
494
 
495
  .components-panel__header.edit-post-sidebar__panel-tabs li { margin: 0; }
496
 
497
- .edit-post-sidebar__panel-tab { background: transparent; border: none; box-shadow: none; cursor: pointer; padding: 3px 15px; margin-left: 0; font-weight: 400; color: #191e23; outline-offset: -1px; transition: box-shadow 0.1s linear; }
498
 
499
- @media (prefers-reduced-motion: reduce) { .edit-post-sidebar__panel-tab { transition-duration: 0s; } }
500
 
501
- .edit-post-sidebar__panel-tab::after { content: attr(data-label); display: block; font-weight: 600; height: 0; overflow: hidden; speak: none; visibility: hidden; }
502
 
503
- .edit-post-sidebar__panel-tab.is-active { box-shadow: inset 0 -3px #007cba; font-weight: 600; position: relative; }
504
 
505
- body.admin-color-sunrise .edit-post-sidebar__panel-tab.is-active { box-shadow: inset 0 -3px #837425; }
506
 
507
- body.admin-color-ocean .edit-post-sidebar__panel-tab.is-active { box-shadow: inset 0 -3px #5e7d5e; }
508
 
509
- body.admin-color-midnight .edit-post-sidebar__panel-tab.is-active { box-shadow: inset 0 -3px #497b8d; }
510
 
511
- body.admin-color-ectoplasm .edit-post-sidebar__panel-tab.is-active { box-shadow: inset 0 -3px #523f6d; }
512
 
513
- body.admin-color-coffee .edit-post-sidebar__panel-tab.is-active { box-shadow: inset 0 -3px #59524c; }
514
 
515
- body.admin-color-blue .edit-post-sidebar__panel-tab.is-active { box-shadow: inset 0 -3px #417e9B; }
516
 
517
- body.admin-color-light .edit-post-sidebar__panel-tab.is-active { box-shadow: inset 0 -3px #007cba; }
518
 
519
- .edit-post-sidebar__panel-tab.is-active::before { content: ""; position: absolute; top: 0; bottom: 1px; right: 0; left: 0; border-bottom: 3px solid transparent; }
520
 
521
- .edit-post-sidebar__panel-tab:focus { color: #191e23; outline-offset: -1px; outline: 1px dotted #555d66; }
522
 
523
  /* Text Editor specific */
524
  .components-panel__header.edit-post-sidebar-header__small { background: #fff; padding-right: 4px; }
@@ -529,13 +492,13 @@ body.admin-color-light .edit-post-sidebar__panel-tab.is-active { box-shadow: ins
529
 
530
  .components-panel__header.edit-post-sidebar-header { padding-right: 4px; background: #f3f4f5; }
531
 
532
- .components-panel__header.edit-post-sidebar-header .components-icon-button { display: none; margin-left: auto; }
533
 
534
- .components-panel__header.edit-post-sidebar-header .components-icon-button ~ .components-icon-button { margin-left: 0; }
535
 
536
- @media (min-width: 782px) { .components-panel__header.edit-post-sidebar-header .components-icon-button { display: flex; } }
537
 
538
- .edit-post-text-editor { width: 100%; padding-top: 44px; }
539
 
540
  .edit-post-text-editor .editor-post-title__block textarea { border: 1px solid #e2e4e7; margin-bottom: 4px; padding: 14px; }
541
 
@@ -553,17 +516,21 @@ body.admin-color-light .edit-post-sidebar__panel-tab.is-active { box-shadow: ins
553
 
554
  .edit-post-text-editor__toolbar h2 { margin: 0 auto 0 0; font-size: 13px; color: #555d66; }
555
 
556
- .edit-post-text-editor__toolbar .components-icon-button svg { order: 1; }
557
 
558
  .edit-post-text-editor__body { max-width: calc(100% - 32px); margin-left: 16px; margin-right: 16px; padding-top: 40px; }
559
 
560
  @media (min-width: 600px) { .edit-post-text-editor__body { max-width: 580px; margin-left: auto; margin-right: auto; } }
561
 
562
- .edit-post-visual-editor { position: relative; padding-top: 50px; }
563
 
564
  .edit-post-visual-editor .components-button { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
565
 
566
- .edit-post-visual-editor .block-editor-writing-flow__click-redirect { height: 50vh; width: 100%; }
 
 
 
 
567
 
568
  .has-metaboxes .edit-post-visual-editor .block-editor-writing-flow__click-redirect { height: 0; }
569
 
@@ -603,6 +570,22 @@ body.admin-color-light .edit-post-sidebar__panel-tab.is-active { box-shadow: ins
603
 
604
  @media (min-width: 600px) { .edit-post-options-modal__custom-fields-confirmation-message, .edit-post-options-modal__custom-fields-confirmation-button { max-width: 300px; } }
605
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
606
  /** Animations */
607
  @-webkit-keyframes edit-post__fade-in-animation { from { opacity: 0; }
608
  to { opacity: 1; } }
@@ -732,17 +715,17 @@ body.admin-color-light .edit-post-header input[type="checkbox"][aria-checked="mi
732
 
733
  /** Colors */
734
  /** Breakpoints & Media Queries */
 
735
  /** Often re-used variables */
736
  /** Breakpoint mixins */
737
  /** Long content fade mixin Creates a fading overlay to signify that the content is longer than the space allows. */
738
  /** Button states and focus styles */
739
  /** Applies editor left position to the selector passed as argument */
740
- /** Applies editor right position to the selector passed as argument */
741
  /** Styles that are reused verbatim in a few places */
742
  /** Allows users to opt-out of animations via OS-level preferences. */
743
  /** Reset default styles for JavaScript UI based pages. This is a WP-admin agnostic reset */
744
  /** Reset the WP Admin page styles for Gutenberg-like pages. */
745
- .editor-autocompleters__block .editor-block-icon { margin-right: 8px; }
746
 
747
  .editor-autocompleters__user .editor-autocompleters__user-avatar { margin-right: 8px; flex-grow: 0; flex-shrink: 0; max-width: none; width: 24px; height: 24px; }
748
 
@@ -790,12 +773,14 @@ body.admin-color-light .edit-post-header input[type="checkbox"][aria-checked="mi
790
 
791
  .components-editor-notices__pinned { position: relative; left: 0; top: 0; right: 0; color: #191e23; }
792
 
793
- .components-editor-notices__dismissible .components-notice, .components-editor-notices__pinned .components-notice { box-sizing: border-box; margin: 0 0 5px; padding: 6px 12px; min-height: 60px; }
794
 
795
  .components-editor-notices__dismissible .components-notice .components-notice__dismiss, .components-editor-notices__pinned .components-notice .components-notice__dismiss { margin: 6px -5px 6px 5px; }
796
 
797
  .components-editor-notices__snackbar { width: 100%; }
798
 
 
 
799
  .editor-error-boundary { margin: auto; max-width: 780px; padding: 20px; margin-top: 60px; box-shadow: 0 3px 30px rgba(25, 30, 35, 0.2); }
800
 
801
  .editor-page-attributes__template { margin-bottom: 10px; }
@@ -812,7 +797,9 @@ body.admin-color-light .edit-post-header input[type="checkbox"][aria-checked="mi
812
 
813
  .editor-post-featured-image { padding: 0; }
814
 
815
- .editor-post-featured-image .components-spinner { margin: 0; }
 
 
816
 
817
  .editor-post-featured-image .components-button + .components-button { display: block; margin-top: 1em; }
818
 
@@ -824,7 +811,7 @@ body.admin-color-light .edit-post-header input[type="checkbox"][aria-checked="mi
824
 
825
  .editor-post-featured-image__preview:not(:disabled):not([aria-disabled="true"]):focus { box-shadow: 0 0 0 4px #00a0d2; }
826
 
827
- .editor-post-featured-image__toggle { border: 1px dashed #a2aab2; background-color: #edeff0; line-height: 20px; padding: 8px 0; text-align: center; }
828
 
829
  .editor-post-featured-image__toggle:hover { background-color: #f8f9f9; }
830
 
@@ -838,9 +825,11 @@ body.admin-color-light .edit-post-header input[type="checkbox"][aria-checked="mi
838
 
839
  .editor-post-last-revision__title .dashicon { margin-right: 5px; }
840
 
841
- .components-icon-button:not(:disabled):not([aria-disabled="true"]).editor-post-last-revision__title:hover, .components-icon-button:not(:disabled):not([aria-disabled="true"]).editor-post-last-revision__title:active { border: none; box-shadow: none; }
 
 
842
 
843
- .components-icon-button:not(:disabled):not([aria-disabled="true"]).editor-post-last-revision__title:focus { color: #191e23; border: none; box-shadow: none; outline-offset: -2px; outline: 1px dotted #555d66; }
844
 
845
  .editor-post-locked-modal { height: auto; padding-right: 10px; padding-left: 10px; padding-top: 10px; max-width: 480px; }
846
 
@@ -904,13 +893,17 @@ body.admin-color-light .edit-post-header input[type="checkbox"][aria-checked="mi
904
  .editor-post-permalink__link::after { content: ""; display: block; position: absolute; -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; pointer-events: none; background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 90%); top: 0; bottom: 0; right: 0; left: auto; width: 20%; height: auto; }
905
 
906
  /* rtl:end:ignore */
 
 
907
  .editor-post-publish-panel { background: #fff; }
908
 
909
  .editor-post-publish-panel__content { min-height: calc(100% - 140px); }
910
 
911
  .editor-post-publish-panel__content .components-spinner { display: block; float: none; margin: 100px auto 0; }
912
 
913
- .editor-post-publish-panel__header { background: #fff; padding-left: 16px; height: 56px; border-bottom: 1px solid #e2e4e7; display: flex; align-items: center; align-content: space-between; }
 
 
914
 
915
  .editor-post-publish-panel__header-publish-button { display: flex; justify-content: flex-end; flex-grow: 1; text-align: right; flex-wrap: nowrap; }
916
 
@@ -934,6 +927,8 @@ body.admin-color-light .edit-post-header input[type="checkbox"][aria-checked="mi
934
 
935
  .editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend { display: none; }
936
 
 
 
937
  .post-publish-panel__postpublish .components-panel__body { border-bottom: 1px solid #e2e4e7; border-top: none; }
938
 
939
  .post-publish-panel__postpublish-buttons { display: flex; align-content: space-between; flex-wrap: wrap; margin: -5px; }
@@ -1052,10 +1047,6 @@ body.admin-color-light .editor-post-text-editor__link { color: #0085ba; }
1052
  @media (min-width: 600px) { .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { box-shadow: -3px 0 0 0 #555d66; }
1053
  .is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { box-shadow: -3px 0 0 0 #d7dade; } }
1054
 
1055
- .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar):not(.is-selected) .editor-post-title__input:hover { box-shadow: -3px 0 0 0 rgba(145, 151, 162, 0.25); }
1056
-
1057
- .is-dark-theme .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar):not(.is-selected) .editor-post-title__input:hover { box-shadow: -3px 0 0 0 rgba(255, 255, 255, 0.25); }
1058
-
1059
  .editor-post-title__block.is-focus-mode .editor-post-title__input { opacity: 0.5; transition: opacity 0.1s linear; }
1060
 
1061
  @media (prefers-reduced-motion: reduce) { .editor-post-title__block.is-focus-mode .editor-post-title__input { transition-duration: 0s; } }
@@ -1068,11 +1059,11 @@ body.admin-color-light .editor-post-text-editor__link { color: #0085ba; }
1068
 
1069
  @media (min-width: 600px) { .editor-post-title .editor-post-permalink { left: 2px; right: 2px; } }
1070
 
1071
- .editor-post-trash.components-button { width: 100%; color: #b52727; border-color: #b52727; justify-content: center; }
1072
 
1073
  .editor-post-trash.components-button:hover, .editor-post-trash.components-button:focus { color: #a02222; border-color: #a02222; }
1074
 
1075
- .table-of-contents__popover.components-popover:not(.is-mobile) .components-popover__content { min-width: 380px; }
1076
 
1077
  .components-popover.table-of-contents__popover { z-index: 99998; }
1078
 
@@ -1100,12 +1091,12 @@ body.admin-color-light .editor-post-text-editor__link { color: #0085ba; }
1100
 
1101
  /** Colors */
1102
  /** Breakpoints & Media Queries */
 
1103
  /** Often re-used variables */
1104
  /** Breakpoint mixins */
1105
  /** Long content fade mixin Creates a fading overlay to signify that the content is longer than the space allows. */
1106
  /** Button states and focus styles */
1107
  /** Applies editor left position to the selector passed as argument */
1108
- /** Applies editor right position to the selector passed as argument */
1109
  /** Styles that are reused verbatim in a few places */
1110
  /** Allows users to opt-out of animations via OS-level preferences. */
1111
  /** Reset default styles for JavaScript UI based pages. This is a WP-admin agnostic reset */
@@ -1174,91 +1165,91 @@ body.admin-color-light .editor-post-text-editor__link { color: #0085ba; }
1174
 
1175
  .components-button-group { display: inline-block; }
1176
 
1177
- .components-button-group .components-button.is-button { border-radius: 0; display: inline-flex; }
1178
 
1179
- .components-button-group .components-button.is-button + .components-button.is-button { margin-left: -1px; }
1180
 
1181
- .components-button-group .components-button.is-button:first-child { border-radius: 3px 0 0 3px; }
1182
 
1183
- .components-button-group .components-button.is-button:last-child { border-radius: 0 3px 3px 0; }
1184
 
1185
- .components-button-group .components-button.is-button:focus, .components-button-group .components-button.is-button.is-primary { position: relative; z-index: 1; }
1186
 
1187
- .components-button-group .components-button.is-button.is-primary { box-shadow: none; }
1188
 
1189
- .components-button { display: inline-flex; text-decoration: none; font-size: 13px; margin: 0; border: 0; cursor: pointer; -webkit-appearance: none; background: none; transition: box-shadow 0.1s linear; /* Buttons that look like links, for a cross of good semantics with the visual */ /* Link buttons that are red to indicate destructive behavior. */ }
1190
 
1191
  @media (prefers-reduced-motion: reduce) { .components-button { transition-duration: 0s; } }
1192
 
1193
- .components-button.is-button { padding: 0 10px; line-height: 2; height: 28px; border-radius: 3px; white-space: nowrap; border-width: 1px; border-style: solid; }
1194
 
1195
- .components-button.is-default { color: #0075af; border-color: #0075af; background: #f3f5f6; }
1196
 
1197
- body.admin-color-sunrise .components-button.is-default { color: #c47e46; border-color: #c47e46; }
1198
 
1199
- body.admin-color-ocean .components-button.is-default { color: #99ae98; border-color: #99ae98; }
1200
 
1201
- body.admin-color-midnight .components-button.is-default { color: #d4483f; border-color: #d4483f; }
1202
 
1203
- body.admin-color-ectoplasm .components-button.is-default { color: #9dab51; border-color: #9dab51; }
1204
 
1205
- body.admin-color-coffee .components-button.is-default { color: #b69c84; border-color: #b69c84; }
1206
 
1207
- body.admin-color-blue .components-button.is-default { color: #cca154; border-color: #cca154; }
1208
 
1209
- body.admin-color-light .components-button.is-default { color: #007daf; border-color: #007daf; }
1210
 
1211
- .components-button.is-default:hover { background: #f1f1f1; border-color: #005d8c; color: #005d8c; text-decoration: none; }
1212
 
1213
- body.admin-color-sunrise .components-button.is-default:hover { border-color: #9d6538; color: #9d6538; }
1214
 
1215
- body.admin-color-ocean .components-button.is-default:hover { border-color: #7a8b7a; color: #7a8b7a; }
1216
 
1217
- body.admin-color-midnight .components-button.is-default:hover { border-color: #a93a32; color: #a93a32; }
1218
 
1219
- body.admin-color-ectoplasm .components-button.is-default:hover { border-color: #7d8941; color: #7d8941; }
1220
 
1221
- body.admin-color-coffee .components-button.is-default:hover { border-color: #927d69; color: #927d69; }
1222
 
1223
- body.admin-color-blue .components-button.is-default:hover { border-color: #a38043; color: #a38043; }
1224
 
1225
- body.admin-color-light .components-button.is-default:hover { border-color: #00648c; color: #00648c; }
1226
 
1227
- .components-button.is-default:focus:enabled { background: #f3f5f6; color: #005d8c; border-color: #0076b1; box-shadow: 0 0 0 1px #0076b1; text-decoration: none; }
1228
 
1229
- body.admin-color-sunrise .components-button.is-default:focus:enabled { color: #9d6538; border-color: #c77f46; box-shadow: 0 0 0 1px #c77f46; }
1230
 
1231
- body.admin-color-ocean .components-button.is-default:focus:enabled { color: #7a8b7a; border-color: #9bb09a; box-shadow: 0 0 0 1px #9bb09a; }
1232
 
1233
- body.admin-color-midnight .components-button.is-default:focus:enabled { color: #a93a32; border-color: #d64940; box-shadow: 0 0 0 1px #d64940; }
1234
 
1235
- body.admin-color-ectoplasm .components-button.is-default:focus:enabled { color: #7d8941; border-color: #9fad52; box-shadow: 0 0 0 1px #9fad52; }
1236
 
1237
- body.admin-color-coffee .components-button.is-default:focus:enabled { color: #927d69; border-color: #b89e85; box-shadow: 0 0 0 1px #b89e85; }
1238
 
1239
- body.admin-color-blue .components-button.is-default:focus:enabled { color: #a38043; border-color: #cea255; box-shadow: 0 0 0 1px #cea255; }
1240
 
1241
- body.admin-color-light .components-button.is-default:focus:enabled { color: #00648c; border-color: #007eb1; box-shadow: 0 0 0 1px #007eb1; }
1242
 
1243
- .components-button.is-default:active:enabled { background: #f3f5f6; color: #0076b1; border-color: #7e8993; box-shadow: none; }
1244
 
1245
- body.admin-color-sunrise .components-button.is-default:active:enabled { color: #c77f46; }
1246
 
1247
- body.admin-color-ocean .components-button.is-default:active:enabled { color: #9bb09a; }
1248
 
1249
- body.admin-color-midnight .components-button.is-default:active:enabled { color: #d64940; }
1250
 
1251
- body.admin-color-ectoplasm .components-button.is-default:active:enabled { color: #9fad52; }
1252
 
1253
- body.admin-color-coffee .components-button.is-default:active:enabled { color: #b89e85; }
1254
 
1255
- body.admin-color-blue .components-button.is-default:active:enabled { color: #cea255; }
1256
 
1257
- body.admin-color-light .components-button.is-default:active:enabled { color: #007eb1; }
1258
 
1259
- .components-button.is-default:disabled, .components-button.is-default[aria-disabled="true"] { color: #a0a5aa; border-color: #ddd; background: #f7f7f7; text-shadow: 0 1px 0 #fff; transform: none; opacity: 1; }
1260
 
1261
- .components-button.is-primary { background: #007cba; border-color: #007cba; color: #fff; text-decoration: none; text-shadow: none; }
1262
 
1263
  body.admin-color-sunrise .components-button.is-primary { background: #d1864a; border-color: #d1864a; }
1264
 
@@ -1274,21 +1265,21 @@ body.admin-color-blue .components-button.is-primary { background: #d9ab59; borde
1274
 
1275
  body.admin-color-light .components-button.is-primary { background: #0085ba; border-color: #0085ba; }
1276
 
1277
- .components-button.is-primary:hover, .components-button.is-primary:focus:enabled { background: #0070a7; border-color: #0070a7; color: #fff; }
1278
 
1279
- body.admin-color-sunrise .components-button.is-primary:hover, body.admin-color-sunrise .components-button.is-primary:focus:enabled { background: #bc7943; border-color: #bc7943; }
1280
 
1281
- body.admin-color-ocean .components-button.is-primary:hover, body.admin-color-ocean .components-button.is-primary:focus:enabled { background: #93a792; border-color: #93a792; }
1282
 
1283
- body.admin-color-midnight .components-button.is-primary:hover, body.admin-color-midnight .components-button.is-primary:focus:enabled { background: #cb453c; border-color: #cb453c; }
1284
 
1285
- body.admin-color-ectoplasm .components-button.is-primary:hover, body.admin-color-ectoplasm .components-button.is-primary:focus:enabled { background: #96a44d; border-color: #96a44d; }
1286
 
1287
- body.admin-color-coffee .components-button.is-primary:hover, body.admin-color-coffee .components-button.is-primary:focus:enabled { background: #af957e; border-color: #af957e; }
1288
 
1289
- body.admin-color-blue .components-button.is-primary:hover, body.admin-color-blue .components-button.is-primary:focus:enabled { background: #c39a50; border-color: #c39a50; }
1290
 
1291
- body.admin-color-light .components-button.is-primary:hover, body.admin-color-light .components-button.is-primary:focus:enabled { background: #0078a7; border-color: #0078a7; }
1292
 
1293
  .components-button.is-primary:focus:enabled { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; }
1294
 
@@ -1338,8 +1329,6 @@ body.admin-color-blue .components-button.is-primary:disabled, body.admin-color-b
1338
 
1339
  body.admin-color-light .components-button.is-primary:disabled, body.admin-color-light .components-button.is-primary:disabled:active:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"], body.admin-color-light .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:active:enabled { color: #66b6d6; background: #1991c1; border-color: #1991c1; }
1340
 
1341
- .components-button.is-primary:disabled.is-button, .components-button.is-primary:disabled.is-button:hover, .components-button.is-primary:disabled:active:enabled, .components-button.is-primary:disabled:active:enabled.is-button, .components-button.is-primary:disabled:active:enabled.is-button:hover, .components-button.is-primary:disabled:active:enabled:active:enabled, .components-button.is-primary[aria-disabled="true"].is-button, .components-button.is-primary[aria-disabled="true"].is-button:hover, .components-button.is-primary[aria-disabled="true"]:active:enabled, .components-button.is-primary[aria-disabled="true"]:enabled.is-button, .components-button.is-primary[aria-disabled="true"]:enabled.is-button:hover, .components-button.is-primary[aria-disabled="true"]:enabled:active:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled.is-button, .components-button.is-primary[aria-disabled="true"]:active:enabled.is-button:hover, .components-button.is-primary[aria-disabled="true"]:active:enabled:active:enabled { box-shadow: none; text-shadow: none; }
1342
-
1343
  .components-button.is-primary:disabled:focus:enabled, .components-button.is-primary:disabled:active:enabled:focus:enabled, .components-button.is-primary[aria-disabled="true"]:focus:enabled, .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; }
1344
 
1345
  body.admin-color-sunrise .components-button.is-primary:disabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #d1864a; }
@@ -1372,11 +1361,11 @@ body.admin-color-blue .components-button.is-primary.is-busy, body.admin-color-bl
1372
 
1373
  body.admin-color-light .components-button.is-primary.is-busy, body.admin-color-light .components-button.is-primary.is-busy:disabled, body.admin-color-light .components-button.is-primary.is-busy[aria-disabled="true"] { background-image: linear-gradient(-45deg, #0085ba 28%, #006a95 28%, #006a95 72%, #0085ba 72%); border-color: #0085ba; }
1374
 
1375
- .components-button.is-link { margin: 0; padding: 0; box-shadow: none; border: 0; border-radius: 0; background: none; outline: none; text-align: left; /* Mimics the default link style in common.css */ color: #0073aa; text-decoration: underline; transition-property: border, background, color; transition-duration: 0.05s; transition-timing-function: ease-in-out; }
1376
 
1377
  @media (prefers-reduced-motion: reduce) { .components-button.is-link { transition-duration: 0s; } }
1378
 
1379
- .components-button.is-link:hover, .components-button.is-link:active { color: #00a0d2; }
1380
 
1381
  .components-button.is-link:focus { color: #124964; box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); }
1382
 
@@ -1388,13 +1377,11 @@ body.admin-color-light .components-button.is-primary.is-busy, body.admin-color-l
1388
 
1389
  .components-button:focus:not(:disabled) { background-color: #fff; color: #191e23; box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; outline: 2px solid transparent; }
1390
 
1391
- .components-button.is-busy, .components-button.is-default.is-busy, .components-button.is-default.is-busy:disabled, .components-button.is-default.is-busy[aria-disabled="true"] { -webkit-animation: components-button__busy-animation 2500ms infinite linear; animation: components-button__busy-animation 2500ms infinite linear; background-size: 100px 100%; background-image: repeating-linear-gradient(-45deg, #e2e4e7, #fff 11px, #fff 10px, #e2e4e7 20px); opacity: 1; }
1392
-
1393
- .components-button.is-large { height: 30px; line-height: 28px; padding: 0 12px 2px; }
1394
 
1395
- .components-button.is-small { height: 24px; line-height: 22px; padding: 0 8px 1px; font-size: 11px; }
1396
 
1397
- .components-button.is-tertiary { color: #007cba; padding: 0 10px; line-height: 26px; height: 28px; }
1398
 
1399
  body.admin-color-sunrise .components-button.is-tertiary { color: #837425; }
1400
 
@@ -1416,21 +1403,27 @@ body.admin-color-light .components-button.is-tertiary { color: #007cba; }
1416
 
1417
  .components-button.is-tertiary:active:focus:enabled { box-shadow: none; }
1418
 
1419
- .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { color: #005d8c; }
1420
 
1421
- body.admin-color-sunrise .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { color: #62571c; }
1422
 
1423
- body.admin-color-ocean .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { color: #475e47; }
1424
 
1425
- body.admin-color-midnight .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { color: #375c6a; }
1426
 
1427
- body.admin-color-ectoplasm .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { color: #3e2f52; }
1428
 
1429
- body.admin-color-coffee .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { color: #433e39; }
1430
 
1431
- body.admin-color-blue .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { color: #315f74; }
1432
 
1433
- body.admin-color-light .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { color: #005d8c; }
 
 
 
 
 
 
1434
 
1435
  .components-button .screen-reader-text { height: auto; }
1436
 
@@ -1460,11 +1453,11 @@ svg.dashicon.components-checkbox-control__checked { fill: #fff; cursor: pointer;
1460
 
1461
  @media (min-width: 600px) { svg.dashicon.components-checkbox-control__checked { width: 21px; height: 21px; left: -3px; } }
1462
 
1463
- .components-circular-option-picker { margin-right: -14px; width: calc(100% + 14px); }
1464
 
1465
- .components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper { width: calc(100% - 14px); display: flex; justify-content: flex-end; }
1466
 
1467
- .components-circular-option-picker__option-wrapper { display: inline-block; height: 28px; width: 28px; margin-right: 14px; margin-bottom: 14px; vertical-align: top; transform: scale(1); transition: 100ms transform ease; }
1468
 
1469
  @media (prefers-reduced-motion: reduce) { .components-circular-option-picker__option-wrapper { transition-duration: 0s; } }
1470
 
@@ -1478,16 +1471,18 @@ svg.dashicon.components-checkbox-control__checked { fill: #fff; cursor: pointer;
1478
 
1479
  @media (prefers-reduced-motion: reduce) { .components-circular-option-picker__option { transition-duration: 0s; } }
1480
 
1481
- .components-circular-option-picker__option.is-active { box-shadow: inset 0 0 0 4px; position: relative; z-index: 1; }
1482
 
1483
- .components-circular-option-picker__option.is-active + .dashicons-saved { position: absolute; left: 4px; top: 4px; border-radius: 50%; z-index: 2; background: #fff; pointer-events: none; }
1484
 
1485
- .components-circular-option-picker__option::after { content: ""; position: absolute; top: -1px; left: -1px; bottom: -1px; right: -1px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); border: 1px solid transparent; }
1486
 
1487
- .components-circular-option-picker__option:focus { outline: none; }
1488
 
1489
  .components-circular-option-picker__option:focus::after { content: ""; border: 2px solid #606a73; width: 32px; height: 32px; position: absolute; top: -2px; left: -2px; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff; }
1490
 
 
 
1491
  .components-circular-option-picker__button-action .components-circular-option-picker__option { color: #fff; background: #fff; }
1492
 
1493
  .components-circular-option-picker__dropdown-link-action { margin-right: 16px; }
@@ -1501,6 +1496,10 @@ svg.dashicon.components-checkbox-control__checked { fill: #fff; cursor: pointer;
1501
  /** Parts of this source were derived and modified from react-color, released under the MIT license. https://github.com/casesandberg/react-color/ Copyright (c) 2015 Case Sandberg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
1502
  .components-color-picker { width: 100%; overflow: hidden; }
1503
 
 
 
 
 
1504
  .components-color-picker__saturation { width: 100%; padding-bottom: 55%; position: relative; }
1505
 
1506
  .components-color-picker__body { padding: 16px 16px 12px; }
@@ -1555,14 +1554,52 @@ svg.dashicon.components-checkbox-control__checked { fill: #fff; cursor: pointer;
1555
  /* INPUTS COMPONENT */
1556
  .components-color-picker__inputs-wrapper { margin: 0 -4px; padding-top: 16px; display: flex; align-items: flex-end; }
1557
 
1558
- .components-color-picker__inputs-wrapper fieldset { flex: 1; }
1559
 
1560
- .components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type="number"] { padding: 2px; }
1561
 
1562
- .components-color-picker__inputs-fields { display: flex; /*rtl:ignore*/ direction: ltr; }
 
 
 
 
1563
 
1564
  .components-color-picker__inputs-fields .components-base-control__field { margin: 0 4px; }
1565
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1566
  svg.dashicon { fill: currentColor; outline: none; }
1567
 
1568
  /*rtl:begin:ignore*/
@@ -1885,19 +1922,25 @@ svg.dashicon { fill: currentColor; outline: none; }
1885
  .DateRangePicker_closeButton_svg { height: 15px; width: 15px; fill: #cacccd; }
1886
 
1887
  /*rtl:end:ignore*/
1888
- .components-datetime .components-datetime__calendar-help { padding: 8px; }
 
 
1889
 
1890
  .components-datetime .components-datetime__calendar-help h4 { margin: 0; }
1891
 
1892
- .components-datetime .components-datetime__date-help-button { display: block; margin-left: auto; margin-right: 8px; margin-top: 0.5em; }
1893
 
1894
  .components-datetime fieldset { border: 0; padding: 0; margin: 0; }
1895
 
1896
- .components-datetime select, .components-datetime input { box-sizing: border-box; height: 28px; vertical-align: middle; padding: 0; box-shadow: 0 0 0 transparent; transition: box-shadow 0.1s linear; border-radius: 4px; border: 1px solid #7e8993; }
1897
 
1898
  @media (prefers-reduced-motion: reduce) { .components-datetime select, .components-datetime input { transition-duration: 0s; } }
1899
 
1900
- .components-datetime__date { min-height: 236px; border-top: 1px solid #e2e4e7; margin-left: -8px; margin-right: -8px; }
 
 
 
 
1901
 
1902
  .components-datetime__date .CalendarMonth_caption { font-size: 13px; }
1903
 
@@ -1941,11 +1984,15 @@ body.admin-color-light .components-datetime__date .CalendarDay__selected:hover {
1941
 
1942
  .components-datetime__date .DayPicker_weekHeader { top: 50px; }
1943
 
 
 
1944
  .components-datetime__date.is-description-visible .DayPicker, .components-datetime__date.is-description-visible .components-datetime__date-help-button { visibility: hidden; }
1945
 
1946
- .components-datetime__time { margin-bottom: 1em; }
 
 
1947
 
1948
- .components-datetime__time fieldset { margin-top: 0.5em; position: relative; }
1949
 
1950
  .components-datetime__time .components-datetime__time-field-am-pm fieldset { margin-top: 0; }
1951
 
@@ -1959,9 +2006,9 @@ body.admin-color-light .components-datetime__date .CalendarDay__selected:hover {
1959
 
1960
  .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button:focus, .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button:focus { position: relative; z-index: 1; }
1961
 
1962
- .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-toggled, .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-toggled { background: #edeff0; border-color: #8f98a1; box-shadow: inset 0 2px 5px -3px #555d66; }
1963
 
1964
- .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-toggled:focus, .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-toggled:focus { box-shadow: inset 0 2px 5px -3px #555d66, 0 0 0 1px #fff, 0 0 0 3px #007cba; }
1965
 
1966
  .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time { /*rtl:ignore*/ direction: ltr; }
1967
 
@@ -1993,8 +2040,6 @@ body.admin-color-light .components-datetime__date .CalendarDay__selected:hover {
1993
 
1994
  .components-popover .components-datetime__date { padding-left: 4px; }
1995
 
1996
- .components-popover.edit-post-post-schedule__dialog.is-bottom.is-left { z-index: 100000; }
1997
-
1998
  .block-editor-dimension-control .components-base-control__field { display: flex; align-items: center; }
1999
 
2000
  .block-editor-dimension-control .components-base-control__label { display: flex; align-items: center; margin-right: 1em; margin-bottom: 0; }
@@ -2039,17 +2084,9 @@ body.is-dragging-components-draggable { cursor: move; /* Fallback for IE/Edge <
2039
 
2040
  .components-drop-zone__provider { height: 100%; }
2041
 
2042
- .components-dropdown-menu { padding: 3px; display: flex; }
2043
-
2044
- .components-dropdown-menu .components-dropdown-menu__toggle { width: auto; margin: 0; padding: 4px; border: 1px solid transparent; display: flex; flex-direction: row; }
2045
-
2046
- .components-dropdown-menu .components-dropdown-menu__toggle.is-active, .components-dropdown-menu .components-dropdown-menu__toggle.is-active:hover { box-shadow: none; background-color: #555d66; color: #fff; }
2047
-
2048
- .components-dropdown-menu .components-dropdown-menu__toggle:focus::before { top: -3px; right: -3px; bottom: -3px; left: -3px; }
2049
 
2050
- .components-dropdown-menu .components-dropdown-menu__toggle:hover, .components-dropdown-menu .components-dropdown-menu__toggle:focus, .components-dropdown-menu .components-dropdown-menu__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { color: #555d66; box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; }
2051
-
2052
- .components-dropdown-menu .components-dropdown-menu__toggle .components-dropdown-menu__indicator::after { content: ""; pointer-events: none; display: block; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 5px solid; margin-left: 4px; margin-right: 2px; }
2053
 
2054
  .components-dropdown-menu__popover .components-popover__content { width: 200px; }
2055
 
@@ -2061,21 +2098,21 @@ body.is-dragging-components-draggable { cursor: move; /* Fallback for IE/Edge <
2061
 
2062
  .components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator::before, .components-dropdown-menu__menu .components-menu-item.has-separator::before { display: block; content: ""; box-sizing: content-box; background-color: #e2e4e7; position: absolute; top: -3px; left: 0; right: 0; height: 1px; }
2063
 
2064
- .components-dropdown-menu__menu .components-dropdown-menu__menu-item:focus:not(:disabled):not([aria-disabled="true"]):not(.is-default), .components-dropdown-menu__menu .components-menu-item:focus:not(:disabled):not([aria-disabled="true"]):not(.is-default) { color: #191e23; border: none; box-shadow: none; outline-offset: -2px; outline: 1px dotted #555d66; }
2065
 
2066
- .components-dropdown-menu__menu .components-dropdown-menu__menu-item:hover, .components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .components-dropdown-menu__menu .components-menu-item:hover, .components-dropdown-menu__menu .components-menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { color: #191e23; border: none; box-shadow: none; background: #f3f4f5; }
2067
 
2068
  .components-dropdown-menu__menu .components-dropdown-menu__menu-item > svg, .components-dropdown-menu__menu .components-menu-item > svg { border-radius: 4px; padding: 2px; width: 24px; height: 24px; margin: -1px 8px -1px 0; }
2069
 
2070
- .components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-default).is-active > svg, .components-dropdown-menu__menu .components-menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-default).is-active > svg { outline: none; color: #fff; box-shadow: none; background: #555d66; }
2071
 
2072
  .components-dropdown-menu__menu .components-menu-group:not(:last-child) { border-bottom: 1px solid #e2e4e7; }
2073
 
2074
- .components-dropdown-menu__menu .components-menu-item__button, .components-dropdown-menu__menu .components-menu-item__button.components-icon-button { padding-left: 2rem; }
2075
 
2076
- .components-dropdown-menu__menu .components-menu-item__button.has-icon, .components-dropdown-menu__menu .components-menu-item__button.components-icon-button.has-icon { padding-left: 0.5rem; }
2077
 
2078
- .components-dropdown-menu__menu .components-menu-item__button .dashicon, .components-dropdown-menu__menu .components-menu-item__button.components-icon-button .dashicon { margin-right: 4px; }
2079
 
2080
  .components-external-link__icon { width: 1.4em; height: 1.4em; margin: -0.2em 0.1em 0; vertical-align: middle; }
2081
 
@@ -2119,20 +2156,20 @@ body.admin-color-light .components-focal-point-picker__icon .components-focal-po
2119
 
2120
  .components-font-size-picker__controls { max-width: 248px; display: flex; align-items: center; margin-bottom: 24px; }
2121
 
2122
- .components-font-size-picker__controls .components-range-control__number { height: 30px; margin-left: 0; margin-right: 8px; }
2123
 
2124
  .components-font-size-picker__controls .components-range-control__number[value=""] + .components-button { cursor: default; opacity: 0.3; pointer-events: none; }
2125
 
 
 
2126
  .components-font-size-picker__controls .components-font-size-picker__select { margin-right: 8px; flex-grow: 1; }
2127
 
2128
- .components-font-size-picker__select.components-font-size-picker__select.components-font-size-picker__select.components-font-size-picker__select, .components-font-size-picker__select .components-base-control__field { margin-bottom: 0; }
2129
 
2130
  .components-font-size-picker__custom-input .components-range-control__slider + .dashicon { width: 30px; height: 30px; }
2131
 
2132
  .components-font-size-picker { border: 0; padding: 0; margin: 0; }
2133
 
2134
- .components-form-file-upload .components-button.is-large { padding-left: 6px; }
2135
-
2136
  .components-form-toggle { position: relative; display: inline-block; }
2137
 
2138
  .components-form-toggle .components-form-toggle__on, .components-form-toggle .components-form-toggle__off { position: absolute; top: 6px; box-sizing: border-box; }
@@ -2257,15 +2294,15 @@ body.admin-color-light .components-form-token-field__token.is-borderless .compon
2257
 
2258
  .components-form-token-field__token.is-disabled .components-form-token-field__remove-token { cursor: default; }
2259
 
2260
- .components-form-token-field__token-text, .components-form-token-field__remove-token.components-icon-button { display: inline-block; line-height: 24px; background: #e2e4e7; transition: all 0.2s cubic-bezier(0.4, 1, 0.4, 1); }
2261
 
2262
- @media (prefers-reduced-motion: reduce) { .components-form-token-field__token-text, .components-form-token-field__remove-token.components-icon-button { transition-duration: 0s; -webkit-animation-duration: 1ms; animation-duration: 1ms; } }
2263
 
2264
  .components-form-token-field__token-text { border-radius: 12px 0 0 12px; padding: 0 4px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
2265
 
2266
- .components-form-token-field__remove-token.components-icon-button { cursor: pointer; border-radius: 0 12px 12px 0; padding: 0 2px; color: #555d66; line-height: 10px; overflow: initial; }
2267
 
2268
- .components-form-token-field__remove-token.components-icon-button:hover { color: #32373c; }
2269
 
2270
  .components-form-token-field__suggestions-list { flex: 1 0 100%; min-width: 100%; max-height: 9em; overflow-y: scroll; transition: all 0.15s ease-in-out; list-style: none; border-top: 1px solid #6c7781; margin: 4px -4px -4px; padding-top: 3px; }
2271
 
@@ -2277,40 +2314,70 @@ body.admin-color-light .components-form-token-field__token.is-borderless .compon
2277
 
2278
  .components-form-token-field__suggestion-match { text-decoration: underline; }
2279
 
2280
- .components-navigate-regions.is-focusing-regions [role="region"]:focus::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; pointer-events: none; outline: 4px solid transparent; box-shadow: inset 0 0 0 4px #33b3db; }
2281
 
2282
- @supports (outline-offset: 1px) { .components-navigate-regions.is-focusing-regions [role="region"]:focus::after { content: none; }
2283
- .components-navigate-regions.is-focusing-regions [role="region"]:focus { outline-style: solid; outline-color: #33b3db; outline-width: 4px; outline-offset: -4px; } }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2284
 
2285
- .components-icon-button { display: flex; align-items: center; padding: 8px; margin: 0; border: none; background: none; color: #555d66; position: relative; overflow: hidden; border-radius: 4px; }
2286
 
2287
- .components-icon-button .dashicon { display: inline-block; flex: 0 0 auto; }
2288
 
2289
- .components-icon-button svg { fill: currentColor; outline: none; }
 
2290
 
2291
- .components-icon-button.has-text svg { margin-right: 4px; }
2292
 
2293
- .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { background-color: #fff; color: #191e23; box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; }
 
2294
 
2295
- .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):active { outline: none; background-color: #fff; color: #191e23; box-shadow: inset 0 0 0 1px #ccd0d4, inset 0 0 0 2px #fff; }
2296
 
2297
- .components-icon-button[aria-disabled="true"]:focus, .components-icon-button:disabled:focus { box-shadow: none; }
 
 
 
 
 
 
 
 
 
2298
 
2299
  .components-menu-group { width: 100%; padding: 7px 0; }
2300
 
2301
  .components-menu-group__label { margin-bottom: 8px; color: #6c7781; padding: 0 7px; }
2302
 
2303
- .components-menu-item__button, .components-menu-item__button.components-icon-button { width: 100%; padding: 8px 15px; text-align: left; color: #40464d; border: none; box-shadow: none; }
2304
 
2305
- .components-menu-item__button .dashicon, .components-menu-item__button .components-menu-items__item-icon, .components-menu-item__button > span > svg, .components-menu-item__button.components-icon-button .dashicon, .components-menu-item__button.components-icon-button .components-menu-items__item-icon, .components-menu-item__button.components-icon-button > span > svg { margin-right: 5px; }
2306
 
2307
- .components-menu-item__button .components-menu-items__item-icon, .components-menu-item__button.components-icon-button .components-menu-items__item-icon { display: inline-block; flex: 0 0 auto; }
2308
 
2309
- .components-menu-item__button:hover:not(:disabled):not([aria-disabled="true"]), .components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled="true"]) { color: #191e23; border: none; box-shadow: none; background: #f3f4f5; }
2310
 
2311
- .components-menu-item__button:hover:not(:disabled):not([aria-disabled="true"]) .components-menu-item__shortcut, .components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled="true"]) .components-menu-item__shortcut { color: #40464d; }
2312
 
2313
- .components-menu-item__button:focus:not(:disabled):not([aria-disabled="true"]), .components-menu-item__button.components-icon-button:focus:not(:disabled):not([aria-disabled="true"]) { color: #191e23; border: none; box-shadow: none; outline-offset: -2px; outline: 1px dotted #555d66; }
2314
 
2315
  .components-menu-item__info-wrapper { display: flex; flex-direction: column; }
2316
 
@@ -2320,6 +2387,12 @@ body.admin-color-light .components-form-token-field__token.is-borderless .compon
2320
 
2321
  @media (min-width: 480px) { .components-menu-item__shortcut { display: inline; } }
2322
 
 
 
 
 
 
 
2323
  .components-modal__screen-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(0, 0, 0, 0.7); z-index: 100000; -webkit-animation: edit-post__fade-in-animation 0.2s ease-out 0s; animation: edit-post__fade-in-animation 0.2s ease-out 0s; -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards; }
2324
 
2325
  @media (prefers-reduced-motion: reduce) { .components-modal__screen-overlay { -webkit-animation-duration: 1ms; animation-duration: 1ms; } }
@@ -2336,7 +2409,7 @@ body.admin-color-light .components-form-token-field__token.is-borderless .compon
2336
  @keyframes components-modal__appear-animation { from { margin-top: 32px; }
2337
  to { margin-top: 0; } }
2338
 
2339
- .components-modal__header { box-sizing: border-box; border-bottom: 1px solid #e2e4e7; padding: 0 24px; display: flex; flex-direction: row; justify-content: space-between; background: #fff; align-items: center; height: 56px; position: -webkit-sticky; position: sticky; top: 0; z-index: 10; margin: 0 -24px 24px; }
2340
 
2341
  @supports (-ms-ime-align: auto) { .components-modal__header { position: fixed; width: 100%; } }
2342
 
@@ -2344,7 +2417,7 @@ body.admin-color-light .components-form-token-field__token.is-borderless .compon
2344
 
2345
  .components-modal__header h1 { line-height: 1; margin: 0; }
2346
 
2347
- .components-modal__header .components-icon-button { position: relative; left: 8px; }
2348
 
2349
  .components-modal__header-heading-container { align-items: center; flex-grow: 1; display: flex; flex-direction: row; justify-content: left; }
2350
 
@@ -2370,13 +2443,13 @@ body.admin-color-light .components-form-token-field__token.is-borderless .compon
2370
 
2371
  .components-notice__action.components-button, .components-notice__action.components-button.is-link { margin-left: 4px; }
2372
 
2373
- .components-notice__action.components-button.is-default { vertical-align: initial; }
2374
 
2375
  .components-notice__dismiss { color: #6c7781; align-self: flex-start; flex-shrink: 0; }
2376
 
2377
- .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):focus { color: #191e23; background-color: transparent; }
2378
 
2379
- .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { box-shadow: none; }
2380
 
2381
  .components-notice-list { max-width: 100vw; box-sizing: border-box; z-index: 29; }
2382
 
@@ -2398,7 +2471,7 @@ body.admin-color-light .components-form-token-field__token.is-borderless .compon
2398
 
2399
  .components-panel__body.is-opened { padding: 16px; }
2400
 
2401
- .components-panel__body > .components-icon-button { color: #191e23; }
2402
 
2403
  .components-panel__header { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; height: 50px; border-top: 1px solid #e2e4e7; border-bottom: 1px solid #e2e4e7; }
2404
 
@@ -2412,14 +2485,16 @@ body.admin-color-light .components-form-token-field__token.is-borderless .compon
2412
 
2413
  .components-panel__body.is-opened > .components-panel__body-title { margin: -16px; margin-bottom: 5px; }
2414
 
2415
- .components-panel__body > .components-panel__body-title:hover, .edit-post-last-revision__panel > .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { background: #f3f4f5; }
2416
 
2417
- .components-panel__body-toggle.components-button { position: relative; padding: 15px; outline: none; width: 100%; font-weight: 600; text-align: left; color: #191e23; border: none; box-shadow: none; transition: 0.1s background ease-in-out; /* rtl:begin:ignore */ /* rtl:end:ignore */ }
2418
 
2419
  @media (prefers-reduced-motion: reduce) { .components-panel__body-toggle.components-button { transition-duration: 0s; } }
2420
 
2421
  .components-panel__body-toggle.components-button:focus:not(:disabled):not([aria-disabled="true"]) { color: #191e23; border: none; box-shadow: none; outline-offset: -2px; outline: 1px dotted #555d66; }
2422
 
 
 
2423
  .components-panel__body-toggle.components-button .components-panel__arrow { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #191e23; fill: currentColor; transition: 0.1s color ease-in-out; }
2424
 
2425
  @media (prefers-reduced-motion: reduce) { .components-panel__body-toggle.components-button .components-panel__arrow { transition-duration: 0s; } }
@@ -2442,19 +2517,21 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
2442
 
2443
  .components-panel .circle-picker { padding-bottom: 20px; }
2444
 
2445
- .components-placeholder { margin-bottom: 28px; padding: 1em; min-height: 200px; width: 100%; text-align: center; background: rgba(139, 139, 150, 0.1); }
 
 
2446
 
2447
- @supports ((position: -webkit-sticky) or (position: sticky)) { .components-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; } }
2448
 
2449
- .is-dark-theme .components-placeholder { background: rgba(255, 255, 255, 0.15); }
2450
 
2451
  .components-placeholder__instructions, .components-placeholder__label, .components-placeholder__fieldset { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; }
2452
 
2453
- .components-placeholder__label { display: flex; align-items: center; justify-content: center; font-weight: 600; margin-bottom: 1em; }
2454
 
2455
- .components-placeholder__label .dashicon, .components-placeholder__label .block-editor-block-icon { fill: currentColor; margin-right: 1ch; }
2456
 
2457
- .components-placeholder__fieldset, .components-placeholder__fieldset form { display: flex; flex-direction: row; justify-content: center; width: 100%; max-width: 400px; flex-wrap: wrap; z-index: 1; }
2458
 
2459
  .components-placeholder__fieldset p, .components-placeholder__fieldset form p { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; }
2460
 
@@ -2466,7 +2543,7 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
2466
 
2467
  .components-placeholder__preview img { margin: 3%; width: 50%; }
2468
 
2469
- .components-placeholder__fieldset .components-button { margin-right: 4px; margin-bottom: 10px; }
2470
 
2471
  .components-placeholder__fieldset .components-button:last-child { margin-right: 0; }
2472
 
@@ -2474,88 +2551,102 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
2474
 
2475
  .components-placeholder__fieldset .components-button:not(.is-link) ~ .components-button.is-link:last-child { margin-right: 0; }
2476
 
 
 
 
 
 
 
 
 
 
 
2477
  /*!rtl:begin:ignore*/
2478
- .components-popover { position: fixed; z-index: 1000000; left: 50%; }
 
 
2479
 
2480
- .components-popover.is-mobile { top: 0; left: 0; right: 0; bottom: 0; }
2481
 
2482
- .components-popover:not(.is-without-arrow):not(.is-mobile) { margin-left: 2px; }
2483
 
2484
- .components-popover:not(.is-without-arrow):not(.is-mobile)::before { border: 8px solid #e2e4e7; }
2485
 
2486
- .components-popover:not(.is-without-arrow):not(.is-mobile)::after { border: 8px solid #fff; }
2487
 
2488
- .components-popover:not(.is-without-arrow):not(.is-mobile)::before, .components-popover:not(.is-without-arrow):not(.is-mobile)::after { content: ""; position: absolute; height: 0; width: 0; line-height: 0; }
2489
 
2490
- .components-popover:not(.is-without-arrow):not(.is-mobile).is-top { margin-top: -8px; }
2491
 
2492
- .components-popover:not(.is-without-arrow):not(.is-mobile).is-top::before { bottom: -8px; }
2493
 
2494
- .components-popover:not(.is-without-arrow):not(.is-mobile).is-top::after { bottom: -6px; }
2495
 
2496
- .components-popover:not(.is-without-arrow):not(.is-mobile).is-top::before, .components-popover:not(.is-without-arrow):not(.is-mobile).is-top::after { border-bottom: none; border-left-color: transparent; border-right-color: transparent; border-top-style: solid; margin-left: -10px; }
2497
 
2498
- .components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom { margin-top: 8px; }
2499
 
2500
- .components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::before { top: -8px; }
2501
 
2502
- .components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::after { top: -6px; }
2503
 
2504
- .components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::before, .components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::after { border-bottom-style: solid; border-left-color: transparent; border-right-color: transparent; border-top: none; margin-left: -10px; }
2505
 
2506
- .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left { margin-left: -8px; }
2507
 
2508
- .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::before { right: -8px; }
2509
 
2510
- .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::after { right: -6px; }
2511
 
2512
- .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::before, .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::after { border-bottom-color: transparent; border-left-style: solid; border-right: none; border-top-color: transparent; }
2513
 
2514
- .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right { margin-left: 8px; }
2515
 
2516
- .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::before { left: -8px; }
2517
 
2518
- .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::after { left: -6px; }
2519
 
2520
- .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::before, .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::after { border-bottom-color: transparent; border-left: none; border-right-style: solid; border-top-color: transparent; }
2521
 
2522
- .components-popover:not(.is-mobile).is-top { bottom: 100%; }
2523
 
2524
- .components-popover:not(.is-mobile).is-bottom { top: 100%; }
2525
 
2526
- .components-popover:not(.is-mobile).is-middle { align-items: center; display: flex; }
2527
 
2528
  .components-popover__content { box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); border: 1px solid #e2e4e7; background: #fff; height: 100%; }
2529
 
2530
- .components-popover.is-mobile .components-popover__content { height: calc(100% - 50px); border-top: 0; }
2531
 
2532
- .components-popover:not(.is-mobile) .components-popover__content { position: absolute; height: auto; overflow-y: auto; min-width: 260px; }
2533
 
2534
- .components-popover:not(.is-mobile).is-top .components-popover__content { bottom: 100%; }
2535
 
2536
- .components-popover:not(.is-mobile).is-center .components-popover__content { left: 50%; transform: translateX(-50%); }
2537
 
2538
- .components-popover:not(.is-mobile).is-right .components-popover__content { position: absolute; left: 100%; }
2539
 
2540
- .components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content { margin-left: -24px; }
2541
 
2542
- .components-popover:not(.is-mobile).is-left .components-popover__content { position: absolute; right: 100%; }
2543
 
2544
- .components-popover:not(.is-mobile):not(.is-middle).is-left .components-popover__content { margin-right: -24px; }
2545
 
2546
  .components-popover__content > div { height: 100%; }
2547
 
2548
- .components-popover__header { align-items: center; background: #fff; border: 1px solid #e2e4e7; display: flex; height: 50px; justify-content: space-between; padding: 0 8px 0 16px; }
2549
 
2550
  .components-popover__header-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }
2551
 
2552
- .components-popover__close.components-icon-button { z-index: 5; }
2553
 
2554
  /*!rtl:end:ignore*/
2555
  .components-radio-control { display: flex; flex-direction: column; }
2556
 
2557
  .components-radio-control .components-base-control__help { margin-top: 0; }
2558
 
 
 
2559
  .components-radio-control__option:not(:last-child) { margin-bottom: 4px; }
2560
 
2561
  .components-radio-control__input[type="radio"] { margin-top: 0; margin-right: 6px; }
@@ -2708,11 +2799,11 @@ html.lockscroll, body.lockscroll { overflow: hidden; }
2708
 
2709
  .components-snackbar__action.components-button { margin-left: 32px; color: #fff; height: auto; flex-shrink: 0; line-height: 1.4; padding: 0; }
2710
 
2711
- .components-snackbar__action.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-default) { text-decoration: underline; background-color: transparent; }
2712
 
2713
- .components-snackbar__action.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus { color: #fff; box-shadow: none; outline: 1px dotted #fff; }
2714
 
2715
- .components-snackbar__action.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { color: #33b3db; }
2716
 
2717
  .components-snackbar__content { display: flex; align-items: baseline; justify-content: space-between; line-height: 1.4; }
2718
 
@@ -2740,63 +2831,67 @@ html.lockscroll, body.lockscroll { overflow: hidden; }
2740
 
2741
  .components-tip p { margin: 0; }
2742
 
2743
- .components-toggle-control .components-base-control__field { display: flex; margin-bottom: 12px; }
2744
 
2745
  .components-toggle-control .components-base-control__field .components-form-toggle { margin-right: 16px; }
2746
 
2747
- .components-toggle-control .components-base-control__field .components-toggle-control__label { display: block; margin-bottom: 4px; }
2748
-
2749
- .components-toolbar { margin: 0; border: 1px solid #e2e4e7; background-color: #fff; display: inline-flex; flex-shrink: 0; }
2750
 
2751
- @supports ((position: -webkit-sticky) or (position: sticky)) { .components-toolbar { display: flex; } }
2752
 
2753
- div.components-toolbar > div { display: block; margin: 0; }
2754
 
2755
- @supports ((position: -webkit-sticky) or (position: sticky)) { div.components-toolbar > div { display: flex; } }
2756
 
2757
- div.components-toolbar > div + div { margin-left: -3px; }
2758
 
2759
- div.components-toolbar > div + div.has-left-divider { margin-left: 6px; position: relative; overflow: visible; }
2760
 
2761
- div.components-toolbar > div + div.has-left-divider::before { display: inline-block; content: ""; box-sizing: content-box; background-color: #e2e4e7; position: absolute; top: 8px; left: -3px; width: 1px; height: 20px; }
2762
 
2763
- .components-toolbar__control.components-button { display: inline-flex; align-items: flex-end; margin: 0; padding: 3px; outline: none; cursor: pointer; position: relative; width: 36px; height: 36px; }
2764
 
2765
- .components-toolbar__control.components-button:not([aria-disabled="true"]):not(.is-default):active, .components-toolbar__control.components-button:not([aria-disabled="true"]):hover, .components-toolbar__control.components-button:not([aria-disabled="true"]):focus { outline: none; box-shadow: none; background: none; border: none; }
2766
 
2767
- .components-toolbar__control.components-button:disabled { cursor: default; }
2768
 
2769
- .components-toolbar__control.components-button > svg { padding: 5px; border-radius: 4px; height: 30px; width: 30px; }
2770
 
2771
  .components-toolbar__control.components-button[data-subscript] svg { padding: 5px 10px 5px 0; }
2772
 
2773
  .components-toolbar__control.components-button[data-subscript]::after { content: attr(data-subscript); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; font-weight: 600; line-height: 12px; position: absolute; right: 8px; bottom: 10px; }
2774
 
2775
- .components-toolbar__control.components-button:not(:disabled):not([aria-disabled="true"]):hover { box-shadow: none; }
2776
 
2777
- .components-toolbar__control.components-button:not(:disabled).is-active > svg, .components-toolbar__control.components-button:not(:disabled):hover > svg { color: #555d66; box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; }
2778
 
2779
- .components-toolbar__control.components-button:not(:disabled).is-active > svg { outline: none; color: #fff; box-shadow: none; background: #555d66; }
2780
 
2781
- .components-toolbar__control.components-button:not(:disabled).is-active[data-subscript]::after { color: #fff; }
 
 
 
 
 
 
2782
 
2783
- .components-toolbar__control.components-button:not(:disabled):focus > svg { box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; outline: 2px solid transparent; outline: 0; }
2784
 
2785
- .components-toolbar__control.components-button:not(:disabled).is-active { outline: 1px dotted transparent; outline-offset: -2px; }
2786
 
2787
- .components-toolbar__control.components-button:not(:disabled):focus { outline: 2px solid transparent; }
2788
 
2789
- .components-toolbar__control .dashicon { display: block; }
2790
 
2791
  .components-tooltip.components-popover { z-index: 1000002; }
2792
 
2793
  .components-tooltip.components-popover::before { border-color: transparent; }
2794
 
2795
- .components-tooltip.components-popover.is-top::after { border-top-color: #191e23; }
2796
 
2797
- .components-tooltip.components-popover.is-bottom::after { border-bottom-color: #191e23; }
2798
 
2799
- .components-tooltip.components-popover:not(.is-mobile) .components-popover__content { min-width: 0; }
2800
 
2801
  .components-tooltip .components-popover__content { padding: 4px 12px; background: #191e23; border-width: 0; color: #fff; white-space: nowrap; text-align: center; }
2802
 
@@ -2808,12 +2903,12 @@ div.components-toolbar > div + div.has-left-divider::before { display: inline-bl
2808
 
2809
  /** Colors */
2810
  /** Breakpoints & Media Queries */
 
2811
  /** Often re-used variables */
2812
  /** Breakpoint mixins */
2813
  /** Long content fade mixin Creates a fading overlay to signify that the content is longer than the space allows. */
2814
  /** Button states and focus styles */
2815
  /** Applies editor left position to the selector passed as argument */
2816
- /** Applies editor right position to the selector passed as argument */
2817
  /** Styles that are reused verbatim in a few places */
2818
  /** Allows users to opt-out of animations via OS-level preferences. */
2819
  /** Reset default styles for JavaScript UI based pages. This is a WP-admin agnostic reset */
@@ -2874,16 +2969,12 @@ body.admin-color-light .block-editor-block-drop-zone.is-close-to-bottom { border
2874
 
2875
  .block-editor-block-inspector__no-blocks { display: block; font-size: 13px; background: #fff; padding: 32px 16px; text-align: center; }
2876
 
2877
- .block-editor-block-list__layout .components-draggable__clone .block-editor-block-contextual-toolbar { display: none !important; }
2878
-
2879
  .block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging .block-editor-block-list__block-edit::before { border: none; }
2880
 
2881
  .block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging > .block-editor-block-list__block-edit > * { background: #f8f9f9; }
2882
 
2883
  .block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging > .block-editor-block-list__block-edit > * > * { visibility: hidden; }
2884
 
2885
- .block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging .block-editor-block-contextual-toolbar { display: none; }
2886
-
2887
  .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit .reusable-block-edit-panel * { z-index: 1; }
2888
 
2889
  /** General Post Content Layout */
@@ -2906,8 +2997,6 @@ body.admin-color-light .block-editor-block-drop-zone.is-close-to-bottom { border
2906
 
2907
  .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit { position: relative; }
2908
 
2909
- .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit.has-mover-inside > [data-block] { display: flex; }
2910
-
2911
  .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit::before { z-index: 0; content: ""; position: absolute; border: 1px solid transparent; border-left: none; box-shadow: none; pointer-events: none; transition: border-color 0.1s linear, border-style 0.1s linear, box-shadow 0.1s linear; outline: 1px solid transparent; right: -14px; left: -14px; top: -14px; bottom: -14px; }
2912
 
2913
  @media (prefers-reduced-motion: reduce) { .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit::before { transition-duration: 0s; } }
@@ -2923,47 +3012,22 @@ body.admin-color-light .block-editor-block-drop-zone.is-close-to-bottom { border
2923
 
2924
  @media (min-width: 600px) { .block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-navigate-mode > .block-editor-block-list__block-edit::before { box-shadow: -3px 0 0 0 #007cba; } }
2925
 
2926
- .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:not(.is-navigate-mode) > .block-editor-block-list__block-edit::before { box-shadow: -3px 0 0 0 rgba(145, 151, 162, 0.25); }
2927
-
2928
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:not(.is-navigate-mode) > .block-editor-block-list__block-edit::before { box-shadow: -3px 0 0 0 rgba(255, 255, 255, 0.25); }
2929
-
2930
  .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) { opacity: 0.5; transition: opacity 0.1s linear; }
2931
 
2932
  @media (prefers-reduced-motion: reduce) { .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) { transition-duration: 0s; } }
2933
 
2934
  .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block, .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused { opacity: 1; }
2935
 
2936
- .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected > .block-editor-block-list__block-edit::before { border: 1px dashed rgba(123, 134, 162, 0.3); }
2937
-
2938
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected > .block-editor-block-list__block-edit::before { border-color: rgba(255, 255, 255, 0.3); }
2939
-
2940
- .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected > .block-editor-block-list__block-edit > [data-block] > div > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block-edit::before, .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected > .block-editor-block-list__block-edit > [data-block] > div > .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block-edit::before, .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected > .block-editor-block-list__block-edit > [data-block] > div > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block-edit::before { border: 1px dashed rgba(123, 134, 162, 0.3); }
2941
-
2942
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected > .block-editor-block-list__block-edit > [data-block] > div > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block-edit::before, .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected > .block-editor-block-list__block-edit > [data-block] > div > .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block-edit::before, .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected > .block-editor-block-list__block-edit > [data-block] > div > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block-edit::before { border-color: rgba(255, 255, 255, 0.3); }
2943
-
2944
- .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected.is-hovered > .block-editor-block-list__block-edit::before, .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected > .block-editor-block-list__block-edit > [data-block] > div > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block.is-hovered:not(.is-selected) > .block-editor-block-list__block-edit::before, .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected > .block-editor-block-list__block-edit > [data-block] > div > .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block.is-hovered:not(.is-selected) > .block-editor-block-list__block-edit::before, .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected > .block-editor-block-list__block-edit > [data-block] > div > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block.is-hovered:not(.is-selected) > .block-editor-block-list__block-edit::before { border-style: solid; border-color: rgba(145, 151, 162, 0.25); border-left-color: transparent; }
2945
-
2946
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected.is-hovered > .block-editor-block-list__block-edit::before, .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected > .block-editor-block-list__block-edit > [data-block] > div > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block.is-hovered:not(.is-selected) > .block-editor-block-list__block-edit::before, .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected > .block-editor-block-list__block-edit > [data-block] > div > .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block.is-hovered:not(.is-selected) > .block-editor-block-list__block-edit::before, .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected > .block-editor-block-list__block-edit > [data-block] > div > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block.is-hovered:not(.is-selected) > .block-editor-block-list__block-edit::before { border-color: rgba(255, 255, 255, 0.25); border-left-color: transparent; }
2947
-
2948
- .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit > [data-block] > div > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block-edit::before, .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit > [data-block] > div > .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block-edit::before, .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit > [data-block] > div > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block-edit::before { border: 1px dashed rgba(123, 134, 162, 0.3); }
2949
 
2950
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit > [data-block] > div > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block-edit::before, .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit > [data-block] > div > .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block-edit::before, .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit > [data-block] > div > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block-edit::before { border-color: rgba(255, 255, 255, 0.3); }
2951
 
2952
- .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit > [data-block] > div > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected).is-hovered > .block-editor-block-list__block-edit::before, .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit > [data-block] > div > .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected).is-hovered > .block-editor-block-list__block-edit::before, .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit > [data-block] > div > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected).is-hovered > .block-editor-block-list__block-edit::before { border-style: solid; border-color: rgba(145, 151, 162, 0.25); border-left-color: transparent; }
2953
 
2954
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit > [data-block] > div > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected).is-hovered > .block-editor-block-list__block-edit::before, .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit > [data-block] > div > .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected).is-hovered > .block-editor-block-list__block-edit::before, .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit > [data-block] > div > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected).is-hovered > .block-editor-block-list__block-edit::before { border-color: rgba(255, 255, 255, 0.25); border-left-color: transparent; }
2955
 
2956
- /** Cross-block selection */
2957
- .block-editor-block-list__layout .block-editor-block-list__block ::-moz-selection { background-color: #b3e7fe; }
2958
- .block-editor-block-list__layout .block-editor-block-list__block ::selection { background-color: #b3e7fe; }
2959
-
2960
- .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected *::-moz-selection { background-color: transparent; }
2961
-
2962
- .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected *::selection { background-color: transparent; }
2963
-
2964
- .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .block-editor-block-list__block-edit::before { background: #b3e7fe; mix-blend-mode: multiply; top: -14px; bottom: -14px; }
2965
-
2966
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .block-editor-block-list__block-edit::before { mix-blend-mode: soft-light; }
2967
 
2968
  /** Block styles and alignments */
2969
  .block-editor-block-list__layout .block-editor-block-list__block.has-warning { min-height: 36px; }
@@ -2988,114 +3052,38 @@ body.admin-color-light .block-editor-block-drop-zone.is-close-to-bottom { border
2988
 
2989
  @media (min-width: 600px) { .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .block-editor-block-list__block-edit::after { bottom: -14px; } }
2990
 
2991
- .block-editor-block-list__layout .block-editor-block-list__block.is-typing .block-editor-block-list__side-inserter { opacity: 0; -webkit-animation: none; animation: none; }
2992
-
2993
- .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__side-inserter { -webkit-animation: edit-post__fade-in-animation 0.2s ease-out 0s; animation: edit-post__fade-in-animation 0.2s ease-out 0s; -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards; }
2994
-
2995
- @media (prefers-reduced-motion: reduce) { .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__side-inserter { -webkit-animation-duration: 1ms; animation-duration: 1ms; } }
2996
-
2997
- .block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-block-list__block-edit::before { border: 1px dashed rgba(145, 151, 162, 0.25); }
2998
-
2999
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-block-list__block-edit::before { border-color: rgba(255, 255, 255, 0.35); }
3000
-
3001
- .block-editor-block-list__layout .block-editor-block-list__block.is-reusable.is-selected > .block-editor-block-list__block-edit::before { border-color: rgba(66, 88, 99, 0.4); border-left-color: transparent; }
3002
-
3003
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-reusable.is-selected > .block-editor-block-list__block-edit::before { border-color: rgba(255, 255, 255, 0.45); border-left-color: transparent; }
3004
 
3005
  .block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-block-list__block-edit .block-editor-inner-blocks.has-overlay::after { display: none; }
3006
 
3007
  .block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-block-list__block-edit .block-editor-inner-blocks.has-overlay .block-editor-inner-blocks.has-overlay::after { display: block; }
3008
 
 
 
3009
  .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"], .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] { z-index: 21; width: 100%; height: 0; }
3010
 
3011
  .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-list__block-edit, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-list__block-edit { margin-top: 0; }
3012
 
3013
  .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-list__block-edit::before, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-list__block-edit::before { content: none; }
3014
 
3015
- .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { margin-bottom: 1px; }
3016
-
3017
- .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { width: auto; border-bottom: 1px solid #b5bcc2; bottom: auto; }
3018
-
3019
- @media (min-width: 600px) { .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { border-bottom: none; } }
3020
-
3021
- .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar { left: 0; right: auto; }
3022
-
3023
- .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { left: auto; right: 0; }
3024
-
3025
- @media (min-width: 600px) { .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar, .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar { top: 14px; } }
3026
-
3027
  .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] > .block-editor-block-list__block-edit { /*!rtl:begin:ignore*/ float: left; margin-right: 2em; /*!rtl:end:ignore*/ }
3028
 
3029
- @media (min-width: 600px) { .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-toolbar { /*!rtl:begin:ignore*/ left: 14px; right: auto; /*!rtl:end:ignore*/ } }
3030
-
3031
  .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] > .block-editor-block-list__block-edit { /*!rtl:begin:ignore*/ float: right; margin-left: 2em; /*!rtl:end:ignore*/ }
3032
 
3033
- @media (min-width: 600px) { .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-toolbar { /*!rtl:begin:ignore*/ right: 14px; left: auto; /*!rtl:end:ignore*/ } }
3034
-
3035
- .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"], .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] { clear: both; z-index: 20; }
3036
-
3037
- .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"].is-multi-selected > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"].is-multi-selected > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-mover { top: -46px; bottom: auto; min-height: 0; height: auto; width: auto; }
3038
-
3039
- .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"].is-multi-selected > .block-editor-block-mover::before, .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-mover::before, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"].is-multi-selected > .block-editor-block-mover::before, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-mover::before { content: none; }
3040
-
3041
- .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"].is-multi-selected > .block-editor-block-mover .block-editor-block-mover__control, .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-mover .block-editor-block-mover__control, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"].is-multi-selected > .block-editor-block-mover .block-editor-block-mover__control, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-mover .block-editor-block-mover__control { float: left; }
3042
-
3043
- @media (min-width: 600px) { .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] .block-editor-block-toolbar, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] .block-editor-block-toolbar { display: inline-flex; } }
3044
-
3045
- .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] .block-editor-block-mover.is-visible + .block-editor-block-list__breadcrumb, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] .block-editor-block-mover.is-visible + .block-editor-block-list__breadcrumb { top: -19px; }
3046
 
3047
- @media (min-width: 600px) { .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar > .block-editor-block-toolbar, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar > .block-editor-block-toolbar { /*!rtl:begin:ignore*/ left: 90px; /*!rtl:end:ignore*/ } }
3048
 
3049
- @media (min-width: 1080px) { .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar > .block-editor-block-toolbar, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar > .block-editor-block-toolbar { /*!rtl:begin:ignore*/ left: 14px; /*!rtl:end:ignore*/ } }
3050
-
3051
- .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"].is-multi-selected > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-mover { left: -13px; }
3052
-
3053
- .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-list__breadcrumb { left: 0; }
3054
-
3055
- .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit { margin-left: -58px; margin-right: -58px; }
3056
 
3057
  .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit::before { left: 0; right: 0; border-left-width: 0; border-right-width: 0; }
3058
 
3059
- .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"].is-multi-selected > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-mover { left: 14px; }
3060
-
3061
  .block-editor-block-list__layout .block-editor-block-list__block[data-clear="true"] { float: none; }
3062
 
3063
  .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-drop-zone { top: -4px; bottom: -3px; margin: 0 14px; }
3064
 
3065
- .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-inserter-with-shortcuts { display: none; }
3066
-
3067
  .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-block-list__empty-block-inserter, .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter { left: auto; right: 8px; }
3068
 
3069
- /** Left and right side UI; Unified toolbar on Mobile. */
3070
- .block-editor-block-list__block.is-multi-selected > .block-editor-block-mover, .block-editor-block-list__block > .block-editor-block-list__block-edit > .block-editor-block-mover { position: absolute; width: 30px; }
3071
-
3072
- .block-editor-block-list__block.is-multi-selected > .block-editor-block-mover, .block-editor-block-list__block > .block-editor-block-list__block-edit > .block-editor-block-mover { top: -15px; }
3073
-
3074
- @media (min-width: 600px) { .block-editor-block-list__block.is-multi-selected .block-editor-block-mover, .block-editor-block-list__block.is-selected .block-editor-block-mover, .block-editor-block-list__block.is-hovered .block-editor-block-mover { z-index: 61; } }
3075
-
3076
- .block-editor-block-list__block > .block-editor-block-list__block-edit > .block-editor-block-mover, .block-editor-block-list__block.is-multi-selected > .block-editor-block-mover { left: -53px; display: none; }
3077
-
3078
- @media (min-width: 600px) { .block-editor-block-list__block > .block-editor-block-list__block-edit > .block-editor-block-mover, .block-editor-block-list__block.is-multi-selected > .block-editor-block-mover { display: block; } }
3079
-
3080
- /** Mobile unified toolbar. */
3081
- .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar { display: flex; flex-direction: row; transform: translateY(15px); margin-top: 37px; margin-right: -14px; margin-left: -14px; border-top: 1px solid #b5bcc2; height: 37px; background-color: #fff; box-shadow: 0 5px 10px rgba(25, 30, 35, 0.05), 0 2px 2px rgba(25, 30, 35, 0.05); }
3082
-
3083
- @media (min-width: 600px) { .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar { display: none; } }
3084
-
3085
- @media (min-width: 600px) { .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar { box-shadow: none; } }
3086
-
3087
- .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-inserter { position: relative; left: auto; top: auto; margin: 0; }
3088
-
3089
- .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-inserter__toggle, .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover__control { width: 36px; height: 36px; border-radius: 4px; padding: 3px; margin: 0; justify-content: center; align-items: center; }
3090
-
3091
- .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-inserter__toggle .dashicon, .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover__control .dashicon { margin: auto; }
3092
-
3093
- .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover { display: flex; margin-right: auto; }
3094
-
3095
- .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover .block-editor-inserter, .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover__control { float: left; }
3096
-
3097
- .block-editor-block-list__block[data-align="full"] .block-editor-block-list__block-mobile-toolbar { margin-left: 0; margin-right: 0; }
3098
-
3099
  /** In-Canvas Inserter */
3100
  .block-editor-block-list .block-editor-inserter { margin: 8px; cursor: move; cursor: -webkit-grab; cursor: grab; }
3101
 
@@ -3144,86 +3132,40 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator { bac
3144
  .block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus { box-shadow: none; }
3145
 
3146
  /** Block Toolbar when contextual. */
3147
- .block-editor-block-list__block .block-editor-block-contextual-toolbar { z-index: 61; white-space: nowrap; text-align: left; pointer-events: none; position: absolute; bottom: 22px; left: -14px; right: -14px; border-top: 1px solid #b5bcc2; }
3148
 
3149
- .block-editor-block-list__block .block-editor-block-contextual-toolbar .components-toolbar { border-top: none; border-bottom: none; }
3150
 
3151
- @media (min-width: 600px) { .block-editor-block-list__block .block-editor-block-contextual-toolbar { border-top: none; }
3152
- .block-editor-block-list__block .block-editor-block-contextual-toolbar .components-toolbar { border-top: 1px solid #b5bcc2; border-bottom: 1px solid #b5bcc2; } }
3153
 
3154
- .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { margin-bottom: 1px; margin-top: -37px; box-shadow: -3px 0 0 0 #555d66; }
3155
 
3156
- .is-dark-theme .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, .is-dark-theme .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { box-shadow: -3px 0 0 0 #d7dade; }
3157
 
3158
- @media (min-width: 600px) { .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { box-shadow: none; } }
3159
 
3160
- .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar, .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar { border-left: none; }
3161
 
3162
- .block-editor-block-list__block .block-editor-block-contextual-toolbar { margin-left: 0; margin-right: 0; }
 
 
3163
 
3164
- @media (min-width: 600px) { .block-editor-block-list__block .block-editor-block-contextual-toolbar { margin-left: -15px; margin-right: -15px; } }
3165
 
3166
- .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar { /*rtl:ignore*/ margin-right: 15px; }
3167
-
3168
- .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { /*rtl:ignore*/ margin-left: 15px; }
3169
-
3170
- .block-editor-block-list__block .block-editor-block-contextual-toolbar > * { pointer-events: auto; }
3171
-
3172
- .block-editor-block-list__block[data-align="full"] .block-editor-block-contextual-toolbar { left: 0; right: 0; }
3173
-
3174
- @media (min-width: 600px) { .block-editor-block-list__block .block-editor-block-contextual-toolbar { bottom: auto; left: auto; right: auto; box-shadow: none; transform: translateY(-52px); }
3175
- @supports ((position: -webkit-sticky) or (position: sticky)) { .block-editor-block-list__block .block-editor-block-contextual-toolbar { position: -webkit-sticky; position: sticky; top: 51px; } } }
3176
-
3177
- .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar { /*rtl:ignore*/ float: left; }
3178
-
3179
- .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { /*rtl:ignore*/ float: right; min-width: 200px; }
3180
-
3181
- @supports ((position: -webkit-sticky) or (position: sticky)) { .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { min-width: 0; } }
3182
-
3183
- .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { transform: translateY(-15px); }
3184
-
3185
- .block-editor-block-contextual-toolbar .block-editor-block-toolbar { width: 100%; }
3186
-
3187
- @media (min-width: 600px) { .block-editor-block-contextual-toolbar .block-editor-block-toolbar { width: auto; border-right: none; position: absolute; left: 1px; top: 1px; } }
3188
-
3189
- /** Hover label */
3190
- .block-editor-block-list__breadcrumb { position: absolute; line-height: 1; z-index: 22; left: -17px; top: -31px; }
3191
-
3192
- .block-editor-block-list__breadcrumb .components-toolbar { border: none; line-height: 1; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 11px; padding: 4px 4px; background: #e2e4e7; color: #191e23; transition: box-shadow 0.1s linear; }
3193
-
3194
- @media (prefers-reduced-motion: reduce) { .block-editor-block-list__breadcrumb .components-toolbar { transition-duration: 0s; } }
3195
-
3196
- .block-editor-block-list__breadcrumb .components-toolbar .components-button { font-size: inherit; line-height: inherit; padding: 0; }
3197
-
3198
- .is-dark-theme .block-editor-block-list__breadcrumb .components-toolbar { background: #40464d; color: #fff; }
3199
-
3200
- [data-align="left"] .block-editor-block-list__breadcrumb { left: 0; }
3201
-
3202
- [data-align="right"] .block-editor-block-list__breadcrumb { left: auto; right: 0; }
3203
-
3204
- .is-navigate-mode .block-editor-block-list__breadcrumb { left: -14px; top: -51px; }
3205
-
3206
- .is-navigate-mode .block-editor-block-list__breadcrumb .components-toolbar { background: #fff; border: 1px solid #007cba; border-left: none; box-shadow: inset 3px 0 0 0 #007cba; height: 38px; font-size: 13px; line-height: 29px; padding-left: 8px; padding-right: 8px; }
3207
-
3208
- .is-navigate-mode .block-editor-block-list__breadcrumb .components-toolbar .components-button { box-shadow: none; }
3209
-
3210
- .is-dark-theme .is-navigate-mode .block-editor-block-list__breadcrumb .components-toolbar { border-color: rgba(255, 255, 255, 0.45); }
3211
-
3212
- @media (min-width: 600px) { .is-navigate-mode .block-editor-block-list__breadcrumb .components-toolbar { box-shadow: -3px 0 0 0 #007cba; } }
3213
 
3214
- .block-editor-block-list__descendant-arrow::before { content: "→"; display: inline-block; padding: 0 4px; }
3215
 
3216
- .rtl .block-editor-block-list__descendant-arrow::before { content: "←"; }
3217
 
3218
- @media (min-width: 600px) { .block-editor-block-list__block::before { bottom: 0; content: ""; left: -28px; position: absolute; right: -28px; top: 0; }
3219
- .block-editor-block-list__block .block-editor-block-list__block::before { left: 0; right: 0; }
3220
- .block-editor-block-list__block[data-align="full"]::before { content: none; } }
3221
 
3222
- .block-editor-block-list__block .block-editor-warning { z-index: 5; position: relative; margin-right: -14px; margin-left: -14px; margin-bottom: -14px; transform: translateY(-14px); }
3223
 
3224
- .block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning { margin-bottom: auto; }
3225
 
3226
- .block-editor-block-list__block .block-list-appender { margin: 14px; }
3227
 
3228
  .has-background .block-editor-block-list__block .block-list-appender { margin: 32px 14px; }
3229
 
@@ -3286,39 +3228,36 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator { bac
3286
 
3287
  .block-editor-block-compare__wrapper .block-editor-block-compare__heading { font-size: 1em; font-weight: 400; margin: 0.67em 0; }
3288
 
3289
- @media (min-width: 600px) { .block-editor-block-mover { opacity: 0; background: #fff; border: 1px solid rgba(66, 88, 99, 0.4); border-radius: 4px; transition: box-shadow 0.2s ease-out; margin-top: -8px; } }
3290
-
3291
- @media (min-width: 600px) and (prefers-reduced-motion: reduce) { .block-editor-block-mover { transition-duration: 0s; } }
3292
 
3293
- @media (min-width: 600px) { .block-editor-block-mover.is-visible { -webkit-animation: edit-post__fade-in-animation 0.2s ease-out 0s; animation: edit-post__fade-in-animation 0.2s ease-out 0s; -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards; } }
3294
 
3295
- @media (min-width: 600px) and (prefers-reduced-motion: reduce) { .block-editor-block-mover.is-visible { -webkit-animation-duration: 1ms; animation-duration: 1ms; } }
3296
 
3297
- @media (min-width: 600px) { .block-editor-block-mover:hover { box-shadow: 0 2px 10px rgba(25, 30, 35, 0.1), 0 0 2px rgba(25, 30, 35, 0.1); } }
3298
 
3299
- .block-editor-block-mover.is-horizontal { margin-top: 5px; margin-right: 8px; padding-right: 0; min-height: auto; width: 50px; height: 26px; display: flex; }
3300
 
3301
- .block-editor-block-mover.is-horizontal .block-editor-block-mover__control { width: 24px; height: 24px; }
3302
 
3303
- .block-editor-block-mover.is-horizontal .block-editor-block-mover__control svg { width: 24px; padding: 3px; }
3304
 
3305
- @media (min-width: 600px) { .block-editor-block-list__block:not([data-align="wide"]):not([data-align="full"]) .editor-block-mover:not(.is-horizontal) { margin-top: 0; } }
3306
 
3307
- .block-editor-block-mover__control { display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; border: none; box-shadow: none; width: 28px; height: 24px; }
3308
 
3309
- .block-editor-block-mover__control svg { width: 28px; height: 24px; padding: 2px 5px; }
 
 
 
3310
 
3311
- .block-editor-block-mover__control[aria-disabled="true"] { cursor: default; pointer-events: none; color: rgba(14, 28, 46, 0.62); }
3312
-
3313
- @media (min-width: 600px) { .block-editor-block-mover__control { color: rgba(14, 28, 46, 0.62); }
3314
- .block-editor-block-mover__control:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { background-color: transparent; box-shadow: none; }
3315
- .block-editor-block-mover__control:focus:not(:disabled) { background-color: transparent; } }
3316
 
3317
  .block-editor-block-mover__control-drag-handle { cursor: move; cursor: -webkit-grab; cursor: grab; fill: currentColor; }
3318
 
3319
- .block-editor-block-mover__control-drag-handle, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus { box-shadow: none; background: none; color: rgba(10, 24, 41, 0.7); }
3320
 
3321
- .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active { cursor: -webkit-grabbing; cursor: grabbing; }
3322
 
3323
  .block-editor-block-mover__description { display: none; }
3324
 
@@ -3360,6 +3299,32 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator { bac
3360
 
3361
  .components-popover.block-editor-block-navigation__popover { z-index: 99998; }
3362
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3363
  .block-editor-block-preview__container { position: relative; width: 100%; overflow: hidden; }
3364
 
3365
  .block-editor-block-preview__container.is-ready { overflow: visible; }
@@ -3368,7 +3333,7 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator { bac
3368
 
3369
  .block-editor-block-preview__content .block-editor-block-list__layout, .block-editor-block-preview__content .block-editor-block-list__block { padding: 0; }
3370
 
3371
- .block-editor-block-preview__content .editor-block-list__block-edit [data-block] { margin: 0; }
3372
 
3373
  .block-editor-block-preview__content > div section { height: auto; }
3374
 
@@ -3398,33 +3363,33 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator { bac
3398
 
3399
  .block-editor-block-switcher { position: relative; height: 36px; }
3400
 
3401
- .components-icon-button.block-editor-block-switcher__toggle, .components-icon-button.block-editor-block-switcher__no-switcher-icon { margin: 0; display: block; height: 36px; padding: 3px; }
3402
 
3403
- .components-icon-button.block-editor-block-switcher__no-switcher-icon { width: 48px; }
3404
 
3405
- .components-icon-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon { margin-right: auto; margin-left: auto; }
3406
 
3407
  .components-button.block-editor-block-switcher__no-switcher-icon:disabled { border-radius: 0; opacity: 0.84; }
3408
 
3409
  .components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors { color: #555d66 !important; background: #f3f4f5 !important; }
3410
 
3411
- .components-icon-button.block-editor-block-switcher__toggle { width: auto; }
3412
 
3413
- .components-icon-button.block-editor-block-switcher__toggle:active, .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):not([aria-disabled="true"]):hover, .components-icon-button.block-editor-block-switcher__toggle:not([aria-disabled="true"]):focus { outline: none; box-shadow: none; background: none; border: none; }
3414
 
3415
- .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-icon, .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { width: 42px; height: 30px; position: relative; margin: 0 auto; padding: 3px; display: flex; align-items: center; transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1); }
3416
 
3417
- @media (prefers-reduced-motion: reduce) { .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-icon, .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { transition-duration: 0s; } }
3418
 
3419
- .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-icon::after { content: ""; pointer-events: none; display: block; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 5px solid; margin-left: 4px; margin-right: 2px; }
3420
 
3421
- .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { margin-top: 6px; border-radius: 4px; }
3422
 
3423
- .components-icon-button.block-editor-block-switcher__toggle[aria-expanded="true"] .block-editor-block-icon, .components-icon-button.block-editor-block-switcher__toggle[aria-expanded="true"] .block-editor-block-switcher__transform, .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-icon, .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-switcher__transform, .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon, .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform { transform: translateY(-36px); }
3424
 
3425
- .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon, .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform { box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; outline: 2px solid transparent; }
3426
 
3427
- .components-popover:not(.is-mobile).block-editor-block-switcher__popover .components-popover__content { min-width: 300px; max-width: calc(340px * 2); display: flex; background: #fff; box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); }
3428
 
3429
  .block-editor-block-switcher__popover .components-popover__content .block-editor-block-switcher__container { min-width: 300px; max-width: 340px; width: 50%; }
3430
 
@@ -3450,550 +3415,1399 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator { bac
3450
 
3451
  .block-editor-block-toolbar .components-toolbar { border: 0; border-top: 1px solid #b5bcc2; border-bottom: 1px solid #b5bcc2; border-right: 1px solid #b5bcc2; line-height: 0; }
3452
 
3453
- .has-fixed-toolbar .block-editor-block-toolbar { box-shadow: none; border-left: 1px solid #e2e4e7; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3454
 
3455
- .has-fixed-toolbar .block-editor-block-toolbar .components-toolbar { border-color: #e2e4e7; }
3456
 
3457
- .block-editor-block-toolbar__slot { display: inline-block; line-height: 0; }
3458
 
3459
- @supports ((position: -webkit-sticky) or (position: sticky)) { .block-editor-block-toolbar__slot { display: inline-flex; } }
3460
 
3461
- .block-editor-block-types-list { list-style: none; padding: 4px; margin-left: -4px; margin-right: -4px; overflow: hidden; display: flex; flex-wrap: wrap; }
3462
 
3463
- .block-editor-button-block-appender { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 21px; outline: 1px dashed #8d96a0; width: 100%; color: #555d66; background: rgba(237, 239, 240, 0.8); }
3464
 
3465
- .block-editor-button-block-appender:hover, .block-editor-button-block-appender:focus { outline: 1px dashed #555d66; color: #191e23; }
3466
 
3467
- .block-editor-button-block-appender:active { outline: 1px dashed #191e23; color: #191e23; }
3468
 
3469
- .is-dark-theme .block-editor-button-block-appender { background: rgba(50, 55, 60, 0.7); color: #f8f9f9; }
3470
 
3471
- .is-dark-theme .block-editor-button-block-appender:hover, .is-dark-theme .block-editor-button-block-appender:focus { outline: 1px dashed #fff; }
 
 
 
 
 
3472
 
3473
- .block-editor-color-palette-control__color-palette { display: inline-block; margin-top: 0.6rem; }
3474
 
3475
- .block-editor-contrast-checker > .components-notice { margin: 0; }
3476
 
3477
- .block-editor-default-block-appender { clear: both; margin-left: auto; margin-right: auto; position: relative; }
3478
 
3479
- .block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover { outline: 1px solid transparent; }
3480
 
3481
- .block-editor-default-block-appender textarea.block-editor-default-block-appender__content { font-family: "Noto Serif", serif; font-size: 16px; border: none; background: none; box-shadow: none; display: block; cursor: text; width: 100%; outline: 1px solid transparent; transition: 0.2s outline; resize: none; margin-top: 28px; margin-bottom: 28px; padding: 0 50px 0 14px; color: rgba(14, 28, 46, 0.62); }
3482
 
3483
- @media (prefers-reduced-motion: reduce) { .block-editor-default-block-appender textarea.block-editor-default-block-appender__content { transition-duration: 0s; } }
3484
 
3485
- .is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content { color: rgba(255, 255, 255, 0.65); }
3486
 
3487
- .block-editor-default-block-appender:hover .block-editor-inserter-with-shortcuts { -webkit-animation: edit-post__fade-in-animation 0.2s ease-out 0s; animation: edit-post__fade-in-animation 0.2s ease-out 0s; -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards; }
3488
 
3489
- @media (prefers-reduced-motion: reduce) { .block-editor-default-block-appender:hover .block-editor-inserter-with-shortcuts { -webkit-animation-duration: 1ms; animation-duration: 1ms; } }
3490
 
3491
- .block-editor-default-block-appender .components-drop-zone__content-icon { display: none; }
3492
 
3493
- .block-editor-default-block-appender__content { min-height: 28px; line-height: 1.8; }
3494
 
3495
- .block-editor-block-list__empty-block-inserter, .block-editor-default-block-appender .block-editor-inserter, .block-editor-inserter-with-shortcuts { position: absolute; top: 0; }
3496
 
3497
- .block-editor-block-list__empty-block-inserter .components-icon-button, .block-editor-default-block-appender .block-editor-inserter .components-icon-button, .block-editor-inserter-with-shortcuts .components-icon-button { width: 28px; height: 28px; margin-right: 12px; padding: 0; }
3498
 
3499
- .block-editor-block-list__empty-block-inserter .block-editor-block-icon, .block-editor-default-block-appender .block-editor-inserter .block-editor-block-icon, .block-editor-inserter-with-shortcuts .block-editor-block-icon { margin: auto; }
3500
 
3501
- .block-editor-block-list__empty-block-inserter .components-icon-button svg, .block-editor-default-block-appender .block-editor-inserter .components-icon-button svg, .block-editor-inserter-with-shortcuts .components-icon-button svg { display: block; margin: auto; }
3502
 
3503
- .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle, .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle, .block-editor-inserter-with-shortcuts .block-editor-inserter__toggle { margin-right: 0; }
3504
 
3505
- .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .block-editor-inserter-with-shortcuts .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { box-shadow: none; }
3506
 
3507
- .block-editor-block-list__empty-block-inserter, .block-editor-default-block-appender .block-editor-inserter { right: 8px; }
3508
 
3509
- @media (min-width: 600px) { .block-editor-block-list__empty-block-inserter, .block-editor-default-block-appender .block-editor-inserter { display: flex; align-items: center; height: 100%; left: -44px; right: auto; } }
3510
 
3511
- .block-editor-block-list__empty-block-inserter:disabled, .block-editor-default-block-appender .block-editor-inserter:disabled { display: none; }
3512
 
3513
- .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle, .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle { border-radius: 50%; width: 28px; height: 28px; padding: 0; }
3514
 
3515
- .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover), .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover) { color: rgba(10, 24, 41, 0.7); }
3516
 
3517
- .is-dark-theme .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover), .is-dark-theme .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover) { color: rgba(255, 255, 255, 0.75); }
3518
 
3519
- .block-editor-block-list__side-inserter .block-editor-inserter-with-shortcuts, .block-editor-default-block-appender .block-editor-inserter-with-shortcuts { right: 14px; display: none; z-index: 5; }
3520
 
3521
- @media (min-width: 600px) { .block-editor-block-list__side-inserter .block-editor-inserter-with-shortcuts, .block-editor-default-block-appender .block-editor-inserter-with-shortcuts { display: flex; align-items: center; height: 100%; right: 0; } }
3522
 
3523
- .block-editor-gradient-picker-control__gradient-picker-presets { display: inline-block; margin-top: 0.6rem; }
3524
 
3525
- .block-editor-link-control__search { position: relative; min-width: 360px; }
3526
 
3527
- .block-editor-link-control__search .block-editor-link-control__search-input.block-editor-link-control__search-input > input[type="text"] { width: calc(100% - 32px); display: block; padding: 11px 16px; margin: 16px; padding-right: 38px; position: relative; z-index: 1; border: 1px solid #e1e1e1; border-radius: 4px; /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: 16px; }
3528
 
3529
- @media (min-width: 600px) { .block-editor-link-control__search .block-editor-link-control__search-input.block-editor-link-control__search-input > input[type="text"] { font-size: 13px; } }
3530
 
3531
- .block-editor-link-control__search .block-editor-link-control__search-input.block-editor-link-control__search-input > input[type="text"]:focus { color: #191e23; border-color: #007cba; box-shadow: 0 0 0 1px #007cba; outline: 2px solid transparent; }
3532
 
3533
- .block-editor-link-control__search-reset { position: absolute; top: 19px; right: 19px; z-index: 10; }
3534
 
3535
- .block-editor-link-control__search-results-wrapper { position: relative; margin-top: -15px; }
3536
 
3537
- .block-editor-link-control__search-results-wrapper::before, .block-editor-link-control__search-results-wrapper::after { content: ""; position: absolute; left: -1px; right: 16px; display: block; pointer-events: none; z-index: 100; }
3538
 
3539
- .block-editor-link-control__search-results-wrapper::before { height: 8px; top: 0; bottom: auto; background: linear-gradient(to bottom, white 0%, rgba(255, 255, 255, 0) 100%); }
3540
 
3541
- .block-editor-link-control__search-results-wrapper::after { height: 16px; bottom: 0; top: auto; background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 100%); }
3542
 
3543
- .block-editor-link-control__search-results { margin: 0; padding: 8px 16px 16px; max-height: 200px; overflow-y: scroll; }
3544
 
3545
- .block-editor-link-control__search-results.is-loading { opacity: 0.2; }
3546
 
3547
- .block-editor-link-control__search-item { position: relative; display: flex; align-items: center; font-size: 13px; cursor: pointer; background: #fff; width: 100%; border: none; text-align: left; padding: 10px 15px; border-radius: 5px; }
3548
 
3549
- .block-editor-link-control__search-item:hover, .block-editor-link-control__search-item:focus { background-color: #e9e9e9; }
3550
 
3551
- .block-editor-link-control__search-item.is-selected { background: #f2f2f2; }
3552
 
3553
- .block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type { background: #fff; }
3554
 
3555
- .block-editor-link-control__search-item.is-current { background: transparent; border: 0; width: 100%; cursor: default; padding: 16px; padding-left: 24px; }
3556
 
3557
- .block-editor-link-control__search-item .block-editor-link-control__search-item-header { display: block; margin-right: 24px; }
3558
 
3559
- .block-editor-link-control__search-item .block-editor-link-control__search-item-icon { margin-right: 1em; min-width: 24px; }
3560
 
3561
- .block-editor-link-control__search-item .block-editor-link-control__search-item-info, .block-editor-link-control__search-item .block-editor-link-control__search-item-title { text-overflow: ellipsis; max-width: 230px; overflow: hidden; white-space: nowrap; }
3562
 
3563
- .block-editor-link-control__search-item .block-editor-link-control__search-item-title { display: block; margin-bottom: 0.2em; font-weight: 500; }
3564
 
3565
- .block-editor-link-control__search-item .block-editor-link-control__search-item-title mark { font-weight: 700; color: #000; background-color: transparent; }
3566
 
3567
- .block-editor-link-control__search-item .block-editor-link-control__search-item-title span { font-weight: normal; }
3568
 
3569
- .block-editor-link-control__search-item .block-editor-link-control__search-item-info { display: block; color: #999; font-size: 0.9em; line-height: 1.3; }
3570
 
3571
- .block-editor-link-control__search-item .block-editor-link-control__search-item-type { display: block; padding: 3px 8px; margin-left: auto; font-size: 0.9em; background-color: #f3f4f5; border-radius: 2px; }
3572
 
3573
- .block-editor-link-control__search-results div[role="menu"] > .block-editor-link-control__search-item.block-editor-link-control__search-item { padding: 10px; }
3574
 
3575
- .block-editor-link-control__settings { border-top: 1px solid #e1e1e1; margin: 0; padding: 16px 24px; }
3576
 
3577
- .block-editor-link-control__settings :last-child { margin-bottom: 0; }
3578
 
3579
- .block-editor-link-control__setting { margin-bottom: 16px; }
3580
 
3581
- .block-editor-link-control__setting :last-child { margin-bottom: 0; }
3582
 
3583
- .block-editor-link-control .block-editor-link-control__search-input .components-spinner { display: block; z-index: 100; float: none; }
3584
 
3585
- .block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner { position: absolute; top: 27px; left: auto; right: 60px; bottom: 0; }
3586
 
3587
- .block-editor-link-control__search-item-action { margin-left: auto; flex-shrink: 0; }
 
 
 
 
3588
 
3589
- .block-editor-inner-blocks.has-overlay::after { content: ""; position: absolute; top: -14px; right: -14px; bottom: -14px; left: -14px; z-index: 60; }
3590
 
3591
- [data-align="full"] > .editor-block-list__block-edit > [data-block] .has-overlay::after { right: 0; left: 0; }
3592
 
3593
- .block-editor-inner-blocks__template-picker .components-placeholder__instructions { margin-bottom: 0; }
3594
 
3595
- .block-editor-inner-blocks__template-picker .components-placeholder__fieldset { flex-direction: column; }
3596
 
3597
- .block-editor-inner-blocks__template-picker.has-many-options .components-placeholder__fieldset { max-width: 90%; }
3598
 
3599
- .block-editor-inner-blocks__template-picker-options.block-editor-inner-blocks__template-picker-options { display: flex; justify-content: center; flex-direction: row; flex-wrap: wrap; width: 100%; margin: 4px 0; list-style: none; }
3600
 
3601
- .block-editor-inner-blocks__template-picker-options.block-editor-inner-blocks__template-picker-options > li { list-style: none; margin: 8px; flex-shrink: 1; max-width: 100px; }
3602
 
3603
- .block-editor-inner-blocks__template-picker-options.block-editor-inner-blocks__template-picker-options .block-editor-inner-blocks__template-picker-option { padding: 8px; }
3604
 
3605
- .block-editor-inner-blocks__template-picker-option { width: 100%; }
3606
 
3607
- .block-editor-inner-blocks__template-picker-option.components-icon-button { justify-content: center; }
3608
 
3609
- .block-editor-inner-blocks__template-picker-option.components-icon-button.is-default { background-color: #fff; }
3610
 
3611
- .block-editor-inner-blocks__template-picker-option.components-button { height: auto; padding: 0; }
3612
 
3613
- .block-editor-inner-blocks__template-picker-option::before { content: ""; padding-bottom: 100%; }
3614
 
3615
- .block-editor-inner-blocks__template-picker-option:first-child { margin-left: 0; }
3616
 
3617
- .block-editor-inner-blocks__template-picker-option:last-child { margin-right: 0; }
3618
 
3619
- .block-editor-inserter-with-shortcuts { display: flex; align-items: center; }
3620
 
3621
- .block-editor-inserter-with-shortcuts .components-icon-button { border-radius: 4px; }
3622
 
3623
- .block-editor-inserter-with-shortcuts .components-icon-button svg:not(.dashicon) { height: 24px; width: 24px; }
3624
 
3625
- .block-editor-inserter-with-shortcuts__block { margin-right: 4px; width: 36px; height: 36px; padding-top: 8px; color: rgba(10, 24, 41, 0.7); }
3626
 
3627
- .is-dark-theme .block-editor-inserter-with-shortcuts__block { color: rgba(255, 255, 255, 0.75); }
3628
 
3629
- .block-editor-inserter { display: inline-block; background: none; border: none; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; line-height: 1.4; }
3630
 
3631
- @media (min-width: 782px) { .block-editor-inserter { position: relative; } }
3632
 
3633
- @media (min-width: 782px) { .block-editor-inserter__popover:not(.is-mobile) > .components-popover__content { overflow-y: visible; height: 432px; } }
3634
 
3635
- .block-editor-inserter__toggle { display: inline-flex; align-items: center; color: #555d66; background: none; cursor: pointer; border: none; outline: none; transition: color 0.2s ease; }
3636
 
3637
- @media (prefers-reduced-motion: reduce) { .block-editor-inserter__toggle { transition-duration: 0s; } }
3638
 
3639
- .block-editor-inserter__menu { height: 100%; display: flex; width: auto; }
3640
 
3641
- @media (min-width: 782px) { .block-editor-inserter__menu { width: 400px; position: relative; }
3642
- .block-editor-inserter__menu.has-help-panel { width: 700px; } }
3643
 
3644
- .block-editor-inserter__main-area { width: auto; display: flex; flex-direction: column; height: 100%; }
3645
 
3646
- @media (min-width: 782px) { .block-editor-inserter__main-area { width: 400px; position: relative; } }
3647
 
3648
- .block-editor-inserter__inline-elements { margin-top: -1px; }
3649
 
3650
- .block-editor-inserter__menu.is-bottom::after { border-bottom-color: #fff; }
3651
 
3652
- .components-popover.block-editor-inserter__popover { z-index: 99998; }
3653
 
3654
- .components-popover input[type="search"].block-editor-inserter__search { display: block; margin: 16px; padding: 11px 16px; position: relative; z-index: 1; border-radius: 4px; /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: 16px; }
3655
 
3656
- @media (min-width: 600px) { .components-popover input[type="search"].block-editor-inserter__search { font-size: 13px; } }
3657
 
3658
- .components-popover input[type="search"].block-editor-inserter__search:focus { color: #191e23; border-color: #007cba; box-shadow: 0 0 0 1px #007cba; outline: 2px solid transparent; }
3659
 
3660
- .block-editor-inserter__results { flex-grow: 1; overflow: auto; position: relative; z-index: 1; padding: 0 16px 16px 16px; }
3661
 
3662
- .block-editor-inserter__results:focus { outline: 1px dotted #555d66; }
3663
 
3664
- @media (min-width: 782px) { .block-editor-inserter__results { height: 394px; } }
3665
 
3666
- .block-editor-inserter__results [role="presentation"] + .components-panel__body { border-top: none; }
3667
 
3668
- .block-editor-inserter__popover .block-editor-block-types-list { margin: 0 -8px; }
3669
 
3670
- .block-editor-inserter__reusable-blocks-panel { position: relative; text-align: right; }
3671
 
3672
- .block-editor-inserter__manage-reusable-blocks { margin: 16px 0 0 16px; }
3673
 
3674
- .block-editor-inserter__no-results { font-style: italic; padding: 24px; text-align: center; }
3675
 
3676
- .block-editor-inserter__child-blocks { padding: 0 16px; }
3677
 
3678
- .block-editor-inserter__parent-block-header { display: flex; align-items: center; }
3679
 
3680
- .block-editor-inserter__parent-block-header h2 { font-size: 13px; }
3681
 
3682
- .block-editor-inserter__parent-block-header .block-editor-block-icon { margin-right: 8px; }
3683
 
3684
- .block-editor-inserter__menu-help-panel { display: none; border-left: 1px solid #e2e4e7; width: 300px; height: 100%; padding: 20px; overflow-y: auto; }
3685
 
3686
- @media (min-width: 782px) { .block-editor-inserter__menu-help-panel { display: flex; flex-direction: column; } }
3687
 
3688
- .block-editor-inserter__menu-help-panel .block-editor-block-card { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #e2e4e7; -webkit-animation: edit-post__fade-in-animation 0.2s ease-out 0s; animation: edit-post__fade-in-animation 0.2s ease-out 0s; -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards; }
3689
 
3690
- @media (prefers-reduced-motion: reduce) { .block-editor-inserter__menu-help-panel .block-editor-block-card { -webkit-animation-duration: 1ms; animation-duration: 1ms; } }
3691
 
3692
- .block-editor-inserter__menu-help-panel .block-editor-inserter__preview { display: flex; flex-grow: 2; }
3693
 
3694
- .block-editor-inserter__menu-help-panel-no-block { display: flex; height: 100%; flex-direction: column; -webkit-animation: edit-post__fade-in-animation 0.2s ease-out 0s; animation: edit-post__fade-in-animation 0.2s ease-out 0s; -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards; }
3695
 
3696
- @media (prefers-reduced-motion: reduce) { .block-editor-inserter__menu-help-panel-no-block { -webkit-animation-duration: 1ms; animation-duration: 1ms; } }
3697
 
3698
- .block-editor-inserter__menu-help-panel-no-block .block-editor-inserter__menu-help-panel-no-block-text { flex-grow: 1; }
3699
 
3700
- .block-editor-inserter__menu-help-panel-no-block .block-editor-inserter__menu-help-panel-no-block-text h4 { font-size: 18px; }
3701
 
3702
- .block-editor-inserter__menu-help-panel-no-block .components-notice { margin: 0; }
3703
 
3704
- .block-editor-inserter__menu-help-panel-no-block h4 { margin-top: 0; }
3705
 
3706
- .block-editor-inserter__menu-help-panel-hover-area { flex-grow: 1; margin-top: 20px; padding: 20px; border: 1px dotted #e2e4e7; display: flex; align-items: center; text-align: center; }
3707
 
3708
- .block-editor-inserter__menu-help-panel-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
3709
 
3710
- .block-editor-inserter__preview-content { border: 1px solid #e2e4e7; border-radius: 4px; min-height: 150px; display: -ms-grid; display: grid; flex-grow: 2; }
3711
 
3712
- .block-editor-inserter__preview-content .block-editor-block-preview__container { margin-right: 0; margin-left: 0; padding: 10px; }
3713
 
3714
- .block-editor-inserter__preview-content-missing { flex: 1; display: flex; justify-content: center; color: #606a73; border: 1px solid #e2e4e7; border-radius: 4px; align-items: center; }
3715
 
3716
- .block-editor-block-types-list__list-item { display: block; width: 33.33%; padding: 0; margin: 0 0 12px; }
3717
 
3718
- .block-editor-block-types-list__item { display: flex; flex-direction: column; width: 100%; font-size: 13px; color: #32373c; padding: 0 4px; align-items: stretch; justify-content: center; cursor: pointer; background: transparent; word-break: break-word; border-radius: 4px; border: 1px solid transparent; transition: all 0.05s ease-in-out; position: relative; }
3719
 
3720
- @media (prefers-reduced-motion: reduce) { .block-editor-block-types-list__item { transition-duration: 0s; } }
3721
 
3722
- .block-editor-block-types-list__item:disabled { opacity: 0.6; cursor: default; }
3723
 
3724
- .block-editor-block-types-list__item:not(:disabled):hover::before { content: ""; display: block; background: #f3f4f5; color: #191e23; position: absolute; z-index: -1; border-radius: 4px; top: 0; right: 0; bottom: 0; left: 0; }
3725
 
3726
- .block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-icon, .block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title { color: inherit; }
3727
 
3728
- .block-editor-block-types-list__item:not(:disabled):active, .block-editor-block-types-list__item:not(:disabled):focus { position: relative; color: #191e23; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #00a0d2; outline: 2px solid transparent; }
3729
 
3730
- .block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-icon, .block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-title, .block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-icon, .block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-title { color: inherit; }
3731
 
3732
- .block-editor-block-types-list__item:not(:disabled).is-active { color: #191e23; box-shadow: inset 0 0 0 2px #555d66; outline: 2px solid transparent; outline-offset: -2px; }
3733
 
3734
- .block-editor-block-types-list__item:not(:disabled).is-active:focus { color: #191e23; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #00a0d2, inset 0 0 0 2px #555d66; outline: 4px solid transparent; outline-offset: -4px; }
3735
 
3736
- .block-editor-block-types-list__item-icon { padding: 12px 20px; border-radius: 4px; color: #555d66; transition: all 0.05s ease-in-out; }
3737
 
3738
- @media (prefers-reduced-motion: reduce) { .block-editor-block-types-list__item-icon { transition-duration: 0s; } }
3739
 
3740
- .block-editor-block-types-list__item-icon .block-editor-block-icon { margin-left: auto; margin-right: auto; }
3741
 
3742
- .block-editor-block-types-list__item-icon svg { transition: all 0.15s ease-out; }
3743
 
3744
- @media (prefers-reduced-motion: reduce) { .block-editor-block-types-list__item-icon svg { transition-duration: 0s; } }
3745
 
3746
- .block-editor-block-types-list__item-title { padding: 4px 2px 8px; }
3747
 
3748
- .block-editor-media-placeholder__url-input-container { width: 100%; }
3749
 
3750
- .block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button { margin-bottom: 0; }
3751
 
3752
- .block-editor-media-placeholder__url-input-form { display: flex; }
3753
 
3754
- .block-editor-media-placeholder__url-input-form input[type="url"].block-editor-media-placeholder__url-input-field { width: 100%; flex-grow: 1; border: none; border-radius: 0; margin: 2px; }
3755
 
3756
- @media (min-width: 600px) { .block-editor-media-placeholder__url-input-form input[type="url"].block-editor-media-placeholder__url-input-field { width: 300px; } }
3757
 
3758
- .block-editor-media-placeholder__url-input-submit-button { flex-shrink: 1; }
3759
 
3760
- .block-editor-media-placeholder__button { margin-bottom: 0.5rem; }
3761
 
3762
- .block-editor-media-placeholder__button .dashicon { vertical-align: middle; margin-bottom: 3px; }
3763
 
3764
- .block-editor-media-placeholder__button:hover { color: #23282d; }
3765
 
3766
- .block-editor-media-placeholder__cancel-button.is-link { margin: 1em; display: block; }
3767
 
3768
- .components-form-file-upload .block-editor-media-placeholder__button { margin-right: 4px; }
3769
 
3770
- .block-editor-media-placeholder.is-appender { min-height: 100px; outline: 1px dashed #8d96a0; }
3771
 
3772
- .block-editor-media-placeholder.is-appender:hover { outline: 1px dashed #555d66; cursor: pointer; }
3773
 
3774
- .is-dark-theme .block-editor-media-placeholder.is-appender:hover { outline: 1px dashed #fff; }
3775
 
3776
- .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button { margin-right: 4px; }
3777
 
3778
- .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button.components-button:hover, .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button.components-button:focus { box-shadow: none; border: 1px solid #555d66; }
3779
 
3780
- .block-editor-multi-selection-inspector__card { display: flex; align-items: flex-start; margin: -16px; padding: 16px; }
3781
 
3782
- .block-editor-multi-selection-inspector__card-content { flex-grow: 1; }
3783
 
3784
- .block-editor-multi-selection-inspector__card-title { font-weight: 500; margin-bottom: 5px; }
3785
 
3786
- .block-editor-multi-selection-inspector__card-description { font-size: 13px; }
3787
 
3788
- .block-editor-multi-selection-inspector__card .block-editor-block-icon { margin-left: -2px; margin-right: 10px; padding: 0 3px; width: 36px; height: 24px; }
3789
 
3790
- .block-editor-panel-color-settings .component-color-indicator { vertical-align: text-bottom; }
3791
 
3792
- .block-editor-panel-color-settings__panel-title .component-color-indicator { display: inline-block; }
3793
 
3794
- .block-editor-panel-color-settings.is-opened .block-editor-panel-color-settings__panel-title .component-color-indicator { display: none; }
3795
 
3796
- .block-editor .block-editor-plain-text { box-shadow: none; font-family: inherit; font-size: inherit; color: inherit; line-height: inherit; border: none; padding: 0; margin: 0; width: 100%; }
3797
 
3798
- .block-editor-responsive-block-control { margin-bottom: 28px; border-bottom: 1px solid #d7dade; padding-bottom: 14px; }
3799
 
3800
- .block-editor-responsive-block-control:last-child { padding-bottom: 0; border-bottom: 0; }
3801
 
3802
- .block-editor-responsive-block-control__title { margin: 0; margin-bottom: 0.6em; margin-left: -3px; }
3803
 
3804
- .block-editor-responsive-block-control__label { font-weight: 600; margin-bottom: 0.6em; margin-left: -3px; }
3805
 
3806
- .block-editor-responsive-block-control__inner { margin-left: -1px; }
3807
 
3808
- .block-editor-responsive-block-control__toggle { margin-left: 1px; }
3809
 
3810
- .block-editor-responsive-block-control .components-base-control__help { border: 0; clip: rect(1px, 1px, 1px, 1px); -webkit-clip-path: inset(50%); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
3811
 
3812
- .block-editor-format-toolbar .components-dropdown-menu__toggle .components-dropdown-menu__indicator::after { margin: 7px; }
3813
 
3814
- .block-editor-rich-text__editable > p:first-child { margin-top: 0; }
3815
 
3816
- .block-editor-rich-text__editable a { color: #007fac; }
3817
 
3818
- .block-editor-rich-text__editable code { padding: 2px; border-radius: 2px; color: #23282d; background: #f3f4f5; font-family: Menlo, Consolas, monaco, monospace; font-size: inherit; }
3819
 
3820
- .is-multi-selected .block-editor-rich-text__editable code { background: #67cffd; }
3821
 
3822
- .block-editor-rich-text__editable:focus { outline: none; }
3823
 
3824
- .block-editor-rich-text__editable:focus *[data-rich-text-format-boundary] { border-radius: 2px; }
3825
 
3826
- .block-editor-rich-text__editable [data-rich-text-placeholder] { pointer-events: none; }
3827
 
3828
- .block-editor-rich-text__editable [data-rich-text-placeholder]::after { content: attr(data-rich-text-placeholder); opacity: 0.62; }
3829
 
3830
- .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus) [data-rich-text-placeholder]::after { display: none; }
3831
 
3832
- figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before { opacity: 0.8; }
3833
 
3834
- .components-popover.block-editor-rich-text__inline-format-toolbar { z-index: 99998; }
3835
 
3836
- .components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content { min-width: auto; }
3837
 
3838
- .components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar { border: none; }
3839
 
3840
- .block-editor-skip-to-selected-block { position: absolute; top: -9999em; }
3841
 
3842
- .block-editor-skip-to-selected-block:focus { height: auto; width: auto; display: block; font-size: 14px; font-weight: 600; padding: 15px 23px 14px; background: #f1f1f1; color: #11a0d2; line-height: normal; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); text-decoration: none; outline: none; z-index: 100000; }
3843
 
3844
- body.admin-color-sunrise .block-editor-skip-to-selected-block:focus { color: #c8b03c; }
3845
 
3846
- body.admin-color-ocean .block-editor-skip-to-selected-block:focus { color: #a89d8a; }
3847
 
3848
- body.admin-color-midnight .block-editor-skip-to-selected-block:focus { color: #77a6b9; }
3849
 
3850
- body.admin-color-ectoplasm .block-editor-skip-to-selected-block:focus { color: #c77430; }
3851
 
3852
- body.admin-color-coffee .block-editor-skip-to-selected-block:focus { color: #9fa47b; }
3853
 
3854
- body.admin-color-blue .block-editor-skip-to-selected-block:focus { color: #d9ab59; }
3855
 
3856
- body.admin-color-light .block-editor-skip-to-selected-block:focus { color: #c75726; }
3857
 
3858
- .block-editor-block-list__block .block-editor-url-input, .components-popover .block-editor-url-input, .block-editor-url-input { flex-grow: 1; position: relative; padding: 1px; }
3859
 
3860
- .block-editor-block-list__block .block-editor-url-input input[type="text"], .components-popover .block-editor-url-input input[type="text"], .block-editor-url-input input[type="text"] { width: 100%; padding: 8px; border: none; border-radius: 0; margin-left: 0; margin-right: 0; /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: 16px; }
3861
 
3862
- @media (min-width: 600px) { .block-editor-block-list__block .block-editor-url-input input[type="text"], .components-popover .block-editor-url-input input[type="text"], .block-editor-url-input input[type="text"] { width: 300px; } }
3863
 
3864
- @media (min-width: 600px) { .block-editor-block-list__block .block-editor-url-input input[type="text"], .components-popover .block-editor-url-input input[type="text"], .block-editor-url-input input[type="text"] { font-size: 13px; } }
3865
 
3866
- .block-editor-block-list__block .block-editor-url-input input[type="text"]::-ms-clear, .components-popover .block-editor-url-input input[type="text"]::-ms-clear, .block-editor-url-input input[type="text"]::-ms-clear { display: none; }
3867
 
3868
- .block-editor-block-list__block .block-editor-url-input.has-border input[type="text"], .components-popover .block-editor-url-input.has-border input[type="text"], .block-editor-url-input.has-border input[type="text"] { border: 1px solid #555d66; border-radius: 4px; }
3869
 
3870
- .block-editor-block-list__block .block-editor-url-input.is-full-width, .components-popover .block-editor-url-input.is-full-width, .block-editor-url-input.is-full-width { width: 100%; }
3871
 
3872
- .block-editor-block-list__block .block-editor-url-input.is-full-width input[type="text"], .components-popover .block-editor-url-input.is-full-width input[type="text"], .block-editor-url-input.is-full-width input[type="text"] { width: 100%; }
3873
 
3874
- .block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions, .components-popover .block-editor-url-input.is-full-width__suggestions, .block-editor-url-input.is-full-width__suggestions { width: 100%; }
3875
 
3876
- .block-editor-block-list__block .block-editor-url-input .components-spinner, .components-popover .block-editor-url-input .components-spinner, .block-editor-url-input .components-spinner { position: absolute; right: 8px; top: 9px; margin: 0; }
3877
 
3878
- .block-editor-url-input__suggestions { max-height: 200px; transition: all 0.15s ease-in-out; padding: 4px 0; width: 302px; overflow-y: auto; }
3879
 
3880
- @media (prefers-reduced-motion: reduce) { .block-editor-url-input__suggestions { transition-duration: 0s; } }
3881
 
3882
- .block-editor-url-input__suggestions, .block-editor-url-input .components-spinner { display: none; }
3883
 
3884
- @media (min-width: 600px) { .block-editor-url-input__suggestions, .block-editor-url-input .components-spinner { display: inherit; } }
3885
 
3886
- .block-editor-url-input__suggestion { padding: 4px 8px; color: #6c7781; display: block; font-size: 13px; cursor: pointer; background: #fff; width: 100%; border: none; text-align: left; border: none; box-shadow: none; }
3887
 
3888
- .block-editor-url-input__suggestion:hover { background: #e2e4e7; }
3889
 
3890
- .block-editor-url-input__suggestion:focus, .block-editor-url-input__suggestion.is-selected { background: #00719e; color: #fff; outline: none; }
3891
 
3892
- body.admin-color-sunrise .block-editor-url-input__suggestion:focus, body.admin-color-sunrise .block-editor-url-input__suggestion.is-selected { background: #b2723f; }
3893
 
3894
- body.admin-color-ocean .block-editor-url-input__suggestion:focus, body.admin-color-ocean .block-editor-url-input__suggestion.is-selected { background: #8b9d8a; }
3895
 
3896
- body.admin-color-midnight .block-editor-url-input__suggestion:focus, body.admin-color-midnight .block-editor-url-input__suggestion.is-selected { background: #bf4139; }
3897
 
3898
- body.admin-color-ectoplasm .block-editor-url-input__suggestion:focus, body.admin-color-ectoplasm .block-editor-url-input__suggestion.is-selected { background: #8e9b49; }
3899
 
3900
- body.admin-color-coffee .block-editor-url-input__suggestion:focus, body.admin-color-coffee .block-editor-url-input__suggestion.is-selected { background: #a58d77; }
3901
 
3902
- body.admin-color-blue .block-editor-url-input__suggestion:focus, body.admin-color-blue .block-editor-url-input__suggestion.is-selected { background: #6f99ad; }
3903
 
3904
- body.admin-color-light .block-editor-url-input__suggestion:focus, body.admin-color-light .block-editor-url-input__suggestion.is-selected { background: #00719e; }
3905
 
3906
- .components-toolbar > .block-editor-url-input__button { position: inherit; }
3907
 
3908
- .block-editor-url-input__button .block-editor-url-input__back { margin-right: 4px; overflow: visible; }
3909
 
3910
- .block-editor-url-input__button .block-editor-url-input__back::after { content: ""; position: absolute; display: block; width: 1px; height: 24px; right: -1px; background: #e2e4e7; }
3911
 
3912
- .block-editor-url-input__button-modal { box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); border: 1px solid #e2e4e7; background: #fff; }
3913
 
3914
- .block-editor-url-input__button-modal-line { display: flex; flex-direction: row; flex-grow: 1; flex-shrink: 1; min-width: 0; align-items: flex-start; }
3915
 
3916
- .block-editor-url-input__button-modal-line .components-button { flex-shrink: 0; width: 36px; height: 36px; }
3917
 
3918
- .block-editor-url-popover__additional-controls { border-top: 1px solid #e2e4e7; }
3919
 
3920
- .block-editor-url-popover__additional-controls > div[role="menu"] .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default) > svg { box-shadow: none; }
3921
 
3922
- .block-editor-url-popover__additional-controls div[role="menu"] > .components-icon-button { padding-left: 2px; }
3923
 
3924
- .block-editor-url-popover__row { display: flex; }
3925
 
3926
- .block-editor-url-popover__row > :not(.block-editor-url-popover__settings-toggle) { flex-grow: 1; }
3927
 
3928
- .block-editor-url-popover .components-icon-button { padding: 3px; }
3929
 
3930
- .block-editor-url-popover .components-icon-button > svg { padding: 5px; border-radius: 4px; height: 30px; width: 30px; }
3931
 
3932
- .block-editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { box-shadow: none; }
3933
 
3934
- .block-editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover > svg { color: #555d66; box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; }
3935
 
3936
- .block-editor-url-popover .components-icon-button:not(:disabled):focus { box-shadow: none; }
3937
 
3938
- .block-editor-url-popover .components-icon-button:not(:disabled):focus > svg { box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; outline: 2px solid transparent; }
3939
 
3940
- .block-editor-url-popover__settings-toggle { flex-shrink: 0; border-radius: 0; border-left: 1px solid #e2e4e7; margin-left: 1px; }
3941
 
3942
- .block-editor-url-popover__settings-toggle[aria-expanded="true"] .dashicon { transform: rotate(180deg); }
 
 
 
 
 
 
 
 
 
 
 
 
3943
 
3944
- .block-editor-url-popover__settings { display: block; padding: 16px; border-top: 1px solid #e2e4e7; }
3945
 
3946
- .block-editor-url-popover__settings .components-base-control:last-child, .block-editor-url-popover__settings .components-base-control:last-child .components-base-control__field { margin-bottom: 0; }
3947
 
3948
- .block-editor-url-popover__link-editor, .block-editor-url-popover__link-viewer { display: flex; }
3949
 
3950
- .block-editor-url-popover__link-viewer-url { margin: 7px; flex-grow: 1; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 150px; max-width: 500px; }
3951
 
3952
- .block-editor-url-popover__link-viewer-url.has-invalid-link { color: #d94f4f; }
3953
 
3954
- .block-editor-warning { display: flex; flex-direction: row; justify-content: space-between; flex-wrap: nowrap; background-color: #fff; border: 1px solid #e2e4e7; text-align: left; padding: 10px 14px 14px; }
3955
 
3956
- .has-warning.is-multi-selected .block-editor-warning { background-color: transparent; }
3957
 
3958
- .is-selected .block-editor-warning { border-color: rgba(66, 88, 99, 0.4); }
3959
 
3960
- @media (min-width: 600px) { .is-selected .block-editor-warning { border-left-color: transparent; } }
3961
 
3962
- .is-dark-theme .is-selected .block-editor-warning { border-color: rgba(255, 255, 255, 0.45); }
3963
 
3964
- .block-editor-warning .block-editor-warning__message { line-height: 1.4; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; margin: 1em 0; }
3965
 
3966
- .block-editor-warning p.block-editor-warning__message.block-editor-warning__message { min-height: auto; }
3967
 
3968
- .block-editor-warning .block-editor-warning__contents { display: flex; flex-direction: row; justify-content: space-between; flex-wrap: wrap; align-items: baseline; width: 100%; }
3969
 
3970
- .block-editor-warning .block-editor-warning__actions { display: flex; }
3971
 
3972
- .block-editor-warning .block-editor-warning__action { margin: 0 6px 0 0; }
3973
 
3974
- .block-editor-warning__secondary { margin: 5px 0 0 -4px; height: 36px; }
3975
 
3976
- .block-editor-warning__secondary .components-icon-button { width: auto; padding: 8px 2px; }
3977
 
3978
- @media (min-width: 600px) { .block-editor-warning__secondary { margin-left: 4px; }
3979
- .block-editor-warning__secondary .components-icon-button { padding: 8px 4px; } }
3980
 
3981
- .block-editor-warning__secondary .components-button svg { transform: rotate(90deg); }
3982
 
3983
- .block-editor-writing-flow { display: flex; flex-direction: column; }
3984
 
3985
- .block-editor-writing-flow__click-redirect { cursor: text; }
3986
 
3987
- .html-anchor-control .components-external-link { display: block; margin-top: 8px; }
3988
 
3989
  /** Colors */
3990
  /** Breakpoints & Media Queries */
 
3991
  /** Often re-used variables */
3992
  /** Breakpoint mixins */
3993
  /** Long content fade mixin Creates a fading overlay to signify that the content is longer than the space allows. */
3994
  /** Button states and focus styles */
3995
  /** Applies editor left position to the selector passed as argument */
3996
- /** Applies editor right position to the selector passed as argument */
3997
  /** Styles that are reused verbatim in a few places */
3998
  /** Allows users to opt-out of animations via OS-level preferences. */
3999
  /** Reset default styles for JavaScript UI based pages. This is a WP-admin agnostic reset */
@@ -4002,7 +4816,7 @@ body.admin-color-light .block-editor-url-input__suggestion:focus, body.admin-col
4002
 
4003
  .wp-block-audio { margin-left: 0; margin-right: 0; }
4004
 
4005
- .edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow__click-redirect { height: auto; }
4006
 
4007
  .block-editor-block-list__block[data-type="core/button"][data-align="center"] { text-align: center; }
4008
 
@@ -4034,65 +4848,63 @@ body.admin-color-light .block-editor-url-input__suggestion:focus, body.admin-col
4034
 
4035
  div[data-type="core/button"] div[data-block] { display: table; }
4036
 
4037
- .block-editor .wp-block-categories ul { padding-left: 2.5em; }
4038
 
4039
- .block-editor .wp-block-categories ul ul { margin-top: 6px; }
4040
 
4041
- .wp-block-code .block-editor-plain-text { font-family: Menlo, Consolas, monaco, monospace; color: #23282d; /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: 16px; }
4042
 
4043
- @media (min-width: 600px) { .wp-block-code .block-editor-plain-text { font-size: 13px; } }
4044
 
4045
- .wp-block-code .block-editor-plain-text:focus { box-shadow: none; }
4046
 
4047
- .components-tab-button { display: inline-flex; align-items: flex-end; margin: 0; padding: 3px; background: none; outline: none; color: #555d66; cursor: pointer; position: relative; height: 36px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; font-weight: 500; border: 0; }
4048
 
4049
- .components-tab-button.is-active, .components-tab-button.is-active:hover { color: #fff; }
4050
 
4051
- .components-tab-button:disabled { cursor: default; }
4052
 
4053
- .components-tab-button > span { border: 1px solid transparent; padding: 0 6px; box-sizing: content-box; height: 28px; line-height: 28px; }
4054
 
4055
- .components-tab-button:hover > span, .components-tab-button:focus > span { color: #555d66; }
 
 
4056
 
4057
- .components-tab-button:not(:disabled).is-active > span, .components-tab-button:not(:disabled):hover > span, .components-tab-button:not(:disabled):focus > span { border: 1px solid #555d66; }
4058
 
4059
- .components-tab-button.is-active > span, .components-tab-button.is-active:hover > span { background-color: #555d66; color: #fff; }
4060
 
4061
- .wp-block-columns .editor-block-list__layout .editor-block-list__block { max-width: none; }
4062
 
4063
  .wp-block-columns { display: block; }
4064
 
4065
- .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout { display: flex; flex-wrap: wrap; }
4066
-
4067
- @media (min-width: 782px) { .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout { flex-wrap: nowrap; } }
4068
 
4069
- .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"], .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit, .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > div[data-block], .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit .block-core-columns { display: flex; flex-direction: column; flex: 1 1 auto; }
4070
 
4071
- @supports ((position: -webkit-sticky) or (position: sticky)) { .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"], .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit, .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > div[data-block], .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit .block-core-columns { flex: 1; } }
4072
 
4073
- .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] { padding-left: 0; padding-right: 0; margin-left: -14px; margin-right: -14px; min-width: 0; word-break: break-word; overflow-wrap: break-word; flex-basis: 100%; }
4074
 
4075
- @media (min-width: 600px) { .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] { flex-basis: calc(50% - (16px)); flex-grow: 0; margin-left: 0; margin-right: 0; } }
4076
 
4077
- @media (min-width: 600px) { .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:nth-child(even) { margin-left: calc(32px); } }
4078
 
4079
- @media (min-width: 782px) { .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:first-child) { margin-left: calc(32px); } }
4080
 
4081
- .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit { margin-top: 0; margin-bottom: 0; }
4082
 
4083
- .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit::before { left: 0; right: 0; }
4084
 
4085
- .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar { margin-left: -1px; }
4086
 
4087
- .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > [data-block] { margin-top: 0; margin-bottom: 0; }
4088
 
4089
- .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > div > .block-core-columns > .editor-inner-blocks { margin-top: -28px; margin-bottom: -28px; }
4090
 
4091
  /** Columns act as as a "passthrough container" and therefore has its vertical margins/padding removed via negative margins therefore we need to compensate for this here by doubling the spacing on the vertical to ensure there is equal visual spacing around the inserter. Note there is no formal API for a "passthrough" Block so this is an edge case overide */
4092
  [data-type="core/columns"] .block-list-appender { margin-top: 28px; margin-bottom: 28px; }
4093
 
4094
- [data-type="core/columns"] [data-type="core/column"].is-selected .block-list-appender { margin: 14px 0; }
4095
-
4096
  /** Vertical Alignment Preview note: specificity is important here to ensure individual columns alignment is prioritised over parent column alignment */
4097
  .are-vertically-aligned-top .block-core-columns, div.block-core-columns.is-vertically-aligned-top { justify-content: flex-start; }
4098
 
@@ -4101,16 +4913,11 @@ div[data-type="core/button"] div[data-block] { display: table; }
4101
  .are-vertically-aligned-bottom .block-core-columns, div.block-core-columns.is-vertically-aligned-bottom { justify-content: flex-end; }
4102
 
4103
  /** Fixes single Column breadcrumb position. */
4104
- [data-type="core/column"] > .editor-block-list__block-edit > .editor-block-list__breadcrumb { left: -3px; }
4105
 
4106
  /** Make single Column overlay not extend past boundaries of parent */
4107
  .block-core-columns > .block-editor-inner-blocks.has-overlay::after { left: 0; right: 0; }
4108
 
4109
- /** Add extra padding when the parent block is selected, for easier interaction. */
4110
- [data-type="core/columns"].is-selected > .block-editor-block-list__block-edit > [data-block] > div > .block-editor-inner-blocks, [data-type="core/columns"].has-child-selected > .block-editor-block-list__block-edit > [data-block] > div > .block-editor-inner-blocks, [data-type="core/column"].is-selected > .block-editor-block-list__block-edit > [data-block] > div > .block-editor-inner-blocks, [data-type="core/column"].has-child-selected > .block-editor-block-list__block-edit > [data-block] > div > .block-editor-inner-blocks { padding: 14px; }
4111
-
4112
- [data-type="core/columns"].is-selected > .block-editor-block-list__block-edit > [data-block] > div > .block-editor-inner-blocks > .components-placeholder, [data-type="core/columns"].has-child-selected > .block-editor-block-list__block-edit > [data-block] > div > .block-editor-inner-blocks > .components-placeholder, [data-type="core/column"].is-selected > .block-editor-block-list__block-edit > [data-block] > div > .block-editor-inner-blocks > .components-placeholder, [data-type="core/column"].has-child-selected > .block-editor-block-list__block-edit > [data-block] > div > .block-editor-inner-blocks > .components-placeholder { margin: -14px; width: calc(100% + 28px); }
4113
-
4114
  [data-type="core/columns"][data-align="full"] .wp-block-columns { padding-left: 14px; padding-right: 14px; }
4115
 
4116
  @media (min-width: 600px) { [data-type="core/columns"][data-align="full"] .wp-block-columns { padding-left: 46px; padding-right: 46px; } }
@@ -4125,11 +4932,7 @@ div[data-type="core/button"] div[data-block] { display: table; }
4125
 
4126
  .wp-block-cover-image .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout, .wp-block-cover .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout { margin-left: 0; margin-right: 0; }
4127
 
4128
- .wp-block-cover-image.components-placeholder, .wp-block-cover.components-placeholder { background: rgba(139, 139, 150, 0.1); min-height: 200px; }
4129
-
4130
- .is-dark-theme .wp-block-cover-image.components-placeholder, .is-dark-theme .wp-block-cover.components-placeholder { background: rgba(255, 255, 255, 0.15); }
4131
-
4132
- .wp-block-cover-image .wp-block-cover__placeholder-background-options, .wp-block-cover .wp-block-cover__placeholder-background-options { max-width: 290px; margin-top: 1em; width: 100%; }
4133
 
4134
  [data-align="left"] .wp-block-cover-image, [data-align="right"] .wp-block-cover-image, [data-align="left"] .wp-block-cover, [data-align="right"] .wp-block-cover { max-width: 290px; width: 100%; }
4135
 
@@ -4268,9 +5071,7 @@ div[data-type="core/freeform"] .block-editor-block-list__block-edit::before { tr
4268
 
4269
  div[data-type="core/freeform"].is-selected .block-editor-block-list__block-edit::before { border-color: #b5bcc2; border-left-color: transparent; }
4270
 
4271
- div[data-type="core/freeform"].is-hovered .block-editor-block-list__breadcrumb { display: none; }
4272
-
4273
- div[data-type="core/freeform"] .editor-block-contextual-toolbar + div { margin-top: 0; padding-top: 0; }
4274
 
4275
  div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce::after { content: ""; display: table; clear: both; }
4276
 
@@ -4340,7 +5141,7 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { outline: 4px so
4340
 
4341
  .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button, .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button { color: rgba(14, 28, 46, 0.62); padding: 2px; height: 24px; }
4342
 
4343
- .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { box-shadow: none; }
4344
 
4345
  @media (min-width: 600px) { .columns-7 .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button, .columns-8 .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button, .columns-7 .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button, .columns-8 .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button { padding: 0; width: inherit; height: inherit; } }
4346
 
@@ -4361,30 +5162,26 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { outline: 4px so
4361
  .blocks-gallery-item .components-spinner { position: absolute; top: 50%; left: 50%; margin-top: -9px; margin-left: -9px; }
4362
 
4363
  /** Group: All Alignment Settings */
4364
- .wp-block[data-type="core/group"] .editor-block-list__insertion-point { left: 0; right: 0; }
4365
 
4366
- .wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group.has-background > .wp-block-group__inner-container > .editor-inner-blocks { margin-top: -32px; margin-bottom: -32px; }
4367
 
4368
- .wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] { margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px; }
4369
 
4370
- @media (min-width: 600px) { .wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] { padding-left: 58px; padding-right: 58px; } }
4371
 
4372
- .wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group.has-background > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] { margin-left: -30px; width: calc(100% + 60px); }
4373
 
4374
  /** Group: Full Width Alignment */
4375
- .wp-block[data-type="core/group"][data-align="full"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks { margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
4376
 
4377
- .wp-block[data-type="core/group"][data-align="full"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout { margin-left: 0; margin-right: 0; }
4378
 
4379
- .wp-block[data-type="core/group"][data-align="full"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] { padding-right: 0; padding-left: 0; left: 0; width: 100%; max-width: none; }
4380
 
4381
- .wp-block[data-type="core/group"][data-align="full"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] > .editor-block-list__block-edit { margin-left: 0; margin-right: 0; }
4382
 
4383
- .wp-block[data-type="core/group"][data-align="full"] > .editor-block-list__block-edit > div > .wp-block-group.has-background > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] { width: calc(100% + 60px); }
4384
-
4385
- .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/group"].has-child-selected > .block-editor-block-list__block-edit > [data-block] > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks, .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/group"].is-selected > .block-editor-block-list__block-edit > [data-block] > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks { padding: 14px; }
4386
-
4387
- .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/group"].has-child-selected > .block-editor-block-list__block-edit > [data-block] > .wp-block-group:not(.has-background) > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout, .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/group"].is-selected > .block-editor-block-list__block-edit > [data-block] > .wp-block-group:not(.has-background) > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout { margin-top: -28px; margin-bottom: -28px; }
4388
 
4389
  [data-type="core/group"].is-selected .block-list-appender { margin-left: 0; margin-right: 0; }
4390
 
@@ -4408,7 +5205,7 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { outline: 4px so
4408
 
4409
  .wp-block-image .components-resizable-box__container { display: inline-block; }
4410
 
4411
- .wp-block-image .components-resizable-box__container img { display: block; width: 100%; }
4412
 
4413
  .wp-block-image.is-focused .components-resizable-box__handle { display: block; z-index: 1; }
4414
 
@@ -4458,6 +5255,8 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { outline: 4px so
4458
 
4459
  .wp-block-legacy-widget__preview { overflow: auto; }
4460
 
 
 
4461
  .wp-block-media-text .__resizable_base__ { -ms-grid-column: 1; -ms-grid-column-span: 2; grid-column: 1 / span 2; -ms-grid-row: 2; grid-row: 2; }
4462
 
4463
  .wp-block-media-text.is-vertically-aligned-top .block-editor-inner-blocks, .wp-block-media-text.is-vertically-aligned-top .editor-media-container__resizer { -ms-grid-row-align: start; align-self: start; }
@@ -4472,7 +5271,7 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { outline: 4px so
4472
 
4473
  .wp-block-media-text.has-media-on-the-right .editor-media-container__resizer { -ms-grid-column: 2; grid-column: 2; -ms-grid-row: 1; grid-row: 1; }
4474
 
4475
- .wp-block-media-text .editor-inner-blocks { word-break: break-word; -ms-grid-column: 2; grid-column: 2; -ms-grid-row: 1; grid-row: 1; text-align: initial; padding: 0 8% 0 8%; }
4476
 
4477
  .wp-block-media-text.has-media-on-the-right .block-editor-inner-blocks { -ms-grid-column: 1; grid-column: 1; -ms-grid-row: 1; grid-row: 1; }
4478
 
@@ -4503,29 +5302,44 @@ figure.block-library-media-text__media-container { margin: 0; height: 100%; widt
4503
 
4504
  .block-editor .wp-block-more::before { content: ""; position: absolute; top: calc(50%); left: 0; right: 0; border-top: 3px dashed #ccd0d4; }
4505
 
4506
- [data-type="core/navigation-menu"] .wp-block-navigation-menu .block-editor-inner-blocks > .block-editor-block-list__layout { margin-left: 0; margin-right: 0; }
 
 
4507
 
4508
- [data-type="core/navigation-menu"] .wp-block-navigation-menu .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block { width: auto; padding-left: 0; padding-right: 0; margin-left: 0; }
4509
 
4510
- [data-type="core/navigation-menu"] .wp-block-navigation-menu .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block > .block-editor-block-list__block-edit { margin-left: 0; margin-right: 0; }
4511
 
4512
- [data-type="core/navigation-menu"] .wp-block-navigation-menu .block-editor-inner-blocks > .block-editor-block-list__layout .wp-block > .block-editor-block-list__block-edit > [data-block] { margin-top: 0; margin-bottom: 0; }
4513
 
4514
- [data-type="core/navigation-menu"].is-hovered .wp-block-navigation-menu .block-editor-block-list__block-edit::before, [data-type="core/navigation-menu"].is-selected .wp-block-navigation-menu .block-editor-block-list__block-edit::before, [data-type="core/navigation-menu"].has-child-selected .wp-block-navigation-menu .block-editor-block-list__block-edit::before { border-color: transparent !important; }
4515
 
4516
- [data-type="core/navigation-menu"] .wp-block-navigation-menu .block-editor-block-list__insertion-point, [data-type="core/navigation-menu"] .wp-block-navigation-menu .block-editor-block-list__breadcrumb { display: none; }
4517
 
4518
- [data-type="core/navigation-menu"] .wp-block-navigation-menu .block-list-appender { margin: 0; }
4519
 
4520
- [data-type="core/navigation-menu"] .wp-block-navigation-menu .block-list-appender .block-editor-button-block-appender { padding: 8px; outline: none; background: none; }
4521
 
4522
- .wp-block-navigation-menu .block-editor-block-list__layout, .wp-block-navigation-menu { display: flex; white-space: nowrap; }
4523
 
4524
- .wp-block-navigation-menu__inserter-content { padding: 16px; }
4525
 
4526
- .wp-block-navigation-menu-item { margin-left: 8px; }
4527
 
4528
- .wp-block-navigation-menu-item .wp-block-navigation-menu-item__link { margin-left: 16px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
4529
 
4530
  /** Colors Selector component */
4531
  .block-library-colors-selector { width: auto; }
@@ -4540,7 +5354,7 @@ figure.block-library-media-text__media-container { margin: 0; height: 100%; widt
4540
 
4541
  .block-library-colors-selector .block-library-colors-selector__state-selection { border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); width: 22px; min-width: 22px; height: 22px; min-height: 22px; line-height: 20px; padding: 2px; }
4542
 
4543
- .block-library-colors-selector .block-library-colors-selector__state-selection:not(.has-background-color) { background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.08) 75%, transparent 75%, transparent 100%); background-size: 12px 12px; }
4544
 
4545
  .block-library-colors-selector__popover .color-palette-controller-container { padding: 16px; }
4546
 
@@ -4550,37 +5364,41 @@ figure.block-library-media-text__media-container { margin: 0; height: 100%; widt
4550
 
4551
  .block-editor-block-mover.is-horizontal .block-editor-block-mover__control-drag-handle { display: none; }
4552
 
4553
- .wp-block-navigation-menu-item__field .components-text-control__input.components-text-control__input, .wp-block-navigation-menu-item__container { border-radius: 0; line-height: 36px; min-height: 36px; }
 
 
 
 
4554
 
4555
- .wp-block-navigation-menu-item { margin-right: 8px; padding: 0 8px; }
4556
 
4557
- .wp-block-navigation-menu-item .block-editor-block-list__layout { display: block; margin: 8px; }
4558
 
4559
- .wp-block-navigation-menu-item .block-editor-inner-blocks { display: none; }
4560
 
4561
- .wp-block-navigation-menu-item.is-editing .block-editor-inner-blocks { display: block; }
4562
 
4563
- .wp-block-navigation-menu-item__edit-container { display: flex; white-space: nowrap; margin-left: -8px; }
4564
 
4565
- .wp-block-navigation-menu-item__edit-container .wp-block-navigation-menu-item__content { margin-right: 8px; padding: 0 8px; box-shadow: inset 0 0 0 1px #7e8993; transition: box-shadow 0.1s linear; border-radius: 4px; }
4566
 
4567
- @media (prefers-reduced-motion: reduce) { .wp-block-navigation-menu-item__edit-container .wp-block-navigation-menu-item__content { transition-duration: 0s; } }
4568
 
4569
- .wp-block-navigation-menu-item__edit-container .wp-block-navigation-menu-item__content:focus { color: #191e23; box-shadow: inset 0 0 0 2px #007cba; outline: 2px solid transparent; }
4570
 
4571
- .wp-block-navigation-menu-item.is-editing, .wp-block-navigation-menu-item.is-selected { min-width: 20px; }
4572
 
4573
- .wp-block-navigation-menu-item .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus) [data-rich-text-placeholder]::after { display: inherit; }
4574
 
4575
- .wp-block-navigation-menu-item__nofollow-external-link { display: block; }
4576
 
4577
- .wp-block-navigation-menu-item__separator { margin: 8px 0 8px; border-top: 1px solid #e2e4e7; }
4578
 
4579
- .components-popover:not(.is-mobile).wp-block-navigation-menu-item__dropdown-content { margin-top: -1px; margin-left: -4px; }
4580
 
4581
- .wp-block-navigation-menu-item__dropdown-content .components-popover__content { padding: 8px 0; }
4582
 
4583
- .wp-block-navigation-menu .block-editor-block-list__block[data-type="core/navigation-menu-item"] > .block-editor-block-list__insertion-point { display: none; }
4584
 
4585
  .block-editor-block-list__block[data-type="core/nextpage"] { max-width: 100%; margin-top: 28px; margin-bottom: 28px; }
4586
 
@@ -4596,6 +5414,8 @@ figure.block-library-media-text__media-container { margin: 0; height: 100%; widt
4596
 
4597
  .block-editor-block-list__block[data-type="core/paragraph"] p { min-height: 28px; line-height: 1.8; }
4598
 
 
 
4599
  .block-editor-block-list__block[data-type="core/pullquote"][data-align="left"] p, .block-editor-block-list__block[data-type="core/pullquote"][data-align="right"] p { font-size: 20px; }
4600
 
4601
  .wp-block-pullquote blockquote p { font-size: 28px; line-height: 1.6; }
@@ -4634,9 +5454,9 @@ figure.block-library-media-text__media-container { margin: 0; height: 100%; widt
4634
 
4635
  .wp-block-social-links.is-style-pill-shape .wp-social-link { padding-left: 16px; padding-right: 16px; }
4636
 
4637
- .wp-block-social-links div.editor-url-input { display: inline-block; margin-left: 8px; }
4638
 
4639
- .wp-block-social-links .editor-block-list__layout { display: flex; justify-content: flex-start; }
4640
 
4641
  [data-type="core/social-links"] .wp-block-social-links > .block-editor-inner-blocks > .block-editor-block-list__layout { margin-left: 0; margin-right: 0; }
4642
 
@@ -4652,7 +5472,7 @@ figure.block-library-media-text__media-container { margin: 0; height: 100%; widt
4652
 
4653
  [data-type="core/social-links"] .wp-block-social-links > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block > .block-editor-block-list__block-edit > [data-block] { margin-top: 0; margin-bottom: 0; }
4654
 
4655
- [data-type="core/social-links"] .wp-block-social-links .block-editor-block-list__insertion-point, [data-type="core/social-links"] .wp-block-social-links .block-editor-block-list__breadcrumb { display: none; }
4656
 
4657
  .wp-block-social-links .block-list-appender { margin: 0; }
4658
 
@@ -4672,6 +5492,8 @@ figure.block-library-media-text__media-container { margin: 0; height: 100%; widt
4672
 
4673
  .wp-social-link.wp-social-link__is-incomplete { opacity: 0.5; }
4674
 
 
 
4675
  .wp-block-social-links .is-selected .wp-social-link__is-incomplete, .wp-social-link.wp-social-link__is-incomplete:hover, .wp-social-link.wp-social-link__is-incomplete:focus { opacity: 1; }
4676
 
4677
  [data-type="core/social-links"] .wp-social-link:focus { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #007cba; outline: 2px solid transparent; }
@@ -4700,11 +5522,13 @@ figure.block-library-media-text__media-container { margin: 0; height: 100%; widt
4700
 
4701
  .wp-block-table td.is-selected, .wp-block-table th.is-selected { border-color: #00a0d2; box-shadow: inset 0 0 0 1px #00a0d2; border-style: double; }
4702
 
4703
- .wp-block-table__placeholder-form.wp-block-table__placeholder-form { text-align: left; align-items: center; }
4704
 
4705
- .wp-block-table__placeholder-input { width: 100px; }
4706
 
4707
- .wp-block-table__placeholder-button { min-width: 100px; justify-content: center; }
 
 
4708
 
4709
  .block-editor .wp-block-tag-cloud a { display: inline-block; margin-right: 5px; }
4710
 
@@ -4720,8 +5544,6 @@ pre.wp-block-verse { color: #191e23; white-space: nowrap; font-family: inherit;
4720
 
4721
  .editor-video-poster-control .components-button + .components-button { margin-top: 1em; }
4722
 
4723
- .wp-block-site-title__save-button { position: absolute; right: 0; top: 0; z-index: 1; }
4724
-
4725
  /** Import styles from internal editor components used by the blocks. */
4726
  .block-editor-block-list__layout .reusable-block-edit-panel { align-items: center; background: #f8f9f9; color: #555d66; display: flex; flex-wrap: wrap; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; position: relative; top: -14px; margin: 0 -14px; padding: 8px 14px; z-index: 61; border: 1px dashed rgba(145, 151, 162, 0.25); border-bottom: none; }
4727
 
@@ -4741,11 +5563,13 @@ pre.wp-block-verse { color: #191e23; white-space: nowrap; font-family: inherit;
4741
  .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title { margin: 0; }
4742
  .block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button { margin: 0 0 0 5px; } }
4743
 
4744
- .editor-block-list__layout .is-selected .reusable-block-edit-panel { border-color: rgba(66, 88, 99, 0.4); border-left-color: transparent; }
4745
 
4746
- .is-dark-theme .editor-block-list__layout .is-selected .reusable-block-edit-panel { border-color: rgba(255, 255, 255, 0.45); border-left-color: transparent; }
4747
 
4748
- .block-editor-block-list__layout .reusable-block-indicator { background: #fff; border: 1px dashed #e2e4e7; color: #555d66; top: -14px; height: 30px; padding: 4px; position: absolute; z-index: 1; width: 30px; right: -14px; }
 
 
4749
 
4750
  /** Editor Normalization Styles These are only output in the editor, but styles here are NOT prefixed .editor-styles-wrapper. This allows us to create normalization styles that are easily overridden by editor styles. */
4751
  .editor-styles-wrapper [data-block] { margin-top: 28px; margin-bottom: 28px; }
@@ -4772,13 +5596,13 @@ pre.wp-block-verse { color: #191e23; white-space: nowrap; font-family: inherit;
4772
 
4773
  .components-base-control.mailpoet-form-success-types__control .components-radio-control__option input { margin-right: 6px; }
4774
 
4775
- .button-on-top, .button-on-top.components-button.is-link { margin-bottom: 12px; }
4776
 
4777
- .mailpoet-dnd-items-list { align-content: flex-start; align-items: flex-start; display: flex; flex-direction: column; }
4778
 
4779
- .mailpoet-dnd-items-list > * { align-items: center; margin-bottom: 12px; }
4780
 
4781
- .mailpoet-form-segments-settings-list { display: flex; flex-direction: row; }
4782
 
4783
  .mailpoet-form-segments-settings-list .components-base-control { flex-grow: 1; margin: 8px 0; }
4784
 
@@ -4786,13 +5610,13 @@ pre.wp-block-verse { color: #191e23; white-space: nowrap; font-family: inherit;
4786
 
4787
  .mailpoet-form-segments-settings-list .mailpoet-form-segments-segment-remove { cursor: pointer; flex-grow: 0; margin: 8px 0; }
4788
 
4789
- .mailpoet_old_form_editor_link, #mailpoet_form_edit_old_editor_fallback_link { padding: 16px; }
4790
 
4791
- @media (min-width: 600px) { .edit-post-layout__content { overflow-y: auto; overscroll-behavior-y: none; padding-bottom: 0; } }
4792
 
4793
- .edit-post-layout__content .block-editor-block-mover__control-drag-handle { display: none; }
4794
 
4795
- .wp-block[data-type='mailpoet-form/email-input'] .components-toolbar:last-child, .wp-block[data-type='mailpoet-form/submit-button'] .components-toolbar:last-child, .is-multi-selected .components-toolbar:last-child { display: none; }
4796
 
4797
  .mailpoet_custom_select .mailpoet_select { padding: 0 24px 0 8px; }
4798
 
@@ -4801,3 +5625,9 @@ pre.wp-block-verse { color: #191e23; white-space: nowrap; font-family: inherit;
4801
  .mailpoet_custom_field_add_form { width: 100%; }
4802
 
4803
  .mailpoet_custom_field_add_form .components-base-control, .mailpoet_custom_field_add_form .custom-field-settings { text-align: left; }
 
 
 
 
 
 
1
  @charset "UTF-8";
2
  /** Colors */
3
  /** Breakpoints & Media Queries */
4
+ /** Colors */
5
  /** Often re-used variables */
6
  /** Breakpoint mixins */
7
  /** Long content fade mixin Creates a fading overlay to signify that the content is longer than the space allows. */
8
  /** Button states and focus styles */
9
  /** Applies editor left position to the selector passed as argument */
 
10
  /** Styles that are reused verbatim in a few places */
11
  /** Allows users to opt-out of animations via OS-level preferences. */
12
  /** Reset default styles for JavaScript UI based pages. This is a WP-admin agnostic reset */
13
  /** Reset the WP Admin page styles for Gutenberg-like pages. */
14
+ html { position: fixed; width: 100%; }
15
 
16
+ @media (min-width: 782px) { html { position: initial; width: initial; } }
17
 
18
+ .edit-post-editor-regions { display: flex; flex-direction: column; height: auto; max-height: 100%; position: fixed; top: 46px; left: 0; right: 0; bottom: 0; }
 
 
19
 
20
+ @media (min-width: 782px) { .edit-post-editor-regions { top: 32px; }
21
+ .is-fullscreen-mode .edit-post-editor-regions { top: 0; } }
22
 
23
+ .edit-post-editor-regions { /* Set left position when auto-fold is not on the body element. */ left: 0; }
24
 
25
+ @media (min-width: 782px) { .edit-post-editor-regions { left: 160px; } }
26
 
27
+ .auto-fold .edit-post-editor-regions { /* Auto fold is when on smaller breakpoints, nav menu auto collapses. */ }
28
 
29
+ @media (min-width: 782px) { .auto-fold .edit-post-editor-regions { left: 36px; } }
30
 
31
+ @media (min-width: 960px) { .auto-fold .edit-post-editor-regions { left: 160px; } }
32
 
33
+ /* Sidebar manually collapsed. */
34
+ .folded .edit-post-editor-regions { left: 0; }
35
 
36
+ @media (min-width: 782px) { .folded .edit-post-editor-regions { left: 36px; } }
37
 
38
+ /* Mobile menu opened. */
39
+ @media (max-width: 782px) { .auto-fold .wp-responsive-open .edit-post-editor-regions { left: 190px; } }
40
 
41
+ /* In small screens with responsive menu expanded there is small white space. */
42
+ @media (max-width: 600px) { .auto-fold .wp-responsive-open .edit-post-editor-regions { margin-left: -18px; } }
43
 
44
+ body.is-fullscreen-mode .edit-post-editor-regions { left: 0 !important; }
45
 
46
+ .edit-post-editor-regions__body { flex-grow: 1; display: flex; overflow: auto; overscroll-behavior-y: none; }
47
 
48
+ .edit-post-editor-regions__content { flex-grow: 1; display: flex; flex-direction: column; }
49
 
50
+ @media (min-width: 782px) { .edit-post-editor-regions__content { overflow: auto; } }
51
 
52
+ .edit-post-editor-regions__sidebar { width: auto; flex-shrink: 0; position: absolute; z-index: 100000; top: 0; right: 0; bottom: 0; left: 0; background: #fff; }
 
53
 
54
+ .edit-post-editor-regions__sidebar:empty { display: none; }
55
 
56
+ @media (min-width: 782px) { .edit-post-editor-regions__sidebar { overflow: auto; border-left: 1px solid #e2e4e7; position: relative !important; z-index: 90; } }
 
57
 
58
+ .edit-post-editor-regions__header { flex-shrink: 0; height: auto; border-bottom: 1px solid #e2e4e7; z-index: 30; position: -webkit-sticky; position: sticky; top: 0; }
59
+
60
+ @media (min-width: 600px) { .edit-post-editor-regions__header { position: initial; top: 0; } }
61
+
62
+ .edit-post-editor-regions__footer { height: auto; flex-shrink: 0; overflow: auto; border-top: 1px solid #e2e4e7; display: none; }
63
+
64
+ @media (min-width: 782px) { .edit-post-editor-regions__footer { display: block; } }
65
+
66
+ .edit-post-editor-regions__publish { z-index: 100000; position: fixed !important; top: -9999em; bottom: auto; left: auto; right: 0; width: 280px; }
67
+
68
+ .edit-post-editor-regions__publish:focus { top: auto; bottom: 0; }
69
+
70
+ @media (min-width: 782px) { body.js.is-fullscreen-mode { margin-top: -46px; height: calc(100% + 46px); } }
71
+
72
+ @media (min-width: 782px) and (min-width: 782px) { body.js.is-fullscreen-mode { margin-top: -32px; height: calc(100% + 32px); } }
73
+
74
+ @media (min-width: 782px) { body.js.is-fullscreen-mode #adminmenumain, body.js.is-fullscreen-mode #wpadminbar { display: none; }
75
+ body.js.is-fullscreen-mode #wpcontent, body.js.is-fullscreen-mode #wpfooter { margin-left: 0; }
76
+ body.js.is-fullscreen-mode .edit-post-header { transform: translateY(-100%); -webkit-animation: edit-post-fullscreen-mode__slide-in-animation 0.1s forwards; animation: edit-post-fullscreen-mode__slide-in-animation 0.1s forwards; } }
77
+
78
+ @media (min-width: 782px) and (prefers-reduced-motion: reduce) { body.js.is-fullscreen-mode .edit-post-header { -webkit-animation-duration: 1ms; animation-duration: 1ms; } }
79
 
80
+ @-webkit-keyframes edit-post-fullscreen-mode__slide-in-animation { 100% { transform: translateY(0%); } }
81
+
82
+ @keyframes edit-post-fullscreen-mode__slide-in-animation { 100% { transform: translateY(0%); } }
83
+
84
+ .edit-post-header { height: 56px; padding: 4px 2px; background: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; max-width: 100vw; }
85
+
86
+ @media (min-width: 280px) { .edit-post-header { flex-wrap: nowrap; } }
87
+
88
+ @media (min-width: 600px) { .edit-post-header { padding: 8px; } }
89
+
90
+ .edit-post-header > .edit-post-header__settings { order: 1; }
91
+
92
+ @supports ((position: -webkit-sticky) or (position: sticky)) { .edit-post-header > .edit-post-header__settings { order: initial; } }
93
 
94
  .edit-post-header__toolbar { display: flex; }
95
 
96
  .edit-post-header__settings { display: inline-flex; align-items: center; flex-wrap: wrap; }
97
 
98
+ .edit-post-header .components-button.is-pressed { color: #fff; background: #555d66; }
99
 
100
+ .edit-post-header .components-button.is-pressed:hover, .edit-post-header .components-button.is-pressed:focus { box-shadow: 0 0 0 1px #555d66, inset 0 0 0 1px #fff !important; color: #fff !important; background: #555d66 !important; }
101
 
102
+ .edit-post-header .components-button.editor-post-save-draft, .edit-post-header .components-button.editor-post-switch-to-draft, .edit-post-header .components-button.editor-post-preview, .edit-post-header .components-button.editor-post-publish-button, .edit-post-header .components-button.editor-post-publish-panel__toggle { margin: 2px; font-size: 13px; }
103
 
104
  .edit-post-header .components-button.editor-post-save-draft, .edit-post-header .components-button.editor-post-switch-to-draft { padding: 0 5px; }
105
 
126
 
127
  @media (min-width: 600px) { .edit-post-header-toolbar .block-editor-block-navigation, .edit-post-header-toolbar .table-of-contents { display: flex; } }
128
 
129
+ .edit-post-header-toolbar__block-toolbar { position: absolute; top: 57px; left: 0; right: 0; background: #fff; min-height: 37px; border-bottom: 1px solid #e2e4e7; }
130
+
131
+ .edit-post-header-toolbar__block-toolbar:empty { display: none; }
132
 
133
  .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar { border-top: none; border-bottom: none; }
134
 
143
 
144
  .edit-post-more-menu { margin-left: -4px; }
145
 
146
+ .edit-post-more-menu .components-button { width: auto; padding: 8px 2px; }
147
 
148
  @media (min-width: 600px) { .edit-post-more-menu { margin-left: 4px; }
149
+ .edit-post-more-menu .components-button { padding: 8px 4px; } }
150
 
151
  .edit-post-more-menu .components-button svg { transform: rotate(90deg); }
152
 
162
 
163
  @media (min-width: 600px) { .edit-post-pinned-plugins { display: flex; } }
164
 
165
+ .edit-post-pinned-plugins .components-button { margin-left: 4px; }
166
 
167
+ .edit-post-pinned-plugins .components-button.is-pressed { margin-left: 5px; }
168
 
169
+ .edit-post-pinned-plugins .components-button svg { max-width: 24px; max-height: 24px; }
170
 
171
+ .edit-post-pinned-plugins .components-button:not(.is-pressed) svg, .edit-post-pinned-plugins .components-button:not(.is-pressed) svg * { stroke: #555d66; fill: #555d66; stroke-width: 0; }
172
 
173
+ .edit-post-pinned-plugins .components-button.is-pressed svg, .edit-post-pinned-plugins .components-button.is-pressed svg *, .edit-post-pinned-plugins .components-button.is-pressed:hover svg, .edit-post-pinned-plugins .components-button.is-pressed:hover svg * { stroke: #fff !important; fill: #fff !important; stroke-width: 0; }
174
 
175
+ .edit-post-pinned-plugins .components-button:hover svg, .edit-post-pinned-plugins .components-button:hover svg * { stroke: #191e23 !important; fill: #191e23 !important; stroke-width: 0; }
176
 
177
+ .edit-post-keyboard-shortcut-help-modal__section { margin: 0 0 2rem 0; }
178
 
179
+ .edit-post-keyboard-shortcut-help-modal__main-shortcuts .edit-post-keyboard-shortcut-help-modal__shortcut-list { margin-top: -25px; }
180
 
181
+ .edit-post-keyboard-shortcut-help-modal__section-title { font-size: 0.9rem; font-weight: 600; }
182
 
183
+ .edit-post-keyboard-shortcut-help-modal__shortcut { display: flex; align-items: baseline; padding: 0.6rem 0; border-top: 1px solid #e2e4e7; margin-bottom: 0; }
184
 
185
+ .edit-post-keyboard-shortcut-help-modal__shortcut:last-child { border-bottom: 1px solid #e2e4e7; }
186
 
187
+ .edit-post-keyboard-shortcut-help-modal__shortcut:empty { display: none; }
188
 
189
+ .edit-post-keyboard-shortcut-help-modal__shortcut-term { font-weight: 600; margin: 0 0 0 1rem; text-align: right; }
190
 
191
+ .edit-post-keyboard-shortcut-help-modal__shortcut-description { flex: 1; margin: 0; flex-basis: auto; }
192
 
193
+ .edit-post-keyboard-shortcut-help-modal__shortcut-key-combination { display: block; background: none; margin: 0; padding: 0; }
194
 
195
+ .edit-post-keyboard-shortcut-help-modal__shortcut-key-combination + .edit-post-keyboard-shortcut-help-modal__shortcut-key-combination { margin-top: 10px; }
196
 
197
+ .edit-post-keyboard-shortcut-help-modal__shortcut-key { padding: 0.25rem 0.5rem; border-radius: 8%; margin: 0 0.2rem 0 0.2rem; }
198
 
199
+ .edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child { margin: 0 0 0 0.2rem; }
200
 
201
+ .edit-post-layout__metaboxes { flex-shrink: 0; }
202
 
203
+ .edit-post-layout__metaboxes:not(:empty) { border-top: 1px solid #e2e4e7; padding: 10px 0 10px; clear: both; }
204
 
205
  .edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area { margin: auto 20px; }
206
 
207
+ .edit-post-layout .components-editor-notices__snackbar { position: fixed; right: 0; bottom: 20px; padding-left: 16px; padding-right: 16px; }
208
 
209
+ .edit-post-layout .components-editor-notices__snackbar { /* Set left position when auto-fold is not on the body element. */ left: 0; }
210
 
211
+ @media (min-width: 782px) { .edit-post-layout .components-editor-notices__snackbar { left: 160px; } }
212
 
213
+ .auto-fold .edit-post-layout .components-editor-notices__snackbar { /* Auto fold is when on smaller breakpoints, nav menu auto collapses. */ }
214
 
215
+ @media (min-width: 782px) { .auto-fold .edit-post-layout .components-editor-notices__snackbar { left: 36px; } }
216
 
217
+ @media (min-width: 960px) { .auto-fold .edit-post-layout .components-editor-notices__snackbar { left: 160px; } }
218
 
219
  /* Sidebar manually collapsed. */
220
+ .folded .edit-post-layout .components-editor-notices__snackbar { left: 0; }
221
 
222
+ @media (min-width: 782px) { .folded .edit-post-layout .components-editor-notices__snackbar { left: 36px; } }
223
 
224
  /* Mobile menu opened. */
225
+ @media (max-width: 782px) { .auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar { left: 190px; } }
226
 
227
  /* In small screens with responsive menu expanded there is small white space. */
228
+ @media (max-width: 600px) { .auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar { margin-left: -18px; } }
 
 
 
 
 
 
 
 
 
 
 
 
 
229
 
230
+ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { left: 0 !important; }
 
 
 
 
 
 
 
 
231
 
232
  .edit-post-layout .editor-post-publish-panel { position: fixed; z-index: 100001; top: 46px; bottom: 0; right: 0; left: 0; overflow: auto; }
233
 
242
 
243
  @keyframes edit-post-post-publish-panel__slide-in-animation { 100% { transform: translateX(0%); } }
244
 
245
+ .edit-post-layout .editor-post-publish-panel__header-publish-button { justify-content: center; }
246
 
247
+ .edit-post-toggle-publish-panel { background-color: #fff; padding: 10px 10px 10px 0; }
 
 
 
 
248
 
249
  .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button { width: auto; height: auto; display: block; font-size: 14px; font-weight: 600; margin: 0 0 0 auto; padding: 15px 23px 14px; line-height: normal; text-decoration: none; outline: none; background: #f1f1f1; color: #11a0d2; }
250
 
266
 
267
  .edit-post-layout__footer { display: none; z-index: 30; }
268
 
269
+ @media (min-width: 782px) { .edit-post-layout__footer { display: flex; background: #fff; height: 24px; padding: 0 8px; align-items: center; font-size: 13px; } }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
270
 
271
  @media (min-width: 600px) { .edit-post-manage-blocks-modal { height: calc(100% - 56px - 56px); } }
272
 
310
 
311
  .edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label { display: flex; align-items: center; justify-content: space-between; flex-grow: 1; padding: 0.6rem 0 0.6rem 10px; }
312
 
313
+ .edit-post-manage-blocks-modal__checklist-item .block-editor-block-icon { margin-right: 10px; fill: #555d66; }
314
 
315
  .edit-post-manage-blocks-modal__results { height: 100%; overflow: auto; margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; border-top: 1px solid #e2e4e7; }
316
 
344
 
345
  .edit-post-meta-boxes-area__clear { clear: both; }
346
 
347
+ .edit-post-sidebar { background: #fff; color: #555d66; overflow: visible; }
348
 
349
+ @media (min-width: 600px) { .edit-post-sidebar { z-index: auto; height: 100%; overflow: visible; -webkit-overflow-scrolling: touch; } }
350
 
351
+ @media (min-width: 782px) { .edit-post-sidebar { width: 280px; } }
 
 
352
 
353
+ .edit-post-sidebar > .components-panel { border-left: none; border-right: none; overflow: auto; -webkit-overflow-scrolling: touch; height: auto; max-height: calc(100vh - 96px); margin-top: -1px; margin-bottom: -1px; position: relative; }
354
 
355
+ @media (min-width: 600px) { .edit-post-sidebar > .components-panel { overflow: visible; height: auto; max-height: none; } }
356
 
357
  .edit-post-sidebar > .components-panel .components-panel__header { position: fixed; z-index: 1; top: 0; left: 0; right: 0; height: 50px; }
358
 
372
 
373
  .edit-post-sidebar .block-editor-skip-to-selected-block:focus { top: auto; right: 10px; bottom: 10px; left: auto; }
374
 
 
 
 
 
 
 
 
375
  /* Text Editor specific */
376
  .components-panel__header.edit-post-sidebar__header { background: #fff; padding-right: 8px; }
377
 
381
 
382
  .components-panel__header.edit-post-sidebar__panel-tabs { justify-content: flex-start; padding-left: 0; padding-right: 4px; border-top: 0; margin-top: 0; }
383
 
384
+ .components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon { display: none; margin-left: auto; }
385
 
386
+ @media (min-width: 782px) { .components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon { display: flex; } }
387
 
388
+ .edit-post-sidebar__panel-tab { background: transparent; border: none; border-radius: 0; box-shadow: none; cursor: pointer; height: 50px; padding: 3px 15px; margin-left: 0; font-weight: 400; outline-offset: -1px; transition: box-shadow 0.1s linear; }
389
 
390
  @media (prefers-reduced-motion: reduce) { .edit-post-sidebar__panel-tab { transition-duration: 0s; } }
391
 
407
 
408
  .edit-post-sidebar__panel-tab.is-active::before { content: ""; position: absolute; top: 0; bottom: 1px; right: 0; left: 0; border-bottom: 3px solid transparent; }
409
 
410
+ .edit-post-sidebar__panel-tab:focus:not(:disabled) { color: #191e23; outline-offset: -1px; outline: 1px dotted #555d66; box-shadow: none; }
411
 
412
  .components-panel__body.is-opened.edit-post-last-revision__panel { padding: 0; }
413
 
431
 
432
  .components-button.edit-post-post-schedule__toggle { text-align: right; }
433
 
 
 
 
 
434
  .editor-post-slug__input { margin: -5px 0; padding: 2px; }
435
 
436
  .edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft { margin-top: 15px; width: 100%; text-align: center; }
451
 
452
  .edit-post-post-visibility__dialog-info { color: #7e8993; padding-left: 20px; font-style: italic; margin: 4px 0 0; line-height: 1.4; }
453
 
454
+ .components-panel__header.edit-post-sidebar__panel-tabs { justify-content: flex-start; padding-left: 0; padding-right: 4px; border-top: 0; }
455
 
456
  .components-panel__header.edit-post-sidebar__panel-tabs ul { display: flex; }
457
 
458
  .components-panel__header.edit-post-sidebar__panel-tabs li { margin: 0; }
459
 
460
+ .components-button.edit-post-sidebar__panel-tab { background: transparent; border: none; box-shadow: none; cursor: pointer; display: inline-block; padding: 3px 15px; margin-left: 0; font-weight: 400; color: #191e23; outline-offset: -1px; transition: box-shadow 0.1s linear; }
461
 
462
+ @media (prefers-reduced-motion: reduce) { .components-button.edit-post-sidebar__panel-tab { transition-duration: 0s; } }
463
 
464
+ .components-button.edit-post-sidebar__panel-tab::after { content: attr(data-label); display: block; font-weight: 600; height: 0; overflow: hidden; speak: none; visibility: hidden; }
465
 
466
+ .components-button.edit-post-sidebar__panel-tab.is-active { box-shadow: inset 0 -3px #007cba; font-weight: 600; position: relative; }
467
 
468
+ body.admin-color-sunrise .components-button.edit-post-sidebar__panel-tab.is-active { box-shadow: inset 0 -3px #837425; }
469
 
470
+ body.admin-color-ocean .components-button.edit-post-sidebar__panel-tab.is-active { box-shadow: inset 0 -3px #5e7d5e; }
471
 
472
+ body.admin-color-midnight .components-button.edit-post-sidebar__panel-tab.is-active { box-shadow: inset 0 -3px #497b8d; }
473
 
474
+ body.admin-color-ectoplasm .components-button.edit-post-sidebar__panel-tab.is-active { box-shadow: inset 0 -3px #523f6d; }
475
 
476
+ body.admin-color-coffee .components-button.edit-post-sidebar__panel-tab.is-active { box-shadow: inset 0 -3px #59524c; }
477
 
478
+ body.admin-color-blue .components-button.edit-post-sidebar__panel-tab.is-active { box-shadow: inset 0 -3px #417e9B; }
479
 
480
+ body.admin-color-light .components-button.edit-post-sidebar__panel-tab.is-active { box-shadow: inset 0 -3px #007cba; }
481
 
482
+ .components-button.edit-post-sidebar__panel-tab.is-active::before { content: ""; position: absolute; top: 0; bottom: 1px; right: 0; left: 0; border-bottom: 3px solid transparent; }
483
 
484
+ .components-button.edit-post-sidebar__panel-tab:focus { background-color: transparent; color: #191e23; outline-offset: -1px; outline: 1px dotted #555d66; }
485
 
486
  /* Text Editor specific */
487
  .components-panel__header.edit-post-sidebar-header__small { background: #fff; padding-right: 4px; }
492
 
493
  .components-panel__header.edit-post-sidebar-header { padding-right: 4px; background: #f3f4f5; }
494
 
495
+ .components-panel__header.edit-post-sidebar-header .components-button.has-icon { display: none; margin-left: auto; }
496
 
497
+ .components-panel__header.edit-post-sidebar-header .components-button.has-icon ~ .components-button { margin-left: 0; }
498
 
499
+ @media (min-width: 782px) { .components-panel__header.edit-post-sidebar-header .components-button.has-icon { display: flex; } }
500
 
501
+ .edit-post-text-editor { position: relative; width: 100%; padding-top: 44px; }
502
 
503
  .edit-post-text-editor .editor-post-title__block textarea { border: 1px solid #e2e4e7; margin-bottom: 4px; padding: 14px; }
504
 
516
 
517
  .edit-post-text-editor__toolbar h2 { margin: 0 auto 0 0; font-size: 13px; color: #555d66; }
518
 
519
+ .edit-post-text-editor__toolbar .components-button svg { order: 1; }
520
 
521
  .edit-post-text-editor__body { max-width: calc(100% - 32px); margin-left: 16px; margin-right: 16px; padding-top: 40px; }
522
 
523
  @media (min-width: 600px) { .edit-post-text-editor__body { max-width: 580px; margin-left: auto; margin-right: auto; } }
524
 
525
+ .edit-post-visual-editor { position: relative; padding-top: 50px; flex: 1 1 auto; }
526
 
527
  .edit-post-visual-editor .components-button { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
528
 
529
+ @supports ((position: -webkit-sticky) or (position: sticky)) { .edit-post-visual-editor { flex-basis: 100%; } }
530
+
531
+ .edit-post-visual-editor > .block-editor__typewriter, .edit-post-visual-editor > .block-editor__typewriter > .block-editor-writing-flow, .edit-post-visual-editor > .block-editor__typewriter > .block-editor-writing-flow > .block-editor-writing-flow__click-redirect { height: 100%; }
532
+
533
+ .edit-post-visual-editor .block-editor-writing-flow__click-redirect { min-height: 50vh; width: 100%; }
534
 
535
  .has-metaboxes .edit-post-visual-editor .block-editor-writing-flow__click-redirect { height: 0; }
536
 
570
 
571
  @media (min-width: 600px) { .edit-post-options-modal__custom-fields-confirmation-message, .edit-post-options-modal__custom-fields-confirmation-button { max-width: 300px; } }
572
 
573
+ .edit-post-welcome-guide__page { display: flex; flex-direction: column; justify-content: center; position: relative; }
574
+
575
+ @media (min-width: 600px) { .edit-post-welcome-guide__page { min-height: 300px; padding-left: 344px; } }
576
+
577
+ .edit-post-welcome-guide__heading { font-family: "Noto Serif", serif; font-size: 21px; line-height: 1.4; margin: 8px 0; }
578
+
579
+ .edit-post-welcome-guide__image { background: #66c6e4; border-radius: 4px; height: 200px; margin: 8px 0; }
580
+
581
+ @media (min-width: 600px) { .edit-post-welcome-guide__image { position: absolute; left: 0; top: 50%; height: 300px; width: 320px; margin-top: -150px; } }
582
+
583
+ .edit-post-welcome-guide__text { font-size: 16px; line-height: 1.4; margin: 8px 0; }
584
+
585
+ .edit-post-welcome-guide__inserter-icon { margin: 0 4px; position: relative; top: 4px; }
586
+
587
+ @media (min-width: 600px) { .edit-post-welcome-guide { width: 600px; } }
588
+
589
  /** Animations */
590
  @-webkit-keyframes edit-post__fade-in-animation { from { opacity: 0; }
591
  to { opacity: 1; } }
715
 
716
  /** Colors */
717
  /** Breakpoints & Media Queries */
718
+ /** Colors */
719
  /** Often re-used variables */
720
  /** Breakpoint mixins */
721
  /** Long content fade mixin Creates a fading overlay to signify that the content is longer than the space allows. */
722
  /** Button states and focus styles */
723
  /** Applies editor left position to the selector passed as argument */
 
724
  /** Styles that are reused verbatim in a few places */
725
  /** Allows users to opt-out of animations via OS-level preferences. */
726
  /** Reset default styles for JavaScript UI based pages. This is a WP-admin agnostic reset */
727
  /** Reset the WP Admin page styles for Gutenberg-like pages. */
728
+ .editor-autocompleters__block .block-editor-block-icon { margin-right: 8px; }
729
 
730
  .editor-autocompleters__user .editor-autocompleters__user-avatar { margin-right: 8px; flex-grow: 0; flex-shrink: 0; max-width: none; width: 24px; height: 24px; }
731
 
773
 
774
  .components-editor-notices__pinned { position: relative; left: 0; top: 0; right: 0; color: #191e23; }
775
 
776
+ .components-editor-notices__dismissible .components-notice, .components-editor-notices__pinned .components-notice { box-sizing: border-box; margin: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.2); padding: 6px 12px; min-height: 60px; }
777
 
778
  .components-editor-notices__dismissible .components-notice .components-notice__dismiss, .components-editor-notices__pinned .components-notice .components-notice__dismiss { margin: 6px -5px 6px 5px; }
779
 
780
  .components-editor-notices__snackbar { width: 100%; }
781
 
782
+ .editor-entities-saved-states__save-button { display: block; margin-left: auto; margin-right: 0; }
783
+
784
  .editor-error-boundary { margin: auto; max-width: 780px; padding: 20px; margin-top: 60px; box-shadow: 0 3px 30px rgba(25, 30, 35, 0.2); }
785
 
786
  .editor-page-attributes__template { margin-bottom: 10px; }
797
 
798
  .editor-post-featured-image { padding: 0; }
799
 
800
+ .editor-post-featured-image__container { margin-bottom: 1em; position: relative; }
801
+
802
+ .editor-post-featured-image .components-spinner { position: absolute; top: 50%; left: 50%; margin-top: -9px; margin-left: -9px; }
803
 
804
  .editor-post-featured-image .components-button + .components-button { display: block; margin-top: 1em; }
805
 
811
 
812
  .editor-post-featured-image__preview:not(:disabled):not([aria-disabled="true"]):focus { box-shadow: 0 0 0 4px #00a0d2; }
813
 
814
+ .editor-post-featured-image__toggle { border: 1px dashed #a2aab2; background-color: #edeff0; min-height: 90px; line-height: 20px; padding: 8px 0; text-align: center; }
815
 
816
  .editor-post-featured-image__toggle:hover { background-color: #f8f9f9; }
817
 
825
 
826
  .editor-post-last-revision__title .dashicon { margin-right: 5px; }
827
 
828
+ .components-button:not(:disabled):not([aria-disabled="true"]).editor-post-last-revision__title { height: auto; }
829
+
830
+ .components-button:not(:disabled):not([aria-disabled="true"]).editor-post-last-revision__title:hover, .components-button:not(:disabled):not([aria-disabled="true"]).editor-post-last-revision__title:active { background: #f3f4f5 !important; border: none !important; box-shadow: none !important; }
831
 
832
+ .components-button:not(:disabled):not([aria-disabled="true"]).editor-post-last-revision__title:focus { color: #191e23; border: none; box-shadow: none; outline-offset: -2px; outline: 1px dotted #555d66; }
833
 
834
  .editor-post-locked-modal { height: auto; padding-right: 10px; padding-left: 10px; padding-top: 10px; max-width: 480px; }
835
 
893
  .editor-post-permalink__link::after { content: ""; display: block; position: absolute; -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; pointer-events: none; background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 90%); top: 0; bottom: 0; right: 0; left: auto; width: 20%; height: auto; }
894
 
895
  /* rtl:end:ignore */
896
+ .editor-post-publish-button__button.has-changes-dot::before { background: currentcolor; border-radius: 4px; content: ""; height: 8px; margin: auto 5px auto -3px; width: 8px; }
897
+
898
  .editor-post-publish-panel { background: #fff; }
899
 
900
  .editor-post-publish-panel__content { min-height: calc(100% - 140px); }
901
 
902
  .editor-post-publish-panel__content .components-spinner { display: block; float: none; margin: 100px auto 0; }
903
 
904
+ .editor-post-publish-panel__header { background: #fff; padding-left: 8px; padding-right: 8px; height: 56px; border-bottom: 1px solid #e2e4e7; display: flex; align-items: center; align-content: space-between; }
905
+
906
+ .editor-post-publish-panel__header .components-button.has-icon { position: absolute; right: 8px; }
907
 
908
  .editor-post-publish-panel__header-publish-button { display: flex; justify-content: flex-end; flex-grow: 1; text-align: right; flex-wrap: nowrap; }
909
 
927
 
928
  .editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend { display: none; }
929
 
930
+ .editor-post-publish-panel__prepublish .components-datetime { padding: 0; }
931
+
932
  .post-publish-panel__postpublish .components-panel__body { border-bottom: 1px solid #e2e4e7; border-top: none; }
933
 
934
  .post-publish-panel__postpublish-buttons { display: flex; align-content: space-between; flex-wrap: wrap; margin: -5px; }
1047
  @media (min-width: 600px) { .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { box-shadow: -3px 0 0 0 #555d66; }
1048
  .is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { box-shadow: -3px 0 0 0 #d7dade; } }
1049
 
 
 
 
 
1050
  .editor-post-title__block.is-focus-mode .editor-post-title__input { opacity: 0.5; transition: opacity 0.1s linear; }
1051
 
1052
  @media (prefers-reduced-motion: reduce) { .editor-post-title__block.is-focus-mode .editor-post-title__input { transition-duration: 0s; } }
1059
 
1060
  @media (min-width: 600px) { .editor-post-title .editor-post-permalink { left: 2px; right: 2px; } }
1061
 
1062
+ .editor-post-trash.components-button { color: #b52727; border-color: #b52727; justify-content: center; }
1063
 
1064
  .editor-post-trash.components-button:hover, .editor-post-trash.components-button:focus { color: #a02222; border-color: #a02222; }
1065
 
1066
+ .table-of-contents__popover.components-popover .components-popover__content { min-width: 380px; }
1067
 
1068
  .components-popover.table-of-contents__popover { z-index: 99998; }
1069
 
1091
 
1092
  /** Colors */
1093
  /** Breakpoints & Media Queries */
1094
+ /** Colors */
1095
  /** Often re-used variables */
1096
  /** Breakpoint mixins */
1097
  /** Long content fade mixin Creates a fading overlay to signify that the content is longer than the space allows. */
1098
  /** Button states and focus styles */
1099
  /** Applies editor left position to the selector passed as argument */
 
1100
  /** Styles that are reused verbatim in a few places */
1101
  /** Allows users to opt-out of animations via OS-level preferences. */
1102
  /** Reset default styles for JavaScript UI based pages. This is a WP-admin agnostic reset */
1165
 
1166
  .components-button-group { display: inline-block; }
1167
 
1168
+ .components-button-group .components-button { border-radius: 0; display: inline-flex; }
1169
 
1170
+ .components-button-group .components-button + .components-button { margin-left: -1px; }
1171
 
1172
+ .components-button-group .components-button:first-child { border-radius: 3px 0 0 3px; }
1173
 
1174
+ .components-button-group .components-button:last-child { border-radius: 0 3px 3px 0; }
1175
 
1176
+ .components-button-group .components-button:focus, .components-button-group .components-button.is-primary { position: relative; z-index: 1; }
1177
 
1178
+ .components-button-group .components-button.is-primary { box-shadow: none; }
1179
 
1180
+ .components-button { display: inline-flex; text-decoration: none; font-size: 13px; margin: 0; border: 0; cursor: pointer; -webkit-appearance: none; background: none; transition: box-shadow 0.1s linear; height: 36px; align-items: center; box-sizing: border-box; padding: 0 8px; overflow: hidden; border-radius: 3px; color: #555d66; /* Buttons that look like links, for a cross of good semantics with the visual */ /* Link buttons that are red to indicate destructive behavior. */ }
1181
 
1182
  @media (prefers-reduced-motion: reduce) { .components-button { transition-duration: 0s; } }
1183
 
1184
+ .components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):hover { background-color: #fff; color: #191e23; box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; }
1185
 
1186
+ .components-button.is-secondary { border-width: 1px; border-style: solid; white-space: nowrap; color: #0075af; border-color: #0075af; background: #f3f5f6; }
1187
 
1188
+ body.admin-color-sunrise .components-button.is-secondary { color: #c47e46; border-color: #c47e46; }
1189
 
1190
+ body.admin-color-ocean .components-button.is-secondary { color: #99ae98; border-color: #99ae98; }
1191
 
1192
+ body.admin-color-midnight .components-button.is-secondary { color: #d4483f; border-color: #d4483f; }
1193
 
1194
+ body.admin-color-ectoplasm .components-button.is-secondary { color: #9dab51; border-color: #9dab51; }
1195
 
1196
+ body.admin-color-coffee .components-button.is-secondary { color: #b69c84; border-color: #b69c84; }
1197
 
1198
+ body.admin-color-blue .components-button.is-secondary { color: #cca154; border-color: #cca154; }
1199
 
1200
+ body.admin-color-light .components-button.is-secondary { color: #007daf; border-color: #007daf; }
1201
 
1202
+ .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { background: #f1f1f1; border-color: #005d8c; color: #005d8c; text-decoration: none; }
1203
 
1204
+ body.admin-color-sunrise .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { border-color: #9d6538; color: #9d6538; }
1205
 
1206
+ body.admin-color-ocean .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { border-color: #7a8b7a; color: #7a8b7a; }
1207
 
1208
+ body.admin-color-midnight .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { border-color: #a93a32; color: #a93a32; }
1209
 
1210
+ body.admin-color-ectoplasm .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { border-color: #7d8941; color: #7d8941; }
1211
 
1212
+ body.admin-color-coffee .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { border-color: #927d69; color: #927d69; }
1213
 
1214
+ body.admin-color-blue .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { border-color: #a38043; color: #a38043; }
1215
 
1216
+ body.admin-color-light .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { border-color: #00648c; color: #00648c; }
1217
 
1218
+ .components-button.is-secondary:focus:enabled { background: #f3f5f6; color: #005d8c; border-color: #0076b1; box-shadow: 0 0 0 1px #0076b1; text-decoration: none; }
1219
 
1220
+ body.admin-color-sunrise .components-button.is-secondary:focus:enabled { color: #9d6538; border-color: #c77f46; box-shadow: 0 0 0 1px #c77f46; }
1221
 
1222
+ body.admin-color-ocean .components-button.is-secondary:focus:enabled { color: #7a8b7a; border-color: #9bb09a; box-shadow: 0 0 0 1px #9bb09a; }
1223
 
1224
+ body.admin-color-midnight .components-button.is-secondary:focus:enabled { color: #a93a32; border-color: #d64940; box-shadow: 0 0 0 1px #d64940; }
1225
 
1226
+ body.admin-color-ectoplasm .components-button.is-secondary:focus:enabled { color: #7d8941; border-color: #9fad52; box-shadow: 0 0 0 1px #9fad52; }
1227
 
1228
+ body.admin-color-coffee .components-button.is-secondary:focus:enabled { color: #927d69; border-color: #b89e85; box-shadow: 0 0 0 1px #b89e85; }
1229
 
1230
+ body.admin-color-blue .components-button.is-secondary:focus:enabled { color: #a38043; border-color: #cea255; box-shadow: 0 0 0 1px #cea255; }
1231
 
1232
+ body.admin-color-light .components-button.is-secondary:focus:enabled { color: #00648c; border-color: #007eb1; box-shadow: 0 0 0 1px #007eb1; }
1233
 
1234
+ .components-button.is-secondary:active:enabled { background: #f3f5f6; color: #0076b1; border-color: #7e8993; box-shadow: none; }
1235
 
1236
+ body.admin-color-sunrise .components-button.is-secondary:active:enabled { color: #c77f46; }
1237
 
1238
+ body.admin-color-ocean .components-button.is-secondary:active:enabled { color: #9bb09a; }
1239
 
1240
+ body.admin-color-midnight .components-button.is-secondary:active:enabled { color: #d64940; }
1241
 
1242
+ body.admin-color-ectoplasm .components-button.is-secondary:active:enabled { color: #9fad52; }
1243
 
1244
+ body.admin-color-coffee .components-button.is-secondary:active:enabled { color: #b89e85; }
1245
 
1246
+ body.admin-color-blue .components-button.is-secondary:active:enabled { color: #cea255; }
1247
 
1248
+ body.admin-color-light .components-button.is-secondary:active:enabled { color: #007eb1; }
1249
 
1250
+ .components-button.is-secondary:disabled, .components-button.is-secondary[aria-disabled="true"] { color: #a0a5aa; border-color: #ddd; background: #f7f7f7; text-shadow: 0 1px 0 #fff; transform: none; opacity: 1; }
1251
 
1252
+ .components-button.is-primary { border-width: 1px; border-style: solid; white-space: nowrap; background: #007cba; border-color: #007cba; color: #fff; text-decoration: none; text-shadow: none; }
1253
 
1254
  body.admin-color-sunrise .components-button.is-primary { background: #d1864a; border-color: #d1864a; }
1255
 
1265
 
1266
  body.admin-color-light .components-button.is-primary { background: #0085ba; border-color: #0085ba; }
1267
 
1268
+ .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, .components-button.is-primary:focus:enabled { background: #0070a7; border-color: #0070a7; color: #fff; }
1269
 
1270
+ body.admin-color-sunrise .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-sunrise .components-button.is-primary:focus:enabled { background: #bc7943; border-color: #bc7943; }
1271
 
1272
+ body.admin-color-ocean .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-ocean .components-button.is-primary:focus:enabled { background: #93a792; border-color: #93a792; }
1273
 
1274
+ body.admin-color-midnight .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-midnight .components-button.is-primary:focus:enabled { background: #cb453c; border-color: #cb453c; }
1275
 
1276
+ body.admin-color-ectoplasm .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-ectoplasm .components-button.is-primary:focus:enabled { background: #96a44d; border-color: #96a44d; }
1277
 
1278
+ body.admin-color-coffee .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-coffee .components-button.is-primary:focus:enabled { background: #af957e; border-color: #af957e; }
1279
 
1280
+ body.admin-color-blue .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-blue .components-button.is-primary:focus:enabled { background: #c39a50; border-color: #c39a50; }
1281
 
1282
+ body.admin-color-light .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-light .components-button.is-primary:focus:enabled { background: #0078a7; border-color: #0078a7; }
1283
 
1284
  .components-button.is-primary:focus:enabled { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; }
1285
 
1329
 
1330
  body.admin-color-light .components-button.is-primary:disabled, body.admin-color-light .components-button.is-primary:disabled:active:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"], body.admin-color-light .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:active:enabled { color: #66b6d6; background: #1991c1; border-color: #1991c1; }
1331
 
 
 
1332
  .components-button.is-primary:disabled:focus:enabled, .components-button.is-primary:disabled:active:enabled:focus:enabled, .components-button.is-primary[aria-disabled="true"]:focus:enabled, .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; }
1333
 
1334
  body.admin-color-sunrise .components-button.is-primary:disabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #d1864a; }
1361
 
1362
  body.admin-color-light .components-button.is-primary.is-busy, body.admin-color-light .components-button.is-primary.is-busy:disabled, body.admin-color-light .components-button.is-primary.is-busy[aria-disabled="true"] { background-image: linear-gradient(-45deg, #0085ba 28%, #006a95 28%, #006a95 72%, #0085ba 72%); border-color: #0085ba; }
1363
 
1364
+ .components-button.is-link { margin: 0; padding: 0; box-shadow: none; border: 0; border-radius: 0; background: none; outline: none; text-align: left; /* Mimics the default link style in common.css */ color: #0073aa; text-decoration: underline; transition-property: border, background, color; transition-duration: 0.05s; transition-timing-function: ease-in-out; height: auto; }
1365
 
1366
  @media (prefers-reduced-motion: reduce) { .components-button.is-link { transition-duration: 0s; } }
1367
 
1368
+ .components-button.is-link:not(:disabled):not([aria-disabled="true"]):hover, .components-button.is-link:active { color: #00a0d2; }
1369
 
1370
  .components-button.is-link:focus { color: #124964; box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); }
1371
 
1377
 
1378
  .components-button:focus:not(:disabled) { background-color: #fff; color: #191e23; box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; outline: 2px solid transparent; }
1379
 
1380
+ .components-button.is-busy, .components-button.is-secondary.is-busy, .components-button.is-secondary.is-busy:disabled, .components-button.is-secondary.is-busy[aria-disabled="true"] { -webkit-animation: components-button__busy-animation 2500ms infinite linear; animation: components-button__busy-animation 2500ms infinite linear; background-size: 100px 100%; background-image: repeating-linear-gradient(-45deg, #e2e4e7, #fff 11px, #fff 10px, #e2e4e7 20px); opacity: 1; }
 
 
1381
 
1382
+ .components-button.is-small { height: 24px; line-height: 22px; padding: 0 8px; font-size: 11px; }
1383
 
1384
+ .components-button.is-tertiary { color: #007cba; }
1385
 
1386
  body.admin-color-sunrise .components-button.is-tertiary { color: #837425; }
1387
 
1403
 
1404
  .components-button.is-tertiary:active:focus:enabled { box-shadow: none; }
1405
 
1406
+ .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { color: #005d8c; }
1407
 
1408
+ body.admin-color-sunrise .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { color: #62571c; }
1409
 
1410
+ body.admin-color-ocean .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { color: #475e47; }
1411
 
1412
+ body.admin-color-midnight .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { color: #375c6a; }
1413
 
1414
+ body.admin-color-ectoplasm .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { color: #3e2f52; }
1415
 
1416
+ body.admin-color-coffee .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { color: #433e39; }
1417
 
1418
+ body.admin-color-blue .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { color: #315f74; }
1419
 
1420
+ body.admin-color-light .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { color: #005d8c; }
1421
+
1422
+ .components-button.has-icon .dashicon { display: inline-block; flex: 0 0 auto; }
1423
+
1424
+ .components-button.has-icon svg { fill: currentColor; outline: none; }
1425
+
1426
+ .components-button.has-icon.has-text svg { margin-right: 8px; }
1427
 
1428
  .components-button .screen-reader-text { height: auto; }
1429
 
1453
 
1454
  @media (min-width: 600px) { svg.dashicon.components-checkbox-control__checked { width: 21px; height: 21px; left: -3px; } }
1455
 
1456
+ .components-circular-option-picker { display: inline-block; margin-top: 0.6rem; width: 100%; }
1457
 
1458
+ .components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper { display: flex; justify-content: flex-end; }
1459
 
1460
+ .components-circular-option-picker__option-wrapper { display: inline-block; height: 28px; width: 28px; margin-right: 12px; margin-bottom: 12px; vertical-align: top; transform: scale(1); transition: 100ms transform ease; }
1461
 
1462
  @media (prefers-reduced-motion: reduce) { .components-circular-option-picker__option-wrapper { transition-duration: 0s; } }
1463
 
1471
 
1472
  @media (prefers-reduced-motion: reduce) { .components-circular-option-picker__option { transition-duration: 0s; } }
1473
 
1474
+ .components-circular-option-picker__option:hover { box-shadow: inset 0 0 0 14px !important; }
1475
 
1476
+ .components-circular-option-picker__option.is-pressed { box-shadow: inset 0 0 0 4px; position: relative; z-index: 1; }
1477
 
1478
+ .components-circular-option-picker__option.is-pressed + .dashicons-saved { position: absolute; left: 4px; top: 4px; border-radius: 50%; z-index: 2; background: #fff; pointer-events: none; }
1479
 
1480
+ .components-circular-option-picker__option::after { content: ""; position: absolute; top: -1px; left: -1px; bottom: -1px; right: -1px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); border: 1px solid transparent; }
1481
 
1482
  .components-circular-option-picker__option:focus::after { content: ""; border: 2px solid #606a73; width: 32px; height: 32px; position: absolute; top: -2px; left: -2px; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff; }
1483
 
1484
+ .components-circular-option-picker__option.components-button:focus { background-color: transparent; box-shadow: inset 0 0 0 14px; outline: none; }
1485
+
1486
  .components-circular-option-picker__button-action .components-circular-option-picker__option { color: #fff; background: #fff; }
1487
 
1488
  .components-circular-option-picker__dropdown-link-action { margin-right: 16px; }
1496
  /** Parts of this source were derived and modified from react-color, released under the MIT license. https://github.com/casesandberg/react-color/ Copyright (c) 2015 Case Sandberg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
1497
  .components-color-picker { width: 100%; overflow: hidden; }
1498
 
1499
+ .components-color-picker * { box-sizing: border-box; }
1500
+
1501
+ .components-color-picker .components-button { padding: 6px; }
1502
+
1503
  .components-color-picker__saturation { width: 100%; padding-bottom: 55%; position: relative; }
1504
 
1505
  .components-color-picker__body { padding: 16px 16px 12px; }
1554
  /* INPUTS COMPONENT */
1555
  .components-color-picker__inputs-wrapper { margin: 0 -4px; padding-top: 16px; display: flex; align-items: flex-end; }
1556
 
1557
+ .components-color-picker__inputs-wrapper fieldset { flex: 1; border: none; margin: 0; padding: 0; }
1558
 
1559
+ .components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type="number"] { padding: 6px 8px; }
1560
 
1561
+ .components-color-picker__inputs-field { width: 100%; }
1562
+
1563
+ .components-color-picker__inputs-fields { display: flex; /*rtl:ignore*/ direction: ltr; flex-grow: 1; }
1564
+
1565
+ .components-color-picker__inputs-fields .components-base-control + .components-base-control { margin-bottom: 0; }
1566
 
1567
  .components-color-picker__inputs-fields .components-base-control__field { margin: 0 4px; }
1568
 
1569
+ .components-custom-gradient-picker:not(.has-gradient) { opacity: 0.4; }
1570
+
1571
+ .components-custom-gradient-picker { width: 100%; height: 24px; border-radius: 24px; margin-bottom: 8px; padding-left: 3px; padding-right: 21px; }
1572
+
1573
+ .components-custom-gradient-picker .components-custom-gradient-picker__markers-container { position: relative; }
1574
+
1575
+ .components-custom-gradient-picker .components-custom-gradient-picker__insert-point { border-radius: 50%; background: #fff; padding: 2px; width: 24px; height: 24px; position: relative; }
1576
+
1577
+ .components-custom-gradient-picker .components-custom-gradient-picker__control-point-button { border: 2px solid #fff; border-radius: 50%; height: 18px; position: absolute; width: 18px; top: 3px; }
1578
+
1579
+ .components-custom-gradient-picker .components-custom-gradient-picker__control-point-button.is-active { background: #fafafa; color: #23282d; border-color: #999; box-shadow: inset 0 -1px 0 #999, 0 0 0 1px #fff, 0 0 0 3px #007cba; }
1580
+
1581
+ .components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point { margin-left: auto; margin-right: auto; display: block; margin-bottom: 8px; }
1582
+
1583
+ .components-custom-gradient-picker__inserter { width: 100%; }
1584
+
1585
+ .components-custom-select-control { color: #555d66; position: relative; }
1586
+
1587
+ .components-custom-select-control__label { display: block; margin-bottom: 5px; }
1588
+
1589
+ .components-custom-select-control__button { border: 1px solid #7e8993; border-radius: 4px; color: #555d66; display: inline; min-height: 30px; min-width: 130px; position: relative; text-align: left; }
1590
+
1591
+ .components-custom-select-control__button:focus { border-color: #00a0d2; }
1592
+
1593
+ .components-custom-select-control__button-icon { height: 100%; padding: 0 4px; position: absolute; right: 0; top: 0; }
1594
+
1595
+ .components-custom-select-control__menu { background: #fff; min-width: 100%; padding: 0; position: absolute; z-index: 1000000; }
1596
+
1597
+ .components-custom-select-control__item { align-items: center; display: flex; list-style-type: none; padding: 10px 5px 10px 25px; }
1598
+
1599
+ .components-custom-select-control__item.is-highlighted { background: #e2e4e7; }
1600
+
1601
+ .components-custom-select-control__item-icon { margin-left: -20px; margin-right: 0; }
1602
+
1603
  svg.dashicon { fill: currentColor; outline: none; }
1604
 
1605
  /*rtl:begin:ignore*/
1922
  .DateRangePicker_closeButton_svg { height: 15px; width: 15px; fill: #cacccd; }
1923
 
1924
  /*rtl:end:ignore*/
1925
+ .components-datetime { padding: 16px; }
1926
+
1927
+ .components-datetime .components-datetime__calendar-help { padding: 16px; }
1928
 
1929
  .components-datetime .components-datetime__calendar-help h4 { margin: 0; }
1930
 
1931
+ .components-datetime .components-datetime__date-help-button { display: block; margin-left: auto; }
1932
 
1933
  .components-datetime fieldset { border: 0; padding: 0; margin: 0; }
1934
 
1935
+ .components-datetime select, .components-datetime input { box-shadow: 0 0 0 transparent; transition: box-shadow 0.1s linear; border-radius: 4px; border: 1px solid #7e8993; }
1936
 
1937
  @media (prefers-reduced-motion: reduce) { .components-datetime select, .components-datetime input { transition-duration: 0s; } }
1938
 
1939
+ .components-datetime select, .components-datetime input[type="number"], .components-datetime .components-button { height: 30px; margin-top: 0; margin-bottom: 0; }
1940
+
1941
+ .components-datetime__date { min-height: 236px; border-top: 1px solid #e2e4e7; }
1942
+
1943
+ .components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault { left: 0; }
1944
 
1945
  .components-datetime__date .CalendarMonth_caption { font-size: 13px; }
1946
 
1984
 
1985
  .components-datetime__date .DayPicker_weekHeader { top: 50px; }
1986
 
1987
+ .components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul { margin: 1px 0; padding-left: 0; padding-right: 0; }
1988
+
1989
  .components-datetime__date.is-description-visible .DayPicker, .components-datetime__date.is-description-visible .components-datetime__date-help-button { visibility: hidden; }
1990
 
1991
+ .components-datetime__time { padding-bottom: 16px; }
1992
+
1993
+ .components-datetime__time fieldset { position: relative; margin-bottom: 0.5em; }
1994
 
1995
+ .components-datetime__time fieldset + fieldset { margin-bottom: 0; }
1996
 
1997
  .components-datetime__time .components-datetime__time-field-am-pm fieldset { margin-top: 0; }
1998
 
2006
 
2007
  .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button:focus, .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button:focus { position: relative; z-index: 1; }
2008
 
2009
+ .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-pressed, .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-pressed { background: #edeff0; border-color: #8f98a1; box-shadow: inset 0 2px 5px -3px #555d66; }
2010
 
2011
+ .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-pressed:focus, .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-pressed:focus { box-shadow: inset 0 2px 5px -3px #555d66, 0 0 0 1px #fff, 0 0 0 3px #007cba; }
2012
 
2013
  .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time { /*rtl:ignore*/ direction: ltr; }
2014
 
2040
 
2041
  .components-popover .components-datetime__date { padding-left: 4px; }
2042
 
 
 
2043
  .block-editor-dimension-control .components-base-control__field { display: flex; align-items: center; }
2044
 
2045
  .block-editor-dimension-control .components-base-control__label { display: flex; align-items: center; margin-right: 1em; margin-bottom: 0; }
2084
 
2085
  .components-drop-zone__provider { height: 100%; }
2086
 
2087
+ .components-dropdown { display: inline-block; }
 
 
 
 
 
 
2088
 
2089
+ .components-dropdown-menu__indicator::after { content: ""; pointer-events: none; display: block; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 5px solid; margin-left: 4px; margin-right: 2px; }
 
 
2090
 
2091
  .components-dropdown-menu__popover .components-popover__content { width: 200px; }
2092
 
2098
 
2099
  .components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator::before, .components-dropdown-menu__menu .components-menu-item.has-separator::before { display: block; content: ""; box-sizing: content-box; background-color: #e2e4e7; position: absolute; top: -3px; left: 0; right: 0; height: 1px; }
2100
 
2101
+ .components-dropdown-menu__menu .components-dropdown-menu__menu-item:focus:not(:disabled):not([aria-disabled="true"]):not(.is-secondary), .components-dropdown-menu__menu .components-menu-item:focus:not(:disabled):not([aria-disabled="true"]):not(.is-secondary) { color: #191e23; border: none; box-shadow: none; outline-offset: -2px; outline: 1px dotted #555d66; }
2102
 
2103
+ .components-dropdown-menu__menu .components-dropdown-menu__menu-item:hover, .components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover, .components-dropdown-menu__menu .components-menu-item:hover, .components-dropdown-menu__menu .components-menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover { color: #191e23; border: none; box-shadow: none; background: #f3f4f5; box-shadow: none; }
2104
 
2105
  .components-dropdown-menu__menu .components-dropdown-menu__menu-item > svg, .components-dropdown-menu__menu .components-menu-item > svg { border-radius: 4px; padding: 2px; width: 24px; height: 24px; margin: -1px 8px -1px 0; }
2106
 
2107
+ .components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-secondary).is-active > svg, .components-dropdown-menu__menu .components-menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-secondary).is-active > svg { outline: none; color: #fff; box-shadow: none; background: #555d66; }
2108
 
2109
  .components-dropdown-menu__menu .components-menu-group:not(:last-child) { border-bottom: 1px solid #e2e4e7; }
2110
 
2111
+ .components-dropdown-menu__menu .components-menu-item__button, .components-dropdown-menu__menu .components-menu-item__button.components-button { height: auto; padding-left: 2rem; }
2112
 
2113
+ .components-dropdown-menu__menu .components-menu-item__button.has-icon, .components-dropdown-menu__menu .components-menu-item__button.components-button.has-icon { padding-left: 0.5rem; }
2114
 
2115
+ .components-dropdown-menu__menu .components-menu-item__button .dashicon, .components-dropdown-menu__menu .components-menu-item__button.components-button .dashicon { margin-right: 4px; }
2116
 
2117
  .components-external-link__icon { width: 1.4em; height: 1.4em; margin: -0.2em 0.1em 0; vertical-align: middle; }
2118
 
2156
 
2157
  .components-font-size-picker__controls { max-width: 248px; display: flex; align-items: center; margin-bottom: 24px; }
2158
 
2159
+ .components-font-size-picker__controls .components-range-control__number { height: 30px; margin-bottom: 0; margin-top: 5px; margin-left: 0; margin-right: 8px; }
2160
 
2161
  .components-font-size-picker__controls .components-range-control__number[value=""] + .components-button { cursor: default; opacity: 0.3; pointer-events: none; }
2162
 
2163
+ .components-font-size-picker__controls .components-range-control__number-container { display: flex; flex-direction: column; }
2164
+
2165
  .components-font-size-picker__controls .components-font-size-picker__select { margin-right: 8px; flex-grow: 1; }
2166
 
2167
+ .components-font-size-picker__controls .components-color-palette__clear { height: 30px; margin-top: 23px; }
2168
 
2169
  .components-font-size-picker__custom-input .components-range-control__slider + .dashicon { width: 30px; height: 30px; }
2170
 
2171
  .components-font-size-picker { border: 0; padding: 0; margin: 0; }
2172
 
 
 
2173
  .components-form-toggle { position: relative; display: inline-block; }
2174
 
2175
  .components-form-toggle .components-form-toggle__on, .components-form-toggle .components-form-toggle__off { position: absolute; top: 6px; box-sizing: border-box; }
2294
 
2295
  .components-form-token-field__token.is-disabled .components-form-token-field__remove-token { cursor: default; }
2296
 
2297
+ .components-form-token-field__token-text, .components-form-token-field__remove-token.components-button { display: inline-block; line-height: 24px; background: #e2e4e7; transition: all 0.2s cubic-bezier(0.4, 1, 0.4, 1); }
2298
 
2299
+ @media (prefers-reduced-motion: reduce) { .components-form-token-field__token-text, .components-form-token-field__remove-token.components-button { transition-duration: 0s; -webkit-animation-duration: 1ms; animation-duration: 1ms; } }
2300
 
2301
  .components-form-token-field__token-text { border-radius: 12px 0 0 12px; padding: 0 4px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
2302
 
2303
+ .components-form-token-field__remove-token.components-button { cursor: pointer; border-radius: 0 12px 12px 0; padding: 0 2px; color: #555d66; line-height: 10px; overflow: initial; }
2304
 
2305
+ .components-form-token-field__remove-token.components-button:hover { color: #32373c; }
2306
 
2307
  .components-form-token-field__suggestions-list { flex: 1 0 100%; min-width: 100%; max-height: 9em; overflow-y: scroll; transition: all 0.15s ease-in-out; list-style: none; border-top: 1px solid #6c7781; margin: 4px -4px -4px; padding-top: 3px; }
2308
 
2314
 
2315
  .components-form-token-field__suggestion-match { text-decoration: underline; }
2316
 
2317
+ .components-guide .components-modal__header { background: none; border-bottom: none; }
2318
 
2319
+ .components-guide .components-modal__header .components-button { align-self: flex-start; margin-top: 24px; position: static; }
2320
+
2321
+ .components-guide__container { display: flex; flex-direction: column; margin-top: -56px; min-height: 100%; }
2322
+
2323
+ .components-guide__footer { align-content: center; display: flex; height: 30px; justify-content: center; margin: auto 0 24px 0; position: relative; width: 100%; }
2324
+
2325
+ @media (min-width: 600px) { .components-guide__footer { margin: 24px 0 0; } }
2326
+
2327
+ .components-guide__page-control { margin: 0; }
2328
+
2329
+ .components-guide__page-control li { display: inline-block; margin: 0 2px; }
2330
+
2331
+ .components-guide__page-control .components-button { height: 30px; }
2332
+
2333
+ @media (max-width: 600px) { .components-modal__frame.components-guide { bottom: 15%; left: 24px; right: 24px; top: 15%; } }
2334
+
2335
+ .components-button.components-guide__back-button, .components-button.components-guide__forward-button, .components-button.components-guide__finish-button { height: 30px; position: absolute; }
2336
+
2337
+ .components-button.components-guide__back-button, .components-button.components-guide__forward-button { font-size: 0; padding: 4px 2px; }
2338
+
2339
+ .components-button.components-guide__back-button.has-text svg, .components-button.components-guide__forward-button.has-text svg { margin: 0; }
2340
 
2341
+ @media (min-width: 600px) { .components-button.components-guide__back-button, .components-button.components-guide__forward-button { font-size: 13px; } }
2342
 
2343
+ .components-button.components-guide__back-button { left: 0; }
2344
 
2345
+ @media (min-width: 600px) { .components-button.components-guide__back-button { padding: 4px 8px 4px 2px; }
2346
+ .components-button.components-guide__back-button.has-text svg { margin-right: 4px; } }
2347
 
2348
+ .components-button.components-guide__forward-button { right: 0; }
2349
 
2350
+ @media (min-width: 600px) { .components-button.components-guide__forward-button { padding: 4px 2px 4px 8px; }
2351
+ .components-button.components-guide__forward-button.has-text svg { margin-left: 4px; order: 1; } }
2352
 
2353
+ .components-button.components-guide__finish-button { display: none; right: 0; }
2354
 
2355
+ @media (min-width: 600px) { .components-button.components-guide__finish-button { display: block; } }
2356
+
2357
+ @media (min-width: 600px) { .components-button.components-guide__inline-finish-button { display: none; } }
2358
+
2359
+ .components-navigate-regions.is-focusing-regions [role="region"] { position: relative; }
2360
+
2361
+ .components-navigate-regions.is-focusing-regions [role="region"]:focus::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; pointer-events: none; outline: 4px solid transparent; box-shadow: inset 0 0 0 4px #33b3db; }
2362
+
2363
+ @supports (outline-offset: 1px) { .components-navigate-regions.is-focusing-regions [role="region"]:focus::after { content: none; }
2364
+ .components-navigate-regions.is-focusing-regions [role="region"]:focus { outline-style: solid; outline-color: #33b3db; outline-width: 4px; outline-offset: -4px; } }
2365
 
2366
  .components-menu-group { width: 100%; padding: 7px 0; }
2367
 
2368
  .components-menu-group__label { margin-bottom: 8px; color: #6c7781; padding: 0 7px; }
2369
 
2370
+ .components-menu-item__button, .components-menu-item__button.components-button { width: 100%; padding: 8px 15px; text-align: left; color: #40464d; border: none; box-shadow: none; }
2371
 
2372
+ .components-menu-item__button .dashicon, .components-menu-item__button .components-menu-items__item-icon, .components-menu-item__button > span > svg, .components-menu-item__button.components-button .dashicon, .components-menu-item__button.components-button .components-menu-items__item-icon, .components-menu-item__button.components-button > span > svg { margin-right: 5px; }
2373
 
2374
+ .components-menu-item__button .components-menu-items__item-icon, .components-menu-item__button.components-button .components-menu-items__item-icon { display: inline-block; flex: 0 0 auto; }
2375
 
2376
+ .components-menu-item__button.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover, .components-menu-item__button.components-button.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover { color: #191e23; border: none; box-shadow: none; background: #f3f4f5; }
2377
 
2378
+ .components-menu-item__button.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover .components-menu-item__shortcut, .components-menu-item__button.components-button.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover .components-menu-item__shortcut { color: #40464d; }
2379
 
2380
+ .components-menu-item__button:focus:not(:disabled):not([aria-disabled="true"]), .components-menu-item__button.components-button:focus:not(:disabled):not([aria-disabled="true"]) { color: #191e23; border: none; box-shadow: none; outline-offset: -2px; outline: 1px dotted #555d66; }
2381
 
2382
  .components-menu-item__info-wrapper { display: flex; flex-direction: column; }
2383
 
2387
 
2388
  @media (min-width: 480px) { .components-menu-item__shortcut { display: inline; } }
2389
 
2390
+ .components-menu-items-choice, .components-menu-items-choice.components-button { padding-left: 2rem; }
2391
+
2392
+ .components-menu-items-choice.has-icon, .components-menu-items-choice.components-button.has-icon { padding-left: 0.5rem; }
2393
+
2394
+ .components-menu-items-choice .dashicon, .components-menu-items-choice.components-button .dashicon { margin-right: 4px; }
2395
+
2396
  .components-modal__screen-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(0, 0, 0, 0.7); z-index: 100000; -webkit-animation: edit-post__fade-in-animation 0.2s ease-out 0s; animation: edit-post__fade-in-animation 0.2s ease-out 0s; -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards; }
2397
 
2398
  @media (prefers-reduced-motion: reduce) { .components-modal__screen-overlay { -webkit-animation-duration: 1ms; animation-duration: 1ms; } }
2409
  @keyframes components-modal__appear-animation { from { margin-top: 32px; }
2410
  to { margin-top: 0; } }
2411
 
2412
+ .components-modal__header { box-sizing: border-box; border-bottom: 1px solid #e2e4e7; padding: 0 24px; display: flex; flex-direction: row; justify-content: space-between; background: #fff; align-items: center; height: 56px; z-index: 10; position: relative; position: -webkit-sticky; position: sticky; top: 0; margin: 0 -24px 24px; }
2413
 
2414
  @supports (-ms-ime-align: auto) { .components-modal__header { position: fixed; width: 100%; } }
2415
 
2417
 
2418
  .components-modal__header h1 { line-height: 1; margin: 0; }
2419
 
2420
+ .components-modal__header .components-button { position: relative; left: 8px; }
2421
 
2422
  .components-modal__header-heading-container { align-items: center; flex-grow: 1; display: flex; flex-direction: row; justify-content: left; }
2423
 
2443
 
2444
  .components-notice__action.components-button, .components-notice__action.components-button.is-link { margin-left: 4px; }
2445
 
2446
+ .components-notice__action.components-button.is-secondary { vertical-align: initial; }
2447
 
2448
  .components-notice__dismiss { color: #6c7781; align-self: flex-start; flex-shrink: 0; }
2449
 
2450
+ .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover, .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):active, .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):focus { color: #191e23; background-color: transparent; }
2451
 
2452
+ .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover { box-shadow: none; }
2453
 
2454
  .components-notice-list { max-width: 100vw; box-sizing: border-box; z-index: 29; }
2455
 
2471
 
2472
  .components-panel__body.is-opened { padding: 16px; }
2473
 
2474
+ .components-panel__body > .components-button { color: #191e23; }
2475
 
2476
  .components-panel__header { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; height: 50px; border-top: 1px solid #e2e4e7; border-bottom: 1px solid #e2e4e7; }
2477
 
2485
 
2486
  .components-panel__body.is-opened > .components-panel__body-title { margin: -16px; margin-bottom: 5px; }
2487
 
2488
+ .components-panel__body > .components-panel__body-title:hover { background: #f3f4f5 !important; border: none !important; }
2489
 
2490
+ .components-panel__body-toggle.components-button { position: relative; padding: 15px; outline: none; width: 100%; font-weight: 600; text-align: left; color: #191e23; border: none; box-shadow: none; transition: 0.1s background ease-in-out; height: auto; /* rtl:begin:ignore */ /* rtl:end:ignore */ }
2491
 
2492
  @media (prefers-reduced-motion: reduce) { .components-panel__body-toggle.components-button { transition-duration: 0s; } }
2493
 
2494
  .components-panel__body-toggle.components-button:focus:not(:disabled):not([aria-disabled="true"]) { color: #191e23; border: none; box-shadow: none; outline-offset: -2px; outline: 1px dotted #555d66; }
2495
 
2496
+ .components-panel__body-toggle.components-button:hover { background: transparent !important; border: none !important; box-shadow: none !important; }
2497
+
2498
  .components-panel__body-toggle.components-button .components-panel__arrow { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #191e23; fill: currentColor; transition: 0.1s color ease-in-out; }
2499
 
2500
  @media (prefers-reduced-motion: reduce) { .components-panel__body-toggle.components-button .components-panel__arrow { transition-duration: 0s; } }
2517
 
2518
  .components-panel .circle-picker { padding-bottom: 20px; }
2519
 
2520
+ .components-placeholder.components-placeholder { position: relative; margin-bottom: 28px; padding: 1em; min-height: 200px; width: 100%; text-align: left; background: rgba(139, 139, 150, 0.1); }
2521
+
2522
+ @supports ((position: -webkit-sticky) or (position: sticky)) { .components-placeholder.components-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; } }
2523
 
2524
+ .is-dark-theme .components-placeholder.components-placeholder { background: rgba(255, 255, 255, 0.15); }
2525
 
2526
+ .components-placeholder.components-placeholder .components-base-control__label { font-size: 13px; }
2527
 
2528
  .components-placeholder__instructions, .components-placeholder__label, .components-placeholder__fieldset { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; }
2529
 
2530
+ .components-placeholder__label { display: flex; font-weight: 600; margin-bottom: 1em; }
2531
 
2532
+ .components-placeholder__label > svg, .components-placeholder__label .dashicon, .components-placeholder__label .block-editor-block-icon { fill: currentColor; margin-right: 1ch; }
2533
 
2534
+ .components-placeholder__fieldset, .components-placeholder__fieldset form { display: flex; flex-direction: row; width: 100%; flex-wrap: wrap; z-index: 1; }
2535
 
2536
  .components-placeholder__fieldset p, .components-placeholder__fieldset form p { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; }
2537
 
2543
 
2544
  .components-placeholder__preview img { margin: 3%; width: 50%; }
2545
 
2546
+ .components-placeholder__fieldset .components-button { margin-right: 8px; margin-bottom: 8px; }
2547
 
2548
  .components-placeholder__fieldset .components-button:last-child { margin-right: 0; }
2549
 
2551
 
2552
  .components-placeholder__fieldset .components-button:not(.is-link) ~ .components-button.is-link:last-child { margin-right: 0; }
2553
 
2554
+ .components-placeholder.is-medium .components-placeholder__instructions, .components-placeholder.is-small .components-placeholder__instructions { display: none; }
2555
+
2556
+ .components-placeholder.is-medium .components-placeholder__fieldset, .components-placeholder.is-medium .components-placeholder__fieldset form, .components-placeholder.is-small .components-placeholder__fieldset, .components-placeholder.is-small .components-placeholder__fieldset form { flex-direction: column; }
2557
+
2558
+ .components-placeholder.is-medium .components-placeholder__fieldset .components-button, .components-placeholder.is-small .components-placeholder__fieldset .components-button { margin-right: auto; }
2559
+
2560
+ .components-placeholder.is-small .block-editor-block-icon { display: none; }
2561
+
2562
+ .components-placeholder.is-small .components-button { padding: 0 8px 2px; }
2563
+
2564
  /*!rtl:begin:ignore*/
2565
+ .components-popover { position: fixed; z-index: 1000000; top: 0; left: 0; opacity: 0; }
2566
+
2567
+ .components-popover.is-expanded, .components-popover[data-x-axis][data-y-axis] { opacity: 1; }
2568
 
2569
+ .components-popover.is-expanded { top: 0; left: 0; right: 0; bottom: 0; z-index: 1000000 !important; }
2570
 
2571
+ .components-popover:not(.is-without-arrow) { margin-left: 2px; }
2572
 
2573
+ .components-popover:not(.is-without-arrow)::before { border: 8px solid #e2e4e7; }
2574
 
2575
+ .components-popover:not(.is-without-arrow)::after { border: 8px solid #fff; }
2576
 
2577
+ .components-popover:not(.is-without-arrow)::before, .components-popover:not(.is-without-arrow)::after { content: ""; position: absolute; height: 0; width: 0; line-height: 0; }
2578
 
2579
+ .components-popover:not(.is-without-arrow)[data-y-axis="top"] { margin-top: -8px; }
2580
 
2581
+ .components-popover:not(.is-without-arrow)[data-y-axis="top"]::before { bottom: -8px; }
2582
 
2583
+ .components-popover:not(.is-without-arrow)[data-y-axis="top"]::after { bottom: -6px; }
2584
 
2585
+ .components-popover:not(.is-without-arrow)[data-y-axis="top"]::before, .components-popover:not(.is-without-arrow)[data-y-axis="top"]::after { border-bottom: none; border-left-color: transparent; border-right-color: transparent; border-top-style: solid; margin-left: -10px; }
2586
 
2587
+ .components-popover:not(.is-without-arrow)[data-y-axis="bottom"] { margin-top: 8px; }
2588
 
2589
+ .components-popover:not(.is-without-arrow)[data-y-axis="bottom"]::before { top: -8px; }
2590
 
2591
+ .components-popover:not(.is-without-arrow)[data-y-axis="bottom"]::after { top: -6px; }
2592
 
2593
+ .components-popover:not(.is-without-arrow)[data-y-axis="bottom"]::before, .components-popover:not(.is-without-arrow)[data-y-axis="bottom"]::after { border-bottom-style: solid; border-left-color: transparent; border-right-color: transparent; border-top: none; margin-left: -10px; }
2594
 
2595
+ .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="left"] { margin-left: -8px; }
2596
 
2597
+ .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="left"]::before { right: -8px; }
2598
 
2599
+ .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="left"]::after { right: -6px; }
2600
 
2601
+ .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="left"]::before, .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="left"]::after { border-bottom-color: transparent; border-left-style: solid; border-right: none; border-top-color: transparent; }
2602
 
2603
+ .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="right"] { margin-left: 8px; }
2604
 
2605
+ .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="right"]::before { left: -8px; }
2606
 
2607
+ .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="right"]::after { left: -6px; }
2608
 
2609
+ .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="right"]::before, .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="right"]::after { border-bottom-color: transparent; border-left: none; border-right-style: solid; border-top-color: transparent; }
2610
 
2611
+ .components-popover[data-y-axis="top"] { bottom: 100%; }
2612
 
2613
+ .components-popover[data-y-axis="bottom"] { top: 100%; }
2614
 
2615
+ .components-popover[data-y-axis="middle"] { align-items: center; display: flex; }
2616
 
2617
  .components-popover__content { box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); border: 1px solid #e2e4e7; background: #fff; height: 100%; }
2618
 
2619
+ .components-popover .components-popover__content { position: absolute; height: auto; overflow-y: auto; min-width: 260px; }
2620
 
2621
+ .components-popover.is-expanded .components-popover__content { position: static; height: calc(100% - 50px); overflow-y: visible; min-width: auto; border: none; border-top: 1px solid #e2e4e7; }
2622
 
2623
+ .components-popover[data-y-axis="top"] .components-popover__content { bottom: 100%; }
2624
 
2625
+ .components-popover[data-x-axis="center"] .components-popover__content { left: 50%; transform: translateX(-50%); }
2626
 
2627
+ .components-popover[data-x-axis="right"] .components-popover__content { position: absolute; left: 100%; }
2628
 
2629
+ .components-popover:not([data-y-axis="middle"])[data-x-axis="right"] .components-popover__content { margin-left: -24px; }
2630
 
2631
+ .components-popover[data-x-axis="left"] .components-popover__content { position: absolute; right: 100%; }
2632
 
2633
+ .components-popover:not([data-y-axis="middle"])[data-x-axis="left"] .components-popover__content { margin-right: -24px; }
2634
 
2635
  .components-popover__content > div { height: 100%; }
2636
 
2637
+ .components-popover__header { align-items: center; background: #fff; display: flex; height: 50px; justify-content: space-between; padding: 0 8px 0 16px; }
2638
 
2639
  .components-popover__header-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }
2640
 
2641
+ .components-popover__close.components-button { z-index: 5; }
2642
 
2643
  /*!rtl:end:ignore*/
2644
  .components-radio-control { display: flex; flex-direction: column; }
2645
 
2646
  .components-radio-control .components-base-control__help { margin-top: 0; }
2647
 
2648
+ .components-radio-control .components-base-control__field { margin-bottom: 0; }
2649
+
2650
  .components-radio-control__option:not(:last-child) { margin-bottom: 4px; }
2651
 
2652
  .components-radio-control__input[type="radio"] { margin-top: 0; margin-right: 6px; }
2799
 
2800
  .components-snackbar__action.components-button { margin-left: 32px; color: #fff; height: auto; flex-shrink: 0; line-height: 1.4; padding: 0; }
2801
 
2802
+ .components-snackbar__action.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary) { text-decoration: underline; background-color: transparent; }
2803
 
2804
+ .components-snackbar__action.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):focus { color: #fff; box-shadow: none; outline: 1px dotted #fff; }
2805
 
2806
+ .components-snackbar__action.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover { color: #33b3db; }
2807
 
2808
  .components-snackbar__content { display: flex; align-items: baseline; justify-content: space-between; line-height: 1.4; }
2809
 
2831
 
2832
  .components-tip p { margin: 0; }
2833
 
2834
+ .components-toggle-control .components-base-control__field { display: flex; margin-bottom: 12px; line-height: initial; align-items: center; }
2835
 
2836
  .components-toggle-control .components-base-control__field .components-form-toggle { margin-right: 16px; }
2837
 
2838
+ .components-toggle-control .components-base-control__field .components-toggle-control__label { display: block; }
 
 
2839
 
2840
+ .components-accessible-toolbar { display: inline-flex; flex-shrink: 0; }
2841
 
2842
+ @supports ((position: -webkit-sticky) or (position: sticky)) { .components-accessible-toolbar { display: flex; } }
2843
 
2844
+ .components-tab-button { padding: 3px; color: #555d66; height: 36px; font-weight: 500; }
2845
 
2846
+ .components-tab-button.is-pressed, .components-tab-button.is-pressed:hover { color: #fff; }
2847
 
2848
+ .components-tab-button:disabled { cursor: default; }
2849
 
2850
+ .components-tab-button > span { border: 1px solid transparent; padding: 0 6px; box-sizing: content-box; height: 28px; line-height: 28px; }
2851
 
2852
+ .components-tab-button:hover > span, .components-tab-button:focus > span { color: #555d66; }
2853
 
2854
+ .components-tab-button:not(:disabled).is-pressed > span, .components-tab-button:not(:disabled):hover > span, .components-tab-button:not(:disabled):focus > span { border: 1px solid #555d66; }
2855
 
2856
+ .components-tab-button.is-pressed > span, .components-tab-button.is-pressed:hover > span { background-color: #555d66; color: #fff; }
2857
 
2858
+ .components-toolbar__control.components-button { width: 36px; height: 36px; }
2859
 
2860
  .components-toolbar__control.components-button[data-subscript] svg { padding: 5px 10px 5px 0; }
2861
 
2862
  .components-toolbar__control.components-button[data-subscript]::after { content: attr(data-subscript); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; font-weight: 600; line-height: 12px; position: absolute; right: 8px; bottom: 10px; }
2863
 
2864
+ .components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]::after { color: #fff; }
2865
 
2866
+ .components-toolbar__control.components-button.is-pressed { padding: 3px; outline: none; }
2867
 
2868
+ .components-toolbar__control.components-button.is-pressed > svg { padding: 5px; border-radius: 4px; height: 30px; width: 30px; box-sizing: border-box; outline: none; color: #fff; box-shadow: none; background: #555d66; }
2869
 
2870
+ .components-toolbar-group { border: 1px solid #e2e4e7; background-color: #fff; display: flex; flex-shrink: 0; margin-right: -1px; line-height: 0; }
2871
+
2872
+ .components-toolbar-group .components-toolbar-group { border-width: 0; margin: 0; }
2873
+
2874
+ .components-toolbar { margin: 0; border: 1px solid #e2e4e7; background-color: #fff; display: flex; flex-shrink: 0; }
2875
+
2876
+ div.components-toolbar > div { display: block; margin: 0; }
2877
 
2878
+ @supports ((position: -webkit-sticky) or (position: sticky)) { div.components-toolbar > div { display: flex; } }
2879
 
2880
+ div.components-toolbar > div + div { margin-left: -3px; }
2881
 
2882
+ div.components-toolbar > div + div.has-left-divider { margin-left: 6px; position: relative; overflow: visible; }
2883
 
2884
+ div.components-toolbar > div + div.has-left-divider::before { display: inline-block; content: ""; box-sizing: content-box; background-color: #e2e4e7; position: absolute; top: 8px; left: -3px; width: 1px; height: 20px; }
2885
 
2886
  .components-tooltip.components-popover { z-index: 1000002; }
2887
 
2888
  .components-tooltip.components-popover::before { border-color: transparent; }
2889
 
2890
+ .components-tooltip.components-popover[data-y-axis="top"]::after { border-top-color: #191e23; }
2891
 
2892
+ .components-tooltip.components-popover[data-y-axis="bottom"]::after { border-bottom-color: #191e23; }
2893
 
2894
+ .components-tooltip.components-popover .components-popover__content { min-width: 0; }
2895
 
2896
  .components-tooltip .components-popover__content { padding: 4px 12px; background: #191e23; border-width: 0; color: #fff; white-space: nowrap; text-align: center; }
2897
 
2903
 
2904
  /** Colors */
2905
  /** Breakpoints & Media Queries */
2906
+ /** Colors */
2907
  /** Often re-used variables */
2908
  /** Breakpoint mixins */
2909
  /** Long content fade mixin Creates a fading overlay to signify that the content is longer than the space allows. */
2910
  /** Button states and focus styles */
2911
  /** Applies editor left position to the selector passed as argument */
 
2912
  /** Styles that are reused verbatim in a few places */
2913
  /** Allows users to opt-out of animations via OS-level preferences. */
2914
  /** Reset default styles for JavaScript UI based pages. This is a WP-admin agnostic reset */
2969
 
2970
  .block-editor-block-inspector__no-blocks { display: block; font-size: 13px; background: #fff; padding: 32px 16px; text-align: center; }
2971
 
 
 
2972
  .block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging .block-editor-block-list__block-edit::before { border: none; }
2973
 
2974
  .block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging > .block-editor-block-list__block-edit > * { background: #f8f9f9; }
2975
 
2976
  .block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging > .block-editor-block-list__block-edit > * > * { visibility: hidden; }
2977
 
 
 
2978
  .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit .reusable-block-edit-panel * { z-index: 1; }
2979
 
2980
  /** General Post Content Layout */
2997
 
2998
  .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit { position: relative; }
2999
 
 
 
3000
  .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit::before { z-index: 0; content: ""; position: absolute; border: 1px solid transparent; border-left: none; box-shadow: none; pointer-events: none; transition: border-color 0.1s linear, border-style 0.1s linear, box-shadow 0.1s linear; outline: 1px solid transparent; right: -14px; left: -14px; top: -14px; bottom: -14px; }
3001
 
3002
  @media (prefers-reduced-motion: reduce) { .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit::before { transition-duration: 0s; } }
3012
 
3013
  @media (min-width: 600px) { .block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-navigate-mode > .block-editor-block-list__block-edit::before { box-shadow: -3px 0 0 0 #007cba; } }
3014
 
 
 
 
 
3015
  .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) { opacity: 0.5; transition: opacity 0.1s linear; }
3016
 
3017
  @media (prefers-reduced-motion: reduce) { .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) { transition-duration: 0s; } }
3018
 
3019
  .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block, .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused { opacity: 1; }
3020
 
3021
+ /** Cross-Block Selection */
3022
+ .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected > .block-editor-block-list__block-edit > [data-block] { box-shadow: 0 0 0 2px #007cba; border-radius: 1px; outline: 2px solid transparent; }
 
 
 
 
 
 
 
 
 
 
 
3023
 
3024
+ .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected > .block-editor-block-list__block-edit > [data-block] { box-shadow: 0 0 0 2px #fff; }
3025
 
3026
+ .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::-moz-selection { background: transparent; }
3027
 
3028
+ .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection { background: transparent; }
3029
 
3030
+ .block-editor-block-list__layout.has-toolbar-captured > .block-editor-block-list__block-edit::before { left: 0; }
 
 
 
 
 
 
 
 
 
 
3031
 
3032
  /** Block styles and alignments */
3033
  .block-editor-block-list__layout .block-editor-block-list__block.has-warning { min-height: 36px; }
3052
 
3053
  @media (min-width: 600px) { .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .block-editor-block-list__block-edit::after { bottom: -14px; } }
3054
 
3055
+ .block-editor-block-list__layout .block-editor-block-list__block.is-reusable.is-selected > .block-editor-block-list__block-edit::before { border-left-color: transparent; border-style: dashed; border-width: 1px; }
 
 
 
 
 
 
 
 
 
 
 
 
3056
 
3057
  .block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-block-list__block-edit .block-editor-inner-blocks.has-overlay::after { display: none; }
3058
 
3059
  .block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-block-list__block-edit .block-editor-inner-blocks.has-overlay .block-editor-inner-blocks.has-overlay::after { display: block; }
3060
 
3061
+ .block-editor-block-list__layout .block-editor-block-list__block.is-navigate-mode { cursor: default; }
3062
+
3063
  .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"], .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] { z-index: 21; width: 100%; height: 0; }
3064
 
3065
  .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-list__block-edit, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-list__block-edit { margin-top: 0; }
3066
 
3067
  .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-list__block-edit::before, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-list__block-edit::before { content: none; }
3068
 
 
 
 
 
 
 
 
 
 
 
 
 
3069
  .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] > .block-editor-block-list__block-edit { /*!rtl:begin:ignore*/ float: left; margin-right: 2em; /*!rtl:end:ignore*/ }
3070
 
 
 
3071
  .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] > .block-editor-block-list__block-edit { /*!rtl:begin:ignore*/ float: right; margin-left: 2em; /*!rtl:end:ignore*/ }
3072
 
3073
+ .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"], .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] { clear: both; }
 
 
 
 
 
 
 
 
 
 
 
 
3074
 
3075
+ .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit { margin-left: -14px; margin-right: -14px; }
3076
 
3077
+ @media (min-width: 600px) { .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit { margin-left: -58px; margin-right: -58px; } }
 
 
 
 
 
 
3078
 
3079
  .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit::before { left: 0; right: 0; border-left-width: 0; border-right-width: 0; }
3080
 
 
 
3081
  .block-editor-block-list__layout .block-editor-block-list__block[data-clear="true"] { float: none; }
3082
 
3083
  .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-drop-zone { top: -4px; bottom: -3px; margin: 0 14px; }
3084
 
 
 
3085
  .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-block-list__empty-block-inserter, .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter { left: auto; right: 8px; }
3086
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3087
  /** In-Canvas Inserter */
3088
  .block-editor-block-list .block-editor-inserter { margin: 8px; cursor: move; cursor: -webkit-grab; cursor: grab; }
3089
 
3132
  .block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus { box-shadow: none; }
3133
 
3134
  /** Block Toolbar when contextual. */
3135
+ .block-editor-block-contextual-toolbar .block-editor-block-toolbar { width: 100%; }
3136
 
3137
+ @media (min-width: 600px) { .block-editor-block-contextual-toolbar .block-editor-block-toolbar { width: auto; border-right: none; } }
3138
 
3139
+ /** Block Label for Navigation/Selection Mode */
3140
+ .block-editor-block-list__breadcrumb { display: block; line-height: 1; z-index: 22; }
3141
 
3142
+ .block-editor-block-list__breadcrumb .components-toolbar { display: flex; background: #fff; border: 1px solid #007cba; border-left: none; box-shadow: inset 3px 0 0 0 #007cba; height: 38px; font-size: 13px; line-height: 29px; padding-left: 8px; padding-right: 8px; }
3143
 
3144
+ .block-editor-block-list__breadcrumb .components-toolbar .components-button { box-shadow: none; }
3145
 
3146
+ .is-dark-theme .block-editor-block-list__breadcrumb .components-toolbar { border-color: rgba(255, 255, 255, 0.45); }
3147
 
3148
+ @media (min-width: 600px) { .block-editor-block-list__breadcrumb .components-toolbar { box-shadow: -3px 0 0 0 #007cba; } }
3149
 
3150
+ @media (min-width: 600px) { .block-editor-block-list__block::before { bottom: 0; content: ""; left: -28px; position: absolute; right: -28px; top: 0; }
3151
+ .block-editor-block-list__block .block-editor-block-list__block::before { left: 0; right: 0; }
3152
+ .block-editor-block-list__block[data-align="full"]::before { content: none; } }
3153
 
3154
+ .block-editor-block-list__block .block-editor-warning { z-index: 5; position: relative; margin-right: -14px; margin-left: -14px; margin-bottom: -14px; transform: translateY(-14px); }
3155
 
3156
+ .block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning { margin-bottom: auto; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3157
 
3158
+ .components-popover.block-editor-block-list__block-popover { z-index: 29; }
3159
 
3160
+ .components-popover.block-editor-block-list__block-popover .components-popover__content { margin-left: 0 !important; min-width: auto; background: none; border: none; box-shadow: none; overflow-y: visible; }
3161
 
3162
+ .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar, .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__breadcrumb { margin-bottom: 13px; margin-left: -14px; }
 
 
3163
 
3164
+ .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-align="full"] { margin-left: 0; }
3165
 
3166
+ .is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover { opacity: 0; }
3167
 
3168
+ .block-editor-block-list__block .block-list-appender { margin: 14px 0; }
3169
 
3170
  .has-background .block-editor-block-list__block .block-list-appender { margin: 32px 14px; }
3171
 
3228
 
3229
  .block-editor-block-compare__wrapper .block-editor-block-compare__heading { font-size: 1em; font-weight: 400; margin: 0.67em 0; }
3230
 
3231
+ .block-editor-block-mobile-toolbar { display: flex; flex-direction: row; border-right: 1px solid #e2e4e7; }
 
 
3232
 
3233
+ .block-editor-block-mobile-toolbar .block-editor-block-mover__control { width: 36px; height: 36px; border-radius: 4px; padding: 3px; margin: 0; justify-content: center; align-items: center; }
3234
 
3235
+ .block-editor-block-mobile-toolbar .block-editor-block-mover__control .dashicon { margin: auto; }
3236
 
3237
+ .block-editor-block-mobile-toolbar .block-editor-block-mover { display: flex; margin-right: auto; }
3238
 
3239
+ .block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover__control { float: left; }
3240
 
3241
+ @media (min-width: 600px) { .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) .block-editor-block-mover:not(.is-horizontal) { display: block; position: absolute; top: 37px; left: -38px; opacity: 0; background: #fff; border: 1px solid rgba(66, 88, 99, 0.4); border-radius: 4px; transition: box-shadow 0.2s ease-out; } }
3242
 
3243
+ @media (min-width: 600px) and (prefers-reduced-motion: reduce) { .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) .block-editor-block-mover:not(.is-horizontal) { transition-duration: 0s; } }
3244
 
3245
+ @media (min-width: 600px) { .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) .block-editor-block-mover:not(.is-horizontal).is-visible { -webkit-animation: edit-post__fade-in-animation 0.2s ease-out 0s; animation: edit-post__fade-in-animation 0.2s ease-out 0s; -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards; } }
3246
 
3247
+ @media (min-width: 600px) and (prefers-reduced-motion: reduce) { .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) .block-editor-block-mover:not(.is-horizontal).is-visible { -webkit-animation-duration: 1ms; animation-duration: 1ms; } }
3248
 
3249
+ @media (min-width: 600px) { .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control { display: flex; align-items: center; justify-content: center; padding: 0; border: none; width: 28px; height: 24px; color: rgba(14, 28, 46, 0.62); }
3250
+ .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control svg { width: 28px; height: 24px; padding: 2px 5px; }
3251
+ .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control[aria-disabled="true"] { cursor: default; pointer-events: none; color: rgba(14, 28, 46, 0.62); }
3252
+ .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control:focus:not(:disabled) { background-color: transparent; } }
3253
 
3254
+ @media (min-width: 600px) { .block-editor-block-list__block:not([data-align="wide"]):not([data-align="full"]) .block-editor-block-mover:not(.is-horizontal) { margin-top: 0; } }
 
 
 
 
3255
 
3256
  .block-editor-block-mover__control-drag-handle { cursor: move; cursor: -webkit-grab; cursor: grab; fill: currentColor; }
3257
 
3258
+ .block-editor-block-mover__control-drag-handle, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):active, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):focus { box-shadow: none; background: none; color: rgba(10, 24, 41, 0.7); }
3259
 
3260
+ .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):active { cursor: -webkit-grabbing; cursor: grabbing; }
3261
 
3262
  .block-editor-block-mover__description { display: none; }
3263
 
3299
 
3300
  .components-popover.block-editor-block-navigation__popover { z-index: 99998; }
3301
 
3302
+ .block-editor-block-pattern-picker .components-placeholder__instructions { margin-bottom: 0; }
3303
+
3304
+ .block-editor-block-pattern-picker .components-placeholder__fieldset { flex-direction: column; }
3305
+
3306
+ .block-editor-block-pattern-picker.has-many-patterns .components-placeholder__fieldset { max-width: 90%; }
3307
+
3308
+ .block-editor-block-pattern-picker__patterns.block-editor-block-pattern-picker__patterns { display: flex; justify-content: flex-start; flex-direction: row; flex-wrap: wrap; width: 100%; margin: 16px 0; padding: 0; list-style: none; }
3309
+
3310
+ .block-editor-block-pattern-picker__patterns.block-editor-block-pattern-picker__patterns > li { list-style: none; margin: 0 8px 0 0; flex-shrink: 1; max-width: 100px; }
3311
+
3312
+ .block-editor-block-pattern-picker__patterns.block-editor-block-pattern-picker__patterns .block-editor-block-pattern-picker__pattern { padding: 8px; }
3313
+
3314
+ .block-editor-block-pattern-picker__pattern { width: 100%; }
3315
+
3316
+ .block-editor-block-pattern-picker__pattern.components-button.has-icon { justify-content: center; }
3317
+
3318
+ .block-editor-block-pattern-picker__pattern.components-button.has-icon.is-secondary { background-color: #fff; }
3319
+
3320
+ .block-editor-block-pattern-picker__pattern.components-button { height: auto; padding: 0; }
3321
+
3322
+ .block-editor-block-pattern-picker__pattern::before { content: ""; padding-bottom: 100%; }
3323
+
3324
+ .block-editor-block-pattern-picker__pattern:first-child { margin-left: 0; }
3325
+
3326
+ .block-editor-block-pattern-picker__pattern:last-child { margin-right: 0; }
3327
+
3328
  .block-editor-block-preview__container { position: relative; width: 100%; overflow: hidden; }
3329
 
3330
  .block-editor-block-preview__container.is-ready { overflow: visible; }
3333
 
3334
  .block-editor-block-preview__content .block-editor-block-list__layout, .block-editor-block-preview__content .block-editor-block-list__block { padding: 0; }
3335
 
3336
+ .block-editor-block-preview__content .block-editor-block-list__block-edit [data-block] { margin: 0; }
3337
 
3338
  .block-editor-block-preview__content > div section { height: auto; }
3339
 
3363
 
3364
  .block-editor-block-switcher { position: relative; height: 36px; }
3365
 
3366
+ .components-button.block-editor-block-switcher__toggle, .components-button.block-editor-block-switcher__no-switcher-icon { margin: 0; display: block; height: 36px; padding: 3px; }
3367
 
3368
+ .components-button.block-editor-block-switcher__no-switcher-icon { width: 48px; }
3369
 
3370
+ .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon { margin-right: auto; margin-left: auto; }
3371
 
3372
  .components-button.block-editor-block-switcher__no-switcher-icon:disabled { border-radius: 0; opacity: 0.84; }
3373
 
3374
  .components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors { color: #555d66 !important; background: #f3f4f5 !important; }
3375
 
3376
+ .components-button.block-editor-block-switcher__toggle { width: auto; }
3377
 
3378
+ .components-button.block-editor-block-switcher__toggle:active, .components-button.block-editor-block-switcher__toggle:not(:disabled):not([aria-disabled="true"]):hover, .components-button.block-editor-block-switcher__toggle:not([aria-disabled="true"]):focus { outline: none; box-shadow: none; background: none; border: none; }
3379
 
3380
+ .components-button.block-editor-block-switcher__toggle .block-editor-block-icon, .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { width: 42px; height: 30px; position: relative; margin: 0 auto; padding: 3px; display: flex; align-items: center; transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1); }
3381
 
3382
+ @media (prefers-reduced-motion: reduce) { .components-button.block-editor-block-switcher__toggle .block-editor-block-icon, .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { transition-duration: 0s; } }
3383
 
3384
+ .components-button.block-editor-block-switcher__toggle .block-editor-block-icon::after { content: ""; pointer-events: none; display: block; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 5px solid; margin-left: 4px; margin-right: 2px; }
3385
 
3386
+ .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { margin-top: 6px; border-radius: 4px; }
3387
 
3388
+ .components-button.block-editor-block-switcher__toggle[aria-expanded="true"] .block-editor-block-icon, .components-button.block-editor-block-switcher__toggle[aria-expanded="true"] .block-editor-block-switcher__transform, .components-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-icon, .components-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-switcher__transform, .components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon, .components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform { transform: translateY(-36px); }
3389
 
3390
+ .components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon, .components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform { box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; outline: 2px solid transparent; }
3391
 
3392
+ .components-popover.block-editor-block-switcher__popover .components-popover__content { min-width: 300px; max-width: calc(340px * 2); display: flex; background: #fff; box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); }
3393
 
3394
  .block-editor-block-switcher__popover .components-popover__content .block-editor-block-switcher__container { min-width: 300px; max-width: 340px; width: 50%; }
3395
 
3415
 
3416
  .block-editor-block-toolbar .components-toolbar { border: 0; border-top: 1px solid #b5bcc2; border-bottom: 1px solid #b5bcc2; border-right: 1px solid #b5bcc2; line-height: 0; }
3417
 
3418
+ .has-fixed-toolbar .block-editor-block-toolbar { box-shadow: none; border-left: 1px solid #e2e4e7; }
3419
+
3420
+ .has-fixed-toolbar .block-editor-block-toolbar .components-toolbar { border-color: #e2e4e7; }
3421
+
3422
+ .block-editor-block-toolbar__slot { display: inline-block; line-height: 0; }
3423
+
3424
+ @supports ((position: -webkit-sticky) or (position: sticky)) { .block-editor-block-toolbar__slot { display: inline-flex; } }
3425
+
3426
+ .block-editor-block-types-list { list-style: none; padding: 4px; margin-left: -4px; margin-right: -4px; overflow: hidden; display: flex; flex-wrap: wrap; }
3427
+
3428
+ .block-editor-button-block-appender { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px; outline: 1px dashed #8d96a0; width: 100%; height: auto; color: #555d66; background: rgba(237, 239, 240, 0.8); }
3429
+
3430
+ .block-editor-button-block-appender:hover, .block-editor-button-block-appender:focus { outline: 1px dashed #555d66; color: #191e23; }
3431
+
3432
+ .block-editor-button-block-appender:active { outline: 1px dashed #191e23; color: #191e23; }
3433
+
3434
+ .is-dark-theme .block-editor-button-block-appender { background: rgba(50, 55, 60, 0.7); color: #f8f9f9; }
3435
+
3436
+ .is-dark-theme .block-editor-button-block-appender:hover, .is-dark-theme .block-editor-button-block-appender:focus { outline: 1px dashed #fff; }
3437
+
3438
+ .block-editor-color-gradient-control__button-tabs { display: block; }
3439
+
3440
+ .block-editor-panel-color-gradient-settings .component-color-indicator { vertical-align: text-bottom; }
3441
+
3442
+ .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator { display: inline-block; }
3443
+
3444
+ .block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator { display: none; }
3445
+
3446
+ .block-editor-contrast-checker > .components-notice { margin: 0; }
3447
+
3448
+ .block-editor-default-block-appender { clear: both; margin-left: auto; margin-right: auto; position: relative; }
3449
+
3450
+ .block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover { outline: 1px solid transparent; }
3451
+
3452
+ .block-editor-default-block-appender textarea.block-editor-default-block-appender__content { font-family: "Noto Serif", serif; font-size: 16px; border: none; background: none; box-shadow: none; display: block; cursor: text; width: 100%; outline: 1px solid transparent; transition: 0.2s outline; resize: none; margin-top: 28px; margin-bottom: 28px; padding: 0 50px 0 14px; color: rgba(14, 28, 46, 0.62); }
3453
+
3454
+ @media (prefers-reduced-motion: reduce) { .block-editor-default-block-appender textarea.block-editor-default-block-appender__content { transition-duration: 0s; } }
3455
+
3456
+ .is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content { color: rgba(255, 255, 255, 0.65); }
3457
+
3458
+ .block-editor-default-block-appender .components-drop-zone__content-icon { display: none; }
3459
+
3460
+ .block-editor-default-block-appender__content { min-height: 28px; line-height: 1.8; }
3461
+
3462
+ .block-editor-block-list__empty-block-inserter, .block-editor-default-block-appender .block-editor-inserter { position: absolute; top: 0; }
3463
+
3464
+ .block-editor-block-list__empty-block-inserter .components-button.has-icon, .block-editor-default-block-appender .block-editor-inserter .components-button.has-icon { width: 28px; height: 28px; margin-right: 12px; padding: 0; }
3465
+
3466
+ .block-editor-block-list__empty-block-inserter .components-button svg, .block-editor-default-block-appender .block-editor-inserter .components-button svg { display: block; margin: auto; }
3467
+
3468
+ .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle, .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle { margin-right: 0; }
3469
+
3470
+ .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover, .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover { box-shadow: none; }
3471
+
3472
+ .block-editor-block-list__empty-block-inserter, .block-editor-default-block-appender .block-editor-inserter { right: 8px; }
3473
+
3474
+ @media (min-width: 600px) { .block-editor-block-list__empty-block-inserter, .block-editor-default-block-appender .block-editor-inserter { display: flex; align-items: center; height: 100%; left: -44px; right: auto; } }
3475
+
3476
+ .block-editor-block-list__empty-block-inserter:disabled, .block-editor-default-block-appender .block-editor-inserter:disabled { display: none; }
3477
+
3478
+ .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle, .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle { border-radius: 50%; width: 28px; height: 28px; padding: 0; }
3479
+
3480
+ .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover), .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover) { color: rgba(10, 24, 41, 0.7); }
3481
+
3482
+ .is-dark-theme .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover), .is-dark-theme .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover) { color: rgba(255, 255, 255, 0.75); }
3483
+
3484
+ .block-editor-link-control__search { position: relative; min-width: 360px; }
3485
+
3486
+ .block-editor-link-control__search .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"] { width: calc(100% - 32px); display: block; padding: 11px 16px; margin: 16px; padding-right: 38px; position: relative; z-index: 1; border: 1px solid #e1e1e1; border-radius: 4px; /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: 16px; }
3487
+
3488
+ @media (min-width: 600px) { .block-editor-link-control__search .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"] { font-size: 13px; } }
3489
+
3490
+ .block-editor-link-control__search .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"]:focus { color: #191e23; border-color: #007cba; box-shadow: 0 0 0 1px #007cba; outline: 2px solid transparent; }
3491
+
3492
+ .block-editor-link-control__search-reset { position: absolute; top: 19px; right: 19px; z-index: 10; }
3493
+
3494
+ .block-editor-link-control__search-results-wrapper { position: relative; margin-top: -15px; }
3495
+
3496
+ .block-editor-link-control__search-results-wrapper::before, .block-editor-link-control__search-results-wrapper::after { content: ""; position: absolute; left: -1px; right: 16px; display: block; pointer-events: none; z-index: 100; }
3497
+
3498
+ .block-editor-link-control__search-results-wrapper::before { height: 8px; top: 0; bottom: auto; background: linear-gradient(to bottom, white 0%, rgba(255, 255, 255, 0) 100%); }
3499
+
3500
+ .block-editor-link-control__search-results-wrapper::after { height: 16px; bottom: 0; top: auto; background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 100%); }
3501
+
3502
+ .block-editor-link-control__search-results { margin: 0; padding: 8px 16px 16px; max-height: 200px; overflow-y: scroll; }
3503
+
3504
+ .block-editor-link-control__search-results.is-loading { opacity: 0.2; }
3505
+
3506
+ .block-editor-link-control__search-item { position: relative; display: flex; align-items: center; font-size: 13px; cursor: pointer; background: #fff; width: 100%; border: none; text-align: left; padding: 10px 15px; border-radius: 5px; height: auto; }
3507
+
3508
+ .block-editor-link-control__search-item:hover, .block-editor-link-control__search-item:focus { background-color: #e9e9e9; }
3509
+
3510
+ .block-editor-link-control__search-item.is-selected { background: #f2f2f2; }
3511
+
3512
+ .block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type { background: #fff; }
3513
+
3514
+ .block-editor-link-control__search-item.is-current { background: transparent; border: 0; width: 100%; cursor: default; padding: 16px; padding-left: 24px; }
3515
+
3516
+ .block-editor-link-control__search-item .block-editor-link-control__search-item-header { display: block; margin-right: 24px; }
3517
+
3518
+ .block-editor-link-control__search-item .block-editor-link-control__search-item-icon { margin-right: 1em; min-width: 24px; }
3519
+
3520
+ .block-editor-link-control__search-item .block-editor-link-control__search-item-info, .block-editor-link-control__search-item .block-editor-link-control__search-item-title { text-overflow: ellipsis; max-width: 230px; overflow: hidden; white-space: nowrap; }
3521
+
3522
+ .block-editor-link-control__search-item .block-editor-link-control__search-item-title { display: block; margin-bottom: 0.2em; font-weight: 500; }
3523
+
3524
+ .block-editor-link-control__search-item .block-editor-link-control__search-item-title mark { font-weight: 700; color: #000; background-color: transparent; }
3525
+
3526
+ .block-editor-link-control__search-item .block-editor-link-control__search-item-title span { font-weight: normal; }
3527
+
3528
+ .block-editor-link-control__search-item .block-editor-link-control__search-item-info { display: block; color: #999; font-size: 0.9em; line-height: 1.3; }
3529
+
3530
+ .block-editor-link-control__search-item .block-editor-link-control__search-item-type { display: block; padding: 3px 8px; margin-left: auto; font-size: 0.9em; background-color: #f3f4f5; border-radius: 2px; }
3531
+
3532
+ .block-editor-link-control__search-results div[role="menu"] > .block-editor-link-control__search-item.block-editor-link-control__search-item { padding: 10px; }
3533
+
3534
+ .block-editor-link-control__settings { border-top: 1px solid #e1e1e1; margin: 0; padding: 16px 24px; }
3535
+
3536
+ .block-editor-link-control__settings :last-child { margin-bottom: 0; }
3537
+
3538
+ .block-editor-link-control__setting { margin-bottom: 16px; }
3539
+
3540
+ .block-editor-link-control__setting :last-child { margin-bottom: 0; }
3541
+
3542
+ .block-editor-link-control .block-editor-link-control__search-input .components-spinner { display: block; z-index: 100; float: none; }
3543
+
3544
+ .block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner { position: absolute; top: 27px; left: auto; right: 60px; bottom: 0; }
3545
+
3546
+ .block-editor-link-control__search-item-action { margin-left: auto; flex-shrink: 0; }
3547
+
3548
+ .block-editor-inner-blocks.has-overlay::after { content: ""; position: absolute; top: -14px; right: -14px; bottom: -14px; left: -14px; z-index: 60; }
3549
+
3550
+ [data-align="full"] > .block-editor-block-list__block-edit > [data-block] .has-overlay::after { right: 0; left: 0; }
3551
+
3552
+ .block-editor-inserter { display: inline-block; background: none; border: none; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; line-height: 1.4; }
3553
+
3554
+ @media (min-width: 782px) { .block-editor-inserter { position: relative; } }
3555
+
3556
+ @media (min-width: 782px) { .block-editor-inserter__popover > .components-popover__content { overflow-y: visible; height: 432px; } }
3557
+
3558
+ .block-editor-inserter__toggle { display: inline-flex; align-items: center; color: #555d66; background: none; cursor: pointer; border: none; outline: none; transition: color 0.2s ease; }
3559
+
3560
+ @media (prefers-reduced-motion: reduce) { .block-editor-inserter__toggle { transition-duration: 0s; } }
3561
+
3562
+ .block-editor-inserter__menu { height: 100%; display: flex; width: auto; }
3563
+
3564
+ @media (min-width: 782px) { .block-editor-inserter__menu { width: 400px; position: relative; }
3565
+ .block-editor-inserter__menu.has-help-panel { width: 700px; } }
3566
+
3567
+ .block-editor-inserter__main-area { width: auto; display: flex; flex-direction: column; height: 100%; }
3568
+
3569
+ @media (min-width: 782px) { .block-editor-inserter__main-area { width: 400px; position: relative; } }
3570
+
3571
+ .block-editor-inserter__inline-elements { margin-top: -1px; }
3572
+
3573
+ .block-editor-inserter__menu.is-bottom::after { border-bottom-color: #fff; }
3574
+
3575
+ .components-popover.block-editor-inserter__popover { z-index: 99998; }
3576
+
3577
+ .components-popover input[type="search"].block-editor-inserter__search { display: block; margin: 16px; padding: 11px 16px; position: relative; z-index: 1; border-radius: 4px; /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: 16px; }
3578
+
3579
+ @media (min-width: 600px) { .components-popover input[type="search"].block-editor-inserter__search { font-size: 13px; } }
3580
+
3581
+ .components-popover input[type="search"].block-editor-inserter__search:focus { color: #191e23; border-color: #007cba; box-shadow: 0 0 0 1px #007cba; outline: 2px solid transparent; }
3582
+
3583
+ .block-editor-inserter__results { flex-grow: 1; overflow: auto; position: relative; z-index: 1; padding: 0 16px 16px 16px; }
3584
+
3585
+ .block-editor-inserter__results:focus { outline: 1px dotted #555d66; }
3586
+
3587
+ @media (min-width: 782px) { .block-editor-inserter__results { height: 394px; } }
3588
+
3589
+ .block-editor-inserter__results [role="presentation"] + .components-panel__body { border-top: none; }
3590
+
3591
+ .block-editor-inserter__popover .block-editor-block-types-list { margin: 0 -8px; }
3592
+
3593
+ .block-editor-inserter__reusable-blocks-panel { position: relative; text-align: right; }
3594
+
3595
+ .block-editor-inserter__manage-reusable-blocks { margin: 16px 0 0 16px; }
3596
+
3597
+ .block-editor-inserter__no-results { font-style: italic; padding: 24px; text-align: center; }
3598
+
3599
+ .block-editor-inserter__child-blocks { padding: 0 16px; }
3600
+
3601
+ .block-editor-inserter__parent-block-header { display: flex; align-items: center; }
3602
+
3603
+ .block-editor-inserter__parent-block-header h2 { font-size: 13px; }
3604
+
3605
+ .block-editor-inserter__parent-block-header .block-editor-block-icon { margin-right: 8px; }
3606
+
3607
+ .block-editor-inserter__menu-help-panel { display: none; border-left: 1px solid #e2e4e7; width: 300px; height: 100%; padding: 20px; overflow-y: auto; }
3608
+
3609
+ @media (min-width: 782px) { .block-editor-inserter__menu-help-panel { display: flex; flex-direction: column; } }
3610
+
3611
+ .block-editor-inserter__menu-help-panel .block-editor-block-card { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #e2e4e7; -webkit-animation: edit-post__fade-in-animation 0.2s ease-out 0s; animation: edit-post__fade-in-animation 0.2s ease-out 0s; -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards; }
3612
+
3613
+ @media (prefers-reduced-motion: reduce) { .block-editor-inserter__menu-help-panel .block-editor-block-card { -webkit-animation-duration: 1ms; animation-duration: 1ms; } }
3614
+
3615
+ .block-editor-inserter__menu-help-panel .block-editor-inserter__preview { display: flex; flex-grow: 2; }
3616
+
3617
+ .block-editor-inserter__menu-help-panel-no-block { display: flex; height: 100%; flex-direction: column; -webkit-animation: edit-post__fade-in-animation 0.2s ease-out 0s; animation: edit-post__fade-in-animation 0.2s ease-out 0s; -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards; }
3618
+
3619
+ @media (prefers-reduced-motion: reduce) { .block-editor-inserter__menu-help-panel-no-block { -webkit-animation-duration: 1ms; animation-duration: 1ms; } }
3620
+
3621
+ .block-editor-inserter__menu-help-panel-no-block .block-editor-inserter__menu-help-panel-no-block-text { flex-grow: 1; }
3622
+
3623
+ .block-editor-inserter__menu-help-panel-no-block .block-editor-inserter__menu-help-panel-no-block-text h4 { font-size: 18px; }
3624
+
3625
+ .block-editor-inserter__menu-help-panel-no-block .components-notice { margin: 0; }
3626
+
3627
+ .block-editor-inserter__menu-help-panel-no-block h4 { margin-top: 0; }
3628
+
3629
+ .block-editor-inserter__menu-help-panel-hover-area { flex-grow: 1; margin-top: 20px; padding: 20px; border: 1px dotted #e2e4e7; display: flex; align-items: center; text-align: center; }
3630
+
3631
+ .block-editor-inserter__menu-help-panel-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
3632
+
3633
+ .block-editor-inserter__preview-content { border: 1px solid #e2e4e7; border-radius: 4px; min-height: 150px; display: -ms-grid; display: grid; flex-grow: 2; }
3634
+
3635
+ .block-editor-inserter__preview-content .block-editor-block-preview__container { margin-right: 0; margin-left: 0; padding: 10px; }
3636
+
3637
+ .block-editor-inserter__preview-content-missing { flex: 1; display: flex; justify-content: center; color: #606a73; border: 1px solid #e2e4e7; border-radius: 4px; align-items: center; }
3638
+
3639
+ .block-editor-block-types-list__list-item { display: block; width: 33.33%; padding: 0; margin: 0 0 12px; }
3640
+
3641
+ .components-button.block-editor-block-types-list__item { display: flex; flex-direction: column; width: 100%; font-size: 13px; color: #32373c; padding: 0 4px; align-items: stretch; justify-content: center; cursor: pointer; background: transparent; word-break: break-word; border-radius: 4px; border: 1px solid transparent; transition: all 0.05s ease-in-out; position: relative; height: auto; }
3642
+
3643
+ @media (prefers-reduced-motion: reduce) { .components-button.block-editor-block-types-list__item { transition-duration: 0s; } }
3644
+
3645
+ .components-button.block-editor-block-types-list__item:disabled { opacity: 0.6; cursor: default; }
3646
+
3647
+ .components-button.block-editor-block-types-list__item:not(:disabled):hover::before { content: ""; display: block; background: #f3f4f5; color: #191e23; position: absolute; z-index: -1; border-radius: 4px; top: 0; right: 0; bottom: 0; left: 0; }
3648
+
3649
+ .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-icon, .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title { color: inherit; }
3650
+
3651
+ .components-button.block-editor-block-types-list__item:not(:disabled):active, .components-button.block-editor-block-types-list__item:not(:disabled):focus { position: relative; color: #191e23; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #00a0d2; outline: 2px solid transparent; background: transparent; }
3652
+
3653
+ .components-button.block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-icon, .components-button.block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-title, .components-button.block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-icon, .components-button.block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-title { color: inherit; }
3654
+
3655
+ .components-button.block-editor-block-types-list__item:not(:disabled).is-active { color: #191e23; box-shadow: inset 0 0 0 2px #555d66; outline: 2px solid transparent; outline-offset: -2px; }
3656
+
3657
+ .components-button.block-editor-block-types-list__item:not(:disabled).is-active:focus { color: #191e23; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #00a0d2, inset 0 0 0 2px #555d66; outline: 4px solid transparent; outline-offset: -4px; }
3658
+
3659
+ .block-editor-block-types-list__item-icon { padding: 12px 20px; border-radius: 4px; color: #555d66; transition: all 0.05s ease-in-out; }
3660
+
3661
+ @media (prefers-reduced-motion: reduce) { .block-editor-block-types-list__item-icon { transition-duration: 0s; } }
3662
+
3663
+ .block-editor-block-types-list__item-icon .block-editor-block-icon { margin-left: auto; margin-right: auto; }
3664
+
3665
+ .block-editor-block-types-list__item-icon svg { transition: all 0.15s ease-out; }
3666
+
3667
+ @media (prefers-reduced-motion: reduce) { .block-editor-block-types-list__item-icon svg { transition-duration: 0s; } }
3668
+
3669
+ .block-editor-block-types-list__item-title { padding: 4px 2px 8px; }
3670
+
3671
+ .modal-open .block-editor-media-replace-flow__options { display: none; }
3672
+
3673
+ .block-editor-media-replace-flow__indicator { margin-left: 4px; }
3674
+
3675
+ .block-editor-media-replace-flow__indicator::after { content: ""; pointer-events: none; display: block; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 5px solid; margin-left: 4px; margin-right: 2px; }
3676
+
3677
+ .block-editor-media-flow__url-input { padding: 0 15px; max-width: 255px; padding-bottom: 10px; }
3678
+
3679
+ .block-editor-media-flow__url-input input { max-width: 180px; }
3680
+
3681
+ .block-editor-media-replace-flow__link-viewer .components-external-link__icon { display: none; }
3682
+
3683
+ .block-editor-media-replace-flow__link-viewer .components-visually-hidden { position: initial; }
3684
+
3685
+ .block-editor-media-replace-flow__link-viewer .components-button { flex-shrink: 0; }
3686
+
3687
+ .block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button { margin-bottom: 0; }
3688
+
3689
+ .block-editor-media-placeholder__url-input-form { display: flex; }
3690
+
3691
+ .block-editor-media-placeholder__url-input-form input[type="url"].block-editor-media-placeholder__url-input-field { width: 100%; flex-grow: 1; border: none; border-radius: 0; margin: 2px; }
3692
+
3693
+ @media (min-width: 600px) { .block-editor-media-placeholder__url-input-form input[type="url"].block-editor-media-placeholder__url-input-field { width: 300px; } }
3694
+
3695
+ .block-editor-media-placeholder__url-input-submit-button { flex-shrink: 1; }
3696
+
3697
+ .block-editor-media-placeholder__button { margin-bottom: 0.5rem; }
3698
+
3699
+ .block-editor-media-placeholder__button .dashicon { vertical-align: middle; margin-bottom: 3px; }
3700
+
3701
+ .block-editor-media-placeholder__button:hover { color: #23282d; }
3702
+
3703
+ .block-editor-media-placeholder__cancel-button.is-link { margin: 1em; display: block; }
3704
+
3705
+ .block-editor-media-placeholder.is-appender { min-height: 100px; outline: 1px dashed #8d96a0; }
3706
+
3707
+ .block-editor-media-placeholder.is-appender:hover { outline: 1px dashed #555d66; cursor: pointer; }
3708
+
3709
+ .is-dark-theme .block-editor-media-placeholder.is-appender:hover { outline: 1px dashed #fff; }
3710
+
3711
+ .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button { margin-right: 4px; }
3712
+
3713
+ .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button.components-button:hover, .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button.components-button:focus { box-shadow: none; border: 1px solid #555d66; }
3714
+
3715
+ .block-editor-multi-selection-inspector__card { display: flex; align-items: flex-start; padding: 16px; }
3716
+
3717
+ .block-editor-multi-selection-inspector__card-content { flex-grow: 1; }
3718
+
3719
+ .block-editor-multi-selection-inspector__card-title { font-weight: 500; margin-bottom: 5px; }
3720
+
3721
+ .block-editor-multi-selection-inspector__card-description { font-size: 13px; }
3722
+
3723
+ .block-editor-multi-selection-inspector__card .block-editor-block-icon { margin-left: -2px; margin-right: 10px; padding: 0 3px; width: 36px; height: 24px; }
3724
+
3725
+ .block-editor .block-editor-plain-text { box-shadow: none; font-family: inherit; font-size: inherit; color: inherit; line-height: inherit; border: none; padding: 0; margin: 0; width: 100%; }
3726
+
3727
+ .block-editor-responsive-block-control { margin-bottom: 28px; border-bottom: 1px solid #d7dade; padding-bottom: 14px; }
3728
+
3729
+ .block-editor-responsive-block-control:last-child { padding-bottom: 0; border-bottom: 0; }
3730
+
3731
+ .block-editor-responsive-block-control__title { margin: 0; margin-bottom: 0.6em; margin-left: -3px; }
3732
+
3733
+ .block-editor-responsive-block-control__label { font-weight: 600; margin-bottom: 0.6em; margin-left: -3px; }
3734
+
3735
+ .block-editor-responsive-block-control__inner { margin-left: -1px; }
3736
+
3737
+ .block-editor-responsive-block-control__toggle { margin-left: 1px; }
3738
+
3739
+ .block-editor-responsive-block-control .components-base-control__help { border: 0; clip: rect(1px, 1px, 1px, 1px); -webkit-clip-path: inset(50%); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
3740
+
3741
+ .block-editor-format-toolbar .components-dropdown-menu__toggle .components-dropdown-menu__indicator::after { margin: 7px; }
3742
+
3743
+ .block-editor-rich-text__editable > p:first-child { margin-top: 0; }
3744
+
3745
+ .block-editor-rich-text__editable a { color: #007fac; }
3746
+
3747
+ .block-editor-rich-text__editable code { padding: 2px; border-radius: 2px; color: #23282d; background: #f3f4f5; font-family: Menlo, Consolas, monaco, monospace; font-size: inherit; }
3748
+
3749
+ .block-editor-rich-text__editable:focus { outline: none; }
3750
+
3751
+ .block-editor-rich-text__editable:focus *[data-rich-text-format-boundary] { border-radius: 2px; }
3752
+
3753
+ .block-editor-rich-text__editable [data-rich-text-placeholder] { pointer-events: none; }
3754
+
3755
+ .block-editor-rich-text__editable [data-rich-text-placeholder]::after { content: attr(data-rich-text-placeholder); opacity: 0.62; }
3756
+
3757
+ .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus) [data-rich-text-placeholder]::after { display: none; }
3758
+
3759
+ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before { opacity: 0.8; }
3760
+
3761
+ .components-popover.block-editor-rich-text__inline-format-toolbar { z-index: 99998; }
3762
+
3763
+ .components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content { min-width: auto; margin-bottom: 6px; }
3764
+
3765
+ .components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar { border: none; }
3766
+
3767
+ .block-editor-skip-to-selected-block { position: absolute; top: -9999em; }
3768
+
3769
+ .block-editor-skip-to-selected-block:focus { height: auto; width: auto; display: block; font-size: 14px; font-weight: 600; padding: 15px 23px 14px; background: #f1f1f1; color: #11a0d2; line-height: normal; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); text-decoration: none; outline: none; z-index: 100000; }
3770
+
3771
+ body.admin-color-sunrise .block-editor-skip-to-selected-block:focus { color: #c8b03c; }
3772
+
3773
+ body.admin-color-ocean .block-editor-skip-to-selected-block:focus { color: #a89d8a; }
3774
+
3775
+ body.admin-color-midnight .block-editor-skip-to-selected-block:focus { color: #77a6b9; }
3776
+
3777
+ body.admin-color-ectoplasm .block-editor-skip-to-selected-block:focus { color: #c77430; }
3778
+
3779
+ body.admin-color-coffee .block-editor-skip-to-selected-block:focus { color: #9fa47b; }
3780
+
3781
+ body.admin-color-blue .block-editor-skip-to-selected-block:focus { color: #d9ab59; }
3782
+
3783
+ body.admin-color-light .block-editor-skip-to-selected-block:focus { color: #c75726; }
3784
+
3785
+ .block-editor-tool-selector__help { padding: 16px; border-top: 1px solid #e2e4e7; color: #6c7781; }
3786
+
3787
+ .block-editor-block-list__block .block-editor-url-input, .components-popover .block-editor-url-input, .block-editor-url-input { flex-grow: 1; position: relative; padding: 1px; }
3788
+
3789
+ .block-editor-block-list__block .block-editor-url-input input[type="text"], .components-popover .block-editor-url-input input[type="text"], .block-editor-url-input input[type="text"] { width: 100%; padding: 8px; border: none; border-radius: 0; margin-left: 0; margin-right: 0; /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: 16px; }
3790
+
3791
+ @media (min-width: 600px) { .block-editor-block-list__block .block-editor-url-input input[type="text"], .components-popover .block-editor-url-input input[type="text"], .block-editor-url-input input[type="text"] { width: 300px; } }
3792
+
3793
+ @media (min-width: 600px) { .block-editor-block-list__block .block-editor-url-input input[type="text"], .components-popover .block-editor-url-input input[type="text"], .block-editor-url-input input[type="text"] { font-size: 13px; } }
3794
+
3795
+ .block-editor-block-list__block .block-editor-url-input input[type="text"]::-ms-clear, .components-popover .block-editor-url-input input[type="text"]::-ms-clear, .block-editor-url-input input[type="text"]::-ms-clear { display: none; }
3796
+
3797
+ .block-editor-block-list__block .block-editor-url-input.has-border input[type="text"], .components-popover .block-editor-url-input.has-border input[type="text"], .block-editor-url-input.has-border input[type="text"] { border: 1px solid #555d66; border-radius: 4px; }
3798
+
3799
+ .block-editor-block-list__block .block-editor-url-input.is-full-width, .components-popover .block-editor-url-input.is-full-width, .block-editor-url-input.is-full-width { width: 100%; }
3800
+
3801
+ .block-editor-block-list__block .block-editor-url-input.is-full-width input[type="text"], .components-popover .block-editor-url-input.is-full-width input[type="text"], .block-editor-url-input.is-full-width input[type="text"] { width: 100%; }
3802
+
3803
+ .block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions, .components-popover .block-editor-url-input.is-full-width__suggestions, .block-editor-url-input.is-full-width__suggestions { width: 100%; }
3804
+
3805
+ .block-editor-block-list__block .block-editor-url-input .components-spinner, .components-popover .block-editor-url-input .components-spinner, .block-editor-url-input .components-spinner { position: absolute; right: 8px; bottom: 17px; margin: 0; }
3806
+
3807
+ .block-editor-url-input__suggestions { max-height: 200px; transition: all 0.15s ease-in-out; padding: 4px 0; width: 302px; overflow-y: auto; }
3808
+
3809
+ @media (prefers-reduced-motion: reduce) { .block-editor-url-input__suggestions { transition-duration: 0s; } }
3810
+
3811
+ .block-editor-url-input__suggestions, .block-editor-url-input .components-spinner { display: none; }
3812
+
3813
+ @media (min-width: 600px) { .block-editor-url-input__suggestions, .block-editor-url-input .components-spinner { display: inherit; } }
3814
+
3815
+ .block-editor-url-input__suggestion { padding: 4px 8px; color: #6c7781; display: block; font-size: 13px; cursor: pointer; background: #fff; width: 100%; border: none; text-align: left; border: none; box-shadow: none; }
3816
+
3817
+ .block-editor-url-input__suggestion:hover { background: #e2e4e7; }
3818
+
3819
+ .block-editor-url-input__suggestion:focus, .block-editor-url-input__suggestion.is-selected { background: #00719e; color: #fff; outline: none; }
3820
+
3821
+ body.admin-color-sunrise .block-editor-url-input__suggestion:focus, body.admin-color-sunrise .block-editor-url-input__suggestion.is-selected { background: #b2723f; }
3822
+
3823
+ body.admin-color-ocean .block-editor-url-input__suggestion:focus, body.admin-color-ocean .block-editor-url-input__suggestion.is-selected { background: #8b9d8a; }
3824
+
3825
+ body.admin-color-midnight .block-editor-url-input__suggestion:focus, body.admin-color-midnight .block-editor-url-input__suggestion.is-selected { background: #bf4139; }
3826
+
3827
+ body.admin-color-ectoplasm .block-editor-url-input__suggestion:focus, body.admin-color-ectoplasm .block-editor-url-input__suggestion.is-selected { background: #8e9b49; }
3828
+
3829
+ body.admin-color-coffee .block-editor-url-input__suggestion:focus, body.admin-color-coffee .block-editor-url-input__suggestion.is-selected { background: #a58d77; }
3830
+
3831
+ body.admin-color-blue .block-editor-url-input__suggestion:focus, body.admin-color-blue .block-editor-url-input__suggestion.is-selected { background: #6f99ad; }
3832
+
3833
+ body.admin-color-light .block-editor-url-input__suggestion:focus, body.admin-color-light .block-editor-url-input__suggestion.is-selected { background: #00719e; }
3834
+
3835
+ .components-toolbar > .block-editor-url-input__button { position: inherit; }
3836
+
3837
+ .block-editor-url-input__button .block-editor-url-input__back { margin-right: 4px; overflow: visible; }
3838
+
3839
+ .block-editor-url-input__button .block-editor-url-input__back::after { content: ""; position: absolute; display: block; width: 1px; height: 24px; right: -1px; background: #e2e4e7; }
3840
+
3841
+ .block-editor-url-input__button-modal { box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); border: 1px solid #e2e4e7; background: #fff; }
3842
+
3843
+ .block-editor-url-input__button-modal-line { display: flex; flex-direction: row; flex-grow: 1; flex-shrink: 1; min-width: 0; align-items: flex-start; }
3844
+
3845
+ .block-editor-url-input__button-modal-line .components-button { flex-shrink: 0; width: 36px; height: 36px; }
3846
+
3847
+ .block-editor-url-popover__additional-controls { border-top: 1px solid #e2e4e7; }
3848
+
3849
+ .block-editor-url-popover__additional-controls > div[role="menu"] .components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary) > svg { box-shadow: none; }
3850
+
3851
+ .block-editor-url-popover__additional-controls div[role="menu"] > .components-button { padding-left: 2px; }
3852
+
3853
+ .block-editor-url-popover__row { display: flex; }
3854
+
3855
+ .block-editor-url-popover__row > :not(.block-editor-url-popover__settings-toggle) { flex-grow: 1; }
3856
+
3857
+ .block-editor-url-popover .components-button.has-icon { padding: 3px; }
3858
+
3859
+ .block-editor-url-popover .components-button.has-icon > svg { padding: 5px; border-radius: 4px; height: 30px; width: 30px; }
3860
+
3861
+ .block-editor-url-popover .components-button.has-icon:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover { box-shadow: none; }
3862
+
3863
+ .block-editor-url-popover .components-button.has-icon:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover > svg { color: #555d66; box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; }
3864
+
3865
+ .block-editor-url-popover .components-button.has-icon:not(:disabled):focus { box-shadow: none; }
3866
+
3867
+ .block-editor-url-popover .components-button.has-icon:not(:disabled):focus > svg { box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; outline: 2px solid transparent; }
3868
+
3869
+ .block-editor-url-popover__settings-toggle { flex-shrink: 0; border-radius: 0; border-left: 1px solid #e2e4e7; margin-left: 1px; }
3870
+
3871
+ .block-editor-url-popover__settings-toggle[aria-expanded="true"] .dashicon { transform: rotate(180deg); }
3872
+
3873
+ .block-editor-url-popover__input-container .components-base-control:last-child, .block-editor-url-popover__input-container .components-base-control:last-child .components-base-control__field { margin-bottom: 0; }
3874
+
3875
+ .block-editor-url-popover__settings { display: block; padding: 16px; border-top: 1px solid #e2e4e7; }
3876
+
3877
+ .block-editor-url-popover__link-editor, .block-editor-url-popover__link-viewer { display: flex; }
3878
+
3879
+ .block-editor-url-popover__link-editor .block-editor-url-input .components-base-control__field, .block-editor-url-popover__link-viewer .block-editor-url-input .components-base-control__field { margin-bottom: 0; }
3880
+
3881
+ .block-editor-url-popover__link-editor .block-editor-url-input .components-spinner, .block-editor-url-popover__link-viewer .block-editor-url-input .components-spinner { bottom: 9px; }
3882
+
3883
+ .block-editor-url-popover__link-viewer-url { margin: 7px; flex-grow: 1; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 150px; max-width: 500px; }
3884
+
3885
+ .block-editor-url-popover__link-viewer-url.has-invalid-link { color: #d94f4f; }
3886
+
3887
+ .block-editor-warning { display: flex; flex-direction: row; justify-content: space-between; flex-wrap: nowrap; background-color: #fff; border: 1px solid #e2e4e7; text-align: left; padding: 10px 14px 14px; }
3888
+
3889
+ .is-selected .block-editor-warning { border-color: rgba(66, 88, 99, 0.4); }
3890
+
3891
+ @media (min-width: 600px) { .is-selected .block-editor-warning { border-left-color: transparent; } }
3892
+
3893
+ .is-dark-theme .is-selected .block-editor-warning { border-color: rgba(255, 255, 255, 0.45); }
3894
+
3895
+ .block-editor-warning .block-editor-warning__message { line-height: 1.4; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; margin: 1em 0; }
3896
+
3897
+ .block-editor-warning p.block-editor-warning__message.block-editor-warning__message { min-height: auto; }
3898
+
3899
+ .block-editor-warning .block-editor-warning__contents { display: flex; flex-direction: row; justify-content: space-between; flex-wrap: wrap; align-items: baseline; width: 100%; }
3900
+
3901
+ .block-editor-warning .block-editor-warning__actions { display: flex; }
3902
+
3903
+ .block-editor-warning .block-editor-warning__action { margin: 0 6px 0 0; }
3904
+
3905
+ .block-editor-warning__secondary { margin: 5px 0 0 -4px; height: 36px; }
3906
+
3907
+ .block-editor-warning__secondary .components-button.has-icon { width: auto; padding: 8px 2px; }
3908
+
3909
+ @media (min-width: 600px) { .block-editor-warning__secondary { margin-left: 4px; }
3910
+ .block-editor-warning__secondary .components-button.has-icon { padding: 8px 4px; } }
3911
+
3912
+ .block-editor-warning__secondary .components-button svg { transform: rotate(90deg); }
3913
+
3914
+ .block-editor-writing-flow { display: flex; flex-direction: column; }
3915
+
3916
+ .block-editor-writing-flow__click-redirect { cursor: text; }
3917
+
3918
+ .html-anchor-control .components-external-link { display: block; margin-top: 8px; }
3919
+
3920
+ /** Colors */
3921
+ /** Breakpoints & Media Queries */
3922
+ /** Colors */
3923
+ /** Often re-used variables */
3924
+ /** Breakpoint mixins */
3925
+ /** Long content fade mixin Creates a fading overlay to signify that the content is longer than the space allows. */
3926
+ /** Button states and focus styles */
3927
+ /** Applies editor left position to the selector passed as argument */
3928
+ /** Styles that are reused verbatim in a few places */
3929
+ /** Allows users to opt-out of animations via OS-level preferences. */
3930
+ /** Reset default styles for JavaScript UI based pages. This is a WP-admin agnostic reset */
3931
+ /** Reset the WP Admin page styles for Gutenberg-like pages. */
3932
+ .wp-block-audio figcaption { margin-top: 0.5em; margin-bottom: 1em; }
3933
+
3934
+ .wp-block-audio audio { width: 100%; min-width: 300px; }
3935
+
3936
+ .wp-block-button { color: #fff; }
3937
+
3938
+ .wp-block-button.aligncenter { text-align: center; }
3939
+
3940
+ .wp-block-button.alignright { /*rtl:ignore*/ text-align: right; }
3941
+
3942
+ .wp-block-button__link { background-color: #32373c; border: none; border-radius: 28px; box-shadow: none; color: inherit; cursor: pointer; display: inline-block; font-size: 18px; margin: 0; padding: 12px 24px; text-align: center; text-decoration: none; overflow-wrap: break-word; }
3943
+
3944
+ .wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link:active, .wp-block-button__link:visited { color: inherit; }
3945
+
3946
+ .is-style-squared .wp-block-button__link { border-radius: 0; }
3947
+
3948
+ .no-border-radius.wp-block-button__link { border-radius: 0 !important; }
3949
+
3950
+ .is-style-outline { color: #32373c; }
3951
+
3952
+ .is-style-outline .wp-block-button__link { background-color: transparent; border: 2px solid; }
3953
+
3954
+ .wp-block-buttons .wp-block-button { display: inline-block; margin: 4px; }
3955
+
3956
+ .wp-block-buttons.aligncenter { text-align: center; }
3957
+
3958
+ .wp-block-calendar { text-align: center; }
3959
+
3960
+ .wp-block-calendar th, .wp-block-calendar tbody td { padding: 4px; border: 1px solid #e2e4e7; }
3961
+
3962
+ .wp-block-calendar tfoot td { border: none; }
3963
+
3964
+ .wp-block-calendar table { width: 100%; border-collapse: collapse; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
3965
+
3966
+ .wp-block-calendar table th { font-weight: 400; background: #edeff0; }
3967
+
3968
+ .wp-block-calendar a { text-decoration: underline; }
3969
+
3970
+ .wp-block-calendar tfoot a { color: #00739c; }
3971
+
3972
+ .wp-block-calendar table tbody, .wp-block-calendar table caption { color: #40464d; }
3973
+
3974
+ .wp-block-categories.alignleft { /*rtl:ignore*/ margin-right: 2em; }
3975
+
3976
+ .wp-block-categories.alignright { /*rtl:ignore*/ margin-left: 2em; }
3977
+
3978
+ .wp-block-columns { display: flex; margin-bottom: 28px; flex-wrap: wrap; }
3979
+
3980
+ @media (min-width: 782px) { .wp-block-columns { flex-wrap: nowrap; } }
3981
+
3982
+ .wp-block-column { flex-grow: 1; min-width: 0; word-break: break-word; overflow-wrap: break-word; }
3983
+
3984
+ @media (max-width: 599px) { .wp-block-column { flex-basis: 100% !important; } }
3985
+
3986
+ @media (min-width: 600px) { .wp-block-column { flex-basis: calc(50% - 16px); flex-grow: 0; }
3987
+ .wp-block-column:nth-child(even) { margin-left: 32px; } }
3988
+
3989
+ @media (min-width: 782px) { .wp-block-column:not(:first-child) { margin-left: 32px; } }
3990
+
3991
+ /** All Columns Alignment */
3992
+ .wp-block-columns.are-vertically-aligned-top { align-items: flex-start; }
3993
+
3994
+ .wp-block-columns.are-vertically-aligned-center { align-items: center; }
3995
+
3996
+ .wp-block-columns.are-vertically-aligned-bottom { align-items: flex-end; }
3997
+
3998
+ /** Individual Column Alignment */
3999
+ .wp-block-column.is-vertically-aligned-top { align-self: flex-start; }
4000
+
4001
+ .wp-block-column.is-vertically-aligned-center { -ms-grid-row-align: center; align-self: center; }
4002
+
4003
+ .wp-block-column.is-vertically-aligned-bottom { align-self: flex-end; }
4004
+
4005
+ .wp-block-cover-image, .wp-block-cover { position: relative; background-color: #000; background-size: cover; background-position: center center; min-height: 430px; height: 100%; width: 100%; display: flex; justify-content: center; align-items: center; overflow: hidden; }
4006
+
4007
+ .wp-block-cover-image.has-parallax, .wp-block-cover.has-parallax { background-attachment: fixed; }
4008
+
4009
+ @supports (-webkit-overflow-scrolling: touch) { .wp-block-cover-image.has-parallax, .wp-block-cover.has-parallax { background-attachment: scroll; } }
4010
+
4011
+ @media (prefers-reduced-motion: reduce) { .wp-block-cover-image.has-parallax, .wp-block-cover.has-parallax { background-attachment: scroll; } }
4012
+
4013
+ .wp-block-cover-image.has-background-dim::before, .wp-block-cover.has-background-dim::before { content: ""; background-color: inherit; }
4014
+
4015
+ .wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before, .wp-block-cover-image .wp-block-cover__gradient-background, .wp-block-cover.has-background-dim:not(.has-background-gradient)::before, .wp-block-cover .wp-block-cover__gradient-background { position: absolute; top: 0; left: 0; bottom: 0; right: 0; z-index: 1; }
4016
+
4017
+ .wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before, .wp-block-cover-image .wp-block-cover__gradient-background, .wp-block-cover.has-background-dim:not(.has-background-gradient)::before, .wp-block-cover .wp-block-cover__gradient-background { opacity: 0.5; }
4018
+
4019
+ .wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before { opacity: 0.1; }
4020
+
4021
+ .wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background, .wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background { opacity: 0.1; }
4022
+
4023
+ .wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before { opacity: 0.2; }
4024
+
4025
+ .wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background, .wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background { opacity: 0.2; }
4026
+
4027
+ .wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before { opacity: 0.3; }
4028
+
4029
+ .wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background, .wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background { opacity: 0.3; }
4030
+
4031
+ .wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before { opacity: 0.4; }
4032
+
4033
+ .wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background, .wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background { opacity: 0.4; }
4034
+
4035
+ .wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before { opacity: 0.5; }
4036
+
4037
+ .wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background, .wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background { opacity: 0.5; }
4038
+
4039
+ .wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before { opacity: 0.6; }
4040
+
4041
+ .wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background, .wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background { opacity: 0.6; }
4042
+
4043
+ .wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before { opacity: 0.7; }
4044
+
4045
+ .wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background, .wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background { opacity: 0.7; }
4046
+
4047
+ .wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before { opacity: 0.8; }
4048
+
4049
+ .wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background, .wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background { opacity: 0.8; }
4050
+
4051
+ .wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before { opacity: 0.9; }
4052
+
4053
+ .wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background, .wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background { opacity: 0.9; }
4054
+
4055
+ .wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before { opacity: 1; }
4056
+
4057
+ .wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background, .wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background { opacity: 1; }
4058
+
4059
+ .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright, .wp-block-cover.alignleft, .wp-block-cover.alignright { max-width: 290px; width: 100%; }
4060
+
4061
+ .wp-block-cover-image::after, .wp-block-cover::after { display: block; content: ""; font-size: 0; min-height: inherit; }
4062
+
4063
+ @supports ((position: -webkit-sticky) or (position: sticky)) { .wp-block-cover-image::after, .wp-block-cover::after { content: none; } }
4064
+
4065
+ .wp-block-cover-image.aligncenter, .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright, .wp-block-cover.aligncenter, .wp-block-cover.alignleft, .wp-block-cover.alignright { display: flex; }
4066
+
4067
+ .wp-block-cover-image .wp-block-cover__inner-container, .wp-block-cover .wp-block-cover__inner-container { width: calc(100% - 70px); z-index: 1; color: #f8f9f9; }
4068
+
4069
+ .wp-block-cover-image p:not(.has-text-color), .wp-block-cover-image h1:not(.has-text-color), .wp-block-cover-image h2:not(.has-text-color), .wp-block-cover-image h3:not(.has-text-color), .wp-block-cover-image h4:not(.has-text-color), .wp-block-cover-image h5:not(.has-text-color), .wp-block-cover-image h6:not(.has-text-color), .wp-block-cover-image .wp-block-subhead:not(.has-text-color), .wp-block-cover p:not(.has-text-color), .wp-block-cover h1:not(.has-text-color), .wp-block-cover h2:not(.has-text-color), .wp-block-cover h3:not(.has-text-color), .wp-block-cover h4:not(.has-text-color), .wp-block-cover h5:not(.has-text-color), .wp-block-cover h6:not(.has-text-color), .wp-block-cover .wp-block-subhead:not(.has-text-color) { color: inherit; }
4070
+
4071
+ .wp-block-cover__video-background { position: absolute; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); width: 100%; height: 100%; z-index: 0; -o-object-fit: cover; object-fit: cover; }
4072
+
4073
+ section.wp-block-cover-image h2, .wp-block-cover-image-text, .wp-block-cover-text { color: #fff; }
4074
+
4075
+ section.wp-block-cover-image h2 a, section.wp-block-cover-image h2 a:hover, section.wp-block-cover-image h2 a:focus, section.wp-block-cover-image h2 a:active, .wp-block-cover-image-text a, .wp-block-cover-image-text a:hover, .wp-block-cover-image-text a:focus, .wp-block-cover-image-text a:active, .wp-block-cover-text a, .wp-block-cover-text a:hover, .wp-block-cover-text a:focus, .wp-block-cover-text a:active { color: #fff; }
4076
+
4077
+ .wp-block-cover-image .wp-block-cover.has-left-content { justify-content: flex-start; }
4078
+
4079
+ .wp-block-cover-image .wp-block-cover.has-right-content { justify-content: flex-end; }
4080
+
4081
+ section.wp-block-cover-image.has-left-content > h2, .wp-block-cover-image.has-left-content .wp-block-cover-image-text, .wp-block-cover.has-left-content .wp-block-cover-text { margin-left: 0; text-align: left; }
4082
+
4083
+ section.wp-block-cover-image.has-right-content > h2, .wp-block-cover-image.has-right-content .wp-block-cover-image-text, .wp-block-cover.has-right-content .wp-block-cover-text { margin-right: 0; text-align: right; }
4084
+
4085
+ section.wp-block-cover-image > h2, .wp-block-cover-image .wp-block-cover-image-text, .wp-block-cover .wp-block-cover-text { font-size: 2em; line-height: 1.25; z-index: 1; margin-bottom: 0; max-width: 580px; padding: 14px; text-align: center; }
4086
+
4087
+ .block-editor-block-list__block[data-type="core/embed"][data-align="left"] .block-editor-block-list__block-edit, .block-editor-block-list__block[data-type="core/embed"][data-align="right"] .block-editor-block-list__block-edit, .wp-block-embed.alignleft, .wp-block-embed.alignright { max-width: 360px; width: 100%; }
4088
+
4089
+ .wp-block-embed { margin-bottom: 1em; }
4090
+
4091
+ .wp-block-embed figcaption { margin-top: 0.5em; margin-bottom: 1em; }
4092
+
4093
+ .wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper { position: relative; }
4094
+
4095
+ .wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper::before, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper::before, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper::before, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper::before, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper::before, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper::before, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 50%; }
4096
+
4097
+ .wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper iframe, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper iframe, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper iframe, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper iframe, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper iframe, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper iframe { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
4098
+
4099
+ .wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper::before { padding-top: 42.85%; }
4100
+
4101
+ .wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper::before { padding-top: 50%; }
4102
+
4103
+ .wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper::before { padding-top: 56.25%; }
4104
+
4105
+ .wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper::before { padding-top: 75%; }
4106
+
4107
+ .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper::before { padding-top: 100%; }
4108
+
4109
+ .wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper::before { padding-top: 177.78%; }
4110
+
4111
+ .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper::before { padding-top: 200%; }
4112
+
4113
+ .wp-block-file { margin-bottom: 1.5em; }
4114
+
4115
+ .wp-block-file.aligncenter { text-align: center; }
4116
+
4117
+ .wp-block-file.alignright { /*rtl:ignore*/ text-align: right; }
4118
+
4119
+ .wp-block-file .wp-block-file__button { background: #32373c; border-radius: 2em; color: #fff; font-size: 13px; padding: 0.5em 1em; }
4120
+
4121
+ .wp-block-file a.wp-block-file__button { text-decoration: none; }
4122
+
4123
+ .wp-block-file a.wp-block-file__button:hover, .wp-block-file a.wp-block-file__button:visited, .wp-block-file a.wp-block-file__button:focus, .wp-block-file a.wp-block-file__button:active { box-shadow: none; color: #fff; opacity: 0.85; text-decoration: none; }
4124
+
4125
+ .wp-block-file * + .wp-block-file__button { margin-left: 0.75em; }
4126
+
4127
+ .wp-block-gallery, .blocks-gallery-grid { display: flex; flex-wrap: wrap; list-style-type: none; padding: 0; margin: 0; }
4128
+
4129
+ .wp-block-gallery .blocks-gallery-image, .wp-block-gallery .blocks-gallery-item, .blocks-gallery-grid .blocks-gallery-image, .blocks-gallery-grid .blocks-gallery-item { margin: 0 16px 16px 0; display: flex; flex-grow: 1; flex-direction: column; justify-content: center; position: relative; }
4130
+
4131
+ .wp-block-gallery .blocks-gallery-image figure, .wp-block-gallery .blocks-gallery-item figure, .blocks-gallery-grid .blocks-gallery-image figure, .blocks-gallery-grid .blocks-gallery-item figure { margin: 0; height: 100%; }
4132
+
4133
+ @supports ((position: -webkit-sticky) or (position: sticky)) { .wp-block-gallery .blocks-gallery-image figure, .wp-block-gallery .blocks-gallery-item figure, .blocks-gallery-grid .blocks-gallery-image figure, .blocks-gallery-grid .blocks-gallery-item figure { display: flex; align-items: flex-end; justify-content: flex-start; } }
4134
+
4135
+ .wp-block-gallery .blocks-gallery-image img, .wp-block-gallery .blocks-gallery-item img, .blocks-gallery-grid .blocks-gallery-image img, .blocks-gallery-grid .blocks-gallery-item img { display: block; max-width: 100%; height: auto; }
4136
+
4137
+ .wp-block-gallery .blocks-gallery-image img, .wp-block-gallery .blocks-gallery-item img, .blocks-gallery-grid .blocks-gallery-image img, .blocks-gallery-grid .blocks-gallery-item img { width: 100%; }
4138
+
4139
+ @supports ((position: -webkit-sticky) or (position: sticky)) { .wp-block-gallery .blocks-gallery-image img, .wp-block-gallery .blocks-gallery-item img, .blocks-gallery-grid .blocks-gallery-image img, .blocks-gallery-grid .blocks-gallery-item img { width: auto; } }
4140
+
4141
+ .wp-block-gallery .blocks-gallery-image figcaption, .wp-block-gallery .blocks-gallery-item figcaption, .blocks-gallery-grid .blocks-gallery-image figcaption, .blocks-gallery-grid .blocks-gallery-item figcaption { position: absolute; bottom: 0; width: 100%; max-height: 100%; overflow: auto; padding: 40px 10px 9px; color: #fff; text-align: center; font-size: 13px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent); }
4142
+
4143
+ .wp-block-gallery .blocks-gallery-image figcaption img, .wp-block-gallery .blocks-gallery-item figcaption img, .blocks-gallery-grid .blocks-gallery-image figcaption img, .blocks-gallery-grid .blocks-gallery-item figcaption img { display: inline; }
4144
+
4145
+ .wp-block-gallery.is-cropped .blocks-gallery-image a, .wp-block-gallery.is-cropped .blocks-gallery-image img, .wp-block-gallery.is-cropped .blocks-gallery-item a, .wp-block-gallery.is-cropped .blocks-gallery-item img, .blocks-gallery-grid.is-cropped .blocks-gallery-image a, .blocks-gallery-grid.is-cropped .blocks-gallery-image img, .blocks-gallery-grid.is-cropped .blocks-gallery-item a, .blocks-gallery-grid.is-cropped .blocks-gallery-item img { width: 100%; }
4146
+
4147
+ @supports ((position: -webkit-sticky) or (position: sticky)) { .wp-block-gallery.is-cropped .blocks-gallery-image a, .wp-block-gallery.is-cropped .blocks-gallery-image img, .wp-block-gallery.is-cropped .blocks-gallery-item a, .wp-block-gallery.is-cropped .blocks-gallery-item img, .blocks-gallery-grid.is-cropped .blocks-gallery-image a, .blocks-gallery-grid.is-cropped .blocks-gallery-image img, .blocks-gallery-grid.is-cropped .blocks-gallery-item a, .blocks-gallery-grid.is-cropped .blocks-gallery-item img { height: 100%; flex: 1; -o-object-fit: cover; object-fit: cover; } }
4148
+
4149
+ .wp-block-gallery .blocks-gallery-image, .wp-block-gallery .blocks-gallery-item, .blocks-gallery-grid .blocks-gallery-image, .blocks-gallery-grid .blocks-gallery-item { width: calc((100% - 16px) / 2); }
4150
+
4151
+ .wp-block-gallery .blocks-gallery-image:nth-of-type(even), .wp-block-gallery .blocks-gallery-item:nth-of-type(even), .blocks-gallery-grid .blocks-gallery-image:nth-of-type(even), .blocks-gallery-grid .blocks-gallery-item:nth-of-type(even) { margin-right: 0; }
4152
+
4153
+ .wp-block-gallery.columns-1 .blocks-gallery-image, .wp-block-gallery.columns-1 .blocks-gallery-item, .blocks-gallery-grid.columns-1 .blocks-gallery-image, .blocks-gallery-grid.columns-1 .blocks-gallery-item { width: 100%; margin-right: 0; }
4154
+
4155
+ @media (min-width: 600px) { .wp-block-gallery.columns-3 .blocks-gallery-image, .wp-block-gallery.columns-3 .blocks-gallery-item, .blocks-gallery-grid.columns-3 .blocks-gallery-image, .blocks-gallery-grid.columns-3 .blocks-gallery-item { width: calc((100% - 16px * 2) / 3); margin-right: 16px; }
4156
+ @supports (-ms-ime-align: auto) { .wp-block-gallery.columns-3 .blocks-gallery-image, .wp-block-gallery.columns-3 .blocks-gallery-item, .blocks-gallery-grid.columns-3 .blocks-gallery-image, .blocks-gallery-grid.columns-3 .blocks-gallery-item { width: calc((100% - 16px * 2) / 3 - 1px); } }
4157
+ .wp-block-gallery.columns-4 .blocks-gallery-image, .wp-block-gallery.columns-4 .blocks-gallery-item, .blocks-gallery-grid.columns-4 .blocks-gallery-image, .blocks-gallery-grid.columns-4 .blocks-gallery-item { width: calc((100% - 16px * 3) / 4); margin-right: 16px; }
4158
+ @supports (-ms-ime-align: auto) { .wp-block-gallery.columns-4 .blocks-gallery-image, .wp-block-gallery.columns-4 .blocks-gallery-item, .blocks-gallery-grid.columns-4 .blocks-gallery-image, .blocks-gallery-grid.columns-4 .blocks-gallery-item { width: calc((100% - 16px * 3) / 4 - 1px); } }
4159
+ .wp-block-gallery.columns-5 .blocks-gallery-image, .wp-block-gallery.columns-5 .blocks-gallery-item, .blocks-gallery-grid.columns-5 .blocks-gallery-image, .blocks-gallery-grid.columns-5 .blocks-gallery-item { width: calc((100% - 16px * 4) / 5); margin-right: 16px; }
4160
+ @supports (-ms-ime-align: auto) { .wp-block-gallery.columns-5 .blocks-gallery-image, .wp-block-gallery.columns-5 .blocks-gallery-item, .blocks-gallery-grid.columns-5 .blocks-gallery-image, .blocks-gallery-grid.columns-5 .blocks-gallery-item { width: calc((100% - 16px * 4) / 5 - 1px); } }
4161
+ .wp-block-gallery.columns-6 .blocks-gallery-image, .wp-block-gallery.columns-6 .blocks-gallery-item, .blocks-gallery-grid.columns-6 .blocks-gallery-image, .blocks-gallery-grid.columns-6 .blocks-gallery-item { width: calc((100% - 16px * 5) / 6); margin-right: 16px; }
4162
+ @supports (-ms-ime-align: auto) { .wp-block-gallery.columns-6 .blocks-gallery-image, .wp-block-gallery.columns-6 .blocks-gallery-item, .blocks-gallery-grid.columns-6 .blocks-gallery-image, .blocks-gallery-grid.columns-6 .blocks-gallery-item { width: calc((100% - 16px * 5) / 6 - 1px); } }
4163
+ .wp-block-gallery.columns-7 .blocks-gallery-image, .wp-block-gallery.columns-7 .blocks-gallery-item, .blocks-gallery-grid.columns-7 .blocks-gallery-image, .blocks-gallery-grid.columns-7 .blocks-gallery-item { width: calc((100% - 16px * 6) / 7); margin-right: 16px; }
4164
+ @supports (-ms-ime-align: auto) { .wp-block-gallery.columns-7 .blocks-gallery-image, .wp-block-gallery.columns-7 .blocks-gallery-item, .blocks-gallery-grid.columns-7 .blocks-gallery-image, .blocks-gallery-grid.columns-7 .blocks-gallery-item { width: calc((100% - 16px * 6) / 7 - 1px); } }
4165
+ .wp-block-gallery.columns-8 .blocks-gallery-image, .wp-block-gallery.columns-8 .blocks-gallery-item, .blocks-gallery-grid.columns-8 .blocks-gallery-image, .blocks-gallery-grid.columns-8 .blocks-gallery-item { width: calc((100% - 16px * 7) / 8); margin-right: 16px; }
4166
+ @supports (-ms-ime-align: auto) { .wp-block-gallery.columns-8 .blocks-gallery-image, .wp-block-gallery.columns-8 .blocks-gallery-item, .blocks-gallery-grid.columns-8 .blocks-gallery-image, .blocks-gallery-grid.columns-8 .blocks-gallery-item { width: calc((100% - 16px * 7) / 8 - 1px); } }
4167
+ .wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n), .wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n), .blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n), .blocks-gallery-grid.columns-1 .blocks-gallery-item:nth-of-type(1n) { margin-right: 0; }
4168
+ .wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n), .wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n), .blocks-gallery-grid.columns-2 .blocks-gallery-image:nth-of-type(2n), .blocks-gallery-grid.columns-2 .blocks-gallery-item:nth-of-type(2n) { margin-right: 0; }
4169
+ .wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n), .wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n), .blocks-gallery-grid.columns-3 .blocks-gallery-image:nth-of-type(3n), .blocks-gallery-grid.columns-3 .blocks-gallery-item:nth-of-type(3n) { margin-right: 0; }
4170
+ .wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n), .wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n), .blocks-gallery-grid.columns-4 .blocks-gallery-image:nth-of-type(4n), .blocks-gallery-grid.columns-4 .blocks-gallery-item:nth-of-type(4n) { margin-right: 0; }
4171
+ .wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n), .wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n), .blocks-gallery-grid.columns-5 .blocks-gallery-image:nth-of-type(5n), .blocks-gallery-grid.columns-5 .blocks-gallery-item:nth-of-type(5n) { margin-right: 0; }
4172
+ .wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n), .wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n), .blocks-gallery-grid.columns-6 .blocks-gallery-image:nth-of-type(6n), .blocks-gallery-grid.columns-6 .blocks-gallery-item:nth-of-type(6n) { margin-right: 0; }
4173
+ .wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n), .wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n), .blocks-gallery-grid.columns-7 .blocks-gallery-image:nth-of-type(7n), .blocks-gallery-grid.columns-7 .blocks-gallery-item:nth-of-type(7n) { margin-right: 0; }
4174
+ .wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n), .wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n), .blocks-gallery-grid.columns-8 .blocks-gallery-image:nth-of-type(8n), .blocks-gallery-grid.columns-8 .blocks-gallery-item:nth-of-type(8n) { margin-right: 0; } }
4175
+
4176
+ .wp-block-gallery .blocks-gallery-image:last-child, .wp-block-gallery .blocks-gallery-item:last-child, .blocks-gallery-grid .blocks-gallery-image:last-child, .blocks-gallery-grid .blocks-gallery-item:last-child { margin-right: 0; }
4177
+
4178
+ .wp-block-gallery.alignleft, .wp-block-gallery.alignright, .blocks-gallery-grid.alignleft, .blocks-gallery-grid.alignright { max-width: 290px; width: 100%; }
4179
+
4180
+ .wp-block-gallery.aligncenter .blocks-gallery-item figure, .blocks-gallery-grid.aligncenter .blocks-gallery-item figure { justify-content: center; }
4181
+
4182
+ .wp-block-image { margin-bottom: 1em; }
4183
+
4184
+ .wp-block-image img { max-width: 100%; }
4185
+
4186
+ .wp-block-image.aligncenter { text-align: center; }
4187
+
4188
+ .wp-block-image.alignfull img, .wp-block-image.alignwide img { width: 100%; }
4189
+
4190
+ .wp-block-image .alignleft, .wp-block-image .alignright, .wp-block-image .aligncenter, .wp-block-image.is-resized { display: table; margin-left: 0; margin-right: 0; }
4191
+
4192
+ .wp-block-image .alignleft > figcaption, .wp-block-image .alignright > figcaption, .wp-block-image .aligncenter > figcaption, .wp-block-image.is-resized > figcaption { display: table-caption; caption-side: bottom; }
4193
+
4194
+ .wp-block-image .alignleft { /*rtl:ignore*/ float: left; /*rtl:ignore*/ margin-right: 1em; }
4195
+
4196
+ .wp-block-image .alignright { /*rtl:ignore*/ float: right; /*rtl:ignore*/ margin-left: 1em; }
4197
+
4198
+ .wp-block-image .aligncenter { margin-left: auto; margin-right: auto; }
4199
+
4200
+ .wp-block-image figcaption { margin-top: 0.5em; margin-bottom: 1em; }
4201
+
4202
+ .is-style-rounded img { border-radius: 9999px; }
4203
+
4204
+ .is-style-circle-mask img { border-radius: 9999px; }
4205
+
4206
+ @supports ((-webkit-mask-image: none) or (mask-image: none)) or (-webkit-mask-image: none) { .is-style-circle-mask img { /* stylelint-disable */ -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>'); /* stylelint-enable */ mask-mode: alpha; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; border-radius: 0; } }
4207
+
4208
+ .wp-block-latest-comments__comment { font-size: 15px; line-height: 1.1; list-style: none; margin-bottom: 1em; }
4209
+
4210
+ .has-avatars .wp-block-latest-comments__comment { min-height: 36px; list-style: none; }
4211
+
4212
+ .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta, .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt { margin-left: 52px; }
4213
+
4214
+ .has-dates .wp-block-latest-comments__comment, .has-excerpts .wp-block-latest-comments__comment { line-height: 1.5; }
4215
+
4216
+ .wp-block-latest-comments__comment-excerpt p { font-size: 14px; line-height: 1.8; margin: 5px 0 20px; }
4217
+
4218
+ .wp-block-latest-comments__comment-date { color: #8f98a1; display: block; font-size: 12px; }
4219
+
4220
+ .wp-block-latest-comments .avatar, .wp-block-latest-comments__comment-avatar { border-radius: 24px; display: block; float: left; height: 40px; margin-right: 12px; width: 40px; }
4221
+
4222
+ .wp-block-latest-posts.alignleft { /*rtl:ignore*/ margin-right: 2em; }
4223
+
4224
+ .wp-block-latest-posts.alignright { /*rtl:ignore*/ margin-left: 2em; }
4225
+
4226
+ .wp-block-latest-posts.wp-block-latest-posts__list { list-style: none; }
4227
+
4228
+ .wp-block-latest-posts.is-grid { display: flex; flex-wrap: wrap; padding: 0; }
4229
+
4230
+ .wp-block-latest-posts.is-grid li { margin: 0 16px 16px 0; width: 100%; }
4231
+
4232
+ @media (min-width: 600px) { .wp-block-latest-posts.columns-2 li { width: calc((100% / 2) - 16px); }
4233
+ .wp-block-latest-posts.columns-3 li { width: calc((100% / 3) - 16px); }
4234
+ .wp-block-latest-posts.columns-4 li { width: calc((100% / 4) - 16px); }
4235
+ .wp-block-latest-posts.columns-5 li { width: calc((100% / 5) - 16px); }
4236
+ .wp-block-latest-posts.columns-6 li { width: calc((100% / 6) - 16px); } }
4237
+
4238
+ .wp-block-latest-posts__post-date { display: block; color: #6c7781; font-size: 13px; }
4239
+
4240
+ .wp-block-latest-posts__post-excerpt { margin-top: 8px; margin-bottom: 16px; }
4241
+
4242
+ .wp-block-media-text { display: -ms-grid; display: grid; -ms-grid-rows: auto; grid-template-rows: auto; -ms-grid-columns: 50% 1fr; grid-template-columns: 50% 1fr; }
4243
+
4244
+ .wp-block-media-text .has-media-on-the-right { -ms-grid-columns: 1fr 50%; grid-template-columns: 1fr 50%; }
4245
+
4246
+ .wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content, .wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media { -ms-grid-row-align: start; align-self: start; }
4247
+
4248
+ .wp-block-media-text .wp-block-media-text__content, .wp-block-media-text .wp-block-media-text__media, .wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content, .wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media { -ms-grid-row-align: center; align-self: center; }
4249
 
4250
+ .wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content, .wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media { -ms-grid-row-align: end; align-self: end; }
4251
 
4252
+ .wp-block-media-text .wp-block-media-text__media { -ms-grid-column: 1; grid-column: 1; -ms-grid-row: 1; grid-row: 1; margin: 0; }
4253
 
4254
+ .wp-block-media-text .wp-block-media-text__content { -ms-grid-column: 2; grid-column: 2; -ms-grid-row: 1; grid-row: 1; word-break: break-word; padding: 0 8% 0 8%; }
4255
 
4256
+ .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { -ms-grid-column: 2; grid-column: 2; -ms-grid-row: 1; grid-row: 1; }
4257
 
4258
+ .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content { -ms-grid-column: 1; grid-column: 1; -ms-grid-row: 1; grid-row: 1; }
4259
 
4260
+ .wp-block-media-text > figure > img, .wp-block-media-text > figure > video { max-width: unset; width: 100%; vertical-align: middle; }
4261
 
4262
+ .wp-block-media-text.is-image-fill figure.wp-block-media-text__media { height: 100%; min-height: 250px; background-size: cover; }
4263
 
4264
+ .wp-block-media-text.is-image-fill figure.wp-block-media-text__media > img { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
4265
 
4266
+ /* Here we here not able to use a mobile first CSS approach. Custom widths are set using inline styles, and on mobile, we need 100% width, so we use important to overwrite the inline style. If the style were set on mobile first, on desktop styles, we would have no way of setting the style again to the inline style. */
4267
+ @media (max-width: 600px) { .wp-block-media-text.is-stacked-on-mobile { -ms-grid-columns: 100% !important; grid-template-columns: 100% !important; }
4268
+ .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media { -ms-grid-column: 1; grid-column: 1; -ms-grid-row: 1; grid-row: 1; }
4269
+ .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content { -ms-grid-column: 1; grid-column: 1; -ms-grid-row: 2; grid-row: 2; }
4270
+ .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__media { -ms-grid-column: 1; grid-column: 1; -ms-grid-row: 2; grid-row: 2; }
4271
+ .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__content { -ms-grid-column: 1; grid-column: 1; -ms-grid-row: 1; grid-row: 1; } }
4272
 
4273
+ .wp-block-navigation > ul { display: block; list-style: none; margin: 0; max-width: none; padding-left: 0; position: relative; }
4274
 
4275
+ @media (min-width: 600px) { .wp-block-navigation > ul { display: flex; flex-wrap: wrap; } }
4276
 
4277
+ .wp-block-navigation > ul ul { padding-left: 0; }
4278
 
4279
+ .wp-block-navigation > ul li { position: relative; z-index: 1; }
4280
 
4281
+ .wp-block-navigation > ul li:hover, .wp-block-navigation > ul li:focus-within { cursor: pointer; z-index: 99999; }
4282
 
4283
+ .wp-block-navigation > ul li:hover > ul, .wp-block-navigation > ul li:focus-within > ul, .wp-block-navigation > ul li ul:hover, .wp-block-navigation > ul li ul:focus { visibility: visible; opacity: 1; display: block; }
4284
 
4285
+ .wp-block-navigation > ul > li > a { padding-left: 0; }
4286
 
4287
+ @media (min-width: 600px) { .wp-block-navigation > ul > li > a { padding-left: 16px; } }
4288
 
4289
+ .wp-block-navigation > ul > li:first-of-type > a { padding-left: 0; }
4290
 
4291
+ .wp-block-navigation > ul > li:last-of-type > a { padding-right: 0; }
4292
 
4293
+ .wp-block-navigation > ul > li > ul { background: #fff; -webkit-box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); -moz-box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); border-radius: 3px; box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); border: 1px solid #e2e4e7; margin: 0; position: absolute; left: 0; top: 80%; min-width: -webkit-max-content; min-width: -moz-max-content; min-width: max-content; opacity: 0; transition: opacity 0.15s linear, transform 0.15s linear, right 0s 0.15s; transform: translateY(0.6rem); visibility: hidden; padding: 5px 0; }
4294
 
4295
+ .wp-block-navigation > ul > li > ul li { margin: 2px 8px; }
4296
 
4297
+ .wp-block-navigation > ul > li > ul a { text-decoration: none; }
4298
 
4299
+ .wp-block-navigation > ul > li > ul a:hover { text-decoration: underline; }
4300
 
4301
+ .wp-block-navigation > ul > li > ul::after, .wp-block-navigation > ul > li > ul::before { bottom: 100%; left: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; }
4302
 
4303
+ .wp-block-navigation > ul > li > ul::after { border-color: rgba(255, 255, 255, 0); border-bottom-color: #fff; border-width: 10px; margin-left: -10px; }
4304
 
4305
+ .wp-block-navigation > ul > li > ul::before { border-color: rgba(226, 228, 231, 0); border-bottom-color: #e2e4e7; border-width: 11px; margin-left: -11px; }
4306
 
4307
+ .wp-block-navigation > ul > li > ul ul { width: 100%; }
4308
 
4309
+ .wp-block-navigation .has-background-color + ul { background: inherit; }
4310
 
4311
+ .wp-block-navigation a { display: block; padding: 16px; }
4312
 
4313
+ .wp-block-navigation ul ul { list-style: none; margin-left: 0; }
4314
 
4315
+ .wp-block-navigation ul ul li a { padding-top: 8px; padding-bottom: 8px; }
4316
 
4317
+ .wp-block-navigation .has-sub-menu > a::after { content: "\00a0\25BC"; display: inline-block; font-size: 0.6rem; height: inherit; width: inherit; }
4318
 
4319
+ .wp-block-navigation.items-justified-left > ul { justify-content: flex-start; }
4320
 
4321
+ .wp-block-navigation.items-justified-center > ul { justify-content: center; }
4322
 
4323
+ .wp-block-navigation.items-justified-right > ul { justify-content: flex-end; }
4324
 
4325
+ .is-style-dark > ul > li > ul { background: #333; border: 1px solid #111; }
4326
 
4327
+ .is-style-dark > ul > li > ul a { text-decoration: none; color: #fff; }
4328
 
4329
+ .is-style-dark > ul > li > ul a:hover { text-decoration: underline; color: #eee; }
4330
 
4331
+ .is-style-dark > ul > li > ul::after { border-color: rgba(51, 51, 51, 0); border-bottom-color: #333; }
4332
 
4333
+ .is-style-dark > ul > li > ul::before { border-color: rgba(17, 17, 17, 0); border-bottom-color: #111; }
4334
 
4335
+ .is-small-text { font-size: 14px; }
4336
 
4337
+ .is-regular-text { font-size: 16px; }
4338
 
4339
+ .is-large-text { font-size: 36px; }
4340
 
4341
+ .is-larger-text { font-size: 48px; }
4342
 
4343
+ .has-drop-cap:not(:focus)::first-letter { float: left; font-size: 8.4em; line-height: 0.68; font-weight: 100; margin: 0.05em 0.1em 0 0; text-transform: uppercase; font-style: normal; }
4344
 
4345
+ p.has-background { padding: 20px 30px; }
4346
 
4347
+ p.has-text-color a { color: inherit; }
4348
 
4349
+ .wp-block-pullquote { padding: 3em 0; margin-left: 0; margin-right: 0; text-align: center; }
4350
 
4351
+ .wp-block-pullquote.alignleft, .wp-block-pullquote.alignright { max-width: 290px; }
4352
 
4353
+ .wp-block-pullquote.alignleft p, .wp-block-pullquote.alignright p { font-size: 20px; }
4354
 
4355
+ .wp-block-pullquote p { font-size: 28px; line-height: 1.6; }
4356
 
4357
+ .wp-block-pullquote cite, .wp-block-pullquote footer { position: relative; }
4358
 
4359
+ .wp-block-pullquote .has-text-color a { color: inherit; }
4360
 
4361
+ .wp-block-pullquote:not(.is-style-solid-color) { background: none; }
4362
 
4363
+ .wp-block-pullquote.is-style-solid-color { border: none; }
4364
 
4365
+ .wp-block-pullquote.is-style-solid-color blockquote { margin-left: auto; margin-right: auto; text-align: left; max-width: 60%; }
4366
 
4367
+ .wp-block-pullquote.is-style-solid-color blockquote p { margin-top: 0; margin-bottom: 0; font-size: 32px; }
4368
 
4369
+ .wp-block-pullquote.is-style-solid-color blockquote cite { text-transform: none; font-style: normal; }
4370
 
4371
+ .wp-block-pullquote cite { color: inherit; }
4372
 
4373
+ .wp-block-quote.is-style-large, .wp-block-quote.is-large { margin: 0 0 16px; padding: 0 1em; }
4374
 
4375
+ .wp-block-quote.is-style-large p, .wp-block-quote.is-large p { font-size: 24px; font-style: italic; line-height: 1.6; }
4376
 
4377
+ .wp-block-quote.is-style-large cite, .wp-block-quote.is-style-large footer, .wp-block-quote.is-large cite, .wp-block-quote.is-large footer { font-size: 18px; text-align: right; }
4378
 
4379
+ .wp-block-rss.alignleft { /*rtl:ignore*/ margin-right: 2em; }
4380
 
4381
+ .wp-block-rss.alignright { /*rtl:ignore*/ margin-left: 2em; }
4382
 
4383
+ .wp-block-rss.is-grid { display: flex; flex-wrap: wrap; padding: 0; list-style: none; }
4384
 
4385
+ .wp-block-rss.is-grid li { margin: 0 16px 16px 0; width: 100%; }
4386
 
4387
+ @media (min-width: 600px) { .wp-block-rss.columns-2 li { width: calc(( 100% / 2 ) - 16px); }
4388
+ .wp-block-rss.columns-3 li { width: calc(( 100% / 3 ) - 16px); }
4389
+ .wp-block-rss.columns-4 li { width: calc(( 100% / 4 ) - 16px); }
4390
+ .wp-block-rss.columns-5 li { width: calc(( 100% / 5 ) - 16px); }
4391
+ .wp-block-rss.columns-6 li { width: calc(( 100% / 6 ) - 16px); } }
4392
 
4393
+ .wp-block-rss__item-publish-date, .wp-block-rss__item-author { display: block; color: #6c7781; font-size: 13px; }
4394
 
4395
+ .wp-block-search { display: flex; flex-wrap: wrap; }
4396
 
4397
+ .wp-block-search .wp-block-search__label { width: 100%; }
4398
 
4399
+ .wp-block-search .wp-block-search__input { flex-grow: 1; max-width: 360px; }
4400
 
4401
+ .wp-block-search .wp-block-search__button { margin-left: 10px; }
4402
 
4403
+ .wp-block-separator.is-style-wide { border-bottom-width: 1px; }
4404
 
4405
+ .wp-block-separator.is-style-dots { background: none !important; border: none; text-align: center; max-width: none; line-height: 1; height: auto; }
4406
 
4407
+ .wp-block-separator.is-style-dots::before { content: "\00b7 \00b7 \00b7"; color: currentColor; font-size: 20px; letter-spacing: 2em; padding-left: 2em; font-family: serif; }
4408
 
4409
+ .wp-block-social-links { display: flex; justify-content: flex-start; padding-left: 0; padding-right: 0; margin-left: 0; }
4410
 
4411
+ .wp-block-social-links .wp-social-link a, .wp-block-social-links .wp-social-link a:hover { text-decoration: none; border-bottom: 0; box-shadow: none; }
4412
 
4413
+ .wp-social-link { display: block; width: 36px; height: 36px; border-radius: 36px; margin-right: 8px; transition: transform 0.1s ease; }
4414
 
4415
+ @media (prefers-reduced-motion: reduce) { .wp-social-link { transition-duration: 0s; } }
4416
 
4417
+ .wp-social-link a { padding: 6px; display: block; line-height: 0; transition: transform 0.1s ease; }
4418
 
4419
+ .wp-social-link a, .wp-social-link a:hover, .wp-social-link a:active, .wp-social-link a:visited, .wp-social-link svg { color: currentColor; fill: currentColor; }
4420
 
4421
+ .wp-social-link:hover { transform: scale(1.1); }
4422
 
4423
+ .wp-block-social-links.aligncenter { justify-content: center; display: flex; }
4424
 
4425
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link { background-color: #f0f0f0; color: #444; }
4426
 
4427
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-amazon { background-color: #f90; color: #fff; }
4428
 
4429
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-bandcamp { background-color: #1ea0c3; color: #fff; }
4430
 
4431
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-behance { background-color: #0757fe; color: #fff; }
4432
 
4433
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-codepen { background-color: #1e1f26; color: #fff; }
4434
 
4435
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-deviantart { background-color: #02e49b; color: #fff; }
4436
 
4437
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dribbble { background-color: #e94c89; color: #fff; }
4438
 
4439
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dropbox { background-color: #4280ff; color: #fff; }
4440
 
4441
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-etsy { background-color: #f45800; color: #fff; }
4442
 
4443
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-facebook { background-color: #1977f2; color: #fff; }
4444
 
4445
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-fivehundredpx { background-color: #000; color: #fff; }
 
4446
 
4447
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-flickr { background-color: #0461dd; color: #fff; }
4448
 
4449
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-foursquare { background-color: #e65678; color: #fff; }
4450
 
4451
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-github { background-color: #24292d; color: #fff; }
4452
 
4453
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-goodreads { background-color: #eceadd; color: #382110; }
4454
 
4455
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-google { background-color: #ea4434; color: #fff; }
4456
 
4457
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram { background-color: #f00075; color: #fff; }
4458
 
4459
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-lastfm { background-color: #e21b24; color: #fff; }
4460
 
4461
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-linkedin { background-color: #0577b5; color: #fff; }
4462
 
4463
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-mastodon { background-color: #3288d4; color: #fff; }
4464
 
4465
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-medium { background-color: #02ab6c; color: #fff; }
4466
 
4467
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup { background-color: #f6405f; color: #fff; }
4468
 
4469
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest { background-color: #e60122; color: #fff; }
4470
 
4471
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pocket { background-color: #ef4155; color: #fff; }
4472
 
4473
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-reddit { background-color: #fe4500; color: #fff; }
4474
 
4475
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype { background-color: #0478d7; color: #fff; }
4476
 
4477
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-snapchat { background-color: #fefc00; color: #fff; stroke: #000; }
4478
 
4479
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-soundcloud { background-color: #ff5600; color: #fff; }
4480
 
4481
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-spotify { background-color: #1bd760; color: #fff; }
4482
 
4483
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr { background-color: #011835; color: #fff; }
4484
 
4485
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitch { background-color: #6440a4; color: #fff; }
4486
 
4487
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitter { background-color: #21a1f3; color: #fff; }
4488
 
4489
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vimeo { background-color: #1eb7ea; color: #fff; }
4490
 
4491
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vk { background-color: #4680c2; color: #fff; }
4492
 
4493
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-wordpress { background-color: #3499cd; color: #fff; }
4494
 
4495
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp { background-color: #d32422; color: #fff; }
4496
 
4497
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-youtube { background-color: #ff0100; color: #fff; }
4498
 
4499
+ .wp-block-social-links.is-style-logos-only .wp-social-link { background: none; padding: 4px; }
4500
 
4501
+ .wp-block-social-links.is-style-logos-only .wp-social-link svg { width: 28px; height: 28px; }
4502
 
4503
+ .wp-block-social-links.is-style-logos-only .wp-social-link-amazon { color: #f90; }
4504
 
4505
+ .wp-block-social-links.is-style-logos-only .wp-social-link-bandcamp { color: #1ea0c3; }
4506
 
4507
+ .wp-block-social-links.is-style-logos-only .wp-social-link-behance { color: #0757fe; }
4508
 
4509
+ .wp-block-social-links.is-style-logos-only .wp-social-link-codepen { color: #1e1f26; }
4510
 
4511
+ .wp-block-social-links.is-style-logos-only .wp-social-link-deviantart { color: #02e49b; }
4512
 
4513
+ .wp-block-social-links.is-style-logos-only .wp-social-link-dribbble { color: #e94c89; }
4514
 
4515
+ .wp-block-social-links.is-style-logos-only .wp-social-link-dropbox { color: #4280ff; }
4516
 
4517
+ .wp-block-social-links.is-style-logos-only .wp-social-link-etsy { color: #f45800; }
4518
 
4519
+ .wp-block-social-links.is-style-logos-only .wp-social-link-facebook { color: #1977f2; }
4520
 
4521
+ .wp-block-social-links.is-style-logos-only .wp-social-link-fivehundredpx { color: #000; }
4522
 
4523
+ .wp-block-social-links.is-style-logos-only .wp-social-link-flickr { color: #0461dd; }
4524
 
4525
+ .wp-block-social-links.is-style-logos-only .wp-social-link-foursquare { color: #e65678; }
4526
 
4527
+ .wp-block-social-links.is-style-logos-only .wp-social-link-github { color: #24292d; }
4528
 
4529
+ .wp-block-social-links.is-style-logos-only .wp-social-link-goodreads { color: #382110; }
4530
 
4531
+ .wp-block-social-links.is-style-logos-only .wp-social-link-google { color: #ea4434; }
4532
 
4533
+ .wp-block-social-links.is-style-logos-only .wp-social-link-instagram { color: #f00075; }
4534
 
4535
+ .wp-block-social-links.is-style-logos-only .wp-social-link-lastfm { color: #e21b24; }
4536
 
4537
+ .wp-block-social-links.is-style-logos-only .wp-social-link-linkedin { color: #0577b5; }
4538
 
4539
+ .wp-block-social-links.is-style-logos-only .wp-social-link-mastodon { color: #3288d4; }
4540
 
4541
+ .wp-block-social-links.is-style-logos-only .wp-social-link-medium { color: #02ab6c; }
4542
 
4543
+ .wp-block-social-links.is-style-logos-only .wp-social-link-meetup { color: #f6405f; }
4544
 
4545
+ .wp-block-social-links.is-style-logos-only .wp-social-link-pinterest { color: #e60122; }
4546
 
4547
+ .wp-block-social-links.is-style-logos-only .wp-social-link-pocket { color: #ef4155; }
4548
 
4549
+ .wp-block-social-links.is-style-logos-only .wp-social-link-reddit { color: #fe4500; }
4550
 
4551
+ .wp-block-social-links.is-style-logos-only .wp-social-link-skype { color: #0478d7; }
4552
 
4553
+ .wp-block-social-links.is-style-logos-only .wp-social-link-snapchat { color: #fff; stroke: #000; }
4554
 
4555
+ .wp-block-social-links.is-style-logos-only .wp-social-link-soundcloud { color: #ff5600; }
4556
 
4557
+ .wp-block-social-links.is-style-logos-only .wp-social-link-spotify { color: #1bd760; }
4558
 
4559
+ .wp-block-social-links.is-style-logos-only .wp-social-link-tumblr { color: #011835; }
4560
 
4561
+ .wp-block-social-links.is-style-logos-only .wp-social-link-twitch { color: #6440a4; }
4562
 
4563
+ .wp-block-social-links.is-style-logos-only .wp-social-link-twitter { color: #21a1f3; }
4564
 
4565
+ .wp-block-social-links.is-style-logos-only .wp-social-link-vimeo { color: #1eb7ea; }
4566
 
4567
+ .wp-block-social-links.is-style-logos-only .wp-social-link-vk { color: #4680c2; }
4568
 
4569
+ .wp-block-social-links.is-style-logos-only .wp-social-link-wordpress { color: #3499cd; }
4570
 
4571
+ .wp-block-social-links.is-style-logos-only .wp-social-link-yelp { background-color: #d32422; color: #fff; }
4572
 
4573
+ .wp-block-social-links.is-style-logos-only .wp-social-link-youtube { color: #ff0100; }
4574
 
4575
+ .wp-block-social-links.is-style-pill-shape .wp-social-link { width: auto; }
4576
 
4577
+ .wp-block-social-links.is-style-pill-shape .wp-social-link a { padding-left: 16px; padding-right: 16px; }
4578
 
4579
+ .wp-block-spacer { clear: both; }
4580
 
4581
+ p.wp-block-subhead { font-size: 1.1em; font-style: italic; opacity: 0.75; }
4582
 
4583
+ .wp-block-table { overflow-x: auto; }
4584
 
4585
+ .wp-block-table table { width: 100%; }
4586
 
4587
+ .wp-block-table .has-fixed-layout { table-layout: fixed; width: 100%; }
4588
 
4589
+ .wp-block-table .has-fixed-layout td, .wp-block-table .has-fixed-layout th { word-break: break-word; }
4590
 
4591
+ .wp-block-table.alignleft, .wp-block-table.aligncenter, .wp-block-table.alignright { display: table; width: auto; }
4592
 
4593
+ .wp-block-table.alignleft td, .wp-block-table.alignleft th, .wp-block-table.aligncenter td, .wp-block-table.aligncenter th, .wp-block-table.alignright td, .wp-block-table.alignright th { word-break: break-word; }
4594
 
4595
+ .wp-block-table .has-subtle-light-gray-background-color { background-color: #f3f4f5; }
4596
 
4597
+ .wp-block-table .has-subtle-pale-green-background-color { background-color: #e9fbe5; }
4598
 
4599
+ .wp-block-table .has-subtle-pale-blue-background-color { background-color: #e7f5fe; }
4600
 
4601
+ .wp-block-table .has-subtle-pale-pink-background-color { background-color: #fcf0ef; }
4602
 
4603
+ .wp-block-table.is-style-stripes { border-spacing: 0; border-collapse: inherit; background-color: transparent; border-bottom: 1px solid #f3f4f5; }
4604
 
4605
+ .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background-color: #f3f4f5; }
4606
 
4607
+ .wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd) { background-color: #f3f4f5; }
4608
 
4609
+ .wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd) { background-color: #e9fbe5; }
4610
 
4611
+ .wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd) { background-color: #e7f5fe; }
4612
 
4613
+ .wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd) { background-color: #fcf0ef; }
4614
 
4615
+ .wp-block-table.is-style-stripes th, .wp-block-table.is-style-stripes td { border-color: transparent; }
4616
 
4617
+ .wp-block-text-columns { display: flex; }
4618
 
4619
+ .wp-block-text-columns.aligncenter { display: flex; }
4620
 
4621
+ .wp-block-text-columns .wp-block-column { margin: 0 16px; padding: 0; }
4622
 
4623
+ .wp-block-text-columns .wp-block-column:first-child { margin-left: 0; }
4624
 
4625
+ .wp-block-text-columns .wp-block-column:last-child { margin-right: 0; }
4626
 
4627
+ .wp-block-text-columns.columns-2 .wp-block-column { width: calc(100% / 2); }
4628
 
4629
+ .wp-block-text-columns.columns-3 .wp-block-column { width: calc(100% / 3); }
4630
 
4631
+ .wp-block-text-columns.columns-4 .wp-block-column { width: calc(100% / 4); }
4632
 
4633
+ .wp-block-video { margin-left: 0; margin-right: 0; }
4634
 
4635
+ .wp-block-video video { max-width: 100%; }
4636
 
4637
+ @supports ((position: -webkit-sticky) or (position: sticky)) { .wp-block-video [poster] { -o-object-fit: cover; object-fit: cover; } }
4638
 
4639
+ .wp-block-video.aligncenter { text-align: center; }
4640
 
4641
+ .wp-block-video figcaption { margin-top: 0.5em; margin-bottom: 1em; }
4642
 
4643
+ :root { /* stylelint-disable function-comma-space-after */ /* stylelint-enable function-comma-space-after */ }
4644
 
4645
+ :root .has-pale-pink-background-color { background-color: #f78da7; }
4646
 
4647
+ :root .has-vivid-red-background-color { background-color: #cf2e2e; }
4648
 
4649
+ :root .has-luminous-vivid-orange-background-color { background-color: #ff6900; }
4650
 
4651
+ :root .has-luminous-vivid-amber-background-color { background-color: #fcb900; }
4652
 
4653
+ :root .has-light-green-cyan-background-color { background-color: #7bdcb5; }
4654
 
4655
+ :root .has-vivid-green-cyan-background-color { background-color: #00d084; }
4656
 
4657
+ :root .has-pale-cyan-blue-background-color { background-color: #8ed1fc; }
4658
 
4659
+ :root .has-vivid-cyan-blue-background-color { background-color: #0693e3; }
4660
 
4661
+ :root .has-vivid-purple-background-color { background-color: #9b51e0; }
4662
 
4663
+ :root .has-very-light-gray-background-color { background-color: #eee; }
4664
 
4665
+ :root .has-cyan-bluish-gray-background-color { background-color: #abb8c3; }
4666
 
4667
+ :root .has-very-dark-gray-background-color { background-color: #313131; }
4668
 
4669
+ :root .has-pale-pink-color { color: #f78da7; }
4670
 
4671
+ :root .has-vivid-red-color { color: #cf2e2e; }
4672
 
4673
+ :root .has-luminous-vivid-orange-color { color: #ff6900; }
4674
 
4675
+ :root .has-luminous-vivid-amber-color { color: #fcb900; }
4676
 
4677
+ :root .has-light-green-cyan-color { color: #7bdcb5; }
4678
 
4679
+ :root .has-vivid-green-cyan-color { color: #00d084; }
4680
 
4681
+ :root .has-pale-cyan-blue-color { color: #8ed1fc; }
4682
 
4683
+ :root .has-vivid-cyan-blue-color { color: #0693e3; }
4684
 
4685
+ :root .has-vivid-purple-color { color: #9b51e0; }
4686
 
4687
+ :root .has-very-light-gray-color { color: #eee; }
4688
 
4689
+ :root .has-cyan-bluish-gray-color { color: #abb8c3; }
4690
 
4691
+ :root .has-very-dark-gray-color { color: #313131; }
4692
 
4693
+ :root .has-vivid-cyan-blue-to-vivid-purple-gradient-background { background: linear-gradient(135deg, #0693e3 0%, #9b51e0 100%); }
4694
 
4695
+ :root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background { background: linear-gradient(135deg, #00d084 0%, #0693e3 100%); }
4696
 
4697
+ :root .has-light-green-cyan-to-vivid-green-cyan-gradient-background { background: linear-gradient(135deg, #7adcb4 0%, #00d082 100%); }
4698
 
4699
+ :root .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background { background: linear-gradient(135deg, #fcb900 0%, #ff6900 100%); }
4700
 
4701
+ :root .has-luminous-vivid-orange-to-vivid-red-gradient-background { background: linear-gradient(135deg, #ff6900 0%, #cf2e2e 100%); }
4702
 
4703
+ :root .has-very-light-gray-to-cyan-bluish-gray-gradient-background { background: linear-gradient(135deg, #eeeeee 0%, #a9b8c3 100%); }
4704
 
4705
+ :root .has-cool-to-warm-spectrum-gradient-background { background: linear-gradient(135deg, #4aeadc 0%, #9778d1 20%, #cf2aba 40%, #ee2c82 60%, #fb6962 80%, #fef84c 100%); }
4706
 
4707
+ :root .has-blush-light-purple-gradient-background { background: linear-gradient(135deg, #ffceec 0%, #9896f0 100%); }
4708
 
4709
+ :root .has-blush-bordeaux-gradient-background { background: linear-gradient(135deg, #fecda5 0%, #fe2d2d 50%, #6b003e 100%); }
4710
 
4711
+ :root .has-purple-crush-gradient-background { background: linear-gradient(135deg, #34e2e4 0%, #4721fb 50%, #ab1dfe 100%); }
4712
 
4713
+ :root .has-luminous-dusk-gradient-background { background: linear-gradient(135deg, #ffcb70 0%, #c751c0 50%, #4158d0 100%); }
4714
 
4715
+ :root .has-hazy-dawn-gradient-background { background: linear-gradient(135deg, #faaca8 0%, #dad0ec 100%); }
4716
 
4717
+ :root .has-pale-ocean-gradient-background { background: linear-gradient(135deg, #fff5cb 0%, #b6e3d4 50%, #33a7b5 100%); }
4718
 
4719
+ :root .has-electric-grass-gradient-background { background: linear-gradient(135deg, #caf880 0%, #71ce7e 100%); }
4720
 
4721
+ :root .has-subdued-olive-gradient-background { background: linear-gradient(135deg, #fafae1 0%, #67a671 100%); }
4722
 
4723
+ :root .has-atomic-cream-gradient-background { background: linear-gradient(135deg, #fdd79a 0%, #004a59 100%); }
4724
 
4725
+ :root .has-nightshade-gradient-background { background: linear-gradient(135deg, #330968 0%, #31cdcf 100%); }
4726
 
4727
+ :root .has-midnight-gradient-background { background: linear-gradient(135deg, #020381 0%, #2874fc 100%); }
4728
 
4729
+ .has-small-font-size { font-size: 13px; }
4730
 
4731
+ .has-regular-font-size, .has-normal-font-size { font-size: 16px; }
4732
 
4733
+ .has-medium-font-size { font-size: 20px; }
4734
 
4735
+ .has-large-font-size { font-size: 36px; }
4736
 
4737
+ .has-larger-font-size, .has-huge-font-size { font-size: 42px; }
4738
 
4739
+ .has-text-align-center { text-align: center; }
4740
 
4741
+ .has-text-align-left { /*rtl:ignore*/ text-align: left; }
4742
 
4743
+ .has-text-align-right { /*rtl:ignore*/ text-align: right; }
4744
 
4745
+ /** Colors */
4746
+ /** Breakpoints & Media Queries */
4747
+ /** Colors */
4748
+ /** Often re-used variables */
4749
+ /** Breakpoint mixins */
4750
+ /** Long content fade mixin Creates a fading overlay to signify that the content is longer than the space allows. */
4751
+ /** Button states and focus styles */
4752
+ /** Applies editor left position to the selector passed as argument */
4753
+ /** Styles that are reused verbatim in a few places */
4754
+ /** Allows users to opt-out of animations via OS-level preferences. */
4755
+ /** Reset default styles for JavaScript UI based pages. This is a WP-admin agnostic reset */
4756
+ /** Reset the WP Admin page styles for Gutenberg-like pages. */
4757
+ .wp-block-audio figcaption { color: #555d66; font-size: 13px; text-align: center; }
4758
 
4759
+ .wp-block-code { font-family: Menlo, Consolas, monaco, monospace; font-size: 14px; color: #23282d; padding: 0.8em 1em; border: 1px solid #e2e4e7; border-radius: 4px; }
4760
 
4761
+ .wp-block-embed figcaption { color: #555d66; font-size: 13px; text-align: center; }
4762
 
4763
+ .blocks-gallery-caption { color: #555d66; font-size: 13px; text-align: center; }
4764
 
4765
+ .wp-block-image figcaption { color: #555d66; font-size: 13px; text-align: center; }
4766
 
4767
+ .wp-block-pullquote { border-top: 4px solid #555d66; border-bottom: 4px solid #555d66; margin-bottom: 28px; color: #40464d; }
4768
 
4769
+ .wp-block-pullquote cite, .wp-block-pullquote footer, .wp-block-pullquote__citation { color: #40464d; text-transform: uppercase; font-size: 13px; font-style: normal; }
4770
 
4771
+ .wp-block-navigation ul, .wp-block-navigation ul li { list-style: none; }
4772
 
4773
+ .wp-block-quote { border-left: 4px solid #000; margin: 0 0 28px 0; padding-left: 1em; }
4774
 
4775
+ .wp-block-quote cite, .wp-block-quote footer, .wp-block-quote__citation { color: #6c7781; font-size: 13px; margin-top: 1em; position: relative; font-style: normal; }
4776
 
4777
+ .wp-block-quote.has-text-align-right, .wp-block-quote.has-text-align-right { border-left: none; border-right: 4px solid #000; padding-left: 0; padding-right: 1em; }
4778
 
4779
+ .wp-block-quote.has-text-align-center, .wp-block-quote.has-text-align-center { border: none; padding-left: 0; }
4780
 
4781
+ .wp-block-quote.is-style-large, .wp-block-quote.is-large { border: none; }
4782
 
4783
+ .wp-block-search .wp-block-search__label { font-weight: bold; }
4784
 
4785
+ .wp-block-group.has-background { padding: 20px 30px; margin-top: 0; margin-bottom: 0; }
4786
 
4787
+ .wp-block-separator { border: none; border-bottom: 2px solid #8f98a1; margin-left: auto; margin-right: auto; }
4788
 
4789
+ .wp-block-separator:not(.is-style-wide):not(.is-style-dots) { max-width: 100px; }
4790
 
4791
+ .wp-block-separator.has-background:not(.is-style-dots) { border-bottom: none; height: 1px; }
4792
 
4793
+ .wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots) { height: 2px; }
 
4794
 
4795
+ .wp-block-table { border-collapse: collapse; }
4796
 
4797
+ .wp-block-table td, .wp-block-table th { padding: 0.5em; border: 1px solid; word-break: normal; }
4798
 
4799
+ .wp-block-table figcaption { color: #555d66; font-size: 13px; text-align: center; }
4800
 
4801
+ .wp-block-video figcaption { color: #555d66; font-size: 13px; text-align: center; }
4802
 
4803
  /** Colors */
4804
  /** Breakpoints & Media Queries */
4805
+ /** Colors */
4806
  /** Often re-used variables */
4807
  /** Breakpoint mixins */
4808
  /** Long content fade mixin Creates a fading overlay to signify that the content is longer than the space allows. */
4809
  /** Button states and focus styles */
4810
  /** Applies editor left position to the selector passed as argument */
 
4811
  /** Styles that are reused verbatim in a few places */
4812
  /** Allows users to opt-out of animations via OS-level preferences. */
4813
  /** Reset default styles for JavaScript UI based pages. This is a WP-admin agnostic reset */
4816
 
4817
  .wp-block-audio { margin-left: 0; margin-right: 0; }
4818
 
4819
+ .edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow__click-redirect { min-height: auto; }
4820
 
4821
  .block-editor-block-list__block[data-type="core/button"][data-align="center"] { text-align: center; }
4822
 
4848
 
4849
  div[data-type="core/button"] div[data-block] { display: table; }
4850
 
4851
+ .wp-block-buttons .wp-block.block-editor-block-list__block[data-type="core/button"] { display: inline-block; width: auto; }
4852
 
4853
+ .wp-block-buttons div[data-type="core/button"] div[data-block] { display: block; }
4854
 
4855
+ .wp-block-buttons[data-align="center"] .block-editor-block-list__layout { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; }
4856
 
4857
+ .wp-block-buttons[data-align="right"] .block-editor-block-list__layout { display: flex; justify-content: flex-end; }
4858
 
4859
+ .wp-block-buttons .block-list-appender { display: inline-block !important; margin: 0; }
4860
 
4861
+ .wp-block-buttons .block-editor-block-list__layout > div:last-child { display: inline-block; }
4862
 
4863
+ .wp-block-buttons .block-editor-button-block-appender { background: none; outline: none; }
4864
 
4865
+ .block-editor .wp-block-categories ul { padding-left: 2.5em; }
4866
 
4867
+ .block-editor .wp-block-categories ul ul { margin-top: 6px; }
4868
 
4869
+ .wp-block-code .block-editor-plain-text { font-family: Menlo, Consolas, monaco, monospace; color: #23282d; /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: 16px; }
4870
+
4871
+ @media (min-width: 600px) { .wp-block-code .block-editor-plain-text { font-size: 13px; } }
4872
 
4873
+ .wp-block-code .block-editor-plain-text:focus { box-shadow: none; }
4874
 
4875
+ .wp-block-columns .block-editor-block-list__layout .block-editor-block-list__block { max-width: none; }
4876
 
4877
+ .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-type="core/column"] { margin-left: 0; }
4878
 
4879
  .wp-block-columns { display: block; }
4880
 
4881
+ .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout { display: flex; flex-wrap: wrap; }
 
 
4882
 
4883
+ @media (min-width: 782px) { .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout { flex-wrap: nowrap; } }
4884
 
4885
+ .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"], .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit, .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit > div[data-block], .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit .block-core-columns { display: flex; flex-direction: column; flex: 1 1 auto; }
4886
 
4887
+ @supports ((position: -webkit-sticky) or (position: sticky)) { .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"], .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit, .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit > div[data-block], .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit .block-core-columns { flex: 1; } }
4888
 
4889
+ .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] { padding-left: 0; padding-right: 0; margin-left: -14px; margin-right: -14px; min-width: 0; word-break: break-word; overflow-wrap: break-word; flex-basis: 100%; }
4890
 
4891
+ @media (min-width: 600px) { .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] { flex-basis: calc(50% - (16px)); flex-grow: 0; margin-left: 0; margin-right: 0; } }
4892
 
4893
+ @media (min-width: 600px) { .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"]:nth-child(even) { margin-left: calc(32px); } }
4894
 
4895
+ @media (min-width: 782px) { .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"]:not(:first-child) { margin-left: calc(32px); } }
4896
 
4897
+ .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit { margin-top: 0; margin-bottom: 0; }
4898
 
4899
+ .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit::before { left: 0; right: 0; }
4900
 
4901
+ .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit > [data-block] { margin-top: 0; margin-bottom: 0; }
4902
 
4903
+ .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit > div > .block-core-columns > .block-editor-inner-blocks { margin-top: -28px; margin-bottom: -28px; }
4904
 
4905
  /** Columns act as as a "passthrough container" and therefore has its vertical margins/padding removed via negative margins therefore we need to compensate for this here by doubling the spacing on the vertical to ensure there is equal visual spacing around the inserter. Note there is no formal API for a "passthrough" Block so this is an edge case overide */
4906
  [data-type="core/columns"] .block-list-appender { margin-top: 28px; margin-bottom: 28px; }
4907
 
 
 
4908
  /** Vertical Alignment Preview note: specificity is important here to ensure individual columns alignment is prioritised over parent column alignment */
4909
  .are-vertically-aligned-top .block-core-columns, div.block-core-columns.is-vertically-aligned-top { justify-content: flex-start; }
4910
 
4913
  .are-vertically-aligned-bottom .block-core-columns, div.block-core-columns.is-vertically-aligned-bottom { justify-content: flex-end; }
4914
 
4915
  /** Fixes single Column breadcrumb position. */
4916
+ [data-type="core/column"] > .block-editor-block-list__block-edit > .editor-block-list__breadcrumb { left: -3px; }
4917
 
4918
  /** Make single Column overlay not extend past boundaries of parent */
4919
  .block-core-columns > .block-editor-inner-blocks.has-overlay::after { left: 0; right: 0; }
4920
 
 
 
 
 
 
4921
  [data-type="core/columns"][data-align="full"] .wp-block-columns { padding-left: 14px; padding-right: 14px; }
4922
 
4923
  @media (min-width: 600px) { [data-type="core/columns"][data-align="full"] .wp-block-columns { padding-left: 46px; padding-right: 46px; } }
4932
 
4933
  .wp-block-cover-image .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout, .wp-block-cover .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout { margin-left: 0; margin-right: 0; }
4934
 
4935
+ .wp-block-cover-image .wp-block-cover__placeholder-background-options, .wp-block-cover .wp-block-cover__placeholder-background-options { margin-top: 1em; width: 100%; }
 
 
 
 
4936
 
4937
  [data-align="left"] .wp-block-cover-image, [data-align="right"] .wp-block-cover-image, [data-align="left"] .wp-block-cover, [data-align="right"] .wp-block-cover { max-width: 290px; width: 100%; }
4938
 
5071
 
5072
  div[data-type="core/freeform"].is-selected .block-editor-block-list__block-edit::before { border-color: #b5bcc2; border-left-color: transparent; }
5073
 
5074
+ div[data-type="core/freeform"] .block-editor-block-contextual-toolbar + div { margin-top: 0; padding-top: 0; }
 
 
5075
 
5076
  div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce::after { content: ""; display: table; clear: both; }
5077
 
5141
 
5142
  .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button, .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button { color: rgba(14, 28, 46, 0.62); padding: 2px; height: 24px; }
5143
 
5144
+ .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover, .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover { box-shadow: none; }
5145
 
5146
  @media (min-width: 600px) { .columns-7 .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button, .columns-8 .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button, .columns-7 .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button, .columns-8 .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button { padding: 0; width: inherit; height: inherit; } }
5147
 
5162
  .blocks-gallery-item .components-spinner { position: absolute; top: 50%; left: 50%; margin-top: -9px; margin-left: -9px; }
5163
 
5164
  /** Group: All Alignment Settings */
5165
+ .wp-block[data-type="core/group"] .block-editor-block-list__insertion-point { left: 0; right: 0; }
5166
 
5167
+ .wp-block[data-type="core/group"] > .block-editor-block-list__block-edit > div > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks { margin-top: -32px; margin-bottom: -32px; }
5168
 
5169
+ .wp-block[data-type="core/group"] > .block-editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px; }
5170
 
5171
+ @media (min-width: 600px) { .wp-block[data-type="core/group"] > .block-editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { padding-left: 58px; padding-right: 58px; } }
5172
 
5173
+ .wp-block[data-type="core/group"] > .block-editor-block-list__block-edit > div > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { margin-left: -30px; width: calc(100% + 60px); }
5174
 
5175
  /** Group: Full Width Alignment */
5176
+ .wp-block[data-type="core/group"][data-align="full"] > .block-editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks { margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
5177
 
5178
+ .wp-block[data-type="core/group"][data-align="full"] > .block-editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout { margin-left: 0; margin-right: 0; }
5179
 
5180
+ .wp-block[data-type="core/group"][data-align="full"] > .block-editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { padding-right: 0; padding-left: 0; left: 0; width: 100%; max-width: none; }
5181
 
5182
+ .wp-block[data-type="core/group"][data-align="full"] > .block-editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] > .block-editor-block-list__block-edit { margin-left: 0; margin-right: 0; }
5183
 
5184
+ .wp-block[data-type="core/group"][data-align="full"] > .block-editor-block-list__block-edit > div > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { width: calc(100% + 60px); }
 
 
 
 
5185
 
5186
  [data-type="core/group"].is-selected .block-list-appender { margin-left: 0; margin-right: 0; }
5187
 
5205
 
5206
  .wp-block-image .components-resizable-box__container { display: inline-block; }
5207
 
5208
+ .wp-block-image .components-resizable-box__container img { display: block; width: inherit; height: inherit; }
5209
 
5210
  .wp-block-image.is-focused .components-resizable-box__handle { display: block; z-index: 1; }
5211
 
5255
 
5256
  .wp-block-legacy-widget__preview { overflow: auto; }
5257
 
5258
+ .wp-block-legacy-widget__edit-widget-title { margin: -14px -13px 0; background: #f8f9f9; color: #555d66; top: -13px; position: relative; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; padding: 8px 14px; font-weight: 600; }
5259
+
5260
  .wp-block-media-text .__resizable_base__ { -ms-grid-column: 1; -ms-grid-column-span: 2; grid-column: 1 / span 2; -ms-grid-row: 2; grid-row: 2; }
5261
 
5262
  .wp-block-media-text.is-vertically-aligned-top .block-editor-inner-blocks, .wp-block-media-text.is-vertically-aligned-top .editor-media-container__resizer { -ms-grid-row-align: start; align-self: start; }
5271
 
5272
  .wp-block-media-text.has-media-on-the-right .editor-media-container__resizer { -ms-grid-column: 2; grid-column: 2; -ms-grid-row: 1; grid-row: 1; }
5273
 
5274
+ .wp-block-media-text .block-editor-inner-blocks { word-break: break-word; -ms-grid-column: 2; grid-column: 2; -ms-grid-row: 1; grid-row: 1; text-align: initial; padding: 0 8% 0 8%; }
5275
 
5276
  .wp-block-media-text.has-media-on-the-right .block-editor-inner-blocks { -ms-grid-column: 1; grid-column: 1; -ms-grid-row: 1; grid-row: 1; }
5277
 
5302
 
5303
  .block-editor .wp-block-more::before { content: ""; position: absolute; top: calc(50%); left: 0; right: 0; border-top: 3px dashed #ccd0d4; }
5304
 
5305
+ [data-type="core/navigation"] .wp-block-navigation .block-editor-inner-blocks { flex: 1; }
5306
+
5307
+ [data-type="core/navigation"] .wp-block-navigation .block-editor-inner-blocks > .block-editor-block-list__layout { margin-left: 0; margin-right: 0; }
5308
 
5309
+ [data-type="core/navigation"] .wp-block-navigation.items-justification-left .block-editor-inner-blocks > .block-editor-block-list__layout { justify-content: flex-start; }
5310
 
5311
+ [data-type="core/navigation"] .wp-block-navigation.items-justification-center .block-editor-inner-blocks > .block-editor-block-list__layout { justify-content: center; }
5312
 
5313
+ [data-type="core/navigation"] .wp-block-navigation.items-justification-right .block-editor-inner-blocks > .block-editor-block-list__layout { justify-content: flex-end; }
5314
 
5315
+ [data-type="core/navigation"] .wp-block-navigation .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block { width: auto; padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; margin-bottom: 1em; }
5316
 
5317
+ [data-type="core/navigation"] .wp-block-navigation .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block > .block-editor-block-list__block-edit { margin-left: 0; margin-right: 0; }
5318
 
5319
+ [data-type="core/navigation"] .wp-block-navigation .block-editor-inner-blocks > .block-editor-block-list__layout .wp-block > .block-editor-block-list__block-edit > [data-block] { margin-top: 0; margin-bottom: 0; }
5320
 
5321
+ [data-type="core/navigation"] .wp-block-navigation .block-editor-block-list__block-edit::before { left: 0; right: 0; }
5322
 
5323
+ [data-type="core/navigation"].is-hovered .wp-block-navigation .block-editor-block-list__block-edit::before, [data-type="core/navigation"].is-selected .wp-block-navigation .block-editor-block-list__block-edit::before, [data-type="core/navigation"].has-child-selected .wp-block-navigation .block-editor-block-list__block-edit::before { border-color: transparent !important; }
5324
 
5325
+ [data-type="core/navigation"] .wp-block-navigation .block-editor-block-list__insertion-point { display: none; }
5326
 
5327
+ [data-type="core/navigation"] .wp-block-navigation .block-list-appender { margin: 0; }
5328
 
5329
+ [data-type="core/navigation"] .wp-block-navigation .block-list-appender .block-editor-button-block-appender { padding: 8px; outline: none; background: none; }
5330
+
5331
+ .wp-block-navigation .block-editor-block-list__layout, .wp-block-navigation { display: flex; flex-wrap: wrap; }
5332
+
5333
+ .wp-block-navigation__inserter-content { padding: 16px; }
5334
+
5335
+ /* Adjust Navigation Item. */
5336
+ .wp-block-navigation .wp-block-navigation-link { margin-right: 8px; margin-left: 8px; padding: 0 8px; }
5337
+
5338
+ .wp-block-navigation .wp-block-navigation-link .block-editor-block-list__layout { display: block; margin: 8px; }
5339
+
5340
+ .wp-block-navigation .wp-block-navigation-link .block-editor-inner-blocks { display: none; }
5341
+
5342
+ .wp-block-navigation .wp-block-navigation-link.is-editing .block-editor-inner-blocks { display: block; }
5343
 
5344
  /** Colors Selector component */
5345
  .block-library-colors-selector { width: auto; }
5354
 
5355
  .block-library-colors-selector .block-library-colors-selector__state-selection { border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); width: 22px; min-width: 22px; height: 22px; min-height: 22px; line-height: 20px; padding: 2px; }
5356
 
5357
+ .block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color > svg, .block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color > svg path { color: inherit; }
5358
 
5359
  .block-library-colors-selector__popover .color-palette-controller-container { padding: 16px; }
5360
 
5364
 
5365
  .block-editor-block-mover.is-horizontal .block-editor-block-mover__control-drag-handle { display: none; }
5366
 
5367
+ .wp-block-navigation-link__field .components-text-control__input.components-text-control__input, .wp-block-navigation-link__container { border-radius: 0; line-height: 36px; min-height: 36px; }
5368
+
5369
+ .wp-block-navigation-link__edit-container { display: flex; white-space: nowrap; margin-left: -8px; }
5370
+
5371
+ .wp-block-navigation-link__edit-container .wp-block-navigation-link__content { margin-right: 8px; padding: 0 8px; box-shadow: inset 0 0 0 1px #7e8993; transition: box-shadow 0.1s linear; border-radius: 4px; }
5372
 
5373
+ @media (prefers-reduced-motion: reduce) { .wp-block-navigation-link__edit-container .wp-block-navigation-link__content { transition-duration: 0s; } }
5374
 
5375
+ .wp-block-navigation-link__edit-container .wp-block-navigation-link__content:focus { color: #191e23; box-shadow: inset 0 0 0 2px #007cba; outline: 2px solid transparent; }
5376
 
5377
+ .wp-block-navigation-link { margin-right: 8px; padding: 0 8px; padding-right: 55px; }
5378
 
5379
+ .wp-block-navigation-link .block-editor-block-list__layout { display: block; margin: 8px; }
5380
 
5381
+ .wp-block-navigation-link .block-editor-inner-blocks { display: none; }
5382
 
5383
+ .wp-block-navigation-link.is-editing, .wp-block-navigation-link.is-selected { min-width: 20px; }
5384
 
5385
+ .wp-block-navigation-link.is-editing .block-editor-inner-blocks { display: block; }
5386
 
5387
+ .wp-block-navigation-link.has-link .wp-block-navigation-link__content { border-bottom-style: solid; border-bottom-width: 1px; }
5388
 
5389
+ .wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus) [data-rich-text-placeholder]::after { display: inline-block; }
5390
 
5391
+ [data-type="core/navigation-link"] .block-editor-block-toolbar { left: 15px; }
5392
 
5393
+ .wp-block-navigation-link__nofollow-external-link { display: block; }
5394
 
5395
+ .wp-block-navigation-link__separator { margin: 8px 0 8px; border-top: 1px solid #e2e4e7; }
5396
 
5397
+ .components-popover.wp-block-navigation-link__dropdown-content { margin-top: -1px; margin-left: -4px; }
5398
 
5399
+ .wp-block-navigation-link__dropdown-content .components-popover__content { padding: 8px 0; }
5400
 
5401
+ .wp-block-navigation .block-editor-block-list__block[data-type="core/navigation-link"] > .block-editor-block-list__insertion-point { display: none; }
5402
 
5403
  .block-editor-block-list__block[data-type="core/nextpage"] { max-width: 100%; margin-top: 28px; margin-bottom: 28px; }
5404
 
5414
 
5415
  .block-editor-block-list__block[data-type="core/paragraph"] p { min-height: 28px; line-height: 1.8; }
5416
 
5417
+ .block-editor-block-list__block[data-type="core/paragraph"] .has-drop-cap:focus { min-height: 28px !important; }
5418
+
5419
  .block-editor-block-list__block[data-type="core/pullquote"][data-align="left"] p, .block-editor-block-list__block[data-type="core/pullquote"][data-align="right"] p { font-size: 20px; }
5420
 
5421
  .wp-block-pullquote blockquote p { font-size: 28px; line-height: 1.6; }
5454
 
5455
  .wp-block-social-links.is-style-pill-shape .wp-social-link { padding-left: 16px; padding-right: 16px; }
5456
 
5457
+ .wp-block-social-links div.block-editor-url-input { display: inline-block; margin-left: 8px; }
5458
 
5459
+ .wp-block-social-links .block-editor-block-list__layout { display: flex; justify-content: flex-start; }
5460
 
5461
  [data-type="core/social-links"] .wp-block-social-links > .block-editor-inner-blocks > .block-editor-block-list__layout { margin-left: 0; margin-right: 0; }
5462
 
5472
 
5473
  [data-type="core/social-links"] .wp-block-social-links > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block > .block-editor-block-list__block-edit > [data-block] { margin-top: 0; margin-bottom: 0; }
5474
 
5475
+ [data-type="core/social-links"] .wp-block-social-links .block-editor-block-list__insertion-point { display: none; }
5476
 
5477
  .wp-block-social-links .block-list-appender { margin: 0; }
5478
 
5492
 
5493
  .wp-social-link.wp-social-link__is-incomplete { opacity: 0.5; }
5494
 
5495
+ @media (prefers-reduced-motion: reduce) { .wp-social-link.wp-social-link__is-incomplete { transition-duration: 0s; } }
5496
+
5497
  .wp-block-social-links .is-selected .wp-social-link__is-incomplete, .wp-social-link.wp-social-link__is-incomplete:hover, .wp-social-link.wp-social-link__is-incomplete:focus { opacity: 1; }
5498
 
5499
  [data-type="core/social-links"] .wp-social-link:focus { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #007cba; outline: 2px solid transparent; }
5522
 
5523
  .wp-block-table td.is-selected, .wp-block-table th.is-selected { border-color: #00a0d2; box-shadow: inset 0 0 0 1px #00a0d2; border-style: double; }
5524
 
5525
+ .wp-block-table figcaption { color: #555d66; font-size: 13px; text-align: center; }
5526
 
5527
+ .wp-block-table__placeholder-form.wp-block-table__placeholder-form .wp-block-table__placeholder-input { width: 112px; margin-right: 8px; margin-bottom: 0; }
5528
 
5529
+ .wp-block-table__placeholder-form.wp-block-table__placeholder-form .wp-block-table__placeholder-input input { height: 36px; }
5530
+
5531
+ .wp-block-table__placeholder-form.wp-block-table__placeholder-form .wp-block-table__placeholder-button { margin-top: auto; margin-right: auto; }
5532
 
5533
  .block-editor .wp-block-tag-cloud a { display: inline-block; margin-right: 5px; }
5534
 
5544
 
5545
  .editor-video-poster-control .components-button + .components-button { margin-top: 1em; }
5546
 
 
 
5547
  /** Import styles from internal editor components used by the blocks. */
5548
  .block-editor-block-list__layout .reusable-block-edit-panel { align-items: center; background: #f8f9f9; color: #555d66; display: flex; flex-wrap: wrap; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; position: relative; top: -14px; margin: 0 -14px; padding: 8px 14px; z-index: 61; border: 1px dashed rgba(145, 151, 162, 0.25); border-bottom: none; }
5549
 
5563
  .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title { margin: 0; }
5564
  .block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button { margin: 0 0 0 5px; } }
5565
 
5566
+ .block-editor-block-list__layout .is-selected .reusable-block-edit-panel { border-color: rgba(66, 88, 99, 0.4); border-left-color: transparent; }
5567
 
5568
+ .is-dark-theme .block-editor-block-list__layout .is-selected .reusable-block-edit-panel { border-color: rgba(255, 255, 255, 0.45); border-left-color: transparent; }
5569
 
5570
+ .is-selected.is-navigate-mode .reusable-block-edit-panel { border-color: #007cba; border-left-color: transparent; }
5571
+
5572
+ .is-dark-theme .is-selected.is-navigate-mode .reusable-block-edit-panel { border-color: #007cba; border-left-color: transparent; }
5573
 
5574
  /** Editor Normalization Styles These are only output in the editor, but styles here are NOT prefixed .editor-styles-wrapper. This allows us to create normalization styles that are easily overridden by editor styles. */
5575
  .editor-styles-wrapper [data-block] { margin-top: 28px; margin-bottom: 28px; }
5596
 
5597
  .components-base-control.mailpoet-form-success-types__control .components-radio-control__option input { margin-right: 6px; }
5598
 
5599
+ .button-on-top, .button-on-top.components-button.is-link { margin-bottom: 12px; max-height: 30px; }
5600
 
5601
+ .mailpoet-dnd-items-list > div { display: flex; flex-direction: column; }
5602
 
5603
+ .mailpoet-dnd-items-list > div > * { margin-bottom: 12px; }
5604
 
5605
+ .mailpoet-form-segments-settings-list { align-items: center; display: flex; flex-direction: row; }
5606
 
5607
  .mailpoet-form-segments-settings-list .components-base-control { flex-grow: 1; margin: 8px 0; }
5608
 
5610
 
5611
  .mailpoet-form-segments-settings-list .mailpoet-form-segments-segment-remove { cursor: pointer; flex-grow: 0; margin: 8px 0; }
5612
 
5613
+ .mailpoet_sidebar_note { padding: 16px; }
5614
 
5615
+ .edit-post-editor-regions__content .block-editor-block-mover__control-drag-handle { display: none !important; }
5616
 
5617
+ .block-editor-block-contextual-toolbar[data-type='mailpoet-form/email-input'] .components-toolbar:last-child, .block-editor-block-contextual-toolbar[data-type='mailpoet-form/submit-button'] .components-toolbar:last-child, .is-multi-selected .components-toolbar:last-child { display: none; }
5618
 
5619
+ .edit-post-editor-regions__body { overflow: hidden; }
5620
 
5621
  .mailpoet_custom_select .mailpoet_select { padding: 0 24px 0 8px; }
5622
 
5625
  .mailpoet_custom_field_add_form { width: 100%; }
5626
 
5627
  .mailpoet_custom_field_add_form .components-base-control, .mailpoet_custom_field_add_form .custom-field-settings { text-align: left; }
5628
+
5629
+ .components-placeholder.mailpoet_custom_field_add_placeholder { align-items: center; }
5630
+
5631
+ .components-placeholder.mailpoet_custom_field_add_placeholder .components-placeholder__label { align-items: center; }
5632
+
5633
+ .components-placeholder.mailpoet_custom_field_add_placeholder .components-placeholder__fieldset { justify-content: center; max-width: 400px; text-align: center; }
assets/dist/css/{mailpoet-plugin.b8a4643c.css → mailpoet-plugin.fdb38a65.css} RENAMED
@@ -1138,462 +1138,6 @@ body.mailpoet_modal_opened { overflow: hidden; }
1138
 
1139
  .mailpoet_info_notice { border-left: 4px solid #00a0d2; }
1140
 
1141
- /* BASICS */
1142
- .CodeMirror { /* Set height, width, borders, and global font properties here */ font-family: monospace; height: 300px; color: black; direction: ltr; }
1143
-
1144
- /* PADDING */
1145
- .CodeMirror-lines { padding: 4px 0; /* Vertical padding around content */ }
1146
-
1147
- .CodeMirror pre { padding: 0 4px; /* Horizontal padding of content */ }
1148
-
1149
- .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { background-color: white; /* The little square between H and V scrollbars */ }
1150
-
1151
- /* GUTTER */
1152
- .CodeMirror-gutters { border-right: 1px solid #ddd; background-color: #f7f7f7; white-space: nowrap; }
1153
-
1154
- .CodeMirror-linenumber { padding: 0 3px 0 5px; min-width: 20px; text-align: right; color: #999; white-space: nowrap; }
1155
-
1156
- .CodeMirror-guttermarker { color: black; }
1157
-
1158
- .CodeMirror-guttermarker-subtle { color: #999; }
1159
-
1160
- /* CURSOR */
1161
- .CodeMirror-cursor { border-left: 1px solid black; border-right: none; width: 0; }
1162
-
1163
- /* Shown when moving in bi-directional text */
1164
- .CodeMirror div.CodeMirror-secondarycursor { border-left: 1px solid silver; }
1165
-
1166
- .cm-fat-cursor .CodeMirror-cursor { width: auto; border: 0 !important; background: #7e7; }
1167
-
1168
- .cm-fat-cursor div.CodeMirror-cursors { z-index: 1; }
1169
-
1170
- .cm-fat-cursor-mark { background-color: rgba(20, 255, 20, 0.5); -webkit-animation: blink 1.06s steps(1) infinite; animation: blink 1.06s steps(1) infinite; }
1171
-
1172
- .cm-animate-fat-cursor { width: auto; border: 0; -webkit-animation: blink 1.06s steps(1) infinite; animation: blink 1.06s steps(1) infinite; background-color: #7e7; }
1173
-
1174
- @-webkit-keyframes blink { 0% { }
1175
- 50% { background-color: transparent; }
1176
- 100% { } }
1177
-
1178
- @keyframes blink { 0% { }
1179
- 50% { background-color: transparent; }
1180
- 100% { } }
1181
-
1182
- /* Can style cursor different in overwrite (non-insert) mode */
1183
- .cm-tab { display: inline-block; text-decoration: inherit; }
1184
-
1185
- .CodeMirror-rulers { position: absolute; left: 0; right: 0; top: -50px; bottom: -20px; overflow: hidden; }
1186
-
1187
- .CodeMirror-ruler { border-left: 1px solid #ccc; top: 0; bottom: 0; position: absolute; }
1188
-
1189
- /* DEFAULT THEME */
1190
- .cm-s-default .cm-header { color: blue; }
1191
-
1192
- .cm-s-default .cm-quote { color: #090; }
1193
-
1194
- .cm-negative { color: #d44; }
1195
-
1196
- .cm-positive { color: #292; }
1197
-
1198
- .cm-header, .cm-strong { font-weight: bold; }
1199
-
1200
- .cm-em { font-style: italic; }
1201
-
1202
- .cm-link { text-decoration: underline; }
1203
-
1204
- .cm-strikethrough { text-decoration: line-through; }
1205
-
1206
- .cm-s-default .cm-keyword { color: #708; }
1207
-
1208
- .cm-s-default .cm-atom { color: #219; }
1209
-
1210
- .cm-s-default .cm-number { color: #164; }
1211
-
1212
- .cm-s-default .cm-def { color: #00f; }
1213
-
1214
- .cm-s-default .cm-variable-2 { color: #05a; }
1215
-
1216
- .cm-s-default .cm-variable-3, .cm-s-default .cm-type { color: #085; }
1217
-
1218
- .cm-s-default .cm-comment { color: #a50; }
1219
-
1220
- .cm-s-default .cm-string { color: #a11; }
1221
-
1222
- .cm-s-default .cm-string-2 { color: #f50; }
1223
-
1224
- .cm-s-default .cm-meta { color: #555; }
1225
-
1226
- .cm-s-default .cm-qualifier { color: #555; }
1227
-
1228
- .cm-s-default .cm-builtin { color: #30a; }
1229
-
1230
- .cm-s-default .cm-bracket { color: #997; }
1231
-
1232
- .cm-s-default .cm-tag { color: #170; }
1233
-
1234
- .cm-s-default .cm-attribute { color: #00c; }
1235
-
1236
- .cm-s-default .cm-hr { color: #999; }
1237
-
1238
- .cm-s-default .cm-link { color: #00c; }
1239
-
1240
- .cm-s-default .cm-error { color: #f00; }
1241
-
1242
- .cm-invalidchar { color: #f00; }
1243
-
1244
- .CodeMirror-composing { border-bottom: 2px solid; }
1245
-
1246
- /* Default styles for common addons */
1247
- div.CodeMirror span.CodeMirror-matchingbracket { color: #0b0; }
1248
-
1249
- div.CodeMirror span.CodeMirror-nonmatchingbracket { color: #a22; }
1250
-
1251
- .CodeMirror-matchingtag { background: rgba(255, 150, 0, 0.3); }
1252
-
1253
- .CodeMirror-activeline-background { background: #e8f2ff; }
1254
-
1255
- /* STOP */
1256
- /* The rest of this file contains styles related to the mechanics of the editor. You probably shouldn't touch them. */
1257
- .CodeMirror { position: relative; overflow: hidden; background: white; }
1258
-
1259
- .CodeMirror-scroll { overflow: scroll !important; /* Things will break if this is overridden */ /* 30px is the magic margin used to hide the element's real scrollbars */ /* See overflow: hidden in .CodeMirror */ margin-bottom: -30px; margin-right: -30px; padding-bottom: 30px; height: 100%; outline: none; /* Prevent dragging from highlighting the element */ position: relative; }
1260
-
1261
- .CodeMirror-sizer { position: relative; border-right: 30px solid transparent; }
1262
-
1263
- /* The fake, visible scrollbars. Used to force redraw during scrolling before actual scrolling happens, thus preventing shaking and flickering artifacts. */
1264
- .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { position: absolute; z-index: 6; display: none; }
1265
-
1266
- .CodeMirror-vscrollbar { right: 0; top: 0; overflow-x: hidden; overflow-y: scroll; }
1267
-
1268
- .CodeMirror-hscrollbar { bottom: 0; left: 0; overflow-y: hidden; overflow-x: scroll; }
1269
-
1270
- .CodeMirror-scrollbar-filler { right: 0; bottom: 0; }
1271
-
1272
- .CodeMirror-gutter-filler { left: 0; bottom: 0; }
1273
-
1274
- .CodeMirror-gutters { position: absolute; left: 0; top: 0; min-height: 100%; z-index: 3; }
1275
-
1276
- .CodeMirror-gutter { white-space: normal; height: 100%; display: inline-block; vertical-align: top; margin-bottom: -30px; }
1277
-
1278
- .CodeMirror-gutter-wrapper { position: absolute; z-index: 4; background: none !important; border: none !important; }
1279
-
1280
- .CodeMirror-gutter-background { position: absolute; top: 0; bottom: 0; z-index: 4; }
1281
-
1282
- .CodeMirror-gutter-elt { position: absolute; cursor: default; z-index: 4; }
1283
-
1284
- .CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent; }
1285
-
1286
- .CodeMirror-gutter-wrapper ::selection { background-color: transparent; }
1287
-
1288
- .CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent; }
1289
-
1290
- .CodeMirror-lines { cursor: text; min-height: 1px; /* prevents collapsing before first draw */ }
1291
-
1292
- .CodeMirror pre { /* Reset some styles that the rest of the page might have set */ border-radius: 0; border-width: 0; background: transparent; font-family: inherit; font-size: inherit; margin: 0; white-space: pre; word-wrap: normal; line-height: inherit; color: inherit; z-index: 2; position: relative; overflow: visible; -webkit-tap-highlight-color: transparent; font-variant-ligatures: contextual; }
1293
-
1294
- .CodeMirror-wrap pre { word-wrap: break-word; white-space: pre-wrap; word-break: normal; }
1295
-
1296
- .CodeMirror-linebackground { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 0; }
1297
-
1298
- .CodeMirror-linewidget { position: relative; z-index: 2; padding: 0.1px; /* Force widget margins to stay inside of the container */ }
1299
-
1300
- .CodeMirror-rtl pre { direction: rtl; }
1301
-
1302
- .CodeMirror-code { outline: none; }
1303
-
1304
- /* Force content-box sizing for the elements where we expect it */
1305
- .CodeMirror-scroll, .CodeMirror-sizer, .CodeMirror-gutter, .CodeMirror-gutters, .CodeMirror-linenumber { box-sizing: content-box; }
1306
-
1307
- .CodeMirror-measure { position: absolute; width: 100%; height: 0; overflow: hidden; visibility: hidden; }
1308
-
1309
- .CodeMirror-cursor { position: absolute; pointer-events: none; }
1310
-
1311
- .CodeMirror-measure pre { position: static; }
1312
-
1313
- div.CodeMirror-cursors { visibility: hidden; position: relative; z-index: 3; }
1314
-
1315
- div.CodeMirror-dragcursors { visibility: visible; }
1316
-
1317
- .CodeMirror-focused div.CodeMirror-cursors { visibility: visible; }
1318
-
1319
- .CodeMirror-selected { background: #d9d9d9; }
1320
-
1321
- .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
1322
-
1323
- .CodeMirror-crosshair { cursor: crosshair; }
1324
-
1325
- .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
1326
-
1327
- .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
1328
-
1329
- .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
1330
-
1331
- .cm-searching { background-color: #ffa; background-color: rgba(255, 255, 0, 0.4); }
1332
-
1333
- /* Used to force a border model for a node */
1334
- .cm-force-border { padding-right: .1px; }
1335
-
1336
- @media print { /* Hide the cursor when printing */
1337
- .CodeMirror div.CodeMirror-cursors { visibility: hidden; } }
1338
-
1339
- /* See issue #2901 */
1340
- .cm-tab-wrap-hack:after { content: ''; }
1341
-
1342
- /* Help users use markselection to safely style text background */
1343
- span.CodeMirror-selectedtext { background: none; }
1344
-
1345
- /* neo theme for codemirror */
1346
- /* Color scheme */
1347
- .cm-s-neo.CodeMirror { background-color: #ffffff; color: #2e383c; line-height: 1.4375; }
1348
-
1349
- .cm-s-neo .cm-comment { color: #75787b; }
1350
-
1351
- .cm-s-neo .cm-keyword, .cm-s-neo .cm-property { color: #1d75b3; }
1352
-
1353
- .cm-s-neo .cm-atom, .cm-s-neo .cm-number { color: #75438a; }
1354
-
1355
- .cm-s-neo .cm-node, .cm-s-neo .cm-tag { color: #9c3328; }
1356
-
1357
- .cm-s-neo .cm-string { color: #b35e14; }
1358
-
1359
- .cm-s-neo .cm-variable, .cm-s-neo .cm-qualifier { color: #047d65; }
1360
-
1361
- /* Editor styling */
1362
- .cm-s-neo pre { padding: 0; }
1363
-
1364
- .cm-s-neo .CodeMirror-gutters { border: none; border-right: 10px solid transparent; background-color: transparent; }
1365
-
1366
- .cm-s-neo .CodeMirror-linenumber { padding: 0; color: #e0e2e5; }
1367
-
1368
- .cm-s-neo .CodeMirror-guttermarker { color: #1d75b3; }
1369
-
1370
- .cm-s-neo .CodeMirror-guttermarker-subtle { color: #e0e2e5; }
1371
-
1372
- .cm-s-neo .CodeMirror-cursor { width: auto; border: 0; background: rgba(155, 157, 162, 0.37); z-index: 1; }
1373
-
1374
- #mailpoet_form_name { font-size: 23px; }
1375
-
1376
- #mailpoet_form_history { display: none; }
1377
-
1378
- #mailpoet_form_editor { background-color: #fff; border: 1px solid #ccc; box-shadow: 0 0 5px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.1); padding: 20px; position: relative; width: 300px; }
1379
-
1380
- #mailpoet_form_editor:before, #mailpoet_form_editor:after { background: transparent; bottom: 12px; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); content: ' '; height: 10px; left: 12px; position: absolute; transform: skew(-5deg) rotate(-5deg); width: 40%; z-index: -1; }
1381
-
1382
- #mailpoet_form_editor:after { left: auto; right: 12px; transform: skew(5deg) rotate(5deg); }
1383
-
1384
- /* Warnings in blocks */
1385
- .mailpoet_warning { color: #900; font-weight: bold; }
1386
-
1387
- .block_placeholder { border: 0 none; font-weight: bold; height: 0; line-height: 30px; margin: 0 auto; overflow: hidden; text-align: center; text-indent: -9999px; width: 298px; z-index: 9500; }
1388
-
1389
- .block_placeholder.active { /* border:1px dashed #dfdfdf; */ /* background-color:#f5f5f5; */ background-color: #4cb7e1; display: block; height: 30px; overflow: auto; text-indent: 0; }
1390
-
1391
- .block_placeholder.hover { background-color: #0074a2; border-color: #0074a2; color: #fff; }
1392
-
1393
- /* Widget: checkbox, radio */
1394
- .mailpoet_radio, .mailpoet_checkbox { margin: -2px 5px 0 0; }
1395
-
1396
- /* MailPoet Form wrapper */
1397
- #mailpoet_form_wrapper { margin: 20px 0 0; position: relative; }
1398
-
1399
- /* MailPoet Form container */
1400
- #mailpoet_form_container { margin: 0; width: 340px; }
1401
-
1402
- #mailpoet_form_editor.loading, #mailpoet_form_toolbar.loading { background: url("loading.gif") no-repeat center center #fcfcfc; }
1403
-
1404
- #mailpoet_form_toolbar.loading { border: 1px solid #dfdfdf; }
1405
-
1406
- #mailpoet_form_toolbar.loading #mailpoet_toolbar_fields { visibility: hidden; z-index: 1; }
1407
-
1408
- /* Tabs : content/images/styles/themes */
1409
- #wysija-add-field { float: none; }
1410
-
1411
- #mailpoet_form_toolbar { position: absolute; width: 400px; z-index: 999; }
1412
-
1413
- #mailpoet_form_toolbar .mailpoet_form_toolbar_tabs { border-bottom: 1px solid #dfdfdf; line-height: 0; }
1414
-
1415
- #mailpoet_form_toolbar .add_custom_field { padding: 15px 0 5px; text-align: center; }
1416
-
1417
- #mailpoet_form_toolbar .mailpoet_form_toolbar_tabs li, #mailpoet_form_toolbar .mailpoet_form_toolbar_tabs a { display: inline-block; *display: inline; *float: left; height: 30px; line-height: 30px; margin: 0; outline: 0 none; padding: 0; }
1418
-
1419
- #mailpoet_form_toolbar .mailpoet_form_toolbar_tabs li { margin: 0 0 1px; }
1420
-
1421
- #mailpoet_form_toolbar .mailpoet_form_toolbar_tabs a { background: linear-gradient(center top, #f9f9f9, #f5f5f5); background-color: #f5f5f5; border: 1px solid #dfdfdf; border-radius: 3px 3px 0 0; box-shadow: 0 1px 0 #fff inset; color: #a6a6a6; font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; outline: 0 none; padding: 0 7px; text-decoration: none; }
1422
-
1423
- #mailpoet_form_toolbar .mailpoet_form_toolbar_tabs a:hover { background-color: #eee; }
1424
-
1425
- #mailpoet_form_toolbar .mailpoet_form_toolbar_tabs a.selected { background: #fcfcfc; border-bottom: 0 none; color: #000; -webkit-filter: none; filter: none; padding-bottom: 1px; }
1426
-
1427
- #mailpoet_form_toolbar .mailpoet_form_toolbar_tabs .last a, .wysija_params { display: none !important; }
1428
-
1429
- #mailpoet_form_toolbar .mailpoet_form_toolbar_tabs, #mailpoet_form_toolbar #mailpoet_toolbar_fields { margin: 0; position: relative; z-index: 9998; }
1430
-
1431
- /* edit form name */
1432
- #mailpoet_form_name_input { vertical-align: bottom; }
1433
-
1434
- /* wysija widgets */
1435
- .mailpoet_form_widget { height: 25px; line-height: 25px; width: 298px; z-index: 9999 !important; }
1436
-
1437
- .mailpoet_toolbar_section { background: none repeat scroll 0 0 #fff; border: 1px solid #e5e5e5; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); cursor: pointer; margin-bottom: 0; max-height: 2000px; min-width: 255px; overflow: hidden; position: relative; transition: max-height .5s ease-in-out; }
1438
-
1439
- .mailpoet_toolbar_section > div { height: 100%; min-width: 255px; overflow: auto; padding: 10px 20px 20px; }
1440
-
1441
- .mailpoet_toolbar_section h3 { margin: 10px; position: relative; }
1442
-
1443
- .mailpoet_toolbar_section.closed { max-height: 38px; }
1444
-
1445
- .mailpoet_toolbar_section .mailpoet_toggle { height: 38px; position: absolute; right: 0; top: 0; width: 27px; }
1446
-
1447
- .mailpoet_toolbar_section .mailpoet_toggle:focus { box-shadow: none !important; outline: 0 none !important; }
1448
-
1449
- .mailpoet_toolbar_section .mailpoet_toggle:before { content: '\f142'; display: inline-block; font: 400 20px / 1 dashicons; padding: 8px 10px; position: relative; right: 12px; speak: none; text-decoration: none !important; top: 0; }
1450
-
1451
- .mailpoet_toolbar_section.closed .mailpoet_toggle:before { content: '\f140'; }
1452
-
1453
- #mailpoet_form_styles { margin: 10px; max-width: 318px; min-height: 300px; resize: vertical; width: 318px; }
1454
-
1455
- #mailpoet_form_toolbar a.mailpoet_form_field, .mailpoet_form_widget { background: linear-gradient(center 0, #f9f9f9, #ececec); background-color: #f5f5f5; border: 1px solid #dfdfdf; border-radius: 3px; box-shadow: 0 1px 0 #fff inset; color: #222; cursor: move; display: block; font-size: 12px; font-weight: bold; height: 25px; line-height: 25px; padding: 0 7px; text-shadow: 0 1px 0 #fff; }
1456
-
1457
- #mailpoet_form_toolbar a.mailpoet_form_field.disabled { color: #ccc; cursor: pointer; pointer-events: none; }
1458
-
1459
- .mailpoet_form_field_edit { bottom: 13px; position: absolute; right: 27px; }
1460
-
1461
- .mailpoet_form_field_delete { bottom: 13px; position: absolute; right: 7px; }
1462
-
1463
- /* toolbar: fields */
1464
- #mailpoet_toolbar_fields li { padding: 0 0 10px; position: relative; }
1465
-
1466
- #mailpoet_toolbar_fields li.notice { background: none !important; border: 0 none !important; font-size: 11px; font-style: italic; margin: 0 !important; }
1467
-
1468
- /* blocks */
1469
- .mailpoet_form_block { background-color: #fff; border: 0 none; display: inline-table; display: block; height: 1%; margin: 0; padding: 10px 18px; position: relative; z-index: 98; }
1470
-
1471
- .mailpoet_form_block.highlighted { border: 1px solid #5897fb; padding: 9px 17px; }
1472
-
1473
- .mailpoet_form_block img { max-width: 100%; }
1474
-
1475
- /* Widget styles */
1476
- .mailpoet_form_block p { margin: 5px 0; word-wrap: break-word; }
1477
-
1478
- .mailpoet_form_block.dragging { pointer-events: none; z-index: 99000; }
1479
-
1480
- .mailpoet_form_block:after { clear: both; content: '.'; display: block; height: 0; visibility: hidden; }
1481
-
1482
- .mailpoet_form_block.hover { border: 1px dashed #bbb; margin: 0; padding: 9px 17px; }
1483
-
1484
- .mailpoet_form_block.static { background-color: #999; }
1485
-
1486
- /* controls */
1487
- .mailpoet_form_block .wysija_controls { background: linear-gradient(center 0, #eee, #bbb); background-color: #dfdfdf; border: 1px solid #ccc; border-radius: 2px; height: 20px; left: -1px; margin: 0; padding: 0; position: absolute; right: 0; top: -22px; width: 298px; }
1488
-
1489
- .mailpoet_form_block .wysija_controls li { float: left; height: 20px; width: 20px; }
1490
-
1491
- .mailpoet_form_block .wysija_controls a { color: #000; cursor: pointer; float: left; font-size: 120%; font-weight: bold; height: 20px; line-height: 20px; text-align: center; width: 20px; }
1492
-
1493
- .mailpoet_form_block .wysija_controls a.remove { margin: 0 0 0 1px; }
1494
-
1495
- .mailpoet_form_block .handle_container, .mailpoet_form_block .handle_container a { float: none; width: 40px !important; }
1496
-
1497
- .mailpoet_form_block .handle_container { left: 140px; position: absolute; top: 0; }
1498
-
1499
- /* controls & icons */
1500
- .wysija_controls a span, .wysija_gallery .wysija_tools a span, .wysija_image .wysija_tools a span, .wysija_text .wysija_tools a span, #mailpoet_toolbar_fields a span { display: block; height: 20px; width: 20px; }
1501
-
1502
- /* toolbar: full width button */
1503
- /* color picker in control bars */
1504
- .wysija_controls span input { color: transparent; margin: 2px 0 0; padding: 0; }
1505
-
1506
- /* left alignment button */
1507
- .alignment-left span { background: url("../../img/form_editor_icons.png") no-repeat 0 0; }
1508
-
1509
- .alignment-left.active span, .alignment-left:hover span { background: url("../../img/form_editor_icons.png") no-repeat 0 -20px; }
1510
-
1511
- /* center alignment button */
1512
- .alignment-center span { background: url("../../img/form_editor_icons.png") no-repeat -20px 0; }
1513
-
1514
- .alignment-center.active span, .alignment-center:hover span { background: url("../../img/form_editor_icons.png") no-repeat -20px -20px; }
1515
-
1516
- /* right alignment button */
1517
- .alignment-right span { background: url("../../img/form_editor_icons.png") no-repeat -40px 0; }
1518
-
1519
- .alignment-right.active span, .alignment-right:hover span { background: url("../../img/form_editor_icons.png") no-repeat -40px -20px; }
1520
-
1521
- /* linking */
1522
- .add-link span { background: url("../../img/form_editor_icons.png") no-repeat -60px 0; }
1523
-
1524
- .add-link.active span, .add-link:hover span { background: url("../../img/form_editor_icons.png") no-repeat -60px -20px; }
1525
-
1526
- .remove-link span { background: url("../../img/form_editor_icons.png") no-repeat -80px 0; }
1527
-
1528
- .remove-link.active span, .remove-link:hover span { background: url("../../img/form_editor_icons.png") no-repeat -80px -20px; }
1529
-
1530
- /* block controls */
1531
- .remove span, .delete span { background: url("../../img/form_editor_icons.png") no-repeat -100px 0; }
1532
-
1533
- .remove.active span, .remove:hover span, .delete.active span, .delete:hover span { background: url("../../img/form_editor_icons.png") no-repeat -100px -20px; }
1534
-
1535
- .handle span { background: url("../../img/handle.png") no-repeat; cursor: move; width: 40px !important; }
1536
-
1537
- .duplicate span { background: url("../../img/form_editor_icons.png") no-repeat -140px 0; }
1538
-
1539
- .duplicate.active span, .duplicate:hover span { background: url("../../img/form_editor_icons.png") no-repeat -140px -20px; }
1540
-
1541
- .settings span { background: url("../../img/form_editor_icons.png") no-repeat -160px 0; }
1542
-
1543
- .settings.active span, .settings:hover span { background: url("../../img/form_editor_icons.png") no-repeat -160px -20px; }
1544
-
1545
- .icon-plus span { background: url("../../img/form_editor_icons.png") no-repeat -200px 0; }
1546
-
1547
- .icon-plus.active span, .icon-plus:hover span { background: url("../../img/form_editor_icons.png") no-repeat -200px -20px; }
1548
-
1549
- .icon-minus span { background: url("../../img/form_editor_icons.png") no-repeat -220px 0; }
1550
-
1551
- .icon-minus.active span, .icon-minus:hover span { background: url("../../img/form_editor_icons.png") no-repeat -220px -20px; }
1552
-
1553
- /* wysija options */
1554
- .wysija_options { display: none; }
1555
-
1556
- /* wysija block settings */
1557
- .wysija_settings { position: absolute; z-index: 1000; }
1558
-
1559
- .wysija_settings a { background: linear-gradient(center 0, #f9f9f9, #ececec); background-color: #f5f5f5; border: 1px solid #dfdfdf; border-radius: 3px; box-shadow: 0 1px 0 #fff inset; color: #222; cursor: pointer; display: block; font-size: 12px; font-weight: normal; padding: 5px 5px 3px 27px; text-decoration: none; text-shadow: 0 1px 0 #fff; }
1560
-
1561
- .wysija_settings a span { height: 20px; left: 5px; position: absolute; top: 3px; width: 20px; }
1562
-
1563
- /* labels */
1564
- .mailpoet_form_block label { display: block; margin: 0 5px 0 0; }
1565
-
1566
- /* form settings: success message */
1567
- #mailpoet_on_success textarea, #mailpoet_on_success select { width: 100%; }
1568
-
1569
- #mailpoet_on_success textarea { height: 50px; min-height: 50px; resize: vertical; }
1570
-
1571
- /* make sure textareas within the form editor are not resizeable */
1572
- .mailpoet_form_block textarea { resize: none; }
1573
-
1574
- /* remove click events from inputs within form editor */
1575
- .mailpoet_form_block input, .mailpoet_form_block textarea { pointer-events: none; }
1576
-
1577
- /* form export */
1578
- #mailpoet_form_export textarea { display: none; font-size: 85%; height: 150px; min-height: 150px; resize: vertical; width: 340px; }
1579
-
1580
- /** Styling for WP 3.8 and higher */
1581
- .mailpoet_form_field_edit, .mailpoet_form_field_delete { text-decoration: none; }
1582
-
1583
- .mailpoet_form_field_edit:hover .dashicons-admin-generic:before, .mailpoet_form_field_delete:hover .dashicons-dismiss:before, .settings:hover .dashicons-admin-generic:before { color: #2ea2cc; }
1584
-
1585
- .mailpoet_form_field_edit span, .mailpoet_form_field_delete span { background: none !important; color: #999; }
1586
-
1587
- .mailpoet_form_field_delete span:before { font-size: 21px; }
1588
-
1589
- /* Code Mirror */
1590
- .CodeMirror { border: 1px solid #eee; }
1591
-
1592
- /* Settings */
1593
- #mailpoet_form_segments.parsley-error + span .select2-selection { border: 1px solid #b94a48; }
1594
-
1595
- .mailpoet_form_field_settings_text { min-height: 100px; width: 100%; }
1596
-
1597
  .mailpoet_listing_loading tbody tr, .mailpoet_form_loading tbody tr { opacity: .2; }
1598
 
1599
  .mailpoet_select_all { background-color: #f1f1f1; }
@@ -2121,8 +1665,6 @@ Custom styles for MailPoet pages.
2121
 
2122
  .mailpoet_congratulate_success img, .mailpoet_congratulate_success .button { display: block; margin-left: auto; margin-right: auto; }
2123
 
2124
- .mailpoet_congratulate_success .typeform-widget { height: 350px; margin: 0 auto 30px; max-width: 100%; width: 500px; }
2125
-
2126
  .mailpoet_congratulate_success.mailpoet_congratulate_mss_pitch .button, .mailpoet_congratulate_success.mailpoet_congratulate_mss_pitch img { display: inline-block; }
2127
 
2128
  .mailpoet-discount-container { background: white; border: 1px solid #ff5301; margin: 15px; padding: 20px; text-align: center; }
1138
 
1139
  .mailpoet_info_notice { border-left: 4px solid #00a0d2; }
1140
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1141
  .mailpoet_listing_loading tbody tr, .mailpoet_form_loading tbody tr { opacity: .2; }
1142
 
1143
  .mailpoet_select_all { background-color: #f1f1f1; }
1665
 
1666
  .mailpoet_congratulate_success img, .mailpoet_congratulate_success .button { display: block; margin-left: auto; margin-right: auto; }
1667
 
 
 
1668
  .mailpoet_congratulate_success.mailpoet_congratulate_mss_pitch .button, .mailpoet_congratulate_success.mailpoet_congratulate_mss_pitch img { display: inline-block; }
1669
 
1670
  .mailpoet-discount-container { background: white; border: 1px solid #ff5301; margin: 15px; padding: 20px; text-align: center; }
assets/dist/css/manifest.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "formEditor.css": "formEditor.c135de00.css",
3
  "mailpoet-admin.css": "mailpoet-admin.7cf6f0c2.css",
4
- "mailpoet-plugin.css": "mailpoet-plugin.b8a4643c.css",
5
  "mailpoet-public.css": "mailpoet-public.369b5903.css"
6
  }
1
  {
2
+ "formEditor.css": "formEditor.062f5086.css",
3
  "mailpoet-admin.css": "mailpoet-admin.7cf6f0c2.css",
4
+ "mailpoet-plugin.css": "mailpoet-plugin.fdb38a65.css",
5
  "mailpoet-public.css": "mailpoet-public.369b5903.css"
6
  }
assets/dist/js/admin.6e8d98cb.chunk.js DELETED
@@ -1,42 +0,0 @@
1
- (window.mailpoetJsonp=window.mailpoetJsonp||[]).push([[2,3],{108:function(e,t,a){e.exports=a(135)},135:function(e,t,a){e.exports=a(136)},136:function(e,t,a){a(137);var n=a(24);e.exports=n.Number.isNaN},137:function(e,t,a){a(18)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},25:function(e,t,a){
2
- /**!
3
-
4
- @license
5
- handlebars v4.5.3
6
-
7
- Copyright (C) 2011-2017 by Yehuda Katz
8
-
9
- Permission is hereby granted, free of charge, to any person obtaining a copy
10
- of this software and associated documentation files (the "Software"), to deal
11
- in the Software without restriction, including without limitation the rights
12
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
- copies of the Software, and to permit persons to whom the Software is
14
- furnished to do so, subject to the following conditions:
15
-
16
- The above copyright notice and this permission notice shall be included in
17
- all copies or substantial portions of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
- THE SOFTWARE.
26
-
27
- */
28
- var n;n=function(){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}return a.m=e,a.c=t,a.p="",a(0)}([function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var r=n(a(2)),i=n(a(40)),s=a(41),o=a(46),l=n(a(49)),c=n(a(44)),u=n(a(39)),p=r.default.create;function m(){var e=p();return e.compile=function(t,a){return o.compile(t,a,e)},e.precompile=function(t,a){return o.precompile(t,a,e)},e.AST=i.default,e.Compiler=o.Compiler,e.JavaScriptCompiler=l.default,e.Parser=s.parser,e.parse=s.parse,e.parseWithoutProcessing=s.parseWithoutProcessing,e}var d=m();d.create=m,u.default(d),d.Visitor=c.default,d.default=d,t.default=d,e.exports=t.default},function(e,t){"use strict";t.default=function(e){return e&&e.__esModule?e:{default:e}},t.__esModule=!0},function(e,t,a){"use strict";var n=a(3).default,r=a(1).default;t.__esModule=!0;var i=n(a(4)),s=r(a(33)),o=r(a(6)),l=n(a(5)),c=n(a(34)),u=r(a(39));function p(){var e=new i.HandlebarsEnvironment;return l.extend(e,i),e.SafeString=s.default,e.Exception=o.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=c,e.template=function(t){return c.template(t,e)},e}var m=p();m.create=p,u.default(m),m.default=m,t.default=m,e.exports=t.default},function(e,t){"use strict";t.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t},t.__esModule=!0},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0,t.HandlebarsEnvironment=c;var r=a(5),i=n(a(6)),s=a(10),o=a(30),l=n(a(32));function c(e,t,a){this.helpers=e||{},this.partials=t||{},this.decorators=a||{},s.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}t.VERSION="4.5.3",t.COMPILER_REVISION=8,t.LAST_COMPATIBLE_COMPILER_REVISION=7,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"},c.prototype={constructor:c,logger:l.default,log:l.default.log,registerHelper:function(e,t){if("[object Object]"===r.toString.call(e)){if(t)throw new i.default("Arg not supported with multiple helpers");r.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if("[object Object]"===r.toString.call(e))r.extend(this.partials,e);else{if(void 0===t)throw new i.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if("[object Object]"===r.toString.call(e)){if(t)throw new i.default("Arg not supported with multiple decorators");r.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]}};var u=l.default.log;t.log=u,t.createFrame=r.createFrame,t.logger=l.default},function(e,t){"use strict";t.__esModule=!0,t.extend=s,t.indexOf=function(e,t){for(var a=0,n=e.length;a<n;a++)if(e[a]===t)return a;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return r.test(e)?e.replace(n,i):e},t.isEmpty=function(e){return!e&&0!==e||!(!c(e)||0!==e.length)},t.createFrame=function(e){var t=s({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},n=/[&<>"'`=]/g,r=/[&<>"'`=]/;function i(e){return a[e]}function s(e){for(var t=1;t<arguments.length;t++)for(var a in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],a)&&(e[a]=arguments[t][a]);return e}var o=Object.prototype.toString;t.toString=o;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)}),t.isFunction=l;var c=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===o.call(e)};t.isArray=c},function(e,t,a){"use strict";var n=a(7).default;t.__esModule=!0;var r=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function i(e,t){var a=t&&t.loc,s=void 0,o=void 0,l=void 0,c=void 0;a&&(s=a.start.line,o=a.end.line,l=a.start.column,c=a.end.column,e+=" - "+s+":"+l);for(var u=Error.prototype.constructor.call(this,e),p=0;p<r.length;p++)this[r[p]]=u[r[p]];Error.captureStackTrace&&Error.captureStackTrace(this,i);try{a&&(this.lineNumber=s,this.endLineNumber=o,n?(Object.defineProperty(this,"column",{value:l,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=l,this.endColumn=c))}catch(e){}}i.prototype=new Error,t.default=i,e.exports=t.default},function(e,t,a){e.exports={default:a(8),__esModule:!0}},function(e,t,a){var n=a(9);e.exports=function(e,t,a){return n.setDesc(e,t,a)}},function(e,t){var a=Object;e.exports={create:a.create,getProto:a.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:a.getOwnPropertyDescriptor,setDesc:a.defineProperty,setDescs:a.defineProperties,getKeys:a.keys,getNames:a.getOwnPropertyNames,getSymbols:a.getOwnPropertySymbols,each:[].forEach}},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0,t.registerDefaultHelpers=function(e){r.default(e),i.default(e),s.default(e),o.default(e),l.default(e),c.default(e),u.default(e)},t.moveHelperToHooks=function(e,t,a){e.helpers[t]&&(e.hooks[t]=e.helpers[t],a||delete e.helpers[t])};var r=n(a(11)),i=n(a(12)),s=n(a(25)),o=n(a(26)),l=n(a(27)),c=n(a(28)),u=n(a(29))},function(e,t,a){"use strict";t.__esModule=!0;var n=a(5);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,a){var r=a.inverse,i=a.fn;if(!0===t)return i(this);if(!1===t||null==t)return r(this);if(n.isArray(t))return t.length>0?(a.ids&&(a.ids=[a.name]),e.helpers.each(t,a)):r(this);if(a.data&&a.ids){var s=n.createFrame(a.data);s.contextPath=n.appendContextPath(a.data.contextPath,a.name),a={data:s}}return i(t,a)}))},e.exports=t.default},function(e,t,a){(function(n){"use strict";var r=a(13).default,i=a(1).default;t.__esModule=!0;var s=a(5),o=i(a(6));t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new o.default("Must pass iterator to #each");var a,i=t.fn,l=t.inverse,c=0,u="",p=void 0,m=void 0;function d(t,a,n){p&&(p.key=t,p.index=a,p.first=0===a,p.last=!!n,m&&(p.contextPath=m+t)),u+=i(e[t],{data:p,blockParams:s.blockParams([e[t],t],[m+t,null])})}if(t.data&&t.ids&&(m=s.appendContextPath(t.data.contextPath,t.ids[0])+"."),s.isFunction(e)&&(e=e.call(this)),t.data&&(p=s.createFrame(t.data)),e&&"object"==typeof e)if(s.isArray(e))for(var h=e.length;c<h;c++)c in e&&d(c,c,c===e.length-1);else if(n.Symbol&&e[n.Symbol.iterator]){for(var f=[],g=e[n.Symbol.iterator](),v=g.next();!v.done;v=g.next())f.push(v.value);for(h=(e=f).length;c<h;c++)d(c,c,c===e.length-1)}else a=void 0,r(e).forEach((function(e){void 0!==a&&d(a,c-1),a=e,c++})),void 0!==a&&d(a,c-1,!0);return 0===c&&(u=l(this)),u}))},e.exports=t.default}).call(t,function(){return this}())},function(e,t,a){e.exports={default:a(14),__esModule:!0}},function(e,t,a){a(15),e.exports=a(21).Object.keys},function(e,t,a){var n=a(16);a(18)("keys",(function(e){return function(t){return e(n(t))}}))},function(e,t,a){var n=a(17);e.exports=function(e){return Object(n(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,a){var n=a(19),r=a(21),i=a(24);e.exports=function(e,t){var a=(r.Object||{})[e]||Object[e],s={};s[e]=t(a),n(n.S+n.F*i((function(){a(1)})),"Object",s)}},function(e,t,a){var n=a(20),r=a(21),i=a(22),s=function(e,t,a){var o,l,c,u=e&s.F,p=e&s.G,m=e&s.S,d=e&s.P,h=e&s.B,f=e&s.W,g=p?r:r[t]||(r[t]={}),v=p?n:m?n[t]:(n[t]||{}).prototype;for(o in p&&(a=t),a)(l=!u&&v&&o in v)&&o in g||(c=l?v[o]:a[o],g[o]=p&&"function"!=typeof v[o]?a[o]:h&&l?i(c,n):f&&v[o]==c?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t.prototype=e.prototype,t}(c):d&&"function"==typeof c?i(Function.call,c):c,d&&((g.prototype||(g.prototype={}))[o]=c))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,e.exports=s},function(e,t){var a=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},function(e,t){var a=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=a)},function(e,t,a){var n=a(23);e.exports=function(e,t,a){if(n(e),void 0===t)return e;switch(a){case 1:return function(a){return e.call(t,a)};case 2:return function(a,n){return e.call(t,a,n)};case 3:return function(a,n,r){return e.call(t,a,n,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var r=n(a(6));t.default=function(e){e.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var r=a(5),i=n(a(6));t.default=function(e){e.registerHelper("if",(function(e,t){if(2!=arguments.length)throw new i.default("#if requires exactly one argument");return r.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||r.isEmpty(e)?t.inverse(this):t.fn(this)})),e.registerHelper("unless",(function(t,a){if(2!=arguments.length)throw new i.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:a.inverse,inverse:a.fn,hash:a.hash})}))},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",(function(){for(var t=[void 0],a=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var r=1;null!=a.hash.level?r=a.hash.level:a.data&&null!=a.data.level&&(r=a.data.level),t[0]=r,e.log.apply(e,t)}))},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0;var a=/^(constructor|__defineGetter__|__defineSetter__|__lookupGetter__|__proto__)$/;t.dangerousPropertyRegex=a,t.default=function(e){e.registerHelper("lookup",(function(e,t){return e?!a.test(String(t))||Object.prototype.propertyIsEnumerable.call(e,t)?e[t]:void 0:e}))}},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var r=a(5),i=n(a(6));t.default=function(e){e.registerHelper("with",(function(e,t){if(2!=arguments.length)throw new i.default("#with requires exactly one argument");r.isFunction(e)&&(e=e.call(this));var a=t.fn;if(r.isEmpty(e))return t.inverse(this);var n=t.data;return t.data&&t.ids&&((n=r.createFrame(t.data)).contextPath=r.appendContextPath(t.data.contextPath,t.ids[0])),a(e,{data:n,blockParams:r.blockParams([e],[n&&n.contextPath])})}))},e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0,t.registerDefaultDecorators=function(e){r.default(e)};var r=n(a(31))},function(e,t,a){"use strict";t.__esModule=!0;var n=a(5);t.default=function(e){e.registerDecorator("inline",(function(e,t,a,r){var i=e;return t.partials||(t.partials={},i=function(r,i){var s=a.partials;a.partials=n.extend({},s,t.partials);var o=e(r,i);return a.partials=s,o}),t.partials[r.args[0]]=r.fn,i}))},e.exports=t.default},function(e,t,a){"use strict";t.__esModule=!0;var n=a(5),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=n.indexOf(r.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=r.lookupLevel(e),"undefined"!=typeof console&&r.lookupLevel(r.level)<=e){var t=r.methodMap[e];console[t]||(t="log");for(var a=arguments.length,n=Array(a>1?a-1:0),i=1;i<a;i++)n[i-1]=arguments[i];console[t].apply(console,n)}}};t.default=r,e.exports=t.default},function(e,t){"use strict";function a(e){this.string=e}t.__esModule=!0,a.prototype.toString=a.prototype.toHTML=function(){return""+this.string},t.default=a,e.exports=t.default},function(e,t,a){"use strict";var n=a(35).default,r=a(3).default,i=a(1).default;t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,a=l.COMPILER_REVISION;if(!(t>=l.LAST_COMPATIBLE_COMPILER_REVISION&&t<=l.COMPILER_REVISION)){if(t<l.LAST_COMPATIBLE_COMPILER_REVISION){var n=l.REVISION_CHANGES[a],r=l.REVISION_CHANGES[t];throw new o.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+r+").")}throw new o.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}},t.template=function(e,t){if(!t)throw new o.default("No environment passed to template");if(!e||!e.main)throw new o.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var a=e.compiler&&7===e.compiler[0],r={strict:function(e,t,a){if(!(e&&t in e))throw new o.default('"'+t+'" not defined in '+e,{loc:a});return e[t]},lookup:function(e,t){for(var a=e.length,n=0;n<a;n++)if(e[n]&&null!=e[n][t])return e[n][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:s.escapeExpression,invokePartial:function(a,n,r){r.hash&&(n=s.extend({},n,r.hash),r.ids&&(r.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,n,r);var i=s.extend({},r,{hooks:this.hooks}),l=t.VM.invokePartial.call(this,a,n,i);if(null==l&&t.compile&&(r.partials[r.name]=t.compile(a,e.compilerOptions,t),l=r.partials[r.name](n,i)),null!=l){if(r.indent){for(var c=l.split("\n"),u=0,p=c.length;u<p&&(c[u]||u+1!==p);u++)c[u]=r.indent+c[u];l=c.join("\n")}return l}throw new o.default("The partial "+r.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var a=e[t];return a.decorator=e[t+"_d"],a},programs:[],program:function(e,t,a,n,r){var i=this.programs[e],s=this.fn(e);return t||r||n||a?i=u(this,e,s,t,a,n,r):i||(i=this.programs[e]=u(this,e,s)),i},data:function(e,t){for(;e&&t--;)e=e._parent;return e},nullContext:n({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(t){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=a.data;i._setup(a),!a.partial&&e.useData&&(n=function(e,t){return t&&"root"in t||((t=t?l.createFrame(t):{}).root=e),t}(t,n));var s=void 0,o=e.useBlockParams?[]:void 0;function c(t){return""+e.main(r,t,r.helpers,r.partials,n,o,s)}return e.useDepths&&(s=a.depths?t!=a.depths[0]?[t].concat(a.depths):a.depths:[t]),(c=m(e.main,c,r,a.depths||[],n,o))(t,a)}return i.isTop=!0,i._setup=function(n){if(n.partial)r.helpers=n.helpers,r.partials=n.partials,r.decorators=n.decorators,r.hooks=n.hooks;else{r.helpers=s.extend({},t.helpers,n.helpers),e.usePartial&&(r.partials=s.extend({},t.partials,n.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=s.extend({},t.decorators,n.decorators)),r.hooks={};var i=n.allowCallsToHelperMissing||a;c.moveHelperToHooks(r,"helperMissing",i),c.moveHelperToHooks(r,"blockHelperMissing",i)}},i._child=function(t,a,n,i){if(e.useBlockParams&&!n)throw new o.default("must pass block params");if(e.useDepths&&!i)throw new o.default("must pass parent depths");return u(r,t,e[t],a,0,n,i)},i},t.wrapProgram=u,t.resolvePartial=function(e,t,a){return e?e.call||a.name||(a.name=e,e=a.partials[e]):e="@partial-block"===a.name?a.data["partial-block"]:a.partials[a.name],e},t.invokePartial=function(e,t,a){var n=a.data&&a.data["partial-block"];a.partial=!0,a.ids&&(a.data.contextPath=a.ids[0]||a.data.contextPath);var r=void 0;if(a.fn&&a.fn!==p&&function(){a.data=l.createFrame(a.data);var e=a.fn;r=a.data["partial-block"]=function(t){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return a.data=l.createFrame(a.data),a.data["partial-block"]=n,e(t,a)},e.partials&&(a.partials=s.extend({},a.partials,e.partials))}(),void 0===e&&r&&(e=r),void 0===e)throw new o.default("The partial "+a.name+" could not be found");if(e instanceof Function)return e(t,a)},t.noop=p;var s=r(a(5)),o=i(a(6)),l=a(4),c=a(10);function u(e,t,a,n,r,i,s){function o(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=s;return!s||t==s[0]||t===e.nullContext&&null===s[0]||(o=[t].concat(s)),a(e,t,e.helpers,e.partials,r.data||n,i&&[r.blockParams].concat(i),o)}return(o=m(a,o,e,s,n,i)).program=t,o.depth=s?s.length:0,o.blockParams=r||0,o}function p(){return""}function m(e,t,a,n,r,i){if(e.decorator){var o={};t=e.decorator(t,o,a,n&&n[0],r,i,n),s.extend(t,o)}return t}},function(e,t,a){e.exports={default:a(36),__esModule:!0}},function(e,t,a){a(37),e.exports=a(21).Object.seal},function(e,t,a){var n=a(38);a(18)("seal",(function(e){return function(t){return e&&n(t)?e(t):t}}))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){(function(a){"use strict";t.__esModule=!0,t.default=function(e){var t=void 0!==a?a:window,n=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=n),e}},e.exports=t.default}).call(t,function(){return this}())},function(e,t){"use strict";t.__esModule=!0;var a={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!a.helpers.scopedId(e)&&!e.depth}}};t.default=a,e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default,r=a(3).default;t.__esModule=!0,t.parseWithoutProcessing=u,t.parse=function(e,t){var a=u(e,t);return new s.default(t).accept(a)};var i=n(a(42)),s=n(a(43)),o=r(a(45)),l=a(5);t.parser=i.default;var c={};function u(e,t){return"Program"===e.type?e:(i.default.yy=c,c.locInfo=function(e){return new c.SourceLocation(t&&t.srcName,e)},i.default.parse(e))}l.extend(c,o)},function(e,t){"use strict";t.__esModule=!0;var a=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,a,n,r,i,s){var o=i.length-1;switch(r){case 1:return i[o-1];case 2:this.$=n.prepareProgram(i[o]);break;case 3:case 4:case 5:case 6:case 7:case 8:this.$=i[o];break;case 9:this.$={type:"CommentStatement",value:n.stripComment(i[o]),strip:n.stripFlags(i[o],i[o]),loc:n.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:i[o],value:i[o],loc:n.locInfo(this._$)};break;case 11:this.$=n.prepareRawBlock(i[o-2],i[o-1],i[o],this._$);break;case 12:this.$={path:i[o-3],params:i[o-2],hash:i[o-1]};break;case 13:this.$=n.prepareBlock(i[o-3],i[o-2],i[o-1],i[o],!1,this._$);break;case 14:this.$=n.prepareBlock(i[o-3],i[o-2],i[o-1],i[o],!0,this._$);break;case 15:this.$={open:i[o-5],path:i[o-4],params:i[o-3],hash:i[o-2],blockParams:i[o-1],strip:n.stripFlags(i[o-5],i[o])};break;case 16:case 17:this.$={path:i[o-4],params:i[o-3],hash:i[o-2],blockParams:i[o-1],strip:n.stripFlags(i[o-5],i[o])};break;case 18:this.$={strip:n.stripFlags(i[o-1],i[o-1]),program:i[o]};break;case 19:var l=n.prepareBlock(i[o-2],i[o-1],i[o],i[o],!1,this._$),c=n.prepareProgram([l],i[o-1].loc);c.chained=!0,this.$={strip:i[o-2].strip,program:c,chain:!0};break;case 20:this.$=i[o];break;case 21:this.$={path:i[o-1],strip:n.stripFlags(i[o-2],i[o])};break;case 22:case 23:this.$=n.prepareMustache(i[o-3],i[o-2],i[o-1],i[o-4],n.stripFlags(i[o-4],i[o]),this._$);break;case 24:this.$={type:"PartialStatement",name:i[o-3],params:i[o-2],hash:i[o-1],indent:"",strip:n.stripFlags(i[o-4],i[o]),loc:n.locInfo(this._$)};break;case 25:this.$=n.preparePartialBlock(i[o-2],i[o-1],i[o],this._$);break;case 26:this.$={path:i[o-3],params:i[o-2],hash:i[o-1],strip:n.stripFlags(i[o-4],i[o])};break;case 27:case 28:this.$=i[o];break;case 29:this.$={type:"SubExpression",path:i[o-3],params:i[o-2],hash:i[o-1],loc:n.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:i[o],loc:n.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:n.id(i[o-2]),value:i[o],loc:n.locInfo(this._$)};break;case 32:this.$=n.id(i[o-1]);break;case 33:case 34:this.$=i[o];break;case 35:this.$={type:"StringLiteral",value:i[o],original:i[o],loc:n.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(i[o]),original:Number(i[o]),loc:n.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===i[o],original:"true"===i[o],loc:n.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:n.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:n.locInfo(this._$)};break;case 40:case 41:this.$=i[o];break;case 42:this.$=n.preparePath(!0,i[o],this._$);break;case 43:this.$=n.preparePath(!1,i[o],this._$);break;case 44:i[o-2].push({part:n.id(i[o]),original:i[o],separator:i[o-1]}),this.$=i[o-2];break;case 45:this.$=[{part:n.id(i[o]),original:i[o]}];break;case 46:this.$=[];break;case 47:i[o-1].push(i[o]);break;case 48:this.$=[];break;case 49:i[o-1].push(i[o]);break;case 50:this.$=[];break;case 51:i[o-1].push(i[o]);break;case 58:this.$=[];break;case 59:i[o-1].push(i[o]);break;case 64:this.$=[];break;case 65:i[o-1].push(i[o]);break;case 70:this.$=[];break;case 71:i[o-1].push(i[o]);break;case 78:this.$=[];break;case 79:i[o-1].push(i[o]);break;case 82:this.$=[];break;case 83:i[o-1].push(i[o]);break;case 86:this.$=[];break;case 87:i[o-1].push(i[o]);break;case 90:this.$=[];break;case 91:i[o-1].push(i[o]);break;case 94:this.$=[];break;case 95:i[o-1].push(i[o]);break;case 98:this.$=[i[o]];break;case 99:i[o-1].push(i[o]);break;case 100:this.$=[i[o]];break;case 101:i[o-1].push(i[o])}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,a=[0],n=[null],r=[],i=this.table,s="",o=0,l=0,c=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var u=this.lexer.yylloc;r.push(u);var p=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var m,d,h,f,g,v,_,b,y,w,E={};;){if(h=a[a.length-1],this.defaultActions[h]?f=this.defaultActions[h]:(null==m&&(w=void 0,"number"!=typeof(w=t.lexer.lex()||1)&&(w=t.symbols_[w]||w),m=w),f=i[h]&&i[h][m]),void 0===f||!f.length||!f[0]){var k="";if(!c){for(v in y=[],i[h])this.terminals_[v]&&v>2&&y.push("'"+this.terminals_[v]+"'");k=this.lexer.showPosition?"Parse error on line "+(o+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+y.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[m]||m,line:this.lexer.yylineno,loc:u,expected:y})}}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+h+", token: "+m);switch(f[0]){case 1:a.push(m),n.push(this.lexer.yytext),r.push(this.lexer.yylloc),a.push(f[1]),m=null,d?(m=d,d=null):(l=this.lexer.yyleng,s=this.lexer.yytext,o=this.lexer.yylineno,u=this.lexer.yylloc,c>0&&c--);break;case 2:if(_=this.productions_[f[1]][1],E.$=n[n.length-_],E._$={first_line:r[r.length-(_||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(_||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(_||1)].range[0],r[r.length-1].range[1]]),void 0!==(g=this.performAction.call(E,s,l,o,this.yy,f[1],n,r)))return g;_&&(a=a.slice(0,-1*_*2),n=n.slice(0,-1*_),r=r.slice(0,-1*_)),a.push(this.productions_[f[1]][0]),n.push(E.$),r.push(E._$),b=i[a[a.length-2]][a[a.length-1]],a.push(b);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,a=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===n.length?this.yylloc.first_column:0)+n[n.length-a.length].length-a[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,a,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),s=0;s<i.length&&(!(a=this._input.match(this.rules[i[s]]))||t&&!(a[0].length>t[0].length)||(t=a,n=s,this.options.flex));s++);return t?((r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,i[n],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,a,n){function r(e,a){return t.yytext=t.yytext.substring(e,t.yyleng-a+e)}switch(a){case 0:if("\\\\"===t.yytext.slice(-2)?(r(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(r(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(r(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=r(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=r(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return e}();function a(){this.yy={}}return e.lexer=t,a.prototype=e,e.Parser=a,new a}();t.default=a,e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var r=n(a(44));function i(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function s(e,t,a){void 0===t&&(t=e.length);var n=e[t-1],r=e[t-2];return n?"ContentStatement"===n.type?(r||!a?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original):void 0:a}function o(e,t,a){void 0===t&&(t=-1);var n=e[t+1],r=e[t+2];return n?"ContentStatement"===n.type?(r||!a?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original):void 0:a}function l(e,t,a){var n=e[null==t?0:t+1];if(n&&"ContentStatement"===n.type&&(a||!n.rightStripped)){var r=n.value;n.value=n.value.replace(a?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==r}}function c(e,t,a){var n=e[null==t?e.length-1:t-1];if(n&&"ContentStatement"===n.type&&(a||!n.leftStripped)){var r=n.value;return n.value=n.value.replace(a?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==r,n.leftStripped}}i.prototype=new r.default,i.prototype.Program=function(e){var t=!this.options.ignoreStandalone,a=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,r=0,i=n.length;r<i;r++){var u=n[r],p=this.accept(u);if(p){var m=s(n,r,a),d=o(n,r,a),h=p.openStandalone&&m,f=p.closeStandalone&&d,g=p.inlineStandalone&&m&&d;p.close&&l(n,r,!0),p.open&&c(n,r,!0),t&&g&&(l(n,r),c(n,r)&&"PartialStatement"===u.type&&(u.indent=/([ \t]+$)/.exec(n[r-1].original)[1])),t&&h&&(l((u.program||u.inverse).body),c(n,r)),t&&f&&(l(n,r),c((u.inverse||u.program).body))}}return e},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,a=e.program&&e.inverse,n=a,r=a;if(a&&a.chained)for(n=a.body[0].program;r.chained;)r=r.body[r.body.length-1].program;var i={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:o(t.body),closeStandalone:s((n||t).body)};if(e.openStrip.close&&l(t.body,null,!0),a){var u=e.inverseStrip;u.open&&c(t.body,null,!0),u.close&&l(n.body,null,!0),e.closeStrip.open&&c(r.body,null,!0),!this.options.ignoreStandalone&&s(t.body)&&o(n.body)&&(c(t.body),l(n.body))}else e.closeStrip.open&&c(t.body,null,!0);return i},i.prototype.Decorator=i.prototype.MustacheStatement=function(e){return e.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=i,e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var r=n(a(6));function i(){this.parents=[]}function s(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function o(e){s.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function l(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}i.prototype={constructor:i,mutating:!1,acceptKey:function(e,t){var a=this.accept(e[t]);if(this.mutating){if(a&&!i.prototype[a.type])throw new r.default('Unexpected node type "'+a.type+'" found when accepting '+t+" on "+e.type);e[t]=a}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new r.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,a=e.length;t<a;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,a--)},accept:function(e){if(e){if(!this[e.type])throw new r.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:!1!==t?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:s,Decorator:s,BlockStatement:o,DecoratorBlock:o,PartialStatement:l,PartialBlockStatement:function(e){l.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:s,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t.default=i,e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0,t.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},t.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function(e,t,a){a=this.locInfo(a);for(var n=e?"@":"",i=[],s=0,o=0,l=t.length;o<l;o++){var c=t[o].part,u=t[o].original!==c;if(n+=(t[o].separator||"")+c,u||".."!==c&&"."!==c&&"this"!==c)i.push(c);else{if(i.length>0)throw new r.default("Invalid path: "+n,{loc:a});".."===c&&s++}}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:a}},t.prepareMustache=function(e,t,a,n,r,i){var s=n.charAt(3)||n.charAt(2),o="{"!==s&&"&"!==s;return{type:/\*/.test(n)?"Decorator":"MustacheStatement",path:e,params:t,hash:a,escaped:o,strip:r,loc:this.locInfo(i)}},t.prepareRawBlock=function(e,t,a,n){i(e,a),n=this.locInfo(n);var r={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:r,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}},t.prepareBlock=function(e,t,a,n,s,o){n&&n.path&&i(e,n);var l=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(a){if(l)throw new r.default("Unexpected inverse block on decorator",a);a.chain&&(a.program.body[0].closeStrip=n.strip),u=a.strip,c=a.program}return s&&(s=c,c=t,t=s),{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(o)}},t.prepareProgram=function(e,t){if(!t&&e.length){var a=e[0].loc,n=e[e.length-1].loc;a&&n&&(t={source:a.source,start:{line:a.start.line,column:a.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function(e,t,a,n){return i(e,a),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:a&&a.strip,loc:this.locInfo(n)}};var r=n(a(6));function i(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var a={loc:e.path.loc};throw new r.default(e.path.original+" doesn't match "+t,a)}}},function(e,t,a){"use strict";var n=a(47).default,r=a(1).default;t.__esModule=!0,t.Compiler=c,t.precompile=function(e,t,a){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0),t.compat&&(t.useDepths=!0);var n=a.parse(e,t),r=(new a.Compiler).compile(n,t);return(new a.JavaScriptCompiler).compile(r,t)},t.compile=function(e,t,a){if(void 0===t&&(t={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(t=s.extend({},t))||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function r(){var n=a.parse(e,t),r=(new a.Compiler).compile(n,t),i=(new a.JavaScriptCompiler).compile(r,t,void 0,!0);return a.template(i)}function o(e,t){return n||(n=r()),n.call(this,e,t)}return o._setup=function(e){return n||(n=r()),n._setup(e)},o._child=function(e,t,a,i){return n||(n=r()),n._child(e,t,a,i)},o};var i=r(a(6)),s=a(5),o=r(a(40)),l=[].slice;function c(){}function u(e,t){if(e===t)return!0;if(s.isArray(e)&&s.isArray(t)&&e.length===t.length){for(var a=0;a<e.length;a++)if(!u(e[a],t[a]))return!1;return!0}}function p(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}c.prototype={compiler:c,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var a=0;a<t;a++){var n=this.opcodes[a],r=e.opcodes[a];if(n.opcode!==r.opcode||!u(n.args,r.args))return!1}for(t=this.children.length,a=0;a<t;a++)if(!this.children[a].equals(e.children[a]))return!1;return!0},guid:0,compile:function(e,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=s.extend(n(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(e)},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),a=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[a]=t,this.useDepths=this.useDepths||t.useDepths,a},accept:function(e){if(!this[e.type])throw new i.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,a=t.length,n=0;n<a;n++)this.accept(t[n]);return this.options.blockParams.shift(),this.isSimple=1===a,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){p(e);var t=e.program,a=e.inverse;t=t&&this.compileProgram(t),a=a&&this.compileProgram(a);var n=this.classifySexpr(e);"helper"===n?this.helperSexpr(e,t,a):"simple"===n?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,a),this.opcode("pushProgram",t),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),a=this.setupFullMustacheParams(e,t,void 0),n=e.path;this.useDecorators=!0,this.opcode("registerDecorator",a.length,n.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var a=e.params;if(a.length>1)throw new i.default("Unsupported number of partial arguments: "+a.length,e);a.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):a.push({type:"PathExpression",parts:[],depth:0}));var n=e.name.original,r="SubExpression"===e.name.type;r&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var s=e.indent||"";this.options.preventIndent&&s&&(this.opcode("appendContent",s),s=""),this.opcode("invokePartial",r,n,s),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){p(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,a){var n=e.path,r=n.parts[0],i=null!=t||null!=a;this.opcode("getContext",n.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",a),n.strict=!0,this.accept(n),this.opcode("invokeAmbiguous",r,i)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,a){var n=this.setupFullMustacheParams(e,t,a),r=e.path,s=r.parts[0];if(this.options.knownHelpers[s])this.opcode("invokeKnownHelper",n.length,s);else{if(this.options.knownHelpersOnly)throw new i.default("You specified knownHelpersOnly, but used the unknown helper "+s,e);r.strict=!0,r.falsy=!0,this.accept(r),this.opcode("invokeHelper",n.length,r.original,o.default.helpers.simpleId(r))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],a=o.default.helpers.scopedId(e),n=!e.depth&&!a&&this.blockParamIndex(t);n?this.opcode("lookupBlockParam",n,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,a):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,a=0,n=t.length;for(this.opcode("pushHash");a<n;a++)this.pushParam(t[a].value);for(;a--;)this.opcode("assignToHash",t[a].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:l.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=o.default.helpers.simpleId(e.path),a=t&&!!this.blockParamIndex(e.path.parts[0]),n=!a&&o.default.helpers.helperExpression(e),r=!a&&(n||t);if(r&&!n){var i=e.path.parts[0],s=this.options;s.knownHelpers[i]?n=!0:s.knownHelpersOnly&&(r=!1)}return n?"helper":r?"ambiguous":"simple"},pushParams:function(e){for(var t=0,a=e.length;t<a;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var a=void 0;if(!e.parts||o.default.helpers.scopedId(e)||e.depth||(a=this.blockParamIndex(e.parts[0])),a){var n=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",a,n)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,a,n){var r=e.params;return this.pushParams(r),this.opcode("pushProgram",t),this.opcode("pushProgram",a),e.hash?this.accept(e.hash):this.opcode("emptyHash",n),r},blockParamIndex:function(e){for(var t=0,a=this.options.blockParams.length;t<a;t++){var n=this.options.blockParams[t],r=n&&s.indexOf(n,e);if(n&&r>=0)return[t,r]}}}},function(e,t,a){e.exports={default:a(48),__esModule:!0}},function(e,t,a){var n=a(9);e.exports=function(e,t){return n.create(e,t)}},function(e,t,a){"use strict";var n=a(13).default,r=a(1).default;t.__esModule=!0;var i=a(4),s=r(a(6)),o=a(5),l=r(a(50)),c=a(28);function u(e){this.value=e}function p(){}p.prototype={nameLookup:function(e,t){return c.dangerousPropertyRegex.test(t)?["(",[this.aliasable("container.propertyIsEnumerable"),".call(",e,",",JSON.stringify(t),")"],"?",a()," : undefined)"]:a();function a(){return p.isValidJavaScriptVariableName(t)?[e,".",t]:[e,"[",JSON.stringify(t),"]"]}},depthedLookup:function(e){return[this.aliasable("container.lookup"),'(depths, "',e,'")']},compilerInfo:function(){var e=i.COMPILER_REVISION;return[e,i.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,a){return o.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:a?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},compile:function(e,t,a,n){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!a,this.context=a||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var r=e.opcodes,i=void 0,o=void 0,l=void 0,c=void 0;for(l=0,c=r.length;l<c;l++)i=r[l],this.source.currentLocation=i.loc,o=o||i.loc,this[i.opcode].apply(this,i.args);if(this.source.currentLocation=o,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new s.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend("var decorators = container.decorators;\n"),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(n);if(this.isChild)return u;var p={compiler:this.compilerInfo(),main:u};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var m=this.context,d=m.programs,h=m.decorators;for(l=0,c=d.length;l<c;l++)d[l]&&(p[l]=d[l],h[l]&&(p[l+"_d"]=h[l],p.useDecorators=!0));return this.environment.usePartial&&(p.usePartial=!0),this.options.data&&(p.useData=!0),this.useDepths&&(p.useDepths=!0),this.useBlockParams&&(p.useBlockParams=!0),this.options.compat&&(p.compat=!0),n?p.compilerOptions=this.options:(p.compiler=JSON.stringify(p.compiler),this.source.currentLocation={start:{line:1,column:0}},p=this.objectLiteral(p),t.srcName?(p=p.toStringWithSourceMap({file:t.destName})).map=p.map&&p.map.toString():p=p.toString()),p},preamble:function(){this.lastContext=0,this.source=new l.default(this.options.srcName),this.decorators=new l.default(this.options.srcName)},createFunctionContext:function(e){var t=this,a="",r=this.stackVars.concat(this.registers.list);r.length>0&&(a+=", "+r.join(", "));var i=0;n(this.aliases).forEach((function(e){var n=t.aliases[e];n.children&&n.referenceCount>1&&(a+=", alias"+ ++i+"="+e,n.children[0]="alias"+i)}));var s=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&s.push("blockParams"),this.useDepths&&s.push("depths");var o=this.mergeSource(a);return e?(s.push(o),Function.apply(this,s)):this.source.wrap(["function(",s.join(","),") {\n ",o,"}"])},mergeSource:function(e){var t=this.environment.isSimple,a=!this.forceBuffer,n=void 0,r=void 0,i=void 0,s=void 0;return this.source.each((function(e){e.appendToBuffer?(i?e.prepend(" + "):i=e,s=e):(i&&(r?i.prepend("buffer += "):n=!0,s.add(";"),i=s=void 0),r=!0,t||(a=!1))})),a?i?(i.prepend("return "),s.add(";")):r||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),i?(i.prepend("return buffer + "),s.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":";\n")),this.source.merge()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),a=[this.contextName(0)];this.setupHelperArgs(e,0,a);var n=this.popStack();a.splice(1,0,n),this.push(this.source.functionCall(t,"call",a))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var a=this.topStack();t.splice(1,0,a),this.pushSource(["if (!",this.lastHelper,") { ",a," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack((function(e){return[" != null ? ",e,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,a,n){var r=0;n||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[r++])),this.resolvePath("context",e,r,t,a)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,a){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,a)},resolvePath:function(e,t,a,n,r){var i=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,a,n){var r=t.popStack(),i=0,s=a.length;for(e&&s--;i<s;i++)r=t.nameLookup(r,a[i],n);return e?[t.aliasable("container.strict"),"(",r,", ",t.quotedString(a[i]),", ",JSON.stringify(t.source.currentLocation)," )"]:r}(this.options.strict&&r,this,t,e));else for(var s=t.length;a<s;a++)this.replaceStack((function(r){var s=i.nameLookup(r,t[a],e);return n?[" && ",s]:[" != null ? ",s," : ",r]}))},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var a=this.nameLookup("decorators",t,"decorator"),n=this.setupHelperArgs(t,e);this.decorators.push(["fn = ",this.decorators.functionCall(a,"",["fn","props","container",n])," || fn;"])},invokeHelper:function(e,t,a){var n=this.popStack(),r=this.setupHelper(e,t),i=[];a&&i.push(r.name),i.push(n),this.options.strict||i.push(this.aliasable("container.hooks.helperMissing"));var s=["(",this.itemsSeparatedBy(i,"||"),")"],o=this.source.functionCall(s,"call",r.callParams);this.push(o)},itemsSeparatedBy:function(e,t){var a=[];a.push(e[0]);for(var n=1;n<e.length;n++)a.push(t,e[n]);return a},invokeKnownHelper:function(e,t){var a=this.setupHelper(e,t);this.push(this.source.functionCall(a.name,"call",a.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var a=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,t),r=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",e,"helper")," || ",a,")"];this.options.strict||(r[0]="(helper = ",r.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",r,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(e,t,a){var n=[],r=this.setupParams(t,1,n);e&&(t=this.popStack(),delete r.name),a&&(r.indent=JSON.stringify(a)),r.helpers="helpers",r.partials="partials",r.decorators="container.decorators",e?n.unshift(t):n.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(r.depths="depths"),r=this.objectLiteral(r),n.push(r),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash:function(e){var t=this.popStack(),a=void 0,n=void 0,r=void 0;this.trackIds&&(r=this.popStack()),this.stringParams&&(n=this.popStack(),a=this.popStack());var i=this.hash;a&&(i.contexts[e]=a),n&&(i.types[e]=n),r&&(i.ids[e]=r),i.values[e]=t},pushId:function(e,t,a){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(a?" + "+JSON.stringify("."+a):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:p,compileChildren:function(e,t){for(var a=e.children,n=void 0,r=void 0,i=0,s=a.length;i<s;i++){n=a[i],r=new this.compiler;var o=this.matchExistingProgram(n);if(null==o){this.context.programs.push("");var l=this.context.programs.length;n.index=l,n.name="program"+l,this.context.programs[l]=r.compile(n,t,this.context,!this.precompile),this.context.decorators[l]=r.decorators,this.context.environments[l]=n,this.useDepths=this.useDepths||r.useDepths,this.useBlockParams=this.useBlockParams||r.useBlockParams,n.useDepths=this.useDepths,n.useBlockParams=this.useBlockParams}else n.index=o.index,n.name="program"+o.index,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams}},matchExistingProgram:function(e){for(var t=0,a=this.context.environments.length;t<a;t++){var n=this.context.environments[t];if(n&&n.equals(e))return n}},programExpression:function(e){var t=this.environment.children[e],a=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths"),"container.program("+a.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof u||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new u(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],a=void 0,n=void 0,r=void 0;if(!this.isInline())throw new s.default("replaceStack on non-inline");var i=this.popStack(!0);if(i instanceof u)t=["(",a=[i.value]],r=!0;else{n=!0;var o=this.incrStack();t=["((",this.push(o)," = ",i,")"],a=this.topStack()}var l=e.call(this,a);r||this.popStack(),n&&this.stackSlot--,this.push(t.concat(l,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,a=e.length;t<a;t++){var n=e[t];if(n instanceof u)this.compileStack.push(n);else{var r=this.incrStack();this.pushSource([r," = ",n,";"]),this.compileStack.push(r)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),a=(t?this.inlineStack:this.compileStack).pop();if(!e&&a instanceof u)return a.value;if(!t){if(!this.stackSlot)throw new s.default("Invalid stack pop");this.stackSlot--}return a},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof u?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?(t.referenceCount++,t):((t=this.aliases[e]=this.source.wrap(e)).aliasable=!0,t.referenceCount=1,t)},setupHelper:function(e,t,a){var n=[];return{params:n,paramsInit:this.setupHelperArgs(t,e,n,a),name:this.nameLookup("helpers",t,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(n)}},setupParams:function(e,t,a){var n={},r=[],i=[],s=[],o=!a,l=void 0;o&&(a=[]),n.name=this.quotedString(e),n.hash=this.popStack(),this.trackIds&&(n.hashIds=this.popStack()),this.stringParams&&(n.hashTypes=this.popStack(),n.hashContexts=this.popStack());var c=this.popStack(),u=this.popStack();(u||c)&&(n.fn=u||"container.noop",n.inverse=c||"container.noop");for(var p=t;p--;)l=this.popStack(),a[p]=l,this.trackIds&&(s[p]=this.popStack()),this.stringParams&&(i[p]=this.popStack(),r[p]=this.popStack());return o&&(n.args=this.source.generateArray(a)),this.trackIds&&(n.ids=this.source.generateArray(s)),this.stringParams&&(n.types=this.source.generateArray(i),n.contexts=this.source.generateArray(r)),this.options.data&&(n.data="data"),this.useBlockParams&&(n.blockParams="blockParams"),n},setupHelperArgs:function(e,t,a,n){var r=this.setupParams(e,t,a);return r.loc=JSON.stringify(this.source.currentLocation),r=this.objectLiteral(r),n?(this.useRegister("options"),a.push("options"),["options=",r]):a?(a.push(r),""):r}},function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=p.RESERVED_WORDS={},a=0,n=e.length;a<n;a++)t[e[a]]=!0}(),p.isValidJavaScriptVariableName=function(e){return!p.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t.default=p,e.exports=t.default},function(e,t,a){"use strict";var n=a(13).default;t.__esModule=!0;var r=a(5),i=void 0;function s(e,t,a){if(r.isArray(e)){for(var n=[],i=0,s=e.length;i<s;i++)n.push(t.wrap(e[i],a));return n}return"boolean"==typeof e||"number"==typeof e?e+"":e}function o(e){this.srcFile=e,this.source=[]}i||((i=function(e,t,a,n){this.src="",n&&this.add(n)}).prototype={add:function(e){r.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){r.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),o.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each((function(t){e.add([" ",t,"\n"])})),e},each:function(e){for(var t=0,a=this.source.length;t<a;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new i(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof i?e:(e=s(e,this,t),new i(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,a){return a=this.generateList(a),this.wrap([e,t?"."+t+"(":"(",a,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=this,a=[];n(e).forEach((function(n){var r=s(e[n],t);"undefined"!==r&&a.push([t.quotedString(n),":",r])}));var r=this.generateList(a);return r.prepend("{"),r.add("}"),r},generateList:function(e){for(var t=this.empty(),a=0,n=e.length;a<n;a++)a&&t.add(","),t.add(s(e[a],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=o,e.exports=t.default}])},e.exports=n()},290:function(e,t,a){"use strict";e.exports=a(586)},316:function(e,t,a){e.exports=a(587)},318:function(e,t,a){e.exports=a(577)},4:function(e,t){e.exports=jQuery},45:function(e,t,a){var n=a(574);function r(){return e.exports=r=n||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},r.apply(this,arguments)}e.exports=r},470:function(e,t,a){e.exports=a(636)},481:function(e,t,a){a(576);var n=a(24);e.exports=n.Object.assign},482:function(e,t,a){var n=a(43),r=a(87),i=a(54),s=a(85).f,o=function(e){return function(t){for(var a,o=i(t),l=r(o),c=l.length,u=0,p=[];c>u;)a=l[u++],n&&!s.call(o,a)||p.push(e?[a,o[a]]:o[a]);return p}};e.exports={entries:o(!0),values:o(!1)}},486:function(e,t,a){e.exports=a(602)},490:function(e,t,a){e.exports=a(578)},491:function(e,t){e.exports=function(e){if(!window.satismeter){window.satismeter=function(){var e=[];function t(){e.push(arguments)}return t.q=e,t}();var t=document.createElement("script"),a=document.getElementsByTagName("script")[0].parentNode;t.async=1,t.src="https://app.satismeter.com/satismeter.js",a.appendChild(t)}return window.satismeter(e)}},492:function(e,t,a){var n=a(486),r=a(478),i=a(603);e.exports=function(e,t){if(null==e)return{};var a,s,o=i(e,t);if(r){var l=r(e);for(s=0;s<l.length;s++)a=l[s],n(t).call(t,a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}},493:function(e,t,a){e.exports=a(604)},495:function(e,t,a){var n;n=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","‘":"\'","’":"\'","“":"\\"","”":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial"}'),t=JSON.parse('{"vi":{"Đ":"D","đ":"d"}}');function a(a,n){if("string"!=typeof a)throw new Error("slugify: string argument expected");var r=t[(n="string"==typeof n?{replacement:n}:n||{}).locale]||{},i=a.split("").reduce((function(t,a){return t+(r[a]||e[a]||a).replace(n.remove||/[^\w\s$*_+~.()'"!\-:@]/g,"")}),"").trim().replace(/[-\s]+/g,n.replacement||"-");return n.lower?i.toLowerCase():i}return a.extend=function(t){for(var a in t)e[a]=t[a]},a},e.exports=n(),e.exports.default=n()},496:function(e,t,a){e.exports=a(617)},497:function(e,t,a){
29
- /*!
30
- Papa Parse
31
- v4.1.1
32
- https://github.com/mholt/PapaParse
33
- */
34
- !function(t){"use strict";function a(e){this._handle=null,this._paused=!1,this._finished=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=p(e);t.chunkSize=parseInt(t.chunkSize),this._handle=new s(t),this._handle.streamer=this,this._config=t}.call(this,e),this.parseChunk=function(e){var a=this._partialLine+e;this._partialLine="";var n=this._handle.parse(a,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var r=n.meta.cursor;this._finished||(this._partialLine=a.substring(r-this._baseIndex),this._baseIndex=r),n&&n.data&&(this._rowCount+=n.data.length);var i=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(f)t.postMessage({results:n,workerId:b.WORKER_ID,finished:i});else if(d(this._config.chunk)){if(this._config.chunk(n,this._handle),this._paused)return;n=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),!i||!d(this._config.complete)||n&&n.meta.aborted||this._config.complete(this._completeResults),i||n&&n.meta.paused||this._nextChunk(),n}},this._sendError=function(e){d(this._config.error)?this._config.error(e):f&&this._config.error&&t.postMessage({workerId:b.WORKER_ID,error:e,finished:!1})}}function n(e){var t;(e=e||{}).chunkSize||(e.chunkSize=b.RemoteChunkSize),a.call(this,e),this._nextChunk=f?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,f||(t.onload=m(this._chunkLoaded,this),t.onerror=m(this._chunkError,this)),t.open("GET",this._input,!f),this._config.chunkSize){var e=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+e),t.setRequestHeader("If-None-Match","webkit-no-cache")}try{t.send()}catch(e){this._chunkError(e.message)}f&&0==t.status?this._chunkError():this._start+=this._config.chunkSize}},this._chunkLoaded=function(){if(4==t.readyState){if(t.status<200||t.status>=400)return void this._chunkError();this._finished=!this._config.chunkSize||this._start>function(e){var t=e.getResponseHeader("Content-Range");return parseInt(t.substr(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)}},this._chunkError=function(e){var a=t.statusText||e;this._sendError(a)}}function r(e){(e=e||{}).chunkSize||(e.chunkSize=b.LocalChunkSize),a.call(this,e);var t,n,r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=m(this._chunkLoaded,this),t.onerror=m(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var a=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,a)}var i=t.readAsText(e,this._config.encoding);r||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function i(e){var t;e=e||{},a.call(this,e),this.stream=function(e){return e,t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e=this._config.chunkSize,a=e?t.substr(0,e):t;return t=e?t.substr(e):"",this._finished=!t,this.parseChunk(a)}}}function s(e){function t(){if(v&&l&&(r("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),l=!1),e.skipEmptyLines)for(var t=0;t<v.data.length;t++)1==v.data[t].length&&""==v.data[t][0]&&v.data.splice(t--,1);return a()&&function(){if(v){for(var e=0;a()&&e<v.data.length;e++)for(var t=0;t<v.data[e].length;t++)g.push(v.data[e][t]);v.data.splice(0,1)}}(),function(){if(!v||!e.header&&!e.dynamicTyping)return v;for(var t=0;t<v.data.length;t++){for(var a={},i=0;i<v.data[t].length;i++){if(e.dynamicTyping){var s=v.data[t][i];v.data[t][i]="true"==s||"TRUE"==s||"false"!=s&&"FALSE"!=s&&n(s)}e.header&&(i>=g.length?(a.__parsed_extra||(a.__parsed_extra=[]),a.__parsed_extra.push(v.data[t][i])):a[g[i]]=v.data[t][i])}e.header&&(v.data[t]=a,i>g.length?r("FieldMismatch","TooManyFields","Too many fields: expected "+g.length+" fields but parsed "+i,t):i<g.length&&r("FieldMismatch","TooFewFields","Too few fields: expected "+g.length+" fields but parsed "+i,t))}return e.header&&v.meta&&(v.meta.fields=g),v}()}function a(){return e.header&&0==g.length}function n(e){return c.test(e)?parseFloat(e):e}function r(e,t,a,n){v.errors.push({type:e,code:t,message:a,row:n})}var i,s,l,c=/^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i,u=this,m=0,h=!1,f=!1,g=[],v={data:[],errors:[],meta:{}};if(d(e.step)){var _=e.step;e.step=function(n){if(v=n,a())t();else{if(t(),0==v.data.length)return;m+=n.data.length,e.preview&&m>e.preview?s.abort():_(v,u)}}}this.parse=function(a,n,r){if(e.newline||(e.newline=function(e){var t=(e=e.substr(0,1048576)).split("\r");if(1==t.length)return"\n";for(var a=0,n=0;n<t.length;n++)"\n"==t[n][0]&&a++;return a>=t.length/2?"\r\n":"\r"}(a)),l=!1,!e.delimiter){var c=function(t){for(var a,n,r,i=[",","\t","|",";",b.RECORD_SEP,b.UNIT_SEP],s=0;s<i.length;s++){var l=i[s],c=0,u=0;r=void 0;for(var p=new o({delimiter:l,preview:10}).parse(t),m=0;m<p.data.length;m++){var d=p.data[m].length;u+=d,void 0!==r?d>1&&(c+=Math.abs(d-r),r=d):r=d}u/=p.data.length,(void 0===n||n>c)&&u>1.99&&(n=c,a=l)}return e.delimiter=a,{successful:!!a,bestDelimiter:a}}(a);c.successful?e.delimiter=c.bestDelimiter:(l=!0,e.delimiter=b.DefaultDelimiter),v.meta.delimiter=e.delimiter}var u=p(e);return e.preview&&e.header&&u.preview++,i=a,s=new o(u),v=s.parse(i,n,r),t(),h?{meta:{paused:!0}}:v||{meta:{paused:!1}}},this.paused=function(){return h},this.pause=function(){h=!0,s.abort(),i=i.substr(s.getCharIndex())},this.resume=function(){h=!1,u.streamer.parseChunk(i)},this.aborted=function(){return f},this.abort=function(){f=!0,s.abort(),v.meta.aborted=!0,d(e.complete)&&e.complete(v),i=""}}function o(e){var t=(e=e||{}).delimiter,a=e.newline,n=e.comments,r=e.step,i=e.preview,s=e.fastMode;if(("string"!=typeof t||b.BAD_DELIMITERS.indexOf(t)>-1)&&(t=","),n===t)throw"Comment character same as delimiter";!0===n?n="#":("string"!=typeof n||b.BAD_DELIMITERS.indexOf(n)>-1)&&(n=!1),"\n"!=a&&"\r"!=a&&"\r\n"!=a&&(a="\n");var o=0,l=!1;this.parse=function(e,c,u){function p(e){w.push(e),I=o}function m(t){return u?h():(t||(t=e.substr(o)),k.push(t),o=g,p(k),y&&f(),h())}function d(t){o=t,p(k),k=[],x=e.indexOf(a,o)}function h(e){return{data:w,errors:E,meta:{delimiter:t,linebreak:a,aborted:l,truncated:!!e,cursor:I+(c||0)}}}function f(){r(h()),w=[],E=[]}if("string"!=typeof e)throw"Input must be a string";var g=e.length,v=t.length,_=a.length,b=n.length,y="function"==typeof r;o=0;var w=[],E=[],k=[],I=0;if(!e)return h();if(s||!1!==s&&-1===e.indexOf('"')){for(var S=e.split(a),N=0;N<S.length;N++){k=S[N];if(o+=k.length,N!==S.length-1)o+=a.length;else if(u)return h();if(!n||k.substr(0,b)!=n){if(y){if(w=[],p(k.split(t)),f(),l)return h()}else p(k.split(t));if(i&&N>=i)return w=w.slice(0,i),h(!0)}}return h()}for(var C=e.indexOf(t,o),x=e.indexOf(a,o);;)if('"'!=e[o])if(n&&0===k.length&&e.substr(o,b)===n){if(-1==x)return h();o=x+_,x=e.indexOf(a,o),C=e.indexOf(t,o)}else if(-1!==C&&(x>C||-1===x))k.push(e.substring(o,C)),o=C+v,C=e.indexOf(t,o);else{if(-1===x)break;if(k.push(e.substring(o,x)),d(x+_),y&&(f(),l))return h();if(i&&w.length>=i)return h(!0)}else{var T=o;for(o++;;){if(-1===(T=e.indexOf('"',T+1)))return u||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:w.length,index:o}),m();if(T===g-1)return m(e.substring(o,T).replace(/""/g,'"'));if('"'!=e[T+1]){if(e[T+1]==t){k.push(e.substring(o,T).replace(/""/g,'"')),o=T+1+v,C=e.indexOf(t,o),x=e.indexOf(a,o);break}if(e.substr(T+1,_)===a){if(k.push(e.substring(o,T).replace(/""/g,'"')),d(T+1+_),C=e.indexOf(t,o),y&&(f(),l))return h();if(i&&w.length>=i)return h(!0);break}}else T++}}return m()},this.abort=function(){l=!0},this.getCharIndex=function(){return o}}function l(e){var t=e.data,a=v[t.workerId],n=!1;if(t.error)a.userError(t.error,t.file);else if(t.results&&t.results.data){var r={abort:function(){n=!0,c(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:u,resume:u};if(d(a.userStep)){for(var i=0;i<t.results.data.length&&(a.userStep({data:[t.results.data[i]],errors:t.results.errors,meta:t.results.meta},r),!n);i++);delete t.results}else d(a.userChunk)&&(a.userChunk(t.results,r,t.file),delete t.results)}t.finished&&!n&&c(t.workerId,t.results)}function c(e,t){var a=v[e];d(a.userComplete)&&a.userComplete(t),a.terminate(),delete v[e]}function u(){throw"Not implemented."}function p(e){if("object"!=typeof e)return e;var t=e instanceof Array?[]:{};for(var a in e)t[a]=p(e[a]);return t}function m(e,t){return function(){e.apply(t,arguments)}}function d(e){return"function"==typeof e}var h,f=!t.document&&!!t.postMessage,g=!1,v={},_=0,b={parse:function(e,a){if((a=a||{}).worker&&b.WORKERS_SUPPORTED){var s=function(){if(!b.WORKERS_SUPPORTED)return!1;if(!g&&null===b.SCRIPT_PATH)throw new Error("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually.");var e=new t.Worker(b.SCRIPT_PATH||h);return e.onmessage=l,e.id=_++,v[e.id]=e,e}();return s.userStep=a.step,s.userChunk=a.chunk,s.userComplete=a.complete,s.userError=a.error,a.step=d(a.step),a.chunk=d(a.chunk),a.complete=d(a.complete),a.error=d(a.error),delete a.worker,void s.postMessage({input:e,config:a,workerId:s.id})}var o=null;return"string"==typeof e?o=a.download?new n(a):new i(a):(t.File&&e instanceof File||e instanceof Object)&&(o=new r(a)),o.stream(e)},unparse:function(e,t){function a(e){if("object"!=typeof e)return[];var t=[];for(var a in e)t.push(a);return t}function n(e,t){var a="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=e instanceof Array&&e.length>0,i=!(t[0]instanceof Array);if(n){for(var l=0;l<e.length;l++)l>0&&(a+=s),a+=r(e[l],l);t.length>0&&(a+=o)}for(var c=0;c<t.length;c++){for(var u=n?e.length:t[c].length,p=0;u>p;p++){p>0&&(a+=s);var m=n&&i?e[p]:p;a+=r(t[c][m],p)}c<t.length-1&&(a+=o)}return a}function r(e,t){return null==e?"":(e=e.toString().replace(/"/g,'""'),"boolean"==typeof i&&i||i instanceof Array&&i[t]||function(e,t){for(var a=0;a<t.length;a++)if(e.indexOf(t[a])>-1)return!0;return!1}(e,b.BAD_DELIMITERS)||e.indexOf(s)>-1||" "==e.charAt(0)||" "==e.charAt(e.length-1)?'"'+e+'"':e)}var i=!1,s=",",o="\r\n";if("object"==typeof t&&("string"==typeof t.delimiter&&1==t.delimiter.length&&-1==b.BAD_DELIMITERS.indexOf(t.delimiter)&&(s=t.delimiter),("boolean"==typeof t.quotes||t.quotes instanceof Array)&&(i=t.quotes),"string"==typeof t.newline&&(o=t.newline)),"string"==typeof e&&(e=JSON.parse(e)),e instanceof Array){if(!e.length||e[0]instanceof Array)return n(null,e);if("object"==typeof e[0])return n(a(e[0]),e)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),e.data instanceof Array&&(e.fields||(e.fields=e.data[0]instanceof Array?e.fields:a(e.data[0])),e.data[0]instanceof Array||"object"==typeof e.data[0]||(e.data=[e.data])),n(e.fields||[],e.data||[]);throw"exception: Unable to serialize unrecognized input"}};if(b.RECORD_SEP=String.fromCharCode(30),b.UNIT_SEP=String.fromCharCode(31),b.BYTE_ORDER_MARK="\ufeff",b.BAD_DELIMITERS=["\r","\n",'"',b.BYTE_ORDER_MARK],b.WORKERS_SUPPORTED=!!t.Worker,b.SCRIPT_PATH=null,b.LocalChunkSize=10485760,b.RemoteChunkSize=5242880,b.DefaultDelimiter=",",b.Parser=o,b.ParserHandle=s,b.NetworkStreamer=n,b.FileStreamer=r,b.StringStreamer=i,e.exports?e.exports=b:d(t.define)&&t.define.amd?t.define((function(){return b})):t.Papa=b,t.jQuery){var y=t.jQuery;y.fn.parse=function(e){function a(){if(0!=i.length){var t=i[0];if(d(e.before)){var a=e.before(t.file,t.inputElem);if("object"==typeof a){if("abort"==a.action)return void function(t,a,n,r){d(e.error)&&e.error({name:t},a,n,r)}("AbortError",t.file,t.inputElem,a.reason);if("skip"==a.action)return void n();"object"==typeof a.config&&(t.instanceConfig=y.extend(t.instanceConfig,a.config))}else if("skip"==a)return void n()}var r=t.instanceConfig.complete;t.instanceConfig.complete=function(e){d(r)&&r(e,t.file,t.inputElem),n()},b.parse(t.file,t.instanceConfig)}else d(e.complete)&&e.complete()}function n(){i.splice(0,1),a()}var r=e.config||{},i=[];return this.each((function(){if(!("INPUT"==y(this).prop("tagName").toUpperCase()&&"file"==y(this).attr("type").toLowerCase()&&t.FileReader)||!this.files||0==this.files.length)return!0;for(var e=0;e<this.files.length;e++)i.push({file:this.files[e],inputElem:this,instanceConfig:y.extend({},r)})})),a(),this}}f?t.onmessage=function(e){var a=e.data;if(void 0===b.WORKER_ID&&a&&(b.WORKER_ID=a.workerId),"string"==typeof a.input)t.postMessage({workerId:b.WORKER_ID,results:b.parse(a.input,a.config),finished:!0});else if(t.File&&a.input instanceof File||a.input instanceof Object){var n=b.parse(a.input,a.config);n&&t.postMessage({workerId:b.WORKER_ID,results:n,finished:!0})}}:b.WORKERS_SUPPORTED&&(h=function(){var e=document.getElementsByTagName("script");return e.length?e[e.length-1].src:""}(),document.body?document.addEventListener("DOMContentLoaded",(function(){g=!0}),!0):g=!0),n.prototype=Object.create(a.prototype),n.prototype.constructor=n,r.prototype=Object.create(a.prototype),r.prototype.constructor=r,i.prototype=Object.create(i.prototype),i.prototype.constructor=i}("undefined"!=typeof window?window:this)},498:function(e,t,a){e.exports=a(626)},499:function(e,t,a){e.exports=a(630)},561:function(e,t,a){var n=a(473);e.exports=function(e){if(n(e)){for(var t=0,a=new Array(e.length);t<e.length;t++)a[t]=e[t];return a}}},562:function(e,t,a){var n=a(563),r=a(567);e.exports=function(e){if(r(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return n(e)}},563:function(e,t,a){e.exports=a(564)},564:function(e,t,a){e.exports=a(565)},565:function(e,t,a){a(94),a(566);var n=a(24);e.exports=n.Array.from},566:function(e,t,a){var n=a(18),r=a(301);n({target:"Array",stat:!0,forced:!a(480)((function(e){Array.from(e)}))},{from:r})},567:function(e,t,a){e.exports=a(568)},568:function(e,t,a){a(89),a(94),e.exports=a(569)},569:function(e,t,a){var n=a(88),r=a(32),i=a(70),s=r("iterator");e.exports=function(e){var t=Object(e);return void 0!==t[s]||"@@iterator"in t||i.hasOwnProperty(n(t))}},570:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},574:function(e,t,a){e.exports=a(575)},575:function(e,t,a){e.exports=a(481)},576:function(e,t,a){var n=a(18),r=a(300);n({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},577:function(e,t,a){e.exports=a(481)},578:function(e,t,a){e.exports=a(579)},579:function(e,t,a){a(580);var n=a(24);e.exports=n.Object.entries},580:function(e,t,a){var n=a(18),r=a(482).entries;n({target:"Object",stat:!0},{entries:function(e){return r(e)}})},581:function(e,t,a){e.exports=a(582)},582:function(e,t,a){var n=a(583),r=Array.prototype;e.exports=function(e){var t=e.reduce;return e===r||e instanceof Array&&t===r.reduce?n:t}},583:function(e,t,a){a(584);var n=a(42);e.exports=n("Array").reduce},584:function(e,t,a){"use strict";var n=a(18),r=a(585).left;n({target:"Array",proto:!0,forced:a(104)("reduce")},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},585:function(e,t,a){var n=a(69),r=a(51),i=a(86),s=a(60),o=function(e){return function(t,a,o,l){n(a);var c=r(t),u=i(c),p=s(c.length),m=e?p-1:0,d=e?-1:1;if(o<2)for(;;){if(m in u){l=u[m],m+=d;break}if(m+=d,e?m<0:p<=m)throw TypeError("Reduce of empty array with no initial value")}for(;e?m>=0:p>m;m+=d)m in u&&(l=a(l,u[m],m,c));return l}};e.exports={left:o(!1),right:o(!0)}},586:function(e,t,a){"use strict";
35
- /** @license React v16.10.2
36
- * react-dom-server.browser.production.min.js
37
- *
38
- * Copyright (c) Facebook, Inc. and its affiliates.
39
- *
40
- * This source code is licensed under the MIT license found in the
41
- * LICENSE file in the root directory of this source tree.
42
- */var n=a(130),r=a(0);function i(e){for(var t=e.message,a="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)a+="&args[]="+encodeURIComponent(arguments[n]);return e.message="Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}var s="function"==typeof Symbol&&Symbol.for,o=s?Symbol.for("react.portal"):60106,l=s?Symbol.for("react.fragment"):60107,c=s?Symbol.for("react.strict_mode"):60108,u=s?Symbol.for("react.profiler"):60114,p=s?Symbol.for("react.provider"):60109,m=s?Symbol.for("react.context"):60110,d=s?Symbol.for("react.concurrent_mode"):60111,h=s?Symbol.for("react.forward_ref"):60112,f=s?Symbol.for("react.suspense"):60113,g=s?Symbol.for("react.suspense_list"):60120,v=s?Symbol.for("react.memo"):60115,_=s?Symbol.for("react.lazy"):60116,b=s?Symbol.for("react.fundamental"):60117,y=s?Symbol.for("react.scope"):60119,w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case l:return"Fragment";case o:return"Portal";case u:return"Profiler";case c:return"StrictMode";case f:return"Suspense";case g:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case m:return"Context.Consumer";case p:return"Context.Provider";case h:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case v:return E(e.type);case _:if(e=1===e._status?e._result:null)return E(e)}return null}w.hasOwnProperty("ReactCurrentDispatcher")||(w.ReactCurrentDispatcher={current:null}),w.hasOwnProperty("ReactCurrentBatchConfig")||(w.ReactCurrentBatchConfig={suspense:null});var k={};function I(e,t){for(var a=0|e._threadCount;a<=t;a++)e[a]=e._currentValue2,e._threadCount=a+1}for(var S=new Uint16Array(16),N=0;15>N;N++)S[N]=N+1;S[15]=0;var C=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,x=Object.prototype.hasOwnProperty,T={},R={};function A(e){return!!x.call(R,e)||!x.call(T,e)&&(C.test(e)?R[e]=!0:(T[e]=!0,!1))}function P(e,t,a,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=r,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=i}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){O[e]=new P(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];O[t]=new P(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){O[e]=new P(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){O[e]=new P(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){O[e]=new P(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){O[e]=new P(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){O[e]=new P(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){O[e]=new P(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){O[e]=new P(e,5,!1,e.toLowerCase(),null,!1)}));var L=/[\-:]([a-z])/g;function D(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(L,D);O[t]=new P(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(L,D);O[t]=new P(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(L,D);O[t]=new P(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){O[e]=new P(e,1,!1,e.toLowerCase(),null,!1)})),O.xlinkHref=new P("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){O[e]=new P(e,1,!1,e.toLowerCase(),null,!0)}));var q=/["'&<>]/;function F(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=q.exec(e);if(t){var a,n="",r=0;for(a=t.index;a<e.length;a++){switch(e.charCodeAt(a)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}r!==a&&(n+=e.substring(r,a)),r=a+1,n+=t}e=r!==a?n+e.substring(r,a):n}return e}function M(e,t){var a,n=O.hasOwnProperty(e)?O[e]:null;return(a="style"!==e)&&(a=null!==n?0===n.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),a||function(e,t,a,n){if(null==t||function(e,t,a,n){if(null!==a&&0===a.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==a?!a.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,a,n))return!0;if(n)return!1;if(null!==a)switch(a.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(e,t,n,!1)?"":null!==n?(e=n.attributeName,3===(a=n.type)||4===a&&!0===t?e+'=""':(n.sanitizeURL&&(t=""+t),e+'="'+F(t)+'"')):A(e)?e+'="'+F(t)+'"':""}var j="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},V=null,B=null,z=null,U=!1,W=!1,$=null,H=0;function K(){if(null===V)throw i(Error(321));return V}function G(){if(0<H)throw i(Error(312));return{memoizedState:null,queue:null,next:null}}function Y(){return null===z?null===B?(U=!1,B=z=G()):(U=!0,z=B):null===z.next?(U=!1,z=z.next=G()):(U=!0,z=z.next),z}function J(e,t,a,n){for(;W;)W=!1,H+=1,z=null,a=e(t,n);return B=V=null,H=0,z=$=null,a}function Q(e,t){return"function"==typeof t?t(e):t}function Z(e,t,a){if(V=K(),z=Y(),U){var n=z.queue;if(t=n.dispatch,null!==$&&void 0!==(a=$.get(n))){$.delete(n),n=z.memoizedState;do{n=e(n,a.action),a=a.next}while(null!==a);return z.memoizedState=n,[n,t]}return[z.memoizedState,t]}return e=e===Q?"function"==typeof t?t():t:void 0!==a?a(t):t,z.memoizedState=e,e=(e=z.queue={last:null,dispatch:null}).dispatch=X.bind(null,V,e),[z.memoizedState,e]}function X(e,t,a){if(!(25>H))throw i(Error(301));if(e===V)if(W=!0,e={action:a,next:null},null===$&&($=new Map),void 0===(a=$.get(t)))$.set(t,e);else{for(t=a;null!==t.next;)t=t.next;t.next=e}}function ee(){}var te=0,ae={readContext:function(e){var t=te;return I(e,t),e[t]},useContext:function(e){K();var t=te;return I(e,t),e[t]},useMemo:function(e,t){if(V=K(),t=void 0===t?null:t,null!==(z=Y())){var a=z.memoizedState;if(null!==a&&null!==t){e:{var n=a[1];if(null===n)n=!1;else{for(var r=0;r<n.length&&r<t.length;r++)if(!j(t[r],n[r])){n=!1;break e}n=!0}}if(n)return a[0]}}return e=e(),z.memoizedState=[e,t],e},useReducer:Z,useRef:function(e){V=K();var t=(z=Y()).memoizedState;return null===t?(e={current:e},z.memoizedState=e):t},useState:function(e){return Z(Q,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:ee,useEffect:ee,useDebugValue:ee,useResponder:function(e,t){return{props:t,responder:e}}},ne={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function re(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var ie={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},se=n({menuitem:!0},ie),oe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},le=["Webkit","ms","Moz","O"];Object.keys(oe).forEach((function(e){le.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),oe[t]=oe[e]}))}));var ce=/([A-Z])/g,ue=/^ms-/,pe=r.Children.toArray,me=w.ReactCurrentDispatcher,de={listing:!0,pre:!0,textarea:!0},he=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,fe={},ge={};var ve=Object.prototype.hasOwnProperty,_e={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function be(e,t){if(void 0===e)throw i(Error(152),E(t)||"Component")}function ye(e,t,a){function s(r,s){var o=s.prototype&&s.prototype.isReactComponent,l=function(e,t,a,n){if(n&&("object"==typeof(n=e.contextType)&&null!==n))return I(n,a),n[a];if(e=e.contextTypes){for(var r in a={},e)a[r]=t[r];t=a}else t=k;return t}(s,t,a,o),c=[],u=!1,p={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===c)return null},enqueueReplaceState:function(e,t){u=!0,c=[t]},enqueueSetState:function(e,t){if(null===c)return null;c.push(t)}};if(o){if(o=new s(r.props,l,p),"function"==typeof s.getDerivedStateFromProps){var m=s.getDerivedStateFromProps.call(null,r.props,o.state);null!=m&&(o.state=n({},o.state,m))}}else if(V={},o=s(r.props,l,p),null==(o=J(s,r.props,o,l))||null==o.render)return void be(e=o,s);if(o.props=r.props,o.context=l,o.updater=p,void 0===(p=o.state)&&(o.state=p=null),"function"==typeof o.UNSAFE_componentWillMount||"function"==typeof o.componentWillMount)if("function"==typeof o.componentWillMount&&"function"!=typeof s.getDerivedStateFromProps&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&"function"!=typeof s.getDerivedStateFromProps&&o.UNSAFE_componentWillMount(),c.length){p=c;var d=u;if(c=null,u=!1,d&&1===p.length)o.state=p[0];else{m=d?p[0]:o.state;var h=!0;for(d=d?1:0;d<p.length;d++){var f=p[d];null!=(f="function"==typeof f?f.call(o,m,r.props,l):f)&&(h?(h=!1,m=n({},m,f)):n(m,f))}o.state=m}}else c=null;if(be(e=o.render(),s),"function"==typeof o.getChildContext&&"object"==typeof(r=s.childContextTypes)){var g=o.getChildContext();for(var v in g)if(!(v in r))throw i(Error(108),E(s)||"Unknown",v)}g&&(t=n({},t,g))}for(;r.isValidElement(e);){var o=e,l=o.type;if("function"!=typeof l)break;s(o,l)}return{child:e,context:t}}var we=function(){function e(e,t){r.isValidElement(e)?e.type!==l?e=[e]:(e=e.props.children,e=r.isValidElement(e)?[e]:pe(e)):e=pe(e),e={type:null,domNamespace:ne.html,children:e,childIndex:0,context:k,footer:""};var a=S[0];if(0===a){var n=S,s=2*(a=n.length);if(!(65536>=s))throw i(Error(304));var o=new Uint16Array(s);for(o.set(n),(S=o)[0]=a+1,n=a;n<s-1;n++)S[n]=n+1;S[s-1]=0}else S[0]=S[a];this.threadID=a,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}var t=e.prototype;return t.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;S[e]=S[0],S[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,a=e.type._context,n=this.threadID;I(a,n);var r=a[n];this.contextStack[t]=a,this.contextValueStack[t]=r,a[n]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],a=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=a},t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},t.read=function(e){if(this.exhausted)return null;var t=te;te=this.threadID;var a=me.current;me.current=ae;try{for(var n=[""],r=!1;n[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var s=this.threadID;S[s]=S[0],S[0]=s;break}var o=this.stack[this.stack.length-1];if(r||o.childIndex>=o.children.length){var l=o.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===o.type)this.currentSelectValue=null;else if(null!=o.type&&null!=o.type.type&&o.type.type.$$typeof===p)this.popProvider(o.type);else if(o.type===f){this.suspenseDepth--;var c=n.pop();if(r){r=!1;var u=o.fallbackFrame;if(!u)throw i(Error(303));this.stack.push(u),n[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}n[this.suspenseDepth]+=c}n[this.suspenseDepth]+=l}else{var m=o.children[o.childIndex++],d="";try{d+=this.render(m,o.context,o.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw i(Error(294));throw e}n.length<=this.suspenseDepth&&n.push(""),n[this.suspenseDepth]+=d}}return n[0]}finally{me.current=a,te=t}},t.render=function(e,t,a){if("string"==typeof e||"number"==typeof e)return""===(a=""+e)?"":this.makeStaticMarkup?F(a):this.previousWasTextNode?"\x3c!-- --\x3e"+F(a):(this.previousWasTextNode=!0,F(a));if(e=(t=ye(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!r.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((a=e.$$typeof)===o)throw i(Error(257));throw i(Error(258),a.toString())}return e=pe(e),this.stack.push({type:null,domNamespace:a,children:e,childIndex:0,context:t,footer:""}),""}var s=e.type;if("string"==typeof s)return this.renderDOM(e,t,a);switch(s){case c:case d:case u:case g:case l:return e=pe(e.props.children),this.stack.push({type:null,domNamespace:a,children:e,childIndex:0,context:t,footer:""}),"";case f:throw i(Error(294))}if("object"==typeof s&&null!==s)switch(s.$$typeof){case h:V={};var w=s.render(e.props,e.ref);return w=J(s.render,e.props,w,e.ref),w=pe(w),this.stack.push({type:null,domNamespace:a,children:w,childIndex:0,context:t,footer:""}),"";case v:return e=[r.createElement(s.type,n({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:a,children:e,childIndex:0,context:t,footer:""}),"";case p:return a={type:e,domNamespace:a,children:s=pe(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(a),"";case m:s=e.type,w=e.props;var E=this.threadID;return I(s,E),s=pe(w.children(s[E])),this.stack.push({type:e,domNamespace:a,children:s,childIndex:0,context:t,footer:""}),"";case b:throw i(Error(338));case _:switch(function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(s=e.type),s._status){case 1:return e=[r.createElement(s._result,n({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:a,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw s._result;default:throw i(Error(295))}case y:throw i(Error(343))}throw i(Error(130),null==s?s:typeof s,"")},t.renderDOM=function(e,t,a){var s=e.type.toLowerCase();if(a===ne.html&&re(s),!fe.hasOwnProperty(s)){if(!he.test(s))throw i(Error(65),s);fe[s]=!0}var o=e.props;if("input"===s)o=n({type:void 0},o,{defaultChecked:void 0,defaultValue:void 0,value:null!=o.value?o.value:o.defaultValue,checked:null!=o.checked?o.checked:o.defaultChecked});else if("textarea"===s){var l=o.value;if(null==l){l=o.defaultValue;var c=o.children;if(null!=c){if(null!=l)throw i(Error(92));if(Array.isArray(c)){if(!(1>=c.length))throw i(Error(93));c=c[0]}l=""+c}null==l&&(l="")}o=n({},o,{value:void 0,children:""+l})}else if("select"===s)this.currentSelectValue=null!=o.value?o.value:o.defaultValue,o=n({},o,{value:void 0});else if("option"===s){c=this.currentSelectValue;var u=function(e){if(null==e)return e;var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(o.children);if(null!=c){var p=null!=o.value?o.value+"":u;if(l=!1,Array.isArray(c)){for(var m=0;m<c.length;m++)if(""+c[m]===p){l=!0;break}}else l=""+c===p;o=n({selected:void 0,children:void 0},o,{selected:l,children:u})}}if(l=o){if(se[s]&&(null!=l.children||null!=l.dangerouslySetInnerHTML))throw i(Error(137),s,"");if(null!=l.dangerouslySetInnerHTML){if(null!=l.children)throw i(Error(60));if(!("object"==typeof l.dangerouslySetInnerHTML&&"__html"in l.dangerouslySetInnerHTML))throw i(Error(61))}if(null!=l.style&&"object"!=typeof l.style)throw i(Error(62),"")}for(y in l=o,c=this.makeStaticMarkup,u=1===this.stack.length,p="<"+e.type,l)if(ve.call(l,y)){var d=l[y];if(null!=d){if("style"===y){m=void 0;var h="",f="";for(m in d)if(d.hasOwnProperty(m)){var g=0===m.indexOf("--"),v=d[m];if(null!=v){if(g)var _=m;else if(_=m,ge.hasOwnProperty(_))_=ge[_];else{var b=_.replace(ce,"-$1").toLowerCase().replace(ue,"-ms-");_=ge[_]=b}h+=f+_+":",f=m,h+=g=null==v||"boolean"==typeof v||""===v?"":g||"number"!=typeof v||0===v||oe.hasOwnProperty(f)&&oe[f]?(""+v).trim():v+"px",f=";"}}d=h||null}m=null;e:if(g=s,v=l,-1===g.indexOf("-"))g="string"==typeof v.is;else switch(g){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":g=!1;break e;default:g=!0}g?_e.hasOwnProperty(y)||(m=A(m=y)&&null!=d?m+'="'+F(d)+'"':""):m=M(y,d),m&&(p+=" "+m)}}c||u&&(p+=' data-reactroot=""');var y=p;l="",ie.hasOwnProperty(s)?y+="/>":(y+=">",l="</"+e.type+">");e:{if(null!=(c=o.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break e}}else if("string"==typeof(c=o.children)||"number"==typeof c){c=F(c);break e}c=null}return null!=c?(o=[],de[s]&&"\n"===c.charAt(0)&&(y+="\n"),y+=c):o=pe(o.children),e=e.type,a=null==a||"http://www.w3.org/1999/xhtml"===a?re(e):"http://www.w3.org/2000/svg"===a&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":a,this.stack.push({domNamespace:a,type:s,children:o,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,y},e}(),Ee={renderToString:function(e){e=new we(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new we(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw i(Error(207))},renderToStaticNodeStream:function(){throw i(Error(208))},version:"16.10.2"},ke={default:Ee},Ie=ke&&Ee||ke;e.exports=Ie.default||Ie},587:function(e,t,a){e.exports=a(588)},588:function(e,t,a){a(589);var n=a(24);e.exports=n.Date.now},589:function(e,t,a){a(18)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},602:function(e,t,a){e.exports=a(294)},603:function(e,t,a){var n=a(486),r=a(479);e.exports=function(e,t){if(null==e)return{};var a,i,s={},o=r(e);for(i=0;i<o.length;i++)a=o[i],n(t).call(t,a)>=0||(s[a]=e[a]);return s}},604:function(e,t,a){e.exports=a(605)},605:function(e,t,a){var n=a(606),r=Array.prototype;e.exports=function(e){var t=e.sort;return e===r||e instanceof Array&&t===r.sort?n:t}},606:function(e,t,a){a(607);var n=a(42);e.exports=n("Array").sort},607:function(e,t,a){"use strict";var n=a(18),r=a(69),i=a(51),s=a(31),o=a(104),l=[].sort,c=[1,2,3],u=s((function(){c.sort(void 0)})),p=s((function(){c.sort(null)})),m=o("sort");n({target:"Array",proto:!0,forced:u||!p||m},{sort:function(e){return void 0===e?l.call(i(this)):l.call(i(this),r(e))}})},617:function(e,t,a){e.exports=a(618)},618:function(e,t,a){a(619);var n=a(24);e.exports=n.Number.isFinite},619:function(e,t,a){a(18)({target:"Number",stat:!0},{isFinite:a(620)})},62:function(e,t,a){e.exports=a(581)},620:function(e,t,a){var n=a(30).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&n(e)}},626:function(e,t,a){e.exports=a(627)},627:function(e,t,a){var n=a(628),r=Array.prototype;e.exports=function(e){var t=e.slice;return e===r||e instanceof Array&&t===r.slice?n:t}},628:function(e,t,a){a(629);var n=a(42);e.exports=n("Array").slice},629:function(e,t,a){"use strict";var n=a(18),r=a(41),i=a(90),s=a(103),o=a(60),l=a(54),c=a(118),u=a(97),p=a(32)("species"),m=[].slice,d=Math.max;n({target:"Array",proto:!0,forced:!u("slice")},{slice:function(e,t){var a,n,u,h=l(this),f=o(h.length),g=s(e,f),v=s(void 0===t?f:t,f);if(i(h)&&("function"!=typeof(a=h.constructor)||a!==Array&&!i(a.prototype)?r(a)&&null===(a=a[p])&&(a=void 0):a=void 0,a===Array||void 0===a))return m.call(h,g,v);for(n=new(void 0===a?Array:a)(d(v-g,0)),u=0;g<v;g++,u++)g in h&&c(n,u,h[g]);return n.length=u,n}})},63:function(e,t,a){var n=a(561),r=a(562),i=a(570);e.exports=function(e){return n(e)||r(e)||i()}},630:function(e,t,a){e.exports=a(631)},631:function(e,t,a){var n=a(632),r=Array.prototype;e.exports=function(e){var t=e.fill;return e===r||e instanceof Array&&t===r.fill?n:t}},632:function(e,t,a){a(633);var n=a(42);e.exports=n("Array").fill},633:function(e,t,a){var n=a(18),r=a(634),i=a(106);n({target:"Array",proto:!0},{fill:r}),i("fill")},634:function(e,t,a){"use strict";var n=a(51),r=a(103),i=a(60);e.exports=function(e){for(var t=n(this),a=i(t.length),s=arguments.length,o=r(s>1?arguments[1]:void 0,a),l=s>2?arguments[2]:void 0,c=void 0===l?a:r(l,a);c>o;)t[o++]=e;return t}},635:function(e,t){jQuery.AsyncQueue=function(){var e,t,a,n,r=this,s=[],o=!1;return n=function(){var e=s.shift();e?(e.apply(r,[r]),!1===o&&n()):t&&t.apply(r)},this.onFailure=function(t){e=t},this.onComplete=function(e){t=e},this.add=function(e){return s.push(e),this},this.storeData=function(e){return a=e,this},this.lastCallbackData=function(){return a},this.run=function(){o=!1,n()},this.pause=function(){return o=!0,this},this.failure=function(){if(o=!0,e){var t=[r];for(i=0;i<arguments.length;i++)t.push(arguments[i]);e.apply(r,t)}},this}},636:function(e,t,a){e.exports=a(637)},637:function(e,t,a){a(638);var n=a(24);e.exports=n.Object.values},638:function(e,t,a){var n=a(18),r=a(482).values;n({target:"Object",stat:!0},{values:function(e){return r(e)}})},663:function(e,t,a){"use strict";a.r(t);var n=a(58),r=a.n(n),i=a(15),s=a.n(i),o=a(63),l=a.n(o),c=a(27),u=a.n(c),p=a(7),m=a.n(p),d=a(0),h=a.n(d),f=a(3),g=a.n(f),v=a(23),_=a.n(v),b=a(1),y=a(9),w=a.n(y),E=a(11),k=a.n(E),I=a(10),S=a.n(I),N=a(12),C=a.n(N),x=a(13),T=a.n(x),R=a(6),A=a.n(R),P=a(14),O=a.n(P),L=a(65),D=a(2),q=a.n(D);function F(e){var t=[{name:"type",label:b.a.I18n.t("selectType")},{name:"events",label:b.a.I18n.t("events")},{name:"conditions",label:b.a.I18n.t("conditions")},{name:"template",label:b.a.I18n.t("template")},{name:"editor",label:b.a.I18n.t("designer")},{name:"send",label:b.a.I18n.t("send")}];return h.a.createElement(L.a,{step:e.step,steps:t})}F.propTypes={step:q.a.string.isRequired};var M=F,j=function(e){function t(){return k()(this,t),C()(this,T()(t).apply(this,arguments))}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t=this.props.event,a=t.soon;if(this.props.premium)e=h.a.createElement("a",{href:"?page=mailpoet-premium",target:"_blank"},b.a.I18n.t("premiumFeatureLink"));else if(t.actionButtonLink&&t.actionButtonTitle)e=h.a.createElement("a",{href:t.actionButtonLink,target:"_blank",rel:"noopener noreferrer"},t.actionButtonTitle);else{var n=a?null:g.a.partial(this.props.eventsConfigurator,t.slug);e=h.a.createElement("a",{className:"button button-primary",disabled:a,onClick:n,role:"presentation","data-automation-id":"create_".concat(t.slug),onKeyDown:function(e){var t,a;u()(t=["keydown","keypress"]).call(t,e.type)&&u()(a=["Enter"," "]).call(a,e.key)&&(e.preventDefault(),n())}},t.actionButtonTitle||b.a.I18n.t("setUp"))}return h.a.createElement("li",{"data-type":t.slug},h.a.createElement("div",{className:"mailpoet_thumbnail"},t.thumbnailImage?h.a.createElement("img",{src:t.thumbnailImage,alt:""}):null),h.a.createElement("div",{className:"mailpoet_boxes_content"},h.a.createElement("div",{className:"mailpoet_description"},h.a.createElement("div",{className:"title_and_badge"},h.a.createElement("h3",null,t.title," ",t.soon?"(".concat(b.a.I18n.t("soon"),")"):""),t.badge?h.a.createElement("span",{className:"mailpoet_badge mailpoet_badge_".concat(t.badge.style)},t.badge.text):""),h.a.createElement("p",null,t.description)),h.a.createElement("div",{className:"mailpoet_actions"},e)))}}]),t}(h.a.PureComponent);j.defaultProps={premium:!1},j.propTypes={premium:q.a.bool,eventsConfigurator:q.a.func.isRequired,event:q.a.shape({slug:q.a.string.isRequired,thumbnailImage:q.a.string,title:q.a.string.isRequired,soon:q.a.bool,badge:q.a.shape({style:q.a.string,text:q.a.string}),description:q.a.string.isRequired,actionButtonTitle:q.a.string}).isRequired};var V=j,B=a(99),z=function(e){function t(e){var a,n;return k()(this,t),(n=C()(this,T()(t).call(this,e))).email=n.props.email,n.emailEvents=n.email.events,n.eventsConfigurator=w()(a=n.eventsConfigurator).call(a,A()(n)),n}return O()(t,e),S()(t,[{key:"eventsConfigurator",value:function(e){var t;b.a.trackEvent("Emails > Automatic Type selected",{"MailPoet Free version":window.mailpoet_version,"MailPoet Premium version":window.mailpoet_premium_version,"Email type":e}),this.props.history.push(s()(t="/new/".concat(this.email.slug,"/")).call(t,e,"/conditions"))}},{key:"displayEvents",value:function(){var e=this,t=m()(g.a).call(g.a,this.emailEvents,(function(t,a){return h.a.createElement(V,{premium:e.email.premium,event:t,key:a,eventsConfigurator:e.eventsConfigurator})}));return h.a.createElement("ul",{className:"mailpoet_boxes woocommerce clearfix"},t)}},{key:"render",value:function(){var e=b.a.I18n.t("selectAutomaticEmailsEventsHeading").replace("%$1s",this.email.title);return h.a.createElement("div",null,h.a.createElement("h1",null,e),h.a.createElement(M,{step:"events"}),this.displayEvents())}}]),t}(h.a.Component);z.propTypes={email:q.a.shape({title:q.a.string.isRequired,slug:q.a.string.isRequired,premium:q.a.bool}).isRequired,history:q.a.shape({push:q.a.func.isRequired}).isRequired};var U=Object(B.withRouter)(z),W=a(26),$=a.n(W),H=a(21),K=a.n(H),G=a(40),Y=a.n(G),J=a(45),Q=a.n(J),Z=a(33),X=a.n(Z),ee=a(318),te=a.n(ee),ae=a(8),ne=a.n(ae),re=a(4),ie=a.n(re),se=a(37),oe=a.n(se),le=(a(465),function(e){function t(e){var a;return k()(this,t),a=C()(this,T()(t).call(this,e)),ne()(A()(a),"getFieldId",(function(e){var t=e||a.props;return t.field.id||t.field.name})),ne()(A()(a),"getSelectedValues",(function(){if(void 0!==a.props.field.selected)return a.props.field.selected(a.props.item);if(void 0!==a.props.item&&void 0!==a.props.field.name){if(!a.allowMultipleValues())return a.props.item[a.props.field.name];var e;if(g.a.isArray(a.props.item[a.props.field.name]))return m()(e=a.props.item[a.props.field.name]).call(e,(function(e){return e.id}))}return null})),ne()(A()(a),"getItems",(function(){var e;return void 0!==window["mailpoet_".concat(a.props.field.endpoint)]?e=window["mailpoet_".concat(a.props.field.endpoint)]:void 0!==Y()(a.props.field)&&(e=Y()(a.props.field)),g.a.isArray(e)&&void 0!==K()(a.props.field)&&(e=K()(e).call(e,K()(a.props.field))),e})),ne()(A()(a),"getLabel",(function(e){return void 0!==a.props.field.getLabel?a.props.field.getLabel(e,a.props.item):e.name})),ne()(A()(a),"getSearchLabel",(function(e){return void 0!==a.props.field.getSearchLabel?a.props.field.getSearchLabel(e,a.props.item):null})),ne()(A()(a),"getValue",(function(e){return void 0!==a.props.field.getValue?a.props.field.getValue(e,a.props.item):e.id})),ne()(A()(a),"setupSelect2",(function(){if(!a.isSelect2Initialized()){var e={disabled:a.props.disabled||!1,width:a.props.width||"",placeholder:{id:"",text:a.props.field.placeholder},templateResult:function(e){return e.element&&e.element.selected?null:e.title?e.title:e.text}},t=a.props.field.remoteQuery||null;t&&(e=te()(e,{ajax:{url:window.ajaxurl,type:"POST",dataType:"json",data:function(e){return{action:"mailpoet",api_version:window.mailpoet_api_version,token:window.mailpoet_token,endpoint:t.endpoint,method:t.method,data:te()(t.data,{query:e.term})}},processResults:function(e){var t,a;g.a.has(e,"data")?t=m()(a=e.data).call(a,(function(e){return{id:e.id||e.value,text:e.name||e.text}})):t=[];return{results:t}}},minimumInputLength:t.minimumInputLength||2})),void 0!==a.props.field.extendSelect2Options&&(e=te()(e,a.props.field.extendSelect2Options));var n=ie()("#".concat(a.selectRef.current.id)).select2(e),r=!1;n.on("select2:unselecting",(function(){r=!0})),n.on("select2:opening",(function(e){!0===r&&(r=!1,e.preventDefault())})),n.on("change",a.handleChange)}})),ne()(A()(a),"resetSelect2",(function(){a.destroySelect2(),a.setupSelect2()})),ne()(A()(a),"destroySelect2",(function(){a.isSelect2Initialized()&&(ie()("#".concat(a.selectRef.current.id)).select2("destroy"),a.cleanupAfterSelect2())})),ne()(A()(a),"cleanupAfterSelect2",(function(){var e;X()(e=ie()("#".concat(a.selectRef.current.id))).call(e,"option:not(.default)").remove(),ie()("#".concat(a.selectRef.current.id)).off("select2:unselecting").off("select2:opening")})),ne()(A()(a),"allowMultipleValues",(function(){return!0===a.props.field.multiple})),ne()(A()(a),"isSelect2Initialized",(function(){return!0===ie()("#".concat(a.selectRef.current.id)).hasClass("select2-hidden-accessible")})),ne()(A()(a),"isSelect2Component",(function(){return a.allowMultipleValues()||a.props.field.forceSelect2})),ne()(A()(a),"handleChange",(function(e){var t;if(void 0!==a.props.onValueChange){var n=m()(t=ie()("#".concat(a.selectRef.current.id)).children(":selected")).call(t,(function(){return{id:ie()(this).val(),text:ie()(this).text()}})),r=a.props.field.multiple?g.a.pluck(n,"id"):g.a.pluck(n,"id").toString(),i=a.transformChangedValue(r,n);a.props.onValueChange({target:{value:i,name:a.props.field.name,id:e.target.id}})}})),ne()(A()(a),"transformChangedValue",(function(e,t){return"function"==typeof a.props.field.transformChangedValue?a.props.field.transformChangedValue.call(A()(a),e,t):e})),ne()(A()(a),"insertEmptyOption",(function(){if(!a.allowMultipleValues())return a.props.field.placeholder?h.a.createElement("option",{className:"default"}):void 0})),a.selectRef=h.a.createRef(),a}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){this.isSelect2Component()&&this.setupSelect2()}},{key:"componentDidUpdate",value:function(e){void 0!==this.props.item&&void 0!==e.item&&this.props.item.id!==e.item.id&&ie()("#".concat(this.selectRef.current.id)).val(this.getSelectedValues()).trigger("change"),this.isSelect2Initialized()&&this.getFieldId(this.props)!==this.getFieldId(e)&&void 0!==this.props.field.resetSelect2OnUpdate&&this.resetSelect2()}},{key:"componentWillUnmount",value:function(){this.isSelect2Component()&&this.destroySelect2()}},{key:"render",value:function(){var e=this,t=this.getItems(this.props.field),a=this.getSelectedValues(),n=m()(t).call(t,(function(t){var a=e.getLabel(t),n=e.getSearchLabel(t),r=e.getValue(t);return h.a.createElement("option",{key:"option-".concat(t.id),className:"default",value:r,title:n},a)}));return h.a.createElement("select",Q()({id:this.getFieldId(),ref:this.selectRef,disabled:this.props.field.disabled,"data-placeholder":this.props.field.placeholder,multiple:this.props.field.multiple,defaultValue:a},this.props.field.validation),this.insertEmptyOption(),n)}}]),t}(h.a.Component));le.propTypes={onValueChange:q.a.func,field:q.a.shape({name:q.a.string.isRequired,values:q.a.oneOfType([q.a.object,q.a.array]),getLabel:q.a.func,resetSelect2OnUpdate:q.a.bool,selected:q.a.func,endpoint:q.a.string,filter:q.a.func,getSearchLabel:q.a.func,getValue:q.a.func,placeholder:q.a.string,remoteQuery:q.a.object,extendSelect2Options:q.a.object,multiple:q.a.bool,forceSelect2:q.a.bool,transformChangedValue:q.a.func,disabled:q.a.bool,validation:q.a.object}).isRequired,item:q.a.object,disabled:q.a.bool,width:q.a.string},le.defaultProps={onValueChange:function(){},disabled:!1,width:"",item:void 0};var ce=le,ue=a(108),pe=a.n(ue),me=a(20),de=a.n(me),he=a(19),fe=a.n(he),ge=a(490),ve=a.n(ge),_e=a(62),be=a.n(_e),ye=function(e){function t(){return k()(this,t),C()(this,T()(t).apply(this,arguments))}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t,a=this.props.field.name||null,n=this.props.item||{};this.props.onValueChange instanceof Function&&(e=void 0===(e=n[this.props.field.name])?this.props.field.defaultValue||"":e),!e&&this.props.field.defaultValue&&(t=this.props.field.defaultValue);var r=this.props.field.id||null;!r&&this.props.field.name&&(r="field_".concat(this.props.field.name));var i=this.props.field.class||null;return i||this.props.field.size||(i="regular-text"),h.a.createElement("input",Q()({type:"text",disabled:void 0!==this.props.field.disabled&&this.props.field.disabled(this.props.item),className:i,size:"auto"!==this.props.field.size&&this.props.field.size>0?this.props.field.size:null,name:a,id:r,value:e,defaultValue:t,placeholder:this.props.field.placeholder,onChange:this.props.onValueChange},this.props.field.validation))}}]),t}(h.a.Component);ye.propTypes={onValueChange:q.a.func,field:q.a.shape({name:q.a.string.isRequired,defaultValue:q.a.string,id:q.a.string,class:q.a.string,size:q.a.oneOfType([q.a.string,q.a.number]),disabled:q.a.func,placeholder:q.a.string,validation:q.a.object}).isRequired,item:q.a.object.isRequired},ye.defaultProps={onValueChange:function(){}};var we=ye,Ee=window.mailpoet_time_format||"H:i",ke={immediate:b.a.I18n.t("delayImmediately"),hours:b.a.I18n.t("delayHoursAfter"),days:b.a.I18n.t("delayDaysAfter"),weeks:b.a.I18n.t("delayWeeksAfter")},Ie={daily:b.a.I18n.t("daily"),weekly:b.a.I18n.t("weekly"),monthly:b.a.I18n.t("monthly"),nthWeekDay:b.a.I18n.t("monthlyEvery"),immediately:b.a.I18n.t("immediately")},Se=g.a.object(m()(g.a).call(g.a,g.a.times(24,(function(e){return 3600*e})),(function(e){var t=new Date(null);return t.setSeconds(e),[e,b.a.Date.format(t,{format:Ee,offset:0})]}))),Ne={0:b.a.I18n.t("sunday"),1:b.a.I18n.t("monday"),2:b.a.I18n.t("tuesday"),3:b.a.I18n.t("wednesday"),4:b.a.I18n.t("thursday"),5:b.a.I18n.t("friday"),6:b.a.I18n.t("saturday")},Ce=g.a.object(m()(g.a).call(g.a,g.a.times(28,(function(e){return e})),(function(e){var t={0:b.a.I18n.t("first"),1:b.a.I18n.t("second"),2:b.a.I18n.t("third")};return[e+1,void 0!==t[e]?t[e]:b.a.I18n.t("nth").replace("%$1d",e+1)]}))),xe={1:b.a.I18n.t("first"),2:b.a.I18n.t("second"),3:b.a.I18n.t("third"),L:b.a.I18n.t("last")},Te="immediate",Re=1,Ae=30,Pe=function(e){function t(e){var a,n;k()(this,t);var r=(n=C()(this,T()(t).call(this,e))).props,i=r.item,s=r.event;n.handleChange=w()(a=n.handleChange).call(a,A()(n));var o=i.afterTimeType||s.defaultAfterTimeType||Te,l="minutes"===o?Ae:Re,c=i.afterTimeNumber||l;return n.state={afterTimeType:o,afterTimeNumber:c},i.afterTimeNumber===c&&i.afterTimeType===o||n.propagateChange(n.state),n}return O()(t,e),S()(t,[{key:"displayAfterTimeNumberField",value:function(){var e=this.props,t=e.afterTimeNumberSize,a=e.event,n=this.state,r=n.afterTimeType,i=n.afterTimeNumber;if("immediate"===r)return null;if(a.timeDelayValues&&a.timeDelayValues[r]&&!a.timeDelayValues[r].displayAfterTimeNumberField)return null;var s={field:{id:"scheduling_time_duration",name:"scheduling_time_duration",defaultValue:i?i.toString():"",size:t},item:{},onValueChange:g.a.partial(this.handleChange,g.a,"afterTimeNumber")};return h.a.createElement(we,s)}},{key:"displayAfterTimeTypeOptions",value:function(){var e,t=this.props.event,a=ke;t.timeDelayValues&&(a=be()(e=ve()(t.timeDelayValues)).call(e,(function(e,t){var a=fe()(t,2),n=a[0],r=a[1];return e[n]=r.text,e}),{}));var n=this.state.afterTimeType,r={field:{id:"scheduling_time_interval",name:"scheduling_time_interval",forceSelect2:!0,values:m()(g.a).call(g.a,a,(function(e,t){return{name:e,id:t}})),extendSelect2Options:{minimumResultsForSearch:1/0},selected:function(){return n}},onValueChange:g.a.partial(this.handleChange,g.a,"afterTimeType")};return h.a.createElement(ce,r)}},{key:"handleChange",value:function(e,t){var a=e.target.value;"afterTimeNumber"===t&&(a=de()(e.target.value,10),a=pe()(a)?null:a);var n=ne()({},t,a),r=this.state.afterTimeType;"afterTimeType"===t&&r!==a&&("minutes"===r&&(n.afterTimeNumber=Re),"minutes"===a&&(n.afterTimeNumber=Ae)),this.setState(n,this.propagateChange(n))}},{key:"propagateChange",value:function(e){var t=this.props.onValueChange;t&&t(e)}},{key:"render",value:function(){var e=this.props.event;return h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"event-scheduling-time-duration-selection"},this.displayAfterTimeNumberField()),h.a.createElement("div",{className:"event-scheduling-time-interval-selection"},this.displayAfterTimeTypeOptions()),e.schedulingReadMoreLink&&h.a.createElement("a",{href:e.schedulingReadMoreLink.link,target:"_blank",rel:"noopener noreferrer",className:"event-scheduling-read-more-link"},e.schedulingReadMoreLink.text))}}]),t}(h.a.Component);Pe.propTypes={item:q.a.shape({afterTimeType:q.a.string.isRequired,afterTimeNumber:q.a.number}).isRequired,afterTimeNumberSize:q.a.number,onValueChange:q.a.func,event:q.a.shape({defaultAfterTimeType:q.a.string,timeDelayValues:q.a.objectOf(q.a.shape({text:q.a.string,displayAfterTimeNumberField:q.a.bool})),schedulingReadMoreLink:q.a.shape({link:q.a.string.isRequired,text:q.a.string.isRequired})}).isRequired},Pe.defaultProps={afterTimeNumberSize:3,onValueChange:null};var Oe=Pe,Le=function(e){function t(e){var a,n;return k()(this,t),(n=C()(this,T()(t).call(this,e))).handleEventOptionChange=w()(a=n.handleEventOptionChange).call(a,A()(n)),n}return O()(t,e),S()(t,null,[{key:"getEventOptionsValues",value:function(e){var t=e&&Y()(e)?Y()(e):[];return t?m()(t).call(t,(function(e){return{id:e.id,name:e.name}})):t}}]),S()(t,[{key:"displayEventOptions",value:function(){var e=this.props,t=e.eventOptions,a=e.eventSlug,n=e.selected,r=e.emailSlug;if(!t)return t;var i={field:{id:"event_options_".concat(a),name:"event_options_".concat(a),forceSelect2:!0,resetSelect2OnUpdate:!0,values:this.constructor.getEventOptionsValues(t),multiple:t.multiple||!1,placeholder:t.placeholder||!1,extendSelect2Options:{minimumResultsForSearch:1/0},transformChangedValue:function(e,t){return m()(g.a).call(g.a,t,(function(e){return{id:e.id,name:e.text}}))},selected:function(){return n}},onValueChange:this.handleEventOptionChange};return"remote"===t.type&&(i.field=g.a.extend(i.field,{remoteQuery:{minimumInputLength:t.remoteQueryMinimumInputLength||null,endpoint:"automatic_emails",method:"get_event_options",data:{filter:t.remoteQueryFilter||null,email_slug:r,event_slug:a}}})),h.a.createElement(ce,i)}},{key:"handleEventOptionChange",value:function(e){var t=this.props.onValueChange;t&&t({eventOptionValue:e.target.value})}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{className:"event-option-selection"},this.displayEventOptions()))}}]),t}(h.a.Component);Le.propTypes={selected:q.a.array,eventOptions:q.a.object,eventSlug:q.a.string.isRequired,emailSlug:q.a.string.isRequired,onValueChange:q.a.func},Le.defaultProps={eventOptions:null,selected:[],onValueChange:null};var De=Le,qe="immediate",Fe=function(e){function t(e){var a,n,r;k()(this,t),r=C()(this,T()(t).call(this,e));var i=e.email,s=e.name;r.handleChange=w()(a=r.handleChange).call(a,A()(r)),r.handleNextStep=w()(n=r.handleNextStep).call(n,A()(r)),r.email=i,r.emailEvents=r.email.events,r.segments=K()(g.a).call(g.a,window.mailpoet_segments,(function(e){return null===e.deleted_at}));var o=r.getEvent(s),l=r.constructor.getEventOptions(o),c=r.constructor.getEventOptionsFirstValue(l);return r.state={event:o,eventSlug:o.slug,eventOptionValue:c,segment:o.sendToLists?r.constructor.getFirstSegment():null,afterTimeType:o.defaultAfterTimeType||qe,afterTimeNumber:null},r}return O()(t,e),S()(t,null,[{key:"getEventOptions",value:function(e){return e.options||null}},{key:"getEventOptionsFirstValue",value:function(e){return e&&g.a.isArray(Y()(e))&&Y()(e)[0].id?Y()(e)[0].id:null}},{key:"displayBreadcrumbs",value:function(){return h.a.createElement(M,{step:"conditions"})}}]),S()(t,[{key:"getEvent",value:function(e){return this.emailEvents[e]}},{key:"getFirstSegment",value:function(){return g.a.isArray(this.segments)&&this.segments[0].id?this.segments[0].id:null}},{key:"displayHeader",value:function(){return this.state.event.title}},{key:"displayEventOptions",value:function(){var e=this.state,t=e.eventSlug,a=e.event,n={emailSlug:this.email.slug,eventSlug:t,eventOptions:this.constructor.getEventOptions(a),onValueChange:this.handleChange};return h.a.createElement(De,n)}},{key:"displaySegments",value:function(){var e=this;if(!this.state.event.sendToLists)return null;var t={field:{id:"segments",forceSelect2:!0,values:this.segments,extendSelect2Options:{minimumResultsForSearch:1/0}},onValueChange:function(t){return e.handleChange({segment:t.target.value})}};return h.a.createElement("div",{className:"event-segment-selection"},h.a.createElement(ce,t))}},{key:"displayScheduling",value:function(){var e=this.state,t={item:{afterTimeNumber:e.afterTimeNumber,afterTimeType:e.afterTimeType},event:e.event,onValueChange:this.handleChange};return h.a.createElement(Oe,t)}},{key:"displayEventTip",value:function(){var e=this.state.event;return e.tip?h.a.createElement("p",{className:"description"},h.a.createElement("strong",null,b.a.I18n.t("tip"))," ",e.tip):null}},{key:"handleChange",value:function(e){var t=this.state,a=t.segment,n=t.afterTimeNumber,r=e;if(r.eventSlug){r.event=this.getEvent(r.eventSlug),r.segment=r.event.sendToLists?a||this.constructor.getFirstSegment():null;var i=this.constructor.getEventOptions(r.event);r.eventOptionValue=i?this.constructor.getEventOptionsFirstValue(i):null}r.afterTimeType&&"immediate"===r.afterTimeType?r.afterTimeNumber=null:!r.afterTimeType||r.afterTimeNumber||n||(r.afterTimeNumber=1),this.setState(r)}},{key:"handleNextStep",value:function(){var e=this.props.history,t=this.state,a=t.eventSlug,n=t.afterTimeType,r=t.afterTimeNumber,i=t.event,s=t.segment,o=t.eventOptionValue,l={group:this.email.slug,event:a,afterTimeType:n};r&&(l.afterTimeNumber=r),l.sendTo=i.sendToLists?"segment":"user",s&&(l.segment=s),o&&(l.meta=$()({option:o})),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"create",data:{type:"automatic",subject:b.a.I18n.t("draftNewsletterTitle"),options:l}}).done((function(t){b.a.trackEvent("Emails > New Automatic Email Created",{"MailPoet Premium version":window.mailpoet_premium_version,"MailPoet Free version":window.mailpoet_version,"Event type":l.event,"Schedule type":l.afterTimeType,"Schedule value":l.afterTimeNumber}),e.push("/template/".concat(t.data.id))})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}},{key:"render",value:function(){var e=b.a.I18n.t("selectAutomaticEmailsEventsConditionsHeading").replace("%1s",this.email.title);return h.a.createElement("div",null,h.a.createElement("h1",null,e),this.constructor.displayBreadcrumbs(),h.a.createElement("div",{className:"events-conditions-container"},h.a.createElement("h1",null,this.displayHeader()),h.a.createElement("div",null,this.displayEventOptions()),h.a.createElement("div",null,this.displaySegments()),h.a.createElement("div",null,this.displayScheduling())),h.a.createElement("p",{className:"submit"},h.a.createElement("input",{className:"button button-primary",type:"button",onClick:this.handleNextStep,value:b.a.I18n.t("next")})),this.displayEventTip())}}]),t}(h.a.Component);Fe.propTypes={history:q.a.shape({push:q.a.func.isRequired}).isRequired,name:q.a.string.isRequired,email:q.a.shape({title:q.a.string.isRequired,slug:q.a.string.isRequired}).isRequired,location:q.a.object.isRequired};var Me=Fe,je="immediate",Ve=1,Be=function(e){function t(e){var a,n;k()(this,t),n=C()(this,T()(t).call(this,e));var r=e.field;n.handleChange=w()(a=n.handleChange).call(a,A()(n)),n.email=r.email,n.emailOptions=r.emailOptions,n.events=g.a.indexBy(n.email.events,"slug"),n.segments=K()(g.a).call(g.a,window.mailpoet_segments,(function(e){return null===e.deleted_at}));var i=n.events[n.emailOptions.event],s=n.emailOptions.afterTimeType||i.defaultAfterTimeType||je;return n.state={event:i,afterTimeType:s,eventSlug:n.emailOptions.event,eventOptionValue:null,afterTimeNumber:n.emailOptions.afterTimeNumber||Ve,segment:n.emailOptions.segment?n.emailOptions.segment:null},n}return O()(t,e),S()(t,[{key:"displayHeader",value:function(){return this.state.event.title}},{key:"displayEventOptions",value:function(){var e,t=this.state,a=t.event,n=t.eventSlug;try{e=JSON.parse(this.emailOptions.meta||null)}catch(t){e=this.emailOptions.meta||null}var r={emailSlug:this.email.slug,eventSlug:n,onValueChange:this.handleChange,eventOptions:a.options||null};return e&&e.option&&("remote"===r.eventOptions.type&&(r.eventOptions.values=e.option),r.selected=m()(g.a).call(g.a,e.option,(function(e){return e.id}))),h.a.createElement(De,r)}},{key:"displaySegments",value:function(){var e=this,t=this.state.segment;if("user"===this.emailOptions.sendTo)return null;var a={field:{id:"segments",forceSelect2:!0,values:this.segments,extendSelect2Options:{minimumResultsForSearch:1/0},selected:function(){return t}},onValueChange:function(t){return e.handleChange({segment:t.target.value})}};return h.a.createElement("div",{className:"event-segment-selection"},h.a.createElement(ce,a))}},{key:"displayScheduling",value:function(){var e=this.state,t={item:{afterTimeNumber:e.afterTimeNumber,afterTimeType:e.afterTimeType},event:e.event,onValueChange:this.handleChange};return h.a.createElement(Oe,t)}},{key:"handleChange",value:function(e){var t=this.state.afterTimeNumber,a=e;a.afterTimeType&&"immediate"===a.afterTimeType?a.afterTimeNumber=null:!a.afterTimeType||a.afterTimeNumber||t||(a.afterTimeNumber=Ve),this.setState(e,this.propagateChange)}},{key:"propagateChange",value:function(){var e=this.state,t=e.eventSlug,a=e.afterTimeType,n=e.afterTimeNumber,r=e.segment,i=e.eventOptionValue,s=this.props.onValueChange;if(s){var o={group:this.email.slug,event:t,afterTimeType:a};n&&(o.afterTimeNumber=n),r&&(o.segment=r),i&&(o.meta=$()({option:this.state.eventOptionValue})),s({target:{name:"options",value:o}})}}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{className:"events-conditions-header"},this.displayHeader()),h.a.createElement("div",{className:"events-conditions-container"},h.a.createElement("div",null,this.displayEventOptions()),h.a.createElement("div",null,this.displaySegments()),h.a.createElement("div",null,this.displayScheduling())))}}]),t}(h.a.Component);Be.propTypes={field:q.a.shape({email:q.a.shape({events:q.a.object.isRequired}).isRequired,emailOptions:q.a.object.isRequired}).isRequired,onValueChange:q.a.func},Be.defaultProps={onValueChange:null};var ze=Be,Ue=a(61),We=a.n(Ue),$e=a(49),He=a.n($e),Ke=a(16),Ge=a(22),Ye=a.n(Ge),Je=a(290),Qe=a.n(Je),Ze=a(491),Xe=a.n(Ze),et=function(e){var t=e.installedDaysAgo,a=t>30?b.a.I18n.t("reviewRequestUsingForMonths").replace("[months]",Math.round(t/30)):b.a.I18n.t("reviewRequestUsingForDays").replace("[days]",t);return h.a.createElement("div",{className:"mailpoet_review_request"},h.a.createElement("img",{src:e.reviewRequestIllustrationUrl,height:"280",width:"280",alt:""}),h.a.createElement("h2",null,b.a.I18n.t("reviewRequestHeading")),h.a.createElement("p",null,b.a.I18n.t("reviewRequestDidYouKnow").replace("[username]",e.username)),h.a.createElement("p",null,a),h.a.createElement("p",null,h.a.createElement("a",{href:"http://bit.ly/2Bi124o",target:"_blank",rel:"noopener noreferrer",className:"button button-primary"},b.a.I18n.t("reviewRequestRateUsNow"))),h.a.createElement("p",null,h.a.createElement("a",{id:"mailpoet_review_request_not_now"},b.a.I18n.t("reviewRequestNotNow"))))};et.propTypes={installedDaysAgo:q.a.number.isRequired,reviewRequestIllustrationUrl:q.a.string.isRequired,username:q.a.string.isRequired};var tt=et,at=null;var nt=function(){return at||(at=b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"analytics",action:"getTrackingData"})),at},rt=function(){return Object(d.useLayoutEffect)((function(){var e=function(e){var t;t=window.mailpoet_display_nps_form?"EqOgKsgZd832Sz9w":window.mailpoet_is_new_user?"6L479eVPXk7pBn6S":"k0aJAsQAWI2ERyGv",Xe()({writeKey:t,userId:window.mailpoet_current_wp_user.ID+window.mailpoet_site_url,traits:{name:window.mailpoet_current_wp_user.user_nicename,email:window.mailpoet_current_wp_user.user_email,mailpoetVersion:window.mailpoet_version,mailpoetPremiumIsActive:window.mailpoet_premium_active,createdAt:e.installedAtIso,newslettersSent:e.newslettersSent,welcomeEmails:e.welcomeEmails,postnotificationEmails:e.postnotificationEmails,woocommerceEmails:e.woocommerceEmails,subscribers:e.subscribers,lists:e.lists,sendingMethod:e.sendingMethod,woocommerceIsInstalled:e.woocommerceIsInstalled},events:{submit:function(e){e.rating>=9&&e.completed&&b.a.Modal.popup({width:800,template:Qe.a.renderToString(tt({username:window.mailpoet_current_wp_user_firstname||window.mailpoet_current_wp_user.user_login,reviewRequestIllustrationUrl:window.mailpoet_review_request_illustration_url,installedDaysAgo:window.mailpoet_installed_days_ago})),onInit:function(){document.getElementById("mailpoet_review_request_not_now").addEventListener("click",(function(){return b.a.Modal.close()}))}})}}})};window.mailpoet_display_nps_poll&&nt().then((function(t){var a=t.data;return e(a)}))}),[]),null},it=function(e){return function(t){return rt(),h.a.createElement(e,t)}},st=function(e){function t(){var e,a,n;k()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=C()(this,(e=T()(t)).call.apply(e,s()(a=[this]).call(a,i))),ne()(A()(n),"state",{tabs:_.a.applyFilters("mailpoet_newsletters_listings_tabs",[{name:"standard",label:b.a.I18n.t("tabStandardTitle"),link:"/standard"},{name:"welcome",label:b.a.I18n.t("tabWelcomeTitle"),link:"/welcome"},{name:"notification",label:b.a.I18n.t("tabNotificationTitle"),link:"/notification"}])}),n}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t=this,a=m()(e=this.state.tabs).call(e,(function(e){if(!1===e.display)return null;var a=Ye()("nav-tab",{"nav-tab-active":t.props.tab===e.name});return h.a.createElement(Ke.b,{key:"tab-".concat(e.label),className:a,"data-automation-id":"tab-".concat(e.label),to:e.link,onClick:function(){return b.a.trackEvent("Tab Emails > ".concat(e.name," clicked"),{"MailPoet Free version":window.mailpoet_version})}},e.label)}));return h.a.createElement("h2",{className:"nav-tab-wrapper","data-automation-id":"newsletters_listing_tabs"},a)}}]),t}(h.a.Component);st.propTypes={tab:q.a.string.isRequired};var ot=it(st),lt=function(){return h.a.createElement("div",null,h.a.createElement("h1",{className:"title"},b.a.I18n.t("pageTitle"),h.a.createElement(Ke.b,{id:"mailpoet-new-email",className:"page-title-action",to:"/new",onClick:function(){return b.a.trackEvent("Emails > Add New",{"MailPoet Free version":window.mailpoet_version})},"data-automation-id":"new_email"},b.a.I18n.t("new"))))},ct=a(316),ut=a.n(ct),pt=a(36),mt=a.n(pt),dt=function(e){function t(e){var a,n,r,i;return k()(this,t),(i=C()(this,T()(t).call(this,e))).loadBeamer=w()(a=i.loadBeamer).call(a,A()(i)),i.beamerCallback=w()(n=i.beamerCallback).call(n,A()(i)),i.showBeamer=w()(r=i.showBeamer).call(r,A()(i)),i.state={showDot:e.hasNews,beamerLoaded:void 0!==window.Beamer,beamerInitialized:!1},i}return O()(t,e),S()(t,null,[{key:"updateLastAnnouncementSeenValue",value:function(){var e={last_announcement_seen:Math.floor(ut()()/1e3)};b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"user_flags",action:"set",data:e})}},{key:"showPluginUpdateNotice",value:function(){if(window.mailpoet_update_available&&!document.getElementById("mailpoet_update_notice")){var e=mt()(b.a.I18n.t("updateMailPoetNotice"),/\[link\](.*?)\[\/link\]/,(function(e){return'<a href="update-core.php">'.concat(e,"</a>")})).join("");ie()("#beamerOverlay").append('<p id="mailpoet_update_notice" class="mailpoet_in_beamer_update_notice">'.concat(e,"</p>"))}}}]),S()(t,[{key:"loadBeamer",value:function(){window.beamer_config={product_id:"VvHbhYWy7118",selector:"#beamer-empty-element",language:window.mailpoet_user_locale,callback:this.beamerCallback},window.mailpoet_woocommerce_active&&(window.beamer_config.filter="woocommerce"),b.a.Modal.loading(!0),window.mailpoet_feature_announcement_has_news=!1,this.setState({beamerLoaded:!0});var e=document.createElement("script");e.type="text/javascript",e.src="https://app.getbeamer.com/js/beamer-embed.js",document.getElementsByTagName("body")[0].appendChild(e)}},{key:"beamerCallback",value:function(){this.state.beamerInitialized||(this.showBeamer(),this.setState({beamerInitialized:!0}))}},{key:"showBeamer",value:function(e){e&&e.preventDefault(),this.state.beamerLoaded?(this.setState({showDot:!1}),b.a.Modal.loading(!1),window.Beamer.show(),t.updateLastAnnouncementSeenValue(),t.showPluginUpdateNotice()):this.loadBeamer()}},{key:"render",value:function(){var e=Ye()("button mailpoet_feature_announcement_button",this.state.showDot?"mailpoet_feature_announcement_dot":"");return h.a.createElement("div",{className:"mailpoet_feature_announcement"},h.a.createElement("button",{type:"button",onClick:this.showBeamer,className:e,title:b.a.I18n.t("whatsNew")},h.a.createElement("span",{className:"mailpoet_feature_announcement_icon dashicons dashicons-carrot"})),h.a.createElement("span",{id:"beamer-empty-element"}))}}]),t}(h.a.Component);dt.propTypes={hasNews:q.a.bool},dt.defaultProps={hasNews:!1};var ht=dt,ft=function(){b.a.trackEvent("User has clicked a CTA to view detailed stats",{"MailPoet Free version":window.mailpoet_version})},gt=function(e){return e.unshift({name:"stats",link:function(e){return h.a.createElement(Ke.b,{to:"/stats/".concat(e.id),onClick:_.a.applyFilters("mailpoet_newsletters_listing_stats_tracking",ft)},b.a.I18n.t("statsListingActionTitle"))},display:function(e){var t=e.queue&&e.queue.count_processed;return Number(e.total_sent||t)>0}}),e},vt=function(e){e.meta.mta_log.error&&"authorization"===e.meta.mta_log.error.operation&&(b.a.Notice.hide("mailpoet_notice_being_sent"),b.a.Notice.error(e.meta.mta_log.error.error_message,{static:!0,id:"mailpoet_authorization_error"}),ie()(".js-button-resume-sending").on("click",(function(){ie()('[data-id="mailpoet_authorization_error"]').slideUp()})))},_t=function(e){if(!1===e.meta.cron_accessible){var t=mt()(b.a.I18n.t("cronNotAccessibleNotice"),/\[link\](.*?)\[\/link\]/g,(function(e){return h.a.createElement("a",{href:"https://kb.mailpoet.com/article/231-sending-does-not-work","data-beacon-article":"5a0257ac2c7d3a272c0d7ad6",target:"_blank",rel:"noopener noreferrer",key:"check-cron"},e)}));b.a.Notice.error("",{static:!0,id:"mailpoet_cron_error"}),oe.a.render(h.a.createElement("div",null,h.a.createElement("p",null,t)),ie()('[data-id="mailpoet_cron_error"]')[0])}else b.a.Notice.hide("mailpoet_cron_error")},bt=a(5),yt=a.n(bt),wt=a(81),Et=a.n(wt),kt=a(110),It=a.n(kt),St=function(e){var t=e.newsletter,a=e.isSent,n=e.currentTime,r=a;if(void 0===r&&(r=t.statistics&&t.queue&&"scheduled"!==t.queue.status),!r)return h.a.createElement("span",null,b.a.I18n.t("notSentYet"));var i={link:"/stats/".concat(t.id),onClick:_.a.applyFilters("mailpoet_newsletters_listing_stats_tracking",ft)},o=Number(t.total_sent||t.queue.count_processed),l=0,c=0,u=0,p=null;o>0&&(l=100*t.statistics.clicked/o,c=100*t.statistics.opened/o,u=100*t.statistics.unsubscribed/o,p=t.statistics.revenue);var m,d,f,g,v,y=b.a.Num.toLocaleFixed(l,1),w=b.a.Num.toLocaleFixed(c,1),E=b.a.Num.toLocaleFixed(u,1);void 0!==n?(m=6,d=t.queue.scheduled_at||t.queue.created_at,g=(f=yt()(n).diff(yt()(d),"hours"))<m,v=!0):(g=!1,v=!1);var k;k=o>=20&&t.statistics.opened>=5&&!g?h.a.createElement("div",{className:"mailpoet_stats_text"},h.a.createElement("div",null,h.a.createElement("span",null,w,"%"," "),h.a.createElement(It.a,{stat:"opened",rate:c,tooltipId:"opened-".concat(t.id)})),h.a.createElement("div",null,h.a.createElement("span",null,y,"%"," "),h.a.createElement(It.a,{stat:"clicked",rate:l,tooltipId:"clicked-".concat(t.id)})),h.a.createElement("div",null,h.a.createElement("span",{className:"mailpoet_stat_hidden"},E,"%"))):h.a.createElement("div",null,h.a.createElement("span",{className:"mailpoet_stats_text"},w,"%,"," ",y,"%",h.a.createElement("span",{className:"mailpoet_stat_hidden"},","," ",E,"%")));var I,S=function(e,a){var n;return function(e,t,a,n){return n<=0||!t.link?e:t.externalLink?h.a.createElement("a",{key:"stats-".concat(a),href:t.link,onClick:t.onClick||null},e):h.a.createElement(Ke.b,{key:"stats-".concat(a),to:t.link,onClick:t.onClick||null},e)}(e,i,s()(n="".concat(a,"-")).call(n,t.id),o)},N=h.a.createElement(h.a.Fragment,null,S(k,"opened-and-clicked"),null!==p&&p.value>0&&h.a.createElement("div",{className:"mailpoet_stats_text"},S(p.formatted,"revenue")," ",h.a.createElement(Et.a,{tooltip:b.a.I18n.t("revenueStatsTooltip"),place:"left",tooltipId:"helpTooltipStatsRevenue"})),g&&S(h.a.createElement("div",{className:"mailpoet_badge mailpoet_badge_green"},b.a.I18n.t("checkBackInHours").replace("%$1d",m-f)),"check-back"));return v&&c<5&&f>=24&&o>=10&&(I=h.a.createElement("div",null,h.a.createElement("a",{href:"https://kb.mailpoet.com/article/191-how-to-improve-my-open-and-click-rates","data-beacon-article":"58f671152c7d3a057f8858e8",target:"_blank",rel:"noopener noreferrer",className:"mailpoet_stat_link_small"},b.a.I18n.t("improveThisLinkText")))),h.a.createElement("div",null,N,I)},Nt=q.a.shape({clicked:q.a.number,opened:q.a.number,unsubscribed:q.a.number,revenue:q.a.shape({count:q.a.number,currency:q.a.string,formatted:q.a.string,value:q.a.number})}),Ct=q.a.shape({status:q.a.string,count_processed:q.a.string.isRequired,count_total:q.a.string.isRequired,created_at:q.a.string,scheduled_at:q.a.string});St.propTypes={newsletter:q.a.shape({id:q.a.number.isRequired,queue:q.a.oneOfType([Ct,q.a.bool]),total_sent:q.a.number,statistics:q.a.oneOfType([Nt,q.a.bool])}).isRequired,isSent:q.a.bool,currentTime:q.a.string},St.defaultProps={isSent:void 0,currentTime:void 0};var xt=St,Tt=a(39),Rt=a.n(Tt),At=a(56),Pt=a.n(At),Ot=function(e){function t(e){var a;return k()(this,t),a=C()(this,T()(t).call(this,e)),ne()(A()(a),"setupNewsletter",(function(e){void 0!==e&&(a.props.history.push("/new/".concat(e)),b.a.trackEvent("Emails > Type selected",{"MailPoet Free version":window.mailpoet_version,"Email type":e}))})),ne()(A()(a),"getAutomaticEmails",(function(){return window.mailpoet_automatic_emails?m()(g.a).call(g.a,window.mailpoet_automatic_emails,(function(e){var t=e,n=g.a.partial(a.setupNewsletter,e.slug);return t.action=h.a.createElement("div",null,h.a.createElement("a",{className:"button button-primary",onClick:n,role:"button",tabIndex:0,disabled:a.state.isCreating,onKeyDown:function(e){var t,n;u()(t=["keydown","keypress"]).call(t,e.type)&&u()(n=["Enter"," "]).call(n,e.key)&&(e.preventDefault(),a.onClick())}},b.a.I18n.t("setUp"))),t})):[]})),ne()(A()(a),"getAdditionalTypes",(function(){return window.mailpoet_woocommerce_active?[{slug:"wc_transactional",title:b.a.I18n.t("wooCommerceCustomizerTypeTitle"),description:b.a.I18n.t("wooCommerceCustomizerTypeDescription"),action:h.a.createElement("a",{className:"button button-primary","data-automation-id":"customize_woocommerce",onClick:a.openWooCommerceCustomizer,role:"button",tabIndex:0,onKeyDown:function(e){var t,n;u()(t=["keydown","keypress"]).call(t,e.type)&&u()(n=["Enter"," "]).call(n,e.key)&&(e.preventDefault(),a.openWooCommerceCustomizer())}},b.a.I18n.t("customize"))}]:[]})),ne()(A()(a),"openWooCommerceCustomizer",Pt()(Rt.a.mark((function e(){var t,a;return Rt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(b.a.trackEvent("Emails > Type selected",{"MailPoet Free version":window.mailpoet_version,"Email type":"wc_transactional"}),t=window.mailpoet_woocommerce_transactional_email_id){e.next=15;break}return e.prev=3,e.next=6,b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"settings",action:"set",data:{"woocommerce.use_mailpoet_editor":1}});case 6:a=e.sent,t=a.data.woocommerce.transactional_email_id,b.a.trackEvent("Emails > WooCommerce email customizer enabled",{"MailPoet Free version":window.mailpoet_version}),e.next=15;break;case 11:return e.prev=11,e.t0=e.catch(3),b.a.Notice.showApiErrorNotice(e.t0,{scroll:!0}),e.abrupt("return");case 15:window.location.href="?page=mailpoet-newsletter-editor&id=".concat(t);case 16:case"end":return e.stop()}}),e,null,[[3,11]])})))),ne()(A()(a),"createNewsletter",(function(e){a.setState({isCreating:!0}),b.a.trackEvent("Emails > Type selected",{"MailPoet Free version":window.mailpoet_version,"Email type":e}),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"create",data:{type:e,subject:b.a.I18n.t("draftNewsletterTitle")}}).done((function(e){a.props.history.push("/template/".concat(e.data.id))})).fail((function(e){var t;(a.setState({isCreating:!1}),e.errors.length>0)&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))})),a.state={isCreating:!1},a}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t=g.a.partial(this.createNewsletter,"standard"),a=g.a.partial(this.setupNewsletter,"notification"),n=g.a.partial(this.setupNewsletter,"welcome"),r=[{slug:"standard",title:b.a.I18n.t("regularNewsletterTypeTitle"),description:b.a.I18n.t("regularNewsletterTypeDescription"),action:h.a.createElement("a",{className:"button button-primary","data-automation-id":"create_standard",onClick:t,role:"button",tabIndex:0,disabled:this.state.isCreating,onKeyDown:function(e){var a,n;u()(a=["keydown","keypress"]).call(a,e.type)&&u()(n=["Enter"," "]).call(n,e.key)&&(e.preventDefault(),t())}},b.a.I18n.t("create"))},{slug:"welcome",title:b.a.I18n.t("welcomeNewsletterTypeTitle"),description:b.a.I18n.t("welcomeNewsletterTypeDescription"),videoGuide:"https://kb.mailpoet.com/article/254-video-guide-to-welcome-emails",videoGuideBeacon:"5b05ebf20428635ba8b2aa53",action:h.a.createElement("a",{className:"button button-primary",onClick:n,"data-automation-id":"create_welcome",disabled:this.state.isCreating,onKeyDown:function(e){var t,a;u()(t=["keydown","keypress"]).call(t,e.type)&&u()(a=["Enter"," "]).call(a,e.key)&&(e.preventDefault(),n())},role:"button",tabIndex:0},b.a.I18n.t("setUp"))},{slug:"notification",title:b.a.I18n.t("postNotificationNewsletterTypeTitle"),description:b.a.I18n.t("postNotificationNewsletterTypeDescription"),videoGuide:"https://kb.mailpoet.com/article/210-video-guide-to-post-notifications",videoGuideBeacon:"59ba6fb3042863033a1cd5a5",action:h.a.createElement("a",{className:"button button-primary","data-automation-id":"create_notification",onClick:a,role:"button",disabled:this.state.isCreating,tabIndex:0,onKeyDown:function(e){var t,n;u()(t=["keydown","keypress"]).call(t,e.type)&&u()(n=["Enter"," "]).call(n,e.key)&&(e.preventDefault(),a())}},b.a.I18n.t("setUp"))}],i=_.a.applyFilters("mailpoet_newsletters_types",s()(e=[]).call(e,r,l()(this.getAutomaticEmails())),this);i=s()(i).call(i,this.getAdditionalTypes()),K()(this.props)&&(i=K()(i).call(i,K()(this.props)));var o=!0===window.mailpoet_is_new_user?"mailpoet_badge mailpoet_badge_video":"mailpoet_badge mailpoet_badge_video mailpoet_badge_video_grey",c=b.a.Ajax.constructGetUrl({api_version:window.mailpoet_api_version,endpoint:"newsletterTemplates",action:"getAll"});return h.a.createElement("div",null,h.a.createElement("link",{rel:"prefetch",href:window.mailpoet_editor_javascript_url,as:"script"}),this.props.showHeader&&h.a.createElement(h.a.Fragment,null,h.a.createElement("h1",null,b.a.I18n.t(0===window.mailpoet_newsletters_count?"createFirstEmailTitle":"pickCampaignType")),h.a.createElement(L.a,{step:"type"})),h.a.createElement("ul",{className:"mailpoet_boxes mailpoet_boxes_types"},m()(i).call(i,(function(e){return h.a.createElement("li",{key:e.slug,"data-type":e.slug,className:"mailpoet_newsletter_types"},h.a.createElement("div",{className:"mailpoet_thumbnail"},e.thumbnailImage?h.a.createElement("img",{src:e.thumbnailImage,alt:""}):null),h.a.createElement("div",{className:"mailpoet_boxes_content"},h.a.createElement("div",{className:"mailpoet_description"},h.a.createElement("h3",null,e.title," ",e.beta?"(".concat(b.a.I18n.t("beta"),")"):""),h.a.createElement("p",null,e.description),e.videoGuide&&h.a.createElement("a",{className:o,href:e.videoGuide,"data-beacon-article":e.videoGuideBeacon,target:"_blank",rel:"noopener noreferrer"},h.a.createElement("span",{className:"dashicons dashicons-format-video"}),b.a.I18n.t("seeVideoGuide"))),h.a.createElement("div",{className:"mailpoet_actions"},e.action)))}),this)),h.a.createElement("link",{rel:"prefetch",href:c,as:"fetch"}))}}]),t}(h.a.Component);ne()(Ot,"propTypes",{filter:q.a.func,history:q.a.shape({push:q.a.func.isRequired}).isRequired,showHeader:q.a.bool}),ne()(Ot,"defaultProps",{filter:null,showHeader:!0});var Lt=Object(B.withRouter)(Ot),Dt=a(48),qt=a.n(Dt),Ft=function(e){var t=e.onClose,a=e.onDisplay,n=e.renderInPlace,r=e.timeout,i=e.scroll,s=e.children,o=e.closable,l=e.type,c=h.a.useState(!1),u=fe()(c,2),p=u[0],m=u[1],d=h.a.useRef(null),f=h.a.useRef(null),g=h.a.useCallback((function(){t&&t(),m(!0)}),[t]);if(h.a.useEffect((function(){return r&&(f.current=qt()(g,r)),function(){return f.current?clearTimeout(f.current):null}}),[g,r]),h.a.useLayoutEffect((function(){i&&d.current&&d.current.scrollIntoView(!1)}),[i]),h.a.useLayoutEffect((function(){a&&a()}),[a]),p)return null;var v=h.a.createElement("div",{ref:d,className:"mailpoet_base_notice mailpoet_".concat(l,"_notice")},s,o&&h.a.createElement("button",{type:"button",className:"notice-dismiss",onClick:g},h.a.createElement("span",{className:"screen-reader-text"},b.a.I18n.t("dismissNotice"))));return n?v:oe.a.createPortal(v,document.getElementById("mailpoet_notices"))};Ft.propTypes={type:q.a.oneOf(["success","info","warning","error"]).isRequired,scroll:q.a.bool,closable:q.a.bool,renderInPlace:q.a.bool,onDisplay:q.a.func,onClose:q.a.func,timeout:q.a.oneOfType([q.a.number,q.a.oneOf([!1])]),children:q.a.oneOfType([q.a.string,q.a.element,q.a.arrayOf(q.a.element)]).isRequired},Ft.defaultProps={timeout:1e4,scroll:!1,closable:!0,renderInPlace:!1,onDisplay:void 0,onClose:void 0};var Mt=Ft,jt=function(){if(!window.mailpoet_subscribers_limit_reached)return null;var e=window.mailpoet_has_valid_api_key,t=b.a.I18n.t("subscribersLimitNoticeTitle").replace("[subscribersLimit]",window.mailpoet_subscribers_limit),a=b.a.I18n.t(e?"yourPlanLimit":"freeVersionLimit").replace("[subscribersLimit]",window.mailpoet_subscribers_limit),n=e?"https://account.mailpoet.com/upgrade":"https://account.mailpoet.com/?s=".concat(window.mailpoet_subscribers_count+1),r=function(){var e=Pt()(Rt.a.mark((function e(){return Rt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"services",action:"recheckKeys"});case 2:window.location.reload();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return h.a.createElement(Mt,{type:"error",timeout:!1,closable:!1,renderInPlace:!0},h.a.createElement("h3",null,t),h.a.createElement("p",null,a," ",b.a.I18n.t("youNeedToUpgrade")),h.a.createElement("p",null,h.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",className:"button button-primary",href:n},b.a.I18n.t("upgradeNow")),e&&h.a.createElement(h.a.Fragment,null," ",h.a.createElement("button",{type:"button",className:"button",onClick:r},b.a.I18n.t("refreshMySubscribers")))))},Vt=!!window.mailpoet_tracking_enabled,Bt=window.mailpoet_woocommerce_automatic_emails||{},zt={onTrash:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterTrashed"):b.a.I18n.t("multipleNewslettersTrashed").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onDelete:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterDeleted"):b.a.I18n.t("multipleNewslettersDeleted").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onRestore:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterRestored"):b.a.I18n.t("multipleNewslettersRestored").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)}},Ut=[{name:"subject",label:b.a.I18n.t("subject"),sortable:!0},{name:"status",label:b.a.I18n.t("status"),width:145},{name:"settings",label:b.a.I18n.t("settings")},{name:"statistics",label:b.a.I18n.t("statistics"),display:Vt},{name:"updated_at",label:b.a.I18n.t("lastModifiedOn"),sortable:!0}],Wt=[{name:"trash",label:b.a.I18n.t("moveToTrash"),onSuccess:zt.onTrash}],$t=[{name:"view",link:function(e){return h.a.createElement("a",{href:e.preview_url,target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("preview"))}},{name:"edit",link:function(e){return h.a.createElement("a",{href:"?page=mailpoet-newsletter-editor&id=".concat(e.id)},b.a.I18n.t("edit"))}},{name:"duplicate",label:b.a.I18n.t("duplicate"),onClick:function(e,t){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"duplicate",data:{id:e.id}}).done((function(e){b.a.Notice.success(b.a.I18n.t("newsletterDuplicated").replace("%$1s",e.data.subject)),t()})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}},{name:"trash"}];_.a.addFilter("mailpoet_newsletters_listings_automatic_email_actions","mailpoet",gt);var Ht=function(e){function t(e){var a,n;return k()(this,t),n=C()(this,T()(t).call(this,e)),ne()(A()(n),"updateStatus",(function(e){e.persist(),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"setStatus",data:{id:Number(e.target.getAttribute("data-id")),status:e.target.value}}).done((function(e){"active"===e.data.status&&b.a.Notice.success(b.a.I18n.t("automaticEmailActivated")),n.forceUpdate()})).fail((function(t){b.a.Notice.showApiErrorNotice(t),e.target.value=t.status}))})),ne()(A()(n),"renderStatus",(function(e){var t=de()(e.total_sent,10)?b.a.I18n.t("sentToXCustomers").replace("%$1d",e.total_sent.toLocaleString()):b.a.I18n.t("notSentYet");return h.a.createElement("div",null,h.a.createElement("p",null,h.a.createElement("select",{"data-id":e.id,defaultValue:e.status,onChange:n.updateStatus},h.a.createElement("option",{value:"active"},b.a.I18n.t("active")),h.a.createElement("option",{value:"draft"},b.a.I18n.t("inactive")))),h.a.createElement("p",null,h.a.createElement(Ke.b,{to:"/sending-status/".concat(e.id)},t)))})),ne()(A()(n),"renderSettings",(function(e){var t,a=Bt[e.options.group].events[e.options.event];try{t=JSON.parse(e.options.meta||null)}catch(a){t=e.options.meta||null}var n,r,i=t&&t.option?g.a.pluck(t.option,"name"):[];if(t&&g.a.isEmpty(i))return h.a.createElement("span",{className:"mailpoet_error"},b.a.I18n.t("automaticEmailEventOptionsNotConfigured"));if((n=i.length>1&&"listingScheduleDisplayTextPlural"in a?a.listingScheduleDisplayTextPlural.replace("%s",i.join(", ")):a.listingScheduleDisplayText.replace("%s",i.join(", ")))&&"immediate"!==e.options.afterTimeType)switch(e.options.afterTimeType){case"minutes":r=b.a.I18n.t("sendingDelayMinutes").replace("%$1d",e.options.afterTimeNumber);break;case"hours":r=b.a.I18n.t("sendingDelayHours").replace("%$1d",e.options.afterTimeNumber);break;case"days":r=b.a.I18n.t("sendingDelayDays").replace("%$1d",e.options.afterTimeNumber);break;case"weeks":r=b.a.I18n.t("sendingDelayWeeks").replace("%$1d",e.options.afterTimeNumber);break;default:r=b.a.I18n.t("sendingDelayInvalid")}return h.a.createElement("span",null,n,r&&h.a.createElement(h.a.Fragment,null,h.a.createElement("br",null),r))})),ne()(A()(n),"renderItem",(function(e,t){var a=Ye()("manage-column","column-primary","has-row-actions");return h.a.createElement("div",null,h.a.createElement("td",{className:a},h.a.createElement("strong",null,h.a.createElement("a",{className:"row-title",href:"?page=mailpoet-newsletter-editor&id=".concat(e.id)},e.subject)),t),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("status")},n.renderStatus(e)),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("settings")},n.renderSettings(e)),!0===Vt?h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("statistics")},h.a.createElement(xt,{newsletter:e,isSent:e.total_sent>0&&!!e.statistics})):null,h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("lastModifiedOn")},h.a.createElement("abbr",null,b.a.Date.format(e.updated_at))))})),n.state={eventCounts:{},newslettersCount:void 0},n.afterGetItems=w()(a=n.afterGetItems).call(a,A()(n)),n}return O()(t,e),S()(t,[{key:"afterGetItems",value:function(e){vt(e),this.countEmailTypes(e)}},{key:"countEmailTypes",value:function(e){if(We()(e.items)){var t,a,n=be()(t=m()(a=e.items).call(a,(function(e){return e.options.event}))).call(t,(function(e,t){return e[t]?e[t]+=1:e[t]=1,e}),{woocommerce_product_purchased:0,woocommerce_product_purchased_in_category:0,woocommerce_first_purchase:0});this.setState({eventCounts:n})}}},{key:"renderWarning",value:function(){var e=this.state.eventCounts;return e.woocommerce_product_purchased+e.woocommerce_product_purchased_in_category+e.woocommerce_first_purchase?"1"===window.mailpoet_woocommerce_optin_on_checkout?null:h.a.createElement("div",{className:"mailpoet_base_notice mailpoet_error_notice"},h.a.createElement("p",null,b.a.I18n.t("wooCommerceEmailsWarning")),h.a.createElement("p",null,h.a.createElement("a",{href:"?page=mailpoet-settings#woocommerce"},b.a.I18n.t("wooCommerceEmailsWarningLink")))):null}},{key:"render",value:function(){var e=this,t=this.props,a=t.match,n=t.location;return h.a.createElement("div",null,h.a.createElement(lt,null),h.a.createElement(ht,{hasNews:window.mailpoet_feature_announcement_has_news}),h.a.createElement(jt,null),h.a.createElement(ot,{tab:"woocommerce"}),this.renderWarning(),0===this.state.newslettersCount&&h.a.createElement(Lt,{filter:function(e){return"woocommerce"===e.slug},showHeader:!1}),0!==this.state.newslettersCount&&h.a.createElement(He.a,{limit:window.mailpoet_listing_per_page,location:n,params:a.params,endpoint:"newsletters",type:"automatic",base_url:"woocommerce",onRenderItem:this.renderItem,columns:Ut,bulk_actions:Wt,item_actions:$t,messages:zt,auto_refresh:!0,sort_by:"updated_at",sort_order:"desc",afterGetItems:function(t){if(!t.loading){var a,n=be()(a=t.groups).call(a,(function(e,t){return e+t.count}),0);e.setState({newslettersCount:n})}e.afterGetItems(t)}}))}}]),t}(h.a.Component);ne()(Ht,"displayName","Listings"),ne()(Ht,"propTypes",{match:q.a.shape({params:q.a.shape({tab:q.a.string}).isRequired}).isRequired,location:q.a.object.isRequired});var Kt=Ht,Gt=g.a.once((function(){return b.a.trackEvent("User has typed a GA campaign name",{"MailPoet Premium version":window.mailpoet_premium_version})})),Yt=mt()(b.a.I18n.t("gaCampaignTip"),/\[link\](.*?)\[\/link\]/g,(function(e,t){return h.a.createElement("a",{key:t,href:"https://kb.mailpoet.com/article/187-track-your-newsletters-subscribers-in-google-analytics","data-beacon-article":"58b597d12c7d3a576d359144",target:"_blank",rel:"noopener noreferrer"},e)})),Jt={name:"ga_campaign",label:b.a.I18n.t("gaCampaignLine"),tip:Yt,type:"text",onBeforeChange:Gt},Qt=window.mailpoet_woocommerce_automatic_emails||[];if(document.getElementById("newsletters_container")&&!g.a.isEmpty(Qt)){_.a.addFilter("mailpoet_newsletters_types","mailpoet",(function(e,t){var a,n=g.a.reject(e,(function(e){return g.a.has(Qt,e.slug)})),r=m()(g.a).call(g.a,Qt,(function(e){var a=e,n=g.a.partial(t.setupNewsletter,e.slug);return a.action=h.a.createElement("div",null,h.a.createElement("span",{className:"button button-primary",onClick:n,onKeyDown:function(e){var t,a;u()(t=["keydown","keypress"]).call(t,e.type)&&u()(a=["Enter"," "]).call(a,e.key)&&(e.preventDefault(),n())},role:"button","data-automation-id":"create_woocommerce",tabIndex:0},e.actionButtonTitle||b.a.I18n.t("setUp"))),a}));return s()(a=[]).call(a,l()(n),l()(r))})),_.a.addFilter("mailpoet_newsletters_before_router","mailpoet",(function(e){var t,a=g.a.reject(e,(function(e){return g.a.has(Qt,e.name)})),n=[],i=[],o=[];return g.a.each(Qt,(function(e){var t=e.events;g.a.isObject(t)&&g.a.each(t,(function(t){var a;i.push({path:s()(a="/new/".concat(e.slug,"/")).call(a,t.slug,"/conditions"),name:t.slug,render:function(a){var n=r()({},a,{email:e,name:t.slug});return h.a.createElement(Me,n)}})})),n.push({path:"/new/".concat(e.slug),name:e.slug,render:function(t){var a=r()({},t,{email:e});return h.a.createElement(U,a)}}),o.push({path:"/".concat(e.slug,"/(.*)?"),params:{tab:e.slug},component:Kt})})),s()(t=[]).call(t,i,n,o,l()(a))}))}_.a.addFilter("mailpoet_newsletters_listings_tabs","mailpoet",(function(e){var t,a=[];return g.a.each(Qt,(function(e){a.push({name:e.slug,label:e.title,link:"/".concat(e.slug),display:window.mailpoet_woocommerce_active})})),s()(t=[]).call(t,l()(e),a)}));var Zt=function(e,t,a){return"automatic"===t?h.a.createElement(M,{step:a}):e};_.a.addFilter("mailpoet_newsletters_template_breadcrumb","mailpoet",Zt),_.a.addFilter("mailpoet_newsletters_editor_breadcrumb","mailpoet",Zt),_.a.addFilter("mailpoet_newsletters_send_breadcrumb","mailpoet",Zt);_.a.addFilter("mailpoet_newsletters_editor_extend_config","mailpoet",(function(e,t){if("automatic"!==t.type)return e;var a=e;return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"automatic_emails",action:"get_event_shortcodes",data:{email_slug:t.options.group,event_slug:t.options.event}}).then((function(e){return g.a.isObject(e)&&e.data?(a.shortcodes=r()({},a.shortcodes,e.data),a):a})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0,static:!0})}))}));_.a.addFilter("mailpoet_newsletters_send_newsletter_fields","mailpoet",(function(e,t){if("automatic"!==t.type)return e;var a=Qt[t.options.group];if(!a)return e;var n=t.options,r=[{name:"subject",label:b.a.I18n.t("subjectLine"),tip:b.a.I18n.t("subjectLineTip"),type:"text",validation:{"data-parsley-required":!0,"data-parsley-required-message":b.a.I18n.t("emptySubjectLineError")}},{name:"options",label:b.a.I18n.t("sendAutomaticEmailWhenHeading").replace("%1s",a.title),type:"reactComponent",component:ze,email:a,emailOptions:n},{name:"sender",label:b.a.I18n.t("sender"),tip:b.a.I18n.t("senderTip"),fields:[{name:"sender_name",type:"text",placeholder:b.a.I18n.t("senderNamePlaceholder"),validation:{"data-parsley-required":!0}},{name:"sender_address",type:"text",placeholder:b.a.I18n.t("senderAddressPlaceholder"),validation:{"data-parsley-required":!0,"data-parsley-type":"email"}}]},{name:"reply-to",label:b.a.I18n.t("replyTo"),tip:b.a.I18n.t("replyToTip"),inline:!0,fields:[{name:"reply_to_name",type:"text",placeholder:b.a.I18n.t("replyToNamePlaceholder")},{name:"reply_to_address",type:"text",placeholder:b.a.I18n.t("replyToAddressPlaceholder"),validation:{"data-parsley-type":"email"}}]},Jt];return{getFields:function(){return r},getSendButtonOptions:function(){return{value:b.a.I18n.t("activate")}}}}));_.a.addFilter("mailpoet_newsletters_send_server_request_parameters","mailpoet",(function(e,t){return"automatic"===t.type?{api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"setStatus",data:{id:t.id,status:"active"}}:e}));_.a.addFilter("mailpoet_newsletters_send_server_request_response_redirect","mailpoet",(function(e,t){return"automatic"===t.type?"/".concat(t.options.group):e}));_.a.addFilter("mailpoet_newsletters_send_server_request_response","mailpoet",(function(e){if("automatic"!==e.type)return null;var t=Qt[e.options.group];return t?function(){b.a.Notice.success(b.a.I18n.t("automaticEmailActivated").replace("%1s",t.title))}:null}));var Xt=a(34),ea=a.n(Xt),ta=[{name:"email",label:b.a.I18n.t("subscriber"),sortable:!0},{name:"status",label:b.a.I18n.t("status"),sortable:!0},{name:"segments",label:b.a.I18n.t("lists")},{name:"created_at",label:b.a.I18n.t("subscribedOn"),sortable:!0},{name:"updated_at",label:b.a.I18n.t("lastModifiedOn"),sortable:!0}],aa={onTrash:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneSubscriberTrashed"):b.a.I18n.t("multipleSubscribersTrashed").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onDelete:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneSubscriberDeleted"):b.a.I18n.t("multipleSubscribersDeleted").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onRestore:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneSubscriberRestored"):b.a.I18n.t("multipleSubscribersRestored").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onNoItemsFound:function(e){return"bounced"===e&&!window.mailpoet_premium_active&&!window.mss_active&&h.a.createElement("div",null,h.a.createElement("p",null,b.a.I18n.t("bouncedSubscribersHelp")),h.a.createElement("p",null,h.a.createElement("a",{href:"admin.php?page=mailpoet-premium",className:"button-primary"},b.a.I18n.t("bouncedSubscribersPremiumButtonText"))))}},na=[{name:"moveToList",label:b.a.I18n.t("moveToList"),onSelect:function(){return h.a.createElement(ce,{field:{id:"move_to_segment",name:"move_to_segment",endpoint:"segments",filter:function(e){return!(e.deleted_at||"default"!==e.type)}}})},getData:function(){return{segment_id:Number(ie()("#move_to_segment").val())}},onSuccess:function(e){b.a.Notice.success(b.a.I18n.t("multipleSubscribersMovedToList").replace("%$1d",Number(e.meta.count).toLocaleString()).replace("%$2s",e.meta.segment))}},{name:"addToList",label:b.a.I18n.t("addToList"),onSelect:function(){return h.a.createElement(ce,{field:{id:"add_to_segment",name:"add_to_segment",endpoint:"segments",filter:function(e){return!(e.deleted_at||"default"!==e.type)}}})},getData:function(){return{segment_id:Number(ie()("#add_to_segment").val())}},onSuccess:function(e){b.a.Notice.success(b.a.I18n.t("multipleSubscribersAddedToList").replace("%$1d",Number(e.meta.count).toLocaleString()).replace("%$2s",e.meta.segment))}},{name:"removeFromList",label:b.a.I18n.t("removeFromList"),onSelect:function(){return h.a.createElement(ce,{field:{id:"remove_from_segment",name:"remove_from_segment",endpoint:"segments",filter:function(e){return!("default"!==e.type)}}})},getData:function(){return{segment_id:Number(ie()("#remove_from_segment").val())}},onSuccess:function(e){b.a.Notice.success(b.a.I18n.t("multipleSubscribersRemovedFromList").replace("%$1d",Number(e.meta.count).toLocaleString()).replace("%$2s",e.meta.segment))}},{name:"removeFromAllLists",label:b.a.I18n.t("removeFromAllLists"),onSuccess:function(e){b.a.Notice.success(b.a.I18n.t("multipleSubscribersRemovedFromAllLists").replace("%$1d",Number(e.meta.count).toLocaleString()))}},{name:"trash",label:b.a.I18n.t("moveToTrash"),onSuccess:aa.onTrash}],ra=[{name:"edit",label:b.a.I18n.t("edit"),link:function(e){return h.a.createElement(Ke.b,{to:"/edit/".concat(e.id)},b.a.I18n.t("edit"))}},{name:"sendConfirmationEmail",label:b.a.I18n.t("resendConfirmationEmail"),display:function(e){return"unconfirmed"===e.status&&e.count_confirmations<window.mailpoet_max_confirmation_emails},onClick:function(e){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"subscribers",action:"sendConfirmationEmail",data:{id:e.id}}).done((function(){return b.a.Notice.success(b.a.I18n.t("oneConfirmationEmailSent"))})).fail((function(e){return b.a.Notice.showApiErrorNotice(e)}))}},{name:"trash",display:function(e){return 0===Number(e.wp_user_id)&&0===Number(e.is_woocommerce_user)}}],ia=function(e){function t(){var e,a,n;k()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=C()(this,(e=T()(t)).call.apply(e,s()(a=[this]).call(a,i))),ne()(A()(n),"getSegmentFromId",(function(e){var t,a=!1;return ea()(t=window.mailpoet_segments).call(t,(function(t){t.id===e&&(a=t)})),a})),ne()(A()(n),"renderItem",(function(e,t){var a=Ye()("manage-column","column-primary","has-row-actions","column-username"),r="";switch(e.status){case"subscribed":r=b.a.I18n.t("subscribed");break;case"unconfirmed":r=b.a.I18n.t("unconfirmed");break;case"unsubscribed":r=b.a.I18n.t("unsubscribed");break;case"inactive":r=b.a.I18n.t("inactive");break;case"bounced":r=b.a.I18n.t("bounced");break;default:r="Invalid"}var i=!1;if(e.subscriptions.length>0){var s,o=[];ea()(s=e.subscriptions).call(s,(function(e){var t=n.getSegmentFromId(e.segment_id);!1!==t&&"subscribed"===e.status&&o.push(t.name)})),i=h.a.createElement("span",null,o.join(", "))}return h.a.createElement("div",null,h.a.createElement("td",{className:a},h.a.createElement("strong",null,h.a.createElement(Ke.b,{className:"row-title",to:"/edit/".concat(e.id)},e.email)),h.a.createElement("p",{style:{margin:0}},e.first_name," ",e.last_name),t),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("status")},r),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("lists")},i),h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("subscribedOn")},h.a.createElement("abbr",null,b.a.Date.format(e.created_at))),h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("lastModifiedOn")},h.a.createElement("abbr",null,b.a.Date.format(e.updated_at))))})),n}return O()(t,e),S()(t,[{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("h1",{className:"title"},b.a.I18n.t("pageTitle")," ",h.a.createElement(Ke.b,{className:"page-title-action",to:"/new"},b.a.I18n.t("new")),h.a.createElement("a",{className:"page-title-action",href:"?page=mailpoet-import","data-automation-id":"import-subscribers-button"},b.a.I18n.t("import")),h.a.createElement("a",{id:"mailpoet_export_button",className:"page-title-action",href:"?page=mailpoet-export"},b.a.I18n.t("export"))),h.a.createElement(He.a,{limit:window.mailpoet_listing_per_page,location:this.props.location,params:this.props.match.params,endpoint:"subscribers",onRenderItem:this.renderItem,columns:ta,bulk_actions:na,item_actions:ra,messages:aa,sort_by:"created_at",sort_order:"desc"}))}}]),t}(h.a.Component);ia.propTypes={location:q.a.object.isRequired,match:q.a.shape({params:q.a.object}).isRequired};var sa=ia,oa=a(124),la=a.n(oa),ca=function(e){return h.a.createElement("textarea",Q()({type:"text",className:"regular-text",name:e.field.name,id:"field_".concat(e.field.name),value:e.item[e.field.name],placeholder:e.field.placeholder,defaultValue:e.field.defaultValue,onChange:e.onValueChange},e.field.validation))};ca.propTypes={item:q.a.object.isRequired,field:q.a.shape({name:q.a.string,placeholder:q.a.string,defaultValue:q.a.string,validation:q.a.object}).isRequired,onValueChange:q.a.func.isRequired};var ua=ca,pa=a(38),ma=a.n(pa),da=function(e){function t(){return k()(this,t),C()(this,T()(t).apply(this,arguments))}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t=this;if(void 0===Y()(this.props.field))return!1;var a,n=!1,r=!1,i=!1;void 0!==this.props.field.placeholder&&(r=h.a.createElement("option",{value:""},this.props.field.placeholder)),void 0!==K()(this.props.field)&&(n=K()(this.props.field)),g.a.isFunction(this.props.field.sortBy)&&(i=this.props.field.sortBy),a=i?m()(g.a).call(g.a,g.a.sortBy(g.a.pairs(Y()(this.props.field)),(function(e){return i(e[0],e[1])})),(function(e){return e[0]})):ma()(Y()(this.props.field));var s=m()(e=K()(a).call(a,(function(e){return!1===n||n(t.props.item,e)}))).call(e,(function(e){return h.a.createElement("option",{key:"option-".concat(e),value:e},Y()(t.props.field)[e])}));return h.a.createElement("select",Q()({name:this.props.field.name,id:"field_".concat(this.props.field.name),value:this.props.item[this.props.field.name]||"",onChange:this.props.onValueChange,"data-automation-id":this.props.automationId},this.props.field.validation),r,s)}}]),t}(h.a.Component);da.propTypes={onValueChange:q.a.func,field:q.a.shape({name:q.a.string.isRequired,values:q.a.object,placeholder:q.a.string,filter:q.a.func,sortBy:q.a.func,validation:q.a.object}).isRequired,item:q.a.object.isRequired,automationId:q.a.string},da.defaultProps={automationId:"",onValueChange:function(){}};var ha=da,fa=function(e){function t(){return k()(this,t),C()(this,T()(t).apply(this,arguments))}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t=this;if(void 0===Y()(this.props.field))return!1;var a=this.props.item[this.props.field.name],n=m()(e=ma()(Y()(this.props.field))).call(e,(function(e){return h.a.createElement("p",{key:"radio-".concat(e)},h.a.createElement("label",{htmlFor:t.props.field.name},h.a.createElement("input",{type:"radio",checked:a===e,value:e,onChange:t.props.onValueChange,name:t.props.field.name,id:t.props.field.name}),Y()(t.props.field)[e]))}));return h.a.createElement("div",null,n)}}]),t}(h.a.Component);fa.propTypes={onValueChange:q.a.func,field:q.a.shape({name:q.a.string.isRequired,values:q.a.object}).isRequired,item:q.a.object.isRequired},fa.defaultProps={onValueChange:function(){}};var ga=fa,va=function(e){function t(e){var a,n;return k()(this,t),n=C()(this,T()(t).call(this,e)),ne()(A()(n),"onValueChange",(function(e){return e.target.value=n.checkboxRef.current.checked?"1":"0",n.props.onValueChange(e)})),n.checkboxRef=h.a.createRef(),n.onValueChange=w()(a=n.onValueChange).call(a,A()(n)),n}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t=this;if(void 0===Y()(this.props.field))return!1;var a=!!Number(this.props.item[this.props.field.name]),n=m()(e=ma()(Y()(this.props.field))).call(e,(function(e){return h.a.createElement("p",{key:"checkbox-".concat(e)},h.a.createElement("label",{htmlFor:t.props.field.name},h.a.createElement("input",{ref:t.checkboxRef,type:"checkbox",value:"1",checked:a,onChange:t.onValueChange,name:t.props.field.name,id:t.props.field.name}),Y()(t.props.field)[e]))}));return h.a.createElement("div",null,n)}}]),t}(h.a.Component);va.propTypes={onValueChange:q.a.func.isRequired,field:q.a.shape({name:q.a.string.isRequired,values:q.a.object.isRequired}).isRequired,item:q.a.object.isRequired};var _a=va,ba=a(50),ya=a.n(ba);function wa(e){var t=[];void 0!==e.placeholder&&t.push(h.a.createElement("option",{value:"",key:0},e.placeholder));for(var a=yt()().year(),n=a;n>=a-100;n-=1)t.push(h.a.createElement("option",{key:n,value:n},n));return h.a.createElement("select",{name:"".concat(e.name,"[year]"),value:e.year,onChange:e.onValueChange},t)}function Ea(e){var t=[];void 0!==e.placeholder&&t.push(h.a.createElement("option",{value:"",key:0},e.placeholder));for(var a=1;a<=12;a+=1)t.push(h.a.createElement("option",{key:a,value:a},e.monthNames[a-1]));return h.a.createElement("select",{name:"".concat(e.name,"[month]"),value:e.month,onChange:e.onValueChange},t)}function ka(e){var t=[];void 0!==e.placeholder&&t.push(h.a.createElement("option",{value:"",key:0},e.placeholder));for(var a=1;a<=31;a+=1)t.push(h.a.createElement("option",{key:a,value:a},a));return h.a.createElement("select",{name:"".concat(e.name,"[day]"),value:e.day,onChange:e.onValueChange},t)}wa.propTypes={name:q.a.string.isRequired,placeholder:q.a.string.isRequired,onValueChange:q.a.func.isRequired,year:q.a.oneOfType([q.a.string,q.a.number]).isRequired},Ea.propTypes={name:q.a.string.isRequired,placeholder:q.a.string.isRequired,onValueChange:q.a.func.isRequired,month:q.a.oneOfType([q.a.string,q.a.number]).isRequired,monthNames:q.a.arrayOf(q.a.string).isRequired},ka.propTypes={name:q.a.string.isRequired,placeholder:q.a.string.isRequired,onValueChange:q.a.func.isRequired,day:q.a.oneOfType([q.a.string,q.a.number]).isRequired};var Ia=function(e){function t(e){var a,n;return k()(this,t),(n=C()(this,T()(t).call(this,e))).state={year:"",month:"",day:""},n.onValueChange=w()(a=n.onValueChange).call(a,A()(n)),n}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){this.extractDateParts()}},{key:"componentDidUpdate",value:function(e){void 0!==this.props.item&&void 0!==e.item&&this.props.item.id!==e.item.id&&this.extractDateParts()}},{key:"onValueChange",value:function(e){var t=this,a=e.target.name.match(/(.*?)\[(.*?)\]/),n=null,r=null;if(null!==a&&3===a.length){var i=fe()(a,3);n=i[1],r=i[2];var s=Number(e.target.value);this.setState(ne()({},"".concat(r),s),(function(){t.props.onValueChange({target:{name:n,value:t.formatValue()}})}))}}},{key:"formatValue",value:function(){var e;switch(this.props.field.params.date_type){case"year_month_day":e={year:this.state.year,month:this.state.month,day:this.state.day};break;case"year_month":e={year:this.state.year,month:this.state.month};break;case"month":e={month:this.state.month};break;case"year":e={year:this.state.year};break;default:e={value:"invalid type"}}return e}},{key:"extractDateParts",value:function(){var e,t=void 0!==this.props.item[this.props.field.name]?ya()(e=this.props.item[this.props.field.name]).call(e):"";if(""!==t){var a=yt()(t);this.setState({year:a.format("YYYY"),month:a.format("M"),day:a.format("D")})}}},{key:"render",value:function(){var e=this,t=window.mailpoet_month_names||[],a=(window.mailpoet_date_formats||{})[this.props.field.params.date_type][0];this.props.field.params.date_format&&(a=this.props.field.params.date_format);var n=a.split("/"),r=m()(n).call(n,(function(a){switch(a){case"YYYY":return h.a.createElement(wa,{onValueChange:e.onValueChange,key:"year",name:e.props.field.name,year:e.state.year,placeholder:e.props.field.year_placeholder});case"MM":return h.a.createElement(Ea,{onValueChange:e.onValueChange,key:"month",name:e.props.field.name,month:e.state.month,monthNames:t,placeholder:e.props.field.month_placeholder});case"DD":return h.a.createElement(ka,{onValueChange:e.onValueChange,key:"day",name:e.props.field.name,day:e.state.day,placeholder:e.props.field.day_placeholder});default:return h.a.createElement("div",null,"Invalid date type")}}));return h.a.createElement("div",null,r)}}]),t}(h.a.Component);Ia.propTypes={item:q.a.object.isRequired,field:q.a.shape({name:q.a.string,day_placeholder:q.a.string,month_placeholder:q.a.string,year_placeholder:q.a.string,params:q.a.object}).isRequired,onValueChange:q.a.func.isRequired};var Sa=Ia,Na=function(e){function t(){var e,a,n;k()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=C()(this,(e=T()(t)).call.apply(e,s()(a=[this]).call(a,i))),ne()(A()(n),"renderField",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!1;e.field.description&&(a=h.a.createElement("p",{className:"description"},e.field.description));var n=!1,r=e.field;switch(void 0!==e.field.field&&(r=ie.a.merge(r,e.field.field)),r.type){case"text":n=h.a.createElement(we,e);break;case"textarea":n=h.a.createElement(ua,e);break;case"select":n=h.a.createElement(ha,e);break;case"radio":n=h.a.createElement(ga,e);break;case"checkbox":n=h.a.createElement(_a,e);break;case"selection":n=h.a.createElement(ce,e);break;case"date":n=h.a.createElement(Sa,e);break;case"reactComponent":n=h.a.createElement(e.field.component,e);break;default:n="invalid"}return!0===t?h.a.createElement("span",{key:"field-".concat(e.index||0)},n,a):h.a.createElement("div",{key:"field-".concat(e.index||0)},n,a)})),n}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t=this,a=!1;void 0!==this.props.field.fields?a=m()(e=this.props.field.fields).call(e,(function(e,a){return t.renderField({index:a,field:e,item:t.props.item,onValueChange:t.props.onValueChange||!1})})):a=this.renderField(this.props);var n=!1;return this.props.field.tip&&(n=h.a.createElement("p",{className:"description"},this.props.field.tip)),h.a.createElement("tr",{className:"form-field-row-".concat(this.props.field.name)},h.a.createElement("th",{scope:"row"},h.a.createElement("label",{htmlFor:"field_".concat(this.props.field.name)},this.props.field.label,n)),h.a.createElement("td",null,a))}}]),t}(h.a.Component);Na.propTypes={onValueChange:q.a.func,field:q.a.shape({name:q.a.string.isRequired,values:q.a.object,tip:q.a.oneOfType([q.a.array,q.a.string]),label:q.a.string,fields:q.a.array,description:q.a.string}).isRequired,item:q.a.object.isRequired},Na.defaultProps={onValueChange:function(){}};var Ca=Na,xa=function(e){function t(e){var a;return k()(this,t),a=C()(this,T()(t).call(this,e)),ne()(A()(a),"getValues",(function(){return a.props.item||a.state.item})),ne()(A()(a),"getErrors",(function(){return a.props.errors||a.state.errors})),ne()(A()(a),"loadItem",(function(e){a.setState({loading:!0}),a.props.endpoint&&b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:a.props.endpoint,action:"get",data:{id:e}}).done((function(e){a.setState({loading:!1,item:e.data}),"function"==typeof a.props.onItemLoad&&a.props.onItemLoad(e.data)})).fail((function(){a.setState({loading:!1,item:{}},(function(){this.props.history.push("/new")}))}))})),ne()(A()(a),"handleSubmit",(function(e){var t;if(e.preventDefault(),void 0===a.props.isValid||!1!==a.props.isValid()){a.setState({loading:!0});var n={};ea()(t=a.props.fields).call(t,(function(e){var t;void 0!==e.fields?ea()(t=e.fields).call(t,(function(e){n[e.name]=a.state.item[e.name]})):n[e.name]=a.state.item[e.name]})),void 0!==a.props.params.id&&(n.id=a.props.params.id),a.props.endpoint&&b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:a.props.endpoint,action:"save",data:n}).always((function(){a.setState({loading:!1})})).done((function(){void 0!==a.props.onSuccess?a.props.onSuccess():a.props.history.push("/"),void 0!==a.props.params.id?a.props.messages.onUpdate():a.props.messages.onCreate()})).fail((function(e){e.errors.length>0&&a.setState({errors:e.errors})}))}})),ne()(A()(a),"handleValueChange",(function(e){var t=e.target,n=t.name,r=t.value;return a.props.onChange?a.props.onChange(e):(a.setState((function(e){var t=e.item;return t[n]=r,{item:t}})),!0)})),a.formRef=h.a.createRef(),a.state={loading:!1,errors:[],item:{}},a}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){var e=this;void 0!==this.props.params.id?this.loadItem(this.props.params.id):la()((function(){e.setState({item:ie()(".mailpoet_form").mailpoetSerializeObject()})}))}},{key:"componentDidUpdate",value:function(){var e=this;void 0===this.props.params.id&&this.state.loading&&(la()((function(){e.setState({loading:!1,item:{}})})),void 0===this.props.item&&this.formRef.current.reset())}},{key:"render",value:function(){var e,t,a,n=this;void 0!==this.getErrors()&&(t=m()(a=this.getErrors()).call(a,(function(e){return h.a.createElement("div",{className:"mailpoet_notice notice inline error is-dismissible",key:"error-".concat(e.message)},h.a.createElement("p",null,e.message))})));var r=Ye()("mailpoet_form",{mailpoet_form_loading:this.state.loading||this.props.loading}),i=!1,s=!1;void 0!==this.props.beforeFormContent&&(i=this.props.beforeFormContent(this.getValues())),void 0!==this.props.afterFormContent&&(s=this.props.afterFormContent(this.getValues()));var o=m()(e=this.props.fields).call(e,(function(e){var t=n.handleValueChange;return e.onBeforeChange&&(t=function(t){return e.onBeforeChange(t),n.handleValueChange(t)}),h.a.createElement(Ca,{field:e,item:n.getValues(),onValueChange:t,key:"field-".concat(e.name),automationId:e.automationId})})),l=!1;return l=this.props.children?this.props.children:h.a.createElement("input",{className:"button button-primary",type:"submit",value:b.a.I18n.t("save"),disabled:this.state.loading}),h.a.createElement("div",null,i,h.a.createElement("form",{id:this.props.id,ref:this.formRef,className:r,onSubmit:void 0!==this.props.onSubmit?this.props.onSubmit:this.handleSubmit,"data-automation-id":this.props.automationId},t,h.a.createElement("table",{className:"form-table"},h.a.createElement("tbody",null,o)),l),s)}}]),t}(h.a.Component);ne()(xa,"defaultProps",{params:{},errors:void 0,fields:void 0,item:void 0,onItemLoad:void 0,isValid:void 0,onSuccess:void 0,onChange:void 0,loading:!1,beforeFormContent:void 0,afterFormContent:void 0,children:void 0,id:"",onSubmit:void 0,automationId:"",messages:{onUpdate:function(){},onCreate:function(){}},endpoint:void 0}),xa.propTypes={params:q.a.shape({id:q.a.string}),item:q.a.object,errors:q.a.arrayOf(q.a.object),endpoint:q.a.string,fields:q.a.arrayOf(q.a.object),messages:q.a.shape({onUpdate:q.a.func,onCreate:q.a.func}),loading:q.a.bool,children:q.a.array,id:q.a.string,automationId:q.a.string,beforeFormContent:q.a.func,afterFormContent:q.a.func,onItemLoad:q.a.func,isValid:q.a.func,onChange:q.a.func,onSubmit:q.a.func,onSuccess:q.a.func,history:q.a.shape({push:q.a.func.isRequired}).isRequired};var Ta=Object(B.withRouter)(xa),Ra=[{name:"email",label:b.a.I18n.t("email"),type:"text",disabled:function(e){return Number(e.wp_user_id>0)||1===Number(e.is_woocommerce_user)}},{name:"first_name",label:b.a.I18n.t("firstname"),type:"text",disabled:function(e){return Number(e.wp_user_id>0)||1===Number(e.is_woocommerce_user)}},{name:"last_name",label:b.a.I18n.t("lastname"),type:"text",disabled:function(e){return Number(e.wp_user_id>0)||1===Number(e.is_woocommerce_user)}},{name:"status",label:b.a.I18n.t("status"),type:"select",automationId:"subscriber-status",values:{subscribed:b.a.I18n.t("subscribed"),unconfirmed:b.a.I18n.t("unconfirmed"),unsubscribed:b.a.I18n.t("unsubscribed"),inactive:b.a.I18n.t("inactive"),bounced:b.a.I18n.t("bounced")}},{name:"segments",label:b.a.I18n.t("lists"),type:"selection",placeholder:b.a.I18n.t("selectList"),tip:b.a.I18n.t("welcomeEmailTip"),api_version:window.mailpoet_api_version,endpoint:"segments",multiple:!0,selected:function(e){var t,a;return!1===We()(e.subscriptions)?null:m()(t=K()(a=e.subscriptions).call(a,(function(e){return"subscribed"===e.status}))).call(t,(function(e){return e.segment_id}))},filter:function(e){return!e.deleted_at&&"default"===e.type},getLabel:function(e){var t;return s()(t="".concat(e.name," (")).call(t,e.subscribers,")")},getSearchLabel:function(e,t){var a,n="";void 0!==t.subscriptions&&ea()(a=t.subscriptions).call(a,(function(t){if(e.id===t.segment_id&&(n=e.name,"unsubscribed"===t.status)){var a=b.a.Date.format(t.updated_at);n+=" (%$1s)".replace("%$1s",b.a.I18n.t("unsubscribedOn").replace("%$1s",a))}}));return n}}],Aa=window.mailpoet_custom_fields||[];ea()(Aa).call(Aa,(function(e){var t={name:"cf_".concat(e.id),label:e.name,type:e.type};switch(e.params&&(t.params=e.params),Y()(e.params)&&(t.values=Y()(e.params)),e.type){case"date":t.year_placeholder=b.a.I18n.t("year"),t.month_placeholder=b.a.I18n.t("month"),t.day_placeholder=b.a.I18n.t("day");break;case"select":t.placeholder="-";break;default:t.placeholder=""}Ra.push(t)}));var Pa={onUpdate:function(){b.a.Notice.success(b.a.I18n.t("subscriberUpdated"))},onCreate:function(){b.a.Notice.success(b.a.I18n.t("subscriberAdded")),b.a.trackEvent("Subscribers > Add new",{"MailPoet Free version":window.mailpoet_version})}};function Oa(e){if(Number(e.wp_user_id)>0)return h.a.createElement("p",{className:"description"},mt()(b.a.I18n.t("WPUserEditNotice"),/\[link\](.*?)\[\/link\]/g,(function(t,a){return h.a.createElement("a",{key:a,href:"user-edit.php?user_id=".concat(e.wp_user_id)},t)})))}function La(){return h.a.createElement("p",{className:"description"},h.a.createElement("strong",null,b.a.I18n.t("tip"))," ",b.a.I18n.t("customFieldsTip"))}var Da=function(e){function t(){return k()(this,t),C()(this,T()(t).apply(this,arguments))}return O()(t,e),S()(t,[{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("h1",{className:"title"},b.a.I18n.t("subscriber"),h.a.createElement(Ke.b,{className:"page-title-action",to:"/"},b.a.I18n.t("backToList"))),h.a.createElement(Ta,{automationId:"subscriber_edit_form",endpoint:"subscribers",fields:Ra,params:this.props.match.params,messages:Pa,beforeFormContent:Oa,afterFormContent:La}))}}]),t}(h.a.Component);Da.propTypes={match:q.a.shape({params:q.a.shape({id:q.a.string}).isRequired}).isRequired};var qa=Da;var Fa=function(){var e=h.a.useState([]),t=fe()(e,2),a=t[0],n=t[1],i=h.a.useState(1),o=fe()(i,2),c=o[0],u=o[1],p=function(e){n((function(t){var a;return s()(a=[]).call(a,l()(t),[r()({},e,{id:e.id||(u((function(e){return e+1})),c)})])}))};return{items:a,success:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(r()({},t,{type:"success",children:e}))},info:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(r()({},t,{type:"info",children:e}))},warning:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(r()({},t,{type:"warning",children:e}))},error:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(r()({},t,{type:"error",children:e}))},remove:function(e){n((function(t){return K()(t).call(t,(function(t){return t.id!==e}))}))}}};function Ma(e){return{features:function(e){var t=e.mailpoet_feature_flags;return{isSupported:function(e){return t[e]||!1}}}(e),segments:function(e){return{all:e.mailpoetSegments}}(e),users:function(e){return{isNewUser:e.mailpoet_is_new_user}}(e),notices:Fa()}}var ja=h.a.createContext({}),Va=a(492),Ba=a.n(Va),za=function(){var e,t=h.a.useContext(ja).notices;return m()(e=t.items).call(e,(function(e){var t=e.id,a=Ba()(e,["id"]);return h.a.createElement(Mt,Q()({key:t},a))}))},Ua=document.getElementById("subscribers_container");Ua&&oe.a.render(h.a.createElement((function(){return h.a.createElement(ja.Provider,{value:Ma(window)},h.a.createElement(Ke.a,null,h.a.createElement(za,null),h.a.createElement(B.Switch,null,h.a.createElement(B.Route,{path:"/new",component:qa}),h.a.createElement(B.Route,{path:"/edit/:id",component:qa}),h.a.createElement(B.Route,{path:"*",component:sa}))))}),null),Ua);var Wa=a(493),$a=a.n(Wa),Ha=a(29),Ka=a.n(Ha),Ga=function(e){function t(){return k()(this,t),C()(this,T()(t).apply(this,arguments))}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){b.a.Modal.loading(!0)}},{key:"componentWillUnmount",value:function(){b.a.Modal.loading(!1)}},{key:"render",value:function(){return null}}]),t}(h.a.Component),Ya=function(e){var t=e.tabs,a=e.selected,n=e.select;return h.a.createElement("div",{className:"wp-filter hide-if-no-js"},h.a.createElement("ul",{className:"filter-links"},m()(t).call(t,(function(e){var t=e.name,r=e.label;return h.a.createElement("li",{key:t},h.a.createElement("a",{href:"#",className:a===t?"current":"",onClick:function(e){e.preventDefault(),n(t)}}," ",r))}))))};Ya.propTypes={selected:q.a.string.isRequired,select:q.a.func.isRequired,tabs:q.a.arrayOf(q.a.shape({label:q.a.string.isRequired,name:q.a.string.isRequired}).isRequired).isRequired};var Ja=Ya,Qa=function(e){return b.a.Modal.popup({title:e.title,template:Qe.a.renderToString(h.a.createElement(h.a.Fragment,null,h.a.createElement("p",null,e.message),h.a.createElement("button",{id:"mailpoet_alert_cancel",className:"button button-secondary",type:"button"},e.cancelLabel),h.a.createElement("button",{id:"mailpoet_alert_confirm",className:"button button-primary",type:"submit"},e.confirmLabel))),onInit:function(){document.getElementById("mailpoet_alert_confirm").addEventListener("click",(function(){b.a.Modal.close(),e.onConfirm()})),document.getElementById("mailpoet_alert_cancel").addEventListener("click",(function(){return b.a.Modal.close()}))}}),null};function Za(e){Qe.a.renderToString(h.a.createElement(Qa,e))}Qa.propTypes={title:q.a.string,message:q.a.string.isRequired,cancelLabel:q.a.string,confirmLabel:q.a.string,onConfirm:q.a.func.isRequired},Qa.defaultProps={title:b.a.I18n.t("confirmTitle"),cancelLabel:b.a.I18n.t("cancelLabel"),confirmLabel:b.a.I18n.t("confirmLabel")};var Xa=function(e){function t(e){var a,n,r,i;return k()(this,t),(i=C()(this,T()(t).call(this,e))).onPreview=w()(a=i.onPreview).call(a,A()(i)),i.onDelete=w()(n=i.onDelete).call(n,A()(i)),i.onSelect=w()(r=i.onSelect).call(r,A()(i)),i}return O()(t,e),S()(t,[{key:"onDelete",value:function(){var e=this.props,t=e.id,a=e.name,n=e.beforeDelete,r=e.afterDelete;Za({message:b.a.I18n.t("confirmTemplateDeletion").replace("%$1s",a),onConfirm:function(){n(),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletterTemplates",action:"delete",data:{id:t}}).done((function(){r(!0,t)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0});r(!1)}))}})}},{key:"onPreview",value:function(){b.a.Modal.popup({title:this.props.name,template:'<img src="{{ thumbnail }}" />',data:this.props})}},{key:"onSelect",value:function(){var e=this.props,t=e.newsletterId,a=e.name,n=e.beforeSelect,r=e.afterSelect;n(),b.a.trackEvent("Emails > Template selected",{"MailPoet Free version":window.mailpoet_version,"Email name":a}),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"save",data:{id:t,template_id:this.props.id}}).done((function(e){r(!0,e.data.id)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0});r(!1)}))}},{key:"render",value:function(){var e=this,t=this.props,a=t.index,n=t.name,r=t.thumbnail,i=t.readonly,s=h.a.createElement("button",{className:"mailpoet_delete button button-secondary",onClick:this.onDelete,type:"button"},b.a.I18n.t("delete")),o="";return"string"==typeof r&&r.length>0&&(o=h.a.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.onPreview(t)}},h.a.createElement("img",{src:r,alt:b.a.I18n.t("templatePreview"),loading:"lazy"}),h.a.createElement("div",{className:"mailpoet_overlay"},h.a.createElement("p",{className:"mailpoet_more_details"},b.a.I18n.t("zoom"))))),h.a.createElement("li",{className:"mailpoet_template_boxes","data-automation-id":"select_template_box"},h.a.createElement("div",{className:"mailpoet_thumbnail"},o),h.a.createElement("div",{className:"mailpoet_template_content"},h.a.createElement("div",{className:"mailpoet_description"},h.a.createElement("h3",null,n)),h.a.createElement("div",{className:"mailpoet_actions"},"1"!==i&&s,h.a.createElement("a",{className:"button button-primary","data-automation-id":"select_template_".concat(a),onClick:this.onSelect,role:"button",tabIndex:0,onKeyDown:function(t){var a,n;u()(a=["keydown","keypress"]).call(a,t.type)&&u()(n=["Enter"," "]).call(n,t.key)&&(t.preventDefault(),e.onSelect())}}," ",b.a.I18n.t("select")," "))))}}]),t}(h.a.Component);Xa.propTypes={index:q.a.number.isRequired,id:q.a.string.isRequired,newsletterId:q.a.string.isRequired,name:q.a.string.isRequired,thumbnail:q.a.string.isRequired,readonly:q.a.string.isRequired,beforeDelete:q.a.func.isRequired,afterDelete:q.a.func.isRequired,beforeSelect:q.a.func.isRequired,afterSelect:q.a.func.isRequired};var en=Xa,tn=function(e){function t(e){var a,n;return k()(this,t),(n=C()(this,T()(t).call(this,e))).fileRef=h.a.createRef(),n.handleSubmit=w()(a=n.handleSubmit).call(a,A()(n)),n}return O()(t,e),S()(t,[{key:"saveTemplate",value:function(e){var t,a,n,r,i=e,s=this.props,o=s.beforeImport,l=s.afterImport;g.a.isUndefined(i.body)||(i.body=$()(i.body));try{i.categories=JSON.parse(i.categories)}catch(e){i.categories=[]}-1===Ka()(t=i.categories).call(t,"saved")&&i.categories.push("saved"),-1===Ka()(a=i.categories).call(a,"standard")&&-1===Ka()(n=i.categories).call(n,"welcome")&&-1===Ka()(r=i.categories).call(r,"notification")&&i.categories.push("standard"),i.categories=$()(i.categories),o(),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletterTemplates",action:"save",data:i}).done((function(e){l(!0,e.data)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0});l(!1)}))}},{key:"handleSubmit",value:function(e){var t=this;if(e.preventDefault(),g.a.size(this.fileRef.current.files)<=0)return!1;var a=g.a.first(this.fileRef.current.files),n=new FileReader;return n.onload=function(e){try{t.saveTemplate(JSON.parse(e.target.result)),b.a.trackEvent("Emails > Template imported",{"MailPoet Free version":window.mailpoet_version})}catch(e){b.a.Notice.error(b.a.I18n.t("templateFileMalformedError"))}},n.readAsText(a),!0}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("h2",null,b.a.I18n.t("importTemplateTitle"),h.a.createElement(Et.a,{tooltip:b.a.I18n.t("helpTooltipTemplateUpload"),place:"right",className:"tooltip-help-import-template"})),h.a.createElement("form",{onSubmit:this.handleSubmit},h.a.createElement("input",{type:"file",placeholder:b.a.I18n.t("selectJsonFileToUpload"),ref:this.fileRef}),h.a.createElement("p",{className:"submit"},h.a.createElement("input",{className:"button button-primary",type:"submit",value:b.a.I18n.t("upload")}))))}}]),t}(h.a.Component);tn.propTypes={beforeImport:q.a.func.isRequired,afterImport:q.a.func.isRequired};var an=tn,nn=[{name:"standard",label:b.a.I18n.t("tabStandardTitle")},{name:"welcome",label:b.a.I18n.t("tabWelcomeTitle")},{name:"notification",label:b.a.I18n.t("tabNotificationTitle")},{name:"blank",label:b.a.I18n.t("tabBlankTitle")}];window.mailpoet_woocommerce_active&&nn.push({name:"woocommerce",label:b.a.I18n.t("tabWoocommerceTitle")}),nn.push.apply(nn,[{name:"recent",label:b.a.I18n.t("recentlySent")},{name:"saved",label:b.a.I18n.t("savedTemplates")}]);var rn=function(e){function t(e){var a,n,r,i,s;return k()(this,t),(s=C()(this,T()(t).call(this,e))).state={loading:!0,templates:{},emailType:null,selectedTab:""},s.templates={},s.addTemplate=w()(a=s.addTemplate).call(a,A()(s)),s.afterTemplateDelete=w()(n=s.afterTemplateDelete).call(n,A()(s)),s.afterTemplateSelect=w()(r=s.afterTemplateSelect).call(r,A()(s)),s.afterTemplateImport=w()(i=s.afterTemplateImport).call(i,A()(s)),s}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){var e=this;b.a.Ajax.get({api_version:window.mailpoet_api_version,endpoint:"newsletterTemplates",action:"getAll"}).done((function(t){var a;0===t.data.length&&(t.data=[{name:b.a.I18n.t("mailpoetGuideTemplateTitle"),categories:'["welcome", "notification", "standard", "woocommerce"]',readonly:"1"}]),ea()(a=t.data).call(a,e.addTemplate),e.sortTemplates()})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})})).always((function(){e.selectInitialTab()}))}},{key:"addTemplate",value:function(e){var t,a=this,n=m()(nn).call(nn,(function(e){return e.name}));-1===Ka()(n).call(n,"woocommerce")&&n.push("woocommerce");try{var r;t=K()(r=JSON.parse(e.categories)).call(r,(function(e){return-1!==Ka()(n).call(n,e)}))}catch(e){t=[]}0===t.length&&t.push("saved"),ea()(t).call(t,(function(t){void 0===a.templates[t]&&(a.templates[t]=[]),a.templates[t].unshift(e)}))}},{key:"sortTemplates",value:function(){var e,t=this;ea()(e=ma()(this.templates)).call(e,(function(e){var a;$a()(a=t.templates[e]).call(a,(function(e,t){return de()(e.id,10)<de()(t.id,10)?1:-1}))}))}},{key:"selectInitialTab",value:function(){var e,t=this,a="standard";b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"get",data:{id:this.props.match.params.id}}).done((function(t){e=t.data.type,g.a.findWhere(nn,{name:t.data.type})?a=t.data.type:"automatic"===t.data.type&&g.a.findWhere(nn,{name:t.data.options.group})&&(a=t.data.options.group)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})})).always((function(){t.setState({templates:t.templates,emailType:e,selectedTab:a,loading:!1})}))}},{key:"afterTemplateDelete",value:function(e,t){var a,n=this;e&&ea()(a=ma()(this.templates)).call(a,(function(e){var a;n.templates[e]=K()(a=n.templates[e]).call(a,(function(e){return e.id!==t}))}));this.setState({templates:this.templates,loading:!1})}},{key:"afterTemplateSelect",value:function(e,t){e?window.location=function(e){return"admin.php?page=mailpoet-newsletter-editor&id=".concat(e)}(t):this.setState({loading:!1})}},{key:"afterTemplateImport",value:function(e,t){e&&this.addTemplate(t),this.setState({templates:this.templates,selectedTab:e?"saved":"import",loading:!1})}},{key:"render",value:function(){var e=this;if(this.state.loading)return h.a.createElement(Ga,null);var t=s()(nn).call(nn,{name:"import",label:b.a.I18n.t("tabImportTitle")}),a=null;if("import"===this.state.selectedTab)a=h.a.createElement(an,{beforeImport:function(){return e.setState({loading:!0})},afterImport:this.afterTemplateImport});else{var n=this.state.templates[this.state.selectedTab]||[];n=0===n.length?this.state.loading?null:h.a.createElement("p",null,b.a.I18n.t("noTemplates")):m()(n).call(n,(function(t,a){return h.a.createElement(en,Q()({key:t.id,index:a,newsletterId:e.props.match.params.id,beforeDelete:function(){return e.setState({loading:!0})},afterDelete:e.afterTemplateDelete,beforeSelect:function(){return e.setState({loading:!0})},afterSelect:e.afterTemplateSelect},t))})),a=h.a.createElement("ul",{className:"mailpoet_boxes clearfix"},n)}var r=_.a.applyFilters("mailpoet_newsletters_template_breadcrumb",h.a.createElement(L.a,{step:"template"}),this.state.emailType,"template");return h.a.createElement("div",null,h.a.createElement("h1",null,b.a.I18n.t("selectTemplateTitle")),r,h.a.createElement(Ja,{tabs:t,selected:this.state.selectedTab,select:function(t){return e.setState({selectedTab:t})}}),a)}}]),t}(h.a.Component);rn.propTypes={match:q.a.shape({params:q.a.shape({id:q.a.string}).isRequired}).isRequired};var sn=rn,on=a(52),ln=a.n(on),cn={closeText:b.a.I18n.t("close"),currentText:b.a.I18n.t("today"),nextText:b.a.I18n.t("next"),prevText:b.a.I18n.t("previous"),monthNames:[b.a.I18n.t("january"),b.a.I18n.t("february"),b.a.I18n.t("march"),b.a.I18n.t("april"),b.a.I18n.t("may"),b.a.I18n.t("june"),b.a.I18n.t("july"),b.a.I18n.t("august"),b.a.I18n.t("september"),b.a.I18n.t("october"),b.a.I18n.t("november"),b.a.I18n.t("december")],monthNamesShort:[b.a.I18n.t("januaryShort"),b.a.I18n.t("februaryShort"),b.a.I18n.t("marchShort"),b.a.I18n.t("aprilShort"),b.a.I18n.t("mayShort"),b.a.I18n.t("juneShort"),b.a.I18n.t("julyShort"),b.a.I18n.t("augustShort"),b.a.I18n.t("septemberShort"),b.a.I18n.t("octoberShort"),b.a.I18n.t("novemberShort"),b.a.I18n.t("decemberShort")],dayNames:[b.a.I18n.t("sunday"),b.a.I18n.t("monday"),b.a.I18n.t("tuesday"),b.a.I18n.t("wednesday"),b.a.I18n.t("thursday"),b.a.I18n.t("friday"),b.a.I18n.t("saturday")],dayNamesShort:[b.a.I18n.t("sundayShort"),b.a.I18n.t("mondayShort"),b.a.I18n.t("tuesdayShort"),b.a.I18n.t("wednesdayShort"),b.a.I18n.t("thursdayShort"),b.a.I18n.t("fridayShort"),b.a.I18n.t("saturdayShort")],dayNamesMin:[b.a.I18n.t("sundayMin"),b.a.I18n.t("mondayMin"),b.a.I18n.t("tuesdayMin"),b.a.I18n.t("wednesdayMin"),b.a.I18n.t("thursdayMin"),b.a.I18n.t("fridayMin"),b.a.I18n.t("saturdayMin")]},un=function(e){function t(e){var a;return k()(this,t),a=C()(this,T()(t).call(this,e)),ne()(A()(a),"onChange",(function(e){var t=e,n=t.target.value,r=a.getStorageDate(n);t.target.value=r,a.props.onChange(t)})),ne()(A()(a),"getFieldName",(function(){return a.props.name||"date"})),ne()(A()(a),"getDisplayDate",(function(e){var t={parseFormat:a.props.storageFormat,format:a.props.displayFormat};return b.a.Date.format(e,t)})),ne()(A()(a),"getStorageDate",(function(e){var t={parseFormat:a.props.displayFormat,format:a.props.storageFormat};return b.a.Date.format(e,t)})),a.dateInput=h.a.createRef(),a}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){var e=ie()(this.dateInput.current),t=this;e.datepicker&&(ie.a.datepicker.parseDate=function(e,t){return b.a.Date.toDate(t,{parseFormat:this.props.displayFormat,format:e})},ie.a.datepicker.formatDate=function(e,t){return b.a.Date.format(t,{format:e})},e.datepicker(g.a.extend({dateFormat:this.props.displayFormat,firstDay:window.mailpoet_start_of_week,isRTL:!1,onSelect:function(e){t.onChange({target:{name:t.getFieldName(),value:e}})}},cn)),this.datepickerInitialized=!0)}},{key:"componentWillUnmount",value:function(){this.datepickerInitialized&&ie()(this.dateInput.current).datepicker("destroy")}},{key:"render",value:function(){return h.a.createElement("input",Q()({type:"text",size:"30",name:this.getFieldName(),value:this.getDisplayDate(this.props.value),readOnly:!0,disabled:this.props.disabled,onChange:this.onChange,ref:this.dateInput},this.props.validation))}}]),t}(h.a.Component);un.propTypes={displayFormat:q.a.string.isRequired,onChange:q.a.func.isRequired,name:q.a.string,storageFormat:q.a.string.isRequired,value:q.a.string.isRequired,disabled:q.a.bool.isRequired,validation:q.a.object.isRequired},un.defaultProps={name:"date"};var pn=un,mn=function(e){function t(){return k()(this,t),C()(this,T()(t).apply(this,arguments))}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t=this,a=m()(e=ma()(this.props.timeOfDayItems)).call(e,(function(e){return h.a.createElement("option",{key:"option-".concat(t.props.timeOfDayItems[e]),value:e},t.props.timeOfDayItems[e])}));return h.a.createElement("select",Q()({name:this.props.name||"time",value:this.props.value,disabled:this.props.disabled,onChange:this.props.onChange},this.props.validation),a)}}]),t}(h.a.Component);mn.propTypes={timeOfDayItems:q.a.objectOf(q.a.string).isRequired,name:q.a.string,value:q.a.string.isRequired,disabled:q.a.bool,onChange:q.a.func.isRequired,validation:q.a.object},mn.defaultProps={name:"time",disabled:!1,validation:{}};var dn=mn,hn=function(e){function t(e){var a;return k()(this,t),a=C()(this,T()(t).call(this,e)),ne()(A()(a),"DATE_TIME_SEPARATOR"," "),ne()(A()(a),"getDateTime",(function(){return[a.state.date,a.state.time].join(a.DATE_TIME_SEPARATOR)})),ne()(A()(a),"buildStateFromProps",(function(e){var t=(e.value||a.props.defaultDateTime).split(a.DATE_TIME_SEPARATOR),n=fe()(t,2);return{date:n[0],time:n[1]}})),ne()(A()(a),"handleChange",(function(e){var t={};t[e.target.name]=e.target.value,a.setState(t,a.propagateChange)})),ne()(A()(a),"propagateChange",(function(){a.props.onChange&&a.props.onChange({target:{name:a.props.name||"",value:a.getDateTime()}})})),a.state=a.buildStateFromProps(e),a}return O()(t,e),S()(t,[{key:"componentDidUpdate",value:function(e){var t=this;this.props.value===e.value&&this.props.defaultDateTime===e.defaultDateTime||la()((function(){t.setState(t.buildStateFromProps(t.props))}))}},{key:"render",value:function(){return h.a.createElement("span",null,h.a.createElement(pn,{name:"date",value:this.state.date,onChange:this.handleChange,displayFormat:this.props.dateDisplayFormat,storageFormat:this.props.dateStorageFormat,disabled:this.props.disabled,validation:this.props.dateValidation}),h.a.createElement(dn,{name:"time",value:this.state.time,onChange:this.handleChange,disabled:this.props.disabled,validation:this.props.timeValidation,timeOfDayItems:this.props.timeOfDayItems}))}}]),t}(h.a.Component);hn.propTypes={value:q.a.string,defaultDateTime:q.a.string.isRequired,dateDisplayFormat:q.a.string.isRequired,dateStorageFormat:q.a.string.isRequired,onChange:q.a.func,name:q.a.string,disabled:q.a.bool,dateValidation:q.a.object.isRequired,timeValidation:q.a.any,timeOfDayItems:q.a.objectOf(q.a.string).isRequired},hn.defaultProps={onChange:void 0,name:"",disabled:!1,timeValidation:void 0,value:void 0};var fn=hn,gn=window.location.hostname.replace("www.",""),vn="contact@".concat(gn),_n=function(e){var t,a=e.emailAddress;if(e.mssActive)return null;var n=a.split("@").pop().toLowerCase();return Ka()(t=window.mailpoet_free_domains).call(t,n)>-1?h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"sender_email_address_warning","data-acceptance-id":"freemail-sender-warning-old-installation"},b.a.I18n.t("senderEmailAddressWarning1")),h.a.createElement("p",{className:"sender_email_address_warning"},mt()(b.a.I18n.t("senderEmailAddressWarning2"),/(%1\$s|%2\$s|<em>.*<\/em>)/,(function(e){return"%1$s"===e?vn:"%2$s"===e?h.a.createElement("em",{key:"sender-email"},a):h.a.createElement("em",{key:"reply-to"},e.replace(/<\/?em>/g,""))}))),h.a.createElement("p",{className:"sender_email_address_warning"},h.a.createElement("a",{href:"https://kb.mailpoet.com/article/259-your-from-address-cannot-be-yahoo-com-gmail-com-outlook-com","data-beacon-article":"5be5911104286304a71c176e",target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("senderEmailAddressWarning3")))):null};_n.propTypes={emailAddress:q.a.string.isRequired,mssActive:q.a.bool.isRequired};var bn=_n,yn=function(e){function t(e){var a,n;return k()(this,t),(n=C()(this,T()(t).call(this,e))).state={emailAddress:e.item.sender_address},n.onChange=w()(a=n.onChange).call(a,A()(n)),n}return O()(t,e),S()(t,[{key:"onChange",value:function(e){this.setState({emailAddress:e.target.value}),this.props.onValueChange(e)}},{key:"render",value:function(){return h.a.createElement(h.a.Fragment,null,h.a.createElement(we,Q()({},this.props,{onValueChange:this.onChange})),h.a.createElement("div",{className:"regular-text"},h.a.createElement(bn,{emailAddress:this.state.emailAddress,mssActive:window.mailpoet_mss_active})))}}]),t}(h.a.Component);yn.propTypes={item:q.a.shape({sender_address:q.a.string.isRequired}).isRequired,onValueChange:q.a.func},yn.defaultProps={onValueChange:function(){}};var wn=yn,En=window.mailpoet_current_time||"00:00",kn="".concat(window.mailpoet_current_date," 00:00:00"),In=window.mailpoet_schedule_time_of_day,Sn=window.mailpoet_date_display_format,Nn=window.mailpoet_date_storage_format,Cn=function(e){function t(){var e,a,n;k()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=C()(this,(e=T()(t)).call.apply(e,s()(a=[this]).call(a,i))),ne()(A()(n),"getCurrentValue",(function(){var e={isScheduled:"0",scheduledAt:kn};return g.a.defaults(n.props.item[n.props.field.name]||{},e)})),ne()(A()(n),"getDateValidation",(function(){return{"data-parsley-required":!0,"data-parsley-required-message":b.a.I18n.t("noScheduledDateError"),"data-parsley-errors-container":"#mailpoet_scheduling"}})),ne()(A()(n),"isScheduled",(function(){return"1"===n.getCurrentValue().isScheduled})),ne()(A()(n),"handleCheckboxChange",(function(e){var t=e;return t.target.value=e.target.checked?"1":"0",n.handleValueChange(t)})),ne()(A()(n),"handleValueChange",(function(e){var t=n.getCurrentValue(),a={};return a[e.target.name]=e.target.value,n.props.onValueChange({target:{name:n.props.field.name,value:g.a.extend({},t,a)}})})),n}return O()(t,e),S()(t,[{key:"render",value:function(){var e;return this.isScheduled()&&(e=h.a.createElement("span",{id:"mailpoet_scheduling"},h.a.createElement(fn,{name:"scheduledAt",value:this.getCurrentValue().scheduledAt,onChange:this.handleValueChange,disabled:this.props.field.disabled,dateValidation:this.getDateValidation(),defaultDateTime:kn,timeOfDayItems:In,dateDisplayFormat:Sn,dateStorageFormat:Nn})," ",h.a.createElement("span",null,b.a.I18n.t("websiteTimeIs")," ",h.a.createElement("code",null,En)))),h.a.createElement("div",null,h.a.createElement("input",{type:"checkbox",value:"1",checked:this.isScheduled(),disabled:this.props.field.disabled,name:"isScheduled",onChange:this.handleCheckboxChange}),e)}}]),t}(h.a.Component);Cn.propTypes={item:q.a.object,field:q.a.shape({name:q.a.string.isRequired,disabled:q.a.bool}).isRequired,onValueChange:q.a.func.isRequired},Cn.defaultProps={item:{}};var xn=[{name:"subject",label:b.a.I18n.t("subjectLine"),tip:b.a.I18n.t("subjectLineTip"),type:"text",validation:{"data-parsley-required":!0,"data-parsley-required-message":b.a.I18n.t("emptySubjectLineError")}},{name:"segments",label:b.a.I18n.t("segments"),tip:b.a.I18n.t("segmentsTip"),type:"selection",placeholder:b.a.I18n.t("selectSegmentPlaceholder"),id:"mailpoet_segments",api_version:window.mailpoet_api_version,endpoint:"segments",multiple:!0,filter:function(e){return!e.deleted_at},getLabel:function(e){var t;return s()(t="".concat(e.name," (")).call(t,de()(e.subscribers,10).toLocaleString(),")")},transformChangedValue:function(e){var t=this.getItems();return m()(g.a).call(g.a,e,(function(e){return X()(g.a).call(g.a,t,(function(t){return t.id===e}))}))},validation:{"data-parsley-required":!0,"data-parsley-required-message":b.a.I18n.t("noSegmentsSelectedError")}},{name:"sender",label:b.a.I18n.t("sender"),tip:b.a.I18n.t("senderTip"),fields:[{name:"sender_name",type:"text",placeholder:b.a.I18n.t("senderNamePlaceholder"),validation:{"data-parsley-required":!0}},{name:"sender_address",type:"reactComponent",component:wn,placeholder:b.a.I18n.t("senderAddressPlaceholder"),validation:{"data-parsley-required":!0,"data-parsley-type":"email"}}]},{name:"reply-to",label:b.a.I18n.t("replyTo"),tip:b.a.I18n.t("replyToTip"),inline:!0,fields:[{name:"reply_to_name",type:"text",placeholder:b.a.I18n.t("replyToNamePlaceholder")},{name:"reply_to_address",type:"text",placeholder:b.a.I18n.t("replyToAddressPlaceholder"),validation:{"data-parsley-type":"email"}}]},Jt,{name:"options",label:b.a.I18n.t("scheduleIt"),type:"reactComponent",component:Cn}];xn=_.a.applyFilters("mailpoet_newsletters_3rd_step_fields",xn);var Tn={getFields:function(){return xn},getSendButtonOptions:function(e){var t=e||{},a={value:"object"===ln()(t.options)&&"1"===t.options.isScheduled?b.a.I18n.t("schedule"):b.a.I18n.t("send")};return"sent"!==t.status&&"sending"!==t.status||(a.disabled="disabled"),a}},Rn={name:"intervalType",values:Ie},An={name:"timeOfDay",values:Se},Pn={name:"weekDay",values:Ne},On={name:"monthDay",values:Ce},Ln={name:"nthWeekDay",values:xe},Dn=function(e){function t(){var e,a,n;k()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=C()(this,(e=T()(t)).call.apply(e,s()(a=[this]).call(a,i))),ne()(A()(n),"getCurrentValue",(function(){return n.props.item[n.props.field.name]||{}})),ne()(A()(n),"handleValueChanges",(function(e){var t=n.getCurrentValue();return n.props.onValueChange({target:{name:n.props.field.name,value:g.a.extend({},t,e)}})})),ne()(A()(n),"handleIntervalChange",(function(e){var t=e.target.value,a={};a.intervalType=t,"monthly"===t&&(a.monthDay="1"),n.handleValueChanges(a)})),ne()(A()(n),"handleTimeOfDayChange",(function(e){return n.handleValueChanges({timeOfDay:e.target.value})})),ne()(A()(n),"handleWeekDayChange",(function(e){return n.handleValueChanges({weekDay:e.target.value})})),ne()(A()(n),"handleMonthDayChange",(function(e){return n.handleValueChanges({monthDay:e.target.value})})),ne()(A()(n),"handleNthWeekDayChange",(function(e){return n.handleValueChanges({nthWeekDay:e.target.value})})),n}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t,a,n,r=this.getCurrentValue();return"immediately"!==r.intervalType&&(e=h.a.createElement(ha,{field:An,item:this.getCurrentValue(),onValueChange:this.handleTimeOfDayChange})),"weekly"!==r.intervalType&&"nthWeekDay"!==r.intervalType||(t=h.a.createElement(ha,{field:Pn,item:this.getCurrentValue(),onValueChange:this.handleWeekDayChange})),"monthly"===r.intervalType&&(a=h.a.createElement(ha,{field:On,item:this.getCurrentValue(),onValueChange:this.handleMonthDayChange})),"nthWeekDay"===r.intervalType&&(n=h.a.createElement(ha,{field:Ln,item:this.getCurrentValue(),onValueChange:this.handleNthWeekDayChange})),h.a.createElement("div",null,h.a.createElement(ha,{field:Rn,item:this.getCurrentValue(),onValueChange:this.handleIntervalChange,automationId:"newsletter_interval_type"}),n,a,t,e)}}]),t}(h.a.Component);Dn.propTypes={item:q.a.object.isRequired,field:q.a.shape({name:q.a.string}).isRequired,onValueChange:q.a.func.isRequired};var qn=Dn,Fn=[{name:"subject",label:b.a.I18n.t("subjectLine"),tip:b.a.I18n.t("postNotificationSubjectLineTip"),type:"text",validation:{"data-parsley-required":!0,"data-parsley-required-message":b.a.I18n.t("emptySubjectLineError")}},{name:"options",label:b.a.I18n.t("selectFrequency"),type:"reactComponent",component:qn},{name:"segments",label:b.a.I18n.t("segments"),tip:b.a.I18n.t("segmentsTip"),type:"selection",placeholder:b.a.I18n.t("selectSegmentPlaceholder"),id:"mailpoet_segments",api_version:window.mailpoet_api_version,endpoint:"segments",multiple:!0,filter:function(e){return!e.deleted_at},getLabel:function(e){var t;return s()(t="".concat(e.name," (")).call(t,de()(e.subscribers,10).toLocaleString(),")")},transformChangedValue:function(e){var t=this.getItems();return m()(g.a).call(g.a,e,(function(e){return X()(g.a).call(g.a,t,(function(t){return t.id===e}))}))},validation:{"data-parsley-required":!0,"data-parsley-required-message":b.a.I18n.t("noSegmentsSelectedError")}},{name:"sender",label:b.a.I18n.t("sender"),tip:b.a.I18n.t("senderTip"),fields:[{name:"sender_name",type:"text",placeholder:b.a.I18n.t("senderNamePlaceholder"),validation:{"data-parsley-required":!0}},{name:"sender_address",type:"reactComponent",component:wn,placeholder:b.a.I18n.t("senderAddressPlaceholder"),validation:{"data-parsley-required":!0,"data-parsley-type":"email"}}]},{name:"reply-to",label:b.a.I18n.t("replyTo"),tip:b.a.I18n.t("replyToTip"),inline:!0,fields:[{name:"reply_to_name",type:"text",placeholder:b.a.I18n.t("replyToNamePlaceholder")},{name:"reply_to_address",type:"text",placeholder:b.a.I18n.t("replyToAddressPlaceholder"),validation:{"data-parsley-type":"email"}}]},Jt];Fn=_.a.applyFilters("mailpoet_newsletters_3rd_step_fields",Fn);var Mn={getFields:function(){return Fn},getSendButtonOptions:function(){return{value:b.a.I18n.t("activate")}}},jn=window.mailpoet_roles||{},Vn=K()(g.a).call(g.a,window.mailpoet_segments||[],(function(e){return"default"===e.type})),Bn={name:"event",values:{segment:b.a.I18n.t("onSubscriptionToList"),user:b.a.I18n.t("onWPUserRegistration")}},zn={name:"segment",values:g.a.object(m()(g.a).call(g.a,Vn,(function(e){var t,a=s()(t="".concat(e.name," (")).call(t,de()(e.subscribers,10).toLocaleString(),")");return[e.id,a]}))),sortBy:function(e,t){return t.toLowerCase()}},Un={name:"role",values:jn},Wn={name:"afterTimeNumber",size:3},$n={name:"afterTimeType",values:ke},Hn=function(e){function t(){var e,a,n;k()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=C()(this,(e=T()(t)).call.apply(e,s()(a=[this]).call(a,i))),ne()(A()(n),"getCurrentValue",(function(){return n.props.item[n.props.field.name]||{}})),ne()(A()(n),"handleValueChange",(function(e,t){var a=n.getCurrentValue(),r={};return r[e]=t,n.props.onValueChange({target:{name:n.props.field.name,value:g.a.extend({},a,r)}})})),ne()(A()(n),"handleEventChange",(function(e){return n.handleValueChange("event",e.target.value)})),ne()(A()(n),"handleSegmentChange",(function(e){return n.handleValueChange("segment",e.target.value)})),ne()(A()(n),"handleRoleChange",(function(e){return n.handleValueChange("role",e.target.value)})),ne()(A()(n),"handleAfterTimeNumberChange",(function(e){return n.handleValueChange("afterTimeNumber",e.target.value)})),ne()(A()(n),"handleAfterTimeTypeChange",(function(e){return n.handleValueChange("afterTimeType",e.target.value)})),ne()(A()(n),"handleNext",(function(){b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"create",data:{type:"welcome",options:n.state}}).done((function(e){n.showTemplateSelection(e.data.id)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))})),ne()(A()(n),"showTemplateSelection",(function(e){n.props.history.push("/template/".concat(e))})),n}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t,a=this.getCurrentValue();return e="user"===a.event?h.a.createElement(ha,{field:Un,item:this.getCurrentValue(),onValueChange:this.handleRoleChange}):h.a.createElement(ha,{field:zn,item:this.getCurrentValue(),onValueChange:this.handleSegmentChange}),"immediate"!==a.afterTimeType&&(t=h.a.createElement(we,{field:Wn,item:this.getCurrentValue(),onValueChange:this.handleAfterTimeNumberChange})),h.a.createElement("div",null,h.a.createElement(ha,{field:Bn,item:this.getCurrentValue(),onValueChange:this.handleEventChange}),e,t,h.a.createElement(ha,{field:$n,item:this.getCurrentValue(),onValueChange:this.handleAfterTimeTypeChange}))}}]),t}(h.a.Component);Hn.propTypes={history:q.a.shape({push:q.a.func.isRequired}).isRequired,item:q.a.object.isRequired,field:q.a.shape({name:q.a.string}).isRequired,onValueChange:q.a.func.isRequired};var Kn=Object(B.withRouter)(Hn),Gn=[{name:"subject",label:b.a.I18n.t("subjectLine"),tip:b.a.I18n.t("subjectLineTip"),type:"text",validation:{"data-parsley-required":!0,"data-parsley-required-message":b.a.I18n.t("emptySubjectLineError")}},{name:"options",label:b.a.I18n.t("sendWelcomeEmailWhen"),type:"reactComponent",component:Kn},{name:"sender",label:b.a.I18n.t("sender"),tip:b.a.I18n.t("senderTip"),fields:[{name:"sender_name",type:"text",placeholder:b.a.I18n.t("senderNamePlaceholder"),validation:{"data-parsley-required":!0}},{name:"sender_address",type:"reactComponent",component:wn,placeholder:b.a.I18n.t("senderAddressPlaceholder"),validation:{"data-parsley-required":!0,"data-parsley-type":"email"}}]},{name:"reply-to",label:b.a.I18n.t("replyTo"),tip:b.a.I18n.t("replyToTip"),inline:!0,fields:[{name:"reply_to_name",type:"text",placeholder:b.a.I18n.t("replyToNamePlaceholder")},{name:"reply_to_address",type:"text",placeholder:b.a.I18n.t("replyToAddressPlaceholder"),validation:{"data-parsley-type":"email"}}]},Jt];Gn=_.a.applyFilters("mailpoet_newsletters_3rd_step_fields",Gn);var Yn={getFields:function(){return Gn},getSendButtonOptions:function(){return{value:b.a.I18n.t("activate")}}},Jn=a(291),Qn=a(495),Zn=a.n(Qn),Xn=function(e,t){var a,n=Zn()(t,{lower:!0}).replace(/[^a-z0-9]+/g,"-").replace(/-$/,"");return s()(a="".concat(n||"newsletter","_")).call(a,e)},er=function(e){function t(e){var a;return k()(this,t),a=C()(this,T()(t).call(this,e)),ne()(A()(a),"getFieldsByNewsletter",(function(e){return a.getSubtype(e).getFields(e)})),ne()(A()(a),"getSendButtonOptions",(function(){return a.getSubtype(a.state.item).getSendButtonOptions(a.state.item)})),ne()(A()(a),"getSubtype",(function(e){switch(e.type){case"notification":return Mn;case"welcome":return Yn;default:return _.a.applyFilters("mailpoet_newsletters_send_newsletter_fields",Tn,e)}})),ne()(A()(a),"getThumbnailPromise",(function(e){return a.state.thumbnailPromise?a.state.thumbnailPromise:Object(Jn.b)(e)})),ne()(A()(a),"isValid",(function(){return ie()("#mailpoet_newsletter").parsley().isValid()})),ne()(A()(a),"isValidFromAddress",Pt()(Rt.a.mark((function e(){var t,n;return Rt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("MailPoet"===window.mailpoet_mta_method){e.next=2;break}return e.abrupt("return",!0);case 2:return e.next=4,a.loadAuthorizedEmailAddresses();case 4:return t=e.sent,n=a.state.item.sender_address,e.abrupt("return",-1!==Ka()(t).call(t,n));case 7:case"end":return e.stop()}}),e)})))),ne()(A()(a),"showInvalidFromAddressError",(function(){var e=mt()(b.a.I18n.t("newsletterInvalidFromAddress"),"%$1s",(function(){return a.state.item.sender_address}));e=mt()(e,/\[link\](.*?)\[\/link\]/g,(function(e){return'<a href="https://account.mailpoet.com/authorization" target="_blank" rel="noopener noreferrer">'.concat(e,"</a>")})),ie()("#field_sender_address").parsley().addError("invalidFromAddress",{message:e.join(""),updateClass:!0})})),ne()(A()(a),"removeInvalidFromAddressError",(function(){ie()("#field_sender_address").parsley().removeError("invalidFromAddress",{updateClass:!0})})),ne()(A()(a),"loadItem",(function(e){return a.setState({loading:!0}),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"get",data:{id:e}}).done((function(e){var t="draft"===e.data.status?a.getThumbnailPromise(e.meta.preview_url):null,n=e.data;n.ga_campaign||(n.ga_campaign=Xn(n.id,n.subject)),a.setState({item:e.data,fields:a.getFieldsByNewsletter(e.data),thumbnailPromise:t})})).fail((function(){a.setState({item:{}},(function(){a.props.history.push("/new")}))}))})),ne()(A()(a),"saveTemplate",(function(e,t){a.getThumbnailPromise(e.meta.preview_url).then((function(n){b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletterTemplates",action:"save",data:{newsletter_id:e.data.id,name:e.data.subject,thumbnail:n,body:$()(e.data.body),categories:'["recent"]'}}).fail((function(e){a.showError(e),a.setState({loading:!1}),b.a.Modal.loading(!1)})),t()})).catch((function(e){a.showError({errors:[e]})}))})),ne()(A()(a),"loadAuthorizedEmailAddresses",Pt()(Rt.a.mark((function e(){var t;return Rt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("MailPoet"===window.mailpoet_mta_method){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"mailer",action:"getAuthorizedEmailAddresses"});case 4:return t=e.sent,e.abrupt("return",t.data||[]);case 6:case"end":return e.stop()}}),e)})))),ne()(A()(a),"handleSend",(function(e){return e.preventDefault(),a.removeInvalidFromAddressError(),a.isValid()?(b.a.Modal.loading(!0),a.isValidFromAddress().then((function(t){return t?a.saveNewsletter(e).done((function(){a.setState({loading:!0})})).done((function(e){switch(e.data.type){case"notification":case"welcome":return a.activateNewsletter(e);default:return a.sendNewsletter(e)}})).fail((function(e){a.showError(e),a.setState({loading:!1}),b.a.Modal.loading(!1)})):(a.showInvalidFromAddressError(),b.a.Modal.loading(!1))}))):ie()("#mailpoet_newsletter").parsley().validate()})),ne()(A()(a),"sendNewsletter",(function(e){return b.a.Ajax.post(_.a.applyFilters("mailpoet_newsletters_send_server_request_parameters",{api_version:window.mailpoet_api_version,endpoint:"sendingQueue",action:"add",data:{newsletter_id:a.state.item.id}},a.state.item)).done((function(t){a.saveTemplate(e,(function(){if(window.mailpoet_show_congratulate_after_first_newsletter)return b.a.Modal.loading(!1),void a.props.history.push("/send/congratulate/".concat(a.state.item.id));a.props.history.push(_.a.applyFilters("mailpoet_newsletters_send_server_request_response_redirect","/".concat(a.state.item.type||""),a.state.item));var e=_.a.applyFilters("mailpoet_newsletters_send_server_request_response",a.state.item,t);g.a.isFunction(e)?e():"scheduled"===t.data.status?(b.a.Notice.success(b.a.I18n.t("newsletterHasBeenScheduled")),b.a.trackEvent("Emails > Newsletter sent",{scheduled:!0,"MailPoet Free version":window.mailpoet_version})):(b.a.Notice.success(b.a.I18n.t("newsletterBeingSent"),{id:"mailpoet_notice_being_sent"}),b.a.trackEvent("Emails > Newsletter sent",{scheduled:!1,"MailPoet Free version":window.mailpoet_version})),b.a.Modal.loading(!1)}))})).fail((function(e){a.showError(e),a.setState({loading:!1}),b.a.Modal.loading(!1)}))})),ne()(A()(a),"activateNewsletter",(function(e){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"setStatus",data:{id:a.props.match.params.id,status:"active"}}).done((function(t){a.saveTemplate(e,(function(){if(window.mailpoet_show_congratulate_after_first_newsletter)return b.a.Modal.loading(!1),void a.props.history.push("/send/congratulate/".concat(a.state.item.id));a.props.history.push("/".concat(a.state.item.type||""));var e,n=a.state.item.options;"welcome"===t.data.type?(b.a.Notice.success(b.a.I18n.t("welcomeEmailActivated")),b.a.trackEvent("Emails > Welcome email activated",{"MailPoet Free version":window.mailpoet_version,"List type":n.event,Delay:s()(e="".concat(n.afterTimeNumber," ")).call(e,n.afterTimeType)})):"notification"===t.data.type&&(b.a.Notice.success(b.a.I18n.t("postNotificationActivated")),b.a.trackEvent("Emails > Post notifications activated",{"MailPoet Free version":window.mailpoet_version,Frequency:n.intervalType}));b.a.Modal.loading(!1)}))})).fail((function(e){a.showError(e),a.setState({loading:!1}),b.a.Modal.loading(!1)}))})),ne()(A()(a),"handleResume",(function(e){return e.preventDefault(),a.isValid()?a.saveNewsletter(e).done((function(){a.setState({loading:!0})})).done((function(){b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"sendingQueue",action:"resume",data:{newsletter_id:a.state.item.id}}).done((function(){a.props.history.push("/".concat(a.state.item.type||"")),b.a.Notice.success(b.a.I18n.t("newsletterSendingHasBeenResumed"))})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))})).fail((function(e){a.showError(e)})).always((function(){a.setState({loading:!1})})):ie()("#mailpoet_newsletter").parsley().validate(),!1})),ne()(A()(a),"handleSave",(function(e){e.preventDefault(),a.saveNewsletter(e).done((function(){b.a.Notice.success(b.a.I18n.t("newsletterUpdated"))})).done((function(){var e="automatic"===a.state.item.type?a.state.item.options.group:a.state.item.type;a.props.history.push("/".concat(e||""))})).fail((function(e){a.showError(e)}))})),ne()(A()(a),"handleRedirectToDesign",(function(e){e.preventDefault();var t=e.target.href;a.saveNewsletter(e).done((function(){b.a.Notice.success(b.a.I18n.t("newsletterUpdated"))})).done((function(){window.location=t})).fail((function(e){a.showError(e)}))})),ne()(A()(a),"saveNewsletter",(function(){var e=a.state.item;e.queue=void 0,a.setState({loading:!0});var t=g.a.omit(e,["preheader","body","created_at","deleted_at","hash","status","updated_at","type"]);return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"save",data:t})})),ne()(A()(a),"showError",(function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})})),ne()(A()(a),"handleFormChange",(function(e){var t=e.target.name,n=e.target.value;return a.setState((function(e){var a=e.item,r=a.subject,i=a.ga_campaign;(a[t]=n,"subject"===t)&&(i===Xn(a.id,r)&&(a.ga_campaign=Xn(a.id,n)));return{item:a}})),!0})),a.state={fields:[],item:{},loading:!0,thumbnailPromise:null},a}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){var e=this;this.loadItem(this.props.match.params.id).always((function(){e.setState({loading:!1})})),ie()("#mailpoet_newsletter").parsley()}},{key:"componentDidUpdate",value:function(e){var t=this;this.props.match.params.id!==e.match.params.id&&this.loadItem(this.props.match.params.id).always((function(){t.setState({loading:!1})}))}},{key:"render",value:function(){var e,t="sending"===this.state.item.status&&this.state.item.queue&&"paused"===this.state.item.queue.status,a=m()(e=this.state.fields).call(e,(function(e){var a=e;return"segments"!==e.name&&"options"!==e.name||(a.disabled=t),a})),n=this.getSendButtonOptions(),r=_.a.applyFilters("mailpoet_newsletters_send_breadcrumb",h.a.createElement(L.a,{step:"send"}),this.state.item.type,"send");return h.a.createElement("div",null,h.a.createElement("h1",null,b.a.I18n.t("finalNewsletterStep")),r,h.a.createElement(Ta,{id:"mailpoet_newsletter",fields:a,automationId:"newsletter_send_form",item:this.state.item,loading:this.state.loading,onChange:this.handleFormChange,onSubmit:this.handleSave},h.a.createElement(jt,null),h.a.createElement("p",{className:"submit"},t?h.a.createElement("input",{className:"button button-primary",type:"button",onClick:this.handleResume,value:b.a.I18n.t("resume"),disabled:window.mailpoet_subscribers_limit_reached}):h.a.createElement("input",Q()({className:"button button-primary",type:"button",onClick:this.handleSend,value:b.a.I18n.t("send")},n,{disabled:window.mailpoet_subscribers_limit_reached}))," ",h.a.createElement("input",{className:"button button-secondary",type:"submit",value:b.a.I18n.t("saveDraftAndClose")})," ",b.a.I18n.t("orSimply")," ",h.a.createElement("a",{href:"?page=mailpoet-newsletter-editor&id=".concat(this.props.match.params.id),onClick:this.handleRedirectToDesign},b.a.I18n.t("goBackToDesign")),"."),!t&&n.disabled&&"disabled"===n.disabled&&h.a.createElement(Et.a,{tooltip:b.a.I18n.t("helpTooltipSendEmail"),tooltipId:"helpTooltipSendEmail"})))}}]),t}(h.a.Component);ne()(er,"displayName","NewsletterSend"),ne()(er,"propTypes",{match:q.a.shape({params:q.a.shape({id:q.a.string}).isRequired}).isRequired,history:q.a.shape({push:q.a.func.isRequired}).isRequired});var tr=Object(B.withRouter)(er);function ar(e){var t,a="standard"===e.newsletter.type&&"scheduled"!==e.newsletter.status;return a&&b.a.Poll.successDelivery.initTypeformScript(),h.a.createElement("div",{className:"mailpoet_congratulate_success"},h.a.createElement("h1",null,"welcome"===(t=e.newsletter).type?b.a.I18n.t("congratulationsWelcomeEmailSuccessHeader"):"notification"===t.type?b.a.I18n.t("congratulationsPostNotificationSuccessHeader"):"automatic"===t.type?b.a.I18n.t("congratulationsWooSuccessHeader"):"scheduled"===t.status?b.a.I18n.t("congratulationsScheduleSuccessHeader"):b.a.I18n.t("congratulationsSendSuccessHeader")),h.a.createElement("img",{src:e.illustrationImageUrl,alt:"",width:"750",height:"250"}),a&&h.a.createElement("div",{className:"typeform-widget","data-url":"https://mailpoet.typeform.com/to/ciWID6","data-transparency":"100","data-hide-headers":"true","data-hide-footer":"true"}),h.a.createElement("button",{type:"button",className:"button",onClick:e.successClicked},b.a.I18n.t("close")))}ar.propTypes={successClicked:q.a.func.isRequired,illustrationImageUrl:q.a.string.isRequired,newsletter:q.a.shape({status:q.a.string.isRequired,type:q.a.string.isRequired}).isRequired};var nr=ar,rr=a(68),ir=a.n(rr),sr=function(e){var t,a;return e.step>e.steps_count?null:h.a.createElement("div",{className:"mailpoet_stepped_progress_bar"},m()(t=l()(ir()(a=Array(e.steps_count)).call(a))).call(t,(function(t){var a;return h.a.createElement("div",{className:s()(a="\n mailpoet_stepped_progress_bar_step ".concat(t<e.step?"active":""," ")).call(a,t===e.step-1?"current":"","\n "),key:"step_".concat(t)})})))};sr.propTypes={steps_count:q.a.number.isRequired,step:q.a.number.isRequired};var or=sr,lr=function(e){return h.a.createElement("div",{className:"mailpoet_welcome_wizard_flex"},h.a.createElement("div",{className:"mailpoet_welcome_wizard_illustration"},h.a.createElement("img",{src:e.illustrationUrl,alt:""})),h.a.createElement("div",{className:"mailpoet_welcome_wizard_step"},e.displayProgressBar&&e.step<=e.stepsCount?h.a.createElement(or,{steps_count:e.stepsCount,step:e.step}):null,e.children))};lr.propTypes={illustrationUrl:q.a.string.isRequired,displayProgressBar:q.a.bool,step:q.a.number,stepsCount:q.a.number,children:q.a.oneOfType([q.a.arrayOf(q.a.node),q.a.node]).isRequired},lr.defaultProps={displayProgressBar:!0,step:0,stepsCount:-1};var cr=lr,ur=function(){return h.a.createElement("ul",{className:"welcome_wizard_tracking_list"},h.a.createElement("li",null,b.a.I18n.t("welcomeWizardMSSList1")),h.a.createElement("li",null,b.a.I18n.t("welcomeWizardMSSList2")),h.a.createElement("li",null,b.a.I18n.t("welcomeWizardMSSList4")),h.a.createElement("li",null,b.a.I18n.t("welcomeWizardMSSList5")))},pr=function(e){return h.a.createElement("div",{className:"mailpoet_welcome_wizard_step_controls"},h.a.createElement("p",null,h.a.createElement("a",{href:e.mailpoetAccountUrl,target:"_blank",rel:"noopener noreferrer",className:"button button-primary",onClick:function(t){t.preventDefault(),window.open(e.mailpoetAccountUrl),e.next()}},e.nextButtonText)),h.a.createElement("p",null,h.a.createElement("a",{onClick:e.next,role:"button",tabIndex:0,onKeyDown:function(t){var a,n;u()(a=["keydown","keypress"]).call(a,t.type)&&u()(n=["Enter"," "]).call(n,t.key)&&(t.preventDefault(),e.next())}},b.a.I18n.t("welcomeWizardMSSNoThanks"))))};pr.propTypes={mailpoetAccountUrl:q.a.string.isRequired,next:q.a.func.isRequired,nextButtonText:q.a.string.isRequired};var mr=function(e){return h.a.createElement(h.a.Fragment,null,h.a.createElement("h1",null,b.a.I18n.t("welcomeWizardMSSFreeTitle")),h.a.createElement("p",null,b.a.I18n.t("welcomeWizardMSSFreeSubtitle")),h.a.createElement("p",null,b.a.I18n.t("welcomeWizardMSSFreeListTitle"),":"),h.a.createElement(ur,null),h.a.createElement(pr,{mailpoetAccountUrl:e.mailpoetAccountUrl,next:e.next,nextButtonText:b.a.I18n.t("welcomeWizardMSSFreeButton")}))};mr.propTypes={mailpoetAccountUrl:q.a.string.isRequired,next:q.a.func.isRequired};var dr=function(e){return h.a.createElement(h.a.Fragment,null,h.a.createElement("h1",null,b.a.I18n.t("welcomeWizardMSSNotFreeTitle")),h.a.createElement("p",null,b.a.I18n.t("welcomeWizardMSSNotFreeSubtitle"),":"),h.a.createElement("p",null,b.a.I18n.t("welcomeWizardMSSFreeListTitle"),":"),h.a.createElement(ur,null),h.a.createElement(pr,{mailpoetAccountUrl:e.mailpoetAccountUrl,next:e.next,nextButtonText:b.a.I18n.t("welcomeWizardMSSNotFreeButton")}))};dr.propTypes={mailpoetAccountUrl:q.a.string.isRequired,next:q.a.func.isRequired};var hr=function(e){return h.a.createElement("div",{className:"mailpoet_welcome_wizard_step_content"},e.subscribersCount<1e3?h.a.createElement(mr,{mailpoetAccountUrl:e.mailpoetAccountUrl,next:e.next}):h.a.createElement(dr,{mailpoetAccountUrl:e.mailpoetAccountUrl,next:e.next}))};hr.propTypes={next:q.a.func.isRequired,subscribersCount:q.a.number.isRequired,mailpoetAccountUrl:q.a.string.isRequired};var fr=hr;function gr(e){return h.a.createElement("div",{className:"mailpoet_congratulate_success mailpoet_congratulate_mss_pitch"},h.a.createElement(cr,{illustrationUrl:e.MSSPitchIllustrationUrl,displayProgressBar:!1},h.a.createElement("div",{className:"mailpoet_welcome_wizard_step_content"},h.a.createElement("h1",null,b.a.I18n.t("congratulationsMSSPitchHeader")),h.a.createElement("h2",null,b.a.I18n.t("congratulationsMSSPitchSubHeader")),h.a.createElement("p",null,b.a.I18n.t(e.subscribersCount<1e3?"welcomeWizardMSSFreeSubtitle":"welcomeWizardMSSNotFreeSubtitle")),h.a.createElement("p",null,b.a.I18n.t("welcomeWizardMSSFreeListTitle"),":"),h.a.createElement(ur,null),h.a.createElement(pr,{mailpoetAccountUrl:e.mailpoetAccountUrl,next:e.onFinish,nextButtonText:b.a.I18n.t("welcomeWizardMSSFreeButton")}))))}gr.propTypes={MSSPitchIllustrationUrl:q.a.string.isRequired,onFinish:q.a.func.isRequired,subscribersCount:q.a.number.isRequired,mailpoetAccountUrl:q.a.string.isRequired};var vr=gr;function _r(e){return window.has_mss_key_specified?h.a.createElement(nr,{successClicked:e.successClicked,illustrationImageUrl:e.illustrationImageUrl,newsletter:e.newsletter}):h.a.createElement(vr,{MSSPitchIllustrationUrl:e.MSSPitchIllustrationUrl,onFinish:e.successClicked,subscribersCount:e.subscribersCount,mailpoetAccountUrl:e.mailpoetAccountUrl})}function br(e){return h.a.createElement(_r,e)}br.propTypes={successClicked:q.a.func.isRequired,illustrationImageUrl:q.a.string.isRequired,MSSPitchIllustrationUrl:q.a.string.isRequired,newsletter:q.a.shape({status:q.a.string.isRequired,type:q.a.string.isRequired}).isRequired,subscribersCount:q.a.number.isRequired,mailpoetAccountUrl:q.a.string.isRequired},_r.propTypes={successClicked:q.a.func.isRequired,illustrationImageUrl:q.a.string.isRequired,MSSPitchIllustrationUrl:q.a.string.isRequired,newsletter:q.a.shape({status:q.a.string.isRequired,type:q.a.string.isRequired}).isRequired,subscribersCount:q.a.number.isRequired,mailpoetAccountUrl:q.a.string.isRequired};var yr=br;function wr(e){return h.a.createElement("div",{className:"mailpoet_centered"},h.a.createElement("h1",null,b.a.I18n.t("congratulationsSendFailHeader")),h.a.createElement("p",null,mt()(b.a.I18n.t("congratulationsSendFailExplain"),/\[link\](.*?)\[\/link\]/g,(function(e,t){return h.a.createElement("a",{key:t,target:"_blank",rel:"noopener noreferrer",href:"https://kb.mailpoet.com/article/231-sending-does-not-work","data-beacon-article":"5a0257ac2c7d3a272c0d7ad6"},e)}))),h.a.createElement("button",{type:"button",className:"button",onClick:e.failClicked},b.a.I18n.t("close")))}wr.propTypes={failClicked:q.a.func.isRequired};var Er=wr;var kr=function(){return h.a.createElement("div",{className:"mailpoet_loading"},h.a.createElement("div",{className:"mailpoet_modal_loading mailpoet_modal_loading_1"}),h.a.createElement("div",{className:"mailpoet_modal_loading mailpoet_modal_loading_2"}),h.a.createElement("div",{className:"mailpoet_modal_loading mailpoet_modal_loading_3"}))};function Ir(e){return h.a.createElement("div",{className:"mailpoet_newsletter_loading"},h.a.createElement(kr,null),(t=e.showRichLoadingScreen,a=e.illustrationImageUrl,t?h.a.createElement("div",null,h.a.createElement("h1",{className:"mailpoet_newsletter_loading_header"},b.a.I18n.t("congratulationsLoadingHeader")),h.a.createElement("img",{src:a,alt:"",width:"800px",height:"266px"})):h.a.createElement("div",null)));var t,a}Ir.propTypes={illustrationImageUrl:q.a.string.isRequired,showRichLoadingScreen:q.a.bool.isRequired};var Sr=Ir;function Nr(){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"settings",action:"set",data:{show_congratulate_after_first_newsletter:!1}}).always((function(){window.location=window.mailpoet_main_page}))}var Cr=function(e){function t(e){var a,n;return k()(this,t),(n=C()(this,T()(t).call(this,e))).state={loading:!0,newsletter:null,testingPassed:!1,timeStart:yt()(),minimumLoadingTimePassed:!1},n.tick=w()(a=n.tick).call(a,A()(n)),n}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){this.loadNewsletter(this.props.match.params.id),this.tick()}},{key:"componentDidUpdate",value:function(e){e.match.params.id!==this.props.match.params.id&&this.loadNewsletter(this.props.match.params.id)}},{key:"tick",value:function(){yt()().subtract(20,"second").isAfter(this.state.timeStart)&&this.setState({error:!0,loading:!1}),this.state.loading&&this.loadNewsletter(this.props.match.params.id),yt()().subtract(6,"seconds").isAfter(this.state.timeStart)&&this.setState({minimumLoadingTimePassed:!0}),!this.state.loading&&this.state.minimumLoadingTimePassed||qt()(this.tick,2e3)}},{key:"loadNewsletter",value:function(e){var t=this;b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"get",data:{id:e}}).done((function(e){return t.newsletterLoaded(e.data)}))}},{key:"newsletterLoaded",value:function(e){"standard"!==e.type||"scheduled"===e.status?this.setState({newsletter:e,loading:!1,minimumLoadingTimePassed:!0}):"sent"===e.status||"sending"===e.status?this.setState({newsletter:e,loading:!1,testingPassed:!0}):this.setState({newsletter:e})}},{key:"renderContent",value:function(){return this.state.loading||!this.state.minimumLoadingTimePassed?(e=!!this.state.newsletter,h.a.createElement(Sr,{illustrationImageUrl:window.mailpoet_congratulations_loading_image,successClicked:Nr,showRichLoadingScreen:e})):this.state.error?(b.a.trackEvent("Cron testing done",{"Cron is working":"false"}),h.a.createElement(Er,{failClicked:function(){window.location=window.mailpoet_main_page}})):(t=this.state.newsletter,this.state.testingPassed&&b.a.trackEvent("Cron testing done",{"Cron is working":"true"}),h.a.createElement(yr,{illustrationImageUrl:window.mailpoet_congratulations_success_image,MSSPitchIllustrationUrl:window.MSS_pitch_illustration_url,successClicked:Nr,newsletter:t,isWoocommerceActive:window.mailpoet_woocommerce_active,subscribersCount:window.mailpoet_subscribers_count,mailpoetAccountUrl:window.mailpoet_account_url}));var e,t}},{key:"render",value:function(){return h.a.createElement("div",{className:"newsletter_congratulate_page"},this.renderContent())}}]),t}(h.a.Component);Cr.propTypes={match:q.a.shape({params:q.a.shape({id:q.a.string}).isRequired}).isRequired};var xr=Cr,Tr=function(e){function t(){var e,a,n;k()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=C()(this,(e=T()(t)).call.apply(e,s()(a=[this]).call(a,i))),ne()(A()(n),"showTemplateSelection",(function(e){n.props.history.push("/template/".concat(e))})),n}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){var e=this;b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"create",data:{type:"standard"}}).done((function(t){e.showTemplateSelection(t.data.id)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("h1",null,b.a.I18n.t("regularNewsletterTypeTitle")),h.a.createElement(L.a,{step:"type"}))}}]),t}(h.a.Component);ne()(Tr,"propTypes",{history:q.a.shape({push:q.a.func.isRequired}).isRequired});var Rr=Object(B.withRouter)(Tr),Ar={name:"options",type:"reactComponent",component:qn},Pr=function(e){function t(){var e,a,n;k()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=C()(this,(e=T()(t)).call.apply(e,s()(a=[this]).call(a,i))),ne()(A()(n),"state",{options:{intervalType:"daily",timeOfDay:0,weekDay:1,monthDay:0,nthWeekDay:1}}),ne()(A()(n),"handleValueChange",(function(e){var t=n.state;t[e.target.name]=e.target.value,n.setState(t)})),ne()(A()(n),"handleNext",(function(){b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"create",data:g.a.extend({},n.state,{type:"notification",subject:b.a.I18n.t("draftPostNotificationTitle")})}).done((function(e){n.showTemplateSelection(e.data.id)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))})),ne()(A()(n),"showTemplateSelection",(function(e){n.props.history.push("/template/".concat(e))})),n}return O()(t,e),S()(t,[{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("h1",null,b.a.I18n.t("postNotificationNewsletterTypeTitle")),h.a.createElement(L.a,{step:"type"}),h.a.createElement("h3",null,b.a.I18n.t("selectFrequency")),h.a.createElement(qn,{item:this.state,field:Ar,onValueChange:this.handleValueChange}),h.a.createElement("p",{className:"submit"},h.a.createElement("input",{className:"button button-primary",type:"button",onClick:this.handleNext,value:b.a.I18n.t("next")})))}}]),t}(h.a.Component);ne()(Pr,"propTypes",{history:q.a.shape({push:q.a.func.isRequired}).isRequired});var Or=Object(B.withRouter)(Pr),Lr={name:"options",label:"Event",type:"reactComponent",component:Kn},Dr=function(e){function t(e){var a,n,r;k()(this,t),r=C()(this,T()(t).call(this,e));var i=window.mailpoet_segments||[],s=1;return i=K()(i).call(i,(function(e){return"default"===e.type})),g.a.size(i)>0&&(s=g.a.first(i).id),r.state={options:{event:"segment",segment:s,role:"subscriber",afterTimeNumber:1,afterTimeType:"immediate"}},r.handleValueChange=w()(a=r.handleValueChange).call(a,A()(r)),r.handleNext=w()(n=r.handleNext).call(n,A()(r)),r}return O()(t,e),S()(t,[{key:"handleValueChange",value:function(e){var t=this.state;t[e.target.name]=e.target.value,this.setState(t)}},{key:"handleNext",value:function(){var e=this;b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"create",data:g.a.extend({},this.state,{type:"welcome",subject:b.a.I18n.t("draftNewsletterTitle")})}).done((function(t){e.showTemplateSelection(t.data.id)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}},{key:"showTemplateSelection",value:function(e){this.props.history.push("/template/".concat(e))}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("h1",null,b.a.I18n.t("welcomeNewsletterTypeTitle")),h.a.createElement(L.a,{step:"type"}),h.a.createElement("h3",null,b.a.I18n.t("selectEventToSendWelcomeEmail")),h.a.createElement(Kn,{item:this.state,field:Lr,onValueChange:this.handleValueChange}),h.a.createElement("p",{className:"submit"},h.a.createElement("input",{className:"button button-primary",type:"button",onClick:this.handleNext,value:b.a.I18n.t("next")})))}}]),t}(h.a.Component);Dr.propTypes={history:q.a.shape({push:q.a.func.isRequired}).isRequired};var qr=Dr,Fr=a(496),Mr=a.n(Fr),jr=function(e){var t=e.errors;return t.length<1?null:h.a.createElement(Mt,{type:"error",closable:!1},m()(t).call(t,(function(e){return h.a.createElement("p",{key:e.message},e.message)})))};jr.propTypes={errors:q.a.arrayOf(q.a.shape({message:q.a.string.isRequired})).isRequired};var Vr=jr,Br=q.a.shape({status:q.a.string,count_processed:q.a.string.isRequired,count_total:q.a.string.isRequired,scheduled_at:q.a.string}),zr=q.a.shape({id:q.a.number.isRequired,queue:q.a.oneOfType([Br,q.a.bool])}),Ur=function(e){var t=e.queue,a=Ye()("mailpoet_progress",{mailpoet_progress_complete:"completed"===t.status}),n=Math.round(100*t.count_processed/t.count_total),r=0;return Mr()(n)?(r=n,n+="%"):n=b.a.I18n.t("noSubscribers"),h.a.createElement("div",{className:a},h.a.createElement("span",{className:"mailpoet_progress_bar",style:{width:"".concat(r,"%")}}),h.a.createElement("span",{className:"mailpoet_progress_label"},n))};Ur.propTypes={queue:Br.isRequired};var Wr=function(e){var t=e.newsletter;return h.a.createElement(Ke.b,{to:"/sending-status/".concat(t.id),"data-automation-id":"sending_status_".concat(t.id)},h.a.createElement("span",null,b.a.I18n.t("newsletterQueueCompleted").replace("%$1d",de()(t.queue.count_processed,10).toLocaleString()).replace("%$2d",de()(t.queue.count_total,10).toLocaleString())))};Wr.propTypes={newsletter:zr.isRequired};var $r=function(e){var t=e.className,a=e.onClick,n=e.children;return h.a.createElement("a",{className:Ye()("button",t),style:{display:"inline-block"},href:"#",onClick:function(e){e.preventDefault(),a(e)}},n)};$r.propTypes={className:q.a.string,onClick:q.a.func.isRequired,children:q.a.string.isRequired},$r.defaultProps={className:""};var Hr=function(e){var t=e.newsletter,a=h.a.useState("paused"===t.queue.status),n=fe()(a,2),r=n[0],i=n[1],s=h.a.useState([]),o=fe()(s,2),l=o[0],c=o[1];return h.a.createElement(h.a.Fragment,null,h.a.createElement(Vr,{errors:l}),h.a.createElement("span",null,de()(t.queue.count_processed,10).toLocaleString(),"/",de()(t.queue.count_total,10).toLocaleString(),"  ",r&&h.a.createElement($r,{onClick:function(){c([]),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"sendingQueue",action:"resume",data:{newsletter_id:t.id}}).done((function(){return i(!1)})).fail((function(e){return c(e.errors)}))}},b.a.I18n.t("resume")),!r&&h.a.createElement($r,{className:"mailpoet_pause",onClick:function(){c([]),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"sendingQueue",action:"pause",data:{newsletter_id:t.id}}).done((function(){return i(!0)})).fail((function(e){return c(e.errors)}))}},b.a.I18n.t("pause"))))};Hr.propTypes={newsletter:zr.isRequired};var Kr=function(e){var t=e.newsletter,a=e.mailerLog;return t.queue?"paused"===a.status&&"completed"!==t.queue.status?h.a.createElement("span",null,b.a.I18n.t("paused")):"scheduled"===t.queue.status?h.a.createElement("span",null,b.a.I18n.t("scheduledFor")," ",b.a.Date.format(t.queue.scheduled_at)):h.a.createElement("div",null,h.a.createElement(Ur,{queue:t.queue}),h.a.createElement("p",{style:{textAlign:"center"}},"completed"===t.queue.status&&h.a.createElement(Wr,{newsletter:t}),"completed"!==t.queue.status&&h.a.createElement(Hr,{newsletter:t}))):h.a.createElement("span",null,b.a.I18n.t("notSentYet"))};Kr.propTypes={newsletter:zr.isRequired,mailerLog:q.a.shape({status:q.a.string}).isRequired};var Gr=Kr,Yr=!!window.mailpoet_tracking_enabled,Jr={onNoItemsFound:function(e,t){return b.a.I18n.t(t?"noItemsFound":"emptyListing")},onTrash:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterTrashed"):b.a.I18n.t("multipleNewslettersTrashed").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onDelete:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterDeleted"):b.a.I18n.t("multipleNewslettersDeleted").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onRestore:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterRestored"):b.a.I18n.t("multipleNewslettersRestored").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)}},Qr=[{name:"subject",label:b.a.I18n.t("subject"),sortable:!0},{name:"status",label:b.a.I18n.t("status")},{name:"segments",label:b.a.I18n.t("lists")},{name:"statistics",label:b.a.I18n.t("statistics"),display:Yr},{name:"sent_at",label:b.a.I18n.t("sentOn"),sortable:!0}],Zr=[{name:"trash",label:b.a.I18n.t("moveToTrash"),onSuccess:Jr.onTrash}],Xr=function(e){var t=function(){window.location.href="?page=mailpoet-newsletter-editor&id=".concat(e.id)};e.queue&&"sending"===e.status&&null===e.queue.status?Za({message:b.a.I18n.t("confirmEdit"),onConfirm:t}):t()},ei=[{name:"view",link:function(e){return h.a.createElement("a",{href:e.preview_url,target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("preview"))}},{name:"edit",label:b.a.I18n.t("edit"),onClick:Xr},{name:"duplicate",label:b.a.I18n.t("duplicate"),onClick:function(e,t){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"duplicate",data:{id:e.id}}).done((function(e){b.a.Notice.success(b.a.I18n.t("newsletterDuplicated").replace("%$1s",e.data.subject)),t()})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}},{name:"trash"}];ei=gt(ei);var ti=function(e){function t(e){var a;return k()(this,t),a=C()(this,T()(t).call(this,e)),ne()(A()(a),"renderItem",(function(e,t,a){var n,r=Ye()("manage-column","column-primary","has-row-actions"),i=m()(n=e.segments).call(n,(function(e){return e.name})).join(", ");return h.a.createElement("div",null,h.a.createElement("td",{className:r},h.a.createElement("strong",null,h.a.createElement("a",{className:"row-title",href:"#",onClick:function(t){t.preventDefault(),Xr(e)}},e.queue.newsletter_rendered_subject||e.subject)),t),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("status")},h.a.createElement(Gr,{newsletter:e,mailerLog:a.mta_log})),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("lists")},i),!0===Yr?h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("statistics")},h.a.createElement(xt,{newsletter:e,currentTime:a.current_time})):null,h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("sentOn")},h.a.createElement("abbr",null,e.sent_at?b.a.Date.format(e.sent_at):b.a.I18n.t("notSentYet"))))})),a.state={newslettersCount:void 0},a}return O()(t,e),S()(t,[{key:"render",value:function(){var e=this;return h.a.createElement("div",null,h.a.createElement(lt,null),h.a.createElement(ht,{hasNews:window.mailpoet_feature_announcement_has_news}),h.a.createElement(jt,null),h.a.createElement(ot,{tab:"standard"}),0===this.state.newslettersCount&&h.a.createElement(Lt,{filter:function(e){return"standard"===e.slug},showHeader:!1}),0!==this.state.newslettersCount&&h.a.createElement(He.a,{limit:window.mailpoet_listing_per_page,location:this.props.location,params:this.props.match.params,endpoint:"newsletters",type:"standard",base_url:"standard",onRenderItem:this.renderItem,columns:Qr,bulk_actions:Zr,item_actions:ei,messages:Jr,auto_refresh:!0,sort_by:"sent_at",sort_order:"desc",afterGetItems:function(t){if(!t.loading){var a,n=be()(a=t.groups).call(a,(function(e,t){return e+t.count}),0);e.setState({newslettersCount:n})}vt(t),_t(t)}}))}}]),t}(h.a.Component);ne()(ti,"displayName","NewsletterListStandard"),ne()(ti,"contextType",ja),ne()(ti,"propTypes",{location:q.a.object.isRequired,match:q.a.shape({params:q.a.object}).isRequired});var ai=ti,ni=window.mailpoet_roles||{},ri=window.mailpoet_segments||{},ii=!!window.mailpoet_tracking_enabled,si={onNoItemsFound:function(e,t){return b.a.I18n.t(t?"noItemsFound":"emptyListing")},onTrash:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterTrashed"):b.a.I18n.t("multipleNewslettersTrashed").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onDelete:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterDeleted"):b.a.I18n.t("multipleNewslettersDeleted").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onRestore:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterRestored"):b.a.I18n.t("multipleNewslettersRestored").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)}},oi=[{name:"subject",label:b.a.I18n.t("subject"),sortable:!0},{name:"status",label:b.a.I18n.t("status"),width:145},{name:"settings",label:b.a.I18n.t("settings")},{name:"statistics",label:b.a.I18n.t("statistics"),display:ii},{name:"updated_at",label:b.a.I18n.t("lastModifiedOn"),sortable:!0}],li=[{name:"trash",label:b.a.I18n.t("moveToTrash"),onSuccess:si.onTrash}],ci=[{name:"view",link:function(e){return h.a.createElement("a",{href:e.preview_url,target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("preview"))}},{name:"duplicate",label:b.a.I18n.t("duplicate"),onClick:function(e,t){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"duplicate",data:{id:e.id}}).done((function(e){b.a.Notice.success(b.a.I18n.t("newsletterDuplicated").replace("%$1s",e.data.subject)),t()})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}},{name:"edit",link:function(e){return h.a.createElement("a",{href:"?page=mailpoet-newsletter-editor&id=".concat(e.id)},b.a.I18n.t("edit"))}},{name:"trash"}];ci=gt(ci);var ui=function(e){function t(e){var a;return k()(this,t),a=C()(this,T()(t).call(this,e)),ne()(A()(a),"updateStatus",(function(e){e.persist(),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"setStatus",data:{id:Number(e.target.getAttribute("data-id")),status:e.target.value}}).done((function(e){"active"===e.data.status&&b.a.Notice.success(b.a.I18n.t("welcomeEmailActivated")),a.forceUpdate()})).fail((function(t){b.a.Notice.showApiErrorNotice(t),e.target.value=t.status}))})),ne()(A()(a),"renderStatus",(function(e){var t=b.a.I18n.t("sentToXSubscribers").replace("%$1d",e.total_sent.toLocaleString()),n=b.a.I18n.t("scheduledToXSubscribers").replace("%$1d",e.total_scheduled.toLocaleString());return h.a.createElement("div",null,h.a.createElement("p",null,h.a.createElement("select",{"data-id":e.id,defaultValue:e.status,onChange:a.updateStatus},h.a.createElement("option",{value:"active"},b.a.I18n.t("active")),h.a.createElement("option",{value:"draft"},b.a.I18n.t("inactive")))),h.a.createElement("p",null,h.a.createElement(Ke.b,{to:"/sending-status/".concat(e.id),"data-automation-id":"sending_status_".concat(e.id)},t)," ",h.a.createElement("br",null),n))})),ne()(A()(a),"renderSettings",(function(e){var t,a,n;switch(e.options.event){case"user":t="mailpoet_all"===e.options.role?b.a.I18n.t("welcomeEventWPUserAnyRole"):b.a.I18n.t("welcomeEventWPUserWithRole").replace("%$1s",ni[e.options.role]);break;default:if(void 0===(n=X()(g.a).call(g.a,ri,(function(t){return Number(t.id)===Number(e.options.segment)}))))return h.a.createElement("span",{className:"mailpoet_error"},b.a.I18n.t("sendingToSegmentsNotSpecified"));t=b.a.I18n.t("welcomeEventSegment").replace("%$1s",n.name)}if(t&&"immediate"!==e.options.afterTimeType){switch(e.options.afterTimeType){case"minutes":a=b.a.I18n.t("sendingDelayMinutes").replace("%$1d",e.options.afterTimeNumber);break;case"hours":a=b.a.I18n.t("sendingDelayHours").replace("%$1d",e.options.afterTimeNumber);break;case"days":a=b.a.I18n.t("sendingDelayDays").replace("%$1d",e.options.afterTimeNumber);break;case"weeks":a=b.a.I18n.t("sendingDelayWeeks").replace("%$1d",e.options.afterTimeNumber);break;default:a=b.a.I18n.t("sendingDelayInvalid")}t+=" [".concat(a,"].")}return h.a.createElement("span",null,t)})),ne()(A()(a),"renderItem",(function(e,t){var n=Ye()("manage-column","column-primary","has-row-actions");return h.a.createElement("div",null,h.a.createElement("td",{className:n},h.a.createElement("strong",null,h.a.createElement("a",{className:"row-title",href:"?page=mailpoet-newsletter-editor&id=".concat(e.id)},e.subject)),t),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("status")},a.renderStatus(e)),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("settings")},a.renderSettings(e)),!0===ii?h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("statistics")},h.a.createElement(xt,{newsletter:e,isSent:e.total_sent>0&&!!e.statistics})):null,h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("lastModifiedOn")},h.a.createElement("abbr",null,b.a.Date.format(e.updated_at))))})),a.state={newslettersCount:void 0},a}return O()(t,e),S()(t,[{key:"render",value:function(){var e=this;return h.a.createElement("div",null,h.a.createElement(lt,null),h.a.createElement(ht,{hasNews:window.mailpoet_feature_announcement_has_news}),h.a.createElement(jt,null),h.a.createElement(ot,{tab:"welcome"}),0===this.state.newslettersCount&&h.a.createElement(Lt,{filter:function(e){return"welcome"===e.slug},showHeader:!1}),0!==this.state.newslettersCount&&h.a.createElement(He.a,{limit:window.mailpoet_listing_per_page,location:this.props.location,params:this.props.match.params,endpoint:"newsletters",type:"welcome",base_url:"welcome",onRenderItem:this.renderItem,columns:oi,bulk_actions:li,item_actions:ci,messages:si,auto_refresh:!0,sort_by:"updated_at",sort_order:"desc",afterGetItems:function(t){if(!t.loading){var a,n=be()(a=t.groups).call(a,(function(e,t){return e+t.count}),0);e.setState({newslettersCount:n})}vt(t),_t(t)}}))}}]),t}(h.a.Component);ne()(ui,"displayName","NewsletterListWelcome"),ne()(ui,"propTypes",{location:q.a.object.isRequired,match:q.a.shape({params:q.a.object}).isRequired});var pi=ui,mi={onNoItemsFound:function(e,t){return b.a.I18n.t(t?"noItemsFound":"emptyListing")},onTrash:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterTrashed"):b.a.I18n.t("multipleNewslettersTrashed").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onDelete:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterDeleted"):b.a.I18n.t("multipleNewslettersDeleted").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onRestore:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterRestored"):b.a.I18n.t("multipleNewslettersRestored").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)}},di=[{name:"subject",label:b.a.I18n.t("subject"),sortable:!0},{name:"status",label:b.a.I18n.t("status"),width:100},{name:"settings",label:b.a.I18n.t("settings")},{name:"history",label:b.a.I18n.t("history"),width:100},{name:"updated_at",label:b.a.I18n.t("lastModifiedOn"),sortable:!0}],hi=[{name:"trash",label:b.a.I18n.t("moveToTrash"),onSuccess:mi.onTrash}],fi=[{name:"view",link:function(e){return h.a.createElement("a",{href:e.preview_url,target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("preview"))}},{name:"edit",link:function(e){return h.a.createElement("a",{href:"?page=mailpoet-newsletter-editor&id=".concat(e.id)},b.a.I18n.t("edit"))}},{name:"duplicate",label:b.a.I18n.t("duplicate"),onClick:function(e,t){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"duplicate",data:{id:e.id}}).done((function(e){b.a.Notice.success(b.a.I18n.t("newsletterDuplicated").replace("%$1s",e.data.subject)),t()})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}},{name:"trash"}],gi=function(e){function t(e){var a;return k()(this,t),a=C()(this,T()(t).call(this,e)),ne()(A()(a),"updateStatus",(function(e){e.persist(),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"setStatus",data:{id:Number(e.target.getAttribute("data-id")),status:e.target.value}}).done((function(e){"active"===e.data.status&&b.a.Notice.success(b.a.I18n.t("postNotificationActivated")),a.forceUpdate()})).fail((function(t){b.a.Notice.showApiErrorNotice(t),e.target.value=t.status}))})),ne()(A()(a),"renderStatus",(function(e){return h.a.createElement("select",{"data-id":e.id,defaultValue:e.status,onChange:a.updateStatus},h.a.createElement("option",{value:"active"},b.a.I18n.t("active")),h.a.createElement("option",{value:"draft"},b.a.I18n.t("inactive")))})),ne()(A()(a),"renderSettings",(function(e){var t,a,n=m()(t=e.segments).call(t,(function(e){return e.name})),r=b.a.I18n.t("ifNewContentToSegments").replace("%$1s",n.join(", "));if(0===n.length)return h.a.createElement("span",{className:"mailpoet_error"},b.a.I18n.t("sendingToSegmentsNotSpecified"));switch(e.options.intervalType){case"daily":a=b.a.I18n.t("sendDaily").replace("%$1s",Se[e.options.timeOfDay]);break;case"weekly":a=b.a.I18n.t("sendWeekly").replace("%$1s",Ne[e.options.weekDay]).replace("%$2s",Se[e.options.timeOfDay]);break;case"monthly":a=b.a.I18n.t("sendMonthly").replace("%$1s",Ce[e.options.monthDay]).replace("%$2s",Se[e.options.timeOfDay]);break;case"nthWeekDay":a=b.a.I18n.t("sendNthWeekDay").replace("%$1s",xe[e.options.nthWeekDay]).replace("%$2s",Ne[e.options.weekDay]).replace("%$3s",Se[e.options.timeOfDay]);break;case"immediately":a=b.a.I18n.t("sendImmediately");break;default:a="Invalid sending frequency"}return h.a.createElement("span",null,a," ",r)})),ne()(A()(a),"renderHistoryLink",(function(e){return 0===Number(e.children_count)?b.a.I18n.t("notSentYet"):h.a.createElement(Ke.b,{"data-automation-id":"history-".concat(e.id),to:"/notification/history/".concat(e.id)},b.a.I18n.t("viewHistory"))})),ne()(A()(a),"renderItem",(function(e,t){var n=Ye()("manage-column","column-primary","has-row-actions");return h.a.createElement("div",null,h.a.createElement("td",{className:n},h.a.createElement("strong",null,h.a.createElement("a",{className:"row-title",href:"?page=mailpoet-newsletter-editor&id=".concat(e.id)},e.subject)),t),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("status")},a.renderStatus(e)),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("settings")},a.renderSettings(e)),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("history")},a.renderHistoryLink(e)),h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("lastModifiedOn")},h.a.createElement("abbr",null,b.a.Date.format(e.updated_at))))})),a.state={newslettersCount:void 0},a}return O()(t,e),S()(t,[{key:"render",value:function(){var e=this;return h.a.createElement("div",null,h.a.createElement(lt,null),h.a.createElement(ht,{hasNews:window.mailpoet_feature_announcement_has_news}),h.a.createElement(jt,null),h.a.createElement(ot,{tab:"notification"}),0===this.state.newslettersCount&&h.a.createElement(Lt,{filter:function(e){return"notification"===e.slug},showHeader:!1}),0!==this.state.newslettersCount&&h.a.createElement(He.a,{limit:window.mailpoet_listing_per_page,location:this.props.location,params:this.props.match.params,endpoint:"newsletters",type:"notification",base_url:"notification",onRenderItem:this.renderItem,columns:di,bulk_actions:hi,item_actions:fi,messages:mi,auto_refresh:!0,sort_by:"updated_at",sort_order:"desc",afterGetItems:function(t){if(!t.loading){var a,n=be()(a=t.groups).call(a,(function(e,t){return e+t.count}),0);e.setState({newslettersCount:n})}vt(t),_t(t)}}))}}]),t}(h.a.Component);ne()(gi,"displayName","NewsletterListNotification"),ne()(gi,"propTypes",{location:q.a.object.isRequired,match:q.a.shape({params:q.a.object}).isRequired});var vi=gi,_i=!!window.mailpoet_tracking_enabled,bi=[{name:"subject",label:b.a.I18n.t("subject")},{name:"status",label:b.a.I18n.t("status")},{name:"segments",label:b.a.I18n.t("lists")},{name:"statistics",label:b.a.I18n.t("statistics"),display:_i},{name:"sent_at",label:b.a.I18n.t("sentOn")}],yi={onNoItemsFound:function(e,t){return b.a.I18n.t(t?"noItemsFound":"emptyListing")},onTrash:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterTrashed"):b.a.I18n.t("multipleNewslettersTrashed").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onDelete:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterDeleted"):b.a.I18n.t("multipleNewslettersDeleted").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onRestore:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterRestored"):b.a.I18n.t("multipleNewslettersRestored").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)}},wi=[{name:"trash",label:b.a.I18n.t("moveToTrash"),onSuccess:yi.onTrash}],Ei=gt([{name:"view",link:function(e){return h.a.createElement("a",{href:e.preview_url,target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("preview"))}},{name:"trash"}]),ki=function(e,t,a){var n,r=Ye()("manage-column","column-primary","has-row-actions"),i=m()(n=e.segments).call(n,(function(e){return e.name})).join(", ");return h.a.createElement(h.a.Fragment,null,h.a.createElement("td",{className:r},h.a.createElement("strong",null,h.a.createElement("a",{href:e.preview_url,target:"_blank",rel:"noopener noreferrer"},e.queue.newsletter_rendered_subject||e.subject)),t),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("status")},h.a.createElement(Gr,{newsletter:e,mailerLog:a.mta_log})),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("lists")},i),!0===_i?h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("statistics")},h.a.createElement(xt,{newsletter:e,currentTime:a.current_time})):null,h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("sentOn")},e.sent_at?b.a.Date.format(e.sent_at):b.a.I18n.t("notSentYet")))},Ii=function(e){return h.a.createElement(h.a.Fragment,null,h.a.createElement(lt,null),h.a.createElement(ht,{hasNews:window.mailpoet_feature_announcement_has_news}),h.a.createElement(ot,{tab:"notification"}),h.a.createElement(Ke.b,{className:"page-title-action",to:"/notification"},b.a.I18n.t("backToPostNotifications")),h.a.createElement(He.a,{limit:window.mailpoet_listing_per_page,location:e.location,params:e.match.params,endpoint:"newsletters",type:"notification_history",base_url:"notification/history/:parent_id",onRenderItem:ki,columns:bi,messages:yi,item_actions:Ei,bulk_actions:wi,auto_refresh:!0,sort_by:"sent_at",sort_order:"desc",afterGetItems:function(e){vt(e),_t(e)}}))};Ii.propTypes={location:q.a.shape({pathname:q.a.string}).isRequired,match:q.a.shape({params:q.a.shape({id:q.a.string})}).isRequired};var Si=Ii,Ni=[{name:"subscriber_id",label:b.a.I18n.t("subscriber"),sortable:!0},{name:"status",label:b.a.I18n.t("sendingStatus")},{name:"failureReason",label:b.a.I18n.t("failureReason")}],Ci={onNoItemsFound:function(){return b.a.I18n.t("noSendingTaskFound")}},xi=function(e){var t=h.a.useState({id:e.match.params.id,subject:"",sent:!1}),a=fe()(t,2),n=a[0],r=a[1];return h.a.useEffect((function(){b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"get",data:{id:n.id}}).done((function(e){return r({id:n.id,subject:e.data.subject,sent:null!==e.data.sent_at})})).fail((function(e){return b.a.Notice.showApiErrorNotice(e)}))}),[n.id]),h.a.createElement(h.a.Fragment,null,h.a.createElement("h1",null,b.a.I18n.t("sendingStatusTitle")),h.a.createElement(Ri,{newsletter:n}),h.a.createElement(Ti,{location:e.location,params:e.match.params}))};xi.propTypes={location:q.a.shape({pathname:q.a.string}).isRequired,match:q.a.shape({params:q.a.shape({id:q.a.string.isRequired}).isRequired}).isRequired};var Ti=h.a.memo((function(e){var t=e.location,a=e.params;return h.a.createElement(He.a,{limit:window.mailpoet_listing_per_page,location:t,params:a,endpoint:"sending_task_subscribers",base_url:"sending-status/:id",onRenderItem:function(e){return h.a.createElement("div",null,h.a.createElement(Ai,e))},getListingItemKey:function(e){var t;return s()(t="".concat(e.taskId,"-")).call(t,e.subscriberId)},columns:Ni,messages:Ci,auto_refresh:!0,sort_by:"failed",sort_order:"desc",afterGetItems:function(e){vt(e),_t(e)}})}),(function(e,t){return e.location.pathname===t.location.pathname&&e.params.id===t.params.id}));Ti.propTypes={location:q.a.shape({pathname:q.a.string}).isRequired,params:q.a.shape({id:q.a.string.isRequired}).isRequired};var Ri=function(e){var t=e.newsletter;return t.id&&t.subject&&t.sent?h.a.createElement("p",null,h.a.createElement(Ke.b,{to:"/stats/".concat(t.id)},t.subject)):null};Ri.propTypes={newsletter:q.a.shape({id:q.a.string,subject:q.a.string,sent:q.a.bool})},Ri.defaultProps={newsletter:{id:null,subject:null,sent:!1}};var Ai=function(e){var t,a,n,r,i=e.error,o=e.failed,l=e.taskId,c=e.processed,u=e.email,p=e.subscriberId,m=e.lastName,d=e.firstName,f=Ye()("manage-column","column-primary","has-row-actions"),g=b.a.I18n.t("unprocessed");return"1"===c&&(g="1"===o?h.a.createElement("span",null,b.a.I18n.t("failed"),h.a.createElement("br",null),h.a.createElement("a",{className:"button",href:"#",onClick:function(e){e.preventDefault(),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"sending_task_subscribers",action:"resend",data:{taskId:l,subscriberId:p}}).done((function(){return window.mailpoet_listing.forceUpdate()})).fail((function(e){return b.a.Notice.showApiErrorNotice(e)}))}},b.a.I18n.t("resend"))):b.a.I18n.t("sent")),h.a.createElement(h.a.Fragment,null,h.a.createElement("td",{"data-automation-id":s()(t="name_".concat(l,"_")).call(t,p),className:f},h.a.createElement("strong",null,h.a.createElement("a",{className:"row-title",href:"admin.php?page=mailpoet-subscribers#/edit/".concat(p)},u)),h.a.createElement("p",{style:{margin:0}},s()(a="".concat(d," ")).call(a,m))),h.a.createElement("td",{className:"column","data-automation-id":s()(n="status_".concat(l,"_")).call(n,p),"data-colname":b.a.I18n.t("sendingStatus")},g),h.a.createElement("td",{className:"column","data-automation-id":s()(r="error_".concat(l,"_")).call(r,p),"data-colname":b.a.I18n.t("failureReason")},i))};Ai.propTypes={error:q.a.string,email:q.a.string.isRequired,failed:q.a.string.isRequired,taskId:q.a.string.isRequired,lastName:q.a.string.isRequired,firstName:q.a.string.isRequired,processed:q.a.string.isRequired,subscriberId:q.a.string.isRequired},Ai.defaultProps={error:""};var Pi=xi,Oi=function(e){var t,a,n,r=e.newsletter,i=r.total_sent||0,o=0,l=0,c=0;i>0&&(o=100*r.statistics.clicked/i,l=100*r.statistics.opened/i,c=100*r.statistics.unsubscribed/i);var u,p=b.a.Num.toLocaleFixed(o,1),m=b.a.Num.toLocaleFixed(l,1),d=b.a.Num.toLocaleFixed(c,1),f=s()(t="".concat(m,"% ")).call(t,b.a.I18n.t("percentageOpened")),g=s()(a="".concat(p,"% ")).call(a,b.a.I18n.t("percentageClicked")),v=s()(n="".concat(d,"% ")).call(n,b.a.I18n.t("percentageUnsubscribed"));return u=i>=20&&r.statistics.opened>=5?h.a.createElement("div",{className:"mailpoet_stat_grey"},h.a.createElement("div",{className:"mailpoet_stat_big mailpoet_stat_spaced"},h.a.createElement(It.a,{stat:"opened",rate:l,headline:f})),h.a.createElement("div",{className:"mailpoet_stat_big mailpoet_stat_spaced"},h.a.createElement(It.a,{stat:"clicked",rate:o,headline:g})),_.a.applyFilters("mailpoet_newsletters_revenues_stats",null,r.statistics.revenue),h.a.createElement("div",null,h.a.createElement(It.a,{stat:"unsubscribed",rate:c,headline:v}))):h.a.createElement("div",{className:"mailpoet_stat_grey"},h.a.createElement("div",{className:"mailpoet_stat_big mailpoet_stat_spaced"},f),h.a.createElement("div",{className:"mailpoet_stat_big mailpoet_stat_spaced"},g),_.a.applyFilters("mailpoet_newsletters_revenues_stats",null,r.statistics.revenue),h.a.createElement("div",null,v)),h.a.createElement("div",null,h.a.createElement("p",{className:"mailpoet_stat_grey mailpoet_stat_big"},b.a.I18n.t("statsTotalSent")," ",de()(i,10).toLocaleString()),u,r.ga_campaign&&h.a.createElement("p",null,b.a.I18n.t("googleAnalytics"),": ",r.ga_campaign),h.a.createElement("p",null,h.a.createElement("a",{href:"https://kb.mailpoet.com/article/190-whats-a-good-email-open-rate",target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("readMoreOnStats"))))};Oi.propTypes={newsletter:q.a.shape({ga_campaign:q.a.string,total_sent:q.a.number,statistics:q.a.shape({clicked:q.a.number,opened:q.a.number,unsubscribed:q.a.number,revenue:q.a.shape({currency:q.a.string.isRequired,value:q.a.number.isRequired,formatted:q.a.string.isRequired,count:q.a.number.isRequired})}).isRequired}).isRequired};var Li=Oi;function Di(e,t){var a,n="";e&&(n=t?s()(a="".concat(t," <")).call(a,e,">"):e);return n}function qi(e){var t,a=e.newsletter,n=a.queue.scheduled_at||a.queue.created_at,r=Di(a.sender_address||"",a.sender_name||""),i=Di(a.reply_to_address||"",a.reply_to_name||""),s=m()(t=a.segments||[]).call(t,(function(e){return e.name})).join(", ");return h.a.createElement("div",null,h.a.createElement("div",{className:"mailpoet_stat_spaced"},h.a.createElement("a",{href:a.preview_url,className:"button-secondary",target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("statsPreviewNewsletter"))),h.a.createElement("p",null,b.a.I18n.t("statsDateSent"),":"," ",b.a.Date.format(n)),s&&h.a.createElement("p",null,b.a.I18n.t("statsToSegments"),":"," ",s),h.a.createElement("p",null,b.a.I18n.t("statsFromAddress"),":"," ",r),i&&h.a.createElement("p",null,b.a.I18n.t("statsReplyToAddress"),":"," ",i))}qi.propTypes={newsletter:q.a.shape({queue:q.a.shape({scheduled_at:q.a.string,created_at:q.a.string}).isRequired,sender_address:q.a.string,sender_name:q.a.string,reply_to_address:q.a.string,reply_to_name:q.a.string,segments:q.a.array}).isRequired};var Fi=qi,Mi=function(){if(!window.mailpoet_display_detailed_stats){var e=h.a.createElement("a",{className:"button",href:b.a.MailPoetComUrlFactory.getFreePlanUrl({utm_medium:"stats",utm_campaign:"signup"}),target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("premiumBannerCtaFree"));return h.a.createElement("div",{className:"mailpoet_stats_premium_banner"},h.a.createElement("h1",null,b.a.I18n.t("premiumBannerTitle")),h.a.createElement("p",null,e),h.a.createElement("a",{href:"admin.php?page=mailpoet-premium"},b.a.I18n.t("premiumBannerLink")))}if(window.mailpoet_subscribers_limit_reached){var t=window.mailpoet_has_valid_api_key,a=b.a.I18n.t("subscribersLimitNoticeTitle").replace("[subscribersLimit]",window.mailpoet_subscribers_limit),n=b.a.I18n.t(t?"yourPlanLimit":"freeVersionLimit").replace("[subscribersLimit]",window.mailpoet_subscribers_limit),r=t?"https://account.mailpoet.com/upgrade":"https://account.mailpoet.com/?s=".concat(window.mailpoet_subscribers_count+1);return h.a.createElement("div",{className:"mailpoet_stats_premium_banner"},h.a.createElement("h1",null,a),h.a.createElement("p",null,n),h.a.createElement("p",null,h.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",className:"button",href:r},b.a.I18n.t("upgradeNow"))))}return null},ji=function(e){function t(e){var a;return k()(this,t),(a=C()(this,T()(t).call(this,e))).state={item:{},loading:!0},a}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){var e=this.props.match;window.scrollTo(0,0),this.loadItem(e.params.id)}},{key:"componentDidUpdate",value:function(e){e.match.params.id!==this.props.match.params.id&&this.loadItem(this.props.match.params.id)}},{key:"loadItem",value:function(e){var t=this,a=this.props.history;this.setState({loading:!0}),b.a.Modal.loading(!0),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:window.mailpoet_display_detailed_stats?"stats":"newsletters",action:window.mailpoet_display_detailed_stats?"get":"getWithStats",data:{id:e}}).always((function(){b.a.Modal.loading(!1)})).done((function(e){t.setState({loading:!1,item:e.data})})).fail((function(e){var n;b.a.Notice.error(m()(n=e.errors).call(n,(function(e){return e.message})),{scroll:!0}),t.setState({loading:!1,item:{}},(function(){a.push("/")}))}))}},{key:"render",value:function(){var e,t=this.state,a=t.item,n=t.loading,r=a,i=this.props,o=i.match,l=i.location;return n||!r.queue?h.a.createElement("div",null,h.a.createElement("h1",{className:"title"},b.a.I18n.t("statsTitle"),h.a.createElement(Ke.b,{className:"page-title-action",to:"/"},b.a.I18n.t("backToList")))):h.a.createElement("div",null,h.a.createElement("h1",{className:"title"},s()(e="".concat(b.a.I18n.t("statsTitle"),": ")).call(e,r.subject),h.a.createElement(Ke.b,{className:"page-title-action",to:"/"},b.a.I18n.t("backToList"))),h.a.createElement("div",{className:"mailpoet_stat_triple-spaced"},h.a.createElement("div",{className:"mailpoet_stat_info"},h.a.createElement(Fi,{newsletter:r})),h.a.createElement("div",{className:"mailpoet_stat_general"},h.a.createElement(Li,{newsletter:r})),h.a.createElement("div",{style:{clear:"both"}})),h.a.createElement("h2",null,b.a.I18n.t("clickedLinks")),h.a.createElement("div",{className:"mailpoet_stat_triple-spaced"},_.a.applyFilters("mailpoet_newsletters_clicked_links_table",h.a.createElement(Mi,null),r.clicked_links)),h.a.createElement("div",{className:"mailpoet_stat_triple-spaced"},_.a.applyFilters("mailpoet_newsletters_purchased_products",null,r)),h.a.createElement("h2",null,b.a.I18n.t("subscriberEngagement")),_.a.applyFilters("mailpoet_newsletters_subscriber_engagement",h.a.createElement(Mi,null),l,o.params,r))}}]),t}(h.a.Component);ji.propTypes={match:q.a.shape({params:q.a.object.isRequired}).isRequired,location:q.a.object.isRequired,history:q.a.shape({push:q.a.func.isRequired}).isRequired};var Vi,Bi=Object(B.withRouter)(ji),zi=_.a.applyFilters("mailpoet_newsletters_before_router",s()(Vi=[{path:"/standard/(.*)?",component:ai},{path:"/welcome/(.*)?",component:pi},{path:"/notification/history/:parent_id/(.*)?",component:Si},{path:"/notification/(.*)?",component:vi},{path:"/new/standard",component:Rr},{path:"/new/notification",component:Or},{path:"/new/welcome",component:qr},{path:"/new",component:Lt},{name:"template",path:"/template/:id",component:sn},{path:"/send/congratulate/:id",component:xr},{path:"/send/:id",component:tr},{path:"/sending-status/:id/(.*)?",component:Pi},{path:"/stats/:id/(.*)?",component:Bi}]).call(Vi,l()(window.mailpoet_automatic_emails?m()(g.a).call(g.a,window.mailpoet_automatic_emails,(function(e){return{path:"new/".concat(e.slug),name:e.slug,component:U,data:{email:e}}})):[]))),Ui=document.getElementById("newsletters_container");Ui&&(window.mailpoet_listing=oe.a.render(h.a.createElement((function(){return h.a.createElement(ja.Provider,{value:Ma(window)},h.a.createElement(Ke.a,null,h.a.createElement(za,null),h.a.createElement(B.Switch,null,h.a.createElement(B.Route,{exact:!0,path:"/",render:function(){return h.a.createElement(B.Redirect,{to:0===window.mailpoet_newsletters_count?"/new":"/standard"})}}),m()(zi).call(zi,(function(e){return h.a.createElement(B.Route,{key:e.path,path:e.path,component:e.component,name:e.name||null,data:e.data||null,render:e.render})})))))}),null),Ui));var Wi=function(e){return"wp_users"===e.type},$i=function(e){return"woocommerce_users"===e.type},Hi=function(e){return Wi(e)||$i(e)},Ki=[{name:"name",label:b.a.I18n.t("name"),sortable:!0},{name:"description",label:b.a.I18n.t("description")},{name:"subscribed",label:b.a.I18n.t("subscribed")},{name:"unconfirmed",label:b.a.I18n.t("unconfirmed")},{name:"unsubscribed",label:b.a.I18n.t("unsubscribed")},{name:"inactive",label:b.a.I18n.t("inactive")},{name:"bounced",label:b.a.I18n.t("bounced")},{name:"created_at",label:b.a.I18n.t("createdOn"),sortable:!0}],Gi={onTrash:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneSegmentTrashed"):b.a.I18n.t("multipleSegmentsTrashed").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onDelete:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneSegmentDeleted"):b.a.I18n.t("multipleSegmentsDeleted").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onRestore:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneSegmentRestored"):b.a.I18n.t("multipleSegmentsRestored").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)}},Yi=[{name:"trash",label:b.a.I18n.t("moveToTrash"),onSuccess:Gi.onTrash}],Ji=[{name:"edit",link:function(e){return h.a.createElement(Ke.b,{to:"/edit/".concat(e.id)},b.a.I18n.t("edit"))},display:function(e){return!Hi(e)}},{name:"duplicate_segment",label:b.a.I18n.t("duplicate"),onClick:function(e,t){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"segments",action:"duplicate",data:{id:e.id}}).done((function(e){b.a.Notice.success(b.a.I18n.t("listDuplicated").replace("%$1s",e.data.name)),t()})).fail((function(e){var t;b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))},display:function(e){return!Hi(e)}},{name:"read_more",link:function(){return h.a.createElement("a",{href:"https://kb.mailpoet.com/article/133-the-wordpress-users-list",target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("readMore"))},display:function(e){return Wi(e)}},{name:"synchronize_segment",label:b.a.I18n.t("forceSync"),onClick:function(e,t){b.a.Modal.loading(!0),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"segments",action:"synchronize",data:{type:e.type}}).done((function(){b.a.Modal.loading(!1),b.a.Notice.success(b.a.I18n.t("listSynchronized").replace("%$1s",e.name)),t()})).fail((function(e){var t;(b.a.Modal.loading(!1),e.errors.length>0)&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))},display:function(e){return Wi(e)||$i(e)}},{name:"view_subscribers",link:function(e){return h.a.createElement("a",{href:e.subscribers_url,"data-automation-id":"view_subscribers_".concat(e.name)},b.a.I18n.t("viewSubscribers"))}},{name:"trash",display:function(e){return!Hi(e)&&0===e.automated_emails_subjects.length}},{name:"delete",label:b.a.I18n.t("moveToTrash"),onClick:function(e){var t;b.a.Notice.error(b.a.I18n.t("trashDisallowed").replace("%$1s",m()(t=e.automated_emails_subjects).call(t,(function(e){return"'".concat(e,"'")})).join(", ")),{scroll:!0})},display:function(e){return!Hi(e)&&e.automated_emails_subjects.length>0}}],Qi=function(e){function t(){var e,a,n;k()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=C()(this,(e=T()(t)).call.apply(e,s()(a=[this]).call(a,i))),ne()(A()(n),"renderItem",(function(e,t){var a,n=Ye()("manage-column","column-primary","has-row-actions"),r=Number(e.subscribers_count.subscribed||0),i=Number(e.subscribers_count.unconfirmed||0),s=Number(e.subscribers_count.unsubscribed||0),o=Number(e.subscribers_count.inactive||0),l=Number(e.subscribers_count.bounced||0);return a=Hi(e)?h.a.createElement("span",{className:"row-title"},e.name):h.a.createElement(Ke.b,{className:"row-title",to:"/edit/".concat(e.id)},e.name),h.a.createElement("div",null,h.a.createElement("td",{className:n,"data-automation-id":"segment_name_".concat(e.name)},h.a.createElement("strong",null,a),t),h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("description")},h.a.createElement("abbr",null,e.description)),h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("subscribed")},h.a.createElement("abbr",null,r.toLocaleString())),h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("unconfirmed")},h.a.createElement("abbr",null,i.toLocaleString())),h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("unsubscribed")},h.a.createElement("abbr",null,s.toLocaleString())),h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("inactive")},h.a.createElement("abbr",null,o.toLocaleString())),h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("bounced")},h.a.createElement("abbr",null,l.toLocaleString())),h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("createdOn")},h.a.createElement("abbr",null,b.a.Date.format(e.created_at))))})),n}return O()(t,e),S()(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"mailpoet-segments-listing"},h.a.createElement("h1",{className:"title"},b.a.I18n.t("pageTitle")," ",h.a.createElement(Ke.b,{className:"page-title-action",to:"/new"},b.a.I18n.t("new"))),h.a.createElement(He.a,{limit:window.mailpoet_listing_per_page,location:this.props.location,params:this.props.match.params,messages:Gi,search:!1,endpoint:"segments",onRenderItem:this.renderItem,columns:Ki,bulk_actions:Yi,item_actions:Ji,sort_by:"name",sort_order:"asc"}))}}]),t}(h.a.Component);Qi.propTypes={location:q.a.object.isRequired,match:q.a.shape({params:q.a.object}).isRequired};var Zi=Qi,Xi=[{name:"name",label:b.a.I18n.t("name"),type:"text"},{name:"description",label:b.a.I18n.t("description"),type:"textarea",tip:b.a.I18n.t("segmentDescriptionTip")}],es={onUpdate:function(){b.a.Notice.success(b.a.I18n.t("segmentUpdated"))},onCreate:function(){b.a.Notice.success(b.a.I18n.t("segmentAdded")),b.a.trackEvent("Lists > Add new",{"MailPoet Free version":window.mailpoet_version})}},ts=function(e){return h.a.createElement("div",null,h.a.createElement("h1",{className:"title"},b.a.I18n.t("segment"),h.a.createElement(Ke.b,{className:"page-title-action",to:"/"},b.a.I18n.t("backToList"))),h.a.createElement(Ta,{endpoint:"segments",fields:Xi,params:e.match.params,messages:es}))};ts.propTypes={match:q.a.shape({params:q.a.shape({id:q.a.string}).isRequired}).isRequired};var as=ts,ns=document.getElementById("segments_container");ns&&oe.a.render(h.a.createElement((function(){return h.a.createElement(ja.Provider,{value:Ma(window)},h.a.createElement(Ke.a,null,h.a.createElement(za,null),h.a.createElement(B.Switch,null,h.a.createElement(B.Route,{path:"/new",component:as}),h.a.createElement(B.Route,{path:"/edit/:id",component:as}),h.a.createElement(B.Route,{path:"*",component:Zi}))))}),null),ns);var rs=[{name:"name",label:b.a.I18n.t("nameColumn"),sortable:!0},{name:"count",label:b.a.I18n.t("subscribersCountColumn"),sortable:!1},{name:"updated_at",label:b.a.I18n.t("updatedAtColumn"),sortable:!0}],is={onLoadingItems:function(){return b.a.I18n.t("loadingDynamicSegmentItems")},onNoItemsFound:function(){return b.a.I18n.t("noDynamicSegmentItemsFound")},onTrash:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneSegmentTrashed"):b.a.I18n.t("multipleSegmentsTrashed").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onDelete:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneSegmentDeleted"):b.a.I18n.t("multipleSegmentsDeleted").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onRestore:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneSegmentRestored"):b.a.I18n.t("multipleSegmentsRestored").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)}},ss=[{name:"edit",link:function(e){return h.a.createElement(Ke.b,{to:"/edit/".concat(e.id)},b.a.I18n.t("edit"))}},{name:"view_subscribers",link:function(e){return h.a.createElement("a",{href:e.subscribers_url},b.a.I18n.t("viewSubscribers"))}},{name:"trash"}];function os(e,t){return h.a.createElement(h.a.Fragment,null,h.a.createElement("td",{"data-colname":b.a.I18n.t("nameColumn")},h.a.createElement("strong",null,e.name),t),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("subscribersCountColumn")},de()(e.count,10).toLocaleString()),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("updatedAtColumn")},b.a.Date.format(e.updated_at)))}function ls(e){return h.a.createElement(h.a.Fragment,null,h.a.createElement("h1",{className:"title"},b.a.I18n.t("pageTitle")," ",h.a.createElement(Ke.b,{className:"page-title-action",to:"/new","data-automation-id":"new-segment"},b.a.I18n.t("new"))),h.a.createElement(He.a,{limit:window.mailpoet_listing_per_page,location:e.location,params:e.match.params,search:!0,onRenderItem:os,endpoint:"dynamic_segments",columns:rs,messages:is,sort_by:"created_at",sort_order:"desc",item_actions:ss}),h.a.createElement("p",{className:"mailpoet_sending_methods_help help"},h.a.createElement("b",null,b.a.I18n.t("segmentsTip"),":")," ",b.a.I18n.t("segmentsTipText")," ",h.a.createElement("a",{href:"https://kb.mailpoet.com/article/237-guide-to-subscriber-segmentation?utm_source=plugin&utm_medium=segments&utm_campaign=helpdocs","data-beacon-article":"5a574bd92c7d3a194368233e",target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("segmentsTipLink"))))}ls.propTypes={location:q.a.object.isRequired,match:q.a.shape({params:q.a.object}).isRequired};var cs=ls,us=a(75),ps=a.n(us),ms={};var ds=function(e){return function(e){return"clicked"!==e.action&&"notClicked"!==e.action?ps.a.resolve():e.newsletter_id?void 0!==ms[e.newsletter_id]?ps.a.resolve(ms[e.newsletter_id]):b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletter_links",action:"get",data:{newsletterId:e.newsletter_id}}).then((function(t){var a=t.data;return ms[e.newsletter_id]=a,a})).fail((function(e){var t;b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})})):ps.a.resolve()}(e).then((function(e){var t,a=[{name:"action",type:"select",values:{"":b.a.I18n.t("selectActionPlaceholder"),opened:b.a.I18n.t("emailActionOpened"),notOpened:b.a.I18n.t("emailActionNotOpened"),clicked:b.a.I18n.t("emailActionClicked"),notClicked:b.a.I18n.t("emailActionNotClicked")}},{name:"newsletter_id",type:"selection",resetSelect2OnUpdate:!0,endpoint:"newsletters_list",placeholder:b.a.I18n.t("selectNewsletterPlaceholder"),forceSelect2:!0,getLabel:function(e){var t,a=e.sent_at?b.a.Date.format(e.sent_at):b.a.I18n.t("notSentYet");return s()(t="".concat(e.subject," (")).call(t,a,")")}}];return e?s()(t=[]).call(t,a,[{name:"link_id",type:"selection",placeholder:b.a.I18n.t("selectLinkPlaceholder"),forceSelect2:!0,getLabel:function(e){return e.url},values:e}]):a}))},hs={name:"action",type:"select",values:{"":b.a.I18n.t("selectActionPlaceholder"),purchasedCategory:b.a.I18n.t("wooPurchasedCategory"),purchasedProduct:b.a.I18n.t("wooPurchasedProduct")}},fs={name:"category_id",type:"selection",endpoint:"product_categories",resetSelect2OnUpdate:!0,placeholder:b.a.I18n.t("selectWooPurchasedCategory"),forceSelect2:!0,getLabel:g.a.property("cat_name"),getValue:g.a.property("term_id")},gs={name:"product_id",type:"selection",endpoint:"products",resetSelect2OnUpdate:!0,placeholder:b.a.I18n.t("selectWooPurchasedProduct"),forceSelect2:!0,getLabel:g.a.property("title"),getValue:g.a.property("ID")},vs={onUpdate:function(){return b.a.Notice.success(b.a.I18n.t("segmentUpdated"))},onCreate:function(e){b.a.Notice.success(b.a.I18n.t("segmentAdded")),b.a.trackEvent("Segments > Add new",{"MailPoet Free version":window.mailpoet_version,type:e.segmentType||"unknown type",subtype:e.action||e.wordpressRole||"unknown subtype"})}};var _s=function(e){function t(e){var a,n,r,i;return k()(this,t),(i=C()(this,T()(t).call(this,e))).state={item:{segmentType:"email"},childFields:[],errors:void 0},i.loadFields(),i.handleValueChange=w()(a=i.handleValueChange).call(a,A()(i)),i.handleSave=w()(n=i.handleSave).call(n,A()(i)),i.onItemLoad=w()(r=i.onItemLoad).call(r,A()(i)),i}return O()(t,e),S()(t,[{key:"onItemLoad",value:function(e){var t=g.a.mapObject(e,(function(e){return g.a.isNull(e)?"":e}));this.setState({item:t},this.loadFields)}},{key:"getFields",value:function(){var e,t,a=this.state.childFields;return[{name:"name",label:b.a.I18n.t("name"),type:"text"},{name:"description",label:b.a.I18n.t("description"),type:"textarea",tip:b.a.I18n.t("descriptionTip")},{name:"filters",description:"main",label:b.a.I18n.t("formSegmentTitle"),fields:s()(e=[{name:"segmentType",type:"select",values:(t={email:b.a.I18n.t("email"),userRole:b.a.I18n.t("wpUserRole")},window.is_woocommerce_active&&(t.woocommerce=b.a.I18n.t("woocommerce")),t)}]).call(e,l()(a))}]}},{key:"getChildFields",value:function(){var e,t,a,n=this.state.item;switch(n.segmentType){case"userRole":return ps.a.resolve([{name:"wordpressRole",type:"select",placeholder:b.a.I18n.t("selectUserRolePlaceholder"),values:be()(a=window.wordpress_editable_roles_list).call(a,(function(e,t){return g.a.extend({},e,ne()({},t.role_id,t.role_name))}),{})}]);case"email":return ds(n);case"woocommerce":return t=[hs],"purchasedCategory"===(e=n).action&&t.push(fs),"purchasedProduct"===e.action&&t.push(gs),ps.a.resolve(t);default:return[]}}},{key:"loadFields",value:function(){var e=this;this.getChildFields().then((function(t){return e.setState({childFields:t})}))}},{key:"handleValueChange",value:function(e){var t=this.state.item;return t[e.target.name]=e.target.value,this.setState({item:t}),this.loadFields(),!0}},{key:"handleSave",value:function(e){var t=this,a=this.state.item,n=this.props,r=n.history,i=n.match;e.preventDefault(),this.setState({errors:void 0}),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"dynamic_segments",action:"save",data:a}).done((function(){r.push("/"),void 0!==i.params.id?vs.onUpdate():vs.onCreate(a)})).fail((function(e){e.errors.length>0&&t.setState({errors:e.errors})}))}},{key:"render",value:function(){var e=this.getFields(),t=this.props.match,a=this.state,n=a.item,r=a.errors;return h.a.createElement(h.a.Fragment,null,h.a.createElement("h1",{className:"title"},b.a.I18n.t("formPageTitle")," ",h.a.createElement(Ke.b,{className:"page-title-action",to:"/"},b.a.I18n.t("backToList"))),h.a.createElement(Ta,{endpoint:"dynamic_segments",fields:e,params:t.params,messages:vs,onChange:this.handleValueChange,onSubmit:this.handleSave,onItemLoad:this.onItemLoad,item:n,errors:r}))}}]),t}(h.a.Component);_s.propTypes={match:q.a.shape({params:q.a.shape({id:q.a.string}).isRequired}).isRequired,history:q.a.shape({push:q.a.func.isRequired}).isRequired};var bs=Object(B.withRouter)(_s),ys=document.getElementById("dynamic_segments_container");ys&&oe.a.render(h.a.createElement((function(){return h.a.createElement(ja.Provider,{value:Ma(window)},h.a.createElement(Ke.a,null,h.a.createElement(za,null),h.a.createElement(B.Switch,null,h.a.createElement(B.Route,{path:"/new",component:bs}),h.a.createElement(B.Route,{path:"/edit/:id",component:bs}),h.a.createElement(B.Route,{path:"*",component:cs}))))}),null),ys);var ws=function(e){function t(e){var a,n;return k()(this,t),(n=C()(this,T()(t).call(this,e))).state={senderAddress:e.senderAddress,senderName:e.senderName,replyToName:e.replyToName,replyToAddress:e.replyToAddress},n.onChange=w()(a=n.onChange).call(a,A()(n)),n}return O()(t,e),S()(t,[{key:"onChange",value:function(e,t){var a={};a[e]=t.target.value,this.setState(a)}},{key:"render",value:function(){return h.a.createElement(h.a.Fragment,null,h.a.createElement("p",null,h.a.createElement("label",{htmlFor:"settings[from_name]"},b.a.I18n.t("from")),h.a.createElement("input",{type:"text",id:"settings[from_name]","data-automation-id":"settings-page-from-name-field",name:"sender[name]",value:this.state.senderName,onChange:Object(f.partial)(this.onChange,"senderName"),placeholder:b.a.I18n.t("yourName")}),h.a.createElement("input",{type:"email",id:"settings[from_email]",name:"sender[address]","data-automation-id":"settings-page-from-email-field",value:this.state.senderAddress,onChange:Object(f.partial)(this.onChange,"senderAddress"),placeholder:"from@mydomain.com"})),h.a.createElement("div",{className:"regular-text"},h.a.createElement(bn,{emailAddress:this.state.senderAddress,mssActive:this.props.mssActive})),h.a.createElement("p",null,h.a.createElement("label",{htmlFor:"settings[reply_name]"},b.a.I18n.t("replyTo")),h.a.createElement("input",{type:"text",id:"settings[reply_name]",name:"reply_to[name]",value:this.state.replyToName,onChange:Object(f.partial)(this.onChange,"replyToName"),placeholder:b.a.I18n.t("yourName")}),h.a.createElement("input",{type:"email",id:"settings[reply_email]",name:"reply_to[address]",value:this.state.replyToAddress,onChange:Object(f.partial)(this.onChange,"replyToAddress"),placeholder:"reply_to@mydomain.com"})))}}]),t}(h.a.Component);ws.propTypes={senderAddress:q.a.string.isRequired,senderName:q.a.string.isRequired,replyToAddress:q.a.string.isRequired,replyToName:q.a.string.isRequired,mssActive:q.a.bool.isRequired};var Es=ws,ks=document.getElementById("settings_sender_container");ks&&oe.a.render(h.a.createElement((function(){return h.a.createElement(ja.Provider,{value:Ma(window)},h.a.createElement(za,null),h.a.createElement(Es,{senderAddress:window.mailpoet_settings_sender_adddress,senderName:window.mailpoet_settings_sender_name,replyToAddress:window.mailpoet_settings_reply_to_address,replyToName:window.mailpoet_settings_reply_to_name,mssActive:window.mailpoet_mss_active}))}),null),ks);var Is=[{name:"name",label:b.a.I18n.t("formName"),sortable:!0},{name:"segments",label:b.a.I18n.t("segments")},{name:"signups",label:b.a.I18n.t("signups")},{name:"created_at",label:b.a.I18n.t("createdOn"),sortable:!0}],Ss={onTrash:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneFormTrashed"):b.a.I18n.t("multipleFormsTrashed").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onDelete:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneFormDeleted"):b.a.I18n.t("multipleFormsDeleted").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onRestore:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneFormRestored"):b.a.I18n.t("multipleFormsRestored").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)}},Ns=[{name:"trash",label:b.a.I18n.t("moveToTrash"),onSuccess:Ss.onTrash}],Cs=[{name:"edit",label:b.a.I18n.t("edit"),link:function(e){return h.a.createElement("a",{href:"admin.php?page=mailpoet-form-editor&id=".concat(e.id)},b.a.I18n.t("edit"))}},{name:"duplicate",label:b.a.I18n.t("duplicate"),onClick:function(e,t){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"forms",action:"duplicate",data:{id:e.id}}).done((function(e){var a=e.data.name?e.data.name:b.a.I18n.t("noName");b.a.Notice.success(b.a.I18n.t("formDuplicated").replace("%$1s",a)),t()})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}},{name:"trash"}],xs=function(e){function t(){var e,a,n;k()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=C()(this,(e=T()(t)).call.apply(e,s()(a=[this]).call(a,i))),ne()(A()(n),"createForm",(function(){b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"forms",action:"create"}).done((function(e){b.a.trackEvent("Forms > Add New",{"MailPoet Free version":window.mailpoet_version}),qt()((function(){window.location=window.mailpoet_form_edit_url+e.data.id}),200)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))})),ne()(A()(n),"renderItem",(function(e,t){var a,n,r,i=Ye()("manage-column","column-primary","has-row-actions"),o=m()(a=K()(n=window.mailpoet_segments).call(n,(function(t){return-1!==ie.a.inArray(t.id,e.segments)}))).call(a,(function(e){return e.name})).join(", ");"user"===e.settings.segments_selected_by&&(o=s()(r="".concat(b.a.I18n.t("userChoice")," ")).call(r,o));return h.a.createElement("div",null,h.a.createElement("td",{className:i},h.a.createElement("strong",null,h.a.createElement("a",{className:"row-title",href:"admin.php?page=mailpoet-form-editor&id=".concat(e.id)},e.name?e.name:"(".concat(b.a.I18n.t("noName"),")"))),t),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("segments")},o),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("signups")},e.signups),h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("createdOn")},h.a.createElement("abbr",null,b.a.Date.format(e.created_at))))})),n}return O()(t,e),S()(t,[{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("h1",{className:"title"},b.a.I18n.t("pageTitle")," ",h.a.createElement("button",{className:"page-title-action",onClick:this.createForm,"data-automation-id":"create_new_form",type:"button"},b.a.I18n.t("new"))),h.a.createElement(He.a,{limit:window.mailpoet_listing_per_page,location:this.props.location,params:this.props.match.params,messages:Ss,search:!1,endpoint:"forms",onRenderItem:this.renderItem,columns:Is,bulk_actions:Ns,item_actions:Cs}))}}]),t}(h.a.Component);xs.propTypes={location:q.a.object.isRequired,match:q.a.shape({params:q.a.object}).isRequired};var Ts=it(xs),Rs=document.getElementById("forms_container");Rs&&oe.a.render(h.a.createElement((function(){return h.a.createElement(ja.Provider,{value:Ma(window)},h.a.createElement(Ke.a,null,h.a.createElement(za,null),h.a.createElement(B.Route,{path:"*",component:Ts})))}),null),Rs);var As=a(55),Ps=a.n(As),Os=b.a;ie()("#mailpoet_settings").length>0&&(Os.Router=new(Ps.a.Router.extend({routes:{"":"defaultRoute","mta(/:group)":"sendingMethodGroup","(:tab)":"tabs"},defaultRoute:function(){this.tabs("basics")},sendingMethodGroup:function(e){this.tabs("mta"),ie()("#mailpoet_sending_method_setup, .mailpoet_sending_method").hide(),ie()(".mailpoet_settings_submit").hide(),null===e?ie()(".mailpoet_sending_methods, .mailpoet_sending_methods_help").fadeIn():(ie()("#mailpoet_mta_spf")["mailpoet"===e?"hide":"show"](),ie()(".mailpoet_sending_methods, .mailpoet_sending_methods_help").hide(),ie()('.mailpoet_sending_method[data-group="'+e+'"]').show(),ie()("#mailpoet_sending_method_setup").fadeIn())},tabs:function(e){"woocommerce"!==e||window.mailpoet_woocommerce_active?(ie()(".nav-tab-wrapper a").removeClass("nav-tab-active"),ie()(".mailpoet_tab_panel, .mailpoet_section").hide(),ie()('a.nav-tab[href="#'+e+'"]').addClass("nav-tab-active").blur(),ie()('.mailpoet_tab_panel[data-tab="'+e+'"]').length>0&&ie()('.mailpoet_tab_panel[data-tab="'+e+'"]').show(),"premium"!==e&&ie()(".mailpoet_settings_submit").show(),"premium"===e&&ie()(".nav-tab-wrapper .nav-tab").addClass("nav-tab-reload"),Os.trackEvent("User has clicked a tab in Settings",{"MailPoet Free version":window.mailpoet_version,"Tab ID":e})):window.location.hash="#basics"}})),window.addEventListener("hashchange",(function(e){e.preventDefault();var t=e.oldURL.split("#")[1]||null,a=e.newURL.split("#")[1]||null;"premium"!==t&&"premium"!==a||window.location.reload()})),ie()(document).ready((function(){Ps.a.History.started||Ps.a.history.start(),ie()(".nav-tab").click((function(e){e.target.classList.contains("nav-tab-reload")&&(e.preventDefault(),window.history.replaceState(null,null,e.target.href),window.location.reload())}))})));var Ls=function(e){return e.keyValid?h.a.createElement("div",{className:"mailpoet_success_item mailpoet_success"},b.a.I18n.t("premiumTabKeyValidMessage")):h.a.createElement("div",{className:"mailpoet_error_item mailpoet_error"},b.a.I18n.t("premiumTabKeyNotValidMessage"))};Ls.propTypes={keyValid:q.a.bool.isRequired};var Ds=Ls,qs={KEY_INVALID:0,KEY_VALID_MSS_NOT_ACTIVE:1,KEY_VALID_MSS_ACTIVE:2},Fs=function(e){switch(e.keyStatus){case qs.KEY_VALID_MSS_ACTIVE:return h.a.createElement("div",{className:"mailpoet_success mailpoet_mss_key_valid"},b.a.I18n.t("premiumTabMssActiveMessage"));case qs.KEY_VALID_MSS_NOT_ACTIVE:return a=e.activationCallback,h.a.createElement("div",{className:"mailpoet_error"},b.a.I18n.t("premiumTabMssNotActiveMessage")," ",h.a.createElement("button",{type:"button",className:"button-link",onClick:a},b.a.I18n.t("premiumTabMssActivateMessage")));case qs.KEY_INVALID:return t=e.keyMessage,h.a.createElement("div",{className:"mailpoet_error"},t||b.a.I18n.t("premiumTabMssKeyNotValidMessage"));default:return null}var t,a};Fs.propTypes={keyStatus:q.a.number.isRequired,keyMessage:q.a.string,activationCallback:q.a.func.isRequired},Fs.defaultProps={keyMessage:null};var Ms={INSTALL_INSTALLING:0,INSTALL_ACTIVATING:1,INSTALL_DONE:2,INSTALL_INSTALLING_ERROR:3,INSTALL_ACTIVATING_ERROR:4,ACTIVATE_ACTIVATING:5,ACTIVATE_DONE:6,ACTIVATE_ERROR:7},js="premium-installation-message",Vs=function(){return h.a.createElement("div",{className:"mailpoet_subitem",key:"".concat(js,"-installing")},b.a.I18n.t("premiumTabPremiumInstallationInstallingMessage"))},Bs=function(){return h.a.createElement("div",{className:"mailpoet_subitem",key:"".concat(js,"-activating")},b.a.I18n.t("premiumTabPremiumInstallationActivatingMessage"))},zs=function(){return h.a.createElement("div",{className:"mailpoet_subitem",key:"".concat(js,"-done")},h.a.createElement("strong",null,b.a.I18n.t("premiumTabPremiumInstallationActiveMessage")))},Us=function(){var e=["https://account.mailpoet.com","https://www.mailpoet.com/support/"],t=mt()(b.a.I18n.t("premiumTabPremiumInstallationErrorMessage"),/\[link\](.*?)\[\/link\]/g,(function(t,a){return h.a.createElement("a",{key:a,href:e.shift(),target:"_blank",rel:"noopener noreferrer"},t)}));return h.a.createElement("div",{className:"mailpoet_subitem",key:"".concat(js,"-error")},h.a.createElement("strong",null,t))},Ws=function(e){switch(e.installationStatus){case Ms.INSTALL_INSTALLING:return Vs();case Ms.INSTALL_ACTIVATING:return[Vs(),Bs()];case Ms.INSTALL_DONE:return[Vs(),Bs(),zs()];case Ms.INSTALL_INSTALLING_ERROR:return[Vs(),Us()];case Ms.INSTALL_ACTIVATING_ERROR:return[Vs(),Bs(),Us()];case Ms.ACTIVATE_ACTIVATING:return Bs();case Ms.ACTIVATE_DONE:return[Bs(),zs()];case Ms.ACTIVATE_ERROR:return[Bs(),Us()];default:return null}};Ws.propTypes={installationStatus:q.a.number};var $s=0,Hs=1,Ks=2,Gs=3,Ys=4,Js=5,Qs=function(e,t,a,n){switch(e){case Gs:return h.a.createElement("div",{className:"mailpoet_success"},b.a.I18n.t("premiumTabPremiumActiveMessage"));case Ks:return function(e){return h.a.createElement("div",{className:"mailpoet_error"},b.a.I18n.t("premiumTabPremiumNotActiveMessage")," ",h.a.createElement("button",{type:"button",className:"button-link",onClick:e},b.a.I18n.t("premiumTabPremiumActivateMessage")))}(n);case Hs:return function(e){return h.a.createElement("div",{className:"mailpoet_error"},b.a.I18n.t("premiumTabPremiumNotInstalledMessage")," ",h.a.createElement("button",{type:"button",className:"button-link",onClick:e},b.a.I18n.t("premiumTabPremiumInstallMessage")))}(a);case Ys:return h.a.createElement("div",{className:"mailpoet_success"},b.a.I18n.t("premiumTabPremiumInstallingMessage"));case Js:return h.a.createElement("div",{className:"mailpoet_success"},b.a.I18n.t("premiumTabPremiumActivatingMessage"));case $s:return function(e){return h.a.createElement("div",{className:"mailpoet_error"},e||b.a.I18n.t("premiumTabPremiumKeyNotValidMessage"))}(t);default:return null}},Zs=function(e){var t=Qs(e.keyStatus,e.keyMessage,e.installationCallback,e.activationCallback);return t?h.a.createElement(h.a.Fragment,null,t,h.a.createElement(Ws,{installationStatus:e.installationStatus})):null};Zs.propTypes={keyStatus:q.a.number.isRequired,keyMessage:q.a.string,installationStatus:q.a.number,installationCallback:q.a.func.isRequired,activationCallback:q.a.func.isRequired},Zs.defaultProps={keyMessage:null,installationStatus:null};var Xs=function(){var e=Pt()(Rt.a.mark((function e(t,a){return Rt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"services",action:a,data:{key:t}}));case 1:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),eo=function(){var e=Pt()(Rt.a.mark((function e(t){return Rt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"premium",action:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),to=function(){var e=Pt()(Rt.a.mark((function e(t){return Rt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"settings",action:"set",data:{mta_group:"mailpoet",mta:{method:"MailPoet",mailpoet_api_key:t},signup_confirmation:{enabled:"1"}}}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ao=function(e){var t=Object(d.useState)(e.activationKey),a=fe()(t,2),n=a[0],r=a[1],i=Object(d.useState)(n?e.premiumStatus:null),s=fe()(i,2),o=s[0],l=s[1],c=Object(d.useState)(null),u=fe()(c,2),p=u[0],f=u[1],g=Object(d.useState)(null),v=fe()(g,2),_=v[0],y=v[1],w=Object(d.useState)(n?e.mssStatus:null),E=fe()(w,2),k=E[0],I=E[1],S=Object(d.useState)(null),N=fe()(S,2),C=N[0],x=N[1],T=Object(d.useMemo)((function(){return o>$s||k>qs.KEY_INVALID||(null===o||null===k)&&null}),[o,k]),R=function(){var e=Pt()(Rt.a.mark((function e(){var t,a,n,r,i,s=arguments;return Rt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]&&s[0],a=Ms,n=t?a.INSTALL_ACTIVATING:a.ACTIVATE_ACTIVATING,r=t?a.INSTALL_DONE:a.ACTIVATE_DONE,i=t?a.INSTALL_ACTIVATING_ERROR:a.ACTIVATE_ERROR,y(n),e.prev=6,e.next=9,eo("activatePlugin");case 9:e.next=15;break;case 11:return e.prev=11,e.t0=e.catch(6),y(i),e.abrupt("return",!1);case 15:return y(r),e.abrupt("return",!0);case 17:case"end":return e.stop()}}),e,null,[[6,11]])})));return function(){return e.apply(this,arguments)}}(),A=function(){var e=Pt()(Rt.a.mark((function e(){return Rt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y(Ms.INSTALL_INSTALLING),e.prev=1,e.next=4,eo("installPlugin");case 4:e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(1),y(Ms.INSTALL_INSTALLING_ERROR),e.abrupt("return",!1);case 10:return e.abrupt("return",R(!0));case 11:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(){return e.apply(this,arguments)}}(),P=function(){var t=Pt()(Rt.a.mark((function t(){var a,r,i;return Rt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Xs(n,"checkPremiumKey");case 3:if(a=t.sent,f(null),r=a.meta.premium_plugin_active,a.meta.premium_plugin_installed){t.next=13;break}return l(Ys),t.next=10,A();case 10:r=t.sent,t.next=21;break;case 13:if(a.meta.premium_plugin_active){t.next=20;break}return l(Js),t.next=17,R();case 17:r=t.sent,t.next=21;break;case 20:l(Gs);case 21:b.a.trackEvent("User has validated a Premium key",{"MailPoet Free version":window.mailpoet_version,"Premium plugin is active":r}),t.next=29;break;case 24:t.prev=24,t.t0=t.catch(0),l($s),f(m()(i=t.t0.errors).call(i,(function(e){return e.message})).join(" ")||null),b.a.trackEvent("User has failed to validate a Premium key",{"MailPoet Free version":window.mailpoet_version,"Premium plugin is active":e.premiumPluginActive});case 29:case"end":return t.stop()}}),t,null,[[0,24]])})));return function(){return t.apply(this,arguments)}}();function O(e){return L.apply(this,arguments)}function L(){return(L=Pt()(Rt.a.mark((function e(t){var a,r;return Rt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Xs(n,"checkMSSKey");case 3:if(a=e.sent,x(a.data.message||null),!t){e.next=11;break}return e.next=8,to(n);case 8:I(qs.KEY_VALID_MSS_ACTIVE),e.next=12;break;case 11:I(qs.KEY_VALID_MSS_NOT_ACTIVE);case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(0),I(qs.KEY_INVALID),x(m()(r=e.t0.errors).call(r,(function(e){return e.message})).join(" ")||null);case 18:window.updateMSSActivationUI();case 19:case"end":return e.stop()}}),e,null,[[0,14]])})))).apply(this,arguments)}return h.a.createElement("table",{className:"form-table"},h.a.createElement("tbody",null,h.a.createElement("tr",null,h.a.createElement("th",{scope:"row"},h.a.createElement("label",{htmlFor:"mailpoet_premium_key"},b.a.I18n.t("premiumTabActivationKeyLabel")),h.a.createElement("p",{className:"description"},b.a.I18n.t("premiumTabDescription"))),h.a.createElement("td",null,h.a.createElement("div",null,h.a.createElement("input",{type:"text",id:"mailpoet_premium_key",className:"regular-text",name:"premium[premium_key]",value:n||"",onChange:function(e){var t;r(ya()(t=e.target.value).call(t)||null),l(null),y(null),I(null)}}),h.a.createElement("button",{type:"button",id:"mailpoet_premium_key_verify",className:"button-secondary",onClick:function(){var e=Pt()(Rt.a.mark((function e(t){var a;return Rt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=3;break}return b.a.Notice.error(b.a.I18n.t("premiumTabNoKeyNotice"),{scroll:!0}),e.abrupt("return");case 3:return l(null),y(null),I(null),b.a.Modal.loading(!0),a=t.isTrusted,e.next=10,O(a);case 10:return e.next=12,P();case 12:b.a.Modal.loading(!1);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},b.a.I18n.t("premiumTabVerifyButton"))),null!==T&&h.a.createElement("div",{className:"key-activation-messages"},h.a.createElement(Ds,{keyValid:T}),null!==k&&h.a.createElement(Fs,{keyStatus:k,keyMessage:C,activationCallback:function(){return O(!0)}}),null!==o&&h.a.createElement(Zs,{keyStatus:o,keyMessage:p,installationStatus:_,installationCallback:A,activationCallback:function(){return R()}}))))))};ao.propTypes={activationKey:q.a.string,premiumStatus:q.a.number.isRequired,mssStatus:q.a.number.isRequired,premiumPluginActive:q.a.bool.isRequired},ao.defaultProps={activationKey:null};var no,ro,io,so=document.getElementById("settings-premium-tab");if(so){oe.a.render(h.a.createElement(ao,{activationKey:window.mailpoet_activation_key,premiumStatus:(no=window.mailpoet_premium_key_valid,ro=window.mailpoet_premium_plugin_installed,io=!!window.mailpoet_premium_version,no?io?Gs:ro?Ks:Hs:$s),mssStatus:function(){var e=window.mailpoet_mss_key_valid,t=window.mailpoet_mss_active;return e?t?qs.KEY_VALID_MSS_ACTIVE:qs.KEY_VALID_MSS_NOT_ACTIVE:qs.KEY_INVALID}(),premiumPluginActive:!!window.mailpoet_premium_version}),so)}var oo=[{name:"knowledgeBase",label:b.a.I18n.t("tabKnowledgeBaseTitle"),link:"/knowledgeBase"},{name:"systemStatus",label:b.a.I18n.t("tabSystemStatusTitle"),link:"/systemStatus"},{name:"systemInfo",label:b.a.I18n.t("tabSystemInfoTitle"),link:"/systemInfo"},{name:"yourPrivacy",label:b.a.I18n.t("tabYourPrivacyTitle"),link:"/yourPrivacy"}];function lo(e){var t=m()(oo).call(oo,(function(t){var a=Ye()("nav-tab",{"nav-tab-active":e.tab===t.name});return h.a.createElement(Ke.b,{key:"tab-".concat(t.name),className:a,to:t.link},t.label)}));return h.a.createElement("h2",{className:"nav-tab-wrapper"},t)}lo.propTypes={tab:q.a.string},lo.defaultProps={tab:"knowledgeBase"};var co=lo;var uo=function(){return h.a.createElement("div",null,h.a.createElement(co,{tab:"knowledgeBase"}),h.a.createElement("p",null,b.a.I18n.t("knowledgeBaseIntro")),h.a.createElement("ul",null,h.a.createElement("li",null,h.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://kb.mailpoet.com/category/116-common-problems"},"Common Problems")),h.a.createElement("li",null,h.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://kb.mailpoet.com/category/165-newsletters"},"Newsletters")),h.a.createElement("li",null,h.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://kb.mailpoet.com/category/156-migration-questions"},"Migration Questions")),h.a.createElement("li",null,h.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://kb.mailpoet.com/category/149-sending-methods"},"Sending Methods")),h.a.createElement("li",null,h.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://kb.mailpoet.com/category/139-subscription-forms"},"Subscription Forms")),h.a.createElement("li",null,h.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://kb.mailpoet.com/category/114-getting-started"},"Getting Started")),h.a.createElement("li",null,h.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://kb.mailpoet.com/category/123-newsletter-designer"},"Newsletter Designer")),h.a.createElement("li",null,h.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://kb.mailpoet.com/category/121-subscribers-and-lists"},"Subscribers and Lists"))),h.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://kb.mailpoet.com/",className:"button button-primary"},b.a.I18n.t("knowledgeBaseButton")))};function po(e){e.target.select()}var mo=function(){var e=window.systemInfoData;return h.a.createElement("div",null,h.a.createElement(co,{tab:"systemInfo"}),h.a.createElement("div",{className:"mailpoet_notice notice inline",style:{marginTop:"1em"}},h.a.createElement("p",null,b.a.I18n.t("systemInfoIntro"))),function(e){if(g.a.isObject(e)){var t,a=m()(t=ma()(e)).call(t,(function(t){var a;return s()(a="".concat(t,": ")).call(a,e[t])}));return h.a.createElement("textarea",{readOnly:!0,onFocus:po,value:a.join("\n"),style:{width:"100%",height:"400px"}})}return h.a.createElement("p",null,b.a.I18n.t("systemInfoDataError"))}(e))},ho=function(e){var t;return h.a.createElement("table",{className:"widefat fixed",style:{maxWidth:e.max_width}},h.a.createElement("tbody",null,m()(t=e.rows).call(t,(function(e){return h.a.createElement("tr",{key:"row_".concat(e.key)},h.a.createElement("td",{className:"row-title"},e.key),h.a.createElement("td",null,e.value))}))))};ho.propTypes={max_width:q.a.string,rows:q.a.arrayOf(q.a.shape({key:q.a.string.isRequired,value:q.a.oneOfType([q.a.string,q.a.number,q.a.element]).isRequired})).isRequired},ho.defaultProps={max_width:"auto"};var fo=ho,go=function(e){return h.a.createElement("span",null,!0===e.children&&e.truthy||!1===e.children&&e.falsy||e.unknown)};go.propTypes={truthy:q.a.string,falsy:q.a.string,unknown:q.a.string,children:q.a.bool},go.defaultProps={truthy:b.a.I18n.t("yes"),falsy:b.a.I18n.t("no"),unknown:b.a.I18n.t("unknown"),children:null};var vo=go,_o=function(e){var t,a=e.status_data,n={active:b.a.I18n.t("running"),inactive:b.a.I18n.t("cronWaiting")},r=We()(a.last_error)?h.a.createElement(h.a.Fragment,null,m()(t=a.last_error).call(t,(function(e){return h.a.createElement("div",{key:e.worker},e.worker,":"," ",h.a.createElement("i",null,e.message))}))):a.last_error;return h.a.createElement("div",null,h.a.createElement("h2",null,b.a.I18n.t("systemStatusCronStatusTitle")),h.a.createElement(fo,{max_width:"400px",rows:[{key:b.a.I18n.t("accessible"),value:h.a.createElement(vo,null,a.accessible)},{key:b.a.I18n.t("status"),value:n[a.status]?n[a.status]:b.a.I18n.t("unknown")},{key:b.a.I18n.t("lastUpdated"),value:a.updated_at?b.a.Date.full(1e3*a.updated_at):b.a.I18n.t("unknown")},{key:b.a.I18n.t("lastRunStarted"),value:a.run_accessed_at?b.a.Date.full(1e3*a.run_started_at):b.a.I18n.t("unknown")},{key:b.a.I18n.t("lastRunCompleted"),value:a.run_completed_at?b.a.Date.full(1e3*a.run_completed_at):b.a.I18n.t("unknown")},{key:b.a.I18n.t("lastSeenError"),value:r||b.a.I18n.t("none")},{key:b.a.I18n.t("lastSeenErrorDate"),value:a.last_error_date?b.a.Date.full(1e3*a.last_error_date):b.a.I18n.t("unknown")}]}))};_o.propTypes={status_data:q.a.shape({accessible:q.a.bool,status:q.a.string,updated_at:q.a.number,run_accessed_at:q.a.number,run_completed_at:q.a.number}).isRequired};var bo=_o,yo=function(e){return h.a.createElement("tr",null,h.a.createElement("td",{className:"column column-primary"},e.task.id),h.a.createElement("td",{className:"column"},e.task.type),h.a.createElement("td",{className:"column"},e.task.newsletter?h.a.createElement("a",{href:e.task.newsletter.preview_url,"data-newsletter-id":e.task.newsletter.newsletter_id,"data-queue-id":e.task.newsletter.queue_id,target:"_blank",rel:"noopener noreferrer"},e.task.newsletter.subject||b.a.I18n.t("preview")):b.a.I18n.t("none")),h.a.createElement("td",{className:"column"},e.task.priority),e.show_scheduled_at?h.a.createElement("td",{className:"column-date"},h.a.createElement("abbr",null,b.a.Date.format(1e3*e.task.scheduled_at))):null,h.a.createElement("td",{className:"column-date"},h.a.createElement("abbr",null,b.a.Date.format(1e3*e.task.updated_at))))};yo.propTypes={show_scheduled_at:q.a.bool,task:q.a.shape({id:q.a.number.isRequired,type:q.a.string.isRequired,priority:q.a.number.isRequired,updated_at:q.a.number.isRequired,scheduled_at:q.a.number,status:q.a.string,newsletter:q.a.shape({newsletter_id:q.a.number.isRequired,queue_id:q.a.number.isRequired,preview_url:q.a.string.isRequired,subject:q.a.string})}).isRequired},yo.defaultProps={show_scheduled_at:!1};var wo=yo,Eo=function(e){return h.a.createElement("tr",null,h.a.createElement("th",{className:"row-title"},"Id"),h.a.createElement("th",{className:"row-title"},b.a.I18n.t("type")),h.a.createElement("th",{className:"row-title"},b.a.I18n.t("email")),h.a.createElement("th",{className:"row-title"},b.a.I18n.t("priority")),e.show_scheduled_at?h.a.createElement("th",{className:"row-title"},b.a.I18n.t("scheduledAt")):null,h.a.createElement("th",{className:"row-title"},b.a.I18n.t("updatedAt")))};Eo.propTypes={show_scheduled_at:q.a.bool},Eo.defaultProps={show_scheduled_at:!1};var ko=Eo,Io=function(e){var t,a=e.show_scheduled_at?6:5;return h.a.createElement("table",{className:"widefat fixed striped"},h.a.createElement("thead",null,h.a.createElement(ko,{show_scheduled_at:e.show_scheduled_at})),h.a.createElement("tbody",null,e.tasks.length?m()(t=e.tasks).call(t,(function(t){return h.a.createElement(wo,{key:t.id,task:t,show_scheduled_at:e.show_scheduled_at})})):h.a.createElement("tr",{className:"no-items"},h.a.createElement("td",{colSpan:a},b.a.I18n.t("nothingToShow")))),h.a.createElement("tfoot",null,h.a.createElement(ko,{show_scheduled_at:e.show_scheduled_at})))};Io.propTypes={show_scheduled_at:q.a.bool,tasks:q.a.arrayOf(wo.propTypes.task).isRequired},Io.defaultProps={show_scheduled_at:!1};var So=Io,No=function(e){var t,a,n,r=e.status_data;return h.a.createElement("div",null,h.a.createElement("h2",null,b.a.I18n.t("systemStatusQueueTitle")),h.a.createElement(fo,{max_width:"400px",rows:[{key:b.a.I18n.t("status"),value:"paused"===r.status?b.a.I18n.t("paused"):b.a.I18n.t("running")},{key:b.a.I18n.t("startedAt"),value:r.started?b.a.Date.full(1e3*r.started):b.a.I18n.t("unknown")},{key:b.a.I18n.t("sentEmails"),value:r.sent||0},{key:b.a.I18n.t("retryAttempt"),value:r.retry_attempt||b.a.I18n.t("none")},{key:b.a.I18n.t("retryAt"),value:r.retry_at?b.a.Date.full(1e3*r.retry_at):b.a.I18n.t("none")},{key:b.a.I18n.t("error"),value:r.error?r.error.error_message:b.a.I18n.t("none")},{key:b.a.I18n.t("totalCompletedTasks"),value:r.tasksStatusCounts.completed},{key:b.a.I18n.t("totalRunningTasks"),value:r.tasksStatusCounts.running},{key:b.a.I18n.t("totalPausedTasks"),value:r.tasksStatusCounts.paused},{key:b.a.I18n.t("totalScheduledTasks"),value:r.tasksStatusCounts.scheduled}]}),h.a.createElement("h4",null,b.a.I18n.t("scheduledTasks")),h.a.createElement(So,{show_scheduled_at:!0,tasks:K()(t=r.latestTasks).call(t,(function(e){return"scheduled"===e.status}))}),h.a.createElement("h4",null,b.a.I18n.t("runningTasks")),h.a.createElement(So,{tasks:K()(a=r.latestTasks).call(a,(function(e){return null===e.status}))}),h.a.createElement("h4",null,b.a.I18n.t("completedTasks")),h.a.createElement(So,{tasks:K()(n=r.latestTasks).call(n,(function(e){return"completed"===e.status}))}))};No.propTypes={status_data:q.a.shape({status:q.a.string,started:q.a.number,sent:q.a.number,retry_attempt:q.a.number,retry_at:q.a.number,error:q.a.shape({operation:q.a.string,error_message:q.a.string}),tasksStatusCounts:q.a.shape({completed:q.a.number.isRequired,running:q.a.number.isRequired,paused:q.a.number.isRequired,scheduled:q.a.number.isRequired}).isRequired,latestTasks:q.a.arrayOf(wo.propTypes.task).isRequired}).isRequired};var Co=No;function xo(e,t,a,n,r){var i,o=e?"success":"error",l=e?b.a.I18n.t("systemStatusConnectionSuccessful"):s()(i="".concat(b.a.I18n.t("systemStatusConnectionUnsuccessful")," ")).call(i,t);return a&&(l=mt()(l,/\[link\](.*?)\[\/link\]/g,(function(e){return h.a.createElement("a",{href:a,"data-beacon-article":n,key:"kb-link"},e)}))),h.a.createElement("div",{className:"mailpoet_notice notice inline notice-".concat(o),style:{marginTop:"1em"}},h.a.createElement("p",null,l),r?h.a.createElement("p",null,h.a.createElement("i",null,r)):null)}var To=function(){var e,t,a,n,r,i=window.systemStatusData;return h.a.createElement("div",null,h.a.createElement(co,{tab:"systemStatus"}),h.a.createElement("div",{className:"mailpoet_notice notice inline",style:{marginTop:"1em"}},h.a.createElement("p",null,i.mss.enabled?b.a.I18n.t("systemStatusIntroCronMSS"):b.a.I18n.t("systemStatusIntroCron"))),(t=(e=i).cron.isReachable,a=e.cron.url,n=b.a.I18n.t("systemStatusCronConnectionUnsuccessfulInfo"),r=t?null:e.cron.pingResponse,h.a.createElement("div",null,h.a.createElement("h2",null,b.a.I18n.t("systemStatusCronTitle")),h.a.createElement("p",null,h.a.createElement("a",{href:a,target:"_blank",rel:"noopener noreferrer"},a)),xo(t,n,"https://kb.mailpoet.com/article/231-sending-does-not-work","5a0257ac2c7d3a272c0d7ad6",r))),function(e){if(e.mss.enabled){var t=e.mss.enabled.isReachable;return h.a.createElement("div",null,h.a.createElement("h2",null,b.a.I18n.t("systemStatusMSSTitle")),xo(t,b.a.I18n.t("systemStatusMSSConnectionUnsuccessfulInfo"),!1))}}(i),h.a.createElement(bo,{status_data:i.cronStatus}),h.a.createElement(Co,{status_data:i.queueStatus}))};var Ro=function(){return h.a.createElement("div",null,h.a.createElement(co,{tab:"yourPrivacy"}),h.a.createElement("p",null,b.a.I18n.t("yourPrivacyContent1")),h.a.createElement("p",null,b.a.I18n.t("yourPrivacyContent2")),h.a.createElement("p",null,b.a.I18n.t("yourPrivacyContent3")),h.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://www.mailpoet.com/privacy-notice/",className:"button button-primary"},b.a.I18n.t("yourPrivacyButton")))},Ao=document.getElementById("help_container");Ao&&oe.a.render(h.a.createElement((function(){return h.a.createElement(ja.Provider,{value:Ma(window)},h.a.createElement(Ke.a,null,h.a.createElement(za,null),h.a.createElement(B.Switch,null,h.a.createElement(B.Route,{exact:!0,path:"/",render:function(){return h.a.createElement(B.Redirect,{to:"/knowledgeBase"})}}),h.a.createElement(B.Route,{path:"/knowledgeBase",component:uo}),h.a.createElement(B.Route,{path:"/systemStatus",component:To}),h.a.createElement(B.Route,{path:"/systemInfo",component:mo}),h.a.createElement(B.Route,{path:"/yourPrivacy",component:Ro}))))}),null),Ao);var Po,Oo=function(e){return"show_poll_success_delivery_".concat(e)},Lo=function(){if(!document.getElementById("typef_orm")){var e=document.createElement("script");e.id="typef_orm",e.src="https://embed.typeform.com/embed.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}},Do={successDelivery:{canShow:function(e,t){return"en"===window.mailpoet_locale&&"1"===window.mailpoet_polls_visibility[Oo(e)]&&(t||"PHPMail"===window.mailpoet_polls_data.mta_method)},initTypeformScript:Lo,setPollShown:function(e){var t={};t[Oo(e)]="0",b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"settings",action:"set",data:t}),window.mailpoet_polls_visibility[Oo(e)]="0"},showModal:function(e,t){b.a.Modal.popup({onInit:Lo,template:'\n <div class="typeform-widget"\n data-url="https://mailpoet.typeform.com/to/'.concat(t,'"\n data-transparency="100"\n data-hide-headers="true"\n data-hide-footer="true"\n style="width: 500px; height: 500px; max-width: 100%; max-height: 100%;"\n ></div>\n ')})}}};b.a.Poll=Do,(Po=document.getElementById("mailpoet_reinstall"))&&Po.addEventListener("click",(function(){return confirm(b.a.I18n.t("reinstallConfirmation"))&&(b.a.trackEvent("User has reinstalled MailPoet via Settings",{"MailPoet Free version":window.mailpoet_version}),b.a.Modal.loading(!0),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"setup",action:"reset"}).always((function(){b.a.Modal.loading(!1)})).done((function(){window.location="admin.php?page=mailpoet-newsletters"})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))),!1}),!1);var qo=Object(B.withRouter)((function(e){var t=e.children,a=e.location.pathname;return Object(d.useEffect)((function(){window.scrollTo(0,0)}),[a]),t||null}));function Fo(e){var t=e.activeMethod,a=e.onMethodChange,n=h.a.useContext(ja).users.isNewUser,r=Ye()("mailpoet_badge","mailpoet_badge_video",{mailpoet_badge_video_grey:!n});return h.a.createElement(h.a.Fragment,null,h.a.createElement("form",{className:"mailpoet_import_selection_form"},h.a.createElement("span",{className:"mailpoet_import_heading"},b.a.I18n.t("methodSelectionHead")),h.a.createElement("label",{htmlFor:"import-paste-method"},h.a.createElement("input",{type:"radio",name:"select_method","data-automation-id":"import-paste-method",id:"import-paste-method",checked:"paste-method"===t,onChange:function(){return a("paste-method")}}),b.a.I18n.t("methodPaste")),h.a.createElement("label",{htmlFor:"import-csv-method"},h.a.createElement("input",{type:"radio",name:"select_method","data-automation-id":"import-csv-method",id:"import-csv-method",checked:"file-method"===t,onChange:function(){return a("file-method")}}),b.a.I18n.t("methodUpload")),h.a.createElement("label",{htmlFor:"import-mailchimp-method"},h.a.createElement("input",{type:"radio",name:"select_method","data-automation-id":"import-mailchimp-method",id:"import-mailchimp-method",checked:"mailchimp-method"===t,onChange:function(){return a("mailchimp-method")}}),b.a.I18n.t("methodMailChimp"))),h.a.createElement("a",{className:r,href:"https://kb.mailpoet.com/article/242-video-guide-importing-subscribers-using-a-csv-file","data-beacon-article":"5a8e8f0204286305fbc9be9a",target:"_blank",rel:"noopener noreferrer"},h.a.createElement("span",{className:"dashicons dashicons-format-video"}),b.a.I18n.t("seeVideo")))}Fo.propTypes={activeMethod:q.a.string,onMethodChange:q.a.func.isRequired},Fo.defaultProps={activeMethod:void 0};var Mo=Fo,jo=function(e){var t=e.hidePrevious,a=e.canGoNext,n=e.onPreviousAction,r=e.onNextAction,i=Ye()("button-primary","wysija",{"button-disabled":!a});return h.a.createElement("div",{className:"mailpoet_import_step_buttons"},!t&&h.a.createElement(h.a.Fragment,null,h.a.createElement("button",{className:"button-primary wysija button",type:"button",onClick:n},b.a.I18n.t("previousStep")),"  "),h.a.createElement("button",{type:"button","data-automation-id":"import-next-step",className:i,onClick:function(){a&&r()}},b.a.I18n.t("nextStep")))};jo.propTypes={canGoNext:q.a.bool,hidePrevious:q.a.bool,onPreviousAction:q.a.func,onNextAction:q.a.func},jo.defaultProps={hidePrevious:!1,canGoNext:!0,onPreviousAction:function(){},onNextAction:function(){}};var Vo=jo,Bo=function(e){var t=e.onValueChange,a=e.canFinish,n=e.onFinish,r=e.data;return h.a.createElement(h.a.Fragment,null,h.a.createElement("label",{htmlFor:"paste_input",className:"mailpoet_import_method_paste"},h.a.createElement("div",{className:"mailpoet_import_paste_texts"},h.a.createElement("span",{className:"mailpoet_import_heading"},b.a.I18n.t("pasteLabel")),h.a.createElement("p",{className:"description"},mt()(b.a.I18n.t("pasteDescription"),/\[link\](.*?)\[\/link\]/,(function(e){return h.a.createElement("a",{href:"".concat("https://kb.mailpoet.com/article/126-importing-subscribers-with-csv-files"),"data-beacon-article":"57ce079f903360649f6e56fc",key:"kb-link",target:"_blank",rel:"noopener noreferrer"},e)})))),h.a.createElement("textarea",{id:"paste_input",rows:"15",placeholder:"Email, First Name, Last Name\njohn@doe.com, John, Doe\nmary@smith.com, Mary, Smith\njohnny@walker.com, Johnny, Walker",className:"regular-text code",onChange:function(e){t(e.target.value)},defaultValue:r})),h.a.createElement(Vo,{canGoNext:a,hidePrevious:!0,onNextAction:n}))};Bo.propTypes={onFinish:q.a.func,canFinish:q.a.bool.isRequired,onValueChange:q.a.func.isRequired,data:q.a.string},Bo.defaultProps={onFinish:function(){},data:""};var zo=Bo,Uo=function(e){var t=e.onValueChange,a=e.canFinish,n=e.onFinish;return h.a.createElement(h.a.Fragment,null,h.a.createElement("div",null,h.a.createElement("label",{htmlFor:"paste_input",className:"mailpoet_import_method_paste"},h.a.createElement("div",{className:"mailpoet_import_paste_texts"},h.a.createElement("span",{className:"mailpoet_import_heading"},b.a.I18n.t("methodUpload")),h.a.createElement("p",{className:"description"},mt()(b.a.I18n.t("pasteDescription"),/\[link\](.*?)\[\/link\]/,(function(e){return h.a.createElement("a",{href:"".concat("https://kb.mailpoet.com/article/126-importing-subscribers-with-csv-files"),"data-beacon-article":"57ce079f903360649f6e56fc",key:"kb-link",target:"_blank",rel:"noopener noreferrer"},e)})))),h.a.createElement("input",{type:"file",id:"file_local",accept:".csv","data-automation-id":"import-file-upload-input",onChange:function(e){var a=e.target.value.match(/[^.]+$/);b.a.Notice.hide(),null===a||"csv"!==a[0].toLowerCase()?(b.a.Notice.error(b.a.I18n.t("wrongFileFormat")),t("")):t(e.target.files[0])}}))),h.a.createElement(Vo,{canGoNext:a,hidePrevious:!0,onNextAction:n}))};Uo.propTypes={canFinish:q.a.bool.isRequired,onFinish:q.a.func,onValueChange:q.a.func.isRequired},Uo.defaultProps={onFinish:function(){}};var Wo=Uo,$o=function(e){var t=e.onFinish,a=Object(d.useState)(""),n=fe()(a,2),r=n[0],i=n[1],s=Object(d.useState)(void 0),o=fe()(s,2),l=o[0],c=o[1],u=Object(d.useState)([]),p=fe()(u,2),f=p[0],g=p[1],v=Ye()("mailpoet_mailchimp-key-status",{"mailpoet_mailchimp-ok":We()(l)});return h.a.createElement("div",{className:"mailpoet_import_mailchimp"},h.a.createElement("div",{className:"mailpoet_mailchimp_key"},h.a.createElement("label",{htmlFor:"mailpoet_mailchimp_key_input",className:"mailpoet_mailchimp_key_input"},h.a.createElement("span",{className:"mailpoet_import_heading"},b.a.I18n.t("methodMailChimpLabel")),h.a.createElement("input",{id:"mailpoet_mailchimp_key_input",type:"text",onChange:function(e){var t;i(e.target.value),""===ya()(t=e.target.value).call(t)&&c(void 0)}})),h.a.createElement("button",{className:"button",type:"button",onClick:function(){b.a.Modal.loading(!0),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"importExport",action:"getMailChimpLists",data:{api_key:r}}).always((function(){b.a.Modal.loading(!1)})).done((function(e){return c(e.data)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}},b.a.I18n.t("methodMailChimpVerify")),h.a.createElement("span",{className:v},We()(l)&&0===l.length?b.a.I18n.t("noMailChimpLists"):null)),l?h.a.createElement("div",{className:"mailpoet_mailchimp_lists"},h.a.createElement("span",{className:"mailpoet_import_heading"},b.a.I18n.t("methodMailChimpSelectList")),h.a.createElement(ce,{field:{id:"segments",name:"list-selection",multiple:!0,placeholder:b.a.I18n.t("methodMailChimpSelectPlaceholder"),forceSelect2:!0,values:l},onValueChange:function(e){return g(e.target.value)}})):null,h.a.createElement(Vo,{canGoNext:We()(f)&&f.length>0,hidePrevious:!0,onNextAction:function(){b.a.Modal.loading(!0),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"importExport",action:"getMailChimpSubscribers",data:{api_key:r,lists:f}}).always((function(){b.a.Modal.loading(!1)})).done((function(e){return t(e.data)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}}))};$o.propTypes={onFinish:q.a.func},$o.defaultProps={onFinish:function(){}};var Ho=$o,Ko=a(497),Go=a.n(Ko),Yo=a(317),Jo=a.n(Yo),Qo=a(131),Zo=a.n(Qo),Xo=function(e){var t;return Zo()(t=window.roleBasedEmails).call(t,(function(t){return Jo()(e).call(e,"".concat(t,"@"))}))>=0},el=function(e){var t,a,n,r=ie()("<div />").html(e).text();(r=r.toLowerCase().replace(/^["';.,\s]+|[^\x20-\x7E]+$|["';.,_\s]+$/g,"").replace(/\s+|%\d+|,+/g,""),t=/<(.*?)>/.exec(r))&&(r=ya()(a=t[1]).call(a));(t=/mailto:(?:\s+)?(.*)/.exec(r))&&(r=ya()(n=t[1]).call(n));return!!window.mailpoet_email_regex.test(r)&&(!Xo(r)&&r)};var tl=function(e){var t,a,n,r,i,s=[],o=[],l=[],c=[],u=[],p=null,d=null,h=!1;return ea()(t=ma()(e)).call(t,(function(t){var f,v;(r=m()(f=e[t]).call(f,(function(e){return ya()(e).call(e)})),i=r.length,null===d&&(d=i),i===d)&&(null===p?(ea()(v=ma()(r)).call(v,(function(e){n=el(r[e]),null===p&&window.mailpoet_email_regex.test(n)&&(p=e,o[n]=!0,r[e]=n,s[n]=r)})),null===p&&0===de()(t,10)&&(h=!0,s[0]=r)):""!==r[p]&&(a=el(r[p]),g.a.has(o,a)?l.push(a):Xo(r[p])?u.push(r[p]):window.mailpoet_email_regex.test(a)?(o[a]=!0,r[p]=a,s[a]=r):c.push(r[p])))})),(s=Y()(g.a).call(g.a,s))&&(h&&s.length>=2||!h&&s.length>=1)?{header:window.mailpoet_email_regex.test(s[0][p])?null:s.shift(),subscribers:s,subscribersCount:s.length,duplicate:g.a.uniq(l),invalid:g.a.uniq(c),role:g.a.uniq(u)}:null};var al=function(e,t){var a=encodeURI(e).split(/%..|./).length-1;b.a.Notice.hide(),a>window.maxPostSizeBytes?b.a.Notice.error(b.a.I18n.t("maxPostSizeNotice")):(b.a.Modal.loading(!0),Go.a.parse(e,function(e){return{skipEmptyLines:!0,error:function(){b.a.Notice.hide(),b.a.Notice.error(b.a.I18n.t("dataProcessingError"))},complete:function(t){var a=tl(t.data);if(a)e(a);else{var n=b.a.I18n.t("noValidRecords");n=(n=n.replace("[link]",'<a href="https://kb.mailpoet.com/article/126-importing-subscribers-with-csv-files" data-beacon-article="57ce079f903360649f6e56fc">')).replace("[/link]","</a>"),b.a.Notice.error(n)}b.a.Modal.loading(!1)}}}(t)))},nl=function(e,t,a){return void 0===e?"step_data_manipulation":void 0===e.subscribersCount?"step_data_manipulation":e.subscribersCount<t?"step_data_manipulation":"mailchimp-method"===a?"step_data_manipulation":"step_input_validation"};function rl(e){var t=e.history,a=e.setStepMethodSelectionData,n=e.subscribersLimitForValidation,r=Object(d.useState)(void 0),i=fe()(r,2),s=i[0],o=i[1],l=Object(d.useState)(""),c=fe()(l,2),u=c[0],p=c[1],m=Object(d.useState)(void 0),f=fe()(m,2),g=f[0],v=f[1],_=function(e){a(e),t.push(nl(e,n,s))},y=function(){al("paste-method"===s?u:g,(function(e){b.a.trackEvent("Subscribers import started",{source:"file-method"===s?"file upload":"pasted data","MailPoet Free version":window.mailpoet_version}),_(e)}))};return h.a.createElement("div",{className:"mailpoet_method_selection_step"},h.a.createElement(Mo,{activeMethod:s,onMethodChange:o}),"paste-method"===s&&h.a.createElement(zo,{onValueChange:p,onFinish:y,canFinish:!!ya()(u).call(u),data:u}),"file-method"===s&&h.a.createElement(Wo,{onValueChange:v,onFinish:y,canFinish:!!g,data:g}),"mailchimp-method"===s&&h.a.createElement(Ho,{onFinish:function(e){b.a.trackEvent("Subscribers import started",{source:"MailChimp","MailPoet Free version":window.mailpoet_version}),_(e)}}))}rl.propTypes={history:q.a.shape({push:q.a.func.isRequired}).isRequired,setStepMethodSelectionData:q.a.func.isRequired,subscribersLimitForValidation:q.a.number.isRequired};var il=Object(B.withRouter)(rl);function sl(e){var t=e.onSubmit,a=e.history,n=Object(d.useState)(void 0),r=fe()(n,2),i=r[0],s=r[1];return h.a.createElement(h.a.Fragment,null,h.a.createElement("h2",null,b.a.I18n.t("validationStepHeading")),h.a.createElement("label",{htmlFor:"existing-list"},h.a.createElement("input",{"data-automation-id":"mailpoet_import_validation_step_option1",type:"radio",id:"existing-list",checked:"existing-list"===i,onChange:function(){return s("existing-list")}}),b.a.I18n.t("validationStepRadio1")),h.a.createElement("label",{htmlFor:"address-book"},h.a.createElement("input",{"data-automation-id":"mailpoet_import_validation_step_option2",type:"radio",id:"address-book",checked:"address-book"===i,onChange:function(){return s("address-book")}}),b.a.I18n.t("validationStepRadio2")),h.a.createElement(Vo,{canGoNext:void 0!==i,onPreviousAction:function(){return a.push("step_method_selection")},onNextAction:function(){return t(i)}}))}sl.propTypes={history:q.a.shape({push:q.a.func.isRequired}).isRequired,onSubmit:q.a.func.isRequired};var ol=sl;var ll=function(){return h.a.createElement("div",{className:"mailpoet_import_block","data-automation-id":"import_wrong_source_block"},h.a.createElement("p",null,b.a.I18n.t("validationStepBlock1")),h.a.createElement("p",null,b.a.I18n.t("validationStepBlock2")),h.a.createElement("a",{href:"https://kb.mailpoet.com/article/269-reconfirm-subscribers-to-your-list",target:"_blank",rel:"noopener noreferrer",className:"button button-primary"},b.a.I18n.t("validationStepBlockButton")))};var cl=function(){return h.a.createElement("div",{className:"mailpoet_import_block","data-automation-id":"import_old_list_block"},h.a.createElement("p",null,b.a.I18n.t("validationStepBlock1")),h.a.createElement("p",null,b.a.I18n.t("validationStepBlock3")),h.a.createElement("p",null,b.a.I18n.t("validationStepBlock4")),h.a.createElement("a",{href:"https://kb.mailpoet.com/article/269-reconfirm-subscribers-to-your-list",target:"_blank",rel:"noopener noreferrer",className:"button button-primary"},b.a.I18n.t("validationStepBlockButton")))};function ul(e){var t=e.onSubmit,a=Object(d.useState)("over2years"),n=fe()(a,2),r=n[0],i=n[1];return h.a.createElement(h.a.Fragment,null,h.a.createElement("h2",null,b.a.I18n.t("validationStepLastSentHeading")),h.a.createElement("select",{value:r,onChange:function(e){i(e.target.value)},className:"mailpoet_last_sent","data-automation-id":"last_sent_to_list"},h.a.createElement("option",{value:"over2years"},b.a.I18n.t("validationStepLastSentOption1")),h.a.createElement("option",{value:"1to2years"},b.a.I18n.t("validationStepLastSentOption2")),h.a.createElement("option",{value:"less1year"},b.a.I18n.t("validationStepLastSentOption3")),h.a.createElement("option",{value:"less3months"},b.a.I18n.t("validationStepLastSentOption4"))),h.a.createElement("button",{type:"button",className:"button button-primary","data-automation-id":"last_sent_to_list_next",onClick:function(){t("over2years"===r||"1to2years"===r?"notRecently":"recently")}},b.a.I18n.t("validationStepLastSentNext")))}ul.propTypes={onSubmit:q.a.func.isRequired};var pl=ul;function ml(e){var t=e.stepMethodSelectionData,a=e.history,n=Object(d.useState)(void 0),r=fe()(n,2),i=r[0],s=r[1],o=Object(d.useState)(void 0),l=fe()(o,2),c=l[0],u=l[1];return Object(d.useEffect)((function(){void 0===t&&a.replace("step_method_selection")}),[t,a]),h.a.createElement("div",{className:"mailpoet_import_validation_step","data-automation-id":"mailpoet_import_validation_step"},void 0===i&&h.a.createElement(ol,{onSubmit:s,history:a}),"address-book"===i&&h.a.createElement(ll,null),"existing-list"===i&&void 0===c&&h.a.createElement(pl,{onSubmit:function(e){u(e),"recently"===e&&a.push("step_data_manipulation")}}),"existing-list"===i&&"notRecently"===c&&h.a.createElement(cl,null))}ml.propTypes={history:q.a.shape({push:q.a.func.isRequired,replace:q.a.func.isRequired}).isRequired,stepMethodSelectionData:q.a.shape({duplicate:q.a.arrayOf(q.a.string),header:q.a.arrayOf(q.a.string),invalid:q.a.arrayOf(q.a.string),role:q.a.arrayOf(q.a.string),subscribersCount:q.a.number,subscribers:q.a.arrayOf(q.a.arrayOf(q.a.string))})},ml.defaultProps={stepMethodSelectionData:void 0};var dl=Object(B.withRouter)(ml),hl=function(e){var t=e.translation,a=e.subscribers,n="";return a.length&&(n=mt()(t.replace("%2$s",a.join(", ")),"%1$s",(function(){return h.a.createElement("strong",{key:t},a.length.toLocaleString())})),n=h.a.createElement("p",null,n)),n};hl.propTypes={translation:q.a.string.isRequired,subscribers:q.a.arrayOf(q.a.string).isRequired};var fl=function(e){var t=e.stepMethodSelectionData,a=t.invalid,n=t.duplicate,r=t.role,i=Object(d.useState)(!1),s=fe()(i,2),o=s[0],l=s[1],c=Ye()("mailpoet_subscribers_data_parse_results_details",{mailpoet_hidden:!o}),p=h.a.createElement(hl,{translation:b.a.I18n.t("importNoticeInvalid"),subscribers:a}),m=h.a.createElement(hl,{translation:b.a.I18n.t("importNoticeDuplicate"),subscribers:n}),f="";if(r.length&&(f=mt()(b.a.I18n.t("importNoticeRoleBased"),/(%1\$s|\[link\].*\[\/link\]|%2\$s)/,(function(e){return"%1$s"===e?h.a.createElement("strong",{key:"role-length"},r.length.toLocaleString()):"%2$s"===e?r.join(", "):h.a.createElement("a",{href:"https://kb.mailpoet.com/article/270-role-based-email-addresses-are-not-allowed","data-beacon-article":"5d0a1da404286318cac46fe5",target:"_blank",rel:"noopener noreferrer",key:e},e.replace("[link]","").replace("[/link]",""))})),f=h.a.createElement("p",null,f)),a.length||n.length||r.length){var g=a.length+n.length+r.length;return h.a.createElement("div",{className:"error"},h.a.createElement("p",null,mt()(b.a.I18n.t("importNoticeSkipped"),"%1$s",(function(){return h.a.createElement("strong",{key:"lengths"},g.toLocaleString())}))," ",h.a.createElement("a",{className:"mailpoet_subscribers_data_parse_results_details_show","data-automation-id":"show-more-details",onClick:function(){return l(!o)},role:"button",tabIndex:0,onKeyDown:function(e){var t,a;u()(t=["keydown","keypress"]).call(t,e.type)&&u()(a=["Enter"," "]).call(a,e.key)&&(e.preventDefault(),l(!o))}},b.a.I18n.t("showMoreDetails"))),h.a.createElement("div",{className:c},h.a.createElement("hr",null),p,m,f))}return null};fl.propTypes={stepMethodSelectionData:q.a.shape({duplicate:q.a.arrayOf(q.a.string),invalid:q.a.arrayOf(q.a.string),role:q.a.arrayOf(q.a.string)})},fl.defaultProps={stepMethodSelectionData:{invalid:[],duplicate:[],role:[]}};var gl=fl,vl=a(498),_l=a.n(vl),bl=a(499),yl=a.n(bl),wl=function(){ie()("select.mailpoet_subscribers_column_data_match").select2({data:window.mailpoetColumnsSelect2,width:"15em",templateResult:function(e){return e.name},templateSelection:function(e){return e.name}}).on("select2:selecting",(function(e){var t=e.currentTarget,a=e.params.args.data.id;"create"===a?(e.preventDefault(),ie()(t).select2("close"),b.a.Modal.popup({title:b.a.I18n.t("addNewField"),template:ie()("#form_template_field_form").html()}),ie()("#form_field_new").parsley().on("form:submit",(function(){var e=ie()("#form_field_new").mailpoetSerializeObject();return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"customFields",action:"save",data:e}).done((function(e){var a={id:e.data.id,name:e.data.name,type:e.data.type,params:e.data.params,custom:!0};2===window.mailpoetColumnsSelect2.length&&window.mailpoetColumnsSelect2.push({name:b.a.I18n.t("userColumns"),children:[]}),window.mailpoetColumnsSelect2[2].children.push(a),window.mailpoetColumns.push(a),ie()("select.mailpoet_subscribers_column_data_match").each((function(){ie()(t).html("").select2("destroy").select2({data:window.mailpoetColumnsSelect2,width:"15em",templateResult:function(e){return e.name},templateSelection:function(e){return e.name}})})),ie()(t).data("column-id",a.id),b.a.Modal.close()})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{positionAfter:"#field_name"})})),!1}))):ie()("select.mailpoet_subscribers_column_data_match").each((function(){var n,r=t,i=ie()(r).val();i===a&&"ignore"!==i&&(confirm(s()(n="".concat(b.a.I18n.t("selectedValueAlreadyMatched")," ")).call(n,b.a.I18n.t("confirmCorrespondingColumn")))?ie()(r).data("column-id","ignore"):(e.preventDefault(),ie()(t).select2("close")))}))})).on("select2:select",(function(e){var t=e.currentTarget,a=e.params.data.id;ie()(t).data("column-id",a)})),m()(ie.a).call(ie.a,ie()(".mailpoet_subscribers_column_data_match"),(function(e){var t=ie()(e).data("column-id");ie()(e).val(t).trigger("change")}))},El=function(e,t){var a,n,r,i,s,o=[],l=[];return ea()(a=ma()(e[0])).call(a,(function(a){if(n=e[0][a],r="ignore",n%1!=0&&window.mailpoet_email_regex.test(n))r="email";else if(t){var c,u;i=t[a],-1!==(s=Ka()(c=m()(u=window.mailpoetColumns).call(u,(function(e){return e.name}))).call(c,i))?r=window.mailpoetColumns[s].id:i&&(/first|first name|given name/i.test(i)?r="first_name":/last|last name/i.test(i)&&(r="last_name"))}r="ignore"!==r&&-1===Ka()(l).call(l,r)?r:"ignore",o[a]={column_id:r},l.push(r)})),o},kl=10;function Il(e){var t=e.header,a=e.subscribers,n=El(a,t);return h.a.createElement("tr",null,h.a.createElement("th",null,b.a.I18n.t("matchData")),m()(n).call(n,(function(e,t){return h.a.createElement("th",{key:e.column_id+t},h.a.createElement("select",{className:"mailpoet_subscribers_column_data_match","data-column-id":e.column_id,"data-column-index":t,id:"column_".concat(t)}))})))}function Sl(e){var t=e.header;return h.a.createElement("tr",{className:"mailpoet_header"},h.a.createElement("td",null),m()(t).call(t,(function(e){return h.a.createElement("td",{key:e},e)})))}function Nl(e){var t=e.subscriber,a=e.index;return h.a.createElement(h.a.Fragment,null,h.a.createElement("td",null,a),m()(t).call(t,(function(e,t){var n,r;return h.a.createElement("td",{key:s()(n=s()(r="".concat(e,"-")).call(r,a,"-")).call(n,t)},e)})))}function Cl(e){var t,a,n=e.subscribers,r=e.subscribersCount,i=yl()(t=Array(n[0].length)).call(t,". . .");return h.a.createElement(h.a.Fragment,null,m()(a=_l()(n).call(n,0,kl)).call(a,(function(e,t){var a;return(h.a.createElement("tr",{key:s()(a="".concat(e[0],"-")).call(a,t)},h.a.createElement(Nl,{subscriber:e,index:t+1})))})),r>kl+1?h.a.createElement("tr",{key:"filler"},h.a.createElement(Nl,{subscriber:i,index:". . ."})):null,r>kl?h.a.createElement("tr",{key:n[r-1][0]},h.a.createElement(Nl,{subscriber:n[r-1],index:r})):null)}function xl(e){var t=e.subscribersCount,a=e.subscribers,n=e.header;return Object(d.useLayoutEffect)((function(){wl()})),h.a.createElement("div",{className:"subscribers_data"},h.a.createElement("table",{className:"mailpoet_subscribers widefat fixed"},h.a.createElement("thead",null,h.a.createElement(Il,{header:n,subscribers:a})),h.a.createElement("tbody",null,n?h.a.createElement(Sl,{header:n}):null,h.a.createElement(Cl,{subscribers:a,subscribersCount:t}))))}Il.propTypes={subscribers:q.a.arrayOf(q.a.arrayOf(q.a.oneOfType([q.a.string,q.a.number]))).isRequired,header:q.a.arrayOf(q.a.string)},Il.defaultProps={header:[]},Sl.propTypes={header:q.a.arrayOf(q.a.string).isRequired},Nl.propTypes={subscriber:q.a.arrayOf(q.a.oneOfType([q.a.string,q.a.number])).isRequired,index:q.a.node.isRequired},Cl.propTypes={subscribersCount:q.a.number.isRequired,subscribers:q.a.arrayOf(q.a.arrayOf(q.a.oneOfType([q.a.string,q.a.number]))).isRequired},xl.propTypes={subscribersCount:q.a.number,subscribers:q.a.arrayOf(q.a.arrayOf(q.a.oneOfType([q.a.string,q.a.number]))),header:q.a.arrayOf(q.a.string)},xl.defaultProps={subscribersCount:0,subscribers:[],header:[]};var Tl=xl;var Rl=function(e){b.a.Modal.popup({title:b.a.I18n.t("addNewList"),template:ie()("#new_segment_template").html()}),ie()("#new_segment_name").keypress((function(e){13===e.which&&ie()("#new_segment_process").click()})),ie()("#new_segment_process").click((function(){var t,a,n=ya()(t=ie()("#new_segment_name").val()).call(t),r=ya()(a=ie()("#new_segment_description").val()).call(a);b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"ImportExport",action:"addSegment",data:{name:n,description:r}}).done((function(t){e({id:t.data.id,name:t.data.name,subscriberCount:0}),b.a.Modal.close()})).fail((function(e){var t;e.errors.length>0&&(b.a.Notice.hide(),b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{positionAfter:"#new_segment_name"}))}))})),ie()("#new_segment_cancel").click((function(){b.a.Modal.close()}))};function Al(e){var t=e.setSelectedSegments,a=Object(d.useContext)(ja).segments.all,n=Object(d.useState)(a),r=fe()(n,2),i=r[0],o=r[1];Object(d.useLayoutEffect)((function(){!function(e,t){var a=ie()("select#mailpoet_segments_select");a.data("select2")||(a.html(""),a.select2({data:e,width:"20em",templateResult:function(e){var t,a=e;return a.subscriberCount=de()(a.subscriberCount,10),s()(t="".concat(a.name," (")).call(t,a.subscriberCount.toLocaleString(),")")},templateSelection:function(e){var t,a=e;return a.subscriberCount=de()(a.subscriberCount,10),s()(t="".concat(a.name," (")).call(t,a.subscriberCount.toLocaleString(),")")}}).change((function(e){var n=ie()('[data-id="notice_segmentSelection"]');e.currentTarget.value?ie()('[data-id="notice_segmentSelection"]').remove():n.length||b.a.Notice.error(b.a.I18n.t("segmentSelectionRequired"),{static:!0,scroll:!0,id:"notice_segmentSelection",hideClose:!0});var r=g.a.pluck(a.select2("data"),"id");t(r)})))}(i,(function(e){t(e)}))}),[i,t]);var c=function(e){var a,n;(n=ie()("select#mailpoet_segments_select")).data("select2")&&(n.select2("destroy"),X()(n).call(n,"option").remove(),n.off("select2:unselecting").off("change").off("select2:opening")),t([]),o(s()(a=[]).call(a,l()(i),[e]))};return h.a.createElement("div",{className:"mailpoet_import_select_segment"},h.a.createElement("label",{htmlFor:"mailpoet_segments_select"},h.a.createElement("div",{className:"mailpoet_label_description"},h.a.createElement("b",null,b.a.I18n.t("pickLists")),h.a.createElement("p",{className:"description"},b.a.I18n.t("pickListsDescription"))),h.a.createElement("select",{id:"mailpoet_segments_select","data-placeholder":b.a.I18n.t("select"),multiple:"multiple"},h.a.createElement("option",null))),h.a.createElement("a",{className:"mailpoet_create_segment",onClick:function(){return Rl(c)},role:"button",tabIndex:0,onKeyDown:function(e){var t,a;u()(t=["keydown","keypress"]).call(t,e.type)&&u()(a=["Enter"," "]).call(a,e.key)&&(e.preventDefault(),Rl(c))}},b.a.I18n.t("createANewList")))}Al.propTypes={setSelectedSegments:q.a.func.isRequired};var Pl=Al;function Ol(e){var t=e.updateExistingSubscribers,a=e.setUpdateExistingSubscribers;return h.a.createElement("div",{className:"mailpoet_update_existing_subscribers"},h.a.createElement("div",{className:"mailpoet_label_description"},b.a.I18n.t("updateExistingSubscribers")),h.a.createElement("label",{htmlFor:"update_existing_subscribers"},h.a.createElement("input",{id:"update_existing_subscribers",type:"radio",name:"update_existing_subscribers",checked:t,onChange:function(){return a(!0)}}),b.a.I18n.t("updateExistingSubscribersYes")),h.a.createElement("label",{htmlFor:"dont_update_existing_subscribers"},h.a.createElement("input",{id:"dont_update_existing_subscribers",type:"radio",name:"update_existing_subscribers",checked:!t,onChange:function(){return a(!1)}}),b.a.I18n.t("updateExistingSubscribersNo")))}Ol.propTypes={setUpdateExistingSubscribers:q.a.func.isRequired,updateExistingSubscribers:q.a.bool.isRequired};var Ll=Ol,Dl=(a(635),function(e,t,a,n){var r={},i=new ie.a.AsyncQueue,s=0,o=ut()()/1e3,l={created:0,updated:0,errors:[],segments:[]};b.a.Modal.loading(!0);var c,p,d=(c=e,p=2e3,be()(c).call(c,(function(e,t,a){return a%p==0&&e.push([]),e[e.length-1].push(t),e}),[]));g.a.each(ie()("select.mailpoet_subscribers_column_data_match"),(function(e,t){var a=ie()(e).data("column-id");"ignore"!==a&&(r[a]={index:t})})),g.a.each(d,(function(){i.add((function(e){e.pause(),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"ImportExport",action:"processImport",data:$()({columns:r,subscribers:d[s],timestamp:o,segments:t,updateSubscribers:a})}).done((function(t){var a=t.data.added_to_segment_with_welcome_notification;l.created+=t.data.created,l.updated+=t.data.updated,l.segments=t.data.segments,l.added_to_segment_with_welcome_notification=a,e.run()})).fail((function(e){var t;(b.a.Modal.loading(!1),e.errors.length>0)&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})})),s+=1}))})),i.run(),i.onComplete((function(){b.a.Modal.loading(!1),l.errors.length>0&&!l.updated&&!l.created?b.a.Notice.error(g.a.flatten(l.errors)):(l.segments=m()(g.a).call(g.a,K()(g.a).call(g.a,l.segments,(function(e){return u()(t).call(t,e.id)})),(function(e){return e.name})),n(l))}))});function ql(e){var t=e.history,a=e.stepMethodSelectionData,n=e.subscribersLimitForValidation,r=e.setStepDataManipulationData,i=Object(d.useState)([]),s=fe()(i,2),o=s[0],l=s[1],c=Object(d.useState)(!0),u=fe()(c,2),p=u[0],m=u[1];Object(d.useEffect)((function(){void 0===a&&t.replace("step_method_selection")}),[a,t]);return void 0===a?null:h.a.createElement("div",{className:"mailpoet_data_manipulation_step","data-automation-id":"import_data_manipulation_step"},h.a.createElement(gl,{stepMethodSelectionData:a}),h.a.createElement(Tl,{subscribersCount:a.subscribersCount,subscribers:a.subscribers,header:a.header}),h.a.createElement(Pl,{setSelectedSegments:l}),h.a.createElement(Ll,{setUpdateExistingSubscribers:m,updateExistingSubscribers:p}),h.a.createElement(Vo,{canGoNext:o.length>0,onPreviousAction:function(){return t.push(function(e,t){return void 0===e?"step_method_selection":void 0===e.subscribersCount?"step_method_selection":e.subscribersCount<t?"step_method_selection":"step_input_validation"}(a,n))},onNextAction:function(){Dl(a.subscribers,o,p,(function(e){r(e),t.push("step_results")}))}}))}ql.propTypes={history:q.a.shape({push:q.a.func.isRequired,replace:q.a.func.isRequired}).isRequired,stepMethodSelectionData:q.a.shape({duplicate:q.a.arrayOf(q.a.string),header:q.a.arrayOf(q.a.string),invalid:q.a.arrayOf(q.a.string),role:q.a.arrayOf(q.a.string),subscribersCount:q.a.number,subscribers:q.a.arrayOf(q.a.arrayOf(q.a.oneOfType([q.a.string,q.a.number])))}),subscribersLimitForValidation:q.a.number.isRequired,setStepDataManipulationData:q.a.func.isRequired},ql.defaultProps={stepMethodSelectionData:void 0};var Fl=Object(B.withRouter)(ql);function Ml(e){var t=e.subscribersCount,a=e.segments,n=e.initialMessage;if(t){var r=mt()(n,"%1$s",(function(){return h.a.createElement("strong",{key:"%1$s"},t.toLocaleString())}));return r=mt()(r,"%2$s",(function(){return'"'.concat(a.join('", "'),'"')})),h.a.createElement("p",null,r)}return null}function jl(e){var t=e.createdSubscribers,a=e.updatedSubscribers;return t||a?null:h.a.createElement("p",null,b.a.I18n.t("importNoAction"))}function Vl(e){return e.addedToSegmentWithWelcomeNotification?h.a.createElement("p",null,b.a.I18n.t("importNoWelcomeEmail")):null}function Bl(e){var t=e.errors,a=e.createdSubscribers,n=e.updatedSubscribers,r=e.segments,i=e.addedToSegmentWithWelcomeNotification,s=e.history;return Object(d.useEffect)((function(){void 0===r&&0===t.length&&void 0===a&&void 0===n&&s.replace("step_method_selection")}),[r,a,t.length,s,n]),t.length&&b.a.Notice.error(g.a.flatten(t)),h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"updated"},h.a.createElement(Ml,{subscribersCount:a,segments:r,initialMessage:b.a.I18n.t("subscribersCreated")}),h.a.createElement(Ml,{subscribersCount:n,segments:r,initialMessage:b.a.I18n.t("subscribersUpdated")}),h.a.createElement(jl,{createdSubscribers:a,updatedSubscribers:n}),h.a.createElement(Vl,{addedToSegmentWithWelcomeNotification:i})),h.a.createElement("button",{type:"button",className:"button-primary wysija",onClick:function(){return s.push("step_method_selection")}},b.a.I18n.t("importAgain")),"  ",h.a.createElement("button",{type:"button",className:"button-primary wysija",onClick:function(){window.location.href="admin.php?page=mailpoet-subscribers"}},b.a.I18n.t("viewSubscribers")))}Ml.propTypes={segments:q.a.arrayOf(q.a.string.isRequired),subscribersCount:q.a.number,initialMessage:q.a.string},Ml.defaultProps={segments:[],subscribersCount:0,initialMessage:""},jl.propTypes={createdSubscribers:q.a.number,updatedSubscribers:q.a.number},jl.defaultProps={createdSubscribers:0,updatedSubscribers:0},Vl.propTypes={addedToSegmentWithWelcomeNotification:q.a.bool},Vl.defaultProps={addedToSegmentWithWelcomeNotification:!1},Bl.propTypes={history:q.a.shape({push:q.a.func.isRequired}).isRequired,errors:q.a.arrayOf(q.a.string.isRequired),segments:q.a.arrayOf(q.a.string.isRequired),createdSubscribers:q.a.number,updatedSubscribers:q.a.number,addedToSegmentWithWelcomeNotification:q.a.bool},Bl.defaultProps={errors:[],segments:void 0,createdSubscribers:void 0,updatedSubscribers:void 0,addedToSegmentWithWelcomeNotification:void 0};var zl=Object(B.withRouter)(Bl),Ul=document.getElementById("import_container");Ul&&oe.a.render(h.a.createElement((function(){var e=Object(d.useState)(void 0),t=fe()(e,2),a=t[0],n=t[1],r=Object(d.useState)({}),i=fe()(r,2),s=i[0],o=i[1],l=Ma(window);return h.a.createElement(ja.Provider,{value:l},h.a.createElement(Ke.a,null,h.a.createElement(za,null),h.a.createElement(qo,null,h.a.createElement(B.Switch,null,h.a.createElement(B.Route,{path:"/step_method_selection",render:function(e){return h.a.createElement(il,Q()({},e,{setStepMethodSelectionData:n,subscribersLimitForValidation:200}))}}),h.a.createElement(B.Route,{path:"/step_input_validation",render:function(e){return h.a.createElement(dl,Q()({},e,{stepMethodSelectionData:a}))}}),h.a.createElement(B.Route,{path:"/step_data_manipulation",render:function(e){return h.a.createElement(Fl,Q()({},e,{stepMethodSelectionData:a,subscribersLimitForValidation:200,setStepDataManipulationData:o}))}}),h.a.createElement(B.Route,{path:"/step_results",render:function(e){return h.a.createElement(zl,Q()({},e,{errors:s.errors,createdSubscribers:s.created,updatedSubscribers:s.updated,segments:s.segments,addedToSegmentWithWelcomeNotification:s.added_to_segment_with_welcome_notification}))}}),h.a.createElement(B.Route,{path:"*",render:function(){return h.a.createElement(B.Redirect,{to:"/step_method_selection"})}})))))}),null),Ul);var Wl=a(25),$l=a.n(Wl);ie()(document).ready((function(){var e,t,a,n,r,i;function s(e){"on"===e?n.removeClass("button-disabled"):n.addClass("button-disabled")}ie()("#mailpoet_subscribers_export").length&&window.exportData.segments&&(i=$l.a.compile(ie()("#mailpoet_subscribers_export_template").html()),ie()("#mailpoet_subscribers_export > div.inside").html(i(window.exportData)),t=ie()("#export_lists"),a=ie()("#export_columns"),n=ie()("a.mailpoet_export_process"),r=function(e,n){e.data("select2")&&e.html("").select2("destroy"),e.select2({data:n,width:"20em",templateResult:function(e){return e.subscriberCount>0?e.name+" ("+de()(e.subscriberCount,10).toLocaleString()+")":e.name},templateSelection:function(e){return e.subscriberCount>0?e.name+" ("+de()(e.subscriberCount,10).toLocaleString()+")":e.name}}).on("select2:selecting",(function(t){var a,n=t.params.args.data.id,r=["select","deselect"];g.a.contains(r,n)&&(t.preventDefault(),"deselect"===n?ie()(this).val("").trigger("change"):(a=[],g.a.each(X()(e).call(e,"option"),(function(e){g.a.contains(r,e.value)||a.push(e.value)})),ie()(this).val(a).trigger("change")),ie()(this).select2("close"))})).on("change",(function(){window.exportData.segments&&t.select2("data").length&&a.select2("data").length||!window.exportData.segments&&a.select2("data").length?s("on"):s("off")}))},ea()(e=window.segments).call(e,(function(e){t.append(ie()("<option></option>").attr("value",e.id).text(e.name))})),r(t,window.segments),r(a,window.subscriberFieldsSelect2),a.val(["email","first_name","last_name","list_status","global_status"]).trigger("change"),n.click((function(){var e;ie()(this).hasClass("button-disabled")||(b.a.Modal.loading(!0),e=ie()(':radio[name="option_format"]:checked').val(),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"ImportExport",action:"processExport",data:$()({export_format_option:e,segments:!!window.exportData.segments&&t.val(),subscriber_fields:a.val()})}).always((function(){b.a.Modal.loading(!1)})).done((function(t){var a=b.a.I18n.t("exportMessage").replace("%1$s","<strong>"+de()(t.data.totalExported,10).toLocaleString()+"</strong>").replace("[link]",'<a href="'+t.data.exportFileURL+'" target="_blank" >').replace("[/link]","</a>");ie()("#export_result_notice").html("<p>"+a+"</p>").show(),window.location.href=t.data.exportFileURL,b.a.trackEvent("Subscribers export completed",{"Total exported":t.data.totalExported,"File Format":e,"MailPoet Free version":window.mailpoet_version})})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})})))})))}));var Hl=function(e){return h.a.createElement("div",{className:"mailpoet_welcome_wizard_step_content"},h.a.createElement("h1",null,b.a.I18n.t("welcomeWizardLetsStartTitle")),h.a.createElement("p",null,b.a.I18n.t("welcomeWizardSenderText")),h.a.createElement("form",{id:"mailpoet_sender_form",className:e.loading?"mailpoet_sender_form_loading":"",onSubmit:function(t){t.preventDefault(),ie()("#mailpoet_sender_form").parsley().validate()&&e.submit_sender()}},h.a.createElement("label",{htmlFor:"senderName"},b.a.I18n.t("senderName"),":",h.a.createElement("input",{name:"senderName",type:"text",placeholder:"John Doe",value:e.sender?e.sender.name:"","data-parsley-required":!0,onChange:function(t){return e.update_sender({name:t.target.value})}})),h.a.createElement("label",{htmlFor:"senderAddress"},b.a.I18n.t("senderAddress"),":",h.a.createElement("input",{name:"senderAddress",type:"text",placeholder:"john@doe.com",value:e.sender?e.sender.address:"","data-parsley-required":!0,"data-parsley-type":"email",onChange:function(t){return e.update_sender({address:t.target.value})}})),h.a.createElement("div",{className:"mailpoet_welcome_wizard_step_controls"},h.a.createElement("input",{className:"button button-primary",type:"submit",value:b.a.I18n.t("next")})),h.a.createElement("a",{onClick:e.finish,href:"#finish",className:"sender_form_small"},b.a.I18n.t("noThanksSkip"))))};Hl.propTypes={finish:q.a.func.isRequired,loading:q.a.bool.isRequired,update_sender:q.a.func.isRequired,submit_sender:q.a.func.isRequired,sender:q.a.shape({name:q.a.string,address:q.a.string})},Hl.defaultProps={sender:null};var Kl=Hl,Gl=function(e){return h.a.createElement("div",{className:"mailpoet_welcome_wizard_step_content"},h.a.createElement("h1",null,b.a.I18n.t("welcomeWizardLetsStartTitle")),h.a.createElement("p",null,b.a.I18n.t("welcomeWizardSenderMigratedUserText")),h.a.createElement("div",{className:"mailpoet_welcome_wizard_step_controls"},h.a.createElement("button",{type:"button",className:"button button-primary",onClick:e.next},b.a.I18n.t("next"))))};Gl.propTypes={next:q.a.func.isRequired};var Yl=Gl,Jl=function(e){return h.a.createElement("div",{className:"mailpoet_welcome_wizard_step_content"},h.a.createElement("h1",null,b.a.I18n.t("welcomeWizardEmailCourseTitle")),h.a.createElement("p",null,b.a.I18n.t("welcomeWizardEmailCourseText")),h.a.createElement("iframe",{id:"mailpoet_form_iframe",width:"100%",scrolling:"no",frameBorder:"0",title:"Apply to course",src:"https://www.mailpoet.com?mailpoet_form_iframe=13",className:"mailpoet_form_iframe",marginWidth:"0",marginHeight:"0"}),h.a.createElement("button",{type:"button",className:"button button-primary",onClick:e.next},b.a.I18n.t("next")))};Jl.propTypes={next:q.a.func.isRequired};var Ql=Jl,Zl=function(e){return h.a.createElement("div",{className:"mailpoet_welcome_wizard_step_content"},h.a.createElement("h1",null,b.a.I18n.t("welcomeWizardUsageTrackingStepTitle")),h.a.createElement("p",null,b.a.I18n.t("welcomeWizardTrackingText")),h.a.createElement("h2",{className:"welcome_wizard_tracking_sub_title"},b.a.I18n.t("welcomeWizardUsageTrackingStepSubTitle")),h.a.createElement("ul",{className:"welcome_wizard_tracking_list"},h.a.createElement("li",null,b.a.I18n.t("welcomeWizardTrackingList1")),h.a.createElement("li",null,b.a.I18n.t("welcomeWizardTrackingList2")),h.a.createElement("li",null,b.a.I18n.t("welcomeWizardTrackingList3")),h.a.createElement("li",null,b.a.I18n.t("welcomeWizardTrackingList4")),h.a.createElement("li",null,b.a.I18n.t("welcomeWizardTrackingList5"))),h.a.createElement("a",{href:" https://kb.mailpoet.com/article/130-sharing-your-data-with-us","data-beacon-article":"57ce0aaac6979108399a0454",target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("welcomeWizardTrackingLink")),h.a.createElement("div",{className:"mailpoet_welcome_wizard_step_controls\n ".concat(e.loading?"mailpoet_welcome_wizard_step_controls_loading":"")},h.a.createElement("button",{type:"button",className:"button",onClick:e.skip_action,disabled:e.loading},b.a.I18n.t("skip")),h.a.createElement("button",{type:"button",className:"button button-primary",onClick:e.allow_action,disabled:e.loading},e.allow_text)))};Zl.propTypes={allow_action:q.a.func.isRequired,allow_text:q.a.string.isRequired,skip_action:q.a.func.isRequired,loading:q.a.bool.isRequired};var Xl=Zl,ec=function(e){return h.a.createElement("div",{className:"mailpoet_welcome_wizard_step_content"},h.a.createElement("h1",null,b.a.I18n.t("welcomeWizardWooCommerceStepTitle")),h.a.createElement("p",null,b.a.I18n.t("welcomeWizardHelpingShopOwnersText")),h.a.createElement("p",null,b.a.I18n.t("welcomeWizardWooCommerceEmailsText")),h.a.createElement("img",{src:e.screenshot_src,className:"mailpoet_welcome_wizard_woo_screenshot",alt:"WooCommerce email"}),h.a.createElement("div",{className:"mailpoet_welcome_wizard_step_controls\n ".concat(e.loading?"mailpoet_welcome_wizard_step_controls_loading":"")},h.a.createElement("button",{type:"button",className:"button button-primary",onClick:e.next,disabled:e.loading},b.a.I18n.t("gotIt"))))};ec.propTypes={next:q.a.func.isRequired,screenshot_src:q.a.string.isRequired,loading:q.a.bool.isRequired};var tc=ec,ac=function(e){return h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"mailpoet_welcome_wizard_header"},h.a.createElement("img",{src:window.mailpoet_logo_url,width:"200",height:"87",alt:"MailPoet logo"})),h.a.createElement(cr,{illustrationUrl:e.illustrationUrl,step:e.step,stepsCount:e.stepsCount,displayProgressBar:e.displayProgressBar},e.children))};ac.propTypes={illustrationUrl:q.a.string.isRequired,step:q.a.number.isRequired,displayProgressBar:q.a.bool,stepsCount:q.a.number.isRequired,children:q.a.oneOfType([q.a.arrayOf(q.a.node),q.a.node]).isRequired},ac.defaultProps={displayProgressBar:!0};var nc=ac,rc=function(e){var t,a=e.name,n=e.address,r=n.split("@").pop().toLowerCase();return Ka()(t=window.mailpoet_free_domains).call(t,r)>-1?function(e){var t=e.name,a=e.address,n=window.location.hostname.replace("www.",""),r="wordpress@".concat(n);return{sender:{name:t,address:r},reply_to:{name:t,address:a},"signup_confirmation.from.address":r,"signup_confirmation.from.name":t,"signup_confirmation.reply_to.address":a,"signup_confirmation.reply_to.name":t}}({name:a,address:n}):function(e){var t=e.name,a=e.address;return{sender:{name:t,address:a},reply_to:{name:t,address:a},"signup_confirmation.from.address":a,"signup_confirmation.from.name":t,"signup_confirmation.reply_to.address":a,"signup_confirmation.reply_to.name":t}}({name:a,address:n})},ic=function(){var e=3;return window.is_woocommerce_active&&(e+=1),window.has_mss_key_specified||(e+=1),e},sc=function(e,t,a){a<ic()?e.push("/steps/".concat(a+1)):t()},oc=function(e){var t=ic(),a=de()(e.match.params.step,10),n=Object(d.useState)(!1),i=fe()(n,2),s=i[0],o=i[1],l=Object(d.useState)(window.sender_data),c=fe()(l,2),u=c[0],p=c[1];function g(){o(!0),window.location=window.finish_wizard_url}Object(d.useEffect)((function(){(a>t||a<1)&&e.history.push("/steps/1")}),[a,t,e.history]);var v=Object(f.partial)(sc,e.history,g);function _(e){return o(!0),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"settings",action:"set",data:e}).then((function(){return o(!1)})).fail((function(e){var t;(o(!1),e.errors.length>0)&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}var y,w,E,k=(y=a,w=!window.is_mp2_migration_complete,E=window.is_woocommerce_active,1===y&&w?"WelcomeWizardSenderStep":1!==y||w?2===y?"WelcomeWizardEmailCourseStep":3===y?"WelcomeWizardUsageTrackingStep":4===y&&E?"WelcomeWizardWooCommerceStep":"WelcomeWizardPitchMSSStep":"WelcomeWizardMigratedUserStep");return h.a.createElement("div",{className:"mailpoet_welcome_wizard_steps"},"WelcomeWizardSenderStep"===k?h.a.createElement(nc,{step:a,stepsCount:t,illustrationUrl:window.wizard_sender_illustration_url},h.a.createElement(Kl,{update_sender:function(e){p(r()({},u,e))},submit_sender:function(){_(rc(u)).then((function(){return v(a)}))},finish:function(){o(!0),_(rc({address:window.admin_email,name:""})).then(g)},loading:s,sender:u})):null,"WelcomeWizardMigratedUserStep"===k?h.a.createElement(nc,{step:a,stepsCount:t,illustrationUrl:window.wizard_sender_illustration_url},h.a.createElement(Yl,{next:function(){return v(a)}})):null,"WelcomeWizardEmailCourseStep"===k?h.a.createElement(nc,{step:a,stepsCount:t,illustrationUrl:window.wizard_email_course_illustration_url},h.a.createElement(Ql,{next:function(){return v(a)}})):null,"WelcomeWizardUsageTrackingStep"===k?h.a.createElement(nc,{step:a,stepsCount:t,illustrationUrl:window.wizard_tracking_illustration_url},h.a.createElement(Xl,{skip_action:function(){return v(a)},allow_action:function(){_({analytics:{enabled:!0}}).then((function(){return v(a)}))},allow_text:t>3?b.a.I18n.t("allowAndContinue"):b.a.I18n.t("allowAndFinish"),loading:s})):null,"WelcomeWizardWooCommerceStep"===k?h.a.createElement(nc,{step:a,stepsCount:t,illustrationUrl:window.wizard_woocommerce_illustration_url},h.a.createElement(tc,{next:function(){return v(a)},screenshot_src:window.wizard_woocommerce_box_url,loading:s})):null,"WelcomeWizardPitchMSSStep"===k?h.a.createElement(nc,{step:a,stepsCount:t,illustrationUrl:window.wizard_MSS_pitch_illustration_url},h.a.createElement(fr,{next:function(){return v(a)},subscribersCount:window.subscribers_count,mailpoetAccountUrl:window.mailpoet_account_url})):null)};oc.propTypes={match:q.a.shape({params:q.a.shape({step:q.a.string}).isRequired}).isRequired,history:q.a.shape({push:q.a.func.isRequired}).isRequired};var lc=oc,cc=a(109),uc=a.n(cc),pc=function(e){function t(e){var a,n,r;return k()(this,t),(r=C()(this,T()(t).call(this,e))).state={importType:null},r.handleOptionChange=w()(a=r.handleOptionChange).call(a,A()(r)),r.submit=w()(n=r.submit).call(n,A()(r)),r}return O()(t,e),S()(t,[{key:"handleOptionChange",value:function(e){this.setState({importType:e.target.value})}},{key:"submit",value:function(e){return e.preventDefault(),!!this.state.importType&&(this.props.submitForm(this.state.importType),!1)}},{key:"render",value:function(){return h.a.createElement("div",{className:"mailpoet_welcome_wizard_step_content mailpoet_welcome_wizard_centered_column"},h.a.createElement("h1",null,b.a.I18n.t("wooCommerceListImportTitle")),h.a.createElement("p",null,b.a.I18n.t("wooCommerceListImportInfo1")),h.a.createElement("p",null,b.a.I18n.t("wooCommerceListImportInfo2")),h.a.createElement("p",null,h.a.createElement("b",null,b.a.I18n.t("wooCommerceListImportInfo3"))),h.a.createElement("form",{onSubmit:this.submit,className:"mailpoet_wizard_woocommerce_list"},h.a.createElement("label",{htmlFor:"import_type_subscribed"},h.a.createElement("input",{id:"import_type_subscribed",type:"radio",name:"import_type",checked:"subscribed"===this.state.importType,onChange:this.handleOptionChange,value:"subscribed","data-automation-id":"import_as_subscribed"}),uc()(b.a.I18n.t("wooCommerceListImportCheckboxSubscribed"))),h.a.createElement("label",{htmlFor:"import_type_unsubscribed"},h.a.createElement("input",{id:"import_type_unsubscribed",type:"radio",name:"import_type",checked:"unsubscribed"===this.state.importType,onChange:this.handleOptionChange,value:"unsubscribed","data-automation-id":"import_as_unsubscribed"}),uc()(b.a.I18n.t("wooCommerceListImportCheckboxUnsubscribed"))),h.a.createElement("p",null,b.a.I18n.t("wooCommerceListImportInfo4")),h.a.createElement("input",{className:"button button-primary",type:"submit",value:b.a.I18n.t("wooCommerceListImportSubmit"),disabled:!this.state.importType||this.props.loading,"data-automation-id":"submit_woo_commerce_list_import"})))}}]),t}(h.a.Component);pc.propTypes={submitForm:q.a.func.isRequired,loading:q.a.bool.isRequired};var mc=pc,dc=function(e){function t(e){var a,n,r,i,s;return k()(this,t),(s=C()(this,T()(t).call(this,e))).state={loading:!1},s.updateSettings=w()(a=s.updateSettings).call(a,A()(s)),s.scheduleImport=w()(n=s.scheduleImport).call(n,A()(s)),s.finishWizard=w()(r=s.finishWizard).call(r,A()(s)),s.submit=w()(i=s.submit).call(i,A()(s)),s}return O()(t,e),S()(t,[{key:"finishWizard",value:function(){this.setState({loading:!0}),window.location=window.finish_wizard_url}},{key:"updateSettings",value:function(e){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"settings",action:"set",data:e}).fail(this.handleApiError)}},{key:"scheduleImport",value:function(){var e=this;return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"importExport",action:"setupWooCommerceInitialImport"}).then((function(){return e.setState({loading:!1})})).fail(this.handleApiError)}},{key:"handleApiError",value:function(e){this.setState({loading:!1}),b.a.Notice.showApiErrorNotice(e,{scroll:!0})}},{key:"submit",value:function(e){this.setState({loading:!0});var t={woocommerce_import_screen_displayed:1,"mailpoet_subscribe_old_woocommerce_customers.enabled":"subscribed"===e?1:0};this.updateSettings(t).then(this.scheduleImport).then(this.finishWizard)}},{key:"render",value:function(){return h.a.createElement("div",{className:"mailpoet_welcome_wizard_steps mailpoet_welcome_wizard_centered_column"},h.a.createElement("div",{className:"mailpoet_welcome_wizard_header"},h.a.createElement("img",{src:window.mailpoet_logo_url,width:"200",height:"87",alt:"MailPoet logo"})),h.a.createElement(mc,{loading:this.state.loading,submitForm:this.submit}))}}]),t}(h.a.Component);dc.propTypes={};var hc=dc;function fc(e){var t=e.submitForm,a=e.loading,n=Object(d.useState)("true"),r=fe()(n,2),i=r[0],s=r[1];return h.a.createElement("div",{className:" mailpoet_welcome_wizard_step_content mailpoet_welcome_wizard_step_revenue_tracking mailpoet_welcome_wizard_centered_column "},h.a.createElement("p",null,b.a.I18n.t("revenueTrackingInfo1")),h.a.createElement("p",null,b.a.I18n.t("revenueTrackingInfo2")),h.a.createElement("form",{onSubmit:function(e){return e.preventDefault(),void 0!==i&&(t("true"===i),!1)},className:"mailpoet_wizard_woocommerce_list"},h.a.createElement("label",{htmlFor:"tracking_allowed"},h.a.createElement("input",{id:"tracking_allowed",type:"radio",name:"import_type",checked:"true"===i,onChange:function(e){return s(e.target.value)},value:"true"}),b.a.I18n.t("revenueTrackingAllow")),h.a.createElement("label",{htmlFor:"tracking_not_allowed"},h.a.createElement("input",{id:"tracking_not_allowed",type:"radio",name:"import_type",checked:"false"===i,onChange:function(e){return s(e.target.value)},value:"false"}),b.a.I18n.t("revenueTrackingDontAllow")),h.a.createElement("input",{className:"button button-primary",type:"submit",value:b.a.I18n.t("revenueTrackingSubmit"),disabled:a})))}fc.propTypes={submitForm:q.a.func.isRequired,loading:q.a.bool.isRequired};var gc=fc;var vc=function(){var e=Object(d.useState)(!1),t=fe()(e,2),a=t[0],n=t[1],r=function(e){n(!1),b.a.Notice.showApiErrorNotice(e,{scroll:!0})},i=function(){window.location=window.finish_wizard_url};return h.a.createElement("div",{className:"mailpoet_welcome_wizard_steps mailpoet_welcome_wizard_centered_column"},h.a.createElement("div",{className:"mailpoet_welcome_wizard_header"},h.a.createElement("img",{src:window.mailpoet_logo_url,width:"200",height:"87",alt:"MailPoet logo"})),h.a.createElement(gc,{loading:a,submitForm:function(e){var t;n(!0),(t={"woocommerce.accept_cookie_revenue_tracking.enabled":e?1:0,"woocommerce.accept_cookie_revenue_tracking.set":1},b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"settings",action:"set",data:t}).fail(r)).then(i)}}))},_c=document.getElementById("mailpoet_wizard_container");_c&&oe.a.render(h.a.createElement((function(){var e,t,a="/steps/1";u()(e=window.location.search).call(e,"revenue-tracking-permission")?a="/revenue-tracking-permission":u()(t=window.location.search).call(t,"woocommerce-list-import")&&(a="/import");var n=Ma(window);return h.a.createElement(ja.Provider,{value:n},h.a.createElement(Ke.a,null,h.a.createElement(za,null),h.a.createElement(B.Switch,null,h.a.createElement(B.Route,{path:"/steps/:step",component:lc}),h.a.createElement(B.Route,{path:"/import",component:hc}),h.a.createElement(B.Route,{path:"/revenue-tracking-permission",component:vc}),h.a.createElement(B.Route,{render:function(){return h.a.createElement(B.Redirect,{to:a})}}))))}),null),_c);var bc=a(470),yc=a.n(bc),wc=document.getElementById("experimental_features_container");wc&&oe.a.render(h.a.createElement((function(){var e,t=Object(d.useState)(null),a=fe()(t,2),n=a[0],i=a[1],o=Ma(window);function l(e){var t=e.target.name,a=e.target.checked;b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"featureFlags",action:"set",data:ne()({},t,a?1:0)}).done((function(){var e,o=n[t];o.value=a,i(r()({},n,ne()({},t,o))),b.a.Notice.success(s()(e="Feature '".concat(t,"' was ")).call(e,a?"enabled":"disabled","."))})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}return Object(d.useEffect)((function(){b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"featureFlags",action:"getAll"}).done((function(e){var t,a=be()(t=e.data).call(t,(function(e,t){return r()({},e,ne()({},t.name,t))}),{});i(a)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(m()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}),[]),null===n?h.a.createElement("p",null,"Loading experimental features..."):0===yc()(n).length?h.a.createElement("p",null,"There are no experimental features at the moment."):h.a.createElement(ja.Provider,{value:o},h.a.createElement(h.a.Fragment,null,h.a.createElement(za,null),m()(e=yc()(n)).call(e,(function(e){var t="experimental-feature-".concat(e.name);return h.a.createElement("div",{key:e.name},h.a.createElement("label",{htmlFor:t},h.a.createElement("input",{id:t,type:"checkbox",name:e.name,defaultChecked:e.value,onChange:l})," ",e.name))}))))}),null),wc)}},[[663,0,1]]]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/dist/js/admin.f226ce37.chunk.js ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (window.mailpoetJsonp=window.mailpoetJsonp||[]).push([[2,3],{108:function(e,t,a){e.exports=a(135)},135:function(e,t,a){e.exports=a(136)},136:function(e,t,a){a(137);var n=a(24);e.exports=n.Number.isNaN},137:function(e,t,a){a(18)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},25:function(e,t,a){
2
+ /**!
3
+
4
+ @license
5
+ handlebars v4.5.3
6
+
7
+ Copyright (C) 2011-2017 by Yehuda Katz
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in
17
+ all copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
+ THE SOFTWARE.
26
+
27
+ */
28
+ var n;n=function(){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}return a.m=e,a.c=t,a.p="",a(0)}([function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var r=n(a(2)),i=n(a(40)),s=a(41),o=a(46),l=n(a(49)),c=n(a(44)),u=n(a(39)),p=r.default.create;function d(){var e=p();return e.compile=function(t,a){return o.compile(t,a,e)},e.precompile=function(t,a){return o.precompile(t,a,e)},e.AST=i.default,e.Compiler=o.Compiler,e.JavaScriptCompiler=l.default,e.Parser=s.parser,e.parse=s.parse,e.parseWithoutProcessing=s.parseWithoutProcessing,e}var m=d();m.create=d,u.default(m),m.Visitor=c.default,m.default=m,t.default=m,e.exports=t.default},function(e,t){"use strict";t.default=function(e){return e&&e.__esModule?e:{default:e}},t.__esModule=!0},function(e,t,a){"use strict";var n=a(3).default,r=a(1).default;t.__esModule=!0;var i=n(a(4)),s=r(a(33)),o=r(a(6)),l=n(a(5)),c=n(a(34)),u=r(a(39));function p(){var e=new i.HandlebarsEnvironment;return l.extend(e,i),e.SafeString=s.default,e.Exception=o.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=c,e.template=function(t){return c.template(t,e)},e}var d=p();d.create=p,u.default(d),d.default=d,t.default=d,e.exports=t.default},function(e,t){"use strict";t.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t},t.__esModule=!0},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0,t.HandlebarsEnvironment=c;var r=a(5),i=n(a(6)),s=a(10),o=a(30),l=n(a(32));function c(e,t,a){this.helpers=e||{},this.partials=t||{},this.decorators=a||{},s.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}t.VERSION="4.5.3",t.COMPILER_REVISION=8,t.LAST_COMPATIBLE_COMPILER_REVISION=7,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"},c.prototype={constructor:c,logger:l.default,log:l.default.log,registerHelper:function(e,t){if("[object Object]"===r.toString.call(e)){if(t)throw new i.default("Arg not supported with multiple helpers");r.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if("[object Object]"===r.toString.call(e))r.extend(this.partials,e);else{if(void 0===t)throw new i.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if("[object Object]"===r.toString.call(e)){if(t)throw new i.default("Arg not supported with multiple decorators");r.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]}};var u=l.default.log;t.log=u,t.createFrame=r.createFrame,t.logger=l.default},function(e,t){"use strict";t.__esModule=!0,t.extend=s,t.indexOf=function(e,t){for(var a=0,n=e.length;a<n;a++)if(e[a]===t)return a;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return r.test(e)?e.replace(n,i):e},t.isEmpty=function(e){return!e&&0!==e||!(!c(e)||0!==e.length)},t.createFrame=function(e){var t=s({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},n=/[&<>"'`=]/g,r=/[&<>"'`=]/;function i(e){return a[e]}function s(e){for(var t=1;t<arguments.length;t++)for(var a in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],a)&&(e[a]=arguments[t][a]);return e}var o=Object.prototype.toString;t.toString=o;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)}),t.isFunction=l;var c=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===o.call(e)};t.isArray=c},function(e,t,a){"use strict";var n=a(7).default;t.__esModule=!0;var r=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function i(e,t){var a=t&&t.loc,s=void 0,o=void 0,l=void 0,c=void 0;a&&(s=a.start.line,o=a.end.line,l=a.start.column,c=a.end.column,e+=" - "+s+":"+l);for(var u=Error.prototype.constructor.call(this,e),p=0;p<r.length;p++)this[r[p]]=u[r[p]];Error.captureStackTrace&&Error.captureStackTrace(this,i);try{a&&(this.lineNumber=s,this.endLineNumber=o,n?(Object.defineProperty(this,"column",{value:l,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=l,this.endColumn=c))}catch(e){}}i.prototype=new Error,t.default=i,e.exports=t.default},function(e,t,a){e.exports={default:a(8),__esModule:!0}},function(e,t,a){var n=a(9);e.exports=function(e,t,a){return n.setDesc(e,t,a)}},function(e,t){var a=Object;e.exports={create:a.create,getProto:a.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:a.getOwnPropertyDescriptor,setDesc:a.defineProperty,setDescs:a.defineProperties,getKeys:a.keys,getNames:a.getOwnPropertyNames,getSymbols:a.getOwnPropertySymbols,each:[].forEach}},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0,t.registerDefaultHelpers=function(e){r.default(e),i.default(e),s.default(e),o.default(e),l.default(e),c.default(e),u.default(e)},t.moveHelperToHooks=function(e,t,a){e.helpers[t]&&(e.hooks[t]=e.helpers[t],a||delete e.helpers[t])};var r=n(a(11)),i=n(a(12)),s=n(a(25)),o=n(a(26)),l=n(a(27)),c=n(a(28)),u=n(a(29))},function(e,t,a){"use strict";t.__esModule=!0;var n=a(5);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,a){var r=a.inverse,i=a.fn;if(!0===t)return i(this);if(!1===t||null==t)return r(this);if(n.isArray(t))return t.length>0?(a.ids&&(a.ids=[a.name]),e.helpers.each(t,a)):r(this);if(a.data&&a.ids){var s=n.createFrame(a.data);s.contextPath=n.appendContextPath(a.data.contextPath,a.name),a={data:s}}return i(t,a)}))},e.exports=t.default},function(e,t,a){(function(n){"use strict";var r=a(13).default,i=a(1).default;t.__esModule=!0;var s=a(5),o=i(a(6));t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new o.default("Must pass iterator to #each");var a,i=t.fn,l=t.inverse,c=0,u="",p=void 0,d=void 0;function m(t,a,n){p&&(p.key=t,p.index=a,p.first=0===a,p.last=!!n,d&&(p.contextPath=d+t)),u+=i(e[t],{data:p,blockParams:s.blockParams([e[t],t],[d+t,null])})}if(t.data&&t.ids&&(d=s.appendContextPath(t.data.contextPath,t.ids[0])+"."),s.isFunction(e)&&(e=e.call(this)),t.data&&(p=s.createFrame(t.data)),e&&"object"==typeof e)if(s.isArray(e))for(var h=e.length;c<h;c++)c in e&&m(c,c,c===e.length-1);else if(n.Symbol&&e[n.Symbol.iterator]){for(var f=[],g=e[n.Symbol.iterator](),v=g.next();!v.done;v=g.next())f.push(v.value);for(h=(e=f).length;c<h;c++)m(c,c,c===e.length-1)}else a=void 0,r(e).forEach((function(e){void 0!==a&&m(a,c-1),a=e,c++})),void 0!==a&&m(a,c-1,!0);return 0===c&&(u=l(this)),u}))},e.exports=t.default}).call(t,function(){return this}())},function(e,t,a){e.exports={default:a(14),__esModule:!0}},function(e,t,a){a(15),e.exports=a(21).Object.keys},function(e,t,a){var n=a(16);a(18)("keys",(function(e){return function(t){return e(n(t))}}))},function(e,t,a){var n=a(17);e.exports=function(e){return Object(n(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,a){var n=a(19),r=a(21),i=a(24);e.exports=function(e,t){var a=(r.Object||{})[e]||Object[e],s={};s[e]=t(a),n(n.S+n.F*i((function(){a(1)})),"Object",s)}},function(e,t,a){var n=a(20),r=a(21),i=a(22),s=function(e,t,a){var o,l,c,u=e&s.F,p=e&s.G,d=e&s.S,m=e&s.P,h=e&s.B,f=e&s.W,g=p?r:r[t]||(r[t]={}),v=p?n:d?n[t]:(n[t]||{}).prototype;for(o in p&&(a=t),a)(l=!u&&v&&o in v)&&o in g||(c=l?v[o]:a[o],g[o]=p&&"function"!=typeof v[o]?a[o]:h&&l?i(c,n):f&&v[o]==c?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t.prototype=e.prototype,t}(c):m&&"function"==typeof c?i(Function.call,c):c,m&&((g.prototype||(g.prototype={}))[o]=c))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,e.exports=s},function(e,t){var a=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},function(e,t){var a=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=a)},function(e,t,a){var n=a(23);e.exports=function(e,t,a){if(n(e),void 0===t)return e;switch(a){case 1:return function(a){return e.call(t,a)};case 2:return function(a,n){return e.call(t,a,n)};case 3:return function(a,n,r){return e.call(t,a,n,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var r=n(a(6));t.default=function(e){e.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var r=a(5),i=n(a(6));t.default=function(e){e.registerHelper("if",(function(e,t){if(2!=arguments.length)throw new i.default("#if requires exactly one argument");return r.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||r.isEmpty(e)?t.inverse(this):t.fn(this)})),e.registerHelper("unless",(function(t,a){if(2!=arguments.length)throw new i.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:a.inverse,inverse:a.fn,hash:a.hash})}))},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",(function(){for(var t=[void 0],a=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var r=1;null!=a.hash.level?r=a.hash.level:a.data&&null!=a.data.level&&(r=a.data.level),t[0]=r,e.log.apply(e,t)}))},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0;var a=/^(constructor|__defineGetter__|__defineSetter__|__lookupGetter__|__proto__)$/;t.dangerousPropertyRegex=a,t.default=function(e){e.registerHelper("lookup",(function(e,t){return e?!a.test(String(t))||Object.prototype.propertyIsEnumerable.call(e,t)?e[t]:void 0:e}))}},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var r=a(5),i=n(a(6));t.default=function(e){e.registerHelper("with",(function(e,t){if(2!=arguments.length)throw new i.default("#with requires exactly one argument");r.isFunction(e)&&(e=e.call(this));var a=t.fn;if(r.isEmpty(e))return t.inverse(this);var n=t.data;return t.data&&t.ids&&((n=r.createFrame(t.data)).contextPath=r.appendContextPath(t.data.contextPath,t.ids[0])),a(e,{data:n,blockParams:r.blockParams([e],[n&&n.contextPath])})}))},e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0,t.registerDefaultDecorators=function(e){r.default(e)};var r=n(a(31))},function(e,t,a){"use strict";t.__esModule=!0;var n=a(5);t.default=function(e){e.registerDecorator("inline",(function(e,t,a,r){var i=e;return t.partials||(t.partials={},i=function(r,i){var s=a.partials;a.partials=n.extend({},s,t.partials);var o=e(r,i);return a.partials=s,o}),t.partials[r.args[0]]=r.fn,i}))},e.exports=t.default},function(e,t,a){"use strict";t.__esModule=!0;var n=a(5),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=n.indexOf(r.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=r.lookupLevel(e),"undefined"!=typeof console&&r.lookupLevel(r.level)<=e){var t=r.methodMap[e];console[t]||(t="log");for(var a=arguments.length,n=Array(a>1?a-1:0),i=1;i<a;i++)n[i-1]=arguments[i];console[t].apply(console,n)}}};t.default=r,e.exports=t.default},function(e,t){"use strict";function a(e){this.string=e}t.__esModule=!0,a.prototype.toString=a.prototype.toHTML=function(){return""+this.string},t.default=a,e.exports=t.default},function(e,t,a){"use strict";var n=a(35).default,r=a(3).default,i=a(1).default;t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,a=l.COMPILER_REVISION;if(!(t>=l.LAST_COMPATIBLE_COMPILER_REVISION&&t<=l.COMPILER_REVISION)){if(t<l.LAST_COMPATIBLE_COMPILER_REVISION){var n=l.REVISION_CHANGES[a],r=l.REVISION_CHANGES[t];throw new o.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+r+").")}throw new o.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}},t.template=function(e,t){if(!t)throw new o.default("No environment passed to template");if(!e||!e.main)throw new o.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var a=e.compiler&&7===e.compiler[0],r={strict:function(e,t,a){if(!(e&&t in e))throw new o.default('"'+t+'" not defined in '+e,{loc:a});return e[t]},lookup:function(e,t){for(var a=e.length,n=0;n<a;n++)if(e[n]&&null!=e[n][t])return e[n][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:s.escapeExpression,invokePartial:function(a,n,r){r.hash&&(n=s.extend({},n,r.hash),r.ids&&(r.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,n,r);var i=s.extend({},r,{hooks:this.hooks}),l=t.VM.invokePartial.call(this,a,n,i);if(null==l&&t.compile&&(r.partials[r.name]=t.compile(a,e.compilerOptions,t),l=r.partials[r.name](n,i)),null!=l){if(r.indent){for(var c=l.split("\n"),u=0,p=c.length;u<p&&(c[u]||u+1!==p);u++)c[u]=r.indent+c[u];l=c.join("\n")}return l}throw new o.default("The partial "+r.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var a=e[t];return a.decorator=e[t+"_d"],a},programs:[],program:function(e,t,a,n,r){var i=this.programs[e],s=this.fn(e);return t||r||n||a?i=u(this,e,s,t,a,n,r):i||(i=this.programs[e]=u(this,e,s)),i},data:function(e,t){for(;e&&t--;)e=e._parent;return e},nullContext:n({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(t){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=a.data;i._setup(a),!a.partial&&e.useData&&(n=function(e,t){return t&&"root"in t||((t=t?l.createFrame(t):{}).root=e),t}(t,n));var s=void 0,o=e.useBlockParams?[]:void 0;function c(t){return""+e.main(r,t,r.helpers,r.partials,n,o,s)}return e.useDepths&&(s=a.depths?t!=a.depths[0]?[t].concat(a.depths):a.depths:[t]),(c=d(e.main,c,r,a.depths||[],n,o))(t,a)}return i.isTop=!0,i._setup=function(n){if(n.partial)r.helpers=n.helpers,r.partials=n.partials,r.decorators=n.decorators,r.hooks=n.hooks;else{r.helpers=s.extend({},t.helpers,n.helpers),e.usePartial&&(r.partials=s.extend({},t.partials,n.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=s.extend({},t.decorators,n.decorators)),r.hooks={};var i=n.allowCallsToHelperMissing||a;c.moveHelperToHooks(r,"helperMissing",i),c.moveHelperToHooks(r,"blockHelperMissing",i)}},i._child=function(t,a,n,i){if(e.useBlockParams&&!n)throw new o.default("must pass block params");if(e.useDepths&&!i)throw new o.default("must pass parent depths");return u(r,t,e[t],a,0,n,i)},i},t.wrapProgram=u,t.resolvePartial=function(e,t,a){return e?e.call||a.name||(a.name=e,e=a.partials[e]):e="@partial-block"===a.name?a.data["partial-block"]:a.partials[a.name],e},t.invokePartial=function(e,t,a){var n=a.data&&a.data["partial-block"];a.partial=!0,a.ids&&(a.data.contextPath=a.ids[0]||a.data.contextPath);var r=void 0;if(a.fn&&a.fn!==p&&function(){a.data=l.createFrame(a.data);var e=a.fn;r=a.data["partial-block"]=function(t){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return a.data=l.createFrame(a.data),a.data["partial-block"]=n,e(t,a)},e.partials&&(a.partials=s.extend({},a.partials,e.partials))}(),void 0===e&&r&&(e=r),void 0===e)throw new o.default("The partial "+a.name+" could not be found");if(e instanceof Function)return e(t,a)},t.noop=p;var s=r(a(5)),o=i(a(6)),l=a(4),c=a(10);function u(e,t,a,n,r,i,s){function o(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=s;return!s||t==s[0]||t===e.nullContext&&null===s[0]||(o=[t].concat(s)),a(e,t,e.helpers,e.partials,r.data||n,i&&[r.blockParams].concat(i),o)}return(o=d(a,o,e,s,n,i)).program=t,o.depth=s?s.length:0,o.blockParams=r||0,o}function p(){return""}function d(e,t,a,n,r,i){if(e.decorator){var o={};t=e.decorator(t,o,a,n&&n[0],r,i,n),s.extend(t,o)}return t}},function(e,t,a){e.exports={default:a(36),__esModule:!0}},function(e,t,a){a(37),e.exports=a(21).Object.seal},function(e,t,a){var n=a(38);a(18)("seal",(function(e){return function(t){return e&&n(t)?e(t):t}}))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){(function(a){"use strict";t.__esModule=!0,t.default=function(e){var t=void 0!==a?a:window,n=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=n),e}},e.exports=t.default}).call(t,function(){return this}())},function(e,t){"use strict";t.__esModule=!0;var a={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!a.helpers.scopedId(e)&&!e.depth}}};t.default=a,e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default,r=a(3).default;t.__esModule=!0,t.parseWithoutProcessing=u,t.parse=function(e,t){var a=u(e,t);return new s.default(t).accept(a)};var i=n(a(42)),s=n(a(43)),o=r(a(45)),l=a(5);t.parser=i.default;var c={};function u(e,t){return"Program"===e.type?e:(i.default.yy=c,c.locInfo=function(e){return new c.SourceLocation(t&&t.srcName,e)},i.default.parse(e))}l.extend(c,o)},function(e,t){"use strict";t.__esModule=!0;var a=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,a,n,r,i,s){var o=i.length-1;switch(r){case 1:return i[o-1];case 2:this.$=n.prepareProgram(i[o]);break;case 3:case 4:case 5:case 6:case 7:case 8:this.$=i[o];break;case 9:this.$={type:"CommentStatement",value:n.stripComment(i[o]),strip:n.stripFlags(i[o],i[o]),loc:n.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:i[o],value:i[o],loc:n.locInfo(this._$)};break;case 11:this.$=n.prepareRawBlock(i[o-2],i[o-1],i[o],this._$);break;case 12:this.$={path:i[o-3],params:i[o-2],hash:i[o-1]};break;case 13:this.$=n.prepareBlock(i[o-3],i[o-2],i[o-1],i[o],!1,this._$);break;case 14:this.$=n.prepareBlock(i[o-3],i[o-2],i[o-1],i[o],!0,this._$);break;case 15:this.$={open:i[o-5],path:i[o-4],params:i[o-3],hash:i[o-2],blockParams:i[o-1],strip:n.stripFlags(i[o-5],i[o])};break;case 16:case 17:this.$={path:i[o-4],params:i[o-3],hash:i[o-2],blockParams:i[o-1],strip:n.stripFlags(i[o-5],i[o])};break;case 18:this.$={strip:n.stripFlags(i[o-1],i[o-1]),program:i[o]};break;case 19:var l=n.prepareBlock(i[o-2],i[o-1],i[o],i[o],!1,this._$),c=n.prepareProgram([l],i[o-1].loc);c.chained=!0,this.$={strip:i[o-2].strip,program:c,chain:!0};break;case 20:this.$=i[o];break;case 21:this.$={path:i[o-1],strip:n.stripFlags(i[o-2],i[o])};break;case 22:case 23:this.$=n.prepareMustache(i[o-3],i[o-2],i[o-1],i[o-4],n.stripFlags(i[o-4],i[o]),this._$);break;case 24:this.$={type:"PartialStatement",name:i[o-3],params:i[o-2],hash:i[o-1],indent:"",strip:n.stripFlags(i[o-4],i[o]),loc:n.locInfo(this._$)};break;case 25:this.$=n.preparePartialBlock(i[o-2],i[o-1],i[o],this._$);break;case 26:this.$={path:i[o-3],params:i[o-2],hash:i[o-1],strip:n.stripFlags(i[o-4],i[o])};break;case 27:case 28:this.$=i[o];break;case 29:this.$={type:"SubExpression",path:i[o-3],params:i[o-2],hash:i[o-1],loc:n.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:i[o],loc:n.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:n.id(i[o-2]),value:i[o],loc:n.locInfo(this._$)};break;case 32:this.$=n.id(i[o-1]);break;case 33:case 34:this.$=i[o];break;case 35:this.$={type:"StringLiteral",value:i[o],original:i[o],loc:n.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(i[o]),original:Number(i[o]),loc:n.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===i[o],original:"true"===i[o],loc:n.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:n.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:n.locInfo(this._$)};break;case 40:case 41:this.$=i[o];break;case 42:this.$=n.preparePath(!0,i[o],this._$);break;case 43:this.$=n.preparePath(!1,i[o],this._$);break;case 44:i[o-2].push({part:n.id(i[o]),original:i[o],separator:i[o-1]}),this.$=i[o-2];break;case 45:this.$=[{part:n.id(i[o]),original:i[o]}];break;case 46:this.$=[];break;case 47:i[o-1].push(i[o]);break;case 48:this.$=[];break;case 49:i[o-1].push(i[o]);break;case 50:this.$=[];break;case 51:i[o-1].push(i[o]);break;case 58:this.$=[];break;case 59:i[o-1].push(i[o]);break;case 64:this.$=[];break;case 65:i[o-1].push(i[o]);break;case 70:this.$=[];break;case 71:i[o-1].push(i[o]);break;case 78:this.$=[];break;case 79:i[o-1].push(i[o]);break;case 82:this.$=[];break;case 83:i[o-1].push(i[o]);break;case 86:this.$=[];break;case 87:i[o-1].push(i[o]);break;case 90:this.$=[];break;case 91:i[o-1].push(i[o]);break;case 94:this.$=[];break;case 95:i[o-1].push(i[o]);break;case 98:this.$=[i[o]];break;case 99:i[o-1].push(i[o]);break;case 100:this.$=[i[o]];break;case 101:i[o-1].push(i[o])}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,a=[0],n=[null],r=[],i=this.table,s="",o=0,l=0,c=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var u=this.lexer.yylloc;r.push(u);var p=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var d,m,h,f,g,v,_,b,y,w,E={};;){if(h=a[a.length-1],this.defaultActions[h]?f=this.defaultActions[h]:(null==d&&(w=void 0,"number"!=typeof(w=t.lexer.lex()||1)&&(w=t.symbols_[w]||w),d=w),f=i[h]&&i[h][d]),void 0===f||!f.length||!f[0]){var k="";if(!c){for(v in y=[],i[h])this.terminals_[v]&&v>2&&y.push("'"+this.terminals_[v]+"'");k=this.lexer.showPosition?"Parse error on line "+(o+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+y.join(", ")+", got '"+(this.terminals_[d]||d)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==d?"end of input":"'"+(this.terminals_[d]||d)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[d]||d,line:this.lexer.yylineno,loc:u,expected:y})}}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+h+", token: "+d);switch(f[0]){case 1:a.push(d),n.push(this.lexer.yytext),r.push(this.lexer.yylloc),a.push(f[1]),d=null,m?(d=m,m=null):(l=this.lexer.yyleng,s=this.lexer.yytext,o=this.lexer.yylineno,u=this.lexer.yylloc,c>0&&c--);break;case 2:if(_=this.productions_[f[1]][1],E.$=n[n.length-_],E._$={first_line:r[r.length-(_||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(_||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(_||1)].range[0],r[r.length-1].range[1]]),void 0!==(g=this.performAction.call(E,s,l,o,this.yy,f[1],n,r)))return g;_&&(a=a.slice(0,-1*_*2),n=n.slice(0,-1*_),r=r.slice(0,-1*_)),a.push(this.productions_[f[1]][0]),n.push(E.$),r.push(E._$),b=i[a[a.length-2]][a[a.length-1]],a.push(b);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,a=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===n.length?this.yylloc.first_column:0)+n[n.length-a.length].length-a[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,a,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),s=0;s<i.length&&(!(a=this._input.match(this.rules[i[s]]))||t&&!(a[0].length>t[0].length)||(t=a,n=s,this.options.flex));s++);return t?((r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,i[n],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,a,n){function r(e,a){return t.yytext=t.yytext.substring(e,t.yyleng-a+e)}switch(a){case 0:if("\\\\"===t.yytext.slice(-2)?(r(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(r(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(r(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=r(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=r(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return e}();function a(){this.yy={}}return e.lexer=t,a.prototype=e,e.Parser=a,new a}();t.default=a,e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var r=n(a(44));function i(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function s(e,t,a){void 0===t&&(t=e.length);var n=e[t-1],r=e[t-2];return n?"ContentStatement"===n.type?(r||!a?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original):void 0:a}function o(e,t,a){void 0===t&&(t=-1);var n=e[t+1],r=e[t+2];return n?"ContentStatement"===n.type?(r||!a?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original):void 0:a}function l(e,t,a){var n=e[null==t?0:t+1];if(n&&"ContentStatement"===n.type&&(a||!n.rightStripped)){var r=n.value;n.value=n.value.replace(a?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==r}}function c(e,t,a){var n=e[null==t?e.length-1:t-1];if(n&&"ContentStatement"===n.type&&(a||!n.leftStripped)){var r=n.value;return n.value=n.value.replace(a?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==r,n.leftStripped}}i.prototype=new r.default,i.prototype.Program=function(e){var t=!this.options.ignoreStandalone,a=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,r=0,i=n.length;r<i;r++){var u=n[r],p=this.accept(u);if(p){var d=s(n,r,a),m=o(n,r,a),h=p.openStandalone&&d,f=p.closeStandalone&&m,g=p.inlineStandalone&&d&&m;p.close&&l(n,r,!0),p.open&&c(n,r,!0),t&&g&&(l(n,r),c(n,r)&&"PartialStatement"===u.type&&(u.indent=/([ \t]+$)/.exec(n[r-1].original)[1])),t&&h&&(l((u.program||u.inverse).body),c(n,r)),t&&f&&(l(n,r),c((u.inverse||u.program).body))}}return e},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,a=e.program&&e.inverse,n=a,r=a;if(a&&a.chained)for(n=a.body[0].program;r.chained;)r=r.body[r.body.length-1].program;var i={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:o(t.body),closeStandalone:s((n||t).body)};if(e.openStrip.close&&l(t.body,null,!0),a){var u=e.inverseStrip;u.open&&c(t.body,null,!0),u.close&&l(n.body,null,!0),e.closeStrip.open&&c(r.body,null,!0),!this.options.ignoreStandalone&&s(t.body)&&o(n.body)&&(c(t.body),l(n.body))}else e.closeStrip.open&&c(t.body,null,!0);return i},i.prototype.Decorator=i.prototype.MustacheStatement=function(e){return e.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=i,e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var r=n(a(6));function i(){this.parents=[]}function s(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function o(e){s.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function l(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}i.prototype={constructor:i,mutating:!1,acceptKey:function(e,t){var a=this.accept(e[t]);if(this.mutating){if(a&&!i.prototype[a.type])throw new r.default('Unexpected node type "'+a.type+'" found when accepting '+t+" on "+e.type);e[t]=a}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new r.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,a=e.length;t<a;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,a--)},accept:function(e){if(e){if(!this[e.type])throw new r.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:!1!==t?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:s,Decorator:s,BlockStatement:o,DecoratorBlock:o,PartialStatement:l,PartialBlockStatement:function(e){l.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:s,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t.default=i,e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0,t.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},t.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function(e,t,a){a=this.locInfo(a);for(var n=e?"@":"",i=[],s=0,o=0,l=t.length;o<l;o++){var c=t[o].part,u=t[o].original!==c;if(n+=(t[o].separator||"")+c,u||".."!==c&&"."!==c&&"this"!==c)i.push(c);else{if(i.length>0)throw new r.default("Invalid path: "+n,{loc:a});".."===c&&s++}}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:a}},t.prepareMustache=function(e,t,a,n,r,i){var s=n.charAt(3)||n.charAt(2),o="{"!==s&&"&"!==s;return{type:/\*/.test(n)?"Decorator":"MustacheStatement",path:e,params:t,hash:a,escaped:o,strip:r,loc:this.locInfo(i)}},t.prepareRawBlock=function(e,t,a,n){i(e,a),n=this.locInfo(n);var r={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:r,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}},t.prepareBlock=function(e,t,a,n,s,o){n&&n.path&&i(e,n);var l=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(a){if(l)throw new r.default("Unexpected inverse block on decorator",a);a.chain&&(a.program.body[0].closeStrip=n.strip),u=a.strip,c=a.program}return s&&(s=c,c=t,t=s),{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(o)}},t.prepareProgram=function(e,t){if(!t&&e.length){var a=e[0].loc,n=e[e.length-1].loc;a&&n&&(t={source:a.source,start:{line:a.start.line,column:a.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function(e,t,a,n){return i(e,a),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:a&&a.strip,loc:this.locInfo(n)}};var r=n(a(6));function i(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var a={loc:e.path.loc};throw new r.default(e.path.original+" doesn't match "+t,a)}}},function(e,t,a){"use strict";var n=a(47).default,r=a(1).default;t.__esModule=!0,t.Compiler=c,t.precompile=function(e,t,a){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0),t.compat&&(t.useDepths=!0);var n=a.parse(e,t),r=(new a.Compiler).compile(n,t);return(new a.JavaScriptCompiler).compile(r,t)},t.compile=function(e,t,a){if(void 0===t&&(t={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(t=s.extend({},t))||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function r(){var n=a.parse(e,t),r=(new a.Compiler).compile(n,t),i=(new a.JavaScriptCompiler).compile(r,t,void 0,!0);return a.template(i)}function o(e,t){return n||(n=r()),n.call(this,e,t)}return o._setup=function(e){return n||(n=r()),n._setup(e)},o._child=function(e,t,a,i){return n||(n=r()),n._child(e,t,a,i)},o};var i=r(a(6)),s=a(5),o=r(a(40)),l=[].slice;function c(){}function u(e,t){if(e===t)return!0;if(s.isArray(e)&&s.isArray(t)&&e.length===t.length){for(var a=0;a<e.length;a++)if(!u(e[a],t[a]))return!1;return!0}}function p(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}c.prototype={compiler:c,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var a=0;a<t;a++){var n=this.opcodes[a],r=e.opcodes[a];if(n.opcode!==r.opcode||!u(n.args,r.args))return!1}for(t=this.children.length,a=0;a<t;a++)if(!this.children[a].equals(e.children[a]))return!1;return!0},guid:0,compile:function(e,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=s.extend(n(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(e)},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),a=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[a]=t,this.useDepths=this.useDepths||t.useDepths,a},accept:function(e){if(!this[e.type])throw new i.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,a=t.length,n=0;n<a;n++)this.accept(t[n]);return this.options.blockParams.shift(),this.isSimple=1===a,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){p(e);var t=e.program,a=e.inverse;t=t&&this.compileProgram(t),a=a&&this.compileProgram(a);var n=this.classifySexpr(e);"helper"===n?this.helperSexpr(e,t,a):"simple"===n?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,a),this.opcode("pushProgram",t),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),a=this.setupFullMustacheParams(e,t,void 0),n=e.path;this.useDecorators=!0,this.opcode("registerDecorator",a.length,n.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var a=e.params;if(a.length>1)throw new i.default("Unsupported number of partial arguments: "+a.length,e);a.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):a.push({type:"PathExpression",parts:[],depth:0}));var n=e.name.original,r="SubExpression"===e.name.type;r&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var s=e.indent||"";this.options.preventIndent&&s&&(this.opcode("appendContent",s),s=""),this.opcode("invokePartial",r,n,s),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){p(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,a){var n=e.path,r=n.parts[0],i=null!=t||null!=a;this.opcode("getContext",n.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",a),n.strict=!0,this.accept(n),this.opcode("invokeAmbiguous",r,i)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,a){var n=this.setupFullMustacheParams(e,t,a),r=e.path,s=r.parts[0];if(this.options.knownHelpers[s])this.opcode("invokeKnownHelper",n.length,s);else{if(this.options.knownHelpersOnly)throw new i.default("You specified knownHelpersOnly, but used the unknown helper "+s,e);r.strict=!0,r.falsy=!0,this.accept(r),this.opcode("invokeHelper",n.length,r.original,o.default.helpers.simpleId(r))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],a=o.default.helpers.scopedId(e),n=!e.depth&&!a&&this.blockParamIndex(t);n?this.opcode("lookupBlockParam",n,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,a):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,a=0,n=t.length;for(this.opcode("pushHash");a<n;a++)this.pushParam(t[a].value);for(;a--;)this.opcode("assignToHash",t[a].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:l.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=o.default.helpers.simpleId(e.path),a=t&&!!this.blockParamIndex(e.path.parts[0]),n=!a&&o.default.helpers.helperExpression(e),r=!a&&(n||t);if(r&&!n){var i=e.path.parts[0],s=this.options;s.knownHelpers[i]?n=!0:s.knownHelpersOnly&&(r=!1)}return n?"helper":r?"ambiguous":"simple"},pushParams:function(e){for(var t=0,a=e.length;t<a;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var a=void 0;if(!e.parts||o.default.helpers.scopedId(e)||e.depth||(a=this.blockParamIndex(e.parts[0])),a){var n=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",a,n)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,a,n){var r=e.params;return this.pushParams(r),this.opcode("pushProgram",t),this.opcode("pushProgram",a),e.hash?this.accept(e.hash):this.opcode("emptyHash",n),r},blockParamIndex:function(e){for(var t=0,a=this.options.blockParams.length;t<a;t++){var n=this.options.blockParams[t],r=n&&s.indexOf(n,e);if(n&&r>=0)return[t,r]}}}},function(e,t,a){e.exports={default:a(48),__esModule:!0}},function(e,t,a){var n=a(9);e.exports=function(e,t){return n.create(e,t)}},function(e,t,a){"use strict";var n=a(13).default,r=a(1).default;t.__esModule=!0;var i=a(4),s=r(a(6)),o=a(5),l=r(a(50)),c=a(28);function u(e){this.value=e}function p(){}p.prototype={nameLookup:function(e,t){return c.dangerousPropertyRegex.test(t)?["(",[this.aliasable("container.propertyIsEnumerable"),".call(",e,",",JSON.stringify(t),")"],"?",a()," : undefined)"]:a();function a(){return p.isValidJavaScriptVariableName(t)?[e,".",t]:[e,"[",JSON.stringify(t),"]"]}},depthedLookup:function(e){return[this.aliasable("container.lookup"),'(depths, "',e,'")']},compilerInfo:function(){var e=i.COMPILER_REVISION;return[e,i.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,a){return o.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:a?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},compile:function(e,t,a,n){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!a,this.context=a||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var r=e.opcodes,i=void 0,o=void 0,l=void 0,c=void 0;for(l=0,c=r.length;l<c;l++)i=r[l],this.source.currentLocation=i.loc,o=o||i.loc,this[i.opcode].apply(this,i.args);if(this.source.currentLocation=o,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new s.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend("var decorators = container.decorators;\n"),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(n);if(this.isChild)return u;var p={compiler:this.compilerInfo(),main:u};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var d=this.context,m=d.programs,h=d.decorators;for(l=0,c=m.length;l<c;l++)m[l]&&(p[l]=m[l],h[l]&&(p[l+"_d"]=h[l],p.useDecorators=!0));return this.environment.usePartial&&(p.usePartial=!0),this.options.data&&(p.useData=!0),this.useDepths&&(p.useDepths=!0),this.useBlockParams&&(p.useBlockParams=!0),this.options.compat&&(p.compat=!0),n?p.compilerOptions=this.options:(p.compiler=JSON.stringify(p.compiler),this.source.currentLocation={start:{line:1,column:0}},p=this.objectLiteral(p),t.srcName?(p=p.toStringWithSourceMap({file:t.destName})).map=p.map&&p.map.toString():p=p.toString()),p},preamble:function(){this.lastContext=0,this.source=new l.default(this.options.srcName),this.decorators=new l.default(this.options.srcName)},createFunctionContext:function(e){var t=this,a="",r=this.stackVars.concat(this.registers.list);r.length>0&&(a+=", "+r.join(", "));var i=0;n(this.aliases).forEach((function(e){var n=t.aliases[e];n.children&&n.referenceCount>1&&(a+=", alias"+ ++i+"="+e,n.children[0]="alias"+i)}));var s=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&s.push("blockParams"),this.useDepths&&s.push("depths");var o=this.mergeSource(a);return e?(s.push(o),Function.apply(this,s)):this.source.wrap(["function(",s.join(","),") {\n ",o,"}"])},mergeSource:function(e){var t=this.environment.isSimple,a=!this.forceBuffer,n=void 0,r=void 0,i=void 0,s=void 0;return this.source.each((function(e){e.appendToBuffer?(i?e.prepend(" + "):i=e,s=e):(i&&(r?i.prepend("buffer += "):n=!0,s.add(";"),i=s=void 0),r=!0,t||(a=!1))})),a?i?(i.prepend("return "),s.add(";")):r||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),i?(i.prepend("return buffer + "),s.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":";\n")),this.source.merge()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),a=[this.contextName(0)];this.setupHelperArgs(e,0,a);var n=this.popStack();a.splice(1,0,n),this.push(this.source.functionCall(t,"call",a))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var a=this.topStack();t.splice(1,0,a),this.pushSource(["if (!",this.lastHelper,") { ",a," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack((function(e){return[" != null ? ",e,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,a,n){var r=0;n||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[r++])),this.resolvePath("context",e,r,t,a)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,a){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,a)},resolvePath:function(e,t,a,n,r){var i=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,a,n){var r=t.popStack(),i=0,s=a.length;for(e&&s--;i<s;i++)r=t.nameLookup(r,a[i],n);return e?[t.aliasable("container.strict"),"(",r,", ",t.quotedString(a[i]),", ",JSON.stringify(t.source.currentLocation)," )"]:r}(this.options.strict&&r,this,t,e));else for(var s=t.length;a<s;a++)this.replaceStack((function(r){var s=i.nameLookup(r,t[a],e);return n?[" && ",s]:[" != null ? ",s," : ",r]}))},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var a=this.nameLookup("decorators",t,"decorator"),n=this.setupHelperArgs(t,e);this.decorators.push(["fn = ",this.decorators.functionCall(a,"",["fn","props","container",n])," || fn;"])},invokeHelper:function(e,t,a){var n=this.popStack(),r=this.setupHelper(e,t),i=[];a&&i.push(r.name),i.push(n),this.options.strict||i.push(this.aliasable("container.hooks.helperMissing"));var s=["(",this.itemsSeparatedBy(i,"||"),")"],o=this.source.functionCall(s,"call",r.callParams);this.push(o)},itemsSeparatedBy:function(e,t){var a=[];a.push(e[0]);for(var n=1;n<e.length;n++)a.push(t,e[n]);return a},invokeKnownHelper:function(e,t){var a=this.setupHelper(e,t);this.push(this.source.functionCall(a.name,"call",a.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var a=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,t),r=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",e,"helper")," || ",a,")"];this.options.strict||(r[0]="(helper = ",r.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",r,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(e,t,a){var n=[],r=this.setupParams(t,1,n);e&&(t=this.popStack(),delete r.name),a&&(r.indent=JSON.stringify(a)),r.helpers="helpers",r.partials="partials",r.decorators="container.decorators",e?n.unshift(t):n.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(r.depths="depths"),r=this.objectLiteral(r),n.push(r),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash:function(e){var t=this.popStack(),a=void 0,n=void 0,r=void 0;this.trackIds&&(r=this.popStack()),this.stringParams&&(n=this.popStack(),a=this.popStack());var i=this.hash;a&&(i.contexts[e]=a),n&&(i.types[e]=n),r&&(i.ids[e]=r),i.values[e]=t},pushId:function(e,t,a){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(a?" + "+JSON.stringify("."+a):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:p,compileChildren:function(e,t){for(var a=e.children,n=void 0,r=void 0,i=0,s=a.length;i<s;i++){n=a[i],r=new this.compiler;var o=this.matchExistingProgram(n);if(null==o){this.context.programs.push("");var l=this.context.programs.length;n.index=l,n.name="program"+l,this.context.programs[l]=r.compile(n,t,this.context,!this.precompile),this.context.decorators[l]=r.decorators,this.context.environments[l]=n,this.useDepths=this.useDepths||r.useDepths,this.useBlockParams=this.useBlockParams||r.useBlockParams,n.useDepths=this.useDepths,n.useBlockParams=this.useBlockParams}else n.index=o.index,n.name="program"+o.index,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams}},matchExistingProgram:function(e){for(var t=0,a=this.context.environments.length;t<a;t++){var n=this.context.environments[t];if(n&&n.equals(e))return n}},programExpression:function(e){var t=this.environment.children[e],a=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths"),"container.program("+a.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof u||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new u(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],a=void 0,n=void 0,r=void 0;if(!this.isInline())throw new s.default("replaceStack on non-inline");var i=this.popStack(!0);if(i instanceof u)t=["(",a=[i.value]],r=!0;else{n=!0;var o=this.incrStack();t=["((",this.push(o)," = ",i,")"],a=this.topStack()}var l=e.call(this,a);r||this.popStack(),n&&this.stackSlot--,this.push(t.concat(l,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,a=e.length;t<a;t++){var n=e[t];if(n instanceof u)this.compileStack.push(n);else{var r=this.incrStack();this.pushSource([r," = ",n,";"]),this.compileStack.push(r)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),a=(t?this.inlineStack:this.compileStack).pop();if(!e&&a instanceof u)return a.value;if(!t){if(!this.stackSlot)throw new s.default("Invalid stack pop");this.stackSlot--}return a},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof u?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?(t.referenceCount++,t):((t=this.aliases[e]=this.source.wrap(e)).aliasable=!0,t.referenceCount=1,t)},setupHelper:function(e,t,a){var n=[];return{params:n,paramsInit:this.setupHelperArgs(t,e,n,a),name:this.nameLookup("helpers",t,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(n)}},setupParams:function(e,t,a){var n={},r=[],i=[],s=[],o=!a,l=void 0;o&&(a=[]),n.name=this.quotedString(e),n.hash=this.popStack(),this.trackIds&&(n.hashIds=this.popStack()),this.stringParams&&(n.hashTypes=this.popStack(),n.hashContexts=this.popStack());var c=this.popStack(),u=this.popStack();(u||c)&&(n.fn=u||"container.noop",n.inverse=c||"container.noop");for(var p=t;p--;)l=this.popStack(),a[p]=l,this.trackIds&&(s[p]=this.popStack()),this.stringParams&&(i[p]=this.popStack(),r[p]=this.popStack());return o&&(n.args=this.source.generateArray(a)),this.trackIds&&(n.ids=this.source.generateArray(s)),this.stringParams&&(n.types=this.source.generateArray(i),n.contexts=this.source.generateArray(r)),this.options.data&&(n.data="data"),this.useBlockParams&&(n.blockParams="blockParams"),n},setupHelperArgs:function(e,t,a,n){var r=this.setupParams(e,t,a);return r.loc=JSON.stringify(this.source.currentLocation),r=this.objectLiteral(r),n?(this.useRegister("options"),a.push("options"),["options=",r]):a?(a.push(r),""):r}},function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=p.RESERVED_WORDS={},a=0,n=e.length;a<n;a++)t[e[a]]=!0}(),p.isValidJavaScriptVariableName=function(e){return!p.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t.default=p,e.exports=t.default},function(e,t,a){"use strict";var n=a(13).default;t.__esModule=!0;var r=a(5),i=void 0;function s(e,t,a){if(r.isArray(e)){for(var n=[],i=0,s=e.length;i<s;i++)n.push(t.wrap(e[i],a));return n}return"boolean"==typeof e||"number"==typeof e?e+"":e}function o(e){this.srcFile=e,this.source=[]}i||((i=function(e,t,a,n){this.src="",n&&this.add(n)}).prototype={add:function(e){r.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){r.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),o.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each((function(t){e.add([" ",t,"\n"])})),e},each:function(e){for(var t=0,a=this.source.length;t<a;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new i(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof i?e:(e=s(e,this,t),new i(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,a){return a=this.generateList(a),this.wrap([e,t?"."+t+"(":"(",a,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=this,a=[];n(e).forEach((function(n){var r=s(e[n],t);"undefined"!==r&&a.push([t.quotedString(n),":",r])}));var r=this.generateList(a);return r.prepend("{"),r.add("}"),r},generateList:function(e){for(var t=this.empty(),a=0,n=e.length;a<n;a++)a&&t.add(","),t.add(s(e[a],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=o,e.exports=t.default}])},e.exports=n()},290:function(e,t,a){"use strict";e.exports=a(585)},316:function(e,t,a){e.exports=a(586)},318:function(e,t,a){e.exports=a(576)},4:function(e,t){e.exports=jQuery},470:function(e,t,a){e.exports=a(635)},481:function(e,t,a){a(575);var n=a(24);e.exports=n.Object.assign},482:function(e,t,a){var n=a(43),r=a(87),i=a(54),s=a(85).f,o=function(e){return function(t){for(var a,o=i(t),l=r(o),c=l.length,u=0,p=[];c>u;)a=l[u++],n&&!s.call(o,a)||p.push(e?[a,o[a]]:o[a]);return p}};e.exports={entries:o(!0),values:o(!1)}},486:function(e,t,a){e.exports=a(601)},489:function(e,t,a){e.exports=a(577)},490:function(e,t){e.exports=function(e){if(!window.satismeter){window.satismeter=function(){var e=[];function t(){e.push(arguments)}return t.q=e,t}();var t=document.createElement("script"),a=document.getElementsByTagName("script")[0].parentNode;t.async=1,t.src="https://app.satismeter.com/satismeter.js",a.appendChild(t)}return window.satismeter(e)}},491:function(e,t,a){var n=a(486),r=a(478),i=a(602);e.exports=function(e,t){if(null==e)return{};var a,s,o=i(e,t);if(r){var l=r(e);for(s=0;s<l.length;s++)a=l[s],n(t).call(t,a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}},492:function(e,t,a){e.exports=a(603)},494:function(e,t,a){var n;n=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","‘":"\'","’":"\'","“":"\\"","”":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial"}'),t=JSON.parse('{"vi":{"Đ":"D","đ":"d"}}');function a(a,n){if("string"!=typeof a)throw new Error("slugify: string argument expected");var r=t[(n="string"==typeof n?{replacement:n}:n||{}).locale]||{},i=a.split("").reduce((function(t,a){return t+(r[a]||e[a]||a).replace(n.remove||/[^\w\s$*_+~.()'"!\-:@]/g,"")}),"").trim().replace(/[-\s]+/g,n.replacement||"-");return n.lower?i.toLowerCase():i}return a.extend=function(t){for(var a in t)e[a]=t[a]},a},e.exports=n(),e.exports.default=n()},495:function(e,t,a){e.exports=a(616)},496:function(e,t,a){
29
+ /*!
30
+ Papa Parse
31
+ v4.1.1
32
+ https://github.com/mholt/PapaParse
33
+ */
34
+ !function(t){"use strict";function a(e){this._handle=null,this._paused=!1,this._finished=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=p(e);t.chunkSize=parseInt(t.chunkSize),this._handle=new s(t),this._handle.streamer=this,this._config=t}.call(this,e),this.parseChunk=function(e){var a=this._partialLine+e;this._partialLine="";var n=this._handle.parse(a,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var r=n.meta.cursor;this._finished||(this._partialLine=a.substring(r-this._baseIndex),this._baseIndex=r),n&&n.data&&(this._rowCount+=n.data.length);var i=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(f)t.postMessage({results:n,workerId:b.WORKER_ID,finished:i});else if(m(this._config.chunk)){if(this._config.chunk(n,this._handle),this._paused)return;n=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),!i||!m(this._config.complete)||n&&n.meta.aborted||this._config.complete(this._completeResults),i||n&&n.meta.paused||this._nextChunk(),n}},this._sendError=function(e){m(this._config.error)?this._config.error(e):f&&this._config.error&&t.postMessage({workerId:b.WORKER_ID,error:e,finished:!1})}}function n(e){var t;(e=e||{}).chunkSize||(e.chunkSize=b.RemoteChunkSize),a.call(this,e),this._nextChunk=f?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,f||(t.onload=d(this._chunkLoaded,this),t.onerror=d(this._chunkError,this)),t.open("GET",this._input,!f),this._config.chunkSize){var e=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+e),t.setRequestHeader("If-None-Match","webkit-no-cache")}try{t.send()}catch(e){this._chunkError(e.message)}f&&0==t.status?this._chunkError():this._start+=this._config.chunkSize}},this._chunkLoaded=function(){if(4==t.readyState){if(t.status<200||t.status>=400)return void this._chunkError();this._finished=!this._config.chunkSize||this._start>function(e){var t=e.getResponseHeader("Content-Range");return parseInt(t.substr(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)}},this._chunkError=function(e){var a=t.statusText||e;this._sendError(a)}}function r(e){(e=e||{}).chunkSize||(e.chunkSize=b.LocalChunkSize),a.call(this,e);var t,n,r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=d(this._chunkLoaded,this),t.onerror=d(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var a=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,a)}var i=t.readAsText(e,this._config.encoding);r||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function i(e){var t;e=e||{},a.call(this,e),this.stream=function(e){return e,t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e=this._config.chunkSize,a=e?t.substr(0,e):t;return t=e?t.substr(e):"",this._finished=!t,this.parseChunk(a)}}}function s(e){function t(){if(v&&l&&(r("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),l=!1),e.skipEmptyLines)for(var t=0;t<v.data.length;t++)1==v.data[t].length&&""==v.data[t][0]&&v.data.splice(t--,1);return a()&&function(){if(v){for(var e=0;a()&&e<v.data.length;e++)for(var t=0;t<v.data[e].length;t++)g.push(v.data[e][t]);v.data.splice(0,1)}}(),function(){if(!v||!e.header&&!e.dynamicTyping)return v;for(var t=0;t<v.data.length;t++){for(var a={},i=0;i<v.data[t].length;i++){if(e.dynamicTyping){var s=v.data[t][i];v.data[t][i]="true"==s||"TRUE"==s||"false"!=s&&"FALSE"!=s&&n(s)}e.header&&(i>=g.length?(a.__parsed_extra||(a.__parsed_extra=[]),a.__parsed_extra.push(v.data[t][i])):a[g[i]]=v.data[t][i])}e.header&&(v.data[t]=a,i>g.length?r("FieldMismatch","TooManyFields","Too many fields: expected "+g.length+" fields but parsed "+i,t):i<g.length&&r("FieldMismatch","TooFewFields","Too few fields: expected "+g.length+" fields but parsed "+i,t))}return e.header&&v.meta&&(v.meta.fields=g),v}()}function a(){return e.header&&0==g.length}function n(e){return c.test(e)?parseFloat(e):e}function r(e,t,a,n){v.errors.push({type:e,code:t,message:a,row:n})}var i,s,l,c=/^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i,u=this,d=0,h=!1,f=!1,g=[],v={data:[],errors:[],meta:{}};if(m(e.step)){var _=e.step;e.step=function(n){if(v=n,a())t();else{if(t(),0==v.data.length)return;d+=n.data.length,e.preview&&d>e.preview?s.abort():_(v,u)}}}this.parse=function(a,n,r){if(e.newline||(e.newline=function(e){var t=(e=e.substr(0,1048576)).split("\r");if(1==t.length)return"\n";for(var a=0,n=0;n<t.length;n++)"\n"==t[n][0]&&a++;return a>=t.length/2?"\r\n":"\r"}(a)),l=!1,!e.delimiter){var c=function(t){for(var a,n,r,i=[",","\t","|",";",b.RECORD_SEP,b.UNIT_SEP],s=0;s<i.length;s++){var l=i[s],c=0,u=0;r=void 0;for(var p=new o({delimiter:l,preview:10}).parse(t),d=0;d<p.data.length;d++){var m=p.data[d].length;u+=m,void 0!==r?m>1&&(c+=Math.abs(m-r),r=m):r=m}u/=p.data.length,(void 0===n||n>c)&&u>1.99&&(n=c,a=l)}return e.delimiter=a,{successful:!!a,bestDelimiter:a}}(a);c.successful?e.delimiter=c.bestDelimiter:(l=!0,e.delimiter=b.DefaultDelimiter),v.meta.delimiter=e.delimiter}var u=p(e);return e.preview&&e.header&&u.preview++,i=a,s=new o(u),v=s.parse(i,n,r),t(),h?{meta:{paused:!0}}:v||{meta:{paused:!1}}},this.paused=function(){return h},this.pause=function(){h=!0,s.abort(),i=i.substr(s.getCharIndex())},this.resume=function(){h=!1,u.streamer.parseChunk(i)},this.aborted=function(){return f},this.abort=function(){f=!0,s.abort(),v.meta.aborted=!0,m(e.complete)&&e.complete(v),i=""}}function o(e){var t=(e=e||{}).delimiter,a=e.newline,n=e.comments,r=e.step,i=e.preview,s=e.fastMode;if(("string"!=typeof t||b.BAD_DELIMITERS.indexOf(t)>-1)&&(t=","),n===t)throw"Comment character same as delimiter";!0===n?n="#":("string"!=typeof n||b.BAD_DELIMITERS.indexOf(n)>-1)&&(n=!1),"\n"!=a&&"\r"!=a&&"\r\n"!=a&&(a="\n");var o=0,l=!1;this.parse=function(e,c,u){function p(e){w.push(e),I=o}function d(t){return u?h():(t||(t=e.substr(o)),k.push(t),o=g,p(k),y&&f(),h())}function m(t){o=t,p(k),k=[],T=e.indexOf(a,o)}function h(e){return{data:w,errors:E,meta:{delimiter:t,linebreak:a,aborted:l,truncated:!!e,cursor:I+(c||0)}}}function f(){r(h()),w=[],E=[]}if("string"!=typeof e)throw"Input must be a string";var g=e.length,v=t.length,_=a.length,b=n.length,y="function"==typeof r;o=0;var w=[],E=[],k=[],I=0;if(!e)return h();if(s||!1!==s&&-1===e.indexOf('"')){for(var S=e.split(a),N=0;N<S.length;N++){k=S[N];if(o+=k.length,N!==S.length-1)o+=a.length;else if(u)return h();if(!n||k.substr(0,b)!=n){if(y){if(w=[],p(k.split(t)),f(),l)return h()}else p(k.split(t));if(i&&N>=i)return w=w.slice(0,i),h(!0)}}return h()}for(var C=e.indexOf(t,o),T=e.indexOf(a,o);;)if('"'!=e[o])if(n&&0===k.length&&e.substr(o,b)===n){if(-1==T)return h();o=T+_,T=e.indexOf(a,o),C=e.indexOf(t,o)}else if(-1!==C&&(T>C||-1===T))k.push(e.substring(o,C)),o=C+v,C=e.indexOf(t,o);else{if(-1===T)break;if(k.push(e.substring(o,T)),m(T+_),y&&(f(),l))return h();if(i&&w.length>=i)return h(!0)}else{var x=o;for(o++;;){if(-1===(x=e.indexOf('"',x+1)))return u||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:w.length,index:o}),d();if(x===g-1)return d(e.substring(o,x).replace(/""/g,'"'));if('"'!=e[x+1]){if(e[x+1]==t){k.push(e.substring(o,x).replace(/""/g,'"')),o=x+1+v,C=e.indexOf(t,o),T=e.indexOf(a,o);break}if(e.substr(x+1,_)===a){if(k.push(e.substring(o,x).replace(/""/g,'"')),m(x+1+_),C=e.indexOf(t,o),y&&(f(),l))return h();if(i&&w.length>=i)return h(!0);break}}else x++}}return d()},this.abort=function(){l=!0},this.getCharIndex=function(){return o}}function l(e){var t=e.data,a=v[t.workerId],n=!1;if(t.error)a.userError(t.error,t.file);else if(t.results&&t.results.data){var r={abort:function(){n=!0,c(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:u,resume:u};if(m(a.userStep)){for(var i=0;i<t.results.data.length&&(a.userStep({data:[t.results.data[i]],errors:t.results.errors,meta:t.results.meta},r),!n);i++);delete t.results}else m(a.userChunk)&&(a.userChunk(t.results,r,t.file),delete t.results)}t.finished&&!n&&c(t.workerId,t.results)}function c(e,t){var a=v[e];m(a.userComplete)&&a.userComplete(t),a.terminate(),delete v[e]}function u(){throw"Not implemented."}function p(e){if("object"!=typeof e)return e;var t=e instanceof Array?[]:{};for(var a in e)t[a]=p(e[a]);return t}function d(e,t){return function(){e.apply(t,arguments)}}function m(e){return"function"==typeof e}var h,f=!t.document&&!!t.postMessage,g=!1,v={},_=0,b={parse:function(e,a){if((a=a||{}).worker&&b.WORKERS_SUPPORTED){var s=function(){if(!b.WORKERS_SUPPORTED)return!1;if(!g&&null===b.SCRIPT_PATH)throw new Error("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually.");var e=new t.Worker(b.SCRIPT_PATH||h);return e.onmessage=l,e.id=_++,v[e.id]=e,e}();return s.userStep=a.step,s.userChunk=a.chunk,s.userComplete=a.complete,s.userError=a.error,a.step=m(a.step),a.chunk=m(a.chunk),a.complete=m(a.complete),a.error=m(a.error),delete a.worker,void s.postMessage({input:e,config:a,workerId:s.id})}var o=null;return"string"==typeof e?o=a.download?new n(a):new i(a):(t.File&&e instanceof File||e instanceof Object)&&(o=new r(a)),o.stream(e)},unparse:function(e,t){function a(e){if("object"!=typeof e)return[];var t=[];for(var a in e)t.push(a);return t}function n(e,t){var a="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=e instanceof Array&&e.length>0,i=!(t[0]instanceof Array);if(n){for(var l=0;l<e.length;l++)l>0&&(a+=s),a+=r(e[l],l);t.length>0&&(a+=o)}for(var c=0;c<t.length;c++){for(var u=n?e.length:t[c].length,p=0;u>p;p++){p>0&&(a+=s);var d=n&&i?e[p]:p;a+=r(t[c][d],p)}c<t.length-1&&(a+=o)}return a}function r(e,t){return null==e?"":(e=e.toString().replace(/"/g,'""'),"boolean"==typeof i&&i||i instanceof Array&&i[t]||function(e,t){for(var a=0;a<t.length;a++)if(e.indexOf(t[a])>-1)return!0;return!1}(e,b.BAD_DELIMITERS)||e.indexOf(s)>-1||" "==e.charAt(0)||" "==e.charAt(e.length-1)?'"'+e+'"':e)}var i=!1,s=",",o="\r\n";if("object"==typeof t&&("string"==typeof t.delimiter&&1==t.delimiter.length&&-1==b.BAD_DELIMITERS.indexOf(t.delimiter)&&(s=t.delimiter),("boolean"==typeof t.quotes||t.quotes instanceof Array)&&(i=t.quotes),"string"==typeof t.newline&&(o=t.newline)),"string"==typeof e&&(e=JSON.parse(e)),e instanceof Array){if(!e.length||e[0]instanceof Array)return n(null,e);if("object"==typeof e[0])return n(a(e[0]),e)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),e.data instanceof Array&&(e.fields||(e.fields=e.data[0]instanceof Array?e.fields:a(e.data[0])),e.data[0]instanceof Array||"object"==typeof e.data[0]||(e.data=[e.data])),n(e.fields||[],e.data||[]);throw"exception: Unable to serialize unrecognized input"}};if(b.RECORD_SEP=String.fromCharCode(30),b.UNIT_SEP=String.fromCharCode(31),b.BYTE_ORDER_MARK="\ufeff",b.BAD_DELIMITERS=["\r","\n",'"',b.BYTE_ORDER_MARK],b.WORKERS_SUPPORTED=!!t.Worker,b.SCRIPT_PATH=null,b.LocalChunkSize=10485760,b.RemoteChunkSize=5242880,b.DefaultDelimiter=",",b.Parser=o,b.ParserHandle=s,b.NetworkStreamer=n,b.FileStreamer=r,b.StringStreamer=i,e.exports?e.exports=b:m(t.define)&&t.define.amd?t.define((function(){return b})):t.Papa=b,t.jQuery){var y=t.jQuery;y.fn.parse=function(e){function a(){if(0!=i.length){var t=i[0];if(m(e.before)){var a=e.before(t.file,t.inputElem);if("object"==typeof a){if("abort"==a.action)return void function(t,a,n,r){m(e.error)&&e.error({name:t},a,n,r)}("AbortError",t.file,t.inputElem,a.reason);if("skip"==a.action)return void n();"object"==typeof a.config&&(t.instanceConfig=y.extend(t.instanceConfig,a.config))}else if("skip"==a)return void n()}var r=t.instanceConfig.complete;t.instanceConfig.complete=function(e){m(r)&&r(e,t.file,t.inputElem),n()},b.parse(t.file,t.instanceConfig)}else m(e.complete)&&e.complete()}function n(){i.splice(0,1),a()}var r=e.config||{},i=[];return this.each((function(){if(!("INPUT"==y(this).prop("tagName").toUpperCase()&&"file"==y(this).attr("type").toLowerCase()&&t.FileReader)||!this.files||0==this.files.length)return!0;for(var e=0;e<this.files.length;e++)i.push({file:this.files[e],inputElem:this,instanceConfig:y.extend({},r)})})),a(),this}}f?t.onmessage=function(e){var a=e.data;if(void 0===b.WORKER_ID&&a&&(b.WORKER_ID=a.workerId),"string"==typeof a.input)t.postMessage({workerId:b.WORKER_ID,results:b.parse(a.input,a.config),finished:!0});else if(t.File&&a.input instanceof File||a.input instanceof Object){var n=b.parse(a.input,a.config);n&&t.postMessage({workerId:b.WORKER_ID,results:n,finished:!0})}}:b.WORKERS_SUPPORTED&&(h=function(){var e=document.getElementsByTagName("script");return e.length?e[e.length-1].src:""}(),document.body?document.addEventListener("DOMContentLoaded",(function(){g=!0}),!0):g=!0),n.prototype=Object.create(a.prototype),n.prototype.constructor=n,r.prototype=Object.create(a.prototype),r.prototype.constructor=r,i.prototype=Object.create(i.prototype),i.prototype.constructor=i}("undefined"!=typeof window?window:this)},497:function(e,t,a){e.exports=a(625)},498:function(e,t,a){e.exports=a(629)},50:function(e,t,a){var n=a(573);function r(){return e.exports=r=n||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},r.apply(this,arguments)}e.exports=r},560:function(e,t,a){var n=a(473);e.exports=function(e){if(n(e)){for(var t=0,a=new Array(e.length);t<e.length;t++)a[t]=e[t];return a}}},561:function(e,t,a){var n=a(562),r=a(566);e.exports=function(e){if(r(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return n(e)}},562:function(e,t,a){e.exports=a(563)},563:function(e,t,a){e.exports=a(564)},564:function(e,t,a){a(94),a(565);var n=a(24);e.exports=n.Array.from},565:function(e,t,a){var n=a(18),r=a(301);n({target:"Array",stat:!0,forced:!a(480)((function(e){Array.from(e)}))},{from:r})},566:function(e,t,a){e.exports=a(567)},567:function(e,t,a){a(89),a(94),e.exports=a(568)},568:function(e,t,a){var n=a(88),r=a(31),i=a(70),s=r("iterator");e.exports=function(e){var t=Object(e);return void 0!==t[s]||"@@iterator"in t||i.hasOwnProperty(n(t))}},569:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},573:function(e,t,a){e.exports=a(574)},574:function(e,t,a){e.exports=a(481)},575:function(e,t,a){var n=a(18),r=a(300);n({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},576:function(e,t,a){e.exports=a(481)},577:function(e,t,a){e.exports=a(578)},578:function(e,t,a){a(579);var n=a(24);e.exports=n.Object.entries},579:function(e,t,a){var n=a(18),r=a(482).entries;n({target:"Object",stat:!0},{entries:function(e){return r(e)}})},580:function(e,t,a){e.exports=a(581)},581:function(e,t,a){var n=a(582),r=Array.prototype;e.exports=function(e){var t=e.reduce;return e===r||e instanceof Array&&t===r.reduce?n:t}},582:function(e,t,a){a(583);var n=a(42);e.exports=n("Array").reduce},583:function(e,t,a){"use strict";var n=a(18),r=a(584).left;n({target:"Array",proto:!0,forced:a(104)("reduce")},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},584:function(e,t,a){var n=a(69),r=a(51),i=a(86),s=a(60),o=function(e){return function(t,a,o,l){n(a);var c=r(t),u=i(c),p=s(c.length),d=e?p-1:0,m=e?-1:1;if(o<2)for(;;){if(d in u){l=u[d],d+=m;break}if(d+=m,e?d<0:p<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:p>d;d+=m)d in u&&(l=a(l,u[d],d,c));return l}};e.exports={left:o(!1),right:o(!0)}},585:function(e,t,a){"use strict";
35
+ /** @license React v16.10.2
36
+ * react-dom-server.browser.production.min.js
37
+ *
38
+ * Copyright (c) Facebook, Inc. and its affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var n=a(130),r=a(0);function i(e){for(var t=e.message,a="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)a+="&args[]="+encodeURIComponent(arguments[n]);return e.message="Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}var s="function"==typeof Symbol&&Symbol.for,o=s?Symbol.for("react.portal"):60106,l=s?Symbol.for("react.fragment"):60107,c=s?Symbol.for("react.strict_mode"):60108,u=s?Symbol.for("react.profiler"):60114,p=s?Symbol.for("react.provider"):60109,d=s?Symbol.for("react.context"):60110,m=s?Symbol.for("react.concurrent_mode"):60111,h=s?Symbol.for("react.forward_ref"):60112,f=s?Symbol.for("react.suspense"):60113,g=s?Symbol.for("react.suspense_list"):60120,v=s?Symbol.for("react.memo"):60115,_=s?Symbol.for("react.lazy"):60116,b=s?Symbol.for("react.fundamental"):60117,y=s?Symbol.for("react.scope"):60119,w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case l:return"Fragment";case o:return"Portal";case u:return"Profiler";case c:return"StrictMode";case f:return"Suspense";case g:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case d:return"Context.Consumer";case p:return"Context.Provider";case h:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case v:return E(e.type);case _:if(e=1===e._status?e._result:null)return E(e)}return null}w.hasOwnProperty("ReactCurrentDispatcher")||(w.ReactCurrentDispatcher={current:null}),w.hasOwnProperty("ReactCurrentBatchConfig")||(w.ReactCurrentBatchConfig={suspense:null});var k={};function I(e,t){for(var a=0|e._threadCount;a<=t;a++)e[a]=e._currentValue2,e._threadCount=a+1}for(var S=new Uint16Array(16),N=0;15>N;N++)S[N]=N+1;S[15]=0;var C=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,T=Object.prototype.hasOwnProperty,x={},R={};function A(e){return!!T.call(R,e)||!T.call(x,e)&&(C.test(e)?R[e]=!0:(x[e]=!0,!1))}function P(e,t,a,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=r,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=i}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){O[e]=new P(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];O[t]=new P(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){O[e]=new P(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){O[e]=new P(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){O[e]=new P(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){O[e]=new P(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){O[e]=new P(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){O[e]=new P(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){O[e]=new P(e,5,!1,e.toLowerCase(),null,!1)}));var L=/[\-:]([a-z])/g;function D(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(L,D);O[t]=new P(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(L,D);O[t]=new P(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(L,D);O[t]=new P(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){O[e]=new P(e,1,!1,e.toLowerCase(),null,!1)})),O.xlinkHref=new P("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){O[e]=new P(e,1,!1,e.toLowerCase(),null,!0)}));var q=/["'&<>]/;function F(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=q.exec(e);if(t){var a,n="",r=0;for(a=t.index;a<e.length;a++){switch(e.charCodeAt(a)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}r!==a&&(n+=e.substring(r,a)),r=a+1,n+=t}e=r!==a?n+e.substring(r,a):n}return e}function M(e,t){var a,n=O.hasOwnProperty(e)?O[e]:null;return(a="style"!==e)&&(a=null!==n?0===n.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),a||function(e,t,a,n){if(null==t||function(e,t,a,n){if(null!==a&&0===a.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==a?!a.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,a,n))return!0;if(n)return!1;if(null!==a)switch(a.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(e,t,n,!1)?"":null!==n?(e=n.attributeName,3===(a=n.type)||4===a&&!0===t?e+'=""':(n.sanitizeURL&&(t=""+t),e+'="'+F(t)+'"')):A(e)?e+'="'+F(t)+'"':""}var j="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},V=null,B=null,U=null,z=!1,$=!1,W=null,H=0;function K(){if(null===V)throw i(Error(321));return V}function G(){if(0<H)throw i(Error(312));return{memoizedState:null,queue:null,next:null}}function Y(){return null===U?null===B?(z=!1,B=U=G()):(z=!0,U=B):null===U.next?(z=!1,U=U.next=G()):(z=!0,U=U.next),U}function J(e,t,a,n){for(;$;)$=!1,H+=1,U=null,a=e(t,n);return B=V=null,H=0,U=W=null,a}function Q(e,t){return"function"==typeof t?t(e):t}function Z(e,t,a){if(V=K(),U=Y(),z){var n=U.queue;if(t=n.dispatch,null!==W&&void 0!==(a=W.get(n))){W.delete(n),n=U.memoizedState;do{n=e(n,a.action),a=a.next}while(null!==a);return U.memoizedState=n,[n,t]}return[U.memoizedState,t]}return e=e===Q?"function"==typeof t?t():t:void 0!==a?a(t):t,U.memoizedState=e,e=(e=U.queue={last:null,dispatch:null}).dispatch=X.bind(null,V,e),[U.memoizedState,e]}function X(e,t,a){if(!(25>H))throw i(Error(301));if(e===V)if($=!0,e={action:a,next:null},null===W&&(W=new Map),void 0===(a=W.get(t)))W.set(t,e);else{for(t=a;null!==t.next;)t=t.next;t.next=e}}function ee(){}var te=0,ae={readContext:function(e){var t=te;return I(e,t),e[t]},useContext:function(e){K();var t=te;return I(e,t),e[t]},useMemo:function(e,t){if(V=K(),t=void 0===t?null:t,null!==(U=Y())){var a=U.memoizedState;if(null!==a&&null!==t){e:{var n=a[1];if(null===n)n=!1;else{for(var r=0;r<n.length&&r<t.length;r++)if(!j(t[r],n[r])){n=!1;break e}n=!0}}if(n)return a[0]}}return e=e(),U.memoizedState=[e,t],e},useReducer:Z,useRef:function(e){V=K();var t=(U=Y()).memoizedState;return null===t?(e={current:e},U.memoizedState=e):t},useState:function(e){return Z(Q,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:ee,useEffect:ee,useDebugValue:ee,useResponder:function(e,t){return{props:t,responder:e}}},ne={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function re(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var ie={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},se=n({menuitem:!0},ie),oe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},le=["Webkit","ms","Moz","O"];Object.keys(oe).forEach((function(e){le.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),oe[t]=oe[e]}))}));var ce=/([A-Z])/g,ue=/^ms-/,pe=r.Children.toArray,de=w.ReactCurrentDispatcher,me={listing:!0,pre:!0,textarea:!0},he=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,fe={},ge={};var ve=Object.prototype.hasOwnProperty,_e={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function be(e,t){if(void 0===e)throw i(Error(152),E(t)||"Component")}function ye(e,t,a){function s(r,s){var o=s.prototype&&s.prototype.isReactComponent,l=function(e,t,a,n){if(n&&("object"==typeof(n=e.contextType)&&null!==n))return I(n,a),n[a];if(e=e.contextTypes){for(var r in a={},e)a[r]=t[r];t=a}else t=k;return t}(s,t,a,o),c=[],u=!1,p={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===c)return null},enqueueReplaceState:function(e,t){u=!0,c=[t]},enqueueSetState:function(e,t){if(null===c)return null;c.push(t)}};if(o){if(o=new s(r.props,l,p),"function"==typeof s.getDerivedStateFromProps){var d=s.getDerivedStateFromProps.call(null,r.props,o.state);null!=d&&(o.state=n({},o.state,d))}}else if(V={},o=s(r.props,l,p),null==(o=J(s,r.props,o,l))||null==o.render)return void be(e=o,s);if(o.props=r.props,o.context=l,o.updater=p,void 0===(p=o.state)&&(o.state=p=null),"function"==typeof o.UNSAFE_componentWillMount||"function"==typeof o.componentWillMount)if("function"==typeof o.componentWillMount&&"function"!=typeof s.getDerivedStateFromProps&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&"function"!=typeof s.getDerivedStateFromProps&&o.UNSAFE_componentWillMount(),c.length){p=c;var m=u;if(c=null,u=!1,m&&1===p.length)o.state=p[0];else{d=m?p[0]:o.state;var h=!0;for(m=m?1:0;m<p.length;m++){var f=p[m];null!=(f="function"==typeof f?f.call(o,d,r.props,l):f)&&(h?(h=!1,d=n({},d,f)):n(d,f))}o.state=d}}else c=null;if(be(e=o.render(),s),"function"==typeof o.getChildContext&&"object"==typeof(r=s.childContextTypes)){var g=o.getChildContext();for(var v in g)if(!(v in r))throw i(Error(108),E(s)||"Unknown",v)}g&&(t=n({},t,g))}for(;r.isValidElement(e);){var o=e,l=o.type;if("function"!=typeof l)break;s(o,l)}return{child:e,context:t}}var we=function(){function e(e,t){r.isValidElement(e)?e.type!==l?e=[e]:(e=e.props.children,e=r.isValidElement(e)?[e]:pe(e)):e=pe(e),e={type:null,domNamespace:ne.html,children:e,childIndex:0,context:k,footer:""};var a=S[0];if(0===a){var n=S,s=2*(a=n.length);if(!(65536>=s))throw i(Error(304));var o=new Uint16Array(s);for(o.set(n),(S=o)[0]=a+1,n=a;n<s-1;n++)S[n]=n+1;S[s-1]=0}else S[0]=S[a];this.threadID=a,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}var t=e.prototype;return t.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;S[e]=S[0],S[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,a=e.type._context,n=this.threadID;I(a,n);var r=a[n];this.contextStack[t]=a,this.contextValueStack[t]=r,a[n]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],a=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=a},t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},t.read=function(e){if(this.exhausted)return null;var t=te;te=this.threadID;var a=de.current;de.current=ae;try{for(var n=[""],r=!1;n[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var s=this.threadID;S[s]=S[0],S[0]=s;break}var o=this.stack[this.stack.length-1];if(r||o.childIndex>=o.children.length){var l=o.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===o.type)this.currentSelectValue=null;else if(null!=o.type&&null!=o.type.type&&o.type.type.$$typeof===p)this.popProvider(o.type);else if(o.type===f){this.suspenseDepth--;var c=n.pop();if(r){r=!1;var u=o.fallbackFrame;if(!u)throw i(Error(303));this.stack.push(u),n[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}n[this.suspenseDepth]+=c}n[this.suspenseDepth]+=l}else{var d=o.children[o.childIndex++],m="";try{m+=this.render(d,o.context,o.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw i(Error(294));throw e}n.length<=this.suspenseDepth&&n.push(""),n[this.suspenseDepth]+=m}}return n[0]}finally{de.current=a,te=t}},t.render=function(e,t,a){if("string"==typeof e||"number"==typeof e)return""===(a=""+e)?"":this.makeStaticMarkup?F(a):this.previousWasTextNode?"\x3c!-- --\x3e"+F(a):(this.previousWasTextNode=!0,F(a));if(e=(t=ye(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!r.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((a=e.$$typeof)===o)throw i(Error(257));throw i(Error(258),a.toString())}return e=pe(e),this.stack.push({type:null,domNamespace:a,children:e,childIndex:0,context:t,footer:""}),""}var s=e.type;if("string"==typeof s)return this.renderDOM(e,t,a);switch(s){case c:case m:case u:case g:case l:return e=pe(e.props.children),this.stack.push({type:null,domNamespace:a,children:e,childIndex:0,context:t,footer:""}),"";case f:throw i(Error(294))}if("object"==typeof s&&null!==s)switch(s.$$typeof){case h:V={};var w=s.render(e.props,e.ref);return w=J(s.render,e.props,w,e.ref),w=pe(w),this.stack.push({type:null,domNamespace:a,children:w,childIndex:0,context:t,footer:""}),"";case v:return e=[r.createElement(s.type,n({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:a,children:e,childIndex:0,context:t,footer:""}),"";case p:return a={type:e,domNamespace:a,children:s=pe(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(a),"";case d:s=e.type,w=e.props;var E=this.threadID;return I(s,E),s=pe(w.children(s[E])),this.stack.push({type:e,domNamespace:a,children:s,childIndex:0,context:t,footer:""}),"";case b:throw i(Error(338));case _:switch(function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(s=e.type),s._status){case 1:return e=[r.createElement(s._result,n({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:a,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw s._result;default:throw i(Error(295))}case y:throw i(Error(343))}throw i(Error(130),null==s?s:typeof s,"")},t.renderDOM=function(e,t,a){var s=e.type.toLowerCase();if(a===ne.html&&re(s),!fe.hasOwnProperty(s)){if(!he.test(s))throw i(Error(65),s);fe[s]=!0}var o=e.props;if("input"===s)o=n({type:void 0},o,{defaultChecked:void 0,defaultValue:void 0,value:null!=o.value?o.value:o.defaultValue,checked:null!=o.checked?o.checked:o.defaultChecked});else if("textarea"===s){var l=o.value;if(null==l){l=o.defaultValue;var c=o.children;if(null!=c){if(null!=l)throw i(Error(92));if(Array.isArray(c)){if(!(1>=c.length))throw i(Error(93));c=c[0]}l=""+c}null==l&&(l="")}o=n({},o,{value:void 0,children:""+l})}else if("select"===s)this.currentSelectValue=null!=o.value?o.value:o.defaultValue,o=n({},o,{value:void 0});else if("option"===s){c=this.currentSelectValue;var u=function(e){if(null==e)return e;var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(o.children);if(null!=c){var p=null!=o.value?o.value+"":u;if(l=!1,Array.isArray(c)){for(var d=0;d<c.length;d++)if(""+c[d]===p){l=!0;break}}else l=""+c===p;o=n({selected:void 0,children:void 0},o,{selected:l,children:u})}}if(l=o){if(se[s]&&(null!=l.children||null!=l.dangerouslySetInnerHTML))throw i(Error(137),s,"");if(null!=l.dangerouslySetInnerHTML){if(null!=l.children)throw i(Error(60));if(!("object"==typeof l.dangerouslySetInnerHTML&&"__html"in l.dangerouslySetInnerHTML))throw i(Error(61))}if(null!=l.style&&"object"!=typeof l.style)throw i(Error(62),"")}for(y in l=o,c=this.makeStaticMarkup,u=1===this.stack.length,p="<"+e.type,l)if(ve.call(l,y)){var m=l[y];if(null!=m){if("style"===y){d=void 0;var h="",f="";for(d in m)if(m.hasOwnProperty(d)){var g=0===d.indexOf("--"),v=m[d];if(null!=v){if(g)var _=d;else if(_=d,ge.hasOwnProperty(_))_=ge[_];else{var b=_.replace(ce,"-$1").toLowerCase().replace(ue,"-ms-");_=ge[_]=b}h+=f+_+":",f=d,h+=g=null==v||"boolean"==typeof v||""===v?"":g||"number"!=typeof v||0===v||oe.hasOwnProperty(f)&&oe[f]?(""+v).trim():v+"px",f=";"}}m=h||null}d=null;e:if(g=s,v=l,-1===g.indexOf("-"))g="string"==typeof v.is;else switch(g){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":g=!1;break e;default:g=!0}g?_e.hasOwnProperty(y)||(d=A(d=y)&&null!=m?d+'="'+F(m)+'"':""):d=M(y,m),d&&(p+=" "+d)}}c||u&&(p+=' data-reactroot=""');var y=p;l="",ie.hasOwnProperty(s)?y+="/>":(y+=">",l="</"+e.type+">");e:{if(null!=(c=o.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break e}}else if("string"==typeof(c=o.children)||"number"==typeof c){c=F(c);break e}c=null}return null!=c?(o=[],me[s]&&"\n"===c.charAt(0)&&(y+="\n"),y+=c):o=pe(o.children),e=e.type,a=null==a||"http://www.w3.org/1999/xhtml"===a?re(e):"http://www.w3.org/2000/svg"===a&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":a,this.stack.push({domNamespace:a,type:s,children:o,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,y},e}(),Ee={renderToString:function(e){e=new we(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new we(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw i(Error(207))},renderToStaticNodeStream:function(){throw i(Error(208))},version:"16.10.2"},ke={default:Ee},Ie=ke&&Ee||ke;e.exports=Ie.default||Ie},586:function(e,t,a){e.exports=a(587)},587:function(e,t,a){a(588);var n=a(24);e.exports=n.Date.now},588:function(e,t,a){a(18)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},601:function(e,t,a){e.exports=a(294)},602:function(e,t,a){var n=a(486),r=a(479);e.exports=function(e,t){if(null==e)return{};var a,i,s={},o=r(e);for(i=0;i<o.length;i++)a=o[i],n(t).call(t,a)>=0||(s[a]=e[a]);return s}},603:function(e,t,a){e.exports=a(604)},604:function(e,t,a){var n=a(605),r=Array.prototype;e.exports=function(e){var t=e.sort;return e===r||e instanceof Array&&t===r.sort?n:t}},605:function(e,t,a){a(606);var n=a(42);e.exports=n("Array").sort},606:function(e,t,a){"use strict";var n=a(18),r=a(69),i=a(51),s=a(30),o=a(104),l=[].sort,c=[1,2,3],u=s((function(){c.sort(void 0)})),p=s((function(){c.sort(null)})),d=o("sort");n({target:"Array",proto:!0,forced:u||!p||d},{sort:function(e){return void 0===e?l.call(i(this)):l.call(i(this),r(e))}})},616:function(e,t,a){e.exports=a(617)},617:function(e,t,a){a(618);var n=a(24);e.exports=n.Number.isFinite},618:function(e,t,a){a(18)({target:"Number",stat:!0},{isFinite:a(619)})},619:function(e,t,a){var n=a(29).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&n(e)}},62:function(e,t,a){e.exports=a(580)},625:function(e,t,a){e.exports=a(626)},626:function(e,t,a){var n=a(627),r=Array.prototype;e.exports=function(e){var t=e.slice;return e===r||e instanceof Array&&t===r.slice?n:t}},627:function(e,t,a){a(628);var n=a(42);e.exports=n("Array").slice},628:function(e,t,a){"use strict";var n=a(18),r=a(41),i=a(90),s=a(103),o=a(60),l=a(54),c=a(118),u=a(97),p=a(31)("species"),d=[].slice,m=Math.max;n({target:"Array",proto:!0,forced:!u("slice")},{slice:function(e,t){var a,n,u,h=l(this),f=o(h.length),g=s(e,f),v=s(void 0===t?f:t,f);if(i(h)&&("function"!=typeof(a=h.constructor)||a!==Array&&!i(a.prototype)?r(a)&&null===(a=a[p])&&(a=void 0):a=void 0,a===Array||void 0===a))return d.call(h,g,v);for(n=new(void 0===a?Array:a)(m(v-g,0)),u=0;g<v;g++,u++)g in h&&c(n,u,h[g]);return n.length=u,n}})},629:function(e,t,a){e.exports=a(630)},63:function(e,t,a){var n=a(560),r=a(561),i=a(569);e.exports=function(e){return n(e)||r(e)||i()}},630:function(e,t,a){var n=a(631),r=Array.prototype;e.exports=function(e){var t=e.fill;return e===r||e instanceof Array&&t===r.fill?n:t}},631:function(e,t,a){a(632);var n=a(42);e.exports=n("Array").fill},632:function(e,t,a){var n=a(18),r=a(633),i=a(106);n({target:"Array",proto:!0},{fill:r}),i("fill")},633:function(e,t,a){"use strict";var n=a(51),r=a(103),i=a(60);e.exports=function(e){for(var t=n(this),a=i(t.length),s=arguments.length,o=r(s>1?arguments[1]:void 0,a),l=s>2?arguments[2]:void 0,c=void 0===l?a:r(l,a);c>o;)t[o++]=e;return t}},634:function(e,t){jQuery.AsyncQueue=function(){var e,t,a,n,r=this,s=[],o=!1;return n=function(){var e=s.shift();e?(e.apply(r,[r]),!1===o&&n()):t&&t.apply(r)},this.onFailure=function(t){e=t},this.onComplete=function(e){t=e},this.add=function(e){return s.push(e),this},this.storeData=function(e){return a=e,this},this.lastCallbackData=function(){return a},this.run=function(){o=!1,n()},this.pause=function(){return o=!0,this},this.failure=function(){if(o=!0,e){var t=[r];for(i=0;i<arguments.length;i++)t.push(arguments[i]);e.apply(r,t)}},this}},635:function(e,t,a){e.exports=a(636)},636:function(e,t,a){a(637);var n=a(24);e.exports=n.Object.values},637:function(e,t,a){var n=a(18),r=a(482).values;n({target:"Object",stat:!0},{values:function(e){return r(e)}})},657:function(e,t,a){"use strict";a.r(t);var n=a(58),r=a.n(n),i=a(15),s=a.n(i),o=a(63),l=a.n(o),c=a(27),u=a.n(c),p=a(7),d=a.n(p),m=a(0),h=a.n(m),f=a(3),g=a.n(f),v=a(23),_=a.n(v),b=a(1),y=a(9),w=a.n(y),E=a(11),k=a.n(E),I=a(10),S=a.n(I),N=a(12),C=a.n(N),T=a(13),x=a.n(T),R=a(6),A=a.n(R),P=a(14),O=a.n(P),L=a(65),D=a(2),q=a.n(D);function F(e){var t=[{name:"type",label:b.a.I18n.t("selectType")},{name:"events",label:b.a.I18n.t("events")},{name:"conditions",label:b.a.I18n.t("conditions")},{name:"template",label:b.a.I18n.t("template")},{name:"editor",label:b.a.I18n.t("designer")},{name:"send",label:b.a.I18n.t("send")}];return h.a.createElement(L.a,{step:e.step,steps:t})}F.propTypes={step:q.a.string.isRequired};var M=F,j=function(e){function t(){return k()(this,t),C()(this,x()(t).apply(this,arguments))}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t=this.props.event,a=t.soon;if(this.props.premium)e=h.a.createElement("a",{href:"?page=mailpoet-premium",target:"_blank"},b.a.I18n.t("premiumFeatureLink"));else if(t.actionButtonLink&&t.actionButtonTitle)e=h.a.createElement("a",{href:t.actionButtonLink,target:"_blank",rel:"noopener noreferrer"},t.actionButtonTitle);else{var n=a?null:g.a.partial(this.props.eventsConfigurator,t.slug);e=h.a.createElement("a",{className:"button button-primary",disabled:a,onClick:n,role:"presentation","data-automation-id":"create_".concat(t.slug),onKeyDown:function(e){var t,a;u()(t=["keydown","keypress"]).call(t,e.type)&&u()(a=["Enter"," "]).call(a,e.key)&&(e.preventDefault(),n())}},t.actionButtonTitle||b.a.I18n.t("setUp"))}return h.a.createElement("li",{"data-type":t.slug},h.a.createElement("div",{className:"mailpoet_thumbnail"},t.thumbnailImage?h.a.createElement("img",{src:t.thumbnailImage,alt:""}):null),h.a.createElement("div",{className:"mailpoet_boxes_content"},h.a.createElement("div",{className:"mailpoet_description"},h.a.createElement("div",{className:"title_and_badge"},h.a.createElement("h3",null,t.title," ",t.soon?"(".concat(b.a.I18n.t("soon"),")"):""),t.badge?h.a.createElement("span",{className:"mailpoet_badge mailpoet_badge_".concat(t.badge.style)},t.badge.text):""),h.a.createElement("p",null,t.description)),h.a.createElement("div",{className:"mailpoet_actions"},e)))}}]),t}(h.a.PureComponent);j.defaultProps={premium:!1},j.propTypes={premium:q.a.bool,eventsConfigurator:q.a.func.isRequired,event:q.a.shape({slug:q.a.string.isRequired,thumbnailImage:q.a.string,actionButtonLink:q.a.string,title:q.a.string.isRequired,soon:q.a.bool,badge:q.a.shape({style:q.a.string,text:q.a.string}),description:q.a.string.isRequired,actionButtonTitle:q.a.string}).isRequired};var V=j,B=a(99),U=function(e){function t(e){var a,n;return k()(this,t),(n=C()(this,x()(t).call(this,e))).email=n.props.email,n.emailEvents=n.email.events,n.eventsConfigurator=w()(a=n.eventsConfigurator).call(a,A()(n)),n}return O()(t,e),S()(t,[{key:"eventsConfigurator",value:function(e){var t;b.a.trackEvent("Emails > Automatic Type selected",{"MailPoet Free version":window.mailpoet_version,"MailPoet Premium version":window.mailpoet_premium_version,"Email type":e}),this.props.history.push(s()(t="/new/".concat(this.email.slug,"/")).call(t,e,"/conditions"))}},{key:"displayEvents",value:function(){var e=this,t=d()(g.a).call(g.a,this.emailEvents,(function(t,a){return h.a.createElement(V,{premium:e.email.premium,event:t,key:a,eventsConfigurator:e.eventsConfigurator})}));return h.a.createElement("ul",{className:"mailpoet_boxes woocommerce clearfix"},t)}},{key:"render",value:function(){var e=b.a.I18n.t("selectAutomaticEmailsEventsHeading").replace("%$1s",this.email.title);return h.a.createElement("div",null,h.a.createElement("h1",null,e),h.a.createElement(M,{step:"events"}),this.displayEvents())}}]),t}(h.a.Component);U.propTypes={email:q.a.shape({title:q.a.string.isRequired,slug:q.a.string.isRequired,premium:q.a.bool}).isRequired,history:q.a.shape({push:q.a.func.isRequired}).isRequired};var z=Object(B.withRouter)(U),$=a(26),W=a.n($),H=a(21),K=a.n(H),G=a(40),Y=a.n(G),J=a(50),Q=a.n(J),Z=a(32),X=a.n(Z),ee=a(318),te=a.n(ee),ae=a(8),ne=a.n(ae),re=a(4),ie=a.n(re),se=a(37),oe=a.n(se),le=(a(465),function(e){function t(e){var a;return k()(this,t),a=C()(this,x()(t).call(this,e)),ne()(A()(a),"getFieldId",(function(e){var t=e||a.props;return t.field.id||t.field.name})),ne()(A()(a),"getSelectedValues",(function(){if(void 0!==a.props.field.selected)return a.props.field.selected(a.props.item);if(void 0!==a.props.item&&void 0!==a.props.field.name){if(!a.allowMultipleValues())return a.props.item[a.props.field.name];var e;if(g.a.isArray(a.props.item[a.props.field.name]))return d()(e=a.props.item[a.props.field.name]).call(e,(function(e){return e.id}))}return null})),ne()(A()(a),"getItems",(function(){var e;return void 0!==window["mailpoet_".concat(a.props.field.endpoint)]?e=window["mailpoet_".concat(a.props.field.endpoint)]:void 0!==Y()(a.props.field)&&(e=Y()(a.props.field)),g.a.isArray(e)&&void 0!==K()(a.props.field)&&(e=K()(e).call(e,K()(a.props.field))),e})),ne()(A()(a),"getLabel",(function(e){return void 0!==a.props.field.getLabel?a.props.field.getLabel(e,a.props.item):e.name})),ne()(A()(a),"getSearchLabel",(function(e){return void 0!==a.props.field.getSearchLabel?a.props.field.getSearchLabel(e,a.props.item):null})),ne()(A()(a),"getValue",(function(e){return void 0!==a.props.field.getValue?a.props.field.getValue(e,a.props.item):e.id})),ne()(A()(a),"setupSelect2",(function(){if(!a.isSelect2Initialized()){var e={disabled:a.props.disabled||!1,width:a.props.width||"",placeholder:{id:"",text:a.props.field.placeholder},templateResult:function(e){return e.element&&e.element.selected?null:e.title?e.title:e.text}},t=a.props.field.remoteQuery||null;t&&(e=te()(e,{ajax:{url:window.ajaxurl,type:"POST",dataType:"json",data:function(e){return{action:"mailpoet",api_version:window.mailpoet_api_version,token:window.mailpoet_token,endpoint:t.endpoint,method:t.method,data:te()(t.data,{query:e.term})}},processResults:function(e){var t,a;g.a.has(e,"data")?t=d()(a=e.data).call(a,(function(e){return{id:e.id||e.value,text:e.name||e.text}})):t=[];return{results:t}}},minimumInputLength:t.minimumInputLength||2})),void 0!==a.props.field.extendSelect2Options&&(e=te()(e,a.props.field.extendSelect2Options));var n=ie()("#".concat(a.selectRef.current.id)).select2(e),r=!1;n.on("select2:unselecting",(function(){r=!0})),n.on("select2:opening",(function(e){!0===r&&(r=!1,e.preventDefault())})),n.on("change",a.handleChange)}})),ne()(A()(a),"resetSelect2",(function(){a.destroySelect2(),a.setupSelect2()})),ne()(A()(a),"destroySelect2",(function(){a.isSelect2Initialized()&&(ie()("#".concat(a.selectRef.current.id)).select2("destroy"),a.cleanupAfterSelect2())})),ne()(A()(a),"cleanupAfterSelect2",(function(){var e;X()(e=ie()("#".concat(a.selectRef.current.id))).call(e,"option:not(.default)").remove(),ie()("#".concat(a.selectRef.current.id)).off("select2:unselecting").off("select2:opening")})),ne()(A()(a),"allowMultipleValues",(function(){return!0===a.props.field.multiple})),ne()(A()(a),"isSelect2Initialized",(function(){return!0===ie()("#".concat(a.selectRef.current.id)).hasClass("select2-hidden-accessible")})),ne()(A()(a),"isSelect2Component",(function(){return a.allowMultipleValues()||a.props.field.forceSelect2})),ne()(A()(a),"handleChange",(function(e){var t;if(void 0!==a.props.onValueChange){var n=d()(t=ie()("#".concat(a.selectRef.current.id)).children(":selected")).call(t,(function(){return{id:ie()(this).val(),text:ie()(this).text()}})),r=a.props.field.multiple?g.a.pluck(n,"id"):g.a.pluck(n,"id").toString(),i=a.transformChangedValue(r,n);a.props.onValueChange({target:{value:i,name:a.props.field.name,id:e.target.id}})}})),ne()(A()(a),"transformChangedValue",(function(e,t){return"function"==typeof a.props.field.transformChangedValue?a.props.field.transformChangedValue.call(A()(a),e,t):e})),ne()(A()(a),"insertEmptyOption",(function(){if(!a.allowMultipleValues())return a.props.field.placeholder?h.a.createElement("option",{className:"default"}):void 0})),a.selectRef=h.a.createRef(),a}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){this.isSelect2Component()&&this.setupSelect2()}},{key:"componentDidUpdate",value:function(e){void 0!==this.props.item&&void 0!==e.item&&this.props.item.id!==e.item.id&&ie()("#".concat(this.selectRef.current.id)).val(this.getSelectedValues()).trigger("change"),this.isSelect2Initialized()&&this.getFieldId(this.props)!==this.getFieldId(e)&&void 0!==this.props.field.resetSelect2OnUpdate&&this.resetSelect2()}},{key:"componentWillUnmount",value:function(){this.isSelect2Component()&&this.destroySelect2()}},{key:"render",value:function(){var e=this,t=this.getItems(this.props.field),a=this.getSelectedValues(),n=d()(t).call(t,(function(t){var a=e.getLabel(t),n=e.getSearchLabel(t),r=e.getValue(t);return h.a.createElement("option",{key:"option-".concat(t.id),className:"default",value:r,title:n},a)}));return h.a.createElement("select",Q()({id:this.getFieldId(),ref:this.selectRef,disabled:this.props.field.disabled,"data-placeholder":this.props.field.placeholder,multiple:this.props.field.multiple,defaultValue:a},this.props.field.validation),this.insertEmptyOption(),n)}}]),t}(h.a.Component));le.propTypes={onValueChange:q.a.func,field:q.a.shape({name:q.a.string.isRequired,values:q.a.oneOfType([q.a.object,q.a.array]),getLabel:q.a.func,resetSelect2OnUpdate:q.a.bool,selected:q.a.func,endpoint:q.a.string,filter:q.a.func,getSearchLabel:q.a.func,getValue:q.a.func,placeholder:q.a.string,remoteQuery:q.a.object,extendSelect2Options:q.a.object,multiple:q.a.bool,forceSelect2:q.a.bool,transformChangedValue:q.a.func,disabled:q.a.bool,validation:q.a.object}).isRequired,item:q.a.object,disabled:q.a.bool,width:q.a.string},le.defaultProps={onValueChange:function(){},disabled:!1,width:"",item:void 0};var ce=le,ue=a(108),pe=a.n(ue),de=a(20),me=a.n(de),he=a(19),fe=a.n(he),ge=a(489),ve=a.n(ge),_e=a(62),be=a.n(_e),ye=function(e){function t(){return k()(this,t),C()(this,x()(t).apply(this,arguments))}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t,a=this.props.field.name||null,n=this.props.item||{};this.props.onValueChange instanceof Function&&(e=void 0===(e=n[this.props.field.name])?this.props.field.defaultValue||"":e),!e&&this.props.field.defaultValue&&(t=this.props.field.defaultValue);var r=this.props.field.id||null;!r&&this.props.field.name&&(r="field_".concat(this.props.field.name));var i=this.props.field.class||null;return i||this.props.field.size||(i="regular-text"),h.a.createElement("input",Q()({type:"text",disabled:void 0!==this.props.field.disabled&&this.props.field.disabled(this.props.item),className:i,size:"auto"!==this.props.field.size&&this.props.field.size>0?this.props.field.size:null,name:a,id:r,value:e,defaultValue:t,placeholder:this.props.field.placeholder,onChange:this.props.onValueChange},this.props.field.validation))}}]),t}(h.a.Component);ye.propTypes={onValueChange:q.a.func,field:q.a.shape({name:q.a.string.isRequired,defaultValue:q.a.string,id:q.a.string,class:q.a.string,size:q.a.oneOfType([q.a.string,q.a.number]),disabled:q.a.func,placeholder:q.a.string,validation:q.a.object}).isRequired,item:q.a.object.isRequired},ye.defaultProps={onValueChange:function(){}};var we=ye,Ee=window.mailpoet_time_format||"H:i",ke={immediate:b.a.I18n.t("delayImmediately"),hours:b.a.I18n.t("delayHoursAfter"),days:b.a.I18n.t("delayDaysAfter"),weeks:b.a.I18n.t("delayWeeksAfter")},Ie={daily:b.a.I18n.t("daily"),weekly:b.a.I18n.t("weekly"),monthly:b.a.I18n.t("monthly"),nthWeekDay:b.a.I18n.t("monthlyEvery"),immediately:b.a.I18n.t("immediately")},Se=g.a.object(d()(g.a).call(g.a,g.a.times(24,(function(e){return 3600*e})),(function(e){var t=new Date(null);return t.setSeconds(e),[e,b.a.Date.format(t,{format:Ee,offset:0})]}))),Ne={0:b.a.I18n.t("sunday"),1:b.a.I18n.t("monday"),2:b.a.I18n.t("tuesday"),3:b.a.I18n.t("wednesday"),4:b.a.I18n.t("thursday"),5:b.a.I18n.t("friday"),6:b.a.I18n.t("saturday")},Ce=g.a.object(d()(g.a).call(g.a,g.a.times(28,(function(e){return e})),(function(e){var t={0:b.a.I18n.t("first"),1:b.a.I18n.t("second"),2:b.a.I18n.t("third")};return[e+1,void 0!==t[e]?t[e]:b.a.I18n.t("nth").replace("%$1d",e+1)]}))),Te={1:b.a.I18n.t("first"),2:b.a.I18n.t("second"),3:b.a.I18n.t("third"),L:b.a.I18n.t("last")},xe="immediate",Re=1,Ae=30,Pe=function(e){function t(e){var a,n;k()(this,t);var r=(n=C()(this,x()(t).call(this,e))).props,i=r.item,s=r.event;n.handleChange=w()(a=n.handleChange).call(a,A()(n));var o=i.afterTimeType||s.defaultAfterTimeType||xe,l="minutes"===o?Ae:Re,c=i.afterTimeNumber||l;return n.state={afterTimeType:o,afterTimeNumber:c},i.afterTimeNumber===c&&i.afterTimeType===o||n.propagateChange(n.state),n}return O()(t,e),S()(t,[{key:"displayAfterTimeNumberField",value:function(){var e=this.props,t=e.afterTimeNumberSize,a=e.event,n=this.state,r=n.afterTimeType,i=n.afterTimeNumber;if("immediate"===r)return null;if(a.timeDelayValues&&a.timeDelayValues[r]&&!a.timeDelayValues[r].displayAfterTimeNumberField)return null;var s={field:{id:"scheduling_time_duration",name:"scheduling_time_duration",defaultValue:i?i.toString():"",size:t},item:{},onValueChange:g.a.partial(this.handleChange,g.a,"afterTimeNumber")};return h.a.createElement(we,{field:s.field,item:s.item,onValueChange:s.onValueChange})}},{key:"displayAfterTimeTypeOptions",value:function(){var e,t=this.props.event,a=ke;t.timeDelayValues&&(a=be()(e=ve()(t.timeDelayValues)).call(e,(function(e,t){var a=fe()(t,2),n=a[0],r=a[1];return e[n]=r.text,e}),{}));var n=this.state.afterTimeType,r={field:{id:"scheduling_time_interval",name:"scheduling_time_interval",forceSelect2:!0,values:d()(g.a).call(g.a,a,(function(e,t){return{name:e,id:t}})),extendSelect2Options:{minimumResultsForSearch:1/0},selected:function(){return n}},onValueChange:g.a.partial(this.handleChange,g.a,"afterTimeType")};return h.a.createElement(ce,{field:r.field,onValueChange:r.onValueChange})}},{key:"handleChange",value:function(e,t){var a=e.target.value;"afterTimeNumber"===t&&(a=me()(e.target.value,10),a=pe()(a)?null:a);var n=ne()({},t,a),r=this.state.afterTimeType;"afterTimeType"===t&&r!==a&&("minutes"===r&&(n.afterTimeNumber=Re),"minutes"===a&&(n.afterTimeNumber=Ae)),this.setState(n,this.propagateChange(n))}},{key:"propagateChange",value:function(e){var t=this.props.onValueChange;t&&t(e)}},{key:"render",value:function(){var e=this.props.event;return h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"event-scheduling-time-duration-selection"},this.displayAfterTimeNumberField()),h.a.createElement("div",{className:"event-scheduling-time-interval-selection"},this.displayAfterTimeTypeOptions()),e.schedulingReadMoreLink&&h.a.createElement("a",{href:e.schedulingReadMoreLink.link,target:"_blank",rel:"noopener noreferrer",className:"event-scheduling-read-more-link"},e.schedulingReadMoreLink.text))}}]),t}(h.a.Component);Pe.propTypes={item:q.a.shape({afterTimeType:q.a.string.isRequired,afterTimeNumber:q.a.number}).isRequired,afterTimeNumberSize:q.a.number,onValueChange:q.a.func,event:q.a.shape({defaultAfterTimeType:q.a.string,timeDelayValues:q.a.objectOf(q.a.shape({text:q.a.string,displayAfterTimeNumberField:q.a.bool})),schedulingReadMoreLink:q.a.shape({link:q.a.string.isRequired,text:q.a.string.isRequired})}).isRequired},Pe.defaultProps={afterTimeNumberSize:3,onValueChange:null};var Oe=Pe,Le=function(e){function t(e){var a,n;return k()(this,t),(n=C()(this,x()(t).call(this,e))).handleEventOptionChange=w()(a=n.handleEventOptionChange).call(a,A()(n)),n}return O()(t,e),S()(t,null,[{key:"getEventOptionsValues",value:function(e){var t=e&&Y()(e)?Y()(e):[];return t?d()(t).call(t,(function(e){return{id:e.id,name:e.name}})):t}}]),S()(t,[{key:"displayEventOptions",value:function(){var e=this.props,t=e.eventOptions,a=e.eventSlug,n=e.selected,r=e.emailSlug;if(!t)return t;var i={field:{id:"event_options_".concat(a),name:"event_options_".concat(a),forceSelect2:!0,resetSelect2OnUpdate:!0,values:this.constructor.getEventOptionsValues(t),multiple:t.multiple||!1,placeholder:t.placeholder||!1,extendSelect2Options:{minimumResultsForSearch:1/0},transformChangedValue:function(e,t){return d()(g.a).call(g.a,t,(function(e){return{id:e.id,name:e.text}}))},selected:function(){return n}},onValueChange:this.handleEventOptionChange};return"remote"===t.type&&(i.field=g.a.extend(i.field,{remoteQuery:{minimumInputLength:t.remoteQueryMinimumInputLength||null,endpoint:"automatic_emails",method:"get_event_options",data:{filter:t.remoteQueryFilter||null,email_slug:r,event_slug:a}}})),h.a.createElement(ce,{field:i.field,onValueChange:i.onValueChange})}},{key:"handleEventOptionChange",value:function(e){var t=this.props.onValueChange;t&&t({eventOptionValue:e.target.value})}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{className:"event-option-selection"},this.displayEventOptions()))}}]),t}(h.a.Component);Le.propTypes={selected:q.a.array,eventOptions:q.a.object,eventSlug:q.a.string.isRequired,emailSlug:q.a.string.isRequired,onValueChange:q.a.func},Le.defaultProps={eventOptions:null,selected:[],onValueChange:null};var De=Le,qe="immediate",Fe=function(e){function t(e){var a,n,r;k()(this,t),r=C()(this,x()(t).call(this,e));var i=e.email,s=e.name;r.handleChange=w()(a=r.handleChange).call(a,A()(r)),r.handleNextStep=w()(n=r.handleNextStep).call(n,A()(r)),r.email=i,r.emailEvents=r.email.events,r.segments=K()(g.a).call(g.a,window.mailpoet_segments,(function(e){return null===e.deleted_at}));var o=r.getEvent(s),l=r.constructor.getEventOptions(o),c=r.constructor.getEventOptionsFirstValue(l);return r.state={event:o,eventSlug:o.slug,eventOptionValue:c,segment:o.sendToLists?r.constructor.getFirstSegment():null,afterTimeType:o.defaultAfterTimeType||qe,afterTimeNumber:null},r}return O()(t,e),S()(t,null,[{key:"getEventOptions",value:function(e){return e.options||null}},{key:"getEventOptionsFirstValue",value:function(e){return e&&g.a.isArray(Y()(e))&&Y()(e)[0].id?Y()(e)[0].id:null}},{key:"displayBreadcrumbs",value:function(){return h.a.createElement(M,{step:"conditions"})}}]),S()(t,[{key:"getEvent",value:function(e){return this.emailEvents[e]}},{key:"getFirstSegment",value:function(){return g.a.isArray(this.segments)&&this.segments[0].id?this.segments[0].id:null}},{key:"displayHeader",value:function(){return this.state.event.title}},{key:"displayEventOptions",value:function(){var e=this.state,t=e.eventSlug,a=e.event,n={emailSlug:this.email.slug,eventSlug:t,eventOptions:this.constructor.getEventOptions(a),onValueChange:this.handleChange};return h.a.createElement(De,{emailSlug:n.emailSlug,eventSlug:n.eventSlug,eventOptions:n.eventOptions,onValueChange:n.onValueChange})}},{key:"displaySegments",value:function(){var e=this;if(!this.state.event.sendToLists)return null;var t={field:{id:"segments",forceSelect2:!0,values:this.segments,extendSelect2Options:{minimumResultsForSearch:1/0}},onValueChange:function(t){return e.handleChange({segment:t.target.value})}};return h.a.createElement("div",{className:"event-segment-selection"},h.a.createElement(ce,{field:t.field,onValueChange:t.onValueChange}))}},{key:"displayScheduling",value:function(){var e=this.state,t={item:{afterTimeNumber:e.afterTimeNumber,afterTimeType:e.afterTimeType},event:e.event,onValueChange:this.handleChange};return h.a.createElement(Oe,{item:t.item,event:t.event,onValueChange:t.onValueChange})}},{key:"displayEventTip",value:function(){var e=this.state.event;return e.tip?h.a.createElement("p",{className:"description"},h.a.createElement("strong",null,b.a.I18n.t("tip"))," ",e.tip):null}},{key:"handleChange",value:function(e){var t=this.state,a=t.segment,n=t.afterTimeNumber,r=e;if(r.eventSlug){r.event=this.getEvent(r.eventSlug),r.segment=r.event.sendToLists?a||this.constructor.getFirstSegment():null;var i=this.constructor.getEventOptions(r.event);r.eventOptionValue=i?this.constructor.getEventOptionsFirstValue(i):null}r.afterTimeType&&"immediate"===r.afterTimeType?r.afterTimeNumber=null:!r.afterTimeType||r.afterTimeNumber||n||(r.afterTimeNumber=1),this.setState(r)}},{key:"handleNextStep",value:function(){var e=this.props.history,t=this.state,a=t.eventSlug,n=t.afterTimeType,r=t.afterTimeNumber,i=t.event,s=t.segment,o=t.eventOptionValue,l={group:this.email.slug,event:a,afterTimeType:n};r&&(l.afterTimeNumber=r),l.sendTo=i.sendToLists?"segment":"user",s&&(l.segment=s),o&&(l.meta=W()({option:o})),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"create",data:{type:"automatic",subject:b.a.I18n.t("draftNewsletterTitle"),options:l}}).done((function(t){b.a.trackEvent("Emails > New Automatic Email Created",{"MailPoet Premium version":window.mailpoet_premium_version,"MailPoet Free version":window.mailpoet_version,"Event type":l.event,"Schedule type":l.afterTimeType,"Schedule value":l.afterTimeNumber}),e.push("/template/".concat(t.data.id))})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}},{key:"render",value:function(){var e=b.a.I18n.t("selectAutomaticEmailsEventsConditionsHeading").replace("%1s",this.email.title);return h.a.createElement("div",null,h.a.createElement("h1",null,e),this.constructor.displayBreadcrumbs(),h.a.createElement("div",{className:"events-conditions-container"},h.a.createElement("h1",null,this.displayHeader()),h.a.createElement("div",null,this.displayEventOptions()),h.a.createElement("div",null,this.displaySegments()),h.a.createElement("div",null,this.displayScheduling())),h.a.createElement("p",{className:"submit"},h.a.createElement("input",{className:"button button-primary",type:"button",onClick:this.handleNextStep,value:b.a.I18n.t("next")})),this.displayEventTip())}}]),t}(h.a.Component);Fe.propTypes={history:q.a.shape({push:q.a.func.isRequired}).isRequired,name:q.a.string.isRequired,email:q.a.shape({title:q.a.string.isRequired,slug:q.a.string.isRequired}).isRequired};var Me=Fe,je="immediate",Ve=1,Be=function(e){function t(e){var a,n;k()(this,t),n=C()(this,x()(t).call(this,e));var r=e.field;n.handleChange=w()(a=n.handleChange).call(a,A()(n)),n.email=r.email,n.emailOptions=r.emailOptions,n.events=g.a.indexBy(n.email.events,"slug"),n.segments=K()(g.a).call(g.a,window.mailpoet_segments,(function(e){return null===e.deleted_at}));var i=n.events[n.emailOptions.event],s=n.emailOptions.afterTimeType||i.defaultAfterTimeType||je;return n.state={event:i,afterTimeType:s,eventSlug:n.emailOptions.event,eventOptionValue:null,afterTimeNumber:n.emailOptions.afterTimeNumber||Ve,segment:n.emailOptions.segment?n.emailOptions.segment:null},n}return O()(t,e),S()(t,[{key:"displayHeader",value:function(){return this.state.event.title}},{key:"displayEventOptions",value:function(){var e,t=this.state,a=t.event,n=t.eventSlug;try{e=JSON.parse(this.emailOptions.meta||null)}catch(t){e=this.emailOptions.meta||null}var r={emailSlug:this.email.slug,eventSlug:n,onValueChange:this.handleChange,eventOptions:a.options||null};return e&&e.option&&("remote"===r.eventOptions.type&&(r.eventOptions.values=e.option),r.selected=d()(g.a).call(g.a,e.option,(function(e){return e.id}))),h.a.createElement(De,{emailSlug:r.emailSlug,eventSlug:r.eventSlug,eventOptions:r.eventOptions,onValueChange:r.onValueChange,selected:r.selected})}},{key:"displaySegments",value:function(){var e=this,t=this.state.segment;if("user"===this.emailOptions.sendTo)return null;var a={field:{id:"segments",forceSelect2:!0,values:this.segments,extendSelect2Options:{minimumResultsForSearch:1/0},selected:function(){return t}},onValueChange:function(t){return e.handleChange({segment:t.target.value})}};return h.a.createElement("div",{className:"event-segment-selection"},h.a.createElement(ce,{field:a.field,onValueChange:a.onValueChange}))}},{key:"displayScheduling",value:function(){var e=this.state,t={item:{afterTimeNumber:e.afterTimeNumber,afterTimeType:e.afterTimeType},event:e.event,onValueChange:this.handleChange};return h.a.createElement(Oe,{item:t.item,event:t.event,onValueChange:t.onValueChange})}},{key:"handleChange",value:function(e){var t=this.state.afterTimeNumber,a=e;a.afterTimeType&&"immediate"===a.afterTimeType?a.afterTimeNumber=null:!a.afterTimeType||a.afterTimeNumber||t||(a.afterTimeNumber=Ve),this.setState(e,this.propagateChange)}},{key:"propagateChange",value:function(){var e=this.state,t=e.eventSlug,a=e.afterTimeType,n=e.afterTimeNumber,r=e.segment,i=e.eventOptionValue,s=this.props.onValueChange;if(s){var o={group:this.email.slug,event:t,afterTimeType:a};n&&(o.afterTimeNumber=n),r&&(o.segment=r),i&&(o.meta=W()({option:this.state.eventOptionValue})),s({target:{name:"options",value:o}})}}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{className:"events-conditions-header"},this.displayHeader()),h.a.createElement("div",{className:"events-conditions-container"},h.a.createElement("div",null,this.displayEventOptions()),h.a.createElement("div",null,this.displaySegments()),h.a.createElement("div",null,this.displayScheduling())))}}]),t}(h.a.Component);Be.propTypes={field:q.a.shape({email:q.a.shape({events:q.a.object.isRequired}).isRequired,emailOptions:q.a.object.isRequired}).isRequired,onValueChange:q.a.func},Be.defaultProps={onValueChange:null};var Ue=Be,ze=a(61),$e=a.n(ze),We=a(48),He=a.n(We),Ke=a(16),Ge=a(22),Ye=a.n(Ge),Je=a(290),Qe=a.n(Je),Ze=a(490),Xe=a.n(Ze),et=function(e){var t=e.installedDaysAgo,a=t>30?b.a.I18n.t("reviewRequestUsingForMonths").replace("[months]",Math.round(t/30)):b.a.I18n.t("reviewRequestUsingForDays").replace("[days]",t);return h.a.createElement("div",{className:"mailpoet_review_request"},h.a.createElement("img",{src:e.reviewRequestIllustrationUrl,height:"280",width:"280",alt:""}),h.a.createElement("h2",null,b.a.I18n.t("reviewRequestHeading")),h.a.createElement("p",null,b.a.I18n.t("reviewRequestDidYouKnow").replace("[username]",e.username)),h.a.createElement("p",null,a),h.a.createElement("p",null,h.a.createElement("a",{href:"http://bit.ly/2Bi124o",target:"_blank",rel:"noopener noreferrer",className:"button button-primary"},b.a.I18n.t("reviewRequestRateUsNow"))),h.a.createElement("p",null,h.a.createElement("a",{id:"mailpoet_review_request_not_now"},b.a.I18n.t("reviewRequestNotNow"))))};et.propTypes={installedDaysAgo:q.a.number.isRequired,reviewRequestIllustrationUrl:q.a.string.isRequired,username:q.a.string.isRequired};var tt=et,at=null;var nt=function(){return at||(at=b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"analytics",action:"getTrackingData"})),at},rt=function(){return Object(m.useLayoutEffect)((function(){var e=function(e){var t;t=window.mailpoet_display_nps_form?"EqOgKsgZd832Sz9w":window.mailpoet_is_new_user?"6L479eVPXk7pBn6S":"k0aJAsQAWI2ERyGv",Xe()({writeKey:t,userId:window.mailpoet_current_wp_user.ID+window.mailpoet_site_url,traits:{name:window.mailpoet_current_wp_user.user_nicename,email:window.mailpoet_current_wp_user.user_email,mailpoetVersion:window.mailpoet_version,mailpoetPremiumIsActive:window.mailpoet_premium_active,createdAt:e.installedAtIso,newslettersSent:e.newslettersSent,welcomeEmails:e.welcomeEmails,postnotificationEmails:e.postnotificationEmails,woocommerceEmails:e.woocommerceEmails,subscribers:e.subscribers,lists:e.lists,sendingMethod:e.sendingMethod,woocommerceIsInstalled:e.woocommerceIsInstalled},events:{submit:function(e){e.rating>=9&&e.completed&&b.a.Modal.popup({width:800,template:Qe.a.renderToString(tt({username:window.mailpoet_current_wp_user_firstname||window.mailpoet_current_wp_user.user_login,reviewRequestIllustrationUrl:window.mailpoet_review_request_illustration_url,installedDaysAgo:window.mailpoet_installed_days_ago})),onInit:function(){document.getElementById("mailpoet_review_request_not_now").addEventListener("click",(function(){return b.a.Modal.close()}))}})}}})};window.mailpoet_display_nps_poll&&nt().then((function(t){var a=t.data;return e(a)}))}),[]),null},it=function(e){return function(t){return rt(),h.a.createElement(e,t)}},st=function(e){function t(e){var a;return k()(this,t),(a=C()(this,x()(t).call(this,e))).state={tabs:_.a.applyFilters("mailpoet_newsletters_listings_tabs",[{name:"standard",label:b.a.I18n.t("tabStandardTitle"),link:"/standard"},{name:"welcome",label:b.a.I18n.t("tabWelcomeTitle"),link:"/welcome"},{name:"notification",label:b.a.I18n.t("tabNotificationTitle"),link:"/notification"}])},a}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t=this,a=d()(e=this.state.tabs).call(e,(function(e){if(!1===e.display)return null;var a=Ye()("nav-tab",{"nav-tab-active":t.props.tab===e.name});return h.a.createElement(Ke.b,{key:"tab-".concat(e.label),className:a,"data-automation-id":"tab-".concat(e.label),to:e.link,onClick:function(){return b.a.trackEvent("Tab Emails > ".concat(e.name," clicked"),{"MailPoet Free version":window.mailpoet_version})}},e.label)}));return h.a.createElement("h2",{className:"nav-tab-wrapper","data-automation-id":"newsletters_listing_tabs"},a)}}]),t}(h.a.Component);st.propTypes={tab:q.a.string.isRequired};var ot=it(st),lt=function(){return h.a.createElement("div",null,h.a.createElement("h1",{className:"title"},b.a.I18n.t("pageTitle"),h.a.createElement(Ke.b,{id:"mailpoet-new-email",className:"page-title-action",to:"/new",onClick:function(){return b.a.trackEvent("Emails > Add New",{"MailPoet Free version":window.mailpoet_version})},"data-automation-id":"new_email"},b.a.I18n.t("new"))))},ct=a(316),ut=a.n(ct),pt=a(36),dt=a.n(pt),mt=function(e){function t(e){var a,n,r,i;return k()(this,t),(i=C()(this,x()(t).call(this,e))).loadBeamer=w()(a=i.loadBeamer).call(a,A()(i)),i.beamerCallback=w()(n=i.beamerCallback).call(n,A()(i)),i.showBeamer=w()(r=i.showBeamer).call(r,A()(i)),i.state={showDot:e.hasNews,beamerLoaded:void 0!==window.Beamer,beamerInitialized:!1},i}return O()(t,e),S()(t,null,[{key:"updateLastAnnouncementSeenValue",value:function(){var e={last_announcement_seen:Math.floor(ut()()/1e3)};b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"user_flags",action:"set",data:e})}},{key:"showPluginUpdateNotice",value:function(){if(window.mailpoet_update_available&&!document.getElementById("mailpoet_update_notice")){var e=dt()(b.a.I18n.t("updateMailPoetNotice"),/\[link\](.*?)\[\/link\]/,(function(e){return'<a href="update-core.php">'.concat(e,"</a>")})).join("");ie()("#beamerOverlay").append('<p id="mailpoet_update_notice" class="mailpoet_in_beamer_update_notice">'.concat(e,"</p>"))}}}]),S()(t,[{key:"loadBeamer",value:function(){window.beamer_config={product_id:"VvHbhYWy7118",selector:"#beamer-empty-element",language:window.mailpoet_user_locale,callback:this.beamerCallback},window.mailpoet_woocommerce_active&&(window.beamer_config.filter="woocommerce"),b.a.Modal.loading(!0),window.mailpoet_feature_announcement_has_news=!1,this.setState({beamerLoaded:!0});var e=document.createElement("script");e.type="text/javascript",e.src="https://app.getbeamer.com/js/beamer-embed.js",document.getElementsByTagName("body")[0].appendChild(e)}},{key:"beamerCallback",value:function(){this.state.beamerInitialized||(this.showBeamer(),this.setState({beamerInitialized:!0}))}},{key:"showBeamer",value:function(e){e&&e.preventDefault(),this.state.beamerLoaded?(this.setState({showDot:!1}),b.a.Modal.loading(!1),window.Beamer.show(),t.updateLastAnnouncementSeenValue(),t.showPluginUpdateNotice()):this.loadBeamer()}},{key:"render",value:function(){var e=Ye()("button mailpoet_feature_announcement_button",this.state.showDot?"mailpoet_feature_announcement_dot":"");return h.a.createElement("div",{className:"mailpoet_feature_announcement"},h.a.createElement("button",{type:"button",onClick:this.showBeamer,className:e,title:b.a.I18n.t("whatsNew")},h.a.createElement("span",{className:"mailpoet_feature_announcement_icon dashicons dashicons-carrot"})),h.a.createElement("span",{id:"beamer-empty-element"}))}}]),t}(h.a.Component);mt.propTypes={hasNews:q.a.bool},mt.defaultProps={hasNews:!1};var ht=mt,ft=function(){b.a.trackEvent("User has clicked a CTA to view detailed stats",{"MailPoet Free version":window.mailpoet_version})},gt=function(e){return e.unshift({name:"stats",link:function(e){return h.a.createElement(Ke.b,{to:"/stats/".concat(e.id),onClick:_.a.applyFilters("mailpoet_newsletters_listing_stats_tracking",ft)},b.a.I18n.t("statsListingActionTitle"))},display:function(e){var t=e.queue&&e.queue.count_processed;return Number(e.total_sent||t)>0}}),e},vt=function(e){e.meta.mta_log.error&&"authorization"===e.meta.mta_log.error.operation&&(b.a.Notice.hide("mailpoet_notice_being_sent"),b.a.Notice.error(e.meta.mta_log.error.error_message,{static:!0,id:"mailpoet_authorization_error"}),ie()(".js-button-resume-sending").on("click",(function(){ie()('[data-id="mailpoet_authorization_error"]').slideUp()})))},_t=function(e){if(!1===e.meta.cron_accessible){var t=dt()(b.a.I18n.t("cronNotAccessibleNotice"),/\[link\](.*?)\[\/link\]/g,(function(e){return h.a.createElement("a",{href:"https://kb.mailpoet.com/article/231-sending-does-not-work","data-beacon-article":"5a0257ac2c7d3a272c0d7ad6",target:"_blank",rel:"noopener noreferrer",key:"check-cron"},e)}));b.a.Notice.error("",{static:!0,id:"mailpoet_cron_error"}),oe.a.render(h.a.createElement("div",null,h.a.createElement("p",null,t)),ie()('[data-id="mailpoet_cron_error"]')[0])}else b.a.Notice.hide("mailpoet_cron_error")},bt=a(5),yt=a.n(bt),wt=a(81),Et=a.n(wt),kt=a(110),It=a.n(kt),St=function(e){var t=e.newsletter,a=e.isSent,n=e.currentTime,r=a;if(void 0===r&&(r=t.statistics&&t.queue&&"scheduled"!==t.queue.status),!r)return h.a.createElement("span",null,b.a.I18n.t("notSentYet"));var i={link:"/stats/".concat(t.id),onClick:_.a.applyFilters("mailpoet_newsletters_listing_stats_tracking",ft)},o=Number(t.total_sent||t.queue.count_processed),l=0,c=0,u=0,p=null;o>0&&(l=100*t.statistics.clicked/o,c=100*t.statistics.opened/o,u=100*t.statistics.unsubscribed/o,p=t.statistics.revenue);var d,m,f,g,v,y=b.a.Num.toLocaleFixed(l,1),w=b.a.Num.toLocaleFixed(c,1),E=b.a.Num.toLocaleFixed(u,1);void 0!==n?(d=6,m=t.queue.scheduled_at||t.queue.created_at,g=(f=yt()(n).diff(yt()(m),"hours"))<d,v=!0):(g=!1,v=!1);var k;k=o>=20&&t.statistics.opened>=5&&!g?h.a.createElement("div",{className:"mailpoet_stats_text"},h.a.createElement("div",null,h.a.createElement("span",null,w,"%"," "),h.a.createElement(It.a,{stat:"opened",rate:c,tooltipId:"opened-".concat(t.id)})),h.a.createElement("div",null,h.a.createElement("span",null,y,"%"," "),h.a.createElement(It.a,{stat:"clicked",rate:l,tooltipId:"clicked-".concat(t.id)})),h.a.createElement("div",null,h.a.createElement("span",{className:"mailpoet_stat_hidden"},E,"%"))):h.a.createElement("div",null,h.a.createElement("span",{className:"mailpoet_stats_text"},w,"%,"," ",y,"%",h.a.createElement("span",{className:"mailpoet_stat_hidden"},","," ",E,"%")));var I,S=function(e,a){var n;return function(e,t,a,n){return n<=0||!t.link?e:t.externalLink?h.a.createElement("a",{key:"stats-".concat(a),href:t.link,onClick:t.onClick||null},e):h.a.createElement(Ke.b,{key:"stats-".concat(a),to:t.link,onClick:t.onClick||null},e)}(e,i,s()(n="".concat(a,"-")).call(n,t.id),o)},N=h.a.createElement(h.a.Fragment,null,S(k,"opened-and-clicked"),null!==p&&p.value>0&&h.a.createElement("div",{className:"mailpoet_stats_text"},S(p.formatted,"revenue")," ",h.a.createElement(Et.a,{tooltip:b.a.I18n.t("revenueStatsTooltip"),place:"left",tooltipId:"helpTooltipStatsRevenue"})),g&&S(h.a.createElement("div",{className:"mailpoet_badge mailpoet_badge_green"},b.a.I18n.t("checkBackInHours").replace("%$1d",d-f)),"check-back"));return v&&c<5&&f>=24&&o>=10&&(I=h.a.createElement("div",null,h.a.createElement("a",{href:"https://kb.mailpoet.com/article/191-how-to-improve-my-open-and-click-rates","data-beacon-article":"58f671152c7d3a057f8858e8",target:"_blank",rel:"noopener noreferrer",className:"mailpoet_stat_link_small"},b.a.I18n.t("improveThisLinkText")))),h.a.createElement("div",null,N,I)},Nt=q.a.shape({clicked:q.a.number,opened:q.a.number,unsubscribed:q.a.number,revenue:q.a.shape({count:q.a.number,currency:q.a.string,formatted:q.a.string,value:q.a.number})}),Ct=q.a.shape({status:q.a.string,count_processed:q.a.string.isRequired,count_total:q.a.string.isRequired,created_at:q.a.string,scheduled_at:q.a.string});St.propTypes={newsletter:q.a.shape({id:q.a.number.isRequired,queue:q.a.oneOfType([Ct,q.a.bool]),total_sent:q.a.number,statistics:q.a.oneOfType([Nt,q.a.bool])}).isRequired,isSent:q.a.bool,currentTime:q.a.string},St.defaultProps={isSent:void 0,currentTime:void 0};var Tt=St,xt=a(39),Rt=a.n(xt),At=a(56),Pt=a.n(At),Ot=function(e){function t(e){var a;return k()(this,t),a=C()(this,x()(t).call(this,e)),ne()(A()(a),"setupNewsletter",(function(e){void 0!==e&&(a.props.history.push("/new/".concat(e)),b.a.trackEvent("Emails > Type selected",{"MailPoet Free version":window.mailpoet_version,"Email type":e}))})),ne()(A()(a),"getAutomaticEmails",(function(){return window.mailpoet_automatic_emails?d()(g.a).call(g.a,window.mailpoet_automatic_emails,(function(e){var t=e,n=g.a.partial(a.setupNewsletter,e.slug);return t.action=h.a.createElement("div",null,h.a.createElement("a",{className:"button button-primary",onClick:n,role:"button",tabIndex:0,disabled:a.state.isCreating,onKeyDown:function(e){var t,n;u()(t=["keydown","keypress"]).call(t,e.type)&&u()(n=["Enter"," "]).call(n,e.key)&&(e.preventDefault(),a.onClick())}},b.a.I18n.t("setUp"))),t})):[]})),ne()(A()(a),"getAdditionalTypes",(function(){return window.mailpoet_woocommerce_active?[{slug:"wc_transactional",title:b.a.I18n.t("wooCommerceCustomizerTypeTitle"),description:b.a.I18n.t("wooCommerceCustomizerTypeDescription"),action:h.a.createElement("a",{className:"button button-primary","data-automation-id":"customize_woocommerce",onClick:a.openWooCommerceCustomizer,role:"button",tabIndex:0,onKeyDown:function(e){var t,n;u()(t=["keydown","keypress"]).call(t,e.type)&&u()(n=["Enter"," "]).call(n,e.key)&&(e.preventDefault(),a.openWooCommerceCustomizer())}},b.a.I18n.t("customize"))}]:[]})),ne()(A()(a),"openWooCommerceCustomizer",Pt()(Rt.a.mark((function e(){var t,a;return Rt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(b.a.trackEvent("Emails > Type selected",{"MailPoet Free version":window.mailpoet_version,"Email type":"wc_transactional"}),t=window.mailpoet_woocommerce_transactional_email_id){e.next=15;break}return e.prev=3,e.next=6,b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"settings",action:"set",data:{"woocommerce.use_mailpoet_editor":1}});case 6:a=e.sent,t=a.data.woocommerce.transactional_email_id,b.a.trackEvent("Emails > WooCommerce email customizer enabled",{"MailPoet Free version":window.mailpoet_version}),e.next=15;break;case 11:return e.prev=11,e.t0=e.catch(3),b.a.Notice.showApiErrorNotice(e.t0,{scroll:!0}),e.abrupt("return");case 15:window.location.href="?page=mailpoet-newsletter-editor&id=".concat(t);case 16:case"end":return e.stop()}}),e,null,[[3,11]])})))),ne()(A()(a),"createNewsletter",(function(e){a.setState({isCreating:!0}),b.a.trackEvent("Emails > Type selected",{"MailPoet Free version":window.mailpoet_version,"Email type":e}),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"create",data:{type:e,subject:b.a.I18n.t("draftNewsletterTitle")}}).done((function(e){a.props.history.push("/template/".concat(e.data.id))})).fail((function(e){var t;(a.setState({isCreating:!1}),e.errors.length>0)&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))})),a.state={isCreating:!1},a}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t=g.a.partial(this.createNewsletter,"standard"),a=g.a.partial(this.setupNewsletter,"notification"),n=g.a.partial(this.setupNewsletter,"welcome"),r=[{slug:"standard",title:b.a.I18n.t("regularNewsletterTypeTitle"),description:b.a.I18n.t("regularNewsletterTypeDescription"),action:h.a.createElement("a",{className:"button button-primary","data-automation-id":"create_standard",onClick:t,role:"button",tabIndex:0,disabled:this.state.isCreating,onKeyDown:function(e){var a,n;u()(a=["keydown","keypress"]).call(a,e.type)&&u()(n=["Enter"," "]).call(n,e.key)&&(e.preventDefault(),t())}},b.a.I18n.t("create"))},{slug:"welcome",title:b.a.I18n.t("welcomeNewsletterTypeTitle"),description:b.a.I18n.t("welcomeNewsletterTypeDescription"),videoGuide:"https://kb.mailpoet.com/article/254-video-guide-to-welcome-emails",videoGuideBeacon:"5b05ebf20428635ba8b2aa53",action:h.a.createElement("a",{className:"button button-primary",onClick:n,"data-automation-id":"create_welcome",disabled:this.state.isCreating,onKeyDown:function(e){var t,a;u()(t=["keydown","keypress"]).call(t,e.type)&&u()(a=["Enter"," "]).call(a,e.key)&&(e.preventDefault(),n())},role:"button",tabIndex:0},b.a.I18n.t("setUp"))},{slug:"notification",title:b.a.I18n.t("postNotificationNewsletterTypeTitle"),description:b.a.I18n.t("postNotificationNewsletterTypeDescription"),videoGuide:"https://kb.mailpoet.com/article/210-video-guide-to-post-notifications",videoGuideBeacon:"59ba6fb3042863033a1cd5a5",action:h.a.createElement("a",{className:"button button-primary","data-automation-id":"create_notification",onClick:a,role:"button",disabled:this.state.isCreating,tabIndex:0,onKeyDown:function(e){var t,n;u()(t=["keydown","keypress"]).call(t,e.type)&&u()(n=["Enter"," "]).call(n,e.key)&&(e.preventDefault(),a())}},b.a.I18n.t("setUp"))}],i=_.a.applyFilters("mailpoet_newsletters_types",s()(e=[]).call(e,r,l()(this.getAutomaticEmails())),this);i=s()(i).call(i,this.getAdditionalTypes()),K()(this.props)&&(i=K()(i).call(i,K()(this.props)));var o=!0===window.mailpoet_is_new_user?"mailpoet_badge mailpoet_badge_video":"mailpoet_badge mailpoet_badge_video mailpoet_badge_video_grey",c=b.a.Ajax.constructGetUrl({api_version:window.mailpoet_api_version,endpoint:"newsletterTemplates",action:"getAll"});return h.a.createElement("div",null,h.a.createElement("link",{rel:"prefetch",href:window.mailpoet_editor_javascript_url,as:"script"}),this.props.showHeader&&h.a.createElement(h.a.Fragment,null,h.a.createElement("h1",null,b.a.I18n.t(0===window.mailpoet_newsletters_count?"createFirstEmailTitle":"pickCampaignType")),h.a.createElement(L.a,{step:"type"})),h.a.createElement("ul",{className:"mailpoet_boxes mailpoet_boxes_types"},d()(i).call(i,(function(e){return h.a.createElement("li",{key:e.slug,"data-type":e.slug,className:"mailpoet_newsletter_types"},h.a.createElement("div",{className:"mailpoet_thumbnail"},e.thumbnailImage?h.a.createElement("img",{src:e.thumbnailImage,alt:""}):null),h.a.createElement("div",{className:"mailpoet_boxes_content"},h.a.createElement("div",{className:"mailpoet_description"},h.a.createElement("h3",null,e.title," ",e.beta?"(".concat(b.a.I18n.t("beta"),")"):""),h.a.createElement("p",null,e.description),e.videoGuide&&h.a.createElement("a",{className:o,href:e.videoGuide,"data-beacon-article":e.videoGuideBeacon,target:"_blank",rel:"noopener noreferrer"},h.a.createElement("span",{className:"dashicons dashicons-format-video"}),b.a.I18n.t("seeVideoGuide"))),h.a.createElement("div",{className:"mailpoet_actions"},e.action)))}),this)),h.a.createElement("link",{rel:"prefetch",href:c,as:"fetch"}))}}]),t}(h.a.Component);Ot.propTypes={filter:q.a.func,history:q.a.shape({push:q.a.func.isRequired}).isRequired,showHeader:q.a.bool},Ot.defaultProps={filter:null,showHeader:!0};var Lt=Object(B.withRouter)(Ot),Dt=a(47),qt=a.n(Dt),Ft=function(e){var t=e.onClose,a=e.onDisplay,n=e.renderInPlace,r=e.timeout,i=e.scroll,s=e.children,o=e.closable,l=e.type,c=h.a.useState(!1),u=fe()(c,2),p=u[0],d=u[1],m=h.a.useRef(null),f=h.a.useRef(null),g=h.a.useCallback((function(){t&&t(),d(!0)}),[t]);if(h.a.useEffect((function(){return r&&(f.current=qt()(g,r)),function(){return f.current?clearTimeout(f.current):null}}),[g,r]),h.a.useLayoutEffect((function(){i&&m.current&&m.current.scrollIntoView(!1)}),[i]),h.a.useLayoutEffect((function(){a&&a()}),[a]),p)return null;var v=h.a.createElement("div",{ref:m,className:"mailpoet_base_notice mailpoet_".concat(l,"_notice")},s,o&&h.a.createElement("button",{type:"button",className:"notice-dismiss",onClick:g},h.a.createElement("span",{className:"screen-reader-text"},b.a.I18n.t("dismissNotice"))));return n?v:oe.a.createPortal(v,document.getElementById("mailpoet_notices"))};Ft.propTypes={type:q.a.oneOf(["success","info","warning","error"]).isRequired,scroll:q.a.bool,closable:q.a.bool,renderInPlace:q.a.bool,onDisplay:q.a.func,onClose:q.a.func,timeout:q.a.oneOfType([q.a.number,q.a.oneOf([!1])]),children:q.a.oneOfType([q.a.string,q.a.element,q.a.arrayOf(q.a.element)]).isRequired},Ft.defaultProps={timeout:1e4,scroll:!1,closable:!0,renderInPlace:!1,onDisplay:void 0,onClose:void 0};var Mt=Ft,jt=function(){if(!window.mailpoet_subscribers_limit_reached)return null;var e=window.mailpoet_has_valid_api_key,t=b.a.I18n.t("subscribersLimitNoticeTitle").replace("[subscribersLimit]",window.mailpoet_subscribers_limit),a=b.a.I18n.t(e?"yourPlanLimit":"freeVersionLimit").replace("[subscribersLimit]",window.mailpoet_subscribers_limit),n=e?"https://account.mailpoet.com/upgrade":"https://account.mailpoet.com/?s=".concat(window.mailpoet_subscribers_count+1),r=function(){var e=Pt()(Rt.a.mark((function e(){return Rt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"services",action:"recheckKeys"});case 2:window.location.reload();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return h.a.createElement(Mt,{type:"error",timeout:!1,closable:!1,renderInPlace:!0},h.a.createElement("h3",null,t),h.a.createElement("p",null,a," ",b.a.I18n.t("youNeedToUpgrade")),h.a.createElement("p",null,h.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",className:"button button-primary",href:n},b.a.I18n.t("upgradeNow")),e&&h.a.createElement(h.a.Fragment,null," ",h.a.createElement("button",{type:"button",className:"button",onClick:r},b.a.I18n.t("refreshMySubscribers")))))},Vt=!!window.mailpoet_tracking_enabled,Bt=window.mailpoet_woocommerce_automatic_emails||{},Ut={onTrash:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterTrashed"):b.a.I18n.t("multipleNewslettersTrashed").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onDelete:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterDeleted"):b.a.I18n.t("multipleNewslettersDeleted").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onRestore:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterRestored"):b.a.I18n.t("multipleNewslettersRestored").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)}},zt=[{name:"subject",label:b.a.I18n.t("subject"),sortable:!0},{name:"status",label:b.a.I18n.t("status"),width:145},{name:"settings",label:b.a.I18n.t("settings")},{name:"statistics",label:b.a.I18n.t("statistics"),display:Vt},{name:"updated_at",label:b.a.I18n.t("lastModifiedOn"),sortable:!0}],$t=[{name:"trash",label:b.a.I18n.t("moveToTrash"),onSuccess:Ut.onTrash}],Wt=[{name:"view",link:function(e){return h.a.createElement("a",{href:e.preview_url,target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("preview"))}},{name:"edit",link:function(e){return h.a.createElement("a",{href:"?page=mailpoet-newsletter-editor&id=".concat(e.id)},b.a.I18n.t("edit"))}},{name:"duplicate",label:b.a.I18n.t("duplicate"),onClick:function(e,t){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"duplicate",data:{id:e.id}}).done((function(e){b.a.Notice.success(b.a.I18n.t("newsletterDuplicated").replace("%$1s",e.data.subject)),t()})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}},{name:"trash"}];_.a.addFilter("mailpoet_newsletters_listings_automatic_email_actions","mailpoet",gt);var Ht=function(e){function t(e){var a,n;return k()(this,t),n=C()(this,x()(t).call(this,e)),ne()(A()(n),"updateStatus",(function(e){e.persist(),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"setStatus",data:{id:Number(e.target.getAttribute("data-id")),status:e.target.value}}).done((function(e){"active"===e.data.status&&b.a.Notice.success(b.a.I18n.t("automaticEmailActivated")),n.forceUpdate()})).fail((function(t){b.a.Notice.showApiErrorNotice(t),e.target.value=t.status}))})),ne()(A()(n),"renderStatus",(function(e){var t=me()(e.total_sent,10)?b.a.I18n.t("sentToXCustomers").replace("%$1d",e.total_sent.toLocaleString()):b.a.I18n.t("notSentYet");return h.a.createElement("div",null,h.a.createElement("p",null,h.a.createElement("select",{"data-id":e.id,defaultValue:e.status,onChange:n.updateStatus},h.a.createElement("option",{value:"active"},b.a.I18n.t("active")),h.a.createElement("option",{value:"draft"},b.a.I18n.t("inactive")))),h.a.createElement("p",null,h.a.createElement(Ke.b,{to:"/sending-status/".concat(e.id)},t)))})),ne()(A()(n),"renderSettings",(function(e){var t,a=Bt[e.options.group].events[e.options.event];try{t=JSON.parse(e.options.meta||null)}catch(a){t=e.options.meta||null}var n,r,i=t&&t.option?g.a.pluck(t.option,"name"):[];if(t&&g.a.isEmpty(i))return h.a.createElement("span",{className:"mailpoet_error"},b.a.I18n.t("automaticEmailEventOptionsNotConfigured"));if((n=i.length>1&&"listingScheduleDisplayTextPlural"in a?a.listingScheduleDisplayTextPlural.replace("%s",i.join(", ")):a.listingScheduleDisplayText.replace("%s",i.join(", ")))&&"immediate"!==e.options.afterTimeType)switch(e.options.afterTimeType){case"minutes":r=b.a.I18n.t("sendingDelayMinutes").replace("%$1d",e.options.afterTimeNumber);break;case"hours":r=b.a.I18n.t("sendingDelayHours").replace("%$1d",e.options.afterTimeNumber);break;case"days":r=b.a.I18n.t("sendingDelayDays").replace("%$1d",e.options.afterTimeNumber);break;case"weeks":r=b.a.I18n.t("sendingDelayWeeks").replace("%$1d",e.options.afterTimeNumber);break;default:r=b.a.I18n.t("sendingDelayInvalid")}return h.a.createElement("span",null,n,r&&h.a.createElement(h.a.Fragment,null,h.a.createElement("br",null),r))})),ne()(A()(n),"renderItem",(function(e,t){var a=Ye()("manage-column","column-primary","has-row-actions");return h.a.createElement("div",null,h.a.createElement("td",{className:a},h.a.createElement("strong",null,h.a.createElement("a",{className:"row-title",href:"?page=mailpoet-newsletter-editor&id=".concat(e.id)},e.subject)),t),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("status")},n.renderStatus(e)),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("settings")},n.renderSettings(e)),!0===Vt?h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("statistics")},h.a.createElement(Tt,{newsletter:e,isSent:e.total_sent>0&&!!e.statistics})):null,h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("lastModifiedOn")},h.a.createElement("abbr",null,b.a.Date.format(e.updated_at))))})),n.state={eventCounts:{},newslettersCount:void 0},n.afterGetItems=w()(a=n.afterGetItems).call(a,A()(n)),n}return O()(t,e),S()(t,[{key:"afterGetItems",value:function(e){vt(e),this.countEmailTypes(e)}},{key:"countEmailTypes",value:function(e){if($e()(e.items)){var t,a,n=be()(t=d()(a=e.items).call(a,(function(e){return e.options.event}))).call(t,(function(e,t){return e[t]?e[t]+=1:e[t]=1,e}),{woocommerce_product_purchased:0,woocommerce_product_purchased_in_category:0,woocommerce_first_purchase:0});this.setState({eventCounts:n})}}},{key:"renderWarning",value:function(){var e=this.state.eventCounts;return e.woocommerce_product_purchased+e.woocommerce_product_purchased_in_category+e.woocommerce_first_purchase?"1"===window.mailpoet_woocommerce_optin_on_checkout?null:h.a.createElement("div",{className:"mailpoet_base_notice mailpoet_error_notice"},h.a.createElement("p",null,b.a.I18n.t("wooCommerceEmailsWarning")),h.a.createElement("p",null,h.a.createElement("a",{href:"?page=mailpoet-settings#woocommerce"},b.a.I18n.t("wooCommerceEmailsWarningLink")))):null}},{key:"render",value:function(){var e=this,t=this.props,a=t.match,n=t.location;return h.a.createElement("div",null,h.a.createElement(lt,null),h.a.createElement(ht,{hasNews:window.mailpoet_feature_announcement_has_news}),h.a.createElement(jt,null),h.a.createElement(ot,{tab:"woocommerce"}),this.renderWarning(),0===this.state.newslettersCount&&h.a.createElement(Lt,{filter:function(e){return"woocommerce"===e.slug},showHeader:!1}),0!==this.state.newslettersCount&&h.a.createElement(He.a,{limit:window.mailpoet_listing_per_page,location:n,params:a.params,endpoint:"newsletters",type:"automatic",base_url:"woocommerce",onRenderItem:this.renderItem,columns:zt,bulk_actions:$t,item_actions:Wt,messages:Ut,auto_refresh:!0,sort_by:"updated_at",sort_order:"desc",afterGetItems:function(t){if(!t.loading){var a,n=be()(a=t.groups).call(a,(function(e,t){return e+t.count}),0);e.setState({newslettersCount:n})}e.afterGetItems(t)}}))}}]),t}(h.a.Component);Ht.propTypes={match:q.a.shape({params:q.a.shape({tab:q.a.string}).isRequired}).isRequired,location:q.a.object.isRequired};var Kt=Ht,Gt=g.a.once((function(){return b.a.trackEvent("User has typed a GA campaign name",{"MailPoet Premium version":window.mailpoet_premium_version})})),Yt=dt()(b.a.I18n.t("gaCampaignTip"),/\[link\](.*?)\[\/link\]/g,(function(e,t){return h.a.createElement("a",{key:t,href:"https://kb.mailpoet.com/article/187-track-your-newsletters-subscribers-in-google-analytics","data-beacon-article":"58b597d12c7d3a576d359144",target:"_blank",rel:"noopener noreferrer"},e)})),Jt={name:"ga_campaign",label:b.a.I18n.t("gaCampaignLine"),tip:Yt,type:"text",onBeforeChange:Gt},Qt=window.mailpoet_woocommerce_automatic_emails||[];if(document.getElementById("newsletters_container")&&!g.a.isEmpty(Qt)){_.a.addFilter("mailpoet_newsletters_types","mailpoet",(function(e,t){var a,n=g.a.reject(e,(function(e){return g.a.has(Qt,e.slug)})),r=d()(g.a).call(g.a,Qt,(function(e){var a=e,n=g.a.partial(t.setupNewsletter,e.slug);return a.action=h.a.createElement("div",null,h.a.createElement("span",{className:"button button-primary",onClick:n,onKeyDown:function(e){var t,a;u()(t=["keydown","keypress"]).call(t,e.type)&&u()(a=["Enter"," "]).call(a,e.key)&&(e.preventDefault(),n())},role:"button","data-automation-id":"create_woocommerce",tabIndex:0},e.actionButtonTitle||b.a.I18n.t("setUp"))),a}));return s()(a=[]).call(a,l()(n),l()(r))})),_.a.addFilter("mailpoet_newsletters_before_router","mailpoet",(function(e){var t,a=g.a.reject(e,(function(e){return g.a.has(Qt,e.name)})),n=[],i=[],o=[];return g.a.each(Qt,(function(e){var t=e.events;g.a.isObject(t)&&g.a.each(t,(function(t){var a;i.push({path:s()(a="/new/".concat(e.slug,"/")).call(a,t.slug,"/conditions"),name:t.slug,render:function(a){var n=r()({},a,{email:e,name:t.slug});return h.a.createElement(Me,n)}})})),n.push({path:"/new/".concat(e.slug),name:e.slug,render:function(t){var a=r()({},t,{email:e});return h.a.createElement(z,a)}}),o.push({path:"/".concat(e.slug,"/(.*)?"),params:{tab:e.slug},component:Kt})})),s()(t=[]).call(t,i,n,o,l()(a))}))}_.a.addFilter("mailpoet_newsletters_listings_tabs","mailpoet",(function(e){var t,a=[];return g.a.each(Qt,(function(e){a.push({name:e.slug,label:e.title,link:"/".concat(e.slug),display:window.mailpoet_woocommerce_active})})),s()(t=[]).call(t,l()(e),a)}));var Zt=function(e,t,a){return"automatic"===t?h.a.createElement(M,{step:a}):e};_.a.addFilter("mailpoet_newsletters_template_breadcrumb","mailpoet",Zt),_.a.addFilter("mailpoet_newsletters_editor_breadcrumb","mailpoet",Zt),_.a.addFilter("mailpoet_newsletters_send_breadcrumb","mailpoet",Zt);_.a.addFilter("mailpoet_newsletters_editor_extend_config","mailpoet",(function(e,t){if("automatic"!==t.type)return e;var a=e;return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"automatic_emails",action:"get_event_shortcodes",data:{email_slug:t.options.group,event_slug:t.options.event}}).then((function(e){return g.a.isObject(e)&&e.data?(a.shortcodes=r()({},a.shortcodes,e.data),a):a})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0,static:!0})}))}));_.a.addFilter("mailpoet_newsletters_send_newsletter_fields","mailpoet",(function(e,t){if("automatic"!==t.type)return e;var a=Qt[t.options.group];if(!a)return e;var n=t.options,r=[{name:"subject",label:b.a.I18n.t("subjectLine"),tip:b.a.I18n.t("subjectLineTip"),type:"text",validation:{"data-parsley-required":!0,"data-parsley-required-message":b.a.I18n.t("emptySubjectLineError")}},{name:"options",label:b.a.I18n.t("sendAutomaticEmailWhenHeading").replace("%1s",a.title),type:"reactComponent",component:Ue,email:a,emailOptions:n},{name:"sender",label:b.a.I18n.t("sender"),tip:b.a.I18n.t("senderTip"),fields:[{name:"sender_name",type:"text",placeholder:b.a.I18n.t("senderNamePlaceholder"),validation:{"data-parsley-required":!0}},{name:"sender_address",type:"text",placeholder:b.a.I18n.t("senderAddressPlaceholder"),validation:{"data-parsley-required":!0,"data-parsley-type":"email"}}]},{name:"reply-to",label:b.a.I18n.t("replyTo"),tip:b.a.I18n.t("replyToTip"),inline:!0,fields:[{name:"reply_to_name",type:"text",placeholder:b.a.I18n.t("replyToNamePlaceholder")},{name:"reply_to_address",type:"text",placeholder:b.a.I18n.t("replyToAddressPlaceholder"),validation:{"data-parsley-type":"email"}}]},Jt];return{getFields:function(){return r},getSendButtonOptions:function(){return{value:b.a.I18n.t("activate")}}}}));_.a.addFilter("mailpoet_newsletters_send_server_request_parameters","mailpoet",(function(e,t){return"automatic"===t.type?{api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"setStatus",data:{id:t.id,status:"active"}}:e}));_.a.addFilter("mailpoet_newsletters_send_server_request_response_redirect","mailpoet",(function(e,t){return"automatic"===t.type?"/".concat(t.options.group):e}));_.a.addFilter("mailpoet_newsletters_send_server_request_response","mailpoet",(function(e){if("automatic"!==e.type)return null;var t=Qt[e.options.group];return t?function(){b.a.Notice.success(b.a.I18n.t("automaticEmailActivated").replace("%1s",t.title))}:null}));var Xt=a(33),ea=a.n(Xt),ta=[{name:"email",label:b.a.I18n.t("subscriber"),sortable:!0},{name:"status",label:b.a.I18n.t("status"),sortable:!0},{name:"segments",label:b.a.I18n.t("lists")},{name:"created_at",label:b.a.I18n.t("subscribedOn"),sortable:!0},{name:"updated_at",label:b.a.I18n.t("lastModifiedOn"),sortable:!0}],aa={onTrash:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneSubscriberTrashed"):b.a.I18n.t("multipleSubscribersTrashed").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onDelete:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneSubscriberDeleted"):b.a.I18n.t("multipleSubscribersDeleted").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onRestore:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneSubscriberRestored"):b.a.I18n.t("multipleSubscribersRestored").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onNoItemsFound:function(e){return"bounced"===e&&!window.mailpoet_premium_active&&!window.mss_active&&h.a.createElement("div",null,h.a.createElement("p",null,b.a.I18n.t("bouncedSubscribersHelp")),h.a.createElement("p",null,h.a.createElement("a",{href:"admin.php?page=mailpoet-premium",className:"button-primary"},b.a.I18n.t("bouncedSubscribersPremiumButtonText"))))}},na=[{name:"moveToList",label:b.a.I18n.t("moveToList"),onSelect:function(){return h.a.createElement(ce,{field:{id:"move_to_segment",name:"move_to_segment",endpoint:"segments",filter:function(e){return!(e.deleted_at||"default"!==e.type)}}})},getData:function(){return{segment_id:Number(ie()("#move_to_segment").val())}},onSuccess:function(e){b.a.Notice.success(b.a.I18n.t("multipleSubscribersMovedToList").replace("%$1d",Number(e.meta.count).toLocaleString()).replace("%$2s",e.meta.segment))}},{name:"addToList",label:b.a.I18n.t("addToList"),onSelect:function(){return h.a.createElement(ce,{field:{id:"add_to_segment",name:"add_to_segment",endpoint:"segments",filter:function(e){return!(e.deleted_at||"default"!==e.type)}}})},getData:function(){return{segment_id:Number(ie()("#add_to_segment").val())}},onSuccess:function(e){b.a.Notice.success(b.a.I18n.t("multipleSubscribersAddedToList").replace("%$1d",Number(e.meta.count).toLocaleString()).replace("%$2s",e.meta.segment))}},{name:"removeFromList",label:b.a.I18n.t("removeFromList"),onSelect:function(){return h.a.createElement(ce,{field:{id:"remove_from_segment",name:"remove_from_segment",endpoint:"segments",filter:function(e){return!("default"!==e.type)}}})},getData:function(){return{segment_id:Number(ie()("#remove_from_segment").val())}},onSuccess:function(e){b.a.Notice.success(b.a.I18n.t("multipleSubscribersRemovedFromList").replace("%$1d",Number(e.meta.count).toLocaleString()).replace("%$2s",e.meta.segment))}},{name:"removeFromAllLists",label:b.a.I18n.t("removeFromAllLists"),onSuccess:function(e){b.a.Notice.success(b.a.I18n.t("multipleSubscribersRemovedFromAllLists").replace("%$1d",Number(e.meta.count).toLocaleString()))}},{name:"trash",label:b.a.I18n.t("moveToTrash"),onSuccess:aa.onTrash}],ra=[{name:"edit",label:b.a.I18n.t("edit"),link:function(e){return h.a.createElement(Ke.b,{to:"/edit/".concat(e.id)},b.a.I18n.t("edit"))}},{name:"sendConfirmationEmail",label:b.a.I18n.t("resendConfirmationEmail"),display:function(e){return"unconfirmed"===e.status&&e.count_confirmations<window.mailpoet_max_confirmation_emails},onClick:function(e){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"subscribers",action:"sendConfirmationEmail",data:{id:e.id}}).done((function(){return b.a.Notice.success(b.a.I18n.t("oneConfirmationEmailSent"))})).fail((function(e){return b.a.Notice.showApiErrorNotice(e)}))}},{name:"trash",display:function(e){return 0===Number(e.wp_user_id)&&0===Number(e.is_woocommerce_user)}}],ia=function(e){function t(){var e,a,n;k()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=C()(this,(e=x()(t)).call.apply(e,s()(a=[this]).call(a,i))),ne()(A()(n),"getSegmentFromId",(function(e){var t,a=!1;return ea()(t=window.mailpoet_segments).call(t,(function(t){t.id===e&&(a=t)})),a})),ne()(A()(n),"renderItem",(function(e,t){var a=Ye()("manage-column","column-primary","has-row-actions","column-username"),r="";switch(e.status){case"subscribed":r=b.a.I18n.t("subscribed");break;case"unconfirmed":r=b.a.I18n.t("unconfirmed");break;case"unsubscribed":r=b.a.I18n.t("unsubscribed");break;case"inactive":r=b.a.I18n.t("inactive");break;case"bounced":r=b.a.I18n.t("bounced");break;default:r="Invalid"}var i=!1;if(e.subscriptions.length>0){var s,o=[];ea()(s=e.subscriptions).call(s,(function(e){var t=n.getSegmentFromId(e.segment_id);!1!==t&&"subscribed"===e.status&&o.push(t.name)})),i=h.a.createElement("span",null,o.join(", "))}return h.a.createElement("div",null,h.a.createElement("td",{className:a},h.a.createElement("strong",null,h.a.createElement(Ke.b,{className:"row-title",to:"/edit/".concat(e.id)},e.email)),h.a.createElement("p",{style:{margin:0}},e.first_name," ",e.last_name),t),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("status")},r),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("lists")},i),h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("subscribedOn")},h.a.createElement("abbr",null,b.a.Date.format(e.created_at))),h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("lastModifiedOn")},h.a.createElement("abbr",null,b.a.Date.format(e.updated_at))))})),n}return O()(t,e),S()(t,[{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("h1",{className:"title"},b.a.I18n.t("pageTitle")," ",h.a.createElement(Ke.b,{className:"page-title-action",to:"/new"},b.a.I18n.t("new")),h.a.createElement("a",{className:"page-title-action",href:"?page=mailpoet-import","data-automation-id":"import-subscribers-button"},b.a.I18n.t("import")),h.a.createElement("a",{id:"mailpoet_export_button",className:"page-title-action",href:"?page=mailpoet-export"},b.a.I18n.t("export"))),h.a.createElement(jt,null),h.a.createElement(He.a,{limit:window.mailpoet_listing_per_page,location:this.props.location,params:this.props.match.params,endpoint:"subscribers",onRenderItem:this.renderItem,columns:ta,bulk_actions:na,item_actions:ra,messages:aa,sort_by:"created_at",sort_order:"desc"}))}}]),t}(h.a.Component);ia.propTypes={location:q.a.object.isRequired,match:q.a.shape({params:q.a.object}).isRequired};var sa=ia,oa=a(124),la=a.n(oa),ca=function(e){return h.a.createElement("textarea",Q()({type:"text",className:"regular-text",name:e.field.name,id:"field_".concat(e.field.name),value:e.item[e.field.name],placeholder:e.field.placeholder,defaultValue:e.field.defaultValue,onChange:e.onValueChange},e.field.validation))};ca.propTypes={item:q.a.object.isRequired,field:q.a.shape({name:q.a.string,placeholder:q.a.string,defaultValue:q.a.string,validation:q.a.object}).isRequired,onValueChange:q.a.func.isRequired};var ua=ca,pa=a(38),da=a.n(pa),ma=function(e){function t(){return k()(this,t),C()(this,x()(t).apply(this,arguments))}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t=this;if(void 0===Y()(this.props.field))return!1;var a,n=!1,r=!1,i=!1;void 0!==this.props.field.placeholder&&(r=h.a.createElement("option",{value:""},this.props.field.placeholder)),void 0!==K()(this.props.field)&&(n=K()(this.props.field)),g.a.isFunction(this.props.field.sortBy)&&(i=this.props.field.sortBy),a=i?d()(g.a).call(g.a,g.a.sortBy(g.a.pairs(Y()(this.props.field)),(function(e){return i(e[0],e[1])})),(function(e){return e[0]})):da()(Y()(this.props.field));var s=d()(e=K()(a).call(a,(function(e){return!1===n||n(t.props.item,e)}))).call(e,(function(e){return h.a.createElement("option",{key:"option-".concat(e),value:e},Y()(t.props.field)[e])}));return h.a.createElement("select",Q()({name:this.props.field.name,id:"field_".concat(this.props.field.name),value:this.props.item[this.props.field.name]||"",onChange:this.props.onValueChange,"data-automation-id":this.props.automationId},this.props.field.validation),r,s)}}]),t}(h.a.Component);ma.propTypes={onValueChange:q.a.func,field:q.a.shape({name:q.a.string.isRequired,values:q.a.object,placeholder:q.a.string,filter:q.a.func,sortBy:q.a.func,validation:q.a.object}).isRequired,item:q.a.object.isRequired,automationId:q.a.string},ma.defaultProps={automationId:"",onValueChange:function(){}};var ha=ma,fa=function(e){function t(){return k()(this,t),C()(this,x()(t).apply(this,arguments))}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t=this;if(void 0===Y()(this.props.field))return!1;var a=this.props.item[this.props.field.name],n=d()(e=da()(Y()(this.props.field))).call(e,(function(e){return h.a.createElement("p",{key:"radio-".concat(e)},h.a.createElement("label",{htmlFor:t.props.field.name},h.a.createElement("input",{type:"radio",checked:a===e,value:e,onChange:t.props.onValueChange,name:t.props.field.name,id:t.props.field.name}),Y()(t.props.field)[e]))}));return h.a.createElement("div",null,n)}}]),t}(h.a.Component);fa.propTypes={onValueChange:q.a.func,field:q.a.shape({name:q.a.string.isRequired,values:q.a.object}).isRequired,item:q.a.object.isRequired},fa.defaultProps={onValueChange:function(){}};var ga=fa,va=function(e){function t(e){var a,n;return k()(this,t),n=C()(this,x()(t).call(this,e)),ne()(A()(n),"onValueChange",(function(e){return e.target.value=n.checkboxRef.current.checked?"1":"0",n.props.onValueChange(e)})),n.checkboxRef=h.a.createRef(),n.onValueChange=w()(a=n.onValueChange).call(a,A()(n)),n}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t=this;if(void 0===Y()(this.props.field))return!1;var a=!!Number(this.props.item[this.props.field.name]),n=d()(e=da()(Y()(this.props.field))).call(e,(function(e){return h.a.createElement("p",{key:"checkbox-".concat(e)},h.a.createElement("label",{htmlFor:t.props.field.name},h.a.createElement("input",{ref:t.checkboxRef,type:"checkbox",value:"1",checked:a,onChange:t.onValueChange,name:t.props.field.name,id:t.props.field.name}),Y()(t.props.field)[e]))}));return h.a.createElement("div",null,n)}}]),t}(h.a.Component);va.propTypes={onValueChange:q.a.func.isRequired,field:q.a.shape({name:q.a.string.isRequired,values:q.a.object.isRequired}).isRequired,item:q.a.object.isRequired};var _a=va,ba=a(49),ya=a.n(ba);function wa(e){var t=[];void 0!==e.placeholder&&t.push(h.a.createElement("option",{value:"",key:0},e.placeholder));for(var a=yt()().year(),n=a;n>=a-100;n-=1)t.push(h.a.createElement("option",{key:n,value:n},n));return h.a.createElement("select",{name:"".concat(e.name,"[year]"),value:e.year,onChange:e.onValueChange},t)}function Ea(e){var t=[];void 0!==e.placeholder&&t.push(h.a.createElement("option",{value:"",key:0},e.placeholder));for(var a=1;a<=12;a+=1)t.push(h.a.createElement("option",{key:a,value:a},e.monthNames[a-1]));return h.a.createElement("select",{name:"".concat(e.name,"[month]"),value:e.month,onChange:e.onValueChange},t)}function ka(e){var t=[];void 0!==e.placeholder&&t.push(h.a.createElement("option",{value:"",key:0},e.placeholder));for(var a=1;a<=31;a+=1)t.push(h.a.createElement("option",{key:a,value:a},a));return h.a.createElement("select",{name:"".concat(e.name,"[day]"),value:e.day,onChange:e.onValueChange},t)}wa.propTypes={name:q.a.string.isRequired,placeholder:q.a.string.isRequired,onValueChange:q.a.func.isRequired,year:q.a.oneOfType([q.a.string,q.a.number]).isRequired},Ea.propTypes={name:q.a.string.isRequired,placeholder:q.a.string.isRequired,onValueChange:q.a.func.isRequired,month:q.a.oneOfType([q.a.string,q.a.number]).isRequired,monthNames:q.a.arrayOf(q.a.string).isRequired},ka.propTypes={name:q.a.string.isRequired,placeholder:q.a.string.isRequired,onValueChange:q.a.func.isRequired,day:q.a.oneOfType([q.a.string,q.a.number]).isRequired};var Ia=function(e){function t(e){var a,n;return k()(this,t),(n=C()(this,x()(t).call(this,e))).state={year:"",month:"",day:""},n.onValueChange=w()(a=n.onValueChange).call(a,A()(n)),n}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){this.extractDateParts()}},{key:"componentDidUpdate",value:function(e){void 0!==this.props.item&&void 0!==e.item&&this.props.item.id!==e.item.id&&this.extractDateParts()}},{key:"onValueChange",value:function(e){var t=this,a=e.target.name.match(/(.*?)\[(.*?)\]/),n=null,r=null;if(null!==a&&3===a.length){var i=fe()(a,3);n=i[1],r=i[2];var s=Number(e.target.value);this.setState(ne()({},"".concat(r),s),(function(){t.props.onValueChange({target:{name:n,value:t.formatValue()}})}))}}},{key:"formatValue",value:function(){var e;switch(this.props.field.params.date_type){case"year_month_day":e={year:this.state.year,month:this.state.month,day:this.state.day};break;case"year_month":e={year:this.state.year,month:this.state.month};break;case"month":e={month:this.state.month};break;case"year":e={year:this.state.year};break;default:e={value:"invalid type"}}return e}},{key:"extractDateParts",value:function(){var e,t=void 0!==this.props.item[this.props.field.name]?ya()(e=this.props.item[this.props.field.name]).call(e):"";if(""!==t){var a=yt()(t);this.setState({year:a.format("YYYY"),month:a.format("M"),day:a.format("D")})}}},{key:"render",value:function(){var e=this,t=window.mailpoet_month_names||[],a=(window.mailpoet_date_formats||{})[this.props.field.params.date_type][0];this.props.field.params.date_format&&(a=this.props.field.params.date_format);var n=a.split("/"),r=d()(n).call(n,(function(a){switch(a){case"YYYY":return h.a.createElement(wa,{onValueChange:e.onValueChange,key:"year",name:e.props.field.name,year:e.state.year,placeholder:e.props.field.year_placeholder});case"MM":return h.a.createElement(Ea,{onValueChange:e.onValueChange,key:"month",name:e.props.field.name,month:e.state.month,monthNames:t,placeholder:e.props.field.month_placeholder});case"DD":return h.a.createElement(ka,{onValueChange:e.onValueChange,key:"day",name:e.props.field.name,day:e.state.day,placeholder:e.props.field.day_placeholder});default:return h.a.createElement("div",null,"Invalid date type")}}));return h.a.createElement("div",null,r)}}]),t}(h.a.Component);Ia.propTypes={item:q.a.object.isRequired,field:q.a.shape({name:q.a.string,day_placeholder:q.a.string,month_placeholder:q.a.string,year_placeholder:q.a.string,params:q.a.object}).isRequired,onValueChange:q.a.func.isRequired};var Sa=Ia,Na=function(e){function t(){var e,a,n;k()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=C()(this,(e=x()(t)).call.apply(e,s()(a=[this]).call(a,i))),ne()(A()(n),"renderField",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!1;e.field.description&&(a=h.a.createElement("p",{className:"description"},e.field.description));var n=!1,r=e.field;switch(void 0!==e.field.field&&(r=ie.a.merge(r,e.field.field)),r.type){case"text":n=h.a.createElement(we,{onValueChange:e.onValueChange,field:e.field,item:e.item,automationId:e.automationId,inline:e.inline,description:e.description});break;case"textarea":n=h.a.createElement(ua,{onValueChange:e.onValueChange,field:e.field,item:e.item,automationId:e.automationId,inline:e.inline,description:e.description});break;case"select":n=h.a.createElement(ha,{onValueChange:e.onValueChange,field:e.field,item:e.item,automationId:e.automationId,inline:e.inline,description:e.description});break;case"radio":n=h.a.createElement(ga,{onValueChange:e.onValueChange,field:e.field,item:e.item,automationId:e.automationId,inline:e.inline,description:e.description});break;case"checkbox":n=h.a.createElement(_a,{onValueChange:e.onValueChange,field:e.field,item:e.item,automationId:e.automationId,inline:e.inline,description:e.description});break;case"selection":n=h.a.createElement(ce,{onValueChange:e.onValueChange,field:e.field,automationId:e.automationId,inline:e.inline,description:e.description,item:e.item});break;case"date":n=h.a.createElement(Sa,{onValueChange:e.onValueChange,field:e.field,item:e.item,automationId:e.automationId,inline:e.inline,description:e.description});break;case"reactComponent":n=h.a.createElement(e.field.component,{onValueChange:e.onValueChange,field:e.field,item:e.item,automationId:e.automationId,inline:e.inline,description:e.description});break;default:n="invalid"}return!0===t?h.a.createElement("span",{key:"field-".concat(e.index||0)},n,a):h.a.createElement("div",{key:"field-".concat(e.index||0)},n,a)})),n}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t=this,a=!1;void 0!==this.props.field.fields?a=d()(e=this.props.field.fields).call(e,(function(e,a){return t.renderField({index:a,field:e,item:t.props.item,onValueChange:t.props.onValueChange||!1})})):a=this.renderField(this.props);var n=!1;return this.props.field.tip&&(n=h.a.createElement("p",{className:"description"},this.props.field.tip)),h.a.createElement("tr",{className:"form-field-row-".concat(this.props.field.name)},h.a.createElement("th",{scope:"row"},h.a.createElement("label",{htmlFor:"field_".concat(this.props.field.name)},this.props.field.label,n)),h.a.createElement("td",null,a))}}]),t}(h.a.Component);Na.propTypes={onValueChange:q.a.func,field:q.a.shape({name:q.a.string.isRequired,values:q.a.object,tip:q.a.oneOfType([q.a.array,q.a.string]),label:q.a.string,fields:q.a.array,description:q.a.string}).isRequired,item:q.a.object.isRequired},Na.defaultProps={onValueChange:function(){}};var Ca=Na,Ta=function(e){function t(e){var a;return k()(this,t),a=C()(this,x()(t).call(this,e)),ne()(A()(a),"getValues",(function(){return a.props.item||a.state.item})),ne()(A()(a),"getErrors",(function(){return a.props.errors||a.state.errors})),ne()(A()(a),"loadItem",(function(e){a.setState({loading:!0}),a.props.endpoint&&b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:a.props.endpoint,action:"get",data:{id:e}}).done((function(e){a.setState({loading:!1,item:e.data}),"function"==typeof a.props.onItemLoad&&a.props.onItemLoad(e.data)})).fail((function(){a.setState({loading:!1,item:{}},(function(){this.props.history.push("/new")}))}))})),ne()(A()(a),"handleSubmit",(function(e){var t;if(e.preventDefault(),void 0===a.props.isValid||!1!==a.props.isValid()){a.setState({loading:!0});var n={};ea()(t=a.props.fields).call(t,(function(e){var t;void 0!==e.fields?ea()(t=e.fields).call(t,(function(e){n[e.name]=a.state.item[e.name]})):n[e.name]=a.state.item[e.name]})),void 0!==a.props.params.id&&(n.id=a.props.params.id),a.props.endpoint&&b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:a.props.endpoint,action:"save",data:n}).always((function(){a.setState({loading:!1})})).done((function(){void 0!==a.props.onSuccess?a.props.onSuccess():a.props.history.push("/"),void 0!==a.props.params.id?a.props.messages.onUpdate():a.props.messages.onCreate()})).fail((function(e){e.errors.length>0&&a.setState({errors:e.errors})}))}})),ne()(A()(a),"handleValueChange",(function(e){var t=e.target,n=t.name,r=t.value;return a.props.onChange?a.props.onChange(e):(a.setState((function(e){var t=e.item;return t[n]=r,{item:t}})),!0)})),a.formRef=h.a.createRef(),a.state={loading:!1,errors:[],item:{}},a}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){var e=this;void 0!==this.props.params.id?this.loadItem(this.props.params.id):la()((function(){e.setState({item:ie()(".mailpoet_form").mailpoetSerializeObject()})}))}},{key:"componentDidUpdate",value:function(){var e=this;void 0===this.props.params.id&&this.state.loading&&(la()((function(){e.setState({loading:!1,item:{}})})),void 0===this.props.item&&this.formRef.current.reset())}},{key:"render",value:function(){var e,t,a,n=this;void 0!==this.getErrors()&&(t=d()(a=this.getErrors()).call(a,(function(e){return h.a.createElement("div",{className:"mailpoet_notice notice inline error is-dismissible",key:"error-".concat(e.message)},h.a.createElement("p",null,e.message))})));var r=Ye()("mailpoet_form",{mailpoet_form_loading:this.state.loading||this.props.loading}),i=!1,s=!1;void 0!==this.props.beforeFormContent&&(i=this.props.beforeFormContent(this.getValues())),void 0!==this.props.afterFormContent&&(s=this.props.afterFormContent(this.getValues()));var o=d()(e=this.props.fields).call(e,(function(e){var t=n.handleValueChange;return e.onBeforeChange&&(t=function(t){return e.onBeforeChange(t),n.handleValueChange(t)}),h.a.createElement(Ca,{field:e,item:n.getValues(),onValueChange:t,key:"field-".concat(e.name),automationId:e.automationId})})),l=!1;return l=this.props.children?this.props.children:h.a.createElement("input",{className:"button button-primary",type:"submit",value:b.a.I18n.t("save"),disabled:this.state.loading}),h.a.createElement("div",null,i,h.a.createElement("form",{id:this.props.id,ref:this.formRef,className:r,onSubmit:void 0!==this.props.onSubmit?this.props.onSubmit:this.handleSubmit,"data-automation-id":this.props.automationId},t,h.a.createElement("table",{className:"form-table"},h.a.createElement("tbody",null,o)),l),s)}}]),t}(h.a.Component);Ta.propTypes={params:q.a.shape({id:q.a.string}),item:q.a.object,errors:q.a.arrayOf(q.a.object),endpoint:q.a.string,fields:q.a.arrayOf(q.a.object),messages:q.a.shape({onUpdate:q.a.func,onCreate:q.a.func}),loading:q.a.bool,children:q.a.array,id:q.a.string,automationId:q.a.string,beforeFormContent:q.a.func,afterFormContent:q.a.func,onItemLoad:q.a.func,isValid:q.a.func,onChange:q.a.func,onSubmit:q.a.func,onSuccess:q.a.func,history:q.a.shape({push:q.a.func.isRequired}).isRequired},Ta.defaultProps={params:{},errors:void 0,fields:void 0,item:void 0,onItemLoad:void 0,isValid:void 0,onSuccess:void 0,onChange:void 0,loading:!1,beforeFormContent:void 0,afterFormContent:void 0,children:void 0,id:"",onSubmit:void 0,automationId:"",messages:{onUpdate:function(){},onCreate:function(){}},endpoint:void 0};var xa=Object(B.withRouter)(Ta),Ra=[{name:"email",label:b.a.I18n.t("email"),type:"text",disabled:function(e){return Number(e.wp_user_id>0)||1===Number(e.is_woocommerce_user)}},{name:"first_name",label:b.a.I18n.t("firstname"),type:"text",disabled:function(e){return Number(e.wp_user_id>0)||1===Number(e.is_woocommerce_user)}},{name:"last_name",label:b.a.I18n.t("lastname"),type:"text",disabled:function(e){return Number(e.wp_user_id>0)||1===Number(e.is_woocommerce_user)}},{name:"status",label:b.a.I18n.t("status"),type:"select",automationId:"subscriber-status",values:{subscribed:b.a.I18n.t("subscribed"),unconfirmed:b.a.I18n.t("unconfirmed"),unsubscribed:b.a.I18n.t("unsubscribed"),inactive:b.a.I18n.t("inactive"),bounced:b.a.I18n.t("bounced")}},{name:"segments",label:b.a.I18n.t("lists"),type:"selection",placeholder:b.a.I18n.t("selectList"),tip:b.a.I18n.t("welcomeEmailTip"),api_version:window.mailpoet_api_version,endpoint:"segments",multiple:!0,selected:function(e){var t,a;return!1===$e()(e.subscriptions)?null:d()(t=K()(a=e.subscriptions).call(a,(function(e){return"subscribed"===e.status}))).call(t,(function(e){return e.segment_id}))},filter:function(e){return!e.deleted_at&&"default"===e.type},getLabel:function(e){var t;return s()(t="".concat(e.name," (")).call(t,e.subscribers,")")},getSearchLabel:function(e,t){var a,n="";void 0!==t.subscriptions&&ea()(a=t.subscriptions).call(a,(function(t){if(e.id===t.segment_id&&(n=e.name,"unsubscribed"===t.status)){var a=b.a.Date.format(t.updated_at);n+=" (%$1s)".replace("%$1s",b.a.I18n.t("unsubscribedOn").replace("%$1s",a))}}));return n}}],Aa=window.mailpoet_custom_fields||[];ea()(Aa).call(Aa,(function(e){var t={name:"cf_".concat(e.id),label:e.name,type:e.type};switch(e.params&&(t.params=e.params),Y()(e.params)&&(t.values=Y()(e.params)),e.type){case"date":t.year_placeholder=b.a.I18n.t("year"),t.month_placeholder=b.a.I18n.t("month"),t.day_placeholder=b.a.I18n.t("day");break;case"select":t.placeholder="-";break;default:t.placeholder=""}Ra.push(t)}));var Pa={onUpdate:function(){b.a.Notice.success(b.a.I18n.t("subscriberUpdated"))},onCreate:function(){b.a.Notice.success(b.a.I18n.t("subscriberAdded")),b.a.trackEvent("Subscribers > Add new",{"MailPoet Free version":window.mailpoet_version})}};function Oa(e){if(Number(e.wp_user_id)>0)return h.a.createElement("p",{className:"description"},dt()(b.a.I18n.t("WPUserEditNotice"),/\[link\](.*?)\[\/link\]/g,(function(t,a){return h.a.createElement("a",{key:a,href:"user-edit.php?user_id=".concat(e.wp_user_id)},t)})))}function La(){return h.a.createElement("p",{className:"description"},h.a.createElement("strong",null,b.a.I18n.t("tip"))," ",b.a.I18n.t("customFieldsTip"))}var Da=function(e){function t(){return k()(this,t),C()(this,x()(t).apply(this,arguments))}return O()(t,e),S()(t,[{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("h1",{className:"title"},b.a.I18n.t("subscriber"),h.a.createElement(Ke.b,{className:"page-title-action",to:"/"},b.a.I18n.t("backToList"))),h.a.createElement(jt,null),h.a.createElement(xa,{automationId:"subscriber_edit_form",endpoint:"subscribers",fields:Ra,params:this.props.match.params,messages:Pa,beforeFormContent:Oa,afterFormContent:La}))}}]),t}(h.a.Component);Da.propTypes={match:q.a.shape({params:q.a.shape({id:q.a.string}).isRequired}).isRequired};var qa=Da;var Fa=function(){var e=h.a.useState([]),t=fe()(e,2),a=t[0],n=t[1],i=h.a.useState(1),o=fe()(i,2),c=o[0],u=o[1],p=function(e){n((function(t){var a;return s()(a=[]).call(a,l()(t),[r()({},e,{id:e.id||(u((function(e){return e+1})),c)})])}))};return{items:a,success:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(r()({},t,{type:"success",children:e}))},info:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(r()({},t,{type:"info",children:e}))},warning:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(r()({},t,{type:"warning",children:e}))},error:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(r()({},t,{type:"error",children:e}))},remove:function(e){n((function(t){return K()(t).call(t,(function(t){return t.id!==e}))}))}}};function Ma(e){return{features:function(e){var t=e.mailpoet_feature_flags;return{isSupported:function(e){return t[e]||!1}}}(e),segments:function(e){return{all:e.mailpoetSegments}}(e),users:function(e){return{isNewUser:e.mailpoet_is_new_user}}(e),notices:Fa()}}var ja=h.a.createContext({}),Va=a(491),Ba=a.n(Va),Ua=function(){var e,t=h.a.useContext(ja).notices;return d()(e=t.items).call(e,(function(e){var t=e.id,a=Ba()(e,["id"]);return h.a.createElement(Mt,Q()({key:t},a))}))},za=document.getElementById("subscribers_container");za&&oe.a.render(h.a.createElement((function(){return h.a.createElement(ja.Provider,{value:Ma(window)},h.a.createElement(Ke.a,null,h.a.createElement(Ua,null),h.a.createElement(B.Switch,null,h.a.createElement(B.Route,{path:"/new",component:qa}),h.a.createElement(B.Route,{path:"/edit/:id",component:qa}),h.a.createElement(B.Route,{path:"*",component:sa}))))}),null),za);var $a=a(492),Wa=a.n($a),Ha=a(28),Ka=a.n(Ha),Ga=function(e){function t(){return k()(this,t),C()(this,x()(t).apply(this,arguments))}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){b.a.Modal.loading(!0)}},{key:"componentWillUnmount",value:function(){b.a.Modal.loading(!1)}},{key:"render",value:function(){return null}}]),t}(h.a.Component),Ya=function(e){var t=e.tabs,a=e.selected,n=e.select;return h.a.createElement("div",{className:"wp-filter hide-if-no-js"},h.a.createElement("ul",{className:"filter-links"},d()(t).call(t,(function(e){var t=e.name,r=e.label;return h.a.createElement("li",{key:t},h.a.createElement("a",{href:"#",className:a===t?"current":"",onClick:function(e){e.preventDefault(),n(t)}}," ",r))}))))};Ya.propTypes={selected:q.a.string.isRequired,select:q.a.func.isRequired,tabs:q.a.arrayOf(q.a.shape({label:q.a.string.isRequired,name:q.a.string.isRequired}).isRequired).isRequired};var Ja=Ya,Qa=function(e){return b.a.Modal.popup({title:e.title,template:Qe.a.renderToString(h.a.createElement(h.a.Fragment,null,h.a.createElement("p",null,e.message),h.a.createElement("button",{id:"mailpoet_alert_cancel",className:"button button-secondary",type:"button"},e.cancelLabel),h.a.createElement("button",{id:"mailpoet_alert_confirm",className:"button button-primary",type:"submit"},e.confirmLabel))),onInit:function(){document.getElementById("mailpoet_alert_confirm").addEventListener("click",(function(){b.a.Modal.close(),e.onConfirm()})),document.getElementById("mailpoet_alert_cancel").addEventListener("click",(function(){return b.a.Modal.close()}))}}),null};function Za(e){Qe.a.renderToString(h.a.createElement(Qa,{title:e.title,message:e.message,cancelLabel:e.cancelLabel,confirmLabel:e.confirmLabel,onConfirm:e.onConfirm}))}Qa.propTypes={title:q.a.string,message:q.a.string.isRequired,cancelLabel:q.a.string,confirmLabel:q.a.string,onConfirm:q.a.func.isRequired},Qa.defaultProps={title:b.a.I18n.t("confirmTitle"),cancelLabel:b.a.I18n.t("cancelLabel"),confirmLabel:b.a.I18n.t("confirmLabel")};var Xa=function(e){function t(e){var a,n,r,i;return k()(this,t),(i=C()(this,x()(t).call(this,e))).onPreview=w()(a=i.onPreview).call(a,A()(i)),i.onDelete=w()(n=i.onDelete).call(n,A()(i)),i.onSelect=w()(r=i.onSelect).call(r,A()(i)),i}return O()(t,e),S()(t,[{key:"onDelete",value:function(){var e=this.props,t=e.id,a=e.name,n=e.beforeDelete,r=e.afterDelete;Za({message:b.a.I18n.t("confirmTemplateDeletion").replace("%$1s",a),onConfirm:function(){n(),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletterTemplates",action:"delete",data:{id:t}}).done((function(){r(!0,t)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0});r(!1)}))}})}},{key:"onPreview",value:function(){b.a.Modal.popup({title:this.props.name,template:'<img src="{{ thumbnail }}" />',data:this.props})}},{key:"onSelect",value:function(){var e=this.props,t=e.newsletterId,a=e.name,n=e.beforeSelect,r=e.afterSelect;n(),b.a.trackEvent("Emails > Template selected",{"MailPoet Free version":window.mailpoet_version,"Email name":a}),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"save",data:{id:t,template_id:this.props.id}}).done((function(e){r(!0,e.data.id)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0});r(!1)}))}},{key:"render",value:function(){var e=this,t=this.props,a=t.index,n=t.name,r=t.thumbnail,i=t.readonly,s=h.a.createElement("button",{className:"mailpoet_delete button button-secondary",onClick:this.onDelete,type:"button"},b.a.I18n.t("delete")),o="";return"string"==typeof r&&r.length>0&&(o=h.a.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.onPreview(t)}},h.a.createElement("img",{src:r,alt:b.a.I18n.t("templatePreview"),loading:"lazy"}),h.a.createElement("div",{className:"mailpoet_overlay"},h.a.createElement("p",{className:"mailpoet_more_details"},b.a.I18n.t("zoom"))))),h.a.createElement("li",{className:"mailpoet_template_boxes","data-automation-id":"select_template_box"},h.a.createElement("div",{className:"mailpoet_thumbnail"},o),h.a.createElement("div",{className:"mailpoet_template_content"},h.a.createElement("div",{className:"mailpoet_description"},h.a.createElement("h3",null,n)),h.a.createElement("div",{className:"mailpoet_actions"},"1"!==i&&s,h.a.createElement("a",{className:"button button-primary","data-automation-id":"select_template_".concat(a),onClick:this.onSelect,role:"button",tabIndex:0,onKeyDown:function(t){var a,n;u()(a=["keydown","keypress"]).call(a,t.type)&&u()(n=["Enter"," "]).call(n,t.key)&&(t.preventDefault(),e.onSelect())}}," ",b.a.I18n.t("select")," "))))}}]),t}(h.a.Component);Xa.propTypes={index:q.a.number.isRequired,id:q.a.string.isRequired,newsletterId:q.a.string.isRequired,name:q.a.string.isRequired,thumbnail:q.a.string.isRequired,readonly:q.a.string.isRequired,beforeDelete:q.a.func.isRequired,afterDelete:q.a.func.isRequired,beforeSelect:q.a.func.isRequired,afterSelect:q.a.func.isRequired};var en=Xa,tn=function(e){function t(e){var a,n;return k()(this,t),(n=C()(this,x()(t).call(this,e))).fileRef=h.a.createRef(),n.handleSubmit=w()(a=n.handleSubmit).call(a,A()(n)),n}return O()(t,e),S()(t,[{key:"saveTemplate",value:function(e){var t,a,n,r,i=e,s=this.props,o=s.beforeImport,l=s.afterImport;g.a.isUndefined(i.body)||(i.body=W()(i.body));try{i.categories=JSON.parse(i.categories)}catch(e){i.categories=[]}-1===Ka()(t=i.categories).call(t,"saved")&&i.categories.push("saved"),-1===Ka()(a=i.categories).call(a,"standard")&&-1===Ka()(n=i.categories).call(n,"welcome")&&-1===Ka()(r=i.categories).call(r,"notification")&&i.categories.push("standard"),i.categories=W()(i.categories),o(),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletterTemplates",action:"save",data:i}).done((function(e){l(!0,e.data)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0});l(!1)}))}},{key:"handleSubmit",value:function(e){var t=this;if(e.preventDefault(),g.a.size(this.fileRef.current.files)<=0)return!1;var a=g.a.first(this.fileRef.current.files),n=new FileReader;return n.onload=function(e){try{t.saveTemplate(JSON.parse(e.target.result)),b.a.trackEvent("Emails > Template imported",{"MailPoet Free version":window.mailpoet_version})}catch(e){b.a.Notice.error(b.a.I18n.t("templateFileMalformedError"))}},n.readAsText(a),!0}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("h2",null,b.a.I18n.t("importTemplateTitle"),h.a.createElement(Et.a,{tooltip:b.a.I18n.t("helpTooltipTemplateUpload"),place:"right",className:"tooltip-help-import-template"})),h.a.createElement("form",{onSubmit:this.handleSubmit},h.a.createElement("input",{type:"file",placeholder:b.a.I18n.t("selectJsonFileToUpload"),ref:this.fileRef}),h.a.createElement("p",{className:"submit"},h.a.createElement("input",{className:"button button-primary",type:"submit",value:b.a.I18n.t("upload")}))))}}]),t}(h.a.Component);tn.propTypes={beforeImport:q.a.func.isRequired,afterImport:q.a.func.isRequired};var an=tn,nn=[{name:"standard",label:b.a.I18n.t("tabStandardTitle")},{name:"welcome",label:b.a.I18n.t("tabWelcomeTitle")},{name:"notification",label:b.a.I18n.t("tabNotificationTitle")},{name:"blank",label:b.a.I18n.t("tabBlankTitle")}];window.mailpoet_woocommerce_active&&nn.push({name:"woocommerce",label:b.a.I18n.t("tabWoocommerceTitle")}),nn.push.apply(nn,[{name:"recent",label:b.a.I18n.t("recentlySent")},{name:"saved",label:b.a.I18n.t("savedTemplates")}]);var rn=function(e){function t(e){var a,n,r,i,s;return k()(this,t),(s=C()(this,x()(t).call(this,e))).state={loading:!0,templates:{},emailType:null,selectedTab:""},s.templates={},s.addTemplate=w()(a=s.addTemplate).call(a,A()(s)),s.afterTemplateDelete=w()(n=s.afterTemplateDelete).call(n,A()(s)),s.afterTemplateSelect=w()(r=s.afterTemplateSelect).call(r,A()(s)),s.afterTemplateImport=w()(i=s.afterTemplateImport).call(i,A()(s)),s}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){var e=this;b.a.Ajax.get({api_version:window.mailpoet_api_version,endpoint:"newsletterTemplates",action:"getAll"}).done((function(t){var a;0===t.data.length&&(t.data=[{name:b.a.I18n.t("mailpoetGuideTemplateTitle"),categories:'["welcome", "notification", "standard", "woocommerce"]',readonly:"1"}]),ea()(a=t.data).call(a,e.addTemplate),e.sortTemplates()})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})})).always((function(){e.selectInitialTab()}))}},{key:"addTemplate",value:function(e){var t,a=this,n=d()(nn).call(nn,(function(e){return e.name}));-1===Ka()(n).call(n,"woocommerce")&&n.push("woocommerce");try{var r;t=K()(r=JSON.parse(e.categories)).call(r,(function(e){return-1!==Ka()(n).call(n,e)}))}catch(e){t=[]}0===t.length&&t.push("saved"),ea()(t).call(t,(function(t){void 0===a.templates[t]&&(a.templates[t]=[]),a.templates[t].unshift(e)}))}},{key:"sortTemplates",value:function(){var e,t=this;ea()(e=da()(this.templates)).call(e,(function(e){var a;Wa()(a=t.templates[e]).call(a,(function(e,t){return me()(e.id,10)<me()(t.id,10)?1:-1}))}))}},{key:"selectInitialTab",value:function(){var e,t=this,a="standard";b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"get",data:{id:this.props.match.params.id}}).done((function(t){e=t.data.type,g.a.findWhere(nn,{name:t.data.type})?a=t.data.type:"automatic"===t.data.type&&g.a.findWhere(nn,{name:t.data.options.group})&&(a=t.data.options.group)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})})).always((function(){t.setState({templates:t.templates,emailType:e,selectedTab:a,loading:!1})}))}},{key:"afterTemplateDelete",value:function(e,t){var a,n=this;e&&ea()(a=da()(this.templates)).call(a,(function(e){var a;n.templates[e]=K()(a=n.templates[e]).call(a,(function(e){return e.id!==t}))}));this.setState({templates:this.templates,loading:!1})}},{key:"afterTemplateSelect",value:function(e,t){e?window.location=function(e){return"admin.php?page=mailpoet-newsletter-editor&id=".concat(e)}(t):this.setState({loading:!1})}},{key:"afterTemplateImport",value:function(e,t){e&&this.addTemplate(t),this.setState({templates:this.templates,selectedTab:e?"saved":"import",loading:!1})}},{key:"render",value:function(){var e=this;if(this.state.loading)return h.a.createElement(Ga,null);var t=s()(nn).call(nn,{name:"import",label:b.a.I18n.t("tabImportTitle")}),a=null;if("import"===this.state.selectedTab)a=h.a.createElement(an,{beforeImport:function(){return e.setState({loading:!0})},afterImport:this.afterTemplateImport});else{var n=this.state.templates[this.state.selectedTab]||[];n=0===n.length?this.state.loading?null:h.a.createElement("p",null,b.a.I18n.t("noTemplates")):d()(n).call(n,(function(t,a){return h.a.createElement(en,{key:t.id,index:a,newsletterId:e.props.match.params.id,beforeDelete:function(){return e.setState({loading:!0})},afterDelete:e.afterTemplateDelete,beforeSelect:function(){return e.setState({loading:!0})},afterSelect:e.afterTemplateSelect,id:t.id,name:t.name,thumbnail:t.thumbnail,readonly:t.readonly})})),a=h.a.createElement("ul",{className:"mailpoet_boxes clearfix"},n)}var r=_.a.applyFilters("mailpoet_newsletters_template_breadcrumb",h.a.createElement(L.a,{step:"template"}),this.state.emailType,"template");return h.a.createElement("div",null,h.a.createElement("h1",null,b.a.I18n.t("selectTemplateTitle")),r,h.a.createElement(Ja,{tabs:t,selected:this.state.selectedTab,select:function(t){return e.setState({selectedTab:t})}}),a)}}]),t}(h.a.Component);rn.propTypes={match:q.a.shape({params:q.a.shape({id:q.a.string}).isRequired}).isRequired};var sn=rn,on=a(52),ln=a.n(on),cn={closeText:b.a.I18n.t("close"),currentText:b.a.I18n.t("today"),nextText:b.a.I18n.t("next"),prevText:b.a.I18n.t("previous"),monthNames:[b.a.I18n.t("january"),b.a.I18n.t("february"),b.a.I18n.t("march"),b.a.I18n.t("april"),b.a.I18n.t("may"),b.a.I18n.t("june"),b.a.I18n.t("july"),b.a.I18n.t("august"),b.a.I18n.t("september"),b.a.I18n.t("october"),b.a.I18n.t("november"),b.a.I18n.t("december")],monthNamesShort:[b.a.I18n.t("januaryShort"),b.a.I18n.t("februaryShort"),b.a.I18n.t("marchShort"),b.a.I18n.t("aprilShort"),b.a.I18n.t("mayShort"),b.a.I18n.t("juneShort"),b.a.I18n.t("julyShort"),b.a.I18n.t("augustShort"),b.a.I18n.t("septemberShort"),b.a.I18n.t("octoberShort"),b.a.I18n.t("novemberShort"),b.a.I18n.t("decemberShort")],dayNames:[b.a.I18n.t("sunday"),b.a.I18n.t("monday"),b.a.I18n.t("tuesday"),b.a.I18n.t("wednesday"),b.a.I18n.t("thursday"),b.a.I18n.t("friday"),b.a.I18n.t("saturday")],dayNamesShort:[b.a.I18n.t("sundayShort"),b.a.I18n.t("mondayShort"),b.a.I18n.t("tuesdayShort"),b.a.I18n.t("wednesdayShort"),b.a.I18n.t("thursdayShort"),b.a.I18n.t("fridayShort"),b.a.I18n.t("saturdayShort")],dayNamesMin:[b.a.I18n.t("sundayMin"),b.a.I18n.t("mondayMin"),b.a.I18n.t("tuesdayMin"),b.a.I18n.t("wednesdayMin"),b.a.I18n.t("thursdayMin"),b.a.I18n.t("fridayMin"),b.a.I18n.t("saturdayMin")]},un=function(e){function t(e){var a;return k()(this,t),a=C()(this,x()(t).call(this,e)),ne()(A()(a),"onChange",(function(e){var t=e,n=t.target.value,r=a.getStorageDate(n);t.target.value=r,a.props.onChange(t)})),ne()(A()(a),"getFieldName",(function(){return a.props.name||"date"})),ne()(A()(a),"getDisplayDate",(function(e){var t={parseFormat:a.props.storageFormat,format:a.props.displayFormat};return b.a.Date.format(e,t)})),ne()(A()(a),"getStorageDate",(function(e){var t={parseFormat:a.props.displayFormat,format:a.props.storageFormat};return b.a.Date.format(e,t)})),a.dateInput=h.a.createRef(),a}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){var e=ie()(this.dateInput.current),t=this;e.datepicker&&(ie.a.datepicker.parseDate=function(e,t){return b.a.Date.toDate(t,{parseFormat:this.props.displayFormat,format:e})},ie.a.datepicker.formatDate=function(e,t){return b.a.Date.format(t,{format:e})},e.datepicker(g.a.extend({dateFormat:this.props.displayFormat,firstDay:window.mailpoet_start_of_week,isRTL:!1,onSelect:function(e){t.onChange({target:{name:t.getFieldName(),value:e}})}},cn)),this.datepickerInitialized=!0)}},{key:"componentWillUnmount",value:function(){this.datepickerInitialized&&ie()(this.dateInput.current).datepicker("destroy")}},{key:"render",value:function(){return h.a.createElement("input",Q()({type:"text",size:"30",name:this.getFieldName(),value:this.getDisplayDate(this.props.value),readOnly:!0,disabled:this.props.disabled,onChange:this.onChange,ref:this.dateInput},this.props.validation))}}]),t}(h.a.Component);un.propTypes={displayFormat:q.a.string.isRequired,onChange:q.a.func.isRequired,name:q.a.string,storageFormat:q.a.string.isRequired,value:q.a.string.isRequired,disabled:q.a.bool.isRequired,validation:q.a.object.isRequired},un.defaultProps={name:"date"};var pn=un,dn=function(e){function t(){return k()(this,t),C()(this,x()(t).apply(this,arguments))}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t=this,a=d()(e=da()(this.props.timeOfDayItems)).call(e,(function(e){return h.a.createElement("option",{key:"option-".concat(t.props.timeOfDayItems[e]),value:e},t.props.timeOfDayItems[e])}));return h.a.createElement("select",Q()({name:this.props.name||"time",value:this.props.value,disabled:this.props.disabled,onChange:this.props.onChange},this.props.validation),a)}}]),t}(h.a.Component);dn.propTypes={timeOfDayItems:q.a.objectOf(q.a.string).isRequired,name:q.a.string,value:q.a.string.isRequired,disabled:q.a.bool,onChange:q.a.func.isRequired,validation:q.a.object},dn.defaultProps={name:"time",disabled:!1,validation:{}};var mn=dn,hn=function(e){function t(e){var a;return k()(this,t),a=C()(this,x()(t).call(this,e)),ne()(A()(a),"DATE_TIME_SEPARATOR"," "),ne()(A()(a),"getDateTime",(function(){return[a.state.date,a.state.time].join(a.DATE_TIME_SEPARATOR)})),ne()(A()(a),"buildStateFromProps",(function(e){var t=(e.value||a.props.defaultDateTime).split(a.DATE_TIME_SEPARATOR),n=fe()(t,2);return{date:n[0],time:n[1]}})),ne()(A()(a),"handleChange",(function(e){var t={};t[e.target.name]=e.target.value,a.setState(t,a.propagateChange)})),ne()(A()(a),"propagateChange",(function(){a.props.onChange&&a.props.onChange({target:{name:a.props.name||"",value:a.getDateTime()}})})),a.state=a.buildStateFromProps(e),a}return O()(t,e),S()(t,[{key:"componentDidUpdate",value:function(e){var t=this;this.props.value===e.value&&this.props.defaultDateTime===e.defaultDateTime||la()((function(){t.setState(t.buildStateFromProps(t.props))}))}},{key:"render",value:function(){return h.a.createElement("span",null,h.a.createElement(pn,{name:"date",value:this.state.date,onChange:this.handleChange,displayFormat:this.props.dateDisplayFormat,storageFormat:this.props.dateStorageFormat,disabled:this.props.disabled,validation:this.props.dateValidation}),h.a.createElement(mn,{name:"time",value:this.state.time,onChange:this.handleChange,disabled:this.props.disabled,validation:this.props.timeValidation,timeOfDayItems:this.props.timeOfDayItems}))}}]),t}(h.a.Component);hn.propTypes={value:q.a.string,defaultDateTime:q.a.string.isRequired,dateDisplayFormat:q.a.string.isRequired,dateStorageFormat:q.a.string.isRequired,onChange:q.a.func,name:q.a.string,disabled:q.a.bool,dateValidation:q.a.object.isRequired,timeValidation:q.a.any,timeOfDayItems:q.a.objectOf(q.a.string).isRequired},hn.defaultProps={onChange:void 0,name:"",disabled:!1,timeValidation:void 0,value:void 0};var fn=hn,gn=window.location.hostname.replace("www.",""),vn="contact@".concat(gn),_n=function(e){var t,a=e.emailAddress;if(e.mssActive)return null;var n=a.split("@").pop().toLowerCase();return Ka()(t=window.mailpoet_free_domains).call(t,n)>-1?h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"sender_email_address_warning","data-acceptance-id":"freemail-sender-warning-old-installation"},b.a.I18n.t("senderEmailAddressWarning1")),h.a.createElement("p",{className:"sender_email_address_warning"},dt()(b.a.I18n.t("senderEmailAddressWarning2"),/(%1\$s|%2\$s|<em>.*<\/em>)/,(function(e){return"%1$s"===e?vn:"%2$s"===e?h.a.createElement("em",{key:"sender-email"},a):h.a.createElement("em",{key:"reply-to"},e.replace(/<\/?em>/g,""))}))),h.a.createElement("p",{className:"sender_email_address_warning"},h.a.createElement("a",{href:"https://kb.mailpoet.com/article/259-your-from-address-cannot-be-yahoo-com-gmail-com-outlook-com","data-beacon-article":"5be5911104286304a71c176e",target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("senderEmailAddressWarning3")))):null};_n.propTypes={emailAddress:q.a.string.isRequired,mssActive:q.a.bool.isRequired};var bn=_n,yn=function(e){function t(e){var a,n;return k()(this,t),(n=C()(this,x()(t).call(this,e))).state={emailAddress:e.item.sender_address},n.onChange=w()(a=n.onChange).call(a,A()(n)),n}return O()(t,e),S()(t,[{key:"onChange",value:function(e){this.setState({emailAddress:e.target.value}),this.props.onValueChange(e)}},{key:"render",value:function(){return h.a.createElement(h.a.Fragment,null,h.a.createElement(we,{item:this.props.item,field:this.props.field,onValueChange:this.onChange}),h.a.createElement("div",{className:"regular-text"},h.a.createElement(bn,{emailAddress:this.state.emailAddress,mssActive:window.mailpoet_mss_active})))}}]),t}(h.a.Component);yn.propTypes={field:q.a.object.isRequired,item:q.a.shape({sender_address:q.a.string.isRequired}).isRequired,onValueChange:q.a.func},yn.defaultProps={onValueChange:function(){}};var wn=yn,En=window.mailpoet_current_time||"00:00",kn="".concat(window.mailpoet_current_date," 00:00:00"),In=window.mailpoet_schedule_time_of_day,Sn=window.mailpoet_date_display_format,Nn=window.mailpoet_date_storage_format,Cn=function(e){function t(){var e,a,n;k()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=C()(this,(e=x()(t)).call.apply(e,s()(a=[this]).call(a,i))),ne()(A()(n),"getCurrentValue",(function(){var e={isScheduled:"0",scheduledAt:kn};return g.a.defaults(n.props.item[n.props.field.name]||{},e)})),ne()(A()(n),"getDateValidation",(function(){return{"data-parsley-required":!0,"data-parsley-required-message":b.a.I18n.t("noScheduledDateError"),"data-parsley-errors-container":"#mailpoet_scheduling"}})),ne()(A()(n),"isScheduled",(function(){return"1"===n.getCurrentValue().isScheduled})),ne()(A()(n),"handleCheckboxChange",(function(e){var t=e;return t.target.value=e.target.checked?"1":"0",n.handleValueChange(t)})),ne()(A()(n),"handleValueChange",(function(e){var t=n.getCurrentValue(),a={};return a[e.target.name]=e.target.value,n.props.onValueChange({target:{name:n.props.field.name,value:g.a.extend({},t,a)}})})),n}return O()(t,e),S()(t,[{key:"render",value:function(){var e;return this.isScheduled()&&(e=h.a.createElement("span",{id:"mailpoet_scheduling"},h.a.createElement(fn,{name:"scheduledAt",value:this.getCurrentValue().scheduledAt,onChange:this.handleValueChange,disabled:this.props.field.disabled,dateValidation:this.getDateValidation(),defaultDateTime:kn,timeOfDayItems:In,dateDisplayFormat:Sn,dateStorageFormat:Nn})," ",h.a.createElement("span",null,b.a.I18n.t("websiteTimeIs")," ",h.a.createElement("code",null,En)))),h.a.createElement("div",null,h.a.createElement("input",{type:"checkbox",value:"1",checked:this.isScheduled(),disabled:this.props.field.disabled,name:"isScheduled",onChange:this.handleCheckboxChange}),e)}}]),t}(h.a.Component);Cn.propTypes={item:q.a.object,field:q.a.shape({name:q.a.string.isRequired,disabled:q.a.bool}).isRequired,onValueChange:q.a.func.isRequired},Cn.defaultProps={item:{}};var Tn=[{name:"subject",label:b.a.I18n.t("subjectLine"),tip:b.a.I18n.t("subjectLineTip"),type:"text",validation:{"data-parsley-required":!0,"data-parsley-required-message":b.a.I18n.t("emptySubjectLineError")}},{name:"segments",label:b.a.I18n.t("segments"),tip:b.a.I18n.t("segmentsTip"),type:"selection",placeholder:b.a.I18n.t("selectSegmentPlaceholder"),id:"mailpoet_segments",api_version:window.mailpoet_api_version,endpoint:"segments",multiple:!0,filter:function(e){return!e.deleted_at},getLabel:function(e){var t;return s()(t="".concat(e.name," (")).call(t,me()(e.subscribers,10).toLocaleString(),")")},transformChangedValue:function(e){var t=this.getItems();return d()(g.a).call(g.a,e,(function(e){return X()(g.a).call(g.a,t,(function(t){return t.id===e}))}))},validation:{"data-parsley-required":!0,"data-parsley-required-message":b.a.I18n.t("noSegmentsSelectedError")}},{name:"sender",label:b.a.I18n.t("sender"),tip:b.a.I18n.t("senderTip"),fields:[{name:"sender_name",type:"text",placeholder:b.a.I18n.t("senderNamePlaceholder"),validation:{"data-parsley-required":!0}},{name:"sender_address",type:"reactComponent",component:wn,placeholder:b.a.I18n.t("senderAddressPlaceholder"),validation:{"data-parsley-required":!0,"data-parsley-type":"email"}}]},{name:"reply-to",label:b.a.I18n.t("replyTo"),tip:b.a.I18n.t("replyToTip"),inline:!0,fields:[{name:"reply_to_name",type:"text",placeholder:b.a.I18n.t("replyToNamePlaceholder")},{name:"reply_to_address",type:"text",placeholder:b.a.I18n.t("replyToAddressPlaceholder"),validation:{"data-parsley-type":"email"}}]},Jt,{name:"options",label:b.a.I18n.t("scheduleIt"),type:"reactComponent",component:Cn}];Tn=_.a.applyFilters("mailpoet_newsletters_3rd_step_fields",Tn);var xn={getFields:function(){return Tn},getSendButtonOptions:function(e){var t=e||{},a={value:"object"===ln()(t.options)&&"1"===t.options.isScheduled?b.a.I18n.t("schedule"):b.a.I18n.t("send")};return"sent"!==t.status&&"sending"!==t.status||(a.disabled="disabled"),a}},Rn={name:"intervalType",values:Ie},An={name:"timeOfDay",values:Se},Pn={name:"weekDay",values:Ne},On={name:"monthDay",values:Ce},Ln={name:"nthWeekDay",values:Te},Dn=function(e){function t(){var e,a,n;k()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=C()(this,(e=x()(t)).call.apply(e,s()(a=[this]).call(a,i))),ne()(A()(n),"getCurrentValue",(function(){return n.props.item[n.props.field.name]||{}})),ne()(A()(n),"handleValueChanges",(function(e){var t=n.getCurrentValue();return n.props.onValueChange({target:{name:n.props.field.name,value:g.a.extend({},t,e)}})})),ne()(A()(n),"handleIntervalChange",(function(e){var t=e.target.value,a={};a.intervalType=t,"monthly"===t&&(a.monthDay="1"),n.handleValueChanges(a)})),ne()(A()(n),"handleTimeOfDayChange",(function(e){return n.handleValueChanges({timeOfDay:e.target.value})})),ne()(A()(n),"handleWeekDayChange",(function(e){return n.handleValueChanges({weekDay:e.target.value})})),ne()(A()(n),"handleMonthDayChange",(function(e){return n.handleValueChanges({monthDay:e.target.value})})),ne()(A()(n),"handleNthWeekDayChange",(function(e){return n.handleValueChanges({nthWeekDay:e.target.value})})),n}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t,a,n,r=this.getCurrentValue();return"immediately"!==r.intervalType&&(e=h.a.createElement(ha,{field:An,item:this.getCurrentValue(),onValueChange:this.handleTimeOfDayChange})),"weekly"!==r.intervalType&&"nthWeekDay"!==r.intervalType||(t=h.a.createElement(ha,{field:Pn,item:this.getCurrentValue(),onValueChange:this.handleWeekDayChange})),"monthly"===r.intervalType&&(a=h.a.createElement(ha,{field:On,item:this.getCurrentValue(),onValueChange:this.handleMonthDayChange})),"nthWeekDay"===r.intervalType&&(n=h.a.createElement(ha,{field:Ln,item:this.getCurrentValue(),onValueChange:this.handleNthWeekDayChange})),h.a.createElement("div",null,h.a.createElement(ha,{field:Rn,item:this.getCurrentValue(),onValueChange:this.handleIntervalChange,automationId:"newsletter_interval_type"}),n,a,t,e)}}]),t}(h.a.Component);Dn.propTypes={item:q.a.object.isRequired,field:q.a.shape({name:q.a.string}).isRequired,onValueChange:q.a.func.isRequired};var qn=Dn,Fn=[{name:"subject",label:b.a.I18n.t("subjectLine"),tip:b.a.I18n.t("postNotificationSubjectLineTip"),type:"text",validation:{"data-parsley-required":!0,"data-parsley-required-message":b.a.I18n.t("emptySubjectLineError")}},{name:"options",label:b.a.I18n.t("selectFrequency"),type:"reactComponent",component:qn},{name:"segments",label:b.a.I18n.t("segments"),tip:b.a.I18n.t("segmentsTip"),type:"selection",placeholder:b.a.I18n.t("selectSegmentPlaceholder"),id:"mailpoet_segments",api_version:window.mailpoet_api_version,endpoint:"segments",multiple:!0,filter:function(e){return!e.deleted_at},getLabel:function(e){var t;return s()(t="".concat(e.name," (")).call(t,me()(e.subscribers,10).toLocaleString(),")")},transformChangedValue:function(e){var t=this.getItems();return d()(g.a).call(g.a,e,(function(e){return X()(g.a).call(g.a,t,(function(t){return t.id===e}))}))},validation:{"data-parsley-required":!0,"data-parsley-required-message":b.a.I18n.t("noSegmentsSelectedError")}},{name:"sender",label:b.a.I18n.t("sender"),tip:b.a.I18n.t("senderTip"),fields:[{name:"sender_name",type:"text",placeholder:b.a.I18n.t("senderNamePlaceholder"),validation:{"data-parsley-required":!0}},{name:"sender_address",type:"reactComponent",component:wn,placeholder:b.a.I18n.t("senderAddressPlaceholder"),validation:{"data-parsley-required":!0,"data-parsley-type":"email"}}]},{name:"reply-to",label:b.a.I18n.t("replyTo"),tip:b.a.I18n.t("replyToTip"),inline:!0,fields:[{name:"reply_to_name",type:"text",placeholder:b.a.I18n.t("replyToNamePlaceholder")},{name:"reply_to_address",type:"text",placeholder:b.a.I18n.t("replyToAddressPlaceholder"),validation:{"data-parsley-type":"email"}}]},Jt];Fn=_.a.applyFilters("mailpoet_newsletters_3rd_step_fields",Fn);var Mn={getFields:function(){return Fn},getSendButtonOptions:function(){return{value:b.a.I18n.t("activate")}}},jn=window.mailpoet_roles||{},Vn=K()(g.a).call(g.a,window.mailpoet_segments||[],(function(e){return"default"===e.type})),Bn={name:"event",values:{segment:b.a.I18n.t("onSubscriptionToList"),user:b.a.I18n.t("onWPUserRegistration")}},Un={name:"segment",values:g.a.object(d()(g.a).call(g.a,Vn,(function(e){var t,a=s()(t="".concat(e.name," (")).call(t,me()(e.subscribers,10).toLocaleString(),")");return[e.id,a]}))),sortBy:function(e,t){return t.toLowerCase()}},zn={name:"role",values:jn},$n={name:"afterTimeNumber",size:3},Wn={name:"afterTimeType",values:ke},Hn=function(e){function t(){var e,a,n;k()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=C()(this,(e=x()(t)).call.apply(e,s()(a=[this]).call(a,i))),ne()(A()(n),"getCurrentValue",(function(){return n.props.item[n.props.field.name]||{}})),ne()(A()(n),"handleValueChange",(function(e,t){var a=n.getCurrentValue(),r={};return r[e]=t,n.props.onValueChange({target:{name:n.props.field.name,value:g.a.extend({},a,r)}})})),ne()(A()(n),"handleEventChange",(function(e){return n.handleValueChange("event",e.target.value)})),ne()(A()(n),"handleSegmentChange",(function(e){return n.handleValueChange("segment",e.target.value)})),ne()(A()(n),"handleRoleChange",(function(e){return n.handleValueChange("role",e.target.value)})),ne()(A()(n),"handleAfterTimeNumberChange",(function(e){return n.handleValueChange("afterTimeNumber",e.target.value)})),ne()(A()(n),"handleAfterTimeTypeChange",(function(e){return n.handleValueChange("afterTimeType",e.target.value)})),ne()(A()(n),"handleNext",(function(){b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"create",data:{type:"welcome",options:n.state}}).done((function(e){n.showTemplateSelection(e.data.id)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))})),ne()(A()(n),"showTemplateSelection",(function(e){n.props.history.push("/template/".concat(e))})),n}return O()(t,e),S()(t,[{key:"render",value:function(){var e,t,a=this.getCurrentValue();return e="user"===a.event?h.a.createElement(ha,{field:zn,item:this.getCurrentValue(),onValueChange:this.handleRoleChange}):h.a.createElement(ha,{field:Un,item:this.getCurrentValue(),onValueChange:this.handleSegmentChange}),"immediate"!==a.afterTimeType&&(t=h.a.createElement(we,{field:$n,item:this.getCurrentValue(),onValueChange:this.handleAfterTimeNumberChange})),h.a.createElement("div",null,h.a.createElement(ha,{field:Bn,item:this.getCurrentValue(),onValueChange:this.handleEventChange}),e,t,h.a.createElement(ha,{field:Wn,item:this.getCurrentValue(),onValueChange:this.handleAfterTimeTypeChange}))}}]),t}(h.a.Component);Hn.propTypes={history:q.a.shape({push:q.a.func.isRequired}).isRequired,item:q.a.object.isRequired,field:q.a.shape({name:q.a.string}).isRequired,onValueChange:q.a.func.isRequired};var Kn=Object(B.withRouter)(Hn),Gn=[{name:"subject",label:b.a.I18n.t("subjectLine"),tip:b.a.I18n.t("subjectLineTip"),type:"text",validation:{"data-parsley-required":!0,"data-parsley-required-message":b.a.I18n.t("emptySubjectLineError")}},{name:"options",label:b.a.I18n.t("sendWelcomeEmailWhen"),type:"reactComponent",component:Kn},{name:"sender",label:b.a.I18n.t("sender"),tip:b.a.I18n.t("senderTip"),fields:[{name:"sender_name",type:"text",placeholder:b.a.I18n.t("senderNamePlaceholder"),validation:{"data-parsley-required":!0}},{name:"sender_address",type:"reactComponent",component:wn,placeholder:b.a.I18n.t("senderAddressPlaceholder"),validation:{"data-parsley-required":!0,"data-parsley-type":"email"}}]},{name:"reply-to",label:b.a.I18n.t("replyTo"),tip:b.a.I18n.t("replyToTip"),inline:!0,fields:[{name:"reply_to_name",type:"text",placeholder:b.a.I18n.t("replyToNamePlaceholder")},{name:"reply_to_address",type:"text",placeholder:b.a.I18n.t("replyToAddressPlaceholder"),validation:{"data-parsley-type":"email"}}]},Jt];Gn=_.a.applyFilters("mailpoet_newsletters_3rd_step_fields",Gn);var Yn={getFields:function(){return Gn},getSendButtonOptions:function(){return{value:b.a.I18n.t("activate")}}},Jn=a(291),Qn=a(494),Zn=a.n(Qn),Xn=function(e,t){var a,n=Zn()(t,{lower:!0}).replace(/[^a-z0-9]+/g,"-").replace(/-$/,"");return s()(a="".concat(n||"newsletter","_")).call(a,e)},er=function(e){function t(e){var a;return k()(this,t),a=C()(this,x()(t).call(this,e)),ne()(A()(a),"getFieldsByNewsletter",(function(e){return a.getSubtype(e).getFields(e)})),ne()(A()(a),"getSendButtonOptions",(function(){return a.getSubtype(a.state.item).getSendButtonOptions(a.state.item)})),ne()(A()(a),"getSubtype",(function(e){switch(e.type){case"notification":return Mn;case"welcome":return Yn;default:return _.a.applyFilters("mailpoet_newsletters_send_newsletter_fields",xn,e)}})),ne()(A()(a),"getThumbnailPromise",(function(e){return a.state.thumbnailPromise?a.state.thumbnailPromise:Object(Jn.b)(e)})),ne()(A()(a),"isValid",(function(){return ie()("#mailpoet_newsletter").parsley().isValid()})),ne()(A()(a),"isValidFromAddress",Pt()(Rt.a.mark((function e(){var t,n;return Rt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("MailPoet"===window.mailpoet_mta_method){e.next=2;break}return e.abrupt("return",!0);case 2:return e.next=4,a.loadAuthorizedEmailAddresses();case 4:return t=e.sent,n=a.state.item.sender_address,e.abrupt("return",-1!==Ka()(t).call(t,n));case 7:case"end":return e.stop()}}),e)})))),ne()(A()(a),"showInvalidFromAddressError",(function(){var e=dt()(b.a.I18n.t("newsletterInvalidFromAddress"),"%$1s",(function(){return a.state.item.sender_address}));e=dt()(e,/\[link\](.*?)\[\/link\]/g,(function(e){return'<a href="https://account.mailpoet.com/authorization" target="_blank" rel="noopener noreferrer">'.concat(e,"</a>")})),ie()("#field_sender_address").parsley().addError("invalidFromAddress",{message:e.join(""),updateClass:!0})})),ne()(A()(a),"removeInvalidFromAddressError",(function(){ie()("#field_sender_address").parsley().removeError("invalidFromAddress",{updateClass:!0})})),ne()(A()(a),"loadItem",(function(e){return a.setState({loading:!0}),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"get",data:{id:e}}).done((function(e){var t="draft"===e.data.status?a.getThumbnailPromise(e.meta.preview_url):null,n=e.data;n.ga_campaign||(n.ga_campaign=Xn(n.id,n.subject)),a.setState({item:e.data,fields:a.getFieldsByNewsletter(e.data),thumbnailPromise:t})})).fail((function(){a.setState({item:{}},(function(){a.props.history.push("/new")}))}))})),ne()(A()(a),"saveTemplate",(function(e,t){a.getThumbnailPromise(e.meta.preview_url).then((function(n){b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletterTemplates",action:"save",data:{newsletter_id:e.data.id,name:e.data.subject,thumbnail:n,body:W()(e.data.body),categories:'["recent"]'}}).fail((function(e){a.showError(e),a.setState({loading:!1}),b.a.Modal.loading(!1)})),t()})).catch((function(e){a.showError({errors:[e]})}))})),ne()(A()(a),"loadAuthorizedEmailAddresses",Pt()(Rt.a.mark((function e(){var t;return Rt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("MailPoet"===window.mailpoet_mta_method){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"mailer",action:"getAuthorizedEmailAddresses"});case 4:return t=e.sent,e.abrupt("return",t.data||[]);case 6:case"end":return e.stop()}}),e)})))),ne()(A()(a),"handleSend",(function(e){return e.preventDefault(),a.removeInvalidFromAddressError(),a.isValid()?(b.a.Modal.loading(!0),a.isValidFromAddress().then((function(t){return t?a.saveNewsletter(e).done((function(){a.setState({loading:!0})})).done((function(e){switch(e.data.type){case"notification":case"welcome":return a.activateNewsletter(e);default:return a.sendNewsletter(e)}})).fail((function(e){a.showError(e),a.setState({loading:!1}),b.a.Modal.loading(!1)})):(a.showInvalidFromAddressError(),b.a.Modal.loading(!1))}))):ie()("#mailpoet_newsletter").parsley().validate()})),ne()(A()(a),"sendNewsletter",(function(e){return b.a.Ajax.post(_.a.applyFilters("mailpoet_newsletters_send_server_request_parameters",{api_version:window.mailpoet_api_version,endpoint:"sendingQueue",action:"add",data:{newsletter_id:a.state.item.id}},a.state.item)).done((function(t){a.saveTemplate(e,(function(){if(window.mailpoet_show_congratulate_after_first_newsletter)return b.a.Modal.loading(!1),void a.props.history.push("/send/congratulate/".concat(a.state.item.id));a.props.history.push(_.a.applyFilters("mailpoet_newsletters_send_server_request_response_redirect","/".concat(a.state.item.type||""),a.state.item));var e=_.a.applyFilters("mailpoet_newsletters_send_server_request_response",a.state.item,t);g.a.isFunction(e)?e():"scheduled"===t.data.status?(b.a.Notice.success(b.a.I18n.t("newsletterHasBeenScheduled")),b.a.trackEvent("Emails > Newsletter sent",{scheduled:!0,"MailPoet Free version":window.mailpoet_version})):(b.a.Notice.success(b.a.I18n.t("newsletterBeingSent"),{id:"mailpoet_notice_being_sent"}),b.a.trackEvent("Emails > Newsletter sent",{scheduled:!1,"MailPoet Free version":window.mailpoet_version})),b.a.Modal.loading(!1)}))})).fail((function(e){a.showError(e),a.setState({loading:!1}),b.a.Modal.loading(!1)}))})),ne()(A()(a),"activateNewsletter",(function(e){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"setStatus",data:{id:a.props.match.params.id,status:"active"}}).done((function(t){a.saveTemplate(e,(function(){if(window.mailpoet_show_congratulate_after_first_newsletter)return b.a.Modal.loading(!1),void a.props.history.push("/send/congratulate/".concat(a.state.item.id));a.props.history.push("/".concat(a.state.item.type||""));var e,n=a.state.item.options;"welcome"===t.data.type?(b.a.Notice.success(b.a.I18n.t("welcomeEmailActivated")),b.a.trackEvent("Emails > Welcome email activated",{"MailPoet Free version":window.mailpoet_version,"List type":n.event,Delay:s()(e="".concat(n.afterTimeNumber," ")).call(e,n.afterTimeType)})):"notification"===t.data.type&&(b.a.Notice.success(b.a.I18n.t("postNotificationActivated")),b.a.trackEvent("Emails > Post notifications activated",{"MailPoet Free version":window.mailpoet_version,Frequency:n.intervalType}));b.a.Modal.loading(!1)}))})).fail((function(e){a.showError(e),a.setState({loading:!1}),b.a.Modal.loading(!1)}))})),ne()(A()(a),"handleResume",(function(e){return e.preventDefault(),a.isValid()?a.saveNewsletter(e).done((function(){a.setState({loading:!0})})).done((function(){b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"sendingQueue",action:"resume",data:{newsletter_id:a.state.item.id}}).done((function(){a.props.history.push("/".concat(a.state.item.type||"")),b.a.Notice.success(b.a.I18n.t("newsletterSendingHasBeenResumed"))})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))})).fail((function(e){a.showError(e)})).always((function(){a.setState({loading:!1})})):ie()("#mailpoet_newsletter").parsley().validate(),!1})),ne()(A()(a),"handleSave",(function(e){e.preventDefault(),a.saveNewsletter(e).done((function(){b.a.Notice.success(b.a.I18n.t("newsletterUpdated"))})).done((function(){var e="automatic"===a.state.item.type?a.state.item.options.group:a.state.item.type;a.props.history.push("/".concat(e||""))})).fail((function(e){a.showError(e)}))})),ne()(A()(a),"handleRedirectToDesign",(function(e){e.preventDefault();var t=e.target.href;a.saveNewsletter(e).done((function(){b.a.Notice.success(b.a.I18n.t("newsletterUpdated"))})).done((function(){window.location=t})).fail((function(e){a.showError(e)}))})),ne()(A()(a),"saveNewsletter",(function(){var e=a.state.item;e.queue=void 0,a.setState({loading:!0});var t=g.a.omit(e,["preheader","body","created_at","deleted_at","hash","status","updated_at","type"]);return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"save",data:t})})),ne()(A()(a),"showError",(function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})})),ne()(A()(a),"handleFormChange",(function(e){var t=e.target.name,n=e.target.value;return a.setState((function(e){var a=e.item,r=a.subject,i=a.ga_campaign;(a[t]=n,"subject"===t)&&(i===Xn(a.id,r)&&(a.ga_campaign=Xn(a.id,n)));return{item:a}})),!0})),a.state={fields:[],item:{},loading:!0,thumbnailPromise:null},a}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){var e=this;this.loadItem(this.props.match.params.id).always((function(){e.setState({loading:!1})})),ie()("#mailpoet_newsletter").parsley()}},{key:"componentDidUpdate",value:function(e){var t=this;this.props.match.params.id!==e.match.params.id&&this.loadItem(this.props.match.params.id).always((function(){t.setState({loading:!1})}))}},{key:"render",value:function(){var e,t="sending"===this.state.item.status&&this.state.item.queue&&"paused"===this.state.item.queue.status,a=d()(e=this.state.fields).call(e,(function(e){var a=e;return"segments"!==e.name&&"options"!==e.name||(a.disabled=t),a})),n=this.getSendButtonOptions(),r=_.a.applyFilters("mailpoet_newsletters_send_breadcrumb",h.a.createElement(L.a,{step:"send"}),this.state.item.type,"send");return h.a.createElement("div",null,h.a.createElement("h1",null,b.a.I18n.t("finalNewsletterStep")),r,h.a.createElement(xa,{id:"mailpoet_newsletter",fields:a,automationId:"newsletter_send_form",item:this.state.item,loading:this.state.loading,onChange:this.handleFormChange,onSubmit:this.handleSave},h.a.createElement(jt,null),h.a.createElement("p",{className:"submit"},t?h.a.createElement("input",{className:"button button-primary",type:"button",onClick:this.handleResume,value:b.a.I18n.t("resume"),disabled:window.mailpoet_subscribers_limit_reached}):h.a.createElement("input",Q()({className:"button button-primary",type:"button",onClick:this.handleSend,value:b.a.I18n.t("send")},n,{disabled:window.mailpoet_subscribers_limit_reached}))," ",h.a.createElement("input",{className:"button button-secondary",type:"submit",value:b.a.I18n.t("saveDraftAndClose")})," ",b.a.I18n.t("orSimply")," ",h.a.createElement("a",{href:"?page=mailpoet-newsletter-editor&id=".concat(this.props.match.params.id),onClick:this.handleRedirectToDesign},b.a.I18n.t("goBackToDesign")),"."),!t&&n.disabled&&"disabled"===n.disabled&&h.a.createElement(Et.a,{tooltip:b.a.I18n.t("helpTooltipSendEmail"),tooltipId:"helpTooltipSendEmail"})))}}]),t}(h.a.Component);er.propTypes={match:q.a.shape({params:q.a.shape({id:q.a.string}).isRequired}).isRequired,history:q.a.shape({push:q.a.func.isRequired}).isRequired};var tr=Object(B.withRouter)(er);function ar(e){return h.a.createElement("div",{className:"mailpoet_congratulate_success"},h.a.createElement("h1",null,"welcome"===(t=e.newsletter).type?b.a.I18n.t("congratulationsWelcomeEmailSuccessHeader"):"notification"===t.type?b.a.I18n.t("congratulationsPostNotificationSuccessHeader"):"automatic"===t.type?b.a.I18n.t("congratulationsWooSuccessHeader"):"scheduled"===t.status?b.a.I18n.t("congratulationsScheduleSuccessHeader"):b.a.I18n.t("congratulationsSendSuccessHeader")),h.a.createElement("img",{src:e.illustrationImageUrl,alt:"",width:"750",height:"250"}),h.a.createElement("button",{type:"button",className:"button",onClick:e.successClicked},b.a.I18n.t("close")));var t}ar.propTypes={successClicked:q.a.func.isRequired,illustrationImageUrl:q.a.string.isRequired,newsletter:q.a.shape({status:q.a.string.isRequired,type:q.a.string.isRequired}).isRequired};var nr=ar,rr=a(68),ir=a.n(rr),sr=function(e){var t,a;return e.step>e.steps_count?null:h.a.createElement("div",{className:"mailpoet_stepped_progress_bar"},d()(t=l()(ir()(a=Array(e.steps_count)).call(a))).call(t,(function(t){var a;return h.a.createElement("div",{className:s()(a="\n mailpoet_stepped_progress_bar_step ".concat(t<e.step?"active":""," ")).call(a,t===e.step-1?"current":"","\n "),key:"step_".concat(t)})})))};sr.propTypes={steps_count:q.a.number.isRequired,step:q.a.number.isRequired};var or=sr,lr=function(e){return h.a.createElement("div",{className:"mailpoet_welcome_wizard_flex"},h.a.createElement("div",{className:"mailpoet_welcome_wizard_illustration"},h.a.createElement("img",{src:e.illustrationUrl,alt:""})),h.a.createElement("div",{className:"mailpoet_welcome_wizard_step"},e.displayProgressBar&&e.step<=e.stepsCount?h.a.createElement(or,{steps_count:e.stepsCount,step:e.step}):null,e.children))};lr.propTypes={illustrationUrl:q.a.string.isRequired,displayProgressBar:q.a.bool,step:q.a.number,stepsCount:q.a.number,children:q.a.oneOfType([q.a.arrayOf(q.a.node),q.a.node]).isRequired},lr.defaultProps={displayProgressBar:!0,step:0,stepsCount:-1};var cr=lr,ur=function(){return h.a.createElement("ul",{className:"welcome_wizard_tracking_list"},h.a.createElement("li",null,b.a.I18n.t("welcomeWizardMSSList1")),h.a.createElement("li",null,b.a.I18n.t("welcomeWizardMSSList2")),h.a.createElement("li",null,b.a.I18n.t("welcomeWizardMSSList4")),h.a.createElement("li",null,b.a.I18n.t("welcomeWizardMSSList5")))},pr=function(e){return h.a.createElement("div",{className:"mailpoet_welcome_wizard_step_controls"},h.a.createElement("p",null,h.a.createElement("a",{href:e.mailpoetAccountUrl,target:"_blank",rel:"noopener noreferrer",className:"button button-primary",onClick:function(t){t.preventDefault(),window.open(e.mailpoetAccountUrl),e.next()}},e.nextButtonText)),h.a.createElement("p",null,h.a.createElement("a",{onClick:e.next,role:"button",tabIndex:0,onKeyDown:function(t){var a,n;u()(a=["keydown","keypress"]).call(a,t.type)&&u()(n=["Enter"," "]).call(n,t.key)&&(t.preventDefault(),e.next())}},b.a.I18n.t("welcomeWizardMSSNoThanks"))))};pr.propTypes={mailpoetAccountUrl:q.a.string.isRequired,next:q.a.func.isRequired,nextButtonText:q.a.string.isRequired};var dr=function(e){return h.a.createElement(h.a.Fragment,null,h.a.createElement("h1",null,b.a.I18n.t("welcomeWizardMSSFreeTitle")),h.a.createElement("p",null,b.a.I18n.t("welcomeWizardMSSFreeSubtitle")),h.a.createElement("p",null,b.a.I18n.t("welcomeWizardMSSFreeListTitle"),":"),h.a.createElement(ur,null),h.a.createElement(pr,{mailpoetAccountUrl:e.mailpoetAccountUrl,next:e.next,nextButtonText:b.a.I18n.t("welcomeWizardMSSFreeButton")}))};dr.propTypes={mailpoetAccountUrl:q.a.string.isRequired,next:q.a.func.isRequired};var mr=function(e){return h.a.createElement(h.a.Fragment,null,h.a.createElement("h1",null,b.a.I18n.t("welcomeWizardMSSNotFreeTitle")),h.a.createElement("p",null,b.a.I18n.t("welcomeWizardMSSNotFreeSubtitle"),":"),h.a.createElement("p",null,b.a.I18n.t("welcomeWizardMSSFreeListTitle"),":"),h.a.createElement(ur,null),h.a.createElement(pr,{mailpoetAccountUrl:e.mailpoetAccountUrl,next:e.next,nextButtonText:b.a.I18n.t("welcomeWizardMSSNotFreeButton")}))};mr.propTypes={mailpoetAccountUrl:q.a.string.isRequired,next:q.a.func.isRequired};var hr=function(e){return h.a.createElement("div",{className:"mailpoet_welcome_wizard_step_content"},e.subscribersCount<1e3?h.a.createElement(dr,{mailpoetAccountUrl:e.mailpoetAccountUrl,next:e.next}):h.a.createElement(mr,{mailpoetAccountUrl:e.mailpoetAccountUrl,next:e.next}))};hr.propTypes={next:q.a.func.isRequired,subscribersCount:q.a.number.isRequired,mailpoetAccountUrl:q.a.string.isRequired};var fr=hr;function gr(e){return h.a.createElement("div",{className:"mailpoet_congratulate_success mailpoet_congratulate_mss_pitch"},h.a.createElement(cr,{illustrationUrl:e.MSSPitchIllustrationUrl,displayProgressBar:!1},h.a.createElement("div",{className:"mailpoet_welcome_wizard_step_content"},h.a.createElement("h1",null,b.a.I18n.t("congratulationsMSSPitchHeader")),h.a.createElement("h2",null,b.a.I18n.t("congratulationsMSSPitchSubHeader")),h.a.createElement("p",null,b.a.I18n.t(e.subscribersCount<1e3?"welcomeWizardMSSFreeSubtitle":"welcomeWizardMSSNotFreeSubtitle")),h.a.createElement("p",null,b.a.I18n.t("welcomeWizardMSSFreeListTitle"),":"),h.a.createElement(ur,null),h.a.createElement(pr,{mailpoetAccountUrl:e.mailpoetAccountUrl,next:e.onFinish,nextButtonText:b.a.I18n.t("welcomeWizardMSSFreeButton")}))))}gr.propTypes={MSSPitchIllustrationUrl:q.a.string.isRequired,onFinish:q.a.func.isRequired,subscribersCount:q.a.number.isRequired,mailpoetAccountUrl:q.a.string.isRequired};var vr=gr;function _r(e){return window.has_mss_key_specified?h.a.createElement(nr,{successClicked:e.successClicked,illustrationImageUrl:e.illustrationImageUrl,newsletter:e.newsletter}):h.a.createElement(vr,{MSSPitchIllustrationUrl:e.MSSPitchIllustrationUrl,onFinish:e.successClicked,subscribersCount:e.subscribersCount,mailpoetAccountUrl:e.mailpoetAccountUrl})}function br(e){return h.a.createElement(_r,{successClicked:e.successClicked,illustrationImageUrl:e.illustrationImageUrl,MSSPitchIllustrationUrl:e.MSSPitchIllustrationUrl,newsletter:e.newsletter,subscribersCount:e.subscribersCount,mailpoetAccountUrl:e.mailpoetAccountUrl})}br.propTypes={successClicked:q.a.func.isRequired,illustrationImageUrl:q.a.string.isRequired,MSSPitchIllustrationUrl:q.a.string.isRequired,newsletter:q.a.shape({status:q.a.string.isRequired,type:q.a.string.isRequired}).isRequired,subscribersCount:q.a.number.isRequired,mailpoetAccountUrl:q.a.string.isRequired},_r.propTypes={successClicked:q.a.func.isRequired,illustrationImageUrl:q.a.string.isRequired,MSSPitchIllustrationUrl:q.a.string.isRequired,newsletter:q.a.shape({status:q.a.string.isRequired,type:q.a.string.isRequired}).isRequired,subscribersCount:q.a.number.isRequired,mailpoetAccountUrl:q.a.string.isRequired};var yr=br;function wr(e){return h.a.createElement("div",{className:"mailpoet_centered"},h.a.createElement("h1",null,b.a.I18n.t("congratulationsSendFailHeader")),h.a.createElement("p",null,dt()(b.a.I18n.t("congratulationsSendFailExplain"),/\[link\](.*?)\[\/link\]/g,(function(e,t){return h.a.createElement("a",{key:t,target:"_blank",rel:"noopener noreferrer",href:"https://kb.mailpoet.com/article/231-sending-does-not-work","data-beacon-article":"5a0257ac2c7d3a272c0d7ad6"},e)}))),h.a.createElement("button",{type:"button",className:"button",onClick:e.failClicked},b.a.I18n.t("close")))}wr.propTypes={failClicked:q.a.func.isRequired};var Er=wr;var kr=function(){return h.a.createElement("div",{className:"mailpoet_loading"},h.a.createElement("div",{className:"mailpoet_modal_loading mailpoet_modal_loading_1"}),h.a.createElement("div",{className:"mailpoet_modal_loading mailpoet_modal_loading_2"}),h.a.createElement("div",{className:"mailpoet_modal_loading mailpoet_modal_loading_3"}))};function Ir(e){return h.a.createElement("div",{className:"mailpoet_newsletter_loading"},h.a.createElement(kr,null),(t=e.showRichLoadingScreen,a=e.illustrationImageUrl,t?h.a.createElement("div",null,h.a.createElement("h1",{className:"mailpoet_newsletter_loading_header"},b.a.I18n.t("congratulationsLoadingHeader")),h.a.createElement("img",{src:a,alt:"",width:"800px",height:"266px"})):h.a.createElement("div",null)));var t,a}Ir.propTypes={illustrationImageUrl:q.a.string.isRequired,showRichLoadingScreen:q.a.bool.isRequired};var Sr=Ir;function Nr(){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"settings",action:"set",data:{show_congratulate_after_first_newsletter:!1}}).always((function(){window.location=window.mailpoet_main_page}))}var Cr=function(e){function t(e){var a,n;return k()(this,t),(n=C()(this,x()(t).call(this,e))).state={loading:!0,newsletter:null,testingPassed:!1,timeStart:yt()(),minimumLoadingTimePassed:!1},n.tick=w()(a=n.tick).call(a,A()(n)),n}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){this.loadNewsletter(this.props.match.params.id),this.tick()}},{key:"componentDidUpdate",value:function(e){e.match.params.id!==this.props.match.params.id&&this.loadNewsletter(this.props.match.params.id)}},{key:"tick",value:function(){yt()().subtract(20,"second").isAfter(this.state.timeStart)&&this.setState({error:!0,loading:!1}),this.state.loading&&this.loadNewsletter(this.props.match.params.id),yt()().subtract(6,"seconds").isAfter(this.state.timeStart)&&this.setState({minimumLoadingTimePassed:!0}),!this.state.loading&&this.state.minimumLoadingTimePassed||qt()(this.tick,2e3)}},{key:"loadNewsletter",value:function(e){var t=this;b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"get",data:{id:e}}).done((function(e){return t.newsletterLoaded(e.data)}))}},{key:"newsletterLoaded",value:function(e){"standard"!==e.type||"scheduled"===e.status?this.setState({newsletter:e,loading:!1,minimumLoadingTimePassed:!0}):"sent"===e.status||"sending"===e.status?this.setState({newsletter:e,loading:!1,testingPassed:!0}):this.setState({newsletter:e})}},{key:"renderContent",value:function(){return this.state.loading||!this.state.minimumLoadingTimePassed?(e=!!this.state.newsletter,h.a.createElement(Sr,{illustrationImageUrl:window.mailpoet_congratulations_loading_image,successClicked:Nr,showRichLoadingScreen:e})):this.state.error?(b.a.trackEvent("Cron testing done",{"Cron is working":"false"}),h.a.createElement(Er,{failClicked:function(){window.location=window.mailpoet_main_page}})):(t=this.state.newsletter,this.state.testingPassed&&b.a.trackEvent("Cron testing done",{"Cron is working":"true"}),h.a.createElement(yr,{illustrationImageUrl:window.mailpoet_congratulations_success_image,MSSPitchIllustrationUrl:window.MSS_pitch_illustration_url,successClicked:Nr,newsletter:t,isWoocommerceActive:window.mailpoet_woocommerce_active,subscribersCount:window.mailpoet_subscribers_count,mailpoetAccountUrl:window.mailpoet_account_url}));var e,t}},{key:"render",value:function(){return h.a.createElement("div",{className:"newsletter_congratulate_page"},this.renderContent())}}]),t}(h.a.Component);Cr.propTypes={match:q.a.shape({params:q.a.shape({id:q.a.string}).isRequired}).isRequired};var Tr=Cr,xr=function(e){function t(){var e,a,n;k()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=C()(this,(e=x()(t)).call.apply(e,s()(a=[this]).call(a,i))),ne()(A()(n),"showTemplateSelection",(function(e){n.props.history.push("/template/".concat(e))})),n}return O()(t,e),S()(t,[{key:"componentDidMount",value:function(){var e=this;b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"create",data:{type:"standard"}}).done((function(t){e.showTemplateSelection(t.data.id)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("h1",null,b.a.I18n.t("regularNewsletterTypeTitle")),h.a.createElement(L.a,{step:"type"}))}}]),t}(h.a.Component);xr.propTypes={history:q.a.shape({push:q.a.func.isRequired}).isRequired};var Rr=Object(B.withRouter)(xr),Ar={name:"options",type:"reactComponent",component:qn},Pr=function(e){function t(e){var a;return k()(this,t),a=C()(this,x()(t).call(this,e)),ne()(A()(a),"handleValueChange",(function(e){var t=a.state;t[e.target.name]=e.target.value,a.setState(t)})),ne()(A()(a),"handleNext",(function(){b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"create",data:g.a.extend({},a.state,{type:"notification",subject:b.a.I18n.t("draftPostNotificationTitle")})}).done((function(e){a.showTemplateSelection(e.data.id)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))})),ne()(A()(a),"showTemplateSelection",(function(e){a.props.history.push("/template/".concat(e))})),a.state={options:{intervalType:"daily",timeOfDay:0,weekDay:1,monthDay:0,nthWeekDay:1}},a}return O()(t,e),S()(t,[{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("h1",null,b.a.I18n.t("postNotificationNewsletterTypeTitle")),h.a.createElement(L.a,{step:"type"}),h.a.createElement("h3",null,b.a.I18n.t("selectFrequency")),h.a.createElement(qn,{item:this.state,field:Ar,onValueChange:this.handleValueChange}),h.a.createElement("p",{className:"submit"},h.a.createElement("input",{className:"button button-primary",type:"button",onClick:this.handleNext,value:b.a.I18n.t("next")})))}}]),t}(h.a.Component);Pr.propTypes={history:q.a.shape({push:q.a.func.isRequired}).isRequired};var Or=Object(B.withRouter)(Pr),Lr={name:"options",label:"Event",type:"reactComponent",component:Kn},Dr=function(e){function t(e){var a,n,r;k()(this,t),r=C()(this,x()(t).call(this,e));var i=window.mailpoet_segments||[],s=1;return i=K()(i).call(i,(function(e){return"default"===e.type})),g.a.size(i)>0&&(s=g.a.first(i).id),r.state={options:{event:"segment",segment:s,role:"subscriber",afterTimeNumber:1,afterTimeType:"immediate"}},r.handleValueChange=w()(a=r.handleValueChange).call(a,A()(r)),r.handleNext=w()(n=r.handleNext).call(n,A()(r)),r}return O()(t,e),S()(t,[{key:"handleValueChange",value:function(e){var t=this.state;t[e.target.name]=e.target.value,this.setState(t)}},{key:"handleNext",value:function(){var e=this;b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"create",data:g.a.extend({},this.state,{type:"welcome",subject:b.a.I18n.t("draftNewsletterTitle")})}).done((function(t){e.showTemplateSelection(t.data.id)})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}},{key:"showTemplateSelection",value:function(e){this.props.history.push("/template/".concat(e))}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("h1",null,b.a.I18n.t("welcomeNewsletterTypeTitle")),h.a.createElement(L.a,{step:"type"}),h.a.createElement("h3",null,b.a.I18n.t("selectEventToSendWelcomeEmail")),h.a.createElement(Kn,{item:this.state,field:Lr,onValueChange:this.handleValueChange}),h.a.createElement("p",{className:"submit"},h.a.createElement("input",{className:"button button-primary",type:"button",onClick:this.handleNext,value:b.a.I18n.t("next")})))}}]),t}(h.a.Component);Dr.propTypes={history:q.a.shape({push:q.a.func.isRequired}).isRequired};var qr=Dr,Fr=a(495),Mr=a.n(Fr),jr=function(e){var t=e.errors;return t.length<1?null:h.a.createElement(Mt,{type:"error",closable:!1},d()(t).call(t,(function(e){return h.a.createElement("p",{key:e.message},e.message)})))};jr.propTypes={errors:q.a.arrayOf(q.a.shape({message:q.a.string.isRequired})).isRequired};var Vr=jr,Br=q.a.shape({status:q.a.string,count_processed:q.a.string.isRequired,count_total:q.a.string.isRequired,scheduled_at:q.a.string}),Ur=q.a.shape({id:q.a.number.isRequired,queue:q.a.oneOfType([Br,q.a.bool])}),zr=function(e){var t=e.queue,a=Ye()("mailpoet_progress",{mailpoet_progress_complete:"completed"===t.status}),n=Math.round(100*t.count_processed/t.count_total),r=0;return Mr()(n)?(r=n,n+="%"):n=b.a.I18n.t("noSubscribers"),h.a.createElement("div",{className:a},h.a.createElement("span",{className:"mailpoet_progress_bar",style:{width:"".concat(r,"%")}}),h.a.createElement("span",{className:"mailpoet_progress_label"},n))};zr.propTypes={queue:Br.isRequired};var $r=function(e){var t=e.newsletter;return h.a.createElement(Ke.b,{to:"/sending-status/".concat(t.id),"data-automation-id":"sending_status_".concat(t.id)},h.a.createElement("span",null,b.a.I18n.t("newsletterQueueCompleted").replace("%$1d",me()(t.queue.count_processed,10).toLocaleString()).replace("%$2d",me()(t.queue.count_total,10).toLocaleString())))};$r.propTypes={newsletter:Ur.isRequired};var Wr=function(e){var t=e.className,a=e.onClick,n=e.children;return h.a.createElement("a",{className:Ye()("button",t),style:{display:"inline-block"},href:"#",onClick:function(e){e.preventDefault(),a(e)}},n)};Wr.propTypes={className:q.a.string,onClick:q.a.func.isRequired,children:q.a.string.isRequired},Wr.defaultProps={className:""};var Hr=function(e){var t=e.newsletter,a=h.a.useState("paused"===t.queue.status),n=fe()(a,2),r=n[0],i=n[1],s=h.a.useState([]),o=fe()(s,2),l=o[0],c=o[1];return h.a.createElement(h.a.Fragment,null,h.a.createElement(Vr,{errors:l}),h.a.createElement("span",null,me()(t.queue.count_processed,10).toLocaleString(),"/",me()(t.queue.count_total,10).toLocaleString(),"  ",r&&h.a.createElement(Wr,{onClick:function(){c([]),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"sendingQueue",action:"resume",data:{newsletter_id:t.id}}).done((function(){return i(!1)})).fail((function(e){return c(e.errors)}))}},b.a.I18n.t("resume")),!r&&h.a.createElement(Wr,{className:"mailpoet_pause",onClick:function(){c([]),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"sendingQueue",action:"pause",data:{newsletter_id:t.id}}).done((function(){return i(!0)})).fail((function(e){return c(e.errors)}))}},b.a.I18n.t("pause"))))};Hr.propTypes={newsletter:Ur.isRequired};var Kr=function(e){var t=e.newsletter,a=e.mailerLog;return t.queue?"paused"===a.status&&"completed"!==t.queue.status?h.a.createElement("span",null,b.a.I18n.t("paused")):"scheduled"===t.queue.status?h.a.createElement("span",null,b.a.I18n.t("scheduledFor")," ",b.a.Date.format(t.queue.scheduled_at)):h.a.createElement("div",null,h.a.createElement(zr,{queue:t.queue}),h.a.createElement("p",{style:{textAlign:"center"}},"completed"===t.queue.status&&h.a.createElement($r,{newsletter:t}),"completed"!==t.queue.status&&h.a.createElement(Hr,{newsletter:t}))):h.a.createElement("span",null,b.a.I18n.t("notSentYet"))};Kr.propTypes={newsletter:Ur.isRequired,mailerLog:q.a.shape({status:q.a.string}).isRequired};var Gr=Kr,Yr=!!window.mailpoet_tracking_enabled,Jr={onNoItemsFound:function(e,t){return b.a.I18n.t(t?"noItemsFound":"emptyListing")},onTrash:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterTrashed"):b.a.I18n.t("multipleNewslettersTrashed").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onDelete:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterDeleted"):b.a.I18n.t("multipleNewslettersDeleted").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onRestore:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterRestored"):b.a.I18n.t("multipleNewslettersRestored").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)}},Qr=[{name:"subject",label:b.a.I18n.t("subject"),sortable:!0},{name:"status",label:b.a.I18n.t("status")},{name:"segments",label:b.a.I18n.t("lists")},{name:"statistics",label:b.a.I18n.t("statistics"),display:Yr},{name:"sent_at",label:b.a.I18n.t("sentOn"),sortable:!0}],Zr=[{name:"trash",label:b.a.I18n.t("moveToTrash"),onSuccess:Jr.onTrash}],Xr=function(e){var t=function(){window.location.href="?page=mailpoet-newsletter-editor&id=".concat(e.id)};e.queue&&"sending"===e.status&&null===e.queue.status?Za({message:b.a.I18n.t("confirmEdit"),onConfirm:t}):t()},ei=[{name:"view",link:function(e){return h.a.createElement("a",{href:e.preview_url,target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("preview"))}},{name:"edit",label:b.a.I18n.t("edit"),onClick:Xr},{name:"duplicate",label:b.a.I18n.t("duplicate"),onClick:function(e,t){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"duplicate",data:{id:e.id}}).done((function(e){b.a.Notice.success(b.a.I18n.t("newsletterDuplicated").replace("%$1s",e.data.subject)),t()})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}},{name:"trash"}];ei=gt(ei);var ti=function(e){function t(e){var a;return k()(this,t),a=C()(this,x()(t).call(this,e)),ne()(A()(a),"renderItem",(function(e,t,a){var n,r=Ye()("manage-column","column-primary","has-row-actions"),i=d()(n=e.segments).call(n,(function(e){return e.name})).join(", ");return h.a.createElement("div",null,h.a.createElement("td",{className:r},h.a.createElement("strong",null,h.a.createElement("a",{className:"row-title",href:"#",onClick:function(t){t.preventDefault(),Xr(e)}},e.queue.newsletter_rendered_subject||e.subject)),t),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("status")},h.a.createElement(Gr,{newsletter:e,mailerLog:a.mta_log})),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("lists")},i),!0===Yr?h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("statistics")},h.a.createElement(Tt,{newsletter:e,currentTime:a.current_time})):null,h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("sentOn")},h.a.createElement("abbr",null,e.sent_at?b.a.Date.format(e.sent_at):b.a.I18n.t("notSentYet"))))})),a.state={newslettersCount:void 0},a}return O()(t,e),S()(t,[{key:"render",value:function(){var e=this;return h.a.createElement("div",null,h.a.createElement(lt,null),h.a.createElement(ht,{hasNews:window.mailpoet_feature_announcement_has_news}),h.a.createElement(jt,null),h.a.createElement(ot,{tab:"standard"}),0===this.state.newslettersCount&&h.a.createElement(Lt,{filter:function(e){return"standard"===e.slug},showHeader:!1}),0!==this.state.newslettersCount&&h.a.createElement(He.a,{limit:window.mailpoet_listing_per_page,location:this.props.location,params:this.props.match.params,endpoint:"newsletters",type:"standard",base_url:"standard",onRenderItem:this.renderItem,columns:Qr,bulk_actions:Zr,item_actions:ei,messages:Jr,auto_refresh:!0,sort_by:"sent_at",sort_order:"desc",afterGetItems:function(t){if(!t.loading){var a,n=be()(a=t.groups).call(a,(function(e,t){return e+t.count}),0);e.setState({newslettersCount:n})}vt(t),_t(t)}}))}}]),t}(h.a.Component);ti.contextType=ja,ti.propTypes={location:q.a.object.isRequired,match:q.a.shape({params:q.a.object}).isRequired};var ai=ti,ni=window.mailpoet_roles||{},ri=window.mailpoet_segments||{},ii=!!window.mailpoet_tracking_enabled,si={onNoItemsFound:function(e,t){return b.a.I18n.t(t?"noItemsFound":"emptyListing")},onTrash:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterTrashed"):b.a.I18n.t("multipleNewslettersTrashed").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onDelete:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterDeleted"):b.a.I18n.t("multipleNewslettersDeleted").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onRestore:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterRestored"):b.a.I18n.t("multipleNewslettersRestored").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)}},oi=[{name:"subject",label:b.a.I18n.t("subject"),sortable:!0},{name:"status",label:b.a.I18n.t("status"),width:145},{name:"settings",label:b.a.I18n.t("settings")},{name:"statistics",label:b.a.I18n.t("statistics"),display:ii},{name:"updated_at",label:b.a.I18n.t("lastModifiedOn"),sortable:!0}],li=[{name:"trash",label:b.a.I18n.t("moveToTrash"),onSuccess:si.onTrash}],ci=[{name:"view",link:function(e){return h.a.createElement("a",{href:e.preview_url,target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("preview"))}},{name:"duplicate",label:b.a.I18n.t("duplicate"),onClick:function(e,t){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"duplicate",data:{id:e.id}}).done((function(e){b.a.Notice.success(b.a.I18n.t("newsletterDuplicated").replace("%$1s",e.data.subject)),t()})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}},{name:"edit",link:function(e){return h.a.createElement("a",{href:"?page=mailpoet-newsletter-editor&id=".concat(e.id)},b.a.I18n.t("edit"))}},{name:"trash"}];ci=gt(ci);var ui=function(e){function t(e){var a;return k()(this,t),a=C()(this,x()(t).call(this,e)),ne()(A()(a),"updateStatus",(function(e){e.persist(),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"setStatus",data:{id:Number(e.target.getAttribute("data-id")),status:e.target.value}}).done((function(e){"active"===e.data.status&&b.a.Notice.success(b.a.I18n.t("welcomeEmailActivated")),a.forceUpdate()})).fail((function(t){b.a.Notice.showApiErrorNotice(t),e.target.value=t.status}))})),ne()(A()(a),"renderStatus",(function(e){var t=b.a.I18n.t("sentToXSubscribers").replace("%$1d",e.total_sent.toLocaleString()),n=b.a.I18n.t("scheduledToXSubscribers").replace("%$1d",e.total_scheduled.toLocaleString());return h.a.createElement("div",null,h.a.createElement("p",null,h.a.createElement("select",{"data-id":e.id,defaultValue:e.status,onChange:a.updateStatus},h.a.createElement("option",{value:"active"},b.a.I18n.t("active")),h.a.createElement("option",{value:"draft"},b.a.I18n.t("inactive")))),h.a.createElement("p",null,h.a.createElement(Ke.b,{to:"/sending-status/".concat(e.id),"data-automation-id":"sending_status_".concat(e.id)},t)," ",h.a.createElement("br",null),n))})),ne()(A()(a),"renderSettings",(function(e){var t,a,n;switch(e.options.event){case"user":t="mailpoet_all"===e.options.role?b.a.I18n.t("welcomeEventWPUserAnyRole"):b.a.I18n.t("welcomeEventWPUserWithRole").replace("%$1s",ni[e.options.role]);break;default:if(void 0===(n=X()(g.a).call(g.a,ri,(function(t){return Number(t.id)===Number(e.options.segment)}))))return h.a.createElement("span",{className:"mailpoet_error"},b.a.I18n.t("sendingToSegmentsNotSpecified"));t=b.a.I18n.t("welcomeEventSegment").replace("%$1s",n.name)}if(t&&"immediate"!==e.options.afterTimeType){switch(e.options.afterTimeType){case"minutes":a=b.a.I18n.t("sendingDelayMinutes").replace("%$1d",e.options.afterTimeNumber);break;case"hours":a=b.a.I18n.t("sendingDelayHours").replace("%$1d",e.options.afterTimeNumber);break;case"days":a=b.a.I18n.t("sendingDelayDays").replace("%$1d",e.options.afterTimeNumber);break;case"weeks":a=b.a.I18n.t("sendingDelayWeeks").replace("%$1d",e.options.afterTimeNumber);break;default:a=b.a.I18n.t("sendingDelayInvalid")}t+=" [".concat(a,"].")}return h.a.createElement("span",null,t)})),ne()(A()(a),"renderItem",(function(e,t){var n=Ye()("manage-column","column-primary","has-row-actions");return h.a.createElement("div",null,h.a.createElement("td",{className:n},h.a.createElement("strong",null,h.a.createElement("a",{className:"row-title",href:"?page=mailpoet-newsletter-editor&id=".concat(e.id)},e.subject)),t),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("status")},a.renderStatus(e)),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("settings")},a.renderSettings(e)),!0===ii?h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("statistics")},h.a.createElement(Tt,{newsletter:e,isSent:e.total_sent>0&&!!e.statistics})):null,h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("lastModifiedOn")},h.a.createElement("abbr",null,b.a.Date.format(e.updated_at))))})),a.state={newslettersCount:void 0},a}return O()(t,e),S()(t,[{key:"render",value:function(){var e=this;return h.a.createElement("div",null,h.a.createElement(lt,null),h.a.createElement(ht,{hasNews:window.mailpoet_feature_announcement_has_news}),h.a.createElement(jt,null),h.a.createElement(ot,{tab:"welcome"}),0===this.state.newslettersCount&&h.a.createElement(Lt,{filter:function(e){return"welcome"===e.slug},showHeader:!1}),0!==this.state.newslettersCount&&h.a.createElement(He.a,{limit:window.mailpoet_listing_per_page,location:this.props.location,params:this.props.match.params,endpoint:"newsletters",type:"welcome",base_url:"welcome",onRenderItem:this.renderItem,columns:oi,bulk_actions:li,item_actions:ci,messages:si,auto_refresh:!0,sort_by:"updated_at",sort_order:"desc",afterGetItems:function(t){if(!t.loading){var a,n=be()(a=t.groups).call(a,(function(e,t){return e+t.count}),0);e.setState({newslettersCount:n})}vt(t),_t(t)}}))}}]),t}(h.a.Component);ui.propTypes={location:q.a.object.isRequired,match:q.a.shape({params:q.a.object}).isRequired};var pi=ui,di={onNoItemsFound:function(e,t){return b.a.I18n.t(t?"noItemsFound":"emptyListing")},onTrash:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterTrashed"):b.a.I18n.t("multipleNewslettersTrashed").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onDelete:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterDeleted"):b.a.I18n.t("multipleNewslettersDeleted").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)},onRestore:function(e){var t=Number(e.meta.count),a=null;a=1===t?b.a.I18n.t("oneNewsletterRestored"):b.a.I18n.t("multipleNewslettersRestored").replace("%$1d",t.toLocaleString()),b.a.Notice.success(a)}},mi=[{name:"subject",label:b.a.I18n.t("subject"),sortable:!0},{name:"status",label:b.a.I18n.t("status"),width:100},{name:"settings",label:b.a.I18n.t("settings")},{name:"history",label:b.a.I18n.t("history"),width:100},{name:"updated_at",label:b.a.I18n.t("lastModifiedOn"),sortable:!0}],hi=[{name:"trash",label:b.a.I18n.t("moveToTrash"),onSuccess:di.onTrash}],fi=[{name:"view",link:function(e){return h.a.createElement("a",{href:e.preview_url,target:"_blank",rel:"noopener noreferrer"},b.a.I18n.t("preview"))}},{name:"edit",link:function(e){return h.a.createElement("a",{href:"?page=mailpoet-newsletter-editor&id=".concat(e.id)},b.a.I18n.t("edit"))}},{name:"duplicate",label:b.a.I18n.t("duplicate"),onClick:function(e,t){return b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"duplicate",data:{id:e.id}}).done((function(e){b.a.Notice.success(b.a.I18n.t("newsletterDuplicated").replace("%$1s",e.data.subject)),t()})).fail((function(e){var t;e.errors.length>0&&b.a.Notice.error(d()(t=e.errors).call(t,(function(e){return e.message})),{scroll:!0})}))}},{name:"trash"}],gi=function(e){function t(e){var a;return k()(this,t),a=C()(this,x()(t).call(this,e)),ne()(A()(a),"updateStatus",(function(e){e.persist(),b.a.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"newsletters",action:"setStatus",data:{id:Number(e.target.getAttribute("data-id")),status:e.target.value}}).done((function(e){"active"===e.data.status&&b.a.Notice.success(b.a.I18n.t("postNotificationActivated")),a.forceUpdate()})).fail((function(t){b.a.Notice.showApiErrorNotice(t),e.target.value=t.status}))})),ne()(A()(a),"renderStatus",(function(e){return h.a.createElement("select",{"data-id":e.id,defaultValue:e.status,onChange:a.updateStatus},h.a.createElement("option",{value:"active"},b.a.I18n.t("active")),h.a.createElement("option",{value:"draft"},b.a.I18n.t("inactive")))})),ne()(A()(a),"renderSettings",(function(e){var t,a,n=d()(t=e.segments).call(t,(function(e){return e.name})),r=b.a.I18n.t("ifNewContentToSegments").replace("%$1s",n.join(", "));if(0===n.length)return h.a.createElement("span",{className:"mailpoet_error"},b.a.I18n.t("sendingToSegmentsNotSpecified"));switch(e.options.intervalType){case"daily":a=b.a.I18n.t("sendDaily").replace("%$1s",Se[e.options.timeOfDay]);break;case"weekly":a=b.a.I18n.t("sendWeekly").replace("%$1s",Ne[e.options.weekDay]).replace("%$2s",Se[e.options.timeOfDay]);break;case"monthly":a=b.a.I18n.t("sendMonthly").replace("%$1s",Ce[e.options.monthDay]).replace("%$2s",Se[e.options.timeOfDay]);break;case"nthWeekDay":a=b.a.I18n.t("sendNthWeekDay").replace("%$1s",Te[e.options.nthWeekDay]).replace("%$2s",Ne[e.options.weekDay]).replace("%$3s",Se[e.options.timeOfDay]);break;case"immediately":a=b.a.I18n.t("sendImmediately");break;default:a="Invalid sending frequency"}return h.a.createElement("span",null,a," ",r)})),ne()(A()(a),"renderHistoryLink",(function(e){return 0===Number(e.children_count)?b.a.I18n.t("notSentYet"):h.a.createElement(Ke.b,{"data-automation-id":"history-".concat(e.id),to:"/notification/history/".concat(e.id)},b.a.I18n.t("viewHistory"))})),ne()(A()(a),"renderItem",(function(e,t){var n=Ye()("manage-column","column-primary","has-row-actions");return h.a.createElement("div",null,h.a.createElement("td",{className:n},h.a.createElement("strong",null,h.a.createElement("a",{className:"row-title",href:"?page=mailpoet-newsletter-editor&id=".concat(e.id)},e.subject)),t),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("status")},a.renderStatus(e)),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("settings")},a.renderSettings(e)),h.a.createElement("td",{className:"column","data-colname":b.a.I18n.t("history")},a.renderHistoryLink(e)),h.a.createElement("td",{className:"column-date","data-colname":b.a.I18n.t("lastModifiedOn")},h.a.createElement("abbr",null,b.a.Date.format(e.updated_at))))})),a.state={newslettersCount:void 0},a}return O()(t,e),S()(t,[{key:"render",value:function(){var e=this;return h.a.createElement("div",null,h.a.createElement(lt,null),h.a.createElement(ht,{hasNews:window.mailpoet_feature_announcement_has_news}),h.a.createElement(jt,null),h.a.createElement(ot,{tab:"notification"}),0===this.state.newslettersCount&&h.a.createElement(Lt,{filter:function(e){return"notification"===e.slug},showHeader:!1}),0!==this.state.newslettersCount&&h.a.createElement(He.a,{limit:window.mailpoet_listing_per_page,location:this.props.location,params:this.props.match.params,endpoint:"newsletters",type:"notification",base_url:"notification",onRenderItem:this.renderItem,columns:mi,bulk_actions:hi,item_actions:fi,messages:di,auto_refresh:!0,sort_by:"upda