@emailmaker/emailmaker 1.0.19 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/translations.pot CHANGED
@@ -662,17 +662,17 @@ msgstr[1] ""
662
662
 
663
663
  #: src/helpers/index.js:495
664
664
  #: src/modules/components/Atoms/Atoms.jsx:220
665
- #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:330
665
+ #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:331
666
666
  msgid "Coming soon"
667
667
  msgstr ""
668
668
 
669
669
  #: src/helpers/index.js:496
670
- #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:331
670
+ #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:332
671
671
  msgid "The feature is under development."
672
672
  msgstr ""
673
673
 
674
674
  #: src/helpers/index.js:497
675
- #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:332
675
+ #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:333
676
676
  msgid "Ok. I'll be waiting"
677
677
  msgstr ""
678
678
 
@@ -1056,93 +1056,93 @@ msgstr ""
1056
1056
  msgid "Email builder for your teamwork"
1057
1057
  msgstr ""
1058
1058
 
1059
- #: src/modules/components/BillingPage/BillingPage.jsx:367
1059
+ #: src/modules/components/BillingPage/BillingPage.jsx:370
1060
1060
  #: src/modules/components/ProjectMenuLeft/ProjectMenuLeft.jsx:178
1061
1061
  msgid "Billing"
1062
1062
  msgstr ""
1063
1063
 
1064
- #: src/modules/components/BillingPage/BillingPage.jsx:488
1064
+ #: src/modules/components/BillingPage/BillingPage.jsx:491
1065
1065
  msgid "Bill yearly (-15%)"
1066
1066
  msgstr ""
1067
1067
 
1068
- #: src/modules/components/BillingPage/BillingPage.jsx:489
1068
+ #: src/modules/components/BillingPage/BillingPage.jsx:492
1069
1069
  msgid "Bill monthly"
1070
1070
  msgstr ""
1071
1071
 
1072
- #: src/modules/components/BillingPage/BillingPage.jsx:507
1072
+ #: src/modules/components/BillingPage/BillingPage.jsx:510
1073
1073
  msgid "Use promocode"
1074
1074
  msgstr ""
1075
1075
 
1076
- #: src/modules/components/BillingPage/BillingPage.jsx:589
1076
+ #: src/modules/components/BillingPage/BillingPage.jsx:592
1077
1077
  msgid "By request"
1078
1078
  msgstr ""
1079
1079
 
1080
- #: src/modules/components/BillingPage/BillingPage.jsx:599
1080
+ #: src/modules/components/BillingPage/BillingPage.jsx:602
1081
1081
  msgid "/ month"
1082
1082
  msgstr ""
1083
1083
 
1084
- #: src/modules/components/BillingPage/BillingPage.jsx:648
1084
+ #: src/modules/components/BillingPage/BillingPage.jsx:651
1085
1085
  msgid "Switching is not possible due to exceeding the limit"
1086
1086
  msgstr ""
1087
1087
 
1088
- #: src/modules/components/BillingPage/BillingPage.jsx:653
1088
+ #: src/modules/components/BillingPage/BillingPage.jsx:656
1089
1089
  msgid "Current plan"
1090
1090
  msgstr ""
1091
1091
 
1092
- #: src/modules/components/BillingPage/BillingPage.jsx:655
1092
+ #: src/modules/components/BillingPage/BillingPage.jsx:658
1093
1093
  msgid "Contact us"
1094
1094
  msgstr ""
1095
1095
 
1096
- #: src/modules/components/BillingPage/BillingPage.jsx:656
1096
+ #: src/modules/components/BillingPage/BillingPage.jsx:659
1097
1097
  msgid "Switch to this plan"
1098
1098
  msgstr ""
1099
1099
 
1100
- #: src/modules/components/BillingPage/BillingPage.jsx:667
1101
- msgid "Your discount with the promo code:"
1100
+ #: src/modules/components/BillingPage/BillingPage.jsx:670
1101
+ msgid "Your discount with the promo code: "
1102
1102
  msgstr ""
1103
1103
 
1104
- #: src/modules/components/BillingPage/BillingPage.jsx:676
1104
+ #: src/modules/components/BillingPage/BillingPage.jsx:679
1105
1105
  msgid "Paid until: "
1106
1106
  msgstr ""
1107
1107
 
1108
- #: src/modules/components/BillingPage/BillingPage.jsx:693
1108
+ #: src/modules/components/BillingPage/BillingPage.jsx:696
1109
1109
  msgid "Recurring payments"
1110
1110
  msgstr ""
1111
1111
 
1112
- #: src/modules/components/BillingPage/BillingPage.jsx:701
1112
+ #: src/modules/components/BillingPage/BillingPage.jsx:704
1113
1113
  msgid "Usage"
1114
1114
  msgstr ""
1115
1115
 
1116
- #: src/modules/components/BillingPage/BillingPage.jsx:709
1116
+ #: src/modules/components/BillingPage/BillingPage.jsx:712
1117
1117
  msgid " email"
1118
1118
  msgid_plural " emails"
1119
1119
  msgstr[0] ""
1120
1120
  msgstr[1] ""
1121
1121
 
1122
- #: src/modules/components/BillingPage/BillingPage.jsx:722
1122
+ #: src/modules/components/BillingPage/BillingPage.jsx:725
1123
1123
  msgid " project"
1124
1124
  msgid_plural " projects"
1125
1125
  msgstr[0] ""
1126
1126
  msgstr[1] ""
1127
1127
 
1128
- #: src/modules/components/BillingPage/BillingPage.jsx:741
1128
+ #: src/modules/components/BillingPage/BillingPage.jsx:744
1129
1129
  msgid " member"
1130
1130
  msgid_plural " members"
1131
1131
  msgstr[0] ""
1132
1132
  msgstr[1] ""
1133
1133
 
1134
- #: src/modules/components/BillingPage/BillingPage.jsx:756
1134
+ #: src/modules/components/BillingPage/BillingPage.jsx:759
1135
1135
  msgid " preview"
1136
1136
  msgid_plural " previews"
1137
1137
  msgstr[0] ""
1138
1138
  msgstr[1] ""
1139
1139
 
1140
- #: src/modules/components/BillingPage/BillingPage.jsx:767
1140
+ #: src/modules/components/BillingPage/BillingPage.jsx:770
1141
1141
  #: src/modules/components/Optimise/Optimise.jsx:399
1142
1142
  msgid "of"
1143
1143
  msgstr ""
1144
1144
 
1145
- #: src/modules/components/BillingPage/BillingPage.jsx:769
1145
+ #: src/modules/components/BillingPage/BillingPage.jsx:772
1146
1146
  msgid " optimisation"
1147
1147
  msgid_plural " optimisations"
1148
1148
  msgstr[0] ""
@@ -1736,7 +1736,7 @@ msgid "Role"
1736
1736
  msgstr ""
1737
1737
 
1738
1738
  #: src/modules/components/DiscussAi/DiscussAi.jsx:601
1739
- #: src/modules/components/EmailPane/EmailPane.jsx:2015
1739
+ #: src/modules/components/EmailPane/EmailPane.jsx:2020
1740
1740
  msgid "Warning"
1741
1741
  msgstr ""
1742
1742
 
@@ -2049,43 +2049,43 @@ msgid "Last update: "
2049
2049
  msgstr ""
2050
2050
 
2051
2051
  #: src/modules/components/ElementPreviewMenu/ElementPreviewMenu.jsx:125
2052
- #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:173
2052
+ #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:175
2053
2053
  msgid "Upgrade your plan to use this feature"
2054
2054
  msgstr ""
2055
2055
 
2056
2056
  #: src/modules/components/ElementPreviewMenu/ElementPreviewMenu.jsx:129
2057
- #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:171
2057
+ #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:173
2058
2058
  msgid "Available on the Personal plan and higher."
2059
2059
  msgstr ""
2060
2060
 
2061
2061
  #: src/modules/components/ElementPreviewMenu/ElementPreviewMenu.jsx:133
2062
- #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:175
2062
+ #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:177
2063
2063
  msgid "Choose your plan"
2064
2064
  msgstr ""
2065
2065
 
2066
2066
  #: src/modules/components/ElementPreviewMenu/ElementPreviewMenu.jsx:134
2067
- #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:176
2067
+ #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:178
2068
2068
  msgid "Close & continue"
2069
2069
  msgstr ""
2070
2070
 
2071
2071
  #: src/modules/components/ElementPreviewMenu/ElementPreviewMenu.jsx:200
2072
- #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:291
2072
+ #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:293
2073
2073
  msgid "Live preview"
2074
2074
  msgstr ""
2075
2075
 
2076
2076
  #: src/modules/components/ElementPreviewMenu/ElementPreviewMenu.jsx:216
2077
- #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:489
2077
+ #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:491
2078
2078
  #: src/modules/components/SendTestEmailModal/SendTestEmailModal.jsx:287
2079
2079
  msgid "Send a test email"
2080
2080
  msgstr ""
2081
2081
 
2082
2082
  #: src/modules/components/ElementPreviewMenu/ElementPreviewMenu.jsx:227
2083
- #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:316
2083
+ #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:318
2084
2084
  msgid "Share"
2085
2085
  msgstr ""
2086
2086
 
2087
2087
  #: src/modules/components/ElementPreviewMenu/ElementPreviewMenu.jsx:66
2088
- #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:141
2088
+ #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:143
2089
2089
  msgid "A shareable link to this page has been copied to the clipboard."
2090
2090
  msgstr ""
2091
2091
 
@@ -2126,146 +2126,146 @@ msgstr ""
2126
2126
  msgid "Enter preheader here"
2127
2127
  msgstr ""
2128
2128
 
2129
- #: src/modules/components/EmailPane/EmailPane.jsx:1006
2129
+ #: src/modules/components/EmailPane/EmailPane.jsx:1011
2130
2130
  msgid "Discuss"
2131
2131
  msgstr ""
2132
2132
 
2133
- #: src/modules/components/EmailPane/EmailPane.jsx:1055
2133
+ #: src/modules/components/EmailPane/EmailPane.jsx:1060
2134
2134
  msgid "Success"
2135
2135
  msgstr ""
2136
2136
 
2137
- #: src/modules/components/EmailPane/EmailPane.jsx:1101
2137
+ #: src/modules/components/EmailPane/EmailPane.jsx:1106
2138
2138
  msgid "Clear chat"
2139
2139
  msgstr ""
2140
2140
 
2141
- #: src/modules/components/EmailPane/EmailPane.jsx:1120
2141
+ #: src/modules/components/EmailPane/EmailPane.jsx:1125
2142
2142
  #: src/modules/components/ModalToChangeConfigOnFree/ModalToChangeConfigOnFree.jsx:105
2143
2143
  msgid "AI assistant"
2144
2144
  msgstr ""
2145
2145
 
2146
- #: src/modules/components/EmailPane/EmailPane.jsx:1140
2146
+ #: src/modules/components/EmailPane/EmailPane.jsx:1145
2147
2147
  #: src/modules/components/PreviewMode/PreviewMode.jsx:392
2148
2148
  msgid "Save the block before commenting."
2149
2149
  msgstr ""
2150
2150
 
2151
- #: src/modules/components/EmailPane/EmailPane.jsx:1147
2151
+ #: src/modules/components/EmailPane/EmailPane.jsx:1152
2152
2152
  #: src/modules/components/PreviewMode/PreviewMode.jsx:394
