Smart Floating / Sticky Buttons – Call, Sharing, Chat Widgets & More – Buttonizer - Version 2.9.0

Version Description

Release date: June 15, 2022

Changelog: - New menu button settings page. We have seperated the menu button from the group settings. The group's styling settings now acts completely as a default layer for the buttons! You can now also decide to show/hide the menu button for either mobile or desktop. - Fixed an issue where the border radius will not save until all inputs are filled in. - All breadcrumbs now stays on the same settings tab. - Some other minor bug fixes. - Some minor UI improvements.

If you experience bugs, problems or you just have some feedback, let us know on our Buttonizer community!

Download this release

Release Info

Developer buttonizer
Plugin Icon wp plugin Smart Floating / Sticky Buttons – Call, Sharing, Chat Widgets & More – Buttonizer
Version 2.9.0
Comparing to
See all releases

Code changes from version 2.8.3 to 2.9.0

app/Frontend/Buttonizer.php CHANGED
@@ -60,14 +60,22 @@ class Buttonizer
60
  */
61
  private function createGroup( $data )
62
  {
63
- $group = new Group( $data['data'] );
64
  // Add buttons to group
65
  foreach ( $data['buttons'] as $button ) {
66
  $group->add( new Button( $group, $button ) );
67
  }
 
68
  if ( $group->show() ) {
69
- $this->groupReturns[] = $group->fix();
 
 
 
 
 
 
70
  }
 
71
  }
72
 
73
  /**
60
  */
61
  private function createGroup( $data )
62
  {
63
+ $group = new Group( $data["data"] );
64
  // Add buttons to group
65
  foreach ( $data['buttons'] as $button ) {
66
  $group->add( new Button( $group, $button ) );
67
  }
68
+
69
  if ( $group->show() ) {
70
+ $groupData = $group->fix();
71
+
72
+ if ( isset( $data["menu_button"] ) ) {
73
+ $groupData["menu_button"] = $data["menu_button"];
74
+ }
75
+
76
+ $this->groupReturns[] = $groupData;
77
  }
78
+
79
  }
80
 
81
  /**
app/Utils/Update.php CHANGED
@@ -98,6 +98,9 @@ class Update
98
  case "5":
99
  $this->migration6();
100
  break;
 
 
 
101
  }
102
 
103
  // No need for migration. Set to current migration version otherwise we're going into a LoOoOoOoOoP
@@ -1208,4 +1211,107 @@ class Update
1208
 
1209
  return $rules;
1210
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1211
  }
98
  case "5":
99
  $this->migration6();
100
  break;
101
+ case "6":
102
+ $this->migrationTo7();
103
+ break;
104
  }
105
 
106
  // No need for migration. Set to current migration version otherwise we're going into a LoOoOoOoOoP
1211
 
1212
  return $rules;
1213
  }
1214
+
1215
+ /**
1216
+ * Run update menu button
1217
+ */
1218
+ public function migrationTo7()
1219
+ {
1220
+ // Get all current settings first
1221
+ $settings = get_option('buttonizer_settings');
1222
+
1223
+ // Set migration version to 7
1224
+ $settings["migration_version"] = 7;
1225
+ update_option('buttonizer_settings', $settings);
1226
+
1227
+ // Back it up
1228
+ $groups = $this->migrationTo7UpdateData(get_option('buttonizer_buttons'));
1229
+
1230
+ // Overwrite new settings
1231
+ update_option('buttonizer_buttons', $groups);
1232
+
1233
+ // If buttonizer was already published, update published.
1234
+ if(get_option('buttonizer_buttons_published')) {
1235
+ $published = $this->migrationTo7UpdateData(get_option('buttonizer_buttons_published'));
1236
+ update_option('buttonizer_buttons_published', $published);
1237
+ }
1238
+
1239
+ }
1240
+
1241
+ /**
1242
+ * Move settings to menu button
1243
+ */
1244
+ public function migrationTo7UpdateData($array) {
1245
+ $groups = [];
1246
+
1247
+ // Loop through the groups
1248
+ foreach ($array as $group)
1249
+ {
1250
+ //---------------- MIGRATE GROUP ----------------//
1251
+ // Move all icon stuffs to menu button
1252
+ if(isset($group['data']['icon'])) {
1253
+ $group['menu_button']['icon'] = $group['data']['icon'];
1254
+ unset($group['data']['icon']);
1255
+ }
1256
+ if(isset($group['data']['icon_type'])) {
1257
+ $group['menu_button']['icon_type'] = $group['data']['icon_type'];
1258
+ unset($group['data']['icon_type']);
1259
+ }
1260
+ if(isset($group['data']['icon_image'])) {
1261
+ $group['menu_button']['icon_image'] = $group['data']['icon_image'];
1262
+ unset($group['data']['icon_image']);
1263
+ }
1264
+ if(isset($group['data']['icon_size'])) {
1265
+ $group['menu_button']['icon_size'] = $group['data']['icon_size'];
1266
+ unset($group['data']['icon_size']);
1267
+ }
1268
+ if(isset($group['data']['icon_image_size'])) {
1269
+ $group['menu_button']['icon_image_size'] = $group['data']['icon_image_size'];
1270
+ unset($group['data']['icon_image_size']);
1271
+ }
1272
+
1273
+ // If is menu is disabled, don't show menu button
1274
+ if(isset($group['data']['is_menu']) && $group['data']['is_menu'] === false) {
1275
+ $group['menu_button']['show_mobile'] = false;
1276
+ $group['menu_button']['show_desktop'] = false;
1277
+ unset($group['data']['is_menu']);
1278
+ }
1279
+
1280
+ if(isset($group['data']['label'])) {
1281
+ $group['menu_button']['label'] = $group['data']['label'];
1282
+ unset($group['data']['label']);
1283
+ }
1284
+
1285
+ // Move all menu stuffs to menu button
1286
+ if(isset($group['data']['menu_opening_animation'])) {
1287
+ $group['menu_button']['menu_opening_animation'] = $group['data']['menu_opening_animation'];
1288
+ unset($group['data']['menu_opening_animation']);
1289
+ }
1290
+ if(isset($group['data']['start_opened'])) {
1291
+ $group['menu_button']['start_opened'] = $group['data']['start_opened'];
1292
+ unset($group['data']['start_opened']);
1293
+ }
1294
+ if(isset($group['data']['close_on_click_outside'])) {
1295
+ $group['menu_button']['close_on_click_outside'] = $group['data']['close_on_click_outside'];
1296
+ unset($group['data']['close_on_click_outside']);
1297
+ }
1298
+ if(isset($group['data']['close_on_click_inside'])) {
1299
+ $group['menu_button']['close_on_click_inside'] = $group['data']['close_on_click_inside'];
1300
+ unset($group['data']['close_on_click_inside']);
1301
+ }
1302
+ if(isset($group['data']['open_on_mouseover'])) {
1303
+ $group['menu_button']['open_on_mouseover'] = $group['data']['open_on_mouseover'];
1304
+ unset($group['data']['open_on_mouseover']);
1305
+ }
1306
+ if(isset($group['data']['close_on_mouseleave'])) {
1307
+ $group['menu_button']['close_on_mouseleave'] = $group['data']['close_on_mouseleave'];
1308
+ unset($group['data']['close_on_mouseleave']);
1309
+ }
1310
+
1311
+
1312
+ $groups[] = $group;
1313
+ }
1314
+
1315
+ return $groups;
1316
+ }
1317
  }
assets/dashboard.css CHANGED
@@ -9,7 +9,7 @@
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
- * (C) 2017-2022 Buttonizer v2.8.3
13
  *
14
  */
15
  /*!
@@ -23,11 +23,11 @@
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
- * (C) 2017-2022 Buttonizer v2.8.3
27
  *
28
  */
29
  @import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap);
30
- .device-preview{flex-grow:1;position:relative;color:#2f7789;display:flex;align-items:center;margin-left:4px}.device-preview .button-group{box-shadow:0 3px 10px rgba(0,0,0,.2);background-color:#fff;position:absolute;left:0px;bottom:0px;width:36px;border-radius:8px;cursor:pointer}.device-preview .button{border:none;opacity:.5;font-size:16px;margin:5px 0}.device-preview .button:first-of-type{margin-top:0}.device-preview .button:last-of-type{margin-bottom:0}.device-preview .button:hover{border:none;border-radius:5px}.device-preview .button:focus{border-radius:5px}.device-preview .current-device{font-size:18px}.device-preview .current-device:hover{background-color:inherit !important}.device-preview .current-device .MuiSvgIcon-root{cursor:pointer}
31
  .MuiDialog-root #alert-dialog-title i{margin-right:15px;vertical-align:middle}.MuiDialog-root.warning .MuiBackdrop-root{background-color:rgba(93,0,0,.6)}.MuiDialog-root.warning #alert-dialog-title{color:#710909}
32
  ._3s81HemeKZtqu65wI1fy6E{font-size:19px !important;width:30px !important;height:24px !important}._2PiruT2xp0ahiZEbiVpgcf{position:relative;margin-top:20px}._2PiruT2xp0ahiZEbiVpgcf button{position:absolute;right:10px;bottom:10px;z-index:10}._2PiruT2xp0ahiZEbiVpgcf textarea{display:block;width:100%;min-width:100%;max-width:100%;overflow-x:scroll;height:180px;border-radius:4px;margin:0 1px;background:rgba(0,0,0,.07);border:0;padding:15px;box-sizing:border-box;resize:none;font-size:12px;margin-bottom:15px}._2fpqeP5Cl7bfJ6a5Nh7IP_{background:#ffd281;border-left:4px solid #f1ad00;padding:20px;margin-bottom:15px}._2fpqeP5Cl7bfJ6a5Nh7IP_ p{font-size:14px !important}._3FErKLfln3upSA8QUvjViU{display:block !important}
33
  .hint{background-color:#585858;padding:15px 20px;color:#fff;border-radius:10px;cursor:pointer;max-width:250px;z-index:100}.hint p{margin:0}.hint .close-button{font-size:12px !important;position:absolute;right:10px;top:10px;color:#fff;background:#2f7789;padding:5px !important;height:25px !important;min-width:25px !important}.hint .close-button:hover{background:#2f7789}.hint-pulse-0::before,.hint-pulse-0::after,.hint-pulse-1::before,.hint-pulse-1::after,.hint-pulse-2::before,.hint-pulse-2::after{position:absolute;border-radius:50%;border:solid 1px #ff793f;animation:pulse-orange 2s infinite;content:""}.hint-pulse-0::before{width:55px;height:55px}.hint-pulse-0::after{width:45px;height:45px}.hint-pulse-1::before{width:75px;height:75px;margin:0 auto;right:0;left:0}.hint-pulse-1::after{width:65px;height:65px;margin:5px auto;right:0;left:0}.hint-pulse-2::before{width:70px;height:70px}.hint-pulse-2::after{width:60px;height:60px}@keyframes pulse-orange{0%{transform:scale(0.9);border:solid 2px 0 0 0 0 rgba(255,121,63,.7)}70%{transform:scale(1);border:solid 2px 0 0 0 10px rgba(255,121,63,0)}100%{transform:scale(0.9);border:solid 2px 0 0 0 0 rgba(255,121,63,0)}}
@@ -36,14 +36,15 @@
36
  .tippy-box[data-theme~=material]{background-color:#505355;font-weight:600}.tippy-box[data-theme~=material][data-placement^=top]>.tippy-arrow:before{border-top-color:#505355}.tippy-box[data-theme~=material][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#505355}.tippy-box[data-theme~=material][data-placement^=left]>.tippy-arrow:before{border-left-color:#505355}.tippy-box[data-theme~=material][data-placement^=right]>.tippy-arrow:before{border-right-color:#505355}.tippy-box[data-theme~=material]>.tippy-backdrop{background-color:#505355}.tippy-box[data-theme~=material]>.tippy-svg-arrow{fill:#505355}
37
  .random-tip{background:#fff;border-radius:50px;margin:15px 0;display:flex;flex-flow:row wrap;height:72px;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16);color:#2e788a}.random-tip .buzz{background:#fdf2e8;position:relative;margin:8px;order:1;height:56px;width:56px;border-radius:60px;box-sizing:border-box}.random-tip .tip{margin:8px 20px 8px 8px;flex:1;order:2;display:flex;align-items:center;font-size:14px}
38
  .knowledgebase-link{color:#2f7789;text-decoration:none}.knowledgebase-link.medium{font-size:14px !important}.knowledgebase-link.small{font-size:12px !important}.knowledgebase-link:hover{text-decoration:underline}.knowledgebase-icon{color:#2f7789}
39
- .button-container{-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;padding:10px;border:1px solid #e2e2e2;background-color:#fff}.button-container .button-name{max-width:100%}.button-container .button-name .button-name-span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:100%}.button-container .button-name.drag-icon{min-width:10px}.button-container .button-header{display:flex}.button-container .button-header .button-actions{margin-left:auto;flex-shrink:0}.button-container .button-settings{display:flex}.button-container .button-settings .button-title{display:inline-flex;height:30px;align-items:center;margin-right:10px;font-size:14px}.button-container .button-settings button{height:30px}.button-container .button-settings .button-visibility{flex-grow:1}.button-container .button-settings .button-visibility button{width:40px;min-width:40px;margin:0 2px}.button-container .button-settings .button-actions button{min-width:35px}.button-container .button-settings .clear{clear:both}.button-container-new-button{margin:7px 0px !important}.button-container-new-button-line{height:15px;display:flex;transition:height 150ms ease-in-out}.button-container-new-button-line>button{opacity:0;height:100%}.button-container-new-button-line>button>span:not(:last-child) hr{width:100%;border-top:1px solid #f08419;border-left:0px;margin-bottom:.5em;opacity:0;transition:all 250ms ease-in-out}.button-container-new-button-line>button>span:not(:last-child)>span{opacity:0;visibility:hidden;margin:0px;padding:0;display:flex;justify-content:center;width:0px;transition:all 150ms ease-in-out}.button-container-new-button-line>button>span:not(:last-child)>span span.fas{font-size:1.4em}.button-container-new-button-line:hover{transition:height 150ms ease-in-out 500ms;height:30px}.button-container-new-button-line:hover>button{opacity:1}.button-container-new-button-line:hover>button>span:not(:last-child) hr{opacity:1}.button-container-new-button-line:hover>button>span:not(:last-child)>span{padding:0px 10px;visibility:visible;opacity:1;margin:0 10px;transition:all 150ms ease-in-out 500ms,opacity 150ms ease-in-out 750ms}
40
  #group-button-extra-buttons div[class^=MuiListItemIcon-root]{min-width:45px}#group-button-extra-buttons div[class^=MuiListItemIcon-root] .fas,#group-button-extra-buttons div[class^=MuiListItemIcon-root] .far{overflow:unset;font-size:1rem;margin-left:5px;text-align:center}
41
- .button-group-container{padding:10px;margin-bottom:15px;border:2px #fff solid;position:relative}.button-group-container.currentDrop{border:2px #f9bf87 solid}.button-group-container .group-info{display:flex}.button-group-container .group-info .group-arrow{display:inline-block;min-width:17px;text-align:left;font-size:12px}.button-group-container .group-info .group-arrow i{-webkit-transition:all 150ms ease;-moz-transition:all 150ms ease;-ms-transition:all 150ms ease;-o-transition:all 150ms ease;transition:all 150ms ease}.button-group-container .group-info .group-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block}.button-group-container .group-info .group-action-spacer{flex-grow:1}.button-group-container .group-info .group-actions{flex-grow:0;flex-shrink:0;margin-left:20px}.button-group-container .buttons{display:none}.button-group-container.opened .group-info .group-arrow i{transform:rotate(90deg)}.button-group-container.opened .buttons{display:block;border-radius:10px;padding:10px;border:2px #fff solid;transition:border .5s}.button-group-container.opened .buttons.currentDrop{border:2px #f9bf87 solid}.button-group-container.opened .buttons.currentDrop .button-container{opacity:.5}.button-group-container.opened .buttons.currentDrop .button-container.currentDrag{opacity:1}.button-group-container.new-group::before,.button-group-container.new-group::after{content:"";position:absolute;inset:0px;z-index:-1;display:block;background:#f08419;border-radius:10px}.button-group-container.new-group::before{animation:buttonizer-pulse-new-group 1s 0s ease-out}.button-group-container.new-group::after{animation:buttonizer-pulse-new-group 1s .185s ease-out}@keyframes buttonizer-pulse-new-group{0%{opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";margin:0px}5%{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}100%{margin:-20px;opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"}}
42
  .templates-dialog ::-webkit-scrollbar{width:10px}.templates-dialog ::-webkit-scrollbar-track{background:#f1f1f1}.templates-dialog ::-webkit-scrollbar-thumb{background:#888}.templates-dialog ::-webkit-scrollbar-thumb:hover{background:#555}.templates-dialog .MuiDialog-paperFullWidth{padding:30px}.templates-dialog .MuiButton-outlined{background-color:#fff;color:#2a7688;border:1px solid #73a8b4}.templates-dialog .header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;position:relative}.templates-dialog .header .titles h2{color:#2a7688;text-transform:uppercase;font-size:32px}.templates-dialog .header .titles .title{padding:0}.templates-dialog .header .titles .subtitle{margin:0;color:#2a7688;font-weight:normal;font-size:18px}.templates-dialog .header .close-button{cursor:pointer;font-size:24px;color:#2a7688;position:absolute;right:0;top:0}.templates-dialog .container-filter-buttons{padding:8px 55px 0px 24px}.templates-dialog .container-filter-buttons .midsection{display:flex;align-items:center;margin:20px 0 40px;padding:0;border:none;overflow:visible}.templates-dialog .container-filter-buttons .midsection .button-group{min-width:fit-content}.templates-dialog .container-filter-buttons .midsection .button-group .buttons-numbers{margin:10px 20px 20px 0;display:flex}.templates-dialog .container-filter-buttons .midsection .button-group .buttons-numbers .current{background-color:#fce8d4;color:#f08419;border:1px solid #f08419}.templates-dialog .select-all{opacity:0;visibility:hidden}.templates-dialog .select-all.visible{opacity:1;visibility:visible}.search-results{position:absolute;margin-top:-30px}.loading{text-align:center;height:500px;justify-content:center;display:flex}.loading p{font-family:Arial,"Helvetica Neue"}.template{display:grid;grid-template-columns:repeat(auto-fit, 202px);grid-gap:1.5rem;grid-template-rows:repeat(6, 177px);height:500px}.template .type{box-shadow:1px 1px 6px #2f798a2b;height:175px;width:200px;color:#2a7688;position:relative;border-radius:5px;display:flex;cursor:pointer;grid-column:1;grid-row:1;margin:5px}.template .type img{max-width:100%;margin:auto;max-height:85%;user-select:none}.template .type .category{position:absolute;top:15px;right:10px;font-size:12px}.template .type .new{position:absolute;bottom:15px;right:10px;font-size:12px;background-color:#f08419;color:#fff}.template .type .buttonizer-premium{position:absolute;bottom:15px;left:10px;width:10px;display:flex;justify-content:center}.template .type .default-option{width:100%;display:flex;align-items:center;flex-direction:column;justify-content:center;position:relative}.template .type .default-option span{position:absolute;bottom:35px;font-size:12px}.template .container{display:grid}.template .container .checkbox{margin:10px 0;transition:all .2s ease-in-out;opacity:1;grid-column:1;grid-row:1;height:24px;width:24px;margin:5px;z-index:1}.template .container .checkbox.hidden{opacity:0;visibility:hidden}.template .container .select{visibility:hidden;opacity:0;display:flex;align-items:center;position:absolute;bottom:0;grid-column-gap:5px;padding:5px 15px;box-shadow:1px 1px 6px #2f798a2b;border-top-right-radius:3px;border-bottom-right-radius:3px;border-top-left-radius:3px;font-size:13px;transition:all .2s ease-in-out}.template .container:hover .select{visibility:visible;opacity:1}.template .container:hover .checkbox.hidden{opacity:1;visibility:visible}
43
  .buttonizer-premium{background:#2d7688;background:-moz-linear-gradient(-45deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);background:-webkit-linear-gradient(-45deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);background:linear-gradient(135deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr="#2d7688", endColorstr="#e8832c",GradientType=1 );color:#fff;font-weight:500;font-size:13px;line-height:17px;padding:4px 20px;display:inline-block;vertical-align:middle;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;margin-left:10px;cursor:pointer}.buttonizer-premium.premium-right{position:absolute;right:30px;top:19px;z-index:9}.buttonizer-premium::after{content:"PRO"}.MuiFormControl-root:not(.MuiTextField-root) .buttonizer-premium{margin-right:15px}
 
44
  .first-button{background-color:#fff;width:full-width;height:75px;display:flex;align-items:center;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16)}
45
  .item-not-found{text-align:center;padding:40px 0}.item-not-found i{font-size:50px;display:block;margin:30px auto}.item-not-found h4{font-size:15px;margin:28px 0}
46
- .tab-bordered{position:relative;z-index:2;overflow:visible !important}.tab-bordered .MuiTabs-fixed,.tab-bordered .MuiTab-root{overflow:visible !important}.use-main-button-style{padding:5px 15px;display:flex;position:relative}.use-main-button-style:before{height:2px;background:#dfdfdf;content:" ";position:absolute;top:-2px;left:0;right:0;z-index:1}.use-main-button-style .button-label{flex-grow:1;margin-left:-10px}.use-main-button-style>div{width:50px;flex-grow:0}.back-to-group{position:fixed;left:0;width:20px;z-index:1}.back-to-group::before{content:"";position:fixed;left:0;top:0;width:10px;height:100vh;background:#2f7789}.back-to-group a{position:absolute;transform-origin:top left;left:-1px;color:#f08419;text-transform:uppercase;text-decoration:none;padding:1px 8px 1px 8px;display:inline-block;transform:rotate(90deg) translateY(-100%);background-color:#fff;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16) !important;border-radius:4px 4px 0 0;height:20px;white-space:nowrap;font-weight:500;transition:padding .125s ease,box-shadow .25s ease}.back-to-group a i{margin-right:8px}.back-to-group a:hover{padding:1px 8px 5px 8px;box-shadow:0 1px 1px 0 rgba(60,64,67,.16),0 1px 3px 1px rgba(60,64,67,.32) !important}
47
  .breadcrumb .mdc-select,.breadcrumb button{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:100%;line-height:28px;display:flex;align-items:center;flex-flow:row-reverse;border-radius:4px;padding:0 8px;font-family:Roboto,sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:.875rem;font-weight:500;letter-spacing:.08929em;text-decoration:none;text-transform:uppercase}.breadcrumb .mdc-select .fas.fa-chevron-down,.breadcrumb button .fas.fa-chevron-down{color:#fff !important;line-height:3.4;font-size:9px}.breadcrumb .mdc-select input,.breadcrumb .mdc-select .mdc-select__dropdown-icon,.breadcrumb .mdc-select .mdc-select__selected-text,.breadcrumb button input,.breadcrumb button .mdc-select__dropdown-icon,.breadcrumb button .mdc-select__selected-text{position:relative}.breadcrumb .mdc-select .mdc-select__selected-text,.breadcrumb button .mdc-select__selected-text{min-width:fit-content;padding:0 16px 0 0px !important;color:#fff;font-size:12px !important;height:fit-content;border-bottom:none}.breadcrumb .mdc-select .mdc-notched-outline,.breadcrumb button .mdc-notched-outline{display:none}.breadcrumb .mdc-select.mdc-select--outlined .mdc-select__selected-text,.breadcrumb button.mdc-select--outlined .mdc-select__selected-text{padding:0px}.breadcrumb .mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-line-ripple,.breadcrumb button:not(.mdc-select--disabled).mdc-select--focused .mdc-line-ripple{background-color:#eb8119}.button-select-menu .MuiPaper-root{padding-top:6px;min-width:140px}.button-select-menu .MuiPaper-root .breadcrumb-select-options{margin-bottom:6px}
48
  .collapsible-group{margin:10px 20px}.collapsible-group>button{text-align:left;justify-content:normal;padding:0 15px;height:49px}.collapsible-group>button i{margin-left:10px;font-size:12px;-webkit-transition:all 150ms ease;-moz-transition:all 150ms ease;-ms-transition:all 150ms ease;-o-transition:all 150ms ease;transition:all 150ms ease}.collapsible-group .collapsible-body{padding:18px}.collapsible-group.collapsible-opened>button i{transform:rotate(-180deg)}
49
  .settings-container{display:flex;position:relative;margin:15px 0}.settings-container.disabled{opacity:.5;user-select:none}.settings-title{padding-right:15px;padding:4.9px 15px 4.9px 0;margin-right:auto;flex-shrink:0;font-size:14px}.settings-title span,.settings-title i{padding-left:5px;font-size:14px;line-height:14px}.settings-content{display:flex;flex-shrink:1;align-self:center}.container-full-width .settings-content{width:66.666%}
@@ -59,6 +60,7 @@
59
  .disable-setting{cursor:pointer}.disable-setting.disabled{position:relative}.disable-setting.disabled .settings{opacity:.5;pointer-events:none}.disable-setting.disabled .disable-content{position:absolute;bottom:0;top:0;left:0;right:0;text-align:center;max-width:100%;color:#2f7789;font-weight:900;display:flex;align-items:center;user-select:none}.disable-setting.disabled .disable-content .buttonizer-premium{margin-right:30px;margin-left:auto}
60
  .textfield-corners-input{height:100%;max-width:80px;padding-right:5px !important;margin:0 !important}.textfield-corners-input.textfield-corners-select{max-width:35px}.textfield-corners-input .MuiSelect-root{font-size:12px;padding:5px 12px 5px 8px !important}.textfield-corners-input .MuiSvgIcon-root{font-size:1rem;right:0;top:50%;transform:translateY(-50%)}.textfield-corners-input input{font-size:14px;padding:5px 8px}.textfield-corners-input input::-webkit-outer-spin-button,.textfield-corners-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.textfield-corners-input input[type=number]{-moz-appearance:textfield}.textfield-corners-input .MuiInputAdornment-root{margin-left:5px}.textfield-corners-input .MuiInputAdornment-root>p{font-size:14px}.textfield-corners-menu li{padding-left:8px;padding-right:8px;font-size:14px}
61
  .box-shadow-input{height:100%;max-width:50px;padding-right:5px !important;margin:0 !important}.box-shadow-input .MuiOutlinedInput-adornedEnd{padding-right:5px}.box-shadow-input .MuiOutlinedInput-adornedEnd input{font-size:14px;padding:7px 5px}.box-shadow-input .MuiOutlinedInput-adornedEnd input::-webkit-outer-spin-button,.box-shadow-input .MuiOutlinedInput-adornedEnd input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.box-shadow-input .MuiOutlinedInput-adornedEnd input[type=number]{-moz-appearance:textfield}.box-shadow-input .MuiOutlinedInput-adornedEnd .box-shadow-input-adornment{color:rgba(0,0,0,.54);font-size:.7rem}.box-shadow-input .MuiInputAdornment-root{margin-left:5px}.box-shadow-input .MuiInputAdornment-root>p{font-size:14px}
 
62
  .position-buttons-container{margin-bottom:unset}.position-buttons-container .position-buttons{max-width:unset !important}.position-buttons-container .position-buttons button svg{width:20px;fill:currentColor}.position-buttons-container .position-buttons.position-horizontal button:nth-child(1) svg,.position-buttons-container .position-buttons.position-horizontal button:nth-child(2) svg{transform:rotate(-90deg)}.position-buttons-container .position-buttons.position-horizontal button:nth-child(3) svg{transform:rotate(90deg)}.position-buttons-container .position-buttons.position-vertical button:nth-child(3) svg{transform:rotate(180deg)}.position-buttons-container .position-advanced{margin-left:5px}.position-buttons-container .position-advanced .MuiButton-endIcon{margin-left:4px}.position-buttons-container .position-advanced .MuiButton-endIcon.MuiButton-iconSizeMedium .MuiIcon-root{font-size:15px}.position-advanced-container .position-advanced-buttons{flex-grow:1}.position-advanced-container .position-advanced-buttons button{flex-grow:1;height:32px}.position-advanced-container .position-advanced-textfield{font-size:15px;height:32px;padding:0 10px}.position-textfield{height:28px;-moz-appearance:textfield}.position-textfield ::-webkit-outer-spin-button,.position-textfield ::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
63
  .image-selector{display:inline-flex;width:100%;justify-content:flex-end;text-align:center}.image-selector .image{width:100%;height:101px;display:inline-flex;text-decoration:none;line-height:26px;cursor:pointer;border-radius:3px;flex-direction:column;justify-content:flex-end;background-size:cover;background-position:center;background-color:#ededed}.image-selector .image i{font-size:40px;line-height:54px;color:#4795a9bd}.image-selector .image .image-text{background-color:#2f788a;color:#fff;border-radius:0 0 3px 3px}.image-selector .image .selected{opacity:0;transition:250ms}.image-selector .image:hover .selected{opacity:1}
64
  .advanced-scroll-timeout .advanced-timeout{display:flex;margin-bottom:10px}.advanced-scroll-timeout .advanced-timeout .timeout-radio-group{margin-right:0;width:calc(100% /3)}.advanced-scroll-timeout .advanced-timeout .timeout-radio-group .MuiFormControlLabel-label{text-transform:capitalize;text-align:left;display:flex;justify-content:left;color:#717171;font-size:13px;padding-right:40px !important;padding-left:0px !important}.advanced-scroll-timeout .advanced-scroll{display:flex;margin-bottom:10px}.advanced-scroll-timeout .advanced-scroll .scroll-radio-group{margin-right:0;width:calc(100% /3)}.advanced-scroll-timeout .advanced-scroll .scroll-radio-group .MuiFormControlLabel-label{text-transform:capitalize;text-align:left;display:flex;justify-content:left;color:#717171;font-size:13px;padding-right:40px !important;padding-left:0px !important}.advanced-scroll-timeout .advanced-scroll .MuiTextField-root{min-width:calc(100% / 3);margin-top:auto;margin-bottom:auto}.advanced-scroll-timeout .advanced-scroll .advanced-scroll-pixel-percent{display:flex;width:calc(100% / 3);flex-direction:column}.advanced-scroll-timeout .advanced-scroll .advanced-scroll-pixel-percent button{padding:0;height:45%;min-width:30px;font-size:10px;margin:auto}.advanced-scroll-timeout .advanced-scroll-hide{display:flex;justify-content:flex-end}.advanced-scroll-timeout .advanced-scroll-hide .settings-container{height:35px;width:calc(900% / 10)}.advanced-scroll-timeout .advanced-scroll-hide .settings-container .settings-title{font-size:11px}.advanced-scroll-timeout .advanced-scroll-hide .settings-container .MuiTabs-root.icon-or-image{min-height:30px}.advanced-scroll-timeout .advanced-scroll-hide .settings-container.disabled .settings-content .MuiTabs-indicator{background-color:#747474}.advanced-scroll-timeout .advanced-scroll-container{margin:15px 0 -15px}.advanced-scroll-timeout .advanced-scroll-description{display:flex;justify-content:center}.advanced-scroll-timeout .advanced-scroll-description p{margin:0}
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
+ * (C) 2017-2022 Buttonizer v2.9.0
13
  *
14
  */
15
  /*!
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
+ * (C) 2017-2022 Buttonizer v2.9.0
27
  *
28
  */
29
  @import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap);
30
+ .device-preview{flex-grow:1;position:relative;margin-left:4px;width:35px}.device-preview .button-group{box-shadow:0 3px 10px rgba(0,0,0,.2);background-color:#fff;position:absolute;left:0px;bottom:0px;width:36px;border-radius:8px;cursor:pointer}.device-preview .button{border:none;opacity:.5;font-size:16px;margin:5px 0}.device-preview .button:first-of-type{margin-top:0}.device-preview .button:last-of-type{margin-bottom:0}.device-preview .button:hover{border:none;border-radius:5px}.device-preview .button:focus{border-radius:5px}.device-preview .current-device{font-size:18px}.device-preview .current-device:hover{background-color:inherit !important}.device-preview .current-device .MuiSvgIcon-root{cursor:pointer}
31
  .MuiDialog-root #alert-dialog-title i{margin-right:15px;vertical-align:middle}.MuiDialog-root.warning .MuiBackdrop-root{background-color:rgba(93,0,0,.6)}.MuiDialog-root.warning #alert-dialog-title{color:#710909}
32
  ._3s81HemeKZtqu65wI1fy6E{font-size:19px !important;width:30px !important;height:24px !important}._2PiruT2xp0ahiZEbiVpgcf{position:relative;margin-top:20px}._2PiruT2xp0ahiZEbiVpgcf button{position:absolute;right:10px;bottom:10px;z-index:10}._2PiruT2xp0ahiZEbiVpgcf textarea{display:block;width:100%;min-width:100%;max-width:100%;overflow-x:scroll;height:180px;border-radius:4px;margin:0 1px;background:rgba(0,0,0,.07);border:0;padding:15px;box-sizing:border-box;resize:none;font-size:12px;margin-bottom:15px}._2fpqeP5Cl7bfJ6a5Nh7IP_{background:#ffd281;border-left:4px solid #f1ad00;padding:20px;margin-bottom:15px}._2fpqeP5Cl7bfJ6a5Nh7IP_ p{font-size:14px !important}._3FErKLfln3upSA8QUvjViU{display:block !important}
33
  .hint{background-color:#585858;padding:15px 20px;color:#fff;border-radius:10px;cursor:pointer;max-width:250px;z-index:100}.hint p{margin:0}.hint .close-button{font-size:12px !important;position:absolute;right:10px;top:10px;color:#fff;background:#2f7789;padding:5px !important;height:25px !important;min-width:25px !important}.hint .close-button:hover{background:#2f7789}.hint-pulse-0::before,.hint-pulse-0::after,.hint-pulse-1::before,.hint-pulse-1::after,.hint-pulse-2::before,.hint-pulse-2::after{position:absolute;border-radius:50%;border:solid 1px #ff793f;animation:pulse-orange 2s infinite;content:""}.hint-pulse-0::before{width:55px;height:55px}.hint-pulse-0::after{width:45px;height:45px}.hint-pulse-1::before{width:75px;height:75px;margin:0 auto;right:0;left:0}.hint-pulse-1::after{width:65px;height:65px;margin:5px auto;right:0;left:0}.hint-pulse-2::before{width:70px;height:70px}.hint-pulse-2::after{width:60px;height:60px}@keyframes pulse-orange{0%{transform:scale(0.9);border:solid 2px 0 0 0 0 rgba(255,121,63,.7)}70%{transform:scale(1);border:solid 2px 0 0 0 10px rgba(255,121,63,0)}100%{transform:scale(0.9);border:solid 2px 0 0 0 0 rgba(255,121,63,0)}}
36
  .tippy-box[data-theme~=material]{background-color:#505355;font-weight:600}.tippy-box[data-theme~=material][data-placement^=top]>.tippy-arrow:before{border-top-color:#505355}.tippy-box[data-theme~=material][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#505355}.tippy-box[data-theme~=material][data-placement^=left]>.tippy-arrow:before{border-left-color:#505355}.tippy-box[data-theme~=material][data-placement^=right]>.tippy-arrow:before{border-right-color:#505355}.tippy-box[data-theme~=material]>.tippy-backdrop{background-color:#505355}.tippy-box[data-theme~=material]>.tippy-svg-arrow{fill:#505355}
37
  .random-tip{background:#fff;border-radius:50px;margin:15px 0;display:flex;flex-flow:row wrap;height:72px;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16);color:#2e788a}.random-tip .buzz{background:#fdf2e8;position:relative;margin:8px;order:1;height:56px;width:56px;border-radius:60px;box-sizing:border-box}.random-tip .tip{margin:8px 20px 8px 8px;flex:1;order:2;display:flex;align-items:center;font-size:14px}
38
  .knowledgebase-link{color:#2f7789;text-decoration:none}.knowledgebase-link.medium{font-size:14px !important}.knowledgebase-link.small{font-size:12px !important}.knowledgebase-link:hover{text-decoration:underline}.knowledgebase-icon{color:#2f7789}
39
+ .button-container{-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;padding:10px;border:1px solid #e2e2e2;background-color:#fff}.button-container .button-name{max-width:100%;padding:0px 8px}.button-container .button-name .button-name-span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:100%}.button-container .button-name.drag-icon{min-width:10px}.button-container .button-header{display:flex}.button-container .button-header .button-actions{margin-left:auto;flex-shrink:0}.button-container .button-header .button-actions button{font-size:1em;min-width:30px !important;width:30px !important;height:30px !important;margin-left:5px}.button-container .button-settings{display:flex;padding:6px 8px}.button-container .button-settings .button-title{display:inline-flex;height:30px;align-items:center;margin-right:10px;font-size:14px}.button-container .button-settings .button-visibility{flex-grow:1}.button-container .button-settings .button-visibility button{margin:0 3px;border-radius:100%;min-width:30px;height:30px;padding:0;font-size:.7em}.button-container .button-settings .button-visibility button:active{box-shadow:0px 3px 5px -3px rgba(0,0,0,.2),0px 5px 10px 1px rgba(0,0,0,.14),0px 1px 12px 2px rgba(0,0,0,.12)}.button-container .button-settings .clear{clear:both}.button-container-new-button{margin:7px 0px !important}.button-container-new-button-line{height:15px;display:flex;transition:height 150ms ease-in-out}.button-container-new-button-line>button{opacity:0;height:100%}.button-container-new-button-line>button>span:not(:last-child) hr{width:100%;border-top:1px solid #f08419;border-left:0px;margin-bottom:.5em;opacity:0;transition:all 250ms ease-in-out}.button-container-new-button-line>button>span:not(:last-child)>span{opacity:0;visibility:hidden;margin:0px;padding:0;display:flex;justify-content:center;width:0px;transition:all 150ms ease-in-out}.button-container-new-button-line>button>span:not(:last-child)>span span.fas{font-size:1.4em}.button-container-new-button-line:hover{transition:height 150ms ease-in-out 500ms;height:30px}.button-container-new-button-line:hover>button{opacity:1}.button-container-new-button-line:hover>button>span:not(:last-child) hr{opacity:1}.button-container-new-button-line:hover>button>span:not(:last-child)>span{padding:0px 10px;visibility:visible;opacity:1;margin:0 10px;transition:all 150ms ease-in-out 500ms,opacity 150ms ease-in-out 750ms}.button-container-new-button{margin:7px 0px !important}.button-container-new-button-line{height:15px;display:flex;transition:height 150ms ease-in-out}.button-container-new-button-line>button{opacity:0;height:100%}.button-container-new-button-line>button>span:not(:last-child) hr{width:100%;border-top:1px solid #f08419;border-left:0px;margin-bottom:.5em;opacity:0;transition:all 250ms ease-in-out}.button-container-new-button-line>button>span:not(:last-child)>span{opacity:0;visibility:hidden;margin:0px;padding:0;display:flex;justify-content:center;width:0px;transition:all 150ms ease-in-out}.button-container-new-button-line>button>span:not(:last-child)>span span.fas{font-size:1.5em}.button-container-new-button-line:hover{transition:height 150ms ease-in-out 500ms;height:30px}.button-container-new-button-line:hover>button{opacity:1}.button-container-new-button-line:hover>button>span:not(:last-child) hr{opacity:1}.button-container-new-button-line:hover>button>span:not(:last-child)>span{padding:0px 10px;visibility:visible;opacity:1;margin:0 10px;transition:all 150ms ease-in-out 500ms,opacity 150ms ease-in-out 750ms}
40
  #group-button-extra-buttons div[class^=MuiListItemIcon-root]{min-width:45px}#group-button-extra-buttons div[class^=MuiListItemIcon-root] .fas,#group-button-extra-buttons div[class^=MuiListItemIcon-root] .far{overflow:unset;font-size:1rem;margin-left:5px;text-align:center}
41
+ .button-group-container{padding:5px;margin-bottom:15px;border:2px #fff solid;position:relative}.button-group-container.currentDrop{border:2px #f9bf87 solid}.button-group-container .group-info{display:flex;align-items:center}.button-group-container .group-info .group-arrow{display:inline-block;min-width:17px;text-align:left;font-size:12px}.button-group-container .group-info .group-arrow i{-webkit-transition:all 150ms ease;-moz-transition:all 150ms ease;-ms-transition:all 150ms ease;-o-transition:all 150ms ease;transition:all 150ms ease}.button-group-container .group-info .group-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block}.button-group-container .group-info .group-action-spacer{flex-grow:1}.button-group-container .group-info .group-actions{flex-grow:0;flex-shrink:0;margin-left:auto}.button-group-container .group-info .group-actions button{font-size:1em;min-width:30px !important;width:30px !important;height:30px !important;margin-left:5px}.button-group-container .buttons{display:none}.button-group-container.opened .group-info .group-arrow i{transform:rotate(90deg)}.button-group-container.opened .buttons{display:block;border-radius:10px;padding:5px;border:2px #fff solid;transition:border .5s}.button-group-container.opened .buttons.currentDrop{border:2px #f9bf87 solid}.button-group-container.opened .buttons.currentDrop .button-container{opacity:.5}.button-group-container.opened .buttons.currentDrop .button-container.currentDrag{opacity:1}.button-group-container.new-group::before,.button-group-container.new-group::after{content:"";position:absolute;inset:0px;z-index:-1;display:block;background:#f08419;border-radius:10px}.button-group-container.new-group::before{animation:buttonizer-pulse-new-group 1s 0s ease-out}.button-group-container.new-group::after{animation:buttonizer-pulse-new-group 1s .185s ease-out}@keyframes buttonizer-pulse-new-group{0%{opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";margin:0px}5%{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}100%{margin:-20px;opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"}}
42
  .templates-dialog ::-webkit-scrollbar{width:10px}.templates-dialog ::-webkit-scrollbar-track{background:#f1f1f1}.templates-dialog ::-webkit-scrollbar-thumb{background:#888}.templates-dialog ::-webkit-scrollbar-thumb:hover{background:#555}.templates-dialog .MuiDialog-paperFullWidth{padding:30px}.templates-dialog .MuiButton-outlined{background-color:#fff;color:#2a7688;border:1px solid #73a8b4}.templates-dialog .header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;position:relative}.templates-dialog .header .titles h2{color:#2a7688;text-transform:uppercase;font-size:32px}.templates-dialog .header .titles .title{padding:0}.templates-dialog .header .titles .subtitle{margin:0;color:#2a7688;font-weight:normal;font-size:18px}.templates-dialog .header .close-button{cursor:pointer;font-size:24px;color:#2a7688;position:absolute;right:0;top:0}.templates-dialog .container-filter-buttons{padding:8px 55px 0px 24px}.templates-dialog .container-filter-buttons .midsection{display:flex;align-items:center;margin:20px 0 40px;padding:0;border:none;overflow:visible}.templates-dialog .container-filter-buttons .midsection .button-group{min-width:fit-content}.templates-dialog .container-filter-buttons .midsection .button-group .buttons-numbers{margin:10px 20px 20px 0;display:flex}.templates-dialog .container-filter-buttons .midsection .button-group .buttons-numbers .current{background-color:#fce8d4;color:#f08419;border:1px solid #f08419}.templates-dialog .select-all{opacity:0;visibility:hidden}.templates-dialog .select-all.visible{opacity:1;visibility:visible}.search-results{position:absolute;margin-top:-30px}.loading{text-align:center;height:500px;justify-content:center;display:flex}.loading p{font-family:Arial,"Helvetica Neue"}.template{display:grid;grid-template-columns:repeat(auto-fit, 202px);grid-gap:1.5rem;grid-template-rows:repeat(6, 177px);height:500px}.template .type{box-shadow:1px 1px 6px #2f798a2b;height:175px;width:200px;color:#2a7688;position:relative;border-radius:5px;display:flex;cursor:pointer;grid-column:1;grid-row:1;margin:5px}.template .type img{max-width:100%;margin:auto;max-height:85%;user-select:none}.template .type .category{position:absolute;top:15px;right:10px;font-size:12px}.template .type .new{position:absolute;bottom:15px;right:10px;font-size:12px;background-color:#f08419;color:#fff}.template .type .buttonizer-premium{position:absolute;bottom:15px;left:10px;width:10px;display:flex;justify-content:center}.template .type .default-option{width:100%;display:flex;align-items:center;flex-direction:column;justify-content:center;position:relative}.template .type .default-option span{position:absolute;bottom:35px;font-size:12px}.template .container{display:grid}.template .container .checkbox{margin:10px 0;transition:all .2s ease-in-out;opacity:1;grid-column:1;grid-row:1;height:24px;width:24px;margin:5px;z-index:1}.template .container .checkbox.hidden{opacity:0;visibility:hidden}.template .container .select{visibility:hidden;opacity:0;display:flex;align-items:center;position:absolute;bottom:0;grid-column-gap:5px;padding:5px 15px;box-shadow:1px 1px 6px #2f798a2b;border-top-right-radius:3px;border-bottom-right-radius:3px;border-top-left-radius:3px;font-size:13px;transition:all .2s ease-in-out}.template .container:hover .select{visibility:visible;opacity:1}.template .container:hover .checkbox.hidden{opacity:1;visibility:visible}
43
  .buttonizer-premium{background:#2d7688;background:-moz-linear-gradient(-45deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);background:-webkit-linear-gradient(-45deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);background:linear-gradient(135deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr="#2d7688", endColorstr="#e8832c",GradientType=1 );color:#fff;font-weight:500;font-size:13px;line-height:17px;padding:4px 20px;display:inline-block;vertical-align:middle;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;margin-left:10px;cursor:pointer}.buttonizer-premium.premium-right{position:absolute;right:30px;top:19px;z-index:9}.buttonizer-premium::after{content:"PRO"}.MuiFormControl-root:not(.MuiTextField-root) .buttonizer-premium{margin-right:15px}
44
+ .menu-button-container{-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;padding:10px;border:1px solid #e2e2e2;background-color:#eee}.menu-button-container .menu-button-name{max-width:100%;padding:0px 8px}.menu-button-container .menu-button-name .menu-button-name-span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:100%}.menu-button-container .menu-button-name.drag-icon{min-width:10px}.menu-button-container .menu-button-header{display:flex}.menu-button-container .menu-button-header .menu-button-actions{margin-left:auto;flex-shrink:0}.menu-button-container .menu-button-header .menu-button-actions button{font-size:1em;min-width:30px !important;width:30px !important;height:30px !important;margin-left:5px}.menu-button-container .menu-button-settings{display:flex;padding:6px 8px}.menu-button-container .menu-button-settings .menu-button-title{display:inline-flex;height:30px;align-items:center;margin-right:10px;font-size:14px}.menu-button-container .menu-button-settings .menu-button-visibility{flex-grow:1}.menu-button-container .menu-button-settings .menu-button-visibility button{margin:0 3px;border-radius:100%;min-width:30px;height:30px;padding:0;font-size:.7em}.menu-button-container .menu-button-settings .menu-button-visibility button:active{box-shadow:0px 3px 5px -3px rgba(0,0,0,.2),0px 5px 10px 1px rgba(0,0,0,.14),0px 1px 12px 2px rgba(0,0,0,.12)}.menu-button-container .menu-button-settings .clear{clear:both}.menu-button-container-new-button{margin:7px 0px !important}.menu-button-container-new-button-line{height:15px;display:flex;transition:height 150ms ease-in-out}.menu-button-container-new-button-line>button{opacity:0;height:100%}.menu-button-container-new-button-line>button>span:not(:last-child) hr{width:100%;border-top:1px solid #f08419;border-left:0px;margin-bottom:.5em;opacity:0;transition:all 250ms ease-in-out}.menu-button-container-new-button-line>button>span:not(:last-child)>span{opacity:0;visibility:hidden;margin:0px;padding:0;display:flex;justify-content:center;width:0px;transition:all 150ms ease-in-out}.menu-button-container-new-button-line>button>span:not(:last-child)>span span.fas{font-size:1.4em}.menu-button-container-new-button-line:hover{transition:height 150ms ease-in-out 500ms;height:30px}.menu-button-container-new-button-line:hover>button{opacity:1}.menu-button-container-new-button-line:hover>button>span:not(:last-child) hr{opacity:1}.menu-button-container-new-button-line:hover>button>span:not(:last-child)>span{padding:0px 10px;visibility:visible;opacity:1;margin:0 10px;transition:all 150ms ease-in-out 500ms,opacity 150ms ease-in-out 750ms}.menu-button-container-new-button{margin:7px 0px !important}.menu-button-container-new-button-line{height:15px;display:flex;transition:height 150ms ease-in-out}.menu-button-container-new-button-line>button{opacity:0;height:100%}.menu-button-container-new-button-line>button>span:not(:last-child) hr{width:100%;border-top:1px solid #f08419;border-left:0px;margin-bottom:.5em;opacity:0;transition:all 250ms ease-in-out}.menu-button-container-new-button-line>button>span:not(:last-child)>span{opacity:0;visibility:hidden;margin:0px;padding:0;display:flex;justify-content:center;width:0px;transition:all 150ms ease-in-out}.menu-button-container-new-button-line>button>span:not(:last-child)>span span.fas{font-size:1.5em}.menu-button-container-new-button-line:hover{transition:height 150ms ease-in-out 500ms;height:30px}.menu-button-container-new-button-line:hover>button{opacity:1}.menu-button-container-new-button-line:hover>button>span:not(:last-child) hr{opacity:1}.menu-button-container-new-button-line:hover>button>span:not(:last-child)>span{padding:0px 10px;visibility:visible;opacity:1;margin:0 10px;transition:all 150ms ease-in-out 500ms,opacity 150ms ease-in-out 750ms}
45
  .first-button{background-color:#fff;width:full-width;height:75px;display:flex;align-items:center;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16)}
46
  .item-not-found{text-align:center;padding:40px 0}.item-not-found i{font-size:50px;display:block;margin:30px auto}.item-not-found h4{font-size:15px;margin:28px 0}
47
+ .tab-bordered{position:relative;z-index:2}.use-main-button-style{padding:5px 15px;display:flex;position:relative}.use-main-button-style:before{height:2px;background:#dfdfdf;content:" ";position:absolute;top:-2px;left:0;right:0;z-index:1}.use-main-button-style .button-label{flex-grow:1;margin-left:-10px}.use-main-button-style>div{width:50px;flex-grow:0}.back-to-group{position:fixed;left:0;width:20px;z-index:1}.back-to-group::before{content:"";position:fixed;left:0;top:0;width:10px;height:100vh;background:#2f7789}.back-to-group a{position:absolute;transform-origin:top left;left:-1px;color:#f08419;text-transform:uppercase;text-decoration:none;padding:1px 8px 1px 8px;display:inline-block;transform:rotate(90deg) translateY(-100%);background-color:#fff;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16) !important;border-radius:4px 4px 0 0;height:20px;white-space:nowrap;font-weight:500;transition:padding .125s ease,box-shadow .25s ease}.back-to-group a i{margin-right:8px}.back-to-group a:hover{padding:1px 8px 5px 8px;box-shadow:0 1px 1px 0 rgba(60,64,67,.16),0 1px 3px 1px rgba(60,64,67,.32) !important}
48
  .breadcrumb .mdc-select,.breadcrumb button{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:100%;line-height:28px;display:flex;align-items:center;flex-flow:row-reverse;border-radius:4px;padding:0 8px;font-family:Roboto,sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:.875rem;font-weight:500;letter-spacing:.08929em;text-decoration:none;text-transform:uppercase}.breadcrumb .mdc-select .fas.fa-chevron-down,.breadcrumb button .fas.fa-chevron-down{color:#fff !important;line-height:3.4;font-size:9px}.breadcrumb .mdc-select input,.breadcrumb .mdc-select .mdc-select__dropdown-icon,.breadcrumb .mdc-select .mdc-select__selected-text,.breadcrumb button input,.breadcrumb button .mdc-select__dropdown-icon,.breadcrumb button .mdc-select__selected-text{position:relative}.breadcrumb .mdc-select .mdc-select__selected-text,.breadcrumb button .mdc-select__selected-text{min-width:fit-content;padding:0 16px 0 0px !important;color:#fff;font-size:12px !important;height:fit-content;border-bottom:none}.breadcrumb .mdc-select .mdc-notched-outline,.breadcrumb button .mdc-notched-outline{display:none}.breadcrumb .mdc-select.mdc-select--outlined .mdc-select__selected-text,.breadcrumb button.mdc-select--outlined .mdc-select__selected-text{padding:0px}.breadcrumb .mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-line-ripple,.breadcrumb button:not(.mdc-select--disabled).mdc-select--focused .mdc-line-ripple{background-color:#eb8119}.button-select-menu .MuiPaper-root{padding-top:6px;min-width:140px}.button-select-menu .MuiPaper-root .breadcrumb-select-options{margin-bottom:6px}
49
  .collapsible-group{margin:10px 20px}.collapsible-group>button{text-align:left;justify-content:normal;padding:0 15px;height:49px}.collapsible-group>button i{margin-left:10px;font-size:12px;-webkit-transition:all 150ms ease;-moz-transition:all 150ms ease;-ms-transition:all 150ms ease;-o-transition:all 150ms ease;transition:all 150ms ease}.collapsible-group .collapsible-body{padding:18px}.collapsible-group.collapsible-opened>button i{transform:rotate(-180deg)}
50
  .settings-container{display:flex;position:relative;margin:15px 0}.settings-container.disabled{opacity:.5;user-select:none}.settings-title{padding-right:15px;padding:4.9px 15px 4.9px 0;margin-right:auto;flex-shrink:0;font-size:14px}.settings-title span,.settings-title i{padding-left:5px;font-size:14px;line-height:14px}.settings-content{display:flex;flex-shrink:1;align-self:center}.container-full-width .settings-content{width:66.666%}
60
  .disable-setting{cursor:pointer}.disable-setting.disabled{position:relative}.disable-setting.disabled .settings{opacity:.5;pointer-events:none}.disable-setting.disabled .disable-content{position:absolute;bottom:0;top:0;left:0;right:0;text-align:center;max-width:100%;color:#2f7789;font-weight:900;display:flex;align-items:center;user-select:none}.disable-setting.disabled .disable-content .buttonizer-premium{margin-right:30px;margin-left:auto}
61
  .textfield-corners-input{height:100%;max-width:80px;padding-right:5px !important;margin:0 !important}.textfield-corners-input.textfield-corners-select{max-width:35px}.textfield-corners-input .MuiSelect-root{font-size:12px;padding:5px 12px 5px 8px !important}.textfield-corners-input .MuiSvgIcon-root{font-size:1rem;right:0;top:50%;transform:translateY(-50%)}.textfield-corners-input input{font-size:14px;padding:5px 8px}.textfield-corners-input input::-webkit-outer-spin-button,.textfield-corners-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.textfield-corners-input input[type=number]{-moz-appearance:textfield}.textfield-corners-input .MuiInputAdornment-root{margin-left:5px}.textfield-corners-input .MuiInputAdornment-root>p{font-size:14px}.textfield-corners-menu li{padding-left:8px;padding-right:8px;font-size:14px}
62
  .box-shadow-input{height:100%;max-width:50px;padding-right:5px !important;margin:0 !important}.box-shadow-input .MuiOutlinedInput-adornedEnd{padding-right:5px}.box-shadow-input .MuiOutlinedInput-adornedEnd input{font-size:14px;padding:7px 5px}.box-shadow-input .MuiOutlinedInput-adornedEnd input::-webkit-outer-spin-button,.box-shadow-input .MuiOutlinedInput-adornedEnd input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.box-shadow-input .MuiOutlinedInput-adornedEnd input[type=number]{-moz-appearance:textfield}.box-shadow-input .MuiOutlinedInput-adornedEnd .box-shadow-input-adornment{color:rgba(0,0,0,.54);font-size:.7rem}.box-shadow-input .MuiInputAdornment-root{margin-left:5px}.box-shadow-input .MuiInputAdornment-root>p{font-size:14px}
63
+ .tab-bordered{position:relative;z-index:2}.use-main-button-style{padding:5px 15px;display:flex;position:relative}.use-main-button-style:before{height:2px;background:#dfdfdf;content:" ";position:absolute;top:-2px;left:0;right:0;z-index:1}.use-main-button-style .button-label{flex-grow:1;margin-left:-10px}.use-main-button-style>div{width:50px;flex-grow:0}.back-to-group{position:fixed;left:0;width:20px;z-index:1}.back-to-group::before{content:"";position:fixed;left:0;top:0;width:10px;height:100vh;background:#2f7789}.back-to-group a{position:absolute;transform-origin:top left;left:-1px;color:#f08419;text-transform:uppercase;text-decoration:none;padding:1px 8px 1px 8px;display:inline-block;transform:rotate(90deg) translateY(-100%);background-color:#fff;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16) !important;border-radius:4px 4px 0 0;height:20px;white-space:nowrap;font-weight:500;transition:padding .125s ease,box-shadow .25s ease}.back-to-group a i{margin-right:8px}.back-to-group a:hover{padding:1px 8px 5px 8px;box-shadow:0 1px 1px 0 rgba(60,64,67,.16),0 1px 3px 1px rgba(60,64,67,.32) !important}
64
  .position-buttons-container{margin-bottom:unset}.position-buttons-container .position-buttons{max-width:unset !important}.position-buttons-container .position-buttons button svg{width:20px;fill:currentColor}.position-buttons-container .position-buttons.position-horizontal button:nth-child(1) svg,.position-buttons-container .position-buttons.position-horizontal button:nth-child(2) svg{transform:rotate(-90deg)}.position-buttons-container .position-buttons.position-horizontal button:nth-child(3) svg{transform:rotate(90deg)}.position-buttons-container .position-buttons.position-vertical button:nth-child(3) svg{transform:rotate(180deg)}.position-buttons-container .position-advanced{margin-left:5px}.position-buttons-container .position-advanced .MuiButton-endIcon{margin-left:4px}.position-buttons-container .position-advanced .MuiButton-endIcon.MuiButton-iconSizeMedium .MuiIcon-root{font-size:15px}.position-advanced-container .position-advanced-buttons{flex-grow:1}.position-advanced-container .position-advanced-buttons button{flex-grow:1;height:32px}.position-advanced-container .position-advanced-textfield{font-size:15px;height:32px;padding:0 10px}.position-textfield{height:28px;-moz-appearance:textfield}.position-textfield ::-webkit-outer-spin-button,.position-textfield ::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
65
  .image-selector{display:inline-flex;width:100%;justify-content:flex-end;text-align:center}.image-selector .image{width:100%;height:101px;display:inline-flex;text-decoration:none;line-height:26px;cursor:pointer;border-radius:3px;flex-direction:column;justify-content:flex-end;background-size:cover;background-position:center;background-color:#ededed}.image-selector .image i{font-size:40px;line-height:54px;color:#4795a9bd}.image-selector .image .image-text{background-color:#2f788a;color:#fff;border-radius:0 0 3px 3px}.image-selector .image .selected{opacity:0;transition:250ms}.image-selector .image:hover .selected{opacity:1}
66
  .advanced-scroll-timeout .advanced-timeout{display:flex;margin-bottom:10px}.advanced-scroll-timeout .advanced-timeout .timeout-radio-group{margin-right:0;width:calc(100% /3)}.advanced-scroll-timeout .advanced-timeout .timeout-radio-group .MuiFormControlLabel-label{text-transform:capitalize;text-align:left;display:flex;justify-content:left;color:#717171;font-size:13px;padding-right:40px !important;padding-left:0px !important}.advanced-scroll-timeout .advanced-scroll{display:flex;margin-bottom:10px}.advanced-scroll-timeout .advanced-scroll .scroll-radio-group{margin-right:0;width:calc(100% /3)}.advanced-scroll-timeout .advanced-scroll .scroll-radio-group .MuiFormControlLabel-label{text-transform:capitalize;text-align:left;display:flex;justify-content:left;color:#717171;font-size:13px;padding-right:40px !important;padding-left:0px !important}.advanced-scroll-timeout .advanced-scroll .MuiTextField-root{min-width:calc(100% / 3);margin-top:auto;margin-bottom:auto}.advanced-scroll-timeout .advanced-scroll .advanced-scroll-pixel-percent{display:flex;width:calc(100% / 3);flex-direction:column}.advanced-scroll-timeout .advanced-scroll .advanced-scroll-pixel-percent button{padding:0;height:45%;min-width:30px;font-size:10px;margin:auto}.advanced-scroll-timeout .advanced-scroll-hide{display:flex;justify-content:flex-end}.advanced-scroll-timeout .advanced-scroll-hide .settings-container{height:35px;width:calc(900% / 10)}.advanced-scroll-timeout .advanced-scroll-hide .settings-container .settings-title{font-size:11px}.advanced-scroll-timeout .advanced-scroll-hide .settings-container .MuiTabs-root.icon-or-image{min-height:30px}.advanced-scroll-timeout .advanced-scroll-hide .settings-container.disabled .settings-content .MuiTabs-indicator{background-color:#747474}.advanced-scroll-timeout .advanced-scroll-container{margin:15px 0 -15px}.advanced-scroll-timeout .advanced-scroll-description{display:flex;justify-content:center}.advanced-scroll-timeout .advanced-scroll-description p{margin:0}
assets/dashboard.js CHANGED
@@ -9,7 +9,7 @@
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
- * (C) 2017-2022 Buttonizer v2.8.3
13
  *
14
  */
15
  /*!
@@ -23,7 +23,7 @@
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
- * (C) 2017-2022 Buttonizer v2.8.3
27
  *
28
  */
29
  /******/ (function() { // webpackBootstrap
@@ -11863,7 +11863,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
11863
 
11864
  /***/ }),
11865
 
11866
- /***/ 32726:
11867
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
11868
 
11869
  "use strict";
@@ -12545,8 +12545,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
12545
  var defaults = __webpack_require__(46314);
12546
 
12547
  var merge = __webpack_require__(82492);
12548
-
12549
- var omitBy = __webpack_require__(14176);
12550
  /**
12551
  * Constants
12552
  */
@@ -12586,6 +12584,12 @@ var buttonizer_constants_actionTypes = {
12586
  SET_KEY_VALUE: "SET KEY VALUE BUTTONS",
12587
  SET_KEY_FORMAT: "SET FORMATTED KEY VALUE PAIRS BUTTONS"
12588
  },
 
 
 
 
 
 
12589
  timeSchedules: {
12590
  // Time Schedule actionTypes
12591
  ADD_RECORD: "ADDING TIME SCHEDULE",
@@ -12632,6 +12636,7 @@ var buttonizer_constants_actionTypes = {
12632
  var wpActionTypes = {};
12633
  var weekdays = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
12634
  var models = {
 
12635
  BUTTON: "buttons",
12636
  GROUP: "groups",
12637
  TIME_SCHEDULE: "timeSchedules",
@@ -12737,13 +12742,13 @@ var formats = {
12737
  }
12738
  }
12739
  };
12740
- var excludedPropertyRequests = (/* unused pure expression or super */ null && (["selected_schedule", "show_on_schedule_trigger", "selected_page_rule", "show_on_rule_trigger", "show_mobile", "show_desktop", "is_menu"]));
12741
  var import_export = {
12742
  propertiesToOmit: ["export_type", "selected_page_rule", "selected_schedule", "id", "parent", "show_on_rule_trigger", "show_on_schedule_trigger"]
12743
  };
12744
  var settingKeys = {
12745
  // Returns all default button settings keys
12746
- get buttonSettings() {
12747
  var result = {
12748
  general: [],
12749
  styling: [],
@@ -12760,14 +12765,14 @@ var settingKeys = {
12760
  return result;
12761
  },
12762
 
12763
- // Returns all default group settings keys
12764
- get groupSettings() {
12765
  var result = {
12766
  general: [],
12767
  styling: [],
12768
  advanced: []
12769
  };
12770
- Object.entries(defaults.group).map(function (key) {
12771
  merge(result, buttonizer_constants_defineProperty({}, key[0], Object.entries(key[1]).map(function (_ref3) {
12772
  var _ref4 = _slicedToArray(_ref3, 1),
12773
  key = _ref4[0];
@@ -12778,14 +12783,14 @@ var settingKeys = {
12778
  return result;
12779
  },
12780
 
12781
- // Returns all default setting keys
12782
- get allSettings() {
12783
  var result = {
12784
  general: [],
12785
  styling: [],
12786
  advanced: []
12787
  };
12788
- Object.entries(merge({}, defaults.button, defaults.group)).map(function (key) {
12789
  merge(result, buttonizer_constants_defineProperty({}, key[0], Object.entries(key[1]).map(function (_ref5) {
12790
  var _ref6 = _slicedToArray(_ref5, 1),
12791
  key = _ref6[0];
@@ -12796,18 +12801,22 @@ var settingKeys = {
12796
  return result;
12797
  },
12798
 
12799
- // Returns default styling setting keys excluding the overwritten keys by group
12800
- get stylingNoGroup() {
12801
- var _this = this;
12802
-
12803
- return Object.entries(omitBy(merge({}, defaults.button.styling, defaults.group.styling), function (value, key) {
12804
- return _this.groupSettings.styling.includes(key) && _this.buttonSettings.styling.includes(key) || key.includes("icon");
12805
- })).map(function (_ref7) {
12806
- var _ref8 = _slicedToArray(_ref7, 1),
12807
- key = _ref8[0];
 
 
12808
 
12809
- return key;
 
12810
  });
 
12811
  },
12812
 
12813
  // Returns default hover styling setting key
@@ -12832,7 +12841,7 @@ function openDrawer(drawer, page) {
12832
  document.location.hash += "".concat(document.location.hash.match(/\/$/) ? "" : "/").concat(drawer).concat(page ? "/" + page : "");
12833
  }
12834
  function closeDrawer() {
12835
- document.location.hash = document.location.hash.replace(/\/?(settings|menu|timeschedules|pagerules|buttonizertour).*$/i, "");
12836
  }
12837
  ;// CONCATENATED MODULE: ./src/js/utils/utils/data-utils.js
12838
  /* global Map */
@@ -15737,6 +15746,9 @@ function translate_translate(key) {
15737
  var objects = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15738
  return i18next.t(key, objects);
15739
  }
 
 
 
15740
  ;// CONCATENATED MODULE: ./src/js/dashboard/store/helpers.js
15741
  function helpers_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
15742
 
@@ -15749,6 +15761,7 @@ function helpers_defineProperty(obj, key, value) { if (key in obj) { Object.defi
15749
 
15750
 
15751
 
 
15752
  var previousFailedRequest = {
15753
  resolve: null,
15754
  endpoint: null,
@@ -15841,6 +15854,7 @@ function helpers_init() {
15841
  payload: {
15842
  buttons: {},
15843
  groups: {},
 
15844
  timeSchedules: {},
15845
  pageRules: {},
15846
  settings: {}
@@ -15857,7 +15871,8 @@ function helpers_init() {
15857
  function convertData(result) {
15858
  var data = result;
15859
  var buttons = {};
15860
- var groups = {}; // Initializing groups
 
15861
 
15862
  data.groups.map(function (group) {
15863
  var groupObject = createRecord(group.data);
@@ -15870,6 +15885,8 @@ function convertData(result) {
15870
  buttons[buttonObject.id] = buttonObject;
15871
  groupObject.children.push(buttonObject.id);
15872
  });
 
 
15873
  groups[groupObject.id] = groupObject;
15874
  });
15875
  var timeSchedules = {};
@@ -15913,6 +15930,7 @@ function convertData(result) {
15913
  hasChanges: data.changes,
15914
  buttons: buttons,
15915
  groups: groups,
 
15916
  timeSchedules: timeSchedules,
15917
  pageRules: pageRules,
15918
  settings: data.settings,
@@ -16101,11 +16119,13 @@ var removeExcludedDate = function removeExcludedDate(id, dateKey) {
16101
 
16102
  function dataActions_addRecord(data, model) {
16103
  var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
 
16104
  return {
16105
  type: buttonizer_constants_actionTypes[model].ADD_RECORD,
16106
  payload: {
16107
  record: createRecord(data),
16108
- index: index
 
16109
  }
16110
  };
16111
  }
@@ -16123,7 +16143,22 @@ function removeRecord(model_id, model) {
16123
  }
16124
  };
16125
  }
 
 
 
 
 
 
16126
  ;// CONCATENATED MODULE: ./src/js/dashboard/store/selectors.js
 
 
 
 
 
 
 
 
 
16127
 
16128
  function getButtons(group_id) {
16129
  var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.store.getState();
@@ -16150,6 +16185,36 @@ function selectors_getChildrenIndex(children) {
16150
  });
16151
  return result;
16152
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16153
  function selectors_getButtonsCount(group_id) {
16154
  var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.store.getState();
16155
  if (!state.groups || !state.groups[group_id]) return 0;
@@ -16164,10 +16229,14 @@ function selectors_getGroupCount() {
16164
  function n(n){for(var t=arguments.length,r=Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];if(false){ var i, o; }throw Error("[Immer] minified error nr: "+n+(r.length?" "+r.map((function(n){return"'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function immer_esm_t(n){return!!n&&!!n[Q]}function r(n){return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var t=Object.getPrototypeOf(n);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Z}(n)||Array.isArray(n)||!!n[L]||!!n.constructor[L]||s(n)||v(n))}function e(r){return immer_esm_t(r)||n(23,r),r[Q].t}function i(n,t,r){void 0===r&&(r=!1),0===o(n)?(r?Object.keys:nn)(n).forEach((function(e){r&&"symbol"==typeof e||t(e,n[e],n)})):n.forEach((function(r,e){return t(e,r,n)}))}function o(n){var t=n[Q];return t?t.i>3?t.i-4:t.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,t){return 2===o(n)?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function a(n,t){return 2===o(n)?n.get(t):n[t]}function f(n,t,r){var e=o(n);2===e?n.set(t,r):3===e?(n.delete(t),n.add(r)):n[t]=r}function c(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var t=tn(n);delete t[Q];for(var r=nn(t),e=0;e<r.length;e++){var i=r[e],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]})}return Object.create(Object.getPrototypeOf(n),t)}function d(n,e){return void 0===e&&(e=!1),y(n)||immer_esm_t(n)||!r(n)?n:(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,t){return d(t,!0)}),!0),n)}function h(){n(2)}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(t){var r=rn[t];return r||n(18,t),r}function m(n,t){rn[n]||(rn[n]=t)}function _(){return true||0,U}function j(n,t){t&&(b("Patches"),n.u=[],n.s=[],n.v=t)}function O(n){g(n),n.p.forEach(S),n.p=null}function g(n){n===U&&(U=n.l)}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var t=n[Q];0===t.i||1===t.i?t.j():t.O=!0}function P(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.g||b("ES5").S(e,t,o),o?(i[Q].P&&(O(e),n(4)),r(t)&&(t=M(e,t),e.l||x(e,t)),e.u&&b("Patches").M(i[Q],t,e.u,e.s)):t=M(e,i,[]),O(e),e.u&&e.v(e.u,e.s),t!==H?t:void 0}function M(n,t,r){if(y(t))return t;var e=t[Q];if(!e)return i(t,(function(i,o){return A(n,e,t,i,o,r)}),!0),t;if(e.A!==n)return t;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o;i(3===e.i?new Set(o):o,(function(t,i){return A(n,e,o,t,i,r)})),x(n,o,!1),r&&n.u&&b("Patches").R(e,r,n.u,n.s)}return e.o}function A(e,i,o,a,c,s){if( false&&0,immer_esm_t(c)){var v=M(e,c,s&&i&&3!==i.i&&!u(i.D,a)?s.concat(a):void 0);if(f(o,a,v),!immer_esm_t(v))return;e.m=!1}if(r(c)&&!y(c)){if(!e.h.F&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,t,r){void 0===r&&(r=!1),n.h.F&&n.m&&d(t,r)}function z(n,t){var r=n[Q];return(r?p(r):n)[t]}function I(n,t){if(t in n)for(var r=Object.getPrototypeOf(n);r;){var e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}}function k(n){n.P||(n.P=!0,n.l&&k(n.l))}function E(n){n.o||(n.o=l(n.t))}function R(n,t,r){var e=s(t)?b("MapSet").N(t,r):v(t)?b("MapSet").T(t,r):n.g?function(n,t){var r=Array.isArray(n),e={i:r?1:0,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;r&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(t,r):b("ES5").J(t,r);return(r?r.A:_()).p.push(e),e}function D(e){return immer_esm_t(e)||n(22,e),function n(t){if(!r(t))return t;var e,u=t[Q],c=o(t);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=F(t,c),u.I=!1}else e=F(t,c);return i(e,(function(t,r){u&&a(u.t,t)===r||f(e,t,n(r))})),3===c?new Set(e):e}(e)}function F(n,t){switch(t){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function N(){function r(n,t){var r=s[n];return r?r.enumerable=t:s[n]=r={configurable:!0,enumerable:t,get:function(){var t=this[Q];return false&&0,en.get(t,n)},set:function(t){var r=this[Q]; false&&0,en.set(r,n,t)}},r}function e(n){for(var t=n.length-1;t>=0;t--){var r=n[t][Q];if(!r.P)switch(r.i){case 5:a(r)&&k(r);break;case 4:o(r)&&k(r)}}}function o(n){for(var t=n.t,r=n.k,e=nn(r),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=t[o];if(void 0===a&&!u(t,o))return!0;var f=r[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!t[Q];return e.length!==nn(t).length+(v?0:1)}function a(n){var t=n.k;if(t.length!==n.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!r||r.get)}function f(t){t.O&&n(3,JSON.stringify(p(t)))}var s={};m("ES5",{J:function(n,t){var e=Array.isArray(n),i=function(n,t){if(n){for(var e=Array(t.length),i=0;i<t.length;i++)Object.defineProperty(e,""+i,r(i,!0));return e}var o=tn(t);delete o[Q];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=r(f,n||!!o[f].enumerable)}return Object.create(Object.getPrototypeOf(t),o)}(e,n),o={i:e?5:4,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:n,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,r,o){o?immer_esm_t(r)&&r[Q].A===n&&e(n.p):(n.u&&function n(t){if(t&&"object"==typeof t){var r=t[Q];if(r){var e=r.t,o=r.k,f=r.D,c=r.i;if(4===c)i(o,(function(t){t!==Q&&(void 0!==e[t]||u(e,t)?f[t]||n(o[t]):(f[t]=!0,k(r)))})),i(e,(function(n){void 0!==o[n]||u(o,n)||(f[n]=!1,k(r))}));else if(5===c){if(a(r)&&(k(r),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)void 0===f[l]&&n(o[l])}}}}(n.p[0]),e(n.p))},K:function(n){return 4===n.i?o(n):a(n)}})}function T(){function e(n){if(!r(n))return n;if(Array.isArray(n))return n.map(e);if(s(n))return new Map(Array.from(n.entries()).map((function(n){return[n[0],e(n[1])]})));if(v(n))return new Set(Array.from(n).map(e));var t=Object.create(Object.getPrototypeOf(n));for(var i in n)t[i]=e(n[i]);return u(n,L)&&(t[L]=n[L]),t}function f(n){return immer_esm_t(n)?e(n):n}var c="add";m("Patches",{$:function(t,r){return r.forEach((function(r){for(var i=r.path,u=r.op,f=t,s=0;s<i.length-1;s++){var v=o(f),p=""+i[s];0!==v&&1!==v||"__proto__"!==p&&"constructor"!==p||n(24),"function"==typeof f&&"prototype"===p&&n(24),"object"!=typeof(f=a(f,p))&&n(15,i.join("/"))}var l=o(f),d=e(r.value),h=i[i.length-1];switch(u){case"replace":switch(l){case 2:return f.set(h,d);case 3:n(16);default:return f[h]=d}case c:switch(l){case 1:return f.splice(h,0,d);case 2:return f.set(h,d);case 3:return f.add(d);default:return f[h]=d}case"remove":switch(l){case 1:return f.splice(h,1);case 2:return f.delete(h);case 3:return f.delete(r.value);default:return delete f[h]}default:n(17,u)}})),t},R:function(n,t,r,e){switch(n.i){case 0:case 4:case 2:return function(n,t,r,e){var o=n.t,s=n.o;i(n.D,(function(n,i){var v=a(o,n),p=a(s,n),l=i?u(o,n)?"replace":c:"remove";if(v!==p||"replace"!==l){var d=t.concat(n);r.push("remove"===l?{op:l,path:d}:{op:l,path:d,value:p}),e.push(l===c?{op:"remove",path:d}:"remove"===l?{op:c,path:d,value:f(v)}:{op:"replace",path:d,value:f(v)})}}))}(n,t,r,e);case 5:case 1:return function(n,t,r,e){var i=n.t,o=n.D,u=n.o;if(u.length<i.length){var a=[u,i];i=a[0],u=a[1];var s=[e,r];r=s[0],e=s[1]}for(var v=0;v<i.length;v++)if(o[v]&&u[v]!==i[v]){var p=t.concat([v]);r.push({op:"replace",path:p,value:f(u[v])}),e.push({op:"replace",path:p,value:f(i[v])})}for(var l=i.length;l<u.length;l++){var d=t.concat([l]);r.push({op:c,path:d,value:f(u[l])})}i.length<u.length&&e.push({op:"replace",path:t.concat(["length"]),value:i.length})}(n,t,r,e);case 3:return function(n,t,r,e){var i=n.t,o=n.o,u=0;i.forEach((function(n){if(!o.has(n)){var i=t.concat([u]);r.push({op:"remove",path:i,value:n}),e.unshift({op:c,path:i,value:n})}u++})),u=0,o.forEach((function(n){if(!i.has(n)){var o=t.concat([u]);r.push({op:c,path:o,value:n}),e.unshift({op:"remove",path:o,value:n})}u++}))}(n,t,r,e)}},M:function(n,t,r,e){r.push({op:"replace",path:[],value:t===H?void 0:t}),e.push({op:"replace",path:[],value:n.t})}})}function C(){function t(n,t){function r(){this.constructor=n}a(n,t),n.prototype=(r.prototype=t.prototype,new r)}function e(n){n.o||(n.D=new Map,n.o=new Map(n.t))}function o(n){n.o||(n.o=new Set,n.t.forEach((function(t){if(r(t)){var e=R(n.A.h,t,n);n.p.set(t,e),n.o.add(e)}else n.o.add(t)})))}function u(t){t.O&&n(3,JSON.stringify(p(t)))}var a=function(n,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)},f=function(){function n(n,t){return this[Q]={i:2,l:t,A:t?t.A:_(),P:!1,I:!1,o:void 0,D:void 0,t:n,k:this,C:!1,O:!1},this}t(n,Map);var o=n.prototype;return Object.defineProperty(o,"size",{get:function(){return p(this[Q]).size}}),o.has=function(n){return p(this[Q]).has(n)},o.set=function(n,t){var r=this[Q];return u(r),p(r).has(n)&&p(r).get(n)===t||(e(r),k(r),r.D.set(n,!0),r.o.set(n,t),r.D.set(n,!0)),this},o.delete=function(n){if(!this.has(n))return!1;var t=this[Q];return u(t),e(t),k(t),t.D.set(n,!1),t.o.delete(n),!0},o.clear=function(){var n=this[Q];u(n),p(n).size&&(e(n),k(n),n.D=new Map,i(n.t,(function(t){n.D.set(t,!1)})),n.o.clear())},o.forEach=function(n,t){var r=this;p(this[Q]).forEach((function(e,i){n.call(t,r.get(i),i,r)}))},o.get=function(n){var t=this[Q];u(t);var i=p(t).get(n);if(t.I||!r(i))return i;if(i!==t.t.get(n))return i;var o=R(t.A.h,i,t);return e(t),t.o.set(n,o),o},o.keys=function(){return p(this[Q]).keys()},o.values=function(){var n,t=this,r=this.keys();return(n={})[V]=function(){return t.values()},n.next=function(){var n=r.next();return n.done?n:{done:!1,value:t.get(n.value)}},n},o.entries=function(){var n,t=this,r=this.keys();return(n={})[V]=function(){return t.entries()},n.next=function(){var n=r.next();if(n.done)return n;var e=t.get(n.value);return{done:!1,value:[n.value,e]}},n},o[V]=function(){return this.entries()},n}(),c=function(){function n(n,t){return this[Q]={i:3,l:t,A:t?t.A:_(),P:!1,I:!1,o:void 0,t:n,k:this,p:new Map,O:!1,C:!1},this}t(n,Set);var r=n.prototype;return Object.defineProperty(r,"size",{get:function(){return p(this[Q]).size}}),r.has=function(n){var t=this[Q];return u(t),t.o?!!t.o.has(n)||!(!t.p.has(n)||!t.o.has(t.p.get(n))):t.t.has(n)},r.add=function(n){var t=this[Q];return u(t),this.has(n)||(o(t),k(t),t.o.add(n)),this},r.delete=function(n){if(!this.has(n))return!1;var t=this[Q];return u(t),o(t),k(t),t.o.delete(n)||!!t.p.has(n)&&t.o.delete(t.p.get(n))},r.clear=function(){var n=this[Q];u(n),p(n).size&&(o(n),k(n),n.o.clear())},r.values=function(){var n=this[Q];return u(n),o(n),n.o.values()},r.entries=function(){var n=this[Q];return u(n),o(n),n.o.entries()},r.keys=function(){return this.values()},r[V]=function(){return this.values()},r.forEach=function(n,t){for(var r=this.values(),e=r.next();!e.done;)n.call(t,e.value,e.value,this),e=r.next()},n}();m("MapSet",{N:function(n,t){return new f(n,t)},T:function(n,t){return new c(n,t)}})}function J(){N(),C(),T()}function K(n){return n}function $(n){return n}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",V="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return"Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return"Unsupported patch operation: "+n},18:function(n){return"The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return"'current' expects a draft, got: "+n},23:function(n){return"'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,tn=Object.getOwnPropertyDescriptors||function(n){var t={};return nn(n).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(n,r)})),t},rn={},en={get:function(n,t){if(t===Q)return n;var e=p(n);if(!u(e,t))return function(n,t,r){var e,i=I(t,r);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,t);var i=e[t];return n.I||!r(i)?i:i===z(n.t,t)?(E(n),n.o[t]=R(n.A.h,i,n)):i},has:function(n,t){return t in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,t,r){var e=I(p(n),t);if(null==e?void 0:e.set)return e.set.call(n.k,r),!0;if(!n.P){var i=z(p(n),t),o=null==i?void 0:i[Q];if(o&&o.t===r)return n.o[t]=r,n.D[t]=!1,!0;if(c(r,i)&&(void 0!==r||u(n.t,t)))return!0;E(n),k(n)}return n.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in n.o)||(n.o[t]=r,n.D[t]=!0,!0)},deleteProperty:function(n,t){return void 0!==z(n.t,t)||t in n.t?(n.D[t]=!1,E(n),k(n)):delete n.D[t],n.o&&delete n.o[t],!0},getOwnPropertyDescriptor:function(n,t){var r=p(n),e=Reflect.getOwnPropertyDescriptor(r,t);return e?{writable:!0,configurable:1!==n.i||"length"!==t,enumerable:e.enumerable,value:r[t]}:e},defineProperty:function(){n(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12)}},on={};i(en,(function(n,t){on[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),on.deleteProperty=function(t,r){return false&&0,en.deleteProperty.call(this,t[0],r)},on.set=function(t,r,e){return false&&0,en.set.call(this,t[0],r,e,t[0])};var un=function(){function e(t){var e=this;this.g=B,this.F=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var u=i;i=t;var a=e;return function(n){var t=this;void 0===n&&(n=u);for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var r;return(r=i).call.apply(r,[t,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),r(t)){var c=w(e),s=R(e,t,void 0),v=!0;try{f=i(s),v=!1}finally{v?O(c):g(c)}return"undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw O(c),n})):(j(c,o),P(f,c))}if(!t||"object"!=typeof t){if((f=i(t))===H)return;return void 0===f&&(f=t),e.F&&d(f,!0),f}n(21,t)},this.produceWithPatches=function(n,t){return"function"==typeof n?function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.produceWithPatches(t,(function(t){return n.apply(void 0,[t].concat(i))}))}:[e.produce(n,t,(function(n,t){r=n,i=t})),r,i];var r,i},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var i=e.prototype;return i.createDraft=function(e){r(e)||n(8),immer_esm_t(e)&&(e=D(e));var i=w(this),o=R(this,e,void 0);return o[Q].C=!0,g(i),o},i.finishDraft=function(t,r){var e=t&&t[Q]; false&&(0);var i=e.A;return j(i,r),P(void 0,i)},i.setAutoFreeze=function(n){this.F=n},i.setUseProxies=function(t){t&&!B&&n(20),this.g=t},i.applyPatches=function(n,r){var e;for(e=r.length-1;e>=0;e--){var i=r[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}var o=b("Patches").$;return immer_esm_t(n)?o(n,r):this.produce(n,(function(n){return o(n,r.slice(e+1))}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);/* harmony default export */ var immer_esm = (fn);
16165
  //# sourceMappingURL=immer.esm.js.map
16166
 
 
 
 
16167
  ;// CONCATENATED MODULE: ./src/js/dashboard/store/actions/savingHelpers.js
16168
 
16169
 
16170
 
 
16171
  /**
16172
  * Generate JSON object
16173
  * @returns {Array}
@@ -16198,10 +16267,13 @@ function generateJSONObject(storeDataObject) {
16198
  }];
16199
  }
16200
 
16201
- data.push({
 
16202
  data: outputGroup,
16203
  buttons: tempButtons
16204
- });
 
 
16205
  });
16206
  return data;
16207
  }
@@ -16476,9 +16548,6 @@ function reloadPreviewIframe() {
16476
 
16477
  return null;
16478
  }
16479
- // EXTERNAL MODULE: ./node_modules/lodash/merge.js
16480
- var lodash_merge = __webpack_require__(82492);
16481
- var merge_default = /*#__PURE__*/__webpack_require__.n(lodash_merge);
16482
  // EXTERNAL MODULE: ./node_modules/lodash/isEqual.js
16483
  var isEqual = __webpack_require__(18446);
16484
  var isEqual_default = /*#__PURE__*/__webpack_require__.n(isEqual);
@@ -16593,7 +16662,7 @@ function save() {
16593
  return;
16594
  }
16595
 
16596
- if (!isEqual_default()(oldStore.buttons, currentState.buttons) || !isEqual_default()(oldStore.groups, currentState.groups)) {
16597
  SavingQueue.enqueue(saveData(generateJSONObject(dashboard_store.getState().groups), "/buttons", false, difference_default()(Object.keys(currentState.groups), Object.keys(oldStore.groups))[0]));
16598
  }
16599
  /* webpack-strip-block:removed */
@@ -17096,6 +17165,72 @@ function groupReducer_defineProperty(obj, key, value) { if (key in obj) { Object
17096
  }
17097
  });
17098
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17099
  ;// CONCATENATED MODULE: ./src/js/dashboard/store/reducers/buttonReducer.js
17100
  function buttonReducer_toConsumableArray(arr) { return buttonReducer_arrayWithoutHoles(arr) || buttonReducer_iterableToArray(arr) || buttonReducer_unsupportedIterableToArray(arr) || buttonReducer_nonIterableSpread(); }
17101
 
@@ -17119,7 +17254,7 @@ var buttonReducer_initialStore = {
17119
  pageRules: {},
17120
  _premium: false
17121
  };
17122
- function dataReducer() {
17123
  var store = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : buttonReducer_initialStore;
17124
  var action = arguments.length > 1 ? arguments[1] : undefined;
17125
  if (action.type === buttonizer_constants_actionTypes.INIT) return action.payload.buttons;
@@ -17240,7 +17375,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
17240
  * Update preview data
17241
  */
17242
 
17243
- var listenTo = [buttonizer_constants_actionTypes.groups.SET_KEY_VALUE, buttonizer_constants_actionTypes.groups.SET_KEY_FORMAT, buttonizer_constants_actionTypes.buttons.SET_KEY_VALUE, buttonizer_constants_actionTypes.buttons.SET_KEY_FORMAT];
17244
  var requiresFullReload = [buttonizer_constants_actionTypes.groups.ADD_RECORD, buttonizer_constants_actionTypes.groups.REMOVE_RECORD, buttonizer_constants_actionTypes.buttons.ADD_RECORD, buttonizer_constants_actionTypes.buttons.REMOVE_RECORD, buttonizer_constants_actionTypes.CHANGE_RELATION]; // Object to make sure keys are allowed
17245
 
17246
  var previewTimeout = {};
@@ -17281,7 +17416,7 @@ function _updatePreviewData() {
17281
  // Get value, or format value
17282
  var value = payload.format && payload.format === "normal_hover" ? formats.normal_hover.format(payload.values[0], payload.values[1]) : payload.value;
17283
  sendPostMessage("preview-data-update", {
17284
- model: type === buttonizer_constants_actionTypes.groups.SET_KEY_VALUE || type === buttonizer_constants_actionTypes.groups.SET_KEY_FORMAT ? "group" : "button",
17285
  id: payload.id,
17286
  key: payload.key,
17287
  value: value
@@ -17328,6 +17463,7 @@ function sendPostMessage(type) {
17328
 
17329
 
17330
 
 
17331
  /**
17332
  * Welcome to the Castore, proceed with caution
17333
  */
@@ -17338,7 +17474,8 @@ var combinedReducers = combineReducers({
17338
  timeSchedules: timeScheduleReducer,
17339
  pageRules: pageRuleReducer,
17340
  groups: groupReducer,
17341
- buttons: dataReducer,
 
17342
  misc: rootReducer,
17343
  settings: settingReducer,
17344
  templates: templateReducer
@@ -19153,13 +19290,13 @@ function DevicePreview() {
19153
  icon: /*#__PURE__*/react.createElement(LaptopMac/* default */.Z, null)
19154
  }];
19155
  return /*#__PURE__*/react.createElement("div", {
19156
- className: "device-preview"
 
 
 
19157
  }, showDeviceViews && /*#__PURE__*/react.createElement(ButtonGroup_ButtonGroup, {
19158
  color: "primary",
19159
  orientation: "vertical",
19160
- onMouseLeave: function onMouseLeave() {
19161
- return setShowDeviceViews(false);
19162
- },
19163
  className: "button-group",
19164
  "data-testid": "device:button-group"
19165
  }, devices.map(function (device, key) {
@@ -28295,7 +28432,7 @@ function areEqualValues(a, b) {
28295
  return String(a) === String(b);
28296
  }
28297
 
28298
- function isEmpty(display) {
28299
  return display == null || typeof display === 'string' && !display.trim();
28300
  }
28301
  /**
@@ -28640,7 +28777,7 @@ var SelectInput = /*#__PURE__*/react.forwardRef(function SelectInput(props, ref)
28640
  }, SelectDisplayProps, {
28641
  // The id is required for proper a11y
28642
  id: buttonId
28643
- }), isEmpty(display) ?
28644
  /*#__PURE__*/
28645
  // eslint-disable-next-line react/no-danger
28646
  react.createElement("span", {
@@ -39161,15 +39298,16 @@ function GroupActions_duplicateGroup(id, payload) {
39161
  function importGroup() {
39162
  var groupAttr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
39163
  var buttons = arguments.length > 1 ? arguments[1] : undefined;
39164
- var index = arguments.length > 2 ? arguments[2] : undefined;
39165
- var dispatch = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : dashboard_store.dispatch;
 
39166
  var groupAttrDef = {
39167
  name: translate_translate("utils.new_group"),
39168
  show_mobile: true,
39169
  show_desktop: true,
39170
  children: []
39171
  };
39172
- var group_id = dispatch(dataActions_addRecord(groupAttr ? groupAttr : groupAttrDef, "groups", index)).payload.record.id;
39173
  buttons.map(function (button, key) {
39174
  // Do not import
39175
  if (Object.keys(button).length === 0) return false;
@@ -40331,9 +40469,6 @@ function downloadObjectAsJson(exportObj, exportName) {
40331
  downloadAnchorNode.click();
40332
  downloadAnchorNode.remove();
40333
  }
40334
- // EXTERNAL MODULE: ./node_modules/dlv/dist/dlv.umd.js
40335
- var dlv_umd = __webpack_require__(26905);
40336
- var dlv_umd_default = /*#__PURE__*/__webpack_require__.n(dlv_umd);
40337
  ;// CONCATENATED MODULE: ./src/js/dashboard/store/actions/exportHelpers.js
40338
 
40339
 
@@ -40553,7 +40688,7 @@ function ExportButton_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr;
40553
 
40554
 
40555
 
40556
- function ExportButton(_ref) {
40557
  var _ref$type = _ref.type,
40558
  type = _ref$type === void 0 ? "group" : _ref$type,
40559
  object = _ref.object,
@@ -40580,7 +40715,7 @@ function ExportButton(_ref) {
40580
  merged = _useState8[0],
40581
  setMerged = _useState8[1];
40582
 
40583
- var foundParenData = pick_default()(group_data, settingKeys.stylingNoGroup) || false;
40584
  var state = useSelector(function (state) {
40585
  return state;
40586
  });
@@ -40627,7 +40762,8 @@ function ExportButton(_ref) {
40627
 
40628
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
40629
  onClick: createExportData,
40630
- "data-testid": "export-button"
 
40631
  }, /*#__PURE__*/react.createElement(ListItemIcon_ListItemIcon, null, /*#__PURE__*/react.createElement(esm_Icon_Icon, {
40632
  className: "fas fa-file-export"
40633
  })), /*#__PURE__*/react.createElement(Typography_Typography, {
@@ -40683,7 +40819,8 @@ function ExportButton(_ref) {
40683
  disabled: type === "button" ? !foundButtons : !foundGroup,
40684
  "data-testid": "export-commence"
40685
  }, translate_translate("import_export.export.title")))));
40686
- }
 
40687
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Containers/ButtonContainer/ButtonContainer.js
40688
  function ButtonContainer_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
40689
 
@@ -40775,9 +40912,6 @@ function ButtonContainer(_ref) {
40775
  className: "button-header"
40776
  }, /*#__PURE__*/react.createElement(esm_Button_Button, {
40777
  color: "primary",
40778
- style: {
40779
- marginBottom: "10px"
40780
- },
40781
  className: "button-name",
40782
  onClick: function onClick() {
40783
  return document.location.hash = "#" + path;
@@ -40815,7 +40949,7 @@ function ButtonContainer(_ref) {
40815
  },
40816
  "data-testid": "rename",
40817
  inDropdown: true
40818
- }), /*#__PURE__*/react.createElement(ExportButton, {
40819
  group_data: groups[groupId],
40820
  object: button,
40821
  type: "button"
@@ -49727,10 +49861,11 @@ function setCookie(cname, value) {
49727
 
49728
 
49729
 
49730
- function ImportData(currentGroup, foundGroup, foundButtons, index) {
49731
- var redirect = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
49732
- var dispatch = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : window.store.dispatch;
49733
- var state = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : window.store.getState();
 
49734
 
49735
  // Should import into a group
49736
  if (currentGroup) {
@@ -49747,20 +49882,20 @@ function ImportData(currentGroup, foundGroup, foundButtons, index) {
49747
  foundButtons.map(function (button, key) {
49748
  // Do not import
49749
  if (Object.keys(button).length === 0) return false;
49750
- addButton(button, currentGroup.id, index || currentGroup.children.length + key + 1, dispatch, redirect);
49751
  });
49752
  }
49753
  } // Should create a new group
49754
  else if (foundGroup && !currentGroup) {
49755
  console.log("Should create a new group");
49756
- importGroup(foundGroup, foundButtons, index, dispatch);
49757
  } else if (foundButtons && !foundGroup && !currentGroup) {
49758
  console.log("Should create a new group with imported button");
49759
- importGroup(foundGroup, foundButtons, index, dispatch);
49760
  }
49761
  }
49762
  function ImportRawData(data, index, currentGroup, redirect) {
49763
- var foundGroup, foundButtons;
49764
 
49765
  try {
49766
  var parsedResult = typeof data === "string" ? JSON.parse(data) : data; // Malformed data
@@ -49780,13 +49915,14 @@ function ImportRawData(data, index, currentGroup, redirect) {
49780
  foundButtons = parsedResult.buttons.map(function (button) {
49781
  return omit_default()(button, import_export.propertiesToOmit);
49782
  });
 
49783
  } // Import a button into group
49784
  else if (parsedResult.export_type === "button") {
49785
  foundGroup = false;
49786
  foundButtons = [omit_default()(parsedResult, import_export.propertiesToOmit)];
49787
  }
49788
 
49789
- ImportData(currentGroup, foundGroup, foundButtons, index, redirect);
49790
  } catch (e) {
49791
  alert(translate_translate("import_export.import.warning.malformed"));
49792
  }
@@ -56328,6 +56464,166 @@ function TemplatesDialog(_ref) {
56328
  })(TemplatesDialog));
56329
  // EXTERNAL MODULE: ./node_modules/@seznam/compose-react-refs/composeRefs.js
56330
  var composeRefs = __webpack_require__(99601);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56331
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Containers/ButtonGroupContainer/ButtonGroupContainer.js
56332
  function ButtonGroupContainer_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = ButtonGroupContainer_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
56333
 
@@ -56371,6 +56667,7 @@ function ButtonGroupContainer_defineProperty(obj, key, value) { if (key in obj)
56371
 
56372
 
56373
 
 
56374
 
56375
 
56376
 
@@ -56478,7 +56775,8 @@ function ButtonGroupContainer(_ref) {
56478
  }, /*#__PURE__*/react.createElement(esm_Button_Button, {
56479
  onClick: handleOpenState,
56480
  color: "primary",
56481
- "data-testid": "open-group"
 
56482
  }, /*#__PURE__*/react.createElement("i", {
56483
  className: "group-arrow"
56484
  }, /*#__PURE__*/react.createElement("i", {
@@ -56486,8 +56784,6 @@ function ButtonGroupContainer(_ref) {
56486
  })), /*#__PURE__*/react.createElement("span", {
56487
  className: "group-name"
56488
  }, group.name)), /*#__PURE__*/react.createElement("div", {
56489
- className: "group-action-spacer"
56490
- }), /*#__PURE__*/react.createElement("div", {
56491
  className: "group-actions"
56492
  }, /*#__PURE__*/react.createElement(ContainerActions_EditButton, {
56493
  onClick: function onClick() {
@@ -56501,7 +56797,7 @@ function ButtonGroupContainer(_ref) {
56501
  return set("groups", group.id, "name", val);
56502
  },
56503
  inDropdown: true
56504
- }), /*#__PURE__*/react.createElement(ExportButton, {
56505
  object: group,
56506
  type: "group"
56507
  }), /*#__PURE__*/react.createElement(ImportButton, {
@@ -56526,7 +56822,15 @@ function ButtonGroupContainer(_ref) {
56526
  inDropdown: true
56527
  })))), /*#__PURE__*/react.createElement("div", ButtonGroupContainer_extends({
56528
  className: "buttons" + currentDrop
56529
- }, provided.droppableProps), group.children.map(function (id, key) {
 
 
 
 
 
 
 
 
56530
  return /*#__PURE__*/react.createElement(PublicDraggable, {
56531
  draggableId: id,
56532
  index: key,
@@ -56866,6 +57170,170 @@ function ItemNotFound(_ref) {
56866
  "data-testid": "return-to-overview"
56867
  }, "Return to overview"));
56868
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56869
  ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/utils/scrollLeft.js
56870
  // Source from https://github.com/alitaheri/normalize-scroll-left
56871
  var cachedType;
@@ -57655,170 +58123,6 @@ var Tabs = /*#__PURE__*/react.forwardRef(function Tabs(props, ref) {
57655
  /* harmony default export */ var Tabs_Tabs = ((0,withStyles/* default */.Z)(Tabs_styles, {
57656
  name: 'MuiTabs'
57657
  })(Tabs));
57658
- ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/Tab/Tab.js
57659
-
57660
-
57661
-
57662
-
57663
-
57664
-
57665
-
57666
-
57667
-
57668
-
57669
- var Tab_styles = function styles(theme) {
57670
- var _extends2;
57671
-
57672
- return {
57673
- /* Styles applied to the root element. */
57674
- root: (0,esm_extends/* default */.Z)({}, theme.typography.button, (_extends2 = {
57675
- maxWidth: 264,
57676
- minWidth: 72,
57677
- position: 'relative',
57678
- boxSizing: 'border-box',
57679
- minHeight: 48,
57680
- flexShrink: 0,
57681
- padding: '6px 12px'
57682
- }, (0,defineProperty/* default */.Z)(_extends2, theme.breakpoints.up('sm'), {
57683
- padding: '6px 24px'
57684
- }), (0,defineProperty/* default */.Z)(_extends2, "overflow", 'hidden'), (0,defineProperty/* default */.Z)(_extends2, "whiteSpace", 'normal'), (0,defineProperty/* default */.Z)(_extends2, "textAlign", 'center'), (0,defineProperty/* default */.Z)(_extends2, theme.breakpoints.up('sm'), {
57685
- minWidth: 160
57686
- }), _extends2)),
57687
-
57688
- /* Styles applied to the root element if both `icon` and `label` are provided. */
57689
- labelIcon: {
57690
- minHeight: 72,
57691
- paddingTop: 9,
57692
- '& $wrapper > *:first-child': {
57693
- marginBottom: 6
57694
- }
57695
- },
57696
-
57697
- /* Styles applied to the root element if the parent [`Tabs`](/api/tabs/) has `textColor="inherit"`. */
57698
- textColorInherit: {
57699
- color: 'inherit',
57700
- opacity: 0.7,
57701
- '&$selected': {
57702
- opacity: 1
57703
- },
57704
- '&$disabled': {
57705
- opacity: 0.5
57706
- }
57707
- },
57708
-
57709
- /* Styles applied to the root element if the parent [`Tabs`](/api/tabs/) has `textColor="primary"`. */
57710
- textColorPrimary: {
57711
- color: theme.palette.text.secondary,
57712
- '&$selected': {
57713
- color: theme.palette.primary.main
57714
- },
57715
- '&$disabled': {
57716
- color: theme.palette.text.disabled
57717
- }
57718
- },
57719
-
57720
- /* Styles applied to the root element if the parent [`Tabs`](/api/tabs/) has `textColor="secondary"`. */
57721
- textColorSecondary: {
57722
- color: theme.palette.text.secondary,
57723
- '&$selected': {
57724
- color: theme.palette.secondary.main
57725
- },
57726
- '&$disabled': {
57727
- color: theme.palette.text.disabled
57728
- }
57729
- },
57730
-
57731
- /* Pseudo-class applied to the root element if `selected={true}` (controlled by the Tabs component). */
57732
- selected: {},
57733
-
57734
- /* Pseudo-class applied to the root element if `disabled={true}` (controlled by the Tabs component). */
57735
- disabled: {},
57736
-
57737
- /* Styles applied to the root element if `fullWidth={true}` (controlled by the Tabs component). */
57738
- fullWidth: {
57739
- flexShrink: 1,
57740
- flexGrow: 1,
57741
- flexBasis: 0,
57742
- maxWidth: 'none'
57743
- },
57744
-
57745
- /* Styles applied to the root element if `wrapped={true}`. */
57746
- wrapped: {
57747
- fontSize: theme.typography.pxToRem(12),
57748
- lineHeight: 1.5
57749
- },
57750
-
57751
- /* Styles applied to the `icon` and `label`'s wrapper element. */
57752
- wrapper: {
57753
- display: 'inline-flex',
57754
- alignItems: 'center',
57755
- justifyContent: 'center',
57756
- width: '100%',
57757
- flexDirection: 'column'
57758
- }
57759
- };
57760
- };
57761
- var Tab = /*#__PURE__*/react.forwardRef(function Tab(props, ref) {
57762
- var classes = props.classes,
57763
- className = props.className,
57764
- _props$disabled = props.disabled,
57765
- disabled = _props$disabled === void 0 ? false : _props$disabled,
57766
- _props$disableFocusRi = props.disableFocusRipple,
57767
- disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi,
57768
- fullWidth = props.fullWidth,
57769
- icon = props.icon,
57770
- indicator = props.indicator,
57771
- label = props.label,
57772
- onChange = props.onChange,
57773
- onClick = props.onClick,
57774
- onFocus = props.onFocus,
57775
- selected = props.selected,
57776
- selectionFollowsFocus = props.selectionFollowsFocus,
57777
- _props$textColor = props.textColor,
57778
- textColor = _props$textColor === void 0 ? 'inherit' : _props$textColor,
57779
- value = props.value,
57780
- _props$wrapped = props.wrapped,
57781
- wrapped = _props$wrapped === void 0 ? false : _props$wrapped,
57782
- other = (0,objectWithoutProperties/* default */.Z)(props, ["classes", "className", "disabled", "disableFocusRipple", "fullWidth", "icon", "indicator", "label", "onChange", "onClick", "onFocus", "selected", "selectionFollowsFocus", "textColor", "value", "wrapped"]);
57783
-
57784
- var handleClick = function handleClick(event) {
57785
- if (onChange) {
57786
- onChange(event, value);
57787
- }
57788
-
57789
- if (onClick) {
57790
- onClick(event);
57791
- }
57792
- };
57793
-
57794
- var handleFocus = function handleFocus(event) {
57795
- if (selectionFollowsFocus && !selected && onChange) {
57796
- onChange(event, value);
57797
- }
57798
-
57799
- if (onFocus) {
57800
- onFocus(event);
57801
- }
57802
- };
57803
-
57804
- return /*#__PURE__*/react.createElement(ButtonBase_ButtonBase, (0,esm_extends/* default */.Z)({
57805
- focusRipple: !disableFocusRipple,
57806
- className: (0,clsx_m/* default */.Z)(classes.root, classes["textColor".concat((0,utils_capitalize/* default */.Z)(textColor))], className, disabled && classes.disabled, selected && classes.selected, label && icon && classes.labelIcon, fullWidth && classes.fullWidth, wrapped && classes.wrapped),
57807
- ref: ref,
57808
- role: "tab",
57809
- "aria-selected": selected,
57810
- disabled: disabled,
57811
- onClick: handleClick,
57812
- onFocus: handleFocus,
57813
- tabIndex: selected ? 0 : -1
57814
- }, other), /*#__PURE__*/react.createElement("span", {
57815
- className: classes.wrapper
57816
- }, icon, label), indicator);
57817
- });
57818
- false ? 0 : void 0;
57819
- /* harmony default export */ var Tab_Tab = ((0,withStyles/* default */.Z)(Tab_styles, {
57820
- name: 'MuiTab'
57821
- })(Tab));
57822
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Containers/ContainerSettings/BreadcrumbSelect/BreadcrumbSelect.js
57823
  function BreadcrumbSelect_slicedToArray(arr, i) { return BreadcrumbSelect_arrayWithHoles(arr) || BreadcrumbSelect_iterableToArrayLimit(arr, i) || BreadcrumbSelect_unsupportedIterableToArray(arr, i) || BreadcrumbSelect_nonIterableRest(); }
57824
 
@@ -57839,6 +58143,7 @@ function BreadcrumbSelect_arrayWithHoles(arr) { if (Array.isArray(arr)) return a
57839
 
57840
 
57841
 
 
57842
  var useStyles = styles_makeStyles(function () {
57843
  return {
57844
  selected: {
@@ -57855,12 +58160,10 @@ function BreadcrumbSelect(_ref) {
57855
  group = _ref.group,
57856
  groups = _ref.groups,
57857
  history = _ref.history,
57858
- getChildrenIndex = _ref.getChildrenIndex;
57859
- var page = "";
57860
-
57861
- if (["style", "general", "advanced"].indexOf(history.location.pathname.substr(history.location.pathname.lastIndexOf("/") + 1)) > -1) {
57862
- page = "/".concat(history.location.pathname.substr(history.location.pathname.lastIndexOf("/") + 1));
57863
- }
57864
 
57865
  var _React$useState = react.useState(null),
57866
  _React$useState2 = BreadcrumbSelect_slicedToArray(_React$useState, 2),
@@ -57881,10 +58184,11 @@ function BreadcrumbSelect(_ref) {
57881
  setAnchorEl(null); // If button is defined and not group
57882
 
57883
  if (button) {
57884
- history.push("/group/".concat(button.parent, "/button/").concat(objectId).concat(page));
 
57885
  } // If group is defined and not button
57886
  else if (group) {
57887
- history.push("/group/".concat(objectId).concat(page));
57888
  }
57889
  };
57890
 
@@ -57918,7 +58222,17 @@ function BreadcrumbSelect(_ref) {
57918
  horizontal: "center"
57919
  },
57920
  "data-testid": "breadcrumb:popup"
57921
- }, button ? Object.values(getChildrenIndex(groups[button.parent].children)).map(function (buttonData, key) {
 
 
 
 
 
 
 
 
 
 
57922
  return /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
57923
  key: key,
57924
  className: "breadcrumb-select-options",
@@ -57931,7 +58245,7 @@ function BreadcrumbSelect(_ref) {
57931
  },
57932
  selected: button.id === buttonData.id
57933
  }, buttonData.name);
57934
- }) : Object.entries(groups).map(function (groupData, key) {
57935
  return /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
57936
  className: "breadcrumb-select-options",
57937
  key: key,
@@ -57956,19 +58270,20 @@ var BreadcrumbSelectWithRouter = withRouter(BreadcrumbSelect);
57956
  }
57957
  };
57958
  })(BreadcrumbSelectWithRouter));
57959
- ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Containers/ButtonContainer/ButtonHeader/ButtonHeader.js
57960
- function ButtonHeader_slicedToArray(arr, i) { return ButtonHeader_arrayWithHoles(arr) || ButtonHeader_iterableToArrayLimit(arr, i) || ButtonHeader_unsupportedIterableToArray(arr, i) || ButtonHeader_nonIterableRest(); }
57961
 
57962
- function ButtonHeader_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
57963
 
57964
- function ButtonHeader_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return ButtonHeader_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ButtonHeader_arrayLikeToArray(o, minLen); }
57965
 
57966
- function ButtonHeader_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
57967
 
57968
- function ButtonHeader_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
57969
 
57970
- function ButtonHeader_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
57971
 
 
57972
 
57973
 
57974
 
@@ -57979,26 +58294,50 @@ function ButtonHeader_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr;
57979
 
57980
 
57981
 
57982
- function ButtonHeader(_ref) {
 
 
 
 
 
 
 
 
 
 
 
57983
  var group = _ref.group,
57984
  button = _ref.button,
57985
  history = _ref.history,
57986
  _ref$tab = _ref.tab,
57987
- tab = _ref$tab === void 0 ? 0 : _ref$tab;
57988
 
57989
- var url = function url(page) {
57990
- return "/group/".concat(group.id, "/button/").concat(button.id, "/").concat(page);
 
 
 
 
 
 
 
 
 
 
 
 
 
57991
  };
57992
 
57993
  var ref = (0,react.useRef)();
57994
 
57995
  var _useState = (0,react.useState)(null),
57996
- _useState2 = ButtonHeader_slicedToArray(_useState, 2),
57997
  anchorEl = _useState2[0],
57998
  setAnchorEl = _useState2[1];
57999
 
58000
  (0,react.useEffect)(function () {
58001
- if (ref.current) setAnchorEl(ref.current.querySelector(".style-tab"));
58002
  }, [ref]);
58003
  return /*#__PURE__*/react.createElement("div", {
58004
  className: "bar-header"
@@ -58009,7 +58348,7 @@ function ButtonHeader(_ref) {
58009
  arrow: false
58010
  }, /*#__PURE__*/react.createElement(esm_Button_Button, {
58011
  onClick: function onClick() {
58012
- history.push("/");
58013
  },
58014
  color: "primary",
58015
  className: "home-button"
@@ -58022,7 +58361,7 @@ function ButtonHeader(_ref) {
58022
  arrow: false
58023
  }, /*#__PURE__*/react.createElement(esm_Button_Button, {
58024
  onClick: function onClick() {
58025
- history.push("/group/".concat(group.id));
58026
  },
58027
  color: "primary"
58028
  }, /*#__PURE__*/react.createElement("span", {
@@ -58030,7 +58369,8 @@ function ButtonHeader(_ref) {
58030
  }, group.name), /*#__PURE__*/react.createElement("i", {
58031
  className: "fas fa-chevron-right"
58032
  }))), /*#__PURE__*/react.createElement(BreadcrumbSelect_BreadcrumbSelect, {
58033
- button: button
 
58034
  })), /*#__PURE__*/react.createElement(RandomTip_RandomTip, null), /*#__PURE__*/react.createElement("div", {
58035
  className: "back-to-group"
58036
  }, /*#__PURE__*/react.createElement("a", {
@@ -58041,78 +58381,41 @@ function ButtonHeader(_ref) {
58041
  className: "mdc-card top-header",
58042
  ref: ref
58043
  }, /*#__PURE__*/react.createElement(Tabs_Tabs, {
58044
- value: tab,
58045
  variant: "fullWidth",
58046
  indicatorColor: "secondary",
58047
  textColor: "secondary",
58048
  className: "tab-bordered"
58049
- }, /*#__PURE__*/react.createElement(Tab_Tab, {
58050
- component: "a",
58051
- onClick: function onClick() {
58052
- if (history.location.pathname !== url("general")) {
58053
- history.push(url("general"));
58054
- }
58055
- },
58056
- style: tab === 0 ? {
58057
- color: "#f08419"
58058
- } : null,
58059
  label: translate_translate("settings.setting_categories.general"),
58060
- id: 0,
58061
- href: "#".concat(url("general")),
58062
  page: "general",
58063
  "data-testid": "general-tab",
58064
  icon: /*#__PURE__*/react.createElement("i", {
58065
  className: "fas fa-wrench"
58066
  })
58067
- }), /*#__PURE__*/react.createElement(Tab_Tab, {
58068
- component: "a",
58069
- onClick: function onClick() {
58070
- if (history.location.pathname !== url("style")) {
58071
- history.push(url("style"));
58072
- }
58073
-
58074
- anchorEl.classList.remove("hint-pulse-1");
58075
- },
58076
- style: tab === 1 ? {
58077
- color: "#f08419"
58078
- } : null,
58079
- ref: ref,
58080
  label: translate_translate("utils.style"),
58081
- className: "style-tab",
58082
- id: 1,
58083
- href: "#".concat(url("style")),
58084
  page: "style",
58085
  "data-testid": "style-tab",
58086
  icon: /*#__PURE__*/react.createElement("i", {
58087
  className: "fas fa-paint-brush"
58088
  })
58089
- }), /*#__PURE__*/react.createElement(Tab_Tab, {
58090
- component: "a",
58091
- onClick: function onClick() {
58092
- if (history.location.pathname !== url("advanced")) {
58093
- history.push(url("advanced"));
58094
- }
58095
- },
58096
- style: tab === 2 ? {
58097
- color: "#f08419"
58098
- } : null,
58099
  label: translate_translate("utils.advanced"),
58100
- id: 2,
58101
  page: "advanced",
58102
- href: "#".concat(url("advanced")),
58103
  "data-testid": "advanced-tab",
58104
  icon: /*#__PURE__*/react.createElement("i", {
58105
  className: "fas fa-sliders-h"
58106
  })
58107
- }))), anchorEl && /*#__PURE__*/react.createElement(Hints_Hints, {
58108
- stepTrigger: 1,
58109
- anchorEl: anchorEl,
58110
- position: [0, 10],
58111
- text: translate_translate("buttonizer_tour.hint.step_1")
58112
- }));
58113
  }
58114
 
58115
- /* harmony default export */ var ButtonHeader_ButtonHeader = (withRouter(ButtonHeader));
58116
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/CollapsibleGroup/CollapsibleGroup.js
58117
  function CollapsibleGroup_extends() { CollapsibleGroup_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return CollapsibleGroup_extends.apply(this, arguments); }
58118
 
@@ -60409,7 +60712,7 @@ function ButtonAction(_ref) {
60409
  var ActionRequestModal = function ActionRequestModal(props) {
60410
  return /*#__PURE__*/react.createElement("iframe", {
60411
  style: {
60412
- minHeight: "400px",
60413
  minWidth: "375px",
60414
  margin: "25px 15px 0"
60415
  },
@@ -60637,7 +60940,7 @@ function _defs(model, key) {
60637
 
60638
  var result = def[model][key];
60639
  if (model === "group") return mergeGroupDefaults(self, result, options);
60640
- if (model === "button") return mergeButtonDefaults(self, parent, result, options);
60641
  }
60642
 
60643
  function mergeGroupDefaults() {
@@ -60652,9 +60955,7 @@ function mergeGroupDefaults() {
60652
  _ref2$returnDefault = _ref2.returnDefault,
60653
  returnDefault = _ref2$returnDefault === void 0 ? false : _ref2$returnDefault;
60654
 
60655
- var arr = [self, returnSelf && [self[0], self[0]], returnDefault && def, returnDefault && [def[0], def[0]], !returnDefault && self.length === 0 && ["", ""]];
60656
- if (excludeSelf) arr.shift(); // exclude 'self'
60657
-
60658
  return defaults_default().apply(void 0, arr);
60659
  }
60660
 
@@ -60673,9 +60974,7 @@ function mergeButtonDefaults() {
60673
  _ref3$returnDefault = _ref3.returnDefault,
60674
  returnDefault = _ref3$returnDefault === void 0 ? false : _ref3$returnDefault;
60675
 
60676
- var arr = [self, parent, returnSelf && [undefined, self[0]], returnParent && [undefined, parent[0]], returnDefault && def, returnDefault && [undefined, def[0]], !returnDefault && self.length === 0 && ["", ""]];
60677
- if (excludeSelf) arr.shift(); // remove 'self'
60678
-
60679
  return defaults_default().apply(void 0, arr);
60680
  }
60681
  ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Button/Tabs/Options.js
@@ -75525,8 +75824,8 @@ function IconGroup(_ref) {
75525
  var iconType = function iconType() {
75526
  return /*#__PURE__*/react.createElement(IconType, {
75527
  value: get("icon_type", {
75528
- defToGroup: false,
75529
- returnDefault: true
75530
  }),
75531
  trashButton: get("icon_type") === "",
75532
  onChange: function onChange(val) {
@@ -75541,7 +75840,7 @@ function IconGroup(_ref) {
75541
  returnDefault: true,
75542
  returnSelf: true,
75543
  returnParent: true,
75544
- defToGroup: false
75545
  });
75546
  /* webpack-strip-block:removed */
75547
 
@@ -75562,7 +75861,9 @@ function IconGroup(_ref) {
75562
  value: color[hoverSettings],
75563
  defaultValue: get("icon_color", {
75564
  returnDefault: true,
75565
- returnSelf: true
 
 
75566
  })[hoverSettings],
75567
  onChange: function onChange(val) {
75568
  var newValues = color;
@@ -75573,9 +75874,7 @@ function IconGroup(_ref) {
75573
  };
75574
 
75575
  var sliders = function sliders() {
75576
- var icon_size = get("icon_size", {
75577
- defToGroup: false
75578
- });
75579
  /* webpack-strip-block:removed */
75580
 
75581
  return /*#__PURE__*/react.createElement(DisableSetting, {
@@ -75591,15 +75890,17 @@ function IconGroup(_ref) {
75591
  returnDefault: true,
75592
  returnSelf: true,
75593
  returnParent: true,
75594
- defToGroup: false
75595
  })[0],
75596
  "data-testid": "settingcontainer:icon-size",
75597
  inputText: "px",
75598
  premium: hoverSettings === 1,
75599
  disabled: hoverSettings === 1,
75600
  onChange: function onChange(val) {
75601
- set("icon_size", val);
75602
- set("icon_image_size", val);
 
 
75603
  },
75604
  className: "style-icon-size"
75605
  }));
@@ -75609,7 +75910,7 @@ function IconGroup(_ref) {
75609
  title: translate_translate("utils.icon"),
75610
  "data-testid": "group:icon"
75611
  }, groupProps), iconType(), get("icon_type", {
75612
- defToGroup: false,
75613
  returnDefault: true
75614
  }) === "off" ? null : /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(Tabs_Tabs, {
75615
  onChange: function onChange(_, val) {
@@ -75661,7 +75962,7 @@ function IconGroup(_ref) {
75661
  _ref5$getParent = _ref5.getParent,
75662
  getParent = _ref5$getParent === void 0 ? false : _ref5$getParent,
75663
  _ref5$defToGroup = _ref5.defToGroup,
75664
- defToGroup = _ref5$defToGroup === void 0 ? true : _ref5$defToGroup,
75665
  options = IconGroup_objectWithoutProperties(_ref5, ["getParent", "defToGroup"]);
75666
 
75667
  return _get(key, getParent ? group : button, group.menu_style, getParent ? "group" : "button", IconGroup_objectSpread({
@@ -75926,7 +76227,7 @@ function TextFieldCorners(_ref) {
75926
  newValues = [newValue, newValue, newValue, newValue];
75927
  } else {
75928
  newValues = values.map(function (val, k) {
75929
- return key === k ? newValue : val;
75930
  });
75931
  }
75932
 
@@ -75935,11 +76236,9 @@ function TextFieldCorners(_ref) {
75935
 
75936
  if (newValues.every(function (val) {
75937
  return val === "";
75938
- })) onChange("unset");
75939
- if (newValues.every(function (val) {
75940
- return val !== "" && !isNaN(Number(val));
75941
- })) onChange(newValues.map(function (val) {
75942
- return "".concat(val).concat(newUnit);
75943
  }).join(" "));
75944
  };
75945
 
@@ -76827,7 +77126,7 @@ var StyledGrid = (0,withStyles/* default */.Z)(Grid_styles, {
76827
  if (false) { var requireProp; }
76828
 
76829
  /* harmony default export */ var Grid_Grid = (StyledGrid);
76830
- ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Group/Tabs/Styling/LabelPosition.js
76831
  function LabelPosition_slicedToArray(arr, i) { return LabelPosition_arrayWithHoles(arr) || LabelPosition_iterableToArrayLimit(arr, i) || LabelPosition_unsupportedIterableToArray(arr, i) || LabelPosition_nonIterableRest(); }
76832
 
76833
  function LabelPosition_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -77157,7 +77456,7 @@ function _LabelGroup(_ref) {
77157
  return set("show_label_mobile", val);
77158
  },
77159
  trashButton: true
77160
- })), /*#__PURE__*/react.createElement("div", {
77161
  className: "setting-group-title"
77162
  }, translate_translate("settings.label_position.title")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(LabelPosition, {
77163
  title: translate_translate("settings.label_position.description"),
@@ -77171,7 +77470,7 @@ function _LabelGroup(_ref) {
77171
  set("horizontal_position_label", val);
77172
  },
77173
  trashButton: get("horizontal_position_label") === ""
77174
- })), /*#__PURE__*/react.createElement(Tabs_Tabs, {
77175
  onChange: function onChange(_, val) {
77176
  return setHoverSettings(val);
77177
  },
@@ -77811,26 +78110,13 @@ function Advanced(_ref) {
77811
 
77812
 
77813
 
77814
-
77815
- function currentTab(tab) {
77816
- if (tab === "advanced") {
77817
- return 2;
77818
- } else if (tab === "style") {
77819
- return 1;
77820
- } else {
77821
- return 0;
77822
- }
77823
- }
77824
-
77825
  function Button_Button_Button(_ref) {
77826
  var match = _ref.match,
77827
  groups = _ref.groups,
77828
- buttons = _ref.buttons,
77829
- welcome = _ref.welcome,
77830
- setHintStep = _ref.setHintStep;
77831
  var group = dlv_umd_default()(groups, match.params.groupId, false);
77832
  var button = dlv_umd_default()(buttons, match.params.id, false);
77833
- var tab = currentTab(dlv_umd_default()(match.params, "tab", "general"));
77834
 
77835
  if (!group || !button) {
77836
  return /*#__PURE__*/react.createElement(ItemNotFound, {
@@ -77838,19 +78124,17 @@ function Button_Button_Button(_ref) {
77838
  });
77839
  }
77840
 
77841
- return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(ButtonHeader_ButtonHeader, {
77842
  group: group,
77843
  button: button,
77844
- tab: tab,
77845
- welcome: welcome,
77846
- setHintStep: setHintStep
77847
- }), tab === 0 && /*#__PURE__*/react.createElement(Tabs_Options, {
77848
  group: group,
77849
  buttonId: button.id
77850
- }), tab === 1 && /*#__PURE__*/react.createElement(Styling, {
77851
  group: group,
77852
  buttonId: button.id
77853
- }), tab === 2 && /*#__PURE__*/react.createElement(Tabs_Advanced, {
77854
  group: group,
77855
  buttonId: button.id
77856
  }));
@@ -77859,54 +78143,167 @@ function Button_Button_Button(_ref) {
77859
  /* harmony default export */ var Pages_Button_Button = (connect(function (state) {
77860
  return {
77861
  groups: state.groups,
77862
- buttons: state.buttons,
77863
- welcome: state.settings.welcome
77864
  };
77865
- }, function (dispatch) {
77866
- return {
77867
- set: function set() {
77868
- return dispatch(dataActions_set.apply(void 0, arguments));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77869
  },
77870
- setMisc: function setMisc() {
77871
- return dispatch(dataActions_setMisc.apply(void 0, arguments));
 
 
 
 
 
 
 
 
 
 
77872
  },
77873
- setHintStep: function setHintStep(step) {
77874
- return dispatch(dataActions_setMisc("hint_step", step));
77875
- }
77876
- };
77877
- })(Button_Button_Button));
77878
- ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/MenuStyle/MenuStyle.js
77879
- function MenuStyle_slicedToArray(arr, i) { return MenuStyle_arrayWithHoles(arr) || MenuStyle_iterableToArrayLimit(arr, i) || MenuStyle_unsupportedIterableToArray(arr, i) || MenuStyle_nonIterableRest(); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77880
 
77881
- function MenuStyle_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
 
 
77882
 
77883
- function MenuStyle_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return MenuStyle_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return MenuStyle_arrayLikeToArray(o, minLen); }
77884
 
77885
- function MenuStyle_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
77886
 
77887
- function MenuStyle_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
77888
 
77889
- function MenuStyle_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
77890
 
 
77891
 
77892
 
77893
 
77894
 
77895
 
77896
 
77897
- function MenuStyle(_ref) {
77898
- var value = _ref.value,
77899
- _onChange = _ref.onChange;
 
 
 
 
77900
  var inputLabel = (0,react.useRef)(null);
77901
 
77902
  var _useState = (0,react.useState)(0),
77903
- _useState2 = MenuStyle_slicedToArray(_useState, 2),
77904
  labelWidth = _useState2[0],
77905
  setLabelWidth = _useState2[1];
77906
 
 
 
 
77907
  (0,react.useEffect)(function () {
77908
- setLabelWidth(inputLabel.current.offsetWidth);
77909
- }, []);
77910
 
77911
  var options = function options() {
77912
  /* webpack-strip-block:removed */
@@ -77914,27 +78311,23 @@ function MenuStyle(_ref) {
77914
  value: "default",
77915
  key: 0
77916
  }, translate_translate("settings.menu_style.styles.default")), /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
77917
- value: "square",
77918
  key: 1
77919
- }, translate_translate("settings.menu_style.styles.square")), /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
77920
- value: "rectangle",
77921
  key: 2
77922
- }, translate_translate("settings.menu_style.styles.rectangle")), /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
77923
- value: "text",
77924
- key: 3,
77925
- style: {
77926
- opacity: 0.5
77927
- }
77928
- }, translate_translate("settings.menu_style.styles.text"), " ", /*#__PURE__*/react.createElement(PremiumTag, null)), /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
77929
- value: "text-icon",
77930
- key: 4,
77931
- style: {
77932
- opacity: 0.5
77933
- }
77934
- }, translate_translate("settings.menu_style.styles.texticon"), " ", /*#__PURE__*/react.createElement(PremiumTag, null))];
77935
  };
77936
 
77937
- return /*#__PURE__*/react.createElement(FormControl_FormControl, {
 
 
77938
  variant: "outlined",
77939
  fullWidth: true
77940
  }, /*#__PURE__*/react.createElement(InputLabel_InputLabel, {
@@ -77955,9 +78348,87 @@ function MenuStyle(_ref) {
77955
  },
77956
  labelWidth: labelWidth,
77957
  inputProps: {
77958
- "data-testid": "setting:menu-style"
77959
  }
77960
- }, options()));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77961
  }
77962
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/StartOpened/StartOpened.js
77963
  function StartOpened_slicedToArray(arr, i) { return StartOpened_arrayWithHoles(arr) || StartOpened_iterableToArrayLimit(arr, i) || StartOpened_unsupportedIterableToArray(arr, i) || StartOpened_nonIterableRest(); }
@@ -78003,6 +78474,1159 @@ function StartOpened(_ref) {
78003
  checked: opened
78004
  }));
78005
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78006
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/Position/Position.js
78007
  function Position_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
78008
 
@@ -78299,201 +79923,28 @@ function Position(_ref) {
78299
  }
78300
  }), unitButtons()))));
78301
  }
78302
- ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/OpeningAnimation/OpeningAnimation.js
78303
- function OpeningAnimation_slicedToArray(arr, i) { return OpeningAnimation_arrayWithHoles(arr) || OpeningAnimation_iterableToArrayLimit(arr, i) || OpeningAnimation_unsupportedIterableToArray(arr, i) || OpeningAnimation_nonIterableRest(); }
78304
-
78305
- function OpeningAnimation_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
78306
-
78307
- function OpeningAnimation_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return OpeningAnimation_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return OpeningAnimation_arrayLikeToArray(o, minLen); }
78308
-
78309
- function OpeningAnimation_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
78310
-
78311
- function OpeningAnimation_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
78312
-
78313
- function OpeningAnimation_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
78314
-
78315
-
78316
-
78317
-
78318
-
78319
-
78320
- function OpeningAnimation(_ref) {
78321
- var _ref$value = _ref.value,
78322
- value = _ref$value === void 0 ? "" : _ref$value,
78323
- _ref$label_inside = _ref.label_inside,
78324
- label_inside = _ref$label_inside === void 0 ? false : _ref$label_inside,
78325
- _onChange = _ref.onChange,
78326
- visible = _ref.visible;
78327
- var inputLabel = (0,react.useRef)(null);
78328
-
78329
- var _useState = (0,react.useState)(0),
78330
- _useState2 = OpeningAnimation_slicedToArray(_useState, 2),
78331
- labelWidth = _useState2[0],
78332
- setLabelWidth = _useState2[1];
78333
-
78334
- var disableCornerCircle = false;
78335
- /* webpack-strip-block:removed */
78336
-
78337
- (0,react.useEffect)(function () {
78338
- if (inputLabel && inputLabel.current) setLabelWidth(inputLabel.current.offsetWidth);
78339
- }, [value]);
78340
-
78341
- var options = function options() {
78342
- /* webpack-strip-block:removed */
78343
- return [/*#__PURE__*/react.createElement(MenuItem_MenuItem, {
78344
- value: "default",
78345
- key: 0
78346
- }, translate_translate("settings.menu_style.styles.default")), /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
78347
- value: "faded",
78348
- key: 1
78349
- }, translate_translate("settings.menu_style.styles.faded")), /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
78350
- value: "corner-circle",
78351
- key: 2
78352
- }, translate_translate("settings.menu_style.styles.cornercircle")), /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
78353
- value: "building-up",
78354
- key: 3
78355
- }, translate_translate("settings.menu_style.styles.buildingup")), /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
78356
- value: "pop",
78357
- key: 4
78358
- }, translate_translate("settings.menu_style.styles.pop"))];
78359
- };
78360
-
78361
- return /*#__PURE__*/react.createElement(react.Fragment, null, visible ? /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
78362
- className: "setting-group-title"
78363
- }, translate_translate("settings.opening_animation.title")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(FormControl_FormControl, {
78364
- variant: "outlined",
78365
- fullWidth: true
78366
- }, /*#__PURE__*/react.createElement(InputLabel_InputLabel, {
78367
- id: "group-style",
78368
- ref: inputLabel
78369
- }, translate_translate("common.type")), /*#__PURE__*/react.createElement(Select_Select, {
78370
- labelId: "group-style",
78371
- id: "group-style",
78372
- value: value,
78373
- onChange: function onChange(e) {
78374
- /* webpack-strip-block:removed */
78375
- if (e.target.value === "text" || e.target.value === "text-icon") {
78376
- app.showPremiumDialog(e.currentTarget, translate_translate("premium.menu_styles." + e.target.value));
78377
- return;
78378
- }
78379
-
78380
- _onChange(e.target.value);
78381
- },
78382
- labelWidth: labelWidth,
78383
- inputProps: {
78384
- "data-testid": "setting:opening-animation"
78385
- }
78386
- }, options()))) : null);
78387
- }
78388
- ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/CloseOnClickOutside/CloseOnClickOutside.js
78389
-
78390
-
78391
-
78392
-
78393
- function CloseOnClickOutside(_ref) {
78394
- var value = _ref.value,
78395
- _ref$openOnMouseOverE = _ref.openOnMouseOverEnabled,
78396
- openOnMouseOverEnabled = _ref$openOnMouseOverE === void 0 ? false : _ref$openOnMouseOverE,
78397
- _ref$closeOnMouseLeav = _ref.closeOnMouseLeaveEnabled,
78398
- closeOnMouseLeaveEnabled = _ref$closeOnMouseLeav === void 0 ? false : _ref$closeOnMouseLeav,
78399
- _onChange = _ref.onChange;
78400
- return /*#__PURE__*/react.createElement(SettingsContainer, {
78401
- title: translate_translate("settings.close_on_click_outside.title"),
78402
- fullWidth: false
78403
- }, /*#__PURE__*/react.createElement(esm_Switch_Switch, {
78404
- inputProps: {
78405
- "data-testid": "setting:close-on-click-outside"
78406
- },
78407
- onChange: function onChange(obj) {
78408
- return _onChange(obj.target.checked);
78409
- },
78410
- checked: value,
78411
- disabled: openOnMouseOverEnabled && closeOnMouseLeaveEnabled
78412
- }));
78413
- }
78414
- ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/CloseOnClickInside/CloseOnClickInside.js
78415
-
78416
-
78417
-
78418
-
78419
- function CloseOnClickInside(_ref) {
78420
- var value = _ref.value,
78421
- _ref$openOnMouseOverE = _ref.openOnMouseOverEnabled,
78422
- openOnMouseOverEnabled = _ref$openOnMouseOverE === void 0 ? false : _ref$openOnMouseOverE,
78423
- _onChange = _ref.onChange;
78424
- return /*#__PURE__*/react.createElement(SettingsContainer, {
78425
- title: translate_translate("settings.close_on_click_inside.title"),
78426
- fullWidth: false
78427
- }, /*#__PURE__*/react.createElement(esm_Switch_Switch, {
78428
- inputProps: {
78429
- "data-testid": "setting:close-on-click-inside"
78430
- },
78431
- onChange: function onChange(obj) {
78432
- return _onChange(obj.target.checked);
78433
- },
78434
- checked: value,
78435
- disabled: openOnMouseOverEnabled
78436
- }));
78437
- }
78438
- ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/OpenOnMouseOver/OpenOnMouseOver.js
78439
-
78440
-
78441
-
78442
-
78443
-
78444
- function OpenOnMouseOver(_ref) {
78445
- var openOnHover = _ref.openOnHover,
78446
- closeOnMouseLeave = _ref.closeOnMouseLeave,
78447
- onChange = _ref.onChange;
78448
-
78449
- /* webpack-strip-block:removed */
78450
- return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(SettingsContainer, {
78451
- title: /*#__PURE__*/react.createElement("div", {
78452
- onClick: function onClick(e) {
78453
- return app.showPremiumDialog(e.currentTarget, null, "top", "bottom");
78454
- },
78455
- style: {
78456
- cursor: "pointer"
78457
- },
78458
- "data-testid": "setting:open-on-hover"
78459
- }, translate_translate("settings.open_on_mouseover.title"), /*#__PURE__*/react.createElement(PremiumTag, null)),
78460
- fullWidth: false
78461
- }, /*#__PURE__*/react.createElement(esm_Switch_Switch, {
78462
- disabled: true,
78463
- checked: false
78464
- })));
78465
- }
78466
  ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Group/Tabs/Options.js
78467
- function Tabs_Options_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
78468
-
78469
- function Tabs_Options_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { Tabs_Options_ownKeys(Object(source), true).forEach(function (key) { Tabs_Options_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { Tabs_Options_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
78470
-
78471
- function Tabs_Options_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
78472
-
78473
- function Tabs_Options_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Tabs_Options_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
78474
-
78475
- function Tabs_Options_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
78476
-
78477
- function Tabs_Options_slicedToArray(arr, i) { return Tabs_Options_arrayWithHoles(arr) || Tabs_Options_iterableToArrayLimit(arr, i) || Tabs_Options_unsupportedIterableToArray(arr, i) || Tabs_Options_nonIterableRest(); }
78478
-
78479
- function Tabs_Options_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
78480
-
78481
- function Tabs_Options_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Tabs_Options_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Tabs_Options_arrayLikeToArray(o, minLen); }
78482
-
78483
- function Tabs_Options_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
78484
-
78485
- function Tabs_Options_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
78486
 
78487
- function Tabs_Options_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
78488
 
 
78489
 
 
78490
 
 
78491
 
 
78492
 
 
78493
 
 
78494
 
 
78495
 
 
78496
 
 
78497
 
78498
 
78499
 
@@ -78506,12 +79957,12 @@ function Tabs_Options_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr;
78506
 
78507
 
78508
 
78509
- function Options_Options(_ref) {
78510
  var set = _ref.set,
78511
  get = _ref.get;
78512
 
78513
  var _useState = (0,react.useState)("group_general_general"),
78514
- _useState2 = Tabs_Options_slicedToArray(_useState, 2),
78515
  openedGroup = _useState2[0],
78516
  setOpenedGroup = _useState2[1];
78517
 
@@ -78531,29 +79982,15 @@ function Options_Options(_ref) {
78531
  "data-testid": "group:general"
78532
  }, /*#__PURE__*/react.createElement("div", {
78533
  className: "setting-group-title"
78534
- }, translate_translate("settings.label.title")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(Label, {
78535
- value: get("label"),
78536
- placeholder: "",
78537
- onChange: function onChange(val) {
78538
- if (val === "") return set("label", "unset");
78539
- set("label", val);
78540
- }
78541
- }), /*#__PURE__*/react.createElement("div", {
78542
- className: "setting-group-title"
78543
  }, translate_translate("settings.show_mobile_desktop.device_visibility")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(Visibility, {
78544
  mobile: get("show_mobile") == true,
78545
  desktop: get("show_desktop") == true,
78546
  onChange: function onChange(type, val) {
78547
  return set(type, val);
78548
  }
78549
- })), /*#__PURE__*/react.createElement(CollapsibleGroup, {
78550
- title: translate_translate("settings.menu_position.title"),
78551
- opened: openedGroup === "group_general_position",
78552
- onSetIsOpened: function onSetIsOpened(val) {
78553
- return setOpenedGroup(val ? "group_general_position" : "");
78554
- },
78555
- "data-testid": "group:position"
78556
- }, /*#__PURE__*/react.createElement(Position, {
78557
  position: "horizontal",
78558
  value: get("horizontal"),
78559
  onChange: function onChange(val) {
@@ -78565,65 +80002,7 @@ function Options_Options(_ref) {
78565
  onChange: function onChange(val) {
78566
  return set("vertical", val);
78567
  }
78568
- })), /*#__PURE__*/react.createElement(CollapsibleGroup, {
78569
- title: translate_translate("settings.menu_style.title"),
78570
- opened: openedGroup === "group_general_menu_settings",
78571
- onSetIsOpened: function onSetIsOpened(val) {
78572
- return setOpenedGroup(val ? "group_general_menu_settings" : "");
78573
- },
78574
- "data-testid": "group:menu_settings"
78575
- }, /*#__PURE__*/react.createElement(SettingsContainer, {
78576
- title: translate_translate("settings.menu.title"),
78577
- fullWidth: false
78578
- }, /*#__PURE__*/react.createElement(esm_Switch_Switch, {
78579
- checked: get("is_menu"),
78580
- onChange: function onChange(event) {
78581
- if (event.target.checked) set("is_menu", true);else set("is_menu", false);
78582
- },
78583
- inputProps: {
78584
- "data-testid": "setting:is_menu"
78585
- }
78586
- })), /*#__PURE__*/react.createElement("div", {
78587
- className: "setting-group-title"
78588
- }, translate_translate("settings.menu_style.title_short")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(MenuStyle, {
78589
- value: get("menu_style"),
78590
- onChange: function onChange(val) {
78591
- set("menu_style", val);
78592
- }
78593
- }), /*#__PURE__*/react.createElement(OpeningAnimation, {
78594
- value: get("menu_opening_animation"),
78595
- label_inside: get("label_inside"),
78596
- onChange: function onChange(val) {
78597
- set("menu_opening_animation", val);
78598
- },
78599
- visible: get("is_menu") == true
78600
- }), get("is_menu") === true && /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
78601
- className: "setting-group-title"
78602
- }, translate_translate("settings.menu.title_settings")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(StartOpened, {
78603
- value: get("start_opened") == true,
78604
- onChange: function onChange(val) {
78605
- return set("start_opened", val);
78606
- }
78607
- }), /*#__PURE__*/react.createElement(CloseOnClickInside, {
78608
- value: get("close_on_click_inside") == true,
78609
- openOnMouseOverEnabled: get("open_on_mouseover") == true,
78610
- onChange: function onChange(val) {
78611
- return set("close_on_click_inside", val);
78612
- }
78613
- }), /*#__PURE__*/react.createElement(CloseOnClickOutside, {
78614
- value: get("close_on_click_outside") == true,
78615
- openOnMouseOverEnabled: get("open_on_mouseover") == true,
78616
- closeOnMouseLeaveEnabled: get("close_on_mouseleave") == true,
78617
- onChange: function onChange(val) {
78618
- return set("close_on_click_outside", val);
78619
- }
78620
- }), /*#__PURE__*/react.createElement(OpenOnMouseOver, {
78621
- openOnHover: get("open_on_mouseover") == true,
78622
- closeOnMouseLeave: get("close_on_mouseleave") == true,
78623
- onChange: function onChange(key, val) {
78624
- return set(key, val);
78625
- }
78626
- }))));
78627
  }
78628
 
78629
  /* harmony default export */ var Group_Tabs_Options = (connect(function (state) {
@@ -78641,9 +80020,9 @@ function Options_Options(_ref) {
78641
  var _set2 = _ref3.set;
78642
 
78643
  var groupId = _ref4.groupId,
78644
- props = Tabs_Options_objectWithoutProperties(_ref4, ["groupId"]);
78645
 
78646
- return Tabs_Options_objectSpread(Tabs_Options_objectSpread({
78647
  set: function set(obj, val) {
78648
  return _set2(models.GROUP, groupId, obj, val);
78649
  }
@@ -78654,8 +80033,9 @@ function Options_Options(_ref) {
78654
  return dlv_umd_default()(groups[groupId], key, returnDefault ? _def("group", key, groups[groupId].menu_style) : "");
78655
  }
78656
  });
78657
- })(Options_Options));
78658
- ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Containers/ButtonGroupContainer/ButtonGroupHeader/ButtonGroupHeader.js
 
78659
 
78660
 
78661
 
@@ -78666,13 +80046,36 @@ function Options_Options(_ref) {
78666
 
78667
 
78668
 
78669
- function ButtonGroupHeader(_ref) {
 
 
 
 
 
 
 
 
 
 
 
78670
  var group = _ref.group,
78671
  tab = _ref.tab,
78672
  history = _ref.history;
78673
 
78674
- var url = function url(page) {
78675
- return "/group/".concat(group.id, "/").concat(page);
 
 
 
 
 
 
 
 
 
 
 
 
78676
  };
78677
 
78678
  return /*#__PURE__*/react.createElement("div", {
@@ -78693,64 +80096,32 @@ function ButtonGroupHeader(_ref) {
78693
  }, translate_translate("bar.breadcrumb.home")), /*#__PURE__*/react.createElement("i", {
78694
  className: "fas fa-chevron-right"
78695
  }))), /*#__PURE__*/react.createElement(BreadcrumbSelect_BreadcrumbSelect, {
78696
- group: group
 
78697
  })), /*#__PURE__*/react.createElement(RandomTip_RandomTip, null), /*#__PURE__*/react.createElement("div", {
78698
  className: "mdc-card top-header"
78699
  }, /*#__PURE__*/react.createElement(Tabs_Tabs, {
78700
- value: tab,
78701
  variant: "fullWidth",
78702
  indicatorColor: "secondary",
78703
  textColor: "secondary",
78704
  className: "tab-bordered"
78705
- }, /*#__PURE__*/react.createElement(Tab_Tab, {
78706
- component: "a",
78707
- onClick: function onClick() {
78708
- if (history.location.pathname !== url("general")) {
78709
- history.push(url("general"));
78710
- }
78711
- },
78712
- style: tab === 0 ? {
78713
- color: "#f08419"
78714
- } : null,
78715
  label: translate_translate("settings.setting_categories.general"),
78716
- id: 0,
78717
- href: "#".concat(url("general")),
78718
  page: "general",
78719
  "data-testid": "general-tab",
78720
  icon: /*#__PURE__*/react.createElement("i", {
78721
  className: "fas fa-wrench"
78722
  })
78723
- }), /*#__PURE__*/react.createElement(Tab_Tab, {
78724
- component: "a",
78725
- onClick: function onClick() {
78726
- if (history.location.pathname !== url("style")) {
78727
- history.push(url("style"));
78728
- }
78729
- },
78730
- style: tab === 1 ? {
78731
- color: "#f08419"
78732
- } : null,
78733
  label: translate_translate("utils.style"),
78734
- id: 1,
78735
- href: "#".concat(url("style")),
78736
  page: "style",
78737
  "data-testid": "style-tab",
78738
  icon: /*#__PURE__*/react.createElement("i", {
78739
  className: "fas fa-paint-brush"
78740
  })
78741
- }), /*#__PURE__*/react.createElement(Tab_Tab, {
78742
- component: "a",
78743
- onClick: function onClick() {
78744
- if (history.location.pathname !== url("advanced")) {
78745
- history.push(url("advanced"));
78746
- }
78747
- },
78748
- style: tab === 2 ? {
78749
- color: "#f08419"
78750
- } : null,
78751
  label: translate_translate("utils.advanced"),
78752
- id: 2,
78753
- href: "#".concat(url("advanced")),
78754
  page: "advanced",
78755
  "data-testid": "advanced-tab",
78756
  icon: /*#__PURE__*/react.createElement("i", {
@@ -78759,7 +80130,7 @@ function ButtonGroupHeader(_ref) {
78759
  }))));
78760
  }
78761
 
78762
- /* harmony default export */ var ButtonGroupHeader_ButtonGroupHeader = (withRouter(ButtonGroupHeader));
78763
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Dialogs/ImagePickerDialog/ImagePickerDialog.js
78764
  function ImagePickerDialog_slicedToArray(arr, i) { return ImagePickerDialog_arrayWithHoles(arr) || ImagePickerDialog_iterableToArrayLimit(arr, i) || ImagePickerDialog_unsupportedIterableToArray(arr, i) || ImagePickerDialog_nonIterableRest(); }
78765
 
@@ -78896,29 +80267,29 @@ function ImageSelector(_ref) {
78896
  return /*#__PURE__*/React.createElement(React.Fragment, null);
78897
  }
78898
  ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Group/Tabs/Styling/IconGroup.js
78899
- function Styling_IconGroup_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
78900
 
78901
- function Styling_IconGroup_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { Styling_IconGroup_ownKeys(Object(source), true).forEach(function (key) { Styling_IconGroup_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { Styling_IconGroup_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
78902
 
78903
- function Styling_IconGroup_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
78904
 
78905
- function Styling_IconGroup_extends() { Styling_IconGroup_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Styling_IconGroup_extends.apply(this, arguments); }
78906
 
78907
- function Styling_IconGroup_slicedToArray(arr, i) { return Styling_IconGroup_arrayWithHoles(arr) || Styling_IconGroup_iterableToArrayLimit(arr, i) || Styling_IconGroup_unsupportedIterableToArray(arr, i) || Styling_IconGroup_nonIterableRest(); }
78908
 
78909
- function Styling_IconGroup_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
78910
 
78911
- function Styling_IconGroup_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Styling_IconGroup_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Styling_IconGroup_arrayLikeToArray(o, minLen); }
78912
 
78913
- function Styling_IconGroup_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
78914
 
78915
- function Styling_IconGroup_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
78916
 
78917
- function Styling_IconGroup_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
78918
 
78919
- function Styling_IconGroup_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Styling_IconGroup_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
78920
 
78921
- function Styling_IconGroup_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
78922
 
78923
  /* global app */
78924
 
@@ -78941,10 +80312,10 @@ function _IconGroup(_ref) {
78941
  var defs = _ref.defs,
78942
  set = _ref.set,
78943
  get = _ref.get,
78944
- groupProps = Styling_IconGroup_objectWithoutProperties(_ref, ["defs", "set", "get"]);
78945
 
78946
  var _useState = (0,react.useState)(0),
78947
- _useState2 = Styling_IconGroup_slicedToArray(_useState, 2),
78948
  hoverSettings = _useState2[0],
78949
  setHoverSettings = _useState2[1];
78950
 
@@ -79016,7 +80387,7 @@ function _IconGroup(_ref) {
79016
  }));
79017
  };
79018
 
79019
- return /*#__PURE__*/react.createElement(CollapsibleGroup, Styling_IconGroup_extends({
79020
  title: translate_translate("utils.icon"),
79021
  "data-testid": "group:icon"
79022
  }, groupProps), iconType(), get("icon_type", {
@@ -79041,7 +80412,7 @@ function _IconGroup(_ref) {
79041
  })), settings(), sliders()));
79042
  }
79043
 
79044
- /* harmony default export */ var Tabs_Styling_IconGroup = (connect(function (state) {
79045
  return {
79046
  _groups: state.groups
79047
  };
@@ -79056,10 +80427,10 @@ function _IconGroup(_ref) {
79056
  var _set = _ref3._set;
79057
 
79058
  var groupId = _ref4.groupId,
79059
- ownProps = Styling_IconGroup_objectWithoutProperties(_ref4, ["groupId"]);
79060
 
79061
  var group = _groups[groupId];
79062
- return Styling_IconGroup_objectSpread({
79063
  defs: function defs(key) {
79064
  return _defs("group", key, group.menu_style, formats.normal_hover.parse(group[key]).map(function (val) {
79065
  return val === "" ? undefined : val;
@@ -79073,36 +80444,36 @@ function _IconGroup(_ref) {
79073
  },
79074
  get: function get(key) {
79075
  var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
79076
- options = Styling_IconGroup_extends({}, _ref5);
79077
 
79078
- return _get(key, group, group.menu_style, "group", Styling_IconGroup_objectSpread({}, options));
79079
  }
79080
  }, ownProps);
79081
  })(_IconGroup));
79082
  ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Group/Tabs/Styling/ButtonGroup.js
79083
- function Styling_ButtonGroup_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
79084
 
79085
- function Styling_ButtonGroup_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { Styling_ButtonGroup_ownKeys(Object(source), true).forEach(function (key) { Styling_ButtonGroup_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { Styling_ButtonGroup_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
79086
 
79087
- function Styling_ButtonGroup_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
79088
 
79089
- function Styling_ButtonGroup_extends() { Styling_ButtonGroup_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Styling_ButtonGroup_extends.apply(this, arguments); }
79090
 
79091
- function Styling_ButtonGroup_slicedToArray(arr, i) { return Styling_ButtonGroup_arrayWithHoles(arr) || Styling_ButtonGroup_iterableToArrayLimit(arr, i) || Styling_ButtonGroup_unsupportedIterableToArray(arr, i) || Styling_ButtonGroup_nonIterableRest(); }
79092
 
79093
- function Styling_ButtonGroup_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
79094
 
79095
- function Styling_ButtonGroup_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Styling_ButtonGroup_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Styling_ButtonGroup_arrayLikeToArray(o, minLen); }
79096
 
79097
- function Styling_ButtonGroup_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
79098
 
79099
- function Styling_ButtonGroup_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
79100
 
79101
- function Styling_ButtonGroup_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
79102
 
79103
- function Styling_ButtonGroup_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Styling_ButtonGroup_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
79104
 
79105
- function Styling_ButtonGroup_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
79106
 
79107
 
79108
 
@@ -79121,15 +80492,15 @@ function Styling_ButtonGroup_objectWithoutPropertiesLoose(source, excluded) { if
79121
 
79122
 
79123
 
79124
- function Tabs_Styling_ButtonGroup_ButtonGroup(_ref) {
79125
  var singleButton = _ref.singleButton,
79126
  get = _ref.get,
79127
  def = _ref.def,
79128
  set = _ref.set,
79129
- groupProps = Styling_ButtonGroup_objectWithoutProperties(_ref, ["singleButton", "get", "def", "set"]);
79130
 
79131
  var _useState = (0,react.useState)(0),
79132
- _useState2 = Styling_ButtonGroup_slicedToArray(_useState, 2),
79133
  hoverSettings = _useState2[0],
79134
  setHoverSettings = _useState2[1];
79135
 
@@ -79246,7 +80617,7 @@ function Tabs_Styling_ButtonGroup_ButtonGroup(_ref) {
79246
  }));
79247
  };
79248
 
79249
- return /*#__PURE__*/react.createElement(CollapsibleGroup, Styling_ButtonGroup_extends({
79250
  title: translate_translate("common.button")
79251
  }, groupProps, {
79252
  "data-testid": "group:button"
@@ -79275,7 +80646,7 @@ function Tabs_Styling_ButtonGroup_ButtonGroup(_ref) {
79275
  }, translate_translate("settings.setting_categories.button_style")), /*#__PURE__*/react.createElement("hr", null), borderRadius(), hoverSettings === 0 && buttonSpacing(), boxShadow());
79276
  }
79277
 
79278
- /* harmony default export */ var Tabs_Styling_ButtonGroup = (connect(function (state) {
79279
  return {
79280
  groups: state.groups
79281
  };
@@ -79290,49 +80661,49 @@ function Tabs_Styling_ButtonGroup_ButtonGroup(_ref) {
79290
  var _set = _ref3._set;
79291
 
79292
  var groupId = _ref4.groupId,
79293
- ownProps = Styling_ButtonGroup_objectWithoutProperties(_ref4, ["groupId"]);
79294
 
79295
  var group = groups[groupId];
79296
- return Styling_ButtonGroup_objectSpread({
79297
  singleButton: group.children.length === 1,
79298
  set: function set(key, val) {
79299
  return _set(models.GROUP, groupId, key, val);
79300
  },
79301
  get: function get(key) {
79302
  var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
79303
- options = Styling_ButtonGroup_extends({}, _ref5);
79304
 
79305
- return _get(key, group, group.menu_style, "group", Styling_ButtonGroup_objectSpread({}, options));
79306
  },
79307
  def: function def(key) {
79308
  return _def("group", key, group.menu_style);
79309
  }
79310
  }, ownProps);
79311
- })(Tabs_Styling_ButtonGroup_ButtonGroup));
79312
  ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Group/Tabs/Styling/LabelGroup.js
79313
- function Styling_LabelGroup_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
79314
 
79315
- function Styling_LabelGroup_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { Styling_LabelGroup_ownKeys(Object(source), true).forEach(function (key) { Styling_LabelGroup_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { Styling_LabelGroup_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
79316
 
79317
- function Styling_LabelGroup_extends() { Styling_LabelGroup_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Styling_LabelGroup_extends.apply(this, arguments); }
79318
 
79319
- function Styling_LabelGroup_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
79320
 
79321
- function Styling_LabelGroup_slicedToArray(arr, i) { return Styling_LabelGroup_arrayWithHoles(arr) || Styling_LabelGroup_iterableToArrayLimit(arr, i) || Styling_LabelGroup_unsupportedIterableToArray(arr, i) || Styling_LabelGroup_nonIterableRest(); }
79322
 
79323
- function Styling_LabelGroup_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
79324
 
79325
- function Styling_LabelGroup_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Styling_LabelGroup_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Styling_LabelGroup_arrayLikeToArray(o, minLen); }
79326
 
79327
- function Styling_LabelGroup_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
79328
 
79329
- function Styling_LabelGroup_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
79330
 
79331
- function Styling_LabelGroup_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
79332
 
79333
- function Styling_LabelGroup_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Styling_LabelGroup_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
79334
 
79335
- function Styling_LabelGroup_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
79336
 
79337
 
79338
 
@@ -79355,14 +80726,14 @@ function Styling_LabelGroup_objectWithoutPropertiesLoose(source, excluded) { if
79355
 
79356
 
79357
 
79358
- function LabelGroup_LabelGroup(_ref) {
79359
  var defs = _ref.defs,
79360
  set = _ref.set,
79361
  get = _ref.get,
79362
- groupProps = Styling_LabelGroup_objectWithoutProperties(_ref, ["defs", "set", "get"]);
79363
 
79364
  var _useState = (0,react.useState)(0),
79365
- _useState2 = Styling_LabelGroup_slicedToArray(_useState, 2),
79366
  hoverSettings = _useState2[0],
79367
  setHoverSettings = _useState2[1];
79368
 
@@ -79497,7 +80868,7 @@ function LabelGroup_LabelGroup(_ref) {
79497
  returnSelf: true,
79498
  returnDefault: true
79499
  })[hoverSettings],
79500
- defaultValue: get("label_box_shadow", Styling_LabelGroup_defineProperty({
79501
  returnSelf: true,
79502
  excludeSelf: true,
79503
  returnDefault: true
@@ -79567,7 +80938,7 @@ function LabelGroup_LabelGroup(_ref) {
79567
  var label_color = get("label_color");
79568
  var label_background_color = get("label_background_color");
79569
  var label_border_radius = get("label_border_radius");
79570
- return /*#__PURE__*/react.createElement(CollapsibleGroup, Styling_LabelGroup_extends({
79571
  title: translate_translate("settings.label.title"),
79572
  "data-testid": "group:label"
79573
  }, groupProps), /*#__PURE__*/react.createElement("div", {
@@ -79656,7 +81027,7 @@ function LabelGroup_LabelGroup(_ref) {
79656
  }), borderRadius(), margin(), padding(), boxShadow()));
79657
  }
79658
 
79659
- /* harmony default export */ var Styling_LabelGroup = (connect(function (state) {
79660
  return {
79661
  _groups: state.groups
79662
  };
@@ -79671,10 +81042,10 @@ function LabelGroup_LabelGroup(_ref) {
79671
  var _set = _ref3._set;
79672
 
79673
  var groupId = _ref4.groupId,
79674
- ownProps = Styling_LabelGroup_objectWithoutProperties(_ref4, ["groupId"]);
79675
 
79676
  var group = _groups[groupId];
79677
- return Styling_LabelGroup_objectSpread({
79678
  defs: function defs(key) {
79679
  return _defs("group", key, group.menu_style, formats.normal_hover.parse(group[key]).map(function (val) {
79680
  return val === "" ? undefined : val;
@@ -79688,24 +81059,167 @@ function LabelGroup_LabelGroup(_ref) {
79688
  },
79689
  get: function get(key) {
79690
  var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
79691
- options = Styling_LabelGroup_extends({}, _ref5);
79692
 
79693
- return _get(key, group, group.menu_style, "group", Styling_LabelGroup_objectSpread({}, options));
79694
  }
79695
  }, ownProps);
79696
- })(LabelGroup_LabelGroup));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79697
  ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Group/Tabs/Styling/index.js
79698
- function Tabs_Styling_slicedToArray(arr, i) { return Tabs_Styling_arrayWithHoles(arr) || Tabs_Styling_iterableToArrayLimit(arr, i) || Tabs_Styling_unsupportedIterableToArray(arr, i) || Tabs_Styling_nonIterableRest(); }
79699
 
79700
- function Tabs_Styling_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
79701
 
79702
- function Tabs_Styling_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Tabs_Styling_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Tabs_Styling_arrayLikeToArray(o, minLen); }
79703
 
79704
- function Tabs_Styling_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
79705
 
79706
- function Tabs_Styling_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
79707
 
79708
- function Tabs_Styling_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
79709
 
79710
 
79711
 
@@ -79713,11 +81227,12 @@ function Tabs_Styling_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr;
79713
 
79714
 
79715
 
79716
- function Styling_Styling(_ref) {
 
79717
  var groupId = _ref.groupId;
79718
 
79719
  var _useState = (0,react.useState)("group_style_button"),
79720
- _useState2 = Tabs_Styling_slicedToArray(_useState, 2),
79721
  openedGroup = _useState2[0],
79722
  setOpenedGroup = _useState2[1];
79723
 
@@ -79728,19 +81243,21 @@ function Styling_Styling(_ref) {
79728
  (0,react.useEffect)(function () {
79729
  setOpenedGroup(openCollapsibleGroup ? openCollapsibleGroup : "group_style_button");
79730
  }, [openCollapsibleGroup]);
79731
- return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(Tabs_Styling_ButtonGroup, {
 
 
79732
  opened: openedGroup === "group_style_button",
79733
  onSetIsOpened: function onSetIsOpened(val) {
79734
  return setOpenedGroup(val ? "group_style_button" : "");
79735
  },
79736
  groupId: groupId
79737
- }), /*#__PURE__*/react.createElement(Tabs_Styling_IconGroup, {
79738
  opened: openedGroup === "group_style_icon",
79739
  onSetIsOpened: function onSetIsOpened(val) {
79740
  return setOpenedGroup(val ? "group_style_icon" : "");
79741
  },
79742
  groupId: groupId
79743
- }), /*#__PURE__*/react.createElement(Styling_LabelGroup, {
79744
  opened: openedGroup === "group_style_label",
79745
  onSetIsOpened: function onSetIsOpened(val) {
79746
  return setOpenedGroup(val ? "group_style_label" : "");
@@ -80556,17 +82073,17 @@ function Advanced_objectWithoutProperties(source, excluded) { if (source == null
80556
 
80557
  function Advanced_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
80558
 
80559
- function Tabs_Advanced_slicedToArray(arr, i) { return Tabs_Advanced_arrayWithHoles(arr) || Tabs_Advanced_iterableToArrayLimit(arr, i) || Tabs_Advanced_unsupportedIterableToArray(arr, i) || Tabs_Advanced_nonIterableRest(); }
80560
 
80561
- function Tabs_Advanced_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
80562
 
80563
- function Tabs_Advanced_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Tabs_Advanced_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Tabs_Advanced_arrayLikeToArray(o, minLen); }
80564
 
80565
- function Tabs_Advanced_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
80566
 
80567
- function Tabs_Advanced_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
80568
 
80569
- function Tabs_Advanced_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
80570
 
80571
 
80572
 
@@ -80586,13 +82103,13 @@ function Tabs_Advanced_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr;
80586
 
80587
  /* webpack-strip-block:removed */
80588
 
80589
- function Advanced_Advanced(_ref) {
80590
  var set = _ref.set,
80591
  get = _ref.get,
80592
  singleButton = _ref.singleButton;
80593
 
80594
  var _useState = (0,react.useState)("animation"),
80595
- _useState2 = Tabs_Advanced_slicedToArray(_useState, 2),
80596
  openedGroup = _useState2[0],
80597
  setOpenedGroup = _useState2[1];
80598
 
@@ -80810,7 +82327,7 @@ function Advanced_Advanced(_ref) {
80810
  },
80811
  singleButton: groups[groupId].children.length < 2
80812
  }, dispatchProps), stateProps), props);
80813
- })(Advanced_Advanced));
80814
  ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Group/Group.js
80815
 
80816
 
@@ -80821,24 +82338,11 @@ function Advanced_Advanced(_ref) {
80821
 
80822
 
80823
 
80824
-
80825
- function Group_currentTab(tab) {
80826
- if (tab === "advanced") {
80827
- return 2;
80828
- } else if (tab === "style") {
80829
- return 1;
80830
- } else {
80831
- return 0;
80832
- }
80833
- }
80834
-
80835
  function Group(_ref) {
80836
  var match = _ref.match,
80837
- groups = _ref.groups,
80838
- welcome = _ref.welcome,
80839
- setHintStep = _ref.setHintStep;
80840
  var group = dlv_umd_default()(groups, match.params.id, false);
80841
- var tab = Group_currentTab(dlv_umd_default()(match.params, "tab", "general"));
80842
 
80843
  if (!group) {
80844
  return /*#__PURE__*/react.createElement(ItemNotFound, {
@@ -80846,33 +82350,21 @@ function Group(_ref) {
80846
  });
80847
  }
80848
 
80849
- return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(ButtonGroupHeader_ButtonGroupHeader, {
80850
  group: group,
80851
- tab: tab,
80852
- welcome: welcome,
80853
- setHintStep: setHintStep
80854
- }), tab === 0 && /*#__PURE__*/react.createElement(Group_Tabs_Options, {
80855
  groupId: group.id
80856
- }), tab === 1 && /*#__PURE__*/react.createElement(Styling_Styling, {
80857
  groupId: group.id
80858
- }), tab === 2 && /*#__PURE__*/react.createElement(Group_Tabs_Advanced, {
80859
  groupId: group.id
80860
  }));
80861
  }
80862
 
80863
  /* harmony default export */ var Group_Group = (connect(function (state) {
80864
  return {
80865
- groups: state.groups,
80866
- welcome: state.settings.welcome
80867
- };
80868
- }, function (dispatch) {
80869
- return {
80870
- setMisc: function setMisc() {
80871
- return dispatch(dataActions_setMisc.apply(void 0, arguments));
80872
- },
80873
- setHintStep: function setHintStep(step) {
80874
- return dispatch(dataActions_setMisc("hint_step", step));
80875
- }
80876
  };
80877
  })(Group));
80878
  ;// CONCATENATED MODULE: ./src/js/dashboard/Router.js
@@ -80884,6 +82376,7 @@ function Group(_ref) {
80884
 
80885
 
80886
 
 
80887
  function Router_Router(_ref) {
80888
  var scrollBar = _ref.scrollBar,
80889
  isLoading = _ref.isLoading;
@@ -80912,6 +82405,12 @@ function Router_Router(_ref) {
80912
  }), /*#__PURE__*/react.createElement(Route, {
80913
  path: "/group/:groupId/button/:id",
80914
  component: Pages_Button_Button
 
 
 
 
 
 
80915
  }), /*#__PURE__*/react.createElement(Route, {
80916
  path: "/group/:id/:tab",
80917
  component: Group_Group
@@ -85147,9 +86646,9 @@ function AdminNotifications() {
85147
  var eventListener = function eventListener(e) {
85148
  if (!e.isTrusted || typeof e.data === "undefined" || typeof e.data.eventType === "undefined" || e.data.eventType !== "buttonizer") return; // Show notification on button click/admin redirect
85149
 
85150
- if (e.data.messageType === "admin-link-redirect" && !isSnoozed) {
85151
  enqueueSnackbar( /*#__PURE__*/react.createElement(Trans, {
85152
- i18nKey: "warnings.actions.".concat(e.data.message.type === "to-group" ? "toggle_menu_text" : "test_action_text"),
85153
  components: {
85154
  mouseIcon: /*#__PURE__*/react.createElement(SvgIcon/* default */.Z, {
85155
  className: AdminNotifications_style_module.mouse
@@ -85173,7 +86672,7 @@ function AdminNotifications() {
85173
  },
85174
  TransitionComponent: Grow_Grow,
85175
  preventDuplicate: true,
85176
- key: "shift-notification-".concat(e.data.message.type === "to-group" ? "menu" : "action"),
85177
  action: function action(key) {
85178
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(esm_IconButton_IconButton, {
85179
  component: "a",
@@ -85672,7 +87171,19 @@ var App_App = /*#__PURE__*/function (_React$Component) {
85672
  pageParam = "/".concat(document.location.hash.substring(document.location.hash.lastIndexOf("/") + 1));
85673
  }
85674
 
85675
- action.type === "to-group" ? document.location.hash = "/group/".concat(action.data.group).concat(pageParam) : document.location.hash = "/group/".concat(action.data.group, "/button/").concat(action.data.button).concat(pageParam);
 
 
 
 
 
 
 
 
 
 
 
 
85676
  }
85677
  }]);
85678
 
@@ -92019,7 +93530,7 @@ if (!__webpack_require__.g._babelPolyfill) {
92019
  sdk_init({
92020
  dsn: true ? "https://98400788903e4f4a9618ff08bd3b65cf@tracker.buttonizer.pro/2" : 0,
92021
  // request_bodies: "always",
92022
- release: "v2.8.3",
92023
  environment: "production",
92024
  attachStacktrace: true,
92025
  integrations: [new ExtraErrorData({
@@ -92117,10 +93628,7 @@ document.body.classList.add("buttonizer-initialized");
92117
 
92118
  /* global module */
92119
  module.exports = {
92120
- group: {
92121
- height: 56,
92122
- width: 56
92123
- },
92124
  button: {}
92125
  };
92126
 
@@ -92147,6 +93655,7 @@ var button = {
92147
  };
92148
  module.exports = {
92149
  button: _objectSpread({}, button),
 
92150
  group: _objectSpread(_objectSpread({}, button), {}, {
92151
  label_same_width: true,
92152
  label_same_height: true,
@@ -92167,8 +93676,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
92167
 
92168
  /* global module */
92169
  var button = {
92170
- group_size: 56,
92171
- button_size: 56,
92172
  box_shadow_enabled: [false],
92173
  label_box_shadow_enabled: [false],
92174
  border_radius: ["0px"],
@@ -92177,7 +93684,10 @@ var button = {
92177
  };
92178
  module.exports = {
92179
  button: _objectSpread({}, button),
 
92180
  group: _objectSpread(_objectSpread({}, button), {}, {
 
 
92181
  show_label_desktop: "hover",
92182
  show_label_mobile: "hide",
92183
  label_same_height: true,
@@ -92248,6 +93758,14 @@ module.exports = {
92248
  return result;
92249
  },
92250
 
 
 
 
 
 
 
 
 
92251
  get formatted() {
92252
  var result = {};
92253
  Object.entries(merge({}, defaults.button, defaults.group)).map(function (key) {
@@ -121384,6 +122902,71 @@ function trimmedEndIndex(string) {
121384
  module.exports = trimmedEndIndex;
121385
 
121386
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121387
  /***/ }),
121388
 
121389
  /***/ 50361:
@@ -122356,6 +123939,90 @@ var isBuffer = nativeIsBuffer || stubFalse;
122356
  module.exports = isBuffer;
122357
 
122358
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122359
  /***/ }),
122360
 
122361
  /***/ 18446:
@@ -123098,53 +124765,6 @@ var merge = createAssigner(function(object, source, srcIndex) {
123098
  module.exports = merge;
123099
 
123100
 
123101
- /***/ }),
123102
-
123103
- /***/ 94885:
123104
- /***/ (function(module) {
123105
-
123106
- /** Error message constants. */
123107
- var FUNC_ERROR_TEXT = 'Expected a function';
123108
-
123109
- /**
123110
- * Creates a function that negates the result of the predicate `func`. The
123111
- * `func` predicate is invoked with the `this` binding and arguments of the
123112
- * created function.
123113
- *
123114
- * @static
123115
- * @memberOf _
123116
- * @since 3.0.0
123117
- * @category Function
123118
- * @param {Function} predicate The predicate to negate.
123119
- * @returns {Function} Returns the new negated function.
123120
- * @example
123121
- *
123122
- * function isEven(n) {
123123
- * return n % 2 == 0;
123124
- * }
123125
- *
123126
- * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
123127
- * // => [1, 3, 5]
123128
- */
123129
- function negate(predicate) {
123130
- if (typeof predicate != 'function') {
123131
- throw new TypeError(FUNC_ERROR_TEXT);
123132
- }
123133
- return function() {
123134
- var args = arguments;
123135
- switch (args.length) {
123136
- case 0: return !predicate.call(this);
123137
- case 1: return !predicate.call(this, args[0]);
123138
- case 2: return !predicate.call(this, args[0], args[1]);
123139
- case 3: return !predicate.call(this, args[0], args[1], args[2]);
123140
- }
123141
- return !predicate.apply(this, args);
123142
- };
123143
- }
123144
-
123145
- module.exports = negate;
123146
-
123147
-
123148
  /***/ }),
123149
 
123150
  /***/ 7771:
@@ -123239,42 +124859,6 @@ var omit = flatRest(function(object, paths) {
123239
  module.exports = omit;
123240
 
123241
 
123242
- /***/ }),
123243
-
123244
- /***/ 14176:
123245
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
123246
-
123247
- var baseIteratee = __webpack_require__(67206),
123248
- negate = __webpack_require__(94885),
123249
- pickBy = __webpack_require__(35937);
123250
-
123251
- /**
123252
- * The opposite of `_.pickBy`; this method creates an object composed of
123253
- * the own and inherited enumerable string keyed properties of `object` that
123254
- * `predicate` doesn't return truthy for. The predicate is invoked with two
123255
- * arguments: (value, key).
123256
- *
123257
- * @static
123258
- * @memberOf _
123259
- * @since 4.0.0
123260
- * @category Object
123261
- * @param {Object} object The source object.
123262
- * @param {Function} [predicate=_.identity] The function invoked per property.
123263
- * @returns {Object} Returns the new object.
123264
- * @example
123265
- *
123266
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
123267
- *
123268
- * _.omitBy(object, _.isNumber);
123269
- * // => { 'b': '2' }
123270
- */
123271
- function omitBy(object, predicate) {
123272
- return pickBy(object, negate(baseIteratee(predicate)));
123273
- }
123274
-
123275
- module.exports = omitBy;
123276
-
123277
-
123278
  /***/ }),
123279
 
123280
  /***/ 78718:
@@ -123307,50 +124891,6 @@ var pick = flatRest(function(object, paths) {
123307
  module.exports = pick;
123308
 
123309
 
123310
- /***/ }),
123311
-
123312
- /***/ 35937:
123313
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
123314
-
123315
- var arrayMap = __webpack_require__(29932),
123316
- baseIteratee = __webpack_require__(67206),
123317
- basePickBy = __webpack_require__(63012),
123318
- getAllKeysIn = __webpack_require__(46904);
123319
-
123320
- /**
123321
- * Creates an object composed of the `object` properties `predicate` returns
123322
- * truthy for. The predicate is invoked with two arguments: (value, key).
123323
- *
123324
- * @static
123325
- * @memberOf _
123326
- * @since 4.0.0
123327
- * @category Object
123328
- * @param {Object} object The source object.
123329
- * @param {Function} [predicate=_.identity] The function invoked per property.
123330
- * @returns {Object} Returns the new object.
123331
- * @example
123332
- *
123333
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
123334
- *
123335
- * _.pickBy(object, _.isNumber);
123336
- * // => { 'a': 1, 'c': 3 }
123337
- */
123338
- function pickBy(object, predicate) {
123339
- if (object == null) {
123340
- return {};
123341
- }
123342
- var props = arrayMap(getAllKeysIn(object), function(prop) {
123343
- return [prop];
123344
- });
123345
- predicate = baseIteratee(predicate);
123346
- return basePickBy(object, props, function(value, path) {
123347
- return predicate(value, path[0]);
123348
- });
123349
- }
123350
-
123351
- module.exports = pickBy;
123352
-
123353
-
123354
  /***/ }),
123355
 
123356
  /***/ 39601:
@@ -130553,7 +132093,7 @@ module.exports = {
130553
  /***/ (function(module) {
130554
 
130555
  "use strict";
130556
- module.exports = JSON.parse('{"group":{"general":{"horizontal":"right: 5%","vertical":"bottom: 5%","menu_style":"default","menu_opening_animation":"default","start_opened":false,"close_on_click_outside":true,"close_on_click_inside":true,"open_on_mouseover":false,"close_on_mouseleave":true,"is_menu":true},"advanced":{"menu_opening_animation":"default","menu_animation":"none","menu_animation_delay":10,"menu_animation_repeat_count":0,"show_on_schedule_trigger":true,"show_on_rule_trigger":true,"advanced_timeout_once":true,"advanced_scroll_hide":false},"styling":{"icon":["fas fa-plus"],"icon_size":[25],"icon_image_size":[25],"group_size":56,"button_size":42,"show_label_mobile":"always","show_label_desktop":"always","label_same_width":false,"label_same_height":false,"width":56,"height":56,"label_inside":false,"space":10}},"button":{"general":{"show_mobile":true,"show_desktop":true,"label":"","action":"#","type":"url","messenger_lang":"en_US","action_new_tab":false},"styling":{"icon":["fas fa-home"],"width":42,"height":42,"icon_type":"icon","icon_image":[""],"icon_size":[20],"icon_image_size":[16],"background_is_image":[false],"background_image":[],"border_radius":["50%"],"background_color":["#2f7789","#f08419"],"icon_color":["#fff"],"icon_image_border_radius":[50],"label_background_color":["#4e4c4c"],"label_color":["#fff"],"label_border_radius":["3px"],"label_font_size":[12],"label_margin":["0px 0px 0px 0px"],"label_padding":["5px 15px 5px 15px"],"label_font_family":"","label_spacing":9,"horizontal_position_label":"auto","box_shadow":["0px 2px 6px 1px rgba(0, 0, 0, 0.20)","0px 5px 11px 1px rgba(0, 0, 0, 0.25)"],"box_shadow_enabled":[true],"label_box_shadow_enabled":[false],"label_box_shadow":["0px 0px 0px 0px rgba(0, 0, 0, 1)"]}}}');
130557
 
130558
  /***/ })
130559
 
@@ -130698,7 +132238,7 @@ module.exports = JSON.parse('{"group":{"general":{"horizontal":"right: 5%","vert
130698
  /******/ // startup
130699
  /******/ // Load entry module and return exports
130700
  /******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
130701
- /******/ var __webpack_exports__ = __webpack_require__(32726);
130702
  /******/
130703
  /******/ })()
130704
  ;
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
+ * (C) 2017-2022 Buttonizer v2.9.0
13
  *
14
  */
15
  /*!
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
+ * (C) 2017-2022 Buttonizer v2.9.0
27
  *
28
  */
29
  /******/ (function() { // webpackBootstrap
11863
 
11864
  /***/ }),
11865
 
11866
+ /***/ 32242:
11867
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
11868
 
11869
  "use strict";
12545
  var defaults = __webpack_require__(46314);
12546
 
12547
  var merge = __webpack_require__(82492);
 
 
12548
  /**
12549
  * Constants
12550
  */
12584
  SET_KEY_VALUE: "SET KEY VALUE BUTTONS",
12585
  SET_KEY_FORMAT: "SET FORMATTED KEY VALUE PAIRS BUTTONS"
12586
  },
12587
+ menu_button: {
12588
+ ADD_RECORD: "ADDING MENU BUTTON RECORD",
12589
+ REMOVE_RECORD: "REMOVING MENU BUTTON RECORD",
12590
+ SET_KEY_VALUE: "SET KEY VALUE MENU BUTTONS",
12591
+ SET_KEY_FORMAT: "SET FORMATTED KEY VALUE PAIRS MENU BUTTONS"
12592
+ },
12593
  timeSchedules: {
12594
  // Time Schedule actionTypes
12595
  ADD_RECORD: "ADDING TIME SCHEDULE",
12636
  var wpActionTypes = {};
12637
  var weekdays = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
12638
  var models = {
12639
+ MENU_BUTTON: "menu_button",
12640
  BUTTON: "buttons",
12641
  GROUP: "groups",
12642
  TIME_SCHEDULE: "timeSchedules",
12742
  }
12743
  }
12744
  };
12745
+ var excludedPropertyRequests = (/* unused pure expression or super */ null && (["selected_schedule", "show_on_schedule_trigger", "selected_page_rule", "show_on_rule_trigger", "show_mobile", "show_desktop"]));
12746
  var import_export = {
12747
  propertiesToOmit: ["export_type", "selected_page_rule", "selected_schedule", "id", "parent", "show_on_rule_trigger", "show_on_schedule_trigger"]
12748
  };
12749
  var settingKeys = {
12750
  // Returns all default button settings keys
12751
+ get button() {
12752
  var result = {
12753
  general: [],
12754
  styling: [],
12765
  return result;
12766
  },
12767
 
12768
+ // Returns all default button settings keys
12769
+ get menu_button() {
12770
  var result = {
12771
  general: [],
12772
  styling: [],
12773
  advanced: []
12774
  };
12775
+ Object.entries(defaults.menu_button).map(function (key) {
12776
  merge(result, buttonizer_constants_defineProperty({}, key[0], Object.entries(key[1]).map(function (_ref3) {
12777
  var _ref4 = _slicedToArray(_ref3, 1),
12778
  key = _ref4[0];
12783
  return result;
12784
  },
12785
 
12786
+ // Returns all default group settings keys
12787
+ get group() {
12788
  var result = {
12789
  general: [],
12790
  styling: [],
12791
  advanced: []
12792
  };
12793
+ Object.entries(defaults.group).map(function (key) {
12794
  merge(result, buttonizer_constants_defineProperty({}, key[0], Object.entries(key[1]).map(function (_ref5) {
12795
  var _ref6 = _slicedToArray(_ref5, 1),
12796
  key = _ref6[0];
12801
  return result;
12802
  },
12803
 
12804
+ // Returns all default setting keys
12805
+ get allSettings() {
12806
+ var result = {
12807
+ general: [],
12808
+ styling: [],
12809
+ advanced: []
12810
+ };
12811
+ Object.entries(merge({}, defaults.button, defaults.menu_button, defaults.group)).map(function (key) {
12812
+ merge(result, buttonizer_constants_defineProperty({}, key[0], Object.entries(key[1]).map(function (_ref7) {
12813
+ var _ref8 = _slicedToArray(_ref7, 1),
12814
+ key = _ref8[0];
12815
 
12816
+ return key;
12817
+ })));
12818
  });
12819
+ return result;
12820
  },
12821
 
12822
  // Returns default hover styling setting key
12841
  document.location.hash += "".concat(document.location.hash.match(/\/$/) ? "" : "/").concat(drawer).concat(page ? "/" + page : "");
12842
  }
12843
  function closeDrawer() {
12844
+ document.location.hash = document.location.hash.replace(/\/?(settings|menu\b|timeschedules|pagerules|buttonizertour).*$/i, "");
12845
  }
12846
  ;// CONCATENATED MODULE: ./src/js/utils/utils/data-utils.js
12847
  /* global Map */
15746
  var objects = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15747
  return i18next.t(key, objects);
15748
  }
15749
+ // EXTERNAL MODULE: ./node_modules/dlv/dist/dlv.umd.js
15750
+ var dlv_umd = __webpack_require__(26905);
15751
+ var dlv_umd_default = /*#__PURE__*/__webpack_require__.n(dlv_umd);
15752
  ;// CONCATENATED MODULE: ./src/js/dashboard/store/helpers.js
15753
  function helpers_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
15754
 
15761
 
15762
 
15763
 
15764
+
15765
  var previousFailedRequest = {
15766
  resolve: null,
15767
  endpoint: null,
15854
  payload: {
15855
  buttons: {},
15856
  groups: {},
15857
+ menuButtons: {},
15858
  timeSchedules: {},
15859
  pageRules: {},
15860
  settings: {}
15871
  function convertData(result) {
15872
  var data = result;
15873
  var buttons = {};
15874
+ var groups = {};
15875
+ var menuButtons = {}; // Initializing groups
15876
 
15877
  data.groups.map(function (group) {
15878
  var groupObject = createRecord(group.data);
15885
  buttons[buttonObject.id] = buttonObject;
15886
  groupObject.children.push(buttonObject.id);
15887
  });
15888
+ var menuButtonObject = dlv_umd_default()(group, "menu_button", {});
15889
+ menuButtons[groupObject.id] = menuButtonObject;
15890
  groups[groupObject.id] = groupObject;
15891
  });
15892
  var timeSchedules = {};
15930
  hasChanges: data.changes,
15931
  buttons: buttons,
15932
  groups: groups,
15933
+ menuButtons: menuButtons,
15934
  timeSchedules: timeSchedules,
15935
  pageRules: pageRules,
15936
  settings: data.settings,
16119
 
16120
  function dataActions_addRecord(data, model) {
16121
  var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
16122
+ var menu_button = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
16123
  return {
16124
  type: buttonizer_constants_actionTypes[model].ADD_RECORD,
16125
  payload: {
16126
  record: createRecord(data),
16127
+ index: index,
16128
+ menu_button: menu_button
16129
  }
16130
  };
16131
  }
16143
  }
16144
  };
16145
  }
16146
+ // EXTERNAL MODULE: ./node_modules/lodash/assign.js
16147
+ var lodash_assign = __webpack_require__(28583);
16148
+ var assign_default = /*#__PURE__*/__webpack_require__.n(lodash_assign);
16149
+ // EXTERNAL MODULE: ./node_modules/lodash/isEmpty.js
16150
+ var isEmpty = __webpack_require__(41609);
16151
+ var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty);
16152
  ;// CONCATENATED MODULE: ./src/js/dashboard/store/selectors.js
16153
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = selectors_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
16154
+
16155
+ function selectors_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return selectors_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return selectors_arrayLikeToArray(o, minLen); }
16156
+
16157
+ function selectors_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
16158
+
16159
+
16160
+
16161
+
16162
 
16163
  function getButtons(group_id) {
16164
  var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.store.getState();
16185
  });
16186
  return result;
16187
  }
16188
+ function getMenuButton(groupId) {
16189
+ var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : dashboard_store.getState();
16190
+ if (!groupId) return null;
16191
+ var menuButton = assign_default()({}, dlv_umd_default()(state.menuButtons, groupId, {}));
16192
+ if (isEmpty_default()(menuButton)) return null;
16193
+ return menuButton;
16194
+ }
16195
+ function selectors_getIsSingleButton(groupId) {
16196
+ var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : dashboard_store.getState();
16197
+ if (!state.groups || !state.groups[groupId] || !state.buttons) return 0;
16198
+ var desktopCount = 0,
16199
+ mobileCount = 0;
16200
+
16201
+ var _iterator = _createForOfIteratorHelper(state.groups[groupId].children),
16202
+ _step;
16203
+
16204
+ try {
16205
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
16206
+ var child = _step.value;
16207
+ if (dlv_umd_default()(state.buttons[child], "show_desktop", true)) desktopCount += 1;
16208
+ if (dlv_umd_default()(state.buttons[child], "show_mobile", true)) mobileCount += 1;
16209
+ }
16210
+ } catch (err) {
16211
+ _iterator.e(err);
16212
+ } finally {
16213
+ _iterator.f();
16214
+ }
16215
+
16216
+ return desktopCount === 1 && mobileCount === 1 || desktopCount === 1 && mobileCount === 0 || desktopCount === 0 && mobileCount === 1 || desktopCount === 0 && mobileCount === 0;
16217
+ }
16218
  function selectors_getButtonsCount(group_id) {
16219
  var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.store.getState();
16220
  if (!state.groups || !state.groups[group_id]) return 0;
16229
  function n(n){for(var t=arguments.length,r=Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];if(false){ var i, o; }throw Error("[Immer] minified error nr: "+n+(r.length?" "+r.map((function(n){return"'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function immer_esm_t(n){return!!n&&!!n[Q]}function r(n){return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var t=Object.getPrototypeOf(n);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Z}(n)||Array.isArray(n)||!!n[L]||!!n.constructor[L]||s(n)||v(n))}function e(r){return immer_esm_t(r)||n(23,r),r[Q].t}function i(n,t,r){void 0===r&&(r=!1),0===o(n)?(r?Object.keys:nn)(n).forEach((function(e){r&&"symbol"==typeof e||t(e,n[e],n)})):n.forEach((function(r,e){return t(e,r,n)}))}function o(n){var t=n[Q];return t?t.i>3?t.i-4:t.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,t){return 2===o(n)?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function a(n,t){return 2===o(n)?n.get(t):n[t]}function f(n,t,r){var e=o(n);2===e?n.set(t,r):3===e?(n.delete(t),n.add(r)):n[t]=r}function c(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var t=tn(n);delete t[Q];for(var r=nn(t),e=0;e<r.length;e++){var i=r[e],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]})}return Object.create(Object.getPrototypeOf(n),t)}function d(n,e){return void 0===e&&(e=!1),y(n)||immer_esm_t(n)||!r(n)?n:(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,t){return d(t,!0)}),!0),n)}function h(){n(2)}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(t){var r=rn[t];return r||n(18,t),r}function m(n,t){rn[n]||(rn[n]=t)}function _(){return true||0,U}function j(n,t){t&&(b("Patches"),n.u=[],n.s=[],n.v=t)}function O(n){g(n),n.p.forEach(S),n.p=null}function g(n){n===U&&(U=n.l)}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var t=n[Q];0===t.i||1===t.i?t.j():t.O=!0}function P(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.g||b("ES5").S(e,t,o),o?(i[Q].P&&(O(e),n(4)),r(t)&&(t=M(e,t),e.l||x(e,t)),e.u&&b("Patches").M(i[Q],t,e.u,e.s)):t=M(e,i,[]),O(e),e.u&&e.v(e.u,e.s),t!==H?t:void 0}function M(n,t,r){if(y(t))return t;var e=t[Q];if(!e)return i(t,(function(i,o){return A(n,e,t,i,o,r)}),!0),t;if(e.A!==n)return t;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o;i(3===e.i?new Set(o):o,(function(t,i){return A(n,e,o,t,i,r)})),x(n,o,!1),r&&n.u&&b("Patches").R(e,r,n.u,n.s)}return e.o}function A(e,i,o,a,c,s){if( false&&0,immer_esm_t(c)){var v=M(e,c,s&&i&&3!==i.i&&!u(i.D,a)?s.concat(a):void 0);if(f(o,a,v),!immer_esm_t(v))return;e.m=!1}if(r(c)&&!y(c)){if(!e.h.F&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,t,r){void 0===r&&(r=!1),n.h.F&&n.m&&d(t,r)}function z(n,t){var r=n[Q];return(r?p(r):n)[t]}function I(n,t){if(t in n)for(var r=Object.getPrototypeOf(n);r;){var e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}}function k(n){n.P||(n.P=!0,n.l&&k(n.l))}function E(n){n.o||(n.o=l(n.t))}function R(n,t,r){var e=s(t)?b("MapSet").N(t,r):v(t)?b("MapSet").T(t,r):n.g?function(n,t){var r=Array.isArray(n),e={i:r?1:0,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;r&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(t,r):b("ES5").J(t,r);return(r?r.A:_()).p.push(e),e}function D(e){return immer_esm_t(e)||n(22,e),function n(t){if(!r(t))return t;var e,u=t[Q],c=o(t);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=F(t,c),u.I=!1}else e=F(t,c);return i(e,(function(t,r){u&&a(u.t,t)===r||f(e,t,n(r))})),3===c?new Set(e):e}(e)}function F(n,t){switch(t){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function N(){function r(n,t){var r=s[n];return r?r.enumerable=t:s[n]=r={configurable:!0,enumerable:t,get:function(){var t=this[Q];return false&&0,en.get(t,n)},set:function(t){var r=this[Q]; false&&0,en.set(r,n,t)}},r}function e(n){for(var t=n.length-1;t>=0;t--){var r=n[t][Q];if(!r.P)switch(r.i){case 5:a(r)&&k(r);break;case 4:o(r)&&k(r)}}}function o(n){for(var t=n.t,r=n.k,e=nn(r),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=t[o];if(void 0===a&&!u(t,o))return!0;var f=r[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!t[Q];return e.length!==nn(t).length+(v?0:1)}function a(n){var t=n.k;if(t.length!==n.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!r||r.get)}function f(t){t.O&&n(3,JSON.stringify(p(t)))}var s={};m("ES5",{J:function(n,t){var e=Array.isArray(n),i=function(n,t){if(n){for(var e=Array(t.length),i=0;i<t.length;i++)Object.defineProperty(e,""+i,r(i,!0));return e}var o=tn(t);delete o[Q];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=r(f,n||!!o[f].enumerable)}return Object.create(Object.getPrototypeOf(t),o)}(e,n),o={i:e?5:4,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:n,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,r,o){o?immer_esm_t(r)&&r[Q].A===n&&e(n.p):(n.u&&function n(t){if(t&&"object"==typeof t){var r=t[Q];if(r){var e=r.t,o=r.k,f=r.D,c=r.i;if(4===c)i(o,(function(t){t!==Q&&(void 0!==e[t]||u(e,t)?f[t]||n(o[t]):(f[t]=!0,k(r)))})),i(e,(function(n){void 0!==o[n]||u(o,n)||(f[n]=!1,k(r))}));else if(5===c){if(a(r)&&(k(r),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)void 0===f[l]&&n(o[l])}}}}(n.p[0]),e(n.p))},K:function(n){return 4===n.i?o(n):a(n)}})}function T(){function e(n){if(!r(n))return n;if(Array.isArray(n))return n.map(e);if(s(n))return new Map(Array.from(n.entries()).map((function(n){return[n[0],e(n[1])]})));if(v(n))return new Set(Array.from(n).map(e));var t=Object.create(Object.getPrototypeOf(n));for(var i in n)t[i]=e(n[i]);return u(n,L)&&(t[L]=n[L]),t}function f(n){return immer_esm_t(n)?e(n):n}var c="add";m("Patches",{$:function(t,r){return r.forEach((function(r){for(var i=r.path,u=r.op,f=t,s=0;s<i.length-1;s++){var v=o(f),p=""+i[s];0!==v&&1!==v||"__proto__"!==p&&"constructor"!==p||n(24),"function"==typeof f&&"prototype"===p&&n(24),"object"!=typeof(f=a(f,p))&&n(15,i.join("/"))}var l=o(f),d=e(r.value),h=i[i.length-1];switch(u){case"replace":switch(l){case 2:return f.set(h,d);case 3:n(16);default:return f[h]=d}case c:switch(l){case 1:return f.splice(h,0,d);case 2:return f.set(h,d);case 3:return f.add(d);default:return f[h]=d}case"remove":switch(l){case 1:return f.splice(h,1);case 2:return f.delete(h);case 3:return f.delete(r.value);default:return delete f[h]}default:n(17,u)}})),t},R:function(n,t,r,e){switch(n.i){case 0:case 4:case 2:return function(n,t,r,e){var o=n.t,s=n.o;i(n.D,(function(n,i){var v=a(o,n),p=a(s,n),l=i?u(o,n)?"replace":c:"remove";if(v!==p||"replace"!==l){var d=t.concat(n);r.push("remove"===l?{op:l,path:d}:{op:l,path:d,value:p}),e.push(l===c?{op:"remove",path:d}:"remove"===l?{op:c,path:d,value:f(v)}:{op:"replace",path:d,value:f(v)})}}))}(n,t,r,e);case 5:case 1:return function(n,t,r,e){var i=n.t,o=n.D,u=n.o;if(u.length<i.length){var a=[u,i];i=a[0],u=a[1];var s=[e,r];r=s[0],e=s[1]}for(var v=0;v<i.length;v++)if(o[v]&&u[v]!==i[v]){var p=t.concat([v]);r.push({op:"replace",path:p,value:f(u[v])}),e.push({op:"replace",path:p,value:f(i[v])})}for(var l=i.length;l<u.length;l++){var d=t.concat([l]);r.push({op:c,path:d,value:f(u[l])})}i.length<u.length&&e.push({op:"replace",path:t.concat(["length"]),value:i.length})}(n,t,r,e);case 3:return function(n,t,r,e){var i=n.t,o=n.o,u=0;i.forEach((function(n){if(!o.has(n)){var i=t.concat([u]);r.push({op:"remove",path:i,value:n}),e.unshift({op:c,path:i,value:n})}u++})),u=0,o.forEach((function(n){if(!i.has(n)){var o=t.concat([u]);r.push({op:c,path:o,value:n}),e.unshift({op:"remove",path:o,value:n})}u++}))}(n,t,r,e)}},M:function(n,t,r,e){r.push({op:"replace",path:[],value:t===H?void 0:t}),e.push({op:"replace",path:[],value:n.t})}})}function C(){function t(n,t){function r(){this.constructor=n}a(n,t),n.prototype=(r.prototype=t.prototype,new r)}function e(n){n.o||(n.D=new Map,n.o=new Map(n.t))}function o(n){n.o||(n.o=new Set,n.t.forEach((function(t){if(r(t)){var e=R(n.A.h,t,n);n.p.set(t,e),n.o.add(e)}else n.o.add(t)})))}function u(t){t.O&&n(3,JSON.stringify(p(t)))}var a=function(n,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)},f=function(){function n(n,t){return this[Q]={i:2,l:t,A:t?t.A:_(),P:!1,I:!1,o:void 0,D:void 0,t:n,k:this,C:!1,O:!1},this}t(n,Map);var o=n.prototype;return Object.defineProperty(o,"size",{get:function(){return p(this[Q]).size}}),o.has=function(n){return p(this[Q]).has(n)},o.set=function(n,t){var r=this[Q];return u(r),p(r).has(n)&&p(r).get(n)===t||(e(r),k(r),r.D.set(n,!0),r.o.set(n,t),r.D.set(n,!0)),this},o.delete=function(n){if(!this.has(n))return!1;var t=this[Q];return u(t),e(t),k(t),t.D.set(n,!1),t.o.delete(n),!0},o.clear=function(){var n=this[Q];u(n),p(n).size&&(e(n),k(n),n.D=new Map,i(n.t,(function(t){n.D.set(t,!1)})),n.o.clear())},o.forEach=function(n,t){var r=this;p(this[Q]).forEach((function(e,i){n.call(t,r.get(i),i,r)}))},o.get=function(n){var t=this[Q];u(t);var i=p(t).get(n);if(t.I||!r(i))return i;if(i!==t.t.get(n))return i;var o=R(t.A.h,i,t);return e(t),t.o.set(n,o),o},o.keys=function(){return p(this[Q]).keys()},o.values=function(){var n,t=this,r=this.keys();return(n={})[V]=function(){return t.values()},n.next=function(){var n=r.next();return n.done?n:{done:!1,value:t.get(n.value)}},n},o.entries=function(){var n,t=this,r=this.keys();return(n={})[V]=function(){return t.entries()},n.next=function(){var n=r.next();if(n.done)return n;var e=t.get(n.value);return{done:!1,value:[n.value,e]}},n},o[V]=function(){return this.entries()},n}(),c=function(){function n(n,t){return this[Q]={i:3,l:t,A:t?t.A:_(),P:!1,I:!1,o:void 0,t:n,k:this,p:new Map,O:!1,C:!1},this}t(n,Set);var r=n.prototype;return Object.defineProperty(r,"size",{get:function(){return p(this[Q]).size}}),r.has=function(n){var t=this[Q];return u(t),t.o?!!t.o.has(n)||!(!t.p.has(n)||!t.o.has(t.p.get(n))):t.t.has(n)},r.add=function(n){var t=this[Q];return u(t),this.has(n)||(o(t),k(t),t.o.add(n)),this},r.delete=function(n){if(!this.has(n))return!1;var t=this[Q];return u(t),o(t),k(t),t.o.delete(n)||!!t.p.has(n)&&t.o.delete(t.p.get(n))},r.clear=function(){var n=this[Q];u(n),p(n).size&&(o(n),k(n),n.o.clear())},r.values=function(){var n=this[Q];return u(n),o(n),n.o.values()},r.entries=function(){var n=this[Q];return u(n),o(n),n.o.entries()},r.keys=function(){return this.values()},r[V]=function(){return this.values()},r.forEach=function(n,t){for(var r=this.values(),e=r.next();!e.done;)n.call(t,e.value,e.value,this),e=r.next()},n}();m("MapSet",{N:function(n,t){return new f(n,t)},T:function(n,t){return new c(n,t)}})}function J(){N(),C(),T()}function K(n){return n}function $(n){return n}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",V="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return"Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return"Unsupported patch operation: "+n},18:function(n){return"The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return"'current' expects a draft, got: "+n},23:function(n){return"'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,tn=Object.getOwnPropertyDescriptors||function(n){var t={};return nn(n).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(n,r)})),t},rn={},en={get:function(n,t){if(t===Q)return n;var e=p(n);if(!u(e,t))return function(n,t,r){var e,i=I(t,r);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,t);var i=e[t];return n.I||!r(i)?i:i===z(n.t,t)?(E(n),n.o[t]=R(n.A.h,i,n)):i},has:function(n,t){return t in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,t,r){var e=I(p(n),t);if(null==e?void 0:e.set)return e.set.call(n.k,r),!0;if(!n.P){var i=z(p(n),t),o=null==i?void 0:i[Q];if(o&&o.t===r)return n.o[t]=r,n.D[t]=!1,!0;if(c(r,i)&&(void 0!==r||u(n.t,t)))return!0;E(n),k(n)}return n.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in n.o)||(n.o[t]=r,n.D[t]=!0,!0)},deleteProperty:function(n,t){return void 0!==z(n.t,t)||t in n.t?(n.D[t]=!1,E(n),k(n)):delete n.D[t],n.o&&delete n.o[t],!0},getOwnPropertyDescriptor:function(n,t){var r=p(n),e=Reflect.getOwnPropertyDescriptor(r,t);return e?{writable:!0,configurable:1!==n.i||"length"!==t,enumerable:e.enumerable,value:r[t]}:e},defineProperty:function(){n(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12)}},on={};i(en,(function(n,t){on[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),on.deleteProperty=function(t,r){return false&&0,en.deleteProperty.call(this,t[0],r)},on.set=function(t,r,e){return false&&0,en.set.call(this,t[0],r,e,t[0])};var un=function(){function e(t){var e=this;this.g=B,this.F=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var u=i;i=t;var a=e;return function(n){var t=this;void 0===n&&(n=u);for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var r;return(r=i).call.apply(r,[t,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),r(t)){var c=w(e),s=R(e,t,void 0),v=!0;try{f=i(s),v=!1}finally{v?O(c):g(c)}return"undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw O(c),n})):(j(c,o),P(f,c))}if(!t||"object"!=typeof t){if((f=i(t))===H)return;return void 0===f&&(f=t),e.F&&d(f,!0),f}n(21,t)},this.produceWithPatches=function(n,t){return"function"==typeof n?function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.produceWithPatches(t,(function(t){return n.apply(void 0,[t].concat(i))}))}:[e.produce(n,t,(function(n,t){r=n,i=t})),r,i];var r,i},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var i=e.prototype;return i.createDraft=function(e){r(e)||n(8),immer_esm_t(e)&&(e=D(e));var i=w(this),o=R(this,e,void 0);return o[Q].C=!0,g(i),o},i.finishDraft=function(t,r){var e=t&&t[Q]; false&&(0);var i=e.A;return j(i,r),P(void 0,i)},i.setAutoFreeze=function(n){this.F=n},i.setUseProxies=function(t){t&&!B&&n(20),this.g=t},i.applyPatches=function(n,r){var e;for(e=r.length-1;e>=0;e--){var i=r[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}var o=b("Patches").$;return immer_esm_t(n)?o(n,r):this.produce(n,(function(n){return o(n,r.slice(e+1))}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);/* harmony default export */ var immer_esm = (fn);
16230
  //# sourceMappingURL=immer.esm.js.map
16231
 
16232
+ // EXTERNAL MODULE: ./node_modules/lodash/merge.js
16233
+ var lodash_merge = __webpack_require__(82492);
16234
+ var merge_default = /*#__PURE__*/__webpack_require__.n(lodash_merge);
16235
  ;// CONCATENATED MODULE: ./src/js/dashboard/store/actions/savingHelpers.js
16236
 
16237
 
16238
 
16239
+
16240
  /**
16241
  * Generate JSON object
16242
  * @returns {Array}
16267
  }];
16268
  }
16269
 
16270
+ var menu_button = getMenuButton(groupObject.id);
16271
+ data.push(merge_default()({
16272
  data: outputGroup,
16273
  buttons: tempButtons
16274
+ }, menu_button && {
16275
+ menu_button: menu_button
16276
+ }));
16277
  });
16278
  return data;
16279
  }
16548
 
16549
  return null;
16550
  }
 
 
 
16551
  // EXTERNAL MODULE: ./node_modules/lodash/isEqual.js
16552
  var isEqual = __webpack_require__(18446);
16553
  var isEqual_default = /*#__PURE__*/__webpack_require__.n(isEqual);
16662
  return;
16663
  }
16664
 
16665
+ if (!isEqual_default()(oldStore.buttons, currentState.buttons) || !isEqual_default()(oldStore.groups, currentState.groups) || !isEqual_default()(oldStore.menuButtons, currentState.menuButtons)) {
16666
  SavingQueue.enqueue(saveData(generateJSONObject(dashboard_store.getState().groups), "/buttons", false, difference_default()(Object.keys(currentState.groups), Object.keys(oldStore.groups))[0]));
16667
  }
16668
  /* webpack-strip-block:removed */
17165
  }
17166
  });
17167
  }
17168
+ ;// CONCATENATED MODULE: ./src/js/dashboard/store/reducers/menuButtonReducer.js
17169
+ function menuButtonReducer_toConsumableArray(arr) { return menuButtonReducer_arrayWithoutHoles(arr) || menuButtonReducer_iterableToArray(arr) || menuButtonReducer_unsupportedIterableToArray(arr) || menuButtonReducer_nonIterableSpread(); }
17170
+
17171
+ function menuButtonReducer_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
17172
+
17173
+ function menuButtonReducer_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return menuButtonReducer_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return menuButtonReducer_arrayLikeToArray(o, minLen); }
17174
+
17175
+ function menuButtonReducer_iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
17176
+
17177
+ function menuButtonReducer_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return menuButtonReducer_arrayLikeToArray(arr); }
17178
+
17179
+ function menuButtonReducer_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
17180
+
17181
+
17182
+
17183
+ function dataReducer() {
17184
+ var store = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
17185
+ var action = arguments.length > 1 ? arguments[1] : undefined;
17186
+ if (action.type === buttonizer_constants_actionTypes.INIT) return action.payload.menuButtons;
17187
+ return fn(store, function (draftStore) {
17188
+ switch (action.type) {
17189
+ case buttonizer_constants_actionTypes.groups.ADD_RECORD:
17190
+ {
17191
+ draftStore[action.payload.record.id] = action.payload.menu_button;
17192
+ break;
17193
+ }
17194
+
17195
+ case buttonizer_constants_actionTypes.groups.REMOVE_RECORD:
17196
+ {
17197
+ delete draftStore[action.payload.model_id];
17198
+ break;
17199
+ }
17200
+
17201
+ case buttonizer_constants_actionTypes.menu_button.SET_KEY_VALUE:
17202
+ {
17203
+ if (action.payload.value === "unset") {
17204
+ if (typeof draftStore[action.payload.id][action.payload.key] !== "undefined") delete draftStore[action.payload.id][action.payload.key];
17205
+ break;
17206
+ }
17207
+
17208
+ draftStore[action.payload.id][action.payload.key] = action.payload.value;
17209
+ break;
17210
+ }
17211
+
17212
+ case buttonizer_constants_actionTypes.menu_button.SET_KEY_FORMAT:
17213
+ {
17214
+ var format = formats[action.payload.format];
17215
+ if (!format) break;
17216
+ var parsedValue = format.format.apply(format, menuButtonReducer_toConsumableArray(action.payload.values));
17217
+
17218
+ if (parsedValue === "unset") {
17219
+ if (typeof draftStore[action.payload.id][action.payload.key] !== "undefined") delete draftStore[action.payload.id][action.payload.key];
17220
+ break;
17221
+ }
17222
+
17223
+ draftStore[action.payload.id][action.payload.key] = parsedValue;
17224
+ break;
17225
+ }
17226
+
17227
+ default:
17228
+ {
17229
+ return draftStore;
17230
+ }
17231
+ }
17232
+ });
17233
+ }
17234
  ;// CONCATENATED MODULE: ./src/js/dashboard/store/reducers/buttonReducer.js
17235
  function buttonReducer_toConsumableArray(arr) { return buttonReducer_arrayWithoutHoles(arr) || buttonReducer_iterableToArray(arr) || buttonReducer_unsupportedIterableToArray(arr) || buttonReducer_nonIterableSpread(); }
17236
 
17254
  pageRules: {},
17255
  _premium: false
17256
  };
17257
+ function buttonReducer_dataReducer() {
17258
  var store = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : buttonReducer_initialStore;
17259
  var action = arguments.length > 1 ? arguments[1] : undefined;
17260
  if (action.type === buttonizer_constants_actionTypes.INIT) return action.payload.buttons;
17375
  * Update preview data
17376
  */
17377
 
17378
+ var listenTo = [buttonizer_constants_actionTypes.groups.SET_KEY_VALUE, buttonizer_constants_actionTypes.groups.SET_KEY_FORMAT, buttonizer_constants_actionTypes.buttons.SET_KEY_VALUE, buttonizer_constants_actionTypes.buttons.SET_KEY_FORMAT, buttonizer_constants_actionTypes.menu_button.SET_KEY_VALUE, buttonizer_constants_actionTypes.menu_button.SET_KEY_FORMAT];
17379
  var requiresFullReload = [buttonizer_constants_actionTypes.groups.ADD_RECORD, buttonizer_constants_actionTypes.groups.REMOVE_RECORD, buttonizer_constants_actionTypes.buttons.ADD_RECORD, buttonizer_constants_actionTypes.buttons.REMOVE_RECORD, buttonizer_constants_actionTypes.CHANGE_RELATION]; // Object to make sure keys are allowed
17380
 
17381
  var previewTimeout = {};
17416
  // Get value, or format value
17417
  var value = payload.format && payload.format === "normal_hover" ? formats.normal_hover.format(payload.values[0], payload.values[1]) : payload.value;
17418
  sendPostMessage("preview-data-update", {
17419
+ model: type === buttonizer_constants_actionTypes.groups.SET_KEY_VALUE || type === buttonizer_constants_actionTypes.groups.SET_KEY_FORMAT ? "group" : type === buttonizer_constants_actionTypes.menu_button.SET_KEY_VALUE || type === buttonizer_constants_actionTypes.menu_button.SET_KEY_FORMAT ? "menu_button" : "button",
17420
  id: payload.id,
17421
  key: payload.key,
17422
  value: value
17463
 
17464
 
17465
 
17466
+
17467
  /**
17468
  * Welcome to the Castore, proceed with caution
17469
  */
17474
  timeSchedules: timeScheduleReducer,
17475
  pageRules: pageRuleReducer,
17476
  groups: groupReducer,
17477
+ menuButtons: dataReducer,
17478
+ buttons: buttonReducer_dataReducer,
17479
  misc: rootReducer,
17480
  settings: settingReducer,
17481
  templates: templateReducer
19290
  icon: /*#__PURE__*/react.createElement(LaptopMac/* default */.Z, null)
19291
  }];
19292
  return /*#__PURE__*/react.createElement("div", {
19293
+ className: "device-preview",
19294
+ onMouseLeave: function onMouseLeave() {
19295
+ return setShowDeviceViews(false);
19296
+ }
19297
  }, showDeviceViews && /*#__PURE__*/react.createElement(ButtonGroup_ButtonGroup, {
19298
  color: "primary",
19299
  orientation: "vertical",
 
 
 
19300
  className: "button-group",
19301
  "data-testid": "device:button-group"
19302
  }, devices.map(function (device, key) {
28432
  return String(a) === String(b);
28433
  }
28434
 
28435
+ function SelectInput_isEmpty(display) {
28436
  return display == null || typeof display === 'string' && !display.trim();
28437
  }
28438
  /**
28777
  }, SelectDisplayProps, {
28778
  // The id is required for proper a11y
28779
  id: buttonId
28780
+ }), SelectInput_isEmpty(display) ?
28781
  /*#__PURE__*/
28782
  // eslint-disable-next-line react/no-danger
28783
  react.createElement("span", {
39298
  function importGroup() {
39299
  var groupAttr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
39300
  var buttons = arguments.length > 1 ? arguments[1] : undefined;
39301
+ var foundMenuButton = arguments.length > 2 ? arguments[2] : undefined;
39302
+ var index = arguments.length > 3 ? arguments[3] : undefined;
39303
+ var dispatch = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : dashboard_store.dispatch;
39304
  var groupAttrDef = {
39305
  name: translate_translate("utils.new_group"),
39306
  show_mobile: true,
39307
  show_desktop: true,
39308
  children: []
39309
  };
39310
+ var group_id = dispatch(dataActions_addRecord(groupAttr ? groupAttr : groupAttrDef, "groups", index, foundMenuButton)).payload.record.id;
39311
  buttons.map(function (button, key) {
39312
  // Do not import
39313
  if (Object.keys(button).length === 0) return false;
40469
  downloadAnchorNode.click();
40470
  downloadAnchorNode.remove();
40471
  }
 
 
 
40472
  ;// CONCATENATED MODULE: ./src/js/dashboard/store/actions/exportHelpers.js
40473
 
40474
 
40688
 
40689
 
40690
 
40691
+ var ExportButton = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
40692
  var _ref$type = _ref.type,
40693
  type = _ref$type === void 0 ? "group" : _ref$type,
40694
  object = _ref.object,
40715
  merged = _useState8[0],
40716
  setMerged = _useState8[1];
40717
 
40718
+ var foundParenData = pick_default()(group_data, settingKeys.allSettings.styling) || false;
40719
  var state = useSelector(function (state) {
40720
  return state;
40721
  });
40762
 
40763
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
40764
  onClick: createExportData,
40765
+ "data-testid": "export-button",
40766
+ ref: ref
40767
  }, /*#__PURE__*/react.createElement(ListItemIcon_ListItemIcon, null, /*#__PURE__*/react.createElement(esm_Icon_Icon, {
40768
  className: "fas fa-file-export"
40769
  })), /*#__PURE__*/react.createElement(Typography_Typography, {
40819
  disabled: type === "button" ? !foundButtons : !foundGroup,
40820
  "data-testid": "export-commence"
40821
  }, translate_translate("import_export.export.title")))));
40822
+ });
40823
+ /* harmony default export */ var ContainerActions_ExportButton = (ExportButton);
40824
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Containers/ButtonContainer/ButtonContainer.js
40825
  function ButtonContainer_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
40826
 
40912
  className: "button-header"
40913
  }, /*#__PURE__*/react.createElement(esm_Button_Button, {
40914
  color: "primary",
 
 
 
40915
  className: "button-name",
40916
  onClick: function onClick() {
40917
  return document.location.hash = "#" + path;
40949
  },
40950
  "data-testid": "rename",
40951
  inDropdown: true
40952
+ }), /*#__PURE__*/react.createElement(ContainerActions_ExportButton, {
40953
  group_data: groups[groupId],
40954
  object: button,
40955
  type: "button"
49861
 
49862
 
49863
 
49864
+ function ImportData(currentGroup, foundGroup, foundButtons, foundMenuButton) {
49865
+ var index = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
49866
+ var redirect = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
49867
+ var dispatch = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : window.store.dispatch;
49868
+ var state = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : window.store.getState();
49869
 
49870
  // Should import into a group
49871
  if (currentGroup) {
49882
  foundButtons.map(function (button, key) {
49883
  // Do not import
49884
  if (Object.keys(button).length === 0) return false;
49885
+ addButton(button, currentGroup.id, index !== null ? index : currentGroup.children.length + key + 1, dispatch, redirect);
49886
  });
49887
  }
49888
  } // Should create a new group
49889
  else if (foundGroup && !currentGroup) {
49890
  console.log("Should create a new group");
49891
+ importGroup(foundGroup, foundButtons, foundMenuButton, index, dispatch);
49892
  } else if (foundButtons && !foundGroup && !currentGroup) {
49893
  console.log("Should create a new group with imported button");
49894
+ importGroup(foundGroup, foundButtons, foundMenuButton, index, dispatch);
49895
  }
49896
  }
49897
  function ImportRawData(data, index, currentGroup, redirect) {
49898
+ var foundGroup, foundButtons, foundMenuButton;
49899
 
49900
  try {
49901
  var parsedResult = typeof data === "string" ? JSON.parse(data) : data; // Malformed data
49915
  foundButtons = parsedResult.buttons.map(function (button) {
49916
  return omit_default()(button, import_export.propertiesToOmit);
49917
  });
49918
+ if (parsedResult.menu_button) foundMenuButton = omit_default()(parsedResult.menu_button, import_export.propertiesToOmit);
49919
  } // Import a button into group
49920
  else if (parsedResult.export_type === "button") {
49921
  foundGroup = false;
49922
  foundButtons = [omit_default()(parsedResult, import_export.propertiesToOmit)];
49923
  }
49924
 
49925
+ ImportData(currentGroup, foundGroup, foundButtons, foundMenuButton, index, redirect);
49926
  } catch (e) {
49927
  alert(translate_translate("import_export.import.warning.malformed"));
49928
  }
56464
  })(TemplatesDialog));
56465
  // EXTERNAL MODULE: ./node_modules/@seznam/compose-react-refs/composeRefs.js
56466
  var composeRefs = __webpack_require__(99601);
56467
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Containers/MenuButtonContainer/MenuButtonContainer.js
56468
+ function MenuButtonContainer_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
56469
+
56470
+ function MenuButtonContainer_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { MenuButtonContainer_ownKeys(Object(source), true).forEach(function (key) { MenuButtonContainer_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { MenuButtonContainer_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
56471
+
56472
+ function MenuButtonContainer_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
56473
+
56474
+
56475
+
56476
+
56477
+
56478
+
56479
+
56480
+
56481
+
56482
+
56483
+
56484
+
56485
+
56486
+
56487
+ function MenuButtonContainer(_ref) {
56488
+ var groupId = _ref.groupId,
56489
+ groups = _ref.groups,
56490
+ menuButtons = _ref.menuButtons,
56491
+ set = _ref.set,
56492
+ openNewButtonDialog = _ref.openNewButtonDialog,
56493
+ getButtonsCount = _ref.getButtonsCount,
56494
+ getIsSingleButton = _ref.getIsSingleButton;
56495
+ if (!groupId) return null;
56496
+ var menuButton = menuButtons[groupId];
56497
+ var path = "/group/" + groupId + "/menuButton";
56498
+
56499
+ function toggle(item) {
56500
+ set("menu_button", groupId, item, !dlv_umd_default()(menuButton, item, true));
56501
+ }
56502
+
56503
+ return /*#__PURE__*/react.createElement(Grow_Grow, {
56504
+ "in": !getIsSingleButton(groupId),
56505
+ mountOnEnter: true,
56506
+ unmountOnExit: true,
56507
+ timeout: {
56508
+ enter: 300,
56509
+ exit: 200
56510
+ },
56511
+ appear: false
56512
+ }, /*#__PURE__*/react.createElement("div", null, /*#__PURE__*/react.createElement("div", {
56513
+ className: "menu-button-container"
56514
+ }, /*#__PURE__*/react.createElement("div", {
56515
+ className: "menu-button-header"
56516
+ }, /*#__PURE__*/react.createElement(Tippy_Tippy, {
56517
+ content: translate_translate("bar.menu_button")
56518
+ }, /*#__PURE__*/react.createElement(esm_Button_Button, {
56519
+ color: "primary",
56520
+ className: "menu-button-name",
56521
+ onClick: function onClick() {
56522
+ return document.location.hash = "#" + path;
56523
+ }
56524
+ }, /*#__PURE__*/react.createElement("span", {
56525
+ className: "menu-button-name-span"
56526
+ }, translate_translate("utils.menu_button")))), /*#__PURE__*/react.createElement("div", {
56527
+ className: "menu-button-actions"
56528
+ }, /*#__PURE__*/react.createElement(ContainerActions_EditButton, {
56529
+ onClick: function onClick() {
56530
+ document.location.hash = "#" + path;
56531
+ },
56532
+ "data-testid": "edit-button",
56533
+ className: "menu-button-actions edit-menu-button"
56534
+ }), /*#__PURE__*/react.createElement(ContainerActionsDropdown, null, /*#__PURE__*/react.createElement(ContainerActions_ExportButton, {
56535
+ group_data: groups[groupId],
56536
+ object: menuButton,
56537
+ type: "button"
56538
+ })))), /*#__PURE__*/react.createElement("div", {
56539
+ className: "menu-button-settings"
56540
+ }, /*#__PURE__*/react.createElement("div", {
56541
+ className: "menu-button-visibility"
56542
+ }, /*#__PURE__*/react.createElement("div", {
56543
+ className: "menu-button-title"
56544
+ }, translate_translate("settings.show_mobile_desktop.title") + ":", " "), /*#__PURE__*/react.createElement(Tippy_Tippy, {
56545
+ content: translate_translate("settings.show_mobile_desktop.toggle_mobile")
56546
+ }, /*#__PURE__*/react.createElement(esm_Button_Button, {
56547
+ color: "primary",
56548
+ variant: dlv_umd_default()(menuButton, "show_mobile", true) ? "contained" : "outlined",
56549
+ onClick: function onClick() {
56550
+ return toggle("show_mobile");
56551
+ },
56552
+ "data-testid": "show_mobile"
56553
+ }, /*#__PURE__*/react.createElement("i", {
56554
+ className: "fas fa-mobile-alt"
56555
+ }))), /*#__PURE__*/react.createElement(Tippy_Tippy, {
56556
+ content: translate_translate("settings.show_mobile_desktop.toggle_desktop")
56557
+ }, /*#__PURE__*/react.createElement(esm_Button_Button, {
56558
+ color: "primary",
56559
+ variant: dlv_umd_default()(menuButton, "show_desktop", true) ? "contained" : "outlined",
56560
+ onClick: function onClick() {
56561
+ return toggle("show_desktop");
56562
+ },
56563
+ "data-testid": "show_desktop"
56564
+ }, /*#__PURE__*/react.createElement("i", {
56565
+ className: "fas fa-desktop"
56566
+ })))), /*#__PURE__*/react.createElement("div", {
56567
+ className: "clear"
56568
+ }))), getButtonsCount(groupId) < 0 ? /*#__PURE__*/react.createElement(Tippy_Tippy, {
56569
+ content: translate_translate("utils.add_button"),
56570
+ shiftClick: true,
56571
+ arrow: false
56572
+ }, /*#__PURE__*/react.createElement(esm_Button_Button, {
56573
+ onClick: function onClick(e) {
56574
+ return openNewButtonDialog(e.shiftKey);
56575
+ },
56576
+ color: "primary",
56577
+ variant: "text",
56578
+ size: "small",
56579
+ startIcon: /*#__PURE__*/react.createElement(esm_Icon_Icon, {
56580
+ className: "fas fa-plus-circle"
56581
+ }),
56582
+ "data-testid": "new-button",
56583
+ className: "button-container-new-button"
56584
+ }, translate_translate("utils.add_button"))) : /*#__PURE__*/react.createElement(Tippy_Tippy, {
56585
+ content: translate_translate("utils.add_button"),
56586
+ timer: 1000,
56587
+ shiftClick: true,
56588
+ arrow: false
56589
+ }, /*#__PURE__*/react.createElement("div", {
56590
+ className: "menu-button-container-new-button-line"
56591
+ }, /*#__PURE__*/react.createElement(esm_Button_Button, {
56592
+ onClick: function onClick(e) {
56593
+ return openNewButtonDialog(e.shiftKey);
56594
+ },
56595
+ color: "secondary",
56596
+ variant: "text",
56597
+ fullWidth: true,
56598
+ size: "small",
56599
+ "data-testid": "new-button"
56600
+ }, /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement("span", null, /*#__PURE__*/react.createElement(esm_Icon_Icon, {
56601
+ className: "fas fa-plus-circle"
56602
+ })), /*#__PURE__*/react.createElement("hr", null))))));
56603
+ }
56604
+
56605
+ /* harmony default export */ var MenuButtonContainer_MenuButtonContainer = (connect(function (state) {
56606
+ return {
56607
+ menuButtons: state.menuButtons,
56608
+ groups: state.groups,
56609
+ getButtonsCount: function getButtonsCount(groupId) {
56610
+ return selectors_getButtonsCount(groupId, state);
56611
+ },
56612
+ getIsSingleButton: function getIsSingleButton(groupId) {
56613
+ return selectors_getIsSingleButton(groupId, state);
56614
+ },
56615
+ state: state
56616
+ };
56617
+ }, function (dispatch) {
56618
+ return {
56619
+ set: function set() {
56620
+ return dispatch(dataActions_set.apply(void 0, arguments));
56621
+ },
56622
+ dispatch: dispatch
56623
+ };
56624
+ }, function (stateProps, dispatchProps, ownProps) {
56625
+ return MenuButtonContainer_objectSpread(MenuButtonContainer_objectSpread(MenuButtonContainer_objectSpread({}, stateProps), dispatchProps), ownProps);
56626
+ })(MenuButtonContainer));
56627
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Containers/ButtonGroupContainer/ButtonGroupContainer.js
56628
  function ButtonGroupContainer_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = ButtonGroupContainer_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
56629
 
56667
 
56668
 
56669
 
56670
+
56671
 
56672
 
56673
 
56775
  }, /*#__PURE__*/react.createElement(esm_Button_Button, {
56776
  onClick: handleOpenState,
56777
  color: "primary",
56778
+ "data-testid": "open-group",
56779
+ className: "open-group"
56780
  }, /*#__PURE__*/react.createElement("i", {
56781
  className: "group-arrow"
56782
  }, /*#__PURE__*/react.createElement("i", {
56784
  })), /*#__PURE__*/react.createElement("span", {
56785
  className: "group-name"
56786
  }, group.name)), /*#__PURE__*/react.createElement("div", {
 
 
56787
  className: "group-actions"
56788
  }, /*#__PURE__*/react.createElement(ContainerActions_EditButton, {
56789
  onClick: function onClick() {
56797
  return set("groups", group.id, "name", val);
56798
  },
56799
  inDropdown: true
56800
+ }), /*#__PURE__*/react.createElement(ContainerActions_ExportButton, {
56801
  object: group,
56802
  type: "group"
56803
  }), /*#__PURE__*/react.createElement(ImportButton, {
56822
  inDropdown: true
56823
  })))), /*#__PURE__*/react.createElement("div", ButtonGroupContainer_extends({
56824
  className: "buttons" + currentDrop
56825
+ }, provided.droppableProps), /*#__PURE__*/react.createElement(MenuButtonContainer_MenuButtonContainer, {
56826
+ groupId: group.id,
56827
+ openNewButtonDialog: function openNewButtonDialog(shiftKey) {
56828
+ if (shiftKey) return addButton({
56829
+ name: translate_translate("utils.new_button")
56830
+ }, group.id, 0);
56831
+ setNewButtonDialogOpened(0);
56832
+ }
56833
+ }), group.children.map(function (id, key) {
56834
  return /*#__PURE__*/react.createElement(PublicDraggable, {
56835
  draggableId: id,
56836
  index: key,
57170
  "data-testid": "return-to-overview"
57171
  }, "Return to overview"));
57172
  }
57173
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/Tab/Tab.js
57174
+
57175
+
57176
+
57177
+
57178
+
57179
+
57180
+
57181
+
57182
+
57183
+
57184
+ var Tab_styles = function styles(theme) {
57185
+ var _extends2;
57186
+
57187
+ return {
57188
+ /* Styles applied to the root element. */
57189
+ root: (0,esm_extends/* default */.Z)({}, theme.typography.button, (_extends2 = {
57190
+ maxWidth: 264,
57191
+ minWidth: 72,
57192
+ position: 'relative',
57193
+ boxSizing: 'border-box',
57194
+ minHeight: 48,
57195
+ flexShrink: 0,
57196
+ padding: '6px 12px'
57197
+ }, (0,defineProperty/* default */.Z)(_extends2, theme.breakpoints.up('sm'), {
57198
+ padding: '6px 24px'
57199
+ }), (0,defineProperty/* default */.Z)(_extends2, "overflow", 'hidden'), (0,defineProperty/* default */.Z)(_extends2, "whiteSpace", 'normal'), (0,defineProperty/* default */.Z)(_extends2, "textAlign", 'center'), (0,defineProperty/* default */.Z)(_extends2, theme.breakpoints.up('sm'), {
57200
+ minWidth: 160
57201
+ }), _extends2)),
57202
+
57203
+ /* Styles applied to the root element if both `icon` and `label` are provided. */
57204
+ labelIcon: {
57205
+ minHeight: 72,
57206
+ paddingTop: 9,
57207
+ '& $wrapper > *:first-child': {
57208
+ marginBottom: 6
57209
+ }
57210
+ },
57211
+
57212
+ /* Styles applied to the root element if the parent [`Tabs`](/api/tabs/) has `textColor="inherit"`. */
57213
+ textColorInherit: {
57214
+ color: 'inherit',
57215
+ opacity: 0.7,
57216
+ '&$selected': {
57217
+ opacity: 1
57218
+ },
57219
+ '&$disabled': {
57220
+ opacity: 0.5
57221
+ }
57222
+ },
57223
+
57224
+ /* Styles applied to the root element if the parent [`Tabs`](/api/tabs/) has `textColor="primary"`. */
57225
+ textColorPrimary: {
57226
+ color: theme.palette.text.secondary,
57227
+ '&$selected': {
57228
+ color: theme.palette.primary.main
57229
+ },
57230
+ '&$disabled': {
57231
+ color: theme.palette.text.disabled
57232
+ }
57233
+ },
57234
+
57235
+ /* Styles applied to the root element if the parent [`Tabs`](/api/tabs/) has `textColor="secondary"`. */
57236
+ textColorSecondary: {
57237
+ color: theme.palette.text.secondary,
57238
+ '&$selected': {
57239
+ color: theme.palette.secondary.main
57240
+ },
57241
+ '&$disabled': {
57242
+ color: theme.palette.text.disabled
57243
+ }
57244
+ },
57245
+
57246
+ /* Pseudo-class applied to the root element if `selected={true}` (controlled by the Tabs component). */
57247
+ selected: {},
57248
+
57249
+ /* Pseudo-class applied to the root element if `disabled={true}` (controlled by the Tabs component). */
57250
+ disabled: {},
57251
+
57252
+ /* Styles applied to the root element if `fullWidth={true}` (controlled by the Tabs component). */
57253
+ fullWidth: {
57254
+ flexShrink: 1,
57255
+ flexGrow: 1,
57256
+ flexBasis: 0,
57257
+ maxWidth: 'none'
57258
+ },
57259
+
57260
+ /* Styles applied to the root element if `wrapped={true}`. */
57261
+ wrapped: {
57262
+ fontSize: theme.typography.pxToRem(12),
57263
+ lineHeight: 1.5
57264
+ },
57265
+
57266
+ /* Styles applied to the `icon` and `label`'s wrapper element. */
57267
+ wrapper: {
57268
+ display: 'inline-flex',
57269
+ alignItems: 'center',
57270
+ justifyContent: 'center',
57271
+ width: '100%',
57272
+ flexDirection: 'column'
57273
+ }
57274
+ };
57275
+ };
57276
+ var Tab = /*#__PURE__*/react.forwardRef(function Tab(props, ref) {
57277
+ var classes = props.classes,
57278
+ className = props.className,
57279
+ _props$disabled = props.disabled,
57280
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
57281
+ _props$disableFocusRi = props.disableFocusRipple,
57282
+ disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi,
57283
+ fullWidth = props.fullWidth,
57284
+ icon = props.icon,
57285
+ indicator = props.indicator,
57286
+ label = props.label,
57287
+ onChange = props.onChange,
57288
+ onClick = props.onClick,
57289
+ onFocus = props.onFocus,
57290
+ selected = props.selected,
57291
+ selectionFollowsFocus = props.selectionFollowsFocus,
57292
+ _props$textColor = props.textColor,
57293
+ textColor = _props$textColor === void 0 ? 'inherit' : _props$textColor,
57294
+ value = props.value,
57295
+ _props$wrapped = props.wrapped,
57296
+ wrapped = _props$wrapped === void 0 ? false : _props$wrapped,
57297
+ other = (0,objectWithoutProperties/* default */.Z)(props, ["classes", "className", "disabled", "disableFocusRipple", "fullWidth", "icon", "indicator", "label", "onChange", "onClick", "onFocus", "selected", "selectionFollowsFocus", "textColor", "value", "wrapped"]);
57298
+
57299
+ var handleClick = function handleClick(event) {
57300
+ if (onChange) {
57301
+ onChange(event, value);
57302
+ }
57303
+
57304
+ if (onClick) {
57305
+ onClick(event);
57306
+ }
57307
+ };
57308
+
57309
+ var handleFocus = function handleFocus(event) {
57310
+ if (selectionFollowsFocus && !selected && onChange) {
57311
+ onChange(event, value);
57312
+ }
57313
+
57314
+ if (onFocus) {
57315
+ onFocus(event);
57316
+ }
57317
+ };
57318
+
57319
+ return /*#__PURE__*/react.createElement(ButtonBase_ButtonBase, (0,esm_extends/* default */.Z)({
57320
+ focusRipple: !disableFocusRipple,
57321
+ className: (0,clsx_m/* default */.Z)(classes.root, classes["textColor".concat((0,utils_capitalize/* default */.Z)(textColor))], className, disabled && classes.disabled, selected && classes.selected, label && icon && classes.labelIcon, fullWidth && classes.fullWidth, wrapped && classes.wrapped),
57322
+ ref: ref,
57323
+ role: "tab",
57324
+ "aria-selected": selected,
57325
+ disabled: disabled,
57326
+ onClick: handleClick,
57327
+ onFocus: handleFocus,
57328
+ tabIndex: selected ? 0 : -1
57329
+ }, other), /*#__PURE__*/react.createElement("span", {
57330
+ className: classes.wrapper
57331
+ }, icon, label), indicator);
57332
+ });
57333
+ false ? 0 : void 0;
57334
+ /* harmony default export */ var Tab_Tab = ((0,withStyles/* default */.Z)(Tab_styles, {
57335
+ name: 'MuiTab'
57336
+ })(Tab));
57337
  ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/utils/scrollLeft.js
57338
  // Source from https://github.com/alitaheri/normalize-scroll-left
57339
  var cachedType;
58123
  /* harmony default export */ var Tabs_Tabs = ((0,withStyles/* default */.Z)(Tabs_styles, {
58124
  name: 'MuiTabs'
58125
  })(Tabs));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58126
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Containers/ContainerSettings/BreadcrumbSelect/BreadcrumbSelect.js
58127
  function BreadcrumbSelect_slicedToArray(arr, i) { return BreadcrumbSelect_arrayWithHoles(arr) || BreadcrumbSelect_iterableToArrayLimit(arr, i) || BreadcrumbSelect_unsupportedIterableToArray(arr, i) || BreadcrumbSelect_nonIterableRest(); }
58128
 
58143
 
58144
 
58145
 
58146
+
58147
  var useStyles = styles_makeStyles(function () {
58148
  return {
58149
  selected: {
58160
  group = _ref.group,
58161
  groups = _ref.groups,
58162
  history = _ref.history,
58163
+ getChildrenIndex = _ref.getChildrenIndex,
58164
+ _ref$menuButton = _ref.menuButton,
58165
+ menuButton = _ref$menuButton === void 0 ? false : _ref$menuButton,
58166
+ tab = _ref.tab;
 
 
58167
 
58168
  var _React$useState = react.useState(null),
58169
  _React$useState2 = BreadcrumbSelect_slicedToArray(_React$useState, 2),
58184
  setAnchorEl(null); // If button is defined and not group
58185
 
58186
  if (button) {
58187
+ if (objectId === "menuButton") return history.push("/group/".concat(button.parent, "/menuButton/").concat(tab));
58188
+ history.push("/group/".concat(button.parent, "/button/").concat(objectId, "/").concat(tab));
58189
  } // If group is defined and not button
58190
  else if (group) {
58191
+ history.push("/group/".concat(objectId, "/").concat(tab));
58192
  }
58193
  };
58194
 
58222
  horizontal: "center"
58223
  },
58224
  "data-testid": "breadcrumb:popup"
58225
+ }, button ? /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
58226
+ className: "breadcrumb-select-options",
58227
+ onClick: function onClick() {
58228
+ return handleRedirect("menuButton");
58229
+ },
58230
+ "data-testid": "breadcrumbitem:menuButton",
58231
+ classes: {
58232
+ selected: classes.selected
58233
+ },
58234
+ selected: menuButton
58235
+ }, translate_translate("utils.menu_button")), Object.values(getChildrenIndex(groups[button.parent].children)).map(function (buttonData, key) {
58236
  return /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
58237
  key: key,
58238
  className: "breadcrumb-select-options",
58245
  },
58246
  selected: button.id === buttonData.id
58247
  }, buttonData.name);
58248
+ })) : Object.entries(groups).map(function (groupData, key) {
58249
  return /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
58250
  className: "breadcrumb-select-options",
58251
  key: key,
58270
  }
58271
  };
58272
  })(BreadcrumbSelectWithRouter));
58273
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Button/Header/Header.js
58274
+ function Header_slicedToArray(arr, i) { return Header_arrayWithHoles(arr) || Header_iterableToArrayLimit(arr, i) || Header_unsupportedIterableToArray(arr, i) || Header_nonIterableRest(); }
58275
 
58276
+ function Header_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
58277
 
58278
+ function Header_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Header_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Header_arrayLikeToArray(o, minLen); }
58279
 
58280
+ function Header_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
58281
 
58282
+ function Header_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
58283
 
58284
+ function Header_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
58285
 
58286
+ function Header_extends() { Header_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Header_extends.apply(this, arguments); }
58287
 
58288
 
58289
 
58294
 
58295
 
58296
 
58297
+
58298
+ function currentTab(tab) {
58299
+ if (tab === "advanced") {
58300
+ return 2;
58301
+ } else if (tab === "style") {
58302
+ return 1;
58303
+ } else {
58304
+ return 0;
58305
+ }
58306
+ }
58307
+
58308
+ function Header(_ref) {
58309
  var group = _ref.group,
58310
  button = _ref.button,
58311
  history = _ref.history,
58312
  _ref$tab = _ref.tab,
58313
+ tab = _ref$tab === void 0 ? "general" : _ref$tab;
58314
 
58315
+ var LinkTab = function LinkTab(props) {
58316
+ var url = "/group/".concat(group.id, "/button/").concat(button.id, "/").concat(props.page);
58317
+ return /*#__PURE__*/react.createElement(Tab_Tab, Header_extends({
58318
+ style: tab === props.page ? {
58319
+ color: "#f08419"
58320
+ } : null,
58321
+ component: "a",
58322
+ href: "#".concat(url),
58323
+ onClick: function onClick() {
58324
+ if (history.location.pathname !== url) {
58325
+ history.push(url);
58326
+ }
58327
+ },
58328
+ "data-testid": "buttongroupheader:button:".concat(props.page)
58329
+ }, props));
58330
  };
58331
 
58332
  var ref = (0,react.useRef)();
58333
 
58334
  var _useState = (0,react.useState)(null),
58335
+ _useState2 = Header_slicedToArray(_useState, 2),
58336
  anchorEl = _useState2[0],
58337
  setAnchorEl = _useState2[1];
58338
 
58339
  (0,react.useEffect)(function () {
58340
+ setAnchorEl(ref.current);
58341
  }, [ref]);
58342
  return /*#__PURE__*/react.createElement("div", {
58343
  className: "bar-header"
58348
  arrow: false
58349
  }, /*#__PURE__*/react.createElement(esm_Button_Button, {
58350
  onClick: function onClick() {
58351
+ return history.push("/");
58352
  },
58353
  color: "primary",
58354
  className: "home-button"
58361
  arrow: false
58362
  }, /*#__PURE__*/react.createElement(esm_Button_Button, {
58363
  onClick: function onClick() {
58364
+ return history.push("/group/".concat(group.id, "/").concat(tab));
58365
  },
58366
  color: "primary"
58367
  }, /*#__PURE__*/react.createElement("span", {
58369
  }, group.name), /*#__PURE__*/react.createElement("i", {
58370
  className: "fas fa-chevron-right"
58371
  }))), /*#__PURE__*/react.createElement(BreadcrumbSelect_BreadcrumbSelect, {
58372
+ button: button,
58373
+ tab: tab
58374
  })), /*#__PURE__*/react.createElement(RandomTip_RandomTip, null), /*#__PURE__*/react.createElement("div", {
58375
  className: "back-to-group"
58376
  }, /*#__PURE__*/react.createElement("a", {
58381
  className: "mdc-card top-header",
58382
  ref: ref
58383
  }, /*#__PURE__*/react.createElement(Tabs_Tabs, {
58384
+ value: currentTab(tab),
58385
  variant: "fullWidth",
58386
  indicatorColor: "secondary",
58387
  textColor: "secondary",
58388
  className: "tab-bordered"
58389
+ }, /*#__PURE__*/react.createElement(LinkTab, {
 
 
 
 
 
 
 
 
 
58390
  label: translate_translate("settings.setting_categories.general"),
 
 
58391
  page: "general",
58392
  "data-testid": "general-tab",
58393
  icon: /*#__PURE__*/react.createElement("i", {
58394
  className: "fas fa-wrench"
58395
  })
58396
+ }), /*#__PURE__*/react.createElement(Hints_Hints, {
58397
+ stepTrigger: 1,
58398
+ anchorEl: anchorEl,
58399
+ position: [0, 10],
58400
+ text: translate_translate("buttonizer_tour.hint.step_1")
58401
+ }), /*#__PURE__*/react.createElement(LinkTab, {
 
 
 
 
 
 
 
58402
  label: translate_translate("utils.style"),
 
 
 
58403
  page: "style",
58404
  "data-testid": "style-tab",
58405
  icon: /*#__PURE__*/react.createElement("i", {
58406
  className: "fas fa-paint-brush"
58407
  })
58408
+ }), /*#__PURE__*/react.createElement(LinkTab, {
 
 
 
 
 
 
 
 
 
58409
  label: translate_translate("utils.advanced"),
 
58410
  page: "advanced",
 
58411
  "data-testid": "advanced-tab",
58412
  icon: /*#__PURE__*/react.createElement("i", {
58413
  className: "fas fa-sliders-h"
58414
  })
58415
+ }))));
 
 
 
 
 
58416
  }
58417
 
58418
+ /* harmony default export */ var Header_Header = (withRouter(Header));
58419
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/CollapsibleGroup/CollapsibleGroup.js
58420
  function CollapsibleGroup_extends() { CollapsibleGroup_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return CollapsibleGroup_extends.apply(this, arguments); }
58421
 
60712
  var ActionRequestModal = function ActionRequestModal(props) {
60713
  return /*#__PURE__*/react.createElement("iframe", {
60714
  style: {
60715
+ minHeight: "430px",
60716
  minWidth: "375px",
60717
  margin: "25px 15px 0"
60718
  },
60940
 
60941
  var result = def[model][key];
60942
  if (model === "group") return mergeGroupDefaults(self, result, options);
60943
+ if (model === "button" || model === "menu_button") return mergeButtonDefaults(self, parent, result, options);
60944
  }
60945
 
60946
  function mergeGroupDefaults() {
60955
  _ref2$returnDefault = _ref2.returnDefault,
60956
  returnDefault = _ref2$returnDefault === void 0 ? false : _ref2$returnDefault;
60957
 
60958
+ var arr = [excludeSelf ? [] : self, returnSelf && [undefined, self[0]], returnDefault && def, returnDefault && [undefined, def[0]], !returnDefault && self.length === 0 && ["", ""]];
 
 
60959
  return defaults_default().apply(void 0, arr);
60960
  }
60961
 
60974
  _ref3$returnDefault = _ref3.returnDefault,
60975
  returnDefault = _ref3$returnDefault === void 0 ? false : _ref3$returnDefault;
60976
 
60977
+ var arr = [excludeSelf ? [] : self, returnSelf && [undefined, self[0]], parent, returnParent && [undefined, parent[0]], returnDefault && def, returnDefault && [undefined, def[0]], !returnDefault && self.length === 0 && ["", ""]];
 
 
60978
  return defaults_default().apply(void 0, arr);
60979
  }
60980
  ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Button/Tabs/Options.js
75824
  var iconType = function iconType() {
75825
  return /*#__PURE__*/react.createElement(IconType, {
75826
  value: get("icon_type", {
75827
+ returnDefault: true,
75828
+ defToGroup: true
75829
  }),
75830
  trashButton: get("icon_type") === "",
75831
  onChange: function onChange(val) {
75840
  returnDefault: true,
75841
  returnSelf: true,
75842
  returnParent: true,
75843
+ defToGroup: true
75844
  });
75845
  /* webpack-strip-block:removed */
75846
 
75861
  value: color[hoverSettings],
75862
  defaultValue: get("icon_color", {
75863
  returnDefault: true,
75864
+ returnSelf: true,
75865
+ defToGroup: true,
75866
+ returnParent: true
75867
  })[hoverSettings],
75868
  onChange: function onChange(val) {
75869
  var newValues = color;
75874
  };
75875
 
75876
  var sliders = function sliders() {
75877
+ var icon_size = get("icon_size");
 
 
75878
  /* webpack-strip-block:removed */
75879
 
75880
  return /*#__PURE__*/react.createElement(DisableSetting, {
75890
  returnDefault: true,
75891
  returnSelf: true,
75892
  returnParent: true,
75893
+ defToGroup: true
75894
  })[0],
75895
  "data-testid": "settingcontainer:icon-size",
75896
  inputText: "px",
75897
  premium: hoverSettings === 1,
75898
  disabled: hoverSettings === 1,
75899
  onChange: function onChange(val) {
75900
+ var newValues = icon_size;
75901
+ newValues[hoverSettings] = val;
75902
+ set("icon_size", newValues);
75903
+ set("icon_image_size", newValues);
75904
  },
75905
  className: "style-icon-size"
75906
  }));
75910
  title: translate_translate("utils.icon"),
75911
  "data-testid": "group:icon"
75912
  }, groupProps), iconType(), get("icon_type", {
75913
+ defToGroup: true,
75914
  returnDefault: true
75915
  }) === "off" ? null : /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(Tabs_Tabs, {
75916
  onChange: function onChange(_, val) {
75962
  _ref5$getParent = _ref5.getParent,
75963
  getParent = _ref5$getParent === void 0 ? false : _ref5$getParent,
75964
  _ref5$defToGroup = _ref5.defToGroup,
75965
+ defToGroup = _ref5$defToGroup === void 0 ? false : _ref5$defToGroup,
75966
  options = IconGroup_objectWithoutProperties(_ref5, ["getParent", "defToGroup"]);
75967
 
75968
  return _get(key, getParent ? group : button, group.menu_style, getParent ? "group" : "button", IconGroup_objectSpread({
76227
  newValues = [newValue, newValue, newValue, newValue];
76228
  } else {
76229
  newValues = values.map(function (val, k) {
76230
+ return key === k ? newValue === "" ? defaultArray[key] : newValue : val;
76231
  });
76232
  }
76233
 
76236
 
76237
  if (newValues.every(function (val) {
76238
  return val === "";
76239
+ })) return onChange("unset");
76240
+ onChange(newValues.map(function (val) {
76241
+ return "".concat(val === "" ? defaultArray[key] : val).concat(newUnit);
 
 
76242
  }).join(" "));
76243
  };
76244
 
77126
  if (false) { var requireProp; }
77127
 
77128
  /* harmony default export */ var Grid_Grid = (StyledGrid);
77129
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/LabelPosition/LabelPosition.js
77130
  function LabelPosition_slicedToArray(arr, i) { return LabelPosition_arrayWithHoles(arr) || LabelPosition_iterableToArrayLimit(arr, i) || LabelPosition_unsupportedIterableToArray(arr, i) || LabelPosition_nonIterableRest(); }
77131
 
77132
  function LabelPosition_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
77456
  return set("show_label_mobile", val);
77457
  },
77458
  trashButton: true
77459
+ }))), /*#__PURE__*/react.createElement("div", {
77460
  className: "setting-group-title"
77461
  }, translate_translate("settings.label_position.title")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(LabelPosition, {
77462
  title: translate_translate("settings.label_position.description"),
77470
  set("horizontal_position_label", val);
77471
  },
77472
  trashButton: get("horizontal_position_label") === ""
77473
+ }), /*#__PURE__*/react.createElement(Tabs_Tabs, {
77474
  onChange: function onChange(_, val) {
77475
  return setHoverSettings(val);
77476
  },
78110
 
78111
 
78112
 
 
 
 
 
 
 
 
 
 
 
 
78113
  function Button_Button_Button(_ref) {
78114
  var match = _ref.match,
78115
  groups = _ref.groups,
78116
+ buttons = _ref.buttons;
 
 
78117
  var group = dlv_umd_default()(groups, match.params.groupId, false);
78118
  var button = dlv_umd_default()(buttons, match.params.id, false);
78119
+ var tab = ["general", "style", "advanced"].includes(dlv_umd_default()(match.params, "tab", "general")) ? dlv_umd_default()(match.params, "tab", "general") : "general";
78120
 
78121
  if (!group || !button) {
78122
  return /*#__PURE__*/react.createElement(ItemNotFound, {
78124
  });
78125
  }
78126
 
78127
+ return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(Header_Header, {
78128
  group: group,
78129
  button: button,
78130
+ tab: tab
78131
+ }), tab === "general" && /*#__PURE__*/react.createElement(Tabs_Options, {
 
 
78132
  group: group,
78133
  buttonId: button.id
78134
+ }), tab === "style" && /*#__PURE__*/react.createElement(Styling, {
78135
  group: group,
78136
  buttonId: button.id
78137
+ }), tab === "advanced" && /*#__PURE__*/react.createElement(Tabs_Advanced, {
78138
  group: group,
78139
  buttonId: button.id
78140
  }));
78143
  /* harmony default export */ var Pages_Button_Button = (connect(function (state) {
78144
  return {
78145
  groups: state.groups,
78146
+ buttons: state.buttons
 
78147
  };
78148
+ })(Button_Button_Button));
78149
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/MenuButton/Header/Header.js
78150
+ function Header_Header_extends() { Header_Header_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Header_Header_extends.apply(this, arguments); }
78151
+
78152
+
78153
+
78154
+
78155
+
78156
+
78157
+
78158
+
78159
+
78160
+
78161
+ function Header_currentTab(tab) {
78162
+ if (tab === "advanced") {
78163
+ return 2;
78164
+ } else if (tab === "style") {
78165
+ return 1;
78166
+ } else {
78167
+ return 0;
78168
+ }
78169
+ }
78170
+
78171
+ function ButtonHeader(_ref) {
78172
+ var group = _ref.group,
78173
+ history = _ref.history,
78174
+ _ref$tab = _ref.tab,
78175
+ tab = _ref$tab === void 0 ? 0 : _ref$tab;
78176
+
78177
+ var LinkTab = function LinkTab(props) {
78178
+ var url = "/group/".concat(group.id, "/menuButton/").concat(props.page);
78179
+ return /*#__PURE__*/react.createElement(Tab_Tab, Header_Header_extends({
78180
+ component: "a",
78181
+ style: tab === props.page ? {
78182
+ color: "#f08419"
78183
+ } : null,
78184
+ href: "#".concat(url),
78185
+ onClick: function onClick() {
78186
+ if (history.location.pathname !== url) {
78187
+ history.push(url);
78188
+ }
78189
+ },
78190
+ "data-testid": "buttongroupheader:button:".concat(props.page)
78191
+ }, props));
78192
+ };
78193
+
78194
+ return /*#__PURE__*/react.createElement("div", {
78195
+ className: "bar-header"
78196
+ }, /*#__PURE__*/react.createElement("div", {
78197
+ className: "breadcrumb"
78198
+ }, /*#__PURE__*/react.createElement(Tippy_Tippy, {
78199
+ content: translate_translate("bar.breadcrumb.tippy_home"),
78200
+ arrow: false
78201
+ }, /*#__PURE__*/react.createElement(esm_Button_Button, {
78202
+ onClick: function onClick() {
78203
+ return history.push("/");
78204
  },
78205
+ color: "primary",
78206
+ className: "home-button"
78207
+ }, /*#__PURE__*/react.createElement("span", {
78208
+ className: "breadcrumb-text"
78209
+ }, translate_translate("bar.breadcrumb.home")), /*#__PURE__*/react.createElement("i", {
78210
+ className: "fas fa-chevron-right"
78211
+ }))), /*#__PURE__*/react.createElement(Tippy_Tippy, {
78212
+ content: translate_translate("bar.breadcrumb.tippy_group"),
78213
+ arrow: false
78214
+ }, /*#__PURE__*/react.createElement(esm_Button_Button, {
78215
+ onClick: function onClick() {
78216
+ return history.push("/group/".concat(group.id, "/").concat(tab));
78217
  },
78218
+ color: "primary"
78219
+ }, /*#__PURE__*/react.createElement("span", {
78220
+ className: "breadcrumb-text"
78221
+ }, group.name), /*#__PURE__*/react.createElement("i", {
78222
+ className: "fas fa-chevron-right"
78223
+ }))), /*#__PURE__*/react.createElement(BreadcrumbSelect_BreadcrumbSelect, {
78224
+ button: {
78225
+ name: translate_translate("utils.menu_button"),
78226
+ parent: group.id
78227
+ },
78228
+ menuButton: true,
78229
+ tab: tab
78230
+ })), /*#__PURE__*/react.createElement(RandomTip_RandomTip, null), /*#__PURE__*/react.createElement("div", {
78231
+ className: "back-to-group"
78232
+ }, /*#__PURE__*/react.createElement("a", {
78233
+ href: "#/group/" + group.id
78234
+ }, /*#__PURE__*/react.createElement("i", {
78235
+ className: "fas fa-chevron-down"
78236
+ }), translate_translate("bar.edit_group_settings"))), /*#__PURE__*/react.createElement("div", {
78237
+ className: "mdc-card top-header"
78238
+ }, /*#__PURE__*/react.createElement(Tabs_Tabs, {
78239
+ value: Header_currentTab(tab),
78240
+ variant: "fullWidth",
78241
+ indicatorColor: "secondary",
78242
+ textColor: "secondary",
78243
+ className: "tab-bordered"
78244
+ }, /*#__PURE__*/react.createElement(LinkTab, {
78245
+ label: translate_translate("settings.setting_categories.general"),
78246
+ page: "general",
78247
+ "data-testid": "general-tab",
78248
+ icon: /*#__PURE__*/react.createElement("i", {
78249
+ className: "fas fa-wrench"
78250
+ })
78251
+ }), /*#__PURE__*/react.createElement(LinkTab, {
78252
+ label: translate_translate("utils.style"),
78253
+ page: "style",
78254
+ "data-testid": "style-tab",
78255
+ icon: /*#__PURE__*/react.createElement("i", {
78256
+ className: "fas fa-paint-brush"
78257
+ })
78258
+ }), /*#__PURE__*/react.createElement(LinkTab, {
78259
+ label: translate_translate("utils.advanced"),
78260
+ page: "advanced",
78261
+ "data-testid": "advanced-tab",
78262
+ icon: /*#__PURE__*/react.createElement("i", {
78263
+ className: "fas fa-sliders-h"
78264
+ })
78265
+ }))));
78266
+ }
78267
 
78268
+ /* harmony default export */ var MenuButton_Header_Header = (withRouter(ButtonHeader));
78269
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/OpeningAnimation/OpeningAnimation.js
78270
+ function OpeningAnimation_slicedToArray(arr, i) { return OpeningAnimation_arrayWithHoles(arr) || OpeningAnimation_iterableToArrayLimit(arr, i) || OpeningAnimation_unsupportedIterableToArray(arr, i) || OpeningAnimation_nonIterableRest(); }
78271
 
78272
+ function OpeningAnimation_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
78273
 
78274
+ function OpeningAnimation_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return OpeningAnimation_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return OpeningAnimation_arrayLikeToArray(o, minLen); }
78275
 
78276
+ function OpeningAnimation_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
78277
 
78278
+ function OpeningAnimation_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
78279
 
78280
+ function OpeningAnimation_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
78281
 
78282
 
78283
 
78284
 
78285
 
78286
 
78287
+ function OpeningAnimation(_ref) {
78288
+ var _ref$value = _ref.value,
78289
+ value = _ref$value === void 0 ? "" : _ref$value,
78290
+ _ref$label_inside = _ref.label_inside,
78291
+ label_inside = _ref$label_inside === void 0 ? false : _ref$label_inside,
78292
+ _onChange = _ref.onChange,
78293
+ visible = _ref.visible;
78294
  var inputLabel = (0,react.useRef)(null);
78295
 
78296
  var _useState = (0,react.useState)(0),
78297
+ _useState2 = OpeningAnimation_slicedToArray(_useState, 2),
78298
  labelWidth = _useState2[0],
78299
  setLabelWidth = _useState2[1];
78300
 
78301
+ var disableCornerCircle = false;
78302
+ /* webpack-strip-block:removed */
78303
+
78304
  (0,react.useEffect)(function () {
78305
+ if (inputLabel && inputLabel.current) setLabelWidth(inputLabel.current.offsetWidth);
78306
+ }, [value]);
78307
 
78308
  var options = function options() {
78309
  /* webpack-strip-block:removed */
78311
  value: "default",
78312
  key: 0
78313
  }, translate_translate("settings.menu_style.styles.default")), /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
78314
+ value: "faded",
78315
  key: 1
78316
+ }, translate_translate("settings.menu_style.styles.faded")), /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
78317
+ value: "corner-circle",
78318
  key: 2
78319
+ }, translate_translate("settings.menu_style.styles.cornercircle")), /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
78320
+ value: "building-up",
78321
+ key: 3
78322
+ }, translate_translate("settings.menu_style.styles.buildingup")), /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
78323
+ value: "pop",
78324
+ key: 4
78325
+ }, translate_translate("settings.menu_style.styles.pop"))];
 
 
 
 
 
 
78326
  };
78327
 
78328
+ return /*#__PURE__*/react.createElement(react.Fragment, null, visible ? /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
78329
+ className: "setting-group-title"
78330
+ }, translate_translate("settings.opening_animation.title")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(FormControl_FormControl, {
78331
  variant: "outlined",
78332
  fullWidth: true
78333
  }, /*#__PURE__*/react.createElement(InputLabel_InputLabel, {
78348
  },
78349
  labelWidth: labelWidth,
78350
  inputProps: {
78351
+ "data-testid": "setting:opening-animation"
78352
  }
78353
+ }, options()))) : null);
78354
+ }
78355
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/CloseOnClickOutside/CloseOnClickOutside.js
78356
+
78357
+
78358
+
78359
+
78360
+ function CloseOnClickOutside(_ref) {
78361
+ var value = _ref.value,
78362
+ _ref$openOnMouseOverE = _ref.openOnMouseOverEnabled,
78363
+ openOnMouseOverEnabled = _ref$openOnMouseOverE === void 0 ? false : _ref$openOnMouseOverE,
78364
+ _ref$closeOnMouseLeav = _ref.closeOnMouseLeaveEnabled,
78365
+ closeOnMouseLeaveEnabled = _ref$closeOnMouseLeav === void 0 ? false : _ref$closeOnMouseLeav,
78366
+ _onChange = _ref.onChange;
78367
+ return /*#__PURE__*/react.createElement(SettingsContainer, {
78368
+ title: translate_translate("settings.close_on_click_outside.title"),
78369
+ fullWidth: false
78370
+ }, /*#__PURE__*/react.createElement(esm_Switch_Switch, {
78371
+ inputProps: {
78372
+ "data-testid": "setting:close-on-click-outside"
78373
+ },
78374
+ onChange: function onChange(obj) {
78375
+ return _onChange(obj.target.checked);
78376
+ },
78377
+ checked: value,
78378
+ disabled: openOnMouseOverEnabled && closeOnMouseLeaveEnabled
78379
+ }));
78380
+ }
78381
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/CloseOnClickInside/CloseOnClickInside.js
78382
+
78383
+
78384
+
78385
+
78386
+ function CloseOnClickInside(_ref) {
78387
+ var value = _ref.value,
78388
+ _ref$openOnMouseOverE = _ref.openOnMouseOverEnabled,
78389
+ openOnMouseOverEnabled = _ref$openOnMouseOverE === void 0 ? false : _ref$openOnMouseOverE,
78390
+ _onChange = _ref.onChange;
78391
+ return /*#__PURE__*/react.createElement(SettingsContainer, {
78392
+ title: translate_translate("settings.close_on_click_inside.title"),
78393
+ fullWidth: false
78394
+ }, /*#__PURE__*/react.createElement(esm_Switch_Switch, {
78395
+ inputProps: {
78396
+ "data-testid": "setting:close-on-click-inside"
78397
+ },
78398
+ onChange: function onChange(obj) {
78399
+ return _onChange(obj.target.checked);
78400
+ },
78401
+ checked: value,
78402
+ disabled: openOnMouseOverEnabled
78403
+ }));
78404
+ }
78405
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/OpenOnMouseOver/OpenOnMouseOver.js
78406
+
78407
+
78408
+
78409
+
78410
+
78411
+ function OpenOnMouseOver(_ref) {
78412
+ var openOnHover = _ref.openOnHover,
78413
+ closeOnMouseLeave = _ref.closeOnMouseLeave,
78414
+ onChange = _ref.onChange;
78415
+
78416
+ /* webpack-strip-block:removed */
78417
+ return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(SettingsContainer, {
78418
+ title: /*#__PURE__*/react.createElement("div", {
78419
+ onClick: function onClick(e) {
78420
+ return app.showPremiumDialog(e.currentTarget, null, "top", "bottom");
78421
+ },
78422
+ style: {
78423
+ cursor: "pointer"
78424
+ },
78425
+ "data-testid": "setting:open-on-hover"
78426
+ }, translate_translate("settings.open_on_mouseover.title"), /*#__PURE__*/react.createElement(PremiumTag, null)),
78427
+ fullWidth: false
78428
+ }, /*#__PURE__*/react.createElement(esm_Switch_Switch, {
78429
+ disabled: true,
78430
+ checked: false
78431
+ })));
78432
  }
78433
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/StartOpened/StartOpened.js
78434
  function StartOpened_slicedToArray(arr, i) { return StartOpened_arrayWithHoles(arr) || StartOpened_iterableToArrayLimit(arr, i) || StartOpened_unsupportedIterableToArray(arr, i) || StartOpened_nonIterableRest(); }
78474
  checked: opened
78475
  }));
78476
  }
78477
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/MenuButton/Tabs/Options.js
78478
+ function Tabs_Options_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
78479
+
78480
+ function Tabs_Options_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { Tabs_Options_ownKeys(Object(source), true).forEach(function (key) { Tabs_Options_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { Tabs_Options_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
78481
+
78482
+ function Tabs_Options_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
78483
+
78484
+ function Tabs_Options_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Tabs_Options_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
78485
+
78486
+ function Tabs_Options_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
78487
+
78488
+ function Tabs_Options_slicedToArray(arr, i) { return Tabs_Options_arrayWithHoles(arr) || Tabs_Options_iterableToArrayLimit(arr, i) || Tabs_Options_unsupportedIterableToArray(arr, i) || Tabs_Options_nonIterableRest(); }
78489
+
78490
+ function Tabs_Options_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
78491
+
78492
+ function Tabs_Options_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Tabs_Options_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Tabs_Options_arrayLikeToArray(o, minLen); }
78493
+
78494
+ function Tabs_Options_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
78495
+
78496
+ function Tabs_Options_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
78497
+
78498
+ function Tabs_Options_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
78499
+
78500
+
78501
+
78502
+
78503
+
78504
+
78505
+
78506
+
78507
+
78508
+
78509
+
78510
+
78511
+
78512
+
78513
+
78514
+
78515
+
78516
+ function Options_Options(_ref) {
78517
+ var set = _ref.set,
78518
+ get = _ref.get;
78519
+
78520
+ var _useState = (0,react.useState)("menu_button_general_general"),
78521
+ _useState2 = Tabs_Options_slicedToArray(_useState, 2),
78522
+ openedGroup = _useState2[0],
78523
+ setOpenedGroup = _useState2[1];
78524
+
78525
+ var openCollapsibleGroup = useSelector(function (store) {
78526
+ return dlv_umd_default()(store, "misc.open_collapsible_group", "menu_button_general_general");
78527
+ }); // Making sure the right container opens during the create button tour
78528
+
78529
+ (0,react.useEffect)(function () {
78530
+ setOpenedGroup(openCollapsibleGroup ? openCollapsibleGroup : "menu_button_general_general");
78531
+ }, [openCollapsibleGroup]);
78532
+ return /*#__PURE__*/react.createElement("div", null, /*#__PURE__*/react.createElement(CollapsibleGroup, {
78533
+ title: translate_translate("settings.setting_categories.general"),
78534
+ opened: openedGroup === "menu_button_general_general",
78535
+ onSetIsOpened: function onSetIsOpened(val) {
78536
+ return setOpenedGroup(val ? "menu_button_general_general" : "");
78537
+ },
78538
+ "data-testid": "group:general"
78539
+ }, /*#__PURE__*/react.createElement("div", {
78540
+ className: "setting-group-title"
78541
+ }, translate_translate("settings.setting_categories.label")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(Label, {
78542
+ value: get("label"),
78543
+ onChange: function onChange(val) {
78544
+ if (val === "") return set("label", "unset");
78545
+ set("label", val);
78546
+ },
78547
+ placeholder: ""
78548
+ }), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(Visibility, {
78549
+ mobile: get("show_mobile", {
78550
+ returnDefault: true
78551
+ }),
78552
+ desktop: get("show_desktop", {
78553
+ returnDefault: true
78554
+ }),
78555
+ onChange: function onChange(type, val) {
78556
+ return set(type, val);
78557
+ }
78558
+ })), /*#__PURE__*/react.createElement(CollapsibleGroup, {
78559
+ title: translate_translate("settings.menu_style.title"),
78560
+ opened: openedGroup === "menu_button_general_menu_settings",
78561
+ onSetIsOpened: function onSetIsOpened(val) {
78562
+ return setOpenedGroup(val ? "menu_button_general_menu_settings" : "");
78563
+ },
78564
+ "data-testid": "group:menu_settings"
78565
+ }, /*#__PURE__*/react.createElement(OpeningAnimation, {
78566
+ value: get("menu_opening_animation", {
78567
+ returnDefault: true
78568
+ }),
78569
+ label_inside: get("label_inside", {
78570
+ returnDefault: true,
78571
+ getParent: true
78572
+ }),
78573
+ onChange: function onChange(val) {
78574
+ set("menu_opening_animation", val);
78575
+ },
78576
+ visible: true
78577
+ }), /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
78578
+ className: "setting-group-title"
78579
+ }, translate_translate("settings.menu.title_settings")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(StartOpened, {
78580
+ value: get("start_opened", {
78581
+ returnDefault: true
78582
+ }),
78583
+ onChange: function onChange(val) {
78584
+ return set("start_opened", val);
78585
+ }
78586
+ }), /*#__PURE__*/react.createElement(CloseOnClickInside, {
78587
+ value: get("close_on_click_inside", {
78588
+ returnDefault: true
78589
+ }),
78590
+ openOnMouseOverEnabled: get("open_on_mouseover", {
78591
+ returnDefault: true
78592
+ }),
78593
+ onChange: function onChange(val) {
78594
+ return set("close_on_click_inside", val);
78595
+ }
78596
+ }), /*#__PURE__*/react.createElement(CloseOnClickOutside, {
78597
+ value: get("close_on_click_outside", {
78598
+ returnDefault: true
78599
+ }),
78600
+ openOnMouseOverEnabled: get("open_on_mouseover", {
78601
+ returnDefault: true
78602
+ }),
78603
+ closeOnMouseLeaveEnabled: get("close_on_mouseleave", {
78604
+ returnDefault: true
78605
+ }),
78606
+ onChange: function onChange(val) {
78607
+ return set("close_on_click_outside", val);
78608
+ }
78609
+ }), /*#__PURE__*/react.createElement(OpenOnMouseOver, {
78610
+ openOnHover: get("open_on_mouseover", {
78611
+ returnDefault: true
78612
+ }),
78613
+ closeOnMouseLeave: get("close_on_mouseleave", {
78614
+ returnDefault: true
78615
+ }),
78616
+ onChange: function onChange(key, val) {
78617
+ return set(key, val);
78618
+ }
78619
+ }))));
78620
+ }
78621
+
78622
+ /* harmony default export */ var MenuButton_Tabs_Options = (connect(function (state) {
78623
+ return {
78624
+ groups: state.groups,
78625
+ menuButtons: state.menuButtons
78626
+ };
78627
+ }, function (dispatch) {
78628
+ return {
78629
+ _set: function _set() {
78630
+ return dispatch(dataActions_set.apply(void 0, arguments));
78631
+ }
78632
+ };
78633
+ }, function (_ref2, _ref3, _ref4) {
78634
+ var groups = _ref2.groups,
78635
+ menuButtons = _ref2.menuButtons;
78636
+ var _set = _ref3._set;
78637
+
78638
+ var groupId = _ref4.groupId,
78639
+ props = Tabs_Options_objectWithoutProperties(_ref4, ["groupId"]);
78640
+
78641
+ var group = groups[groupId];
78642
+ var menuButton = menuButtons[groupId];
78643
+ return Tabs_Options_objectSpread({
78644
+ set: function set(key, value) {
78645
+ return _set(models.MENU_BUTTON, groupId, key, value);
78646
+ },
78647
+ get: function get(key) {
78648
+ var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
78649
+ _ref5$getParent = _ref5.getParent,
78650
+ getParent = _ref5$getParent === void 0 ? false : _ref5$getParent,
78651
+ _ref5$defToGroup = _ref5.defToGroup,
78652
+ defToGroup = _ref5$defToGroup === void 0 ? true : _ref5$defToGroup,
78653
+ options = Tabs_Options_objectWithoutProperties(_ref5, ["getParent", "defToGroup"]);
78654
+
78655
+ return _get(key, getParent ? group : menuButton, group.menu_style, getParent ? "group" : "menu_button", Tabs_Options_objectSpread({
78656
+ defToGroup: defToGroup && group
78657
+ }, options));
78658
+ }
78659
+ }, props);
78660
+ })(Options_Options));
78661
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/MenuButton/Tabs/Styling/IconGroup.js
78662
+ function Styling_IconGroup_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
78663
+
78664
+ function Styling_IconGroup_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { Styling_IconGroup_ownKeys(Object(source), true).forEach(function (key) { Styling_IconGroup_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { Styling_IconGroup_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
78665
+
78666
+ function Styling_IconGroup_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
78667
+
78668
+ function Styling_IconGroup_extends() { Styling_IconGroup_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Styling_IconGroup_extends.apply(this, arguments); }
78669
+
78670
+ function Styling_IconGroup_slicedToArray(arr, i) { return Styling_IconGroup_arrayWithHoles(arr) || Styling_IconGroup_iterableToArrayLimit(arr, i) || Styling_IconGroup_unsupportedIterableToArray(arr, i) || Styling_IconGroup_nonIterableRest(); }
78671
+
78672
+ function Styling_IconGroup_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
78673
+
78674
+ function Styling_IconGroup_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Styling_IconGroup_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Styling_IconGroup_arrayLikeToArray(o, minLen); }
78675
+
78676
+ function Styling_IconGroup_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
78677
+
78678
+ function Styling_IconGroup_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
78679
+
78680
+ function Styling_IconGroup_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
78681
+
78682
+ function Styling_IconGroup_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Styling_IconGroup_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
78683
+
78684
+ function Styling_IconGroup_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
78685
+
78686
+
78687
+
78688
+
78689
+
78690
+
78691
+
78692
+
78693
+
78694
+
78695
+
78696
+
78697
+
78698
+
78699
+
78700
+ /* webpack-strip-block:removed */
78701
+
78702
+ function IconGroup_IconGroup(_ref) {
78703
+ var get = _ref.get,
78704
+ set = _ref.set,
78705
+ groupProps = Styling_IconGroup_objectWithoutProperties(_ref, ["get", "set"]);
78706
+
78707
+ var _useState = (0,react.useState)(0),
78708
+ _useState2 = Styling_IconGroup_slicedToArray(_useState, 2),
78709
+ hoverSettings = _useState2[0],
78710
+ setHoverSettings = _useState2[1]; // 0 = normal, 1 = hover
78711
+
78712
+
78713
+ var iconType = function iconType() {
78714
+ return /*#__PURE__*/react.createElement(IconType, {
78715
+ value: get("icon_type", {
78716
+ defToGroup: false,
78717
+ returnDefault: true
78718
+ }),
78719
+ trashButton: get("icon_type") === "",
78720
+ onChange: function onChange(val) {
78721
+ set("icon_type", val);
78722
+ }
78723
+ });
78724
+ };
78725
+
78726
+ var settings = function settings() {
78727
+ var color = get("icon_color");
78728
+ var icon = get("icon", {
78729
+ returnDefault: true,
78730
+ returnSelf: true,
78731
+ returnParent: true,
78732
+ defToGroup: false
78733
+ });
78734
+ /* webpack-strip-block:removed */
78735
+
78736
+ return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(DisableSetting, {
78737
+ condition: hoverSettings === 1,
78738
+ premiumTag: true,
78739
+ onClick: function onClick(e) {
78740
+ app.showPremiumDialog(e.currentTarget);
78741
+ }
78742
+ }, /*#__PURE__*/react.createElement(IconSelector_IconSelector, {
78743
+ value: icon[0],
78744
+ onChange: function onChange(val) {
78745
+ return set("icon", [val, "unset"]);
78746
+ },
78747
+ hoverDisabled: hoverSettings === 1
78748
+ })), /*#__PURE__*/react.createElement(ColorPicker, {
78749
+ title: translate_translate("utils.color"),
78750
+ value: color[hoverSettings],
78751
+ defaultValue: get("icon_color", {
78752
+ returnDefault: true,
78753
+ returnSelf: true
78754
+ })[hoverSettings],
78755
+ onChange: function onChange(val) {
78756
+ var newValues = color;
78757
+ newValues[hoverSettings] = val;
78758
+ set("icon_color", newValues);
78759
+ }
78760
+ }));
78761
+ };
78762
+
78763
+ var sliders = function sliders() {
78764
+ var icon_size = get("icon_size", {
78765
+ defToGroup: false
78766
+ });
78767
+ /* webpack-strip-block:removed */
78768
+
78769
+ return /*#__PURE__*/react.createElement(DisableSetting, {
78770
+ condition: hoverSettings === 1,
78771
+ premiumTag: true,
78772
+ onClick: function onClick(e) {
78773
+ app.showPremiumDialog(e.currentTarget);
78774
+ }
78775
+ }, /*#__PURE__*/react.createElement(SliderContainer, {
78776
+ title: translate_translate("settings.icon_size.title"),
78777
+ value: icon_size[0],
78778
+ defaultValue: get("icon_size", {
78779
+ returnDefault: true,
78780
+ returnSelf: true,
78781
+ returnParent: true,
78782
+ defToGroup: false
78783
+ })[0],
78784
+ "data-testid": "settingcontainer:icon-size",
78785
+ inputText: "px",
78786
+ premium: hoverSettings === 1,
78787
+ disabled: hoverSettings === 1,
78788
+ onChange: function onChange(val) {
78789
+ set("icon_size", val);
78790
+ set("icon_image_size", val);
78791
+ },
78792
+ className: "style-icon-size"
78793
+ }));
78794
+ };
78795
+
78796
+ return /*#__PURE__*/react.createElement(CollapsibleGroup, Styling_IconGroup_extends({
78797
+ title: translate_translate("utils.icon"),
78798
+ "data-testid": "group:icon"
78799
+ }, groupProps), iconType(), get("icon_type", {
78800
+ defToGroup: false,
78801
+ returnDefault: true
78802
+ }) === "off" ? null : /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(Tabs_Tabs, {
78803
+ onChange: function onChange(_, val) {
78804
+ return setHoverSettings(val);
78805
+ },
78806
+ style: {
78807
+ marginBottom: "20px",
78808
+ marginTop: "20px"
78809
+ },
78810
+ value: hoverSettings,
78811
+ variant: "fullWidth",
78812
+ centered: true
78813
+ }, /*#__PURE__*/react.createElement(Tab_Tab, {
78814
+ label: "Normal",
78815
+ "data-testid": "normal_hover:normal"
78816
+ }), /*#__PURE__*/react.createElement(Tab_Tab, {
78817
+ label: "Hover",
78818
+ "data-testid": "normal_hover:hover"
78819
+ })), settings(), sliders()));
78820
+ }
78821
+
78822
+ /* harmony default export */ var Tabs_Styling_IconGroup = (connect(function (state) {
78823
+ return {
78824
+ groups: state.groups,
78825
+ menuButtons: state.menuButtons
78826
+ };
78827
+ }, function (dispatch) {
78828
+ return {
78829
+ _set: function _set() {
78830
+ return dispatch(dataActions_set.apply(void 0, arguments));
78831
+ }
78832
+ };
78833
+ }, function (_ref2, _ref3, _ref4) {
78834
+ var groups = _ref2.groups,
78835
+ menuButtons = _ref2.menuButtons;
78836
+ var _set = _ref3._set;
78837
+
78838
+ var groupId = _ref4.groupId,
78839
+ props = Styling_IconGroup_objectWithoutProperties(_ref4, ["groupId"]);
78840
+
78841
+ var group = groups[groupId];
78842
+ var menuButton = menuButtons[groupId];
78843
+ return Styling_IconGroup_objectSpread({
78844
+ set: function set(key, val) {
78845
+ return _set(models.MENU_BUTTON, groupId, key, val);
78846
+ },
78847
+ get: function get(key) {
78848
+ var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
78849
+ _ref5$getParent = _ref5.getParent,
78850
+ getParent = _ref5$getParent === void 0 ? false : _ref5$getParent,
78851
+ _ref5$defToGroup = _ref5.defToGroup,
78852
+ defToGroup = _ref5$defToGroup === void 0 ? true : _ref5$defToGroup,
78853
+ options = Styling_IconGroup_objectWithoutProperties(_ref5, ["getParent", "defToGroup"]);
78854
+
78855
+ return _get(key, getParent ? group : menuButton, group.menu_style, getParent ? "group" : "menu_button", Styling_IconGroup_objectSpread({
78856
+ defToGroup: defToGroup && group
78857
+ }, options));
78858
+ }
78859
+ }, props);
78860
+ })(IconGroup_IconGroup));
78861
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/MenuButton/Tabs/Styling/LabelGroup.js
78862
+ function Styling_LabelGroup_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
78863
+
78864
+ function Styling_LabelGroup_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { Styling_LabelGroup_ownKeys(Object(source), true).forEach(function (key) { Styling_LabelGroup_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { Styling_LabelGroup_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
78865
+
78866
+ function Styling_LabelGroup_extends() { Styling_LabelGroup_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Styling_LabelGroup_extends.apply(this, arguments); }
78867
+
78868
+ function Styling_LabelGroup_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
78869
+
78870
+ function Styling_LabelGroup_slicedToArray(arr, i) { return Styling_LabelGroup_arrayWithHoles(arr) || Styling_LabelGroup_iterableToArrayLimit(arr, i) || Styling_LabelGroup_unsupportedIterableToArray(arr, i) || Styling_LabelGroup_nonIterableRest(); }
78871
+
78872
+ function Styling_LabelGroup_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
78873
+
78874
+ function Styling_LabelGroup_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Styling_LabelGroup_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Styling_LabelGroup_arrayLikeToArray(o, minLen); }
78875
+
78876
+ function Styling_LabelGroup_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
78877
+
78878
+ function Styling_LabelGroup_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
78879
+
78880
+ function Styling_LabelGroup_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
78881
+
78882
+ function Styling_LabelGroup_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Styling_LabelGroup_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
78883
+
78884
+ function Styling_LabelGroup_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
78885
+
78886
+
78887
+
78888
+
78889
+
78890
+
78891
+
78892
+
78893
+
78894
+
78895
+
78896
+
78897
+
78898
+
78899
+
78900
+
78901
+
78902
+
78903
+
78904
+ function LabelGroup_LabelGroup(_ref) {
78905
+ var set = _ref.set,
78906
+ get = _ref.get,
78907
+ groupProps = Styling_LabelGroup_objectWithoutProperties(_ref, ["set", "get"]);
78908
+
78909
+ var _useState = (0,react.useState)(0),
78910
+ _useState2 = Styling_LabelGroup_slicedToArray(_useState, 2),
78911
+ hoverSettings = _useState2[0],
78912
+ setHoverSettings = _useState2[1];
78913
+
78914
+ var fontFamily = function fontFamily() {
78915
+ /* webpack-strip-block:removed */
78916
+ return /*#__PURE__*/react.createElement(DisableSetting, {
78917
+ premiumTag: true,
78918
+ onClick: function onClick(e) {
78919
+ return app.showPremiumDialog(e.currentTarget, translate_translate("premium.font_family"));
78920
+ }
78921
+ }, /*#__PURE__*/react.createElement(FontFamily, null));
78922
+ };
78923
+
78924
+ var labelSpacing = function labelSpacing() {
78925
+ var label_spacing = get("label_spacing");
78926
+ return /*#__PURE__*/react.createElement(SliderContainer, {
78927
+ title: "Label Spacing",
78928
+ value: label_spacing,
78929
+ inputText: "px",
78930
+ onChange: function onChange(val) {
78931
+ var newValues = label_spacing;
78932
+ newValues = val;
78933
+ set("label_spacing", newValues);
78934
+ },
78935
+ defaultValue: get("label_spacing", {
78936
+ excludeSelf: true,
78937
+ returnDefault: true,
78938
+ defToGroup: true
78939
+ })
78940
+ });
78941
+ };
78942
+
78943
+ var margin = function margin() {
78944
+ /* webpack-strip-block:removed */
78945
+ return /*#__PURE__*/react.createElement(DisableSetting, {
78946
+ premiumTag: true,
78947
+ onClick: function onClick(e) {
78948
+ app.showPremiumDialog(e.currentTarget, translate_translate("premium.margin"), "top", "bottom");
78949
+ }
78950
+ }, /*#__PURE__*/react.createElement(TextFieldCorners, {
78951
+ title: translate_translate("settings.margin.title") + " (PRO)",
78952
+ type: "sides"
78953
+ }));
78954
+ };
78955
+
78956
+ var padding = function padding() {
78957
+ /* webpack-strip-block:removed */
78958
+ return /*#__PURE__*/react.createElement(DisableSetting, {
78959
+ premiumTag: true,
78960
+ onClick: function onClick(e) {
78961
+ app.showPremiumDialog(e.currentTarget, translate_translate("premium.padding"), "top", "bottom");
78962
+ }
78963
+ }, /*#__PURE__*/react.createElement(TextFieldCorners, {
78964
+ title: translate_translate("settings.padding.title") + " (PRO)",
78965
+ type: "sides"
78966
+ }));
78967
+ };
78968
+
78969
+ var fontSize = function fontSize() {
78970
+ var label_font_size = get("label_font_size");
78971
+ var label_font_size_parent = get("label_font_size", {
78972
+ returnDefault: true,
78973
+ returnSelf: true,
78974
+ defToGroup: true
78975
+ });
78976
+ /* webpack-strip-block:removed */
78977
+
78978
+ return /*#__PURE__*/react.createElement(DisableSetting, {
78979
+ condition: hoverSettings === 1,
78980
+ premiumTag: true,
78981
+ onClick: function onClick(e) {
78982
+ app.showPremiumDialog(e.currentTarget);
78983
+ }
78984
+ }, /*#__PURE__*/react.createElement(SliderContainer, {
78985
+ title: translate_translate("settings.font_size"),
78986
+ "data-testid": "styling:font_size",
78987
+ value: label_font_size[0],
78988
+ inputText: "px",
78989
+ onChange: function onChange(val) {
78990
+ set("label_font_size", val);
78991
+ },
78992
+ defaultValue: label_font_size_parent[0],
78993
+ disabled: hoverSettings === 1,
78994
+ premium: hoverSettings === 1
78995
+ }));
78996
+ };
78997
+
78998
+ var borderRadius = function borderRadius() {
78999
+ var label_border_radius = get("label_border_radius");
79000
+ var label_border_radius_parent = get("label_border_radius", {
79001
+ returnDefault: true,
79002
+ returnSelf: true,
79003
+ defToGroup: true
79004
+ });
79005
+ /* webpack-strip-block:removed */
79006
+
79007
+ return /*#__PURE__*/react.createElement(DisableSetting, {
79008
+ condition: hoverSettings === 1,
79009
+ premiumTag: true,
79010
+ onClick: function onClick(e) {
79011
+ app.showPremiumDialog(e.currentTarget);
79012
+ }
79013
+ }, /*#__PURE__*/react.createElement(BorderRadius, {
79014
+ defaultValue: label_border_radius_parent[0],
79015
+ value: label_border_radius[0],
79016
+ disabled: hoverSettings === 1,
79017
+ onChange: function onChange(val) {
79018
+ var newValues = label_border_radius;
79019
+ newValues[0] = val || "unset";
79020
+ set("label_border_radius", newValues);
79021
+ }
79022
+ }));
79023
+ };
79024
+
79025
+ var boxShadow = function boxShadow() {
79026
+ var _get2;
79027
+
79028
+ return /*#__PURE__*/react.createElement(BoxShadow, {
79029
+ value: get("label_box_shadow")[hoverSettings] // if label_box_shadow_enabled is enabled by group/button || if parent is disabled AND button is undefined AND has shadow.
79030
+ ,
79031
+ enabled: get("label_box_shadow_enabled", {
79032
+ returnSelf: true,
79033
+ returnDefault: true,
79034
+ defToGroup: true,
79035
+ returnParent: true
79036
+ })[hoverSettings],
79037
+ defaultValue: get("label_box_shadow", (_get2 = {
79038
+ returnSelf: true,
79039
+ excludeSelf: true,
79040
+ returnDefault: true
79041
+ }, Styling_LabelGroup_defineProperty(_get2, "returnSelf", true), Styling_LabelGroup_defineProperty(_get2, "defToGroup", true), _get2))[hoverSettings],
79042
+ trashButton: get("label_box_shadow_enabled")[hoverSettings],
79043
+ updateValue: "".concat(get("id")).concat(hoverSettings),
79044
+ onChange: function onChange(val, type) {
79045
+ if (type === "enable") {
79046
+ var _newValues = get("label_box_shadow_enabled");
79047
+
79048
+ _newValues[hoverSettings] = val;
79049
+ set("label_box_shadow_enabled", _newValues);
79050
+ return;
79051
+ }
79052
+
79053
+ var newValues = get("label_box_shadow");
79054
+ newValues[hoverSettings] = val;
79055
+ set("label_box_shadow", newValues);
79056
+ }
79057
+ });
79058
+ };
79059
+
79060
+ var label_color = get("label_color");
79061
+ var label_color_parent = get("label_color", {
79062
+ returnDefault: true,
79063
+ returnSelf: true,
79064
+ defToGroup: true
79065
+ });
79066
+ var label_background_color = get("label_background_color");
79067
+ var label_background_color_parent = get("label_background_color", {
79068
+ returnDefault: true,
79069
+ returnSelf: true,
79070
+ defToGroup: true
79071
+ });
79072
+ return /*#__PURE__*/react.createElement(CollapsibleGroup, Styling_LabelGroup_extends({
79073
+ title: translate_translate("settings.label.title"),
79074
+ "data-testid": "group:label"
79075
+ }, groupProps), /*#__PURE__*/react.createElement("div", {
79076
+ className: "setting-group-title"
79077
+ }, "Style"), /*#__PURE__*/react.createElement("hr", null), labelSpacing(), get("label_inside", {
79078
+ getParent: true,
79079
+ returnDefault: true
79080
+ }) ? null : /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
79081
+ className: "label-device-visibility"
79082
+ }, /*#__PURE__*/react.createElement("div", {
79083
+ className: "setting-group-title"
79084
+ }, translate_translate("settings.label_desktop.title")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(LabelVisibility, {
79085
+ title: translate_translate("settings.show_mobile_desktop.desktop"),
79086
+ device: "desktop",
79087
+ value: get("show_label_desktop", {
79088
+ returnDefault: true,
79089
+ returnSelf: true
79090
+ }),
79091
+ onChange: function onChange(val) {
79092
+ return set("show_label_desktop", val);
79093
+ },
79094
+ trashButton: true
79095
+ }), /*#__PURE__*/react.createElement(LabelVisibility, {
79096
+ title: translate_translate("settings.show_mobile_desktop.mobile"),
79097
+ device: "mobile",
79098
+ value: get("show_label_mobile", {
79099
+ returnDefault: true,
79100
+ returnSelf: true
79101
+ }),
79102
+ onChange: function onChange(val) {
79103
+ return set("show_label_mobile", val);
79104
+ },
79105
+ trashButton: true
79106
+ }))), /*#__PURE__*/react.createElement("div", {
79107
+ className: "setting-group-title"
79108
+ }, translate_translate("settings.label_position.title")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(LabelPosition, {
79109
+ title: translate_translate("settings.label_position.description"),
79110
+ value: get("horizontal_position_label"),
79111
+ defaultValue: get("horizontal_position_label", {
79112
+ returnDefault: true,
79113
+ getParent: true,
79114
+ excludeSelf: true
79115
+ }),
79116
+ onChange: function onChange(val) {
79117
+ set("horizontal_position_label", val);
79118
+ },
79119
+ trashButton: get("horizontal_position_label") === ""
79120
+ }), /*#__PURE__*/react.createElement(Tabs_Tabs, {
79121
+ onChange: function onChange(_, val) {
79122
+ return setHoverSettings(val);
79123
+ },
79124
+ style: {
79125
+ marginBottom: "20px",
79126
+ marginTop: get("label_inside", {
79127
+ getParent: true,
79128
+ returnDefault: true
79129
+ }) ? "0" : "20px"
79130
+ },
79131
+ value: hoverSettings,
79132
+ variant: "fullWidth",
79133
+ centered: true
79134
+ }, /*#__PURE__*/react.createElement(Tab_Tab, {
79135
+ label: "Normal",
79136
+ "data-testid": "normal_hover:normal"
79137
+ }), /*#__PURE__*/react.createElement(Tab_Tab, {
79138
+ label: "Hover",
79139
+ "data-testid": "normal_hover:hover"
79140
+ })), /*#__PURE__*/react.createElement("div", {
79141
+ className: "setting-group-title"
79142
+ }, translate_translate("utils.text")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(ColorPicker, {
79143
+ noGradient: true,
79144
+ title: translate_translate("utils.color"),
79145
+ value: label_color[hoverSettings],
79146
+ defaultValue: label_color_parent[hoverSettings],
79147
+ onChange: function onChange(val) {
79148
+ var newValues = label_color;
79149
+ newValues[hoverSettings] = val;
79150
+ set("label_color", newValues);
79151
+ }
79152
+ }), fontSize(), fontFamily(), get("label_inside", {
79153
+ getParent: true,
79154
+ returnDefault: true
79155
+ }) ? null : /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
79156
+ className: "setting-group-title"
79157
+ }, translate_translate("utils.background")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(ColorPicker, {
79158
+ title: translate_translate("utils.color"),
79159
+ value: label_background_color[hoverSettings],
79160
+ defaultValue: label_background_color_parent[hoverSettings],
79161
+ onChange: function onChange(val) {
79162
+ var newValues = label_background_color;
79163
+ newValues[hoverSettings] = val;
79164
+ set("label_background_color", newValues);
79165
+ }
79166
+ }), borderRadius(), margin(), padding(), boxShadow()));
79167
+ }
79168
+
79169
+ /* harmony default export */ var Styling_LabelGroup = (connect(function (state) {
79170
+ return {
79171
+ groups: state.groups,
79172
+ menuButtons: state.menuButtons
79173
+ };
79174
+ }, function (dispatch) {
79175
+ return {
79176
+ _set: function _set() {
79177
+ return dispatch(dataActions_set.apply(void 0, arguments));
79178
+ }
79179
+ };
79180
+ }, function (_ref2, _ref3, _ref4) {
79181
+ var groups = _ref2.groups,
79182
+ menuButtons = _ref2.menuButtons;
79183
+ var _set = _ref3._set;
79184
+
79185
+ var groupId = _ref4.groupId,
79186
+ props = Styling_LabelGroup_objectWithoutProperties(_ref4, ["groupId"]);
79187
+
79188
+ var group = groups[groupId];
79189
+ var menuButton = menuButtons[groupId];
79190
+ return Styling_LabelGroup_objectSpread({
79191
+ set: function set(key, val) {
79192
+ return _set(models.MENU_BUTTON, groupId, key, val);
79193
+ },
79194
+ get: function get(key) {
79195
+ var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
79196
+ _ref5$getParent = _ref5.getParent,
79197
+ getParent = _ref5$getParent === void 0 ? false : _ref5$getParent,
79198
+ _ref5$defToGroup = _ref5.defToGroup,
79199
+ defToGroup = _ref5$defToGroup === void 0 ? false : _ref5$defToGroup,
79200
+ options = Styling_LabelGroup_objectWithoutProperties(_ref5, ["getParent", "defToGroup"]);
79201
+
79202
+ return _get(key, getParent ? group : menuButton, group.menu_style, getParent ? "group" : "menu_button", Styling_LabelGroup_objectSpread({
79203
+ defToGroup: defToGroup && group
79204
+ }, options));
79205
+ }
79206
+ }, props);
79207
+ })(LabelGroup_LabelGroup));
79208
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/MenuButton/Tabs/Styling/ButtonGroup.js
79209
+ function Styling_ButtonGroup_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
79210
+
79211
+ function Styling_ButtonGroup_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { Styling_ButtonGroup_ownKeys(Object(source), true).forEach(function (key) { Styling_ButtonGroup_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { Styling_ButtonGroup_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
79212
+
79213
+ function Styling_ButtonGroup_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
79214
+
79215
+ function Styling_ButtonGroup_extends() { Styling_ButtonGroup_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Styling_ButtonGroup_extends.apply(this, arguments); }
79216
+
79217
+ function Styling_ButtonGroup_slicedToArray(arr, i) { return Styling_ButtonGroup_arrayWithHoles(arr) || Styling_ButtonGroup_iterableToArrayLimit(arr, i) || Styling_ButtonGroup_unsupportedIterableToArray(arr, i) || Styling_ButtonGroup_nonIterableRest(); }
79218
+
79219
+ function Styling_ButtonGroup_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
79220
+
79221
+ function Styling_ButtonGroup_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Styling_ButtonGroup_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Styling_ButtonGroup_arrayLikeToArray(o, minLen); }
79222
+
79223
+ function Styling_ButtonGroup_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
79224
+
79225
+ function Styling_ButtonGroup_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
79226
+
79227
+ function Styling_ButtonGroup_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
79228
+
79229
+ function Styling_ButtonGroup_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Styling_ButtonGroup_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
79230
+
79231
+ function Styling_ButtonGroup_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
79232
+
79233
+
79234
+
79235
+
79236
+
79237
+
79238
+
79239
+
79240
+
79241
+
79242
+
79243
+
79244
+
79245
+
79246
+
79247
+ /* webpack-strip-block:removed */
79248
+
79249
+ function Tabs_Styling_ButtonGroup_ButtonGroup(_ref) {
79250
+ var get = _ref.get,
79251
+ set = _ref.set,
79252
+ groupProps = Styling_ButtonGroup_objectWithoutProperties(_ref, ["get", "set"]);
79253
+
79254
+ var _useState = (0,react.useState)(0),
79255
+ _useState2 = Styling_ButtonGroup_slicedToArray(_useState, 2),
79256
+ hoverSettings = _useState2[0],
79257
+ setHoverSettings = _useState2[1];
79258
+
79259
+ var color = function color() {
79260
+ var colors = get("background_color");
79261
+ var colors_returnValue = get("background_color", {
79262
+ returnSelf: true,
79263
+ returnDefault: true
79264
+ });
79265
+ var colors_parent = get("background_color", {
79266
+ getParent: true,
79267
+ returnSelf: true,
79268
+ returnDefault: true
79269
+ });
79270
+ /* webpack-strip-block:removed */
79271
+
79272
+ return /*#__PURE__*/react.createElement(ColorPicker, {
79273
+ title: translate_translate("utils.color"),
79274
+ value: getFirstColor(colors[hoverSettings]),
79275
+ defaultValue: colors[0] ? getFirstColor(colors_returnValue[hoverSettings]) : getFirstColor(colors_parent[hoverSettings]),
79276
+ onChange: function onChange(val) {
79277
+ var newValues = colors;
79278
+ newValues[hoverSettings] = val;
79279
+ set("background_color", newValues);
79280
+ },
79281
+ className: "style-background-color"
79282
+ });
79283
+ };
79284
+
79285
+ var image = function image() {
79286
+ /* webpack-strip-block:removed */
79287
+ return /*#__PURE__*/react.createElement(UseBackgroundImage, {
79288
+ disabled: true
79289
+ });
79290
+ };
79291
+
79292
+ var borderRadius = function borderRadius() {
79293
+ /* webpack-strip-block:removed */
79294
+ return /*#__PURE__*/react.createElement(DisableSetting, {
79295
+ condition: hoverSettings === 1,
79296
+ premiumTag: true
79297
+ }, /*#__PURE__*/react.createElement(BorderRadius, {
79298
+ value: get("border_radius")[0],
79299
+ defaultValue: get("border_radius", {
79300
+ returnSelf: true,
79301
+ returnDefault: true
79302
+ })[0],
79303
+ disabled: hoverSettings === 1,
79304
+ onChange: function onChange(val) {
79305
+ var newValues = get("border_radius");
79306
+ newValues[0] = val === null ? "unset" : val;
79307
+ set("border_radius", newValues);
79308
+ },
79309
+ className: "style-border-radius"
79310
+ }));
79311
+ };
79312
+
79313
+ var boxShadow = function boxShadow() {
79314
+ return /*#__PURE__*/react.createElement(BoxShadow, {
79315
+ value: get("box_shadow")[hoverSettings] // if box_shadow_enabled is enabled by group/button || if parent is disabled AND button is undefined AND has shadow.
79316
+ ,
79317
+ enabled: get("box_shadow_enabled", {
79318
+ returnSelf: true,
79319
+ returnDefault: true,
79320
+ defToGroup: true,
79321
+ returnParent: true
79322
+ })[hoverSettings],
79323
+ defaultValue: get("box_shadow", {
79324
+ returnSelf: true,
79325
+ excludeSelf: true,
79326
+ returnDefault: true,
79327
+ defToGroup: true
79328
+ })[hoverSettings],
79329
+ trashButton: get("box_shadow_enabled")[hoverSettings],
79330
+ updateValue: "".concat(get("id")).concat(hoverSettings),
79331
+ onChange: function onChange(val, type) {
79332
+ if (type === "enable") {
79333
+ var _newValues = get("box_shadow_enabled");
79334
+
79335
+ _newValues[hoverSettings] = val;
79336
+ set("box_shadow_enabled", _newValues);
79337
+ return;
79338
+ }
79339
+
79340
+ var newValues = get("box_shadow");
79341
+ newValues[hoverSettings] = val;
79342
+ set("box_shadow", newValues);
79343
+ }
79344
+ });
79345
+ };
79346
+
79347
+ return /*#__PURE__*/react.createElement(CollapsibleGroup, Styling_ButtonGroup_extends({
79348
+ title: translate_translate("common.button")
79349
+ }, groupProps, {
79350
+ "data-testid": "group:button"
79351
+ }), /*#__PURE__*/react.createElement(Tabs_Tabs, {
79352
+ onChange: function onChange(_, val) {
79353
+ return setHoverSettings(val);
79354
+ },
79355
+ style: {
79356
+ marginBottom: "20px"
79357
+ },
79358
+ value: hoverSettings,
79359
+ variant: "fullWidth",
79360
+ centered: true,
79361
+ className: "normal-or-hover"
79362
+ }, /*#__PURE__*/react.createElement(Tab_Tab, {
79363
+ label: "Normal",
79364
+ "data-testid": "normal_hover:normal"
79365
+ }), /*#__PURE__*/react.createElement(Tab_Tab, {
79366
+ label: "Hover",
79367
+ "data-testid": "normal_hover:hover"
79368
+ })), /*#__PURE__*/react.createElement("div", {
79369
+ className: "setting-group-title"
79370
+ }, translate_translate("settings.setting_categories.background")), /*#__PURE__*/react.createElement("hr", null), color(), image(), /*#__PURE__*/react.createElement("div", {
79371
+ className: "setting-group-title"
79372
+ }, translate_translate("settings.setting_categories.button_style")), /*#__PURE__*/react.createElement("hr", null), borderRadius(), boxShadow());
79373
+ }
79374
+
79375
+ /* harmony default export */ var Tabs_Styling_ButtonGroup = (connect(function (state) {
79376
+ return {
79377
+ groups: state.groups,
79378
+ menuButtons: state.menuButtons
79379
+ };
79380
+ }, function (dispatch) {
79381
+ return {
79382
+ _set: function _set() {
79383
+ return dispatch(dataActions_set.apply(void 0, arguments));
79384
+ }
79385
+ };
79386
+ }, function (_ref2, _ref3, _ref4) {
79387
+ var groups = _ref2.groups,
79388
+ menuButtons = _ref2.menuButtons;
79389
+ var _set = _ref3._set;
79390
+
79391
+ var groupId = _ref4.groupId,
79392
+ props = Styling_ButtonGroup_objectWithoutProperties(_ref4, ["groupId"]);
79393
+
79394
+ var group = groups[groupId];
79395
+ var menuButton = menuButtons[groupId];
79396
+ return Styling_ButtonGroup_objectSpread({
79397
+ set: function set(key, val) {
79398
+ return _set(models.MENU_BUTTON, groupId, key, val);
79399
+ },
79400
+ get: function get(key) {
79401
+ var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
79402
+ _ref5$getParent = _ref5.getParent,
79403
+ getParent = _ref5$getParent === void 0 ? false : _ref5$getParent,
79404
+ _ref5$defToGroup = _ref5.defToGroup,
79405
+ defToGroup = _ref5$defToGroup === void 0 ? false : _ref5$defToGroup,
79406
+ options = Styling_ButtonGroup_objectWithoutProperties(_ref5, ["getParent", "defToGroup"]);
79407
+
79408
+ return _get(key, getParent ? group : menuButton, group.menu_style, getParent ? "group" : "menu_button", Styling_ButtonGroup_objectSpread({
79409
+ defToGroup: defToGroup && group
79410
+ }, options));
79411
+ }
79412
+ }, props);
79413
+ })(Tabs_Styling_ButtonGroup_ButtonGroup));
79414
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/MenuButton/Tabs/Styling/index.js
79415
+ function Tabs_Styling_slicedToArray(arr, i) { return Tabs_Styling_arrayWithHoles(arr) || Tabs_Styling_iterableToArrayLimit(arr, i) || Tabs_Styling_unsupportedIterableToArray(arr, i) || Tabs_Styling_nonIterableRest(); }
79416
+
79417
+ function Tabs_Styling_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
79418
+
79419
+ function Tabs_Styling_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Tabs_Styling_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Tabs_Styling_arrayLikeToArray(o, minLen); }
79420
+
79421
+ function Tabs_Styling_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
79422
+
79423
+ function Tabs_Styling_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
79424
+
79425
+ function Tabs_Styling_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
79426
+
79427
+
79428
+
79429
+
79430
+
79431
+
79432
+
79433
+
79434
+ function Styling_Styling(_ref) {
79435
+ var groupId = _ref.groupId;
79436
+
79437
+ var _useState = (0,react.useState)("button_style_button"),
79438
+ _useState2 = Tabs_Styling_slicedToArray(_useState, 2),
79439
+ openedGroup = _useState2[0],
79440
+ setOpenedGroup = _useState2[1];
79441
+
79442
+ var openCollapsibleGroup = useSelector(function (store) {
79443
+ return dlv_umd_default()(store, "misc.open_collapsible_group", "button_style_button");
79444
+ }); // Making sure the right container opens during the create button tour
79445
+
79446
+ (0,react.useEffect)(function () {
79447
+ setOpenedGroup(openCollapsibleGroup ? openCollapsibleGroup : "button_style_button");
79448
+ }, [openCollapsibleGroup]);
79449
+ return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(Tabs_Styling_ButtonGroup, {
79450
+ title: translate_translate("common.button"),
79451
+ opened: openedGroup === "button_style_button",
79452
+ onSetIsOpened: function onSetIsOpened(val) {
79453
+ return setOpenedGroup(val ? "button_style_button" : "");
79454
+ },
79455
+ groupId: groupId
79456
+ }), /*#__PURE__*/react.createElement(Tabs_Styling_IconGroup, {
79457
+ opened: openedGroup === "button_style_icon",
79458
+ onSetIsOpened: function onSetIsOpened(val) {
79459
+ return setOpenedGroup(val ? "button_style_icon" : "");
79460
+ },
79461
+ groupId: groupId
79462
+ }), /*#__PURE__*/react.createElement(Styling_LabelGroup, {
79463
+ opened: openedGroup === "button_style_label",
79464
+ onSetIsOpened: function onSetIsOpened(val) {
79465
+ return setOpenedGroup(val ? "button_style_label" : "");
79466
+ },
79467
+ groupId: groupId
79468
+ }));
79469
+ }
79470
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/MenuButton/Tabs/Advanced.js
79471
+ function Tabs_Advanced_slicedToArray(arr, i) { return Tabs_Advanced_arrayWithHoles(arr) || Tabs_Advanced_iterableToArrayLimit(arr, i) || Tabs_Advanced_unsupportedIterableToArray(arr, i) || Tabs_Advanced_nonIterableRest(); }
79472
+
79473
+ function Tabs_Advanced_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
79474
+
79475
+ function Tabs_Advanced_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Tabs_Advanced_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Tabs_Advanced_arrayLikeToArray(o, minLen); }
79476
+
79477
+ function Tabs_Advanced_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
79478
+
79479
+ function Tabs_Advanced_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
79480
+
79481
+ function Tabs_Advanced_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
79482
+
79483
+
79484
+
79485
+
79486
+
79487
+
79488
+
79489
+
79490
+
79491
+
79492
+ /* webpack-strip-block:removed */
79493
+
79494
+ function Advanced_Advanced(_ref) {
79495
+ var groupId = _ref.groupId,
79496
+ menuButtons = _ref.menuButtons,
79497
+ set = _ref.set;
79498
+ var menuButton = menuButtons[groupId];
79499
+
79500
+ var updateButtonSetting = function updateButtonSetting(key, val) {
79501
+ set(models.MENU_BUTTON, groupId, key, val);
79502
+ };
79503
+
79504
+ var _useState = (0,react.useState)("customClassId"),
79505
+ _useState2 = Tabs_Advanced_slicedToArray(_useState, 2),
79506
+ openedGroup = _useState2[0],
79507
+ setOpenedGroup = _useState2[1];
79508
+
79509
+ var settings = {
79510
+ styling: {
79511
+ "class": function _class() {
79512
+ /* webpack-strip-block:removed */
79513
+ return /*#__PURE__*/react.createElement(DisableSetting, {
79514
+ onClick: function onClick(e) {
79515
+ app.showPremiumDialog(e.currentTarget, translate_translate("settings.custom_class.pro_description"));
79516
+ }
79517
+ }, /*#__PURE__*/react.createElement(esm_TextField_TextField, {
79518
+ inputProps: {
79519
+ "data-testid": "setting:custom-class"
79520
+ },
79521
+ variant: "outlined",
79522
+ label: translate_translate("settings.custom_class.title"),
79523
+ fullWidth: true,
79524
+ disabled: true,
79525
+ style: {
79526
+ marginBottom: "10px"
79527
+ },
79528
+ InputProps: {
79529
+ endAdornment: /*#__PURE__*/react.createElement(PremiumTag, null)
79530
+ }
79531
+ }));
79532
+ },
79533
+ id: function id() {
79534
+ /* webpack-strip-block:removed */
79535
+ return /*#__PURE__*/react.createElement(DisableSetting, {
79536
+ onClick: function onClick(e) {
79537
+ app.showPremiumDialog(e.currentTarget, translate_translate("settings.custom_id.pro_description"));
79538
+ }
79539
+ }, /*#__PURE__*/react.createElement(esm_TextField_TextField, {
79540
+ inputProps: {
79541
+ "data-testid": "setting:custom-id"
79542
+ },
79543
+ variant: "outlined",
79544
+ label: translate_translate("settings.custom_id.title"),
79545
+ fullWidth: true,
79546
+ disabled: true,
79547
+ style: {
79548
+ marginBottom: "10px"
79549
+ },
79550
+ InputProps: {
79551
+ endAdornment: /*#__PURE__*/react.createElement(PremiumTag, null)
79552
+ }
79553
+ }));
79554
+ },
79555
+ editor: function editor() {
79556
+ /* webpack-strip-block:removed */
79557
+ return null;
79558
+ }
79559
+ }
79560
+ };
79561
+ return /*#__PURE__*/react.createElement("div", null, /*#__PURE__*/react.createElement(CollapsibleGroup, {
79562
+ title: translate_translate("settings.custom_id.title") + " & " + translate_translate("settings.custom_class.title"),
79563
+ "data-testid": "group:custom-class-id",
79564
+ icon: "far fa-clock",
79565
+ opened: openedGroup === "customClassId",
79566
+ onSetIsOpened: function onSetIsOpened(val) {
79567
+ return setOpenedGroup(val ? "customClassId" : "");
79568
+ }
79569
+ }, /*#__PURE__*/react.createElement("div", {
79570
+ className: "setting-group-title"
79571
+ }, translate_translate("settings.custom_class.title")), /*#__PURE__*/react.createElement("hr", null), settings.styling["class"](), /*#__PURE__*/react.createElement("div", {
79572
+ className: "setting-group-title"
79573
+ }, translate_translate("settings.custom_id.title")), /*#__PURE__*/react.createElement("hr", null), settings.styling.id(), settings.styling.editor()));
79574
+ }
79575
+
79576
+ /* harmony default export */ var MenuButton_Tabs_Advanced = (connect(function (state) {
79577
+ return {
79578
+ menuButtons: state.menuButtons,
79579
+ time_schedules: state.timeSchedules,
79580
+ page_rules: state.pageRules,
79581
+ groups: state.groups
79582
+ };
79583
+ }, function (dispatch) {
79584
+ return {
79585
+ /* webpack-strip-block:removed */
79586
+ set: function set() {
79587
+ return dispatch(dataActions_set.apply(void 0, arguments));
79588
+ }
79589
+ };
79590
+ })(Advanced_Advanced));
79591
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/MenuButton/MenuButton.js
79592
+
79593
+
79594
+
79595
+
79596
+
79597
+
79598
+
79599
+
79600
+
79601
+ function MenuButton(_ref) {
79602
+ var match = _ref.match,
79603
+ groups = _ref.groups;
79604
+ var group = dlv_umd_default()(groups, match.params.id, false);
79605
+ var tab = ["general", "style", "advanced"].includes(dlv_umd_default()(match.params, "tab", "general")) ? dlv_umd_default()(match.params, "tab", "general") : "general";
79606
+
79607
+ if (!group) {
79608
+ return /*#__PURE__*/react.createElement(ItemNotFound, {
79609
+ isButtonGroupNotFound: true
79610
+ });
79611
+ }
79612
+
79613
+ return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(MenuButton_Header_Header, {
79614
+ group: group,
79615
+ tab: tab
79616
+ }), tab === "general" && /*#__PURE__*/react.createElement(MenuButton_Tabs_Options, {
79617
+ groupId: group.id
79618
+ }), tab === "style" && /*#__PURE__*/react.createElement(Styling_Styling, {
79619
+ groupId: group.id
79620
+ }), tab === "advanced" && /*#__PURE__*/react.createElement(MenuButton_Tabs_Advanced, {
79621
+ groupId: group.id
79622
+ }));
79623
+ }
79624
+
79625
+ /* harmony default export */ var MenuButton_MenuButton = (connect(function (state) {
79626
+ return {
79627
+ groups: state.groups
79628
+ };
79629
+ })(MenuButton));
79630
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/Position/Position.js
79631
  function Position_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
79632
 
79923
  }
79924
  }), unitButtons()))));
79925
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79926
  ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Group/Tabs/Options.js
79927
+ function Group_Tabs_Options_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79928
 
79929
+ function Group_Tabs_Options_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { Group_Tabs_Options_ownKeys(Object(source), true).forEach(function (key) { Group_Tabs_Options_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { Group_Tabs_Options_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
79930
 
79931
+ function Group_Tabs_Options_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
79932
 
79933
+ function Group_Tabs_Options_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Group_Tabs_Options_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
79934
 
79935
+ function Group_Tabs_Options_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
79936
 
79937
+ function Group_Tabs_Options_slicedToArray(arr, i) { return Group_Tabs_Options_arrayWithHoles(arr) || Group_Tabs_Options_iterableToArrayLimit(arr, i) || Group_Tabs_Options_unsupportedIterableToArray(arr, i) || Group_Tabs_Options_nonIterableRest(); }
79938
 
79939
+ function Group_Tabs_Options_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
79940
 
79941
+ function Group_Tabs_Options_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Group_Tabs_Options_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Group_Tabs_Options_arrayLikeToArray(o, minLen); }
79942
 
79943
+ function Group_Tabs_Options_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
79944
 
79945
+ function Group_Tabs_Options_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
79946
 
79947
+ function Group_Tabs_Options_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
79948
 
79949
 
79950
 
79957
 
79958
 
79959
 
79960
+ function Tabs_Options_Options(_ref) {
79961
  var set = _ref.set,
79962
  get = _ref.get;
79963
 
79964
  var _useState = (0,react.useState)("group_general_general"),
79965
+ _useState2 = Group_Tabs_Options_slicedToArray(_useState, 2),
79966
  openedGroup = _useState2[0],
79967
  setOpenedGroup = _useState2[1];
79968
 
79982
  "data-testid": "group:general"
79983
  }, /*#__PURE__*/react.createElement("div", {
79984
  className: "setting-group-title"
 
 
 
 
 
 
 
 
 
79985
  }, translate_translate("settings.show_mobile_desktop.device_visibility")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(Visibility, {
79986
  mobile: get("show_mobile") == true,
79987
  desktop: get("show_desktop") == true,
79988
  onChange: function onChange(type, val) {
79989
  return set(type, val);
79990
  }
79991
+ }), /*#__PURE__*/react.createElement("div", {
79992
+ className: "setting-group-title"
79993
+ }, translate_translate("settings.menu_position.title")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(Position, {
 
 
 
 
 
79994
  position: "horizontal",
79995
  value: get("horizontal"),
79996
  onChange: function onChange(val) {
80002
  onChange: function onChange(val) {
80003
  return set("vertical", val);
80004
  }
80005
+ })));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80006
  }
80007
 
80008
  /* harmony default export */ var Group_Tabs_Options = (connect(function (state) {
80020
  var _set2 = _ref3.set;
80021
 
80022
  var groupId = _ref4.groupId,
80023
+ props = Group_Tabs_Options_objectWithoutProperties(_ref4, ["groupId"]);
80024
 
80025
+ return Group_Tabs_Options_objectSpread(Group_Tabs_Options_objectSpread({
80026
  set: function set(obj, val) {
80027
  return _set2(models.GROUP, groupId, obj, val);
80028
  }
80033
  return dlv_umd_default()(groups[groupId], key, returnDefault ? _def("group", key, groups[groupId].menu_style) : "");
80034
  }
80035
  });
80036
+ })(Tabs_Options_Options));
80037
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Group/Header/Header.js
80038
+ function Group_Header_Header_extends() { Group_Header_Header_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Group_Header_Header_extends.apply(this, arguments); }
80039
 
80040
 
80041
 
80046
 
80047
 
80048
 
80049
+
80050
+ function Header_Header_currentTab(tab) {
80051
+ if (tab === "advanced") {
80052
+ return 2;
80053
+ } else if (tab === "style") {
80054
+ return 1;
80055
+ } else {
80056
+ return 0;
80057
+ }
80058
+ }
80059
+
80060
+ function Header_Header_Header(_ref) {
80061
  var group = _ref.group,
80062
  tab = _ref.tab,
80063
  history = _ref.history;
80064
 
80065
+ var LinkTab = function LinkTab(props) {
80066
+ var url = "/group/".concat(group.id, "/").concat(props.page);
80067
+ return /*#__PURE__*/react.createElement(Tab_Tab, Group_Header_Header_extends({
80068
+ component: "a",
80069
+ style: tab === props.page ? {
80070
+ color: "#f08419"
80071
+ } : null,
80072
+ href: "#".concat(url),
80073
+ onClick: function onClick() {
80074
+ if (history.location.pathname !== url) {
80075
+ history.push(url);
80076
+ }
80077
+ }
80078
+ }, props));
80079
  };
80080
 
80081
  return /*#__PURE__*/react.createElement("div", {
80096
  }, translate_translate("bar.breadcrumb.home")), /*#__PURE__*/react.createElement("i", {
80097
  className: "fas fa-chevron-right"
80098
  }))), /*#__PURE__*/react.createElement(BreadcrumbSelect_BreadcrumbSelect, {
80099
+ group: group,
80100
+ tab: tab
80101
  })), /*#__PURE__*/react.createElement(RandomTip_RandomTip, null), /*#__PURE__*/react.createElement("div", {
80102
  className: "mdc-card top-header"
80103
  }, /*#__PURE__*/react.createElement(Tabs_Tabs, {
80104
+ value: Header_Header_currentTab(tab),
80105
  variant: "fullWidth",
80106
  indicatorColor: "secondary",
80107
  textColor: "secondary",
80108
  className: "tab-bordered"
80109
+ }, /*#__PURE__*/react.createElement(LinkTab, {
 
 
 
 
 
 
 
 
 
80110
  label: translate_translate("settings.setting_categories.general"),
 
 
80111
  page: "general",
80112
  "data-testid": "general-tab",
80113
  icon: /*#__PURE__*/react.createElement("i", {
80114
  className: "fas fa-wrench"
80115
  })
80116
+ }), /*#__PURE__*/react.createElement(LinkTab, {
 
 
 
 
 
 
 
 
 
80117
  label: translate_translate("utils.style"),
 
 
80118
  page: "style",
80119
  "data-testid": "style-tab",
80120
  icon: /*#__PURE__*/react.createElement("i", {
80121
  className: "fas fa-paint-brush"
80122
  })
80123
+ }), /*#__PURE__*/react.createElement(LinkTab, {
 
 
 
 
 
 
 
 
 
80124
  label: translate_translate("utils.advanced"),
 
 
80125
  page: "advanced",
80126
  "data-testid": "advanced-tab",
80127
  icon: /*#__PURE__*/react.createElement("i", {
80130
  }))));
80131
  }
80132
 
80133
+ /* harmony default export */ var Group_Header_Header = (withRouter(Header_Header_Header));
80134
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Dialogs/ImagePickerDialog/ImagePickerDialog.js
80135
  function ImagePickerDialog_slicedToArray(arr, i) { return ImagePickerDialog_arrayWithHoles(arr) || ImagePickerDialog_iterableToArrayLimit(arr, i) || ImagePickerDialog_unsupportedIterableToArray(arr, i) || ImagePickerDialog_nonIterableRest(); }
80136
 
80267
  return /*#__PURE__*/React.createElement(React.Fragment, null);
80268
  }
80269
  ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Group/Tabs/Styling/IconGroup.js
80270
+ function Tabs_Styling_IconGroup_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
80271
 
80272
+ function Tabs_Styling_IconGroup_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { Tabs_Styling_IconGroup_ownKeys(Object(source), true).forEach(function (key) { Tabs_Styling_IconGroup_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { Tabs_Styling_IconGroup_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
80273
 
80274
+ function Tabs_Styling_IconGroup_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
80275
 
80276
+ function Tabs_Styling_IconGroup_extends() { Tabs_Styling_IconGroup_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Tabs_Styling_IconGroup_extends.apply(this, arguments); }
80277
 
80278
+ function Tabs_Styling_IconGroup_slicedToArray(arr, i) { return Tabs_Styling_IconGroup_arrayWithHoles(arr) || Tabs_Styling_IconGroup_iterableToArrayLimit(arr, i) || Tabs_Styling_IconGroup_unsupportedIterableToArray(arr, i) || Tabs_Styling_IconGroup_nonIterableRest(); }
80279
 
80280
+ function Tabs_Styling_IconGroup_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
80281
 
80282
+ function Tabs_Styling_IconGroup_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Tabs_Styling_IconGroup_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Tabs_Styling_IconGroup_arrayLikeToArray(o, minLen); }
80283
 
80284
+ function Tabs_Styling_IconGroup_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
80285
 
80286
+ function Tabs_Styling_IconGroup_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
80287
 
80288
+ function Tabs_Styling_IconGroup_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
80289
 
80290
+ function Tabs_Styling_IconGroup_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Tabs_Styling_IconGroup_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
80291
 
80292
+ function Tabs_Styling_IconGroup_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
80293
 
80294
  /* global app */
80295
 
80312
  var defs = _ref.defs,
80313
  set = _ref.set,
80314
  get = _ref.get,
80315
+ groupProps = Tabs_Styling_IconGroup_objectWithoutProperties(_ref, ["defs", "set", "get"]);
80316
 
80317
  var _useState = (0,react.useState)(0),
80318
+ _useState2 = Tabs_Styling_IconGroup_slicedToArray(_useState, 2),
80319
  hoverSettings = _useState2[0],
80320
  setHoverSettings = _useState2[1];
80321
 
80387
  }));
80388
  };
80389
 
80390
+ return /*#__PURE__*/react.createElement(CollapsibleGroup, Tabs_Styling_IconGroup_extends({
80391
  title: translate_translate("utils.icon"),
80392
  "data-testid": "group:icon"
80393
  }, groupProps), iconType(), get("icon_type", {
80412
  })), settings(), sliders()));
80413
  }
80414
 
80415
+ /* harmony default export */ var Group_Tabs_Styling_IconGroup = (connect(function (state) {
80416
  return {
80417
  _groups: state.groups
80418
  };
80427
  var _set = _ref3._set;
80428
 
80429
  var groupId = _ref4.groupId,
80430
+ ownProps = Tabs_Styling_IconGroup_objectWithoutProperties(_ref4, ["groupId"]);
80431
 
80432
  var group = _groups[groupId];
80433
+ return Tabs_Styling_IconGroup_objectSpread({
80434
  defs: function defs(key) {
80435
  return _defs("group", key, group.menu_style, formats.normal_hover.parse(group[key]).map(function (val) {
80436
  return val === "" ? undefined : val;
80444
  },
80445
  get: function get(key) {
80446
  var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
80447
+ options = Tabs_Styling_IconGroup_extends({}, _ref5);
80448
 
80449
+ return _get(key, group, group.menu_style, "group", Tabs_Styling_IconGroup_objectSpread({}, options));
80450
  }
80451
  }, ownProps);
80452
  })(_IconGroup));
80453
  ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Group/Tabs/Styling/ButtonGroup.js
80454
+ function Tabs_Styling_ButtonGroup_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
80455
 
80456
+ function Tabs_Styling_ButtonGroup_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { Tabs_Styling_ButtonGroup_ownKeys(Object(source), true).forEach(function (key) { Tabs_Styling_ButtonGroup_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { Tabs_Styling_ButtonGroup_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
80457
 
80458
+ function Tabs_Styling_ButtonGroup_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
80459
 
80460
+ function Tabs_Styling_ButtonGroup_extends() { Tabs_Styling_ButtonGroup_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Tabs_Styling_ButtonGroup_extends.apply(this, arguments); }
80461
 
80462
+ function Tabs_Styling_ButtonGroup_slicedToArray(arr, i) { return Tabs_Styling_ButtonGroup_arrayWithHoles(arr) || Tabs_Styling_ButtonGroup_iterableToArrayLimit(arr, i) || Tabs_Styling_ButtonGroup_unsupportedIterableToArray(arr, i) || Tabs_Styling_ButtonGroup_nonIterableRest(); }
80463
 
80464
+ function Tabs_Styling_ButtonGroup_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
80465
 
80466
+ function Tabs_Styling_ButtonGroup_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Tabs_Styling_ButtonGroup_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Tabs_Styling_ButtonGroup_arrayLikeToArray(o, minLen); }
80467
 
80468
+ function Tabs_Styling_ButtonGroup_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
80469
 
80470
+ function Tabs_Styling_ButtonGroup_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
80471
 
80472
+ function Tabs_Styling_ButtonGroup_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
80473
 
80474
+ function Tabs_Styling_ButtonGroup_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Tabs_Styling_ButtonGroup_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
80475
 
80476
+ function Tabs_Styling_ButtonGroup_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
80477
 
80478
 
80479
 
80492
 
80493
 
80494
 
80495
+ function Group_Tabs_Styling_ButtonGroup_ButtonGroup(_ref) {
80496
  var singleButton = _ref.singleButton,
80497
  get = _ref.get,
80498
  def = _ref.def,
80499
  set = _ref.set,
80500
+ groupProps = Tabs_Styling_ButtonGroup_objectWithoutProperties(_ref, ["singleButton", "get", "def", "set"]);
80501
 
80502
  var _useState = (0,react.useState)(0),
80503
+ _useState2 = Tabs_Styling_ButtonGroup_slicedToArray(_useState, 2),
80504
  hoverSettings = _useState2[0],
80505
  setHoverSettings = _useState2[1];
80506
 
80617
  }));
80618
  };
80619
 
80620
+ return /*#__PURE__*/react.createElement(CollapsibleGroup, Tabs_Styling_ButtonGroup_extends({
80621
  title: translate_translate("common.button")
80622
  }, groupProps, {
80623
  "data-testid": "group:button"
80646
  }, translate_translate("settings.setting_categories.button_style")), /*#__PURE__*/react.createElement("hr", null), borderRadius(), hoverSettings === 0 && buttonSpacing(), boxShadow());
80647
  }
80648
 
80649
+ /* harmony default export */ var Group_Tabs_Styling_ButtonGroup = (connect(function (state) {
80650
  return {
80651
  groups: state.groups
80652
  };
80661
  var _set = _ref3._set;
80662
 
80663
  var groupId = _ref4.groupId,
80664
+ ownProps = Tabs_Styling_ButtonGroup_objectWithoutProperties(_ref4, ["groupId"]);
80665
 
80666
  var group = groups[groupId];
80667
+ return Tabs_Styling_ButtonGroup_objectSpread({
80668
  singleButton: group.children.length === 1,
80669
  set: function set(key, val) {
80670
  return _set(models.GROUP, groupId, key, val);
80671
  },
80672
  get: function get(key) {
80673
  var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
80674
+ options = Tabs_Styling_ButtonGroup_extends({}, _ref5);
80675
 
80676
+ return _get(key, group, group.menu_style, "group", Tabs_Styling_ButtonGroup_objectSpread({}, options));
80677
  },
80678
  def: function def(key) {
80679
  return _def("group", key, group.menu_style);
80680
  }
80681
  }, ownProps);
80682
+ })(Group_Tabs_Styling_ButtonGroup_ButtonGroup));
80683
  ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Group/Tabs/Styling/LabelGroup.js
80684
+ function Tabs_Styling_LabelGroup_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
80685
 
80686
+ function Tabs_Styling_LabelGroup_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { Tabs_Styling_LabelGroup_ownKeys(Object(source), true).forEach(function (key) { Tabs_Styling_LabelGroup_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { Tabs_Styling_LabelGroup_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
80687
 
80688
+ function Tabs_Styling_LabelGroup_extends() { Tabs_Styling_LabelGroup_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Tabs_Styling_LabelGroup_extends.apply(this, arguments); }
80689
 
80690
+ function Tabs_Styling_LabelGroup_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
80691
 
80692
+ function Tabs_Styling_LabelGroup_slicedToArray(arr, i) { return Tabs_Styling_LabelGroup_arrayWithHoles(arr) || Tabs_Styling_LabelGroup_iterableToArrayLimit(arr, i) || Tabs_Styling_LabelGroup_unsupportedIterableToArray(arr, i) || Tabs_Styling_LabelGroup_nonIterableRest(); }
80693
 
80694
+ function Tabs_Styling_LabelGroup_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
80695
 
80696
+ function Tabs_Styling_LabelGroup_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Tabs_Styling_LabelGroup_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Tabs_Styling_LabelGroup_arrayLikeToArray(o, minLen); }
80697
 
80698
+ function Tabs_Styling_LabelGroup_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
80699
 
80700
+ function Tabs_Styling_LabelGroup_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
80701
 
80702
+ function Tabs_Styling_LabelGroup_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
80703
 
80704
+ function Tabs_Styling_LabelGroup_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Tabs_Styling_LabelGroup_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
80705
 
80706
+ function Tabs_Styling_LabelGroup_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
80707
 
80708
 
80709
 
80726
 
80727
 
80728
 
80729
+ function Styling_LabelGroup_LabelGroup(_ref) {
80730
  var defs = _ref.defs,
80731
  set = _ref.set,
80732
  get = _ref.get,
80733
+ groupProps = Tabs_Styling_LabelGroup_objectWithoutProperties(_ref, ["defs", "set", "get"]);
80734
 
80735
  var _useState = (0,react.useState)(0),
80736
+ _useState2 = Tabs_Styling_LabelGroup_slicedToArray(_useState, 2),
80737
  hoverSettings = _useState2[0],
80738
  setHoverSettings = _useState2[1];
80739
 
80868
  returnSelf: true,
80869
  returnDefault: true
80870
  })[hoverSettings],
80871
+ defaultValue: get("label_box_shadow", Tabs_Styling_LabelGroup_defineProperty({
80872
  returnSelf: true,
80873
  excludeSelf: true,
80874
  returnDefault: true
80938
  var label_color = get("label_color");
80939
  var label_background_color = get("label_background_color");
80940
  var label_border_radius = get("label_border_radius");
80941
+ return /*#__PURE__*/react.createElement(CollapsibleGroup, Tabs_Styling_LabelGroup_extends({
80942
  title: translate_translate("settings.label.title"),
80943
  "data-testid": "group:label"
80944
  }, groupProps), /*#__PURE__*/react.createElement("div", {
81027
  }), borderRadius(), margin(), padding(), boxShadow()));
81028
  }
81029
 
81030
+ /* harmony default export */ var Tabs_Styling_LabelGroup = (connect(function (state) {
81031
  return {
81032
  _groups: state.groups
81033
  };
81042
  var _set = _ref3._set;
81043
 
81044
  var groupId = _ref4.groupId,
81045
+ ownProps = Tabs_Styling_LabelGroup_objectWithoutProperties(_ref4, ["groupId"]);
81046
 
81047
  var group = _groups[groupId];
81048
+ return Tabs_Styling_LabelGroup_objectSpread({
81049
  defs: function defs(key) {
81050
  return _defs("group", key, group.menu_style, formats.normal_hover.parse(group[key]).map(function (val) {
81051
  return val === "" ? undefined : val;
81059
  },
81060
  get: function get(key) {
81061
  var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
81062
+ options = Tabs_Styling_LabelGroup_extends({}, _ref5);
81063
 
81064
+ return _get(key, group, group.menu_style, "group", Tabs_Styling_LabelGroup_objectSpread({}, options));
81065
  }
81066
  }, ownProps);
81067
+ })(Styling_LabelGroup_LabelGroup));
81068
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Group/Tabs/Styling/MenuStyle.js
81069
+ function MenuStyle_extends() { MenuStyle_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return MenuStyle_extends.apply(this, arguments); }
81070
+
81071
+ function MenuStyle_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
81072
+
81073
+ function MenuStyle_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { MenuStyle_ownKeys(Object(source), true).forEach(function (key) { MenuStyle_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { MenuStyle_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
81074
+
81075
+ function MenuStyle_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
81076
+
81077
+ function MenuStyle_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = MenuStyle_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
81078
+
81079
+ function MenuStyle_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
81080
+
81081
+ function MenuStyle_slicedToArray(arr, i) { return MenuStyle_arrayWithHoles(arr) || MenuStyle_iterableToArrayLimit(arr, i) || MenuStyle_unsupportedIterableToArray(arr, i) || MenuStyle_nonIterableRest(); }
81082
+
81083
+ function MenuStyle_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
81084
+
81085
+ function MenuStyle_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return MenuStyle_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return MenuStyle_arrayLikeToArray(o, minLen); }
81086
+
81087
+ function MenuStyle_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
81088
+
81089
+ function MenuStyle_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
81090
+
81091
+ function MenuStyle_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
81092
+
81093
+
81094
+
81095
+
81096
+
81097
+
81098
+
81099
+
81100
+
81101
+
81102
+
81103
+
81104
+
81105
+ function MenuStyle(_ref) {
81106
+ var get = _ref.get,
81107
+ set = _ref.set;
81108
+ var inputLabel = (0,react.useRef)(null);
81109
+
81110
+ var _useState = (0,react.useState)(0),
81111
+ _useState2 = MenuStyle_slicedToArray(_useState, 2),
81112
+ labelWidth = _useState2[0],
81113
+ setLabelWidth = _useState2[1];
81114
+
81115
+ (0,react.useEffect)(function () {
81116
+ setLabelWidth(inputLabel.current.offsetWidth);
81117
+ }, []);
81118
+
81119
+ var options = function options() {
81120
+ /* webpack-strip-block:removed */
81121
+ return [/*#__PURE__*/react.createElement(MenuItem_MenuItem, {
81122
+ value: "default",
81123
+ key: 0
81124
+ }, translate_translate("settings.menu_style.styles.default")), /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
81125
+ value: "square",
81126
+ key: 1
81127
+ }, translate_translate("settings.menu_style.styles.square")), /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
81128
+ value: "rectangle",
81129
+ key: 2
81130
+ }, translate_translate("settings.menu_style.styles.rectangle")), /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
81131
+ value: "text",
81132
+ key: 3,
81133
+ style: {
81134
+ opacity: 0.5
81135
+ }
81136
+ }, translate_translate("settings.menu_style.styles.text"), " ", /*#__PURE__*/react.createElement(PremiumTag, null)), /*#__PURE__*/react.createElement(MenuItem_MenuItem, {
81137
+ value: "text-icon",
81138
+ key: 4,
81139
+ style: {
81140
+ opacity: 0.5
81141
+ }
81142
+ }, translate_translate("settings.menu_style.styles.texticon"), " ", /*#__PURE__*/react.createElement(PremiumTag, null))];
81143
+ };
81144
+
81145
+ return /*#__PURE__*/react.createElement(CollapsibleGroup, {
81146
+ opened: true,
81147
+ onSetIsOpened: function onSetIsOpened() {},
81148
+ title: translate_translate("settings.menu_style.title")
81149
+ }, /*#__PURE__*/react.createElement(FormControl_FormControl, {
81150
+ variant: "outlined",
81151
+ fullWidth: true
81152
+ }, /*#__PURE__*/react.createElement(InputLabel_InputLabel, {
81153
+ id: "group-style",
81154
+ ref: inputLabel
81155
+ }, translate_translate("common.type")), /*#__PURE__*/react.createElement(Select_Select, {
81156
+ labelId: "group-style",
81157
+ id: "group-style",
81158
+ value: get("menu_style", {
81159
+ returnDefault: true
81160
+ }),
81161
+ onChange: function onChange(e) {
81162
+ /* webpack-strip-block:removed */
81163
+ if (e.target.value === "text" || e.target.value === "text-icon") {
81164
+ app.showPremiumDialog(e.currentTarget, translate_translate("premium.menu_styles." + e.target.value));
81165
+ return;
81166
+ }
81167
+
81168
+ set("menu_style", e.target.value);
81169
+ },
81170
+ labelWidth: labelWidth,
81171
+ inputProps: {
81172
+ "data-testid": "setting:menu-style"
81173
+ }
81174
+ }, options())));
81175
+ }
81176
+
81177
+ /* harmony default export */ var Styling_MenuStyle = (connect(function (state) {
81178
+ return {
81179
+ groups: state.groups
81180
+ };
81181
+ }, function (dispatch) {
81182
+ return {
81183
+ _set: function _set() {
81184
+ return dispatch(dataActions_set.apply(void 0, arguments));
81185
+ }
81186
+ };
81187
+ }, function (_ref2, _ref3, _ref4) {
81188
+ var groups = _ref2.groups;
81189
+ var _set = _ref3._set;
81190
+
81191
+ var groupId = _ref4.groupId,
81192
+ ownProps = MenuStyle_objectWithoutProperties(_ref4, ["groupId"]);
81193
+
81194
+ var group = groups[groupId];
81195
+ return MenuStyle_objectSpread({
81196
+ singleButton: group.children.length === 1,
81197
+ set: function set(key, val) {
81198
+ return _set(models.GROUP, groupId, key, val);
81199
+ },
81200
+ get: function get(key) {
81201
+ var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
81202
+ options = MenuStyle_extends({}, _ref5);
81203
+
81204
+ return _get(key, group, group.menu_style, "group", MenuStyle_objectSpread({}, options));
81205
+ },
81206
+ def: function def(key) {
81207
+ return _def("group", key, group.menu_style);
81208
+ }
81209
+ }, ownProps);
81210
+ })(MenuStyle));
81211
  ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Group/Tabs/Styling/index.js
81212
+ function Group_Tabs_Styling_slicedToArray(arr, i) { return Group_Tabs_Styling_arrayWithHoles(arr) || Group_Tabs_Styling_iterableToArrayLimit(arr, i) || Group_Tabs_Styling_unsupportedIterableToArray(arr, i) || Group_Tabs_Styling_nonIterableRest(); }
81213
 
81214
+ function Group_Tabs_Styling_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
81215
 
81216
+ function Group_Tabs_Styling_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Group_Tabs_Styling_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Group_Tabs_Styling_arrayLikeToArray(o, minLen); }
81217
 
81218
+ function Group_Tabs_Styling_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
81219
 
81220
+ function Group_Tabs_Styling_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
81221
 
81222
+ function Group_Tabs_Styling_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
81223
 
81224
 
81225
 
81227
 
81228
 
81229
 
81230
+
81231
+ function Tabs_Styling_Styling(_ref) {
81232
  var groupId = _ref.groupId;
81233
 
81234
  var _useState = (0,react.useState)("group_style_button"),
81235
+ _useState2 = Group_Tabs_Styling_slicedToArray(_useState, 2),
81236
  openedGroup = _useState2[0],
81237
  setOpenedGroup = _useState2[1];
81238
 
81243
  (0,react.useEffect)(function () {
81244
  setOpenedGroup(openCollapsibleGroup ? openCollapsibleGroup : "group_style_button");
81245
  }, [openCollapsibleGroup]);
81246
+ return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(Styling_MenuStyle, {
81247
+ groupId: groupId
81248
+ }), /*#__PURE__*/react.createElement(Group_Tabs_Styling_ButtonGroup, {
81249
  opened: openedGroup === "group_style_button",
81250
  onSetIsOpened: function onSetIsOpened(val) {
81251
  return setOpenedGroup(val ? "group_style_button" : "");
81252
  },
81253
  groupId: groupId
81254
+ }), /*#__PURE__*/react.createElement(Group_Tabs_Styling_IconGroup, {
81255
  opened: openedGroup === "group_style_icon",
81256
  onSetIsOpened: function onSetIsOpened(val) {
81257
  return setOpenedGroup(val ? "group_style_icon" : "");
81258
  },
81259
  groupId: groupId
81260
+ }), /*#__PURE__*/react.createElement(Tabs_Styling_LabelGroup, {
81261
  opened: openedGroup === "group_style_label",
81262
  onSetIsOpened: function onSetIsOpened(val) {
81263
  return setOpenedGroup(val ? "group_style_label" : "");
82073
 
82074
  function Advanced_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
82075
 
82076
+ function Group_Tabs_Advanced_slicedToArray(arr, i) { return Group_Tabs_Advanced_arrayWithHoles(arr) || Group_Tabs_Advanced_iterableToArrayLimit(arr, i) || Group_Tabs_Advanced_unsupportedIterableToArray(arr, i) || Group_Tabs_Advanced_nonIterableRest(); }
82077
 
82078
+ function Group_Tabs_Advanced_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
82079
 
82080
+ function Group_Tabs_Advanced_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Group_Tabs_Advanced_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Group_Tabs_Advanced_arrayLikeToArray(o, minLen); }
82081
 
82082
+ function Group_Tabs_Advanced_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
82083
 
82084
+ function Group_Tabs_Advanced_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
82085
 
82086
+ function Group_Tabs_Advanced_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
82087
 
82088
 
82089
 
82103
 
82104
  /* webpack-strip-block:removed */
82105
 
82106
+ function Tabs_Advanced_Advanced(_ref) {
82107
  var set = _ref.set,
82108
  get = _ref.get,
82109
  singleButton = _ref.singleButton;
82110
 
82111
  var _useState = (0,react.useState)("animation"),
82112
+ _useState2 = Group_Tabs_Advanced_slicedToArray(_useState, 2),
82113
  openedGroup = _useState2[0],
82114
  setOpenedGroup = _useState2[1];
82115
 
82327
  },
82328
  singleButton: groups[groupId].children.length < 2
82329
  }, dispatchProps), stateProps), props);
82330
+ })(Tabs_Advanced_Advanced));
82331
  ;// CONCATENATED MODULE: ./src/js/dashboard/Pages/Group/Group.js
82332
 
82333
 
82338
 
82339
 
82340
 
 
 
 
 
 
 
 
 
 
 
 
82341
  function Group(_ref) {
82342
  var match = _ref.match,
82343
+ groups = _ref.groups;
 
 
82344
  var group = dlv_umd_default()(groups, match.params.id, false);
82345
+ var tab = ["general", "style", "advanced"].includes(dlv_umd_default()(match.params, "tab", "general")) ? dlv_umd_default()(match.params, "tab", "general") : "general";
82346
 
82347
  if (!group) {
82348
  return /*#__PURE__*/react.createElement(ItemNotFound, {
82350
  });
82351
  }
82352
 
82353
+ return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(Group_Header_Header, {
82354
  group: group,
82355
+ tab: tab
82356
+ }), tab === "general" && /*#__PURE__*/react.createElement(Group_Tabs_Options, {
 
 
82357
  groupId: group.id
82358
+ }), tab === "style" && /*#__PURE__*/react.createElement(Tabs_Styling_Styling, {
82359
  groupId: group.id
82360
+ }), tab === "advanced" && /*#__PURE__*/react.createElement(Group_Tabs_Advanced, {
82361
  groupId: group.id
82362
  }));
82363
  }
82364
 
82365
  /* harmony default export */ var Group_Group = (connect(function (state) {
82366
  return {
82367
+ groups: state.groups
 
 
 
 
 
 
 
 
 
 
82368
  };
82369
  })(Group));
82370
  ;// CONCATENATED MODULE: ./src/js/dashboard/Router.js
82376
 
82377
 
82378
 
82379
+
82380
  function Router_Router(_ref) {
82381
  var scrollBar = _ref.scrollBar,
82382
  isLoading = _ref.isLoading;
82405
  }), /*#__PURE__*/react.createElement(Route, {
82406
  path: "/group/:groupId/button/:id",
82407
  component: Pages_Button_Button
82408
+ }), /*#__PURE__*/react.createElement(Route, {
82409
+ path: "/group/:id/menuButton/:tab",
82410
+ component: MenuButton_MenuButton
82411
+ }), /*#__PURE__*/react.createElement(Route, {
82412
+ path: "/group/:id/menuButton",
82413
+ component: MenuButton_MenuButton
82414
  }), /*#__PURE__*/react.createElement(Route, {
82415
  path: "/group/:id/:tab",
82416
  component: Group_Group
86646
  var eventListener = function eventListener(e) {
86647
  if (!e.isTrusted || typeof e.data === "undefined" || typeof e.data.eventType === "undefined" || e.data.eventType !== "buttonizer") return; // Show notification on button click/admin redirect
86648
 
86649
+ if (e.data.messageType === "admin-link-redirect" && !isSnoozed && e.data.message.type !== "to-group") {
86650
  enqueueSnackbar( /*#__PURE__*/react.createElement(Trans, {
86651
+ i18nKey: "warnings.actions.".concat(e.data.message.type === "to-menu" ? "toggle_menu_text" : "test_action_text"),
86652
  components: {
86653
  mouseIcon: /*#__PURE__*/react.createElement(SvgIcon/* default */.Z, {
86654
  className: AdminNotifications_style_module.mouse
86672
  },
86673
  TransitionComponent: Grow_Grow,
86674
  preventDuplicate: true,
86675
+ key: "shift-notification-".concat(e.data.message.type === "to-menu" ? "menu" : "action"),
86676
  action: function action(key) {
86677
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(esm_IconButton_IconButton, {
86678
  component: "a",
87171
  pageParam = "/".concat(document.location.hash.substring(document.location.hash.lastIndexOf("/") + 1));
87172
  }
87173
 
87174
+ switch (action.type) {
87175
+ case "to-group":
87176
+ document.location.hash = "/group/".concat(action.data.group).concat(pageParam);
87177
+ break;
87178
+
87179
+ case "to-menu":
87180
+ document.location.hash = "/group/".concat(action.data.group, "/menuButton").concat(pageParam);
87181
+ break;
87182
+
87183
+ default:
87184
+ document.location.hash = "/group/".concat(action.data.group, "/button/").concat(action.data.button).concat(pageParam);
87185
+ break;
87186
+ }
87187
  }
87188
  }]);
87189
 
93530
  sdk_init({
93531
  dsn: true ? "https://98400788903e4f4a9618ff08bd3b65cf@tracker.buttonizer.pro/2" : 0,
93532
  // request_bodies: "always",
93533
+ release: "v2.9.0",
93534
  environment: "production",
93535
  attachStacktrace: true,
93536
  integrations: [new ExtraErrorData({
93628
 
93629
  /* global module */
93630
  module.exports = {
93631
+ group: {},
 
 
 
93632
  button: {}
93633
  };
93634
 
93655
  };
93656
  module.exports = {
93657
  button: _objectSpread({}, button),
93658
+ menu_button: _objectSpread({}, button),
93659
  group: _objectSpread(_objectSpread({}, button), {}, {
93660
  label_same_width: true,
93661
  label_same_height: true,
93676
 
93677
  /* global module */
93678
  var button = {
 
 
93679
  box_shadow_enabled: [false],
93680
  label_box_shadow_enabled: [false],
93681
  border_radius: ["0px"],
93684
  };
93685
  module.exports = {
93686
  button: _objectSpread({}, button),
93687
+ menu_button: _objectSpread({}, button),
93688
  group: _objectSpread(_objectSpread({}, button), {}, {
93689
+ group_size: 56,
93690
+ button_size: 56,
93691
  show_label_desktop: "hover",
93692
  show_label_mobile: "hide",
93693
  label_same_height: true,
93758
  return result;
93759
  },
93760
 
93761
+ get menu_button() {
93762
+ var result = {};
93763
+ Object.entries(merge({}, defaults.button, defaults.menu_button)).map(function (key) {
93764
+ merge(result, key[1]);
93765
+ });
93766
+ return result;
93767
+ },
93768
+
93769
  get formatted() {
93770
  var result = {};
93771
  Object.entries(merge({}, defaults.button, defaults.group)).map(function (key) {
122902
  module.exports = trimmedEndIndex;
122903
 
122904
 
122905
+ /***/ }),
122906
+
122907
+ /***/ 28583:
122908
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
122909
+
122910
+ var assignValue = __webpack_require__(34865),
122911
+ copyObject = __webpack_require__(98363),
122912
+ createAssigner = __webpack_require__(21463),
122913
+ isArrayLike = __webpack_require__(98612),
122914
+ isPrototype = __webpack_require__(25726),
122915
+ keys = __webpack_require__(3674);
122916
+
122917
+ /** Used for built-in method references. */
122918
+ var objectProto = Object.prototype;
122919
+
122920
+ /** Used to check objects for own properties. */
122921
+ var hasOwnProperty = objectProto.hasOwnProperty;
122922
+
122923
+ /**
122924
+ * Assigns own enumerable string keyed properties of source objects to the
122925
+ * destination object. Source objects are applied from left to right.
122926
+ * Subsequent sources overwrite property assignments of previous sources.
122927
+ *
122928
+ * **Note:** This method mutates `object` and is loosely based on
122929
+ * [`Object.assign`](https://mdn.io/Object/assign).
122930
+ *
122931
+ * @static
122932
+ * @memberOf _
122933
+ * @since 0.10.0
122934
+ * @category Object
122935
+ * @param {Object} object The destination object.
122936
+ * @param {...Object} [sources] The source objects.
122937
+ * @returns {Object} Returns `object`.
122938
+ * @see _.assignIn
122939
+ * @example
122940
+ *
122941
+ * function Foo() {
122942
+ * this.a = 1;
122943
+ * }
122944
+ *
122945
+ * function Bar() {
122946
+ * this.c = 3;
122947
+ * }
122948
+ *
122949
+ * Foo.prototype.b = 2;
122950
+ * Bar.prototype.d = 4;
122951
+ *
122952
+ * _.assign({ 'a': 0 }, new Foo, new Bar);
122953
+ * // => { 'a': 1, 'c': 3 }
122954
+ */
122955
+ var assign = createAssigner(function(object, source) {
122956
+ if (isPrototype(source) || isArrayLike(source)) {
122957
+ copyObject(source, keys(source), object);
122958
+ return;
122959
+ }
122960
+ for (var key in source) {
122961
+ if (hasOwnProperty.call(source, key)) {
122962
+ assignValue(object, key, source[key]);
122963
+ }
122964
+ }
122965
+ });
122966
+
122967
+ module.exports = assign;
122968
+
122969
+
122970
  /***/ }),
122971
 
122972
  /***/ 50361:
123939
  module.exports = isBuffer;
123940
 
123941
 
123942
+ /***/ }),
123943
+
123944
+ /***/ 41609:
123945
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
123946
+
123947
+ var baseKeys = __webpack_require__(280),
123948
+ getTag = __webpack_require__(64160),
123949
+ isArguments = __webpack_require__(35694),
123950
+ isArray = __webpack_require__(1469),
123951
+ isArrayLike = __webpack_require__(98612),
123952
+ isBuffer = __webpack_require__(44144),
123953
+ isPrototype = __webpack_require__(25726),
123954
+ isTypedArray = __webpack_require__(36719);
123955
+
123956
+ /** `Object#toString` result references. */
123957
+ var mapTag = '[object Map]',
123958
+ setTag = '[object Set]';
123959
+
123960
+ /** Used for built-in method references. */
123961
+ var objectProto = Object.prototype;
123962
+
123963
+ /** Used to check objects for own properties. */
123964
+ var hasOwnProperty = objectProto.hasOwnProperty;
123965
+
123966
+ /**
123967
+ * Checks if `value` is an empty object, collection, map, or set.
123968
+ *
123969
+ * Objects are considered empty if they have no own enumerable string keyed
123970
+ * properties.
123971
+ *
123972
+ * Array-like values such as `arguments` objects, arrays, buffers, strings, or
123973
+ * jQuery-like collections are considered empty if they have a `length` of `0`.
123974
+ * Similarly, maps and sets are considered empty if they have a `size` of `0`.
123975
+ *
123976
+ * @static
123977
+ * @memberOf _
123978
+ * @since 0.1.0
123979
+ * @category Lang
123980
+ * @param {*} value The value to check.
123981
+ * @returns {boolean} Returns `true` if `value` is empty, else `false`.
123982
+ * @example
123983
+ *
123984
+ * _.isEmpty(null);
123985
+ * // => true
123986
+ *
123987
+ * _.isEmpty(true);
123988
+ * // => true
123989
+ *
123990
+ * _.isEmpty(1);
123991
+ * // => true
123992
+ *
123993
+ * _.isEmpty([1, 2, 3]);
123994
+ * // => false
123995
+ *
123996
+ * _.isEmpty({ 'a': 1 });
123997
+ * // => false
123998
+ */
123999
+ function isEmpty(value) {
124000
+ if (value == null) {
124001
+ return true;
124002
+ }
124003
+ if (isArrayLike(value) &&
124004
+ (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
124005
+ isBuffer(value) || isTypedArray(value) || isArguments(value))) {
124006
+ return !value.length;
124007
+ }
124008
+ var tag = getTag(value);
124009
+ if (tag == mapTag || tag == setTag) {
124010
+ return !value.size;
124011
+ }
124012
+ if (isPrototype(value)) {
124013
+ return !baseKeys(value).length;
124014
+ }
124015
+ for (var key in value) {
124016
+ if (hasOwnProperty.call(value, key)) {
124017
+ return false;
124018
+ }
124019
+ }
124020
+ return true;
124021
+ }
124022
+
124023
+ module.exports = isEmpty;
124024
+
124025
+
124026
  /***/ }),
124027
 
124028
  /***/ 18446:
124765
  module.exports = merge;
124766
 
124767
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124768
  /***/ }),
124769
 
124770
  /***/ 7771:
124859
  module.exports = omit;
124860
 
124861
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124862
  /***/ }),
124863
 
124864
  /***/ 78718:
124891
  module.exports = pick;
124892
 
124893
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124894
  /***/ }),
124895
 
124896
  /***/ 39601:
132093
  /***/ (function(module) {
132094
 
132095
  "use strict";
132096
+ module.exports = JSON.parse('{"button":{"general":{"show_mobile":true,"show_desktop":true,"label":"","action":"#","type":"url","messenger_lang":"en_US","action_new_tab":false},"styling":{"icon":["fas fa-home"],"icon_type":"icon","icon_image":[""],"icon_size":[20],"icon_image_size":[16],"background_is_image":[false],"background_image":[],"border_radius":["50%"],"background_color":["#2f7789","#f08419"],"icon_color":["#fff"],"icon_image_border_radius":[50],"label_background_color":["#4e4c4c"],"label_color":["#fff"],"label_border_radius":["3px"],"label_font_size":[12],"label_margin":["0px 0px 0px 0px"],"label_padding":["5px 15px 5px 15px"],"label_font_family":"","label_spacing":9,"horizontal_position_label":"auto","box_shadow":["0px 2px 6px 1px rgba(0, 0, 0, 0.20)","0px 5px 11px 1px rgba(0, 0, 0, 0.25)"],"box_shadow_enabled":[true],"label_box_shadow_enabled":[false],"label_box_shadow":["0px 0px 0px 0px rgba(0, 0, 0, 1)"]}},"group":{"general":{"horizontal":"right: 5%","vertical":"bottom: 5%","menu_style":"default"},"advanced":{"menu_animation":"none","menu_animation_delay":10,"menu_animation_repeat_count":0,"show_on_schedule_trigger":true,"show_on_rule_trigger":true,"advanced_timeout_once":true,"advanced_scroll_hide":false,"exit_intent_animation":"focused","exit_intent_trigger_amount":"once_page"},"styling":{"group_size":56,"button_size":42,"show_label_mobile":"always","show_label_desktop":"always","label_same_width":false,"label_same_height":false,"label_inside":false,"space":10}},"menu_button":{"general":{"name":"Menu button","type":"opengroup","menu_opening_animation":"default","start_opened":false,"close_on_click_outside":true,"close_on_click_inside":true,"open_on_mouseover":false,"close_on_mouseleave":true},"styling":{"icon":["fas fa-plus"],"icon_size":[25],"icon_image_size":[25],"space":0}}}');
132097
 
132098
  /***/ })
132099
 
132238
  /******/ // startup
132239
  /******/ // Load entry module and return exports
132240
  /******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
132241
+ /******/ var __webpack_exports__ = __webpack_require__(32242);
132242
  /******/
132243
  /******/ })()
132244
  ;
assets/dashboard.min.js CHANGED
@@ -9,7 +9,7 @@
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
- * (C) 2017-2022 Buttonizer v2.8.3
13
  *
14
  */
15
  /*!
@@ -23,9 +23,9 @@
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
- * (C) 2017-2022 Buttonizer v2.8.3
27
  *
28
- */!function(){var e,t,n={50676:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},59968:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},83614:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50676);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}},63349:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5991:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return o}})},96156:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},22122:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},41788:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(14665);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},96410:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},28970:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},62303:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},81253:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(19756);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},19756:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},14665:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},28481:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(59968);var o=n(82961),i=n(28970);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},78927:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(83614),o=n(96410),i=n(82961),a=n(62303);function l(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,i.Z)(e)||(0,a.Z)()}},90484:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},82961:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50676);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},95318:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},20862:function(e,t,n){var r=n(50008).default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var s=a?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(i,l,s):i[l]=e[l]}return i.default=e,n&&n.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports},50008:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},70597:function(e,t,n){"use strict";var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(67294),a=(r=i)&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,i=void 0===r?24:r,l=e.height,s=void 0===l?24:l,u=e.style,c=void 0===u?{}:u,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:s},c)},f),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},43891:function(e,t,n){"use strict";var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(67294),a=(r=i)&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,i=void 0===r?24:r,l=e.height,s=void 0===l?24:l,u=e.style,c=void 0===u?{}:u,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:s},c)},f),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},62087:function(e,t,n){"use strict";var r=n(22122),o=n(81253),i=n(67294),a=(n(45697),n(86010)),l=n(14670),s=n(93871),u=i.forwardRef((function(e,t){var n=e.children,l=e.classes,u=e.className,c=e.color,f=void 0===c?"inherit":c,d=e.component,p=void 0===d?"svg":d,h=e.fontSize,m=void 0===h?"default":h,g=e.htmlColor,v=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,w=(0,o.Z)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(p,(0,r.Z)({className:(0,a.Z)(l.root,u,"inherit"!==f&&l["color".concat((0,s.Z)(f))],"default"!==m&&l["fontSize".concat((0,s.Z)(m))]),focusable:"false",viewBox:b,color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t},w),n,v?i.createElement("title",null,v):null)}));u.muiName="SvgIcon",t.Z=(0,l.Z)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(u)},59693:function(e,t,n){"use strict";n.d(t,{mi:function(){return l},_4:function(){return u},U1:function(){return c},_j:function(){return f},$n:function(){return d}});var r=n(60288);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function l(e,t){var n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function s(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,l=r*Math.min(o,1-o),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-l*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),a({type:u,values:c})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(e)>.5?f(e,t):d(e,t)}function c(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},49277:function(e,t,n){"use strict";n.d(t,{Z:function(){return K}});var r=n(81253),o=n(35953),i=n(22122),a=["xs","sm","md","lg","xl"];function l(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,o=e.unit,l=void 0===o?"px":o,s=e.step,u=void 0===s?5:s,c=(0,r.Z)(e,["values","unit","step"]);function f(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(l,")")}function d(e,t){var r=a.indexOf(t);return r===a.length-1?f(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(l,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[a[r+1]]?n[a[r+1]]:t)-u/100).concat(l,")")}return(0,i.Z)({keys:a,values:n,up:f,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?f("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(l,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},c)}var s=n(96156);function u(e,t,n){var r;return(0,i.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,s.Z)({},e.up("sm"),(0,i.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,s.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,s.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var c=n(60288),f={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},v={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=n(59693),w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function E(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,b.$n)(e.main,o):"dark"===t&&(e.dark=(0,b._j)(e.main,i)))}function _(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,a=e.secondary,l=void 0===a?{light:h.A200,main:h.A400,dark:h.A700}:a,s=e.error,u=void 0===s?{light:m[300],main:m[500],dark:m[700]}:s,_=e.warning,S=void 0===_?{light:g[300],main:g[500],dark:g[700]}:_,O=e.info,k=void 0===O?{light:v[300],main:v[500],dark:v[700]}:O,C=e.success,P=void 0===C?{light:y[300],main:y[500],dark:y[700]}:C,T=e.type,A=void 0===T?"light":T,j=e.contrastThreshold,I=void 0===j?3:j,R=e.tonalOffset,N=void 0===R?.2:R,D=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function M(e){return(0,b.mi)(e,x.text.primary)>=I?x.text.primary:w.text.primary}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,i.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,c.Z)(4,t));if("string"!=typeof e.main)throw new Error((0,c.Z)(5,JSON.stringify(e.main)));return E(e,"light",n,N),E(e,"dark",r,N),e.contrastText||(e.contrastText=M(e.main)),e},F={dark:x,light:w};return(0,o.Z)((0,i.Z)({common:f,type:A,primary:L(n),secondary:L(l,"A400","A200","A700"),error:L(u),warning:L(S),info:L(k),success:L(P),grey:d,contrastThreshold:I,getContrastText:M,augmentColor:L,tonalOffset:N},F[A]),D)}function S(e){return Math.round(1e5*e)/1e5}var O={textTransform:"uppercase"};function k(e,t){var n="function"==typeof t?t(e):t,a=n.fontFamily,l=void 0===a?'"Roboto", "Helvetica", "Arial", sans-serif':a,s=n.fontSize,u=void 0===s?14:s,c=n.fontWeightLight,f=void 0===c?300:c,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,m=void 0===h?500:h,g=n.fontWeightBold,v=void 0===g?700:g,y=n.htmlFontSize,b=void 0===y?16:y,w=n.allVariants,x=n.pxToRem,E=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var _=u/14,k=x||function(e){return"".concat(e/b*_,"rem")},C=function(e,t,n,r,o){return(0,i.Z)({fontFamily:l,fontWeight:e,fontSize:k(t),lineHeight:n},'"Roboto", "Helvetica", "Arial", sans-serif'===l?{letterSpacing:"".concat(S(r/t),"em")}:{},o,w)},P={h1:C(f,96,1.167,-1.5),h2:C(f,60,1.2,-.5),h3:C(p,48,1.167,0),h4:C(p,34,1.235,.25),h5:C(p,24,1.334,0),h6:C(m,20,1.6,.15),subtitle1:C(p,16,1.75,.15),subtitle2:C(m,14,1.57,.1),body1:C(p,16,1.5,.15),body2:C(p,14,1.43,.15),button:C(m,14,1.75,.4,O),caption:C(p,12,1.66,.4),overline:C(p,12,2.66,1,O)};return(0,o.Z)((0,i.Z)({htmlFontSize:b,pxToRem:k,round:S,fontFamily:l,fontSize:u,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:v},P),E,{clone:!1})}function C(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var P=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],T={borderRadius:4},A=n(28481),j=n(90484),I=(n(45697),{xs:0,sm:600,md:960,lg:1280,xl:1920}),R={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(I[e],"px)")}};var N=function(e,t){return t?(0,o.Z)(e,t,{clone:!1}):e};var D,M,L={m:"margin",p:"padding"},F={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},z={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},B=(D=function(e){if(e.length>2){if(!z[e])return[e];e=z[e]}var t=e.split(""),n=(0,A.Z)(t,2),r=n[0],o=n[1],i=L[r],a=F[o]||"";return Array.isArray(a)?a.map((function(e){return i+e})):[i+a]},M={},function(e){return void 0===M[e]&&(M[e]=D(e)),M[e]}),Z=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function U(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function H(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function W(e){var t=U(e.theme);return Object.keys(e).map((function(n){if(-1===Z.indexOf(n))return null;var r=H(B(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||R;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===(0,j.Z)(t)){var o=e.theme.breakpoints||R;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(N,{})}W.propTypes={},W.filterProps=Z;function G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=U({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var V=n(43366),$=n(92781);var K=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,i=e.mixins,a=void 0===i?{}:i,s=e.palette,c=void 0===s?{}:s,f=e.spacing,d=e.typography,p=void 0===d?{}:d,h=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),m=_(c),g=l(n),v=G(f),y=(0,o.Z)({breakpoints:g,direction:"ltr",mixins:u(g,v,a),overrides:{},palette:m,props:{},shadows:P,typography:k(m,p),spacing:v,shape:T,transitions:V.ZP,zIndex:$.Z},h),b=arguments.length,w=new Array(b>1?b-1:0),x=1;x<b;x++)w[x-1]=arguments[x];return y=w.reduce((function(e,t){return(0,o.Z)(e,t)}),y)}},99700:function(e,t,n){"use strict";var r=(0,n(49277).Z)();t.Z=r},43366:function(e,t,n){"use strict";n.d(t,{x9:function(){return i}});var r=n(81253),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.ZP={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,l=void 0===n?i.standard:n,s=t.easing,u=void 0===s?o.easeInOut:s,c=t.delay,f=void 0===c?0:c;(0,r.Z)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof l?l:a(l)," ").concat(u," ").concat("string"==typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},14670:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(22122),o=n(81253),i=n(67294),a=(n(45697),n(8679)),l=n.n(a),s=n(73914),u=n(93869),c=n(159),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,f=t.withTheme,d=void 0!==f&&f,p=t.name,h=(0,o.Z)(t,["defaultTheme","withTheme","name"]);var m=p,g=(0,s.Z)(e,(0,r.Z)({defaultTheme:a,Component:n,name:p||n.displayName,classNamePrefix:m},h)),v=i.forwardRef((function(e,t){e.classes;var l,s=e.innerRef,f=(0,o.Z)(e,["classes","innerRef"]),h=g((0,r.Z)({},n.defaultProps,e)),m=f;return("string"==typeof p||d)&&(l=(0,c.Z)()||a,p&&(m=(0,u.Z)({theme:l,name:p,props:f})),d&&!m.theme&&(m.theme=l)),i.createElement(n,(0,r.Z)({ref:s||t,classes:h},m))}));return l()(v,n),v}},d=n(99700);var p=function(e,t){return f(e,(0,r.Z)({defaultTheme:d.Z},t))}},92781:function(e,t){"use strict";t.Z={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},93871:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(60288);function o(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},82568:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{Z:function(){return r}})},63786:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(22122),o=n(67294),i=n(62087);function a(e,t){var n=function(t,n){return o.createElement(i.Z,(0,r.Z)({ref:n},t),e)};return n.muiName=i.Z.muiName,o.memo(o.forwardRef(n))}},79437:function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,l=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(l,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{Z:function(){return r}})},28546:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return r.Z},createChainedFunction:function(){return o.Z},createSvgIcon:function(){return i.Z},debounce:function(){return a.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return s.Z},ownerDocument:function(){return u.Z},ownerWindow:function(){return c.Z},requirePropFactory:function(){return f},setRef:function(){return d.Z},unstable_useId:function(){return v.Z},unsupportedProp:function(){return p},useControlled:function(){return h.Z},useEventCallback:function(){return m.Z},useForkRef:function(){return g.Z},useIsFocusVisible:function(){return y.Z}});var r=n(93871),o=n(82568),i=n(63786),a=n(79437);function l(e,t){return function(){return null}}var s=n(83711),u=n(30626),c=n(80713);function f(e){return function(){return null}}var d=n(34236);function p(e,t,n,r,o){return null}var h=n(22775),m=n(55192),g=n(17294),v=n(95001),y=n(24896)},83711:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},30626:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},80713:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30626);function o(e){return(0,r.Z)(e).defaultView||window}},34236:function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},95001:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e){var t=r.useState(e),n=t[0],o=t[1],i=e||n;return r.useEffect((function(){null==n&&o("mui-".concat(Math.round(1e5*Math.random())))}),[n]),i}},22775:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],l=i[1];return[o?t:a,r.useCallback((function(e){o||l(e)}),[])]}},55192:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},17294:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(34236);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,o.Z)(e,n),(0,o.Z)(t,n)}}),[e,t])}},24896:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(67294),o=n(73935),i=!0,a=!1,l=null,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function f(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return i||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!s[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function p(){a=!0,window.clearTimeout(l),l=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:d,onBlurVisible:p,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",f,!0))}),[])}}},89039:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");t.Z=a},37726:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}),"AttachFile");t.Z=a},66521:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"Code");t.Z=a},64566:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.Z=a},87239:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");t.Z=a},89974:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2H0c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2h-4zM4 5h16v11H4V5zm8 14c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}),"LaptopMac");t.Z=a},78513:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.Z=a},6404:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"}),"PhoneIphone");t.Z=a},79015:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M18.5 0h-14C3.12 0 2 1.12 2 2.5v19C2 22.88 3.12 24 4.5 24h14c1.38 0 2.5-1.12 2.5-2.5v-19C21 1.12 19.88 0 18.5 0zm-7 23c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm7.5-4H4V3h15v16z"}),"TabletMac");t.Z=a},2108:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(28546)},4137:function(e,t,n){"use strict";n.d(t,{NU:function(){return p},ZP:function(){return h}});var r=n(22122),o=n(81253),i=n(67294),a=(n(45697),n(17076)),l=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var s,u=n(54013),c=n(60246),f=(0,u.Ue)((0,c.Z)()),d={disableGeneration:!1,generateClassName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,s=void 0===i?"":i,u=""===s?"":"".concat(s,"-"),c=0,f=function(){return c+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==l.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(u).concat(r,"-").concat(e.key);return t.options.theme[a.Z]&&""===s?"".concat(i,"-").concat(f()):i}return"".concat(u).concat(o).concat(f())}}(),jss:f,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},p=i.createContext(d);function h(e){var t=e.children,n=e.injectFirst,a=void 0!==n&&n,l=e.disableGeneration,f=void 0!==l&&l,d=(0,o.Z)(e,["children","injectFirst","disableGeneration"]),h=i.useContext(p),m=(0,r.Z)({},h,{disableGeneration:f},d);if(!m.jss.options.insertionPoint&&a&&"undefined"!=typeof window){if(!s){var g=document.head;s=document.createComment("mui-inject-first"),g.insertBefore(s,g.firstChild)}m.jss=(0,u.Ue)({plugins:(0,c.Z)().plugins,insertionPoint:s})}return i.createElement(p.Provider,{value:m},t)}},17076:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for;t.Z=n?Symbol.for("mui.nested"):"__THEME_NESTED__"},93869:function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,{Z:function(){return r}})},60246:function(e,t,n){"use strict";n.d(t,{Z:function(){return Re}});var r=n(54013),o=Date.now(),i="fnValues"+o,a="fnStyle"+ ++o,l=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var o=(0,r.JH)(e,{},n);return o[a]=t,o},onProcessStyle:function(e,t){if(i in t||a in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[i]=n,e},onUpdate:function(e,t,n,r){var o=t,l=o[a];l&&(o.style=l(e)||{});var s=o[i];if(s)for(var u in s)o.prop(u,s[u](e),r)}}},s=n(22122),u="@global",c=function(){function e(e,t,n){for(var o in this.type="global",this.at=u,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.RB((0,s.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),f=function(){function e(e,t,n){this.type="global",this.at=u,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr("@global ".length);this.rule=n.jss.createRule(r,t,(0,s.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),d=/\s*,\s*/g;function p(e,t){for(var n=e.split(d),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var h=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===u)return new c(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,"@global ".length))return new f(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[u]:null;if(o){for(var i in o)t.addRule(i,o[i],(0,s.Z)({},n,{selector:p(i,e.selector)}));delete r[u]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,u.length)===u){var i=p(o.substr(u.length),e.selector);t.addRule(i,r[o],(0,s.Z)({},n,{selector:i})),delete r[o]}}(e,t))}}},m=/\s*,\s*/g,g=/&/g,v=/\$([\w-]+)/g;var y=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?(o=o).selector:r}}function t(e,t){for(var n=t.split(m),r=e.split(m),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var s=r[l];o&&(o+=", "),o+=-1!==s.indexOf("&")?s.replace(g,a):a+" "+s}return o}function n(e,t,n){if(n)return(0,s.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,s.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,l,u=o,c=u.options.parent;for(var f in r){var d=-1!==f.indexOf("&"),p="@"===f[0];if(d||p){if(a=n(u,c,a),d){var h=t(f,u.selector);l||(l=e(c,i)),h=h.replace(v,l),c.addRule(h,r[f],(0,s.Z)({},a,{selector:h}))}else p&&c.addRule(f,{},a).addRule(u.key,r[f],{selector:u.selector});delete r[f]}}return r}}},b=/[A-Z]/g,w=/^ms-/,x={};function E(e){return"-"+e.toLowerCase()}var _=function(e){if(x.hasOwnProperty(e))return x[e];var t=e.replace(b,E);return x[e]=w.test(t)?"-"+t:t};function S(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:_(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(S):t.fallbacks=S(e.fallbacks)),t}var O=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=S(e[t]);return e}return S(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=_(t);return t===r?e:(n.prop(r,e),null)}}},k=r.HZ&&CSS?CSS.px:"px",C=r.HZ&&CSS?CSS.ms:"ms",P=r.HZ&&CSS?CSS.percent:"%";function T(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var A=T({"animation-delay":C,"animation-duration":C,"background-position":k,"background-position-x":k,"background-position-y":k,"background-size":k,border:k,"border-bottom":k,"border-bottom-left-radius":k,"border-bottom-right-radius":k,"border-bottom-width":k,"border-left":k,"border-left-width":k,"border-radius":k,"border-right":k,"border-right-width":k,"border-top":k,"border-top-left-radius":k,"border-top-right-radius":k,"border-top-width":k,"border-width":k,"border-block":k,"border-block-end":k,"border-block-end-width":k,"border-block-start":k,"border-block-start-width":k,"border-block-width":k,"border-inline":k,"border-inline-end":k,"border-inline-end-width":k,"border-inline-start":k,"border-inline-start-width":k,"border-inline-width":k,"border-start-start-radius":k,"border-start-end-radius":k,"border-end-start-radius":k,"border-end-end-radius":k,margin:k,"margin-bottom":k,"margin-left":k,"margin-right":k,"margin-top":k,"margin-block":k,"margin-block-end":k,"margin-block-start":k,"margin-inline":k,"margin-inline-end":k,"margin-inline-start":k,padding:k,"padding-bottom":k,"padding-left":k,"padding-right":k,"padding-top":k,"padding-block":k,"padding-block-end":k,"padding-block-start":k,"padding-inline":k,"padding-inline-end":k,"padding-inline-start":k,"mask-position-x":k,"mask-position-y":k,"mask-size":k,height:k,width:k,"min-height":k,"max-height":k,"min-width":k,"max-width":k,bottom:k,left:k,top:k,right:k,inset:k,"inset-block":k,"inset-block-end":k,"inset-block-start":k,"inset-inline":k,"inset-inline-end":k,"inset-inline-start":k,"box-shadow":k,"text-shadow":k,"column-gap":k,"column-rule":k,"column-rule-width":k,"column-width":k,"font-size":k,"font-size-delta":k,"letter-spacing":k,"text-decoration-thickness":k,"text-indent":k,"text-stroke":k,"text-stroke-width":k,"word-spacing":k,motion:k,"motion-offset":k,outline:k,"outline-offset":k,"outline-width":k,perspective:k,"perspective-origin-x":P,"perspective-origin-y":P,"transform-origin":P,"transform-origin-x":P,"transform-origin-y":P,"transform-origin-z":P,"transition-delay":C,"transition-duration":C,"vertical-align":k,"flex-basis":k,"shape-margin":k,size:k,gap:k,grid:k,"grid-gap":k,"row-gap":k,"grid-row-gap":k,"grid-column-gap":k,"grid-template-rows":k,"grid-template-columns":k,"grid-auto-rows":k,"grid-auto-columns":k,"box-shadow-x":k,"box-shadow-y":k,"box-shadow-blur":k,"box-shadow-spread":k,"font-line-height":k,"text-shadow-x":k,"text-shadow-y":k,"text-shadow-blur":k});function j(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=j(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=j(o,t[o],n);else for(var i in t)t[i]=j(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||A[e];return!a||0===t&&a===k?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}var I=function(e){void 0===e&&(e={});var t=T(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=j(r,e[r],t);return e},onChangeValue:function(e,n){return j(n,e,t)}}},R=n(33827),N=n(78927),D="",M="",L="",F="",z=R.Z&&"ontouchstart"in document.documentElement;if(R.Z){var B={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Z=document.createElement("p").style;for(var U in B)if(U+"Transform"in Z){D=U,M=B[U];break}"Webkit"===D&&"msHyphens"in Z&&(D="ms",M=B.ms,F="edge"),"Webkit"===D&&"-apple-trailing-word"in Z&&(L="apple")}var H=D,W=M,G=L,V=F,$=z;var K={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===H?"-webkit-"+e:W+e)}},q={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===H?W+"print-"+e:e)}},Y=/[-\s]+(.)?/g;function X(e,t){return t?t.toUpperCase():""}function J(e){return e.replace(Y,X)}function Q(e){return J("-"+e)}var ee,te={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===H){if(J("mask-image")in t)return e;if(H+Q("mask-image")in t)return W+e}return e}},ne={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==G||$?e:W+e)}},re={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:W+e)}},oe={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:W+e)}},ie={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===H||"ms"===H&&"edge"!==V?W+e:e)}},ae={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===H||"ms"===H||"apple"===G?W+e:e)}},le={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===H?"WebkitColumn"+Q(e)in t&&W+"column-"+e:"Moz"===H&&("page"+Q(e)in t&&"page-"+e))}},se={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===H)return e;var n=e.replace("-inline","");return H+Q(n)in t&&W+n}},ue={supportedProperty:function(e,t){return J(e)in t&&e}},ce={supportedProperty:function(e,t){var n=Q(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:H+n in t?W+e:"Webkit"!==H&&"Webkit"+n in t&&"-webkit-"+e}},fe={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===H?""+W+e:e)}},de={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===H?W+"scroll-chaining":e)}},pe={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},he={supportedProperty:function(e,t){var n=pe[e];return!!n&&(H+Q(n)in t&&W+n)}},me={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ge=Object.keys(me),ve=function(e){return W+e},ye=[K,q,te,ne,re,oe,ie,ae,le,se,ue,ce,fe,de,he,{supportedProperty:function(e,t,n){var r=n.multiple;if(ge.indexOf(e)>-1){var o=me[e];if(!Array.isArray(o))return H+Q(o)in t&&W+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(H+Q(o[0])in t))return!1;return o.map(ve)}return!1}}],be=ye.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),we=ye.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,N.Z)(t.noPrefill)),e}),[]),xe={};if(R.Z){ee=document.createElement("p");var Ee=window.getComputedStyle(document.documentElement,"");for(var _e in Ee)isNaN(_e)||(xe[Ee[_e]]=Ee[_e]);we.forEach((function(e){return delete xe[e]}))}function Se(e,t){if(void 0===t&&(t={}),!ee)return e;if(null!=xe[e])return xe[e];"transition"!==e&&"transform"!==e||(t[e]=e in ee.style);for(var n=0;n<be.length&&(xe[e]=be[n](e,ee.style,t),!xe[e]);n++);try{ee.style[e]=""}catch(e){return!1}return xe[e]}var Oe,ke={},Ce={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Pe=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Te(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Se(t):", "+Se(n);return r||(t||n)}function Ae(e,t){var n=t;if(!Oe||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=ke[r])return ke[r];try{Oe.style[e]=n}catch(e){return ke[r]=!1,!1}if(Ce[e])n=n.replace(Pe,Te);else if(""===Oe.style[e]&&("-ms-flex"===(n=W+n)&&(Oe.style[e]="-ms-flexbox"),Oe.style[e]=n,""===Oe.style[e]))return ke[r]=!1,!1;return Oe.style[e]="",ke[r]=n,ke[r]}R.Z&&(Oe=document.createElement("p"));var je=function(){function e(t){for(var n in t){var o=t[n];if("fallbacks"===n&&Array.isArray(o))t[n]=o.map(e);else{var i=!1,a=Se(n);a&&a!==n&&(i=!0);var l=!1,s=Ae(a,(0,r.EK)(o));s&&s!==o&&(l=!0),(i||l)&&(i&&delete t[n],t[a||n]=s||o)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===H?e:"@"+W+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Ae(t,(0,r.EK)(e))||e}}};var Ie=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};function Re(){return{plugins:[l(),h(),y(),O(),I(),"undefined"==typeof window?null:je(),Ie()]}}},73914:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(81253),o=n(22122),i=n(67294),a=n(54013),l=n(65835),s={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},u=n(159),c=n(4137),f=-1e9;function d(){return f+=1}var p=n(35953);function h(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],l=(0,o.Z)({},i);return Object.keys(a).forEach((function(e){l[e]=(0,p.Z)(l[e],a[e])})),l},options:{}}}var m={};function g(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=(0,l.Z)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function v(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,u=e.stylesCreator,c=e.name;if(!i.disableGeneration){var f=s.get(i.sheetsManager,u,r);f||(f={refs:0,staticSheet:null,dynamicStyles:null},s.set(i.sheetsManager,u,r,f));var d=(0,o.Z)({},u.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});d.generateId=d.serverGenerateClassName||d.generateClassName;var p=i.sheetsRegistry;if(0===f.refs){var h;i.sheetsCache&&(h=s.get(i.sheetsCache,u,r));var m=u.create(r,c);h||((h=i.jss.createStyleSheet(m,(0,o.Z)({link:!1},d))).attach(),i.sheetsCache&&s.set(i.sheetsCache,u,r,h)),p&&p.add(h),f.staticSheet=h,f.dynamicStyles=(0,a._$)(m)}if(f.dynamicStyles){var g=i.jss.createStyleSheet(f.dynamicStyles,(0,o.Z)({link:!0},d));g.update(t),g.attach(),n.dynamicSheet=g,n.classes=(0,l.Z)({baseClasses:f.staticSheet.classes,newClasses:g.classes}),p&&p.add(g)}else n.classes=f.staticSheet.classes;f.refs+=1}}function y(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function b(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=s.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(s.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function w(e,t){var n,r=i.useRef([]),o=i.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),i.useEffect((function(){return function(){n&&n()}}),[o])}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,l=t.Component,s=t.defaultTheme,f=void 0===s?m:s,p=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),x=h(e),E=n||a||"makeStyles";x.options={index:d(),name:n,meta:E,classNamePrefix:E};var _=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,u.Z)()||f,r=(0,o.Z)({},i.useContext(c.NU),p),a=i.useRef(),s=i.useRef();w((function(){var o={name:n,state:{},stylesCreator:x,stylesOptions:r,theme:t};return v(o,e),s.current=!1,a.current=o,function(){b(o)}}),[t,x]),i.useEffect((function(){s.current&&y(a.current,e),s.current=!0}));var d=g(a.current,e.classes,l);return d};return _}},65835:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(22122);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var o=(0,r.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},83800:function(e,t,n){"use strict";var r=n(67294).createContext(null);t.Z=r},159:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(83800);function i(){return r.useContext(o.Z)}},35953:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(22122),o=n(90484);function i(e){return e&&"object"===(0,o.Z)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},60288:function(e,t,n){"use strict";function r(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},36879:function(e,t,n){"use strict";n.d(t,{Xb:function(){return p},Gd:function(){return g},cu:function(){return h}});var r=n(70655),o=n(62844),i=n(21170),a=n(12343),l=n(82991),s=n(72176),u="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,c=n(46769),f=n(20535),d=function(){function e(e){this.errors=0,this.sid=(0,o.DM)(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var t=(0,i.ph)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||(0,i.ph)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,o.DM)()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):"ok"===this.status?this.update({status:"exited"}):this.update()},e.prototype.toJSON=function(){return(0,f.Jr)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},e}(),p=function(){function e(e,t,n){void 0===t&&(t=new c.s),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=c.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:(0,o.DM)(),i=t;if(!t){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(e){a=e}i={originalException:e,syntheticException:a}}return this._invokeClient("captureException",e,(0,r.pi)((0,r.pi)({},i),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var i=this._lastEventId=n&&n.event_id?n.event_id:(0,o.DM)(),a=n;if(!n){var l=void 0;try{throw new Error(e)}catch(e){l=e}a={originalException:e,syntheticException:l}}return this._invokeClient("captureMessage",e,t,(0,r.pi)((0,r.pi)({},a),{event_id:i})),i},e.prototype.captureEvent=function(e,t){var n=t&&t.event_id?t.event_id:(0,o.DM)();return"transaction"!==e.type&&(this._lastEventId=n),this._invokeClient("captureEvent",e,(0,r.pi)((0,r.pi)({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),o=n.scope,l=n.client;if(o&&l){var s=l.getOptions&&l.getOptions()||{},u=s.beforeBreadcrumb,c=void 0===u?null:u,f=s.maxBreadcrumbs,d=void 0===f?100:f;if(!(d<=0)){var p=(0,i.yW)(),h=(0,r.pi)({timestamp:p},e),m=c?(0,a.Cf)((function(){return c(h,t)})):h;null!==m&&o.addBreadcrumb(m,d)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=m(this);try{e(this)}finally{m(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return u&&a.kg.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&n.close(),this._sendSessionUpdate(),t&&t.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,o=t.client,i=o&&o.getOptions()||{},a=i.release,s=i.environment,u=((0,l.R)().navigator||{}).userAgent,c=new d((0,r.pi)((0,r.pi)((0,r.pi)({release:a,environment:s},n&&{user:n.getUser()}),u&&{userAgent:u}),e));if(n){var f=n.getSession&&n.getSession();f&&"ok"===f.status&&f.update({status:"exited"}),this.endSession(),n.setSession(c)}return c},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=this.getStackTop(),a=i.scope,l=i.client;l&&l[e]&&(t=l)[e].apply(t,(0,r.fl)(n,[a]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=h(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,t);u&&a.kg.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function h(){var e=(0,l.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function m(e){var t=h(),n=y(t);return b(t,e),n}function g(){var e=h();return v(e)&&!y(e).isOlderThan(4)||b(e,new p),(0,s.KV)()?function(e){try{var t=h().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return y(e);if(!v(n)||y(n).isOlderThan(4)){var r=y(e).getStackTop();b(n,new p(r.client,c.s.clone(r.scope)))}return y(n)}catch(t){return y(e)}}(e):y(e)}function v(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function y(e){return(0,l.Y)("hub",(function(){return new p}),e)}function b(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},46769:function(e,t,n){"use strict";n.d(t,{s:function(){return s},c:function(){return c}});var r=n(70655),o=n(67597),i=n(21170),a=n(96893),l=n(82991),s=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=(0,r.fl)(t._breadcrumbs),n._tags=(0,r.pi)({},t._tags),n._extra=(0,r.pi)({},t._extra),n._contexts=(0,r.pi)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=(0,r.fl)(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=(0,r.pi)((0,r.pi)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=(0,r.pi)((0,r.pi)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=(0,r.pi)((0,r.pi)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=(0,r.pi)((0,r.pi)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=(0,r.pi)((0,r.pi)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e=this.getSpan();return e&&e.transaction},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=(0,r.pi)((0,r.pi)({},this._tags),t._tags),this._extra=(0,r.pi)((0,r.pi)({},this._extra),t._extra),this._contexts=(0,r.pi)((0,r.pi)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):(0,o.PO)(t)&&(t=t,this._tags=(0,r.pi)((0,r.pi)({},this._tags),t.tags),this._extra=(0,r.pi)((0,r.pi)({},this._extra),t.extra),this._contexts=(0,r.pi)((0,r.pi)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var o=(0,r.pi)({timestamp:(0,i.yW)()},e);return this._breadcrumbs=(0,r.fl)(this._breadcrumbs,[o]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){if(this._extra&&Object.keys(this._extra).length&&(e.extra=(0,r.pi)((0,r.pi)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=(0,r.pi)((0,r.pi)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=(0,r.pi)((0,r.pi)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=(0,r.pi)((0,r.pi)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=(0,r.pi)({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags=(0,r.pi)({transaction:n},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=(0,r.fl)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors((0,r.fl)(u(),this._eventProcessors),e,t)},e.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=(0,r.pi)((0,r.pi)({},this._sdkProcessingMetadata),e),this},e.prototype._notifyEventProcessors=function(e,t,n,i){var l=this;return void 0===i&&(i=0),new a.cW((function(a,s){var u=e[i];if(null===t||"function"!=typeof u)a(t);else{var c=u((0,r.pi)({},t),n);(0,o.J8)(c)?c.then((function(t){return l._notifyEventProcessors(e,t,n,i+1).then(a)})).then(null,s):l._notifyEventProcessors(e,c,n,i+1).then(a).then(null,s)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function u(){return(0,l.Y)("globalEventProcessors",(function(){return[]}))}function c(e){u().push(e)}},26257:function(e,t,n){"use strict";n.d(t,{d:function(){return r},x:function(){return o}});var r="finishReason",o=["heartbeatFailed","idleTimeout","documentHidden"]},78955:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},50790:function(e,t,n){"use strict";n.d(t,{ro:function(){return y},lb:function(){return v}});var r=n(70655),o=n(36879),i=n(12343),a=n(67597),l=n(72176),s=n(9732),u=n(78955),c=n(63233);function f(){var e=(0,c.x1)();if(e){u.h&&i.kg.log("[Tracing] Transaction: internal_error -> Global error occured"),e.setStatus("internal_error")}}var d=n(16458),p=n(33391);function h(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function m(e,t,n){return(0,c.zu)(t)?void 0!==e.sampled?(e.setMetadata({transactionSampling:{method:"explicitly_set"}}),e):("function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(r)}})):void 0!==n.parentSampled?(r=n.parentSampled,e.setMetadata({transactionSampling:{method:"inheritance"}})):(r=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:"client_rate",rate:Number(r)}})),function(e){if((0,a.i2)(e)||"number"!=typeof e&&"boolean"!=typeof e)return u.h&&i.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(e)+" of type "+JSON.stringify(typeof e)+"."),!1;if(e<0||e>1)return u.h&&i.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+e+"."),!1;return!0}(r)?r?(e.sampled=Math.random()<r,e.sampled?(u.h&&i.kg.log("[Tracing] starting "+e.op+" transaction - "+e.name),e):(u.h&&i.kg.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(r)+")"),e)):(u.h&&i.kg.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(u.h&&i.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)):(e.sampled=!1,e);var r}function g(e,t){var n=this.getClient(),o=n&&n.getOptions()||{},i=new p.Y(e,this);return(i=m(i,o,(0,r.pi)({parentSampled:e.parentSampled,transactionContext:e},t))).sampled&&i.initSpanRecorder(o._experiments&&o._experiments.maxSpans),i}function v(e,t,n,o,i){var a=e.getClient(),l=a&&a.getOptions()||{},s=new d.io(t,e,n,o);return(s=m(s,l,(0,r.pi)({parentSampled:t.parentSampled,transactionContext:t},i))).sampled&&s.initSpanRecorder(l._experiments&&l._experiments.maxSpans),s}function y(){var t;(t=(0,o.cu)()).__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=g),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=h)),(0,l.KV)()&&function(){var t=(0,o.cu)();if(t.__SENTRY__){var n={mongodb:function(){return new((0,l.l$)(e,"./integrations/node/mongo").Mongo)},mongoose:function(){return new((0,l.l$)(e,"./integrations/node/mongo").Mongo)({mongoose:!0})},mysql:function(){return new((0,l.l$)(e,"./integrations/node/mysql").Mysql)},pg:function(){return new((0,l.l$)(e,"./integrations/node/postgres").Postgres)}},i=Object.keys(n).filter((function(e){return!!(0,l.$y)(e)})).map((function(e){try{return n[e]()}catch(e){return}})).filter((function(e){return e}));i.length>0&&(t.__SENTRY__.integrations=(0,r.fl)(t.__SENTRY__.integrations||[],i))}}(),(0,s.o)("error",f),(0,s.o)("unhandledrejection",f)}e=n.hmd(e)},16458:function(e,t,n){"use strict";n.d(t,{nT:function(){return c},io:function(){return d}});var r=n(70655),o=n(21170),i=n(12343),a=n(26257),l=n(78955),s=n(55334),u=n(33391),c=1e3,f=function(e){function t(t,n,r,o){void 0===r&&(r="");var i=e.call(this,o)||this;return i._pushActivity=t,i._popActivity=n,i.transactionSpanId=r,i}return(0,r.ZT)(t,e),t.prototype.add=function(t){var n=this;t.spanId!==this.transactionSpanId&&(t.finish=function(e){t.endTimestamp="number"==typeof e?e:(0,o._I)(),n._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),e.prototype.add.call(this,t)},t}(s.gB),d=function(e){function t(t,n,r,o){void 0===r&&(r=c),void 0===o&&(o=!1);var a=e.call(this,t,n)||this;return a._idleHub=n,a._idleTimeout=r,a._onScope=o,a.activities={},a._heartbeatCounter=0,a._finished=!1,a._beforeFinishCallbacks=[],n&&o&&(p(n),l.h&&i.kg.log("Setting idle transaction on scope. Span ID: "+a.spanId),n.configureScope((function(e){return e.setSpan(a)}))),a._initTimeout=setTimeout((function(){a._finished||a.finish()}),a._idleTimeout),a}return(0,r.ZT)(t,e),t.prototype.finish=function(t){var n,a,s=this;if(void 0===t&&(t=(0,o._I)()),this._finished=!0,this.activities={},this.spanRecorder){l.h&&i.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);try{for(var u=(0,r.XA)(this._beforeFinishCallbacks),c=u.next();!c.done;c=u.next()){(0,c.value)(this,t)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(e){if(e.spanId===s.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"),l.h&&i.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));var n=e.startTimestamp<t;return n||l.h&&i.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(e,void 0,2)),n})),l.h&&i.kg.log("[Tracing] flushing IdleTransaction")}else l.h&&i.kg.log("[Tracing] No active IdleTransaction");return this._onScope&&p(this._idleHub),e.prototype.finish.call(this,t)},t.prototype.registerBeforeFinishCallback=function(e){this._beforeFinishCallbacks.push(e)},t.prototype.initSpanRecorder=function(e){var t=this;if(!this.spanRecorder){this.spanRecorder=new f((function(e){t._finished||t._pushActivity(e)}),(function(e){t._finished||t._popActivity(e)}),this.spanId,e),l.h&&i.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)},t.prototype._pushActivity=function(e){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),l.h&&i.kg.log("[Tracing] pushActivity: "+e),this.activities[e]=!0,l.h&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)},t.prototype._popActivity=function(e){var t=this;if(this.activities[e]&&(l.h&&i.kg.log("[Tracing] popActivity "+e),delete this.activities[e],l.h&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var n=this._idleTimeout,r=(0,o._I)()+n/1e3;setTimeout((function(){t._finished||(t.setTag(a.d,a.x[1]),t.finish(r))}),n)}},t.prototype._beat=function(){if(!this._finished){var e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(l.h&&i.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.setTag(a.d,a.x[0]),this.finish()):this._pingHeartbeat()}},t.prototype._pingHeartbeat=function(){var e=this;l.h&&i.kg.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout((function(){e._beat()}),5e3)},t}(u.Y);function p(e){if(e){var t=e.getScope();if(t)t.getTransaction()&&t.setSpan(void 0)}}},55334:function(e,t,n){"use strict";n.d(t,{gB:function(){return l},Dr:function(){return s}});var r=n(70655),o=n(62844),i=n(21170),a=n(20535),l=function(){function e(e){void 0===e&&(e=1e3),this.spans=[],this._maxlen=e}return e.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},e}(),s=function(){function e(e){if(this.traceId=(0,o.DM)(),this.spanId=(0,o.DM)().substring(16),this.startTimestamp=(0,i._I)(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return e.prototype.child=function(e){return this.startChild(e)},e.prototype.startChild=function(t){var n=new e((0,r.pi)((0,r.pi)({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},e.prototype.setTag=function(e,t){var n;return this.tags=(0,r.pi)((0,r.pi)({},this.tags),((n={})[e]=t,n)),this},e.prototype.setData=function(e,t){var n;return this.data=(0,r.pi)((0,r.pi)({},this.data),((n={})[e]=t,n)),this},e.prototype.setStatus=function(e){return this.status=e,this},e.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this},e.prototype.isSuccess=function(){return"ok"===this.status},e.prototype.finish=function(e){this.endTimestamp="number"==typeof e?e:(0,i._I)()},e.prototype.toTraceparent=function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},e.prototype.toContext=function(){return(0,a.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},e.prototype.updateWithContext=function(e){var t,n,r,o,i;return this.data=null!=(t=e.data)?t:{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=null!=(n=e.spanId)?n:this.spanId,this.startTimestamp=null!=(r=e.startTimestamp)?r:this.startTimestamp,this.status=e.status,this.tags=null!=(o=e.tags)?o:{},this.traceId=null!=(i=e.traceId)?i:this.traceId,this},e.prototype.getTraceContext=function(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},e.prototype.toJSON=function(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},e}()},33391:function(e,t,n){"use strict";n.d(t,{Y:function(){return c}});var r=n(70655),o=n(36879),i=n(67597),a=n(12343),l=n(20535),s=n(78955),u=n(55334),c=function(e){function t(t,n){var r=e.call(this,t)||this;return r._measurements={},r._hub=(0,o.Gd)(),(0,i.V9)(n,o.Xb)&&(r._hub=n),r.name=t.name||"",r.metadata=t.metadata||{},r._trimEnd=t.trimEnd,r.transaction=r,r}return(0,r.ZT)(t,e),t.prototype.setName=function(e){this.name=e},t.prototype.initSpanRecorder=function(e){void 0===e&&(e=1e3),this.spanRecorder||(this.spanRecorder=new u.gB(e)),this.spanRecorder.add(this)},t.prototype.setMeasurements=function(e){this._measurements=(0,r.pi)({},e)},t.prototype.setMetadata=function(e){this.metadata=(0,r.pi)((0,r.pi)({},this.metadata),e)},t.prototype.finish=function(t){var n=this;if(void 0===this.endTimestamp){if(this.name||(s.h&&a.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),e.prototype.finish.call(this,t),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==n&&e.endTimestamp})):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var o={contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata};return Object.keys(this._measurements).length>0&&(s.h&&a.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),o.measurements=this._measurements),s.h&&a.kg.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(o)}s.h&&a.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var i=this._hub.getClient(),l=i&&i.getTransport&&i.getTransport();l&&l.recordLostEvent&&l.recordLostEvent("sample_rate","transaction")}},t.prototype.toContext=function(){var t=e.prototype.toContext.call(this);return(0,l.Jr)((0,r.pi)((0,r.pi)({},t),{name:this.name,trimEnd:this._trimEnd}))},t.prototype.updateWithContext=function(t){var n;return e.prototype.updateWithContext.call(this,t),this.name=null!=(n=t.name)?n:"",this._trimEnd=t.trimEnd,this},t}(u.Dr)},63233:function(e,t,n){"use strict";n.d(t,{zu:function(){return o},x1:function(){return i},XL:function(){return a},WB:function(){return l}});var r=n(36879);function o(e){var t=(0,r.Gd)().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function i(e){var t=(e||(0,r.Gd)()).getScope();return t&&t.getTransaction()}function a(e){return e/1e3}function l(e){return 1e3*e}},58464:function(e,t,n){"use strict";n.d(t,{R:function(){return i},l:function(){return l}});var r=n(82991),o=n(67597);function i(e,t){try{for(var n=e,r=[],o=0,i=0,l=" > ".length,s=void 0;n&&o++<5&&!("html"===(s=a(n,t))||o>1&&i+r.length*l+s.length>=80);)r.push(s),i+=s.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return"<unknown>"}}function a(e,t){var n,r,i,a,l,s=e,u=[];if(!s||!s.tagName)return"";u.push(s.tagName.toLowerCase());var c=t&&t.length?t.filter((function(e){return s.getAttribute(e)})).map((function(e){return[e,s.getAttribute(e)]})):null;if(c&&c.length)c.forEach((function(e){u.push("["+e[0]+'="'+e[1]+'"]')}));else if(s.id&&u.push("#"+s.id),(n=s.className)&&(0,o.HD)(n))for(r=n.split(/\s+/),l=0;l<r.length;l++)u.push("."+r[l]);var f=["type","name","title","alt"];for(l=0;l<f.length;l++)i=f[l],(a=s.getAttribute(i))&&u.push("["+i+'="'+a+'"]');return u.join("")}function l(){var e=(0,r.R)();try{return e.document.location.href}catch(e){return""}}},88795:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},82991:function(e,t,n){"use strict";n.d(t,{R:function(){return i},Y:function(){return a}});var r=n(72176),o={};function i(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function a(e,t,n){var r=n||i(),o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}},9732:function(e,t,n){"use strict";n.d(t,{o:function(){return g}});var r,o=n(70655),i=n(88795),a=n(82991),l=n(67597),s=n(12343),u=n(20535),c=n(30360),f=n(8823),d=(0,a.R)(),p={},h={};function m(e){if(!h[e])switch(h[e]=!0,e){case"console":!function(){if(!("console"in d))return;s.RU.forEach((function(e){e in d.console&&(0,u.hl)(d.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];v("console",{args:n,level:e}),t&&t.apply(d.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in d))return;var e=v.bind(null,"dom"),t=E(e,!0);d.document.addEventListener("click",t,!1),d.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=d[t]&&d[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,u.hl)(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{var i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=i[n]=i[n]||{refCount:0};if(!a.handler){var l=E(e);a.handler=l,t.call(this,n,l,o)}a.refCount+=1}catch(e){}return t.call(this,n,r,o)}})),(0,u.hl)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var o=this.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount-=1,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in d))return;var e=XMLHttpRequest.prototype;(0,u.hl)(e,"open",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,o=t[1],i=r.__sentry_xhr__={method:(0,l.HD)(t[0])?t[0].toUpperCase():t[0],url:t[1]};(0,l.HD)(o)&&"POST"===i.method&&o.match(/sentry_key/)&&(r.__sentry_own_request__=!0);var a=function(){if(4===r.readyState){try{i.status_code=r.status}catch(e){}v("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?(0,u.hl)(r,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return a(),e.apply(r,t)}})):r.addEventListener("readystatechange",a),e.apply(r,t)}})),(0,u.hl)(e,"send",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),v("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!(0,f.t$)())return;(0,u.hl)(d,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:y(t),url:b(t)},startTimestamp:Date.now()};return v("fetch",(0,o.pi)({},r)),e.apply(d,t).then((function(e){return v("fetch",(0,o.pi)((0,o.pi)({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw v("fetch",(0,o.pi)((0,o.pi)({},r),{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(!(0,f.Bf)())return;var e=d.onpopstate;function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=t.length>2?t[2]:void 0;if(o){var i=r,a=String(o);r=a,v("history",{from:i,to:a})}return e.apply(this,t)}}d.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=d.location.href,i=r;if(r=o,v("history",{from:i,to:o}),e)try{return e.apply(this,t)}catch(e){}},(0,u.hl)(d.history,"pushState",t),(0,u.hl)(d.history,"replaceState",t)}();break;case"error":_=d.onerror,d.onerror=function(e,t,n,r,o){return v("error",{column:r,error:o,line:n,msg:e,url:t}),!!_&&_.apply(this,arguments)};break;case"unhandledrejection":S=d.onunhandledrejection,d.onunhandledrejection=function(e){return v("unhandledrejection",e),!S||S.apply(this,arguments)};break;default:return void(i.h&&s.kg.warn("unknown instrumentation type:",e))}}function g(e,t){p[e]=p[e]||[],p[e].push(t),m(e)}function v(e,t){var n,r;if(e&&p[e])try{for(var a=(0,o.XA)(p[e]||[]),l=a.next();!l.done;l=a.next()){var u=l.value;try{u(t)}catch(t){i.h&&s.kg.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+(0,c.$P)(u)+"\nError:",t)}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}function y(e){return void 0===e&&(e=[]),"Request"in d&&(0,l.V9)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function b(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in d&&(0,l.V9)(e[0],Request)?e[0].url:String(e[0])}var w,x;function E(e,t){return void 0===t&&(t=!1),function(n){if(n&&x!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===w||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(x,n))&&(e({event:n,name:r,global:t}),x=n),clearTimeout(w),w=d.setTimeout((function(){w=void 0}),1e3)}}}var _=null;var S=null},67597:function(e,t,n){"use strict";n.d(t,{VZ:function(){return o},VW:function(){return a},TX:function(){return l},fm:function(){return s},HD:function(){return u},pt:function(){return c},PO:function(){return f},cO:function(){return d},kK:function(){return p},Kj:function(){return h},J8:function(){return m},Cy:function(){return g},i2:function(){return v},V9:function(){return y}});var r=Object.prototype.toString;function o(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function i(e,t){return r.call(e)==="[object "+t+"]"}function a(e){return i(e,"ErrorEvent")}function l(e){return i(e,"DOMError")}function s(e){return i(e,"DOMException")}function u(e){return i(e,"String")}function c(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function f(e){return i(e,"Object")}function d(e){return"undefined"!=typeof Event&&y(e,Event)}function p(e){return"undefined"!=typeof Element&&y(e,Element)}function h(e){return i(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function g(e){return f(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"==typeof e&&e!=e}function y(e,t){try{return e instanceof t}catch(e){return!1}}},12343:function(e,t,n){"use strict";n.d(t,{RU:function(){return s},Cf:function(){return u},kg:function(){return r}});var r,o=n(70655),i=n(88795),a=n(82991),l=(0,a.R)(),s=["debug","info","warn","error","log","assert"];function u(e){var t=(0,a.R)();if(!("console"in t))return e();var n=t.console,r={};s.forEach((function(e){var o=n[e]&&n[e].__sentry_original__;e in t.console&&o&&(r[e]=n[e],n[e]=o)}));try{return e()}finally{Object.keys(r).forEach((function(e){n[e]=r[e]}))}}function c(){var e=!1,t={enable:function(){e=!0},disable:function(){e=!1}};return i.h?s.forEach((function(n){t[n]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e&&u((function(){var e;(e=l.console)[n].apply(e,(0,o.fl)(["Sentry Logger ["+n+"]:"],t))}))}})):s.forEach((function(e){t[e]=function(){}})),t}r=i.h?(0,a.Y)("logger",c):c()},62844:function(e,t,n){"use strict";n.d(t,{DM:function(){return a},en:function(){return l},jH:function(){return u},Db:function(){return c},EG:function(){return f},YO:function(){return d}});var r=n(70655),o=n(82991),i=n(20535);function a(){var e=(0,o.R)(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function l(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function s(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function u(e){var t=e.message,n=e.event_id;if(t)return t;var r=s(e);return r?r.type&&r.value?r.type+": "+r.value:r.type||r.value||n||"<unknown>":n||"<unknown>"}function c(e,t,n){var r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function f(e,t){var n=s(e);if(n){var o=n.mechanism;if(n.mechanism=(0,r.pi)((0,r.pi)((0,r.pi)({},{type:"generic",handled:!0}),o),t),t&&"data"in t){var i=(0,r.pi)((0,r.pi)({},o&&o.data),t.data);n.mechanism.data=i}}}function d(e){if(e&&e.__sentry_captured__)return!0;try{(0,i.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}},72176:function(e,t,n){"use strict";function r(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(e,t){return e.require(t)}function i(t){var n;try{n=o(e,t)}catch(e){}try{var r=o(e,"process").cwd;n=o(e,r()+"/node_modules/"+t)}catch(e){}return n}n.d(t,{l$:function(){return o},KV:function(){return r},$y:function(){return i}}),e=n.hmd(e)},20535:function(e,t,n){"use strict";n.d(t,{hl:function(){return l},xp:function(){return s},$Q:function(){return u},HK:function(){return c},_j:function(){return f},Sh:function(){return d},zf:function(){return m},Jr:function(){return g}});var r=n(70655),o=n(58464),i=n(67597),a=n(57321);function l(e,t,n){if(t in e){var r=e[t],o=n(r);if("function"==typeof o)try{u(o,r)}catch(e){}e[t]=o}}function s(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function u(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,s(e,"__sentry_original__",t)}function c(e){return e.__sentry_original__}function f(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function d(e){var t=e;if((0,i.VZ)(e))t=(0,r.pi)({message:e.message,name:e.name,stack:e.stack},h(e));else if((0,i.cO)(e)){var n=e;t=(0,r.pi)({type:n.type,target:p(n.target),currentTarget:p(n.currentTarget)},h(n)),"undefined"!=typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=n.detail)}return t}function p(e){try{return(0,i.kK)(e)?(0,o.R)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function h(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function m(e,t){void 0===t&&(t=40);var n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,a.$G)(n[0],t);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:(0,a.$G)(o,t)}return""}function g(e){var t,n;if((0,i.PO)(e)){var o={};try{for(var a=(0,r.XA)(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value;void 0!==e[s]&&(o[s]=g(e[s]))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o}return Array.isArray(e)?e.map(g):e}},30360:function(e,t,n){"use strict";n.d(t,{pE:function(){return o},$P:function(){return a}});var r=n(70655);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.sort((function(e,t){return e[0]-t[0]})).map((function(e){return e[1]}));return function(e,t){var o,a,l,s;void 0===t&&(t=0);var u=[];try{for(var c=(0,r.XA)(e.split("\n").slice(t)),f=c.next();!f.done;f=c.next()){var d=f.value;try{for(var p=(l=void 0,(0,r.XA)(n)),h=p.next();!h.done;h=p.next()){var m=(0,h.value)(d);if(m){u.push(m);break}}}catch(e){l={error:e}}finally{try{h&&!h.done&&(s=p.return)&&s.call(p)}finally{if(l)throw l.error}}}}catch(e){o={error:e}}finally{try{f&&!f.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}return i(u)}}function i(e){if(!e.length)return[];var t=e,n=t[0].function||"",o=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==o.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return(0,r.pi)((0,r.pi)({},e),{filename:e.filename||t[0].filename,function:e.function||"?"})})).reverse()}function a(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}},57321:function(e,t,n){"use strict";n.d(t,{$G:function(){return o},nK:function(){return i},zC:function(){return a}});var r=n(67597);function o(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function i(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var o=e[r];try{n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function a(e,t){return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}},8823:function(e,t,n){"use strict";n.d(t,{Ak:function(){return a},Du:function(){return l},t$:function(){return s},hv:function(){return u},Bf:function(){return c}});var r=n(88795),o=n(82991),i=n(12343);function a(){if(!("fetch"in(0,o.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function l(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function s(){if(!a())return!1;var e=(0,o.R)();if(l(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s),s.contentWindow&&s.contentWindow.fetch&&(t=l(s.contentWindow.fetch)),n.head.removeChild(s)}catch(e){r.h&&i.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}function u(){if(!a())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}function c(){var e=(0,o.R)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}},96893:function(e,t,n){"use strict";n.d(t,{WD:function(){return o},$2:function(){return i},cW:function(){return a}});var r=n(67597);function o(e){return new a((function(t){t(e)}))}function i(e){return new a((function(t,n){n(e)}))}var a=function(){function e(e){var t=this;this._state=0,this._handlers=[],this._resolve=function(e){t._setResult(1,e)},this._reject=function(e){t._setResult(2,e)},this._setResult=function(e,n){0===t._state&&((0,r.J8)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._executeHandlers=function(){if(0!==t._state){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e[0]||(1===t._state&&e[1](t._value),2===t._state&&e[2](t._value),e[0]=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.then=function(t,n){var r=this;return new e((function(e,o){r._handlers.push([!1,function(n){if(t)try{e(t(n))}catch(e){o(e)}else e(n)},function(t){if(n)try{e(n(t))}catch(e){o(e)}else o(t)}]),r._executeHandlers()}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var o,i;return n.then((function(e){i=!1,o=e,t&&t()}),(function(e){i=!0,o=e,t&&t()})).then((function(){i?r(o):e(o)}))}))},e}()},21170:function(e,t,n){"use strict";n.d(t,{yW:function(){return s},ph:function(){return u},_I:function(){return c},Z1:function(){return f}});var r=n(82991),o=n(72176);e=n.hmd(e);var i={nowSeconds:function(){return Date.now()/1e3}};var a=(0,o.KV)()?function(){try{return(0,o.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=(0,r.R)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),l=void 0===a?i:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},s=i.nowSeconds.bind(i),u=l.nowSeconds.bind(l),c=u,f=function(){var e=(0,r.R)().performance;if(e&&e.now){var t=e.now(),n=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=o<36e5,a=e.timing&&e.timing.navigationStart,l="number"==typeof a?Math.abs(a+t-n):36e5;return i||l<36e5?o<=l?("timeOrigin",e.timeOrigin):("navigationStart",a):("dateNow",n)}"none"}()},99601:function(e,t){"use strict";t.Z=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return r(e[0],e[1])||null;var n=e.slice(1).reduce((function(e,t){return r(e,t)}),e[0]);return n||null};var n=new WeakMap;function r(e,t){if(e&&t){var r=n.get(e)||new WeakMap;n.set(e,r);var i=r.get(t)||function(n){o(e,n),o(t,n)};return r.set(t,i),i}return e||t}function o(e,t){"function"==typeof e?e(t):e.current=t}},9669:function(e,t,n){e.exports=n(51609)},55448:function(e,t,n){"use strict";var r=n(64867),o=n(36026),i=n(4372),a=n(15327),l=n(94097),s=n(84109),u=n(67985),c=n(85061);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,p=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+g)}var v=l(e.baseURL,e.url);function y(){if(h){var r="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,i={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};o(t,n,i),h=null}}if(h.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(n(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(v))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),f||(f=null),h.send(f)}))}},51609:function(e,t,n){"use strict";var r=n(64867),o=n(91849),i=n(30321),a=n(47185);function l(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var s=l(n(45655));s.Axios=i,s.create=function(e){return l(a(s.defaults,e))},s.Cancel=n(65263),s.CancelToken=n(14972),s.isCancel=n(26502),s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(16268),e.exports=s,e.exports.default=s},65263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},14972:function(e,t,n){"use strict";var r=n(65263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},26502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},30321:function(e,t,n){"use strict";var r=n(64867),o=n(15327),i=n(80782),a=n(13572),l=n(47185),s=n(54875),u=s.validators;function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=l(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&s.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var c=[a,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(i),o=Promise.resolve(e);c.length;)o=o.then(c.shift(),c.shift());return o}for(var f=e;n.length;){var d=n.shift(),p=n.shift();try{f=d(f)}catch(e){p(e);break}}try{o=a(f)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},c.prototype.getUri=function(e){return e=l(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(l(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(l(r||{},{method:e,url:t,data:n}))}})),e.exports=c},80782:function(e,t,n){"use strict";var r=n(64867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},94097:function(e,t,n){"use strict";var r=n(91793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},85061:function(e,t,n){"use strict";var r=n(80481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},13572:function(e,t,n){"use strict";var r=n(64867),o=n(18527),i=n(26502),a=n(45655);function l(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},80481:function(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},47185:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],l=["validateStatus"];function s(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=s(void 0,e[o])):n[o]=s(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=s(void 0,t[e]))})),r.forEach(i,u),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=s(void 0,e[o])):n[o]=s(void 0,t[o])})),r.forEach(l,(function(r){r in t?n[r]=s(e[r],t[r]):r in e&&(n[r]=s(void 0,e[r]))}));var c=o.concat(i).concat(a).concat(l),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,u),n}},36026:function(e,t,n){"use strict";var r=n(85061);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},18527:function(e,t,n){"use strict";var r=n(64867),o=n(45655);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},45655:function(e,t,n){"use strict";var r=n(64867),o=n(16016),i=n(80481),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n(55448)),s),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u},91849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},15327:function(e,t,n){"use strict";var r=n(64867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(o)&&l.push("path="+o),r.isString(i)&&l.push("domain="+i),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},91793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},16268:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},67985:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16016:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},84109:function(e,t,n){"use strict";var r=n(64867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},54875:function(e,t,n){"use strict";var r=n(20696),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=r.version.split(".");function l(e,t){for(var n=t?t.split("."):a,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&l(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,l){if(!1===e)throw new Error(a(r," has been removed in "+t));return o&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,l)}},e.exports={isOlderVersion:l,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var l=e[i],s=void 0===l||a(l,i,e);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},64867:function(e,t,n){"use strict";var r=n(91849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){s(t[r])&&s(n)?t[r]=e(t[r],n):s(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},20696:function(e){"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},32726:function(e,t,n){"use strict";var r=n(67294),o=n(73935),i=n(67121),a=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function s(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,a=t,c=[],f=c,d=!1;function p(){f===c&&(f=c.slice())}function h(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return p(),f.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,p();var n=f.indexOf(e);f.splice(n,1),c=null}}}function g(e){if(!s(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,a=o(a,e)}finally{d=!1}for(var t=c=f,n=0;n<t.length;n++){(0,t[n])()}return e}function v(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,g({type:l.REPLACE})}function y(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[i.Z]=function(){return this},e}return g({type:l.INIT}),(r={dispatch:g,subscribe:m,getState:h,replaceReducer:v})[i.Z]=y,r}function c(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function f(e,t){return function(){return t(e.apply(this,arguments))}}function d(e,t){if("function"==typeof e)return f(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=f(o,t))}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return m({},n,{dispatch:r=g.apply(void 0,i)(n.dispatch)})}}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var E=n(46314),_=n(82492),S=n(14176),O={INIT:"INIT",ADD_MODEL:"ADD_MODEL",ADD_RELATION:"ADD_RELATION",CHANGE_RELATION:"CHANGE_RELATION",REMOVE_RELATION:"REMOVE_RELATION",GET_DATA_BEGIN:"GET_DATA_BEGIN",GET_DATA_SUCCESS:"GET_DATA_SUCCESS",GET_DATA_FAILURE:"GET_DATA_FAILURE",GET_DATA_END:"GET_DATA_END",HAS_CHANGES:"HAS_CHANGES",IS_UPDATING:"IS_UPDATING",STOP_LOADING:"STOP_LOADING",SET_SETTING_VALUE:"SET_SETTING_VALUE",SET_MISC_VALUE:"SET_MISC_VALUE",OPEN_DRAWER:"OPENING DRAWER",CLOSE_DRAWER:"CLOSING DRAWER",groups:{ADD_RECORD:"ADDING GROUP RECORD",REMOVE_RECORD:"REMOVING GROUP RECORD",SET_KEY_VALUE:"SET KEY VALUE GROUPS",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS GROUPS"},buttons:{ADD_RECORD:"ADDING BUTTON RECORD",REMOVE_RECORD:"REMOVING BUTTON RECORD",SET_KEY_VALUE:"SET KEY VALUE BUTTONS",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS BUTTONS"},timeSchedules:{ADD_RECORD:"ADDING TIME SCHEDULE",REMOVE_RECORD:"REMOVING TIME SCHEDULE",SET_KEY_VALUE:"SET KEY VALUE TIMESCHEDULES",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS TIMESCHEDULES",ADD_TIMESCHEDULE:"ADD_TIMESCHEDULE",SET_WEEKDAY:"SET_WEEKDAY",ADD_EXCLUDED_DATE:"ADD_EXCLUDED_DATE",SET_EXCLUDED_DATE:"SET_EXCLUDED_DATE",REMOVE_EXCLUDED_DATE:"REMOVE_EXCLUDED_DATE"},pageRules:{ADD_RECORD:"ADDING PAGE RULE",REMOVE_RECORD:"REMOVING PAGE RULE",SET_KEY_VALUE:"SET KEY VALUE PAGERULES",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS PAGERULES",ADD_PAGE_RULE_GROUP:"ADD_PAGE_RULE_GROUP",REMOVE_PAGE_RULE_GROUP:"REMOVE_PAGE_RULE_GROUP",SET_PAGE_RULE_GROUP_TYPE:"SET_PAGE_RULE_GROUP_TYPE",ADD_PAGE_RULE_ROW:"ADD_PAGE_RULE_ROW",SET_PAGE_RULE_ROW:"SET_PAGE_RULE_ROW",REMOVE_PAGE_RULE_ROW:"REMOVE_PAGE_RULE_ROW"},wp:{GET_DATA_BEGIN:"GET_DATA_BEGIN_WP",GET_DATA_SUCCESS:"GET_DATA_SUCCESS_WP",GET_DATA_FAILURE:"GET_DATA_FAILURE_WP",GET_DATA_END:"GET_DATA_END_WP"},templates:{INIT:"INIT TEMPLATES",GET_DATA_BEGIN:"GET TEMPLATES DATA BEGIN",GET_DATA_FAILURE:"GET TEMPLATES DATA FAILURE",GET_DATA_END:"GET TEMPLATES DATA END",ADD_RECORD:"ADDING TEMPLATE"}},k=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],C="buttons",P="groups",T={MENU:"menu",SETTINGS:"settings",SETTINGS_PAGES:{analytics:"analytics",iconLibrary:"iconlibrary",preferences:"preferences",reset:"reset"},BUTTONIZER_TOUR:"buttonizertour",WELCOME_DIALOG:"welcome-splash",TIME_SCHEDULES:"timeschedules",PAGE_RULES:"pagerules"},A={normal_hover:{format:function(e,t){return[e,t].map((function(e){return"unset"===e||null==e?"":e})).filter((function(e,t,n){return 0===t||""!==e&&e!==n[0]})).join(";")||"unset"},parse:function(e){var t=e;return"boolean"==typeof e&&(t=String(e)),"number"==typeof e&&(t=String(e)),void 0===e?[]:("object"===x(e)&&e.length<=2&&(t=e.join(";")),"string"!=typeof t?(console.trace(),console.log(x(t),t),[]):t.split(";").map((function(e){if(e)return"true"===e||"false"!==e&&(isNaN(Number(e))?e:Number(e))})).map((function(e,t,n){return 0===t?e:e===n[0]?void 0:e})))}},fourSidesPx:{format:function(e,t,n,r){return"".concat(e,"px ").concat(t,"px ").concat(n,"px ").concat(r,"px")},parse:function(e){return e.match(/\d+/g)}},position:{format:function(e,t,n){return"".concat(e,": ").concat(n).concat(t)}}},j=["export_type","selected_page_rule","selected_schedule","id","parent","show_on_rule_trigger","show_on_schedule_trigger"],I={get buttonSettings(){var e={general:[],styling:[],advanced:[]};return Object.entries(E.button).map((function(t){_(e,y({},t[0],Object.entries(t[1]).map((function(e){return b(e,1)[0]}))))})),e},get groupSettings(){var e={general:[],styling:[],advanced:[]};return Object.entries(E.group).map((function(t){_(e,y({},t[0],Object.entries(t[1]).map((function(e){return b(e,1)[0]}))))})),e},get allSettings(){var e={general:[],styling:[],advanced:[]};return Object.entries(_({},E.button,E.group)).map((function(t){_(e,y({},t[0],Object.entries(t[1]).map((function(e){return b(e,1)[0]}))))})),e},get stylingNoGroup(){var e=this;return Object.entries(S(_({},E.button.styling,E.group.styling),(function(t,n){return e.groupSettings.styling.includes(n)&&e.buttonSettings.styling.includes(n)||n.includes("icon")}))).map((function(e){return b(e,1)[0]}))},get stylingHover(){return Object.entries(_({},E.button.styling,E.group.styling)).filter((function(e){return Array.isArray(e[1])})).map((function(e){return b(e,1)[0]}))}},R=n(9669),N=n.n(R);function D(e,t){M(),document.location.hash+="".concat(document.location.hash.match(/\/$/)?"":"/").concat(e).concat(t?"/"+t:"")}function M(){document.location.hash=document.location.hash.replace(/\/?(settings|menu|timeschedules|pagerules|buttonizertour).*$/i,"")}var L=new Map;function F(e){if(!e)return null;return"".concat(e.getDate(),"-").concat(function(e,t){for(var n=String(e);n.length<(t||2);)n="0"+n;return n}(e.getMonth()+1,2),"-").concat(e.getFullYear())}var z=function(){var e=buttonizer_admin.assets+"/templates/templates.json?buttonizer-icon-cache="+buttonizer_admin.version;return new Promise((function(t,n){L.has(e)&&t(L.get(e)),N()({url:e}).then((function(n){L.set(e,n.data),t(n.data)})).catch((function(e){return n({message:"Something went wrong",error:e})}))}))},B=n(71171),Z=n.n(B);function U(){return Array.apply(0,Array(15)).map((function(){return(e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789").charAt(Math.floor(Math.random()*e.length));var e})).join("")}var H=n(90484);function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var G=n(5991),V=n(63349),$=n(14665);function K(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,$.Z)(e,t)}function q(e,t){if(t&&("object"===(0,H.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,V.Z)(e)}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var X=n(96156),J=n(59968),Q=n(96410),ee=n(82961),te=n(28970);function ne(e){return(0,J.Z)(e)||(0,Q.Z)(e)||(0,ee.Z)(e)||(0,te.Z)()}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){(0,X.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ie={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},ae=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W(this,e),this.init(t,n)}return(0,G.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||ie,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,oe(oe({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}}]),e}()),le=function(){function e(){W(this,e),this.observers={}}return(0,G.Z)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function se(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function ue(e){return null==e?"":""+e}function ce(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function fe(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function de(e,t,n){var r=fe(e,t,Object);r.obj[r.k]=n}function pe(e,t){var n=fe(e,t),r=n.obj,o=n.k;if(r)return r[o]}function he(e,t,n){var r=pe(e,n);return void 0!==r?r:pe(t,n)}function me(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):me(e[r],t[r],n):e[r]=t[r]);return e}function ge(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var ve={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ye(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return ve[e]})):e}var be="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,we=[" ",",","?","!",";"];function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){(0,X.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function Se(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,l=r.slice(i,i+a).join(n),s=o[l];void 0===s&&r.length>i+a;)a++,s=o[l=r.slice(i,i+a).join(n)];if(void 0===s)return;if(t.endsWith(l)){if("string"==typeof s)return s;if(l&&"string"==typeof s[l])return s[l]}var u=r.slice(i+a).join(n);return u?Se(s,u,n):void 0}o=o[r[i]]}return o}}var Oe=function(e){K(n,e);var t=_e(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return W(this,n),r=t.call(this),be&&le.call((0,V.Z)(r)),r.data=e||{},r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return(0,G.Z)(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var l=pe(this.data,a);return l||!i||"string"!=typeof n?l:Se(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),de(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var l=pe(this.data,a)||{};r?me(l,n,o):l=Ee(Ee({},l),n),de(this.data,a,l),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?Ee(Ee({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(le),ke={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}};function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach((function(t){(0,X.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}var Ae={},je=function(e){K(n,e);var t=Te(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return W(this,n),r=t.call(this),be&&le.call((0,V.Z)(r)),ce(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,(0,V.Z)(r)),r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=ae.create("translator"),r}return(0,G.Z)(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=we.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var o=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}(e,n,r));if(i&&!a){var l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:o};var s=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),e=s.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,r){var o=this;if("object"!==(0,H.Z)(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],t),l=a.key,s=a.namespaces,u=s[s.length-1],c=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=t.nsSeparator||this.options.nsSeparator;return u+d+l}return l}var p=this.resolve(e,t),h=p&&p.res,m=p&&p.usedKey||l,g=p&&p.exactUsedKey||l,v=Object.prototype.toString.apply(h),y=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&x&&y.indexOf(v)<0&&("string"!=typeof b||"[object Array]"!==v)){if(!t.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,Pe(Pe({},t),{},{ns:s})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");if(i){var E="[object Array]"===v,_=E?[]:{},S=E?g:m;for(var O in h)if(Object.prototype.hasOwnProperty.call(h,O)){var k="".concat(S).concat(i).concat(O);_[O]=this.translate(k,Pe(Pe({},t),{joinArrays:!1,ns:s})),_[O]===k&&(_[O]=h[O])}h=_}}else if(w&&"string"==typeof b&&"[object Array]"===v)(h=h.join(b))&&(h=this.extendTranslation(h,e,t,r));else{var C=!1,P=!1,T=void 0!==t.count&&"string"!=typeof t.count,A=n.hasDefaultValue(t),j=T?this.pluralResolver.getSuffix(c,t.count,t):"",I=t["defaultValue".concat(j)]||t.defaultValue;!this.isValidLookup(h)&&A&&(C=!0,h=I),this.isValidLookup(h)||(P=!0,h=l);var R=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,N=R&&P?void 0:h,D=A&&I!==h&&this.options.updateMissing;if(P||C||D){if(this.logger.log(D?"updateKey":"missingKey",c,u,l,D?I:h),i){var M=this.resolve(l,Pe(Pe({},t),{},{keySeparator:!1}));M&&M.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var z=0;z<F.length;z++)L.push(F[z]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(t.lng||this.language):L.push(t.lng||this.language);var B=function(e,n,r){var i=A&&r!==h?r:N;o.options.missingKeyHandler?o.options.missingKeyHandler(e,u,n,i,D,t):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,u,n,i,D,t),o.emit("missingKey",e,u,n,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(n){B([e],l+n,t["defaultValue".concat(n)]||I)}))})):B(L,l,I))}h=this.extendTranslation(h,e,t,p,r),P&&h===l&&this.options.appendNamespaceToMissingKey&&(h="".concat(u,":").concat(l)),(P||C)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Pe(Pe({},n),{interpolation:Pe(Pe({},this.options.interpolation),n.interpolation)}));var a,l="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=Pe(Pe({},this.options.interpolation.defaultVariables),u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),l){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=ke.handle(d,e,t,this.options&&this.options.postProcessPassResolved?Pe({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,l),u=s.key;n=u;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==l.count&&"string"!=typeof l.count,d=f&&!l.ordinal&&0===l.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==l.context&&("string"==typeof l.context||"number"==typeof l.context)&&""!==l.context,h=l.lngs?l.lngs:a.languageUtils.toResolveHierarchy(l.lng||a.language,l.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!Ae["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(Ae["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(s,u,n,e,l);else{var c;f&&(c=a.pluralResolver.getSuffix(n,l.count,l));if(f&&(s.push(u+c),d&&s.push(u+"_zero")),p){var h="".concat(u).concat(a.options.contextSeparator).concat(l.context);s.push(h),f&&(s.push(h+c),d&&s.push(h+"_zero"))}}for(;i=s.pop();)a.isValidLookup(t)||(r=i,t=a.getResource(n,e,i,l))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}]),n}(le);function Ie(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Re=function(){function e(t){W(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ae.create("languageUtils")}return(0,G.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ie(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ie(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Ie(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),Ne=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],De={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Me=["v1","v2","v3"],Le={zero:0,one:1,two:2,few:3,many:4,other:5};function Fe(){var e={};return Ne.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:De[t.fc]}}))})),e}var ze=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W(this,e),this.languageUtils=t,this.options=n,this.logger=ae.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Fe()}return(0,G.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return Le[e]-Le[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!Me.includes(this.options.compatibilityJSON)}}]),e}();function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){(0,X.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ue=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};W(this,e),this.logger=ae.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,G.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:ye,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?ge(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?ge(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?ge(t.nestingPrefix):t.nestingPrefixEscaped||ge("$t("),this.nestingSuffix=t.nestingSuffix?ge(t.nestingSuffix):t.nestingSuffixEscaped||ge(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,l=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(l.formatSeparator)<0){var o=he(t,s,e);return l.alwaysFormat?l.format(o,void 0,n,Ze(Ze(Ze({},r),t),{},{interpolationkey:e})):o}var i=e.split(l.formatSeparator),a=i.shift().trim(),u=i.join(l.formatSeparator).trim();return l.format(he(t,s,a),u,n,Ze(Ze(Ze({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return l.escapeValue?u(l.escape(e)):u(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(i=c(n)))if("function"==typeof f){var s=f(e,o,r);i="string"==typeof s?s:""}else if(r&&r.hasOwnProperty(n))i="";else{if(d){i=o[0];continue}l.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),i=""}else"string"==typeof i||l.useRawValueToEscape||(i=ue(i));var u=t.safeValue(i);if(e=e.replace(o[0],u),d?(t.regex.lastIndex+=u.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=l.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Ze({},i);function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=Ze(Ze({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,u=!0}if((r=t(l.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=ue(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,Ze(Ze({},i),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){(0,X.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ge=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};W(this,e),this.logger=ae.create("formatter"),this.options=t,this.formats={number:function(e,t,n){return new Intl.NumberFormat(t,n).format(e)},currency:function(e,t,n){return new Intl.NumberFormat(t,We(We({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,We({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,We({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,We({},n)).format(e)}},this.init(t)}return(0,G.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"format",value:function(e,t,n,r){var o=this;return t.split(this.formatSeparator).reduce((function(e,t){var i=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);if("currency"===t&&o.indexOf(":")<0)n.currency||(n.currency=o.trim());else if("relativetime"===t&&o.indexOf(":")<0)n.range||(n.range=o.trim());else{o.split(";").forEach((function(e){if(e){var t=ne(e.split(":")),r=t[0],o=t.slice(1).join(":");"false"===o.trim()&&(n[r.trim()]=!1),"true"===o.trim()&&(n[r.trim()]=!0),isNaN(o.trim())||(n[r.trim()]=parseInt(o.trim(),10)),n[r.trim()]||(n[r.trim()]=o.trim())}}))}}return{formatName:t,formatOptions:n}}(t),a=i.formatName,l=i.formatOptions;if(o.formats[a]){var s=e;try{var u=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},c=u.locale||u.lng||r.locale||r.lng||n;s=o.formats[a](e,c,We(We(We({},l),r),u))}catch(e){o.logger.warn(e)}return s}return o.logger.warn("there was no format function for ".concat(a)),e}),e)}}]),e}();function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){(0,X.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}var qe=function(e){K(n,e);var t=Ke(n);function n(e,r,o){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return W(this,n),i=t.call(this),be&&le.call((0,V.Z)(i)),i.backend=e,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=ae.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return(0,G.Z)(n,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],l=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var l="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[l]=2:o.state[l]<0||(1===o.state[l]?a.indexOf(l)<0&&a.push(l):(o.state[l]=1,r=!1,a.indexOf(l)<0&&a.push(l),i.indexOf(l)<0&&i.push(l),s.indexOf(t)<0&&s.push(t)))})),r||l.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:l,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=fe(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(l,s){l&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(l,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,$e($e({},i),{},{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),n}(le);function Ye(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,H.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,H.Z)(e[2])||"object"===(0,H.Z)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Xe(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){(0,X.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function tt(){}function nt(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var rt=function(e){K(n,e);var t=et(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(W(this,n),e=t.call(this),be&&le.call((0,V.Z)(e)),e.options=Xe(r),e.services={},e.logger=ae,e.modules={external:[]},nt((0,V.Z)(e)),o&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,o),q(e,(0,V.Z)(e));setTimeout((function(){e.init(r,o)}),0)}return e}return(0,G.Z)(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=Ye();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=Qe(Qe(Qe({},r),this.options),Xe(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Qe(Qe({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var i;this.modules.logger?ae.init(o(this.modules.logger),this.options):ae.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=Ge);var a=new Re(this.options);this.store=new Oe(this.options.resources,this.options);var l=this.services;l.logger=ae,l.resourceStore=this.store,l.languageUtils=a,l.pluralResolver=new ze(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!i||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(l.formatter=o(i),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new Ue(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new qe(o(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(l.languageDetector=o(this.modules.languageDetector),l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=o(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new je(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=tt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var f=se(),d=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),f.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=se();return e||(e=this.languages),t||(t=this.options.ns),n||(n=tt),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&ke.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=se();this.emit("languageChanging",e);var o=function(e){if(n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<n.languages.length;t++){var r=n.languages[t];if(!(["cimode","dev"].indexOf(r)>-1)&&n.store.hasLanguageSomeTranslations(r)){n.resolvedLanguage=r;break}}},i=function(i){e||i||!n.services.languageDetector||(i=[]);var a="string"==typeof i?i:n.services.languageUtils.getBestMatchFromCodes(i);a&&(n.language||o(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,i){i?(o(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==(0,H.Z)(o)){for(var a=arguments.length,l=new Array(a>2?a-2:0),s=2;s<a;s++)l[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(l))}else i=Qe({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var u=r.options.keySeparator||".",c=n?"".concat(n).concat(u).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var l=n.precheck(this,a);if(void 0!==l)return l}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=se();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=se();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt,o=Qe(Qe(Qe({},this.options),t),{isClone:!0}),i=new n(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=Qe({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new je(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(le);(0,X.Z)(rt,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new rt(e,t)}));var ot=rt.createInstance();ot.createInstance=rt.createInstance;ot.createInstance,ot.init,ot.loadResources,ot.reloadResources,ot.use,ot.changeLanguage,ot.getFixedT,ot.t,ot.exists,ot.setDefaultNamespace,ot.hasLoadedNamespace,ot.loadNamespaces,ot.loadLanguages;var it=ot;function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return it.t(e,t)}function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(n),!0).forEach((function(t){ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ct={resolve:null,endpoint:null,data:null};function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t.url=buttonizer_admin.api+e,buttonizer_admin.is_stand_alone){t.withCredentials=!0;var o=buttonizer_admin.external_session?"x-external-authorization":"Authorization";t.headers={},t.headers[o]="Bearer ".concat(buttonizer_admin.auth)}else t.headers={"X-WP-Nonce":buttonizer_admin.nonce};return t.withCredentials=!0,new Promise((function(o,i){N()(t).then((function(e){return o(e)})).catch((function(a){if(!n&&a.response&&401===a.response.status)return app.standAloneEvent&&app.standAloneEvent("unauthenticated"),r?void i("wait-for-auth"):void(ct={resolve:o,endpoint:e,data:t});app.standAloneEvent&&app.standAloneEvent("unauthenticated"),i(a)}))}))}function dt(){if(!ct.resolve)throw new Error(ct);return new Promise((function(e,t){ft(ct.endpoint,ct.data,!1,!0).then((function(t){ct.resolve(t),e()})).catch((function(e){return t(e)}))}))}function pt(e){var t=e,n={},r={};t.groups.map((function(e){var t=ht(e.data);t.children=[],Object.keys(e.buttons).map((function(r){var o=ht(e.buttons[r]);o.parent=t.id,n[o.id]=o,t.children.push(o.id)})),r[t.id]=t}));var o={},i={};return t.time_schedules&&t.time_schedules.map((function(e){o[e.id]={id:e.id,name:e.name||at("time_schedules.single_name"),weekdays:e.weekdays||k.map((function(e){return{opened:!0,open:"8:00",close:"17:00",weekday:e}})),start_date:e.start_date||F(new Date),end_date:e.end_date||null,dates:e.dates||[]}})),t.page_rules&&t.page_rules.map((function(e){i[e.id]={id:e.id,name:e.name||"Unnamed pagerule",type:e.type||"and",groups:e.groups||[{rules:e.rules||[]}]}})),{hasChanges:t.changes,buttons:n,groups:r,timeSchedules:o,pageRules:i,settings:t.settings,premium:t.premium,premium_code:t.premium_code,version:t.version,wordpress:t.wordpress,info:t.info,is_opt_in:t.is_opt_in,latest_tour_update:t.latest_tour_update,identifier:t.identifier?t.identifier:null,additional_permissions:t.additional_permissions,domain:t.domain}}function ht(e){return e&&void 0!==e.id?e:st(st({},e),{},{id:Z()()})}function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{type:O.ADD_RELATION,payload:{button_id:e,group_id:t,index:n}}}function gt(e,t,n,r){return{type:O.CHANGE_RELATION,payload:{button_id:e,old_group_id:t,new_group_id:n,button_index:r}}}function vt(e,t){return{type:O.REMOVE_RELATION,payload:{button_id:e,group_id:t}}}var yt=function(e,t,n,r){return Array.isArray(r)?{type:O[e].SET_KEY_FORMAT,payload:{id:t,format:"normal_hover",key:n,values:r}}:{type:O[e].SET_KEY_VALUE,payload:{id:t,key:n,value:r}}},bt=function(e,t){return{type:O.SET_SETTING_VALUE,payload:{setting:e,value:t}}},wt=function(e,t){return{type:O.SET_MISC_VALUE,payload:{setting:e,value:t}}};function xt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{type:O[t].ADD_RECORD,payload:{record:ht(e),index:n}}}function Et(e,t){return{type:O[t].REMOVE_RECORD,payload:{model_id:e}}}function _t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState();if(!t.groups[e].children)return null;var n=t.groups[e].children,r=t.buttons,o={};return Object.keys(r).map((function(e){n.includes(e)&&(o[e]=r[e])})),o}function St(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hr.getState();if(!e)return null;var n=t.buttons,r={};return Object.keys(n).map((function(t){e.includes(t)&&e.map((function(e,o){e===t&&(r[o]=n[t])}))})),r}function Ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState();return t.groups&&t.groups[e]?t.groups[e].children.length:0}function kt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.store.getState();return e.groups?Object.keys(e.groups).length:0}function Ct(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Pt(e){return!!e&&!!e[gn]}function Tt(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===vn}(e)||Array.isArray(e)||!!e[mn]||!!e.constructor[mn]||Mt(e)||Lt(e))}function At(e,t,n){void 0===n&&(n=!1),0===jt(e)?(n?Object.keys:yn)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function jt(e){var t=e[gn];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Mt(e)?2:Lt(e)?3:0}function It(e,t){return 2===jt(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Rt(e,t){return 2===jt(e)?e.get(t):e[t]}function Nt(e,t,n){var r=jt(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Dt(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Mt(e){return fn&&e instanceof Map}function Lt(e){return dn&&e instanceof Set}function Ft(e){return e.o||e.t}function zt(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=bn(e);delete t[gn];for(var n=yn(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Bt(e,t){return void 0===t&&(t=!1),Ut(e)||Pt(e)||!Tt(e)||(jt(e)>1&&(e.set=e.add=e.clear=e.delete=Zt),Object.freeze(e),t&&At(e,(function(e,t){return Bt(t,!0)}),!0)),e}function Zt(){Ct(2)}function Ut(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Ht(e){var t=wn[e];return t||Ct(18,e),t}function Wt(){return un}function Gt(e,t){t&&(Ht("Patches"),e.u=[],e.s=[],e.v=t)}function Vt(e){$t(e),e.p.forEach(qt),e.p=null}function $t(e){e===un&&(un=e.l)}function Kt(e){return un={p:[],l:un,h:e,m:!0,_:0}}function qt(e){var t=e[gn];0===t.i||1===t.i?t.j():t.O=!0}function Yt(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Ht("ES5").S(t,e,r),r?(n[gn].P&&(Vt(t),Ct(4)),Tt(e)&&(e=Xt(t,e),t.l||Qt(t,e)),t.u&&Ht("Patches").M(n[gn],e,t.u,t.s)):e=Xt(t,n,[]),Vt(t),t.u&&t.v(t.u,t.s),e!==hn?e:void 0}function Xt(e,t,n){if(Ut(t))return t;var r=t[gn];if(!r)return At(t,(function(o,i){return Jt(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Qt(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=zt(r.k):r.o;At(3===r.i?new Set(o):o,(function(t,i){return Jt(e,r,o,t,i,n)})),Qt(e,o,!1),n&&e.u&&Ht("Patches").R(r,n,e.u,e.s)}return r.o}function Jt(e,t,n,r,o,i){if(Pt(o)){var a=Xt(e,o,i&&t&&3!==t.i&&!It(t.D,r)?i.concat(r):void 0);if(Nt(n,r,a),!Pt(a))return;e.m=!1}if(Tt(o)&&!Ut(o)){if(!e.h.F&&e._<1)return;Xt(e,o),t&&t.A.l||Qt(e,o)}}function Qt(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Bt(t,n)}function en(e,t){var n=e[gn];return(n?Ft(n):e)[t]}function tn(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function nn(e){e.P||(e.P=!0,e.l&&nn(e.l))}function rn(e){e.o||(e.o=zt(e.t))}function on(e,t,n){var r=Mt(t)?Ht("MapSet").N(t,n):Lt(t)?Ht("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Wt(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=xn;n&&(o=[r],i=En);var a=Proxy.revocable(o,i),l=a.revoke,s=a.proxy;return r.k=s,r.j=l,s}(t,n):Ht("ES5").J(t,n);return(n?n.A:Wt()).p.push(r),r}function an(e){return Pt(e)||Ct(22,e),function e(t){if(!Tt(t))return t;var n,r=t[gn],o=jt(t);if(r){if(!r.P&&(r.i<4||!Ht("ES5").K(r)))return r.t;r.I=!0,n=ln(t,o),r.I=!1}else n=ln(t,o);return At(n,(function(t,o){r&&Rt(r.t,t)===o||Nt(n,t,e(o))})),3===o?new Set(n):n}(e)}function ln(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return zt(e)}var sn,un,cn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),fn="undefined"!=typeof Map,dn="undefined"!=typeof Set,pn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,hn=cn?Symbol.for("immer-nothing"):((sn={})["immer-nothing"]=!0,sn),mn=cn?Symbol.for("immer-draftable"):"__$immer_draftable",gn=cn?Symbol.for("immer-state"):"__$immer_state",vn=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),yn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,bn=Object.getOwnPropertyDescriptors||function(e){var t={};return yn(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},wn={},xn={get:function(e,t){if(t===gn)return e;var n=Ft(e);if(!It(n,t))return function(e,t,n){var r,o=tn(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Tt(r)?r:r===en(e.t,t)?(rn(e),e.o[t]=on(e.A.h,r,e)):r},has:function(e,t){return t in Ft(e)},ownKeys:function(e){return Reflect.ownKeys(Ft(e))},set:function(e,t,n){var r=tn(Ft(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=en(Ft(e),t),i=null==o?void 0:o[gn];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(Dt(n,o)&&(void 0!==n||It(e.t,t)))return!0;rn(e),nn(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==en(e.t,t)||t in e.t?(e.D[t]=!1,rn(e),nn(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Ft(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Ct(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ct(12)}},En={};At(xn,(function(e,t){En[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),En.deleteProperty=function(e,t){return xn.deleteProperty.call(this,e[0],t)},En.set=function(e,t,n){return xn.set.call(this,e[0],t,n,e[0])};var _n=new(function(){function e(e){var t=this;this.g=pn,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&Ct(6),void 0!==r&&"function"!=typeof r&&Ct(7),Tt(e)){var l=Kt(t),s=on(t,e,void 0),u=!0;try{a=n(s),u=!1}finally{u?Vt(l):$t(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Gt(l,r),Yt(e,l)}),(function(e){throw Vt(l),e})):(Gt(l,r),Yt(a,l))}if(!e||"object"!=typeof e){if((a=n(e))===hn)return;return void 0===a&&(a=e),t.F&&Bt(a,!0),a}Ct(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Tt(e)||Ct(8),Pt(e)&&(e=an(e));var t=Kt(this),n=on(this,e,void 0);return n[gn].C=!0,$t(t),n},t.finishDraft=function(e,t){var n=(e&&e[gn]).A;return Gt(n,t),Yt(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!pn&&Ct(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var o=Ht("Patches").$;return Pt(e)?o(e,t):this.produce(e,(function(e){return o(e,t.slice(n+1))}))},e}()),Sn=_n.produce,On=(_n.produceWithPatches.bind(_n),_n.setAutoFreeze.bind(_n),_n.setUseProxies.bind(_n),_n.applyPatches.bind(_n),_n.createDraft.bind(_n),_n.finishDraft.bind(_n),Sn);function kn(e){return{type:O.HAS_CHANGES,payload:{hasChanges:e}}}function Cn(e){return{type:O.IS_UPDATING,payload:{isUpdating:e}}}function Pn(){return{type:O.STOP_LOADING}}var Tn=n(70655),An=n(36879);function jn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=(0,An.Gd)();if(r&&r[e])return r[e].apply(r,(0,Tn.fl)(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function In(e,t){return jn("captureException",e,{captureContext:t,originalException:e,syntheticException:new Error("Sentry syntheticException")})}function Rn(e){jn("withScope",e)}function Nn(e,t){try{document.querySelector(".buttonizer-preview iframe").contentWindow.postMessage({eventType:"buttonizer",messageType:"preview-reload",message:{force:e,newGroupId:t}},document.location.origin)}catch(e){console.log("Buttonizer tried to auto update the Buttonizer Buttons. But the message didn't came through. Well. Doesn't matter, it's just an extra function. It's nice to have."),console.error(e),In(e),document.querySelector(".buttonizer-preview iframe").contentWindow.location.reload()}}var Dn=n(82492),Mn=n.n(Dn),Ln=n(18446),Fn=n.n(Ln);function zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"enqueue",value:function(e){var t=this;return new Promise((function(n,r){t.queue.push({promise:e,resolve:n,reject:r}),t.dequeue()}))}},{key:"dequeue",value:function(){var e=this;if(this.workingOnPromise)return!1;var t=this.queue.shift();if(!t)return!1;try{this.workingOnPromise=!0,hr.dispatch(Cn(!0)),t.promise().then((function(n){e.workingOnPromise=!1,t.resolve(n),e.dequeue()})).catch((function(n){e.workingOnPromise=!1,t.reject(n),e.dequeue()}))}catch(e){this.workingOnPromise=!1,t.reject(e),this.dequeue()}return!0}}],(n=null)&&zn(t.prototype,n),r&&zn(t,r),e}();Bn(Zn,"queue",[]),Bn(Zn,"workingOnPromise",!1);var Un=n(91966),Hn=n.n(Un),Wn=setTimeout((function(){})),Gn={};function Vn(){clearTimeout(Wn),Wn=setTimeout((function(){var e,t,n,r=Mn()({},Gn);(Gn=hr.getState(),Fn()(r,{})||Fn()(Gn,{})||Fn()(r,Gn)||!r.misc.loading.loaded||!Gn.misc.loading.loaded)||(Fn()(r.buttons,Gn.buttons)&&Fn()(r.groups,Gn.groups)||Zn.enqueue($n((e=hr.getState().groups,t=Object.values(e),n=[],t.forEach((function(e){var t=On(e,(function(e){delete e.children})),r=Object.values(St(e.children)),o=[];r.forEach((function(e){var t=On(e,(function(e){delete e.parent}));o.push(t)})),0===o.length&&(o=[{name:"Button",show_mobile:"true",show_desktop:"true"}]),n.push({data:t,buttons:o})})),n),"/buttons",!1,Hn()(Object.keys(Gn.groups),Object.keys(r.groups))[0])),Fn()(r.settings,Gn.settings)||(Zn.enqueue($n(hr.getState().settings,"/settings",!0)),r.settings.icon_library===Gn.settings.icon_library&&r.settings.icon_library_version===Gn.settings.icon_library_version&&r.settings.icon_library_code===Gn.settings.icon_library_code&&r.settings.import_icon_library===Gn.settings.import_icon_library||Zn.enqueue((function(){return new Promise((function(e){var t;null!=(t=document.querySelector(".buttonizer-preview iframe"))&&(t.contentWindow&&t.contentWindow.location?t.contentWindow.location.reload():t.src=t.src),e()}))}))))}),1500)}var $n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=function(e){e&&e.request?hr.dispatch(Cn({status:e.request.status,statusText:e.request.statusText?e.request.statusText:"Unknown",message:e.request.response?JSON.parse(e.request.response).message?JSON.parse(e.request.response).message:e.request.response:e.message})):hr.dispatch(Cn("failed")),console.error("Something went wrong trying to update this model: \n",e),In(e)};return function(){return ft(t,{method:"POST",data:{nonce:buttonizer_admin.is_stand_alone?void 0:buttonizer_admin.nonce,data:e}}).then((function(e){var t=e.data;app.setHasChanges(!0),null!==t&&"success"===t.status?(hr.dispatch(Cn(!1)),Nn(n,r)):o()})).catch(o)}},Kn={loading:{posts:!1,pages:!1,categories:!1,roles:!1},loaded:{posts:!1,pages:!1,categories:!1,roles:!1},data:{posts:[],pages:[],categories:[],roles:[]}};var qn={loading:{},drawer:""};var Yn={isUpdating:!1};function Xn(e){return function(e){if(Array.isArray(e))return Jn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Jn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qn(Object(n),!0).forEach((function(t){tr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nr(e){return function(e){if(Array.isArray(e))return rr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return rr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var or={buttons:{},groups:{},timeSchedules:{},settings:{},pageRules:{},_premium:!1};var ir={templates:[],settings:{loading:!1,error:null,loaded:!1}};function ar(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function lr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ar(i,r,o,a,l,"next",e)}function l(e){ar(i,r,o,a,l,"throw",e)}a(void 0)}))}}var sr=[O.groups.SET_KEY_VALUE,O.groups.SET_KEY_FORMAT,O.buttons.SET_KEY_VALUE,O.buttons.SET_KEY_FORMAT],ur=[O.groups.ADD_RECORD,O.groups.REMOVE_RECORD,O.buttons.ADD_RECORD,O.buttons.REMOVE_RECORD,O.CHANGE_RELATION],cr={};function fr(){return(fr=lr(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.type,r=t.payload,-1!==sr.indexOf(n)||-1!==ur.indexOf(n)){e.next=3;break}return e.abrupt("return");case 3:if(!(ur.indexOf(n)>=0)){e.next=6;break}return dr("full-reload-required"),e.abrupt("return");case 6:clearTimeout(cr[r.key]),cr[r.key]=setTimeout((function(){var e=r.format&&"normal_hover"===r.format?A.normal_hover.format(r.values[0],r.values[1]):r.value;dr("preview-data-update",{model:n===O.groups.SET_KEY_VALUE||n===O.groups.SET_KEY_FORMAT?"group":"button",id:r.id,key:r.key,value:e})}),500);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=document.querySelector(".buttonizer-preview iframe");n&&n.contentWindow.postMessage({eventType:"buttonizer",messageType:e,message:t},document.location.origin)}var pr=u(function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:l.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+l.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},l=0;l<a.length;l++){var s=a[l],u=n[s],f=e[s],d=u(f,t);if(void 0===d){var p=c(s,t);throw new Error(p)}o[s]=d,r=r||d!==f}return(r=r||a.length!==Object.keys(e).length)?o:e}}({saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yn,t=arguments.length>1?arguments[1]:void 0;return Sn(e,(function(e){Object.values(O.buttons).includes(t.type)||Object.values(O.groups).includes(t.type)||Object.values(O.pageRules).includes(t.type)||Object.values(O.timeSchedules).includes(t.type)||O.SET_SETTING_VALUE===t.type||t.type===O.IS_UPDATING&&(e.isUpdating=t.payload.isUpdating)}))},wp:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kn,t=arguments.length>1?arguments[1]:void 0;return t.type===O.INIT?Kn:Sn(e,(function(e){switch(t.type){case O.wp.GET_DATA_BEGIN:e.loading[t.payload.type]=!0;break;case O.wp.GET_DATA_END:e.loading[t.payload.type]=!1;break;case O.wp.GET_DATA_FAILURE:console.error(t.payload.error);break;case O.wp.GET_DATA_SUCCESS:e.data[t.payload.type]=t.payload.data,e.loaded[t.payload.type]=!0}}))},timeSchedules:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===O.INIT?t.payload.timeSchedules:On(e,(function(e){switch(t.type){case O.timeSchedules.ADD_RECORD:e[t.payload.record.id]=t.payload.record;break;case O.timeSchedules.REMOVE_RECORD:delete e[t.payload.id];break;case O.timeSchedules.SET_KEY_VALUE:e[t.payload.id][t.payload.key]=t.payload.value;break;case O.timeSchedules.SET_WEEKDAY:e[t.payload.id].weekdays[t.payload.weekdayKey][t.payload.key]=t.payload.value;break;case O.timeSchedules.ADD_EXCLUDED_DATE:e[t.payload.id].dates.push({opened:!0,open:"8:00",close:"17:00",date:F(new Date)});break;case O.timeSchedules.SET_EXCLUDED_DATE:e[t.payload.id].dates[t.payload.dateKey][t.payload.key]=t.payload.value;break;case O.timeSchedules.REMOVE_EXCLUDED_DATE:e[t.payload.id].dates.splice(t.payload.dateKey,1)}}))},pageRules:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===O.INIT?t.payload.pageRules:On(e,(function(e){switch(t.type){case O.pageRules.ADD_RECORD:e[t.payload.record.id]=t.payload.record;break;case O.pageRules.REMOVE_RECORD:delete e[t.payload.id];break;case O.pageRules.SET_KEY_VALUE:e[t.payload.id][t.payload.key]=t.payload.value;break;case O.pageRules.ADD_PAGE_RULE_GROUP:e[t.payload.id].groups.push({type:"and",rules:[]});break;case O.pageRules.REMOVE_PAGE_RULE_GROUP:e[t.payload.id].groups.splice(t.payload.groupKey,1);break;case O.pageRules.SET_PAGE_RULE_GROUP_TYPE:e[t.payload.id].groups[t.payload.groupKey].type=t.payload.type;break;case O.pageRules.ADD_PAGE_RULE_ROW:e[t.payload.id].groups[t.payload.groupRowKey].rules.push({type:"page_title",value:"",operator:"contains"});break;case O.pageRules.SET_PAGE_RULE_ROW:e[t.payload.id].groups[t.payload.groupRowKey].rules[t.payload.ruleRowKey][t.payload.key]=t.payload.value;break;case O.pageRules.REMOVE_PAGE_RULE_ROW:e[t.payload.id].groups[t.payload.groupRowKey].rules.splice(t.payload.ruleRowKey,1)}}))},groups:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===O.INIT)return t.payload.groups;if(t.type===O.groups.ADD_RECORD&&"string"!=typeof t.payload.index){var n=er(er({},e),{},tr({},t.payload.record.id,t.payload.record)),r=Object.keys(e);return r.splice(t.payload.index,0,t.payload.record.id),r.reduce((function(e,t){return e[t]=n[t],e}),{})}return Sn(e,(function(e){switch(t.type){case O.groups.ADD_RECORD:e[t.payload.record.id]=t.payload.record;break;case O.groups.REMOVE_RECORD:delete e[t.payload.model_id];break;case O.groups.SET_KEY_VALUE:if("unset"===t.payload.value){void 0!==e[t.payload.id][t.payload.key]&&delete e[t.payload.id][t.payload.key];break}e[t.payload.id][t.payload.key]=t.payload.value;break;case O.groups.SET_KEY_FORMAT:var n=A[t.payload.format];if(!n)break;var r=n.format.apply(n,Xn(t.payload.values));if("unset"===r){void 0!==e[t.payload.id][t.payload.key]&&delete e[t.payload.id][t.payload.key];break}e[t.payload.id][t.payload.key]=r;break;case O.ADD_RELATION:if(e[t.payload.group_id].children=e[t.payload.group_id].children||[],"string"!=typeof t.payload.index){e[t.payload.group_id].children.splice(t.payload.index,0,t.payload.button_id);break}e[t.payload.group_id].children.push(t.payload.button_id);break;case O.CHANGE_RELATION:var o=e[t.payload.old_group_id].children.indexOf(t.payload.button_id);e[t.payload.old_group_id].children.splice(o,1),0===e[t.payload.old_group_id].children.length&&delete e[t.payload.old_group_id],e[t.payload.new_group_id].children.splice(t.payload.button_index,0,t.payload.button_id);break;case O.REMOVE_RELATION:var i=e[t.payload.group_id].children.indexOf(t.payload.button_id);e[t.payload.group_id].children.splice(i,1)}}))},buttons:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:or,t=arguments.length>1?arguments[1]:void 0;return t.type===O.INIT?t.payload.buttons:Sn(e,(function(e){switch(t.type){case O.buttons.ADD_RECORD:e[t.payload.record.id]=t.payload.record;break;case O.buttons.REMOVE_RECORD:delete e[t.payload.model_id];break;case O.buttons.SET_KEY_VALUE:if("unset"===t.payload.value){void 0!==e[t.payload.id][t.payload.key]&&delete e[t.payload.id][t.payload.key];break}e[t.payload.id][t.payload.key]=t.payload.value;break;case O.buttons.SET_KEY_FORMAT:var n=A[t.payload.format];if(!n)break;var r=n.format.apply(n,nr(t.payload.values));if("unset"===r){void 0!==e[t.payload.id][t.payload.key]&&delete e[t.payload.id][t.payload.key];break}e[t.payload.id][t.payload.key]=r;break;case O.ADD_RELATION:e[t.payload.button_id].parent=t.payload.group_id;break;case O.CHANGE_RELATION:e[t.payload.button_id].parent=t.payload.new_group_id;break;case O.REMOVE_RELATION:e[t.payload.button_id].parent=null;break;default:return e}}))},misc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qn,t=arguments.length>1?arguments[1]:void 0;return On(e,(function(e){switch(t.type){case O.INIT:var n=t.payload.wordpress?t.payload.wordpress:t.payload.info;e.frameUrl=n.base+"?buttonizer-preview=1".concat(t.payload.identifier?"&identifier=".concat(t.payload.identifier):""),e.loading.loadingIframe=!0,e.loading.showLoading=!0,e.loading.loadingString="loading.website",e.hasChanges="1"===t.payload.hasChanges,e.loading.loaded=!0,e.wordpress=t.payload.wordpress,e._premium=t.payload.premium,e.is_opt_in=t.payload.is_opt_in,e.latest_tour_update=t.payload.latest_tour_update,e.additional_permissions=t.payload.additional_permissions,e._premiumCode=t.payload.premium_code,e.domain=t.payload.info?t.payload.info.domain:null,e.returnUrl=t.payload.info?t.payload.info.home_link:null,e.subscriptionUrl=t.payload.info?t.payload.info.subscription_link:null,e.visitCounter=t.payload.info?t.payload.info.visit_counter:null,e.planVisitLimit=t.payload.info?t.payload.info.visitor_limit:null,e.identifier=t.payload.identifier?t.payload.identifier:null;break;case O.GET_DATA_BEGIN:e.loading.showLoading=!0,e.loading.loadingString="loading.loading";break;case O.GET_DATA_SUCCESS:e.loading.showLoading=!1,e.loading.fetchError=null,e.loading.loaded=!0;break;case O.GET_DATA_FAILURE:e.loading.showLoading=!1,e.loading.fetchError=t.payload.error,console.error(t.payload.error);break;case O.HAS_CHANGES:e.hasChanges=t.payload.hasChanges;break;case O.STOP_LOADING:e.loading.showLoading=!1,e.loading.loadingSlowWebsite=!1,e.loading.loadingIframe=!1;break;case O.SET_MISC_VALUE:e[t.payload.setting]=t.payload.value}}))},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===O.INIT?t.payload.settings:On(e,(function(e){switch(t.type){case O.SET_SETTING_VALUE:"can_send_errors"===t.payload.setting&&"undefined"!=typeof buttonizer_admin&&(buttonizer_admin.can_send_errors=t.payload.value),e[t.payload.setting]=t.payload.value}}))},templates:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ir,t=arguments.length>1?arguments[1]:void 0;return On(e,(function(e){switch(t.type){case O.templates.INIT:e.templates=t.payload.data,e.settings.loaded=!0;break;case O.templates.GET_DATA_BEGIN:e.settings.loading=!0;break;case O.templates.GET_DATA_FAILURE:e.settings.error=t.payload.error;break;case O.templates.GET_DATA_END:e.settings.loading=!1;break;case O.templates.ADD_RECORD:e.templates.push(t.payload.template)}}))}}),v((function(){return function(e){return function(t){return function(e){fr.apply(this,arguments)}(t),e(t)}}})));pr.add=function(e,t){return pr.dispatch(xt(e,t))},pr.subscribe(Vn);var hr=pr,mr=n(81253),gr=n(22122),vr=n(45697),yr=n.n(vr),br=n(86010),wr=n(14670),xr=n(59693),Er=n(17294),_r=n(55192),Sr=n(24896),Or=n(78927),kr=n(19756),Cr=n(41788),Pr=r.createContext(null);function Tr(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function Ar(e,t,n){return null!=n[t]?n[t]:e.props[t]}function jr(e,t,n){var o=Tr(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,o);return Object.keys(i).forEach((function(a){var l=i[a];if((0,r.isValidElement)(l)){var s=a in t,u=a in o,c=t[a],f=(0,r.isValidElement)(c)&&!c.props.in;!u||s&&!f?u||!s||f?u&&s&&(0,r.isValidElement)(c)&&(i[a]=(0,r.cloneElement)(l,{onExited:n.bind(null,l),in:c.props.in,exit:Ar(l,"exit",e),enter:Ar(l,"enter",e)})):i[a]=(0,r.cloneElement)(l,{in:!1}):i[a]=(0,r.cloneElement)(l,{onExited:n.bind(null,l),in:!0,exit:Ar(l,"exit",e),enter:Ar(l,"enter",e)})}})),i}var Ir=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Rr=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,V.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,Cr.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,o,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,o=a,Tr(n.children,(function(e){return(0,r.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:Ar(e,"appear",n),enter:Ar(e,"enter",n),exit:Ar(e,"exit",n)})}))):jr(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=Tr(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,gr.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=(0,kr.Z)(e,["component","childFactory"]),i=this.state.contextValue,a=Ir(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.createElement(Pr.Provider,{value:i},a):r.createElement(Pr.Provider,{value:i},r.createElement(t,o,a))},t}(r.Component);Rr.propTypes={},Rr.defaultProps={component:"div",childFactory:function(e){return e}};var Nr=Rr,Dr="undefined"==typeof window?r.useEffect:r.useLayoutEffect;var Mr=function(e){var t=e.classes,n=e.pulsate,o=void 0!==n&&n,i=e.rippleX,a=e.rippleY,l=e.rippleSize,s=e.in,u=e.onExited,c=void 0===u?function(){}:u,f=e.timeout,d=r.useState(!1),p=d[0],h=d[1],m=(0,br.Z)(t.ripple,t.rippleVisible,o&&t.ripplePulsate),g={width:l,height:l,top:-l/2+a,left:-l/2+i},v=(0,br.Z)(t.child,p&&t.childLeaving,o&&t.childPulsate),y=(0,_r.Z)(c);return Dr((function(){if(!s){h(!0);var e=setTimeout(y,f);return function(){clearTimeout(e)}}}),[y,s,f]),r.createElement("span",{className:m,style:g},r.createElement("span",{className:v}))},Lr=r.forwardRef((function(e,t){var n=e.center,o=void 0!==n&&n,i=e.classes,a=e.className,l=(0,mr.Z)(e,["center","classes","className"]),s=r.useState([]),u=s[0],c=s[1],f=r.useRef(0),d=r.useRef(null);r.useEffect((function(){d.current&&(d.current(),d.current=null)}),[u]);var p=r.useRef(!1),h=r.useRef(null),m=r.useRef(null),g=r.useRef(null);r.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var v=r.useCallback((function(e){var t=e.pulsate,n=e.rippleX,o=e.rippleY,a=e.rippleSize,l=e.cb;c((function(e){return[].concat((0,Or.Z)(e),[r.createElement(Mr,{key:f.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:a})])})),f.current+=1,d.current=l}),[i]),y=r.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,a=t.center,l=void 0===a?o||t.pulsate:a,s=t.fakeElement,u=void 0!==s&&s;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var c,f,d,y=u?null:g.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),f=Math.round(b.height/2);else{var w=e.touches?e.touches[0]:e,x=w.clientX,E=w.clientY;c=Math.round(x-b.left),f=Math.round(E-b.top)}if(l)(d=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(d+=1);else{var _=2*Math.max(Math.abs((y?y.clientWidth:0)-c),c)+2,S=2*Math.max(Math.abs((y?y.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(_,2)+Math.pow(S,2))}e.touches?null===m.current&&(m.current=function(){v({pulsate:i,rippleX:c,rippleY:f,rippleSize:d,cb:n})},h.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):v({pulsate:i,rippleX:c,rippleY:f,rippleSize:d,cb:n})}}),[o,v]),b=r.useCallback((function(){y({},{pulsate:!0})}),[y]),w=r.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&m.current)return e.persist(),m.current(),m.current=null,void(h.current=setTimeout((function(){w(e,t)})));m.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return r.useImperativeHandle(t,(function(){return{pulsate:b,start:y,stop:w}}),[b,y,w]),r.createElement("span",(0,gr.Z)({className:(0,br.Z)(i.root,a),ref:g},l),r.createElement(Nr,{component:null,exit:!0},u))})),Fr=(0,wr.Z)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(r.memo(Lr)),zr=r.forwardRef((function(e,t){var n=e.action,i=e.buttonRef,a=e.centerRipple,l=void 0!==a&&a,s=e.children,u=e.classes,c=e.className,f=e.component,d=void 0===f?"button":f,p=e.disabled,h=void 0!==p&&p,m=e.disableRipple,g=void 0!==m&&m,v=e.disableTouchRipple,y=void 0!==v&&v,b=e.focusRipple,w=void 0!==b&&b,x=e.focusVisibleClassName,E=e.onBlur,_=e.onClick,S=e.onFocus,O=e.onFocusVisible,k=e.onKeyDown,C=e.onKeyUp,P=e.onMouseDown,T=e.onMouseLeave,A=e.onMouseUp,j=e.onTouchEnd,I=e.onTouchMove,R=e.onTouchStart,N=e.onDragLeave,D=e.tabIndex,M=void 0===D?0:D,L=e.TouchRippleProps,F=e.type,z=void 0===F?"button":F,B=(0,mr.Z)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),Z=r.useRef(null);var U=r.useRef(null),H=r.useState(!1),W=H[0],G=H[1];h&&W&&G(!1);var V=(0,Sr.Z)(),$=V.isFocusVisible,K=V.onBlurVisible,q=V.ref;function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return(0,_r.Z)((function(r){return t&&t(r),!n&&U.current&&U.current[e](r),!0}))}r.useImperativeHandle(n,(function(){return{focusVisible:function(){G(!0),Z.current.focus()}}}),[]),r.useEffect((function(){W&&w&&!g&&U.current.pulsate()}),[g,w,W]);var X=Y("start",P),J=Y("stop",N),Q=Y("stop",A),ee=Y("stop",(function(e){W&&e.preventDefault(),T&&T(e)})),te=Y("start",R),ne=Y("stop",j),re=Y("stop",I),oe=Y("stop",(function(e){W&&(K(e),G(!1)),E&&E(e)}),!1),ie=(0,_r.Z)((function(e){Z.current||(Z.current=e.currentTarget),$(e)&&(G(!0),O&&O(e)),S&&S(e)})),ae=function(){var e=o.findDOMNode(Z.current);return d&&"button"!==d&&!("A"===e.tagName&&e.href)},le=r.useRef(!1),se=(0,_r.Z)((function(e){w&&!le.current&&W&&U.current&&" "===e.key&&(le.current=!0,e.persist(),U.current.stop(e,(function(){U.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!h&&(e.preventDefault(),_&&_(e))})),ue=(0,_r.Z)((function(e){w&&" "===e.key&&U.current&&W&&!e.defaultPrevented&&(le.current=!1,e.persist(),U.current.stop(e,(function(){U.current.pulsate(e)}))),C&&C(e),_&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&_(e)})),ce=d;"button"===ce&&B.href&&(ce="a");var fe={};"button"===ce?(fe.type=z,fe.disabled=h):("a"===ce&&B.href||(fe.role="button"),fe["aria-disabled"]=h);var de=(0,Er.Z)(i,t),pe=(0,Er.Z)(q,Z),he=(0,Er.Z)(de,pe),me=r.useState(!1),ge=me[0],ve=me[1];r.useEffect((function(){ve(!0)}),[]);var ye=ge&&!g&&!h;return r.createElement(ce,(0,gr.Z)({className:(0,br.Z)(u.root,c,W&&[u.focusVisible,x],h&&u.disabled),onBlur:oe,onClick:_,onFocus:ie,onKeyDown:se,onKeyUp:ue,onMouseDown:X,onMouseLeave:ee,onMouseUp:Q,onDragLeave:J,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:he,tabIndex:h?-1:M},fe,B),s,ye?r.createElement(Fr,(0,gr.Z)({ref:U,center:l},L)):null)})),Br=(0,wr.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(zr),Zr=n(93871),Ur=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.color,l=void 0===a?"default":a,s=e.component,u=void 0===s?"button":s,c=e.disabled,f=void 0!==c&&c,d=e.disableElevation,p=void 0!==d&&d,h=e.disableFocusRipple,m=void 0!==h&&h,g=e.endIcon,v=e.focusVisibleClassName,y=e.fullWidth,b=void 0!==y&&y,w=e.size,x=void 0===w?"medium":w,E=e.startIcon,_=e.type,S=void 0===_?"button":_,O=e.variant,k=void 0===O?"text":O,C=(0,mr.Z)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),P=E&&r.createElement("span",{className:(0,br.Z)(o.startIcon,o["iconSize".concat((0,Zr.Z)(x))])},E),T=g&&r.createElement("span",{className:(0,br.Z)(o.endIcon,o["iconSize".concat((0,Zr.Z)(x))])},g);return r.createElement(Br,(0,gr.Z)({className:(0,br.Z)(o.root,o[k],i,"inherit"===l?o.colorInherit:"default"!==l&&o["".concat(k).concat((0,Zr.Z)(l))],"medium"!==x&&[o["".concat(k,"Size").concat((0,Zr.Z)(x))],o["size".concat((0,Zr.Z)(x))]],p&&o.disableElevation,f&&o.disabled,b&&o.fullWidth),component:u,disabled:f,focusRipple:!m,focusVisibleClassName:(0,br.Z)(o.focusVisible,v),ref:t,type:S},C),r.createElement("span",{className:o.label},P,n,T))})),Hr=(0,wr.Z)((function(e){return{root:(0,gr.Z)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,xr.U1)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,xr.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,xr.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,xr.U1)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,xr.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,xr.U1)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,xr.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(Ur);n(59864);Hr.styles;var Wr=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.color,l=void 0===a?"default":a,s=e.component,u=void 0===s?"div":s,c=e.disabled,f=void 0!==c&&c,d=e.disableElevation,p=void 0!==d&&d,h=e.disableFocusRipple,m=void 0!==h&&h,g=e.disableRipple,v=void 0!==g&&g,y=e.fullWidth,b=void 0!==y&&y,w=e.orientation,x=void 0===w?"horizontal":w,E=e.size,_=void 0===E?"medium":E,S=e.variant,O=void 0===S?"outlined":S,k=(0,mr.Z)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"]),C=(0,br.Z)(o.grouped,o["grouped".concat((0,Zr.Z)(x))],o["grouped".concat((0,Zr.Z)(O))],o["grouped".concat((0,Zr.Z)(O)).concat((0,Zr.Z)(x))],o["grouped".concat((0,Zr.Z)(O)).concat("default"!==l?(0,Zr.Z)(l):"")],f&&o.disabled);return r.createElement(u,(0,gr.Z)({role:"group",className:(0,br.Z)(o.root,i,b&&o.fullWidth,p&&o.disableElevation,"contained"===O&&o.contained,"vertical"===x&&o.vertical),ref:t},k),r.Children.map(n,(function(e){return r.isValidElement(e)?r.cloneElement(e,{className:(0,br.Z)(C,e.props.className),color:e.props.color||l,disabled:e.props.disabled||f,disableElevation:e.props.disableElevation||p,disableFocusRipple:m,disableRipple:v,fullWidth:b,size:e.props.size||_,variant:e.props.variant||O}):null})))})),Gr=(0,wr.Z)((function(e){return{root:{display:"inline-flex",borderRadius:e.shape.borderRadius},contained:{boxShadow:e.shadows[2]},disableElevation:{boxShadow:"none"},disabled:{},fullWidth:{width:"100%"},vertical:{flexDirection:"column"},grouped:{minWidth:40},groupedHorizontal:{"&:not(:first-child)":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedVertical:{"&:not(:first-child)":{borderTopRightRadius:0,borderTopLeftRadius:0},"&:not(:last-child)":{borderBottomRightRadius:0,borderBottomLeftRadius:0}},groupedText:{},groupedTextHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextPrimary:{"&:not(:last-child)":{borderColor:(0,xr.U1)(e.palette.primary.main,.5)}},groupedTextSecondary:{"&:not(:last-child)":{borderColor:(0,xr.U1)(e.palette.secondary.main,.5)}},groupedOutlined:{},groupedOutlinedHorizontal:{"&:not(:first-child)":{marginLeft:-1},"&:not(:last-child)":{borderRightColor:"transparent"}},groupedOutlinedVertical:{"&:not(:first-child)":{marginTop:-1},"&:not(:last-child)":{borderBottomColor:"transparent"}},groupedOutlinedPrimary:{"&:hover":{borderColor:e.palette.primary.main}},groupedOutlinedSecondary:{"&:hover":{borderColor:e.palette.secondary.main}},groupedContained:{boxShadow:"none"},groupedContainedHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderRight:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderBottom:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedPrimary:{"&:not(:last-child)":{borderColor:e.palette.primary.dark}},groupedContainedSecondary:{"&:not(:last-child)":{borderColor:e.palette.secondary.dark}}}}),{name:"MuiButtonGroup"})(Wr),Vr=r.forwardRef((function(e,t){var n=e.edge,o=void 0!==n&&n,i=e.children,a=e.classes,l=e.className,s=e.color,u=void 0===s?"default":s,c=e.disabled,f=void 0!==c&&c,d=e.disableFocusRipple,p=void 0!==d&&d,h=e.size,m=void 0===h?"medium":h,g=(0,mr.Z)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return r.createElement(Br,(0,gr.Z)({className:(0,br.Z)(a.root,l,"default"!==u&&a["color".concat((0,Zr.Z)(u))],f&&a.disabled,"small"===m&&a["size".concat((0,Zr.Z)(m))],{start:a.edgeStart,end:a.edgeEnd}[o]),centerRipple:!0,focusRipple:!p,disabled:f,ref:t},g),r.createElement("span",{className:a.label},i))})),$r=(0,wr.Z)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,xr.U1)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,xr.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,xr.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(Vr),Kr=n(89974),qr=n(79015),Yr=n(6404);function Xr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Jr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qr(){var e=Xr((0,r.useState)("desktop"),2),t=e[0],n=e[1],o=Xr((0,r.useState)(!1),2),i=o[0],a=o[1];function l(e){e!==t&&(n(e),app.setDevicePreview(e))}var s=[{type:"mobile",icon:r.createElement(Yr.Z,null)},{type:"tablet",icon:r.createElement(qr.Z,null)},{type:"desktop",icon:r.createElement(Kr.Z,null)}];return r.createElement("div",{className:"device-preview"},i&&r.createElement(Gr,{color:"primary",orientation:"vertical",onMouseLeave:function(){return a(!1)},className:"button-group","data-testid":"device:button-group"},s.map((function(e,n){return r.createElement(Hr,{color:t===e.type?"secondary":"primary",onClick:function(){return l(e.type)},key:n,style:t===e.type?{background:"#f8f8f8",opacity:"1"}:null,"data-testid":e.type,className:"button"},e.icon)}))),r.createElement($r,{onClick:function(){return l("desktop")},onMouseOver:function(){return a(!0)},className:"current-device","data-testid":"device:current-device",color:"primary"},!1===i&&function(){switch(t){case"desktop":return r.createElement(Kr.Z,null);case"tablet":return r.createElement(qr.Z,null);case"mobile":return r.createElement(Yr.Z,null)}}()))}var eo=n(79437),to=n(30626),no=n(80713),ro=n(82568),oo=n(159),io=n(93869),ao=n(34236);var lo="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;var so=r.forwardRef((function(e,t){var n=e.children,i=e.container,a=e.disablePortal,l=void 0!==a&&a,s=e.onRendered,u=r.useState(null),c=u[0],f=u[1],d=(0,Er.Z)(r.isValidElement(n)?n.ref:null,t);return lo((function(){l||f(function(e){return e="function"==typeof e?e():e,o.findDOMNode(e)}(i)||document.body)}),[i,l]),lo((function(){if(c&&!l)return(0,ao.Z)(t,c),function(){(0,ao.Z)(t,null)}}),[t,c,l]),lo((function(){s&&(c||l)&&s()}),[s,c,l]),l?r.isValidElement(n)?r.cloneElement(n,{ref:d}):n:c?o.createPortal(n,c):c})),uo=n(92781);function co(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function fo(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function po(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function ho(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat((0,Or.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&fo(e,o)}))}function mo(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function go(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,to.Z)(e);return t.body===e?(0,no.Z)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=co();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(po(i)+a,"px"),n=(0,to.Z)(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(po(e)+a,"px")}))}var l=i.parentElement,s="HTML"===l.nodeName&&"scroll"===window.getComputedStyle(l)["overflow-y"]?l:i;r.push({value:s.style.overflow,key:"overflow",el:s}),s.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var vo=function(){function e(){W(this,e),this.modals=[],this.containers=[]}return(0,G.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&fo(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ho(t,e.mountNode,e.modalRef,r,!0);var o=mo(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=mo(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=go(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=mo(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&fo(e.modalRef,!0),ho(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&fo(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var yo=function(e){var t=e.children,n=e.disableAutoFocus,i=void 0!==n&&n,a=e.disableEnforceFocus,l=void 0!==a&&a,s=e.disableRestoreFocus,u=void 0!==s&&s,c=e.getDoc,f=e.isEnabled,d=e.open,p=r.useRef(),h=r.useRef(null),m=r.useRef(null),g=r.useRef(),v=r.useRef(null),y=r.useCallback((function(e){v.current=o.findDOMNode(e)}),[]),b=(0,Er.Z)(t.ref,y),w=r.useRef();return r.useEffect((function(){w.current=d}),[d]),!w.current&&d&&"undefined"!=typeof window&&(g.current=c().activeElement),r.useEffect((function(){if(d){var e=(0,to.Z)(v.current);i||!v.current||v.current.contains(e.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex",-1),v.current.focus());var t=function(){null!==v.current&&(e.hasFocus()&&!l&&f()&&!p.current?v.current&&!v.current.contains(e.activeElement)&&v.current.focus():p.current=!1)},n=function(t){!l&&f()&&9===t.keyCode&&e.activeElement===v.current&&(p.current=!0,t.shiftKey?m.current.focus():h.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),u||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[i,l,u,f,d]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:b}),r.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelEnd"}))},bo={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},wo=r.forwardRef((function(e,t){var n=e.invisible,o=void 0!==n&&n,i=e.open,a=(0,mr.Z)(e,["invisible","open"]);return i?r.createElement("div",(0,gr.Z)({"aria-hidden":!0,ref:t},a,{style:(0,gr.Z)({},bo.root,o?bo.invisible:{},a.style)})):null}));var xo=new vo,Eo=r.forwardRef((function(e,t){var n=(0,oo.Z)(),i=(0,io.Z)({name:"MuiModal",props:(0,gr.Z)({},e),theme:n}),a=i.BackdropComponent,l=void 0===a?wo:a,s=i.BackdropProps,u=i.children,c=i.closeAfterTransition,f=void 0!==c&&c,d=i.container,p=i.disableAutoFocus,h=void 0!==p&&p,m=i.disableBackdropClick,g=void 0!==m&&m,v=i.disableEnforceFocus,y=void 0!==v&&v,b=i.disableEscapeKeyDown,w=void 0!==b&&b,x=i.disablePortal,E=void 0!==x&&x,_=i.disableRestoreFocus,S=void 0!==_&&_,O=i.disableScrollLock,k=void 0!==O&&O,C=i.hideBackdrop,P=void 0!==C&&C,T=i.keepMounted,A=void 0!==T&&T,j=i.manager,I=void 0===j?xo:j,R=i.onBackdropClick,N=i.onClose,D=i.onEscapeKeyDown,M=i.onRendered,L=i.open,F=(0,mr.Z)(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),z=r.useState(!0),B=z[0],Z=z[1],U=r.useRef({}),H=r.useRef(null),W=r.useRef(null),G=(0,Er.Z)(W,t),V=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),$=function(){return(0,to.Z)(H.current)},K=function(){return U.current.modalRef=W.current,U.current.mountNode=H.current,U.current},q=function(){I.mount(K(),{disableScrollLock:k}),W.current.scrollTop=0},Y=(0,_r.Z)((function(){var e=function(e){return e="function"==typeof e?e():e,o.findDOMNode(e)}(d)||$().body;I.add(K(),e),W.current&&q()})),X=r.useCallback((function(){return I.isTopModal(K())}),[I]),J=(0,_r.Z)((function(e){H.current=e,e&&(M&&M(),L&&X()?q():fo(W.current,!0))})),Q=r.useCallback((function(){I.remove(K())}),[I]);if(r.useEffect((function(){return function(){Q()}}),[Q]),r.useEffect((function(){L?Y():V&&f||Q()}),[L,Q,V,f,Y]),!A&&!L&&(!V||B))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:uo.Z}),te={};return void 0===u.props.tabIndex&&(te.tabIndex=u.props.tabIndex||"-1"),V&&(te.onEnter=(0,ro.Z)((function(){Z(!1)}),u.props.onEnter),te.onExited=(0,ro.Z)((function(){Z(!0),f&&Q()}),u.props.onExited)),r.createElement(so,{ref:J,container:d,disablePortal:E},r.createElement("div",(0,gr.Z)({ref:G,onKeyDown:function(e){"Escape"===e.key&&X()&&(D&&D(e),w||(e.stopPropagation(),N&&N(e,"escapeKeyDown")))},role:"presentation"},F,{style:(0,gr.Z)({},ee.root,!L&&B?ee.hidden:{},F.style)}),P?null:r.createElement(l,(0,gr.Z)({open:L,onClick:function(e){e.target===e.currentTarget&&(R&&R(e),!g&&N&&N(e,"backdropClick"))}},s)),r.createElement(yo,{disableEnforceFocus:y,disableAutoFocus:h,disableRestoreFocus:S,getDoc:$,isEnabled:X,open:L},r.cloneElement(u,te))))})),_o=n(28481),So=!1,Oo=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}(0,Cr.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[o.findDOMNode(this),r],a=i[0],l=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||So?this.safeSetState({status:"entered"},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,l),this.safeSetState({status:"entering"},(function(){t.props.onEntering(a,l),t.onTransitionEnd(u,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(a,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:o.findDOMNode(this);t&&!So?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],l=i[1];this.props.addEndListener(a,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,kr.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.createElement(Pr.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function ko(){}Oo.contextType=Pr,Oo.propTypes={},Oo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ko,onEntering:ko,onEntered:ko,onExit:ko,onExiting:ko,onExited:ko},Oo.UNMOUNTED="unmounted",Oo.EXITED="exited",Oo.ENTERING="entering",Oo.ENTERED="entered",Oo.EXITING="exiting";var Co=Oo,Po=n(99700);function To(){return(0,oo.Z)()||Po.Z}var Ao=function(e){return e.scrollTop};function jo(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}function Io(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Ro={entering:{opacity:1,transform:Io(1)},entered:{opacity:1,transform:"none"}},No=r.forwardRef((function(e,t){var n=e.children,o=e.disableStrictModeCompat,i=void 0!==o&&o,a=e.in,l=e.onEnter,s=e.onEntered,u=e.onEntering,c=e.onExit,f=e.onExited,d=e.onExiting,p=e.style,h=e.timeout,m=void 0===h?"auto":h,g=e.TransitionComponent,v=void 0===g?Co:g,y=(0,mr.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=r.useRef(),w=r.useRef(),x=To(),E=x.unstable_strictMode&&!i,_=r.useRef(null),S=(0,Er.Z)(n.ref,t),O=(0,Er.Z)(E?_:void 0,S),k=function(e){return function(t,n){if(e){var r=E?[_.current,t]:[t,n],o=(0,_o.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},C=k(u),P=k((function(e,t){Ao(e);var n,r=jo({style:p,timeout:m},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===m?(n=x.transitions.getAutoHeightDuration(e.clientHeight),w.current=n):n=o,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:i}),x.transitions.create("transform",{duration:.666*n,delay:i})].join(","),l&&l(e,t)})),T=k(s),A=k(d),j=k((function(e){var t,n=jo({style:p,timeout:m},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===m?(t=x.transitions.getAutoHeightDuration(e.clientHeight),w.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:o}),x.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=Io(.75),c&&c(e)})),I=k(f);return r.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),r.createElement(v,(0,gr.Z)({appear:!0,in:a,nodeRef:E?_:void 0,onEnter:P,onEntered:T,onEntering:C,onExit:j,onExited:I,onExiting:A,addEndListener:function(e,t){var n=E?e:t;"auto"===m&&(b.current=setTimeout(n,w.current||0))},timeout:"auto"===m?null:m},y),(function(e,t){return r.cloneElement(n,(0,gr.Z)({style:(0,gr.Z)({opacity:0,transform:Io(.75),visibility:"exited"!==e||a?void 0:"hidden"},Ro[e],p,n.props.style),ref:O},t))}))}));No.muiSupportAuto=!0;var Do=No,Mo=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,l=e.square,s=void 0!==l&&l,u=e.elevation,c=void 0===u?1:u,f=e.variant,d=void 0===f?"elevation":f,p=(0,mr.Z)(e,["classes","className","component","square","elevation","variant"]);return r.createElement(a,(0,gr.Z)({className:(0,br.Z)(n.root,o,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},p))})),Lo=(0,wr.Z)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,gr.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(Mo);function Fo(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function zo(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Bo(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Zo(e){return"function"==typeof e?e():e}var Uo=r.forwardRef((function(e,t){var n=e.action,i=e.anchorEl,a=e.anchorOrigin,l=void 0===a?{vertical:"top",horizontal:"left"}:a,s=e.anchorPosition,u=e.anchorReference,c=void 0===u?"anchorEl":u,f=e.children,d=e.classes,p=e.className,h=e.container,m=e.elevation,g=void 0===m?8:m,v=e.getContentAnchorEl,y=e.marginThreshold,b=void 0===y?16:y,w=e.onEnter,x=e.onEntered,E=e.onEntering,_=e.onExit,S=e.onExited,O=e.onExiting,k=e.open,C=e.PaperProps,P=void 0===C?{}:C,T=e.transformOrigin,A=void 0===T?{vertical:"top",horizontal:"left"}:T,j=e.TransitionComponent,I=void 0===j?Do:j,R=e.transitionDuration,N=void 0===R?"auto":R,D=e.TransitionProps,M=void 0===D?{}:D,L=(0,mr.Z)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),F=r.useRef(),z=r.useCallback((function(e){if("anchorPosition"===c)return s;var t=Zo(i),n=(t&&1===t.nodeType?t:(0,to.Z)(F.current).body).getBoundingClientRect(),r=0===e?l.vertical:"center";return{top:n.top+Fo(n,r),left:n.left+zo(n,l.horizontal)}}),[i,l.horizontal,l.vertical,s,c]),B=r.useCallback((function(e){var t=0;if(v&&"anchorEl"===c){var n=v(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[l.vertical,c,v]),Z=r.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Fo(e,A.vertical)+t,horizontal:zo(e,A.horizontal)}}),[A.horizontal,A.vertical]),U=r.useCallback((function(e){var t=B(e),n={width:e.offsetWidth,height:e.offsetHeight},r=Z(n,t);if("none"===c)return{top:null,left:null,transformOrigin:Bo(r)};var o=z(t),a=o.top-r.vertical,l=o.left-r.horizontal,s=a+n.height,u=l+n.width,f=(0,no.Z)(Zo(i)),d=f.innerHeight-b,p=f.innerWidth-b;if(a<b){var h=a-b;a-=h,r.vertical+=h}else if(s>d){var m=s-d;a-=m,r.vertical+=m}if(l<b){var g=l-b;l-=g,r.horizontal+=g}else if(u>p){var v=u-p;l-=v,r.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(l),"px"),transformOrigin:Bo(r)}}),[i,c,z,B,Z,b]),H=r.useCallback((function(){var e=F.current;if(e){var t=U(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[U]),W=r.useCallback((function(e){F.current=o.findDOMNode(e)}),[]);r.useEffect((function(){k&&H()})),r.useImperativeHandle(n,(function(){return k?{updatePosition:function(){H()}}:null}),[k,H]),r.useEffect((function(){if(k){var e=(0,eo.Z)((function(){H()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[k,H]);var G=N;"auto"!==N||I.muiSupportAuto||(G=void 0);var V=h||(i?(0,to.Z)(Zo(i)).body:void 0);return r.createElement(Eo,(0,gr.Z)({container:V,open:k,ref:t,BackdropProps:{invisible:!0},className:(0,br.Z)(d.root,p)},L),r.createElement(I,(0,gr.Z)({appear:!0,in:k,onEnter:w,onEntered:x,onExit:_,onExited:S,onExiting:O,timeout:G},M,{onEntering:(0,ro.Z)((function(e,t){E&&E(e,t),H()}),M.onEntering)}),r.createElement(Lo,(0,gr.Z)({elevation:g,ref:W},P,{className:(0,br.Z)(d.paper,P.className)}),f)))})),Ho=(0,wr.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Uo);var Wo=r.createContext({}),Go=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.component,l=void 0===a?"ul":a,s=e.dense,u=void 0!==s&&s,c=e.disablePadding,f=void 0!==c&&c,d=e.subheader,p=(0,mr.Z)(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=r.useMemo((function(){return{dense:u}}),[u]);return r.createElement(Wo.Provider,{value:h},r.createElement(l,(0,gr.Z)({className:(0,br.Z)(o.root,i,u&&o.dense,!f&&o.padding,d&&o.subheader),ref:t},p),d,n))})),Vo=(0,wr.Z)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Go);function $o(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ko(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function qo(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Yo(e,t,n,r,o,i){for(var a=!1,l=o(e,t,!!t&&n);l;){if(l===e.firstChild){if(a)return;a=!0}var s=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&qo(l,i)&&!s)return void l.focus();l=o(e,l,n)}}var Xo="undefined"==typeof window?r.useEffect:r.useLayoutEffect,Jo=r.forwardRef((function(e,t){var n=e.actions,i=e.autoFocus,a=void 0!==i&&i,l=e.autoFocusItem,s=void 0!==l&&l,u=e.children,c=e.className,f=e.disabledItemsFocusable,d=void 0!==f&&f,p=e.disableListWrap,h=void 0!==p&&p,m=e.onKeyDown,g=e.variant,v=void 0===g?"selectedMenu":g,y=(0,mr.Z)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),b=r.useRef(null),w=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Xo((function(){a&&b.current.focus()}),[a]),r.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!b.current.style.width;if(e.clientHeight<b.current.clientHeight&&n){var r="".concat(co(),"px");b.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,b.current.style.width="calc(100% + ".concat(r,")")}return b.current}}}),[]);var x=r.useCallback((function(e){b.current=o.findDOMNode(e)}),[]),E=(0,Er.Z)(x,t),_=-1;r.Children.forEach(u,(function(e,t){r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===_)&&(_=t))}));var S=r.Children.map(u,(function(e,t){if(t===_){var n={};return s&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===v&&(n.tabIndex=0),r.cloneElement(e,n)}return e}));return r.createElement(Vo,(0,gr.Z)({role:"menu",ref:E,className:c,onKeyDown:function(e){var t=b.current,n=e.key,r=(0,to.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Yo(t,r,h,d,$o);else if("ArrowUp"===n)e.preventDefault(),Yo(t,r,h,d,Ko);else if("Home"===n)e.preventDefault(),Yo(t,null,h,d,$o);else if("End"===n)e.preventDefault(),Yo(t,null,h,d,Ko);else if(1===n.length){var o=w.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var l=r&&!o.repeating&&qo(r,o);o.previousKeyMatched&&(l||Yo(t,r,!1,d,$o,o))?e.preventDefault():o.previousKeyMatched=!1}m&&m(e)},tabIndex:a?0:-1},y),S)})),Qo={vertical:"top",horizontal:"right"},ei={vertical:"top",horizontal:"left"},ti=r.forwardRef((function(e,t){var n=e.autoFocus,i=void 0===n||n,a=e.children,l=e.classes,s=e.disableAutoFocusItem,u=void 0!==s&&s,c=e.MenuListProps,f=void 0===c?{}:c,d=e.onClose,p=e.onEntering,h=e.open,m=e.PaperProps,g=void 0===m?{}:m,v=e.PopoverClasses,y=e.transitionDuration,b=void 0===y?"auto":y,w=e.variant,x=void 0===w?"selectedMenu":w,E=(0,mr.Z)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),_=To(),S=i&&!u&&h,O=r.useRef(null),k=r.useRef(null),C=-1;r.Children.map(a,(function(e,t){r.isValidElement(e)&&(e.props.disabled||("menu"!==x&&e.props.selected||-1===C)&&(C=t))}));var P=r.Children.map(a,(function(e,t){return t===C?r.cloneElement(e,{ref:function(t){k.current=o.findDOMNode(t),(0,ao.Z)(e.ref,t)}}):e}));return r.createElement(Ho,(0,gr.Z)({getContentAnchorEl:function(){return k.current},classes:v,onClose:d,onEntering:function(e,t){O.current&&O.current.adjustStyleForScrollbar(e,_),p&&p(e,t)},anchorOrigin:"rtl"===_.direction?Qo:ei,transformOrigin:"rtl"===_.direction?Qo:ei,PaperProps:(0,gr.Z)({},g,{classes:(0,gr.Z)({},g.classes,{root:l.paper})}),open:h,ref:t,transitionDuration:b},E),r.createElement(Jo,(0,gr.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:O,autoFocus:i&&(-1===C||u),autoFocusItem:S,variant:x},f,{className:(0,br.Z)(l.list,f.className)}),P))})),ni=(0,wr.Z)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(ti),ri=n(83711),oi="undefined"==typeof window?r.useEffect:r.useLayoutEffect,ii=r.forwardRef((function(e,t){var n=e.alignItems,i=void 0===n?"center":n,a=e.autoFocus,l=void 0!==a&&a,s=e.button,u=void 0!==s&&s,c=e.children,f=e.classes,d=e.className,p=e.component,h=e.ContainerComponent,m=void 0===h?"li":h,g=e.ContainerProps,v=(g=void 0===g?{}:g).className,y=(0,mr.Z)(g,["className"]),b=e.dense,w=void 0!==b&&b,x=e.disabled,E=void 0!==x&&x,_=e.disableGutters,S=void 0!==_&&_,O=e.divider,k=void 0!==O&&O,C=e.focusVisibleClassName,P=e.selected,T=void 0!==P&&P,A=(0,mr.Z)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),j=r.useContext(Wo),I={dense:w||j.dense||!1,alignItems:i},R=r.useRef(null);oi((function(){l&&R.current&&R.current.focus()}),[l]);var N=r.Children.toArray(c),D=N.length&&(0,ri.Z)(N[N.length-1],["ListItemSecondaryAction"]),M=r.useCallback((function(e){R.current=o.findDOMNode(e)}),[]),L=(0,Er.Z)(M,t),F=(0,gr.Z)({className:(0,br.Z)(f.root,d,I.dense&&f.dense,!S&&f.gutters,k&&f.divider,E&&f.disabled,u&&f.button,"center"!==i&&f.alignItemsFlexStart,D&&f.secondaryAction,T&&f.selected),disabled:E},A),z=p||"li";return u&&(F.component=p||"div",F.focusVisibleClassName=(0,br.Z)(f.focusVisible,C),z=Br),D?(z=F.component||p?z:"div","li"===m&&("li"===z?z="div":"li"===F.component&&(F.component="div")),r.createElement(Wo.Provider,{value:I},r.createElement(m,(0,gr.Z)({className:(0,br.Z)(f.container,v),ref:L},y),r.createElement(z,F,N),N.pop()))):r.createElement(Wo.Provider,{value:I},r.createElement(z,(0,gr.Z)({ref:L},F),N))})),ai=(0,wr.Z)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(ii),li=r.forwardRef((function(e,t){var n,o=e.classes,i=e.className,a=e.component,l=void 0===a?"li":a,s=e.disableGutters,u=void 0!==s&&s,c=e.ListItemClasses,f=e.role,d=void 0===f?"menuitem":f,p=e.selected,h=e.tabIndex,m=(0,mr.Z)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==h?h:-1),r.createElement(ai,(0,gr.Z)({button:!0,role:d,tabIndex:n,component:l,selected:p,disableGutters:u,classes:(0,gr.Z)({dense:o.dense},c),className:(0,br.Z)(o.root,i,p&&o.selected,!u&&o.gutters),ref:t},m))})),si=(0,wr.Z)((function(e){return{root:(0,gr.Z)({},e.typography.body1,(0,X.Z)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,gr.Z)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(li),ui=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=(0,mr.Z)(e,["classes","className"]),a=r.useContext(Wo);return r.createElement("div",(0,gr.Z)({className:(0,br.Z)(n.root,o,"flex-start"===a.alignItems&&n.alignItemsFlexStart),ref:t},i))})),ci=(0,wr.Z)((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(ui),fi={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},di=r.forwardRef((function(e,t){var n=e.align,o=void 0===n?"inherit":n,i=e.classes,a=e.className,l=e.color,s=void 0===l?"initial":l,u=e.component,c=e.display,f=void 0===c?"initial":c,d=e.gutterBottom,p=void 0!==d&&d,h=e.noWrap,m=void 0!==h&&h,g=e.paragraph,v=void 0!==g&&g,y=e.variant,b=void 0===y?"body1":y,w=e.variantMapping,x=void 0===w?fi:w,E=(0,mr.Z)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),_=u||(v?"p":x[b]||fi[b])||"span";return r.createElement(_,(0,gr.Z)({className:(0,br.Z)(i.root,a,"inherit"!==b&&i[b],"initial"!==s&&i["color".concat((0,Zr.Z)(s))],m&&i.noWrap,p&&i.gutterBottom,v&&i.paragraph,"inherit"!==o&&i["align".concat((0,Zr.Z)(o))],"initial"!==f&&i["display".concat((0,Zr.Z)(f))]),ref:t},E))})),pi=(0,wr.Z)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(di),hi=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.disableTypography,l=void 0!==a&&a,s=e.inset,u=void 0!==s&&s,c=e.primary,f=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,h=(0,mr.Z)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=r.useContext(Wo).dense,g=null!=c?c:n;null==g||g.type===pi||l||(g=r.createElement(pi,(0,gr.Z)({variant:m?"body2":"body1",className:o.primary,component:"span",display:"block"},f),g));var v=d;return null==v||v.type===pi||l||(v=r.createElement(pi,(0,gr.Z)({variant:"body2",className:o.secondary,color:"textSecondary",display:"block"},p),v)),r.createElement("div",(0,gr.Z)({className:(0,br.Z)(o.root,i,m&&o.dense,u&&o.inset,g&&v&&o.multiline),ref:t},h),g,v)})),mi=(0,wr.Z)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(hi),gi=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.color,a=void 0===i?"primary":i,l=e.disableShrink,s=void 0!==l&&l,u=e.size,c=void 0===u?40:u,f=e.style,d=e.thickness,p=void 0===d?3.6:d,h=e.value,m=void 0===h?0:h,g=e.variant,v=void 0===g?"indeterminate":g,y=(0,mr.Z)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),b={},w={},x={};if("determinate"===v||"static"===v){var E=2*Math.PI*((44-p)/2);b.strokeDasharray=E.toFixed(3),x["aria-valuenow"]=Math.round(m),b.strokeDashoffset="".concat(((100-m)/100*E).toFixed(3),"px"),w.transform="rotate(-90deg)"}return r.createElement("div",(0,gr.Z)({className:(0,br.Z)(n.root,o,"inherit"!==a&&n["color".concat((0,Zr.Z)(a))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[v]),style:(0,gr.Z)({width:c,height:c},w,f),ref:t,role:"progressbar"},x,y),r.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44)},r.createElement("circle",{className:(0,br.Z)(n.circle,s&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[v]),style:b,cx:44,cy:44,r:(44-p)/2,fill:"none",strokeWidth:p})))})),vi=(0,wr.Z)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(gi),yi=n(89039),bi=n(66521),wi=r.createContext(null);var xi=function(e){e()},Ei=function(){return xi},_i={notify:function(){}};var Si=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=_i,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=Ei(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=_i)},e}(),Oi="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;var ki=function(e){var t=e.store,n=e.context,o=e.children,i=(0,r.useMemo)((function(){var e=new Si(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),a=(0,r.useMemo)((function(){return t.getState()}),[t]);Oi((function(){var e=i.subscription;return e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var l=n||wi;return r.createElement(l.Provider,{value:i},o)},Ci=n(8679),Pi=n.n(Ci),Ti=n(72973),Ai=[],ji=[null,null];function Ii(e,t){var n=e[1];return[t.payload,n+1]}function Ri(e,t,n){Oi((function(){return e.apply(void 0,t)}),n)}function Ni(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function Di(e,t,n,r,o,i,a,l,s,u){if(e){var c=!1,f=null,d=function(){if(!c){var e,n,d=t.getState();try{e=r(d,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||s():(i.current=e,l.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var Mi=function(){return[null,0]};function Li(e,t){void 0===t&&(t={});var n=t,o=n.getDisplayName,i=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,a=n.methodName,l=void 0===a?"connectAdvanced":a,s=n.renderCountProp,u=void 0===s?void 0:s,c=n.shouldHandleStateChanges,f=void 0===c||c,d=n.storeKey,p=void 0===d?"store":d,h=(n.withRef,n.forwardRef),m=void 0!==h&&h,g=n.context,v=void 0===g?wi:g,y=(0,kr.Z)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),b=v;return function(t){var n=t.displayName||t.name||"Component",o=i(n),a=(0,gr.Z)({},y,{getDisplayName:i,methodName:l,renderCountProp:u,shouldHandleStateChanges:f,storeKey:p,displayName:o,wrappedComponentName:n,WrappedComponent:t}),s=y.pure;var c=s?r.useMemo:function(e){return e()};function d(n){var o=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,kr.Z)(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),i=o[0],l=o[1],s=o[2],u=(0,r.useMemo)((function(){return i&&i.Consumer&&(0,Ti.isContextConsumer)(r.createElement(i.Consumer,null))?i:b}),[i,b]),d=(0,r.useContext)(u),p=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var h=p?n.store:d.store,m=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(h)}),[h]),g=(0,r.useMemo)((function(){if(!f)return ji;var e=new Si(h,p?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,p,d]),v=g[0],y=g[1],w=(0,r.useMemo)((function(){return p?d:(0,gr.Z)({},d,{subscription:v})}),[p,d,v]),x=(0,r.useReducer)(Ii,Ai,Mi),E=x[0][0],_=x[1];if(E&&E.error)throw E.error;var S=(0,r.useRef)(),O=(0,r.useRef)(s),k=(0,r.useRef)(),C=(0,r.useRef)(!1),P=c((function(){return k.current&&s===O.current?k.current:m(h.getState(),s)}),[h,E,s]);Ri(Ni,[O,S,C,s,P,k,y]),Ri(Di,[f,h,v,m,O,S,C,k,y,_],[h,v,m]);var T=(0,r.useMemo)((function(){return r.createElement(t,(0,gr.Z)({},P,{ref:l}))}),[l,t,P]);return(0,r.useMemo)((function(){return f?r.createElement(u.Provider,{value:w},T):T}),[u,T,w])}var h=s?r.memo(d):d;if(h.WrappedComponent=t,h.displayName=o,m){var g=r.forwardRef((function(e,t){return r.createElement(h,(0,gr.Z)({},e,{reactReduxForwardedRef:t}))}));return g.displayName=o,g.WrappedComponent=t,Pi()(g,t)}return Pi()(h,t)}}function Fi(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function zi(e,t){if(Fi(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!Fi(e[n[o]],t[n[o]]))return!1;return!0}function Bi(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function Zi(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Ui(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Zi(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=Zi(o),o=r(t,n)),o},r}}var Hi=[function(e){return"function"==typeof e?Ui(e):void 0},function(e){return e?void 0:Bi((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?Bi((function(t){return d(e,t)})):void 0}];var Wi=[function(e){return"function"==typeof e?Ui(e):void 0},function(e){return e?void 0:Bi((function(){return{}}))}];function Gi(e,t,n){return(0,gr.Z)({},n,e,t)}var Vi=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,l){var s=e(t,n,l);return a?o&&i(s,r)||(r=s):(a=!0,r=s),r}}}(e):void 0},function(e){return e?void 0:function(){return Gi}}];function $i(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function Ki(e,t,n,r,o){var i,a,l,s,u,c=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;function h(o,p){var h,m,g=!f(p,a),v=!c(o,i);return i=o,a=p,g&&v?(l=e(i,a),t.dependsOnOwnProps&&(s=t(r,a)),u=n(l,s,a)):g?(e.dependsOnOwnProps&&(l=e(i,a)),t.dependsOnOwnProps&&(s=t(r,a)),u=n(l,s,a)):v?(h=e(i,a),m=!d(h,l),l=h,m&&(u=n(l,s,a)),u):u}return function(o,c){return p?h(o,c):(l=e(i=o,a=c),s=t(r,a),u=n(l,s,a),p=!0,u)}}function qi(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=(0,kr.Z)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),l=r(e,i),s=o(e,i);return(i.pure?Ki:$i)(a,l,s,e,i)}function Yi(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Xi(e,t){return e===t}function Ji(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?Li:n,o=t.mapStateToPropsFactories,i=void 0===o?Wi:o,a=t.mapDispatchToPropsFactories,l=void 0===a?Hi:a,s=t.mergePropsFactories,u=void 0===s?Vi:s,c=t.selectorFactory,f=void 0===c?qi:c;return function(e,t,n,o){void 0===o&&(o={});var a=o,s=a.pure,c=void 0===s||s,d=a.areStatesEqual,p=void 0===d?Xi:d,h=a.areOwnPropsEqual,m=void 0===h?zi:h,g=a.areStatePropsEqual,v=void 0===g?zi:g,y=a.areMergedPropsEqual,b=void 0===y?zi:y,w=(0,kr.Z)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),x=Yi(e,i,"mapStateToProps"),E=Yi(t,l,"mapDispatchToProps"),_=Yi(n,u,"mergeProps");return r(f,(0,gr.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:E,initMergeProps:_,pure:c,areStatesEqual:p,areOwnPropsEqual:m,areStatePropsEqual:v,areMergedPropsEqual:b},w))}}var Qi=Ji();function ea(){return(0,r.useContext)(wi)}function ta(e){void 0===e&&(e=wi);var t=e===wi?ea:function(){return(0,r.useContext)(e)};return function(){return t().store}}var na=ta();var ra=function(e,t){return e===t};function oa(e){void 0===e&&(e=wi);var t=e===wi?ea:function(){return(0,r.useContext)(e)};return function(e,n){void 0===n&&(n=ra);var o=t(),i=function(e,t,n,o){var i,a=(0,r.useReducer)((function(e){return e+1}),0)[1],l=(0,r.useMemo)((function(){return new Si(n,o)}),[n,o]),s=(0,r.useRef)(),u=(0,r.useRef)(),c=(0,r.useRef)(),f=(0,r.useRef)(),d=n.getState();try{if(e!==u.current||d!==c.current||s.current){var p=e(d);i=void 0!==f.current&&t(p,f.current)?f.current:p}else i=f.current}catch(e){throw s.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\n"),e}return Oi((function(){u.current=e,c.current=d,f.current=i,s.current=void 0})),Oi((function(){function e(){try{var e=u.current(n.getState());if(t(e,f.current))return;f.current=e}catch(e){s.current=e}a()}return l.onStateChange=e,l.trySubscribe(),e(),function(){return l.tryUnsubscribe()}}),[n,l]),i}(e,n,o.store,o.subscription);return(0,r.useDebugValue)(i),i}}var ia,aa=oa();ia=o.unstable_batchedUpdates,xi=ia;var la=n(43366),sa={entering:{opacity:1},entered:{opacity:1}},ua={enter:la.x9.enteringScreen,exit:la.x9.leavingScreen},ca=r.forwardRef((function(e,t){var n=e.children,o=e.disableStrictModeCompat,i=void 0!==o&&o,a=e.in,l=e.onEnter,s=e.onEntered,u=e.onEntering,c=e.onExit,f=e.onExited,d=e.onExiting,p=e.style,h=e.TransitionComponent,m=void 0===h?Co:h,g=e.timeout,v=void 0===g?ua:g,y=(0,mr.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),b=To(),w=b.unstable_strictMode&&!i,x=r.useRef(null),E=(0,Er.Z)(n.ref,t),_=(0,Er.Z)(w?x:void 0,E),S=function(e){return function(t,n){if(e){var r=w?[x.current,t]:[t,n],o=(0,_o.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},O=S(u),k=S((function(e,t){Ao(e);var n=jo({style:p,timeout:v},{mode:"enter"});e.style.webkitTransition=b.transitions.create("opacity",n),e.style.transition=b.transitions.create("opacity",n),l&&l(e,t)})),C=S(s),P=S(d),T=S((function(e){var t=jo({style:p,timeout:v},{mode:"exit"});e.style.webkitTransition=b.transitions.create("opacity",t),e.style.transition=b.transitions.create("opacity",t),c&&c(e)})),A=S(f);return r.createElement(m,(0,gr.Z)({appear:!0,in:a,nodeRef:w?x:void 0,onEnter:k,onEntered:C,onEntering:O,onExit:T,onExited:A,onExiting:P,timeout:v},y),(function(e,t){return r.cloneElement(n,(0,gr.Z)({style:(0,gr.Z)({opacity:0,visibility:"exited"!==e||a?void 0:"hidden"},sa[e],p,n.props.style),ref:_},t))}))})),fa=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.invisible,l=void 0!==a&&a,s=e.open,u=e.transitionDuration,c=e.TransitionComponent,f=void 0===c?ca:c,d=(0,mr.Z)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return r.createElement(f,(0,gr.Z)({in:s,timeout:u},d),r.createElement("div",{className:(0,br.Z)(o.root,i,l&&o.invisible),"aria-hidden":!0,ref:t},n))})),da=(0,wr.Z)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(fa),pa={enter:la.x9.enteringScreen,exit:la.x9.leavingScreen},ha=r.forwardRef((function(e,t){var n=e.BackdropProps,o=e.children,i=e.classes,a=e.className,l=e.disableBackdropClick,s=void 0!==l&&l,u=e.disableEscapeKeyDown,c=void 0!==u&&u,f=e.fullScreen,d=void 0!==f&&f,p=e.fullWidth,h=void 0!==p&&p,m=e.maxWidth,g=void 0===m?"sm":m,v=e.onBackdropClick,y=e.onClose,b=e.onEnter,w=e.onEntered,x=e.onEntering,E=e.onEscapeKeyDown,_=e.onExit,S=e.onExited,O=e.onExiting,k=e.open,C=e.PaperComponent,P=void 0===C?Lo:C,T=e.PaperProps,A=void 0===T?{}:T,j=e.scroll,I=void 0===j?"paper":j,R=e.TransitionComponent,N=void 0===R?ca:R,D=e.transitionDuration,M=void 0===D?pa:D,L=e.TransitionProps,F=e["aria-describedby"],z=e["aria-labelledby"],B=(0,mr.Z)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),Z=r.useRef();return r.createElement(Eo,(0,gr.Z)({className:(0,br.Z)(i.root,a),BackdropComponent:da,BackdropProps:(0,gr.Z)({transitionDuration:M},n),closeAfterTransition:!0,disableBackdropClick:s,disableEscapeKeyDown:c,onEscapeKeyDown:E,onClose:y,open:k,ref:t},B),r.createElement(N,(0,gr.Z)({appear:!0,in:k,timeout:M,onEnter:b,onEntering:x,onEntered:w,onExit:_,onExiting:O,onExited:S,role:"none presentation"},L),r.createElement("div",{className:(0,br.Z)(i.container,i["scroll".concat((0,Zr.Z)(I))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===Z.current&&(Z.current=null,v&&v(e),!s&&y&&y(e,"backdropClick"))},onMouseDown:function(e){Z.current=e.target}},r.createElement(P,(0,gr.Z)({elevation:24,role:"dialog","aria-describedby":F,"aria-labelledby":z},A,{className:(0,br.Z)(i.paper,i["paperScroll".concat((0,Zr.Z)(I))],i["paperWidth".concat((0,Zr.Z)(String(g)))],A.className,d&&i.paperFullScreen,h&&i.paperFullWidth)}),o))))})),ma=(0,wr.Z)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":(0,X.Z)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":(0,X.Z)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":(0,X.Z)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":(0,X.Z)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":(0,X.Z)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(ha),ga=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.disableTypography,l=void 0!==a&&a,s=(0,mr.Z)(e,["children","classes","className","disableTypography"]);return r.createElement("div",(0,gr.Z)({className:(0,br.Z)(o.root,i),ref:t},s),l?n:r.createElement(pi,{component:"h2",variant:"h6"},n))})),va=(0,wr.Z)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(ga),ya=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.dividers,a=void 0!==i&&i,l=(0,mr.Z)(e,["classes","className","dividers"]);return r.createElement("div",(0,gr.Z)({className:(0,br.Z)(n.root,o,a&&n.dividers),ref:t},l))})),ba=(0,wr.Z)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(ya),wa=r.forwardRef((function(e,t){return r.createElement(pi,(0,gr.Z)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))})),xa=(0,wr.Z)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(wa),Ea=r.forwardRef((function(e,t){var n=e.disableSpacing,o=void 0!==n&&n,i=e.classes,a=e.className,l=(0,mr.Z)(e,["disableSpacing","classes","className"]);return r.createElement("div",(0,gr.Z)({className:(0,br.Z)(i.root,a,!o&&i.spacing),ref:t},l))})),_a=(0,wr.Z)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(Ea);function Sa(){return(Sa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Oa(e){var t=e.onClose,n=e.icon,o=void 0===n?null:n,i=e.open,a=void 0!==i&&i,l=e.title,s=void 0===l?"Confirm":l,u=e.children,c=void 0===u?null:u,f=e.buttons,d=void 0===f?null:f,p=e.maxWidth,h=void 0===p?"xs":p,m=e.fullWidth,g=void 0===m||m,v=e.className,y=e.testId,b=void 0===y?null:y,w=[{value:"cancel",text:at("modal.cancel")},{value:"confirm",text:at("common.confirm")}],x=function(e){t(e)};return d||(d=w),r.createElement(ma,{open:a,onClose:x,maxWidth:h,fullWidth:g,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:v,"data-testid":b?"dialog:".concat(b):null},r.createElement(va,{id:"alert-dialog-title"},o,s),r.createElement(ba,null,r.createElement(xa,{id:"alert-dialog-description",component:"div"},c)),r.createElement(_a,null,d.map((function(e,t){var n;return r.createElement(Hr,Sa({onClick:function(){return x(e.value)},color:"primary",key:t,variant:e.variant,disabled:null!==(n=e.disabled)&&void 0!==n?n:void 0,"data-testid":b?"dialog:".concat(b,":button:").concat(e.value):null},e.props),e.text)}))))}function ka(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=window.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,a=0;if(n&&"none"!==n&&"string"==typeof n){var l=n.split("(")[1].split(")")[0].split(",");i=parseInt(l[4],10),a=parseInt(l[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(i-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-i,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var Ca={enter:la.x9.enteringScreen,exit:la.x9.leavingScreen},Pa=r.forwardRef((function(e,t){var n=e.children,i=e.direction,a=void 0===i?"down":i,l=e.in,s=e.onEnter,u=e.onEntered,c=e.onEntering,f=e.onExit,d=e.onExited,p=e.onExiting,h=e.style,m=e.timeout,g=void 0===m?Ca:m,v=e.TransitionComponent,y=void 0===v?Co:v,b=(0,mr.Z)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),w=To(),x=r.useRef(null),E=r.useCallback((function(e){x.current=o.findDOMNode(e)}),[]),_=(0,Er.Z)(n.ref,E),S=(0,Er.Z)(_,t),O=function(e){return function(t){e&&(void 0===t?e(x.current):e(x.current,t))}},k=O((function(e,t){ka(a,e),Ao(e),s&&s(e,t)})),C=O((function(e,t){var n=jo({timeout:g,style:h},{mode:"enter"});e.style.webkitTransition=w.transitions.create("-webkit-transform",(0,gr.Z)({},n,{easing:w.transitions.easing.easeOut})),e.style.transition=w.transitions.create("transform",(0,gr.Z)({},n,{easing:w.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",c&&c(e,t)})),P=O(u),T=O(p),A=O((function(e){var t=jo({timeout:g,style:h},{mode:"exit"});e.style.webkitTransition=w.transitions.create("-webkit-transform",(0,gr.Z)({},t,{easing:w.transitions.easing.sharp})),e.style.transition=w.transitions.create("transform",(0,gr.Z)({},t,{easing:w.transitions.easing.sharp})),ka(a,e),f&&f(e)})),j=O((function(e){e.style.webkitTransition="",e.style.transition="",d&&d(e)})),I=r.useCallback((function(){x.current&&ka(a,x.current)}),[a]);return r.useEffect((function(){if(!l&&"down"!==a&&"right"!==a){var e=(0,eo.Z)((function(){x.current&&ka(a,x.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[a,l]),r.useEffect((function(){l||I()}),[l,I]),r.createElement(y,(0,gr.Z)({nodeRef:x,onEnter:k,onEntered:P,onEntering:C,onExit:A,onExited:j,onExiting:T,appear:!0,in:l,timeout:g},b),(function(e,t){return r.cloneElement(n,(0,gr.Z)({ref:S,style:(0,gr.Z)({visibility:"exited"!==e||l?void 0:"hidden"},h,n.props.style)},t))}))}));var Ta=n(73914);var Aa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,Ta.Z)(e,(0,gr.Z)({defaultTheme:Po.Z},t))},ja=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.collapsedHeight,l=void 0===a?"0px":a,s=e.component,u=void 0===s?"div":s,c=e.disableStrictModeCompat,f=void 0!==c&&c,d=e.in,p=e.onEnter,h=e.onEntered,m=e.onEntering,g=e.onExit,v=e.onExited,y=e.onExiting,b=e.style,w=e.timeout,x=void 0===w?la.x9.standard:w,E=e.TransitionComponent,_=void 0===E?Co:E,S=(0,mr.Z)(e,["children","classes","className","collapsedHeight","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),O=To(),k=r.useRef(),C=r.useRef(null),P=r.useRef(),T="number"==typeof l?"".concat(l,"px"):l;r.useEffect((function(){return function(){clearTimeout(k.current)}}),[]);var A=O.unstable_strictMode&&!f,j=r.useRef(null),I=(0,Er.Z)(t,A?j:void 0),R=function(e){return function(t,n){if(e){var r=A?[j.current,t]:[t,n],o=(0,_o.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},N=R((function(e,t){e.style.height=T,p&&p(e,t)})),D=R((function(e,t){var n=C.current?C.current.clientHeight:0,r=jo({style:b,timeout:x},{mode:"enter"}).duration;if("auto"===x){var o=O.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(o,"ms"),P.current=o}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),m&&m(e,t)})),M=R((function(e,t){e.style.height="auto",h&&h(e,t)})),L=R((function(e){var t=C.current?C.current.clientHeight:0;e.style.height="".concat(t,"px"),g&&g(e)})),F=R(v),z=R((function(e){var t=C.current?C.current.clientHeight:0,n=jo({style:b,timeout:x},{mode:"exit"}).duration;if("auto"===x){var r=O.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),P.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height=T,y&&y(e)}));return r.createElement(_,(0,gr.Z)({in:d,onEnter:N,onEntered:M,onEntering:D,onExit:L,onExited:F,onExiting:z,addEndListener:function(e,t){var n=A?e:t;"auto"===x&&(k.current=setTimeout(n,P.current||0))},nodeRef:A?j:void 0,timeout:"auto"===x?null:x},S),(function(e,t){return r.createElement(u,(0,gr.Z)({className:(0,br.Z)(o.container,i,{entered:o.entered,exited:!d&&"0px"===T&&o.hidden}[e]),style:(0,gr.Z)({minHeight:T},b),ref:I},t),r.createElement("div",{className:o.wrapper,ref:C},r.createElement("div",{className:o.wrapperInner},n)))}))}));ja.muiSupportAuto=!0;var Ia=(0,wr.Z)((function(e){return{container:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(ja),Ra=n(62087);function Na(e){return e.substring(2).toLowerCase()}var Da=function(e){var t=e.children,n=e.disableReactTree,i=void 0!==n&&n,a=e.mouseEvent,l=void 0===a?"onClick":a,s=e.onClickAway,u=e.touchEvent,c=void 0===u?"onTouchEnd":u,f=r.useRef(!1),d=r.useRef(null),p=r.useRef(!1),h=r.useRef(!1);r.useEffect((function(){return setTimeout((function(){p.current=!0}),0),function(){p.current=!1}}),[]);var m=r.useCallback((function(e){d.current=o.findDOMNode(e)}),[]),g=(0,Er.Z)(t.ref,m),v=(0,_r.Z)((function(e){var t=h.current;if(h.current=!1,p.current&&d.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(f.current)f.current=!1;else{var n;if(e.composedPath)n=e.composedPath().indexOf(d.current)>-1;else n=!(0,to.Z)(d.current).documentElement.contains(e.target)||d.current.contains(e.target);n||!i&&t||s(e)}})),y=function(e){return function(n){h.current=!0;var r=t.props[e];r&&r(n)}},b={ref:g};return!1!==c&&(b[c]=y(c)),r.useEffect((function(){if(!1!==c){var e=Na(c),t=(0,to.Z)(d.current),n=function(){f.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,v),t.removeEventListener("touchmove",n)}}}),[v,c]),!1!==l&&(b[l]=y(l)),r.useEffect((function(){if(!1!==l){var e=Na(l),t=(0,to.Z)(d.current);return t.addEventListener(e,v),function(){t.removeEventListener(e,v)}}}),[v,l]),r.createElement(r.Fragment,null,r.cloneElement(t,b))};function Ma(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function La(){return(La=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Fa(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var za=r.createContext(),Ba={root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},Za={containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}},Ua={default:20,dense:4},Ha={default:6,dense:2},Wa={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:Pa,transitionDuration:{enter:225,exit:195}},Ga=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Va=function(e){return Object.keys(e).filter((function(e){return!Za[e]})).reduce((function(t,n){var r;return La({},t,((r={})[n]=e[n],r))}),{})},$a={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},Ka=function(e){return"containerAnchorOrigin"+e},qa=function(e){var t=e.vertical,n=e.horizontal;return"anchorOrigin"+Ga(t)+Ga(n)},Ya=function(e){return"variant"+Ga(e)},Xa=function(e){return!!e||0===e},Ja=function(e){return"number"==typeof e||null===e};function Qa(e,t,n){return void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n={}),La({},n,{},t,{},e)}var el=function(e){var t;return{root:(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[e.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t)}},tl=(0,r.forwardRef)((function(e,t){var n=e.classes,o=e.className,i=Fa(e,["classes","className"]);return r.createElement("div",Object.assign({ref:t,className:(0,br.Z)(n.root,o)},i))})),nl=(0,wr.Z)(el)(tl),rl={right:"left",left:"right",bottom:"up",top:"down"},ol=function(e){return"center"!==e.horizontal?rl[e.horizontal]:rl[e.vertical]},il=function(e){return r.createElement(Ra.Z,Object.assign({},e),r.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},al=function(e){return r.createElement(Ra.Z,Object.assign({},e),r.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},ll=function(e){return r.createElement(Ra.Z,Object.assign({},e),r.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},sl=function(e){return r.createElement(Ra.Z,Object.assign({},e),r.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},ul={fontSize:20,marginInlineEnd:8},cl={default:void 0,success:r.createElement(il,{style:ul}),warning:r.createElement(al,{style:ul}),error:r.createElement(ll,{style:ul}),info:r.createElement(sl,{style:ul})};function fl(e,t){return e.reduce((function(e,n){return null==n?e:function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=[].concat(o);t&&-1===a.indexOf(t)&&a.push(t),e.apply(this,a),n.apply(this,a)}}),(function(){}))}var dl="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function pl(e){var t=(0,r.useRef)(e);return dl((function(){t.current=e})),(0,r.useCallback)((function(){return t.current.apply(void 0,arguments)}),[])}var hl=(0,r.forwardRef)((function(e,t){var n=e.children,o=e.autoHideDuration,i=e.ClickAwayListenerProps,a=e.disableWindowBlurListener,l=void 0!==a&&a,s=e.onClose,u=e.onMouseEnter,c=e.onMouseLeave,f=e.open,d=e.resumeHideDuration,p=Fa(e,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),h=(0,r.useRef)(),m=pl((function(){s&&s.apply(void 0,arguments)})),g=pl((function(e){s&&null!=e&&(clearTimeout(h.current),h.current=setTimeout((function(){m(null,$a.TIMEOUT)}),e))}));(0,r.useEffect)((function(){return f&&g(o),function(){clearTimeout(h.current)}}),[f,o,g]);var v=function(){clearTimeout(h.current)},y=(0,r.useCallback)((function(){null!=o&&g(null!=d?d:.5*o)}),[o,d,g]);return(0,r.useEffect)((function(){if(!l&&f)return window.addEventListener("focus",y),window.addEventListener("blur",v),function(){window.removeEventListener("focus",y),window.removeEventListener("blur",v)}}),[l,y,f]),(0,r.createElement)(Da,La({onClickAway:function(e){s&&s(e,$a.CLICKAWAY)}},i),(0,r.createElement)("div",La({onMouseEnter:function(e){u&&u(e),v()},onMouseLeave:function(e){c&&c(e),y()},ref:t},p),n))})),ml=function(e){var t=e.palette.mode||e.palette.type,n=(0,xr._4)(e.palette.background.default,"light"===t?.8:.98);return La({},Ba,{contentRoot:La({},e.typography.body2,{backgroundColor:n,color:e.palette.getContrastText(n),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),lessPadding:{paddingLeft:20},variantSuccess:{backgroundColor:"#43a047",color:"#fff"},variantError:{backgroundColor:"#d32f2f",color:"#fff"},variantInfo:{backgroundColor:"#2196f3",color:"#fff"},variantWarning:{backgroundColor:"#ff9800",color:"#fff"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},wrappedRoot:{position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0}})},gl=function(e){var t=e.classes,n=Fa(e,["classes"]),o=(0,r.useRef)(),i=(0,r.useState)(!0),a=i[0],l=i[1];(0,r.useEffect)((function(){return function(){o.current&&clearTimeout(o.current)}}),[]);var s=fl([n.snack.onClose,n.onClose],n.snack.key),u=n.style,c=n.ariaAttributes,f=n.className,d=n.hideIconVariant,p=n.iconVariant,h=n.snack,m=n.action,g=n.content,v=n.TransitionComponent,y=n.TransitionProps,b=n.transitionDuration,w=Fa(n,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),x=h.key,E=h.open,_=h.className,S=h.variant,O=h.content,k=h.action,C=h.ariaAttributes,P=h.anchorOrigin,T=h.message,A=h.TransitionComponent,j=h.TransitionProps,I=h.transitionDuration,R=Fa(h,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),N=La({},cl,{},p)[S],D=La({"aria-describedby":"notistack-snackbar"},Qa(C,c)),M=A||v||Wa.TransitionComponent,L=Qa(I,b,Wa.transitionDuration),F=La({direction:ol(P)},Qa(j,y)),z=k||m;"function"==typeof z&&(z=z(x));var B=O||g;"function"==typeof B&&(B=B(x,h.message));var Z=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce((function(e,t){var r;return La({},e,((r={})[t]=fl([n.snack[t],n[t]],n.snack.key),r))}),{});return r.createElement(Ia,{unmountOnExit:!0,timeout:175,in:a,onExited:Z.onExited},r.createElement(hl,Object.assign({},w,R,{open:E,className:(0,br.Z)(t.root,t.wrappedRoot,t[qa(P)]),onClose:s}),r.createElement(M,Object.assign({appear:!0,in:E,timeout:L},F,{onExit:Z.onExit,onExiting:Z.onExiting,onExited:function(){o.current=setTimeout((function(){l(!a)}),125)},onEnter:Z.onEnter,onEntering:Z.onEntering,onEntered:fl([Z.onEntered,function(){n.snack.requestClose&&s(null,$a.INSTRCUTED)}])}),B||r.createElement(nl,Object.assign({},D,{role:"alert",style:u,className:(0,br.Z)(t.contentRoot,t[Ya(S)],f,_,!d&&N&&t.lessPadding)}),r.createElement("div",{id:D["aria-describedby"],className:t.message},d?null:N,T),z&&r.createElement("div",{className:t.action},z)))))},vl=(0,wr.Z)(ml)(gl),yl="& > .MuiCollapse-container, & > .MuiCollapse-root",bl="& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper",wl=Aa((function(e){var t,n,r,o,i;return{root:(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:e.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[yl]={pointerEvents:"all"},t[bl]={padding:Ha.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+2*Ua.default+"px)",t[e.breakpoints.down("xs")]={width:"100%",maxWidth:"calc(100% - 32px)"},t),rootDense:(n={},n[bl]={padding:Ha.dense+"px 0px"},n),top:{top:Ua.default-Ha.default,flexDirection:"column"},bottom:{bottom:Ua.default-Ha.default,flexDirection:"column-reverse"},left:(r={left:Ua.default},r[e.breakpoints.up("sm")]={alignItems:"flex-start"},r[e.breakpoints.down("xs")]={left:"16px"},r),right:(o={right:Ua.default},o[e.breakpoints.up("sm")]={alignItems:"flex-end"},o[e.breakpoints.down("xs")]={right:"16px"},o),center:(i={left:"50%",transform:"translateX(-50%)"},i[e.breakpoints.up("sm")]={alignItems:"center"},i)}})),xl=function(e){var t=wl(),n=e.className,o=e.anchorOrigin,i=e.dense,a=Fa(e,["className","anchorOrigin","dense"]),l=(0,br.Z)(t[o.vertical],t[o.horizontal],t.root,n,i&&t.rootDense);return r.createElement("div",Object.assign({className:l},a))},El=r.memo(xl),_l=function(e){var t,n,i,a,l;function s(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){void 0===t&&(t={});var r=t,o=r.key,i=r.preventDuplicate,a=Fa(r,["key","preventDuplicate"]),l=Xa(o),s=l?o:(new Date).getTime()+Math.random(),u=function(e,t,n){return function(r){return"autoHideDuration"===r?Ja(e.autoHideDuration)?e.autoHideDuration:Ja(t.autoHideDuration)?t.autoHideDuration:Wa.autoHideDuration:e[r]||t[r]||n[r]}}(a,n.props,Wa),c=La({key:s},a,{message:e,open:!0,entered:!1,requestClose:!1,variant:u("variant"),anchorOrigin:u("anchorOrigin"),autoHideDuration:u("autoHideDuration")});return a.persist&&(c.autoHideDuration=void 0),n.setState((function(t){if(void 0===i&&n.props.preventDuplicate||i){var r=function(t){return l?t.key===o:t.message===e},a=t.queue.findIndex(r)>-1,s=t.snacks.findIndex(r)>-1;if(a||s)return t}return n.handleDisplaySnack(La({},t,{queue:[].concat(t.queue,[c])}))})),s},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?La({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,r=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&(r=!0);var o=e.snacks.map((function(e){return t||e.persist&&!r?La({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,$a.MAXSNACK,e.key),n.props.onClose&&n.props.onClose(null,$a.MAXSNACK,e.key),La({},e,{open:!1})):La({},e,{requestClose:!0}))}));return La({},e,{snacks:o})},n.handleEnteredSnack=function(e,t,r){if(!Xa(r))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.key===r?La({},e,{entered:!0}):La({},e)}))}}))},n.handleCloseSnack=function(e,t,r){if(n.props.onClose&&n.props.onClose(e,t,r),t!==$a.CLICKAWAY){var o=void 0===r;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return o||e.key===r?e.entered?La({},e,{open:!1}):La({},e,{requestClose:!0}):La({},e)})),queue:n.filter((function(e){return e.key!==r}))}}))}},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.key===e}));Xa(e)&&t&&t.onClose&&t.onClose(null,$a.INSTRUCTED,e),n.handleCloseSnack(null,$a.INSTRUCTED,e)},n.handleExitedSnack=function(e,t,r){var o=t||r;if(!Xa(o))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var t=n.processQueue(La({},e,{snacks:e.snacks.filter((function(e){return e.key!==o}))}));return 0===t.queue.length?t:n.handleDismissOldest(t)}))},n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar,closeSnackbar:n.closeSnackbar}},n}return n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,s.prototype.render=function(){var e=this,t=this.state.contextValue,n=this.props,i=n.iconVariant,a=n.dense,l=void 0===a?Wa.dense:a,s=n.hideIconVariant,u=void 0===s?Wa.hideIconVariant:s,c=n.domRoot,f=n.children,d=n.classes,p=void 0===d?{}:d,h=Fa(n,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),m=this.state.snacks.reduce((function(e,t){var n,r,o=(r=t.anchorOrigin,""+Ga(r.vertical)+Ga(r.horizontal)),i=e[o]||[];return La({},e,((n={})[o]=[].concat(i,[t]),n))}),{}),g=Object.keys(m).map((function(t){var n=m[t];return r.createElement(El,{key:t,dense:l,anchorOrigin:n[0].anchorOrigin,className:(0,br.Z)(p.containerRoot,p[Ka(t)])},n.map((function(t){return r.createElement(vl,Object.assign({},h,{key:t.key,snack:t,dense:l,iconVariant:i,hideIconVariant:u,classes:Va(p),onClose:e.handleCloseSnack,onExited:fl([e.handleExitedSnack,e.props.onExited]),onEntered:fl([e.handleEnteredSnack,e.props.onEntered])}))})))}));return r.createElement(za.Provider,{value:t},f,c?(0,o.createPortal)(g,c):g)},i=s,(a=[{key:"maxSnack",get:function(){return this.props.maxSnack||Wa.maxSnack}}])&&Ma(i.prototype,a),l&&Ma(i,l),s}(r.Component),Sl=function(){return(0,r.useContext)(za)};var Ol=r.createContext({}),kl=n(22775),Cl=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.defaultExpanded,l=void 0!==a&&a,s=e.disabled,u=void 0!==s&&s,c=e.expanded,f=e.onChange,d=e.square,p=void 0!==d&&d,h=e.TransitionComponent,m=void 0===h?Ia:h,g=e.TransitionProps,v=(0,mr.Z)(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),y=(0,kl.Z)({controlled:c,default:l,name:"Accordion",state:"expanded"}),b=(0,_o.Z)(y,2),w=b[0],x=b[1],E=r.useCallback((function(e){x(!w),f&&f(e,!w)}),[w,f,x]),_=ne(r.Children.toArray(n)),S=_[0],O=_.slice(1),k=r.useMemo((function(){return{expanded:w,disabled:u,toggle:E}}),[w,u,E]);return r.createElement(Lo,(0,gr.Z)({className:(0,br.Z)(o.root,i,w&&o.expanded,u&&o.disabled,!p&&o.rounded),ref:t,square:p},v),r.createElement(Ol.Provider,{value:k},S),r.createElement(m,(0,gr.Z)({in:w,timeout:"auto"},g),r.createElement("div",{"aria-labelledby":S.props.id,id:S.props["aria-controls"],role:"region"},O)))})),Pl=(0,wr.Z)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiAccordion"})(Cl),Tl=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.expandIcon,l=e.IconButtonProps,s=e.onBlur,u=e.onClick,c=e.onFocusVisible,f=(0,mr.Z)(e,["children","classes","className","expandIcon","IconButtonProps","onBlur","onClick","onFocusVisible"]),d=r.useState(!1),p=d[0],h=d[1],m=r.useContext(Ol),g=m.disabled,v=void 0!==g&&g,y=m.expanded,b=m.toggle;return r.createElement(Br,(0,gr.Z)({focusRipple:!1,disableRipple:!0,disabled:v,component:"div","aria-expanded":y,className:(0,br.Z)(o.root,i,v&&o.disabled,y&&o.expanded,p&&o.focused),onFocusVisible:function(e){h(!0),c&&c(e)},onBlur:function(e){h(!1),s&&s(e)},onClick:function(e){b&&b(e),u&&u(e)},ref:t},f),r.createElement("div",{className:(0,br.Z)(o.content,y&&o.expanded)},n),a&&r.createElement($r,(0,gr.Z)({className:(0,br.Z)(o.expandIcon,y&&o.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},l),a))})),Al=(0,wr.Z)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:e.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused":{backgroundColor:e.palette.action.focus},"&$disabled":{opacity:e.palette.action.disabledOpacity}},expanded:{},focused:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiAccordionSummary"})(Tl),jl=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.color,a=void 0===i?"inherit":i,l=e.component,s=void 0===l?"span":l,u=e.fontSize,c=void 0===u?"default":u,f=(0,mr.Z)(e,["classes","className","color","component","fontSize"]);return r.createElement(s,(0,gr.Z)({className:(0,br.Z)("material-icons",n.root,o,"inherit"!==a&&n["color".concat((0,Zr.Z)(a))],"default"!==c&&n["fontSize".concat((0,Zr.Z)(c))]),"aria-hidden":!0,ref:t},f))}));jl.muiName="Icon";var Il=(0,wr.Z)((function(e){return{root:{userSelect:"none",fontSize:e.typography.pxToRem(24),width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(36)}}}),{name:"MuiIcon"})(jl),Rl=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=(0,mr.Z)(e,["classes","className"]);return r.createElement("div",(0,gr.Z)({className:(0,br.Z)(n.root,o),ref:t},i))})),Nl=(0,wr.Z)((function(e){return{root:{display:"flex",padding:e.spacing(1,2,2)}}}),{name:"MuiAccordionDetails"})(Rl),Dl=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.color,a=void 0===i?"primary":i,l=e.component,s=void 0===l?"a":l,u=e.onBlur,c=e.onFocus,f=e.TypographyClasses,d=e.underline,p=void 0===d?"hover":d,h=e.variant,m=void 0===h?"inherit":h,g=(0,mr.Z)(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),v=(0,Sr.Z)(),y=v.isFocusVisible,b=v.onBlurVisible,w=v.ref,x=r.useState(!1),E=x[0],_=x[1],S=(0,Er.Z)(t,w);return r.createElement(pi,(0,gr.Z)({className:(0,br.Z)(n.root,n["underline".concat((0,Zr.Z)(p))],o,E&&n.focusVisible,"button"===s&&n.button),classes:f,color:a,component:s,onBlur:function(e){E&&(b(),_(!1)),u&&u(e)},onFocus:function(e){y(e)&&_(!0),c&&c(e)},ref:S,variant:m},g))})),Ml=(0,wr.Z)({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(Dl),Ll=n(60288);function Fl(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}var zl=r.createContext();function Bl(){return r.useContext(zl)}var Zl=zl;function Ul(e,t){return parseInt(e[t],10)||0}var Hl="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,Wl={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Gl=r.forwardRef((function(e,t){var n=e.onChange,o=e.rows,i=e.rowsMax,a=e.rowsMin,l=void 0===a?1:a,s=e.style,u=e.value,c=(0,mr.Z)(e,["onChange","rows","rowsMax","rowsMin","style","value"]),f=o||l,d=r.useRef(null!=u).current,p=r.useRef(null),h=(0,Er.Z)(t,p),m=r.useRef(null),g=r.useRef(0),v=r.useState({}),y=v[0],b=v[1],w=r.useCallback((function(){var t=p.current,n=window.getComputedStyle(t),r=m.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],a=Ul(n,"padding-bottom")+Ul(n,"padding-top"),l=Ul(n,"border-bottom-width")+Ul(n,"border-top-width"),s=r.scrollHeight-a;r.value="x";var u=r.scrollHeight-a,c=s;f&&(c=Math.max(Number(f)*u,c)),i&&(c=Math.min(Number(i)*u,c));var d=(c=Math.max(c,u))+("border-box"===o?a+l:0),h=Math.abs(c-s)<=1;b((function(e){return g.current<20&&(d>0&&Math.abs((e.outerHeightStyle||0)-d)>1||e.overflow!==h)?(g.current+=1,{overflow:h,outerHeightStyle:d}):e}))}),[i,f,e.placeholder]);r.useEffect((function(){var e=(0,eo.Z)((function(){g.current=0,w()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[w]),Hl((function(){w()})),r.useEffect((function(){g.current=0}),[u]);return r.createElement(r.Fragment,null,r.createElement("textarea",(0,gr.Z)({value:u,onChange:function(e){g.current=0,d||w(),n&&n(e)},ref:h,rows:f,style:(0,gr.Z)({height:y.outerHeightStyle,overflow:y.overflow?"hidden":null},s)},c)),r.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:m,tabIndex:-1,style:(0,gr.Z)({},Wl,s)}))}));function Vl(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function $l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Vl(e.value)&&""!==e.value||t&&Vl(e.defaultValue)&&""!==e.defaultValue)}var Kl="undefined"==typeof window?r.useEffect:r.useLayoutEffect,ql=r.forwardRef((function(e,t){var n=e["aria-describedby"],o=e.autoComplete,i=e.autoFocus,a=e.classes,l=e.className,s=(e.color,e.defaultValue),u=e.disabled,c=e.endAdornment,f=(e.error,e.fullWidth),d=void 0!==f&&f,p=e.id,h=e.inputComponent,m=void 0===h?"input":h,g=e.inputProps,v=void 0===g?{}:g,y=e.inputRef,b=(e.margin,e.multiline),w=void 0!==b&&b,x=e.name,E=e.onBlur,_=e.onChange,S=e.onClick,O=e.onFocus,k=e.onKeyDown,C=e.onKeyUp,P=e.placeholder,T=e.readOnly,A=e.renderSuffix,j=e.rows,I=e.rowsMax,R=e.rowsMin,N=e.startAdornment,D=e.type,M=void 0===D?"text":D,L=e.value,F=(0,mr.Z)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","startAdornment","type","value"]),z=null!=v.value?v.value:L,B=r.useRef(null!=z).current,Z=r.useRef(),U=r.useCallback((function(e){0}),[]),H=(0,Er.Z)(v.ref,U),W=(0,Er.Z)(y,H),G=(0,Er.Z)(Z,W),V=r.useState(!1),$=V[0],K=V[1],q=Bl();var Y=Fl({props:e,muiFormControl:q,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});Y.focused=q?q.focused:$,r.useEffect((function(){!q&&u&&$&&(K(!1),E&&E())}),[q,u,$,E]);var X=q&&q.onFilled,J=q&&q.onEmpty,Q=r.useCallback((function(e){$l(e)?X&&X():J&&J()}),[X,J]);Kl((function(){B&&Q({value:z})}),[z,Q,B]);r.useEffect((function(){Q(Z.current)}),[]);var ee=m,te=(0,gr.Z)({},v,{ref:G});"string"!=typeof ee?te=(0,gr.Z)({inputRef:G,type:M},te,{ref:null}):w?!j||I||R?(te=(0,gr.Z)({rows:j,rowsMax:I},te),ee=Gl):ee="textarea":te=(0,gr.Z)({type:M},te);return r.useEffect((function(){q&&q.setAdornedStart(Boolean(N))}),[q,N]),r.createElement("div",(0,gr.Z)({className:(0,br.Z)(a.root,a["color".concat((0,Zr.Z)(Y.color||"primary"))],l,Y.disabled&&a.disabled,Y.error&&a.error,d&&a.fullWidth,Y.focused&&a.focused,q&&a.formControl,w&&a.multiline,N&&a.adornedStart,c&&a.adornedEnd,"dense"===Y.margin&&a.marginDense),onClick:function(e){Z.current&&e.currentTarget===e.target&&Z.current.focus(),S&&S(e)},ref:t},F),N,r.createElement(Zl.Provider,{value:null},r.createElement(ee,(0,gr.Z)({"aria-invalid":Y.error,"aria-describedby":n,autoComplete:o,autoFocus:i,defaultValue:s,disabled:Y.disabled,id:p,onAnimationStart:function(e){Q("mui-auto-fill-cancel"===e.animationName?Z.current:{value:"x"})},name:x,placeholder:P,readOnly:T,required:Y.required,rows:j,value:z,onKeyDown:k,onKeyUp:C},te,{className:(0,br.Z)(a.input,v.className,Y.disabled&&a.disabled,w&&a.inputMultiline,Y.hiddenLabel&&a.inputHiddenLabel,N&&a.inputAdornedStart,c&&a.inputAdornedEnd,"search"===M&&a.inputTypeSearch,"dense"===Y.margin&&a.inputMarginDense),onBlur:function(e){E&&E(e),v.onBlur&&v.onBlur(e),q&&q.onBlur?q.onBlur(e):K(!1)},onChange:function(e){if(!B){var t=e.target||Z.current;if(null==t)throw new Error((0,Ll.Z)(1));Q({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];v.onChange&&v.onChange.apply(v,[e].concat(r)),_&&_.apply(void 0,[e].concat(r))},onFocus:function(e){Y.disabled?e.stopPropagation():(O&&O(e),v.onFocus&&v.onFocus(e),q&&q.onFocus?q.onFocus(e):K(!0))}}))),c,A?A((0,gr.Z)({},Y,{startAdornment:N})):null)})),Yl=(0,wr.Z)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:(0,gr.Z)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(ql),Xl=r.forwardRef((function(e,t){var n=e.disableUnderline,o=e.classes,i=e.fullWidth,a=void 0!==i&&i,l=e.inputComponent,s=void 0===l?"input":l,u=e.multiline,c=void 0!==u&&u,f=e.type,d=void 0===f?"text":f,p=(0,mr.Z)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return r.createElement(Yl,(0,gr.Z)({classes:(0,gr.Z)({},o,{root:(0,br.Z)(o.root,!n&&o.underline),underline:null}),fullWidth:a,inputComponent:s,multiline:c,ref:t,type:d},p))}));Xl.muiName="Input";var Jl=(0,wr.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(Xl),Ql=r.forwardRef((function(e,t){var n=e.disableUnderline,o=e.classes,i=e.fullWidth,a=void 0!==i&&i,l=e.inputComponent,s=void 0===l?"input":l,u=e.multiline,c=void 0!==u&&u,f=e.type,d=void 0===f?"text":f,p=(0,mr.Z)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return r.createElement(Yl,(0,gr.Z)({classes:(0,gr.Z)({},o,{root:(0,br.Z)(o.root,!n&&o.underline),underline:null}),fullWidth:a,inputComponent:s,multiline:c,ref:t,type:d},p))}));Ql.muiName="Input";var es=(0,wr.Z)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(Ql),ts=r.forwardRef((function(e,t){e.children;var n=e.classes,o=e.className,i=e.label,a=e.labelWidth,l=e.notched,s=e.style,u=(0,mr.Z)(e,["children","classes","className","label","labelWidth","notched","style"]),c="rtl"===To().direction?"right":"left";if(void 0!==i)return r.createElement("fieldset",(0,gr.Z)({"aria-hidden":!0,className:(0,br.Z)(n.root,o),ref:t,style:s},u),r.createElement("legend",{className:(0,br.Z)(n.legendLabelled,l&&n.legendNotched)},i?r.createElement("span",null,i):r.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var f=a>0?.75*a+8:.01;return r.createElement("fieldset",(0,gr.Z)({"aria-hidden":!0,style:(0,gr.Z)((0,X.Z)({},"padding".concat((0,Zr.Z)(c)),8),s),className:(0,br.Z)(n.root,o),ref:t},u),r.createElement("legend",{className:n.legend,style:{width:l?f:.01}},r.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))})),ns=(0,wr.Z)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(ts),rs=r.forwardRef((function(e,t){var n=e.classes,o=e.fullWidth,i=void 0!==o&&o,a=e.inputComponent,l=void 0===a?"input":a,s=e.label,u=e.labelWidth,c=void 0===u?0:u,f=e.multiline,d=void 0!==f&&f,p=e.notched,h=e.type,m=void 0===h?"text":h,g=(0,mr.Z)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return r.createElement(Yl,(0,gr.Z)({renderSuffix:function(e){return r.createElement(ns,{className:n.notchedOutline,label:s,labelWidth:c,notched:void 0!==p?p:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,gr.Z)({},n,{root:(0,br.Z)(n.root,n.underline),notchedOutline:null}),fullWidth:i,inputComponent:l,multiline:d,ref:t,type:m},g))}));rs.muiName="Input";var os=(0,wr.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(rs);function is(){return r.useContext(Zl)}var as=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=(e.color,e.component),l=void 0===a?"label":a,s=(e.disabled,e.error,e.filled,e.focused,e.required,(0,mr.Z)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),u=Fl({props:e,muiFormControl:is(),states:["color","required","focused","disabled","error","filled"]});return r.createElement(l,(0,gr.Z)({className:(0,br.Z)(o.root,o["color".concat((0,Zr.Z)(u.color||"primary"))],i,u.disabled&&o.disabled,u.error&&o.error,u.filled&&o.filled,u.focused&&o.focused,u.required&&o.required),ref:t},s),n,u.required&&r.createElement("span",{"aria-hidden":!0,className:(0,br.Z)(o.asterisk,u.error&&o.error)}," ","*"))})),ls=(0,wr.Z)((function(e){return{root:(0,gr.Z)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(as),ss=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.disableAnimation,a=void 0!==i&&i,l=(e.margin,e.shrink),s=(e.variant,(0,mr.Z)(e,["classes","className","disableAnimation","margin","shrink","variant"])),u=is(),c=l;void 0===c&&u&&(c=u.filled||u.focused||u.adornedStart);var f=Fl({props:e,muiFormControl:u,states:["margin","variant"]});return r.createElement(ls,(0,gr.Z)({"data-shrink":c,className:(0,br.Z)(n.root,o,u&&n.formControl,!a&&n.animated,c&&n.shrink,"dense"===f.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[f.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},s))})),us=(0,wr.Z)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(ss),cs=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.color,l=void 0===a?"primary":a,s=e.component,u=void 0===s?"div":s,c=e.disabled,f=void 0!==c&&c,d=e.error,p=void 0!==d&&d,h=e.fullWidth,m=void 0!==h&&h,g=e.focused,v=e.hiddenLabel,y=void 0!==v&&v,b=e.margin,w=void 0===b?"none":b,x=e.required,E=void 0!==x&&x,_=e.size,S=e.variant,O=void 0===S?"standard":S,k=(0,mr.Z)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),C=r.useState((function(){var e=!1;return n&&r.Children.forEach(n,(function(t){if((0,ri.Z)(t,["Input","Select"])){var n=(0,ri.Z)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),P=C[0],T=C[1],A=r.useState((function(){var e=!1;return n&&r.Children.forEach(n,(function(t){(0,ri.Z)(t,["Input","Select"])&&$l(t.props,!0)&&(e=!0)})),e})),j=A[0],I=A[1],R=r.useState(!1),N=R[0],D=R[1],M=void 0!==g?g:N;f&&M&&D(!1);var L=r.useCallback((function(){I(!0)}),[]),F={adornedStart:P,setAdornedStart:T,color:l,disabled:f,error:p,filled:j,focused:M,fullWidth:m,hiddenLabel:y,margin:("small"===_?"dense":void 0)||w,onBlur:function(){D(!1)},onEmpty:r.useCallback((function(){I(!1)}),[]),onFilled:L,onFocus:function(){D(!0)},registerEffect:void 0,required:E,variant:O};return r.createElement(Zl.Provider,{value:F},r.createElement(u,(0,gr.Z)({className:(0,br.Z)(o.root,i,"none"!==w&&o["margin".concat((0,Zr.Z)(w))],m&&o.fullWidth),ref:t},k),n))})),fs=(0,wr.Z)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(cs),ds=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.component,l=void 0===a?"p":a,s=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,(0,mr.Z)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),u=Fl({props:e,muiFormControl:is(),states:["variant","margin","disabled","error","filled","focused","required"]});return r.createElement(l,(0,gr.Z)({className:(0,br.Z)(o.root,("filled"===u.variant||"outlined"===u.variant)&&o.contained,i,u.disabled&&o.disabled,u.error&&o.error,u.filled&&o.filled,u.focused&&o.focused,u.required&&o.required,"dense"===u.margin&&o.marginDense),ref:t},s)," "===n?r.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):n)})),ps=(0,wr.Z)((function(e){return{root:(0,gr.Z)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(ds),hs=n(65835);function ms(e,t){return"object"===(0,H.Z)(t)&&null!==t?e===t:String(e)===String(t)}var gs=r.forwardRef((function(e,t){var n=e["aria-label"],o=e.autoFocus,i=e.autoWidth,a=e.children,l=e.classes,s=e.className,u=e.defaultValue,c=e.disabled,f=e.displayEmpty,d=e.IconComponent,p=e.inputRef,h=e.labelId,m=e.MenuProps,g=void 0===m?{}:m,v=e.multiple,y=e.name,b=e.onBlur,w=e.onChange,x=e.onClose,E=e.onFocus,_=e.onOpen,S=e.open,O=e.readOnly,k=e.renderValue,C=e.SelectDisplayProps,P=void 0===C?{}:C,T=e.tabIndex,A=(e.type,e.value),j=e.variant,I=void 0===j?"standard":j,R=(0,mr.Z)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),N=(0,kl.Z)({controlled:A,default:u,name:"Select"}),D=(0,_o.Z)(N,2),M=D[0],L=D[1],F=r.useRef(null),z=r.useState(null),B=z[0],Z=z[1],U=r.useRef(null!=S).current,H=r.useState(),W=H[0],G=H[1],V=r.useState(!1),$=V[0],K=V[1],q=(0,Er.Z)(t,p);r.useImperativeHandle(q,(function(){return{focus:function(){B.focus()},node:F.current,value:M}}),[B,M]),r.useEffect((function(){o&&B&&B.focus()}),[o,B]),r.useEffect((function(){if(B){var e=(0,to.Z)(B).getElementById(h);if(e){var t=function(){getSelection().isCollapsed&&B.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[h,B]);var Y,X,J=function(e,t){e?_&&_(t):x&&x(t),U||(G(i?null:B.clientWidth),K(e))},Q=r.Children.toArray(a),ee=function(e){return function(t){var n;if(v||J(!1,t),v){n=Array.isArray(M)?M.slice():[];var r=M.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),M!==n&&(L(n),w&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:y}}),w(t,e)))}},te=null!==B&&(U?S:$);delete R["aria-invalid"];var ne=[],re=!1;($l({value:M})||f)&&(k?Y=k(M):re=!0);var oe=Q.map((function(e){if(!r.isValidElement(e))return null;var t;if(v){if(!Array.isArray(M))throw new Error((0,Ll.Z)(2));(t=M.some((function(t){return ms(t,e.props.value)})))&&re&&ne.push(e.props.children)}else(t=ms(M,e.props.value))&&re&&(X=e.props.children);return t&&!0,r.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:ee(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));re&&(Y=v?ne.join(", "):X);var ie,ae=W;!i&&U&&B&&(ae=B.clientWidth),ie=void 0!==T?T:c?null:0;var le=P.id||(y?"mui-component-select-".concat(y):void 0);return r.createElement(r.Fragment,null,r.createElement("div",(0,gr.Z)({className:(0,br.Z)(l.root,l.select,l.selectMenu,l[I],s,c&&l.disabled),ref:Z,tabIndex:ie,role:"button","aria-disabled":c?"true":void 0,"aria-expanded":te?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[h,le].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!O){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),J(!0,e))}},onMouseDown:c||O?null:function(e){0===e.button&&(e.preventDefault(),B.focus(),J(!0,e))},onBlur:function(e){!te&&b&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:M,name:y}}),b(e))},onFocus:E},P,{id:le}),function(e){return null==e||"string"==typeof e&&!e.trim()}(Y)?r.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):Y),r.createElement("input",(0,gr.Z)({value:Array.isArray(M)?M.join(","):M,name:y,ref:F,"aria-hidden":!0,onChange:function(e){var t=Q.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=Q[t];L(n.props.value),w&&w(e,n)}},tabIndex:-1,className:l.nativeInput,autoFocus:o},R)),r.createElement(d,{className:(0,br.Z)(l.icon,l["icon".concat((0,Zr.Z)(I))],te&&l.iconOpen,c&&l.disabled)}),r.createElement(ni,(0,gr.Z)({id:"menu-".concat(y||""),anchorEl:B,open:te,onClose:function(e){J(!1,e)}},g,{MenuListProps:(0,gr.Z)({"aria-labelledby":h,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:(0,gr.Z)({},g.PaperProps,{style:(0,gr.Z)({minWidth:ae},null!=g.PaperProps?g.PaperProps.style:null)})}),oe))})),vs=n(63786),ys=(0,vs.Z)(r.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),bs=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.disabled,a=e.IconComponent,l=e.inputRef,s=e.variant,u=void 0===s?"standard":s,c=(0,mr.Z)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return r.createElement(r.Fragment,null,r.createElement("select",(0,gr.Z)({className:(0,br.Z)(n.root,n.select,n[u],o,i&&n.disabled),disabled:i,ref:l||t},c)),e.multiple?null:r.createElement(a,{className:(0,br.Z)(n.icon,n["icon".concat((0,Zr.Z)(u))],i&&n.disabled)}))})),ws=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},xs=r.createElement(Jl,null),Es=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.IconComponent,a=void 0===i?ys:i,l=e.input,s=void 0===l?xs:l,u=e.inputProps,c=(e.variant,(0,mr.Z)(e,["children","classes","IconComponent","input","inputProps","variant"])),f=Fl({props:e,muiFormControl:is(),states:["variant"]});return r.cloneElement(s,(0,gr.Z)({inputComponent:bs,inputProps:(0,gr.Z)({children:n,classes:o,IconComponent:a,variant:f.variant,type:void 0},u,s?s.props.inputProps:{}),ref:t},c))}));Es.muiName="Select";(0,wr.Z)(ws,{name:"MuiNativeSelect"})(Es);var _s=ws,Ss=r.createElement(Jl,null),Os=r.createElement(es,null),ks=r.forwardRef((function e(t,n){var o=t.autoWidth,i=void 0!==o&&o,a=t.children,l=t.classes,s=t.displayEmpty,u=void 0!==s&&s,c=t.IconComponent,f=void 0===c?ys:c,d=t.id,p=t.input,h=t.inputProps,m=t.label,g=t.labelId,v=t.labelWidth,y=void 0===v?0:v,b=t.MenuProps,w=t.multiple,x=void 0!==w&&w,E=t.native,_=void 0!==E&&E,S=t.onClose,O=t.onOpen,k=t.open,C=t.renderValue,P=t.SelectDisplayProps,T=t.variant,A=void 0===T?"standard":T,j=(0,mr.Z)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),I=_?bs:gs,R=Fl({props:t,muiFormControl:is(),states:["variant"]}).variant||A,N=p||{standard:Ss,outlined:r.createElement(os,{label:m,labelWidth:y}),filled:Os}[R];return r.cloneElement(N,(0,gr.Z)({inputComponent:I,inputProps:(0,gr.Z)({children:a,IconComponent:f,variant:R,type:void 0,multiple:x},_?{id:d}:{autoWidth:i,displayEmpty:u,labelId:g,MenuProps:b,onClose:S,onOpen:O,open:k,renderValue:C,SelectDisplayProps:(0,gr.Z)({id:d},P)},h,{classes:h?(0,hs.Z)({baseClasses:l,newClasses:h.classes,Component:e}):l},p?p.props.inputProps:{}),ref:n},j))}));ks.muiName="Select";var Cs=(0,wr.Z)(_s,{name:"MuiSelect"})(ks),Ps={standard:Jl,filled:es,outlined:os},Ts=r.forwardRef((function(e,t){var n=e.autoComplete,o=e.autoFocus,i=void 0!==o&&o,a=e.children,l=e.classes,s=e.className,u=e.color,c=void 0===u?"primary":u,f=e.defaultValue,d=e.disabled,p=void 0!==d&&d,h=e.error,m=void 0!==h&&h,g=e.FormHelperTextProps,v=e.fullWidth,y=void 0!==v&&v,b=e.helperText,w=e.hiddenLabel,x=e.id,E=e.InputLabelProps,_=e.inputProps,S=e.InputProps,O=e.inputRef,k=e.label,C=e.multiline,P=void 0!==C&&C,T=e.name,A=e.onBlur,j=e.onChange,I=e.onFocus,R=e.placeholder,N=e.required,D=void 0!==N&&N,M=e.rows,L=e.rowsMax,F=e.select,z=void 0!==F&&F,B=e.SelectProps,Z=e.type,U=e.value,H=e.variant,W=void 0===H?"standard":H,G=(0,mr.Z)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]);var V={};if("outlined"===W&&(E&&void 0!==E.shrink&&(V.notched=E.shrink),k)){var $,K=null!==($=null==E?void 0:E.required)&&void 0!==$?$:D;V.label=r.createElement(r.Fragment,null,k,K&&" *")}z&&(B&&B.native||(V.id=void 0),V["aria-describedby"]=void 0);var q=b&&x?"".concat(x,"-helper-text"):void 0,Y=k&&x?"".concat(x,"-label"):void 0,X=Ps[W],J=r.createElement(X,(0,gr.Z)({"aria-describedby":q,autoComplete:n,autoFocus:i,defaultValue:f,fullWidth:y,multiline:P,name:T,rows:M,rowsMax:L,type:Z,value:U,id:x,inputRef:O,onBlur:A,onChange:j,onFocus:I,placeholder:R,inputProps:_},V,S));return r.createElement(fs,(0,gr.Z)({className:(0,br.Z)(l.root,s),disabled:p,error:m,fullWidth:y,hiddenLabel:w,ref:t,required:D,color:c,variant:W},G),k&&r.createElement(us,(0,gr.Z)({htmlFor:x,id:Y},E),k),z?r.createElement(Cs,(0,gr.Z)({"aria-describedby":q,id:x,labelId:Y,value:U,input:J},B),a):J,b&&r.createElement(ps,(0,gr.Z)({id:q},g),b))})),As=(0,wr.Z)({root:{}},{name:"MuiTextField"})(Ts),js=n(64566),Is=n(87239),Rs="_3s81HemeKZtqu65wI1fy6E",Ns="_2PiruT2xp0ahiZEbiVpgcf",Ds="_2fpqeP5Cl7bfJ6a5Nh7IP_",Ms="_3FErKLfln3upSA8QUvjViU";function Ls(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fs(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zs(e){var t,n=e.identifier,o=(0,r.useRef)(),i=Sl().enqueueSnackbar,a=function(){o.current.focus(),o.current.select(),navigator.clipboard&&(navigator.clipboard.writeText(o.current.value),i(at("utils.code_copied"),{anchorOrigin:{vertical:"top",horizontal:"left"}}))};return r.createElement("div",{className:Ns},r.createElement(Hr,{color:"secondary",startIcon:r.createElement(Is.Z,null),size:"small",onClick:a},at("utils.copy_code")),r.createElement("textarea",{className:Ns,readOnly:!0,value:(t=n,'\x3c!-- Buttonizer --\x3e\n<script type="text/javascript">\n(function(n,t,c){var o=t.createElement("script");o.async=!0,o.src="https://cdn.buttonizer.io/embed.js",o.onload=function(){window.Buttonizer.init(c)},t.head.appendChild(o)})(window,document,"'.concat(t,'");\n<\/script>\n\x3c!-- End Buttonizer --\x3e')),onClick:a,ref:o}))}function Bs(e){var t=e.opened,n=void 0!==t&&t,o=e.onClose,i=e.disableWelcome,a=void 0!==i&&i,l=na(),s=Ls((0,r.useState)(null),2),u=s[0],c=s[1],f=function(e){return function(t,n){c(n?e:null)}},d=l.getState().misc.identifier,p=l.getState().misc.domain;return r.createElement(Oa,{open:n,title:"Install Buttonizer on your site",maxWidth:"sm",buttons:null!==u?[{value:"open_dashboard",text:at("common.to_dashboard")},{value:"confirm",text:at("common.finish"),variant:"contained"}]:[{value:"confirm",text:at("modal.close"),disabled:a}],onClose:function(e){"confirm"===e?o():"open_dashboard"===e&&window.open("".concat(window.buttonizer_admin.admin,"/sites/").concat(window.buttonizer_admin.siteId))}},app.initializedWithWelcome&&r.createElement(pi,{variant:"body1",style:{marginBottom:25}},"Wow, that looks great! Let's add Buttonizer to your website."),r.createElement(pi,{variant:"body1",style:{marginBottom:25}},"Below you can find the installation instructions for ",r.createElement("b",null,p),"."),r.createElement(Pl,{expanded:"custom"===u,onChange:f("custom")},r.createElement(Al,{expandIcon:r.createElement(js.Z,null),"aria-controls":"custombh-content",id:"custombh-header"},r.createElement(Il,{className:Rs},r.createElement("i",{className:"fas fa-code"})),r.createElement(pi,{style:{marginLeft:15}},"Integrate Buttonizer on a custom site")),r.createElement(Nl,{className:Ms},r.createElement(pi,{variant:"body1"},"Integrating Buttonizer is easy! Paste the following short code on the footer your website."),r.createElement(zs,{identifier:d}),r.createElement(Ml,{href:"https://community.buttonizer.pro/knowledgebase/897",target:"_blank",color:"secondary"},"Need help or more information?"))),r.createElement(Pl,{expanded:"wordpress"===u,onChange:f("wordpress")},r.createElement(Al,{expandIcon:r.createElement(js.Z,null),"aria-controls":"wordpressbh-content",id:"wordpressbh-header"},r.createElement(Il,{className:Rs},r.createElement("i",{className:"fab fa-wordpress"})),r.createElement(pi,{style:{marginLeft:15}},"Integrate Buttonizer on WordPress")),r.createElement(Nl,{className:Ms},r.createElement("div",{className:Ds},r.createElement(pi,{variant:"body1"},r.createElement("b",null,"Important:")," If you already have the WordPress plugin installed, please ",r.createElement("b",null,"deactivate")," before placing the install code.")),r.createElement(pi,{variant:"body1"},"Integrating Buttonizer into your WordPress website is easy!"),r.createElement(pi,{variant:"body1",style:{marginTop:15}},"Install a"," ",r.createElement(Ml,{href:"https://wordpress.org/plugins/header-footer/",targt:"_blank",color:"secondary",target:"_blank"},"Headers & Footers")," ","plugin (or a similar plugin). Then, open the settings and paste the following short code to the Footer section."),r.createElement(zs,{identifier:d}),r.createElement(Ml,{href:"https://community.buttonizer.pro/knowledgebase/897",target:"_blank",color:"secondary"},"Need help or more information?"))),r.createElement(Pl,{expanded:"shopify"===u,onChange:f("shopify")},r.createElement(Al,{expandIcon:r.createElement(js.Z,null),"aria-controls":"shopifybh-content",id:"shopifybh-header"},r.createElement(Il,{className:Rs},r.createElement("i",{className:"fab fa-shopify"})),r.createElement(pi,{style:{marginLeft:15}},"Integrate Buttonizer on Shopify")),r.createElement(Nl,{className:Ms},r.createElement("div",{className:Ds},r.createElement(pi,{variant:"body1"},r.createElement("b",null,"Important:")," Our Shopify App is has just been released. If you have any feedback, make sure to let us know!")),r.createElement(pi,{variant:"body1"},"Integrating Buttonizer into your Shopify store is easy! Go to our"," ",r.createElement(Ml,{href:"https://apps.shopify.com/buttonizer",target:"_blank",color:"secondary"},"Buttonizer for Shopify")," ","page. Then, click the ",r.createElement("b",null,"Add app")," button and select your store."),r.createElement(pi,{variant:"body1",style:{marginTop:15,marginBottom:15}},"After the app has been installed, follow the steps to connect your Buttonizer site."),r.createElement(Hr,{color:"secondary",component:"a",href:"https://apps.shopify.com/buttonizer",target:"_blank"},"Install Buttonizer"))),r.createElement(Pl,{expanded:"developer"===u,onChange:f("developer")},r.createElement(Al,{expandIcon:r.createElement(js.Z,null),"aria-controls":"developerbh-content",id:"developerbh-header"},r.createElement(Il,{className:Rs},r.createElement("i",{className:"far fa-envelope"})),r.createElement(pi,{style:{marginLeft:15}},"Send install instructions to my developer")),r.createElement(Nl,{className:Ms},r.createElement(pi,{variant:"body1"},"Aren't you familiar with adding scripts to your website? Or do you have a developer wizard? Great! Your developer knows what to do with our integration script."),r.createElement(pi,{variant:"body1",style:{marginTop:15}},"Copy the link below and send it to your developer"," ",r.createElement(Ml,{href:"mailto:?subject=Install%20Buttonizer&body=Buttonizer%20Integration%20Installation%20Instructions:%20".concat(encodeURI("".concat(window.buttonizer_admin.admin,"/integrate/").concat(d))),color:"secondary"},"per email")," ","or chat. This page contains information about your integration."),r.createElement(As,{variant:"outlined",value:"".concat(window.buttonizer_admin.admin,"/integrate/").concat(d),style:{marginTop:15,marginBottom:15},label:"Integrate Buttonizer information link",fullWidth:!0,onClick:function(e){e.target.focus(),e.target.select()},inputProps:{readOnly:!0}}),r.createElement(Ml,{href:"".concat(window.buttonizer_admin.admin,"/integrate/").concat(d),target:"_blank",color:"secondary"},"Preview integration information page"))),null===u&&r.createElement(pi,{variant:"body1",style:{marginTop:25,textAlign:"center"}},"Select one of the categories above to continue."))}function Zs(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Us(e){return e instanceof Zs(e).Element||e instanceof Element}function Hs(e){return e instanceof Zs(e).HTMLElement||e instanceof HTMLElement}function Ws(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Zs(e).ShadowRoot||e instanceof ShadowRoot)}var Gs=Math.max,Vs=Math.min,$s=Math.round;function Ks(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Hs(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=$s(n.width)/a||1),i>0&&(o=$s(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function qs(e){var t=Zs(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ys(e){return e?(e.nodeName||"").toLowerCase():null}function Xs(e){return((Us(e)?e.ownerDocument:e.document)||window.document).documentElement}function Js(e){return Ks(Xs(e)).left+qs(e).scrollLeft}function Qs(e){return Zs(e).getComputedStyle(e)}function eu(e){var t=Qs(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function tu(e,t,n){void 0===n&&(n=!1);var r=Hs(t),o=Hs(t)&&function(e){var t=e.getBoundingClientRect(),n=$s(t.width)/e.offsetWidth||1,r=$s(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Xs(t),a=Ks(e,o),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ys(t)||eu(i))&&(l=function(e){return e!==Zs(e)&&Hs(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:qs(e);var t}(t)),Hs(t)?((s=Ks(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Js(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function nu(e){var t=Ks(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ru(e){return"html"===Ys(e)?e:e.assignedSlot||e.parentNode||(Ws(e)?e.host:null)||Xs(e)}function ou(e,t){var n;void 0===t&&(t=[]);var r=function e(t){return["html","body","#document"].indexOf(Ys(t))>=0?t.ownerDocument.body:Hs(t)&&eu(t)?t:e(ru(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Zs(r),a=o?[i].concat(i.visualViewport||[],eu(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(ou(ru(a)))}function iu(e){return["table","td","th"].indexOf(Ys(e))>=0}function au(e){return Hs(e)&&"fixed"!==Qs(e).position?e.offsetParent:null}function lu(e){for(var t=Zs(e),n=au(e);n&&iu(n)&&"static"===Qs(n).position;)n=au(n);return n&&("html"===Ys(n)||"body"===Ys(n)&&"static"===Qs(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Hs(e)&&"fixed"===Qs(e).position)return null;var n=ru(e);for(Ws(n)&&(n=n.host);Hs(n)&&["html","body"].indexOf(Ys(n))<0;){var r=Qs(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var su="top",uu="bottom",cu="right",fu="left",du=[su,uu,cu,fu],pu=du.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),hu=[].concat(du,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),mu=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function gu(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}function vu(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var yu={placement:"bottom",modifiers:[],strategy:"absolute"};function bu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function wu(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?yu:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},yu,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,s={state:o,setOptions:function(n){var l="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,l),o.scrollParents={reference:Us(e)?ou(e):e.contextElement?ou(e.contextElement):[],popper:ou(t)};var c=function(e){var t=gu(e);return mu.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=c.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var l=i({state:o,name:t,instance:s,options:r});a.push(l||function(){})}})),s.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(bu(t,n)){o.rects={reference:tu(t,lu(n),"fixed"===o.options.strategy),popper:nu(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,u=i.options,c=void 0===u?{}:u,f=i.name;"function"==typeof a&&(o=a({state:o,options:c,name:f,instance:s})||o)}else o.reset=!1,r=-1}}},update:vu((function(){return new Promise((function(e){s.forceUpdate(),e(o)}))})),destroy:function(){u(),l=!0}};if(!bu(e,t))return s;function u(){a.forEach((function(e){return e()})),a=[]}return s.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}var xu={passive:!0};function Eu(e){return e.split("-")[0]}function _u(e){return e.split("-")[1]}function Su(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ou(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Eu(o):null,a=o?_u(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case su:t={x:l,y:n.y-r.height};break;case uu:t={x:l,y:n.y+n.height};break;case cu:t={x:n.x+n.width,y:s};break;case fu:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?Su(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case"start":t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var ku={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cu(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=a.x,p=void 0===d?0:d,h=a.y,m=void 0===h?0:h,g="function"==typeof c?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=fu,w=su,x=window;if(u){var E=lu(n),_="clientHeight",S="clientWidth";if(E===Zs(n)&&"static"!==Qs(E=Xs(n)).position&&"absolute"===l&&(_="scrollHeight",S="scrollWidth"),E=E,o===su||(o===fu||o===cu)&&"end"===i)w=uu,m-=(f&&E===x&&x.visualViewport?x.visualViewport.height:E[_])-r.height,m*=s?1:-1;if(o===fu||(o===su||o===uu)&&"end"===i)b=cu,p-=(f&&E===x&&x.visualViewport?x.visualViewport.width:E[S])-r.width,p*=s?1:-1}var O,k=Object.assign({position:l},u&&ku),C=!0===c?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:$s(t*r)/r||0,y:$s(n*r)/r||0}}({x:p,y:m}):{x:p,y:m};return p=C.x,m=C.y,s?Object.assign({},k,((O={})[w]=y?"0":"",O[b]=v?"0":"",O.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",O)):Object.assign({},k,((t={})[w]=y?m+"px":"",t[b]=v?p+"px":"",t.transform="",t))}var Pu={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Hs(o)&&Ys(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Hs(r)&&Ys(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Tu={left:"right",right:"left",bottom:"top",top:"bottom"};function Au(e){return e.replace(/left|right|bottom|top/g,(function(e){return Tu[e]}))}var ju={start:"end",end:"start"};function Iu(e){return e.replace(/start|end/g,(function(e){return ju[e]}))}function Ru(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ws(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Nu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Du(e,t){return"viewport"===t?Nu(function(e){var t=Zs(e),n=Xs(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,l=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,l=r.offsetTop)),{width:o,height:i,x:a+Js(e),y:l}}(e)):Us(t)?function(e){var t=Ks(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Nu(function(e){var t,n=Xs(e),r=qs(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Gs(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Gs(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Js(e),s=-r.scrollTop;return"rtl"===Qs(o||n).direction&&(l+=Gs(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Xs(e)))}function Mu(e,t,n){var r="clippingParents"===t?function(e){var t=ou(ru(e)),n=["absolute","fixed"].indexOf(Qs(e).position)>=0&&Hs(e)?lu(e):e;return Us(n)?t.filter((function(e){return Us(e)&&Ru(e,n)&&"body"!==Ys(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=Du(e,n);return t.top=Gs(r.top,t.top),t.right=Vs(r.right,t.right),t.bottom=Vs(r.bottom,t.bottom),t.left=Gs(r.left,t.left),t}),Du(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Lu(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Fu(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function zu(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,l=n.rootBoundary,s=void 0===l?"viewport":l,u=n.elementContext,c=void 0===u?"popper":u,f=n.altBoundary,d=void 0!==f&&f,p=n.padding,h=void 0===p?0:p,m=Lu("number"!=typeof h?h:Fu(h,du)),g="popper"===c?"reference":"popper",v=e.rects.popper,y=e.elements[d?g:c],b=Mu(Us(y)?y:y.contextElement||Xs(e.elements.popper),a,s),w=Ks(e.elements.reference),x=Ou({reference:w,element:v,strategy:"absolute",placement:o}),E=Nu(Object.assign({},v,x)),_="popper"===c?E:w,S={top:b.top-_.top+m.top,bottom:_.bottom-b.bottom+m.bottom,left:b.left-_.left+m.left,right:_.right-b.right+m.right},O=e.modifiersData.offset;if("popper"===c&&O){var k=O[o];Object.keys(S).forEach((function(e){var t=[cu,uu].indexOf(e)>=0?1:-1,n=[su,uu].indexOf(e)>=0?"y":"x";S[e]+=k[n]*t}))}return S}function Bu(e,t,n){return Gs(e,Vs(t,n))}function Zu(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Uu(e){return[su,cu,uu,fu].some((function(t){return e[t]>=0}))}var Hu=wu({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=Zs(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,xu)})),l&&s.addEventListener("resize",n.update,xu),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,xu)})),l&&s.removeEventListener("resize",n.update,xu)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ou({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,u={placement:Eu(t.placement),variation:_u(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Cu(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cu(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Pu,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=hu.reduce((function(e,n){return e[n]=function(e,t,n){var r=Eu(e),o=[fu,su].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[fu,cu].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Eu(g),y=s||(v===g||!h?[Au(g)]:function(e){if("auto"===Eu(e))return[];var t=Au(e);return[Iu(e),t,Iu(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat("auto"===Eu(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?hu:s,c=_u(r),f=c?l?pu:pu.filter((function(e){return _u(e)===c})):du,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=zu(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Eu(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,E=new Map,_=!0,S=b[0],O=0;O<b.length;O++){var k=b[O],C=Eu(k),P="start"===_u(k),T=[su,uu].indexOf(C)>=0,A=T?"width":"height",j=zu(t,{placement:k,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),I=T?P?cu:fu:P?uu:su;w[A]>x[A]&&(I=Au(I));var R=Au(I),N=[];if(i&&N.push(j[C]<=0),l&&N.push(j[I]<=0,j[R]<=0),N.every((function(e){return e}))){S=k,_=!1;break}E.set(k,N)}if(_)for(var D=function(e){var t=b.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},M=h?3:1;M>0;M--){if("break"===D(M))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,m=void 0===h?0:h,g=zu(t,{boundary:s,rootBoundary:u,padding:f,altBoundary:c}),v=Eu(t.placement),y=_u(t.placement),b=!y,w=Su(v),x="x"===w?"y":"x",E=t.modifiersData.popperOffsets,_=t.rects.reference,S=t.rects.popper,O="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(E){if(i){var T,A="y"===w?su:fu,j="y"===w?uu:cu,I="y"===w?"height":"width",R=E[w],N=R+g[A],D=R-g[j],M=p?-S[I]/2:0,L="start"===y?_[I]:S[I],F="start"===y?-S[I]:-_[I],z=t.elements.arrow,B=p&&z?nu(z):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=Z[A],H=Z[j],W=Bu(0,_[I],B[I]),G=b?_[I]/2-M-W-U-k.mainAxis:L-W-U-k.mainAxis,V=b?-_[I]/2+M+W+H+k.mainAxis:F+W+H+k.mainAxis,$=t.elements.arrow&&lu(t.elements.arrow),K=$?"y"===w?$.clientTop||0:$.clientLeft||0:0,q=null!=(T=null==C?void 0:C[w])?T:0,Y=R+V-q,X=Bu(p?Vs(N,R+G-q-K):N,R,p?Gs(D,Y):D);E[w]=X,P[w]=X-R}if(l){var J,Q="x"===w?su:fu,ee="x"===w?uu:cu,te=E[x],ne="y"===x?"height":"width",re=te+g[Q],oe=te-g[ee],ie=-1!==[su,fu].indexOf(v),ae=null!=(J=null==C?void 0:C[x])?J:0,le=ie?re:te-_[ne]-S[ne]-ae+k.altAxis,se=ie?te+_[ne]+S[ne]-ae-k.altAxis:oe,ue=p&&ie?function(e,t,n){var r=Bu(e,t,n);return r>n?n:r}(le,te,se):Bu(p?le:re,te,p?se:oe);E[x]=ue,P[x]=ue-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Eu(n.placement),s=Su(l),u=[fu,cu].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return Lu("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Fu(e,du))}(o.padding,n),f=nu(i),d="y"===s?su:fu,p="y"===s?uu:cu,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],m=a[s]-n.rects.reference[s],g=lu(i),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=c[d],w=v-f[u]-c[p],x=v/2-f[u]/2+y,E=Bu(b,x,w),_=s;n.modifiersData[r]=((t={})[_]=E,t.centerOffset=E-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Ru(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=zu(t,{elementContext:"reference"}),l=zu(t,{altBoundary:!0}),s=Zu(a,r),u=Zu(l,o,i),c=Uu(s),f=Uu(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),Wu=n(69590),Gu=n.n(Wu),Vu=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},$u="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,Ku=[];function qu(){return(qu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Yu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xu(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ju=Qi((function(e){return{currentStep:e.misc.hint_step,welcome:e.settings.welcome}}),(function(e){return{setMisc:function(){return e(wt.apply(void 0,arguments))},setHintStep:function(t){return e(wt("hint_step",t))}}}))((function(e){var t=e.stepTrigger,n=e.currentStep,o=void 0!==n&&n,i=e.anchorEl,a=void 0===i?null:i,l=e.text,s=e.setHintStep,u=e.position,c=void 0===u?[0,20]:u;if(!1===o||!a||t!==o)return null;a.classList.add("hint-pulse-".concat(t)),a.addEventListener("click",(function(){if(a.classList.remove("hint-pulse-".concat(t)),2===t)return s(!1);s(t+1)}),{once:!0});var f=Yu((0,r.useState)(null),2),d=f[0],p=f[1],h=function(e,t,n){void 0===n&&(n={});var o=r.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Ku},a=r.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=a[0],s=a[1],u=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);s({styles:Vu(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Vu(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),c=r.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Gu()(o.current,e)?o.current||e:(o.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),f=r.useRef();return $u((function(){f.current&&f.current.setOptions(c)}),[c]),$u((function(){if(null!=e&&null!=t){var r=(n.createPopper||Hu)(e,t,c);return f.current=r,function(){r.destroy(),f.current=null}}}),[e,t,n.createPopper]),{state:f.current?f.current.state:null,styles:l.styles,attributes:l.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}}(a,d,{placement:"top",modifiers:[{name:"offset",options:{offset:c}}]}),m=h.styles,g=h.attributes;return r.createElement("div",qu({ref:p,style:m.popper},g.popper,{className:"hint","data-testid":"hints:popper"}),r.createElement("p",null,l),r.createElement($r,{className:"close-button",onClick:function(){s(!1),a.classList.remove("hint-pulse-".concat(t)),a=null},size:"small","data-testid":"hints:close-button"},r.createElement(Il,{fontSize:"inherit",className:"fas fa-times","data-testid":"hints:close-button-icon"})))}));function Qu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ec(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ec(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ec(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var tc=Qi((function(e){return{hasChanges:e.misc.hasChanges,nextHintStepIndex:e.misc.hint_step}}))((function(e){var t=e.hasChanges,n=e.nextHintStepIndex,o=Qu((0,r.useState)(!1),2),i=o[0],a=o[1],l=Qu((0,r.useState)(!1),2),s=l[0],u=l[1],c=Qu((0,r.useState)(!1),2),f=c[0],d=c[1],p=Qu((0,r.useState)(!1),2),h=p[0],m=p[1],g=Qu((0,r.useState)(null),2),v=g[0],y=g[1],b=(0,r.useRef)(),w=Qu((0,r.useState)(null),2),x=w[0],E=w[1],_=(0,r.useRef)();function S(){return at(i?"common.publishing":s?"common.published":"common.publish")}function O(){if(!1===t)return u(!0),void setTimeout((function(){u(!1),app.initializedWithWelcome&&!h&&(m(!0),d(!0))}),1e3);a(!0),ft("/publish",{method:"POST",data:{nonce:buttonizer_admin.nonce}}).then((function(e){var t=e.status,n=e.message;if(a(!1),"error"===t)return app.loader.hide(),void app.error({message:n});app.initializedWithWelcome&&!h&&(m(!0),d(!0)),app.setHasChanges(!1),u(!0),setTimeout((function(){u(!1)}),3e3)})).catch((function(e){e.code;a(!1)}))}return(0,r.useEffect)((function(){E(_.current)}),[_]),window.buttonizer_admin.is_stand_alone?r.createElement(r.Fragment,null,r.createElement(Bs,{opened:f,onClose:function(){return d(!1)},disableWelcome:app.initializedWithWelcome}),r.createElement(ni,{anchorEl:v,open:Boolean(v),onClose:function(){return y(null)},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},onClick:function(){return y(null)}},r.createElement(si,{onClick:function(){return d(!0)}},r.createElement(ci,null,r.createElement(bi.Z,{fontSize:"small"})),r.createElement(mi,null,"Integrate Buttonizer"))),i&&r.createElement(vi,{size:20,style:{verticalAlign:"middle",margin:"0 20px"}}),r.createElement(Gr,{variant:"contained",ref:b,style:{verticalAlign:"middle"}},!i&&r.createElement(Hr,{onClick:function(){return O()},disabled:i,variant:"contained",color:"primary","data-testid":"publish-button",className:"MuiButton-Publish"},S()),r.createElement(Hr,{size:"small",color:"primary","aria-label":"select merge strategy","aria-haspopup":"menu",onClick:function(e){return y(e.currentTarget)},className:"MuiButton-PublishGroup"},r.createElement(yi.Z,null)))):r.createElement(r.Fragment,null,r.createElement(Ju,{stepTrigger:2,anchorEl:x,position:[0,20],text:at("buttonizer_tour.hint.step_2")}),r.createElement(Hr,{onClick:function(){return O()},ref:_,disabled:!1===n&&(!(!i&&!1!==t)||void 0),variant:"contained",color:"primary","data-testid":"publish-button",className:"MuiButton-Publish"},S()))})),nc={passive:!0,capture:!0};function rc(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function oc(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function ic(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ac(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function lc(e){return[].concat(e)}function sc(e,t){-1===e.indexOf(t)&&e.push(t)}function uc(e){return e.split("-")[0]}function cc(e){return[].slice.call(e)}function fc(){return document.createElement("div")}function dc(e){return["Element","Fragment"].some((function(t){return oc(e,t)}))}function pc(e){return oc(e,"MouseEvent")}function hc(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function mc(e){return dc(e)?[e]:function(e){return oc(e,"NodeList")}(e)?cc(e):Array.isArray(e)?e:cc(document.querySelectorAll(e))}function gc(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function vc(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function yc(e){var t,n=lc(e)[0];return(null==n||null==(t=n.ownerDocument)?void 0:t.body)?n.ownerDocument:document}function bc(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var wc={isTouch:!1},xc=0;function Ec(){wc.isTouch||(wc.isTouch=!0,window.performance&&document.addEventListener("mousemove",_c))}function _c(){var e=performance.now();e-xc<20&&(wc.isTouch=!1,document.removeEventListener("mousemove",_c)),xc=e}function Sc(){var e=document.activeElement;if(hc(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var Oc="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",kc=/MSIE |Trident\//.test(Oc);var Cc={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Pc=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Cc,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Tc=Object.keys(Pc);function Ac(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,o=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:o),t}),{});return Object.assign({},e,{},t)}function jc(e,t){var n=Object.assign({},t,{content:ic(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Ac(Object.assign({},Pc,{plugins:t}))):Tc).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Pc.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Ic(e,t){e.innerHTML=t}function Rc(e){var t=fc();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",dc(e)?t.appendChild(e):Ic(t,e)),t}function Nc(e,t){dc(t.content)?(Ic(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ic(e,t.content):e.textContent=t.content)}function Dc(e){var t=e.firstElementChild,n=cc(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function Mc(e){var t=fc(),n=fc();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=fc();function o(n,r){var o=Dc(t),i=o.box,a=o.content,l=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Nc(a,e.props),r.arrow?l?n.arrow!==r.arrow&&(i.removeChild(l),i.appendChild(Rc(r.arrow))):i.appendChild(Rc(r.arrow)):l&&i.removeChild(l)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),Nc(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}Mc.$$tippy=!0;var Lc=1,Fc=[],zc=[];function Bc(e,t){var n,r,o,i,a,l,s,u,c=jc(e,Object.assign({},Pc,{},Ac((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),f=!1,d=!1,p=!1,h=!1,m=[],g=ac($,c.interactiveDebounce),v=Lc++,y=function(e){return e.filter((function(t,n){return e.indexOf(t)===n}))}(c.plugins),b={id:v,reference:e,popper:fc(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){0;if(b.state.isDestroyed)return;R("onBeforeUpdate",[b,t]),G();var n=b.props,r=jc(e,Object.assign({},b.props,{},t,{ignoreAttributes:!0}));b.props=r,W(),n.interactiveDebounce!==r.interactiveDebounce&&(M(),g=ac($,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?lc(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");D(),I(),E&&E(n,r);b.popperInstance&&(X(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));R("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=wc.isTouch&&!b.props.touch,o=rc(b.props.duration,0,Pc.duration);if(e||t||n||r)return;if(P().hasAttribute("disabled"))return;if(R("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,C()&&(x.style.visibility="visible");I(),B(),b.state.isMounted||(x.style.transition="none");if(C()){var i=A(),a=i.box,l=i.content;gc([a,l],0)}s=function(){var e;if(b.state.isVisible&&!h){if(h=!0,x.offsetHeight,x.style.transition=b.props.moveTransition,C()&&b.props.animation){var t=A(),n=t.box,r=t.content;gc([n,r],o),vc([n,r],"visible")}N(),D(),sc(zc,b),null==(e=b.popperInstance)||e.forceUpdate(),b.state.isMounted=!0,R("onMount",[b]),b.props.animation&&C()&&function(e,t){U(e,t)}(o,(function(){b.state.isShown=!0,R("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=P();e=b.props.interactive&&t===Pc.appendTo||"parent"===t?n.parentNode:ic(t,[n]);e.contains(x)||e.appendChild(x);X(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=rc(b.props.duration,1,Pc.duration);if(e||t||n)return;if(R("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,h=!1,f=!1,C()&&(x.style.visibility="hidden");if(M(),Z(),I(),C()){var o=A(),i=o.box,a=o.content;b.props.animation&&(gc([i,a],r),vc([i,a],"hidden"))}N(),D(),b.props.animation?C()&&function(e,t){U(e,(function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(r,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;T().addEventListener("mousemove",g),sc(Fc,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;J(),Q().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);zc=zc.filter((function(e){return e!==b})),b.state.isMounted=!1,R("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),G(),delete e._tippy,b.state.isDestroyed=!0,R("onDestroy",[b])}};if(!c.render)return b;var w=c.render(b),x=w.popper,E=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var _=y.map((function(e){return e.fn(b)})),S=e.hasAttribute("aria-expanded");return W(),D(),I(),R("onCreate",[b]),c.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(e){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&(T().addEventListener("mousemove",g),g(e))})),b;function O(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function k(){return"hold"===O()[0]}function C(){var e;return!!(null==(e=b.props.render)?void 0:e.$$tippy)}function P(){return u||e}function T(){var e=P().parentNode;return e?yc(e):document}function A(){return Dc(x)}function j(e){return b.state.isMounted&&!b.state.isVisible||wc.isTouch||a&&"focus"===a.type?0:rc(b.props.delay,e?0:1,Pc.delay)}function I(){x.style.pointerEvents=b.props.interactive&&b.state.isVisible?"":"none",x.style.zIndex=""+b.props.zIndex}function R(e,t,n){var r;(void 0===n&&(n=!0),_.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=b.props)[e].apply(r,t)}function N(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=x.id;lc(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function D(){!S&&b.props.aria.expanded&&lc(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===P()?"true":"false"):e.removeAttribute("aria-expanded")}))}function M(){T().removeEventListener("mousemove",g),Fc=Fc.filter((function(e){return e!==g}))}function L(e){if(!(wc.isTouch&&(p||"mousedown"===e.type)||b.props.interactive&&x.contains(e.target))){if(P().contains(e.target)){if(wc.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else R("onClickOutside",[b,e]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),d=!0,setTimeout((function(){d=!1})),b.state.isMounted||Z())}}function F(){p=!0}function z(){p=!1}function B(){var e=T();e.addEventListener("mousedown",L,!0),e.addEventListener("touchend",L,nc),e.addEventListener("touchstart",z,nc),e.addEventListener("touchmove",F,nc)}function Z(){var e=T();e.removeEventListener("mousedown",L,!0),e.removeEventListener("touchend",L,nc),e.removeEventListener("touchstart",z,nc),e.removeEventListener("touchmove",F,nc)}function U(e,t){var n=A().box;function r(e){e.target===n&&(bc(n,"remove",r),t())}if(0===e)return t();bc(n,"remove",l),bc(n,"add",r),l=r}function H(t,n,r){void 0===r&&(r=!1),lc(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function W(){var e;k()&&(H("touchstart",V,{passive:!0}),H("touchend",K,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(H(e,V),e){case"mouseenter":H("mouseleave",K);break;case"focus":H(kc?"focusout":"blur",q);break;case"focusin":H("focusout",q)}}))}function G(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),m=[]}function V(e){var t,n=!1;if(b.state.isEnabled&&!Y(e)&&!d){var r="focus"===(null==(t=a)?void 0:t.type);a=e,u=e.currentTarget,D(),!b.state.isVisible&&pc(e)&&Fc.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function $(e){var t=e.target,n=P().contains(t)||x.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=uc(o.placement),l=o.modifiersData.offset;if(!l)return!0;var s="bottom"===a?l.top.y:0,u="top"===a?l.bottom.y:0,c="right"===a?l.left.x:0,f="left"===a?l.right.x:0,d=t.top-r+s>i,p=r-t.bottom-u>i,h=t.left-n+c>i,m=n-t.right-f>i;return d||p||h||m}))}(Q().concat(x).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null})).filter(Boolean),e)&&(M(),te(e))}function K(e){Y(e)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function q(e){b.props.trigger.indexOf("focusin")<0&&e.target!==P()||b.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function Y(e){return!!wc.isTouch&&k()!==e.type.indexOf("touch")>=0}function X(){J();var t=b.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,l=C()?Dc(x).arrow:null,u=i?{getBoundingClientRect:i,contextElement:i.contextElement||P()}:e,c=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(C()){var n=A().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];C()&&l&&c.push({name:"arrow",options:{element:l,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),b.popperInstance=Hu(u,x,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:c}))}function J(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return cc(x.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&R("onTrigger",[b,e]),B();var t=j(!0),n=O(),o=n[0],i=n[1];wc.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),R("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=j(!1);t?o=setTimeout((function(){b.state.isVisible&&b.hide()}),t):i=requestAnimationFrame((function(){b.hide()}))}}else Z()}}function Zc(e,t){void 0===t&&(t={});var n=Pc.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ec,nc),window.addEventListener("blur",Sc);var r=Object.assign({},t,{plugins:n}),o=mc(e).reduce((function(e,t){var n=t&&Bc(t,r);return n&&e.push(n),e}),[]);return dc(e)?o[0]:o}Zc.defaultProps=Pc,Zc.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Pc[t]=e[t]}))},Zc.currentInput=wc;Object.assign({},Pu,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Zc.setDefaultProps({render:Mc});var Uc=Zc;function Hc(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Wc="undefined"!=typeof window&&"undefined"!=typeof document;function Gc(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Vc(){return Wc&&document.createElement("div")}function $c(e){var t=[];return e.forEach((function(e){t.find((function(t){return function e(t,n){if(t===n)return!0;if("object"==typeof t&&null!=t&&"object"==typeof n&&null!=n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var r in t){if(!n.hasOwnProperty(r))return!1;if(!e(t[r],n[r]))return!1}return!0}return!1}(e,t)}))||t.push(e)})),t}function Kc(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:$c([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]))})})}var qc=Wc?r.useLayoutEffect:r.useEffect;function Yc(e){var t=(0,r.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function Xc(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Jc={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||Xc(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&Xc(t,"remove",e.props.className)},onAfterUpdate:r}}};function Qc(e){return function(t){var n=t.children,i=t.content,a=t.visible,l=t.singleton,s=t.render,u=t.reference,c=t.disabled,f=void 0!==c&&c,d=t.ignoreAttributes,p=void 0===d||d,h=(t.__source,t.__self,Hc(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),m=void 0!==a,g=void 0!==l,v=(0,r.useState)(!1),y=v[0],b=v[1],w=(0,r.useState)({}),x=w[0],E=w[1],_=(0,r.useState)(),S=_[0],O=_[1],k=Yc((function(){return{container:Vc(),renders:1}})),C=Object.assign({ignoreAttributes:p},h,{content:k.container});m&&(C.trigger="manual",C.hideOnClick=!1),g&&(f=!0);var P=C,T=C.plugins||[];s&&(P=Object.assign({},C,{plugins:g?[].concat(T,[{fn:function(){return{onTrigger:function(e,t){var n=l.data.children.find((function(e){return e.instance.reference===t.currentTarget})).content;O(n)}}}}]):T,render:function(){return{popper:k.container}}}));var A=[u].concat(n?[n.type]:[]);return qc((function(){var t=u;u&&u.hasOwnProperty("current")&&(t=u.current);var n=e(t||k.ref||Vc(),Object.assign({},P,{plugins:[Jc].concat(C.plugins||[])}));return k.instance=n,f&&n.disable(),a&&n.show(),g&&l.hook({instance:n,content:i,props:P}),b(!0),function(){n.destroy(),null==l||l.cleanup(n)}}),A),qc((function(){var e;if(1!==k.renders){var t=k.instance;t.setProps(Kc(t.props,P)),null==(e=t.popperInstance)||e.forceUpdate(),f?t.disable():t.enable(),m&&(a?t.show():t.hide()),g&&l.hook({instance:t,content:i,props:P})}else k.renders++})),qc((function(){var e;if(s){var t=k.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;x.placement===n.placement&&x.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&x.escaped===(null==r?void 0:r.hasPopperEscaped)||E({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[x.placement,x.referenceHidden,x.escaped].concat(A)),r.createElement(r.Fragment,null,n?(0,r.cloneElement)(n,{ref:function(e){k.ref=e,Gc(n.ref,e)}}):null,y&&(0,o.createPortal)(s?s(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(x),S,k.instance):i,k.container))}}var ef=function(e,t){return(0,r.forwardRef)((function(n,o){var i=n.children,a=Hc(n,["children"]);return r.createElement(e,Object.assign({},t,a),i?(0,r.cloneElement)(i,{ref:function(e){Gc(o,e),Gc(i.ref,e)}}):null)}))},tf=ef(Qc(Uc));var nf=Qi((function(e,t){return{preference:e.settings.show_tooltips,props:t}}))((function(e){var t=e.props,n=e.arrow,o=void 0===n||n,i=e.trigger,a=void 0===i?"manual":i,l=e.timer,s=void 0===l?500:l,u=e.preference;if(!u&&!0!==t.ignorePreference)return t.children;var c=setTimeout((function(){})),f=!1,d=!1;return r.createElement(tf,{content:t.shiftClick?(0,br.Z)(t.content,t.shiftClick&&" (".concat(at("utils.shift_click"),")")):t.content,hideOnClick:t.hideOnClick,theme:"material",disabled:!u&&!0!==t.ignorePreference||t.disabled,trigger:a,arrow:o,onCreate:function(e){"manual"===a&&(e.reference.addEventListener("mousemove",(function(t){f&&d&&(Math.abs(t.clientX-f)>25||Math.abs(t.clientY-d)>25)&&e.state.isShown&&e.hide(),clearTimeout(c),c=setTimeout((function(){e.show(),f=t.clientX,d=t.clientY}),s)})),e.reference.addEventListener("mouseleave",(function(){clearTimeout(c),e.hide(),f=d=!1})))}},t.children)}));function rf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return of(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return of(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function of(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var af=Qi((function(e){return{hasChanges:e.misc.hasChanges}}))((function(e){var t=e.hasChanges,n=rf((0,r.useState)(!1),2),o=n[0],i=n[1],a=rf((0,r.useState)(!1),2),l=a[0],s=a[1];return window.buttonizer_admin.is_stand_alone?null:r.createElement(r.Fragment,null,r.createElement(nf,{content:at("revert.revert_changes")},r.createElement($r,{onClick:function(){return i(!0)},className:"revert-button",color:"secondary",disabled:!t||l,"data-testid":"revert-button"},r.createElement("i",{className:(0,br.Z)("fas fa-history",l&&"spin")}))),r.createElement(Oa,{open:o,title:at("revert.revert_changes"),buttons:[{text:at("modal.cancel"),value:"close"},{text:at("revert.revert_changes"),value:"revert"}],onClose:function(e){i(!1),"revert"===e&&(s(!0),ft("/revert",{method:"POST",data:{nonce:buttonizer_admin.nonce}}).then((function(e){var t=e.status,n=e.message;if("error"===t)return app.loader.hide(),void app.error({message:n});window.location.reload()})))},testId:"revert-dialog"},r.createElement("p",null,at("revert.modal.intro")),r.createElement("p",null,at("revert.modal.action"))))})),lf=(n(57327),n(89554),n(66992),n(19601),n(41539),n(91058),n(78783),n(4129),n(33948),n(93096)),sf=n.n(lf),uf=n(91296),cf=n.n(uf),ff=n(20773),df=n.n(ff),pf=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),hf="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,mf=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),gf="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(mf):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var vf=["top","right","bottom","left","width","height","size","weight"],yf="undefined"!=typeof MutationObserver,bf=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){gf(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){hf&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),yf?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){hf&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;vf.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),wf=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},xf=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||mf},Ef=Pf(0,0,0,0);function _f(e){return parseFloat(e)||0}function Sf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+_f(e["border-"+n+"-width"])}),0)}function Of(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Ef;var r=xf(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=_f(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=_f(r.width),s=_f(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=Sf(r,"left","right")+i),Math.round(s+a)!==n&&(s-=Sf(r,"top","bottom")+a)),!function(e){return e===xf(e).document.documentElement}(e)){var u=Math.round(l+i)-t,c=Math.round(s+a)-n;1!==Math.abs(u)&&(l-=u),1!==Math.abs(c)&&(s-=c)}return Pf(o.left,o.top,l,s)}var kf="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof xf(e).SVGGraphicsElement}:function(e){return e instanceof xf(e).SVGElement&&"function"==typeof e.getBBox};function Cf(e){return hf?kf(e)?function(e){var t=e.getBBox();return Pf(0,0,t.width,t.height)}(e):Of(e):Ef}function Pf(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Tf=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Pf(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Cf(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Af=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return wf(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);wf(this,{target:e,contentRect:n})},jf=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new pf,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof xf(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Tf(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof xf(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Af(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),If="undefined"!=typeof WeakMap?new WeakMap:new pf,Rf=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=bf.getInstance(),r=new jf(t,n,this);If.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Rf.prototype[e]=function(){var t;return(t=If.get(this))[e].apply(t,arguments)}}));var Nf=void 0!==mf.ResizeObserver?mf.ResizeObserver:Rf,Df=n(31807),Mf=n.n(Df),Lf=(n(85827),n(68309),n(74916),n(4723),n(15306),null),Ff=null;function zf(){if(null===Lf){if("undefined"==typeof document)return Lf=0;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),Lf=n}return Lf}function Bf(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function Zf(e){return e&&e.ownerDocument?e.ownerDocument:document}Mf()&&window.addEventListener("resize",(function(){Ff!==window.devicePixelRatio&&(Ff=window.devicePixelRatio,Lf=null)}));var Uf=function(){function e(t,n){var r=this;this.onScroll=function(){var e=Bf(r.el);r.scrollXTicking||(e.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(e.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x")),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y")),r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x"),r.showScrollbar("y")},this.onMouseMove=function(e){r.mouseX=e.clientX,r.mouseY=e.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1),r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(e){var t,n;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(t=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(n=r.isWithinBounds(r.axis.y.track.rect)),(t||n)&&(e.preventDefault(),e.stopPropagation(),"mousedown"===e.type&&(t&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(e,"x"):r.onTrackClick(e,"x")),n&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(e,"y"):r.onTrackClick(e,"y"))))},this.drag=function(t){var n=r.axis[r.draggedAxis].track,o=n.rect[r.axis[r.draggedAxis].sizeAttr],i=r.axis[r.draggedAxis].scrollbar,a=r.contentWrapperEl[r.axis[r.draggedAxis].scrollSizeAttr],l=parseInt(r.elStyles[r.axis[r.draggedAxis].sizeAttr],10);t.preventDefault(),t.stopPropagation();var s=(("y"===r.draggedAxis?t.pageY:t.pageX)-n.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset)/(o-i.size)*(a-l);"x"===r.draggedAxis&&(s=r.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?s-(o+i.size):s,s=r.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-s:s),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=s},this.onEndDrag=function(e){var t=Zf(r.el),n=Bf(r.el);e.preventDefault(),e.stopPropagation(),r.el.classList.remove(r.classNames.dragging),t.removeEventListener("mousemove",r.drag,!0),t.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=n.setTimeout((function(){t.removeEventListener("click",r.preventClick,!0),t.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null}))},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=t,this.minScrollbarWidth=20,this.options=Object.assign({},e.defaultOptions,{},n),this.classNames=Object.assign({},e.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,e.instances.has(this.el)||(this.recalculate=sf()(this.recalculate.bind(this),64),this.onMouseMove=sf()(this.onMouseMove.bind(this),64),this.hideScrollbars=cf()(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=cf()(this.onWindowResize.bind(this),64,{leading:!0}),e.getRtlHelpers=df()(e.getRtlHelpers),this.init())}e.getRtlHelpers=function(){var t=document.createElement("div");t.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var n=t.firstElementChild;document.body.appendChild(n);var r=n.firstElementChild;n.scrollLeft=0;var o=e.getOffset(n),i=e.getOffset(r);n.scrollLeft=999;var a=e.getOffset(r);return{isRtlScrollingInverted:o.left!==i.left&&i.left-a.left!=0,isRtlScrollbarInverted:o.left!==i.left}},e.getOffset=function(e){var t=e.getBoundingClientRect(),n=Zf(e),r=Bf(e);return{top:t.top+(r.pageYOffset||n.documentElement.scrollTop),left:t.left+(r.pageXOffset||n.documentElement.scrollLeft)}};var t=e.prototype;return t.init=function(){e.instances.set(this.el,this),Mf()&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.initDOM=function(){var e=this;if(Array.prototype.filter.call(this.el.children,(function(t){return t.classList.contains(e.classNames.wrapper)})).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var t=document.createElement("div"),n=document.createElement("div");t.classList.add(this.classNames.track),n.classList.add(this.classNames.scrollbar),t.appendChild(n),this.axis.x.track.el=t.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=t.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},t.initListeners=function(){var e=this,t=Bf(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(t){e.el.addEventListener(t,e.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(t){e.el.addEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})})),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),t.addEventListener("resize",this.onWindowResize);var n=!1,r=t.ResizeObserver||Nf;this.resizeObserver=new r((function(){n&&e.recalculate()})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),t.requestAnimationFrame((function(){n=!0})),this.mutationObserver=new t.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},t.recalculate=function(){var e=Bf(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var t=this.heightAutoObserverEl.offsetHeight<=1,n=this.heightAutoObserverEl.offsetWidth<=1,r=this.contentEl.offsetWidth,o=this.contentWrapperEl.offsetWidth,i=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var l=this.contentEl.scrollHeight,s=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=t?"auto":"100%",this.placeholderEl.style.width=n?r+"px":"auto",this.placeholderEl.style.height=l+"px";var u=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=s>r,this.axis.y.isOverflowing=l>u,this.axis.x.isOverflowing="hidden"!==i&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==a&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,f=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&s>o-f,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>u-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},t.getScrollbarSize=function(e){if(void 0===e&&(e="y"),!this.axis[e].isOverflowing)return 0;var t,n=this.contentEl[this.axis[e].scrollSizeAttr],r=this.axis[e].track.el[this.axis[e].offsetSizeAttr],o=r/n;return t=Math.max(~~(o*r),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t},t.positionScrollbar=function(t){if(void 0===t&&(t="y"),this.axis[t].isOverflowing){var n=this.contentWrapperEl[this.axis[t].scrollSizeAttr],r=this.axis[t].track.el[this.axis[t].offsetSizeAttr],o=parseInt(this.elStyles[this.axis[t].sizeAttr],10),i=this.axis[t].scrollbar,a=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],l=(a="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-a:a)/(n-o),s=~~((r-i.size)*l);s="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?s+(r-i.size):s,i.el.style.transform="x"===t?"translate3d("+s+"px, 0, 0)":"translate3d(0, "+s+"px, 0)"}},t.toggleTrackVisibility=function(e){void 0===e&&(e="y");var t=this.axis[e].track.el,n=this.axis[e].scrollbar.el;this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll"):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden"),this.axis[e].isOverflowing?n.style.display="block":n.style.display="none"},t.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},t.onMouseMoveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.rect=this.axis[e].track.el.getBoundingClientRect(),this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[e].scrollbar.rect)?this.axis[e].scrollbar.el.classList.add(this.classNames.hover):this.axis[e].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[e].track.rect)?(this.showScrollbar(e),this.axis[e].track.el.classList.add(this.classNames.hover)):this.axis[e].track.el.classList.remove(this.classNames.hover)},t.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.el.classList.remove(this.classNames.hover),this.axis[e].scrollbar.el.classList.remove(this.classNames.hover)},t.showScrollbar=function(e){void 0===e&&(e="y");var t=this.axis[e].scrollbar.el;this.axis[e].isVisible||(t.classList.add(this.classNames.visible),this.axis[e].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},t.onDragStart=function(e,t){void 0===t&&(t="y");var n=Zf(this.el),r=Bf(this.el),o=this.axis[t].scrollbar,i="y"===t?e.pageY:e.pageX;this.axis[t].dragOffset=i-o.rect[this.axis[t].offsetAttr],this.draggedAxis=t,this.el.classList.add(this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.onTrackClick=function(e,t){var n=this;if(void 0===t&&(t="y"),this.options.clickOnTrack){var r=Bf(this.el);this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect();var o=this.axis[t].scrollbar.rect[this.axis[t].offsetAttr],i=parseInt(this.elStyles[this.axis[t].sizeAttr],10),a=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],l=("y"===t?this.mouseY-o:this.mouseX-o)<0?-1:1,s=-1===l?a-i:a+i;!function e(){var o,i;-1===l?a>s&&(a-=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((o={})[n.axis[t].offsetAttr]=a,o)),r.requestAnimationFrame(e)):a<s&&(a+=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((i={})[n.axis[t].offsetAttr]=a,i)),r.requestAnimationFrame(e))}()}},t.getContentElement=function(){return this.contentEl},t.getScrollElement=function(){return this.contentWrapperEl},t.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:zf()}catch(e){return zf()}},t.removeListeners=function(){var e=this,t=Bf(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(t){e.el.removeEventListener(t,e.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(t){e.el.removeEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})})),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},t.unMount=function(){this.removeListeners(),e.instances.delete(this.el)},t.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.findChild=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,(function(e){return n.call(e,t)}))[0]},e}();Uf.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},Uf.instances=new WeakMap;var Hf=Uf;function Wf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gf(){return(Gf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Kf=r.forwardRef((function(e,t){var n,o=e.children,i=e.scrollableNodeProps,a=void 0===i?{}:i,l=$f(e,["children","scrollableNodeProps"]),s=(0,r.useRef)(),u=(0,r.useRef)(),c=(0,r.useRef)(),f={},d={},p=[];return Object.keys(l).forEach((function(e){Object.prototype.hasOwnProperty.call(Hf.defaultOptions,e)?f[e]=l[e]:e.match(/data-simplebar-(.+)/)&&"data-simplebar-direction"!==e?p.push({name:e,value:l[e]}):d[e]=l[e]})),p.length&&console.warn("simplebar-react: this way of passing options is deprecated. Pass it like normal props instead:\n 'data-simplebar-auto-hide=\"false\"' —> 'autoHide=\"false\"'\n "),(0,r.useEffect)((function(){var e;return s=a.ref||s,u.current&&(n=new Hf(u.current,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vf(n,!0).forEach((function(t){Wf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vf(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(e=p,Array.prototype.reduce.call(e,(function(e,t){var n=t.name.match(/data-simplebar-(.+)/);if(n){var r=n[1].replace(/\W+(.)/g,(function(e,t){return t.toUpperCase()}));switch(t.value){case"true":e[r]=!0;break;case"false":e[r]=!1;break;case void 0:e[r]=!0;break;default:e[r]=t.value}}return e}),{})),{},f,{},s&&{scrollableNode:s.current},{},c.current&&{contentNode:c.current})),t&&(t.current=n)),function(){n.unMount(),n=null}}),[]),r.createElement("div",Gf({ref:u,"data-simplebar":!0},d),r.createElement("div",{className:"simplebar-wrapper"},r.createElement("div",{className:"simplebar-height-auto-observer-wrapper"},r.createElement("div",{className:"simplebar-height-auto-observer"})),r.createElement("div",{className:"simplebar-mask"},r.createElement("div",{className:"simplebar-offset"},"function"==typeof o?o({scrollableNodeRef:s,contentNodeRef:c}):r.createElement("div",Gf({},a,{className:"simplebar-content-wrapper".concat(a.className?" ".concat(a.className):"")}),r.createElement("div",{className:"simplebar-content"},o)))),r.createElement("div",{className:"simplebar-placeholder"})),r.createElement("div",{className:"simplebar-track simplebar-horizontal"},r.createElement("div",{className:"simplebar-scrollbar"})),r.createElement("div",{className:"simplebar-track simplebar-vertical"},r.createElement("div",{className:"simplebar-scrollbar"})))}));Kf.displayName="SimpleBar",Kf.propTypes={children:yr().oneOfType([yr().node,yr().func]),scrollableNodeProps:yr().object};var qf=Kf;function Yf(e){return"/"===e.charAt(0)}function Xf(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var Jf=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&Yf(e),a=t&&Yf(t),l=i||a;if(e&&Yf(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var s=o[o.length-1];n="."===s||".."===s||""===s}else n=!1;for(var u=0,c=o.length;c>=0;c--){var f=o[c];"."===f?Xf(o,c):".."===f?(Xf(o,c),u++):u&&(Xf(o,c),u--)}if(!l)for(;u--;u)o.unshift("..");!l||""===o[0]||o[0]&&Yf(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};var Qf=function(e,t){if(!e)throw new Error("Invariant failed")};function ed(e){return"/"===e.charAt(0)?e:"/"+e}function td(e){return"/"===e.charAt(0)?e.substr(1):e}function nd(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function rd(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function od(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function id(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=(0,gr.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=Jf(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function ad(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var ld=!("undefined"==typeof window||!window.document||!window.document.createElement);function sd(e,t){t(window.confirm(e))}function ud(){try{return window.history.state||{}}catch(e){return{}}}function cd(e){void 0===e&&(e={}),ld||Qf(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,i=o.forceRefresh,a=void 0!==i&&i,l=o.getUserConfirmation,s=void 0===l?sd:l,u=o.keyLength,c=void 0===u?6:u,f=e.basename?rd(ed(e.basename)):"";function d(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return f&&(i=nd(i,f)),id(i,r,n)}function p(){return Math.random().toString(36).substr(2,c)}var h=ad();function m(e){(0,gr.Z)(C,e),C.length=t.length,h.notifyListeners(C.location,C.action)}function g(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||b(d(e.state))}function v(){b(d(ud()))}var y=!1;function b(e){if(y)y=!1,m();else{h.confirmTransitionTo(e,"POP",s,(function(t){t?m({action:"POP",location:e}):function(e){var t=C.location,n=x.indexOf(t.key);-1===n&&(n=0);var r=x.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(y=!0,_(o))}(e)}))}}var w=d(ud()),x=[w.key];function E(e){return f+od(e)}function _(e){t.go(e)}var S=0;function O(e){1===(S+=e)&&1===e?(window.addEventListener("popstate",g),r&&window.addEventListener("hashchange",v)):0===S&&(window.removeEventListener("popstate",g),r&&window.removeEventListener("hashchange",v))}var k=!1;var C={length:t.length,action:"POP",location:w,createHref:E,push:function(e,r){var o=id(e,r,p(),C.location);h.confirmTransitionTo(o,"PUSH",s,(function(e){if(e){var r=E(o),i=o.key,l=o.state;if(n)if(t.pushState({key:i,state:l},null,r),a)window.location.href=r;else{var s=x.indexOf(C.location.key),u=x.slice(0,s+1);u.push(o.key),x=u,m({action:"PUSH",location:o})}else window.location.href=r}}))},replace:function(e,r){var o=id(e,r,p(),C.location);h.confirmTransitionTo(o,"REPLACE",s,(function(e){if(e){var r=E(o),i=o.key,l=o.state;if(n)if(t.replaceState({key:i,state:l},null,r),a)window.location.replace(r);else{var s=x.indexOf(C.location.key);-1!==s&&(x[s]=o.key),m({action:"REPLACE",location:o})}else window.location.replace(r)}}))},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},block:function(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return k||(O(1),k=!0),function(){return k&&(k=!1,O(-1)),t()}},listen:function(e){var t=h.appendListener(e);return O(1),function(){O(-1),t()}}};return C}var fd={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+td(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:td,decodePath:ed},slash:{encodePath:ed,decodePath:ed}};function dd(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function pd(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function hd(e){window.location.replace(dd(window.location.href)+"#"+e)}function md(e){void 0===e&&(e={}),ld||Qf(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?sd:r,i=n.hashType,a=void 0===i?"slash":i,l=e.basename?rd(ed(e.basename)):"",s=fd[a],u=s.encodePath,c=s.decodePath;function f(){var e=c(pd());return l&&(e=nd(e,l)),id(e)}var d=ad();function p(e){(0,gr.Z)(O,e),O.length=t.length,d.notifyListeners(O.location,O.action)}var h=!1,m=null;function g(){var e=pd(),t=u(e);if(e!==t)hd(t);else{var n=f(),r=O.location;if(!h&&function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash}(r,n))return;if(m===od(n))return;m=null,function(e){if(h)h=!1,p();else{d.confirmTransitionTo(e,"POP",o,(function(t){t?p({action:"POP",location:e}):function(e){var t=O.location,n=w.lastIndexOf(od(t));-1===n&&(n=0);var r=w.lastIndexOf(od(e));-1===r&&(r=0);var o=n-r;o&&(h=!0,x(o))}(e)}))}}(n)}}var v=pd(),y=u(v);v!==y&&hd(y);var b=f(),w=[od(b)];function x(e){t.go(e)}var E=0;function _(e){1===(E+=e)&&1===e?window.addEventListener("hashchange",g):0===E&&window.removeEventListener("hashchange",g)}var S=!1;var O={length:t.length,action:"POP",location:b,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=dd(window.location.href)),n+"#"+u(l+od(e))},push:function(e,t){var n=id(e,void 0,void 0,O.location);d.confirmTransitionTo(n,"PUSH",o,(function(e){if(e){var t=od(n),r=u(l+t);if(pd()!==r){m=t,function(e){window.location.hash=e}(r);var o=w.lastIndexOf(od(O.location)),i=w.slice(0,o+1);i.push(t),w=i,p({action:"PUSH",location:n})}else p()}}))},replace:function(e,t){var n=id(e,void 0,void 0,O.location);d.confirmTransitionTo(n,"REPLACE",o,(function(e){if(e){var t=od(n),r=u(l+t);pd()!==r&&(m=t,hd(r));var o=w.indexOf(od(O.location));-1!==o&&(w[o]=t),p({action:"REPLACE",location:n})}}))},go:x,goBack:function(){x(-1)},goForward:function(){x(1)},block:function(e){void 0===e&&(e=!1);var t=d.setPrompt(e);return S||(_(1),S=!0),function(){return S&&(S=!1,_(-1)),t()}},listen:function(e){var t=d.appendListener(e);return _(1),function(){_(-1),t()}}};return O}function gd(e,t,n){return Math.min(Math.max(e,t),n)}function vd(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=void 0===r?["/"]:r,i=t.initialIndex,a=void 0===i?0:i,l=t.keyLength,s=void 0===l?6:l,u=ad();function c(e){(0,gr.Z)(g,e),g.length=g.entries.length,u.notifyListeners(g.location,g.action)}function f(){return Math.random().toString(36).substr(2,s)}var d=gd(a,0,o.length-1),p=o.map((function(e){return id(e,void 0,"string"==typeof e?f():e.key||f())})),h=od;function m(e){var t=gd(g.index+e,0,g.entries.length-1),r=g.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?c({action:"POP",location:r,index:t}):c()}))}var g={length:p.length,action:"POP",location:p[d],index:d,entries:p,createHref:h,push:function(e,t){var r=id(e,t,f(),g.location);u.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=g.index+1,n=g.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),c({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=id(e,t,f(),g.location);u.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(g.entries[g.index]=r,c({action:"REPLACE",location:r}))}))},go:m,goBack:function(){m(-1)},goForward:function(){m(1)},canGo:function(e){var t=g.index+e;return t>=0&&t<g.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return g}var yd="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};function bd(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var wd=r.createContext||function(e,t){var n,o,i="__create-react-context-"+function(){var e="__global_unique_id__";return yd[e]=(yd[e]||0)+1}()+"__",a=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=bd(t.props.value),t}(0,Cr.Z)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;!function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(r,o)?(n="function"==typeof t?t(r,o):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n)):n=0}},r.render=function(){return this.props.children},n}(r.Component);a.childContextTypes=((n={})[i]=yr().object.isRequired,n);var l=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,Cr.Z)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return l.contextTypes=((o={})[i]=yr().object,o),{Provider:a,Consumer:l}},xd=n(39658),Ed=n.n(xd),_d=(n(50663),function(e){var t=wd();return t.displayName=e,t}("Router-History")),Sd=function(e){var t=wd();return t.displayName=e,t}("Router"),Od=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}(0,Cr.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return r.createElement(Sd.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},r.createElement(_d.Provider,{children:this.props.children||null,value:this.props.history}))},t}(r.Component);r.Component;r.Component;var kd={},Cd=0;function Pd(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,l=void 0!==a&&a,s=n.sensitive,u=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=kd[n]||(kd[n]={});if(r[e])return r[e];var o=[],i={regexp:Ed()(e,o,t),keys:o};return Cd<1e4&&(r[e]=i,Cd++),i}(n,{end:i,strict:l,sensitive:u}),o=r.regexp,a=r.keys,s=o.exec(e);if(!s)return null;var c=s[0],f=s.slice(1),d=e===c;return i&&!d?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var Td=function(e){function t(){return e.apply(this,arguments)||this}return(0,Cr.Z)(t,e),t.prototype.render=function(){var e=this;return r.createElement(Sd.Consumer,null,(function(t){t||Qf(!1);var n=e.props.location||t.location,o=e.props.computedMatch?e.props.computedMatch:e.props.path?Pd(n.pathname,e.props):t.match,i=(0,gr.Z)({},t,{location:n,match:o}),a=e.props,l=a.children,s=a.component,u=a.render;return Array.isArray(l)&&0===l.length&&(l=null),r.createElement(Sd.Provider,{value:i},i.match?l?"function"==typeof l?l(i):l:s?r.createElement(s,i):u?u(i):null:"function"==typeof l?l(i):null)}))},t}(r.Component);function Ad(e){return"/"===e.charAt(0)?e:"/"+e}function jd(e,t){if(!e)return t;var n=Ad(e);return 0!==t.pathname.indexOf(n)?t:(0,gr.Z)({},t,{pathname:t.pathname.substr(n.length)})}function Id(e){return"string"==typeof e?e:od(e)}function Rd(e){return function(){Qf(!1)}}function Nd(){}r.Component;var Dd=function(e){function t(){return e.apply(this,arguments)||this}return(0,Cr.Z)(t,e),t.prototype.render=function(){var e=this;return r.createElement(Sd.Consumer,null,(function(t){t||Qf(!1);var n,o,i=e.props.location||t.location;return r.Children.forEach(e.props.children,(function(e){if(null==o&&r.isValidElement(e)){n=e;var a=e.props.path||e.props.from;o=a?Pd(i.pathname,(0,gr.Z)({},e.props,{path:a})):t.match}})),o?r.cloneElement(n,{location:i,computedMatch:o}):null}))},t}(r.Component);function Md(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,o=(0,kr.Z)(t,["wrappedComponentRef"]);return r.createElement(Sd.Consumer,null,(function(t){return t||Qf(!1),r.createElement(e,(0,gr.Z)({},o,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,Pi()(n,e)}var Ld=r.useContext;function Fd(){return Ld(_d)}function zd(){return Ld(Sd).location}function Bd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Zd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zd(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ud=Qi((function(e){return{settings:e.settings}}))((function(e){var t=e.settings,n=[at("random_tips.tip_1"),at("random_tips.tip_2"),at("random_tips.tip_3"),at("random_tips.tip_4"),at("random_tips.tip_5"),at("random_tips.tip_6"),at("random_tips.tip_7"),at("random_tips.tip_8"),at("random_tips.tip_9"),at("random_tips.tip_10"),at("random_tips.tip_11"),at("random_tips.tip_12"),at("random_tips.tip_13"),at("random_tips.tip_14"),at("random_tips.tip_15"),at("random_tips.tip_16"),at("random_tips.tip_17"),at("random_tips.tip_18"),at("random_tips.tip_19"),at("random_tips.tip_20"),at("random_tips.tip_21"),at("random_tips.tip_22"),at("random_tips.tip_23")],o=Bd((0,r.useState)(0),2),i=o[0],a=o[1],l=Bd((0,r.useState)(function(e){for(var t,n,r=e.length;0!==r;)n=Math.floor(Math.random()*r),t=e[r-=1],e[r]=e[n],e[n]=t;return e}(n)),1)[0];return!0!==t.tips_enabled?r.createElement(r.Fragment,null):r.createElement("div",{className:"random-tip","data-testid":"random-tip"},r.createElement("span",{className:"buzz"},r.createElement("img",{onDoubleClick:function(){window.open("https://www.youtube.com/watch?v=dQw4w9WgXcQ")},src:buttonizer_admin.assets+"/images/ButtonizerBuzzer.svg","data-testid":"random-tip:buzzer"})),r.createElement("span",{className:"tip",style:{userSelect:"none"},onClick:function(){var e=i+1;e>=l.length&&(e=0),a(e)},"data-testid":"random-tip:new-tip"},l[i]))}));function Hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hd(Object(n),!0).forEach((function(t){Gd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vd(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:hr.dispatch,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=r(xt(Wd({name:at("utils.new_button"),show_mobile:!0,show_desktop:!0,label:at("templates.first_button")},e),"buttons")).payload.record;r(mt(i.id,t,n)),o&&(document.location.hash="/group/".concat(t,"/button/").concat(i.id))}function $d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.store.dispatch;t.groups[e]||console.error("ID "+e+" not in store!");var r=_t(e,t);n(Et(e,"groups")),Object.keys(r).map((function(e){return n(Et(e,"buttons"))}))}function Kd(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:hr.dispatch,o={name:at("utils.new_group"),show_mobile:!0,show_desktop:!0,children:[]},i=r(xt(e||o,"groups",n)).payload.record.id;t.map((function(e,t){if(0===Object.keys(e).length)return!1;Vd(e,i,t,r)}))}function qd(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:hr.dispatch,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:hr.getState();if(o.groups[e]){$d(e,o,r);var i=Object.values(o.groups).reduce((function(t,n,r){return n.id===e?r:t}),""),a=r(xt(t,"groups",i)).payload.record.id;n.map((function(e,t){if(0===Object.keys(e).length)return!1;Vd(e,a,t,r)}))}else console.error(o.groups,o.groups[e]);Vn()}function Yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yd(Object(n),!0).forEach((function(t){Jd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qd(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.store.getState(),o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.store.dispatch;if(!r.buttons[e])throw ReferenceError("ID "+e+" not in button store!");var i=Xd(Xd({},r.buttons[e]),{},{name:r.buttons[e].name+" Copy",id:void 0},n);switch(r.buttons[e].type){case"popup_maker":i.action="popupMaker"+U()+"Pv2";break;case"elementor_popup":i.action="elementor"+U()+"Ev2"}delete i.id,Vd(i,t,Object.values(r.buttons).reduce((function(t,n,r){return n.id===e?r+1:t}),""),o)}function ep(){return(ep=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function tp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return np(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return np(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function np(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var op=r.forwardRef((function(e,t){var n=e.model,o=void 0===n?"group":n,i=e.deleteDisabled,a=void 0!==i&&i,l=e.size,s=void 0===l?"small":l,u=e.onClose,c=e.buttonCount,f=void 0===c?1:c,d=e.inDropdown,p=void 0!==d&&d,h=rp(e,["model","deleteDisabled","size","onClose","buttonCount","inDropdown"]),m=tp((0,r.useState)(!1),2),g=m[0],v=m[1],y=function(e){v(!1),"confirm"!==e||a||u()};return r.createElement(r.Fragment,null,r.createElement(nf,{content:at("modal.remove.".concat(o,".cannot_delete")),disabled:!a,trigger:"click"},p?r.createElement("div",{ref:t},r.createElement(nf,{content:"",disabled:a,style:{float:"right"},shiftClick:!0},r.createElement(si,{onClick:function(e){if(!a){if(e.shiftKey)return y("confirm");v(!0)}},disabled:a,"data-testid":"page_rule"===o?h["data-testid"]:"delete-button-".concat(o)},r.createElement(ci,null,r.createElement(Il,{className:"fas fa-trash-alt"})),r.createElement(pi,{variant:"inherit"},at("utils.delete"))))):r.createElement("span",{tabIndex:0},r.createElement(nf,{content:at("utils.delete"),disabled:a,style:{float:"right"},shiftClick:!0},r.createElement($r,ep({onClick:function(e){if(!a){if(e.shiftKey)return y("confirm");v(!0)}},color:"primary",disabled:a,size:s,style:{width:"35px",height:"35px"}},h),r.createElement(Il,{fontSize:"inherit",style:{overflow:"unset"},className:"fas fa-times"}))))),r.createElement(Oa,{open:g,title:at("modal.remove.".concat(o,a?".cannot_delete_window_title":".window_title")),buttons:a?[{value:"close",text:at("modal.close")}]:null,onClose:y,testId:"delete-button:dialog"},a?r.createElement(pi,null,at("modal.remove.".concat(o,".cannot_delete"))):r.createElement(r.Fragment,null,r.createElement(pi,null,at("modal.remove.".concat(o,".question"))),"group"===o&&r.createElement(pi,null,at("modal.remove.group.question_multiple_buttons",{count:f})),r.createElement(pi,{style:{marginTop:15}},at("modal.remove.permanent")))))})),ip=n(71739),ap=n.n(ip),lp=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function sp(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(ap()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(lp),i=null;null!==(i=o.exec(e));)if(i[0].trim())if(i[1]){var a=i[1].trim(),l=[a,""];a.indexOf("=")>-1&&(l=a.split("=")),t.attrs[l[0]]=l[1],o.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var up=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,cp=/^\s*$/,fp=Object.create(null);function dp(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(dp,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var pp={parse:function(e,t){t||(t={}),t.components||(t.components=fp);var n,r=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var l=e.indexOf("<");r.push({type:"text",content:-1===l?e:e.substring(0,l)})}return e.replace(up,(function(l,s){if(a){if(l!=="</"+n.name+">")return;a=!1}var u,c="/"!==l.charAt(1),f=l.startsWith("\x3c!--"),d=s+l.length,p=e.charAt(d);if(f){var h=sp(l);return i<0?(r.push(h),r):((u=o[i]).children.push(h),r)}if(c&&(i++,"tag"===(n=sp(l)).type&&t.components[n.name]&&(n.type="component",a=!0),n.voidElement||a||!p||"<"===p||n.children.push({type:"text",content:e.slice(d,e.indexOf("<",d))}),0===i&&r.push(n),(u=o[i-1])&&u.children.push(n),o[i]=n),(!c||n.voidElement)&&(i>-1&&(n.voidElement||n.name===l.slice(2,-1))&&(i--,n=-1===i?r:o[i]),!a&&"<"!==p&&p)){u=-1===i?r:o[i].children;var m=e.indexOf("<",d),g=e.slice(d,-1===m?void 0:m);cp.test(g)&&(g=" "),(m>-1&&i+u.length>=0||" "!==g)&&u.push({type:"text",content:g})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+dp("",t)}),"")}},hp="".replace,mp=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,gp={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"'};function vp(e){return gp[e]}function yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yp(Object(n),!0).forEach((function(t){(0,X.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xp,Ep={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},_p=r.createContext();!function(){function e(){W(this,e),this.usedNamespaces={}}(0,G.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}])}();function Sp(){return xp}var Op={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ep=bp(bp({},Ep),e)}(e.options.react),function(e){xp=e}(e)}};function kp(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var Cp={};function Pp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&Cp[t[0]]||("string"==typeof t[0]&&(Cp[t[0]]=new Date),kp.apply(void 0,t))}var Tp=["format"],Ap=["children","count","parent","i18nKey","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function jp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jp(Object(n),!0).forEach((function(t){(0,X.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rp(e,t){if(!e)return!1;var n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function Np(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function Dp(e){return Array.isArray(e)?e:[e]}function Mp(e,t,n,o,i,a){if(""===t)return[];var l=o.transKeepBasicHtmlNodesFor||[],s=t&&new RegExp(l.join("|")).test(t);if(!e&&!s)return[t];var u={};!function e(t){Dp(t).forEach((function(t){"string"!=typeof t&&(Rp(t)?e(Np(t)):"object"!==(0,H.Z)(t)||r.isValidElement(t)||Object.assign(u,t))}))}(e);var c=pp.parse("<0>".concat(t,"</0>")),f=Ip(Ip({},u),i);function d(e,t,n){var o=Np(e),i=h(o,t.children,n);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return r.isValidElement(e)}))}(o)&&0===i.length?o:i}function p(e,t,n,o,i){e.dummy&&(e.children=t),n.push(r.cloneElement(e,Ip(Ip({},e.props),{},{key:o}),i?void 0:t))}function h(t,i,u){var c=Dp(t);return Dp(i).reduce((function(t,i,m){var g,v,y,b=i.children&&i.children[0]&&i.children[0].content&&n.services.interpolator.interpolate(i.children[0].content,f,n.language);if("tag"===i.type){var w=c[parseInt(i.name,10)];!w&&1===u.length&&u[0][i.name]&&(w=u[0][i.name]),w||(w={});var x=0!==Object.keys(i.attrs).length?(g={props:i.attrs},(y=Ip({},v=w)).props=Object.assign(g.props,v.props),y):w,E=r.isValidElement(x),_=E&&Rp(i,!0)&&!i.voidElement,S=s&&"object"===(0,H.Z)(x)&&x.dummy&&!E,O="object"===(0,H.Z)(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof x){var k=n.services.interpolator.interpolate(x,f,n.language);t.push(k)}else if(Rp(x)||_){p(x,d(x,i,u),t,m)}else if(S){var C=h(c,i.children,u);t.push(r.cloneElement(x,Ip(Ip({},x.props),{},{key:m}),C))}else if(Number.isNaN(parseFloat(i.name))){if(O)p(x,d(x,i,u),t,m,i.voidElement);else if(o.transSupportBasicHtmlNodes&&l.indexOf(i.name)>-1)if(i.voidElement)t.push(r.createElement(i.name,{key:"".concat(i.name,"-").concat(m)}));else{var P=h(c,i.children,u);t.push(r.createElement(i.name,{key:"".concat(i.name,"-").concat(m)},P))}else if(i.voidElement)t.push("<".concat(i.name," />"));else{var T=h(c,i.children,u);t.push("<".concat(i.name,">").concat(T,"</").concat(i.name,">"))}}else if("object"!==(0,H.Z)(x)||E)1===i.children.length&&b?t.push(r.cloneElement(x,Ip(Ip({},x.props),{},{key:m}),b)):t.push(r.cloneElement(x,Ip(Ip({},x.props),{},{key:m})));else{var A=i.children[0]?b:null;A&&t.push(A)}}else if("text"===i.type){var j=o.transWrapTextNodes,I=a?function(e){return hp.call(e,mp,vp)}(n.services.interpolator.interpolate(i.content,f,n.language)):n.services.interpolator.interpolate(i.content,f,n.language);j?t.push(r.createElement(j,{key:"".concat(i.name,"-").concat(m)},I)):t.push(I)}return t}),[])}return Np(h([{dummy:!0,children:e||[]}],c,Dp(e||[]))[0])}function Lp(e){var t=e.children,n=e.count,o=e.parent,i=e.i18nKey,a=e.tOptions,l=void 0===a?{}:a,s=e.values,u=e.defaults,c=e.components,f=e.ns,d=e.i18n,p=e.t,h=e.shouldUnescape,m=(0,mr.Z)(e,Ap),g=(0,r.useContext)(_p)||{},v=g.i18n,y=g.defaultNS,b=d||v||Sp();if(!b)return Pp("You will need to pass in an i18next instance by using i18nextReactModule"),t;var w=p||b.t.bind(b)||function(e){return e},x=Ip(Ip({},Ep),b.options&&b.options.react),E=f||w.ns||y||b.options&&b.options.defaultNS;E="string"==typeof E?[E]:E||["translation"];var _=u||function e(t,n){if(!t)return"";var o="",i=Dp(t),a=n.transKeepBasicHtmlNodesFor||[];return i.forEach((function(t,i){if("string"==typeof t)o+="".concat(t);else if(r.isValidElement(t)){var l=Object.keys(t.props).length,s=a.indexOf(t.type)>-1,u=t.props.children;if(!u&&s&&0===l)o+="<".concat(t.type,"/>");else if(u||s&&0===l)if(t.props.i18nIsDynamicList)o+="<".concat(i,"></").concat(i,">");else if(s&&1===l&&"string"==typeof u)o+="<".concat(t.type,">").concat(u,"</").concat(t.type,">");else{var c=e(u,n);o+="<".concat(i,">").concat(c,"</").concat(i,">")}else o+="<".concat(i,"></").concat(i,">")}else if(null===t)kp("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===(0,H.Z)(t)){var f=t.format,d=(0,mr.Z)(t,Tp),p=Object.keys(d);if(1===p.length){var h=f?"".concat(p[0],", ").concat(f):p[0];o+="{{".concat(h,"}}")}else kp("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",t)}else kp("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",t)})),o}(t,x)||x.transEmptyNodeValue||i,S=x.hashTransKey,O=i||(S?S(_):_),k=s?l.interpolation:{interpolation:Ip(Ip({},l.interpolation),{},{prefix:"#$?",suffix:"?$#"})},C=Ip(Ip(Ip(Ip({},l),{},{count:n},s),k),{},{defaultValue:_,ns:E}),P=Mp(c||t,O?w(O,C):_,b,x,C,h),T=void 0!==o?o:x.defaultTransParent;return T?r.createElement(T,m,P):P}function Fp(e){var t=e.articleId,n=e.setting,o=e.size,i=void 0===o?"medium":o,a=e.tiny,l=void 0!==a&&a,s=e.style;return l?r.createElement("a",{href:"https://community.buttonizer.pro/knowledgebase/".concat(t),target:"_blank",style:s},r.createElement("i",{className:(0,br.Z)("knowledgebase-icon",i,"fas fa-question-circle")})):r.createElement("a",{href:"https://community.buttonizer.pro/knowledgebase/".concat(t),target:"_blank",className:(0,br.Z)("knowledgebase-link",i)},r.createElement(Lp,{i18nKey:"utils.knowledge_link",values:{setting:n},components:{bold:r.createElement("strong",null)}}))}function zp(){return(zp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Bp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Zp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zp(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Up(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Hp(e){var t=e.open,n=e.buttons,o=e.onClose,i=e.text,a=e.title,l=e.defaultValue,s=e.canBeEmpty,u=void 0!==s&&s,c=e.maxWidth,f=void 0===c?"xs":c,d=e.fullWidth,p=void 0===d||d,h=e.cancelIfSameAsFirstValue,m=void 0!==h&&h,g=e.clearOnConfirm,v=void 0!==g&&g,y=e.kbLink,b=void 0===y?null:y,w=Up(e,["open","buttons","onClose","text","title","defaultValue","canBeEmpty","maxWidth","fullWidth","cancelIfSameAsFirstValue","clearOnConfirm","kbLink"]),x=[{value:"cancel",text:at("modal.cancel")},{value:"confirm",text:at("common.confirm"),focus:!0}],E=Bp(r.useState(""===l?"":l||" "),2),_=E[0],S=E[1];n||(n=x);var O=function(e){("cancel"===e||u||""!=_)&&(v&&"confirm"===e&&S(""),o(e,_))};return r.createElement(ma,zp({open:t,maxWidth:f,fullWidth:p,onClose:function(){return O("cancel")},"aria-labelledby":"form-dialog-title"},w),r.createElement(va,{id:"form-dialog-title"},a),r.createElement(ba,null,r.createElement(xa,null,i),r.createElement(As,{autoFocus:!0,value:_,onChange:function(e){return S(e.target.value)},margin:"dense",id:"name",fullWidth:!0,helperText:u||""!=_?null:at("modal.incorrect"),error:!u&&""==_,onKeyPress:function(e){13===e.charCode&&O(m&&l===_?"cancel":"confirm")}})),r.createElement("div",{style:b&&{display:"flex",justifyContent:"space-between",alignItems:"center ",paddingLeft:"24px"}},b&&r.createElement(Fp,{articleId:b,tiny:!0}),r.createElement(_a,null,n.map((function(e,t){return r.createElement(Hr,{onClick:function(){return O(e.value)},color:"primary",key:t},e.text)})))))}function Wp(){return(Wp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Gp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vp(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Kp(e){var t=e.name,n=e.onChange,o=e.size,i=void 0===o?"small":o,a=e.disabled,l=void 0!==a&&a,s=$p(e,["name","onChange","size","disabled"]),u=Gp((0,r.useState)(!1),2),c=u[0],f=u[1];return r.createElement(r.Fragment,null,r.createElement(nf,{content:at("utils.duplicate"),shiftClick:!0},r.createElement($r,Wp({onClick:function(e){if(e.shiftKey)return n("".concat(t," Copy"));f(!0)},color:"primary",size:i,disabled:l,style:{width:"35px",height:"35px"}},s),r.createElement(Il,{style:{overflow:"unset"},fontSize:"inherit",className:"far fa-copy"}))),r.createElement(Hp,{open:c,title:at("utils.duplicate"),text:"Name ".concat(t," duplicate:"),"data-testid":"duplicate-button:dialog",defaultValue:"".concat(t," Copy"),onClose:function(e,t){f(!1),"confirm"===e&&n(t)}}))}function qp(){return(qp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Yp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Xp=r.forwardRef((function(e,t){var n=e.size,o=void 0===n?"small":n,i=e.nextHintStepIndex,a=e.onClick,l=Yp(e,["size","nextHintStepIndex","onClick"]);return r.createElement(r.Fragment,null,r.createElement(nf,{content:at("settings.settings"),disabled:0===i},r.createElement($r,qp({onClick:function(){a()},color:"primary",size:o,style:{width:"35px",height:"35px"},ref:t},l),r.createElement(Il,{fontSize:"inherit",style:{overflow:"unset"},className:"far fa-edit"}))))}));function Jp(){return(Jp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Qp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return eh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eh(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function th(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var nh=r.forwardRef((function(e,t){var n=e.name,o=e.onChange,i=e.size,a=void 0===i?"small":i,l=e.inDropdown,s=void 0!==l&&l,u=th(e,["name","onChange","size","inDropdown"]),c=Qp((0,r.useState)(!1),2),f=c[0],d=c[1];return r.createElement(r.Fragment,null,s?r.createElement(si,{onClick:function(){return d(!0)},ref:t,"data-testid":"page_rule"===u.model?u["data-testid"]:"rename-button"},r.createElement(ci,null,r.createElement(Il,{className:"fas fa-i-cursor"})),r.createElement(pi,{variant:"inherit"},at("utils.rename"))):r.createElement(nf,{content:at("utils.rename")},r.createElement($r,Jp({size:a,onClick:function(){return d(!0)},color:"primary",style:{width:"35px",height:"35px"}},u),r.createElement(Il,{style:{overflow:"unset",fontSize:"medium"},fontSize:"inherit",className:"fas fa-i-cursor"}))),r.createElement(Hp,{open:f,title:at("utils.rename"),text:at("utils.rename_to"),defaultValue:n,"data-testid":"rename-button:dialog",cancelIfSameAsFirstValue:!0,onClose:function(e,t){"confirm"===e&&o(t),d(!1)}}))})),rh=n(78513);function oh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ih(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ih(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ih(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ah(e){var t=e.testId,n=void 0===t?"button-group-more-actions":t,o=e.children,i=oh((0,r.useState)(null),2),a=i[0],l=i[1];return r.createElement(r.Fragment,null,r.createElement(nf,{content:at("settings.more_actions")},r.createElement($r,{onClick:function(e){return l(e.currentTarget)},color:"primary",size:"small",style:{width:"35px",height:"35px"},"data-testid":n},r.createElement(rh.Z,null))),r.createElement(ni,{id:"group-button-extra-buttons",anchorEl:a,keepMounted:!0,open:Boolean(a),onClose:function(){return l(null)},onClick:function(){return l(null)},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},o))}var lh=n(26905),sh=n.n(lh);function uh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ch(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ch(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ch(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fh(e){var t=e.properties,n=e.type,o=void 0===n?"Button":n,i=uh(r.useState(null),2),a=i[0],l=i[1],s=Boolean(a),u=function(e){l(e.currentTarget)},c=function(){l(null)};return r.createElement(r.Fragment,null,Object.keys(t).length>0?r.createElement(r.Fragment,null,r.createElement(Hr,{onClick:u,"aria-label":"more","aria-controls":"long-menu","aria-haspopup":"true",color:"primary",variant:"text",endIcon:r.createElement(Il,{className:"fas fa-caret-down"})},Object.keys(t).length," ",at("import_export.properties")," "),r.createElement(ni,{id:"long-menu",anchorEl:a,keepMounted:!0,open:s,onClose:c,PaperProps:{style:{maxHeight:430,width:"410px"}},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},getContentAnchorEl:null},r.createElement(Vo,{subheader:r.createElement("li",null),onClick:c},Object.entries(t).map((function(e,t){var n=uh(e,2),o=n[0],i=n[1],a=Mn()([null,null],"string"==typeof i?i.split(";"):JSON.stringify(i).split(";"));return r.createElement(ai,{key:t,style:{display:"flex",flexWrap:"wrap"}},r.createElement(mi,{primary:o.replaceAll("_"," ")+" :",style:{minWidth:"fit-content",marginRight:"5px",textTransform:"capitalize",flex:"unset",margin:"unset"}}),r.createElement(mi,{primary:a[0],style:{margin:"0 5px",whiteSpace:"nowrap",flex:1,overflow:"hidden",borderRight:null!==a[1]&&"2px solid rgb(0 0 0 / 30%)"},primaryTypographyProps:{style:{overflow:"hidden",textOverflow:"ellipsis"}},secondary:null!==a[1]&&"Normal"}),null!==a[1]&&r.createElement(mi,{primary:a[1],style:{margin:"0 5px",whiteSpace:"nowrap",flex:1,overflow:"hidden"},primaryTypographyProps:{style:{overflow:"hidden",textOverflow:"ellipsis"}},secondary:"Hover"}))}))))):r.createElement("span",{style:{color:"red"}},"- ",o," is empty. It will not be imported"))}var dh=n(78718),ph=n.n(dh),hh=n(57557),mh=n.n(hh);function gh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return bh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bh(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wh(e){var t=e.type,n=void 0===t?"group":t,o=e.object,i=e.group_data,a=void 0!==i&&i,l=yh((0,r.useState)(!1),2),s=l[0],u=l[1],c=yh((0,r.useState)(!1),2),f=c[0],d=c[1],p=yh((0,r.useState)(!1),2),h=p[0],m=p[1],g=yh((0,r.useState)(!1),2),v=g[0],y=g[1],b=ph()(a,I.stylingNoGroup)||!1,w=aa((function(e){return e})),x=function(){var e,t,r,i,a="".concat("group"===n?"Group":"Button"," - ").concat(o.name),l="button"===n?f[0]:{data:h,buttons:f};l.export_type=n,l.export_migration_version=buttonizer_admin.migration_version,e=l,t=a,r="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(e)),(i=document.createElement("a")).setAttribute("href",r),i.setAttribute("download",t+".buttonizer.json"),document.body.appendChild(i),i.click(),i.remove(),u(!1),m(!1),d(!1)};return r.createElement(r.Fragment,null,r.createElement(si,{onClick:function(){var e="group"===n?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState();if(0===Object.keys(t.groups).length)return null;var n=sh()(t.groups,e,null);if(!n)return null;var r=On(n,(function(e){delete e.children,delete e.id})),o=Object.values(St(n.children)),i=[];return o.forEach((function(e){var t=On(e,(function(e){delete e.parent}));i.push(t)})),0===i.length&&(i=[{name:"Button",show_mobile:"true",show_desktop:"true"}]),{data:r,buttons:i}}(o.id,w):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gh(Object(n),!0).forEach((function(t){vh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o);if(mh()(e,j),"group"===n){if(0===e.buttons.length)return alert(at("import_export.export.warning.no_buttons"));m(mh()(e.data,j)),d(e.buttons.map((function(e){return mh()(e,j)})))}else if("button"===n){if(0===e.length)return alert(at("import_export.export.warning.no_data"));m(!1),d([mh()(e,j)])}u(!0)},"data-testid":"export-button"},r.createElement(ci,null,r.createElement(Il,{className:"fas fa-file-export"})),r.createElement(pi,{variant:"inherit"},at("import_export.export.export_".concat(n)))),r.createElement(ma,{open:s,onClose:function(){y(!1),u(!1)},maxWidth:"xs",fullWidth:!0,"aria-labelledby":"import-button-dialog-title","aria-describedby":"import-button-dialog-description","data-testid":"dialog:export-dialog"},r.createElement(va,{id:"import-button-dialog-title"},at("import_export.export.export_".concat(n))),r.createElement(ba,null,(h||f)&&r.createElement(r.Fragment,null,r.createElement(xa,{component:"div"},at("import_export.export.warning.preview")),h&&r.createElement(xa,{component:"div",key:h.id},r.createElement("i",null,at("common.group")," "),":"," ",sh()(h,"name","Unnamed"),"."," ",r.createElement(fh,{properties:h,type:"Group"})),f&&f.map((function(e,t){return r.createElement(xa,{component:"div",key:t},r.createElement("i",null,at("common.button")," ",t+1," "),": ",sh()(e,"name","Unnamed"),".",r.createElement(fh,{properties:e}))})))),r.createElement(_a,null,a&&"button"===n&&r.createElement(Hr,{onClick:function(){return function(){var e=Mn()({},b,f[0]);d([e]),y(!0)}()},"data-testid":"export-merge",style:{marginRight:"auto"},disabled:v},at("import_export.export.merge")),r.createElement(Hr,{onClick:function(){return u(!1)},color:"primary"},at("modal.cancel")),r.createElement(Hr,{onClick:function(){return x()},color:"primary",disabled:"button"===n?!f:!h,"data-testid":"export-commence"},at("import_export.export.title")))))}function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xh(Object(n),!0).forEach((function(t){_h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sh(){return(Sh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Oh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kh(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ch=Qi((function(e){return{buttons:e.buttons,groups:e.groups,getButtonsCount:function(t){return Ot(t,e)},state:e}}),(function(e){return{set:function(){return e(yt.apply(void 0,arguments))},dispatch:e}}),(function(e,t,n){return Eh(Eh(Eh(Eh({},e),t),n),{},{removeButton:function(n,r){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.store.getState(),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.store.dispatch;if(!n.buttons[e])throw ReferenceError("ID "+e+" not in store!");r(vt(e,n.buttons[e].parent)),r(Et(e,"buttons")),1===Ot(t,n)&&r(Et(t,"groups"))}(n,r,e.state,t.dispatch)},duplicateButton:function(n,r,o){return Qd(n,r,o,e.state,t.dispatch)}})}))((function(e){var t=e.groupId,n=e.buttonId,o=e.buttons,i=e.groups,a=e.set,l=e.provided,s=e.currentDrag,u=e.styleDrop,c=e.getButtonsCount,f=e.removeButton,d=e.duplicateButton,p=e.groupIndex,h=e.openNewButtonDialog,m=o[n];if(!m||!t)return null;var g="/group/"+t+"/button/"+n,v=["default","square","rectangle","text","text-icon"],y=Oh((0,r.useState)(null),2),b=y[0],w=y[1],x=(0,r.useRef)();(0,r.useEffect)((function(){w(x.current)}),[x]);var E=aa((function(e){return sh()(e,"misc.hint_step",!1)})),_=i[t].children.indexOf(n)===c(t)-1;function S(e){a("buttons",n,e,!m[e])}return r.createElement("div",Sh({ref:l.innerRef},l.draggableProps,{style:u}),r.createElement("div",Sh({className:"button-container"+s},l.dragHandleProps),r.createElement("div",{className:"button-header"},r.createElement(Hr,{color:"primary",style:{marginBottom:"10px"},className:"button-name",onClick:function(){return document.location.hash="#"+g}},r.createElement("span",{className:"button-name-span"},m.name)),r.createElement("div",{className:"button-actions"},0===p&&0===i[t].children.indexOf(n)&&r.createElement(Ju,{stepTrigger:0,anchorEl:b,position:[0,20],text:at("buttonizer_tour.hint.step_0")}),r.createElement(Xp,{ref:x,onClick:function(){document.location.hash="#"+g},text:at("buttonizer_tour.hint.step_0"),nextHintStepIndex:E,className:"button-actions edit-button","data-testid":"edit-button"}),r.createElement(Kp,{name:m.name,onChange:function(e){return d(n,t,{name:e})},"data-testid":"duplicate"}),r.createElement(ah,null,r.createElement(nh,{name:m.name,onChange:function(e){return a("buttons",n,"name",e)},"data-testid":"rename",inDropdown:!0}),r.createElement(wh,{group_data:i[t],object:m,type:"button"}),r.createElement(op,{model:"button",inDropdown:!0,onClose:function(){f(n,t),i[t].children.length<=2&&-1===v.indexOf(i[t].menu_style)&&a(P,t,"menu_style","default")},"data-testid":"delete"})))),r.createElement("div",{className:"button-settings"},r.createElement("div",{className:"button-visibility"},r.createElement("div",{className:"button-title"},at("settings.show_mobile_desktop.title")+":"," "),r.createElement(nf,{content:at("settings.show_mobile_desktop.toggle_mobile")},r.createElement(Hr,{color:"primary",variant:m.show_mobile?"contained":"outlined",onClick:function(){return S("show_mobile")},"data-testid":"show_mobile"},r.createElement("i",{className:"fas fa-mobile-alt"}))),r.createElement(nf,{content:at("settings.show_mobile_desktop.toggle_desktop")},r.createElement(Hr,{color:"primary",variant:m.show_desktop?"contained":"outlined",onClick:function(){return S("show_desktop")},"data-testid":"show_desktop"},r.createElement("i",{className:"fas fa-desktop"})))),r.createElement("div",{className:"clear"}))),_?r.createElement(nf,{content:at("utils.add_button"),shiftClick:!0,arrow:!1},r.createElement(Hr,{onClick:function(e){return h(e.shiftKey)},color:"primary",variant:"text",size:"small",startIcon:r.createElement(Il,{className:"fas fa-plus-circle"}),"data-testid":"new-button",className:"button-container-new-button"},at("utils.add_button"))):r.createElement(nf,{content:at("utils.add_button"),timer:1e3,shiftClick:!0,arrow:!1},r.createElement("div",{className:"button-container-new-button-line"},r.createElement(Hr,{onClick:function(e){return h(e.shiftKey)},color:"secondary",variant:"text",fullWidth:!0,size:"small","data-testid":"new-button"},r.createElement("hr",null),r.createElement("span",null,r.createElement(Il,{className:"fas fa-plus-circle"})),r.createElement("hr",null)))))}));function Ph(e,t){var n=(0,r.useState)((function(){return{inputs:t,result:e()}}))[0],o=(0,r.useRef)(!0),i=(0,r.useRef)(n),a=o.current||Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,r.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}var Th=Ph,Ah=function(e,t){return Ph((function(){return e}),t)},jh=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},Ih=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},Rh=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Nh={top:0,right:0,bottom:0,left:0},Dh=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?Nh:n,o=e.border,i=void 0===o?Nh:o,a=e.padding,l=void 0===a?Nh:a,s=jh(Ih(t,r)),u=jh(Rh(t,i)),c=jh(Rh(u,l));return{marginBox:s,borderBox:jh(t),paddingBox:u,contentBox:c,margin:r,border:i,padding:l}},Mh=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&Qf(!1),n},Lh=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,l=e.padding,s=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return Dh({borderBox:s,border:i,margin:a,padding:l})},Fh=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),Lh(e,t)},zh=function(e,t){var n={top:Mh(t.marginTop),right:Mh(t.marginRight),bottom:Mh(t.marginBottom),left:Mh(t.marginLeft)},r={top:Mh(t.paddingTop),right:Mh(t.paddingRight),bottom:Mh(t.paddingBottom),left:Mh(t.paddingLeft)},o={top:Mh(t.borderTopWidth),right:Mh(t.borderRightWidth),bottom:Mh(t.borderBottomWidth),left:Mh(t.borderLeftWidth)};return Dh({borderBox:e,margin:n,padding:r,border:o})},Bh=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return zh(t,n)},Zh=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Uh(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||Zh(r)&&Zh(o)))return!1;var r,o;return!0}var Hh=function(e,t){var n;void 0===t&&(t=Uh);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}},Wh=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function Gh(e,t){}Gh.bind(null,"warn"),Gh.bind(null,"error");function Vh(){}function $h(e,t,n){var r=t.map((function(t){var r=function(e,t){return(0,gr.Z)({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}function Kh(e){this.message=e}function qh(e,t){if(!e)throw new Kh("Invariant failed")}Kh.prototype.toString=function(){return this.message};var Yh=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=Vh,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof Kh&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,Cr.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=$h(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof Kh))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r.Component),Xh=function(e){return e+1},Jh=function(e,t){var n=e.droppableId===t.droppableId,r=Xh(e.index),o=Xh(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},Qh=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},em=function(e){return"\n The item has returned to its starting position\n of "+Xh(e.index)+"\n"},tm="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",nm=function(e){return"\n You have lifted an item in position "+Xh(e.source.index)+"\n"},rm=function(e){var t=e.destination;if(t)return Jh(e.source,t);var n=e.combine;return n?Qh(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},om=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+em(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+Jh(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+Qh(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+em(e.source)+"\n "},im={x:0,y:0},am=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},lm=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},sm=function(e,t){return e.x===t.x&&e.y===t.y},um=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},cm=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},fm=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},dm=function(e,t){return Math.min.apply(Math,t.map((function(t){return fm(e,t)})))},pm=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},hm=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},mm=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},gm=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=jh({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):jh(e)},vm=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t,n){var r;return n&&n.increasedBy?(0,gr.Z)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(function(e,t){return t?hm(e,t.scroll.diff.displacement):e}(t.marginBox,o),r,n);return{page:t,withPlaceholder:n,active:gm(i,o)}},ym=function(e,t){e.frame||qh(!1);var n=e.frame,r=lm(t,n.scroll.initial),o=um(r),i=(0,gr.Z)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),a=vm({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return(0,gr.Z)({},e,{frame:i,subject:a})};function bm(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function wm(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function xm(e,t){if(e.find)return e.find(t);var n=wm(e,t);return-1!==n?e[n]:void 0}function Em(e){return Array.prototype.slice.call(e)}var _m=Hh((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Sm=Hh((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Om=Hh((function(e){return bm(e)})),km=Hh((function(e){return bm(e)})),Cm=Hh((function(e,t){return km(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}))}));function Pm(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Tm(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Am=Hh((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),jm=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Im={point:im,value:0},Rm={invisible:{},visible:{},all:[]},Nm={displaced:Rm,displacedBy:Im,at:null},Dm=function(e,t){return function(n){return e<=n&&n<=t}},Mm=function(e){var t=Dm(e.top,e.bottom),n=Dm(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,l=r.left<e.left&&r.right>e.right;return!(!a||!l)||(a&&i||l&&o)}},Lm=function(e){var t=Dm(e.top,e.bottom),n=Dm(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},Fm={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},zm={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Bm=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:im;return hm(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},Zm=function(e){return Bm((0,gr.Z)({},e,{isVisibleThroughFrameFn:Mm}))},Um=function(e){return Bm((0,gr.Z)({},e,{isVisibleThroughFrameFn:Lm}))};function Hm(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var l=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return jh(Ih(n,r))}(t,r),s=t.descriptor.id;if(e.all.push(s),!Zm({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var u={draggableId:s,shouldAnimate:function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate}(s,a,i)};return e.visible[s]=u,e}),{all:[],visible:{},invisible:{}})}function Wm(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Rm,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function Gm(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,l=e.index,s=e.forceShouldAnimate,u=jm(t,r);if(null==l)return Wm({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});var c=xm(n,(function(e){return e.descriptor.index===l}));if(!c)return Wm({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});var f=Am(t,n),d=n.indexOf(c);return{displaced:Hm({afterDragging:f.slice(d),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function Vm(e,t){return Boolean(t.effected[e])}var $m=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,l=e.previousImpact,s=e.viewport,u=e.afterCritical,c=l.at;if(c||qh(!1),"REORDER"===c.type){var f=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,l=r[0].descriptor.index,s=r[r.length-1].descriptor.index;return a<l||a>(n?s:s+1)?null:a}({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:a});return null==f?null:Gm({draggable:r,insideDestination:a,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:f})}var d=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,l=r[a].descriptor.index;return Vm(a,i)?t?l:l-1:t?l+1:l}({isMovingForward:t,destination:i,displaced:l.displaced,draggables:o,combine:c.combine,afterCritical:u});return null==d?null:Gm({draggable:r,insideDestination:a,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:d})},Km=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Tm(n);o||qh(!1);var i=o.draggableId,a=r[i].page.borderBox.center,l=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return Vm(r,n)?i?im:um(o.point):i?o.point:im}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return am(a,l)},qm=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Ym=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},Xm=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return cm(t.line,n.marginBox[t.end]+qm(t,r),Ym(t,n.marginBox,r))},Jm=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return cm(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),Ym(t,n.marginBox,r))},Qm=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=Cm(o.descriptor.id,r),l=n.page,s=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return cm(t.line,n.contentBox[t.start]+qm(t,r),Ym(t,n.contentBox,r))}({axis:s,moveInto:o.page,isMoving:l});var u=t.displaced,c=t.displacedBy,f=u.all[0];if(f){var d=r[f];if(Vm(f,i))return Jm({axis:s,moveRelativeTo:d.page,isMoving:l});var p=Lh(d.page,c.point);return Jm({axis:s,moveRelativeTo:p,isMoving:l})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return l.borderBox.center;if(Vm(h.descriptor.id,i)){var m=Lh(h.page,um(i.displacedBy.point));return Xm({axis:s,moveRelativeTo:m,isMoving:l})}return Xm({axis:s,moveRelativeTo:h.page,isMoving:l})},eg=function(e,t){var n=e.frame;return n?am(t,n.scroll.diff.displacement):t},tg=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,l=t.at;return r&&l?"REORDER"===l.type?Qm({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):Km({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?eg(n,t):t},ng=function(e,t){var n=lm(t,e.scroll.initial),r=um(n);return{frame:jh({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function rg(e,t){return e.map((function(e){return t[e]}))}var og=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return am(e.scroll.diff.displacement,t)}(e.viewport,t),o=lm(r,n.page.borderBox.center);return am(n.client.borderBox.center,o)},ig=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,l=void 0!==a&&a,s=lm(r,t.page.borderBox.center),u={target:hm(t.page.borderBox,s),destination:n,withDroppableDisplacement:i,viewport:o};return l?function(e){return Bm((0,gr.Z)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Dm(e.top,e.bottom),r=Dm(e.left,e.right);return function(e){return t===Fm?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):Um(u)},ag=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,l=e.previousPageBorderBoxCenter,s=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var c=Cm(r.descriptor.id,o),f=jm(n,r),d=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!Pm(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,gr.Z)({},i,{at:t})}var l=i.displaced.all,s=l.length?l[0]:null;if(t)return s?a(s):null;var u=Am(n,o);if(!s)return u.length?a(u[u.length-1].descriptor.id):null;var c=wm(u,(function(e){return e.descriptor.id===s}));-1===c&&qh(!1);var f=c-1;return f<0?null:a(u[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||$m({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:c,previousImpact:i,viewport:a,afterCritical:u});if(!d)return null;var p=tg({impact:d,draggable:n,droppable:r,draggables:o,afterCritical:u});if(ig({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:og({pageBorderBoxCenter:p,draggable:n,viewport:a}),impact:d,scrollJumpRequest:null};var h=lm(p,l);return{clientSelection:s,impact:function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=ng(n,am(n.scroll.current,i)),l=r.frame?ym(r,am(r.frame.scroll.current,i)):r,s=t.displaced,u=Hm({afterDragging:rg(s.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:s,forceShouldAnimate:!1}),c=Hm({afterDragging:rg(s.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),f={},d={},p=[s,u,c];return s.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,p);t?d[e]=t:f[e]=!0})),(0,gr.Z)({},t,{displaced:{all:s.all,invisible:f,visible:d}})}({impact:d,viewport:a,destination:r,draggables:o,maxScrollChange:h}),scrollJumpRequest:h}},lg=function(e){var t=e.subject.active;return t||qh(!1),t},sg=function(e,t){var n=e.page.borderBox.center;return Vm(e.descriptor.id,t)?lm(n,t.displacedBy.point):n},ug=function(e,t){var n=e.page.borderBox;return Vm(e.descriptor.id,t)?hm(n,um(t.displacedBy.point)):n},cg=Hh((function(e,t){var n=t[e.line];return{value:n,point:cm(e.line,n)}})),fg=function(e,t){return(0,gr.Z)({},e,{scroll:(0,gr.Z)({},e.scroll,{max:t})})},dg=function(e,t,n){var r=e.frame;jm(t,e)&&qh(!1),e.subject.withPlaceholder&&qh(!1);var o=cg(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return cm(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=Cm(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:cm(r.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var l=vm({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return(0,gr.Z)({},e,{subject:l})}var s=i?am(r.scroll.max,i):r.scroll.max,u=fg(r,s),c=vm({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:u});return(0,gr.Z)({},e,{subject:c,frame:u})},pg=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,l=e.viewport,s=e.afterCritical,u=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var l=r.axis,s=Dm(a[l.start],a[l.end]),u=Om(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return Mm(i.frame)(lg(e))})).filter((function(e){var n=lg(e);return t?a[l.crossAxisEnd]<n[l.crossAxisEnd]:n[l.crossAxisStart]<a[l.crossAxisStart]})).filter((function(e){var t=lg(e),n=Dm(t[l.start],t[l.end]);return s(t[l.start])||s(t[l.end])||n(a[l.start])||n(a[l.end])})).sort((function(e,n){var r=lg(e)[l.crossAxisStart],o=lg(n)[l.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return lg(e)[l.crossAxisStart]===lg(n[0])[l.crossAxisStart]}));if(!u.length)return null;if(1===u.length)return u[0];var c=u.filter((function(e){return Dm(lg(e)[l.start],lg(e)[l.end])(n[l.line])}));return 1===c.length?c[0]:c.length>1?c.sort((function(e,t){return lg(e)[l.start]-lg(t)[l.start]}))[0]:u.sort((function(e,t){var r=dm(n,mm(lg(e))),o=dm(n,mm(lg(t)));return r!==o?r-o:lg(e)[l.start]-lg(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:l});if(!u)return null;var c=Cm(u.descriptor.id,i),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,l=e.viewport,s=e.afterCritical;if(!n){if(r.length)return null;var u={displaced:Rm,displacedBy:Im,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},c=tg({impact:u,draggable:o,droppable:a,draggables:i,afterCritical:s}),f=jm(o,a)?a:dg(a,o,i);return ig({draggable:o,destination:f,newPageBorderBoxCenter:c,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?u:null}var d,p=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),h=(d=n.descriptor.index,n.descriptor.id===o.descriptor.id||p?d:d+1),m=cg(a.axis,o.displaceBy);return Gm({draggable:o,insideDestination:r,destination:a,viewport:l,displacedBy:m,last:Rm,index:h})}({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical;return o.filter((function(e){return Um({target:ug(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=fm(t,eg(r,sg(e,i))),a=fm(t,eg(r,sg(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}))[0]||null}({pageBorderBoxCenter:n,viewport:l,destination:u,insideDestination:c,afterCritical:s}),insideDestination:c,viewport:l,afterCritical:s});if(!f)return null;var d=tg({impact:f,draggable:r,droppable:u,draggables:i,afterCritical:s});return{clientSelection:og({pageBorderBoxCenter:d,draggable:r,viewport:l}),impact:f,scrollJumpRequest:null}},hg=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},mg=function(e){var t=e.state,n=e.type,r=function(e,t){var n=hg(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,l=a.axis.direction,s="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(s&&!o)return null;var u="MOVE_DOWN"===n||"MOVE_RIGHT"===n,c=t.dimensions.draggables[t.critical.draggable.id],f=t.current.page.borderBoxCenter,d=t.dimensions,p=d.draggables,h=d.droppables;return s?ag({isMovingForward:u,previousPageBorderBoxCenter:f,draggable:c,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):pg({isMovingForward:u,previousPageBorderBoxCenter:f,draggable:c,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function gg(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function vg(e){var t=Dm(e.top,e.bottom),n=Dm(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function yg(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=Om(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(vg(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],l=t[i.crossAxisStart],s=t[i.crossAxisEnd],u=Dm(o[i.crossAxisStart],o[i.crossAxisEnd]),c=u(l),f=u(s);return!c&&!f||(c?l<a:s>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=cm(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:fm(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var bg=function(e,t){return jh(hm(e,t))};function wg(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var xg=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,l=e.afterCritical,s=bg(n.page.borderBox,t),u=yg({pageBorderBox:s,draggable:n,droppables:o});if(!u)return Nm;var c=o[u],f=Cm(c.descriptor.id,r),d=function(e,t){var n=e.frame;return n?bg(t,n.scroll.diff.value):t}(c,s);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var l=o.axis,s=cg(o.axis,t.displaceBy),u=s.value,c=n[l.start],f=n[l.end],d=xm(Am(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,i=Vm(t,a),s=wg({displaced:r.displaced,id:t});return i?s?f>n[l.start]+o&&f<n[l.end]-o:c>n[l.start]-u+o&&c<n[l.end]-u-o:s?f>n[l.start]+u+o&&f<n[l.end]+u-o:c>n[l.start]+o&&c<n[l.end]-o}));return d?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:d,draggable:n,previousImpact:i,destination:c,insideDestination:f,afterCritical:l})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,l=e.afterCritical,s=r.axis,u=cg(r.axis,n.displaceBy),c=u.value,f=t[s.start],d=t[s.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:xm(Am(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[s.line],r=Vm(t,l),o=wg({displaced:i,id:t});return r?o?d<=n:f<n-c:o?d<=n+c:f<n})),inHomeList:jm(n,r)});return Gm({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:u,index:p})}({pageBorderBoxWithDroppableScroll:d,draggable:n,destination:c,insideDestination:f,last:i.displaced,viewport:a,afterCritical:l})},Eg=function(e,t){var n;return(0,gr.Z)({},e,((n={})[t.descriptor.id]=t,n))},_g=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=hg(t),i=hg(n);if(!o)return r;if(o===i)return r;var a=r[o];if(!a.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||qh(!1);var n=e.frame;if(!n){var r=vm({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,gr.Z)({},e,{subject:r})}var o=t.oldFrameMaxScroll;o||qh(!1);var i=fg(n,o),a=vm({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return(0,gr.Z)({},e,{subject:a,frame:i})}(a);return Eg(r,l)},Sg=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,l=o||t.viewport,s=r||t.dimensions,u=n||t.current.client.selection,c=lm(u,t.initial.client.selection),f={offset:c,selection:u,borderBoxCenter:am(t.initial.client.borderBoxCenter,c)},d={selection:am(f.selection,l.scroll.current),borderBoxCenter:am(f.borderBoxCenter,l.scroll.current),offset:am(f.offset,l.scroll.diff.value)},p={client:f,page:d};if("COLLECTING"===t.phase)return(0,gr.Z)({phase:"COLLECTING"},t,{dimensions:s,viewport:l,current:p});var h=s.draggables[t.critical.draggable.id],m=i||xg({pageOffset:d.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),g=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=_g({previousImpact:o,impact:i,droppables:r}),l=hg(i);if(!l)return a;var s=r[l];if(jm(t,s))return a;if(s.subject.withPlaceholder)return a;var u=dg(s,t,n);return Eg(a,u)}({draggable:h,impact:m,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return(0,gr.Z)({},t,{current:p,dimensions:{draggables:s.draggables,droppables:g},impact:m,viewport:l,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})};var Og=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced,l=Hm({afterDragging:function(e,t){return e.map((function(e){return t[e]}))}(a.all,r),destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:a});return(0,gr.Z)({},t,{displaced:l})},kg=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,l=tg({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return og({pageBorderBoxCenter:l,draggable:n,viewport:i})},Cg=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&qh(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,l=a.draggables,s=a.droppables,u=l[t.critical.draggable.id],c=hg(o);c||qh(!1);var f=s[c],d=Og({impact:o,viewport:i,destination:f,draggables:l}),p=kg({impact:d,draggable:u,droppable:f,draggables:l,viewport:i,afterCritical:t.afterCritical});return Sg({impact:d,clientSelection:p,state:t,dimensions:a,viewport:i})},Pg=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=cg(n.axis,t.displaceBy),a=Cm(n.descriptor.id,r),l=a.indexOf(t);-1===l&&qh(!1);var s,u=a.slice(l+1),c=u.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),f={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:c};return{impact:{displaced:Hm({afterDragging:u,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(s=t.descriptor,{index:s.index,droppableId:s.droppableId})}},afterCritical:f}},Tg=function(e){0},Ag=function(e){0},jg=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||qh(!1),t}(n[t]).scroll.diff.value;return function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=Lh(t.client,n),i=Fh(o,r);return(0,gr.Z)({},t,{placeholder:(0,gr.Z)({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:am(o,i),initialWindowScroll:r.scroll.initial})}))},Ig=function(e){return"SNAP"===e.movementMode},Rg=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Eg(e.droppables,t)}}(e.dimensions,t);return!Ig(e)||n?Sg({state:e,dimensions:r}):Cg({state:e,dimensions:r})};function Ng(e){return e.isDragging&&"SNAP"===e.movementMode?(0,gr.Z)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Dg={phase:"IDLE",completed:null,shouldFlush:!1},Mg=function(e,t){if(void 0===e&&(e=Dg),"FLUSH"===t.type)return(0,gr.Z)({},Dg,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&qh(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,l=n.movementMode,s=a.draggables[r.draggable.id],u=a.droppables[r.droppable.id],c={selection:o,borderBoxCenter:s.client.borderBox.center,offset:im},f={client:c,page:{selection:am(c.selection,i.scroll.initial),borderBoxCenter:am(c.selection,i.scroll.initial),offset:am(c.selection,i.scroll.diff.value)}},d=Om(a.droppables).every((function(e){return!e.isFixedOnPage})),p=Pg({draggable:s,home:u,draggables:a.draggables,viewport:i}),h=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:a,initial:f,current:f,isWindowScrollAllowed:d,impact:h,afterCritical:p.afterCritical,onLiftImpact:h,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&qh(!1),(0,gr.Z)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&qh(!1),function(e){var t=e.state,n=e.published;Tg();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return ym(n,e.scroll)})),o=(0,gr.Z)({},t.dimensions.droppables,{},_m(r)),i=Sm(jg({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),a=(0,gr.Z)({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete a[e]}));var l={droppables:o,draggables:a},s=hg(t.impact),u=s?l.droppables[s]:null,c=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],d=Pg({draggable:c,home:f,draggables:a,viewport:t.viewport}),p=d.impact,h=d.afterCritical,m=u&&u.isCombineEnabled?t.impact:p,g=xg({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:m,viewport:t.viewport,afterCritical:h});Ag();var v=(0,gr.Z)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:g,onLiftImpact:p,dimensions:l,afterCritical:h,forceShouldAnimate:!1});return"COLLECTING"===t.phase?v:(0,gr.Z)({phase:"DROP_PENDING"},v,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;gg(e)||qh(!1);var m=t.payload.client;return sm(m,e.current.client.selection)?e:Sg({state:e,clientSelection:m,impact:Ig(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Ng(e);if("COLLECTING"===e.phase)return Ng(e);gg(e)||qh(!1);var g=t.payload,v=g.id,y=g.newScroll,b=e.dimensions.droppables[v];if(!b)return e;var w=ym(b,y);return Rg(e,w,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;gg(e)||qh(!1);var x=t.payload,E=x.id,_=x.isEnabled,S=e.dimensions.droppables[E];S||qh(!1),S.isEnabled===_&&qh(!1);var O=(0,gr.Z)({},S,{isEnabled:_});return Rg(e,O,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;gg(e)||qh(!1);var k=t.payload,C=k.id,P=k.isCombineEnabled,T=e.dimensions.droppables[C];T||qh(!1),T.isCombineEnabled===P&&qh(!1);var A=(0,gr.Z)({},T,{isCombineEnabled:P});return Rg(e,A,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;gg(e)||qh(!1),e.isWindowScrollAllowed||qh(!1);var j=t.payload.newScroll;if(sm(e.viewport.scroll.current,j))return Ng(e);var I=ng(e.viewport,j);return Ig(e)?Cg({state:e,viewport:I}):Sg({state:e,viewport:I})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!gg(e))return e;var R=t.payload.maxScroll;if(sm(R,e.viewport.scroll.max))return e;var N=(0,gr.Z)({},e.viewport,{scroll:(0,gr.Z)({},e.viewport.scroll,{max:R})});return(0,gr.Z)({phase:"DRAGGING"},e,{viewport:N})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&qh(!1);var D=mg({state:e,type:t.type});return D?Sg({state:e,impact:D.impact,clientSelection:D.clientSelection,scrollJumpRequest:D.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var M=t.payload.reason;return"COLLECTING"!==e.phase&&qh(!1),(0,gr.Z)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:M})}if("DROP_ANIMATE"===t.type){var L=t.payload,F=L.completed,z=L.dropDuration,B=L.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&qh(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:z,newHomeClientOffset:B,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},Lg=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},Fg=function(){return{type:"COLLECTION_STARTING",payload:null}},zg=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},Bg=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},Zg=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},Ug=function(e){return{type:"MOVE",payload:e}},Hg=function(){return{type:"MOVE_UP",payload:null}},Wg=function(){return{type:"MOVE_DOWN",payload:null}},Gg=function(){return{type:"MOVE_RIGHT",payload:null}},Vg=function(){return{type:"MOVE_LEFT",payload:null}},$g=function(e){return{type:"DROP_COMPLETE",payload:e}},Kg=function(e){return{type:"DROP",payload:e}},qg=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var Yg="cubic-bezier(.2,1,.1,1)",Xg={drop:0,combining:.7},Jg={drop:.75},Qg=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",ev={fluid:"opacity "+Qg,snap:"transform "+Qg+", opacity "+Qg,drop:function(e){var t=e+"s "+Yg;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Qg,placeholder:"height "+Qg+", width "+Qg+", margin "+Qg},tv=function(e){return sm(e,im)?null:"translate("+e.x+"px, "+e.y+"px)"},nv=tv,rv=function(e,t){var n=tv(e);return n?t?n+" scale("+Jg.drop+")":n:null},ov=.33,iv=.55,av=iv-ov,lv=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),i=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&qh(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&qh(!1);var a=o.critical,l=o.dimensions,s=l.draggables[o.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,gr.Z)({},r,{displaced:Rm}),didDropInsideDroppable:!0}:{impact:Og({draggables:t,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),c=u.impact,f=u.didDropInsideDroppable,d=f?Pm(c):null,p=f?Tm(c):null,h={index:a.draggable.index,droppableId:a.droppable.id},m={draggableId:s.descriptor.id,type:s.descriptor.type,source:h,reason:i,mode:o.movementMode,destination:d,combine:p},g=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,l=r.droppables,s=hg(t),u=s?l[s]:null,c=l[n.descriptor.droppableId],f=kg({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:u||c,viewport:o});return lm(f,n.client.borderBox.center)}({impact:c,draggable:s,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),v={critical:o.critical,afterCritical:o.afterCritical,result:m,impact:c};if(!sm(o.current.client.offset,g)||Boolean(m.combine)){var y=function(e){var t=e.current,n=e.destination,r=e.reason,o=fm(t,n);if(o<=0)return ov;if(o>=1500)return iv;var i=ov+av*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:g,reason:i});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:g,dropDuration:y,completed:v}))}else n($g({completed:v}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},sv=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function uv(e){var t=e.onWindowScroll;var n=Wh((function(){t(sv())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=Vh;function i(){return o!==Vh}return{start:function(){i()&&qh(!1),o=$h(window,[r])},stop:function(){i()||qh(!1),n.cancel(),o(),o=Vh},isActive:i}}var cv=function(e){var t=uv({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},fv=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=wm(e,(function(e){return e.timerId===t}));-1===n&&qh(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},dv=function(e,t){Tg(),t(),Ag()},pv=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},hv=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},mv=function(e,t){var n=function(e,t){var n=fv(),r=null,o=function(n){r||qh(!1),r=null,dv(0,(function(){return hv(e().onDragEnd,n,t,om)}))};return{beforeCapture:function(t,n){r&&qh(!1),dv(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&qh(!1),dv(0,(function(){var r=e().onBeforeDragStart;r&&r(pv(t,n))}))},start:function(o,i){r&&qh(!1);var a=pv(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){dv(0,(function(){return hv(e().onDragStart,a,t,nm)}))}))},update:function(o,i){var a=Pm(i),l=Tm(i);r||qh(!1);var s=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);s&&(r.lastCritical=o);var u,c,f=(u=r.lastLocation,c=a,!(null==u&&null==c||null!=u&&null!=c&&u.droppableId===c.droppableId&&u.index===c.index));f&&(r.lastLocation=a);var d=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.draggableId===t.draggableId&&e.droppableId===t.droppableId)}(r.lastCombine,l);if(d&&(r.lastCombine=l),s||f||d){var p=(0,gr.Z)({},pv(o,r.mode),{combine:l,destination:a});n.add((function(){dv(0,(function(){return hv(e().onDragUpdate,p,t,rm)}))}))}},flush:function(){r||qh(!1),n.flush()},drop:o,abort:function(){if(r){var e=(0,gr.Z)({},pv(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},gv=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&qh(!1),e.dispatch($g({completed:r.completed}))}else t(n)}}},vv=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=$h(window,[i])}))}}}},yv=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(Kg({reason:r.reason})))}}}},bv=g,wv=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,l=e.autoScroller;return u(Mg,bv(v((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,l=i.clientSelection,s=i.movementMode,u=n();"DROP_ANIMATING"===u.phase&&r($g({completed:u.completed})),"IDLE"!==n().phase&&qh(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:s}});var c={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},f=e.startPublishing(c),d=f.critical,p=f.dimensions,h=f.viewport;r(function(e){return{type:"INITIAL_PUBLISH",payload:e}}({critical:d,dimensions:p,clientSelection:l,movementMode:s,viewport:h}))}else t(o)}}}}(n),lv,gv,vv,yv,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&qh(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),cv,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),mv(i,a))))};var xv=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=lm({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Ev=function(){var e=document.documentElement;return e||qh(!1),e},_v=function(){var e=Ev();return xv({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Sv=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;Tg();var o=function(){var e=sv(),t=_v(),n=e.y,r=e.x,o=Ev(),i=o.clientWidth,a=o.clientHeight;return{frame:jh({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:im,displacement:im}}}}(),i=o.scroll.current,a=t.droppable,l=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)})),s=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(i)})),u={draggables:Sm(s),droppables:_m(l)};return Ag(),{dimensions:u,critical:t,viewport:o}};function Ov(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var kv,Cv,Pv=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,Tg();var e=r,i=e.additions,a=e.removals,l=e.modified,s=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(im)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),u=Object.keys(l).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),c={additions:s,removals:Object.keys(a),modified:u};r={additions:{},removals:{},modified:{}},Ag(),n.publish(c)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||qh(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Ov(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Ov(e,o,t.value)&&r.remove(t.value)};return{updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||qh(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||qh(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||qh(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&qh(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},l=e.subscribe(o);return n={critical:a,unsubscribe:l},Sv({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}}},Tv=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},Av=function(e){window.scrollBy(e.x,e.y)},jv=Hh((function(e){return Om(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Iv=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}return function(e,t){return xm(jv(t),(function(t){return t.frame||qh(!1),vg(t.frame.pageMarginBox)(e)}))}(t,r)},Rv=.25,Nv=.05,Dv=28,Mv=function(e){return Math.pow(e,2)},Lv={stopDampeningAt:1200,accelerateAt:360},Fv=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},zv=Lv.accelerateAt,Bv=Lv.stopDampeningAt,Zv=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Dv;if(e===t.startScrollingFrom)return 1;var n=Fv({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=Dv*Mv(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=Bv,o=Date.now()-n;if(o>=Bv)return e;if(o<zv)return 1;var i=Fv({startOfRange:zv,endOfRange:r,current:o}),a=e*Mv(i);return Math.ceil(a)}(i,r),1):i},Uv=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*Rv,maxScrollValueAt:e[t.size]*Nv}}(t,o);return n[o.end]<n[o.start]?Zv({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*Zv({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},Hv=pm((function(e){return 0===e?0:e})),Wv=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},l=Uv({container:n,distanceToEdges:a,dragStartTime:t,axis:Fm,shouldUseTimeDampening:i}),s=Uv({container:n,distanceToEdges:a,dragStartTime:t,axis:zm,shouldUseTimeDampening:i}),u=Hv({x:s,y:l});if(sm(u,im))return null;var c=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:u});return c?sm(c,im)?null:c:null},Gv=pm((function(e){return 0===e?0:e>0?1:-1})),Vv=(kv=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=am(t,r),i={x:kv(o.x,n.x),y:kv(o.y,n.y)};return sm(i,im)?null:i}),$v=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=Gv(r),a=Vv({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},Kv=function(e,t){return $v({current:e.scroll.current,max:e.scroll.max,change:t})},qv=function(e,t){var n=e.frame;return!!n&&$v({current:n.scroll.current,max:n.scroll.max,change:t})},Yv=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var s=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=Wv({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&Kv(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:l,center:a,shouldUseTimeDampening:r});if(s)return void o(s)}var u=Iv({center:a,destination:hg(t.impact),droppables:t.dimensions.droppables});if(u){var c=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var l=Wv({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return l&&qv(t,l)?l:null}({dragStartTime:n,droppable:u,subject:l,center:a,shouldUseTimeDampening:r});c&&i(u.descriptor.id,c)}},Xv=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!qv(e,t))return t;var r=function(e,t){var n=e.frame;return n&&qv(e,t)?Vv({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=lm(t,r);return n(e.descriptor.id,o),lm(t,o)},i=function(e,t,n){if(!e)return n;if(!Kv(t,n))return n;var o=function(e,t){if(!Kv(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return Vv({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=lm(n,o);return r(i),lm(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=hg(e.impact);r||qh(!1);var a=o(e.dimensions.droppables[r],n);if(a){var l=e.viewport,s=i(e.isWindowScrollAllowed,l,a);s&&function(e,n){var r=am(e.current.client.selection,n);t({client:r})}(e,s)}}}},Jv=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=Wh(t),o=Wh(n),i=null,a=function(e){i||qh(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;Yv({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){Tg(),i&&qh(!1);var t=Date.now(),n=!1,r=function(){n=!0};Yv({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},Ag(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=Xv({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},Qv={base:Cv="data-rbd-drag-handle",draggableId:Cv+"-draggable-id",contextId:Cv+"-context-id"},ey=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),ty=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),ny={contextId:"data-rbd-scroll-container-context-id"},ry=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},oy="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,iy=function(){var e=document.querySelector("head");return e||qh(!1),e},ay=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function ly(e,t){var n=Th((function(){return function(e){var t,n,r=function(e){return function(t){return"["+t+'="'+e+'"]'}}(e),o=(t="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:r(Qv.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:t,dragging:"pointer-events: none;",dropAnimating:t}}),i=[(n="\n transition: "+ev.outOfTheWay+";\n ",{selector:r(ey.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),o,{selector:r(ty.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:ry(i,"always"),resting:ry(i,"resting"),dragging:ry(i,"dragging"),dropAnimating:ry(i,"dropAnimating"),userCancel:ry(i,"userCancel")}}(e)}),[e]),o=(0,r.useRef)(null),i=(0,r.useRef)(null),a=Ah(Hh((function(e){var t=i.current;t||qh(!1),t.textContent=e})),[]),l=Ah((function(e){var t=o.current;t||qh(!1),t.textContent=e}),[]);oy((function(){(o.current||i.current)&&qh(!1);var r=ay(t),s=ay(t);return o.current=r,i.current=s,r.setAttribute("data-rbd-always",e),s.setAttribute("data-rbd-dynamic",e),iy().appendChild(r),iy().appendChild(s),l(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||qh(!1),iy().removeChild(t),e.current=null};e(o),e(i)}}),[t,l,a,n.always,n.resting,e]);var s=Ah((function(){return a(n.dragging)}),[a,n.dragging]),u=Ah((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),c=Ah((function(){i.current&&a(n.resting)}),[a,n.resting]);return Th((function(){return{dragging:s,dropping:u,resting:c}}),[s,u,c])}var sy=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function uy(e){return e instanceof sy(e).HTMLElement}function cy(e,t){var n="["+Qv.contextId+'="'+e+'"]',r=Em(document.querySelectorAll(n));if(!r.length)return null;var o=xm(r,(function(e){return e.getAttribute(Qv.draggableId)===t}));return o&&uy(o)?o:null}function fy(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||qh(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return bm(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||qh(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return bm(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var dy=r.createContext(null),py=function(){var e=document.body;return e||qh(!1),e},hy={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var my=0,gy={separator:"::"};function vy(e,t){return void 0===t&&(t=gy),Th((function(){return""+e+t.separator+my++}),[t.separator,e])}var yy=r.createContext(null);function by(e){0}function wy(e,t){by()}function xy(){wy()}function Ey(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e})),t}var _y,Sy=((_y={})[13]=!0,_y[9]=!0,_y),Oy=function(e){Sy[e.keyCode]&&e.preventDefault()},ky=function(){var e="visibilitychange";return"undefined"==typeof document?e:xm([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Cy,Py={type:"IDLE"};function Ty(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(0===t){var a={x:n,y:i},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);"PENDING"!==l.type&&qh(!1);var s=l.point;if(u=s,c=a,Math.abs(c.x-u.x)>=5||Math.abs(c.y-u.y)>=5){var u,c;e.preventDefault();var f=l.actions.fluidLift(a);o({type:"DRAGGING",actions:f})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Oy(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&qh(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:ky,fn:t}]}function Ay(){}var jy=((Cy={})[34]=!0,Cy[33]=!0,Cy[36]=!0,Cy[35]=!0,Cy);function Iy(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(jy[r.keyCode]?r.preventDefault():Oy(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:ky,fn:n}]}var Ry={type:"IDLE"};var Ny={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Dy(e,t){var n=t.target;return!!uy(n)&&function e(t,n){if(null==n)return!1;if(Boolean(Ny[n.tagName.toLowerCase()]))return!0;var r=n.getAttribute("contenteditable");return"true"===r||""===r||n!==t&&e(t,n.parentElement)}(e,n)}var My=function(e){return jh(e.getBoundingClientRect()).center};var Ly="undefined"==typeof document?"matches":xm(["matches","msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||"matches";function Fy(e,t){return e.closest?e.closest(t):function e(t,n){return null==t?null:t[Ly](n)?t:e(t.parentElement,n)}(e,t)}function zy(e,t){var n,r=t.target;if(!((n=r)instanceof sy(n).Element))return null;var o=Fy(r,function(e){return"["+Qv.contextId+'="'+e+'"]'}(e));return o&&uy(o)?o:null}function By(e){e.preventDefault()}function Zy(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function Uy(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!Tv(n.getState(),o))}function Hy(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,l=e.sourceEvent;if(!Uy({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var s=o.draggable.getById(i),u=function(e,t){var n="["+ey.contextId+'="'+e+'"]',r=xm(Em(document.querySelectorAll(n)),(function(e){return e.getAttribute(ey.id)===t}));return r&&uy(r)?r:null}(n,s.descriptor.id);if(!u)return null;if(l&&!s.options.canDragInteractiveElements&&Dy(u,l))return null;var c=t.claim(a||Vh),f="PRE_DRAG";function d(){return s.options.shouldRespectForcePress}function p(){return t.isActive(c)}var h=function(e,t){Zy({expected:e,phase:f,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function m(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=$h(window,[{eventName:"click",fn:By,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(Kg({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&qh(!1)),r.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),f="DRAGGING",(0,gr.Z)({isActive:function(){return Zy({expected:"DRAGGING",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return Zy({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,fluidLift:function(e){var t=Wh((function(e){h((function(){return Ug({client:e})}))})),n=m({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,gr.Z)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return h(Hg)},moveRight:function(){return h(Gg)},moveDown:function(){return h(Wg)},moveLeft:function(){return h(Vg)}};return m({liftActionArgs:{id:i,clientSelection:My(u),movementMode:"SNAP"},cleanup:Vh,actions:e})},abort:function(){Zy({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!0})&&t.release()}}}var Wy=[function(e){var t=(0,r.useRef)(Py),n=(0,r.useRef)(Vh),o=Th((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,l,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),c(o,i)}}}}}}),[e]),i=Th((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=Ah((function(){n.current=$h(window,[i,o],{passive:!1,capture:!0})}),[i,o]),l=Ah((function(){"IDLE"!==t.current.type&&(t.current=Py,n.current(),a())}),[a]),s=Ah((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=Ah((function(){var e=Ty({cancel:s,completed:l,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=$h(window,e,{capture:!0,passive:!1})}),[s,l]),c=Ah((function(e,n){"IDLE"!==t.current.type&&qh(!1),t.current={type:"PENDING",point:n,actions:e},u()}),[u]);oy((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,r.useRef)(Ay),n=Th((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var r=e.findClosestDraggableId(n);if(r){var i=e.tryGetLock(r,s,{sourceEvent:n});if(i){n.preventDefault();var a=!0,l=i.snapLift();t.current(),t.current=$h(window,Iy(l,s),{capture:!0,passive:!1})}}}function s(){a||qh(!1),a=!1,t.current(),o()}}}}),[e]),o=Ah((function(){t.current=$h(window,[n],{passive:!1,capture:!0})}),[n]);oy((function(){return o(),function(){t.current()}}),[o])},function(e){var t=(0,r.useRef)(Ry),n=(0,r.useRef)(Vh),o=Ah((function(){return t.current}),[]),i=Ah((function(e){t.current=e}),[]),a=Th((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),d(o,a)}}}}}}),[e]),l=Ah((function(){n.current=$h(window,[a],{capture:!0,passive:!1})}),[a]),s=Ah((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(Ry),n.current(),l())}),[l,i]),u=Ah((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=Ah((function(){var e={capture:!0,passive:!1},t={cancel:u,completed:s,getPhase:o},r=$h(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&qh(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:ky,fn:t}]}(t),e),i=$h(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:ky,fn:t}]}(t),e);n.current=function(){r(),i()}}),[u,o,s]),f=Ah((function(){var e=o();"PENDING"!==e.type&&qh(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),d=Ah((function(e,t){"IDLE"!==o().type&&qh(!1);var n=setTimeout(f,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,o,i,f]);oy((function(){return l(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(Ry))}}),[o,l,i]),oy((function(){return $h(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function Gy(e){var t=e.contextId,n=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,l=[].concat(a?Wy:[],i||[]),s=(0,r.useState)((function(){return function(){var e=null;function t(){e||qh(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&qh(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],u=Ah((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);oy((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();u(e,t),e=t}))}),[s,n,u]),oy((function(){return s.tryAbandon}),[s.tryAbandon]);var c=Ah((function(e){return Uy({lockAPI:s,registry:o,store:n,draggableId:e})}),[s,o,n]),f=Ah((function(e,r,i){return Hy({lockAPI:s,registry:o,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,s,o,n]),d=Ah((function(e){return function(e,t){var n=zy(e,t);return n?n.getAttribute(Qv.draggableId):null}(t,e)}),[t]),p=Ah((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),h=Ah((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[s,n]),m=Ah(s.isClaimed,[s]),g=Th((function(){return{canGetLock:c,tryGetLock:f,findClosestDraggableId:d,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:m}}),[c,f,d,p,h,m]);by();for(var v=0;v<l.length;v++)l[v](g)}function Vy(e){return e.current||qh(!1),e.current}function $y(e){var t=e.contextId,n=e.setCallbacks,o=e.sensors,i=e.nonce,a=e.dragHandleUsageInstructions,l=(0,r.useRef)(null);xy();var s=Ey(e),u=Ah((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(s.current)}),[s]),c=function(e){var t=Th((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,gr.Z)(e.style,hy),py().appendChild(e),function(){setTimeout((function(){var t=py();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Ah((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),f=function(e){var t=e.contextId,n=e.text,o=vy("hidden-text",{separator:"-"}),i=Th((function(){return function(e){return"rbd-hidden-text-"+e.contextId+"-"+e.uniqueId}({contextId:t,uniqueId:o})}),[o,t]);return(0,r.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",py().appendChild(e),function(){var t=py();t.contains(e)&&t.removeChild(e)}}),[i,n]),i}({contextId:t,text:a}),p=ly(t,i),h=Ah((function(e){Vy(l).dispatch(e)}),[]),m=Th((function(){return d({publishWhileDragging:Lg,updateDroppableScroll:zg,updateDroppableIsEnabled:Bg,updateDroppableIsCombineEnabled:Zg,collectionStarting:Fg},h)}),[h]),g=function(){var e=Th(fy,[]);return(0,r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),v=Th((function(){return Pv(g,m)}),[g,m]),y=Th((function(){return Jv((0,gr.Z)({scrollWindow:Av,scrollDroppable:v.scrollDroppable},d({move:Ug},h)))}),[v.scrollDroppable,h]),b=function(e){var t=(0,r.useRef)({}),n=(0,r.useRef)(null),o=(0,r.useRef)(null),i=(0,r.useRef)(!1),a=Ah((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),l=Ah((function(t){var n=cy(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),s=Ah((function(e,t){n.current===e&&(n.current=t)}),[]),u=Ah((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=n.current;e&&l(e)})))}),[l]),c=Ah((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(Qv.draggableId)===e&&(n.current=e)}),[]);return oy((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),Th((function(){return{register:a,tryRecordFocus:c,tryRestoreFocusRecorded:u,tryShiftRecord:s}}),[a,c,u,s])}(t),w=Th((function(){return wv({announce:c,autoScroller:y,dimensionMarshal:v,focusMarshal:b,getResponders:u,styleMarshal:p})}),[c,y,v,b,u,p]);l.current=w;var x=Ah((function(){var e=Vy(l);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),E=Ah((function(){var e=Vy(l).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Th((function(){return{isDragging:E,tryAbort:x}}),[E,x]));var _=Ah((function(e){return Tv(Vy(l).getState(),e)}),[]),S=Ah((function(){return gg(Vy(l).getState())}),[]),O=Th((function(){return{marshal:v,focus:b,contextId:t,canLift:_,isMovementAllowed:S,dragHandleUsageInstructionsId:f,registry:g}}),[t,v,f,b,_,S,g]);return Gy({contextId:t,store:w,registry:g,customSensors:o,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)((function(){return x}),[x]),r.createElement(yy.Provider,{value:O},r.createElement(ki,{context:dy,store:w},e.children))}var Ky=0;function qy(e){var t=Th((function(){return""+Ky++}),[]),n=e.dragHandleUsageInstructions||tm;return r.createElement(Yh,null,(function(o){return r.createElement($y,{nonce:e.nonce,contextId:t,setCallbacks:o,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Yy=function(e){return function(t){return e===t}},Xy=Yy("scroll"),Jy=Yy("auto"),Qy=(Yy("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),eb=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return Qy(n,Xy)||Qy(n,Jy)},tb=function e(t){return null==t||t===document.body||t===document.documentElement?null:eb(t)?t:e(t.parentElement)},nb=function(e){return{x:e.scrollLeft,y:e.scrollTop}},rb=function(e){return{closestScrollable:tb(e),isFixedOnPage:function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))}(e)}},ob=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,l=e.isCombineEnabled,s=e.shouldClipSubject,u=r.closestScrollable,c=function(e,t){var n=Bh(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,l=Ih({top:r,right:a,bottom:i,left:o},n.border);return Dh({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})}(t,u),f=Fh(c,o),d=function(){if(!u)return null;var e=Bh(u),t={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:e,page:Fh(e,o),scroll:nb(u),scrollSize:t,shouldClipSubject:s}}();return function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,l=e.page,s=e.closest,u=function(){if(!s)return null;var e=s.scrollSize,t=s.client,n=xv({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:n,diff:{value:im,displacement:im}}}}(),c="vertical"===i?Fm:zm;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:c,isEnabled:n,client:a,page:l,frame:u,subject:vm({page:l,withPlaceholder:null,axis:c,frame:u})}}({descriptor:n,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:f,closest:d})},ib={passive:!1},ab={passive:!0},lb=function(e){return e.shouldPublishImmediately?ib:ab};function sb(e){var t=(0,r.useContext)(e);return t||qh(!1),t}var ub=function(e){return e&&e.env.closestScrollable||null};function cb(){}var fb={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},db=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?fb:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?ev.placeholder:null}};var pb=r.memo((function(e){var t=(0,r.useRef)(null),n=Ah((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),o=e.animate,i=e.onTransitionEnd,a=e.onClose,l=e.contextId,s=(0,r.useState)("open"===e.animate),u=s[0],c=s[1];(0,r.useEffect)((function(){return u?"open"!==o?(n(),c(!1),cb):t.current?cb:(t.current=setTimeout((function(){t.current=null,c(!1)})),n):cb}),[o,u,n]);var f=Ah((function(e){"height"===e.propertyName&&(i(),"close"===o&&a())}),[o,a,i]),d=db({isAnimatingOpenOnMount:u,animate:e.animate,placeholder:e.placeholder});return r.createElement(e.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":l,onTransitionEnd:f,ref:e.innerRef})})),hb=r.createContext(null);var mb=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return(0,Cr.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(r.PureComponent),gb=5e3,vb=4500,yb=function(e,t){return t?ev.drop(t.duration):e?ev.snap:ev.fluid},bb=function(e,t){return e?t?Xg.drop:Xg.combining:null};function wb(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),l=Boolean(o),s=l?rv(n,i):nv(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:yb(a,o),transform:s,opacity:bb(i,l),zIndex:l?vb:gb,pointerEvents:"none"}}(e):{transform:nv((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function xb(e){var t=vy("draggable"),n=e.descriptor,o=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,l=e.shouldRespectForcePress,s=e.isEnabled,u=Th((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:s}}),[a,s,l]),c=Ah((function(e){var t=i();return t||qh(!1),function(e,t,n){void 0===n&&(n=im);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=zh(o,r),a=Fh(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)}),[n,i]),f=Th((function(){return{uniqueId:t,descriptor:n,options:u,getDimension:c}}),[n,c,u,t]),d=(0,r.useRef)(f),p=(0,r.useRef)(!0);oy((function(){return o.draggable.register(d.current),function(){return o.draggable.unregister(d.current)}}),[o.draggable]),oy((function(){if(p.current)p.current=!1;else{var e=d.current;d.current=f,o.draggable.update(f,e)}}),[f,o.draggable])}function Eb(e,t,n){wy()}function _b(e){e.preventDefault()}var Sb=function(e,t){return e===t},Ob=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function kb(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Cb={mapped:{type:"SECONDARY",offset:im,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:kb(null)}};var Pb=Qi((function(){var e,t,n,r=(e=Hh((function(e,t){return{x:e,y:t}})),t=Hh((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=Hh((function(e,n,r,o,i,a,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,i,a,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],l=hg(r.impact),s=(c=r.impact).at&&"COMBINE"===c.at.type?c.at.combine.draggableId:null,u=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,l,s,u)}var c;if("DROP_ANIMATING"===r.phase){var f=r.completed;if(f.result.draggableId!==o.draggableId)return null;var d=o.isClone,p=r.dimensions.draggables[o.draggableId],h=f.result,m=h.mode,g=Ob(h),v=function(e){return e.combine?e.combine.draggableId:null}(h),y={duration:r.dropDuration,curve:Yg,moveTo:r.newHomeClientOffset,opacity:v?Xg.drop:null,scale:v?Jg.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:y,draggingOver:g,combineWith:v,mode:m,forceShouldAnimate:null,snapshot:t(m,d,g,v,y)}}}return null}),o=function(){var e=Hh((function(e,t){return{x:e,y:t}})),t=Hh(kb),n=Hh((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(im,e,!0):null},o=function(t,o,i,a){var l=i.displaced.visible[t],s=Boolean(a.inVirtualList&&a.effected[t]),u=Tm(i),c=u&&u.draggableId===t?o:null;if(!l){if(!s)return r(c);if(i.displaced.invisible[t])return null;var f=um(a.displacedBy.point),d=e(f.x,f.y);return n(d,c,!0)}if(s)return r(c);var p=i.displacedBy.point,h=e(p.x,p.y);return n(h,c,l.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||Cb}}),{dropAnimationFinished:qg},null,{context:dy,pure:!0,areStatePropsEqual:Sb})((function(e){var t=(0,r.useRef)(null),n=Ah((function(e){t.current=e}),[]),o=Ah((function(){return t.current}),[]),i=sb(yy),a=i.contextId,l=i.dragHandleUsageInstructionsId,s=i.registry,u=sb(hb),c=u.type,f=u.droppableId,d=Th((function(){return{id:e.draggableId,index:e.index,type:c,droppableId:f}}),[e.draggableId,e.index,c,f]),p=e.children,h=e.draggableId,m=e.isEnabled,g=e.shouldRespectForcePress,v=e.canDragInteractiveElements,y=e.isClone,b=e.mapped,w=e.dropAnimationFinished;Eb(),by(),y||xb(Th((function(){return{descriptor:d,registry:s,getDraggableRef:o,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}}),[d,s,o,v,g,m]));var x=Th((function(){return m?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:_b}:null}),[a,l,h,m]),E=Ah((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),_=Th((function(){var e=wb(b),t="DRAGGING"===b.type&&b.dropping?E:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:x}}),[a,x,h,b,E,n]),S=Th((function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}}),[d.droppableId,d.id,d.index,d.type]);return p(_,b.snapshot,S)}));function Tb(e){return sb(hb).isUsingCloneFor!==e.draggableId||e.isClone?r.createElement(Pb,e):null}function Ab(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),o=Boolean(e.shouldRespectForcePress);return r.createElement(Tb,(0,gr.Z)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:o}))}var jb=function(e,t){return e===t.droppable.type},Ib=function(e,t){return t.draggables[e.draggable.id]};var Rb={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||qh(!1),document.body}},Nb=Qi((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,gr.Z)({},e,{shouldAnimatePlaceholder:!1}),n=Hh((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=Hh((function(r,o,i,a,l,s){var u=l.descriptor.id;if(l.descriptor.droppableId===r){var c=s?{render:s,dragging:n(l.descriptor)}:null,f={isDraggingOver:i,draggingOverWith:i?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:f,useClone:c}}if(!o)return t;if(!a)return e;var d={isDraggingOver:i,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:d,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,l=!o.isDropDisabled,s=o.renderClone;if(n.isDragging){var u=n.critical;if(!jb(a,u))return t;var c=Ib(u,n.dimensions),f=hg(n.impact)===i;return r(i,l,f,f,c,s)}if("DROP_ANIMATING"===n.phase){var d=n.completed;if(!jb(a,d.critical))return t;var p=Ib(d.critical,n.dimensions);return r(i,l,Ob(d.result)===i,hg(d.impact)===i,p,s)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!jb(a,h.critical))return t;var m=hg(h.impact)===i,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),v=h.critical.droppable.id===i;return m?g?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:dy,pure:!0,areStatePropsEqual:Sb})((function(e){var t=(0,r.useContext)(yy);t||qh(!1);var n=t.contextId,i=t.isMovementAllowed,a=(0,r.useRef)(null),l=(0,r.useRef)(null),s=e.children,u=e.droppableId,c=e.type,f=e.mode,d=e.direction,p=e.ignoreContainerClipping,h=e.isDropDisabled,m=e.isCombineEnabled,g=e.snapshot,v=e.useClone,y=e.updateViewportMaxScroll,b=e.getContainerForClone,w=Ah((function(){return a.current}),[]),x=Ah((function(e){a.current=e}),[]),E=(Ah((function(){return l.current}),[]),Ah((function(e){l.current=e}),[]));wy();var _=Ah((function(){i()&&y({maxScroll:_v()})}),[i,y]);!function(e){var t=(0,r.useRef)(null),n=sb(yy),o=vy("droppable"),i=n.registry,a=n.marshal,l=Ey(e),s=Th((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),u=(0,r.useRef)(s),c=Th((function(){return Hh((function(e,n){t.current||qh(!1);var r={x:e,y:n};a.updateDroppableScroll(s.id,r)}))}),[s.id,a]),f=Ah((function(){var e=t.current;return e&&e.env.closestScrollable?nb(e.env.closestScrollable):im}),[]),d=Ah((function(){var e=f();c(e.x,e.y)}),[f,c]),p=Th((function(){return Wh(d)}),[d]),h=Ah((function(){var e=t.current,n=ub(e);e&&n||qh(!1),e.scrollOptions.shouldPublishImmediately?d():p()}),[p,d]),m=Ah((function(e,r){t.current&&qh(!1);var o=l.current,i=o.getDroppableRef();i||qh(!1);var a=rb(i),u={ref:i,descriptor:s,env:a,scrollOptions:r};t.current=u;var c=ob({ref:i,descriptor:s,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),f=a.closestScrollable;return f&&(f.setAttribute(ny.contextId,n.contextId),f.addEventListener("scroll",h,lb(u.scrollOptions))),c}),[n.contextId,s,h,l]),g=Ah((function(){var e=t.current,n=ub(e);return e&&n||qh(!1),nb(n)}),[]),v=Ah((function(){var e=t.current;e||qh(!1);var n=ub(e);t.current=null,n&&(p.cancel(),n.removeAttribute(ny.contextId),n.removeEventListener("scroll",h,lb(e.scrollOptions)))}),[h,p]),y=Ah((function(e){var n=t.current;n||qh(!1);var r=ub(n);r||qh(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=Th((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:v,scroll:y}}),[v,m,g,y]),w=Th((function(){return{uniqueId:o,descriptor:s,callbacks:b}}),[b,s,o]);oy((function(){return u.current=w.descriptor,i.droppable.register(w),function(){t.current&&v(),i.droppable.unregister(w)}}),[b,s,v,w,a,i.droppable]),oy((function(){t.current&&a.updateDroppableIsEnabled(u.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),oy((function(){t.current&&a.updateDroppableIsCombineEnabled(u.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:u,type:c,mode:f,direction:d,isDropDisabled:h,isCombineEnabled:m,ignoreContainerClipping:p,getDroppableRef:w});var S=r.createElement(mb,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,o=e.data,i=e.animate;return r.createElement(pb,{placeholder:o,onClose:t,innerRef:E,animate:i,contextId:n,onTransitionEnd:_})})),O=Th((function(){return{innerRef:x,placeholder:S,droppableProps:{"data-rbd-droppable-id":u,"data-rbd-droppable-context-id":n}}}),[n,u,S,x]),k=v?v.dragging.draggableId:null,C=Th((function(){return{droppableId:u,type:c,isUsingCloneFor:k}}),[u,k,c]);return r.createElement(hb.Provider,{value:C},s(O,g),function(){if(!v)return null;var e=v.dragging,t=v.render,n=r.createElement(Tb,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return o.createPortal(n,b())}())}));function Db(e){var t="; ".concat(document.cookie).split("; ".concat(e,"="));return 2===t.length&&t.pop().split(";").shift()}function Mb(e,t){document.cookie=e+"="+t}function Lb(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:window.store.dispatch,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:window.store.getState();e?(t&&n&&(console.log("Replace current group"),qd(e.id,t,n,i,a)),n&&!t&&(console.log("Add Buttons into current group"),n.map((function(t,n){if(0===Object.keys(t).length)return!1;Vd(t,e.id,r||e.children.length+n+1,i,o)})))):t&&!e?(console.log("Should create a new group"),Kd(t,n,r,i)):!n||t||e||(console.log("Should create a new group with imported button"),Kd(t,n,r,i))}function Fb(){return(Fb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function zb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zb(Object(n),!0).forEach((function(t){Zb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ub(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Hb(e){var t=e.disabled,n=void 0!==t&&t,o=e.onClick,i=e.iconProps,a=e.icon,l=void 0===a?"fas fa-undo":a,s=Ub(e,["disabled","onClick","iconProps","icon"]);return r.createElement($r,Fb({onClick:function(){return o()},disabled:n,size:"small",style:Bb({fontSize:"14px",marginLeft:"5px",height:"30px",width:"30px",alignSelf:"center"},s.style),color:"primary"},s),r.createElement(Il,Fb({fontSize:"inherit",className:l},i)))}function Wb(e){return(Wb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $b(e,t){return($b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xb(e);if(t){var o=Xb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qb(this,n)}}function qb(e,t){return!t||"object"!==Wb(t)&&"function"!=typeof t?Yb(e):t}function Yb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xb(e){return(Xb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Nb.defaultProps=Rb;var Qb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$b(e,t)}(a,e);var t,n,o,i=Kb(a);function a(){var e;Gb(this,a);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Jb(Yb(e=i.call.apply(i,[this].concat(n))),"state",{drag:!1}),Jb(Yb(e),"dropRef",r.createRef()),Jb(Yb(e),"handleDrag",(function(e){e.preventDefault(),e.stopPropagation()})),Jb(Yb(e),"handleDragIn",(function(t){t.preventDefault(),t.stopPropagation(),e.dragCounter++,t.dataTransfer.items&&t.dataTransfer.items.length>0&&e.setState({drag:!0})})),Jb(Yb(e),"handleDragOut",(function(t){t.preventDefault(),t.stopPropagation(),e.dragCounter--,0===e.dragCounter&&e.setState({drag:!1})})),Jb(Yb(e),"handleDrop",(function(t){t.preventDefault(),t.stopPropagation(),e.setState({drag:!1}),t.dataTransfer.files&&t.dataTransfer.files.length>0&&(e.props.handleDrop(t.dataTransfer.files),t.dataTransfer.clearData(),e.dragCounter=0)})),e}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.dropRef.current;e.addEventListener("dragenter",this.handleDragIn),e.addEventListener("dragleave",this.handleDragOut),e.addEventListener("dragover",this.handleDrag),e.addEventListener("drop",this.handleDrop)}},{key:"componentWillUnmount",value:function(){var e=this.dropRef.current;e.removeEventListener("dragenter",this.handleDragIn),e.removeEventListener("dragleave",this.handleDragOut),e.removeEventListener("dragover",this.handleDrag),e.removeEventListener("drop",this.handleDrop)}},{key:"render",value:function(){var e=this.props.classes;return r.createElement("div",{style:{display:"inline-block",position:"relative"},ref:this.dropRef},this.state.drag&&r.createElement("div",{className:e.border},r.createElement("span",{className:e.text},at("import_export.import.drag_drop"))),this.props.children)}}])&&Vb(t.prototype,n),o&&Vb(t,o),a}(r.Component),ew=(0,wr.Z)((function(e){return{border:{border:"dashed ".concat(e.palette.primary.main," 3px"),backgroundColor:"rgba(255,255,255,.8)",position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},text:{fontSize:"35px",color:e.palette.primary.main}}}))(Qb),tw=n(50361),nw=n.n(tw);function rw(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ow(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return iw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iw(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aw(e){var t=e.isGroup,n=void 0===t||t,o=e.currentGroup,i=void 0===o?null:o,a=e.label,l=void 0===a?"Import Group":a,s=e.index,u=e.kbLink,c=void 0===u?null:u,f=e.inDropdown,d=e.onClose,p=ow((0,r.useState)(!1),2),h=p[0],m=p[1],g=ow((0,r.useState)(!1),2),v=g[0],y=g[1],b=ow((0,r.useState)(!1),2),w=b[0],x=b[1],E=ow((0,r.useState)(!1),2),_=E[0],S=E[1],O=(0,r.useRef)(null),k=function(e){var t=e[0],r=new FileReader;r.addEventListener("load",function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){rw(i,r,o,a,l,"next",e)}function l(e){rw(i,r,o,a,l,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(t){var r,o,i,a,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.target.result,e.prev=1,(o=JSON.parse(r)).export_type&&("group"!==o.export_type||o.buttons)){e.next=5;break}throw new Error(at("import_export.import.warning.invalid"));case 5:if(!n){e.next=28;break}if("group"!==o.export_type){e.next=19;break}if(0!==o.buttons.length){e.next=10;break}return alert(at("import_export.import.warning.no_buttons")),e.abrupt("return");case 10:if(i=o,o.export_migration_version&&o.export_migration_version===buttonizer_admin.migration_version){e.next=15;break}return e.next=14,lw(o);case 14:i=e.sent;case 15:S(mh()(i.data,j)),x(i.buttons.map((function(e){return mh()(e,j)}))),e.next=28;break;case 19:if("button"!==o.export_type){e.next=28;break}if(a=o,o.export_migration_version&&o.export_migration_version===buttonizer_admin.migration_version){e.next=26;break}return e.next=24,lw({data:o});case 24:l=e.sent,a=l.data;case 26:S(!1),x([mh()(a,j)]);case 28:y(!0),e.next=35;break;case 31:e.prev=31,e.t0=e.catch(1),console.error(e.t0),alert(at("import_export.import.warning.malformed"));case 35:case"end":return e.stop()}}),e,null,[[1,31]])})));return function(t){return e.apply(this,arguments)}}()),r.readAsText(t)};return r.createElement(r.Fragment,null,f?r.createElement(si,{onClick:function(){return m(!0)},"data-testid":"import-into-group"},r.createElement(ci,null,r.createElement(Il,{className:"fas fa-file-import"})),r.createElement(pi,{variant:"inherit"},l)):r.createElement(Hr,{style:{fontSize:"14px"},onClick:function(){return m(!0)},color:"primary",variant:"text",size:"small",startIcon:r.createElement(Il,{className:"fas fa-file-import"}),"data-testid":"import-new-group"},l),r.createElement(ma,{open:h,onClose:function(){return m(!1)},maxWidth:!1,"aria-labelledby":"import-button-dialog-title","aria-describedby":"import-button-dialog-description","data-testid":"dialog:import-dialog"},r.createElement(ew,{handleDrop:function(e){0!==e.length&&k(e)}},r.createElement(va,{id:"import-button-dialog-title"},"BETA: ",at("import_export.import.title")),r.createElement(ba,null,!v&&r.createElement(r.Fragment,null,r.createElement(xa,{id:"import-button-dialog-description",component:"div"},at(i?"import_export.import.into_group.text":"import_export.import.new_group.text")," ",at("import_export.import.select_please")),r.createElement(Hr,{variant:"contained",fullWidth:!0,startIcon:r.createElement(Il,{className:"fas fa-file-import",style:{marginRight:10}}),style:{padding:"10px 20px",marginBottom:15},onClick:function(){return O.current.click()}},at("import_export.import.select_click")),r.createElement("input",{type:"file",id:"input","data-testid":"import-input",ref:O,accept:"application/JSON",onChange:function(e){0!==e.target.files.length&&k(e.target.files)},style:{overflow:"hidden",width:0,height:0}})),v&&r.createElement(r.Fragment,null,r.createElement(xa,{component:"div"},i&&n&&_?r.createElement("span",{dangerouslySetInnerHTML:{__html:at("import_export.import.warning.replace")}}):!i&&n&&!_&&w?"Create a new group including this button:":at("import_export.import.warning.preview")),_&&r.createElement(xa,{"data-testid":"import-found-group",component:"div",key:_.id},r.createElement("i",null,at("common.group")," "),":"," ",sh()(_,"name","Unnamed"),"."," ",r.createElement(fh,{properties:_,type:"Group"}),r.createElement(Hb,{onClick:function(){return S(!1)},"data-testid":"import-delete",size:"medium",icon:"fas fa-trash"})),w&&w.map((function(e,t){return r.createElement(xa,{"data-testid":"import-found-buttons",component:"div",key:t},r.createElement("i",null,at("common.button")," ",t+1," "),": ",sh()(e,"name","Unnamed"),".",r.createElement(fh,{properties:e}),r.createElement(Hb,{disabled:1===w.length,onClick:function(){var e=nw()(w);e.splice(t,1),x(e)},"data-testid":"import-delete",size:"medium",icon:"fas fa-trash"}))})))),r.createElement("div",{style:c&&{display:"flex",justifyContent:"space-between",alignItems:"center ",paddingLeft:"24px"}},r.createElement(Fp,{articleId:c,tiny:!0,setting:at("import_export.import_export")}),r.createElement(_a,null,r.createElement(Hr,{onClick:function(){return m(!1)},color:"primary"},at("modal.cancel")),v&&r.createElement(Hr,{onClick:function(){return y(null)},color:"primary"},at("import_export.import.reupload")),r.createElement(Hr,{onClick:function(){n&&Lb(i,_,w,s),y(null),x(!1),S(!1),m(!1),d&&d()},color:"primary",disabled:!v||!_&&!w,"data-testid":"import-commence"},at("import_export.import.title")))))))}function lw(e){return new Promise((function(t,n){ft("/import_migrate",{method:"POST",data:{data:e}}).then((function(e){var n=e.data;n.success&&t(n.results)})).catch((function(e){n(e),console.error(e),console.error("Buttonizer: OH NO! ERROR: '"+e.statusText+"'. That's all we know... Please check your PHP logs or contact Buttonizer support if you need help."),console.error("Buttonizer: Visit our community on https://community.buttonizer.pro/")}))}))}var sw=r.forwardRef((function(e,t){var n=e.autoFocus,o=e.checked,i=e.checkedIcon,a=e.classes,l=e.className,s=e.defaultChecked,u=e.disabled,c=e.icon,f=e.id,d=e.inputProps,p=e.inputRef,h=e.name,m=e.onBlur,g=e.onChange,v=e.onFocus,y=e.readOnly,b=e.required,w=e.tabIndex,x=e.type,E=e.value,_=(0,mr.Z)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),S=(0,kl.Z)({controlled:o,default:Boolean(s),name:"SwitchBase",state:"checked"}),O=(0,_o.Z)(S,2),k=O[0],C=O[1],P=is(),T=u;P&&void 0===T&&(T=P.disabled);var A="checkbox"===x||"radio"===x;return r.createElement($r,(0,gr.Z)({component:"span",className:(0,br.Z)(a.root,l,k&&a.checked,T&&a.disabled),disabled:T,tabIndex:null,role:void 0,onFocus:function(e){v&&v(e),P&&P.onFocus&&P.onFocus(e)},onBlur:function(e){m&&m(e),P&&P.onBlur&&P.onBlur(e)},ref:t},_),r.createElement("input",(0,gr.Z)({autoFocus:n,checked:o,defaultChecked:s,className:a.input,disabled:T,id:A&&f,name:h,onChange:function(e){var t=e.target.checked;C(t),g&&g(e,t)},readOnly:y,ref:p,required:b,tabIndex:w,type:x,value:E},d)),k?i:c)})),uw=(0,wr.Z)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(sw),cw=(0,vs.Z)(r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),fw=(0,vs.Z)(r.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),dw=(0,vs.Z)(r.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),pw=r.createElement(fw,null),hw=r.createElement(cw,null),mw=r.createElement(dw,null),gw=r.forwardRef((function(e,t){var n=e.checkedIcon,o=void 0===n?pw:n,i=e.classes,a=e.color,l=void 0===a?"secondary":a,s=e.icon,u=void 0===s?hw:s,c=e.indeterminate,f=void 0!==c&&c,d=e.indeterminateIcon,p=void 0===d?mw:d,h=e.inputProps,m=e.size,g=void 0===m?"medium":m,v=(0,mr.Z)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),y=f?p:u,b=f?p:o;return r.createElement(uw,(0,gr.Z)({type:"checkbox",classes:{root:(0,br.Z)(i.root,i["color".concat((0,Zr.Z)(l))],f&&i.indeterminate),checked:i.checked,disabled:i.disabled},color:l,inputProps:(0,gr.Z)({"data-indeterminate":f},h),icon:r.cloneElement(y,{fontSize:void 0===y.props.fontSize&&"small"===g?g:y.props.fontSize}),checkedIcon:r.cloneElement(b,{fontSize:void 0===b.props.fontSize&&"small"===g?g:b.props.fontSize}),ref:t},v))})),vw=(0,wr.Z)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,xr.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,xr.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(gw),yw=(0,vs.Z)(r.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function bw(e){return"Backspace"===e.key||"Delete"===e.key}var ww=r.forwardRef((function(e,t){var n=e.avatar,o=e.classes,i=e.className,a=e.clickable,l=e.color,s=void 0===l?"default":l,u=e.component,c=e.deleteIcon,f=e.disabled,d=void 0!==f&&f,p=e.icon,h=e.label,m=e.onClick,g=e.onDelete,v=e.onKeyDown,y=e.onKeyUp,b=e.size,w=void 0===b?"medium":b,x=e.variant,E=void 0===x?"default":x,_=(0,mr.Z)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),S=r.useRef(null),O=(0,Er.Z)(S,t),k=function(e){e.stopPropagation(),g&&g(e)},C=!(!1===a||!m)||a,P="small"===w,T=u||(C?Br:"div"),A=T===Br?{component:"div"}:{},j=null;if(g){var I=(0,br.Z)("default"!==s&&("default"===E?o["deleteIconColor".concat((0,Zr.Z)(s))]:o["deleteIconOutlinedColor".concat((0,Zr.Z)(s))]),P&&o.deleteIconSmall);j=c&&r.isValidElement(c)?r.cloneElement(c,{className:(0,br.Z)(c.props.className,o.deleteIcon,I),onClick:k}):r.createElement(yw,{className:(0,br.Z)(o.deleteIcon,I),onClick:k})}var R=null;n&&r.isValidElement(n)&&(R=r.cloneElement(n,{className:(0,br.Z)(o.avatar,n.props.className,P&&o.avatarSmall,"default"!==s&&o["avatarColor".concat((0,Zr.Z)(s))])}));var N=null;return p&&r.isValidElement(p)&&(N=r.cloneElement(p,{className:(0,br.Z)(o.icon,p.props.className,P&&o.iconSmall,"default"!==s&&o["iconColor".concat((0,Zr.Z)(s))])})),r.createElement(T,(0,gr.Z)({role:C||g?"button":void 0,className:(0,br.Z)(o.root,i,"default"!==s&&[o["color".concat((0,Zr.Z)(s))],C&&o["clickableColor".concat((0,Zr.Z)(s))],g&&o["deletableColor".concat((0,Zr.Z)(s))]],"default"!==E&&[o.outlined,{primary:o.outlinedPrimary,secondary:o.outlinedSecondary}[s]],d&&o.disabled,P&&o.sizeSmall,C&&o.clickable,g&&o.deletable),"aria-disabled":!!d||void 0,tabIndex:C||g?0:void 0,onClick:m,onKeyDown:function(e){e.currentTarget===e.target&&bw(e)&&e.preventDefault(),v&&v(e)},onKeyUp:function(e){e.currentTarget===e.target&&(g&&bw(e)?g(e):"Escape"===e.key&&S.current&&S.current.blur()),y&&y(e)},ref:O},A,_),R||N,r.createElement("span",{className:(0,br.Z)(o.label,P&&o.labelSmall)},h),j)})),xw=(0,wr.Z)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=(0,xr.U1)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:(0,xr._4)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:(0,xr._4)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:(0,xr._4)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:(0,xr._4)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:(0,xr._4)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:(0,xr._4)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,xr.U1)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,xr.U1)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,xr.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,xr.U1)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:(0,xr.U1)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:(0,xr.U1)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:(0,xr.U1)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:(0,xr.U1)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(ww);function Ew(){return r.createElement("span",{className:"buttonizer-premium","data-testid":"buttonizer-premium-tag"})}function _w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Sw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sw(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ow(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ow(Object(n),!0).forEach((function(t){Cw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ow(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pw(e){var t=e.index,n=e.currentGroup,o=e.onClose,i=e.returnedTemplates,a=e.filterButtons,l=e.filterFrameDesign,s=e.filterPopularAction,u=_w((0,r.useState)([]),2),c=u[0],f=u[1],d=_w((0,r.useState)(!0),2),p=d[0],h=d[1],m=_w((0,r.useState)([]),2),g=m[0],v=m[1],y=function(e,t,n,r){var o=e.filter((function(e){return e.export_type===t&&(!("group"===t&&0!==n.length&&!n.includes(sh()(e,"group_type","default")))&&!("button"===t&&0!==r.length&&!r.includes(sh()(e,"type","url"))))})),i={name:at("utils.new_button"),show_mobile:!0,show_desktop:!0,label:at("templates.first_button")};return"group"===t?o.unshift({data:{name:at("utils.new_group"),show_mobile:!0,show_desktop:!0},buttons:[i],export_type:"group"}):"button"===t&&o.unshift(kw(kw({},i),{},{export_type:"button"})),o}(c,a,l,s),b=function(e){var t=g.indexOf(e),n=[];-1===t?n=n.concat(g,e):0===t?n=n.concat(g.slice(1)):t===g.length-1?n=n.concat(g.slice(0,-1)):t>0&&(n=n.concat(g.slice(0,t),g.slice(t+1))),v(n)},w=function(){o(),v([])},x=function(e){return!!(app.hasPremium()&&app.isPremiumCode()||!e.is_pro_wp_only&&!e.is_pro||e.is_pro_wp_only&&buttonizer_admin.is_stand_alone)||(e.is_pro_wp_only&&!buttonizer_admin.is_stand_alone||e.is_pro)&&app.hasPremium()&&app.isPremiumCode()};return(0,r.useEffect)((function(){z().then((function(e){f(e),h(!1)})).catch((function(e){console.error(e)}))}),[]),(0,r.useEffect)((function(){v([])}),[a,l,s]),r.createElement(r.Fragment,null,r.createElement(ba,null,!p&&i&&r.createElement("p",{className:"search-results"},r.createElement(Lp,{i18nKey:"utils.templates.found",values:{resultCount:y.length},components:{bold:r.createElement("strong",null)}})),p&&r.createElement("div",{className:"loading"},r.createElement("div",{style:{alignSelf:"center"}},r.createElement("svg",{width:"60",height:"60",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"#2f788a"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},r.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),r.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},r.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))))),r.createElement("p",null,at("loading.loading")))),!p&&r.createElement("div",{className:"template"},y.sort((function(e,t){return t.is_new-e.is_new})).map((function(e,o){return r.createElement("div",{key:o,className:"container","data-testid":"templates:template-option"},"button"===a&&r.createElement(vw,{checked:g.includes(o),onChange:function(){b(o)},className:(0,br.Z)("checkbox",0===g.length&&"hidden"),"data-testid":"templates:template-option-checkbox",disabled:!x(e)}),r.createElement("div",{className:"type",onClick:function(){if(x(e)){if(g.length>0)return b(o);!function(e,t,n,r){var o,i;try{var a="string"==typeof e?JSON.parse(e):e;if(!a.export_type||"group"===a.export_type&&!a.buttons)throw new Error(at("import_export.import.warning.invalid"));if("group"===a.export_type){if(0===a.buttons.length)return void alert(at("import_export.import.warning.no_buttons"));o=mh()(a.data,j),i=a.buttons.map((function(e){return mh()(e,j)}))}else"button"===a.export_type&&(o=!1,i=[mh()(a,j)]);Lb(n,o,i,t,r)}catch(e){alert(at("import_export.import.warning.malformed"))}}(e,t,n,!0),w()}}},0===o?r.createElement("div",{className:"default-option"},r.createElement("img",{src:buttonizer_admin.templatesImgDir+"/default.png",alt:"Template",draggable:!1}),r.createElement("span",null,at("templates.start_scratch"))):r.createElement("img",{src:e.template_image?buttonizer_admin.templatesImgDir+"/".concat(e.template_image):buttonizer_admin.assets+"/images/buttonizer-logo.png",alt:"Template",draggable:!1}),o>0&&r.createElement(xw,{className:"category",size:"small",key:o,label:"button"===a?e.name:e.group_type.charAt(0).toUpperCase()+e.group_type.slice(1).replace(/[^\w\s]/gi," ")}),e.is_new&&r.createElement(xw,{className:"new",size:"small",label:"New"}),x(e)?r.createElement("div",{className:"select"},g.includes(o)?r.createElement(r.Fragment,null,r.createElement("i",{className:"fa fa-check-circle","aria-hidden":"true"}),at("templates.selected")):r.createElement(r.Fragment,null,r.createElement("i",{className:"fa fa-plus-circle","aria-hidden":"true"}),at("templates.select"))):r.createElement(Ew,null)))})))),r.createElement(_a,{style:{marginTop:"20px",justifyContent:"space-between"}},r.createElement(aw,{index:t,style:{fontSize:13},currentGroup:n,label:at("button"===a?"import_export.import.new_group.button":"import_export.import.new_group.group"),kbLink:653,onClose:w}),g.length>0&&r.createElement(Hr,{className:(0,br.Z)("select-all",g.length>0&&"visible"),variant:"contained",onClick:function(){return e=g.map((function(e){return y[e]})),"button"===a&&Lb(n,null,e,t,1===e.length),void w();var e},color:"primary",size:"small","data-testid":"templates:insert-selected"},at("templates.insert"))))}function Tw(e){return function(e){if(Array.isArray(e))return Aw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Aw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Aw(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Aw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Iw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jw(Object(n),!0).forEach((function(t){Rw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nw=[{value:"url",label:"settings.button_action.actions.url.name"},{value:"page",label:"settings.button_action.actions.page.name",standalone:!1},{value:"phone",label:"settings.button_action.actions.phone_number.name"},{value:"mail",label:"settings.button_action.actions.mail.name"},{value:"whatsapp",label:"settings.button_action.actions.whatsapp_chat"},{value:"socialsharing",label:"settings.button_action.actions.social_sharing.social_sharing"}].filter((function(e){return!window.buttonizer_admin.is_stand_alone||void 0===e.standalone})).map((function(e){return Iw(Iw({},e),{},{group:"popular"})})),Dw=[{value:"sms",label:"settings.button_action.actions.chat.sms"},{value:"messenger_chat",label:"settings.button_action.actions.chat.messenger_chat"},{value:"messenger",label:"settings.button_action.actions.chat.messenger_link"},{value:"twitter_dm",label:"settings.button_action.actions.chat.twitter_dm"},{value:"skype",label:"settings.button_action.actions.chat.skype"},{value:"line",label:"settings.button_action.actions.chat.line"},{value:"telegram",label:"settings.button_action.actions.chat.telegram"},{value:"viber",label:"settings.button_action.actions.chat.viber"},{value:"signal_group",label:"settings.button_action.actions.chat.signal_group"}].map((function(e){return Iw(Iw({},e),{},{group:"chat"})})),Mw=[{value:"facebook",label:"settings.button_action.actions.social_media.facebook"},{value:"twitter",label:"settings.button_action.actions.social_media.twitter"},{value:"instagram",label:"settings.button_action.actions.social_media.instagram"},{value:"snapchat",label:"settings.button_action.actions.social_media.snapchat"},{value:"linkedin",label:"settings.button_action.actions.social_media.linkedin"},{value:"vk",label:"settings.button_action.actions.social_media.vk"},{value:"waze",label:"settings.button_action.actions.social_media.waze"},{value:"tiktok",label:"settings.button_action.actions.social_media.tiktok"}].map((function(e){return Iw(Iw({},e),{},{group:"social_media"})})),Lw=[{value:"poptin",label:"Poptin"},{value:"elementor_popup",label:"Elementor Popup"},{value:"popup_maker",label:"Popup Maker"},{value:"popups",label:"Popups - WordPress Popup"},{value:"wppopups",label:"WP Popups - WordPress Popup builder"}].map((function(e){return Iw(Iw({},e),{},{group:"popup"})})),Fw=[{value:"javascript_pro",label:"settings.button_action.actions.javascript.name",isPro:!0},{value:"clipboard",label:"settings.button_action.actions.clipboard"},{value:"download",label:"settings.button_action.actions.download.name"},{value:"print",label:"settings.button_action.actions.print_page"},{value:"backtotop",label:"settings.button_action.actions.back_to_top"},{value:"gotobottom",label:"settings.button_action.actions.go_to_bottom"},{value:"gobackpage",label:"settings.button_action.actions.go_back_one_page"}].map((function(e){return Iw(Iw({},e),{},{group:"actions"})})),zw=[].concat(Tw(Nw),Tw(Dw),Tw(Mw),Tw(Lw),Tw(Fw)),Bw="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Zw=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Bw&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var Uw=Bw&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Zw))}};function Hw(e){return e&&"[object Function]"==={}.toString.call(e)}function Ww(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Gw(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Vw(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ww(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:Vw(Gw(e))}function $w(e){return e&&e.referenceNode?e.referenceNode:e}var Kw=Bw&&!(!window.MSInputMethodContext||!document.documentMode),qw=Bw&&/MSIE 10/.test(navigator.userAgent);function Yw(e){return 11===e?Kw:10===e?qw:Kw||qw}function Xw(e){if(!e)return document.documentElement;for(var t=Yw(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Ww(n,"position")?Xw(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Jw(e){return null!==e.parentNode?Jw(e.parentNode):e}function Qw(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,l,s=i.commonAncestorContainer;if(e!==s&&t!==s||r.contains(o))return"BODY"===(l=(a=s).nodeName)||"HTML"!==l&&Xw(a.firstElementChild)!==a?Xw(s):s;var u=Jw(e);return u.host?Qw(u.host,t):Qw(e,Jw(t).host)}function ex(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function tx(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=ex(t,"top"),o=ex(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function nx(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function rx(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Yw(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function ox(e){var t=e.body,n=e.documentElement,r=Yw(10)&&getComputedStyle(n);return{height:rx("Height",t,n,r),width:rx("Width",t,n,r)}}var ix=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ax=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),lx=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},sx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function ux(e){return sx({},e,{right:e.left+e.width,bottom:e.top+e.height})}function cx(e){var t={};try{if(Yw(10)){t=e.getBoundingClientRect();var n=ex(e,"top"),r=ex(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?ox(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,l=i.height||e.clientHeight||o.height,s=e.offsetWidth-a,u=e.offsetHeight-l;if(s||u){var c=Ww(e);s-=nx(c,"x"),u-=nx(c,"y"),o.width-=s,o.height-=u}return ux(o)}function fx(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Yw(10),o="HTML"===t.nodeName,i=cx(e),a=cx(t),l=Vw(e),s=Ww(t),u=parseFloat(s.borderTopWidth),c=parseFloat(s.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=ux({top:i.top-a.top-u,left:i.left-a.left-c,width:i.width,height:i.height});if(f.marginTop=0,f.marginLeft=0,!r&&o){var d=parseFloat(s.marginTop),p=parseFloat(s.marginLeft);f.top-=u-d,f.bottom-=u-d,f.left-=c-p,f.right-=c-p,f.marginTop=d,f.marginLeft=p}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(f=tx(f,t)),f}function dx(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=fx(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:ex(n),l=t?0:ex(n,"left"),s={top:a-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:o,height:i};return ux(s)}function px(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Ww(e,"position"))return!0;var n=Gw(e);return!!n&&px(n)}function hx(e){if(!e||!e.parentElement||Yw())return document.documentElement;for(var t=e.parentElement;t&&"none"===Ww(t,"transform");)t=t.parentElement;return t||document.documentElement}function mx(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?hx(e):Qw(e,$w(t));if("viewport"===r)i=dx(a,o);else{var l=void 0;"scrollParent"===r?"BODY"===(l=Vw(Gw(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===r?e.ownerDocument.documentElement:r;var s=fx(l,a,o);if("HTML"!==l.nodeName||px(a))i=s;else{var u=ox(e.ownerDocument),c=u.height,f=u.width;i.top+=s.top-s.marginTop,i.bottom=c+s.top,i.left+=s.left-s.marginLeft,i.right=f+s.left}}var d="number"==typeof(n=n||0);return i.left+=d?n:n.left||0,i.top+=d?n:n.top||0,i.right-=d?n:n.right||0,i.bottom-=d?n:n.bottom||0,i}function gx(e){return e.width*e.height}function vx(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=mx(n,r,i,o),l={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},s=Object.keys(l).map((function(e){return sx({key:e},l[e],{area:gx(l[e])})})).sort((function(e,t){return t.area-e.area})),u=s.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=u.length>0?u[0].key:s[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function yx(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?hx(t):Qw(t,$w(n));return fx(n,o,r)}function bx(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function wx(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function xx(e,t,n){n=n.split("-")[0];var r=bx(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",l=i?"left":"top",s=i?"height":"width",u=i?"width":"height";return o[a]=t[a]+t[s]/2-r[s]/2,o[l]=n===l?t[l]-r[u]:t[wx(l)],o}function Ex(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function _x(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=Ex(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Hw(n)&&(t.offsets.popper=ux(t.offsets.popper),t.offsets.reference=ux(t.offsets.reference),t=n(t,e))})),t}function Sx(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=yx(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=vx(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=xx(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=_x(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Ox(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function kx(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function Cx(){return this.state.isDestroyed=!0,Ox(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[kx("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Px(e){var t=e.ownerDocument;return t?t.defaultView:window}function Tx(e,t,n,r){n.updateBound=r,Px(e).addEventListener("resize",n.updateBound,{passive:!0});var o=Vw(e);return function e(t,n,r,o){var i="BODY"===t.nodeName,a=i?t.ownerDocument.defaultView:t;a.addEventListener(n,r,{passive:!0}),i||e(Vw(a.parentNode),n,r,o),o.push(a)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Ax(){this.state.eventsEnabled||(this.state=Tx(this.reference,this.options,this.state,this.scheduleUpdate))}function jx(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return Px(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function Ix(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Rx(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Ix(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Nx=Bw&&/Firefox/i.test(navigator.userAgent);function Dx(e,t,n){var r=Ex(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var Mx=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Lx=Mx.slice(3);function Fx(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Lx.indexOf(e),r=Lx.slice(n+1).concat(Lx.slice(0,n));return t?r.reverse():r}var zx="flip",Bx="clockwise",Zx="counterclockwise";function Ux(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),l=a.indexOf(Ex(a,(function(e){return-1!==e.search(/,|\s/)})));a[l]&&-1===a[l].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,u=-1!==l?[a.slice(0,l).concat([a[l].split(s)[0]]),[a[l].split(s)[1]].concat(a.slice(l+1))]:[a];return(u=u.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var l=void 0;switch(a){case"%p":l=n;break;case"%":case"%r":default:l=r}return ux(l)[t]/100*i}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i}return i}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){Ix(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var Hx={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,l=-1!==["bottom","top"].indexOf(n),s=l?"left":"top",u=l?"width":"height",c={start:lx({},s,i[s]),end:lx({},s,i[s]+i[u]-a[u])};e.offsets.popper=sx({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,l=r.split("-")[0],s=void 0;return s=Ix(+n)?[+n,0]:Ux(n,i,a,l),"left"===l?(i.top+=s[0],i.left-=s[1]):"right"===l?(i.top+=s[0],i.left+=s[1]):"top"===l?(i.left+=s[0],i.top-=s[1]):"bottom"===l&&(i.left+=s[0],i.top+=s[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Xw(e.instance.popper);e.instance.reference===n&&(n=Xw(n));var r=kx("transform"),o=e.instance.popper.style,i=o.top,a=o.left,l=o[r];o.top="",o.left="",o[r]="";var s=mx(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=l,t.boundaries=s;var u=t.priority,c=e.offsets.popper,f={primary:function(e){var n=c[e];return c[e]<s[e]&&!t.escapeWithReference&&(n=Math.max(c[e],s[e])),lx({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>s[e]&&!t.escapeWithReference&&(r=Math.min(c[n],s[e]-("right"===e?c.width:c.height))),lx({},n,r)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=sx({},c,f[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),l=a?"right":"bottom",s=a?"left":"top",u=a?"width":"height";return n[l]<i(r[s])&&(e.offsets.popper[s]=i(r[s])-n[u]),n[s]>i(r[l])&&(e.offsets.popper[s]=i(r[l])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Dx(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,l=i.reference,s=-1!==["left","right"].indexOf(o),u=s?"height":"width",c=s?"Top":"Left",f=c.toLowerCase(),d=s?"left":"top",p=s?"bottom":"right",h=bx(r)[u];l[p]-h<a[f]&&(e.offsets.popper[f]-=a[f]-(l[p]-h)),l[f]+h>a[p]&&(e.offsets.popper[f]+=l[f]+h-a[p]),e.offsets.popper=ux(e.offsets.popper);var m=l[f]+l[u]/2-h/2,g=Ww(e.instance.popper),v=parseFloat(g["margin"+c]),y=parseFloat(g["border"+c+"Width"]),b=m-e.offsets.popper[f]-v-y;return b=Math.max(Math.min(a[u]-h,b),0),e.arrowElement=r,e.offsets.arrow=(lx(n={},f,Math.round(b)),lx(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Ox(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=mx(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=wx(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case zx:a=[r,o];break;case Bx:a=Fx(r);break;case Zx:a=Fx(r,!0);break;default:a=t.behavior}return a.forEach((function(l,s){if(r!==l||a.length===s+1)return e;r=e.placement.split("-")[0],o=wx(r);var u=e.offsets.popper,c=e.offsets.reference,f=Math.floor,d="left"===r&&f(u.right)>f(c.left)||"right"===r&&f(u.left)<f(c.right)||"top"===r&&f(u.bottom)>f(c.top)||"bottom"===r&&f(u.top)<f(c.bottom),p=f(u.left)<f(n.left),h=f(u.right)>f(n.right),m=f(u.top)<f(n.top),g=f(u.bottom)>f(n.bottom),v="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&p||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&g),w=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&p||!y&&"start"===i&&g||!y&&"end"===i&&m),x=b||w;(d||v||x)&&(e.flipped=!0,(d||v)&&(r=a[s+1]),x&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=sx({},e.offsets.popper,xx(e.instance.popper,e.offsets.reference,e.placement)),e=_x(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),l=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(l?o[a?"width":"height"]:0),e.placement=wx(t),e.offsets.popper=ux(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Dx(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Ex(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=Ex(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,l=Xw(e.instance.popper),s=cx(l),u={position:o.position},c=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,l=function(e){return e},s=i(o.width),u=i(r.width),c=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?c||f||s%2==u%2?i:a:l,p=t?i:l;return{left:d(s%2==1&&u%2==1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!Nx),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=kx("transform"),h=void 0,m=void 0;if(m="bottom"===f?"HTML"===l.nodeName?-l.clientHeight+c.bottom:-s.height+c.bottom:c.top,h="right"===d?"HTML"===l.nodeName?-l.clientWidth+c.right:-s.width+c.right:c.left,a&&p)u[p]="translate3d("+h+"px, "+m+"px, 0)",u[f]=0,u[d]=0,u.willChange="transform";else{var g="bottom"===f?-1:1,v="right"===d?-1:1;u[f]=m*g,u[d]=h*v,u.willChange=f+", "+d}var y={"x-placement":e.placement};return e.attributes=sx({},y,e.attributes),e.styles=sx({},u,e.styles),e.arrowStyles=sx({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Rx(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Rx(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=yx(o,t,e,n.positionFixed),a=vx(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Rx(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Wx=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ix(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Uw(this.update.bind(this)),this.options=sx({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(sx({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=sx({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return sx({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Hw(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return ax(e,[{key:"update",value:function(){return Sx.call(this)}},{key:"destroy",value:function(){return Cx.call(this)}},{key:"enableEventListeners",value:function(){return Ax.call(this)}},{key:"disableEventListeners",value:function(){return jx.call(this)}}]),e}();Wx.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,Wx.placements=Mx,Wx.Defaults=Hx;var Gx=Wx;function Vx(e){return"function"==typeof e?e():e}var $x="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,Kx={},qx=r.forwardRef((function(e,t){var n=e.anchorEl,o=e.children,i=e.container,a=e.disablePortal,l=void 0!==a&&a,s=e.keepMounted,u=void 0!==s&&s,c=e.modifiers,f=e.open,d=e.placement,p=void 0===d?"bottom":d,h=e.popperOptions,m=void 0===h?Kx:h,g=e.popperRef,v=e.style,y=e.transition,b=void 0!==y&&y,w=(0,mr.Z)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),x=r.useRef(null),E=(0,Er.Z)(x,t),_=r.useRef(null),S=(0,Er.Z)(_,g),O=r.useRef(S);$x((function(){O.current=S}),[S]),r.useImperativeHandle(g,(function(){return _.current}),[]);var k=r.useState(!0),C=k[0],P=k[1],T=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,(0,oo.Z)()),A=r.useState(T),j=A[0],I=A[1];r.useEffect((function(){_.current&&_.current.update()}));var R=r.useCallback((function(){if(x.current&&n&&f){_.current&&(_.current.destroy(),O.current(null));var e=function(e){I(e.placement)},t=(Vx(n),new Gx(Vx(n),x.current,(0,gr.Z)({placement:T},m,{modifiers:(0,gr.Z)({},l?{}:{preventOverflow:{boundariesElement:"window"}},c,m.modifiers),onCreate:(0,ro.Z)(e,m.onCreate),onUpdate:(0,ro.Z)(e,m.onUpdate)})));O.current(t)}}),[n,l,c,f,T,m]),N=r.useCallback((function(e){(0,ao.Z)(E,e),R()}),[E,R]),D=function(){_.current&&(_.current.destroy(),O.current(null))};if(r.useEffect((function(){return function(){D()}}),[]),r.useEffect((function(){f||b||D()}),[f,b]),!u&&!f&&(!b||C))return null;var M={placement:j};return b&&(M.TransitionProps={in:f,onEnter:function(){P(!1)},onExited:function(){P(!0),D()}}),r.createElement(so,{disablePortal:l,container:i},r.createElement("div",(0,gr.Z)({ref:N,role:"tooltip"},w,{style:(0,gr.Z)({position:"fixed",top:0,left:0,display:f||!u||b?null:"none"},v)}),"function"==typeof o?o(M):o))})),Yx=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,l=e.component,s=void 0===l?"li":l,u=e.disableGutters,c=void 0!==u&&u,f=e.disableSticky,d=void 0!==f&&f,p=e.inset,h=void 0!==p&&p,m=(0,mr.Z)(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return r.createElement(s,(0,gr.Z)({className:(0,br.Z)(n.root,o,"default"!==a&&n["color".concat((0,Zr.Z)(a))],h&&n.inset,!d&&n.sticky,!c&&n.gutters),ref:t},m))})),Xx=(0,wr.Z)((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(Yx),Jx=(0,vs.Z)(r.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Qx=(0,vs.Z)(r.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),eE=n(95001);function tE(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function nE(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,o=void 0===r||r,i=e.limit,a=e.matchFrom,l=void 0===a?"any":a,s=e.stringify,u=e.trim,c=void 0!==u&&u;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,u=c?r.trim():r;o&&(u=u.toLowerCase()),n&&(u=tE(u));var f=e.filter((function(e){var t=(s||a)(e);return o&&(t=t.toLowerCase()),n&&(t=tE(t)),"start"===l?0===t.indexOf(u):t.indexOf(u)>-1}));return"number"==typeof i?f.slice(0,i):f}}function rE(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var oE=nE();function iE(e){var t=e.autoComplete,n=void 0!==t&&t,o=e.autoHighlight,i=void 0!==o&&o,a=e.autoSelect,l=void 0!==a&&a,s=e.blurOnSelect,u=void 0!==s&&s,c=e.clearOnBlur,f=void 0===c?!e.freeSolo:c,d=e.clearOnEscape,p=void 0!==d&&d,h=e.componentName,m=void 0===h?"useAutocomplete":h,g=e.debug,v=void 0!==g&&g,y=e.defaultValue,b=void 0===y?e.multiple?[]:null:y,w=e.disableClearable,x=void 0!==w&&w,E=e.disableCloseOnSelect,_=void 0!==E&&E,S=e.disabledItemsFocusable,O=void 0!==S&&S,k=e.disableListWrap,C=void 0!==k&&k,P=e.filterOptions,T=void 0===P?oE:P,A=e.filterSelectedOptions,j=void 0!==A&&A,I=e.freeSolo,R=void 0!==I&&I,N=e.getOptionDisabled,D=e.getOptionLabel,M=void 0===D?function(e){return e}:D,L=e.getOptionSelected,F=void 0===L?function(e,t){return e===t}:L,z=e.groupBy,B=e.handleHomeEndKeys,Z=void 0===B?!e.freeSolo:B,U=e.id,H=e.includeInputInList,W=void 0!==H&&H,G=e.inputValue,V=e.multiple,$=void 0!==V&&V,K=e.onChange,q=e.onClose,Y=e.onHighlightChange,X=e.onInputChange,J=e.onOpen,Q=e.open,ee=e.openOnFocus,te=void 0!==ee&&ee,ne=e.options,re=e.selectOnFocus,oe=void 0===re?!e.freeSolo:re,ie=e.value,ae=(0,eE.Z)(U),le=M;var se=r.useRef(!1),ue=r.useRef(!0),ce=r.useRef(null),fe=r.useRef(null),de=r.useState(null),pe=de[0],he=de[1],me=r.useState(-1),ge=me[0],ve=me[1],ye=i?0:-1,be=r.useRef(ye),we=(0,kl.Z)({controlled:ie,default:b,name:m}),xe=(0,_o.Z)(we,2),Ee=xe[0],_e=xe[1],Se=(0,kl.Z)({controlled:G,default:"",name:m,state:"inputValue"}),Oe=(0,_o.Z)(Se,2),ke=Oe[0],Ce=Oe[1],Pe=r.useState(!1),Te=Pe[0],Ae=Pe[1],je=(0,_r.Z)((function(e,t){var n;if($)n="";else if(null==t)n="";else{var r=le(t);n="string"==typeof r?r:""}ke!==n&&(Ce(n),X&&X(e,n,"reset"))}));r.useEffect((function(){je(null,Ee)}),[Ee,je]);var Ie=(0,kl.Z)({controlled:Q,default:!1,name:m,state:"open"}),Re=(0,_o.Z)(Ie,2),Ne=Re[0],De=Re[1],Me=!$&&null!=Ee&&ke===le(Ee),Le=Ne,Fe=Le?T(ne.filter((function(e){return!j||!($?Ee:[Ee]).some((function(t){return null!==t&&F(e,t)}))})),{inputValue:Me?"":ke,getOptionLabel:le}):[],ze=(0,_r.Z)((function(e){-1===e?ce.current.focus():pe.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));r.useEffect((function(){$&&ge>Ee.length-1&&(ve(-1),ze(-1))}),[Ee,$,ge,ze]);var Be=(0,_r.Z)((function(e){var t=e.event,n=e.index,r=e.reason,o=void 0===r?"auto":r;if(be.current=n,-1===n?ce.current.removeAttribute("aria-activedescendant"):ce.current.setAttribute("aria-activedescendant","".concat(ae,"-option-").concat(n)),Y&&Y(t,-1===n?null:Fe[n],o),fe.current){var i=fe.current.querySelector("[data-focus]");i&&i.removeAttribute("data-focus");var a=fe.current.parentElement.querySelector('[role="listbox"]');if(a)if(-1!==n){var l=fe.current.querySelector('[data-option-index="'.concat(n,'"]'));if(l&&(l.setAttribute("data-focus","true"),a.scrollHeight>a.clientHeight&&"mouse"!==o)){var s=l,u=a.clientHeight+a.scrollTop,c=s.offsetTop+s.offsetHeight;c>u?a.scrollTop=c-a.clientHeight:s.offsetTop-s.offsetHeight*(z?1.3:0)<a.scrollTop&&(a.scrollTop=s.offsetTop-s.offsetHeight*(z?1.3:0))}}else a.scrollTop=0}})),Ze=(0,_r.Z)((function(e){var t=e.event,r=e.diff,o=e.direction,i=void 0===o?"next":o,a=e.reason,l=void 0===a?"auto":a;if(Le){var s=function(e,t){if(!fe.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===Fe.length||"previous"===t&&-1===n)return-1;var r=fe.current.querySelector('[data-option-index="'.concat(n,'"]')),o=!O&&(r&&(r.disabled||"true"===r.getAttribute("aria-disabled")));if(!(r&&!r.hasAttribute("tabindex")||o))return n;n+="next"===t?1:-1}}(function(){var e=Fe.length-1;if("reset"===r)return ye;if("start"===r)return 0;if("end"===r)return e;var t=be.current+r;return t<0?-1===t&&W?-1:C&&-1!==be.current||Math.abs(r)>1?0:e:t>e?t===e+1&&W?-1:C||Math.abs(r)>1?e:0:t}(),i);if(Be({index:s,reason:l,event:t}),n&&"reset"!==r)if(-1===s)ce.current.value=ke;else{var u=le(Fe[s]);ce.current.value=u,0===u.toLowerCase().indexOf(ke.toLowerCase())&&ke.length>0&&ce.current.setSelectionRange(ke.length,u.length)}}})),Ue=r.useCallback((function(){if(Le){var e=$?Ee[0]:Ee;if(0!==Fe.length&&null!=e){if(fe.current)if(j||null==e)be.current>=Fe.length-1?Be({index:Fe.length-1}):Be({index:be.current});else{var t=Fe[be.current];if($&&t&&-1!==rE(Ee,(function(e){return F(t,e)})))return;var n=rE(Fe,(function(t){return F(t,e)}));-1===n?Ze({diff:"reset"}):Be({index:n})}}else Ze({diff:"reset"})}}),[0===Fe.length,!$&&Ee,j,Ze,Be,Le,ke,$]),He=(0,_r.Z)((function(e){(0,ao.Z)(fe,e),e&&Ue()}));r.useEffect((function(){Ue()}),[Ue]);var We=function(e){Ne||(De(!0),J&&J(e))},Ge=function(e,t){Ne&&(De(!1),q&&q(e,t))},Ve=function(e,t,n,r){Ee!==t&&(K&&K(e,t,n,r),_e(t))},$e=r.useRef(!1),Ke=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select-option",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",o=n,i=t;if($){var a=rE(i=Array.isArray(Ee)?Ee.slice():[],(function(e){return F(t,e)}));-1===a?i.push(t):"freeSolo"!==r&&(i.splice(a,1),o="remove-option")}je(e,i),Ve(e,i,o,{option:t}),_||Ge(e,o),(!0===u||"touch"===u&&$e.current||"mouse"===u&&!$e.current)&&ce.current.blur()};var qe=function(e,t){if($){Ge(e,"toggleInput");var n=ge;-1===ge?""===ke&&"previous"===t&&(n=Ee.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===Ee.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===Ee.length||"previous"===t&&-1===n)return-1;var r=pe.querySelector('[data-tag-index="'.concat(n,'"]'));if(!r||r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),ve(n),ze(n)}},Ye=function(e){se.current=!0,Ce(""),X&&X(e,"","clear"),Ve(e,$?[]:null,"clear")},Xe=function(e){return function(t){switch(-1!==ge&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(ve(-1),ze(-1)),t.key){case"Home":Le&&Z&&(t.preventDefault(),Ze({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Le&&Z&&(t.preventDefault(),Ze({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Ze({diff:-5,direction:"previous",reason:"keyboard",event:t}),We(t);break;case"PageDown":t.preventDefault(),Ze({diff:5,direction:"next",reason:"keyboard",event:t}),We(t);break;case"ArrowDown":t.preventDefault(),Ze({diff:1,direction:"next",reason:"keyboard",event:t}),We(t);break;case"ArrowUp":t.preventDefault(),Ze({diff:-1,direction:"previous",reason:"keyboard",event:t}),We(t);break;case"ArrowLeft":qe(t,"previous");break;case"ArrowRight":qe(t,"next");break;case"Enter":if(229===t.which)break;if(-1!==be.current&&Le){var r=Fe[be.current],o=!!N&&N(r);if(t.preventDefault(),o)return;Ke(t,r,"select-option"),n&&ce.current.setSelectionRange(ce.current.value.length,ce.current.value.length)}else R&&""!==ke&&!1===Me&&($&&t.preventDefault(),Ke(t,ke,"create-option","freeSolo"));break;case"Escape":Le?(t.preventDefault(),t.stopPropagation(),Ge(t,"escape")):p&&(""!==ke||$&&Ee.length>0)&&(t.preventDefault(),t.stopPropagation(),Ye(t));break;case"Backspace":if($&&""===ke&&Ee.length>0){var i=-1===ge?Ee.length-1:ge,a=Ee.slice();a.splice(i,1),Ve(t,a,"remove-option",{option:Ee[i]})}}e.onKeyDown&&e.onKeyDown(t)}},Je=function(e){Ae(!0),te&&!se.current&&We(e)},Qe=function(e){null===fe.current||document.activeElement!==fe.current.parentElement?(Ae(!1),ue.current=!0,se.current=!1,v&&""!==ke||(l&&-1!==be.current&&Le?Ke(e,Fe[be.current],"blur"):l&&R&&""!==ke?Ke(e,ke,"blur","freeSolo"):f&&je(e,Ee),Ge(e,"blur"))):ce.current.focus()},et=function(e){var t=e.target.value;ke!==t&&(Ce(t),X&&X(e,t,"input")),""===t?x||$||Ve(e,null,"clear"):We(e)},tt=function(e){Be({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},nt=function(){$e.current=!0},rt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));Ke(e,Fe[t],"select-option"),$e.current=!1},ot=function(e){return function(t){var n=Ee.slice();n.splice(e,1),Ve(t,n,"remove-option",{option:Ee[e]})}},it=function(e){Ne?Ge(e,"toggleInput"):We(e)},at=function(e){e.target.getAttribute("id")!==ae&&e.preventDefault()},lt=function(){ce.current.focus(),oe&&ue.current&&ce.current.selectionEnd-ce.current.selectionStart==0&&ce.current.select(),ue.current=!1},st=function(e){""!==ke&&Ne||it(e)},ut=R&&ke.length>0;ut=ut||($?Ee.length>0:null!==Ee);var ct=Fe;if(z){new Map;ct=Fe.reduce((function(e,t,n){var r=z(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,gr.Z)({"aria-owns":Le?"".concat(ae,"-popup"):null,role:"combobox","aria-expanded":Le},e,{onKeyDown:Xe(e),onMouseDown:at,onClick:lt})},getInputLabelProps:function(){return{id:"".concat(ae,"-label"),htmlFor:ae}},getInputProps:function(){return{id:ae,value:ke,onBlur:Qe,onFocus:Je,onChange:et,onMouseDown:st,"aria-activedescendant":Le?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Le?"".concat(ae,"-popup"):null,autoComplete:"off",ref:ce,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:Ye}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:it}},getTagProps:function(e){var t=e.index;return{key:t,"data-tag-index":t,tabIndex:-1,onDelete:ot(t)}},getListboxProps:function(){return{role:"listbox",id:"".concat(ae,"-popup"),"aria-labelledby":"".concat(ae,"-label"),ref:He,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,n=e.option,r=($?Ee:[Ee]).some((function(e){return null!=e&&F(n,e)})),o=!!N&&N(n);return{key:t,tabIndex:-1,role:"option",id:"".concat(ae,"-option-").concat(t),onMouseOver:tt,onClick:rt,onTouchStart:nt,"data-option-index":t,"aria-disabled":o,"aria-selected":r}},id:ae,inputValue:ke,value:Ee,dirty:ut,popupOpen:Le,focused:Te||-1!==ge,anchorEl:pe,setAnchorEl:he,focusedTag:ge,groupedOptions:ct}}function aE(e){e.anchorEl,e.open;var t=(0,mr.Z)(e,["anchorEl","open"]);return r.createElement("div",t)}var lE=r.createElement(Jx,{fontSize:"small"}),sE=r.createElement(Qx,null),uE=r.forwardRef((function(e,t){e.autoComplete,e.autoHighlight,e.autoSelect,e.blurOnSelect;var n,o=e.ChipProps,i=e.classes,a=e.className,l=e.clearOnBlur,s=(void 0===l&&e.freeSolo,e.clearOnEscape,e.clearText),u=void 0===s?"Clear":s,c=e.closeIcon,f=void 0===c?lE:c,d=e.closeText,p=void 0===d?"Close":d,h=(e.debug,e.defaultValue),m=(void 0===h&&e.multiple,e.disableClearable),g=void 0!==m&&m,v=(e.disableCloseOnSelect,e.disabled),y=void 0!==v&&v,b=(e.disabledItemsFocusable,e.disableListWrap,e.disablePortal),w=void 0!==b&&b,x=(e.filterOptions,e.filterSelectedOptions,e.forcePopupIcon),E=void 0===x?"auto":x,_=e.freeSolo,S=void 0!==_&&_,O=e.fullWidth,k=void 0!==O&&O,C=e.getLimitTagsText,P=void 0===C?function(e){return"+".concat(e)}:C,T=(e.getOptionDisabled,e.getOptionLabel),A=void 0===T?function(e){return e}:T,j=(e.getOptionSelected,e.groupBy),I=e.handleHomeEndKeys,R=(void 0===I&&e.freeSolo,e.id,e.includeInputInList,e.inputValue,e.limitTags),N=void 0===R?-1:R,D=e.ListboxComponent,M=void 0===D?"ul":D,L=e.ListboxProps,F=e.loading,z=void 0!==F&&F,B=e.loadingText,Z=void 0===B?"Loading…":B,U=e.multiple,H=void 0!==U&&U,W=e.noOptionsText,G=void 0===W?"No options":W,V=(e.onChange,e.onClose,e.onHighlightChange,e.onInputChange,e.onOpen,e.open,e.openOnFocus,e.openText),$=void 0===V?"Open":V,K=(e.options,e.PaperComponent),q=void 0===K?Lo:K,Y=e.PopperComponent,X=void 0===Y?qx:Y,J=e.popupIcon,Q=void 0===J?sE:J,ee=e.renderGroup,te=e.renderInput,ne=e.renderOption,re=e.renderTags,oe=e.selectOnFocus,ie=(void 0===oe&&e.freeSolo,e.size),ae=void 0===ie?"medium":ie,le=(e.value,(0,mr.Z)(e,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"])),se=w?aE:X,ue=iE((0,gr.Z)({},e,{componentName:"Autocomplete"})),ce=ue.getRootProps,fe=ue.getInputProps,de=ue.getInputLabelProps,pe=ue.getPopupIndicatorProps,he=ue.getClearProps,me=ue.getTagProps,ge=ue.getListboxProps,ve=ue.getOptionProps,ye=ue.value,be=ue.dirty,we=ue.id,xe=ue.popupOpen,Ee=ue.focused,_e=ue.focusedTag,Se=ue.anchorEl,Oe=ue.setAnchorEl,ke=ue.inputValue,Ce=ue.groupedOptions;if(H&&ye.length>0){var Pe=function(e){return(0,gr.Z)({className:(0,br.Z)(i.tag,"small"===ae&&i.tagSizeSmall),disabled:y},me(e))};n=re?re(ye,Pe):ye.map((function(e,t){return r.createElement(xw,(0,gr.Z)({label:A(e),size:ae},Pe({index:t}),o))}))}if(N>-1&&Array.isArray(n)){var Te=n.length-N;!Ee&&Te>0&&(n=n.splice(0,N)).push(r.createElement("span",{className:i.tag,key:n.length},P(Te)))}var Ae=ee||function(e){return r.createElement("li",{key:e.key},r.createElement(Xx,{className:i.groupLabel,component:"div"},e.group),r.createElement("ul",{className:i.groupUl},e.children))},je=ne||A,Ie=function(e,t){var n=ve({option:e,index:t});return r.createElement("li",(0,gr.Z)({},n,{className:i.option}),je(e,{selected:n["aria-selected"],inputValue:ke}))},Re=!g&&!y,Ne=(!S||!0===E)&&!1!==E;return r.createElement(r.Fragment,null,r.createElement("div",(0,gr.Z)({ref:t,className:(0,br.Z)(i.root,a,Ee&&i.focused,k&&i.fullWidth,Re&&i.hasClearIcon,Ne&&i.hasPopupIcon)},ce(le)),te({id:we,disabled:y,fullWidth:!0,size:"small"===ae?"small":void 0,InputLabelProps:de(),InputProps:{ref:Oe,className:i.inputRoot,startAdornment:n,endAdornment:r.createElement("div",{className:i.endAdornment},Re?r.createElement($r,(0,gr.Z)({},he(),{"aria-label":u,title:u,className:(0,br.Z)(i.clearIndicator,be&&i.clearIndicatorDirty)}),f):null,Ne?r.createElement($r,(0,gr.Z)({},pe(),{disabled:y,"aria-label":xe?p:$,title:xe?p:$,className:(0,br.Z)(i.popupIndicator,xe&&i.popupIndicatorOpen)}),Q):null)},inputProps:(0,gr.Z)({className:(0,br.Z)(i.input,-1===_e&&i.inputFocused),disabled:y},fe())})),xe&&Se?r.createElement(se,{className:(0,br.Z)(i.popper,w&&i.popperDisablePortal),style:{width:Se?Se.clientWidth:null},role:"presentation",anchorEl:Se,open:!0},r.createElement(q,{className:i.paper},z&&0===Ce.length?r.createElement("div",{className:i.loading},Z):null,0!==Ce.length||S||z?null:r.createElement("div",{className:i.noOptions},G),Ce.length>0?r.createElement(M,(0,gr.Z)({className:i.listbox},ge(),L),Ce.map((function(e,t){return j?Ae({key:e.key,group:e.group,children:e.options.map((function(t,n){return Ie(t,e.index+n)}))}):Ie(e,t)}))):null)):null)})),cE=(0,wr.Z)((function(e){var t;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:(0,gr.Z)({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(t={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,X.Z)(t,e.breakpoints.up("sm"),{minHeight:"auto"}),(0,X.Z)(t,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),(0,X.Z)(t,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),(0,X.Z)(t,"&:active",{backgroundColor:e.palette.action.selected}),(0,X.Z)(t,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),t),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}}),{name:"MuiAutocomplete"})(uE),fE=n(13311),dE=n.n(fE),pE=n(35161),hE=n.n(pE);function mE(){return(mE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yE=function(e){var t=e.filterOptions,n=void 0===t?[]:t,o=e.setFilterOptions,i=e.filterList,a=e.label,l=e.setReturnedTemplates,s=e.button,u=gE((0,r.useState)([]),2),c=u[0],f=u[1],d=gE((0,r.useState)(!0),2),p=d[0],h=d[1],m=gE((0,r.useState)(""),2),g=m[0],v=m[1];return(0,r.useEffect)((function(){z().then((function(e){f(e),h(!1)})).catch((function(e){console.error(e)}))}),[]),r.createElement(cE,{id:a,"data-testid":"templates:filter-dropdown",multiple:!0,disableCloseOnSelect:!0,openOnFocus:!0,filterSelectedOptions:!0,style:{marginLeft:20,width:"100%"},ListboxProps:{style:{overflowY:"scroll"}},options:p?[]:s?i.filter((function(e){return c.find((function(t){return e.value===t.type}))})):i,value:n.map((function(e){return dE()(i,(function(t){return t.value===e}))})),onChange:function(e,t){o(hE()(t,"value")),v(""),t.length?l(!0):l(!1)},getOptionLabel:function(e){return e.isPro&&!app.hasPremium()?"".concat(at(e.label)," (PRO)"):at(e.label)||""},getOptionDisabled:function(e){return e.isPro&&!app.hasPremium()},getOptionSelected:function(e,t){return e.value===t.value},groupBy:function(e){return s?at("settings.button_action.actions.group_".concat(e.group)):null},noOptionsText:at("utils.search_not_found")+" "+g,inputValue:g,popupIcon:r.createElement("i",{className:"fas fa-caret-down",style:{fontSize:"0.8em"},"data-testid":"filter-dropdown-icon"}),renderInput:function(e){return r.createElement(As,mE({},e,{onChange:function(e){v(e.target.value)},label:a,variant:"outlined","data-testid":"filter-dropdown-input"}))},renderTags:function(e,t){return e.map((function(e,n){return r.createElement(xw,mE({label:at(e.label),size:"small"},t({index:n})))}))},loadingText:at("loading.loading"),loading:p})};function bE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return wE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xE=Qi((function(e){return{welcome:e.settings.welcome}}),(function(e){return{setHintStep:function(t){return e(wt("hint_step",t))},setSetting:function(){return e(bt.apply(void 0,arguments))}}}))((function(e){var t=e.open,n=e.onClose,o=e.showGroups,i=void 0!==o&&o,a=e.index,l=e.currentGroup,s=e.welcome,u=e.setHintStep,c=e.setSetting,f=bE((0,r.useState)([]),2),d=f[0],p=f[1],h=bE((0,r.useState)([]),2),m=h[0],g=h[1],v=bE((0,r.useState)(i?"group":"button"),2),y=v[0],b=v[1],w=bE((0,r.useState)(!1),2),x=w[0],E=w[1],_=function(){b(i?"group":"button"),E(!1),p([]),g([]),s&&(u(0),c("welcome",!1)),n()},S=[{label:at("templates.framedesign.social_media"),value:"social-media"},{label:at("templates.framedesign.business"),value:"business"},{label:at("templates.framedesign.contact"),value:"contact"},{label:at("templates.framedesign.actions"),value:"actions"},{label:at("templates.framedesign.social_sharing"),value:"social-sharing"},{label:at("templates.framedesign.support"),value:"support-group"}];return r.createElement(ma,{open:t,onClose:function(){return _()},maxWidth:"md",fullWidth:!0,className:"templates-dialog","data-testid":"dialog:templates-dialog",scroll:"paper"},r.createElement("div",{className:"header"},r.createElement("div",{className:"titles"},r.createElement(va,{className:"title"},at("button"===y?"utils.new_button":"utils.new_group")),r.createElement("h3",{className:"subtitle"},at("templates.all_templates_description"))),r.createElement($r,{onClick:function(){return _()},className:"close-button","data-testid":"templates-dialog:close-button"},r.createElement(Il,{fontSize:"inherit",className:"fas fa-times"}))),r.createElement("div",{className:"container-filter-buttons"},r.createElement(ba,{dividers:!0,className:"midsection"},r.createElement("div",{className:"button-group"},r.createElement("div",{className:"buttons-title"},at("templates.number_of_buttons")),r.createElement("div",{className:"buttons"},r.createElement("div",{className:"buttons-numbers"},r.createElement(Hr,{onClick:function(){b("button"),p([]),E(!1)},className:"button"===y?"current":null,variant:"outlined",style:{borderRadius:"20px",marginRight:"10px"},"data-testid":"templates:filter-buttons-button"},"1"),r.createElement(Hr,{disabled:!i,onClick:function(){b("group"),g([]),E(!1)},className:"group"===y?"current":null,variant:"outlined",style:{borderRadius:"20px"},"data-testid":"templates:filter-buttons-group"},"2 +")))),"group"===y&&r.createElement(yE,{filterOptions:m,setFilterOptions:g,filterList:S,label:at("templates.framedesign.label"),setReturnedTemplates:E}),"button"===y&&r.createElement(yE,{filterOptions:d,setFilterOptions:p,filterList:zw,label:at("templates.popular_actions.label"),setReturnedTemplates:E,button:!0}))),r.createElement(Pw,{onClose:_,index:a,currentGroup:l,returnedTemplates:x,filterButtons:y,filterFrameDesign:m,filterPopularAction:d}))})),EE=n(99601);function _E(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function SE(){return(SE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function OE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function PE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CE(Object(n),!0).forEach((function(t){TE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AE(e,t){return t.isDropAnimating?PE(PE({},e),{},{opacity:"0.5"}):e}var jE=Qi((function(e){return{getButtonsCount:function(t){return Ot(t,e)},groups:e.groups,state:e}}),(function(e){return{set:function(){return e(yt.apply(void 0,arguments))},dispatch:e}}),(function(e,t,n){var r=e.state,o=_E(e,["state"]),i=t.dispatch;return PE(PE(PE({removeGroup:function(e){return $d(e,r,i)},duplicateGroup:function(e,t){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.store.getState(),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.store.dispatch;if(n.groups[e]){var o=Wd(Wd({},n.groups[e]),{},{name:n.groups[e].name+" Copy",id:void 0,children:[]},t);delete o.id;var i=_t(e,n),a=Object.values(n.groups).reduce((function(t,n,r){return n.id===e?r+1:t}),""),l=r(xt(o,"groups",a)).payload.record.id;Object.keys(i).map((function(e){Qd(i[e].id,l,{name:i[e].name},n,r)}))}else console.error("ID "+e+" not in group store!");Vn()}(e,t,r,i)}},_E(t,["dispatch"])),o),n)}))((function(e){var t=e.groupId,n=e.groups,o=e.set,i=e.provided,a=e.currentDrop,l=e.getButtonsCount,s=e.removeGroup,u=(e.duplicateGroup,e.isNewGroup),c=e.openOverride,f=e.groupIndex,d=!!Db("buttonizer_bar_state_opened")&&sh()(JSON.parse(Db("buttonizer_bar_state_opened")),t,!1),p=OE((0,r.useState)(d),2),h=p[0],m=p[1],g=OE((0,r.useState)(!1),2),v=g[0],y=g[1],b=OE((0,r.useState)(n[t]),2),w=b[0],x=b[1],E=(0,r.useRef)(null);return void 0===w&&Rn((function(e){e.setExtra({groups:n,groupId:t,group:w}),In(new Error("group is undefined. Send groups and groupId data"))})),(0,r.useEffect)((function(){x(n[t])}),[n[t]]),(0,r.useEffect)((function(){u&&E&&E.current&&E.current.scrollIntoView({behavior:"smooth"})}),[u]),(0,r.useEffect)((function(){m(c||d)}),[c]),r.createElement("div",{className:(0,br.Z)("button-group-container mdc-card",h&&"opened",u&&"new-group",a&&!h&&a),ref:(0,EE.Z)(i.innerRef,E),style:{scrollMargin:100}},r.createElement("div",{className:"group-info"},r.createElement(Hr,{onClick:function(){var e=Db("buttonizer_bar_state_opened")?JSON.parse(Db("buttonizer_bar_state_opened")):{};e[t]=!h,Mb("buttonizer_bar_state_opened",JSON.stringify(e)),m(!h)},color:"primary","data-testid":"open-group"},r.createElement("i",{className:"group-arrow"},r.createElement("i",{className:"fas fa-chevron-right"})),r.createElement("span",{className:"group-name"},w.name)),r.createElement("div",{className:"group-action-spacer"}),r.createElement("div",{className:"group-actions"},r.createElement(Xp,{onClick:function(){return document.location.hash="#/group/"+w.id},"data-testid":"edit-button-group",className:"group-actions edit-button"}),r.createElement(nf,{content:at("premium.warning_duplicate"),trigger:"click"},r.createElement("span",{tabIndex:0},r.createElement(Kp,{name:w.name,disabled:!0}))),r.createElement(ah,null,r.createElement(nh,{name:w.name,onChange:function(e){return o("groups",w.id,"name",e)},inDropdown:!0}),r.createElement(wh,{object:w,type:"group"}),r.createElement(aw,{currentGroup:w,label:at("import_export.import.into_group.button"),kbLink:653,inDropdown:!0}),r.createElement(op,{model:"group","data-testid":"delete-button-group",buttonCount:l(w.id),onClose:function(){if(Db("buttonizer_bar_state_opened")){var e=JSON.parse(Db("buttonizer_bar_state_opened"));delete e[w.id],Mb("buttonizer_bar_state_opened",JSON.stringify(e))}s(w.id)},inDropdown:!0})))),r.createElement("div",SE({className:"buttons"+a},i.droppableProps),w.children.map((function(e,t){return r.createElement(Ab,{draggableId:e,index:t,key:e},(function(n,o){return r.createElement(Ch,{provided:n,groupIndex:f,groupId:w.id,buttonId:e,currentDrag:o.isDragging?" currentDrag":"",styleDrop:AE(n.draggableProps.style,o),openNewButtonDialog:function(e){if(e)return Vd({name:at("utils.new_button")},w.id,t+1);y(t+1)}})}))})),i.placeholder,r.createElement("div",{style:{textAlign:"center"}},r.createElement(xE,{open:!1!==v,currentGroup:w,onClose:function(){return y(!1)},index:v}))))}));function IE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return RE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var NE,DE=Qi((function(e){return{welcome:e.settings.welcome,groups:e.groups,hasPremium:e.misc._premium,isPremiumCode:e.misc._premiumCode,getGroupCount:function(){return kt(e)}}}),(function(e){return{addRelation:function(t){return e(mt(t))},addRecord:function(t){return e(xt(t))},addGroup:function(t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hr.dispatch,r=n(xt(Wd({name:at("utils.new_group"),show_mobile:!0,show_desktop:!0,children:[]},e),"groups",t)).payload.record,o=n(xt({name:at("utils.new_button"),show_mobile:!0,show_desktop:!0,label:at("templates.first_button")},"buttons")).payload.record;n(mt(o.id,r.id))}(t,n,e)},changeRelation:function(){return e(gt.apply(void 0,arguments))},setMisc:function(){return e(wt.apply(void 0,arguments))},setHintStep:function(t){return e(wt("hint_step",t))}}}))((function(e){var t=e.groups,n=void 0===t?null:t,o=e.changeRelation,i=e.testDragSensor,a=void 0===i?function(){}:i,l=e.hasPremium,s=e.addGroup,u=e.isPremiumCode,c=e.scrollBar,f=void 0!==c&&c,d=e.getGroupCount,p=e.welcome,h=e.isLoading,m=e.setHintStep,g=IE((0,r.useState)(p||"#/welcome-splash"===document.location.hash),2),v=g[0],y=g[1],b=IE((0,r.useState)(null),2),w=b[0],x=b[1],E=IE((0,r.useState)(null),2),_=E[0],S=E[1],O=aa((function(e){return e.misc.open_collapsible_group})),k=IE((0,r.useState)(!1),2),C=(k[0],k[1]);(0,r.useEffect)((function(){return f&&f.current&&(f.current.scrollTop=Db("buttonizer_bar_state_scroll")||0),function(){f&&f.current&&(f.current.scrollTop=0)}}),[]),(0,r.useEffect)((function(){null!==w&&(Object.keys(n).length>Object.keys(w).length&&S(Hn()(Object.keys(n),Object.keys(w))),Object.keys(n).length<Object.keys(w).length&&S(null)),x(n)}),[n]),(0,r.useEffect)((function(){"button_group_container"===O&&C(!0),null===O&&C(!1)}),[O]);var P=(0,r.useCallback)((function(){window.navigator.vibrate&&window.navigator.vibrate(100)}),[]),T=(0,r.useCallback)((function(e){var t=e.destination,n=e.source,r=e.draggableId;t&&(n.droppableId===t.droppableId&&n.index===t.index||o(r,n.droppableId,t.droppableId,t.index))}),[n]);return r.createElement("div",{className:"overview"},!window.buttonizer_admin.is_stand_alone&&r.createElement("div",{className:"buttonizer-logo"},r.createElement("img",{src:window.buttonizer_admin.assets+"/images/logo.png"})),r.createElement(Ud,null),d()<1&&r.createElement("div",{className:"first-button"},r.createElement(r.Fragment,null,r.createElement("div",{style:{textAlign:"left",margin:"10px 20px",display:"flex",justifyContent:"space-between"}},r.createElement(nf,{content:at("utils.shift_click"),arrow:!1},r.createElement(Hr,{onClick:function(e){if(e.shiftKey)return s({name:at("utils.new_group")},0);y(0)},color:"primary",variant:"text",size:"small",startIcon:r.createElement(Il,{className:"fas fa-plus-circle"}),"data-testid":"new-group"},at("templates.first_button")))))),l&&!u&&r.createElement("div",{className:"mdc-card dashboard-warning-msg"},r.createElement("b",null,at("warnings.premium_license_free_version.title")),at("warnings.premium_license_free_version.information")," ",r.createElement("a",{href:"https://community.buttonizer.pro/knowledgebase/321",target:"_blank"},at("common.learn_more"),".")),!buttonizer_admin.php_version_supported&&r.createElement("div",{className:"mdc-card dashboard-warning-msg"},r.createElement("b",null,at("warnings.php_version_outdated.title")),at("warnings.php_version_outdated.information",{version:buttonizer_admin.php_version})," ",r.createElement("a",{href:"https://community.buttonizer.pro/knowledgebase/434",target:"_blank"},at("common.learn_more"),".")),r.createElement(qy,{sensors:[a],onDragEnd:T,onDragStart:P},function(){if(0!==Object.keys(n).length)return r.createElement(r.Fragment,null,r.createElement(Nb,{droppableId:Object.keys(n)[0]},(function(e,t){return r.createElement(jE,{groupId:Object.keys(n)[0],groupIndex:0,provided:e,currentDrop:t.isDraggingOver?" currentDrop":"",isNewGroup:_&&_[0]===Object.keys(n)[0]})})),r.createElement("div",{style:{textAlign:"center",marginTop:"20px"}},r.createElement(Hr,{onClick:function(e){app.showPremiumDialog(e.currentTarget,at("premium.multiple_button_groups"))},color:"primary",className:"Mui-buzz-premium",startIcon:r.createElement(Il,{className:"fas fa-plus-circle"}),"data-testid":"new-group"},at("utils.create_group"),r.createElement(Ew,null))))}()),r.createElement(xE,{index:v,open:!h&&!1!==v,onClose:function(){return y(!1)},showGroups:0===d()||app.hasPremium()||buttonizer_admin.is_stand_alone,welcome:p,setHintStep:m}))}));function ME(e){var t=e.isButtonGroupNotFound,n=void 0!==t&&t;return r.createElement("div",{className:"item-not-found"},r.createElement("div",{className:"buttonizer-logo"},r.createElement("img",{src:window.buttonizer_admin.assets+"/images/logo.png"})),r.createElement("i",{className:n?"fas fa-binoculars":"far fa-dizzy"}),r.createElement("h4",null,"Sorry! We could not find this ".concat(n?"button or group":"page","!")),r.createElement(Hr,{onClick:function(){document.location.hash="#/"},color:"primary",variant:"contained","data-testid":"return-to-overview"},"Return to overview"))}function LE(){if(NE)return NE;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),NE="reverse",e.scrollLeft>0?NE="default":(e.scrollLeft=1,0===e.scrollLeft&&(NE="negative")),document.body.removeChild(e),NE}function FE(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(LE()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function zE(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var BE={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ZE(e){var t=e.onChange,n=(0,mr.Z)(e,["onChange"]),o=r.useRef(),i=r.useRef(null),a=function(){o.current=i.current.offsetHeight-i.current.clientHeight};return r.useEffect((function(){var e=(0,eo.Z)((function(){var e=o.current;a(),e!==o.current&&t(o.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),r.useEffect((function(){a(),t(o.current)}),[t]),r.createElement("div",(0,gr.Z)({style:BE,ref:i},n))}var UE=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.color,a=e.orientation,l=(0,mr.Z)(e,["classes","className","color","orientation"]);return r.createElement("span",(0,gr.Z)({className:(0,br.Z)(n.root,n["color".concat((0,Zr.Z)(i))],o,"vertical"===a&&n.vertical),ref:t},l))})),HE=(0,wr.Z)((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(UE),WE=(0,vs.Z)(r.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),GE=(0,vs.Z)(r.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),VE=r.createElement(WE,{fontSize:"small"}),$E=r.createElement(GE,{fontSize:"small"}),KE=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.direction,a=e.orientation,l=e.disabled,s=(0,mr.Z)(e,["classes","className","direction","orientation","disabled"]);return r.createElement(Br,(0,gr.Z)({component:"div",className:(0,br.Z)(n.root,o,l&&n.disabled,"vertical"===a&&n.vertical),ref:t,role:null,tabIndex:null},s),"left"===i?VE:$E)})),qE=(0,wr.Z)({root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},{name:"MuiTabScrollButton"})(KE),YE=r.forwardRef((function(e,t){var n=e["aria-label"],o=e["aria-labelledby"],i=e.action,a=e.centered,l=void 0!==a&&a,s=e.children,u=e.classes,c=e.className,f=e.component,d=void 0===f?"div":f,p=e.indicatorColor,h=void 0===p?"secondary":p,m=e.onChange,g=e.orientation,v=void 0===g?"horizontal":g,y=e.ScrollButtonComponent,b=void 0===y?qE:y,w=e.scrollButtons,x=void 0===w?"auto":w,E=e.selectionFollowsFocus,_=e.TabIndicatorProps,S=void 0===_?{}:_,O=e.TabScrollButtonProps,k=e.textColor,C=void 0===k?"inherit":k,P=e.value,T=e.variant,A=void 0===T?"standard":T,j=(0,mr.Z)(e,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),I=To(),R="scrollable"===A,N="rtl"===I.direction,D="vertical"===v,M=D?"scrollTop":"scrollLeft",L=D?"top":"left",F=D?"bottom":"right",z=D?"clientHeight":"clientWidth",B=D?"height":"width";var Z=r.useState(!1),U=Z[0],H=Z[1],W=r.useState({}),G=W[0],V=W[1],$=r.useState({start:!1,end:!1}),K=$[0],q=$[1],Y=r.useState({overflow:"hidden",marginBottom:null}),J=Y[0],Q=Y[1],ee=new Map,te=r.useRef(null),ne=r.useRef(null),re=function(){var e,t,n=te.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:FE(n,I.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==P){var o=ne.current.children;if(o.length>0){var i=o[ee.get(P)];0,t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},oe=(0,_r.Z)((function(){var e,t=re(),n=t.tabsMeta,r=t.tabMeta,o=0;if(r&&n)if(D)o=r.top-n.top+n.scrollTop;else{var i=N?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;o=r.left-n.left+i}var a=(e={},(0,X.Z)(e,L,o),(0,X.Z)(e,B,r?r[B]:0),e);if(isNaN(G[L])||isNaN(G[B]))V(a);else{var l=Math.abs(G[L]-a[L]),s=Math.abs(G[B]-a[B]);(l>=1||s>=1)&&V(a)}})),ie=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=r.ease,a=void 0===i?zE:i,l=r.duration,s=void 0===l?300:l,u=null,c=t[e],f=!1,d=function(){f=!0},p=function r(i){if(f)o(new Error("Animation cancelled"));else{null===u&&(u=i);var l=Math.min(1,(i-u)/s);t[e]=a(l)*(n-c)+c,l>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(r)}};c===n?o(new Error("Element already at target position")):requestAnimationFrame(p)}(M,te.current,e)},ae=function(e){var t=te.current[M];D?t+=e:(t+=e*(N?-1:1),t*=N&&"reverse"===LE()?-1:1),ie(t)},le=function(){ae(-te.current[z])},se=function(){ae(te.current[z])},ue=r.useCallback((function(e){Q({overflow:null,marginBottom:-e})}),[]),ce=(0,_r.Z)((function(){var e=re(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[L]<t[L]){var r=t[M]+(n[L]-t[L]);ie(r)}else if(n[F]>t[F]){var o=t[M]+(n[F]-t[F]);ie(o)}})),fe=(0,_r.Z)((function(){if(R&&"off"!==x){var e,t,n=te.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,a=n.scrollWidth,l=n.clientWidth;if(D)e=r>1,t=r<o-i-1;else{var s=FE(te.current,I.direction);e=N?s<a-l-1:s>1,t=N?s>1:s<a-l-1}e===K.start&&t===K.end||q({start:e,end:t})}}));r.useEffect((function(){var e=(0,eo.Z)((function(){oe(),fe()})),t=(0,no.Z)(te.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[oe,fe]);var de=r.useCallback((0,eo.Z)((function(){fe()})));r.useEffect((function(){return function(){de.clear()}}),[de]),r.useEffect((function(){H(!0)}),[]),r.useEffect((function(){oe(),fe()})),r.useEffect((function(){ce()}),[ce,G]),r.useImperativeHandle(i,(function(){return{updateIndicator:oe,updateScrollButtons:fe}}),[oe,fe]);var pe=r.createElement(HE,(0,gr.Z)({className:u.indicator,orientation:v,color:h},S,{style:(0,gr.Z)({},G,S.style)})),he=0,me=r.Children.map(s,(function(e){if(!r.isValidElement(e))return null;var t=void 0===e.props.value?he:e.props.value;ee.set(t,he);var n=t===P;return he+=1,r.cloneElement(e,{fullWidth:"fullWidth"===A,indicator:n&&!U&&pe,selected:n,selectionFollowsFocus:E,onChange:m,textColor:C,value:t})})),ge=function(){var e={};e.scrollbarSizeListener=R?r.createElement(ZE,{className:u.scrollable,onChange:ue}):null;var t=K.start||K.end,n=R&&("auto"===x&&t||"desktop"===x||"on"===x);return e.scrollButtonStart=n?r.createElement(b,(0,gr.Z)({orientation:v,direction:N?"right":"left",onClick:le,disabled:!K.start,className:(0,br.Z)(u.scrollButtons,"on"!==x&&u.scrollButtonsDesktop)},O)):null,e.scrollButtonEnd=n?r.createElement(b,(0,gr.Z)({orientation:v,direction:N?"left":"right",onClick:se,disabled:!K.end,className:(0,br.Z)(u.scrollButtons,"on"!==x&&u.scrollButtonsDesktop)},O)):null,e}();return r.createElement(d,(0,gr.Z)({className:(0,br.Z)(u.root,c,D&&u.vertical),ref:t},j),ge.scrollButtonStart,ge.scrollbarSizeListener,r.createElement("div",{className:(0,br.Z)(u.scroller,R?u.scrollable:u.fixed),style:J,ref:te,onScroll:de},r.createElement("div",{"aria-label":n,"aria-labelledby":o,className:(0,br.Z)(u.flexContainer,D&&u.flexContainerVertical,l&&!R&&u.centered),onKeyDown:function(e){var t=e.target;if("tab"===t.getAttribute("role")){var n=null,r="vertical"!==v?"ArrowLeft":"ArrowUp",o="vertical"!==v?"ArrowRight":"ArrowDown";switch("vertical"!==v&&"rtl"===I.direction&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:n=t.previousElementSibling||ne.current.lastChild;break;case o:n=t.nextElementSibling||ne.current.firstChild;break;case"Home":n=ne.current.firstChild;break;case"End":n=ne.current.lastChild}null!==n&&(n.focus(),e.preventDefault())}},ref:ne,role:"tablist"},me),U&&pe),ge.scrollButtonEnd)})),XE=(0,wr.Z)((function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:(0,X.Z)({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(YE),JE=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.disabled,a=void 0!==i&&i,l=e.disableFocusRipple,s=void 0!==l&&l,u=e.fullWidth,c=e.icon,f=e.indicator,d=e.label,p=e.onChange,h=e.onClick,m=e.onFocus,g=e.selected,v=e.selectionFollowsFocus,y=e.textColor,b=void 0===y?"inherit":y,w=e.value,x=e.wrapped,E=void 0!==x&&x,_=(0,mr.Z)(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"]);return r.createElement(Br,(0,gr.Z)({focusRipple:!s,className:(0,br.Z)(n.root,n["textColor".concat((0,Zr.Z)(b))],o,a&&n.disabled,g&&n.selected,d&&c&&n.labelIcon,u&&n.fullWidth,E&&n.wrapped),ref:t,role:"tab","aria-selected":g,disabled:a,onClick:function(e){p&&p(e,w),h&&h(e)},onFocus:function(e){v&&!g&&p&&p(e,w),m&&m(e)},tabIndex:g?0:-1},_),r.createElement("span",{className:n.wrapper},c,d),f)})),QE=(0,wr.Z)((function(e){var t;return{root:(0,gr.Z)({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},(0,X.Z)(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),(0,X.Z)(t,"overflow","hidden"),(0,X.Z)(t,"whiteSpace","normal"),(0,X.Z)(t,"textAlign","center"),(0,X.Z)(t,e.breakpoints.up("sm"),{minWidth:160}),t)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(JE);function e_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return t_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var n_=Aa((function(){return{selected:{color:"#ed8219",backgroundColor:"#fae1ca !important",cursor:"default",pointerEvents:"none"}}}));var r_=Md((function(e){var t=e.button,n=e.group,o=e.groups,i=e.history,a=e.getChildrenIndex,l="";["style","general","advanced"].indexOf(i.location.pathname.substr(i.location.pathname.lastIndexOf("/")+1))>-1&&(l="/".concat(i.location.pathname.substr(i.location.pathname.lastIndexOf("/")+1)));var s=e_(r.useState(null),2),u=s[0],c=s[1],f=n_(),d=function(e){c(null),t?i.push("/group/".concat(t.parent,"/button/").concat(e).concat(l)):n&&i.push("/group/".concat(e).concat(l))},p=Boolean(u),h=p?"simple-popover":void 0;return r.createElement(r.Fragment,null,r.createElement(Hr,{className:"breadcrumb-button","aria-describedby":h,color:"secondary",variant:"contained",onClick:function(e){c(e.currentTarget)},"data-testid":"breadcrumb:button"},r.createElement("span",{className:"breadcrumb-text","data-testid":"breadcrumb:name"},t?t.name:n.name),r.createElement("i",{className:"fas fa-chevron-down"})),r.createElement(Ho,{id:h,className:"button-select-menu",open:p,anchorEl:u,onClose:function(){c(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},"data-testid":"breadcrumb:popup"},t?Object.values(a(o[t.parent].children)).map((function(e,n){return r.createElement(si,{key:n,className:"breadcrumb-select-options",onClick:function(){return d(e.id)},"data-testid":"breadcrumbitem:".concat(sh()(e,"name","test-id")),classes:{selected:f.selected},selected:t.id===e.id},e.name)})):Object.entries(o).map((function(e,o){return r.createElement(si,{className:"breadcrumb-select-options",key:o,onClick:function(){return d(e[1].id)},classes:{selected:f.selected},"data-testid":"breadcrumbitem:".concat(sh()(e[1],"name","test-id")),selected:t?t.parent===e[1].id:n.id===e[1].id},e[1].name)}))))})),o_=Qi((function(e){return{groups:e.groups,getChildrenIndex:function(t){return St(t,e)}}}))(r_);function i_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l_=Md((function(e){var t=e.group,n=e.button,o=e.history,i=e.tab,a=void 0===i?0:i,l=function(e){return"/group/".concat(t.id,"/button/").concat(n.id,"/").concat(e)},s=(0,r.useRef)(),u=i_((0,r.useState)(null),2),c=u[0],f=u[1];return(0,r.useEffect)((function(){s.current&&f(s.current.querySelector(".style-tab"))}),[s]),r.createElement("div",{className:"bar-header"},r.createElement("div",{className:"breadcrumb"},r.createElement(nf,{content:at("bar.breadcrumb.tippy_home"),arrow:!1},r.createElement(Hr,{onClick:function(){o.push("/")},color:"primary",className:"home-button"},r.createElement("span",{className:"breadcrumb-text"},at("bar.breadcrumb.home")),r.createElement("i",{className:"fas fa-chevron-right"}))),r.createElement(nf,{content:at("bar.breadcrumb.tippy_group"),arrow:!1},r.createElement(Hr,{onClick:function(){o.push("/group/".concat(t.id))},color:"primary"},r.createElement("span",{className:"breadcrumb-text"},t.name),r.createElement("i",{className:"fas fa-chevron-right"}))),r.createElement(o_,{button:n})),r.createElement(Ud,null),r.createElement("div",{className:"back-to-group"},r.createElement("a",{href:"#/group/"+t.id},r.createElement("i",{className:"fas fa-chevron-down"}),at("bar.edit_group_settings"))),r.createElement("div",{className:"mdc-card top-header",ref:s},r.createElement(XE,{value:a,variant:"fullWidth",indicatorColor:"secondary",textColor:"secondary",className:"tab-bordered"},r.createElement(QE,{component:"a",onClick:function(){o.location.pathname!==l("general")&&o.push(l("general"))},style:0===a?{color:"#f08419"}:null,label:at("settings.setting_categories.general"),id:0,href:"#".concat(l("general")),page:"general","data-testid":"general-tab",icon:r.createElement("i",{className:"fas fa-wrench"})}),r.createElement(QE,{component:"a",onClick:function(){o.location.pathname!==l("style")&&o.push(l("style")),c.classList.remove("hint-pulse-1")},style:1===a?{color:"#f08419"}:null,ref:s,label:at("utils.style"),className:"style-tab",id:1,href:"#".concat(l("style")),page:"style","data-testid":"style-tab",icon:r.createElement("i",{className:"fas fa-paint-brush"})}),r.createElement(QE,{component:"a",onClick:function(){o.location.pathname!==l("advanced")&&o.push(l("advanced"))},style:2===a?{color:"#f08419"}:null,label:at("utils.advanced"),id:2,page:"advanced",href:"#".concat(l("advanced")),"data-testid":"advanced-tab",icon:r.createElement("i",{className:"fas fa-sliders-h"})}))),c&&r.createElement(Ju,{stepTrigger:1,anchorEl:c,position:[0,10],text:at("buttonizer_tour.hint.step_1")}))}));function s_(){return(s_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f_(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d_(e){var t=e.opened,n=void 0!==t&&t,o=e.title,i=void 0===o?"":o,a=e.bodySpacing,l=void 0===a||a,s=e.className,u=void 0===s?null:s,c=e.children,f=e.onSetIsOpened,d=f_(e,["opened","title","bodySpacing","className","children","onSetIsOpened"]);if(null==c)return null;var p=u_((0,r.useState)(n),2),h=p[0],m=p[1];(0,r.useEffect)((function(){m(n)}),[n]);return r.createElement("div",{className:(0,br.Z)("collapsible-group mdc-card",h&&"collapsible-opened",u)},r.createElement(Hr,s_({onClick:function(){var e=!h;f&&f(e),m(e)},color:"primary"},d),i," ",r.createElement("i",{className:"fas fa-chevron-down"})),h&&r.createElement("div",{className:(0,br.Z)(l&&"collapsible-body")},c))}function p_(){return(p_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h_(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m_(e){var t=e.className,n=void 0===t?null:t,o=e.title,i=void 0===o?null:o,a=e.children,l=void 0===a?null:a,s=e.fullWidth,u=void 0===s||s,c=e.tooltip,f=void 0===c?null:c,d=h_(e,["className","title","children","fullWidth","tooltip"]);return r.createElement("div",p_({className:(0,br.Z)("settings-container",u&&"container-full-width",n)},d),i?r.createElement("span",{className:"settings-title"},i,null==f?null:r.createElement(nf,{content:f,ignorePreference:!0,disabled:null==f},r.createElement(Il,{color:"primary",fontSize:"small",className:"fas fa-info-circle"}))):r.createElement(r.Fragment,null),r.createElement("div",{className:"settings-content"},l))}function g_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y_(e){var t=e.mobile,n=void 0!==t&&t,o=e.desktop,i=void 0!==o&&o,a=e.onChange,l=g_((0,r.useState)(n),2),s=l[0],u=l[1],c=g_((0,r.useState)(i),2),f=c[0],d=c[1];return(0,r.useEffect)((function(){u(n),d(i)}),[n,i]),r.createElement(m_,{title:at("settings.show_mobile_desktop.title"),fullWidth:!1,className:"desktop-mobile-visibility"},r.createElement(nf,{content:at("settings.show_mobile_desktop.mobile")},r.createElement(Hr,{className:"buttonMobile",onClick:function(){var e=!s;u(e),a("show_mobile",e)},variant:s?"contained":"outlined",color:"primary","data-testid":"setting:mobile-visibility"},r.createElement("i",{className:"fas fa-mobile-alt"}))),r.createElement(nf,{content:at("settings.show_mobile_desktop.desktop")},r.createElement(Hr,{onClick:function(){var e=!f;d(e),a("show_desktop",e)},variant:f?"contained":"outlined",color:"primary","data-testid":"setting:desktop-visibility"},r.createElement("i",{className:"fas fa-desktop"}))))}function b_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x_(e){var t=e.value,n=e.onChange,o=e.placeholder,i=void 0===o?"":o,a=b_((0,r.useState)(t),2),l=a[0],s=a[1],u=b_((0,r.useState)(!0),2),c=u[0],f=u[1],d=b_((0,r.useState)(i),2),p=d[0],h=d[1];return(0,r.useEffect)((function(){s(t)}),[t]),(0,r.useEffect)((function(){h(i),f(!0)}),[i]),r.createElement(As,{variant:"outlined",label:at("settings.label.placeholder"),onChange:function(e){f(!1),s(e.target.value),n(e.target.value)},value:l||(c?p:l),fullWidth:!0,inputProps:{"data-testid":"setting:label"},className:"general-label-text"})}var E_=n(83868),__=n.n(E_);function S_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return O_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k_(e){var t=e.value,n=void 0===t?"":t,o=e.subject,i=void 0===o?"":o,a=e.body,l=void 0===a?"":a,s=e.cc,u=void 0===s?"":s,c=e.bcc,f=void 0===c?"":c,d=e.onChange,p=(e.helperText,S_((0,r.useState)(""!==u),2)),h=p[0],m=p[1],g=S_((0,r.useState)(""!==f),2),v=g[0],y=g[1],b=""!==n&&!__()(n),w=Aa((function(){return{root:{"& .MuiFormLabel-root.Mui-error":{color:"#f08419"},"& .MuiOutlinedInput-root.Mui-error":{"& fieldset":{borderColor:"#f08419"}},"& .MuiFormHelperText-root.Mui-error":{color:"#f08419"}}}}))();return r.createElement("div",{className:"button-action-value"},r.createElement(As,{className:w.root,variant:"outlined",fullWidth:!0,value:n,inputProps:{"data-testid":"action:field"},label:at("settings.button_action.placeholders.mail.recipient"),helperText:b?at("settings.button_action.actions.mail.invalid"):null,error:b,onChange:function(e){d(e.target.value)}}),r.createElement(As,{variant:"outlined",fullWidth:!0,value:i,label:at("settings.button_action.placeholders.mail.subject"),onChange:function(e){d(e.target.value,"text_subject")},inputProps:{"data-testid":"action:field"}}),h?r.createElement(As,{variant:"outlined",fullWidth:!0,value:u,label:at("settings.button_action.placeholders.mail.cc"),onChange:function(e){d(e.target.value,"text_cc")}}):r.createElement(Hr,{color:"primary",size:"small",style:{textTransform:"capitalize",marginBottom:"15px"},startIcon:"+",onClick:function(){return m(!0)}},"Cc"),v?r.createElement(As,{variant:"outlined",fullWidth:!0,value:f,label:at("settings.button_action.placeholders.mail.bcc"),onChange:function(e){d(e.target.value,"text_bcc")}}):r.createElement(Hr,{color:"primary",size:"small",style:{textTransform:"capitalize",marginBottom:"15px"},onClick:function(){return y(!0)},startIcon:"+"},"Bcc"),r.createElement(As,{variant:"outlined",fullWidth:!0,multiline:!0,rows:4,inputProps:{"data-testid":"action:field"},value:l,label:at("settings.button_action.placeholders.mail.body"),onChange:function(e){d(e.target.value,"text_body")}}))}var C_=n(28355);function P_(e){var t=e.value,n=void 0===t?"":t,o=e.body,i=void 0===o?"":o,a=e.onChange,l=""===n||(0,C_.ZP)(n,"any",{});return r.createElement("div",{className:"button-action-subject"},r.createElement(As,{variant:"outlined",fullWidth:!0,value:n,helperText:l?null:at("settings.button_action.actions.phone_number.invalid"),error:!l,label:at("settings.button_action.actions.phone_number.number"),inputProps:{"data-testid":"action:field"},onChange:function(e){a(e.target.value)}}),r.createElement(As,{variant:"outlined",fullWidth:!0,multiline:!0,rows:4,value:i,label:at("settings.button_action.placeholders.message"),inputProps:{"data-testid":"action:field"},onChange:function(e){a(e.target.value,"text_body")}}),r.createElement("p",null,r.createElement(Lp,{i18nKey:"settings.button_action.actions.whatsapp_info",components:{a:r.createElement("a",{href:"https://faq.whatsapp.com/en/android/26000030/",target:"_blank"})}})))}function T_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return A_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var j_=Aa((function(e){return{item:{padding:"6px 31px"},group:{fontWeight:e.typography.fontWeightMedium,opacity:1,cursor:"default",pointerEvents:"none",userSelect:"none",fontSize:"17px"}}}));function I_(e){var t=e.value,n=void 0===t?"":t,o=e.body,i=void 0===o?"":o,a=e.onChange,l=(0,r.useRef)(null),s=(0,r.useRef)(null),u=T_((0,r.useState)([]),2),c=u[0],f=u[1],d=j_(),p=T_((0,r.useState)(0),2),h=p[0],m=p[1];return["facebook","twitter","whatsapp","linkedin","pinterest","mail","sms","reddit","tumblr","weibo","vk","ok","xing","blogger","flipboard","line"].includes(n)||a("facebook"),(0,r.useEffect)((function(){m(l.current.offsetWidth)}),[]),r.createElement(fs,{variant:"outlined",fullWidth:!0,className:"button-action-value"},r.createElement(us,{ref:l},at("settings.button_action.title")),r.createElement(Cs,{labelId:"button-action-value",value:n,onChange:function(e){a(e.target.value)},labelWidth:h,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},getContentAnchorEl:null},style:{marginBottom:"15px"},inputProps:{"data-testid":"action:select"}},r.createElement(Xx,{disableSticky:!0,value:null,className:d.group},at("settings.button_action.actions.social_sharing.popular")+":"),r.createElement(si,{value:"facebook",className:d.item},at("settings.button_action.actions.share_page_on",{platform:"Facebook"})),r.createElement(si,{value:"twitter",className:d.item},at("settings.button_action.actions.share_page_on",{platform:"Twitter"})),r.createElement(si,{value:"whatsapp",className:d.item},at("settings.button_action.actions.share_page_on",{platform:"Whatsapp"})),r.createElement(si,{value:"linkedin",className:d.item},at("settings.button_action.actions.share_page_on",{platform:"LinkedIn"})),r.createElement(si,{value:"pinterest",className:d.item},at("settings.button_action.actions.share_page_on",{platform:"Pinterest"})),r.createElement(si,{value:"mail",className:d.item},at("settings.button_action.actions.share_page_via",{platform:"email"})),r.createElement(Xx,{disableSticky:!0,value:null,className:d.group},at("settings.button_action.actions.social_sharing.other")+":"),r.createElement(si,{value:"sms",className:d.item},at("settings.button_action.actions.share_page_on",{platform:"SMS"})),r.createElement(si,{value:"reddit",className:d.item},at("settings.button_action.actions.share_page_on",{platform:"Reddit"})),r.createElement(si,{value:"tumblr",className:d.item},at("settings.button_action.actions.share_page_on",{platform:"Tumblr"})),r.createElement(si,{value:"weibo",className:d.item},at("settings.button_action.actions.share_page_on",{platform:"Weibo"})),r.createElement(si,{value:"vk",className:d.item},at("settings.button_action.actions.share_page_on",{platform:"VK"})),r.createElement(si,{value:"ok",className:d.item},at("settings.button_action.actions.share_page_on",{platform:"OK.ru (Odnoklassniki)"})),r.createElement(si,{value:"xing",className:d.item},at("settings.button_action.actions.share_page_on",{platform:"Xing"})),r.createElement(si,{value:"blogger",className:d.item},at("settings.button_action.actions.share_page_on",{platform:"Blogger"})),r.createElement(si,{value:"flipboard",className:d.item},at("settings.button_action.actions.share_page_on",{platform:"Flipboard"})),r.createElement(si,{value:"line",className:d.item},at("settings.button_action.actions.share_page_on",{platform:"Line"}))),["twitter","whatsapp","mail","sms","vk","blogger","tumblr","weibo"].includes(n)?r.createElement(r.Fragment,null,r.createElement(As,{variant:"outlined",fullWidth:!0,multiline:!0,rows:2,onSelect:function(){return f([s.current.selectionStart,s.current.selectionEnd])},onBlur:function(e){return!sh()(e,"relatedTarget.className","").includes("MuiChip")&&f([i.length,i.length])},inputRef:s,label:at("settings.button_action.placeholders.mail.body"),value:i,inputProps:{"data-testid":"action:field"},onChange:function(e){a(e.target.value,"text_body")}}),r.createElement("div",null,"Insert parameter:",Object.entries({"Site URL":"[site-url]","Site Title":"[site-title]"}).map((function(e,t){var n=T_(e,2),o=n[0],l=n[1];return r.createElement(xw,{onClick:function(){return e=l,(t=i.split("")).splice(c[0],c[1]-c[0],e),a(t.join(""),"text_body"),void setTimeout((function(){return s.current.setSelectionRange(c[0]+e.length,c[0]+e.length)}),100);var e,t},size:"small",variant:"outlined",key:t,label:o,style:{marginLeft:"5px"}})}))),r.createElement("br",null),"Body will look as follows: ",r.createElement("br",null),r.createElement(pi,{variant:"caption"},i.replace(/\[site-url\]/g,document.location).replace(/\[site-title\]/g,document.title))):null)}function R_(e){var t=e.value,n=void 0===t?"":t,o=e.body,i=void 0===o?"":o,a=e.onChange,l=""===n||(0,C_.ZP)(n,"any",{});return r.createElement("div",{className:"button-action-value"},r.createElement(As,{variant:"outlined",fullWidth:!0,value:n,label:at("settings.button_action.actions.phone_number.number"),helperText:l?null:at("settings.button_action.actions.phone_number.invalid"),error:!l,onChange:function(e){a(e.target.value)},inputProps:{"data-testid":"action:field"}}),r.createElement(As,{variant:"outlined",fullWidth:!0,multiline:!0,rows:4,inputProps:{"data-testid":"action:field"},value:i,label:"SMS "+at("settings.button_action.placeholders.mail.body"),onChange:function(e){a(e.target.value,"text_body")}}),r.createElement("p",{dangerouslySetInnerHTML:{__html:at("settings.button_action.actions.sms")}}))}function N_(e){var t=e.value,n=void 0===t?"":t,o=e.body,i=void 0===o?"":o,a=e.onChange,l=/^\d+$/;return r.createElement("div",{className:"button-action-value"},r.createElement(As,{variant:"outlined",fullWidth:!0,value:n,label:"Account ID",helperText:l.test(n)||""===n?null:"Invalid account ID.",error:!l.test(n)&&""!==n,onChange:function(e){a(e.target.value.replace(/[^0-9]/gm,""))},inputProps:{"data-testid":"action:field"}}),r.createElement(As,{variant:"outlined",fullWidth:!0,inputProps:{"data-testid":"action:field"},multiline:!0,rows:4,value:i,label:at("settings.button_action.placeholders.message"),onChange:function(e){a(e.target.value,"text_body")}}),r.createElement("p",null,r.createElement(Lp,{i18nKey:"settings.button_action.actions.twitter_info",components:{findAccountLink:r.createElement("a",{href:"https://tweeterid.com/",target:"_blank"}),allowDirectMessagesLink:r.createElement("a",{href:"https://help.twitter.com/nl/using-twitter/direct-messages#receive",target:"_blank"})}})))}function D_(e){var t=e.value,n=void 0===t?"":t,o=e.onChange;return(0,r.useEffect)((function(){if("elementor"!==n.substring(0,9)){if("E"===n.substring(n.length-1))return;"Ev2"!==n.substring(n.length-3)&&o("elementor"+U()+"Ev2")}}),[]),r.createElement(r.Fragment,null,r.createElement("p",{dangerouslySetInnerHTML:{__html:at("settings.popups.elementor_guide")}}),r.createElement("pre",{style:{display:"flex"}},r.createElement("code",{style:{fontSize:"11px",padding:"5.5px"}},"a[","Ev2"===n.substring(n.length-3)?"buttonizer-popup":"href",'="#',n,'"]'),r.createElement(nf,{content:at("settings.popups.generate")},r.createElement($r,{onClick:function(){o("elementor"+U()+"Ev2")},variant:"contained",color:"primary",style:{padding:"5px"}},r.createElement("i",{className:"fas fa-redo-alt",style:{fontSize:"14px"}})))),r.createElement(Fp,{articleId:76,setting:"Elementor Popup"}))}function M_(e){var t=e.value,n=void 0===t?"":t,o=e.onChange;return(0,r.useEffect)((function(){if("popupMaker"!==n.substring(0,10)){if("P"===n.substring(n.length-1))return;"Pv2"!==n.substring(n.length-3)&&o("popupMaker"+U()+"Pv2")}}),[]),r.createElement(r.Fragment,null,r.createElement("p",{dangerouslySetInnerHTML:{__html:at("settings.popups.popup_maker_guide")}}),r.createElement("pre",{style:{display:"flex"}},r.createElement("code",{style:{fontSize:"11px",padding:"5.5px"}},"a[","Pv2"===n.substring(n.length-3)?"buttonizer-popup":"href",'="#',n,'"]'),r.createElement(nf,{content:at("settings.popups.generate")},r.createElement($r,{onClick:function(){o("popupMaker"+U()+"Pv2")},variant:"contained",color:"primary",style:{padding:"5px"}},r.createElement("i",{className:"fas fa-redo-alt",style:{fontSize:"14px"}})))),r.createElement(Fp,{articleId:77,setting:"Popup Maker"}))}function L_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return F_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function z_(e){var t=e.value,n=e.onChange,o=Aa((function(e){return{formControl:{margin:e.spacing(0),marginTop:10,paddingBottom:20}}}))(),i=(0,r.useRef)(null),a=L_((0,r.useState)(0),2),l=a[0],s=a[1],u="_self";t&&(!0===t?u="_blank":"string"==typeof t&&(u=t)),(0,r.useEffect)((function(){s(i.current.offsetWidth)}),[]);return r.createElement(fs,{variant:"outlined",className:o.formControl,fullWidth:!0,size:"small"},r.createElement(us,{ref:i},at("settings.button_action.open_url.title")),r.createElement(Cs,{onChange:function(e){e.target.value&&n(e.target.value),null===e.target.value&&n("_blank")},labelWidth:l,value:u,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},getContentAnchorEl:null}},r.createElement(si,{value:"_self"},"Current window"),r.createElement(si,{value:"_blank"},"New tab"),r.createElement(si,{value:"_newWindow"},"New window"),r.createElement(si,{value:"_popupWindow"},"Pop-up window")))}function B_(e){var t=e.value,n=void 0===t?"":t,o=e.newTab,i=e.placeholder,a=e.type,l=e.paragraph,s=e.knowledge,u=e.onChange,c=e.checkPhoneNumber,f=void 0!==c&&c,d=e.checkText,p=void 0===d?"Invalid":d,h=(e.helperText,e.children),m=void 0!==h&&h,g=!f||(""===n||(0,C_.ZP)(n,"any",{})),v=Aa((function(){return{root:{"& .MuiFormLabel-root.Mui-error":{color:"#f08419"},"& .MuiOutlinedInput-root.Mui-error":{"& fieldset":{borderColor:"#f08419"}},"& .MuiFormHelperText-root.Mui-error":{color:"#f08419"}}}}))();return r.createElement("div",{className:"button-action-value"},r.createElement(As,{className:v.root,variant:"outlined",fullWidth:!0,inputProps:{"data-testid":"action:field"},type:a||"text",helperText:f?g?null:p:null,error:!!f&&!g,value:n,label:i,onChange:function(e){u(e.target.value)}}),m&&m,o?r.createElement(z_,{value:o.action_new_tab,onChange:function(e){u(e,"action_new_tab")}}):r.createElement(r.Fragment,null),l||r.createElement(r.Fragment,null),s?function(e){return r.createElement("a",{className:"info-link has-margin-everywhere",href:"https://community.buttonizer.pro/knowledgebase"+(""===e.permalink?"":"/"+e.permalink)},e.name?r.createElement(Lp,{i18nKey:"utils.knowledge_link",values:{setting:e.name},components:{bold:r.createElement("strong",null)}}):at("utils.visit_knowledgebase"))}(s):r.createElement(r.Fragment,null))}var Z_=JSON.parse('{"af_ZA":"Afrikaans","ar_AR":"Arabic","az_AZ":"Azerbaijani","be_BY":"Belarusian","bg_BG":"Bulgarian","bn_IN":"Bengali","bs_BA":"Bosnian","ca_ES":"Catalan","cs_CZ":"Czech","cy_GB":"Welsh","da_DK":"Danish","de_DE":"German","el_GR":"Greek","en_GB":"English (UK)","en_PI":"English (Pirate)","en_UD":"English (Upside Down)","en_US":"English (US)","eo_EO":"Esperanto","es_ES":"Spanish (Spain)","es_LA":"Spanish","et_EE":"Estonian","eu_ES":"Basque","fa_IR":"Persian","fb_LT":"Leet Speak","fi_FI":"Finnish","fo_FO":"Faroese","fr_CA":"French (Canada)","fr_FR":"French (France)","fy_NL":"Frisian","ga_IE":"Irish","gl_ES":"Galician","he_IL":"Hebrew","hi_IN":"Hindi","hr_HR":"Croatian","hu_HU":"Hungarian","hy_AM":"Armenian","id_ID":"Indonesian","is_IS":"Icelandic","it_IT":"Italian","ja_JP":"Japanese","ka_GE":"Georgian","km_KH":"Khmer","ko_KR":"Korean","ku_TR":"Kurdish","la_VA":"Latin","lt_LT":"Lithuanian","lv_LV":"Latvian","mk_MK":"Macedonian","ml_IN":"Malayalam","ms_MY":"Malay","nb_NO":"Norwegian (bokmal)","ne_NP":"Nepali","nl_NL":"Dutch","nn_NO":"Norwegian (nynorsk)","pa_IN":"Punjabi","pl_PL":"Polish","ps_AF":"Pashto","pt_BR":"Portuguese (Brazil)","pt_PT":"Portuguese (Portugal)","ro_RO":"Romanian","ru_RU":"Russian","sk_SK":"Slovak","sl_SI":"Slovenian","sq_AL":"Albanian","sr_RS":"Serbian","sv_SE":"Swedish","sw_KE":"Swahili","ta_IN":"Tamil","te_IN":"Telugu","th_TH":"Thai","tl_PH":"Filipino","tr_TR":"Turkish","uk_UA":"Ukrainian","vi_VN":"Vietnamese","zh_CN":"Simplified Chinese (China)","zh_HK":"Traditional Chinese (Hong Kong)","zh_TW":"Traditional Chinese (Taiwan)"}');function U_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return H_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var W_=Qi((function(e){return{buttons:e.buttons}}))((function(e){var t,n=e.data,o=e.onChange,i=e.buttonId,a=e.buttons,l=U_((0,r.useState)(!1),2),s=l[0],u=l[1],c=U_((0,r.useState)(!1),2),f=c[0],d=c[1],p=U_((0,r.useState)(0),2),h=p[0],m=p[1],g=(0,r.useRef)(null);if(!f)for(var v=0,y=Object.entries(a);v<y.length;v++){var b=y[v];"messenger_chat"===b[1].type&&b[1].id!==i&&(u(!0),d(!0))}return(0,r.useEffect)((function(){m(g.current.offsetWidth)}),[]),r.createElement(r.Fragment,null,r.createElement(B_,{value:n.action,check:/^\d+$/,checkText:at("settings.button_action.actions.messenger_chat.invalid"),placeholder:at("settings.button_action.actions.messenger_chat.page_id"),paragraph:r.createElement("p",null,r.createElement(Lp,{i18nKey:"settings.button_action.actions.messenger_chat.description",components:{howToLink:r.createElement("a",{href:"https://developers.facebook.com/docs/messenger-platform/reference/messenger-profile-api/domain-whitelisting#page_settings",target:"_blank"}),helpLink:r.createElement("a",{href:"https://www.facebook.com/help/1503421039731588",target:"_blank"})}})),knowledge:{permalink:59,name:"Facebook Messenger Chat Widget"},onChange:function(e,t){o(e,t)}},r.createElement(fs,{variant:"outlined",fullWidth:!0,style:{marginBottom:"15px"}},r.createElement(us,{ref:g},at("settings.button_action.actions.messenger_chat.language")),r.createElement(Cs,{value:n.messenger_lang||"en_US",onChange:function(e){o(e.target.value,"messenger_lang")},labelWidth:h,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},getContentAnchorEl:null}},(t=[],Object.entries(Z_).map((function(e,n){var o=U_(e,2),i=o[0],a=o[1];t.push(r.createElement(si,{value:i,key:n},a))})),t)))),r.createElement(Oa,{open:s,title:"This is getting out of hand. Now, there are two of them!",buttons:[{value:"close",text:"I understand"}],onClose:function(){return o("url","type"),void u(!1)}},r.createElement(pi,null,"You currently have a button with a Facebook Messenger Chat Widget action.",r.createElement("br",null),"As of now, the Facebook Messenger SDK can only support ",r.createElement("b",null,"1")," ","Facebook Messenger Chat Widget.",r.createElement("br",null),r.createElement("br",null),"Button with Facebook Messenger Widget: ",r.createElement("br",null),"Button:",Object.entries(a).map((function(e){if("messenger_chat"===e[1].type&&e[1].id!==i)return" ".concat(e[1].name)})))))})),G_=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.component,l=void 0===a?"div":a,s=e.disablePointerEvents,u=void 0!==s&&s,c=e.disableTypography,f=void 0!==c&&c,d=e.position,p=e.variant,h=(0,mr.Z)(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),m=Bl()||{},g=p;return p&&m.variant,m&&!g&&(g=m.variant),r.createElement(Zl.Provider,{value:null},r.createElement(l,(0,gr.Z)({className:(0,br.Z)(o.root,i,u&&o.disablePointerEvents,m.hiddenLabel&&o.hiddenLabel,"filled"===g&&o.filled,{start:o.positionStart,end:o.positionEnd}[d],"dense"===m.margin&&o.marginDense),ref:t},h),"string"!=typeof n||f?n:r.createElement(pi,{color:"textSecondary"},n)))})),V_=(0,wr.Z)({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(G_);function $_(){return($_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function K_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K_(Object(n),!0).forEach((function(t){Y_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return J_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Q_(e){var t=e.value,n=e.onChange,o=X_((0,r.useState)(t?t.split(" "):[]),2),i=o[0],a=o[1],l=X_((0,r.useState)(!1),2),s=l[0],u=l[1];return(0,r.useEffect)((function(){a(t?t.split(" "):[])}),[t]),r.createElement(cE,{multiple:!0,size:"small",id:"tags-outlined",clearText:at("utils.clear"),"data-testid":"button-action-rel",options:["noreferrer","nofollow","noopener","help","prev","next","external","alternate"],getOptionLabel:function(e){return e},value:i,filterSelectedOptions:!0,disableCloseOnSelect:!0,freeSolo:!0,onOpen:function(){return u(!0)},onClose:function(){u(!1),n(i.length>0?i.join(" "):"unset")},onChange:function(e,t){a(t),s||n(t.length>0?t.join(" "):"unset")},forcePopupIcon:!0,popupIcon:r.createElement("i",{className:"fas fa-caret-down",style:{fontSize:"0.8em"},"data-testid":"button-action-rel-select-icon"}),renderInput:function(e){return r.createElement(As,$_({},e,{variant:"outlined",label:at("settings.button_action.rel_attributes.title"),placeholder:at("settings.button_action.rel_attributes.placeholder"),helperText:r.createElement(Fp,{articleId:519,setting:at("settings.button_action.rel_attributes.title"),size:"small"}),InputProps:q_(q_({},e.InputProps),{},{"data-testid":"button-action-rel-input"})}))}})}var eS=n(66823),tS=n.n(eS);var nS=n(37726);function rS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var iS=setTimeout((function(){}),0);function aS(e){var t=e.value,n=void 0===t?"":t,o=e.placeholder,i=void 0===o?"":o,a=e.paragraph,l=e.showNewTab,s=void 0!==l&&l,u=e.newTabValue,c=e.showRelAttributes,f=void 0!==c&&c,d=e.showFileExplorer,p=void 0!==d&&d,h=e.relAttributesValue,m=e.onChange,g=rS((0,r.useState)(),2),v=g[0],y=g[1],b=function(e){return y(""!==e&&!function(e){return tS()(e,{protocols:["http","https"],require_tld:!1,require_host:!1})||"#"===e.substr(0,1)}(e))};(0,r.useEffect)((function(){b(n)}),[]);var w=null;return p&&(w=r.createElement(V_,{position:"end"},r.createElement(nf,{content:at("utils.select_file")},r.createElement($r,{"aria-label":at("utils.select_file"),onClick:function(){var e=wp.media({title:at("utils.select_file"),multiple:!1}).on("select",(function(){var t=e.state().get("selection").first().toJSON().url;m(t)})).open()},edge:"end"},r.createElement(nS.Z,null))))),r.createElement("div",{className:"button-action-value"},r.createElement(As,{variant:"outlined",fullWidth:!0,value:n,label:i,helperText:v&&r.createElement(r.Fragment,null,r.createElement("p",null,at("settings.button_action.actions.url.invalid")),r.createElement("p",{dangerouslySetInnerHTML:{__html:at("settings.button_action.actions.url.invalid_tip")}})),FormHelperTextProps:{component:"span","data-testid":"button-action-value-error"},error:v,onChange:function(e){clearInterval(iS);var t=e.target.value;iS=setTimeout((function(){b(t)}),600),m(t)},onBlur:function(e){return b(e.target.value)},inputProps:{"data-testid":"action:field"},InputProps:{endAdornment:w}}),s&&r.createElement(z_,{value:u,onChange:function(e){m(e,"action_new_tab")}}),f&&r.createElement(Q_,{value:h,onChange:function(e){return m(e,"action_rel_attributes")}}),a||r.createElement(r.Fragment,null))}function lS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lS(Object(n),!0).forEach((function(t){uS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cS(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function fS(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var dS=function(e){return function(){var t=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){fS(i,r,o,a,l,"next",e)}function l(e){fS(i,r,o,a,l,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!hr.getState().wp.loaded[e]){t.next=2;break}return t.abrupt("return");case 2:n({type:O.wp.GET_DATA_BEGIN,payload:{type:e}});try{ft("/page_rules/".concat(e,"?nonce=").concat(buttonizer_admin.nonce),{method:"GET"}).then((function(t){var r=t.data,o=cS(t,["data"]);r.success?n({type:O.wp.GET_DATA_SUCCESS,payload:{data:r.data,type:e}}):n({type:O.wp.GET_DATA_FAILURE,payload:{error:sS({data:r},o)}})})).catch((function(e){n({type:O.wp.GET_DATA_FAILURE,payload:{error:e}})})).finally((function(){n({type:O.wp.GET_DATA_END,payload:{type:e}})}))}catch(e){n({type:O.wp.GET_DATA_FAILURE,payload:{error:e}})}case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()};function pS(){return(pS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function hS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hS(Object(n),!0).forEach((function(t){gS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bS=Qi((function(e){return{pagesLoaded:e.wp.loaded.pages,pagesLoading:e.wp.loading.pages}}),(function(e){return{getData:function(){return dS.apply(void 0,arguments)(e)}}}))((function(e){var t=e.getData,n=e.value,o=e.newTabValue,i=e.onChange,a=e.pagesLoaded,l=e.pagesLoading,s=vS((0,r.useState)(!1),2),u=s[0],c=s[1],f=vS((0,r.useState)(null),2),d=f[0],p=f[1];return u||store.getState().wp.loaded.pages||store.getState().wp.loading.pages||(c(!0),t("pages")),(0,r.useEffect)((function(){a&&(c(!1),p(function(e,t){var n=null;return e?(t.forEach((function(t){t.id==e&&(n=t)})),n):null}(n,store.getState().wp.data.pages)))}),[a,l]),r.createElement(r.Fragment,null,r.createElement(cE,{disableClearable:!0,id:"pages-action-input","data-testid":"action:pages-action-input",options:u?[]:store.getState().wp.data.pages,loadingText:at("loading.loading"),getOptionLabel:function(e){return d&&e.id==d.id?"".concat(e.type,": ").concat(e.name):e.name},openOnFocus:!0,blurOnSelect:!0,value:d,style:{marginBottom:10},loading:u,groupBy:function(e){return e.type},onChange:function(e,t){p(t),i(t.id,"action")},noOptionsText:at("utils.search_not_found"),renderInput:function(e){return r.createElement(As,pS({},e,{variant:"outlined",label:at("settings.button_action.actions.page.name"),placeholder:at("settings.button_action.actions.page.placeholder"),disabled:u,helperText:at("settings.button_action.actions.page.helper"),InputProps:mS(mS({},e.InputProps),{},{"data-testid":"action:autocomplete-input",endAdornment:r.createElement(r.Fragment,null,u?r.createElement(vi,{color:"primary",size:20}):null,e.InputProps.endAdornment)})}))}}),r.createElement(z_,{value:o,onChange:function(e){i(e,"action_new_tab")}}),r.createElement(Fp,{articleId:580,setting:at("settings.button_action.actions.page.name")}))}));function wS(e){e.button,e.onChange,Sl().enqueueSnackbar,(0,r.useRef)();return r.createElement(Hr,{variant:"contained",color:"primary",fullWidth:!0,style:{marginBottom:"10px"},disabled:!0},"Javascript function is for Pro only")}function xS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ES(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _S(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var SS=Qi((function(e){return{buttons:e.buttons}}),null,(function(e,t,n){var r=e.buttons,o=n.id,i=_S(n,["id"]);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xS(Object(n),!0).forEach((function(t){ES(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({button:r[o]},i)}))((function(e){var t=e.type,n=e.button,o=e.onChange;switch(t){case"mail":return r.createElement(k_,{value:n.action,subject:n.text_subject,cc:n.text_cc,bcc:n.text_bcc,body:n.text_body,onChange:function(e,t){o(e,t)}});case"phone":return r.createElement(B_,{value:n.action,placeholder:at("settings.button_action.actions.phone_number.number"),checkPhoneNumber:!0,checkText:at("settings.button_action.actions.phone_number.invalid"),onChange:function(e,t){o(e,t)}});case"whatsapp":return r.createElement(P_,{value:n.action,body:n.text_body,onChange:function(e,t){o(e,t)}});case"page":return r.createElement(bS,{value:n.action,newTabValue:n.action_new_tab,onChange:function(e,t){o(e,t)}});case"url":return r.createElement(aS,{value:n.action,placeholder:"https://www.domain.ltd/page",showNewTab:!0,newTabValue:n.action_new_tab,showRelAttributes:!0,relAttributes:n.action_rel_attributes,onChange:function(e,t){o(e,t)}});case"socialsharing":return r.createElement(I_,{value:n.action,body:n.text_body,onChange:function(e,t){o(e,t)}});case"sms":return r.createElement(R_,{value:n.action,body:n.text_body,onChange:function(e,t){o(e,t)}});case"messenger_chat":return r.createElement(W_,{data:n,buttonId:n.id,onChange:function(e,t){o(e,t)}});case"messenger":return r.createElement(aS,{value:n.action,placeholder:"https://m.me/YOUR-PAGE-NAME",onChange:function(e,t){o(e,t)}});case"twitter_dm":return r.createElement(N_,{value:n.action,body:n.text_body,onChange:function(e,t){o(e,t)}});case"line":return r.createElement(B_,{value:n.action,placeholder:"LINE ID",onChange:function(e,t){o(e,t)}});case"viber":return r.createElement(B_,{value:n.action,placeholder:"+00123456789",checkPhoneNumber:!0,checkText:at("settings.button_action.actions.phone_number.invalid"),paragraph:r.createElement("p",null,at("settings.button_action.actions.viber")),onChange:function(e,t){o(e,t)}});case"facebook":return r.createElement(B_,{value:n.action,placeholder:"Facebook username or page",onChange:function(e,t){o(e,t)}});case"linkedin":return r.createElement(B_,{value:n.action,placeholder:'"company/COMPANY-NAME" '+at("common.or")+' "in/USERNAME"',onChange:function(e,t){o(e,t)}});case"waze":return r.createElement(B_,{value:n.action,placeholder:"https://www.waze.com/ul?q=Netherlands",onChange:function(e,t){o(e,t)}});case"poptin":return r.createElement(r.Fragment,null,r.createElement(aS,{value:n.action,placeholder:"https://app.popt.in/APIRequest/click/0c768294b0605",paragraph:r.createElement("p",null,r.createElement(Lp,{i18nKey:"settings.button_action.actions.poptin",components:{downloadLink:r.createElement("a",{href:"https://wordpress.org/plugins/poptin/",target:"_blank"}),helpLink:r.createElement("a",{href:"https://help.poptin.com/article/show/72942-how-to-show-a-poptin-when-the-visitor-clicks-on-a-button-link-on-your-site",target:"_blank"}),bold:r.createElement("b",null)}})),onChange:function(e,t){o(e,t)}}),r.createElement(Fp,{articleId:169,setting:"Poptin"}));case"elementor_popup":return r.createElement(D_,{value:n.action,type:t,button:n,onChange:function(e,t){o(e,t)}});case"popup_maker":return r.createElement(M_,{value:n.action,onChange:function(e,t){o(e,t)}});case"popups":return r.createElement("p",{className:"button-action-value"},r.createElement(Lp,{i18nKey:"settings.button_action.actions.action_discontinued",values:{action:"Popups - Wordpress Popups",replacement:"WP Popups – WordPress Popup builder"},components:{italic:r.createElement("i",null),bold:r.createElement("strong",null),a:r.createElement("a",{href:"https://wordpress.org/plugins/wp-popups-lite/",target:"_blank"})}}));case"wppopups":return r.createElement(B_,{value:n.action,placeholder:"ID/Trigger class",onChange:function(e,t){o(e,t)}});case"skype":case"telegram":case"twitter":case"snapchat":case"instagram":case"tiktok":case"vk":return r.createElement(B_,{value:n.action,placeholder:at("settings.button_action.placeholders.username"),onChange:function(e,t){o(e,t)}});case"download":return r.createElement(aS,{value:n.action,placeholder:"https://domain.tld/path/to/file.pdf",onChange:function(e,t){o(e,t)},showFileExplorer:!window.buttonizer_admin.is_stand_alone,paragraph:r.createElement("p",null,r.createElement(Lp,{i18nKey:"settings.button_action.actions.download.description"}))});case"signal_group":return r.createElement(aS,{value:n.action,placeholder:"https://signal.group/[group-id]",onChange:function(e,t){o(e,t)},paragraph:r.createElement("p",null,r.createElement(Lp,{i18nKey:"settings.button_action.actions.signal_group_info",components:{a:r.createElement("a",{href:"https://support.signal.org/hc/en-us/articles/360051086971-Group-Link-or-QR-code",target:"_blank"})}}))});case"javascript_pro":return r.createElement(wS,{button:n,onChange:o});default:return r.createElement(r.Fragment,null)}})),OS=function(e){var t=e.handleClose,n=e.open,o=e.children;return r.createElement(ma,{open:n,className:"dialog",onClose:t,"data-testid":"dialog:add-request-dialog"},r.createElement($r,{onClick:t,className:"skip-button"},r.createElement(Il,{fontSize:"inherit",className:"fas fa-times",color:"primary"})),o)};function kS(){return(kS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function CS(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function PS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return TS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AS(e){var t=null;return zw.forEach((function(n){t||n.value!=e||(t=n)})),t||zw[0]}function jS(e){var t=e.actionType,n=void 0===t?"":t,o=e.id,i=e.onChange,a=e.action,l=void 0===a?"":a,s=PS((0,r.useState)(AS(n)),2),u=s[0],c=s[1],f=PS((0,r.useState)({open:!1}),2),d=f[0],p=f[1],h=PS((0,r.useState)(!1),2),m=h[0],g=h[1];(0,r.useEffect)((function(){c(AS(n))}),[n]);var v=function(e){return r.createElement("iframe",{style:{minHeight:"400px",minWidth:"375px",margin:"25px 15px 0"},title:e.src,src:e.src,border:"0"})};return r.createElement("div",{className:"button-action","data-testid":"button-action"},r.createElement(Oa,{open:d.open,title:at("settings.button_action.actions.javascript.warning_modal_title"),icon:r.createElement("i",{className:"fas fa-exclamation window-icon"}),className:"warning",onClose:function(e){"confirm"===e&&(i("type",d.action),i("action","")),p({open:!1,action:null})},buttons:[{value:"cancel",text:at("modal.changed_my_mind")},{value:"confirm",text:at("modal.yes_please"),variant:"contained"}],testId:"button-action-javascript-dialog"},r.createElement("p",null,at("settings.button_action.actions.javascript.warning_intro")),r.createElement("p",null,at("settings.button_action.actions.javascript.warning_question"))),r.createElement(OS,{open:m,handleClose:function(){return g(!1)}},m?r.createElement(v,{src:"https://app.miniextensions.com/form/zaeExqTN0diIKD13ucne"}):null),r.createElement(cE,{PaperComponent:function(e){var t=e.children,n=CS(e,["children"]);return r.createElement(Lo,n,t,r.createElement(Hr,{className:"action-request",color:"primary",onMouseDown:function(e){e.preventDefault()},onClick:function(){g(!0)},fullWidth:!0},at("settings.button_action.actions.add_request")))},id:"button-action-selector","data-testid":"setting:button-action-select",options:zw,defaultValue:"url",value:u,disableClearable:!0,openOnFocus:!1!==m,blurOnSelect:!0,className:"button-action-type",onChange:function(e,t){if("javascript_pro"!==n||"javascript_pro"===t.value||buttonizer_admin.is_stand_alone)"page"===n?i("action",""):t.value;else if(""!==l)return void p({open:!0,action:t.value});c(t),i("type",t.value)},getOptionLabel:function(e){return e.isPro?"".concat(at(e.label)," (PRO)"):at(e.label)},getOptionDisabled:function(e){return e.isPro},groupBy:function(e){return at("settings.button_action.actions.group_".concat(e.group))},noOptionsText:at("utils.search_not_found"),renderInput:function(e){return r.createElement(As,kS({},e,{label:at("settings.button_action.title"),variant:"outlined"}))}}),r.createElement("div",{"data-testid":"button-action-value"},r.createElement(SS,{id:o,type:n,onChange:function(e,t){return i(t||"action",e)}})))}var IS=n(42226),RS=n.n(IS),NS=n(91747),DS=n.n(NS);function MS(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0,i=o.excludeSelf,a=void 0!==i&&i,l=o.returnSelf,s=void 0!==l&&l,u=o.returnParent,c=void 0!==u&&u,f=o.defToGroup,d=void 0===f?null:f,p=o.returnDefault,h=void 0!==p&&p;if(void 0===t||void 0===e)throw console.log("record: "+t),console.log("key: "+e),TypeError("'record' argument or 'key' argument of type undefined");var m=t[e];if(!RS().formatted.includes(e))return null==m?h?LS(r,e,n,sh()(d,e,null)):"":m;var g=d?A.normal_hover.parse(d[e]):[];if(null==m)return FS(r,e,n,[],g,{excludeSelf:a,returnSelf:s,returnParent:c,returnDefault:h});var v=A.normal_hover.parse(m);return r?FS(r,e,n,v,g,{excludeSelf:a,returnSelf:s,returnParent:c,returnDefault:h}):Mn()(["",""],v)}function LS(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=Mn()({},RS(),RS().menuStyle[n]);if(Object.keys(o).includes(e))return Object.keys(o[e]).includes(t)?null==o[e][t]?"":null!==r?r:o[e][t]:"";console.error("model ".concat(e," not familiar"))}function FS(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=Mn()({},RS(),RS().menuStyle[n]);if(Object.keys(a).includes(e)){if(!Object.keys(a[e]).includes(t))return["",""];var l=a[e][t];return"group"===e?zS(r,l,i):"button"===e?BS(r,o,l,i):void 0}console.error("model ".concat(e," not familiar"))}function zS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.excludeSelf,o=void 0!==r&&r,i=n.returnSelf,a=void 0!==i&&i,l=n.returnDefault,s=void 0!==l&&l,u=[e,a&&[e[0],e[0]],s&&t,s&&[t[0],t[0]],!s&&0===e.length&&["",""]];return o&&u.shift(),DS().apply(void 0,u)}function BS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.excludeSelf,i=void 0!==o&&o,a=r.returnSelf,l=void 0!==a&&a,s=r.returnParent,u=void 0!==s&&s,c=r.returnDefault,f=void 0!==c&&c,d=[e,t,l&&[void 0,e[0]],u&&[void 0,t[0]],f&&n,f&&[void 0,n[0]],!f&&0===e.length&&["",""]];return i&&d.shift(),DS().apply(void 0,d)}function ZS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function US(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZS(Object(n),!0).forEach((function(t){HS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WS(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function GS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return VS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function VS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $S=Qi((function(e){return{buttons:e.buttons,groups:e.groups}}),(function(e){return{_set:function(){return e(yt.apply(void 0,arguments))}}}),(function(e,t,n){var r=e.buttons,o=e.groups,i=t._set,a=n.buttonId,l=WS(n,["buttonId"]),s=r[a],u=o[s.parent];return US({set:function(e,t){return i(C,a,e,t)},get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getParent,r=void 0!==n&&n,o=t.defToGroup,i=void 0===o||o,a=WS(t,["getParent","defToGroup"]);return MS(e,r?u:s,u.menu_style,r?"group":"button",US({defToGroup:i&&u},a))}},l)}))((function(e){var t=e.set,n=e.get,o=GS((0,r.useState)("button_general_general"),2),i=o[0],a=o[1],l=aa((function(e){return sh()(e,"misc.open_collapsible_group","button_general_general")}));return(0,r.useEffect)((function(){a(l||"button_general_general")}),[l]),r.createElement("div",null,r.createElement(d_,{title:at("settings.setting_categories.general"),opened:"button_general_general"===i,onSetIsOpened:function(e){return a(e?"button_general_general":"")},"data-testid":"group:general"},r.createElement("div",{className:"setting-group-title"},at("settings.button_action.title")),r.createElement("hr",null),r.createElement(jS,{actionType:n("type",{returnDefault:!0}),id:n("id"),onChange:function(e,n){return t(e,n)},action:n("action")}),r.createElement("div",{className:"setting-group-title"},at("settings.show_mobile_desktop.device_visibility")),r.createElement("hr",null),r.createElement(y_,{mobile:1==n("show_mobile"),desktop:1==n("show_desktop"),onChange:function(e,n){return t(e,n)}})),r.createElement(d_,{title:at("settings.label.title"),opened:"button_general_label"===i,onSetIsOpened:function(e){return a(e?"button_general_label":"")},"data-testid":"group:label"},r.createElement("div",{className:"setting-group-title"},at("settings.setting_categories.label")),r.createElement("hr",null),r.createElement(x_,{value:n("label"),onChange:function(e){if(""===e)return t("label","unset");t("label",e)},placeholder:""})))})),KS="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function qS(e){cancelAnimationFrame(e.id)}function YS(e,t){var n=KS();var r={id:requestAnimationFrame((function o(){KS()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var XS=-1;var JS=null;function QS(e){if(void 0===e&&(e=!1),null===JS||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?JS="positive-descending":(t.scrollLeft=1,JS=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),JS}return JS}var eO=function(e){var t=e.columnIndex;e.data;return e.rowIndex+":"+t};function tO(e){var t,n,o=e.getColumnOffset,i=e.getColumnStartIndexForOffset,a=e.getColumnStopIndexForStartIndex,l=e.getColumnWidth,s=e.getEstimatedTotalHeight,u=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,f=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,h=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,g=e.initInstanceProps,v=e.shouldResetStyleCacheOnItemSizeChange,y=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=g(n.props,(0,V.Z)((0,V.Z)(n))),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:(0,V.Z)((0,V.Z)(n)),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Hh((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=Hh((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var r,i=n.props,a=i.columnWidth,s=i.direction,u=i.rowHeight,c=n._getItemStyleCache(v&&a,v&&s,v&&u),f=e+":"+t;if(c.hasOwnProperty(f))r=c[f];else{var h=o(n.props,t,n._instanceProps),m="rtl"===s;c[f]=r={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(n.props,e,n._instanceProps),height:d(n.props,e,n._instanceProps),width:l(n.props,t,n._instanceProps)}}return r},n._getItemStyleCache=void 0,n._getItemStyleCache=Hh((function(e,t,n){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(QS()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&qS(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=YS(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}(0,Cr.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return nO(e,t),y(e),null};var n=t.prototype;return n.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,l=i.height,d=i.rowCount,p=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=function(e){if(void 0===e&&(e=!1),-1===XS||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),XS=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return XS}();void 0!==r&&(r=Math.max(0,Math.min(r,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,d-1)));var y=s(this.props,this._instanceProps),b=u(this.props,this._instanceProps)>p?v:0,w=y>l?v:0;this.scrollTo({scrollLeft:void 0!==r?c(this.props,r,n,m,this._instanceProps,w):m,scrollTop:void 0!==o?f(this.props,o,n,g,this._instanceProps,b):g})},n.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(QS()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&qS(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,o=e.columnCount,i=e.direction,a=e.height,l=e.innerRef,c=e.innerElementType,f=e.innerTagName,d=e.itemData,p=e.itemKey,h=void 0===p?eO:p,m=e.outerElementType,g=e.outerTagName,v=e.rowCount,y=e.style,b=e.useIsScrolling,w=e.width,x=this.state.isScrolling,E=this._getHorizontalRangeToRender(),_=E[0],S=E[1],O=this._getVerticalRangeToRender(),k=O[0],C=O[1],P=[];if(o>0&&v)for(var T=k;T<=C;T++)for(var A=_;A<=S;A++)P.push((0,r.createElement)(t,{columnIndex:A,data:d,isScrolling:b?x:void 0,key:h({columnIndex:A,data:d,rowIndex:T}),rowIndex:T,style:this._getItemStyle(T,A)}));var j=s(this.props,this._instanceProps),I=u(this.props,this._instanceProps);return(0,r.createElement)(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:(0,gr.Z)({position:"relative",height:a,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},y)},(0,r.createElement)(c||f||"div",{children:P,ref:l,style:{height:j,pointerEvents:x?"none":void 0,width:I}}))},n._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),f=c[0],d=c[1],p=c[2],h=c[3];this._callOnItemsRendered(a,l,f,d,s,u,p,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,y=m.scrollTop,b=m.scrollUpdateWasRequested,w=m.verticalScrollDirection;this._callOnScroll(v,y,g,w,b)}},n._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,r=e.overscanColumnsCount,o=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,f=s.scrollLeft,d=n||r||o||1;if(0===t||0===l)return[0,0,0,0];var p=i(this.props,f,this._instanceProps),h=a(this.props,p,f,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,d),g=c&&"forward"!==u?1:Math.max(1,d);return[Math.max(0,p-m),Math.max(0,Math.min(t-1,h+g)),p,h]},n._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var f=h(this.props,u,this._instanceProps),d=m(this.props,f,u,this._instanceProps),p=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,f-p),Math.max(0,Math.min(i-1,d+g)),f,d]},t}(r.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},n}var nO=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance};var rO=tO({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,l=e.columnWidth,s=e.width,u=Math.max(0,a*l-s),c=Math.min(u,t*l),f=Math.max(0,t*l-s+i+l);switch("smart"===n&&(n=r>=f-s&&r<=c+s?"auto":"center"),n){case"start":return c;case"end":return f;case"center":var d=Math.round(f+(c-f)/2);return d<Math.ceil(s/2)?0:d>u+Math.floor(s/2)?u:d;case"auto":default:return r>=f&&r<=c?r:f>c||r<f?f:c}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,l=e.height,s=e.rowCount,u=Math.max(0,s*a-l),c=Math.min(u,t*a),f=Math.max(0,t*a-l+i+a);switch("smart"===n&&(n=r>=f-l&&r<=c+l?"auto":"center"),n){case"start":return c;case"end":return f;case"center":var d=Math.round(f+(c-f)/2);return d<Math.ceil(l/2)?0:d>u+Math.floor(l/2)?u:d;case"auto":default:return r>=f&&r<=c?r:f>c||r<f?f:c}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,l=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+l-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,l=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}});function oO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return iO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iO(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var aO=Qi((function(e){return{icon_library:e.settings.icon_library,icon_library_version:e.settings.icon_library_version}}))((function(e){var t=e.selectedIcon,n=e.onSelect,o=e.icon_library,i=e.icon_library_version,a=oO((0,r.useState)(""),2),l=a[0],s=a[1],u=(0,r.useRef)(null),c=oO((0,r.useState)([]),2),f=c[0],d=c[1],p=(0,r.useMemo)((function(){return function(e,t){if(e){for(var n=[],r=t,o=0;o<r.length;o++){var i=r[o];(i.searchTerms.includes(e)||i.name.includes(e))&&n.push(i)}return n}return t}(l.toLowerCase(),f)}),[l,f]);return(0,r.useEffect)((function(){(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fontawesome",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"5.free",n=buttonizer_admin.assets+"/icon_definitions/"+e+"."+t+".json?buttonizer-icon-cache="+buttonizer_admin.version;if(L.has(n))return L.get(n);var r=N()({url:n,dataType:"json",method:"get"});return L.set(n,r),r})(o,i).then((function(e){d(e.data)}))}),[o,i]),r.createElement("div",{ref:u,style:{flexGrow:1,height:500,overflow:"hidden"},"data-testid":"icon-frame"},r.createElement("div",{className:"header"},r.createElement(As,{value:l,fullWidth:!0,variant:"outlined",inputProps:{"data-testid":"search-field"},placeholder:at("utils.icon_selector.search_icon"),onChange:function(e){s(e.target.value)}})),0===p.length&&""===l&&r.createElement("div",{style:{margin:"150px 0 0",textAlign:"center"}},r.createElement("svg",{width:"60",height:"60",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"#2f788a"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},r.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),r.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},r.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))))),r.createElement("p",{style:{fontFamily:"Arial, Helvetica, sans-serif"}},at("utils.icon_selector.loading"))),""!==l&&r.createElement("p",{className:"search-results"},r.createElement("span",null,r.createElement(Lp,{i18nKey:"utils.icon_selector.searching_for",values:{keyword:l,resultCount:p.length},components:{bold:r.createElement("strong",null)}})),r.createElement("a",{href:"#",onClick:function(e){e.preventDefault(),s("")}},at("utils.icon_selector.remove_filter"))),r.createElement("div",{className:"icon-list",style:{overflowX:"overlay"}},r.createElement(rO,{columnCount:null!==u.current&&u.current.clientWidth<600?4:8,columnWidth:null!==u.current?u.current.clientWidth<600?(u.current.clientWidth-30)/4:(u.current.clientWidth-30)/8:15,height:null!==u.current?u.current.clientHeight-70:200,rowCount:null!==u.current&&u.current.clientWidth<600?Math.max(p.length/4):Math.max(p.length/8),rowHeight:90,width:null!==u.current?u.current.clientWidth:200},(function(e){var o=e.columnIndex,i=e.rowIndex,a=e.style,l=p[i*(null!==u.current&&u.current.clientWidth<600?4:8)+o];if(!l||void 0===l||null==l.icons)return null;var s=l.icons[0];return r.createElement("div",{style:a},r.createElement("a",{href:"#",className:(0,br.Z)("icon-item",""!==t&&t===s.icon&&"current-selected"),title:l.name,onClick:function(e){e.preventDefault(),n(s.icon)}},r.createElement("div",{className:"icon-container"},r.createElement("i",{className:s.icon})),r.createElement("span",{className:"icon-name"},l.name)))}))))})),lO=n(54013),sO=n(60246),uO=n(4137),cO="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;var fO=function(e){var t=e.children,n=e.defer,o=void 0!==n&&n,i=e.fallback,a=void 0===i?null:i,l=r.useState(!1),s=l[0],u=l[1];return cO((function(){o||u(!0)}),[o]),r.useEffect((function(){o&&u(!0)}),[o]),r.createElement(r.Fragment,null,s?t:a)},dO=n(96561);function pO(e){return(pO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hO(e){return function(e){if(Array.isArray(e))return mO(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return mO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mO(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yO(e,t){return(yO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=EO(e);if(t){var o=EO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wO(this,n)}}function wO(e,t){return!t||"object"!==pO(t)&&"function"!=typeof t?xO(e):t}function xO(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EO(e){return(EO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yO(e,t)}(a,e);var t,n,o,i=bO(a);function a(){var e;gO(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _O(xO(e=i.call.apply(i,[this].concat(n))),"state",{ready:!1}),_O(xO(e),"handleRef",(function(t){e.contentDocument=t?t.node.contentDocument:null,e.contentWindow=t?t.node.contentWindow:null})),_O(xO(e),"onContentDidMount",(function(){e.setState({ready:!0,jss:(0,lO.Ue)({plugins:hO((0,sO.Z)().plugins),insertionPoint:e.contentWindow["demo-frame-jss"]}),sheetsManager:new Map,container:e.contentDocument.body})})),_O(xO(e),"onContentDidUpdate",(function(){e.contentDocument.body.dir=e.props.theme.direction})),e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.classes;return r.createElement(fO,null,r.createElement(dO.ZP,{ref:this.handleRef,className:n.root,contentDidMount:this.onContentDidMount,contentDidUpdate:this.onContentDidUpdate,head:this.props.head,style:this.props.style,width:"100%",border:0},r.createElement("div",{id:"demo-frame-jss"}),this.state.ready?r.createElement(uO.ZP,{jss:this.state.jss,sheetsManager:this.state.sheetsManager},r.cloneElement(t,{container:this.state.container})):null))}}])&&vO(t.prototype,n),o&&vO(t,o),a}(r.Component),OO=(0,wr.Z)((function(e){return{root:{backgroundColor:e.palette.background.default,flexGrow:1,height:400,border:"none",boxShadow:e.shadows[1]}}}),{withTheme:!0})(SO);function kO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return CO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CO(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function PO(e){var t=e.onClose,n=e.startingValue,o=e.dialogOpened,i=void 0!==o&&o,a=e.memoizedStylesheet,l=kO((0,r.useState)(n),2),s=l[0],u=l[1],c=function(e,n){t("confirm"===e&&n)};return(0,r.useEffect)((function(){u(n)}),[n]),r.createElement(ma,{open:i,onClose:function(){return c("cancel")},maxWidth:"md",fullWidth:!0,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},r.createElement(va,{id:"alert-dialog-title"},at("utils.icon_selector.title")),r.createElement(ba,null,r.createElement(xa,{id:"alert-dialog-description",component:"div"},i&&r.createElement(OO,{head:r.createElement(r.Fragment,null,r.createElement("style",null,"\nbody {\n margin: 0;\n display: flex;\n overflow: hidden;\n}\n\n* {\n box-sizing: border-box;\n}\n\n.header {\n margin-bottom: 5px;\n}\n\n.icon-item {\n display: block;\n text-decoration: none;\n border: 2px solid #eeeeee;\n margin: 4px;\n height: 80px;\n color: #494949;\n font-family: sans-serif;\n border-radius: 4px;\n transition: border-color 250ms ease-in-out;\n}\n\n.icon-item:hover {\n color: #2f788a;\n border-color: #2f788a;\n}\n\n.icon-item.current-selected {\n color: #f08419;\n border-color: #f08419;\n}\n\n.icon-item .icon-container {\n height: 50px;\n line-height: 50px;\n text-align: center;\n}\n\n.icon-item .icon-container i {\n display: block;\n line-height: 50px;\n font-size: 25px;\n}\n\n.icon-item .icon-name {\n display: block;\n text-align: center;\n padding: 0 5px 10px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 13px;\n}\n\n.search-results {\n display: block;\n padding: 5px 5px 0;\n font-family: sans-serif;\n color: #333333;\n font-size: 14px;\n}\n\n.search-results a {\n text-decoration: none;\n color: #2f788a;\n}\n\n.search-results a:hover {\n text-decoration: underline;\n}\n\n.frame-content {\n width: 100%;\n}\n.frame-root {\n width: 100%;\n}\n"),a),style:{height:500,maxHeight:"calc(90vh - 180px)",boxShadow:"none",backgroundColor:"white"}},r.createElement(aO,{selectedIcon:s,onSelect:function(e){u(e)}})))),r.createElement(_a,null,r.createElement($r,{color:"primary",onClick:function(){u("unset"),c("confirm","unset")},"data-testid":"delete"},r.createElement(Il,{className:"fas fa-trash"})),r.createElement(Hr,{onClick:function(){return c("cancel",s)},color:"primary"},at("modal.cancel")),r.createElement(Hr,{onClick:function(){return c("confirm",s)},color:"primary"},at("common.select"))))}function TO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return AO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AO(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jO=Qi((function(e){return{icon_library:e.settings.icon_library,icon_library_version:e.settings.icon_library_version,icon_library_code:e.settings.icon_library_code}}))((function(e){var t=e.value,n=void 0===t?"":t,o=e.onChange,i=e.hoverDisabled,a=void 0!==i&&i,l=e.icon_library,s=e.icon_library_code,u=e.icon_library_version,c=TO((0,r.useState)(!1),2),f=c[0],d=c[1],p=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fontawesome",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"5.free",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return"fontawesome"===e&&"5.free"===t?r.createElement("link",{type:"text/css",rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/"+buttonizer_admin.fontawesome_current_version+"/css/all.min.css",crossOrigin:"anonymous"}):"fontawesome"===e&&"5.paid"===t?r.createElement("link",{type:"text/css",rel:"stylesheet",href:"https://"+("5.paid"===t?"pro":"use")+".fontawesome.com/releases/v"+buttonizer_admin.fontawesome_current_version+"/css/all.css",crossOrigin:"anonymous",integrity:"5.paid"===t&&null!==n?n:null}):"fontawesome"===e&&"4.7.0"===t?r.createElement("link",{type:"text/css",rel:"stylesheet",href:"https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css",integrity:""}):void 0}(l,u,s)}),[l,u,s]),h=function(e){a?app.showPremiumDialog(e.currentTarget):d(!0)};return r.createElement(m_,{title:at("settings.icon.title"),className:"form-icon-selector"},r.createElement("div",{className:"selector",onClick:function(e){return h(e)}},r.createElement("div",{className:"viewer",style:{margin:0,cursor:"pointer",userSelect:"none"}},r.createElement(OO,{head:r.createElement(r.Fragment,null,r.createElement("style",null,"\nbody {\n margin: 0;\n background-color: #dddddd;\n color: white;\n border-radius: 0 0 4px 4px;\n text-align: center;\n}\n"),p)},r.createElement("div",{onClick:function(e){return h(e)},style:{height:"65px",textAlign:"center",lineHeight:"65px",color:"".concat(a?"#fff":"#2f788a"," !important"),fontSize:"30px"}},r.createElement("i",{className:n})))),r.createElement(Hr,{disabled:a,"data-testid":"setting:open-icon-picker",onClick:function(e){return h(e)},color:"primary",component:"span",variant:"contained"},at("settings.icon.select"))),r.createElement(PO,{memoizedStylesheet:p,onClose:function(e){e&&o(e),d(!1)},startingValue:n,dialogOpened:f}))})),IO=n(79941),RO=function(e,t,n,r,o){var i=o.clientWidth,a=o.clientHeight,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=l-(o.getBoundingClientRect().left+window.pageXOffset),c=s-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var f=void 0;if(f=c<0?0:c>a?1:Math.round(100*c/a)/100,t.a!==f)return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}else{var d=void 0;if(r!==(d=u<0?0:u>i?1:Math.round(100*u/i)/100))return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}return null},NO={},DO=function(e,t,n,r){var o=e+"-"+t+"-"+n+(r?"-server":"");if(NO[o])return NO[o];var i=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var i=o.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,o.width,o.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),o.toDataURL()):null}(e,t,n,r);return NO[o]=i,i},MO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LO=function(e){var t=e.white,n=e.grey,o=e.size,i=e.renderers,a=e.borderRadius,l=e.boxShadow,s=e.children,u=(0,IO.default)({default:{grid:{borderRadius:a,boxShadow:l,absolute:"0px 0px 0px 0px",background:"url("+DO(t,n,o,i.canvas)+") center left"}}});return(0,r.isValidElement)(s)?r.cloneElement(s,MO({},s.props,{style:MO({},s.props.style,u.grid)})):r.createElement("div",{style:u.grid})};LO.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var FO=LO,zO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BO=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function ZO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UO(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var HO=function(e){function t(){var e,n,r;ZO(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=UO(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleChange=function(e){var t=RO(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},UO(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),BO(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,IO.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:zO({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return r.createElement("div",{style:n.alpha},r.createElement("div",{style:n.checkboard},r.createElement(FO,{renderers:this.props.renderers})),r.createElement("div",{style:n.gradient}),r.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("div",{style:n.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:n.slider}))))}}]),t}(r.PureComponent||r.Component),WO=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var GO=[38,40],VO=1,$O=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,GO.indexOf(t)>-1)){var o=n.getArrowOffset(),i=38===e.keyCode?r+o:r-o;n.setUpdatedValue(i,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+VO++,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),WO(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,IO.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return r.createElement("div",{style:t.wrap},r.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?r.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(r.PureComponent||r.Component),KO=function(e,t,n,r){var o=r.clientWidth,i=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c=void 0;if(u<0)c=359;else if(u>i)c=0;else{c=360*(-100*u/i+100)/100}if(n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var f=void 0;if(s<0)f=0;else if(s>o)f=359;else{f=360*(100*s/o)/100}if(n.h!==f)return{h:f,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},qO=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function YO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XO(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var JO=function(e){function t(){var e,n,r;YO(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=XO(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleChange=function(e){var t=KO(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},XO(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),qO(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,o=(0,IO.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return r.createElement("div",{style:o.hue},r.createElement("div",{className:"hue-"+n,style:o.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),r.createElement("div",{style:o.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:o.slider}))))}}]),t}(r.PureComponent||r.Component);var QO=function(){this.__data__=[],this.size=0};var ek=function(e,t){return e===t||e!=e&&t!=t};var tk=function(e,t){for(var n=e.length;n--;)if(ek(e[n][0],t))return n;return-1},nk=Array.prototype.splice;var rk=function(e){var t=this.__data__,n=tk(t,e);return!(n<0)&&(n==t.length-1?t.pop():nk.call(t,n,1),--this.size,!0)};var ok=function(e){var t=this.__data__,n=tk(t,e);return n<0?void 0:t[n][1]};var ik=function(e){return tk(this.__data__,e)>-1};var ak=function(e,t){var n=this.__data__,r=tk(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function lk(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}lk.prototype.clear=QO,lk.prototype.delete=rk,lk.prototype.get=ok,lk.prototype.has=ik,lk.prototype.set=ak;var sk=lk;var uk=function(){this.__data__=new sk,this.size=0};var ck=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var fk=function(e){return this.__data__.get(e)};var dk=function(e){return this.__data__.has(e)},pk="object"==typeof global&&global&&global.Object===Object&&global,hk="object"==typeof self&&self&&self.Object===Object&&self,mk=pk||hk||Function("return this")(),gk=mk.Symbol,vk=Object.prototype,yk=vk.hasOwnProperty,bk=vk.toString,wk=gk?gk.toStringTag:void 0;var xk=function(e){var t=yk.call(e,wk),n=e[wk];try{e[wk]=void 0;var r=!0}catch(e){}var o=bk.call(e);return r&&(t?e[wk]=n:delete e[wk]),o},Ek=Object.prototype.toString;var _k=function(e){return Ek.call(e)},Sk=gk?gk.toStringTag:void 0;var Ok=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Sk&&Sk in Object(e)?xk(e):_k(e)};var kk=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var Ck,Pk=function(e){if(!kk(e))return!1;var t=Ok(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Tk=mk["__core-js_shared__"],Ak=(Ck=/[^.]+$/.exec(Tk&&Tk.keys&&Tk.keys.IE_PROTO||""))?"Symbol(src)_1."+Ck:"";var jk=function(e){return!!Ak&&Ak in e},Ik=Function.prototype.toString;var Rk=function(e){if(null!=e){try{return Ik.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Nk=/^\[object .+?Constructor\]$/,Dk=Function.prototype,Mk=Object.prototype,Lk=Dk.toString,Fk=Mk.hasOwnProperty,zk=RegExp("^"+Lk.call(Fk).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Bk=function(e){return!(!kk(e)||jk(e))&&(Pk(e)?zk:Nk).test(Rk(e))};var Zk=function(e,t){return null==e?void 0:e[t]};var Uk=function(e,t){var n=Zk(e,t);return Bk(n)?n:void 0},Hk=Uk(mk,"Map"),Wk=Uk(Object,"create");var Gk=function(){this.__data__=Wk?Wk(null):{},this.size=0};var Vk=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},$k=Object.prototype.hasOwnProperty;var Kk=function(e){var t=this.__data__;if(Wk){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return $k.call(t,e)?t[e]:void 0},qk=Object.prototype.hasOwnProperty;var Yk=function(e){var t=this.__data__;return Wk?void 0!==t[e]:qk.call(t,e)};var Xk=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Wk&&void 0===t?"__lodash_hash_undefined__":t,this};function Jk(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Jk.prototype.clear=Gk,Jk.prototype.delete=Vk,Jk.prototype.get=Kk,Jk.prototype.has=Yk,Jk.prototype.set=Xk;var Qk=Jk;var eC=function(){this.size=0,this.__data__={hash:new Qk,map:new(Hk||sk),string:new Qk}};var tC=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var nC=function(e,t){var n=e.__data__;return tC(t)?n["string"==typeof t?"string":"hash"]:n.map};var rC=function(e){var t=nC(this,e).delete(e);return this.size-=t?1:0,t};var oC=function(e){return nC(this,e).get(e)};var iC=function(e){return nC(this,e).has(e)};var aC=function(e,t){var n=nC(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function lC(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}lC.prototype.clear=eC,lC.prototype.delete=rC,lC.prototype.get=oC,lC.prototype.has=iC,lC.prototype.set=aC;var sC=lC;var uC=function(e,t){var n=this.__data__;if(n instanceof sk){var r=n.__data__;if(!Hk||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new sC(r)}return n.set(e,t),this.size=n.size,this};function cC(e){var t=this.__data__=new sk(e);this.size=t.size}cC.prototype.clear=uk,cC.prototype.delete=ck,cC.prototype.get=fk,cC.prototype.has=dk,cC.prototype.set=uC;var fC=cC,dC=function(){try{var e=Uk(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var pC=function(e,t,n){"__proto__"==t&&dC?dC(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var hC=function(e,t,n){(void 0!==n&&!ek(e[t],n)||void 0===n&&!(t in e))&&pC(e,t,n)};var mC=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===n(i[s],s,i))break}return t}}(),gC="object"==typeof exports&&exports&&!exports.nodeType&&exports,vC=gC&&"object"==typeof module&&module&&!module.nodeType&&module,yC=vC&&vC.exports===gC?mk.Buffer:void 0,bC=yC?yC.allocUnsafe:void 0;var wC=function(e,t){if(t)return e.slice();var n=e.length,r=bC?bC(n):new e.constructor(n);return e.copy(r),r},xC=mk.Uint8Array;var EC=function(e){var t=new e.constructor(e.byteLength);return new xC(t).set(new xC(e)),t};var _C=function(e,t){var n=t?EC(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var SC=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},OC=Object.create,kC=function(){function e(){}return function(t){if(!kk(t))return{};if(OC)return OC(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var CC=function(e,t){return function(n){return e(t(n))}},PC=CC(Object.getPrototypeOf,Object),TC=Object.prototype;var AC=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||TC)};var jC=function(e){return"function"!=typeof e.constructor||AC(e)?{}:kC(PC(e))};var IC=function(e){return null!=e&&"object"==typeof e};var RC=function(e){return IC(e)&&"[object Arguments]"==Ok(e)},NC=Object.prototype,DC=NC.hasOwnProperty,MC=NC.propertyIsEnumerable,LC=RC(function(){return arguments}())?RC:function(e){return IC(e)&&DC.call(e,"callee")&&!MC.call(e,"callee")},FC=Array.isArray;var zC=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var BC=function(e){return null!=e&&zC(e.length)&&!Pk(e)};var ZC=function(e){return IC(e)&&BC(e)};var UC=function(){return!1},HC="object"==typeof exports&&exports&&!exports.nodeType&&exports,WC=HC&&"object"==typeof module&&module&&!module.nodeType&&module,GC=WC&&WC.exports===HC?mk.Buffer:void 0,VC=(GC?GC.isBuffer:void 0)||UC,$C=Function.prototype,KC=Object.prototype,qC=$C.toString,YC=KC.hasOwnProperty,XC=qC.call(Object);var JC=function(e){if(!IC(e)||"[object Object]"!=Ok(e))return!1;var t=PC(e);if(null===t)return!0;var n=YC.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&qC.call(n)==XC},QC={};QC["[object Float32Array]"]=QC["[object Float64Array]"]=QC["[object Int8Array]"]=QC["[object Int16Array]"]=QC["[object Int32Array]"]=QC["[object Uint8Array]"]=QC["[object Uint8ClampedArray]"]=QC["[object Uint16Array]"]=QC["[object Uint32Array]"]=!0,QC["[object Arguments]"]=QC["[object Array]"]=QC["[object ArrayBuffer]"]=QC["[object Boolean]"]=QC["[object DataView]"]=QC["[object Date]"]=QC["[object Error]"]=QC["[object Function]"]=QC["[object Map]"]=QC["[object Number]"]=QC["[object Object]"]=QC["[object RegExp]"]=QC["[object Set]"]=QC["[object String]"]=QC["[object WeakMap]"]=!1;var eP=function(e){return IC(e)&&zC(e.length)&&!!QC[Ok(e)]};var tP=function(e){return function(t){return e(t)}},nP="object"==typeof exports&&exports&&!exports.nodeType&&exports,rP=nP&&"object"==typeof module&&module&&!module.nodeType&&module,oP=rP&&rP.exports===nP&&pk.process,iP=function(){try{var e=rP&&rP.require&&rP.require("util").types;return e||oP&&oP.binding&&oP.binding("util")}catch(e){}}(),aP=iP&&iP.isTypedArray,lP=aP?tP(aP):eP;var sP=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},uP=Object.prototype.hasOwnProperty;var cP=function(e,t,n){var r=e[t];uP.call(e,t)&&ek(r,n)&&(void 0!==n||t in e)||pC(e,t,n)};var fP=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],s=r?r(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),o?pC(n,l,s):cP(n,l,s)}return n};var dP=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},pP=/^(?:0|[1-9]\d*)$/;var hP=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&pP.test(e))&&e>-1&&e%1==0&&e<t},mP=Object.prototype.hasOwnProperty;var gP=function(e,t){var n=FC(e),r=!n&&LC(e),o=!n&&!r&&VC(e),i=!n&&!r&&!o&&lP(e),a=n||r||o||i,l=a?dP(e.length,String):[],s=l.length;for(var u in e)!t&&!mP.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||hP(u,s))||l.push(u);return l};var vP=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},yP=Object.prototype.hasOwnProperty;var bP=function(e){if(!kk(e))return vP(e);var t=AC(e),n=[];for(var r in e)("constructor"!=r||!t&&yP.call(e,r))&&n.push(r);return n};var wP=function(e){return BC(e)?gP(e,!0):bP(e)};var xP=function(e){return fP(e,wP(e))};var EP=function(e,t,n,r,o,i,a){var l=sP(e,n),s=sP(t,n),u=a.get(s);if(u)hC(e,n,u);else{var c=i?i(l,s,n+"",e,t,a):void 0,f=void 0===c;if(f){var d=FC(s),p=!d&&VC(s),h=!d&&!p&&lP(s);c=s,d||p||h?FC(l)?c=l:ZC(l)?c=SC(l):p?(f=!1,c=wC(s,!0)):h?(f=!1,c=_C(s,!0)):c=[]:JC(s)||LC(s)?(c=l,LC(l)?c=xP(l):kk(l)&&!Pk(l)||(c=jC(s))):f=!1}f&&(a.set(s,c),o(c,s,r,i,a),a.delete(s)),hC(e,n,c)}};var _P=function e(t,n,r,o,i){t!==n&&mC(n,(function(a,l){if(i||(i=new fC),kk(a))EP(t,n,l,r,e,o,i);else{var s=o?o(sP(t,l),a,l+"",t,n,i):void 0;void 0===s&&(s=a),hC(t,l,s)}}),wP)};var SP=function(e){return e};var OP=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},kP=Math.max;var CP=function(e,t,n){return t=kP(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=kP(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[t]=n(a),OP(e,this,l)}};var PP=function(e){return function(){return e}},TP=dC?function(e,t){return dC(e,"toString",{configurable:!0,enumerable:!1,value:PP(t),writable:!0})}:SP,AP=Date.now;var jP=function(e){var t=0,n=0;return function(){var r=AP(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(TP);var IP=function(e,t){return jP(CP(e,t,SP),e+"")};var RP=function(e,t,n){if(!kk(n))return!1;var r=typeof t;return!!("number"==r?BC(n)&&hP(t,n.length):"string"==r&&t in n)&&ek(n[t],e)};var NP=function(e){return IP((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&RP(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,i)}return t}))}((function(e,t,n){_P(e,t,n)})),DP=function(e){var t=e.zDepth,n=e.radius,o=e.background,i=e.children,a=e.styles,l=void 0===a?{}:a,s=(0,IO.default)(NP({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:o}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},l),{"zDepth-1":1===t});return r.createElement("div",{style:s.wrap},r.createElement("div",{style:s.bg}),r.createElement("div",{style:s.content},i))};DP.propTypes={background:yr().string,zDepth:yr().oneOf([0,1,2,3,4,5]),radius:yr().number,styles:yr().object},DP.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var MP=DP,LP=function(){return mk.Date.now()},FP=/\s/;var zP=function(e){for(var t=e.length;t--&&FP.test(e.charAt(t)););return t},BP=/^\s+/;var ZP=function(e){return e?e.slice(0,zP(e)+1).replace(BP,""):e};var UP=function(e){return"symbol"==typeof e||IC(e)&&"[object Symbol]"==Ok(e)},HP=/^[-+]0x[0-9a-f]+$/i,WP=/^0b[01]+$/i,GP=/^0o[0-7]+$/i,VP=parseInt;var $P=function(e){if("number"==typeof e)return e;if(UP(e))return NaN;if(kk(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=kk(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ZP(e);var n=WP.test(e);return n||GP.test(e)?VP(e.slice(2),n?2:8):HP.test(e)?NaN:+e},KP=Math.max,qP=Math.min;var YP=function(e,t,n){var r,o,i,a,l,s,u=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function h(e){return u=e,l=setTimeout(g,t),c?p(e):a}function m(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-u>=i}function g(){var e=LP();if(m(e))return v(e);l=setTimeout(g,function(e){var n=t-(e-s);return f?qP(n,i-(e-u)):n}(e))}function v(e){return l=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=LP(),n=m(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return h(s);if(f)return clearTimeout(l),l=setTimeout(g,t),p(s)}return void 0===l&&(l=setTimeout(g,t)),a}return t=$P(t)||0,kk(n)&&(c=!!n.leading,i=(f="maxWait"in n)?KP($P(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=s=o=l=void 0},y.flush=function(){return void 0===l?a:v(LP())},y};var XP=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return kk(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),YP(e,t,{leading:r,maxWait:t,trailing:o})},JP=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var QP=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,function(e,t,n){var r=n.getBoundingClientRect(),o=r.width,i=r.height,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=a-(n.getBoundingClientRect().left+window.pageXOffset),u=l-(n.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),u<0?u=0:u>i&&(u=i);var c=s/o,f=1-u/i;return{h:t.h,s:c,v:f,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=XP((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),JP(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,o=t.white,i=t.black,a=t.pointer,l=t.circle,s=(0,IO.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:o,black:i,pointer:a,circle:l}},{custom:!!this.props.style});return r.createElement("div",{style:s.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),r.createElement("div",{style:s.white,className:"saturation-white"},r.createElement("div",{style:s.black,className:"saturation-black"}),r.createElement("div",{style:s.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:s.circle}))))}}]),t}(r.PureComponent||r.Component);var eT=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},tT=CC(Object.keys,Object),nT=Object.prototype.hasOwnProperty;var rT=function(e){if(!AC(e))return tT(e);var t=[];for(var n in Object(e))nT.call(e,n)&&"constructor"!=n&&t.push(n);return t};var oT=function(e){return BC(e)?gP(e):rT(e)};var iT=function(e,t){return function(n,r){if(null==n)return n;if(!BC(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}((function(e,t){return e&&mC(e,t,oT)}));var aT=function(e){return"function"==typeof e?e:SP};var lT=function(e,t){return(FC(e)?eT:iT)(e,aT(t))},sT=n(17621),uT=n.n(sT),cT=function(e){var t=0,n=0;return lT(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e},fT=function(e,t){var n=e.hex?uT()(e.hex):uT()(e),r=n.toHsl(),o=n.toHsv(),i=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===a&&0===i.a?"transparent":"#"+a,rgb:i,hsv:o,oldHue:e.h||t||r.h,source:e.source}},dT=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&uT()(e).isValid()},pT=function(e){if(!e)return"#fff";var t=fT(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},hT=function(e,t){var n=e.replace("°","");return uT()(t+" ("+n+")")._ok},mT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gT=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var vT=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(cT(e)){var r=fT(e,e.h||t.state.oldHue);t.setState(r),t.pro
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
+ * (C) 2017-2022 Buttonizer v2.9.0
13
  *
14
  */
15
  /*!
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
+ * (C) 2017-2022 Buttonizer v2.9.0
27
  *