2153
2153
  msgid "Save the email before commenting."
2154
2154
  msgstr ""
2155
2155
 
2156
- #: src/modules/components/EmailPane/EmailPane.jsx:1200
2156
+ #: src/modules/components/EmailPane/EmailPane.jsx:1205
2157
2157
  msgid "Optimize"
2158
2158
  msgstr ""
2159
2159
 
2160
- #: src/modules/components/EmailPane/EmailPane.jsx:1640
2160
+ #: src/modules/components/EmailPane/EmailPane.jsx:1645
2161
2161
  msgid "Code mode"
2162
2162
  msgstr ""
2163
2163
 
2164
- #: src/modules/components/EmailPane/EmailPane.jsx:1732
2164
+ #: src/modules/components/EmailPane/EmailPane.jsx:1737
2165
2165
  msgid "Mobile S – 320px"
2166
2166
  msgstr ""
2167
2167
 
2168
- #: src/modules/components/EmailPane/EmailPane.jsx:1747
2168
+ #: src/modules/components/EmailPane/EmailPane.jsx:1752
2169
2169
  msgid "Mobile M – 375px"
2170
2170
  msgstr ""
2171
2171
 
2172
- #: src/modules/components/EmailPane/EmailPane.jsx:1760
2172
+ #: src/modules/components/EmailPane/EmailPane.jsx:1765
2173
2173
  msgid "Mobile L – 425px"
2174
2174
  msgstr ""
2175
2175
 
2176
- #: src/modules/components/EmailPane/EmailPane.jsx:1768
2176
+ #: src/modules/components/EmailPane/EmailPane.jsx:1773
2177
2177
  msgid "Mobile view"
2178
2178
  msgstr ""
2179
2179
 
2180
- #: src/modules/components/EmailPane/EmailPane.jsx:1790
2180
+ #: src/modules/components/EmailPane/EmailPane.jsx:1795
2181
2181
  msgid "Small desktop – 768px"
2182
2182
  msgstr ""
2183
2183
 
2184
- #: src/modules/components/EmailPane/EmailPane.jsx:1798
2184
+ #: src/modules/components/EmailPane/EmailPane.jsx:1803
2185
2185
  msgid "Desktop view"
2186
2186
  msgstr ""
2187
2187
 
2188
- #: src/modules/components/EmailPane/EmailPane.jsx:1820
2188
+ #: src/modules/components/EmailPane/EmailPane.jsx:1825
2189
2189
  #: src/modules/components/SelectedElementFormShow/SelectedElementFormShow.jsx:25
2190
2190
  msgid "Desktop"
2191
2191
  msgstr ""
2192
2192
 
2193
- #: src/modules/components/EmailPane/EmailPane.jsx:1904
2193
+ #: src/modules/components/EmailPane/EmailPane.jsx:1909
2194
2194
  msgid "Designer mode"
2195
2195
  msgstr ""
2196
2196
 
2197
- #: src/modules/components/EmailPane/EmailPane.jsx:1912
2197
+ #: src/modules/components/EmailPane/EmailPane.jsx:1917
2198
2198
  msgid "Editor mode"
2199
2199
  msgstr ""
2200
2200
 
2201
- #: src/modules/components/EmailPane/EmailPane.jsx:1937
2201
+ #: src/modules/components/EmailPane/EmailPane.jsx:1942
2202
2202
  msgid "Simple mode"
2203
2203
  msgstr ""
2204
2204
 
2205
- #: src/modules/components/EmailPane/EmailPane.jsx:1947
2205
+ #: src/modules/components/EmailPane/EmailPane.jsx:1952
2206
2206
  msgid "Pro mode"
2207
2207
  msgstr ""
2208
2208
 
2209
- #: src/modules/components/EmailPane/EmailPane.jsx:2016
2209
+ #: src/modules/components/EmailPane/EmailPane.jsx:2021
2210
2210
  msgid "Clear chat history?"
2211
2211
  msgstr ""
2212
2212
 
2213
- #: src/modules/components/EmailPane/EmailPane.jsx:723
2213
+ #: src/modules/components/EmailPane/EmailPane.jsx:728
2214
2214
  msgid "Elements"
2215
2215
  msgstr ""
2216
2216
 
2217
- #: src/modules/components/EmailPane/EmailPane.jsx:730
2217
+ #: src/modules/components/EmailPane/EmailPane.jsx:735
2218
2218
  #: src/modules/components/ProjectBlocksPage/ProjectBlocksPage.jsx:81
2219
2219
  #: src/modules/components/ProjectMenuLeft/ProjectMenuLeft.jsx:278
2220
2220
  #: src/modules/components/ProjectsTable/ProjectsTable.jsx:155
2221
2221
  msgid "Blocks"
2222
2222
  msgstr ""
2223
2223
 
2224
- #: src/modules/components/EmailPane/EmailPane.jsx:746
2224
+ #: src/modules/components/EmailPane/EmailPane.jsx:751
2225
2225
  msgid "Empty blocks"
2226
2226
  msgstr ""
2227
2227
 
2228
- #: src/modules/components/EmailPane/EmailPane.jsx:756
2228
+ #: src/modules/components/EmailPane/EmailPane.jsx:761
2229
2229
  msgid "Saved blocks"
2230
2230
  msgstr ""
2231
2231
 
2232
- #: src/modules/components/EmailPane/EmailPane.jsx:766
2232
+ #: src/modules/components/EmailPane/EmailPane.jsx:771
2233
2233
  msgid "Common blocks"
2234
2234
  msgstr ""
2235
2235
 
2236
- #: src/modules/components/EmailPane/EmailPane.jsx:776
2236
+ #: src/modules/components/EmailPane/EmailPane.jsx:781
2237
2237
  msgid "Template blocks"
2238
2238
  msgstr ""
2239
2239
 
2240
- #: src/modules/components/EmailPane/EmailPane.jsx:786
2240
+ #: src/modules/components/EmailPane/EmailPane.jsx:791
2241
2241
  msgid "Blocks search"
2242
2242
  msgstr ""
2243
2243
 
2244
- #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:279
2244
+ #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:281
2245
2245
  msgid "Preview mode"
2246
2246
  msgstr ""
2247
2247
 
2248
- #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:333
2248
+ #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:335
2249
2249
  msgid "Left Code panel"
2250
2250
  msgstr ""
2251
2251
 
2252
- #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:348
2252
+ #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:350
2253
2253
  msgid "Right Code panel"
2254
2254
  msgstr ""
2255
2255
 
2256
- #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:363
2256
+ #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:365
2257
2257
  msgid "Bottom Code panel"
2258
2258
  msgstr ""
2259
2259
 
2260
- #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:379
2260
+ #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:381
2261
2261
  msgid "Undo (Ctrl+Z)"
2262
2262
  msgstr ""
2263
2263
 
2264
- #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:387
2264
+ #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:389
2265
2265
  msgid "Redo (Ctrl+Shift+Z)"
2266
2266
  msgstr ""
2267
2267
 
2268
- #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:397
2268
+ #: src/modules/components/EmailPreviewMenu/EmailPreviewMenu.jsx:399
2269
2269
  #: src/modules/components/HistoryPanel/HistoryPanel.jsx:227
2270
2270
  #: src/modules/components/ModalToChangeConfigOnFree/ModalToChangeConfigOnFree.jsx:67
2271
2271
  msgid "Version history"
@@ -2447,51 +2447,51 @@ msgstr ""
2447
2447
  msgid "Search GIFs"
2448
2448
  msgstr ""
2449
2449
 
2450
- #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:340
2450
+ #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:341
2451
2451
  msgid "To preview and edit the uploaded image"
2452
2452
  msgstr ""
2453
2453
 
2454
- #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:341
2454
+ #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:342
2455
2455
  msgid "Upload Image"
2456
2456
  msgstr ""
2457
2457
 
2458
- #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:471
2458
+ #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:472
2459
2459
  msgid "The image was successfully uploaded."
2460
2460
  msgstr ""
2461
2461
 
2462
- #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:610
2462
+ #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:611
2463
2463
  #: src/modules/components/UploadBgImage/UploadBgImage.jsx:211
2464
2464
  msgid "Upload"
2465
2465
  msgstr ""
2466
2466
 
2467
- #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:626
2467
+ #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:627
2468
2468
  msgid "Click to select, paste from the clipboard, or drag and drop"
2469
2469
  msgstr ""
2470
2470
 
2471
- #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:630
2471
+ #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:631
2472
2472
  msgid "Accepted formats: PNG, JPG, WEBP, SVG or GIF."
2473
2473
  msgstr ""
2474
2474
 
2475
- #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:640
2475
+ #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:641
2476
2476
  msgid "Paste image URL here"
2477
2477
  msgstr ""
2478
2478
 
2479
- #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:654
2479
+ #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:655
2480
2480
  #: src/modules/components/UploadBgImage/UploadBgImage.jsx:87
2481
2481
  msgid "Stock"
2482
2482
  msgstr ""
2483
2483
 
2484
- #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:677
2484
+ #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:678
2485
2485
  #: src/modules/components/UploadBgImage/UploadBgImage.jsx:91
2486
2486
  msgid "GIF"
2487
2487
  msgstr ""
2488
2488
 
2489
- #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:700
2489
+ #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:701
2490
2490
  #: src/modules/components/UploadBgImage/UploadBgImage.jsx:95
2491
2491
  msgid "AI"
2492
2492
  msgstr ""
2493
2493
 
2494
- #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:748
2494
+ #: src/modules/components/ImageLoaderModal/ImageLoaderModal.jsx:749
2495
2495
  msgid "Image Center"
2496
2496
  msgstr ""
2497
2497
 
@@ -4325,32 +4325,32 @@ msgctxt "letter"
4325
4325
  msgid "email"
4326
4326
  msgstr ""
4327
4327
 
4328
- #: src/modules/components/EmailPane/EmailPane.jsx:1071
4328
+ #: src/modules/components/EmailPane/EmailPane.jsx:1076
4329
4329
  msgctxt "tab"
4330
4330
  msgid "AI assistant"
4331
4331
  msgstr ""
4332
4332
 
4333
- #: src/modules/components/EmailPane/EmailPane.jsx:1171
4333
+ #: src/modules/components/EmailPane/EmailPane.jsx:1176
4334
4334
  msgctxt "tab"
4335
4335
  msgid "Optimize"
4336
4336
  msgstr ""
4337
4337
 
4338
- #: src/modules/components/EmailPane/EmailPane.jsx:1215
4338
+ #: src/modules/components/EmailPane/EmailPane.jsx:1220
4339
4339
  msgctxt "tab"
4340
4340
  msgid "Settings"
4341
4341
  msgstr ""
4342
4342
 
4343
- #: src/modules/components/EmailPane/EmailPane.jsx:903
4343
+ #: src/modules/components/EmailPane/EmailPane.jsx:908
4344
4344
  msgctxt "tab"
4345
4345
  msgid "Build"
4346
4346
  msgstr ""
4347
4347
 
4348
- #: src/modules/components/EmailPane/EmailPane.jsx:945
4348
+ #: src/modules/components/EmailPane/EmailPane.jsx:950
4349
4349
  msgctxt "tab"
4350
4350
  msgid "Styles"
4351
4351
  msgstr ""
4352
4352
 
4353
- #: src/modules/components/EmailPane/EmailPane.jsx:974
4353
+ #: src/modules/components/EmailPane/EmailPane.jsx:979
4354
4354
  #: src/modules/components/PreviewMode/PreviewMode.jsx:615
4355
4355
  msgctxt "tab"
4356
4356
  msgid "Discuss"
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[1795],{13329:(e,t,i)=>{i.d(t,{D3:()=>u,RS:()=>l});var n=i(45934),s=i(92810),o=i(41664),a=i(23397),r=i(23580),c=i(95152);const d=(0,o.Q)();function l(e,t,i){e instanceof c.m||(e=(0,r.My)(e));e.getOrCreateInstance(d,(()=>new a.v)).fire({id:t,payload:i})}const u=(e,t)=>{const i=function(e,t){return(0,r.My)(e).getOrCreateInstance(d,(()=>new a.v)).addEventListener}((0,n.Pj)());(0,s.useEffect)((()=>{const n=i((({id:i,payload:n})=>{i===e&&t(n)}));return()=>n.dispose()}),[i,e,t])}},95152:(e,t,i)=>{i.d(t,{m:()=>a});var n=i(23397),s=i(77509);function o(e){return`service_container_${e}`}class a extends s.j{constructor(e){super(),this._parent=e,this._injections=Object.create(null),this._emitter=this.addDisposable(new n.v)}inject(e,t,i){if("function"===typeof t){let n=this._injections[e],s="function"===typeof n?n():n;const o=this._injections[e]=()=>(s=t(this,s),s);i&&o()}else this._injections[e]=()=>t;this._emitter.fire(e)}_find(e){var t;return this._injections[e]||(null===(t=this._parent)||void 0===t?void 0:t._find(e))}_onInject(e,t,i=new s.j){return i.addDisposable(this._emitter.addEventListener((n=>{e===n&&(i.dispose(),t(this.getInstance(n)))}))),this._parent&&i.addDisposable(this._parent._onInject(e,t,i)),this.addDisposable(i),i}getInstance(e){const t=this._find(e);if("function"===typeof t)return t()}getOrCreateInstance(e,t){const i=this._find(e);if("function"===typeof i)return i();{const i=t(this);return this.inject(e,i),i}}getInstanceAsync(e){const t=this._find(e);return"function"===typeof t?Promise.resolve(t()):new Promise((t=>this._onInject(e,(()=>t(this.getInstance(e))))))}addService(e,t){const i=o(e);this.inject(i,((e,i=[])=>i.indexOf(t)<0?[...i,t]:i));const n=new s.j;return n.addDispose((()=>{this.inject(i,((e,i=[])=>i.filter((e=>e!==t))))})),n}getServices(e){var t;const i=o(e);return[...this.getInstance(i)||[],...(null===(t=this._parent)||void 0===t?void 0:t.getServices(e))||[]]}createChild(){return new a(this)}dispose(){this._injections=Object.create(null)}}},23397:(e,t,i)=>{i.d(t,{v:()=>s});var n=i(77509);class s extends n.j{constructor(e){super(),this._options=e,this._listeners=[],this.fire=e=>{if(!this.isDisposed()){let t;const i=this._listeners;for(const n of i){if(!1===t)return!1;t=t instanceof Promise?t.then((e=>!1!==e&&!this.isDisposed()&&n(e))).catch((e=>console.log(e))):n(e)}return t}},this.addEventListener=e=>{const t=this._listeners;var i;(t.push(e),1===t.length)&&((null===(i=this._options)||void 0===i?void 0:i.onFirstListenerAdd)&&this._options.onFirstListenerAdd());return{dispose:()=>{const i=t.indexOf(e);var n;i>=0&&(t.splice(i),t.length||(null===(n=this._options)||void 0===n?void 0:n.onFirstListenerAdd)&&this._options.onLastListenerRemove())}}},this.event=this.addEventListener}}let o;!function(e){function t(e){let t;const i=new s({onFirstListenerAdd(){t=e(i.fire)},onLastListenerRemove(){t.dispose()}});return i.event}e.snapshot=t,e.filter=function(e,i){return t((t=>e((e=>i(e)&&t(e)))))},e.map=function(e,i){return t((t=>e((e=>t(i(e))))))}}(o||(o={}))},93982:(e,t,i)=>{i.d(t,{Zc:()=>d,_q:()=>l,cZ:()=>r,dB:()=>c,ml:()=>u});var n=i(45934),s=i(41664),o=i(23580),a=i(55654);function r(e){return(0,s.Q)(e)}function c(e,t){return(0,o.My)(e).getOrCreateInstance(t,(()=>new a.lt))}function d(e,t){return(0,o.My)(e).getOrCreateInstance(t,(()=>new a.lt)).event}function l(e){return u(e).event}function u(e){return c((0,n.Pj)(),e)}},32269:(e,t,i)=>{i.d(t,{Cb:()=>W,Cl:()=>m,DI:()=>L,Dx:()=>k,EU:()=>B,HT:()=>X,Hy:()=>$,Id:()=>p,Np:()=>O,Qi:()=>z,Tr:()=>G,X7:()=>F,XZ:()=>x,Yq:()=>v,Z1:()=>H,_9:()=>U,_q:()=>Z,au:()=>T,d_:()=>P,el:()=>E,ez:()=>S,fq:()=>g,gq:()=>D,i0:()=>N,iV:()=>R,jG:()=>d.j,p6:()=>C,sh:()=>V,vl:()=>l.v,wB:()=>A});var n=i(74267),s=i(92810),o=i(85163),a=i(1741),r=i.n(a),c=i(45695),d=i(77509),l=i(23397),u=i(71210),h=i(70082);const p=e=>{Object.keys(o.A9).forEach((t=>{"onboarding_success"!==e.get(o.A9[t])&&e.remove(o.A9[t])}))};function m(e){const t=(0,n.A)(e);return isNaN(t)?new Date(e):t}const v=(e,t,i=!1)=>{Date;const n=new Date,s=e.getDate()===n.getDate()&&e.getMonth()===n.getMonth()&&e.getFullYear()===n.getFullYear();if(i&&s){const i=Math.floor((n-e)/1e3),s=Math.floor(i/60),o=Math.floor(s/60);if(i<60)return t("Just now");if(o>0){const e=s%60;return`${o} ${t("hour","hours",o)} ${e} ${t("minute","minutes",e)}`}return`${s} ${t("minute","minutes",s)}`}{const t=new Intl.DateTimeFormat(navigator.language,{dateStyle:"short"}),i=new Intl.DateTimeFormat(navigator.language,{timeStyle:"short"});return t.format(e)+" "+i.format(e)}},g=e=>{const t=e.match(/(\(copy\))( \d+)?$/),i=null===t||void 0===t?void 0:t[1],n=null===t||void 0===t?void 0:t[2];return i?n?`${e.slice(0,-n.length)} ${+n.slice(1)+1}`:`${e} 2`:`${e} (copy)`};function f(e,t,i){const n=new Map,s=new RegExp(`(${t})(.*?)(${i})`,"gis");return e=e.replaceAll(s,((e,t,i,s)=>{const o=(0,u.l)();return n.set(o,i),t+o+s})),{escapes:n,html:e}}function _(e,t){let i=[];for(const[n,s]of t){const{escapes:t,html:o}=f(e,n,s);e=o,i.push([n,s,t])}return{escapes:i,html:e}}function y(e,t,i,n){const s=new RegExp(`(${t})(.*?)(${i})`,"gis");return e.replaceAll(s,((e,t,i,s)=>{const o=n.get(i);return"string"===typeof o?t+o+s:e}))}const w=/<title>(.*)<\/title>/gm,E=(e,t)=>{let{escapes:i,html:n}=_(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return n=n.replaceAll(w,((e,i)=>i===t?`<title>${g(i)}</title>`:e)),function(e,t){for(const[i,n,s]of t)e=y(e,i,n,s);return e}(n,i.reverse())};function S(e){let{html:t}=_(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return[...t.matchAll(w)].map((e=>e[1])).find((e=>!!e))}const b="bottomRight",C=(e,t,i=b)=>{var n,s,o;t.error({innerException:e.error instanceof Error?e.error:void 0,message:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(n=e.error)||void 0===n||null===(s=n.data)||void 0===s?void 0:s.code)||e.error.status||e.error}}),description:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(o=e.error.data)||void 0===o?void 0:o.message)||e.error.error}}),placement:i})},A=(e,t,i=b)=>{t.success({message:e,placement:i})},I="ascend",j="descend",M="desc",D=e=>{switch(e){case I:return"asc";case j:return M;default:return""}},O=e=>{switch(e){case"asc":return I;case M:return j;default:return""}},k=e=>{const t=document.createElement("div");return t.className=e||"resizer",t},T=/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/,L=e=>new Promise(((t,i)=>{let n=new Image;n.src=e,n.addEventListener("load",(()=>{t("success")})),n.addEventListener("error",(()=>{i("error")})),n=null})),B=(e,t)=>{for(const i of t)"object"===typeof e.properties&&(e=e.properties[i]);return e},P=e=>e instanceof Array?e.map((e=>({label:e,value:e}))):Object.keys(e).map((t=>({label:e[t],value:t}))),N=(e,t,i=!0)=>{const n=Object.keys(t);for(const s of n){const n=t[s];void 0!==n&&null!==n&&(e[s]=i&&"object"===typeof n?N(e[s]||{},n,!0):n)}return e},R=e=>new Promise(((t,i)=>{r().load({google:{families:[e]},classes:!1,active:t,inactive:i})})),x=(e,t)=>{t&&e(t)},U=()=>{const e=(0,c.XW)();return(0,s.useCallback)(((t,i)=>{document.querySelectorAll(".block-search__preview").forEach((e=>e.remove()));const n=document.getElementById("iframe-scroll-top"),s=document.getElementById("iframe-scroll-bottom"),a=document.getElementById("email_iframe"),r=document.body.getBoundingClientRect().height,c=a.getClientRects()[0];c.top<0&&(n.style.display="block"),c.top+c.height>r&&(s.style.display="block");const d={operation:o.Ru.SANDBOX_BLOCK_INSERT,settings:{blockHTML:i||null,targetBlock:null,project:"emailmaker"}};t.dataTransfer.setData("Text",JSON.stringify(d)),e(d)}),[e])},z=()=>{const e=(0,c.XW)();return(0,s.useCallback)(((t,i,n)=>{const s=document.getElementById("iframe-scroll-top"),a=document.getElementById("iframe-scroll-bottom"),r=document.getElementById("email_iframe"),c=document.body.getBoundingClientRect().height,d=r.getClientRects()[0];d.top<0&&(s.style.display="block"),d.top+d.height>c&&(a.style.display="block");const l={operation:o.Ru.SANDBOX_ATOM_INSERT,settings:{atomHTML:i.html||null,targetBlock:null}};n(i)&&t.dataTransfer.setData("Text",JSON.stringify(l)),e(l)}),[e])},V=()=>{const e=(0,c.XW)();return(0,s.useCallback)(((t,i)=>{e({operation:o.Ru.SANDBOX_BLOCK_INSERT,action:"insert",settings:{blockHTML:i}})}),[e])},F=()=>{const e=(0,c.XW)();return(0,s.useCallback)(((t,i)=>{e({operation:o.Ru.SANDBOX_ATOM_INSERT,action:"insert",settings:{atomHTML:i}})}),[e])},H=(e,t)=>{t.success({maskClosable:!0,centered:!0,title:e("Coming soon"),content:e("The feature is under development."),okText:e("Ok. I'll be waiting"),onOk:()=>{}})},W=()=>{const e=(0,c.XW)();return(t,i)=>{e({operation:o.Ru.SANDBOX_ELEMENT_SETTINGS_SET,settings:t,type:i})}},Z=(e,t="")=>{var i,n;const s=[];return null===(i=e._embedded)||void 0===i||null===(n=i["wp:term"])||void 0===n||n.filter((e=>{var i;return!!e.length&&(!t||(null===(i=e[0])||void 0===i?void 0:i.taxonomy)===t)})).forEach((e=>{const t=e[0].taxonomy;s[t]||(s[t]=[]),s[t]=e.map((e=>({id:e.id,name:e.name,children:e.children}))),s[s.length]=s[t]})),""!==t&&s.length?s[t]:s},X=(e,t="")=>{var i,n,s,o,a;return(null===(i=e._embedded)||void 0===i||null===(n=i["wp:term"])||void 0===n||null===(s=n.find((e=>{var i;return!!e.length&&(!t||(null===(i=e[0])||void 0===i?void 0:i.taxonomy)===t)})))||void 0===s||null===(o=s.find((e=>{var t;return null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.startsWith("project_")})))||void 0===o||null===(a=o.children)||void 0===a?void 0:a.map((e=>({id:e.id,name:e.name,count:e.count}))))||null},$=(e,t)=>{const i=e.target,n=t.getBoundingClientRect().height,s=i.getBoundingClientRect().height-n,o=e.clientY-t.getBoundingClientRect().top-30,a=-s*(Math.min(Math.max(o,0),n-60)/(n-60));i.style.transform=`translateY(${a}px)`},G=({target:e})=>{e.style.transform="translateY(0)"}},20116:(e,t,i)=>{function n(e){return t=>{const i=t.query,n=t.queryFn||((e,t,n,s)=>s(i(e)));n&&(t.query=void 0,t.queryFn=async(t,i,s,o)=>{try{let a=await e(t);return"function"===typeof a&&(a=await a((async(e,t=i,a=s,r=o)=>{const c=await n(e,t,a,r);if(c.error)throw c.error;return c.data}))),{data:a,error:null}}catch(a){return{error:a}}})}}function s(){return n((()=>{}))}function o(e,t){const i={},s=Object.keys(t);for(const o of s)i[o]=n(t[o]);e.enhanceEndpoints({endpoints:i})}function a(e,t){for(const i of Object.keys(t))t[i](e)}i.d(t,{BD:()=>a,BX:()=>o,nM:()=>n,pl:()=>s})},98589:(e,t,i)=>{function n(e,t){if(e===t)return!0;if("object"===typeof e&&e&&"object"===typeof t&&t){const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(const o of i)if(!n(e[o],t[o]))return!1;return!0}return!1}function s(e,t){if(!e)return t;const i={};for(const s of Object.keys(t))n(t[s],e[s])||(i[s]=t[s]);return i}i.d(t,{g:()=>s})},91738:(e,t,i)=>{i.d(t,{AU:()=>l});var n=i(90854),s=i(58689),o=i(44824),a=i(85974),r=i(91391);const c=e=>function(e){var t;return function(e){return"___SCRIPT"===e.tagName}(e)&&(null===(t=e.src)||void 0===t?void 0:t.startsWith(r.gP))}(e)||(0,a.Nh)(e)||(0,n.BF)(e),d=e=>{if(c(e))return!0;if((0,n.vq)(e)||(0,n.wz)(e))for(const t of e.querySelectorAll("*"))if(c(t))return!0;return!1};async function l(e,t){"string"===typeof e&&(e={code:e});const i=e.code?await(0,s.PJ)(e.code||"",[s.qy],e.utm_parameters,(async e=>{void 0===t&&(t=d(e)),t&&await(0,o.e)(e,"html")})):"",n=e.code&&t?await(0,s.PJ)(e.code||"",[s.qy],e.utm_parameters,(async e=>{await(0,o.e)(e,"amp")})):"";return{...e,compiled:{html:i,ampHtml:n}}}},91366:(e,t,i)=>{i.d(t,{Qq:()=>v,PL:()=>f,KA:()=>g,wz:()=>_});var n=i(33288),s=i(41664),o=i(15230),a=i(32269),r=i(55654);class c extends r.IO{async execute([e],t){for(const i of t){const t=await i(e);t&&(void 0===t.id&&(t.id=e.value.id),e.value=t)}return e.value}}var d=i(98589);class l extends r.lt{}var u=i(56991);class h extends a.jG{constructor(...e){super(...e),this._items=new Map,this._onChangeEmitter=new r.HN,this.onChange=this._onChangeEmitter.event}async _getOrCreate(e,t){const i=this._items;let n;if(i.has(e))try{n=await i.get(e)}catch{t&&(n=await t())}else t&&(n=await t(),n&&this._onChangeEmitter.fire());return n}async _addOrUpdate(e,t){let i;const n=this._items;if(n.has(e))try{i=await n.get(e)}catch{}const s=await t(i);return(0,u.bD)(i,s)||this._onChangeEmitter.fire(),s}entries(){return Promise.all([...this._items.entries()].map((([e,t])=>t.then((t=>[e,t]))))).then((e=>e.filter((([e,t])=>!!t))))}values(){return Promise.all([...this._items.values()].map((e=>e)).filter((e=>!!e)))}getOrCreate(e,t){let i=this._getOrCreate(e,(()=>t(e)));return this._items.set(e,i),i}addOrUpdate(e,t){let i=this._addOrUpdate(e,t);return this._items.set(e,i),i}add(e,t){const i=Promise.resolve(t);return this._items.set(e,i),i}remove(e){if(this._items.has(e)){const t=this._items.get(e);return this._items.delete(e),this._onChangeEmitter.fire(),t}return Promise.resolve(void 0)}async setAll(e){try{this.suspendChange();const t=[],i=new Set(Array.from(e).map((([e,t])=>e))),n=(await this.entries()).filter((([e,t])=>!i.has(e)));for(const[s,o]of e)t.push(this.addOrUpdate(s,(()=>o))),i.add(s);for(const[e]of n)t.push(this.remove(e));return await Promise.all(t),n}finally{this.resumeChange()}}clear(){this._items.clear(),this._onChangeEmitter.fire()}suspendChange(){this._onChangeEmitter.suspend()}resumeChange(){this._onChangeEmitter.resume()}}var p=i(71210);class m extends a.jG{constructor(...e){super(...e),this._cache=new h,this._readEmitter=new r.lt,this._saveEmitter=this.addDisposable(new c),this._removeEmitter=this.addDisposable(new l),this._foreignCache=Object.create(null),this.handlerRead=this._readEmitter.event,this.onSave=this._saveEmitter.event,this.onRemove=this._removeEmitter.event,this.onChange=this._cache.onChange}async get(e){return this._cache.getOrCreate(e,(async t=>Object.assign({id:e},...(await this._readEmitter.fire(e)).filter((e=>!!e)))))}get cache(){return this._cache}byForeignKey(e){let t=this._foreignCache[e];if(!t){const i=this.addDisposable(new a.jG);i.addDispose((()=>delete this._foreignCache[e]));const n=i.addDisposable(new h),s=i.addDisposable(new r.lt);t=this._foreignCache[e]={get:async(t,i={})=>(await n.getOrCreate(t,(async()=>{try{const i=function(e=[]){if((e=e.filter((e=>e))).length<=1)return e[0];let t=new Map;for(const i of e)for(const e of i)if(void 0!==e.id){let i=t.get(e.id)||{};t.set(e.id,{...i,...e})}return[...t].map((([e,t])=>t))}(await s.fire(t))||[];for(const n of i)n[e]=t,await this._cache.add(n.id,n);return i}catch{return[]}})),function(e,{filter:t,order:i="asc",orderBy:n,page:s,pageSize:o=20}={}){const a=e.length;let r=e.length;if(void 0!==t){const i=Object.keys(t);r=(e=e.filter((e=>{for(const n of i){const i=e[n],s=t[n];return"id"===n||"string"!==typeof i?i===s:"string"===typeof s&&i.startsWith(s)}return!0}))).length}return n&&(e=e.sort(((e,t)=>(e[n]>t[n]?1:t[n]>e[n]?-1:0)*("asc"===i?1:-1)))),void 0!==s&&(e=e.slice(o*(s-1),o*s-1)),{data:e,filteredTotal:r,total:a,totalPages:Math.floor(a/o)}}(await this._cache.values(),i)),first:(e,i={})=>t.get(e,{...i,page:1,pageSize:1}).then((e=>e[0])),handleRead:s.event,clear(){n.clear()},dispose(){i.dispose()}}}return t}async create(e,{source:t="",silent:i}={}){let n=e;return i||(n=await this._saveEmitter.fire({prev:void 0,patch:e,value:n,source:t})),void 0===n.id&&(n.id=(0,p.l)()),await this._cache.addOrUpdate(n.id,(()=>n))}async update(e,t,{source:i="",silent:n}={}){return this._cache.addOrUpdate(e,(async e=>{let s=e?{...e,...t}:t;if(!n)return t=e?(0,d.g)(e,t):t,await this._saveEmitter.fire({prev:e,patch:t,value:s,source:i})}))}async remove(e,{source:t="",silent:i}={}){const n=await this._cache.remove(e);return i||await this._removeEmitter.fire({value:n,source:t}),n}refresh(){this._cache.clear();for(const e of Object.values(this._foreignCache))e.clear()}suspendChange(){this._cache.suspendChange()}resumeChange(){this._cache.resumeChange()}}i(18398);function v(){const e=(0,s.Q)();return t=>n.di.getOrCreateInstance(t,e,(()=>new m))}function g(e){const t=n.di.getInstance(e,o.ax);if(!t)throw new Error("Failed");return t}function f(e){const t=n.di.getInstance(e,o.Lz);if(!t)throw new Error("Failed");return t}function _(e){return g(e).getState().userSlice.currentUser}},13437:(e,t,i)=>{i.d(t,{A:()=>a,i:()=>o});var n=i(71210),s=i(814);function o({code:e,...t},i){var s,o;const a=i.getState();return{...t,...e?{html:e}:{},renderGuid:(0,n.l)(),project:null===(s=a.projectSlice)||void 0===s||null===(o=s.project)||void 0===o?void 0:o.id}}function a({html:e,renderGuid:t,...i},n){const o=n.getState(),{project:a}=o.configSlice;return(0,s.TB)({...i,code:e,project:void 0===a?i.project:a,guid:void 0,link:void 0,status:void 0,slug:void 0,password:void 0,comment_status:void 0,template:void 0,blocktags:void 0,project_title:void 0,ping_status:void 0,lock:void 0,tag:void 0,is_template:void 0})}},91253:(e,t,i)=>{i.d(t,{I:()=>o,y:()=>s});var n=i(814);function s(e,t,i){const n=t.getState();var s,o;void 0===i&&(i=void 0===e.post?null===(s=n.emailSlice)||void 0===s||null===(o=s.email)||void 0===o?void 0:o.id:e.post);return{...e,content:e.content?`<p>${e.content}</p>`:"",post:i}}function o(e,t){return(0,n.TB)({...e,link:void 0,comment_status:void 0})}},81304:(e,t,i)=>{i.d(t,{E:()=>a,I:()=>o});var n=i(71210),s=i(814);function o({code:e,...t},i){var s,o;const a=i.getState();return{...t,...e?{html:e}:{},renderGuid:(0,n.l)(),project:null===(s=a.projectSlice)||void 0===s||null===(o=s.project)||void 0===o?void 0:o.id,utm_parameters:t.utm_parameters||{},_embedded:void 0}}function a({html:e,renderGuid:t,...i},n){const o=n.getState(),{project:a,config:r}=o.configSlice;return(0,s.TB)({...i,code:e,project:void 0===a?i.project:a,utm_parameters:r.UTMEnabled?i.utm_parameters:void 0,tags:void 0,template:void 0,guid:void 0,emailtags:void 0,project_title:void 0,project_author:void 0,is_template:void 0,is_inited:void 0,compiled:(0,s.TB)({html:e,ampHtml:e&&""})})}},4453:(e,t,i)=>{i.d(t,{E:()=>o,_:()=>s});var n=i(814);function s({code:e,...t},i,n){const s=i.getState();var o,a;void 0===n&&(n=void 0===t.parent?null===(o=s.emailSlice)||void 0===o||null===(a=o.email)||void 0===a?void 0:a.id:t.parent);return{...t,...e?{html:e}:{},parent:n}}function o({html:e,...t},i){return(0,n.TB)({...t,code:e,guid:void 0,compiled:(0,n.TB)({html:e,ampHtml:e&&""})})}},23036:(e,t,i)=>{i.d(t,{Xy:()=>a,bg:()=>c,yc:()=>r});var n=i(20116),s=i(55701),o=i(91366);const a=(0,o.Qq)(),r=(0,o.Qq)();function c(e){const t=a(e),i=t.byForeignKey("project"),c=r(e),d=c.byForeignKey("parent"),{dispatch:l,getState:u}=(0,o.KA)(e),h=(0,o.PL)(e);h.addDisposable(t.onChange((()=>l(s.VM.util.invalidateTags(["Blocks"]))))),h.addDisposable(t.onSave((({prev:e,patch:t,value:i})=>{(e=e?{...e,...t}:t)&&i.html===e.html&&i.title===e.title&&(i.renderGuid=e.renderGuid)}),Number.MIN_VALUE)),(0,n.BX)(s.VM,{async getBlocks(e){const t={};e.name&&(t.title=e.name),e.type&&(t.type=e.type);return await i.get(e.projectId,{filter:t,page:e.page,pageSize:e.pageSize,order:e.order,orderBy:e.orderby}).then((({data:e})=>e))},getBlocksSchema:()=>e=>e({}),getParentEmailBlocks:e=>t=>t(e),getTemplateBlocks:e=>t=>t(e),async getBlock(e){const t=u().projectSlice.project.id;return i.first(t,{filter:{id:e}})},getBlockHistory:async({blockId:e,page:t=1})=>({...await d.get(e,{page:t}),args:{blockId:e,page:t}}),addBlock:e=>async i=>{const n=await t.create(e);return u().configSlice.config.preventSendDataToEM||i(n).catch((e=>console.log(e))),n},editBlock:({blockId:e,...i})=>t.update(e,i),deleteBlock:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveBlock:({blockId:e,body:t})=>c.create({...t,parent:e})})}},72788:(e,t,i)=>{i.d(t,{B:()=>c,D:()=>r});var n=i(18777),s=i(91366),o=i(68415),a=i(20116);const r=(0,s.Qq)();function c(e){const t=r(e),i=t.byForeignKey("post"),{dispatch:c}=(0,s.KA)(e);(0,s.PL)(e).addDisposable(t.onChange((()=>c(n.Jg.util.invalidateTags(["Comments"]))))),(0,a.BX)(n.Jg,{getComments:e=>i.get(e).then((({data:e})=>e)),addComment({subjectId:e,author:i,parent:n,content:s,author_name:a,author_email:r,targetId:c}){const d={post:e,author:i,author_name:a,author_email:r,content:s,parent:n,target_id:c,date:(0,o.A)(new Date),author_avatar_urls:{}};return t.create(d)},deleteComment:e=>t.remove(e),editComment:({commentId:e,...i})=>t.update(e,i),deleteTarget:e=>t.update(e,{target_id:""})})}},87265:(e,t,i)=>{i.d(t,{Av:()=>r,jw:()=>c,sE:()=>d});var n=i(17581),s=i(91366),o=i(71210),a=i(20116);const r=(0,s.Qq)(),c=(0,s.Qq)();function d(e){const t=r(e),i=c(e),d=i.byForeignKey("parent"),{dispatch:l}=(0,s.KA)(e),u=(0,s.PL)(e);u.addDisposable(t.onChange((async()=>{l(n.GY.util.invalidateTags(["Email"]))}))),u.addDisposable(i.onChange((()=>{l(n.GY.util.invalidateTags(["EmailAutosaves"]))}))),u.addDisposable(t.onSave((({prev:e,patch:t,value:i})=>{(e=e?{...e,...t}:t)&&i.subject===e.subject&&i.html===e.html&&i.preheader===e.preheader&&i.title===e.title&&(i.renderGuid=e.renderGuid)}),Number.MIN_VALUE)),(0,a.BX)(n.GY,{getEmails:e=>[],getTemplateEmails:e=>t=>t(e),getEmail:async e=>await t.get(e),getEmailHistory:async({emailId:e,page:t=1})=>({...await d.get(e,{page:t}),args:{emailId:e,page:t}}),async addEmail({source:e,...i}){const n=await t.create(i,{source:e});return n.renderGuid||(n.renderGuid=(0,o.l)()),n},editEmail:({emailId:e,source:i,...n})=>t.update(e,n,{source:i}),deleteEmail:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveEmail:async({emailId:e,body:t})=>await i.create({...t,parent:e,modified:(new Date).toString()})})}},43347:(e,t,i)=>{i.d(t,{Ri:()=>u,uS:()=>h});var n=i(15230),s=i(63531),o=i(33288),a=i(55654),r=i(93982),c=i(13522),d=i(20116);const l="tmp",u=o.di.createIdentifier();o.di.createIdentifier();function h(e){const t=o.di.getInstance(e,n.Lz);if(!t)throw new Error("Something was wrong");const i=t.addDisposable(new a.lt);o.di.inject(e,u,i);const h=(0,r.dB)(e,c.A.ON_SEND_TESTEMAIL_ID),p=(0,r.dB)(e,c.A.ON_SEND_LIVEPREVIEW_ID);(0,d.BX)(s.yH,{uploadImage:t=>async s=>{const a=e.getState(),{project:r}=a.configSlice,c=t.folder===l?null:await i.fire({file:t.file,project:r}),d=c?c.find((e=>e)):null;return d?[{file_url:d,project:r}]:s({...t,user_id:String((await o.di.getInstanceAsync(e,n.sZ)).app_id)})},sendTestEmail:t=>async i=>{const s=e.getState(),{project:a}=s.configSlice;(await h.fire({project:a,email_id:t.email_id,subject:t.subject,email:t.email,html:t.html,from_name:t.from_name})).some((e=>!1===e))&&await i({...t,user_id:String((await o.di.getInstanceAsync(e,n.sZ)).app_id)})},async sendLivePreview(t){const i=e.getState(),{project:n}=i.configSlice;(await p.fire({project:n,id:t.email,subject:t.subject,html:t.content})).some((e=>!1===e))},sendShortLink:e=>t=>t(e)})}},14999:(e,t,i)=>{i.d(t,{A:()=>b});var n=i(20116),s=i(53200);var o=i(84612);var a=i(91366),r=i(39990);var c=i(15230),d=i(47036);var l=i(95679);var u=i(62689);var h=i(84568);var p=i(46312);var m=i(65119);var v=i(43347),g=i(83351);var f=i(23036),_=i(72788),y=i(13522),w=i(93982),E=i(94381);var S=i(87265);const b={addUserToProjectApiMock:function(){s.B.enhanceEndpoints({endpoints:{addUserToProject:(0,n.pl)()}})},AiApiMock:function(){(0,n.BX)(o.Zs,{sendMessage:({body:e})=>t=>t({body:e}),getDialog:e=>t=>t(e)})},authorizationApiMock:function(e){let t={id:"0",username:"",email:"",password:"",code_editor:{},theme:"light",locale:(0,a.wz)(e).locale||"ru_RU",counters:{},avatar_urls:{},autosaves:!0};r.Q2.enhanceEndpoints({endpoints:{userRegistration:(0,n.pl)(),getSchema:(0,n.nM)((()=>e=>e({}))),getMe:(0,n.nM)((()=>t)),editMe:(0,n.nM)((e=>t={...t,...e})),getSubscriptions:(0,n.nM)((()=>[]))}})},blocksApiMock:f.bg,commentsApiMock:_.B,emailsApiMock:S.sE,emailRawApiMock:function(){(0,n.BX)(d.f,{getEmailRaw({emailId:e,secret_hash:t}){throw new Error(c.f5)}})},imageApiMock:function(){(0,n.BX)(l.CL,{sendAiImageRequest:function({body:e}){return t=>t({body:e})},getAiImage:e=>t=>t(e)})},localesApiMock:function(e){const t=(0,w.dB)(e,y.A.READ_LOCALE);(0,n.BX)(E.Ad,{async getLocale({id:e}){const i=await t.fire(e);return i.length?i[i.length-1]:t=>t({id:e})},getLocales:()=>async i=>{const n=await(0,a.wz)(e);return t.hasListeners()&&n.locale?[[n.locale,Date.now()]]:i({})}})},notificationsApiMock:function(){(0,n.BX)(u.vx,{getNotifications:e=>[],notificationShown({id:e,datetime:t}){throw new Error(c.f5)}})},projectsApiMock:function(e){let t;(0,n.BX)(h.Nq,{getProjects:(e={page:1})=>[],getProject:e=>i=>t||(t=i(e).then((t=>({...t,id:e})))),addProject(e){throw new Error},editProject:({projectId:e,...i})=>t=t.then((t=>({...t,...i,id:e}))),deleteProject(e){throw new Error}})},proxyApiMock:function(){(0,n.BX)(p.Z8,{getFile({url:e,tryFetch:t=!0,type:i}){throw new Error(c.f5)}})},recoverPasswordApiMock:function(){(0,n.BX)(m.yR,{resetPassword(e){throw new Error(c.f5)},setPassword(e){throw new Error(c.f5)},validateRecoverPasswordCode(e){throw new Error(c.f5)}})},saveFileApiMock:v.uS,tokenApiMock:function(){(0,n.BX)(g.OV,{tokenCreate:e=>t=>t(e),tokenValidate:()=>e=>e({})})}}},62410:(e,t,i)=>{i.d(t,{r:()=>_});var n=i(33288),s=i(14386),o=i(18398),a=i(47358),r=i(86286),c=i(99751),d=i(39990),l=i(15230),u=i(13652);var h=i(39217),p=i(32269),m=i(91366),v=i(93982),g=i(13522),f=i(48802);const _=(0,s.l)((e=>{const t=(0,m.PL)(e),i=(0,f.m)((0,v.Zc)(e,g.A.READ_LOCALE)),s=t.addDisposable(new f.U(i)),_=e.dispatch,y=n.di.getInstanceAsync(e,l.sZ).then((e=>(null===e||void 0===e?void 0:e.app_config)||{}),(e=>(console.log(e),{}))),w=(0,u.y)(),E=async(...t)=>{const i=Object.assign({},...t),{locale:n,theme:s,editor:c,codeModeDirection:l,...u}=i;if(c){const e=function(e){return{font_size:e.fontSize,font_family:e.fontFamily,tab_size:e.tabSize,word_wrap:e.wordWrap,minimap:e.minimap,insert_spaces:e.insertSpaces,indentSize:e.indentSize}}(c);await _((0,r.ww)(e))}if(void 0!==l&&("none"===l?_((0,a.N6)(!1)):(_((0,a.N6)(!0)),_((0,a.Uf)(l)))),"string"===typeof n){const t=(0,m.wz)(e);_(d.Q2.endpoints.editMe.initiate({...t,locale:n}))}"string"===typeof s&&_((0,r.Yl)(s)),_((0,o._R)(u))};let S;return{setOptions:w.decorate((async({config:i={},project:a,user:d,handleReadLocale:l})=>{var u;s.setListener(l);let m=null===(u=(0,c.$)((null===i||void 0===i?void 0:i.mode)||"editor"))||void 0===u?void 0:u.config;if(m={...m,configSwither:i.configSwither||!1},await E(m,await y,i),_((0,o.bn)(String(a))),S&&S.dispose(),S=new p.jG,d){let i={email:"",password:"",...d,id:"number"===typeof d.id?String(d.id):d.id};void 0===d.id&&delete i.id,_((0,r.gV)(i)),d.id&&t.addDisposable(n.di.addService(e,h.jY,{execute(e){e.headers.append("user_id",i.id)}}))}a&&t.addDisposable(n.di.addService(e,h.jY,{execute(e){e.headers.append("project_id",String(a))}}))})),instance:{setConfig:w.decorate((async e=>{var t;let i=null===(t=(0,c.$)((null===e||void 0===e?void 0:e.mode)||"editor"))||void 0===t?void 0:t.config;await E(i,await y,e)})),getConfig:()=>function(e){var t,i;const n=e.getState(),s=n[r.Ay.name],c=n[o.Ay.name],d=n[a.Ay.name];return{...c.config,theme:null===(t=s.currentUser)||void 0===t?void 0:t.theme,locale:null===(i=s.currentUser)||void 0===i?void 0:i.locale,codeModeDirection:d.isCodeMode?d.codeModeDirection:"none",editor:(l=s.monacoOptions,{fontSize:l.font_size,fontFamily:l.font_family,tabSize:l.tab_size,wordWrap:l.word_wrap,minimap:l.minimap,insertSpaces:l.insert_spaces,indentSize:l.indentSize})};var l}(e),updateConfig:w.decorate((e=>E(e))),handleReadLocale:i}}}))},33746:(e,t,i)=>{i.d(t,{F:()=>c});var n=i(44141),s=i(33288),o=i(15230),a=i(14386),r=i(39217);const c=(0,a.l)((e=>{let t=!0;return{setOptions(i){if(i.hasOwnProperty("baseUrl")){const n=s.di.getInstance(e,r.eT),o=n.getOptions(),a=(0,r.qT)(i.baseUrl);o.baseUrl!==a&&(n.setOptions({baseUrl:a}),t=!0)}if(t){const i=s.di.getInstance(e,n.Pz);s.di.inject(e,o.sZ,(async(e,t)=>t||i.app.app_init_create({}).then((({data:e})=>e))),!0),t=!0}}}}))},19209:(e,t,i)=>{i.d(t,{F:()=>h});var n=i(14386),s=i(14315),o=i(33288),a=i(41664),r=i(39217),c=i(13652),d=i(85163);const l=(0,a.Q)(),u=(0,a.Q)(),h=(0,n.l)((e=>({setOptions(t){const i=(0,c.y)(),n=(0,r.mg)(e);o.di.addService(e,r.jY,{execute:i.decorate((async i=>{if(t.jwtAuth){let a=o.di.getInstance(e,l),r=o.di.getInstance(e,u);if(!r&&!a){const i=await n.jwtAuth.token_create({body:t.jwtAuth,type:s.cM.Json});if(i.error)throw r=d.ff,o.di.inject(e,u,d.ff),new Error(d.ff);a=i.data.token,o.di.inject(e,l,a)}r||i.headers.append("authorization",`Bearer ${a}`)}}))})}})))},91514:(e,t,i)=>{i.d(t,{h:()=>d});var n=i(14386),s=i(41664),o=i(33288),a=i(39217),r=i(47271);const c=(0,s.Q)(),d=(0,n.l)((e=>{let t;return o.di.addService(e,a.jY,{execute:async i=>{if(t){const t=await o.di.getInstanceAsync(e,c);t&&i.headers.append("authorization",`Bearer ${t}`)}}}),{setOptions(i){t!==i.getAuthToken&&(t=i.getAuthToken,o.di.inject(e,c,void 0),o.di.inject(e,c,(async(e,i)=>{try{let e=await i;var n;return t?e&&1e3*(null===(n=(0,r.iU)(e))||void 0===n?void 0:n.exp)>function(){const e=new Date;return e.valueOf()-60*e.getTimezoneOffset()*1e3}()?e:await t(e):""}catch(s){return console.log(s),""}}),!0))}}}))},14386:(e,t,i)=>{function n(e){return async function(t){return{setOptions:()=>{},instance:{},dispose:()=>{},...await e(t)||{}}}}function s(e){return async t=>{const i={},n=[];for(const s of e)n.push(await s(t));for(const e of n)Object.assign(i,e.instance);return{instance:i,setOptions:e=>{const t=n.map((t=>t.setOptions(e)));return t.some((e=>e instanceof Promise))?Promise.all(t).then((()=>{})):void 0},dispose:()=>{for(const e of n)e.dispose()}}}}i.d(t,{E:()=>s,l:()=>n})},893:(e,t,i)=>{i.d(t,{m:()=>c});var n=i(17126),s=i(92810),o=i(45934),a=i(18398),r=i(70082);const c=({children:e})=>{const[t,i]=(0,s.useState)(),c=(0,o.d4)(a.p5);return(0,r.jsxs)("div",{className:"App blocks-app blocks-plugin",children:[c&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:c}}),(0,r.jsx)(n.fh.Provider,{value:t,children:e}),(0,r.jsx)("div",{ref:i,className:"blocks-modal-container"})]})}},97001:(e,t,i)=>{i.d(t,{P:()=>C});var n=i(32269),s=i(93556),o=i(23580),a=i(71210),r=i(56991),c=i(13329),d=i(28316),l=i(18398),u=i(13437),h=i(81304),p=i(4453),m=i(91253),v=i(33288),g=i(15230),f=i(13652),_=i(13522),y=i(93982),w=i(91738),E=i(17581),S=i(39217);const b="EXTERNAL";class C extends n.jG{constructor(e){super(),this._store=e,this._emailTemplateCache=Object.create(null),this._prevCommand=void 0,this._prevContent=void 0,this._dataSources=void 0,this._eventLock=void 0,this._queue=(0,f.y)(),this._model=void 0,this._currentEmail=void 0,this.show=this._queue.decorate(this._show,this),this.save=this._queue.decorate(this._save,this);const t=(0,o.My)(e);this._dataSources=(0,s.zC)(t),this._eventLock=(0,s.QQ)(t);const i=(0,y.Zc)(e,_.A.ON_MODEL_CHANGE),n=(0,y.Zc)(e,_.A.ON_EMAIL_CHANGED_ID);this.addDisposable(i((e=>{this._model=e}))),this.addDisposable(n((e=>{this._currentEmail=e}))),this.addDisposable(v.di.addService(e,S.jY,{execute:e=>{var t;null!==(t=this._currentEmail)&&void 0!==t&&t.id&&!this._currentEmail.isNew&&e.headers.append("email_id",this._currentEmail.id)}}))}async getProject(){const e=await v.di.getInstanceAsync(this._store,g.sZ);return null===e||void 0===e?void 0:e.project}async getTemplateEmail(e){e=String(e);let t=this._emailTemplateCache[e];if(!t){const i=await this._store.dispatch(E.GY.endpoints.getTemplateEmail.initiate(e));i.error?console.log(i.error):(t={...i.data,lock:!1,parent_email:e},delete t.id)}return t}async getBlocks(){const{cache:e}=this._dataSources.blocks,t=await this.getProject();return(await e.values()).filter((e=>e.project===t)).map((e=>(0,u.A)(e,this._store)))}async getComments(){const{cache:e}=this._dataSources.comments,t=await this.getEmail();return(await e.values()).filter((e=>e.post===t.id)).map((e=>(0,m.I)(e,this._store)))}async getEmailRevisions(){const{cache:e}=this._dataSources.emailRevisions,t=await this.getEmail();return(await e.values()).filter((e=>e.parent===t.id)).map((e=>(0,p.E)(e,this._store)))}async setBlocks(e=[]){const{cache:t}=this._dataSources.blocks;await t.setAll(e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,u.i)(e,this._store)])))}async setEmailRevisions(e=[],t){const{cache:i}=this._dataSources.emailRevisions,n=e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,p._)(e,this._store,t)]));await i.setAll(n)}async setComments(e=[],t){const{cache:i}=this._dataSources.comments,n=e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,m.y)(e,this._store,t)]));await i.setAll(n)}async getEmail(){const e=this._store.getState(),t=e.emailSlice.email.id?e.emailSlice.email:e.newEmailSlice.email,i=(0,h.E)({...t,html:this._model?this._model.getValue():t.html},this._store);return(0,w.AU)(i,t.isAmp)}async compileEmail(){const e=this._store.getState(),t=e.emailSlice.email.id?e.emailSlice.email:e.newEmailSlice.email,i=(0,h.E)({...t,html:this._model?this._model.getValue():t.html},this._store);return(0,w.AU)(i,t.isAmp)}async setEmail(e,t,i=!1){const n=this._dataSources.emails,s=n.cache,o=await this.getProject();e="string"===typeof e?{code:e}:{...e};let r=(0,h.I)(e,this._store);const c=r.id;let d=c;if(void 0!==c?r={...await n.get(c),...r,project:o}:(r={...r,project:o},d=(0,a.l)(),delete r.project),t){const e=await this.getTemplateEmail(String(t));e&&(r={...e,id:String(t),...r})}await s.setAll([[d,r]]),i&&this._runShowCommand({isNew:void 0===c,id:d,project:o})}_runShowCommand(e){const t={...e,type:"email"};this._prevCommand&&!(0,r.bD)(this._prevCommand,e)?(0,c.RS)(this._store,d._1,t):this._store.dispatch((0,l.Ir)(t)),this._prevCommand=e}async _show(e){try{if(this._eventLock.suspendChange(),e!==this._prevContent){this._prevContent=e;const{email:t,blocks:i,autosaves:n,comments:o,templateId:a}=(0,s.Uw)(e),r=[];r.push(this.setBlocks(i)),void 0!==t.id&&(r.push(this.setComments(o)),r.push(this.setEmailRevisions(n))),r.push(this.setEmail(t,Number(a),!0)),await Promise.all(r)}}catch(t){console.log(t)}finally{this._eventLock.resumeChange()}return new Promise((e=>{(0,y.Zc)(this._store,_.A.ON_EMAIL_INIT_ID)((()=>e()))}))}_save(){return new Promise((async e=>{const t=this._dataSources.emails,i=this.addDisposable(t.onSave((({value:t,source:n})=>{n===b&&(i.dispose(),e((0,h.E)(t,this._store)))}),Number.MIN_VALUE));(0,c.RS)(this._store,d.Kp,b)}))}}},44376:(e,t,i)=>{i.d(t,{y:()=>g});var n=i(23580),s=i(93556),o=i(81304),a=i(13437),r=i(91253),c=i(4453),d=i(32269),l=i(48802),u=i(13522),h=i(93982),p=i(18398),m=i(98589),v=i(55654);class g extends d.jG{constructor(e){super(),this._store=e,this._events=void 0,this._listenersUpdaters=void 0}_get(){const e=this._store,t=(0,n.My)(e),{blocks:i,emails:d,comments:g,emailRevisions:f}=(0,s.zC)(t),_=(0,h.Zc)(e,u.A.ON_SAVEBUTTON_CLICK_ID),y=(0,h.Zc)(e,u.A.ON_PREVIOUSBUTTON_CLICK_ID),w=(0,h.Zc)(e,u.A.ON_NEXTBUTTON_CLICK_ID),E=(0,h.Zc)(e,u.A.ON_EMAIL_INIT_ID),S=(0,h.Zc)(e,u.A.ON_EMAIL_CHANGED_ID),b=(0,h.Zc)(e,u.A.ON_CONTENT_CHANGED_ID),C=(0,h.Zc)(e,u.A.ON_SEND_TESTEMAIL_ID),A=(0,h.Zc)(e,u.A.ON_SEND_EMAIL_MODAL_ID),I=(0,h.Zc)(e,u.A.ON_EMAIL_CLONE_ID),j=(0,h.Zc)(e,u.A.ON_SHARE_ID),M=(0,h.Zc)(e,u.A.ON_SHOW_PREVIEW_ID),D=(0,h.Zc)(e,u.A.ON_SEND_LIVEPREVIEW_ID);return{handleReadEmail:(0,l.m)(d.handlerRead,(e=>e),(t=>t&&(0,o.I)(t,e))),handleSaveEmail:(0,l.m)(d.onSave,(function({prev:t,patch:i,value:n,source:s}){const a=t?(0,o.E)(t,e):void 0;return{prev:a,patch:(0,m.g)(a,(0,o.E)(i,e)),value:(0,o.E)(n,e),source:s}}),(t=>t?(0,o.I)(t,e):void 0)),handleRemoveEmail:(0,l.m)(d.onRemove,(({value:t,source:i})=>({value:(0,o.E)(t,e),source:i})),(()=>{})),handleReadBlocks:(0,l.m)(i.byForeignKey("project").handleRead,(t=>(0,p.jY)(e.getState())||String(t)),(t=>null===t||void 0===t?void 0:t.map((t=>(0,a.i)(t,e))))),handleSaveBlock:(0,l.m)(i.onSave,(function({prev:t,patch:i,value:n,source:s}){const o=t?(0,a.A)(t,e):void 0;return{prev:o,patch:(0,m.g)(o,(0,a.A)(i,e)),value:(0,a.A)(n,e),source:s}}),(t=>t?(0,a.i)(t,e):void 0)),handleRemoveBlock:(0,l.m)(i.onRemove,(({value:t,source:i})=>({value:(0,a.A)(t,e),source:i})),(()=>{})),handleReadComments:(0,l.m)(g.byForeignKey("post").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>(0,r.y)(t,e))))),handleSaveComment:(0,l.m)(g.onSave,(function({prev:t,patch:i,value:n,source:s}){const o=t?(0,r.I)(t,e):void 0;return{prev:o,patch:(0,m.g)(o,(0,r.I)(i,e)),value:(0,r.I)(n,e),source:s}}),(t=>t?(0,r.y)(t,e):void 0)),handleRemoveComment:(0,l.m)(g.onRemove,(({value:t,source:i})=>({value:(0,r.I)(t,e),source:i})),(()=>{})),handleReadEmailRevisions:(0,l.m)(f.byForeignKey("parent").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>(0,c._)(t,e))))),handleEmailAutosave:(0,l.m)(f.onSave,(function({prev:t,patch:i,value:n,source:s}){return{value:(0,c.E)(n,e),source:s}}),(t=>t?(0,c._)(t,e):void 0)),handleRemoveEmailAutoSave:(0,l.m)(f.onRemove,(({value:t,source:i})=>({value:(0,c.E)(t,e),source:i})),(()=>{})),handleEmailChanged:(0,l.m)((0,v.sg)(S,100),(t=>(0,o.E)(t,e))),handleEmailInit:(0,l.m)(E,(t=>(0,o.E)(t,e))),handlePreviousButtonClick:(0,l.m)(y,(t=>(0,o.E)(t,e))),handleNextButtonClick:(0,l.m)(w,(t=>(0,o.E)(t,e))),handleSaveButtonClick:(0,l.m)(_,(t=>(0,o.E)(t,e))),handleHtmlChanged:(0,l.m)((0,v.sg)(b,100)),handleTestEmailSend:(0,l.m)(C,(({html:e,...t})=>({...t,code:e,compiled:{html:e,ampHtml:""}}))),handleTestEmailModal:(0,l.m)(A,(t=>(0,o.E)(t,e))),handleCloneEmail:(0,l.m)(I,(t=>(0,o.E)(t,e))),handleShareEmail:(0,l.m)(j),handlePreviewEmail:(0,l.m)(M),handleLivePreviewEmail:(0,l.m)(D)}}get(){return this._events||(this._events=this._get())}setOptions(e={}){const t=this.get();let i=this._listenersUpdaters;if(!i){i=this._listenersUpdaters={};for(const e of Object.keys(t))i[e]=this.addDisposable(new l.U(t[e]))}for(const n of Object.keys(t))i[n].setListener(e[n])}}},93556:(e,t,i)=>{i.d(t,{QQ:()=>r,Uw:()=>c,zC:()=>a});var n=i(23036),s=i(72788),o=i(87265);function a(e){return{emails:(0,o.Av)(e),blocks:(0,n.Xy)(e),emailRevisions:(0,o.jw)(e),blocksRevision:(0,n.yc)(e),comments:(0,s.D)(e)}}function r(e){const t=Object.values(a(e));return{suspendChange(){t.forEach((e=>e.suspendChange()))},resumeChange(){t.forEach((e=>e.resumeChange()))}}}function c(e){return"string"===typeof e?{email:{code:e}}:function(e){return!e.hasOwnProperty("email")&&!e.hasOwnProperty("block")&&!e.hasOwnProperty("templateId")}(e)?{email:e}:{...e,email:"string"===typeof e.email?{code:e.email}:e.email||{}}}},8671:(e,t,i)=>{i.d(t,{e:()=>c});var n=i(14386),s=i(33288),o=i(15230),a=i(32269),r=i(48802);const c=(0,n.l)((e=>{const t=s.di.getInstance(e,o.Lz),i=t.addDisposable(new a.vl),n=(0,r.m)(i.event),c=t.addDisposable(new r.U(n));return{setOptions({handleDestroy:e}){c.setListener(e)},instance:{handleDestroy:n,destroy:()=>t.dispose()}}}))},63772:(e,t,i)=>{i.d(t,{Z:()=>c});var n=i(14386),s=i(43347),o=i(33288),a=i(48802),r=i(15230);const c=(0,n.l)((e=>{const t=o.di.getInstance(e,r.Lz),i=o.di.getInstance(e,s.Ri),n=(0,a.m)(i.event),c=t.addDisposable(new a.U(n));return{setOptions(e){c.setListener(e.handleLoadImage)},instance:{handleLoadImage:(0,a.m)(i.event)}}}))},55853:(e,t,i)=>{i.d(t,{E:()=>c});var n=i(14386),s=i(33288),o=i(15230),a=i(55654),r=i(48802);const c=(0,n.l)((e=>{const t=s.di.getInstance(e,o.Lz),i=t.addDisposable(new a.vl),n=s.di.getInstanceAsync(e,o.Cd);n.then((({instance:e})=>i.fire(e)));const c=(0,r.m)(i.event),d=t.addDisposable(new r.U(c));return{setOptions({handleLoad:e}){d.setListener(e)},instance:{handleLoad:c,reset:e=>n.then((({instance:t,setOptions:i})=>Promise.resolve(i(e)).then((()=>t))))},destroy:()=>t.dispose()}}))},1281:(e,t,i)=>{i.d(t,{Z:()=>g});var n=i(14386),s=i(33288),o=i(15230),a=i(48802),r=i(13329),c=i(28316),d=(i(92810),i(814)),l=i(70082);function u(e){return"string"===typeof e?e:e?(0,l.jsx)("div",{ref:t=>null===t||void 0===t?void 0:t.replaceWith(e)}):void 0}function h(e,t="success"){return"string"===typeof e&&(e={message:e}),(0,d.TB)({type:e.type||t,data:e.data,innerException:e.innerException,message:u(e.message),description:u(e.description),btn:u(e.btn),onClose:e.onClose,duration:e.duration,icon:u(e.icon),placement:e.placement,style:e.style,closeIcon:"boolean"===typeof e.closeIcon||"undefined"===typeof e.closeIcon?e.closeIcon:u(e.closeIcon),props:e.props,role:e.role})}var p=i(13522),m=i(55654),v=i(93982);const g=(0,n.l)((e=>{const t=s.di.getInstance(e,o.Lz),i=(0,v.Zc)(e,p.A.ON_NOTIFICATION),n=(0,m.pb)(i,(e=>"error"===e.type)),d=(0,m.pb)(i,(e=>"success"===e.type)),l=(0,a.m)(i,(e=>e),(e=>"string"===typeof e||"object"===typeof e?h(e):e)),u=(0,a.m)(n,(e=>e),(e=>"string"===typeof e||"object"===typeof e?h(e,"error"):e)),g=(0,a.m)(d,(e=>e),(e=>"string"===typeof e||"object"===typeof e?h(e):e)),f=t.addDisposable(new a.U(l)),_=t.addDisposable(new a.U(u)),y=t.addDisposable(new a.U(g));return{setOptions({handleNotify:e,handleSuccess:t,handleError:i}){f.setListener(e),_.setListener(i),y.setListener(t)},instance:{notify(t){(0,r.RS)(e,c.Sb,{placement:"bottomRight",...h(t)})},handleNotify:l,handleError:u,handleSuccess:g}}}))},89949:(e,t,i)=>{i.d(t,{R:()=>a});var n=i(92810),s=i(45934),o=i(39990);const a=({onLoad:e,children:t})=>{(0,n.useEffect)((()=>{e&&e()}),[e]);const i=(0,s.wA)();return(0,n.useMemo)((()=>i(o.Q2.endpoints.getMe.initiate({}))),[i]),t}},55654:(e,t,i)=>{i.d(t,{HN:()=>l,IO:()=>o,P9:()=>a,lt:()=>h,pb:()=>c,sg:()=>d,vl:()=>u});var n=i(32269);class s extends n.jG{constructor(...e){super(...e),this._listeners=[],this.event=this._addListener.bind(this)}getListeners(e){return this._listeners.flatMap((([t])=>"function"===typeof t?t:t.getListeners(e)))}hasListeners(){return this._listeners.length>0}_addListener(e,t=0,i){if(!this.isDisposed()){const n=this._listeners;i&&"function"===typeof e&&(e=e.bind(i));const s=n.findIndex((([e,i])=>t<i)),o=[e,t];return n.splice(s>=0?s:n.length,0,o),{dispose(){const e=n.indexOf(o);e>=0&&n.splice(e,1)}}}}dispose(){this._listeners.splice(0,this._listeners.length),super.dispose()}}class o extends s{constructor(...e){super(...e),this.fire=this._fire.bind(this)}execute(e,t){for(const n of t)try{n(...e)}catch(i){console.log(i)}}_fire(...e){if(!this.isDisposed())return this.execute(e,this.getListeners(e))||void 0}}function a(e,t=0){const i=new s;return i.addDisposable(e(i,t)),i.event}class r extends s{constructor(e){super(),this._filter=e}getListeners(e){return this._filter(...e)?super.getListeners(e):[]}}function c(e,t,i=0){const n=new r(t);return n.addDisposable(e(n,i)),n.event}function d(e,t=0,i=0){const n=new o;let s,a=0;return n.addDisposable(e(((...e)=>{s=e,a||(a=setTimeout((()=>{n.fire(...s),a=0}),t))}),i)),n.event}class l extends o{constructor(...e){super(...e),this._suspendCounter=0,this._wasFired=!1}proccessResult(){}execute([e],t){if(this._suspendCounter)this._wasFired=!0;else for(const n of t)try{n(e)}catch(i){console.log(i)}}suspend(){this._suspendCounter++}resume(){0===--this._suspendCounter&&(this._wasFired&&this.fire(),this._wasFired=!1)}}class u extends o{execute([e],t){for(const n of t)try{n(e)}catch(i){console.log(i)}}}class h extends o{async execute([e],t){const i=[];for(const n of t){const t=await n(e);i.push(t)}return i}}},48802:(e,t,i)=>{i.d(t,{U:()=>o,m:()=>a});var n=i(32269),s=i(55654);class o extends n.jG{constructor(e){super(),this._event=e,this._listener=void 0,this._disposeEvent=void 0}setListener(e){this._listener!==e&&(this._listener=e,this._disposeEvent&&this._disposeEvent(),this._disposeEvent=e?this._event(e):void 0)}dispose(){this._disposeEvent&&this._disposeEvent(),super.dispose()}}function a(e,t,i){const n=(0,s.P9)(e);return(e,s,o)=>{const a=n((async n=>{const s=t?t(n):n;o&&e.bind(o);const a=await e(s);return i?i(a):a}),s,o);return()=>a.dispose()}}},13652:(e,t,i)=>{i.d(t,{y:()=>n});const n=e=>{let t={current:Promise.resolve(),state:e,decorate:(e,i)=>(i&&(e=e.bind(i)),function(...i){const n=t.current.then((()=>e(...i)));return t.current=n.then((e=>{t.state=e}),(e=>{console.log(e)})),n})};return t}},18398:(e,t,i)=>{i.d(t,{Ay:()=>w,EV:()=>y,Ir:()=>m,RP:()=>u,_R:()=>g,bn:()=>f,jY:()=>p,me:()=>_,p5:()=>h,s0:()=>d,zg:()=>l});var n=i(90536),s=i(31770),o=i(99751);const a="configSlice",r=(0,s.ur)((0,o.$)("pro")),c=(0,n.createSlice)({name:a,initialState:r,reducers:{setPage:(e,t)=>{e.page=t.payload},setConfig:(e,t)=>{e.config={...r.config,...t.payload}},changeConfigMode:(e,t)=>{e.config={...e.config,...(0,o.$)(t.payload).config}},setMergeTags:(e,t)=>{e.config.mergeTags=t.payload},updateConfig:(e,t)=>{e.config={...e.config,...t.payload}},setProject:(e,t)=>{e.project=t.payload}},extraReducers:e=>{}}),d=e=>e[a].page,l=e=>e[a].config,u=e=>e[a].config.themes,h=e=>e[a].config.styles,p=e=>e[a].project,{setPage:m,setConfig:v,updateConfig:g,setProject:f,setMergeTags:_,changeConfigMode:y}=c.actions,w=c},47358:(e,t,i)=>{i.d(t,{Ay:()=>N,B:()=>j,Bp:()=>C,CS:()=>k,Ct:()=>O,Fk:()=>v,Fv:()=>L,N6:()=>S,NQ:()=>D,Oo:()=>p,PM:()=>m,Tn:()=>B,Uf:()=>y,V$:()=>P,Wm:()=>M,cL:()=>I,mi:()=>g,qf:()=>h,sy:()=>A,vc:()=>f,vs:()=>_,wW:()=>w,wr:()=>E,yy:()=>T});var n=i(90536),s=i(85163),o=i(31770),a=i(55701);const r=window.localStorage.getItem(s.V0.em_code_mode_settings),c=r&&JSON.parse(r),d=(0,o.ur)({activeModal:"",lastActiveSettingsTab:s.Bv,activeSettingsTab:s.Bv,isPanelHistoryCollapsed:!0,monacoHeight:0,isCodeMode:(null===c||void 0===c?void 0:c.isCodeMode)||s.EW.isPlugin,codeModeDirection:(null===c||void 0===c?void 0:c.codeModeDirection)||"left",emailWidth:"100%",emailViewType:s.Vp,mobileViewActive:{shutdown:!0,styles:!0},emailMaxWidthSize:425,propertiesPanelKey:s.WU,parentBlocks:[]}),l="emailPageSlice",u=(0,n.createSlice)({name:l,initialState:d,reducers:{openModal:(e,t)=>{e.activeModal=t.payload},closeModal:e=>{e.activeModal=""},setActiveSettingsTab:(e,t)=>{e.lastActiveSettingsTab=e.activeSettingsTab,e.activeSettingsTab=t.payload,t.payload!==s.Vv&&(e.isPanelHistoryCollapsed=!0)},resetToLastActiveSettingsTab:e=>{"Properties"===e.lastActiveSettingsTab?e.activeSettingsTab="Build":e.activeSettingsTab=e.lastActiveSettingsTab,e.lastActiveSettingsTab!==s.Vv&&(e.isPanelHistoryCollapsed=!0)},switchIsPanelHistoryCollapsed:(e,t)=>{e.isPanelHistoryCollapsed=t.payload||!e.isPanelHistoryCollapsed},setEmailWidth:(e,{payload:t})=>{e.emailWidth=t,e.emailViewType=t>e.emailMaxWidthSize||"100%"===t?s.Vp:s.ND,window.localStorage.setItem(s.V0.em_default_sizes,JSON.stringify(t))},setEmailMaxWidthSize:(e,{payload:t})=>{e.emailMaxWidthSize=t},setEmailViewType:(e,t)=>{e.emailViewType=t.payload},switchCodeMode:e=>{const t=!e.isCodeMode;e.isCodeMode=t,window.localStorage.setItem(s.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:t}))},setCodeMode:(e,t)=>{const i=t.payload;e.isCodeMode!==i&&(e.isCodeMode=i,window.localStorage.setItem(s.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:i})))},switchCodeModeDirection:(e,t)=>{e.codeModeDirection=t.payload,window.localStorage.setItem(s.V0.em_code_mode_settings,JSON.stringify({isCodeMode:e.isCodeMode,codeModeDirection:t.payload}))},setMobileViewActive:(e,t)=>{e.mobileViewActive=t.payload},setPropertiesPanelKey:(e,t)=>{e.propertiesPanelKey=t.payload},resetParentBlocks:e=>{e.parentBlocks=[]},setParentBlocks:(e,t)=>{e.parentBlocks=t.payload}},extraReducers:e=>{e.addMatcher(a.VM.endpoints.getParentEmailBlocks.matchFulfilled,((e,t)=>{e.parentBlocks=t.payload}))}}),{openModal:h,closeModal:p,setActiveSettingsTab:m,resetToLastActiveSettingsTab:v,switchIsPanelHistoryCollapsed:g,setEmailWidth:f,switchCodeMode:_,switchCodeModeDirection:y,setMobileViewActive:w,setEmailViewType:E,setCodeMode:S,setEmailMaxWidthSize:b,setPropertiesPanelKey:C,resetParentBlocks:A}=u.actions,I=e=>e[l].activeModal,j=e=>e[l].activeSettingsTab,M=e=>e[l].isPanelHistoryCollapsed,D=e=>e[l].emailWidth,O=e=>e[l].emailViewType,k=e=>e[l].mobileViewActive,T=e=>e[l].codeModeDirection,L=e=>e[l].isCodeMode,B=e=>e[l].propertiesPanelKey,P=e=>e[l].parentBlocks,N=u},86286:(e,t,i)=>{i.d(t,{Ay:()=>E,B:()=>g,B$:()=>w,C1:()=>f,Yl:()=>h,gV:()=>v,hZ:()=>y,ko:()=>p,ku:()=>u,ww:()=>d,yf:()=>_});var n=i(90536),s=i(39990),o=i(85163),a=i(32269);const r=(0,i(31770).ur)({currentUser:{},currentSchema:{},monacoOptions:o.rW,monacoDidMount:!1}),c="userSlice",d=(0,n.createAsyncThunk)("user/setMonacoOptions",(async(e,{getState:t})=>{const i=t()[c],n="string"===typeof e.font_family?`${e.font_family}, sans-serif`:void 0,s=void 0!==e.word_wrap?e.word_wrap?"on":"off":void 0;return n&&i.monacoOptions.fontFamily!==n&&await(0,a.iV)(e.font_family),{tabSize:e.tab_size,fontFamily:n,fontSize:e.font_size,wordWrap:s,insertSpaces:e.insert_spaces,minimap:{enabled:e.minimap}}})),l=(0,n.createSlice)({name:c,initialState:r,reducers:{setMonacoDidMount:(e,{payload:t})=>{e.monacoDidMount=t},setTheme:(e,{payload:t})=>{e.currentUser.theme=t},setUserLocale:(e,{payload:t})=>{e.currentUser.locale=t},setUserAutosaves:(e,{payload:t})=>{e.currentUser.autosaves=t},setUser:(e,{payload:t})=>{e.currentUser={...e.currentUser,...t}}},extraReducers:e=>{e.addCase(d.fulfilled,((e,t)=>{const i=t.payload;e.monacoOptions=(0,a.i0)({...e.monacoOptions},i)})),e.addMatcher(s.Q2.endpoints.editMe.matchFulfilled,((e,t)=>{e.currentUser=t.payload})),e.addMatcher(s.Q2.endpoints.getMe.matchFulfilled,((e,t)=>{e.currentUser=t.payload})),e.addMatcher(s.Q2.endpoints.getSchema.matchFulfilled,((e,t)=>{e.currentSchema=t.payload.schema}))}}),{setMonacoDidMount:u,setTheme:h,setUserLocale:p,setUserAutosaves:m,setUser:v}=l.actions,g=e=>{var t;return null===(t=e[c].currentUser)||void 0===t?void 0:t.locale},f=e=>e[c].currentUser,_=e=>e[c].currentSchema,y=e=>e[c].monacoOptions,w=e=>{var t;return 3891!==(null===(t=e[c].currentUser.subscription)||void 0===t?void 0:t.ID)},E=l},57964:()=>{}}]);