Google Analytics for WordPress by MonsterInsights - Version 8.8.0

Version Description

Download this release

Release Info

Developer manejaam
Plugin Icon 128x128 Google Analytics for WordPress by MonsterInsights
Version 8.8.0
Comparing to
See all releases

Code changes from version 8.7.0 to 8.8.0

assets/css/admin-metabox.css CHANGED
@@ -1,155 +1,174 @@
1
- .monsterinsights-metabox-input-checkbox{
2
- margin-top: 15px;
3
- }
4
- .monsterinsights-metabox-input-checkbox input[disabled] {
5
- cursor: not-allowed;
6
- }
7
-
8
- .monsterinsights-metabox-helper{
9
- font-size: 12px;
10
- line-height: 120%;
11
- color: #7D7D7D;
12
- margin-top: 16.5px;
13
- }
14
-
15
- .monsterinsights-metabox-pro-badge{
16
- margin-top: 15px;
17
- padding: 15px;
18
- background: #EAFAEE;
19
- border: 1px solid #46BF40;
20
- display: flex;
21
- position: relative;
22
- line-height: 100%;
23
- }
24
-
25
- .monsterinsights-metabox-pro-badge span{
26
- color: #31862D;
27
- font-weight: bold;
28
- font-size: 13px;
29
- line-height: 100%;
30
- letter-spacing: -0.02em;
31
- padding-left: 20px;
32
- }
33
-
34
- .monsterinsights-metabox-pro-badge span svg{
35
- position: absolute;
36
- left: 15px;
37
- }
38
-
39
- .monsterinsights-metabox-pro-badge .monsterinsights-metabox-pro-badge-upgrade{
40
- text-align: right;
41
- flex: 1;
42
- }
43
-
44
- .monsterinsights-metabox-pro-badge .monsterinsights-metabox-pro-badge-upgrade a{
45
- font-size: 13px;
46
- color: #31862D;
47
- text-decoration: underline;
48
- display: block;
49
- }
50
- /*
51
- ***************************
52
- ** Page Insights in Meta **
53
- ***************************
54
- */
55
-
56
- #monsterinsights-metabox-page-insights{
57
- margin-top: 24px;
58
- }
59
- #monsterinsights_hide_page_insights{
60
- margin-top: 8px;
61
- }
62
- #monsterinsights-page-insights-content{
63
- display: none;
64
- }
65
- #monsterinsights-page-insights-content.active{
66
- display: block;
67
- }
68
- .monsterinsights-page-insights__tabs{
69
- display: grid;
70
- grid-template-columns: 1fr 1fr;
71
- }
72
- .monsterinsights-page-insights__tabs-tab{
73
- padding: 4px;
74
- color: var(--wp-admin-theme-color);
75
- font-style: normal;
76
- font-weight: 400;
77
- font-size: 13px;
78
- line-height: 16px;
79
- border-left: 1px solid transparent;
80
- border-right: 1px solid transparent;
81
- border-top: 1px solid transparent;
82
- border-bottom: 1px solid #C4C4C4;
83
- text-decoration: none;
84
- text-align: center;
85
- transition: 0.3s all ease-in-out;
86
- }
87
- .monsterinsights-page-insights__tabs-tab.active,
88
- .monsterinsights-page-insights__tabs-tab:focus{
89
- color: #2C3338;
90
- border-left: 1px solid #C4C4C4;
91
- border-right: 1px solid #C4C4C4;
92
- border-top: 1px solid #C4C4C4;
93
- border-bottom: 1px solid transparent;
94
- }
95
- .monsterinsights-page-insights__tabs-tab:focus{
96
- outline: none;
97
- -webkit-box-shadow: none;
98
- box-shadow: none;
99
- }
100
- .monsterinsights-page-insights-tabs-content{
101
- border-left: 1px solid #C4C4C4;
102
- border-right: 1px solid #C4C4C4;
103
- border-bottom: 1px solid #C4C4C4;
104
- }
105
- .monsterinsights-page-insights-tabs-content__tab{
106
- display: none;
107
- transition: 0.3s all ease-in-out;
108
- }
109
- .monsterinsights-page-insights-tabs-content__tab.active{
110
- display: block;
111
- }
112
- .monsterinsights-page-insights-tabs-content__tab-items{
113
- display: grid;
114
- grid-template-columns: 1fr 1fr;
115
- padding: 15px;
116
- }
117
- .monsterinsights-page-insights-tabs-content__tab-item{
118
- padding: 16px;
119
- }
120
- .monsterinsights-page-insights-tabs-content__tab-item__result{
121
- font-style: normal;
122
- font-weight: 500;
123
- font-size: 20px;
124
- line-height: 24px;
125
- color: #3C434A;
126
- position: relative;
127
- }
128
- .lite .monsterinsights-page-insights-tabs-content__tab-item__result span{
129
- filter: blur(3px);
130
- }
131
- .lite .monsterinsights-page-insights-tabs-content__tab-item__result:after{
132
- content: '';
133
- width: 10px;
134
- height: 14px;
135
- background: url("../images/restricted.svg") no-repeat center center;
136
- position: absolute;
137
- left: calc(40% - 5px);
138
- top: calc(50% - 7px);
139
- }
140
- .monsterinsights-page-insights-tabs-content__tab-item__title{
141
- font-style: normal;
142
- font-weight: 400;
143
- font-size: 12px;
144
- line-height: 14px;
145
- color: #7D7D7D;
146
- margin-top: 4px;
147
- }
148
- .monsterinsights-insights-draft{
149
- font-size: 12px;
150
- font-style: normal;
151
- padding: 16px;
152
- border: 1px solid #C4C4C4;
153
- margin-top: 8px;
154
- color: rgb(117, 117, 117);
155
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .monsterinsights-metabox-input-checkbox {
2
+ margin-top: 15px;
3
+ }
4
+
5
+ .monsterinsights-metabox-input-checkbox input[disabled] {
6
+ cursor: not-allowed;
7
+ }
8
+
9
+ .monsterinsights-metabox-helper {
10
+ font-size: 12px;
11
+ line-height: 120%;
12
+ color: #7D7D7D;
13
+ margin-top: 16.5px;
14
+ }
15
+
16
+ .monsterinsights-metabox-pro-badge {
17
+ margin-top: 15px;
18
+ padding: 15px;
19
+ background: #EAFAEE;
20
+ border: 1px solid #46BF40;
21
+ display: flex;
22
+ position: relative;
23
+ line-height: 100%;
24
+ }
25
+
26
+ .monsterinsights-metabox-pro-badge span {
27
+ color: #31862D;
28
+ font-weight: bold;
29
+ font-size: 13px;
30
+ line-height: 100%;
31
+ letter-spacing: -0.02em;
32
+ padding-left: 20px;
33
+ }
34
+
35
+ .monsterinsights-metabox-pro-badge span svg {
36
+ position: absolute;
37
+ left: 15px;
38
+ }
39
+
40
+ .monsterinsights-metabox-pro-badge .monsterinsights-metabox-pro-badge-upgrade {
41
+ text-align: right;
42
+ flex: 1;
43
+ }
44
+
45
+ .monsterinsights-metabox-pro-badge .monsterinsights-metabox-pro-badge-upgrade a {
46
+ font-size: 13px;
47
+ color: #31862D;
48
+ text-decoration: underline;
49
+ display: block;
50
+ }
51
+
52
+ /*
53
+ ***************************
54
+ ** Page Insights in Meta **
55
+ ***************************
56
+ */
57
+
58
+ #monsterinsights-metabox-page-insights {
59
+ margin-top: 24px;
60
+ }
61
+
62
+ #monsterinsights_hide_page_insights {
63
+ margin-top: 8px;
64
+ }
65
+
66
+ #monsterinsights-page-insights-content {
67
+ display: none;
68
+ }
69
+
70
+ #monsterinsights-page-insights-content.active {
71
+ display: block;
72
+ }
73
+
74
+ .monsterinsights-page-insights__tabs {
75
+ display: grid;
76
+ grid-template-columns: 1fr 1fr;
77
+ }
78
+
79
+ .monsterinsights-page-insights__tabs-tab {
80
+ padding: 4px;
81
+ color: var(--wp-admin-theme-color);
82
+ font-style: normal;
83
+ font-weight: 400;
84
+ font-size: 13px;
85
+ line-height: 16px;
86
+ border-left: 1px solid transparent;
87
+ border-right: 1px solid transparent;
88
+ border-top: 1px solid transparent;
89
+ border-bottom: 1px solid #C4C4C4;
90
+ text-decoration: none;
91
+ text-align: center;
92
+ transition: 0.3s all ease-in-out;
93
+ }
94
+
95
+ .monsterinsights-page-insights__tabs-tab.active,
96
+ .monsterinsights-page-insights__tabs-tab:focus {
97
+ color: #2C3338;
98
+ border-left: 1px solid #C4C4C4;
99
+ border-right: 1px solid #C4C4C4;
100
+ border-top: 1px solid #C4C4C4;
101
+ border-bottom: 1px solid transparent;
102
+ }
103
+
104
+ .monsterinsights-page-insights__tabs-tab:focus {
105
+ outline: none;
106
+ -webkit-box-shadow: none;
107
+ box-shadow: none;
108
+ }
109
+
110
+ .monsterinsights-page-insights-tabs-content {
111
+ border-left: 1px solid #C4C4C4;
112
+ border-right: 1px solid #C4C4C4;
113
+ border-bottom: 1px solid #C4C4C4;
114
+ }
115
+
116
+ .monsterinsights-page-insights-tabs-content__tab {
117
+ display: none;
118
+ transition: 0.3s all ease-in-out;
119
+ }
120
+
121
+ .monsterinsights-page-insights-tabs-content__tab.active {
122
+ display: block;
123
+ }
124
+
125
+ .monsterinsights-page-insights-tabs-content__tab-items {
126
+ display: grid;
127
+ grid-template-columns: 1fr 1fr;
128
+ padding: 15px;
129
+ }
130
+
131
+ .monsterinsights-page-insights-tabs-content__tab-item {
132
+ padding: 16px;
133
+ }
134
+
135
+ .monsterinsights-page-insights-tabs-content__tab-item__result {
136
+ font-style: normal;
137
+ font-weight: 500;
138
+ font-size: 20px;
139
+ line-height: 24px;
140
+ color: #3C434A;
141
+ position: relative;
142
+ }
143
+
144
+ .lite .monsterinsights-page-insights-tabs-content__tab-item__result span {
145
+ filter: blur(3px);
146
+ }
147
+
148
+ .lite .monsterinsights-page-insights-tabs-content__tab-item__result:after {
149
+ content: '';
150
+ width: 10px;
151
+ height: 14px;
152
+ background: url("../images/restricted.svg") no-repeat center center;
153
+ position: absolute;
154
+ left: calc(40% - 5px);
155
+ top: calc(50% - 7px);
156
+ }
157
+
158
+ .monsterinsights-page-insights-tabs-content__tab-item__title {
159
+ font-style: normal;
160
+ font-weight: 400;
161
+ font-size: 12px;
162
+ line-height: 14px;
163
+ color: #7D7D7D;
164
+ margin-top: 4px;
165
+ }
166
+
167
+ .monsterinsights-insights-draft {
168
+ font-size: 12px;
169
+ font-style: normal;
170
+ padding: 16px;
171
+ border: 1px solid #C4C4C4;
172
+ margin-top: 8px;
173
+ color: rgb(117, 117, 117);
174
+ }
assets/css/admin-widget-settings.css CHANGED
@@ -1,218 +1,845 @@
1
  .monsterinsights-label-block,
2
  .monsterinsights-radio-icons {
3
- display: block;
4
  }
5
 
6
  .monsterinsights-radio-icons {
7
- margin: 4px 0;
8
  }
9
 
10
  .monsterinsights-radio-icons * {
11
- box-sizing: border-box;
12
  }
13
 
14
  .monsterinsights-radio-icons > label {
15
- display: inline-block;
16
  }
17
 
18
  .monsterinsights-radio-icons input[type="radio"] {
19
- visibility: hidden;
20
- display: none;
21
  }
22
 
23
  .monsterinsights-wide-column {
24
- display: -webkit-box;
25
- display: -ms-flexbox;
26
- display: flex;
27
- border: 1px solid #b7c9d9;
28
- border-radius: 5px;
29
- width: 40px;
30
- height: 40px;
31
- padding: 10px 5px;
32
- -ms-flex-flow: wrap;
33
- flex-flow: wrap;
34
- -webkit-box-pack: justify;
35
- -ms-flex-pack: justify;
36
- justify-content: space-between;
37
- margin-right: 4px;
38
  }
39
 
40
  .monsterinsights-wide-column > span {
41
- background: #99a1b2;
42
- display: inline-block;
43
- width: 8px;
44
- height: 8px;
45
- border-radius: 1px;
46
- margin-bottom: 2px;
47
  }
48
 
49
  .monsterinsights-wide-column.monsterinsights-wide-column-two > span {
50
- width: 12px;
51
  }
52
 
53
  .monsterinsights-radio-icons input[type="radio"]:checked + .monsterinsights-wide-column {
54
- border: 2px solid #338eef;
55
- background: #ecf4fe;
56
- padding: 9px 4px;
57
  }
58
 
59
  .monsterinsights-radio-icons input[type="radio"]:checked + .monsterinsights-wide-column > span {
60
- background: #338eef;
61
  }
62
 
63
  .monsterinsights-wide-column.monsterinsights-wide-column-one > span {
64
- width: 100%;
65
  }
66
 
67
  .monsterinsights-field-description {
68
- font-family: Helvetica Neue, serif;
69
- font-style: italic;
70
- font-weight: normal;
71
- font-size: 13px;
72
- line-height: 1.5%;
73
- color: #545C66;
74
  }
75
 
76
  /** SELECT2 Styles **/
77
- .select300-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select300-container .select300-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select300-container .select300-selection--single .select300-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select300-container .select300-selection--single .select300-selection__clear{position:relative}.select300-container[dir="rtl"] .select300-selection--single .select300-selection__rendered{padding-right:8px;padding-left:20px}.select300-container .select300-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select300-container .select300-selection--multiple .select300-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select300-container .select300-search--inline{float:left}.select300-container .select300-search--inline .select300-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select300-container .select300-search--inline .select300-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select300-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select300-results{display:block}.select300-results__options{list-style:none;margin:0;padding:0}.select300-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select300-results__option[aria-selected]{cursor:pointer}.select300-container--open .select300-dropdown{left:0}.select300-container--open .select300-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select300-container--open .select300-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select300-search--dropdown{display:block;padding:4px}.select300-search--dropdown .select300-search__field{padding:4px;width:100%;box-sizing:border-box}.select300-search--dropdown .select300-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select300-search--dropdown.select300-search--hide{display:none}.select300-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select300-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select300-container--default .select300-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select300-container--default .select300-selection--single .select300-selection__rendered{color:#444;line-height:28px}.select300-container--default .select300-selection--single .select300-selection__clear{cursor:pointer;float:right;font-weight:bold}.select300-container--default .select300-selection--single .select300-selection__placeholder{color:#999}.select300-container--default .select300-selection--single .select300-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select300-container--default .select300-selection--single .select300-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select300-container--default[dir="rtl"] .select300-selection--single .select300-selection__clear{float:left}.select300-container--default[dir="rtl"] .select300-selection--single .select300-selection__arrow{left:1px;right:auto}.select300-container--default.select300-container--disabled .select300-selection--single{background-color:#eee;cursor:default}.select300-container--default.select300-container--disabled .select300-selection--single .select300-selection__clear{display:none}.select300-container--default.select300-container--open .select300-selection--single .select300-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select300-container--default .select300-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select300-container--default .select300-selection--multiple .select300-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select300-container--default .select300-selection--multiple .select300-selection__rendered li{list-style:none}.select300-container--default .select300-selection--multiple .select300-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select300-container--default .select300-selection--multiple .select300-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select300-container--default .select300-selection--multiple .select300-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select300-container--default .select300-selection--multiple .select300-selection__choice__remove:hover{color:#333}.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice,.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-search--inline{float:right}.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice{margin-left:5px;margin-right:auto}.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice__remove{margin-left:2px;margin-right:auto}.select300-container--default.select300-container--focus .select300-selection--multiple{border:solid black 1px;outline:0}.select300-container--default.select300-container--disabled .select300-selection--multiple{background-color:#eee;cursor:default}.select300-container--default.select300-container--disabled .select300-selection__choice__remove{display:none}.select300-container--default.select300-container--open.select300-container--above .select300-selection--single,.select300-container--default.select300-container--open.select300-container--above .select300-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select300-container--default.select300-container--open.select300-container--below .select300-selection--single,.select300-container--default.select300-container--open.select300-container--below .select300-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select300-container--default .select300-search--dropdown .select300-search__field{border:1px solid #aaa}.select300-container--default .select300-search--inline .select300-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select300-container--default .select300-results>.select300-results__options{max-height:200px;overflow-y:auto}.select300-container--default .select300-results__option[role=group]{padding:0}.select300-container--default .select300-results__option[aria-disabled=true]{color:#999}.select300-container--default .select300-results__option[aria-selected=true]{background-color:#ddd}.select300-container--default .select300-results__option .select300-results__option{padding-left:1em}.select300-container--default .select300-results__option .select300-results__option .select300-results__group{padding-left:0}.select300-container--default .select300-results__option .select300-results__option .select300-results__option{margin-left:-1em;padding-left:2em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-2em;padding-left:3em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-3em;padding-left:4em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-4em;padding-left:5em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-5em;padding-left:6em}.select300-container--default .select300-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select300-container--default .select300-results__group{cursor:default;display:block;padding:6px}.select300-container--classic .select300-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select300-container--classic .select300-selection--single:focus{border:1px solid #5897fb}.select300-container--classic .select300-selection--single .select300-selection__rendered{color:#444;line-height:28px}.select300-container--classic .select300-selection--single .select300-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select300-container--classic .select300-selection--single .select300-selection__placeholder{color:#999}.select300-container--classic .select300-selection--single .select300-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select300-container--classic .select300-selection--single .select300-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select300-container--classic[dir="rtl"] .select300-selection--single .select300-selection__clear{float:left}.select300-container--classic[dir="rtl"] .select300-selection--single .select300-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select300-container--classic.select300-container--open .select300-selection--single{border:1px solid #5897fb}.select300-container--classic.select300-container--open .select300-selection--single .select300-selection__arrow{background:transparent;border:none}.select300-container--classic.select300-container--open .select300-selection--single .select300-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select300-container--classic.select300-container--open.select300-container--above .select300-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select300-container--classic.select300-container--open.select300-container--below .select300-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select300-container--classic .select300-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select300-container--classic .select300-selection--multiple:focus{border:1px solid #5897fb}.select300-container--classic .select300-selection--multiple .select300-selection__rendered{list-style:none;margin:0;padding:0 5px}.select300-container--classic .select300-selection--multiple .select300-selection__clear{display:none}.select300-container--classic .select300-selection--multiple .select300-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select300-container--classic .select300-selection--multiple .select300-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select300-container--classic .select300-selection--multiple .select300-selection__choice__remove:hover{color:#555}.select300-container--classic[dir="rtl"] .select300-selection--multiple .select300-selection__choice{float:right;margin-left:5px;margin-right:auto}.select300-container--classic[dir="rtl"] .select300-selection--multiple .select300-selection__choice__remove{margin-left:2px;margin-right:auto}.select300-container--classic.select300-container--open .select300-selection--multiple{border:1px solid #5897fb}.select300-container--classic.select300-container--open.select300-container--above .select300-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select300-container--classic.select300-container--open.select300-container--below .select300-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select300-container--classic .select300-search--dropdown .select300-search__field{border:1px solid #aaa;outline:0}.select300-container--classic .select300-search--inline .select300-search__field{outline:0;box-shadow:none}.select300-container--classic .select300-dropdown{background-color:#fff;border:1px solid transparent}.select300-container--classic .select300-dropdown--above{border-bottom:none}.select300-container--classic .select300-dropdown--below{border-top:none}.select300-container--classic .select300-results>.select300-results__options{max-height:200px;overflow-y:auto}.select300-container--classic .select300-results__option[role=group]{padding:0}.select300-container--classic .select300-results__option[aria-disabled=true]{color:grey}.select300-container--classic .select300-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select300-container--classic .select300-results__group{cursor:default;display:block;padding:6px}.select300-container--classic.select300-container--open .select300-dropdown{border-color:#5897fb}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
 
79
  .select300-container {
80
- display: block;
81
- width: 100% !important;
82
  }
83
 
84
  .select300-container--default .select300-selection--multiple .select300-selection__choice {
85
- border-radius: 20px;
86
- background: #E2E4E7;
87
- border: none;
88
- color: #32373C;
89
- padding-left: 8px;
90
- font-family: Helvetica Neue, serif;
91
- font-style: normal;
92
- font-weight: normal;
93
- font-size: 13px;
94
- line-height: 24px;
95
  }
96
 
97
  .select300-container--default .select300-selection--multiple .select300-selection__choice__remove {
98
- line-height: 1;
99
- width: 16px;
100
- height: 16px;
101
- float: right;
102
- display: block;
103
- border-radius: 50%;
104
- background-color: #555D66;
105
- color: #E2E4E7;
106
- text-align: center;
107
- margin: 4px 0px 4px 8px;
108
- font-size: 14px;
109
- box-sizing: border-box;
110
- padding-top: 0;
111
- padding-left: 0;
112
  }
113
 
114
  .select300-container--default .select300-selection--multiple .select300-selection__choice__remove:hover {
115
- background-color: #333;
116
- color: #E2E4E7;
117
  }
118
 
119
  .monsterinsights-widget-theme-preview {
120
- background: #F0F2F4;
121
- border-radius: 5px;
122
- padding: 8px 8px 8px 18px;
123
- display: flex;
124
- font-family: Helvetica Neue, serif;
125
- font-style: normal;
126
- font-weight: normal;
127
- font-size: 14px;
128
- line-height: 1;
129
- color: #32373C;
130
- align-items: center;
131
- justify-content: space-between;
132
  }
133
 
134
  .monsterinsights-widget-theme-preview-icon,
135
  .monsterinsights-products-theme-preview-icon {
136
- width: 74px;
137
- height: 46px;
138
- background-image: url(data:image/png;base64,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);
139
- background-repeat: no-repeat;
140
- background-position: 0 0;
141
- background-size: 392px;
142
- display: inline-block;
143
  }
144
 
145
  .monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-beta {
146
- background-position-x: -212px;
147
  }
148
 
149
  .monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-charlie {
150
- background-position-x: -106px;
151
  }
152
 
153
  .monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-delta {
154
- height: 43px;
155
- background-position: -318px 0;
156
  }
157
 
158
  .monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-echo {
159
- height: 76px;
160
- background-position: 0 -73px;
161
  }
162
 
163
  .monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-foxtrot {
164
- background-position: -106px -90px;
165
- height: 41px;
166
  }
167
 
168
  .monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-golf {
169
- background-position: -212px -83px;
170
- height: 56px;
171
  }
172
 
173
  .monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-hotel {
174
- height: 50px;
175
- background-position: -318px -86px;
176
  }
177
 
178
  .monsterinsights-products-theme-preview-icon {
179
- background-image: url('data:image/png;base64,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');
180
- width: 74px;
181
- height: 39px;
182
- background-size: 188px;
183
  }
184
 
185
  .monsterinsights-products-theme-preview-icon.monsterinsights-products-theme-preview-icon-alpha {
186
- background-position: 0 0;
187
  }
188
 
189
  .monsterinsights-products-theme-preview-icon.monsterinsights-products-theme-preview-icon-beta {
190
- background-position: -114px 0;
191
- height: 65px;
192
  }
193
 
194
  .monsterinsights-products-theme-preview-icon.monsterinsights-products-theme-preview-icon-charlie {
195
- background-position: 0 -102px;
196
- height: 50px;
197
  }
198
 
199
  .monsterinsights-products-theme-preview-icon.monsterinsights-products-theme-preview-icon-delta {
200
- background-position: -114px -102px;
201
- height: 78px;
202
  }
203
 
204
  .monsterinsights-pro-pill {
205
- font-style: normal;
206
- font-weight: bold;
207
- font-size: 11px;
208
- background: #1EC185;
209
- border-radius: 5px;
210
- color: #fff;
211
- padding: 3px 8px;
212
- margin-left: 8px;
213
  }
214
 
215
  .select300-container--disabled {
216
- margin-top: 10px;
217
- opacity: 0.6;
218
  }
1
  .monsterinsights-label-block,
2
  .monsterinsights-radio-icons {
3
+ display: block;
4
  }
5
 
6
  .monsterinsights-radio-icons {
7
+ margin: 4px 0;
8
  }
9
 
10
  .monsterinsights-radio-icons * {
11
+ box-sizing: border-box;
12
  }
13
 
14
  .monsterinsights-radio-icons > label {
15
+ display: inline-block;
16
  }
17
 
18
  .monsterinsights-radio-icons input[type="radio"] {
19
+ visibility: hidden;
20
+ display: none;
21
  }
22
 
23
  .monsterinsights-wide-column {
24
+ display: -webkit-box;
25
+ display: -ms-flexbox;
26
+ display: flex;
27
+ border: 1px solid #b7c9d9;
28
+ border-radius: 5px;
29
+ width: 40px;
30
+ height: 40px;
31
+ padding: 10px 5px;
32
+ -ms-flex-flow: wrap;
33
+ flex-flow: wrap;
34
+ -webkit-box-pack: justify;
35
+ -ms-flex-pack: justify;
36
+ justify-content: space-between;
37
+ margin-right: 4px;
38
  }
39
 
40
  .monsterinsights-wide-column > span {
41
+ background: #99a1b2;
42
+ display: inline-block;
43
+ width: 8px;
44
+ height: 8px;
45
+ border-radius: 1px;
46
+ margin-bottom: 2px;
47
  }
48
 
49
  .monsterinsights-wide-column.monsterinsights-wide-column-two > span {
50
+ width: 12px;
51
  }
52
 
53
  .monsterinsights-radio-icons input[type="radio"]:checked + .monsterinsights-wide-column {
54
+ border: 2px solid #338eef;
55
+ background: #ecf4fe;
56
+ padding: 9px 4px;
57
  }
58
 
59
  .monsterinsights-radio-icons input[type="radio"]:checked + .monsterinsights-wide-column > span {
60
+ background: #338eef;
61
  }
62
 
63
  .monsterinsights-wide-column.monsterinsights-wide-column-one > span {
64
+ width: 100%;
65
  }
66
 
67
  .monsterinsights-field-description {
68
+ font-family: Helvetica Neue, serif;
69
+ font-style: italic;
70
+ font-weight: normal;
71
+ font-size: 13px;
72
+ line-height: 1.5%;
73
+ color: #545C66;
74
  }
75
 
76
  /** SELECT2 Styles **/
77
+ .select300-container {
78
+ box-sizing: border-box;
79
+ display: inline-block;
80
+ margin: 0;
81
+ position: relative;
82
+ vertical-align: middle
83
+ }
84
+
85
+ .select300-container .select300-selection--single {
86
+ box-sizing: border-box;
87
+ cursor: pointer;
88
+ display: block;
89
+ height: 28px;
90
+ user-select: none;
91
+ -webkit-user-select: none
92
+ }
93
+
94
+ .select300-container .select300-selection--single .select300-selection__rendered {
95
+ display: block;
96
+ padding-left: 8px;
97
+ padding-right: 20px;
98
+ overflow: hidden;
99
+ text-overflow: ellipsis;
100
+ white-space: nowrap
101
+ }
102
+
103
+ .select300-container .select300-selection--single .select300-selection__clear {
104
+ position: relative
105
+ }
106
+
107
+ .select300-container[dir="rtl"] .select300-selection--single .select300-selection__rendered {
108
+ padding-right: 8px;
109
+ padding-left: 20px
110
+ }
111
+
112
+ .select300-container .select300-selection--multiple {
113
+ box-sizing: border-box;
114
+ cursor: pointer;
115
+ display: block;
116
+ min-height: 32px;
117
+ user-select: none;
118
+ -webkit-user-select: none
119
+ }
120
+
121
+ .select300-container .select300-selection--multiple .select300-selection__rendered {
122
+ display: inline-block;
123
+ overflow: hidden;
124
+ padding-left: 8px;
125
+ text-overflow: ellipsis;
126
+ white-space: nowrap
127
+ }
128
+
129
+ .select300-container .select300-search--inline {
130
+ float: left
131
+ }
132
+
133
+ .select300-container .select300-search--inline .select300-search__field {
134
+ box-sizing: border-box;
135
+ border: none;
136
+ font-size: 100%;
137
+ margin-top: 5px;
138
+ padding: 0
139
+ }
140
+
141
+ .select300-container .select300-search--inline .select300-search__field::-webkit-search-cancel-button {
142
+ -webkit-appearance: none
143
+ }
144
+
145
+ .select300-dropdown {
146
+ background-color: white;
147
+ border: 1px solid #aaa;
148
+ border-radius: 4px;
149
+ box-sizing: border-box;
150
+ display: block;
151
+ position: absolute;
152
+ left: -100000px;
153
+ width: 100%;
154
+ z-index: 1051
155
+ }
156
+
157
+ .select300-results {
158
+ display: block
159
+ }
160
+
161
+ .select300-results__options {
162
+ list-style: none;
163
+ margin: 0;
164
+ padding: 0
165
+ }
166
+
167
+ .select300-results__option {
168
+ padding: 6px;
169
+ user-select: none;
170
+ -webkit-user-select: none
171
+ }
172
+
173
+ .select300-results__option[aria-selected] {
174
+ cursor: pointer
175
+ }
176
+
177
+ .select300-container--open .select300-dropdown {
178
+ left: 0
179
+ }
180
+
181
+ .select300-container--open .select300-dropdown--above {
182
+ border-bottom: none;
183
+ border-bottom-left-radius: 0;
184
+ border-bottom-right-radius: 0
185
+ }
186
+
187
+ .select300-container--open .select300-dropdown--below {
188
+ border-top: none;
189
+ border-top-left-radius: 0;
190
+ border-top-right-radius: 0
191
+ }
192
+
193
+ .select300-search--dropdown {
194
+ display: block;
195
+ padding: 4px
196
+ }
197
+
198
+ .select300-search--dropdown .select300-search__field {
199
+ padding: 4px;
200
+ width: 100%;
201
+ box-sizing: border-box
202
+ }
203
+
204
+ .select300-search--dropdown .select300-search__field::-webkit-search-cancel-button {
205
+ -webkit-appearance: none
206
+ }
207
+
208
+ .select300-search--dropdown.select300-search--hide {
209
+ display: none
210
+ }
211
+
212
+ .select300-close-mask {
213
+ border: 0;
214
+ margin: 0;
215
+ padding: 0;
216
+ display: block;
217
+ position: fixed;
218
+ left: 0;
219
+ top: 0;
220
+ min-height: 100%;
221
+ min-width: 100%;
222
+ height: auto;
223
+ width: auto;
224
+ opacity: 0;
225
+ z-index: 99;
226
+ background-color: #fff;
227
+ filter: alpha(opacity=0)
228
+ }
229
+
230
+ .select300-hidden-accessible {
231
+ border: 0 !important;
232
+ clip: rect(0 0 0 0) !important;
233
+ -webkit-clip-path: inset(50%) !important;
234
+ clip-path: inset(50%) !important;
235
+ height: 1px !important;
236
+ overflow: hidden !important;
237
+ padding: 0 !important;
238
+ position: absolute !important;
239
+ width: 1px !important;
240
+ white-space: nowrap !important
241
+ }
242
+
243
+ .select300-container--default .select300-selection--single {
244
+ background-color: #fff;
245
+ border: 1px solid #aaa;
246
+ border-radius: 4px
247
+ }
248
+
249
+ .select300-container--default .select300-selection--single .select300-selection__rendered {
250
+ color: #444;
251
+ line-height: 28px
252
+ }
253
+
254
+ .select300-container--default .select300-selection--single .select300-selection__clear {
255
+ cursor: pointer;
256
+ float: right;
257
+ font-weight: bold
258
+ }
259
+
260
+ .select300-container--default .select300-selection--single .select300-selection__placeholder {
261
+ color: #999
262
+ }
263
+
264
+ .select300-container--default .select300-selection--single .select300-selection__arrow {
265
+ height: 26px;
266
+ position: absolute;
267
+ top: 1px;
268
+ right: 1px;
269
+ width: 20px
270
+ }
271
+
272
+ .select300-container--default .select300-selection--single .select300-selection__arrow b {
273
+ border-color: #888 transparent transparent transparent;
274
+ border-style: solid;
275
+ border-width: 5px 4px 0 4px;
276
+ height: 0;
277
+ left: 50%;
278
+ margin-left: -4px;
279
+ margin-top: -2px;
280
+ position: absolute;
281
+ top: 50%;
282
+ width: 0
283
+ }
284
+
285
+ .select300-container--default[dir="rtl"] .select300-selection--single .select300-selection__clear {
286
+ float: left
287
+ }
288
+
289
+ .select300-container--default[dir="rtl"] .select300-selection--single .select300-selection__arrow {
290
+ left: 1px;
291
+ right: auto
292
+ }
293
+
294
+ .select300-container--default.select300-container--disabled .select300-selection--single {
295
+ background-color: #eee;
296
+ cursor: default
297
+ }
298
+
299
+ .select300-container--default.select300-container--disabled .select300-selection--single .select300-selection__clear {
300
+ display: none
301
+ }
302
+
303
+ .select300-container--default.select300-container--open .select300-selection--single .select300-selection__arrow b {
304
+ border-color: transparent transparent #888 transparent;
305
+ border-width: 0 4px 5px 4px
306
+ }
307
+
308
+ .select300-container--default .select300-selection--multiple {
309
+ background-color: white;
310
+ border: 1px solid #aaa;
311
+ border-radius: 4px;
312
+ cursor: text
313
+ }
314
+
315
+ .select300-container--default .select300-selection--multiple .select300-selection__rendered {
316
+ box-sizing: border-box;
317
+ list-style: none;
318
+ margin: 0;
319
+ padding: 0 5px;
320
+ width: 100%
321
+ }
322
+
323
+ .select300-container--default .select300-selection--multiple .select300-selection__rendered li {
324
+ list-style: none
325
+ }
326
+
327
+ .select300-container--default .select300-selection--multiple .select300-selection__clear {
328
+ cursor: pointer;
329
+ float: right;
330
+ font-weight: bold;
331
+ margin-top: 5px;
332
+ margin-right: 10px;
333
+ padding: 1px
334
+ }
335
+
336
+ .select300-container--default .select300-selection--multiple .select300-selection__choice {
337
+ background-color: #e4e4e4;
338
+ border: 1px solid #aaa;
339
+ border-radius: 4px;
340
+ cursor: default;
341
+ float: left;
342
+ margin-right: 5px;
343
+ margin-top: 5px;
344
+ padding: 0 5px
345
+ }
346
+
347
+ .select300-container--default .select300-selection--multiple .select300-selection__choice__remove {
348
+ color: #999;
349
+ cursor: pointer;
350
+ display: inline-block;
351
+ font-weight: bold;
352
+ margin-right: 2px
353
+ }
354
+
355
+ .select300-container--default .select300-selection--multiple .select300-selection__choice__remove:hover {
356
+ color: #333
357
+ }
358
+
359
+ .select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice, .select300-container--default[dir="rtl"] .select300-selection--multiple .select300-search--inline {
360
+ float: right
361
+ }
362
+
363
+ .select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice {
364
+ margin-left: 5px;
365
+ margin-right: auto
366
+ }
367
+
368
+ .select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice__remove {
369
+ margin-left: 2px;
370
+ margin-right: auto
371
+ }
372
+
373
+ .select300-container--default.select300-container--focus .select300-selection--multiple {
374
+ border: solid black 1px;
375
+ outline: 0
376
+ }
377
+
378
+ .select300-container--default.select300-container--disabled .select300-selection--multiple {
379
+ background-color: #eee;
380
+ cursor: default
381
+ }
382
+
383
+ .select300-container--default.select300-container--disabled .select300-selection__choice__remove {
384
+ display: none
385
+ }
386
+
387
+ .select300-container--default.select300-container--open.select300-container--above .select300-selection--single, .select300-container--default.select300-container--open.select300-container--above .select300-selection--multiple {
388
+ border-top-left-radius: 0;
389
+ border-top-right-radius: 0
390
+ }
391
+
392
+ .select300-container--default.select300-container--open.select300-container--below .select300-selection--single, .select300-container--default.select300-container--open.select300-container--below .select300-selection--multiple {
393
+ border-bottom-left-radius: 0;
394
+ border-bottom-right-radius: 0
395
+ }
396
+
397
+ .select300-container--default .select300-search--dropdown .select300-search__field {
398
+ border: 1px solid #aaa
399
+ }
400
+
401
+ .select300-container--default .select300-search--inline .select300-search__field {
402
+ background: transparent;
403
+ border: none;
404
+ outline: 0;
405
+ box-shadow: none;
406
+ -webkit-appearance: textfield
407
+ }
408
+
409
+ .select300-container--default .select300-results > .select300-results__options {
410
+ max-height: 200px;
411
+ overflow-y: auto
412
+ }
413
+
414
+ .select300-container--default .select300-results__option[role=group] {
415
+ padding: 0
416
+ }
417
+
418
+ .select300-container--default .select300-results__option[aria-disabled=true] {
419
+ color: #999
420
+ }
421
+
422
+ .select300-container--default .select300-results__option[aria-selected=true] {
423
+ background-color: #ddd
424
+ }
425
+
426
+ .select300-container--default .select300-results__option .select300-results__option {
427
+ padding-left: 1em
428
+ }
429
+
430
+ .select300-container--default .select300-results__option .select300-results__option .select300-results__group {
431
+ padding-left: 0
432
+ }
433
+
434
+ .select300-container--default .select300-results__option .select300-results__option .select300-results__option {
435
+ margin-left: -1em;
436
+ padding-left: 2em
437
+ }
438
+
439
+ .select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option {
440
+ margin-left: -2em;
441
+ padding-left: 3em
442
+ }
443
+
444
+ .select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option {
445
+ margin-left: -3em;
446
+ padding-left: 4em
447
+ }
448
+
449
+ .select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option {
450
+ margin-left: -4em;
451
+ padding-left: 5em
452
+ }
453
+
454
+ .select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option {
455
+ margin-left: -5em;
456
+ padding-left: 6em
457
+ }
458
+
459
+ .select300-container--default .select300-results__option--highlighted[aria-selected] {
460
+ background-color: #5897fb;
461
+ color: white
462
+ }
463
+
464
+ .select300-container--default .select300-results__group {
465
+ cursor: default;
466
+ display: block;
467
+ padding: 6px
468
+ }
469
+
470
+ .select300-container--classic .select300-selection--single {
471
+ background-color: #f7f7f7;
472
+ border: 1px solid #aaa;
473
+ border-radius: 4px;
474
+ outline: 0;
475
+ background-image: -webkit-linear-gradient(top, #fff 50%, #eee 100%);
476
+ background-image: -o-linear-gradient(top, #fff 50%, #eee 100%);
477
+ background-image: linear-gradient(to bottom, #fff 50%, #eee 100%);
478
+ background-repeat: repeat-x;
479
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)
480
+ }
481
+
482
+ .select300-container--classic .select300-selection--single:focus {
483
+ border: 1px solid #5897fb
484
+ }
485
+
486
+ .select300-container--classic .select300-selection--single .select300-selection__rendered {
487
+ color: #444;
488
+ line-height: 28px
489
+ }
490
+
491
+ .select300-container--classic .select300-selection--single .select300-selection__clear {
492
+ cursor: pointer;
493
+ float: right;
494
+ font-weight: bold;
495
+ margin-right: 10px
496
+ }
497
+
498
+ .select300-container--classic .select300-selection--single .select300-selection__placeholder {
499
+ color: #999
500
+ }
501
+
502
+ .select300-container--classic .select300-selection--single .select300-selection__arrow {
503
+ background-color: #ddd;
504
+ border: none;
505
+ border-left: 1px solid #aaa;
506
+ border-top-right-radius: 4px;
507
+ border-bottom-right-radius: 4px;
508
+ height: 26px;
509
+ position: absolute;
510
+ top: 1px;
511
+ right: 1px;
512
+ width: 20px;
513
+ background-image: -webkit-linear-gradient(top, #eee 50%, #ccc 100%);
514
+ background-image: -o-linear-gradient(top, #eee 50%, #ccc 100%);
515
+ background-image: linear-gradient(to bottom, #eee 50%, #ccc 100%);
516
+ background-repeat: repeat-x;
517
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)
518
+ }
519
+
520
+ .select300-container--classic .select300-selection--single .select300-selection__arrow b {
521
+ border-color: #888 transparent transparent transparent;
522
+ border-style: solid;
523
+ border-width: 5px 4px 0 4px;
524
+ height: 0;
525
+ left: 50%;
526
+ margin-left: -4px;
527
+ margin-top: -2px;
528
+ position: absolute;
529
+ top: 50%;
530
+ width: 0
531
+ }
532
+
533
+ .select300-container--classic[dir="rtl"] .select300-selection--single .select300-selection__clear {
534
+ float: left
535
+ }
536
+
537
+ .select300-container--classic[dir="rtl"] .select300-selection--single .select300-selection__arrow {
538
+ border: none;
539
+ border-right: 1px solid #aaa;
540
+ border-radius: 0;
541
+ border-top-left-radius: 4px;
542
+ border-bottom-left-radius: 4px;
543
+ left: 1px;
544
+ right: auto
545
+ }
546
+
547
+ .select300-container--classic.select300-container--open .select300-selection--single {
548
+ border: 1px solid #5897fb
549
+ }
550
+
551
+ .select300-container--classic.select300-container--open .select300-selection--single .select300-selection__arrow {
552
+ background: transparent;
553
+ border: none
554
+ }
555
+
556
+ .select300-container--classic.select300-container--open .select300-selection--single .select300-selection__arrow b {
557
+ border-color: transparent transparent #888 transparent;
558
+ border-width: 0 4px 5px 4px
559
+ }
560
+
561
+ .select300-container--classic.select300-container--open.select300-container--above .select300-selection--single {
562
+ border-top: none;
563
+ border-top-left-radius: 0;
564
+ border-top-right-radius: 0;
565
+ background-image: -webkit-linear-gradient(top, #fff 0%, #eee 50%);
566
+ background-image: -o-linear-gradient(top, #fff 0%, #eee 50%);
567
+ background-image: linear-gradient(to bottom, #fff 0%, #eee 50%);
568
+ background-repeat: repeat-x;
569
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)
570
+ }
571
+
572
+ .select300-container--classic.select300-container--open.select300-container--below .select300-selection--single {
573
+ border-bottom: none;
574
+ border-bottom-left-radius: 0;
575
+ border-bottom-right-radius: 0;
576
+ background-image: -webkit-linear-gradient(top, #eee 50%, #fff 100%);
577
+ background-image: -o-linear-gradient(top, #eee 50%, #fff 100%);
578
+ background-image: linear-gradient(to bottom, #eee 50%, #fff 100%);
579
+ background-repeat: repeat-x;
580
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)
581
+ }
582
+
583
+ .select300-container--classic .select300-selection--multiple {
584
+ background-color: white;
585
+ border: 1px solid #aaa;
586
+ border-radius: 4px;
587
+ cursor: text;
588
+ outline: 0
589
+ }
590
+
591
+ .select300-container--classic .select300-selection--multiple:focus {
592
+ border: 1px solid #5897fb
593
+ }
594
+
595
+ .select300-container--classic .select300-selection--multiple .select300-selection__rendered {
596
+ list-style: none;
597
+ margin: 0;
598
+ padding: 0 5px
599
+ }
600
+
601
+ .select300-container--classic .select300-selection--multiple .select300-selection__clear {
602
+ display: none
603
+ }
604
+
605
+ .select300-container--classic .select300-selection--multiple .select300-selection__choice {
606
+ background-color: #e4e4e4;
607
+ border: 1px solid #aaa;
608
+ border-radius: 4px;
609
+ cursor: default;
610
+ float: left;
611
+ margin-right: 5px;
612
+ margin-top: 5px;
613
+ padding: 0 5px
614
+ }
615
+
616
+ .select300-container--classic .select300-selection--multiple .select300-selection__choice__remove {
617
+ color: #888;
618
+ cursor: pointer;
619
+ display: inline-block;
620
+ font-weight: bold;
621
+ margin-right: 2px
622
+ }
623
+
624
+ .select300-container--classic .select300-selection--multiple .select300-selection__choice__remove:hover {
625
+ color: #555
626
+ }
627
+
628
+ .select300-container--classic[dir="rtl"] .select300-selection--multiple .select300-selection__choice {
629
+ float: right;
630
+ margin-left: 5px;
631
+ margin-right: auto
632
+ }
633
+
634
+ .select300-container--classic[dir="rtl"] .select300-selection--multiple .select300-selection__choice__remove {
635
+ margin-left: 2px;
636
+ margin-right: auto
637
+ }
638
+
639
+ .select300-container--classic.select300-container--open .select300-selection--multiple {
640
+ border: 1px solid #5897fb
641
+ }
642
+
643
+ .select300-container--classic.select300-container--open.select300-container--above .select300-selection--multiple {
644
+ border-top: none;
645
+ border-top-left-radius: 0;
646
+ border-top-right-radius: 0
647
+ }
648
+
649
+ .select300-container--classic.select300-container--open.select300-container--below .select300-selection--multiple {
650
+ border-bottom: none;
651
+ border-bottom-left-radius: 0;
652
+ border-bottom-right-radius: 0
653
+ }
654
+
655
+ .select300-container--classic .select300-search--dropdown .select300-search__field {
656
+ border: 1px solid #aaa;
657
+ outline: 0
658
+ }
659
+
660
+ .select300-container--classic .select300-search--inline .select300-search__field {
661
+ outline: 0;
662
+ box-shadow: none
663
+ }
664
+
665
+ .select300-container--classic .select300-dropdown {
666
+ background-color: #fff;
667
+ border: 1px solid transparent
668
+ }
669
+
670
+ .select300-container--classic .select300-dropdown--above {
671
+ border-bottom: none
672
+ }
673
+
674
+ .select300-container--classic .select300-dropdown--below {
675
+ border-top: none
676
+ }
677
+
678
+ .select300-container--classic .select300-results > .select300-results__options {
679
+ max-height: 200px;
680
+ overflow-y: auto
681
+ }
682
+
683
+ .select300-container--classic .select300-results__option[role=group] {
684
+ padding: 0
685
+ }
686
+
687
+ .select300-container--classic .select300-results__option[aria-disabled=true] {
688
+ color: grey
689
+ }
690
+
691
+ .select300-container--classic .select300-results__option--highlighted[aria-selected] {
692
+ background-color: #3875d7;
693
+ color: #fff
694
+ }
695
+
696
+ .select300-container--classic .select300-results__group {
697
+ cursor: default;
698
+ display: block;
699
+ padding: 6px
700
+ }
701
+
702
+ .select300-container--classic.select300-container--open .select300-dropdown {
703
+ border-color: #5897fb
704
+ }
705
 
706
  .select300-container {
707
+ display: block;
708
+ width: 100% !important;
709
  }
710
 
711
  .select300-container--default .select300-selection--multiple .select300-selection__choice {
712
+ border-radius: 20px;
713
+ background: #E2E4E7;
714
+ border: none;
715
+ color: #32373C;
716
+ padding-left: 8px;
717
+ font-family: Helvetica Neue, serif;
718
+ font-style: normal;
719
+ font-weight: normal;
720
+ font-size: 13px;
721
+ line-height: 24px;
722
  }
723
 
724
  .select300-container--default .select300-selection--multiple .select300-selection__choice__remove {
725
+ line-height: 1;
726
+ width: 16px;
727
+ height: 16px;
728
+ float: right;
729
+ display: block;
730
+ border-radius: 50%;
731
+ background-color: #555D66;
732
+ color: #E2E4E7;
733
+ text-align: center;
734
+ margin: 4px 0px 4px 8px;
735
+ font-size: 14px;
736
+ box-sizing: border-box;
737
+ padding-top: 0;
738
+ padding-left: 0;
739
  }
740
 
741
  .select300-container--default .select300-selection--multiple .select300-selection__choice__remove:hover {
742
+ background-color: #333;
743
+ color: #E2E4E7;
744
  }
745
 
746
  .monsterinsights-widget-theme-preview {
747
+ background: #F0F2F4;
748
+ border-radius: 5px;
749
+ padding: 8px 8px 8px 18px;
750
+ display: flex;
751
+ font-family: Helvetica Neue, serif;
752
+ font-style: normal;
753
+ font-weight: normal;
754
+ font-size: 14px;
755
+ line-height: 1;
756
+ color: #32373C;
757
+ align-items: center;
758
+ justify-content: space-between;
759
  }
760
 
761
  .monsterinsights-widget-theme-preview-icon,
762
  .monsterinsights-products-theme-preview-icon {
763
+ width: 74px;
764
+ height: 46px;
765
+ background-image: url(data:image/png;base64,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);
766
+ background-repeat: no-repeat;
767
+ background-position: 0 0;
768
+ background-size: 392px;
769
+ display: inline-block;
770
  }
771
 
772
  .monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-beta {
773
+ background-position-x: -212px;
774
  }
775
 
776
  .monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-charlie {
777
+ background-position-x: -106px;
778
  }
779
 
780
  .monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-delta {
781
+ height: 43px;
782
+ background-position: -318px 0;
783
  }
784
 
785
  .monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-echo {
786
+ height: 76px;
787
+ background-position: 0 -73px;
788
  }
789
 
790
  .monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-foxtrot {
791
+ background-position: -106px -90px;
792
+ height: 41px;
793
  }
794
 
795
  .monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-golf {
796
+ background-position: -212px -83px;
797
+ height: 56px;
798
  }
799
 
800
  .monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-hotel {
801
+ height: 50px;
802
+ background-position: -318px -86px;
803
  }
804
 
805
  .monsterinsights-products-theme-preview-icon {
806
+ background-image: url('data:image/png;base64,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');
807
+ width: 74px;
808
+ height: 39px;
809
+ background-size: 188px;
810
  }
811
 
812
  .monsterinsights-products-theme-preview-icon.monsterinsights-products-theme-preview-icon-alpha {
813
+ background-position: 0 0;
814
  }
815
 
816
  .monsterinsights-products-theme-preview-icon.monsterinsights-products-theme-preview-icon-beta {
817
+ background-position: -114px 0;
818
+ height: 65px;
819
  }
820
 
821
  .monsterinsights-products-theme-preview-icon.monsterinsights-products-theme-preview-icon-charlie {
822
+ background-position: 0 -102px;
823
+ height: 50px;
824
  }
825
 
826
  .monsterinsights-products-theme-preview-icon.monsterinsights-products-theme-preview-icon-delta {
827
+ background-position: -114px -102px;
828
+ height: 78px;
829
  }
830
 
831
  .monsterinsights-pro-pill {
832
+ font-style: normal;
833
+ font-weight: bold;
834
+ font-size: 11px;
835
+ background: #1EC185;
836
+ border-radius: 5px;
837
+ color: #fff;
838
+ padding: 3px 8px;
839
+ margin-left: 8px;
840
  }
841
 
842
  .select300-container--disabled {
843
+ margin-top: 10px;
844
+ opacity: 0.6;
845
  }
assets/css/admin-widget-settings.min.css CHANGED
@@ -1 +1 @@
1
- .monsterinsights-label-block,.monsterinsights-radio-icons{display:block}.monsterinsights-radio-icons{margin:4px 0}.monsterinsights-radio-icons *{box-sizing:border-box}.monsterinsights-radio-icons > label{display:inline-block}.monsterinsights-radio-icons input[type="radio"]{visibility:hidden;display:none}.monsterinsights-wide-column{display:-webkit-box;display:-ms-flexbox;display:flex;border:1px solid #b7c9d9;border-radius:5px;width:40px;height:40px;padding:10px 5px;-ms-flex-flow:wrap;flex-flow:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-right:4px}.monsterinsights-wide-column > span{background:#99a1b2;display:inline-block;width:8px;height:8px;border-radius:1px;margin-bottom:2px}.monsterinsights-wide-column.monsterinsights-wide-column-two > span{width:12px}.monsterinsights-radio-icons input[type="radio"]:checked + .monsterinsights-wide-column{border:2px solid #338eef;background:#ecf4fe;padding:9px 4px}.monsterinsights-radio-icons input[type="radio"]:checked + .monsterinsights-wide-column > span{background:#338eef}.monsterinsights-wide-column.monsterinsights-wide-column-one > span{width:100%}.monsterinsights-field-description{font-family:Helvetica Neue, serif;font-style:italic;font-weight:normal;font-size:13px;line-height:1.5%;color:#545C66}.select300-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select300-container .select300-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select300-container .select300-selection--single .select300-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select300-container .select300-selection--single .select300-selection__clear{position:relative}.select300-container[dir="rtl"] .select300-selection--single .select300-selection__rendered{padding-right:8px;padding-left:20px}.select300-container .select300-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select300-container .select300-selection--multiple .select300-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select300-container .select300-search--inline{float:left}.select300-container .select300-search--inline .select300-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select300-container .select300-search--inline .select300-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select300-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select300-results{display:block}.select300-results__options{list-style:none;margin:0;padding:0}.select300-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select300-results__option[aria-selected]{cursor:pointer}.select300-container--open .select300-dropdown{left:0}.select300-container--open .select300-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select300-container--open .select300-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select300-search--dropdown{display:block;padding:4px}.select300-search--dropdown .select300-search__field{padding:4px;width:100%;box-sizing:border-box}.select300-search--dropdown .select300-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select300-search--dropdown.select300-search--hide{display:none}.select300-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select300-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select300-container--default .select300-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select300-container--default .select300-selection--single .select300-selection__rendered{color:#444;line-height:28px}.select300-container--default .select300-selection--single .select300-selection__clear{cursor:pointer;float:right;font-weight:bold}.select300-container--default .select300-selection--single .select300-selection__placeholder{color:#999}.select300-container--default .select300-selection--single .select300-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select300-container--default .select300-selection--single .select300-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select300-container--default[dir="rtl"] .select300-selection--single .select300-selection__clear{float:left}.select300-container--default[dir="rtl"] .select300-selection--single .select300-selection__arrow{left:1px;right:auto}.select300-container--default.select300-container--disabled .select300-selection--single{background-color:#eee;cursor:default}.select300-container--default.select300-container--disabled .select300-selection--single .select300-selection__clear{display:none}.select300-container--default.select300-container--open .select300-selection--single .select300-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select300-container--default .select300-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select300-container--default .select300-selection--multiple .select300-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select300-container--default .select300-selection--multiple .select300-selection__rendered li{list-style:none}.select300-container--default .select300-selection--multiple .select300-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select300-container--default .select300-selection--multiple .select300-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select300-container--default .select300-selection--multiple .select300-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select300-container--default .select300-selection--multiple .select300-selection__choice__remove:hover{color:#333}.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice,.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-search--inline{float:right}.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice{margin-left:5px;margin-right:auto}.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice__remove{margin-left:2px;margin-right:auto}.select300-container--default.select300-container--focus .select300-selection--multiple{border:solid black 1px;outline:0}.select300-container--default.select300-container--disabled .select300-selection--multiple{background-color:#eee;cursor:default}.select300-container--default.select300-container--disabled .select300-selection__choice__remove{display:none}.select300-container--default.select300-container--open.select300-container--above .select300-selection--single,.select300-container--default.select300-container--open.select300-container--above .select300-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select300-container--default.select300-container--open.select300-container--below .select300-selection--single,.select300-container--default.select300-container--open.select300-container--below .select300-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select300-container--default .select300-search--dropdown .select300-search__field{border:1px solid #aaa}.select300-container--default .select300-search--inline .select300-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select300-container--default .select300-results>.select300-results__options{max-height:200px;overflow-y:auto}.select300-container--default .select300-results__option[role=group]{padding:0}.select300-container--default .select300-results__option[aria-disabled=true]{color:#999}.select300-container--default .select300-results__option[aria-selected=true]{background-color:#ddd}.select300-container--default .select300-results__option .select300-results__option{padding-left:1em}.select300-container--default .select300-results__option .select300-results__option .select300-results__group{padding-left:0}.select300-container--default .select300-results__option .select300-results__option .select300-results__option{margin-left:-1em;padding-left:2em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-2em;padding-left:3em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-3em;padding-left:4em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-4em;padding-left:5em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-5em;padding-left:6em}.select300-container--default .select300-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select300-container--default .select300-results__group{cursor:default;display:block;padding:6px}.select300-container--classic .select300-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select300-container--classic .select300-selection--single:focus{border:1px solid #5897fb}.select300-container--classic .select300-selection--single .select300-selection__rendered{color:#444;line-height:28px}.select300-container--classic .select300-selection--single .select300-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select300-container--classic .select300-selection--single .select300-selection__placeholder{color:#999}.select300-container--classic .select300-selection--single .select300-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select300-container--classic .select300-selection--single .select300-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select300-container--classic[dir="rtl"] .select300-selection--single .select300-selection__clear{float:left}.select300-container--classic[dir="rtl"] .select300-selection--single .select300-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select300-container--classic.select300-container--open .select300-selection--single{border:1px solid #5897fb}.select300-container--classic.select300-container--open .select300-selection--single .select300-selection__arrow{background:transparent;border:none}.select300-container--classic.select300-container--open .select300-selection--single .select300-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select300-container--classic.select300-container--open.select300-container--above .select300-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select300-container--classic.select300-container--open.select300-container--below .select300-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select300-container--classic .select300-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select300-container--classic .select300-selection--multiple:focus{border:1px solid #5897fb}.select300-container--classic .select300-selection--multiple .select300-selection__rendered{list-style:none;margin:0;padding:0 5px}.select300-container--classic .select300-selection--multiple .select300-selection__clear{display:none}.select300-container--classic .select300-selection--multiple .select300-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select300-container--classic .select300-selection--multiple .select300-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select300-container--classic .select300-selection--multiple .select300-selection__choice__remove:hover{color:#555}.select300-container--classic[dir="rtl"] .select300-selection--multiple .select300-selection__choice{float:right;margin-left:5px;margin-right:auto}.select300-container--classic[dir="rtl"] .select300-selection--multiple .select300-selection__choice__remove{margin-left:2px;margin-right:auto}.select300-container--classic.select300-container--open .select300-selection--multiple{border:1px solid #5897fb}.select300-container--classic.select300-container--open.select300-container--above .select300-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select300-container--classic.select300-container--open.select300-container--below .select300-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select300-container--classic .select300-search--dropdown .select300-search__field{border:1px solid #aaa;outline:0}.select300-container--classic .select300-search--inline .select300-search__field{outline:0;box-shadow:none}.select300-container--classic .select300-dropdown{background-color:#fff;border:1px solid transparent}.select300-container--classic .select300-dropdown--above{border-bottom:none}.select300-container--classic .select300-dropdown--below{border-top:none}.select300-container--classic .select300-results>.select300-results__options{max-height:200px;overflow-y:auto}.select300-container--classic .select300-results__option[role=group]{padding:0}.select300-container--classic .select300-results__option[aria-disabled=true]{color:grey}.select300-container--classic .select300-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select300-container--classic .select300-results__group{cursor:default;display:block;padding:6px}.select300-container--classic.select300-container--open .select300-dropdown{border-color:#5897fb}.select300-container{display:block;width:100% !important}.select300-container--default .select300-selection--multiple .select300-selection__choice{border-radius:20px;background:#E2E4E7;border:none;color:#32373C;padding-left:8px;font-family:Helvetica Neue, serif;font-style:normal;font-weight:normal;font-size:13px;line-height:24px}.select300-container--default .select300-selection--multiple .select300-selection__choice__remove{line-height:1;width:16px;height:16px;float:right;display:block;border-radius:50%;background-color:#555D66;color:#E2E4E7;text-align:center;margin:4px 0px 4px 8px;font-size:14px;box-sizing:border-box;padding-top:0;padding-left:0}.select300-container--default .select300-selection--multiple .select300-selection__choice__remove:hover{background-color:#333;color:#E2E4E7}.monsterinsights-widget-theme-preview{background:#F0F2F4;border-radius:5px;padding:8px 8px 8px 18px;display:flex;font-family:Helvetica Neue, serif;font-style:normal;font-weight:normal;font-size:14px;line-height:1;color:#32373C;align-items:center;justify-content:space-between}.monsterinsights-widget-theme-preview-icon,.monsterinsights-products-theme-preview-icon{width:74px;height:46px;background-image:url(data:image/png;base64,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);background-repeat:no-repeat;background-position:0 0;background-size:392px;display:inline-block}.monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-beta{background-position-x:-212px}.monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-charlie{background-position-x:-106px}.monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-delta{height:43px;background-position:-318px 0}.monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-echo{height:76px;background-position:0 -73px}.monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-foxtrot{background-position:-106px -90px;height:41px}.monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-golf{background-position:-212px -83px;height:56px}.monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-hotel{height:50px;background-position:-318px -86px}.monsterinsights-products-theme-preview-icon{background-image:url('data:image/png;base64,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');width:74px;height:39px;background-size:188px}.monsterinsights-products-theme-preview-icon.monsterinsights-products-theme-preview-icon-alpha{background-position:0 0}.monsterinsights-products-theme-preview-icon.monsterinsights-products-theme-preview-icon-beta{background-position:-114px 0;height:65px}.monsterinsights-products-theme-preview-icon.monsterinsights-products-theme-preview-icon-charlie{background-position:0 -102px;height:50px}.monsterinsights-products-theme-preview-icon.monsterinsights-products-theme-preview-icon-delta{background-position:-114px -102px;height:78px}.monsterinsights-pro-pill{font-style:normal;font-weight:bold;font-size:11px;background:#1EC185;border-radius:5px;color:#fff;padding:3px 8px;margin-left:8px}.select300-container--disabled{margin-top:10px;opacity:0.6}
1
+ .monsterinsights-label-block,.monsterinsights-radio-icons{display:block}.monsterinsights-radio-icons{margin:4px 0}.monsterinsights-radio-icons *{box-sizing:border-box}.monsterinsights-radio-icons > label{display:inline-block}.monsterinsights-radio-icons input[type="radio"]{visibility:hidden;display:none}.monsterinsights-wide-column{display:-webkit-box;display:-ms-flexbox;display:flex;border:1px solid #b7c9d9;border-radius:5px;width:40px;height:40px;padding:10px 5px;-ms-flex-flow:wrap;flex-flow:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-right:4px}.monsterinsights-wide-column > span{background:#99a1b2;display:inline-block;width:8px;height:8px;border-radius:1px;margin-bottom:2px}.monsterinsights-wide-column.monsterinsights-wide-column-two > span{width:12px}.monsterinsights-radio-icons input[type="radio"]:checked + .monsterinsights-wide-column{border:2px solid #338eef;background:#ecf4fe;padding:9px 4px}.monsterinsights-radio-icons input[type="radio"]:checked + .monsterinsights-wide-column > span{background:#338eef}.monsterinsights-wide-column.monsterinsights-wide-column-one > span{width:100%}.monsterinsights-field-description{font-family:Helvetica Neue, serif;font-style:italic;font-weight:normal;font-size:13px;line-height:1.5%;color:#545C66}.select300-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select300-container .select300-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select300-container .select300-selection--single .select300-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select300-container .select300-selection--single .select300-selection__clear{position:relative}.select300-container[dir="rtl"] .select300-selection--single .select300-selection__rendered{padding-right:8px;padding-left:20px}.select300-container .select300-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select300-container .select300-selection--multiple .select300-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select300-container .select300-search--inline{float:left}.select300-container .select300-search--inline .select300-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select300-container .select300-search--inline .select300-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select300-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select300-results{display:block}.select300-results__options{list-style:none;margin:0;padding:0}.select300-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select300-results__option[aria-selected]{cursor:pointer}.select300-container--open .select300-dropdown{left:0}.select300-container--open .select300-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select300-container--open .select300-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select300-search--dropdown{display:block;padding:4px}.select300-search--dropdown .select300-search__field{padding:4px;width:100%;box-sizing:border-box}.select300-search--dropdown .select300-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select300-search--dropdown.select300-search--hide{display:none}.select300-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select300-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select300-container--default .select300-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select300-container--default .select300-selection--single .select300-selection__rendered{color:#444;line-height:28px}.select300-container--default .select300-selection--single .select300-selection__clear{cursor:pointer;float:right;font-weight:bold}.select300-container--default .select300-selection--single .select300-selection__placeholder{color:#999}.select300-container--default .select300-selection--single .select300-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select300-container--default .select300-selection--single .select300-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select300-container--default[dir="rtl"] .select300-selection--single .select300-selection__clear{float:left}.select300-container--default[dir="rtl"] .select300-selection--single .select300-selection__arrow{left:1px;right:auto}.select300-container--default.select300-container--disabled .select300-selection--single{background-color:#eee;cursor:default}.select300-container--default.select300-container--disabled .select300-selection--single .select300-selection__clear{display:none}.select300-container--default.select300-container--open .select300-selection--single .select300-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select300-container--default .select300-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select300-container--default .select300-selection--multiple .select300-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select300-container--default .select300-selection--multiple .select300-selection__rendered li{list-style:none}.select300-container--default .select300-selection--multiple .select300-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select300-container--default .select300-selection--multiple .select300-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select300-container--default .select300-selection--multiple .select300-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select300-container--default .select300-selection--multiple .select300-selection__choice__remove:hover{color:#333}.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice,.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-search--inline{float:right}.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice{margin-left:5px;margin-right:auto}.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice__remove{margin-left:2px;margin-right:auto}.select300-container--default.select300-container--focus .select300-selection--multiple{border:solid black 1px;outline:0}.select300-container--default.select300-container--disabled .select300-selection--multiple{background-color:#eee;cursor:default}.select300-container--default.select300-container--disabled .select300-selection__choice__remove{display:none}.select300-container--default.select300-container--open.select300-container--above .select300-selection--single,.select300-container--default.select300-container--open.select300-container--above .select300-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select300-container--default.select300-container--open.select300-container--below .select300-selection--single,.select300-container--default.select300-container--open.select300-container--below .select300-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select300-container--default .select300-search--dropdown .select300-search__field{border:1px solid #aaa}.select300-container--default .select300-search--inline .select300-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select300-container--default .select300-results > .select300-results__options{max-height:200px;overflow-y:auto}.select300-container--default .select300-results__option[role=group]{padding:0}.select300-container--default .select300-results__option[aria-disabled=true]{color:#999}.select300-container--default .select300-results__option[aria-selected=true]{background-color:#ddd}.select300-container--default .select300-results__option .select300-results__option{padding-left:1em}.select300-container--default .select300-results__option .select300-results__option .select300-results__group{padding-left:0}.select300-container--default .select300-results__option .select300-results__option .select300-results__option{margin-left:-1em;padding-left:2em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-2em;padding-left:3em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-3em;padding-left:4em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-4em;padding-left:5em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-5em;padding-left:6em}.select300-container--default .select300-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select300-container--default .select300-results__group{cursor:default;display:block;padding:6px}.select300-container--classic .select300-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select300-container--classic .select300-selection--single:focus{border:1px solid #5897fb}.select300-container--classic .select300-selection--single .select300-selection__rendered{color:#444;line-height:28px}.select300-container--classic .select300-selection--single .select300-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select300-container--classic .select300-selection--single .select300-selection__placeholder{color:#999}.select300-container--classic .select300-selection--single .select300-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select300-container--classic .select300-selection--single .select300-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select300-container--classic[dir="rtl"] .select300-selection--single .select300-selection__clear{float:left}.select300-container--classic[dir="rtl"] .select300-selection--single .select300-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select300-container--classic.select300-container--open .select300-selection--single{border:1px solid #5897fb}.select300-container--classic.select300-container--open .select300-selection--single .select300-selection__arrow{background:transparent;border:none}.select300-container--classic.select300-container--open .select300-selection--single .select300-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select300-container--classic.select300-container--open.select300-container--above .select300-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select300-container--classic.select300-container--open.select300-container--below .select300-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select300-container--classic .select300-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select300-container--classic .select300-selection--multiple:focus{border:1px solid #5897fb}.select300-container--classic .select300-selection--multiple .select300-selection__rendered{list-style:none;margin:0;padding:0 5px}.select300-container--classic .select300-selection--multiple .select300-selection__clear{display:none}.select300-container--classic .select300-selection--multiple .select300-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select300-container--classic .select300-selection--multiple .select300-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select300-container--classic .select300-selection--multiple .select300-selection__choice__remove:hover{color:#555}.select300-container--classic[dir="rtl"] .select300-selection--multiple .select300-selection__choice{float:right;margin-left:5px;margin-right:auto}.select300-container--classic[dir="rtl"] .select300-selection--multiple .select300-selection__choice__remove{margin-left:2px;margin-right:auto}.select300-container--classic.select300-container--open .select300-selection--multiple{border:1px solid #5897fb}.select300-container--classic.select300-container--open.select300-container--above .select300-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select300-container--classic.select300-container--open.select300-container--below .select300-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select300-container--classic .select300-search--dropdown .select300-search__field{border:1px solid #aaa;outline:0}.select300-container--classic .select300-search--inline .select300-search__field{outline:0;box-shadow:none}.select300-container--classic .select300-dropdown{background-color:#fff;border:1px solid transparent}.select300-container--classic .select300-dropdown--above{border-bottom:none}.select300-container--classic .select300-dropdown--below{border-top:none}.select300-container--classic .select300-results > .select300-results__options{max-height:200px;overflow-y:auto}.select300-container--classic .select300-results__option[role=group]{padding:0}.select300-container--classic .select300-results__option[aria-disabled=true]{color:grey}.select300-container--classic .select300-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select300-container--classic .select300-results__group{cursor:default;display:block;padding:6px}.select300-container--classic.select300-container--open .select300-dropdown{border-color:#5897fb}.select300-container{display:block;width:100% !important}.select300-container--default .select300-selection--multiple .select300-selection__choice{border-radius:20px;background:#E2E4E7;border:none;color:#32373C;padding-left:8px;font-family:Helvetica Neue, serif;font-style:normal;font-weight:normal;font-size:13px;line-height:24px}.select300-container--default .select300-selection--multiple .select300-selection__choice__remove{line-height:1;width:16px;height:16px;float:right;display:block;border-radius:50%;background-color:#555D66;color:#E2E4E7;text-align:center;margin:4px 0px 4px 8px;font-size:14px;box-sizing:border-box;padding-top:0;padding-left:0}.select300-container--default .select300-selection--multiple .select300-selection__choice__remove:hover{background-color:#333;color:#E2E4E7}.monsterinsights-widget-theme-preview{background:#F0F2F4;border-radius:5px;padding:8px 8px 8px 18px;display:flex;font-family:Helvetica Neue, serif;font-style:normal;font-weight:normal;font-size:14px;line-height:1;color:#32373C;align-items:center;justify-content:space-between}.monsterinsights-widget-theme-preview-icon,.monsterinsights-products-theme-preview-icon{width:74px;height:46px;background-image:url(data:image/png;base64,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);background-repeat:no-repeat;background-position:0 0;background-size:392px;display:inline-block}.monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-beta{background-position-x:-212px}.monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-charlie{background-position-x:-106px}.monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-delta{height:43px;background-position:-318px 0}.monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-echo{height:76px;background-position:0 -73px}.monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-foxtrot{background-position:-106px -90px;height:41px}.monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-golf{background-position:-212px -83px;height:56px}.monsterinsights-widget-theme-preview-icon.monsterinsights-widget-theme-preview-icon-hotel{height:50px;background-position:-318px -86px}.monsterinsights-products-theme-preview-icon{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXgAAAFoCAYAAABdS+A9AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABMLSURBVHgB7d1fbJ1nfcDx3/se20kaJ7GXEhrK1KRMFRdFS8ukdgyVCLFbSC4mcUfTi2rTJJqESbuZaLrLCZoWiStQW3qFNGlJb9AuGJRqdNG0NpaGRGGjcTZYk9DgNP/sxPZ59z5O3aYlrf+c18l7nvP5SCG2MTHn9Tnf85znPO/7FJ9+cqoKaEb1ysHxMmhMVVUxeS7GNgx1vxJVsbv+fFcUsSMYeFVVTJRFTFZlcXT7aPG9G32PByO01G/quP/fhfm96zvdE/WHT1VR7RF3FhVFtWvhPtHtPvfG+fnX37hYfeX93yPw0EJvvVUVnYtxuIzin+pPxwI+3M469M++caF6/PovCjy0zFQ9XL9cxuNV1d0fsHxFVN1Dp85XTy5+QeChRc7UcZ+5ML+vfqA+HrAKVXT3/2Zqbk/6WOChRTrT9Sgsiq8HrF5RdopnTkxVYwIPLZFG71fn5h+uP9wR0JuxdeXswwIPLdG9GEUV8cWA3tXz8eXnigBa4beXqmK22321rvyugN6dEHhoiTemqyLqwgc0ozJFA5ApgQfIlMADZErgATIl8ACZEniATA0FkJXTF7rx1EvT8frZbly6aruHfvPgXUPx6IPrY9um3sff1sFDSzSxDv5UHffHjlwS9j43OlLEt/Zu7DXy1sFDLlLSv3tsRtwzcLH+HR6uX4X1SuAhI8dOzgV5OHG295OaBR6ghZp4JSbwAJkSeIBMCTxAphbWwe86PLWj041no1i4DnX/7uBexdH5Mg5MHBifXM63765vdzFSPFvUh6C+7XauX70j3SvVwReXedyBm6NciHsVx+vA7Y5+jntSxJ50W9JtWupbU9zLkeJ4kW63uPdqb7mueHX3Mo47cPOU9cj9cPR72N9rbOHVyBLqIB0W9kaNd0aKZwJojTKNeiM3xbK2PMvvdt9iVWGrOWiTXN9kNTK/NRx3aBGraAAyJfAAmRJ4gEwJPECmBB4gUwMb+KqKcwGQsUEewU8Ejaqq6oUAWmNwR/Bltc8ovjn1sZyqyjgQQGsMbOBf/KvxyTry99UfHg1WLT1J1n9+XB/L+9MxDaA1hmKAvR2kvQGQIatoADIl8ACZEniATAk8QKYEHiBTAg+QKYEHyNRAr4NPm0QXI8WzRcSuAdmf9Wj3SnXgxQNOSIJBMLAj+BT3cqQ4XhSxe4A2395TriuOp9seQPYGNvB16A4PUNivN9apX7UEkL1BnoPfEwOqKuopKSB73mQdTIP4ygUGjsADZErgATIl8ACZEniATAk8QKYGd09W+7ECmRvkEfxEDKiqql4IIHuDO4Ivq32DOIpf2CS7jP0BZG9gA5823K4jf1/94dEYAAthr+LFdJvf3mwcyNxAX03y7dDtDYAMWUUDkCmBB8iUwANkSuABMiXwAJkSeIBMCTxApgZ6Hfyz/za9oxha2J80bWFnl6PVqooj1XD34L77NkwG0BoDO4J/O+7H6w93h7j3pqj2FnPx6rPHp3cE0BoDG/iiUx4OYW9QMV7MFc8Et9TGkSJg0eDOwRfVnqBh1a7glrp7q7fVcvHAXb3PoLs30KDCK6JbKI3dH3tog1F8Bkbr3+GjD66PXgk8ZOSOTWV8a+/GePCugV4/0bfSk/OntncWfofbNvWe53QvSNdEH8SR16DebjL30ToMf/fntwWUUeW4s9Gydiwa2B2d1krVDTtFQYuU82Xsi8hnZ6Oqvi3zRbHkjkXVXJXV7b71qqkYqQ4E0BrlxIHxyfki7qvL2Nc7G6Ww1//xYre+Lek2LfX9+/50w2Qd+b6/3S2QniR/XA3F/U50gnbxdju0xBvTVRGz3W5AMyqraAAyJfAAmRJ4gEw5GwIyc/pCN556aTpeP9uNS1eroL+kk9TSWaxNnOjkTVZoiSbeZD1Vx/2xI5eEvc+lSxU0cDarN1khFynp3z02I+4ZuFj/Dg/Xr8J6JfCQkWMn54I8nDjb+4pZgQdooSZeiQk8QKYEHiBTAg+QKYEHyJTAA2RK4CEj9mPlegIPGbl7q4d0Lh5oYF9d9wbIRBq7P/bQBqP4DKRLFaTr0fTKPQFaoqkNP9LFxr5zbMZZrX0oPTmnV2EH6ifqBi42Vgk8tIQdnWiYi40B5ErgATIl8ACZEniATAk8QKYEHiBTAg+Qqd7PhQVaZXq2ip+dmo/zMxFzXfuzrtS20SI+ua0TG4aXd5pQ08d7pT//wzjRCVqiiROdUmxenpwX9h4N1XMbn9kxtGRk1+p4L/fnL8GJTpCTX5wR9ybM1U+zaVS+lLU63sv9+UsReMjI6Yvi3pTzM0sfy7U83sv5+UsReIAbmLvFVwVq4ucLPECmBB4yMuQRfVO1/Xi7O0BGNq+3MK4pabniUtbyeC/n5y9F4CEj997RMYpvQDqGaS36UtbqeC/35y/F0z20RFMbfqS12a+dno8zl6yoWakU1k3rivjU9pWd6NTU8V7Nz/8QdnSCtrCjEw1zohNArgQeIFMCD5ApgQfIlMADZErgATIl8NASI9eWUU8GNKEqJgQeWmJ2vn5MRjUR0ICq6p4UeGiJ4dHU9+5LAb2rirJzxJms0BJVVcXJczG+rtN9vf50LGC1qjixfUvnbiN4aImiKGJ4LKa689UjAatXRVEeSh8IPLTInXXkR8vO0Xr+9OmAlUvTfE9s31w8nz4xRQMtNFVP18ycnztUj8QeD1ieKg0MPrZl+MDiFwQeWupMHfn5c/MPR1k8Xj9SdwTcWD1qr6f2utUjd44PvXD9fyHw0HKLoS868aVuVeyoZ3F2Bf2u94vHVzFZFNVEVMWL093y+Z3jxbkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD6WHGjL+46PDXWqeIrUcXuqohd9TftCIiYqO8Tk/W95ugrB8e/F6yJQ1UVR586N1ZGPFZ0Y3d9vHcHLO14/efp6x+bvxf4T3/jzT1Rdp6tPxwL+GAn6j9PCH2zdv+4inMT53bWA6wfhYEVq3NivojPTxwYn3xP4O8/PHW4qGJ/wPJU9Su8J149MP5E0IgHvnW5mJu78nqIO71Jkb+/XPzs/ienHhd3Vqio7zOH/uSbU08GPdv97SpmZy8/HOJO73aW3e7+hcDf/803H66H8ocCVqEexe//9Dem9gQ9me1eLoqi89WABhRRPrQQ+PpO9XjA6tX3pXgmvTkfrNr83NX0166AJtRvzpdp9B5eEtK7sfol4cMBtEZZROdLAb2rpxeKzwXQGmU9f7ojoBHFHwfQGvUI3pwfjdkRQGuUAUCWBB4gUwIPkCmBB8iUwANkSuABMiXwAJkSeIBMCTxApgQeIFND0TIbhiO2rC9jw0jEcFkEv29mroqrcxFvzXRjejYAbqg1gU8tv2NTGaPrRH0p64eK+k/E5vWdOD9TxZmL3ehWAfAerZiiSXH/+FhH3Fdh8/qiPnZleLEDvF8rAr9ttFwYkbI6aUR/x2ZvpwDvdcurkObc0yiU3oyOFPWxdByBd93ywKc3VGnGFk+UwHVueV1HTM00xggeuN4tD3yaP6YZw50AeIf5EYBM9fUEyeXZKq7MRf3n2iLwTv1iYN1QsfDG7XDHKwNgsPVl4FPYz16qYnr2Rmf3XPtaWpmz9bZC6IGB1XeBT2E/e7m75PelMzzTE8DHt5QiDwykvpqDX27cF83OR/z6rW79t/P4gcHTN4FPI/KVxH3RYuS7K/+fAvS1RqZo0nz3F+4Zids3FgtvcrbVmQvdeO3MnCswAgOh58CnuH/5vnWtDvuibZvK+IONI/HyiasiD2Sv5ymaz+4c7ou4Lxqqb/G9250+C+Sv58B/4vb+O31ys+vfAANgIEs3pO/AAJC6NZaWaJ6q39xNq4AAbqaeJ6PTZQL6aQ7+Zkpx/9+3ujE3f22Z5+x8GVs3OlbAzdHzCP7NS/03Mk3LJdfa9XFflNbxn+3D4wX0p54D/8NfXn3nYl/9YK5bxWtn5mMt3Sjui0QeuFl6Dnyaevj+8Svxqzfnos1S2H9Xx/XlE3MfcJGyZnxY3BeJPHAzNLIgPEX+Bz9PZw6t/Oyhez6yvGWWdZ9j8nfzdahjxdK899bb1v795OXEfdG1yy6YkwfWTt+soinrDv7hWGfFSxzbGPdFRvLAWuqrZZJpS7oU+c3L2Fw6PSF8ZLS9cV8k8sBa6btz9lPk79hUT23cdi2O6Q3eK29P/5cLOzpF3DZSxPj6Msqb8PTVS9wXma4B1kLfXpRlMfS3UhNxXyTyQNOcybpKTcZ9kekaoEkCvwprEfdFIg80ReBXaC3jvkjkgSY0Mgf/0Xou/G8/vyH+aGsnRtcN3hzyv56YjW//dCZON3gJhBT54U65rBVDADfS8wg+xf07fzEauz42NJBxT9KmJ+kYfLThN31dhRLoRc9F+us/Wz+wYb9eOgbpVUzTUuQvXhF5YOUa2bKPa9IU1Vrop4u5Ae3hTdYGeSUDtInAA2RK4AEyJfAAmRJ4gEwJPECmeg68NdoA7dRz4P/77NpuYN1Pfnpi5VsWAqyVngP/Dz+aNoqPa69k0vVoANqi58CnU+kf/ceLCxfcGkQp7BO/mVs4BqcavNgYQK8auZpkCtvX//lyrMY9H1ne6f1nL3Xj7GWvFACWyyoagEwJPECmBB4gUwIPkCmBB8iUwANkqpFlkjfDxnVlDHcGc5nkyJCNRICVayTwm9cX8YV7RuL2jUWsW0WMzlzoxmtn5mL6Q86VWj+U/ggd+Tryl2MRs06Wozk9Bz7F/cv3rVtV2Bdt21TGH2wciZdPXP3QyAOwfI1sur2ugZH1UP3/5N7tfTNjBNB6PQf+E7cv71IDy7F5vfd8e3FlzqUcgHe1qqhD+t6TK3MB8A5JzchbM0bwwLt6DrxpgXY4X8d9etbvAnhXz4F/81JzUTnjeuqrMlM/yZ656NgB79Vz4H/4y6uNjOLTv/Hv/2ON5EqlDUd+fa4bXYN34H16XpeYpga+f/xKfHbnUHzi9pX/cynsv61Hn//yX7ML/9aG4SK2rC9ixIlNH2i2rvn01Wtz7qZlgA/SyMLzFOYf/DyNvnsfgadgiRZA76yiAciUwANkSuABMiXwAJkSeIBMuXwjZOb0hW489dJ0vH62G5euWpHWbx68aygefXD9wmXUe5X+hcmABtQpmQhuqVN13L965FL85xvz4t6njp2cW/gdNnFmf1k/Kj0oaUQR1cnglkk5/+6xGWHPwMX6d3i4fhXWq7KK7k8CeldXpXM0uKXS6I88nDjbwAi+W5bP1X+fC+hBXffJVw5u+V4AjWjilVg5cWD8XHRjX8DqVUWUTwTQKgtv077yN+P1S+vu0wGrUFTx90bv0D7vrMN55eDW/fUD1SiMlXrqP742fiiA1nnPQsv0QK2q2FdZOskS6vvIVD21t/eVg+MHAmil31tJ/+rXxp979eD4zhT6+lF81NpmFi088df3ifpus79bxN3XpvaAtvrAM1lT6Ou/ngugb2wcKayD5x2uRQMZuXurh3QuHrir9yvJuDdAJtIGl489tGFhFE9/G61/h+l6NL1yT4CWeGO6KmK22/Ppi+liY985NuOs1j6UnpzTq7AD9RN1AxcbqwQeWqKpwMPbKlM0AJkSeIBMCTxApgQeIFMCD5ApgQfIlMADZKr3c2GBVpmereJnp+bj/EzEXDef69JsGy3ik9s6sWHY6TvL5UhBSzRxolOK+8uT81mF/XpD9ZzDZ3YMifzyONEJcvKLM/nGPZmrn/7SqxOWR+AhI6cv5n+p4PMzLoe8XAIP9JU5V+tZNoEHyJTAQ0aGPKK5jrsDZGTz+vxXl6TlkiyPwENG7r2jk/UoPt22tBae5fFUCC3R1IYfaS38a6fn48ylfFabpLBvWlfEp7Y70WkF7OgEbWFHJxrmRCeAXAk8QKYEHiBTAg+QKYEHyJTAA2RK4AEyZUcnyMxa7+hkZ6X+4TcELdFPOzrZWakvONEJcnKzdnSys1J/EHjIyM3c0cnOSu0n8MCq2Fmp/QQeIFMCDxmxoxPXc3eAjNzMHZ3srNR+Ag8ZuVk7OtlZqT94CoaW6Icdneys1Ffs6ARtYUcnGuZEJ4BcCTxApgQeIFMCD5ApgQfIlMADZErgoSVGri1bnwxoQlVMCDy0xOx8/ZiMaiKgAVXVPSnw0BLDo6nv1U8CelcVZeeIM1mhJaqqipPnYnxdp/ur+tPxgNWq4sT2LZ27jeChJYqiiOGxmOrOV48ErF4VRXkofSDw0CJ31pEfLTsv1POnTwesXD3N131i++bi+fSJwEPLbNlSVBu6Q/vTAzXSAxaWp0oDg+1bhp9Y/II5eGipM/Wc/Py5+YejLL5eP1J3hMcrN1aP2uupvW71yJ3jQy9c/1+4w0DLLYa+6MQXu1Wxo57F2RVQxWRRVBNRFS9Od8vnd44X597/Lf8P9p5KMBDcvf8AAAAASUVORK5CYII=');width:74px;height:39px;background-size:188px}.monsterinsights-products-theme-preview-icon.monsterinsights-products-theme-preview-icon-alpha{background-position:0 0}.monsterinsights-products-theme-preview-icon.monsterinsights-products-theme-preview-icon-beta{background-position:-114px 0;height:65px}.monsterinsights-products-theme-preview-icon.monsterinsights-products-theme-preview-icon-charlie{background-position:0 -102px;height:50px}.monsterinsights-products-theme-preview-icon.monsterinsights-products-theme-preview-icon-delta{background-position:-114px -102px;height:78px}.monsterinsights-pro-pill{font-style:normal;font-weight:bold;font-size:11px;background:#1EC185;border-radius:5px;color:#fff;padding:3px 8px;margin-left:8px}.select300-container--disabled{margin-top:10px;opacity:0.6}
assets/css/images/index.php CHANGED
@@ -1,4 +1,4 @@
1
  <?php
2
  //Nothing to see here
3
 
4
- header( 'HTTP/1.0 403 Forbidden' );
1
  <?php
2
  //Nothing to see here
3
 
4
+ header( 'HTTP/1.0 403 Forbidden' );
assets/css/index.php CHANGED
@@ -1,4 +1,4 @@
1
  <?php
2
  //Nothing to see here
3
 
4
- header( 'HTTP/1.0 403 Forbidden' );
1
  <?php
2
  //Nothing to see here
3
 
4
+ header( 'HTTP/1.0 403 Forbidden' );
assets/fonts/README.md CHANGED
@@ -12,6 +12,6 @@ The files used by this font are
12
 
13
  The font files are generated using [FortAwesome](https://fortawesome.com).
14
 
15
- After generating new files, you'll need to update the files mentioned above & the css
16
  used for the icons which can be found in assets/css/admin.css starting on line 135, look
17
  for the class `.monstericon-`.
12
 
13
  The font files are generated using [FortAwesome](https://fortawesome.com).
14
 
15
+ After generating new files, you'll need to update the files mentioned above & the css
16
  used for the icons which can be found in assets/css/admin.css starting on line 135, look
17
  for the class `.monstericon-`.
assets/fonts/index.php CHANGED
@@ -1,4 +1,4 @@
1
  <?php
2
  //Nothing to see here
3
 
4
- header( 'HTTP/1.0 403 Forbidden' );
1
  <?php
2
  //Nothing to see here
3
 
4
+ header( 'HTTP/1.0 403 Forbidden' );
assets/fonts/monsterinsights.svg CHANGED
@@ -1 +1,77 @@
1
- <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" ><svg xmlns="http://www.w3.org/2000/svg"><metadata>Generated by Glyphter</metadata><defs><font id="soliloquy" horiz-adv-x="0"><font-face units-per-em="1024" ascent="1024" descent="0" font-family="soliloquy" font-weight="normal" /><missing-glyph horiz-adv-x="0" /><glyph unicode="&#x0041;" d="M960,416C960,416,878.4,401.6,878.4,401.6C870.4,376,860.8,352,848,329.6C848,329.6,896,262.4,896,262.4C921.6,236.8,921.6,196.8,896,171.2C896,171.2,851.2,128,851.2,128C825.6,102.4,785.6,102.4,760,128C760,128,692.8,176,692.8,176C670.4,163.2,646.4,153.6,620.8,145.6C620.8,145.6,608,64,608,64C608,28.8,579.2,0,544,0C544,0,480,0,480,0C444.8,0,416,28.8,416,64C416,64,401.6,145.6,401.6,145.6C376,153.6,352,163.2,329.6,176C329.6,176,262.4,128,262.4,128C236.8,102.4,196.8,102.4,171.2,128C171.2,128,128,172.8,128,172.8C102.4,198.4,102.4,238.4,128,264C128,264,176,331.2,176,331.2C163.2,353.6,153.6,377.6,145.6,403.2C145.6,403.2,64,416,64,416C28.8,416,0,444.8,0,480C0,480,0,544,0,544C0,579.2,28.8,608,64,608C64,608,145.6,622.4,145.6,622.4C153.6,648,163.2,672,176,694.4C176,694.4,128,761.6,128,761.6C102.4,787.2,102.4,827.2,128,852.8C128,852.8,172.8,896,172.8,896C198.4,921.6,238.4,921.6,264,896C264,896,331.2,848,331.2,848C353.6,860.8,377.6,870.4,403.2,878.4C403.2,878.4,416,960,416,960C416,995.2,444.8,1024,480,1024C480,1024,544,1024,544,1024C579.2,1024,608,995.2,608,960C608,960,622.4,878.4,622.4,878.4C648,870.4,672,860.8,694.4,848C694.4,848,761.6,896,761.6,896C787.2,921.6,827.2,921.6,852.8,896C852.8,896,897.6,851.2,897.6,851.2C923.2,825.6,923.2,785.6,897.6,760C897.6,760,849.6,692.8,849.6,692.8C862.4,670.4,872,646.4,880,620.8C880,620.8,960,608,960,608C995.2,608,1024,579.2,1024,544C1024,544,1024,480,1024,480C1024,444.8,995.2,416,960,416C960,416,960,416,960,416M928,544C928,544,827.2,560,827.2,560C819.2,611.2,798.4,659.2,769.6,699.2C769.6,699.2,828.8,782.4,828.8,782.4C841.6,795.2,841.6,814.4,828.8,827.2C816,840,796.8,840,784,827.2C784,827.2,700.8,768,700.8,768C660.8,796.8,612.8,817.6,561.6,825.6C561.6,825.6,544,928,544,928C544,945.6,529.6,960,512,960C494.4,960,480,945.6,480,928C480,928,462.4,827.2,462.4,827.2C411.2,819.2,363.2,798.4,323.2,769.6C323.2,769.6,240,828.8,240,828.8C227.2,841.6,208,841.6,195.2,828.8C182.4,816,182.4,796.8,195.2,784C195.2,784,254.4,700.8,254.4,700.8C224,660.8,204.8,612.8,196.8,561.6C196.8,561.6,96,544,96,544C78.4,544,64,529.6,64,512C64,494.4,78.4,480,96,480C96,480,196.8,464,196.8,464C204.8,412.8,225.6,364.8,254.4,324.8C254.4,324.8,195.2,240,195.2,240C182.4,227.2,182.4,208,195.2,195.2C208,182.4,227.2,182.4,240,195.2C240,195.2,323.2,254.4,323.2,254.4C363.2,225.6,411.2,204.8,462.4,196.8C462.4,196.8,480,96,480,96C480,78.4,494.4,64,512,64C529.6,64,544,78.4,544,96C544,96,560,196.8,560,196.8C611.2,204.8,659.2,225.6,699.2,254.4C699.2,254.4,782.4,195.2,782.4,195.2C795.2,182.4,814.4,182.4,827.2,195.2C840,208,840,227.2,827.2,240C827.2,240,768,323.2,768,323.2C798.4,363.2,817.6,411.2,825.6,462.4C825.6,462.4,926.4,478.4,926.4,478.4C944,478.4,958.4,492.8,958.4,510.4C958.4,528,945.6,544,928,544C928,544,928,544,928,544M512,352C424,352,352,424,352,512C352,600,424,672,512,672C600,672,672,600,672,512C672,424,600,352,512,352C512,352,512,352,512,352M512,608C459.2,608,416,564.8,416,512C416,459.2,459.2,416,512,416C564.8,416,608,459.2,608,512C608,564.8,564.8,608,512,608C512,608,512,608,512,608" class="soliloquy-configuration"/><glyph unicode="&#x0042;" d="M313.6,251.2C520,89.6,715.2,158.4,804.8,168C804.8,168,964.8,8,964.8,8C964.8,8,1024,8,1024,8C1024,8,840,192,840,192C838.4,302.4,1091.2,1016,0,1016C118.4,604.8,107.2,412.8,313.6,251.2M512,556.8C563.2,459.2,656,312,720,264C784,216,854.4,180.8,705.6,244.8C556.8,307.2,448,486.4,376,622.4C320,726.4,273.6,820.8,169.6,891.2C65.6,961.6,182.4,912,182.4,912C371.2,819.2,440,692.8,512,556.8" class="soliloquy-leaf"/><glyph unicode="&#x0044;" d="M64,128C64,128,64,832,64,832C64,832,0,832,0,832C0,832,0,128,0,128C0,57.6,60.8,0,136,0C136,0,896,0,896,0C896,0,896,64,896,64C896,64,132.8,64,132.8,64C94.4,64,64,92.8,64,128C64,128,64,128,64,128M864,896C864,896,288,896,288,896C270.4,896,256,881.6,256,864C256,864,256,352,256,352C256,334.4,270.4,320,288,320C288,320,864,320,864,320C881.6,320,896,334.4,896,352C896,352,896,864,896,864C896,881.6,881.6,896,864,896C864,896,864,896,864,896M832,416C832,398.4,817.6,384,800,384C800,384,352,384,352,384C334.4,384,320,398.4,320,416C320,416,320,800,320,800C320,817.6,334.4,832,352,832C352,832,800,832,800,832C817.6,832,832,817.6,832,800C832,800,832,416,832,416C832,416,832,416,832,416M960,1024C960,1024,192,1024,192,1024C156.8,1024,128,995.2,128,960C128,960,128,192,128,192C128,156.8,156.8,128,192,128C192,128,960,128,960,128C995.2,128,1024,156.8,1024,192C1024,192,1024,960,1024,960C1024,995.2,995.2,1024,960,1024C960,1024,960,1024,960,1024M960,224C960,206.4,945.6,192,928,192C928,192,224,192,224,192C206.4,192,192,206.4,192,224C192,224,192,928,192,928C192,945.6,206.4,960,224,960C224,960,928,960,928,960C945.6,960,960,945.6,960,928C960,928,960,224,960,224C960,224,960,224,960,224" class="soliloquy-lightbox"/><glyph unicode="&#x0045;" d="M992.432,835.643C992.432,835.643,850.042,693.253,850.042,693.253C850.042,693.253,720.451,720.451,720.451,720.451C720.451,720.451,694.852,850.042,694.852,850.042C694.852,850.042,835.643,992.432,835.643,992.432C790.846,1013.231,741.249,1024.43,691.653,1024.43C608.458,1024.43,523.664,992.432,459.669,928.436C368.475,837.243,342.877,704.452,381.274,589.26C381.274,589.26,43.697,251.683,43.697,251.683C-13.899,194.087,-13.899,101.293,43.697,43.697C72.495,14.899,109.293,0.5,147.69,0.5C186.087,0.5,222.885,14.899,251.683,43.697C251.683,43.697,589.26,381.274,589.26,381.274C624.457,370.075,659.655,363.675,696.452,363.675C781.246,363.675,864.441,395.673,928.436,459.669C1030.829,562.062,1050.028,712.451,992.432,835.643C992.432,835.643,992.432,835.643,992.432,835.643M877.24,512.465C829.243,464.468,765.248,437.27,696.452,437.27C667.654,437.27,640.456,442.07,613.258,450.069C613.258,450.069,570.061,464.468,570.061,464.468C570.061,464.468,538.063,432.47,538.063,432.47C538.063,432.47,200.486,94.894,200.486,94.894C186.087,80.495,168.488,72.495,147.69,72.495C128.491,72.495,109.293,80.495,94.894,94.894C80.495,109.293,72.495,126.891,72.495,147.69C72.495,166.889,80.495,186.087,94.894,200.486C94.894,200.486,432.47,538.063,432.47,538.063C432.47,538.063,464.468,570.061,464.468,570.061C464.468,570.061,450.069,613.258,450.069,613.258C418.071,707.652,442.07,808.445,510.865,877.24C558.862,925.237,622.857,952.435,691.653,952.435C691.653,952.435,642.056,902.838,642.056,902.838C642.056,902.838,614.858,875.64,614.858,875.64C614.858,875.64,622.857,837.243,622.857,837.243C622.857,837.243,648.456,707.652,648.456,707.652C648.456,707.652,658.055,659.655,658.055,659.655C658.055,659.655,706.052,650.055,706.052,650.055C706.052,650.055,835.643,624.457,835.643,624.457C835.643,624.457,874.04,616.458,874.04,616.458C874.04,616.458,901.238,643.656,901.238,643.656C901.238,643.656,950.835,693.253,950.835,693.253C950.835,626.057,925.237,560.462,877.24,512.465C877.24,512.465,877.24,512.465,877.24,512.465" class="soliloquy-misc"/><glyph unicode="&#x0046;" d="M704,1024C704,1024,320,1024,320,1024C249.6,1024,192,966.4,192,896C192,896,192,128,192,128C192,57.6,249.6,0,320,0C320,0,704,0,704,0C774.4,0,832,57.6,832,128C832,128,832,896,832,896C832,966.4,774.4,1024,704,1024C704,1024,704,1024,704,1024M768,128C768,92.8,739.2,64,704,64C704,64,320,64,320,64C284.8,64,256,92.8,256,128C256,128,256,320,256,320C256,320,768,320,768,320C768,320,768,128,768,128C768,128,768,128,768,128M768,384C768,384,256,384,256,384C256,384,256,768,256,768C256,768,768,768,768,768C768,768,768,384,768,384C768,384,768,384,768,384M768,832C768,832,256,832,256,832C256,832,256,896,256,896C256,931.2,284.8,960,320,960C320,960,704,960,704,960C739.2,960,768,931.2,768,896C768,896,768,832,768,832C768,832,768,832,768,832M512,128C547.2,128,576,156.8,576,192C576,227.2,547.2,256,512,256C476.8,256,448,227.2,448,192C448,156.8,476.8,128,512,128C512,128,512,128,512,128" class="soliloquy-mobile"/><glyph unicode="&#x0047;" d="M416,960C416,960,416,1024,416,1024C416,1024,1024,1024,1024,1024C1024,1024,1024,960,1024,960C1024,960,416,960,416,960C416,960,416,960,416,960C416,960,416,960,416,960M640,720C640,720,640,784,640,784C640,784,896,784,896,784C896,784,896,720,896,720C896,720,640,720,640,720C640,720,640,720,640,720C640,720,640,720,640,720M640,592C640,592,640,656,640,656C640,656,896,656,896,656C896,656,896,592,896,592C896,592,640,592,640,592C640,592,640,592,640,592C640,592,640,592,640,592M640,464C640,464,640,528,640,528C640,528,896,528,896,528C896,528,896,464,896,464C896,464,640,464,640,464C640,464,640,464,640,464C640,464,640,464,640,464M608,224C608,224,608,288,608,288C608,288,1024,288,1024,288C1024,288,1024,224,1024,224C1024,224,608,224,608,224C608,224,608,224,608,224C608,224,608,224,608,224M960,288C960,288,960,960,960,960C960,960,1024,960,1024,960C1024,960,1024,288,1024,288C1024,288,960,288,960,288C960,288,960,288,960,288C960,288,960,288,960,288M416,800C416,800,416,960,416,960C416,960,480,960,480,960C480,960,480,800,480,800C480,800,416,800,416,800C416,800,416,800,416,800C416,800,416,800,416,800M0,736C0,736,0,800,0,800C0,800,608,800,608,800C608,800,608,736,608,736C608,736,0,736,0,736C0,736,0,736,0,736C0,736,0,736,0,736M128,496C128,496,128,560,128,560C128,560,480,560,480,560C480,560,480,496,480,496C480,496,128,496,128,496C128,496,128,496,128,496C128,496,128,496,128,496M128,368C128,368,128,432,128,432C128,432,480,432,480,432C480,432,480,368,480,368C480,368,128,368,128,368C128,368,128,368,128,368C128,368,128,368,128,368M128,240C128,240,128,304,128,304C128,304,480,304,480,304C480,304,480,240,480,240C480,240,128,240,128,240C128,240,128,240,128,240C128,240,128,240,128,240M0,0C0,0,0,64,0,64C0,64,608,64,608,64C608,64,608,0,608,0C608,0,0,0,0,0C0,0,0,0,0,0C0,0,0,0,0,0M544,64C544,64,544,736,544,736C544,736,608,736,608,736C608,736,608,64,608,64C608,64,544,64,544,64C544,64,544,64,544,64C544,64,544,64,544,64M0,64C0,64,0,736,0,736C0,736,64,736,64,736C64,736,64,64,64,64C64,64,0,64,0,64C0,64,0,64,0,64C0,64,0,64,0,64" class="soliloquy-pagination"/><glyph unicode="&#x0048;" d="M969.6,0C969.6,0,198.4,0,198.4,0C168,0,144,24,144,54.4C144,54.4,144,192,144,192C144,193.6,144,195.2,144,196.8C144,196.8,144,825.6,144,825.6C144,856,168,880,198.4,880C198.4,880,968,880,968,880C998.4,880,1022.4,856,1022.4,825.6C1022.4,825.6,1022.4,56,1022.4,56C1024,24,1000,0,969.6,0C969.6,0,969.6,0,969.6,0M198.4,83.2C198.4,68.8,211.2,56,225.6,56C225.6,56,713.6,56,713.6,56C713.6,56,440,371.2,440,371.2C440,371.2,198.4,176,198.4,176C198.4,176,198.4,83.2,198.4,83.2C198.4,83.2,198.4,83.2,198.4,83.2M969.6,796.8C969.6,811.2,956.8,824,942.4,824C942.4,824,227.2,824,227.2,824C212.8,824,200,811.2,200,796.8C200,796.8,200,251.2,200,251.2C200,251.2,420.8,432,420.8,432C425.6,435.2,430.4,436.8,435.2,438.4C436.8,438.4,436.8,438.4,438.4,440C440,440,443.2,441.6,444.8,441.6C452.8,443.2,462.4,440,467.2,433.6C467.2,433.6,552,334.4,552,334.4C552,334.4,809.6,544,809.6,544C816,550.4,824,552,832,550.4C841.6,550.4,849.6,548.8,857.6,544C857.6,544,969.6,422.4,969.6,422.4C969.6,422.4,969.6,796.8,969.6,796.8C969.6,796.8,969.6,796.8,969.6,796.8M969.6,337.6C968,337.6,968,337.6,969.6,337.6C969.6,337.6,828.8,488,828.8,488C828.8,488,587.2,291.2,587.2,291.2C587.2,291.2,792,54.4,792,54.4C792,54.4,940.8,54.4,940.8,54.4C955.2,54.4,968,67.2,968,81.6C968,81.6,968,337.6,968,337.6C968,337.6,969.6,337.6,969.6,337.6M364.8,550.4C304,550.4,254.4,600,254.4,660.8C254.4,721.6,304,771.2,364.8,771.2C425.6,771.2,475.2,721.6,475.2,660.8C473.6,600,425.6,550.4,364.8,550.4C364.8,550.4,364.8,550.4,364.8,550.4M364.8,715.2C334.4,715.2,310.4,691.2,310.4,660.8C310.4,630.4,334.4,606.4,364.8,606.4C395.2,606.4,419.2,630.4,419.2,660.8C419.2,689.6,395.2,715.2,364.8,715.2C364.8,715.2,364.8,715.2,364.8,715.2M256,960C256,960,192,960,192,960C192,960,192,1024,192,1024C192,1024,256,1024,256,1024C256,1024,256,960,256,960C256,960,256,960,256,960M448,960C448,960,384,960,384,960C384,960,384,1024,384,1024C384,1024,448,1024,448,1024C448,1024,448,960,448,960C448,960,448,960,448,960M640,960C640,960,576,960,576,960C576,960,576,1024,576,1024C576,1024,640,1024,640,1024C640,1024,640,960,640,960C640,960,640,960,640,960M832,960C832,960,768,960,768,960C768,960,768,1024,768,1024C768,1024,832,1024,832,1024C832,1024,832,960,832,960C832,960,832,960,832,960M1024,960C1024,960,960,960,960,960C960,960,960,1024,960,1024C960,1024,1024,1024,1024,1024C1024,1024,1024,960,1024,960C1024,960,1024,960,1024,960M64,960C64,960,0,960,0,960C0,960,0,1024,0,1024C0,1024,64,1024,64,1024C64,1024,64,960,64,960C64,960,64,960,64,960M64,768C64,768,0,768,0,768C0,768,0,832,0,832C0,832,64,832,64,832C64,832,64,768,64,768C64,768,64,768,64,768M64,576C64,576,0,576,0,576C0,576,0,640,0,640C0,640,64,640,64,640C64,640,64,576,64,576C64,576,64,576,64,576M64,384C64,384,0,384,0,384C0,384,0,448,0,448C0,448,64,448,64,448C64,448,64,384,64,384C64,384,64,384,64,384M64,192C64,192,0,192,0,192C0,192,0,256,0,256C0,256,64,256,64,256C64,256,64,192,64,192C64,192,64,192,64,192M64,0C64,0,0,0,0,0C0,0,0,64,0,64C0,64,64,64,64,64C64,64,64,0,64,0C64,0,64,0,64,0" class="soliloquy-proofing"/><glyph unicode="&#x0049;" d="M992,960.654C992,960.654,32,960.654,32,960.654C14.4,960.654,0,946.254,0,928.654C0,911.054,14.4,896.654,32,896.654C32,896.654,64,896.654,64,896.654C64,896.654,64,320.654,64,320.654C64,285.454,92.8,256.654,128,256.654C128,256.654,404.8,256.654,404.8,256.654C404.8,256.654,324.8,109.454,324.8,109.454C315.2,95.054,321.6,75.854,337.6,67.854C355.2,59.854,376,64.654,385.6,79.054C385.6,79.054,475.2,242.254,475.2,242.254C478.4,247.054,480,250.254,480,255.054C480,255.054,544,255.054,544,255.054C544,250.254,545.6,245.454,548.8,242.254C548.8,242.254,638.4,79.054,638.4,79.054C648,64.654,670.4,59.854,686.4,67.854C704,75.854,708.8,95.054,699.2,109.454C699.2,109.454,619.2,256.654,619.2,256.654C619.2,256.654,896,256.654,896,256.654C931.2,256.654,960,285.454,960,320.654C960,320.654,960,896.654,960,896.654C960,896.654,992,896.654,992,896.654C1009.6,896.654,1024,911.054,1024,928.654C1024,946.254,1009.6,960.654,992,960.654C992,960.654,992,960.654,992,960.654M896,832.654C896,832.654,896,832.654,896,832.654C896,832.654,896,352.654,896,352.654C896,335.054,881.6,320.654,864,320.654C864,320.654,160,320.654,160,320.654C142.4,320.654,128,335.054,128,352.654C128,352.654,128,864.654,128,864.654C128,864.654,128,864.654,128,864.654C128,864.654,128,896.654,128,896.654C128,896.654,160,896.654,160,896.654C160,896.654,160,896.654,160,896.654C160,896.654,864,896.654,864,896.654C864,896.654,864,896.654,864,896.654C864,896.654,896,896.654,896,896.654C896,896.654,896,832.654,896,832.654C896,832.654,896,832.654,896,832.654M816,770.254C800,779.854,780.8,773.454,772.8,759.054C772.8,759.054,574.4,578.254,574.4,578.254C574.4,578.254,417.6,690.254,417.6,690.254C409.6,701.454,393.6,707.854,379.2,704.654C376,704.654,374.4,703.054,371.2,703.054C371.2,703.054,369.6,703.054,369.6,703.054C369.6,703.054,368,703.054,368,701.454C366.4,699.854,363.2,698.254,361.6,696.654C360,695.054,358.4,693.454,356.8,691.854C356.8,691.854,356.8,691.854,355.2,690.254C355.2,690.254,195.2,498.254,195.2,498.254C185.6,482.254,192,463.054,206.4,453.454C220.8,443.854,241.6,450.254,249.6,464.654C249.6,464.654,390.4,632.654,390.4,632.654C390.4,632.654,539.2,527.054,539.2,527.054C542.4,522.254,547.2,519.054,553.6,515.854C555.2,514.254,555.2,511.054,558.4,509.454C574.4,501.454,593.6,506.254,601.6,520.654C601.6,520.654,825.6,725.454,825.6,725.454C836.8,743.054,832,762.254,816,770.254C816,770.254,816,770.254,816,770.254" class="soliloquy-slideshow"/><glyph unicode="&#x004a;" d="M195.829,420.092C195.829,420.092,420.092,195.829,420.092,195.829C420.092,195.829,464.945,240.682,464.945,240.682C464.945,240.682,240.682,464.945,240.682,464.945C240.682,464.945,195.829,420.092,195.829,420.092C195.829,420.092,195.829,420.092,195.829,420.092M532.224,1024C532.224,1024,18.021,509.797,18.021,509.797C-6.007,485.769,-6.007,445.722,18.021,420.092C18.021,420.092,420.092,18.021,420.092,18.021C444.12,-6.007,484.167,-6.007,509.797,18.021C509.797,18.021,1024,532.224,1024,532.224C1024,532.224,1024,1024,1024,1024C1024,1024,532.224,1024,532.224,1024C532.224,1024,532.224,1024,532.224,1024M956.721,554.65C956.721,554.65,487.371,83.698,487.371,83.698C474.556,70.883,455.334,70.883,442.519,83.698C442.519,83.698,83.698,442.519,83.698,442.519C70.883,455.334,70.883,474.556,83.698,487.371C83.698,487.371,554.65,956.721,554.65,956.721C554.65,956.721,959.925,959.925,959.925,959.925C959.925,959.925,956.721,554.65,956.721,554.65C956.721,554.65,956.721,554.65,956.721,554.65M859.007,676.393C908.665,726.051,908.665,807.747,859.007,857.405C809.348,907.063,727.653,907.063,677.995,857.405C628.336,807.747,628.336,726.051,677.995,676.393C726.051,626.734,807.747,626.734,859.007,676.393C859.007,676.393,859.007,676.393,859.007,676.393M722.847,814.154C748.477,839.784,788.524,839.784,814.154,814.154C839.784,788.524,839.784,748.477,814.154,722.847C788.524,697.217,748.477,697.217,722.847,722.847C697.217,748.477,697.217,788.524,722.847,814.154C722.847,814.154,722.847,814.154,722.847,814.154" class="soliloquy-tags"/><glyph unicode="&#x004b;" d="M960,1024C960,1024,64,1024,64,1024C28.8,1024,0,995.2,0,960C0,960,0,228.8,0,228.8C0,227.2,0,225.6,0,224C0,224,0,64,0,64C0,28.8,28.8,0,64,0C64,0,960,0,960,0C995.2,0,1024,28.8,1024,64C1024,64,1024,960,1024,960C1024,995.2,995.2,1024,960,1024C960,1024,960,1024,960,1024M96,64C78.4,64,64,78.4,64,96C64,96,64,204.8,64,204.8C64,204.8,345.6,432,345.6,432C345.6,432,664,64,664,64C664,64,96,64,96,64C96,64,96,64,96,64M960,96C960,78.4,945.6,64,928,64C928,64,755.2,64,755.2,64C755.2,64,516.8,339.2,516.8,339.2C516.8,339.2,796.8,568,796.8,568C796.8,568,958.4,392,958.4,392C958.4,392,958.4,392,960,392C960,392,960,96,960,96C960,96,960,96,960,96M960,491.2C960,491.2,830.4,632,830.4,632C822.4,638.4,811.2,640,800,640C790.4,640,780.8,638.4,774.4,632C774.4,632,475.2,387.2,475.2,387.2C475.2,387.2,376,502.4,376,502.4C368,510.4,358.4,513.6,348.8,512C345.6,512,344,510.4,340.8,510.4C339.2,510.4,339.2,510.4,337.6,508.8C331.2,507.2,324.8,507.2,320,502.4C320,502.4,64,292.8,64,292.8C64,292.8,64,928,64,928C64,945.6,78.4,960,96,960C96,960,928,960,928,960C945.6,960,960,945.6,960,928C960,928,960,491.2,960,491.2C960,491.2,960,491.2,960,491.2M256,896C185.6,896,128,838.4,128,768C128,697.6,185.6,640,256,640C326.4,640,384,697.6,384,768C384,838.4,326.4,896,256,896C256,896,256,896,256,896M256,704C220.8,704,192,732.8,192,768C192,803.2,220.8,832,256,832C291.2,832,320,803.2,320,768C320,732.8,291.2,704,256,704C256,704,256,704,256,704" class="soliloquy-thumbnails"/><glyph unicode="&#x004c;" d="M992,768C992,768,768,619.2,768,619.2C768,619.2,768,704,768,704C768,774.4,710.4,832,640,832C640,832,128,832,128,832C57.6,832,0,774.4,0,704C0,704,0,320,0,320C0,249.6,57.6,192,128,192C128,192,640,192,640,192C710.4,192,768,249.6,768,320C768,320,768,404.8,768,404.8C768,404.8,992,256,992,256C1009.6,256,1024,270.4,1024,288C1024,288,1024,736,1024,736C1024,753.6,1009.6,768,992,768C992,768,992,768,992,768M704,320C704,284.8,675.2,256,640,256C640,256,128,256,128,256C92.8,256,64,284.8,64,320C64,320,64,704,64,704C64,739.2,92.8,768,128,768C128,768,640,768,640,768C675.2,768,704,739.2,704,704C704,704,704,320,704,320C704,320,704,320,704,320M960,353.6C960,353.6,768,481.6,768,481.6C768,481.6,768,540.8,768,540.8C768,540.8,960,668.8,960,668.8C960,668.8,960,353.6,960,353.6C960,353.6,960,353.6,960,353.6" class="soliloquy-video"/><glyph unicode="&#x004d;" d="M800,640C800,640,800,736,800,736C800,894.4,670.4,1024,512,1024C353.6,1024,224,894.4,224,736C224,736,224,640,224,640C224,640,224,640,224,640C153.6,640,96,582.4,96,512C96,512,96,128,96,128C96,57.6,153.6,0,224,0C224,0,800,0,800,0C870.4,0,928,57.6,928,128C928,128,928,512,928,512C928,582.4,870.4,640,800,640C800,640,800,640,800,640M288,736C288,859.2,388.8,960,512,960C635.2,960,736,859.2,736,736C736,736,736,640,736,640C736,640,288,640,288,640C288,640,288,736,288,736C288,736,288,736,288,736M864,128C864,92.8,835.2,64,800,64C800,64,224,64,224,64C188.8,64,160,92.8,160,128C160,128,160,512,160,512C160,547.2,188.8,576,224,576C224,576,800,576,800,576C835.2,576,864,547.2,864,512C864,512,864,128,864,128C864,128,864,128,864,128M512,448C494.4,448,480,433.6,480,416C480,416,480,224,480,224C480,206.4,494.4,192,512,192C529.6,192,544,206.4,544,224C544,224,544,416,544,416C544,433.6,529.6,448,512,448C512,448,512,448,512,448" class="soliloquy-watermark"/><glyph unicode="&#x004e;" d="M682.667,461.267C682.667,466.244,681.067,470.333,677.867,473.533C674.667,476.733,670.578,478.333,665.6,478.333C665.6,478.333,546.133,478.333,546.133,478.333C546.133,478.333,546.133,666.067,546.133,666.067C546.133,670.689,544.444,674.689,541.067,678.067C537.689,681.444,533.689,683.133,529.067,683.133C529.067,683.133,426.667,683.133,426.667,683.133C422.044,683.133,418.044,681.444,414.667,678.067C411.289,674.689,409.6,670.689,409.6,666.067C409.6,666.067,409.6,478.333,409.6,478.333C409.6,478.333,290.133,478.333,290.133,478.333C285.511,478.333,281.511,476.644,278.133,473.267C274.756,469.889,273.067,465.889,273.067,461.267C273.067,456.289,274.667,452.2,277.867,449C277.867,449,465.6,261.267,465.6,261.267C468.8,258.067,472.889,256.467,477.867,256.467C482.844,256.467,486.933,258.067,490.133,261.267C490.133,261.267,677.333,448.467,677.333,448.467C680.889,452.733,682.667,457,682.667,461.267C682.667,461.267,682.667,461.267,682.667,461.267M1024,341.8C1024,285.267,1004,237,964,197C924,157,875.733,137,819.2,137C819.2,137,238.933,137,238.933,137C173.156,137,116.889,160.378,70.133,207.133C23.378,253.889,0,310.156,0,375.933C0,422.156,12.444,464.822,37.333,503.933C62.222,543.044,95.644,572.378,137.6,591.933C136.889,602.6,136.533,610.244,136.533,614.867C136.533,690.244,163.2,754.6,216.533,807.933C269.867,861.267,334.222,887.933,409.6,887.933C465.067,887.933,515.822,872.467,561.867,841.533C607.911,810.6,641.422,769.533,662.4,718.333C687.644,740.378,717.156,751.4,750.933,751.4C788.622,751.4,820.8,738.067,847.467,711.4C874.133,684.733,887.467,652.556,887.467,614.867C887.467,587.844,880.178,563.311,865.6,541.267C911.822,530.244,949.778,506.156,979.467,469C1009.156,431.844,1024,389.444,1024,341.8C1024,341.8,1024,341.8,1024,341.8" class="soliloquy-cloud-download"/><glyph unicode="&#x004f;" d="M0,512C0,555.333,8.5,596.75,25.5,636.25C42.5,675.75,65.25,709.75,93.75,738.25C122.25,766.75,156.25,789.5,195.75,806.5C235.25,823.5,276.667,832,320,832C320,832,704,832,704,832C747.333,832,788.75,823.5,828.25,806.5C867.75,789.5,901.75,766.75,930.25,738.25C958.75,709.75,981.5,675.75,998.5,636.25C1015.5,596.75,1024,555.333,1024,512C1024,468.667,1015.5,427.25,998.5,387.75C981.5,348.25,958.75,314.25,930.25,285.75C901.75,257.25,867.75,234.5,828.25,217.5C788.75,200.5,747.333,192,704,192C704,192,320,192,320,192C276.667,192,235.25,200.5,195.75,217.5C156.25,234.5,122.25,257.25,93.75,285.75C65.25,314.25,42.5,348.25,25.5,387.75C8.5,427.25,0,468.667,0,512C0,512,0,512,0,512M704,256C738.667,256,771.75,262.75,803.25,276.25C834.75,289.75,862,308,885,331C908,354,926.25,381.25,939.75,412.75C953.25,444.25,960,477.333,960,512C960,546.667,953.25,579.75,939.75,611.25C926.25,642.75,908,670,885,693C862,716,834.75,734.25,803.25,747.75C771.75,761.25,738.667,768,704,768C669.333,768,636.25,761.25,604.75,747.75C573.25,734.25,546,716,523,693C500,670,481.75,642.75,468.25,611.25C454.75,579.75,448,546.667,448,512C448,477.333,454.75,444.25,468.25,412.75C481.75,381.25,500,354,523,331C546,308,573.25,289.75,604.75,276.25C636.25,262.75,669.333,256,704,256C704,256,704,256,704,256" class="soliloquy-toggle-on"/><glyph unicode="&#x0050;" d="M810.667,469.333C810.667,469.333,810.667,554.667,810.667,554.667C810.667,566.222,806.445,576.222,798,584.667C789.555,593.111,779.555,597.333,768,597.333C768,597.333,597.333,597.333,597.333,597.333C597.333,597.333,597.333,768,597.333,768C597.333,779.555,593.111,789.555,584.667,798C576.222,806.445,566.222,810.667,554.667,810.667C554.667,810.667,469.333,810.667,469.333,810.667C457.778,810.667,447.778,806.445,439.333,798C430.889,789.555,426.667,779.555,426.667,768C426.667,768,426.667,597.333,426.667,597.333C426.667,597.333,256,597.333,256,597.333C244.445,597.333,234.445,593.111,226,584.667C217.555,576.222,213.333,566.222,213.333,554.667C213.333,554.667,213.333,469.333,213.333,469.333C213.333,457.778,217.555,447.778,226,439.333C234.445,430.889,244.445,426.667,256,426.667C256,426.667,426.667,426.667,426.667,426.667C426.667,426.667,426.667,256,426.667,256C426.667,244.445,430.889,234.445,439.333,226C447.778,217.555,457.778,213.333,469.333,213.333C469.333,213.333,554.667,213.333,554.667,213.333C566.222,213.333,576.222,217.555,584.667,226C593.111,234.445,597.333,244.445,597.333,256C597.333,256,597.333,426.667,597.333,426.667C597.333,426.667,768,426.667,768,426.667C779.555,426.667,789.555,430.889,798,439.333C806.445,447.778,810.667,457.778,810.667,469.333C810.667,469.333,810.667,469.333,810.667,469.333M1024,512C1024,419.111,1001.111,333.445,955.333,255C909.555,176.555,847.445,114.445,769,68.667C690.555,22.889,604.889,0,512,0C419.111,0,333.445,22.889,255,68.667C176.555,114.445,114.445,176.555,68.667,255C22.889,333.445,0,419.111,0,512C0,604.889,22.889,690.555,68.667,769C114.445,847.445,176.555,909.555,255,955.333C333.445,1001.111,419.111,1024,512,1024C604.889,1024,690.555,1001.111,769,955.333C847.445,909.555,909.555,847.445,955.333,769C1001.111,690.555,1024,604.889,1024,512C1024,512,1024,512,1024,512" class="soliloquy-plus-circle"/><glyph unicode="&#x0051;" d="M1024,736C1024,718.696,1017.672,703.689,1005.016,690.977C1005.016,690.977,557.023,242.984,557.023,242.984C544.367,230.328,529.36,224,512,224C494.64,224,479.633,230.328,466.977,242.984C466.977,242.984,18.984,690.977,18.984,690.977C6.328,703.633,0,718.64,0,736C0,753.36,6.328,768.367,18.984,781.023C31.64,793.679,46.647,800.007,64.007,800.007C64.007,800.007,959.993,800.007,959.993,800.007C977.297,800.007,992.304,793.679,1005.016,781.023C1017.728,768.367,1024.056,753.36,1024,736C1024,736,1024,736,1024,736" class="soliloquy-down-arrow"/><glyph unicode="&#x0052;" d="M292.553,274.581C292.553,274.581,292.553,164.85,292.553,164.85C292.553,149.617,287.209,136.657,276.553,126.001C265.896,115.344,252.936,110,237.703,110C237.703,110,54.85,110,54.85,110C39.617,110,26.657,115.344,16.001,126.001C5.344,136.657,0,149.617,0,164.85C0,164.85,0,274.581,0,274.581C0,289.814,5.344,302.774,16.001,313.43C26.657,324.087,39.617,329.431,54.85,329.431C54.85,329.431,237.703,329.431,237.703,329.431C252.936,329.431,265.896,324.087,276.553,313.43C287.209,302.774,292.553,289.814,292.553,274.581C292.553,274.581,292.553,274.581,292.553,274.581M292.553,567.166C292.553,567.166,292.553,457.435,292.553,457.435C292.553,442.202,287.209,429.242,276.553,418.586C265.896,407.929,252.936,402.585,237.703,402.585C237.703,402.585,54.85,402.585,54.85,402.585C39.617,402.585,26.657,407.929,16.001,418.586C5.344,429.242,0,442.202,0,457.435C0,457.435,0,567.166,0,567.166C0,582.399,5.344,595.359,16.001,606.016C26.657,616.672,39.617,622.016,54.85,622.016C54.85,622.016,237.703,622.016,237.703,622.016C252.936,622.016,265.896,616.672,276.553,606.016C287.209,595.359,292.553,582.399,292.553,567.166C292.553,567.166,292.553,567.166,292.553,567.166M1024,274.581C1024,274.581,1024,164.85,1024,164.85C1024,149.617,1018.656,136.657,1007.999,126.001C997.343,115.344,984.383,110,969.15,110C969.15,110,420.557,110,420.557,110C405.325,110,392.364,115.344,381.708,126.001C371.052,136.657,365.707,149.617,365.707,164.85C365.707,164.85,365.707,274.581,365.707,274.581C365.707,289.814,371.052,302.774,381.708,313.43C392.364,324.087,405.325,329.431,420.557,329.431C420.557,329.431,969.15,329.431,969.15,329.431C984.383,329.431,997.343,324.087,1007.999,313.43C1018.656,302.774,1024,289.814,1024,274.581C1024,274.581,1024,274.581,1024,274.581M292.553,859.751C292.553,859.751,292.553,750.02,292.553,750.02C292.553,734.788,287.209,721.827,276.553,711.171C265.896,700.514,252.936,695.17,237.703,695.17C237.703,695.17,54.85,695.17,54.85,695.17C39.617,695.17,26.657,700.514,16.001,711.171C5.344,721.827,0,734.788,0,750.02C0,750.02,0,859.751,0,859.751C0,874.984,5.344,887.944,16.001,898.601C26.657,909.257,39.617,914.601,54.85,914.601C54.85,914.601,237.703,914.601,237.703,914.601C252.936,914.601,265.896,909.257,276.553,898.601C287.209,887.944,292.553,874.984,292.553,859.751C292.553,859.751,292.553,859.751,292.553,859.751M1024,567.166C1024,567.166,1024,457.435,1024,457.435C1024,442.202,1018.656,429.242,1007.999,418.586C997.343,407.929,984.383,402.585,969.15,402.585C969.15,402.585,420.557,402.585,420.557,402.585C405.325,402.585,392.364,407.929,381.708,418.586C371.052,429.242,365.707,442.202,365.707,457.435C365.707,457.435,365.707,567.166,365.707,567.166C365.707,582.399,371.052,595.359,381.708,606.016C392.364,616.672,405.325,622.016,420.557,622.016C420.557,622.016,969.15,622.016,969.15,622.016C984.383,622.016,997.343,616.672,1007.999,606.016C1018.656,595.359,1024,582.399,1024,567.166C1024,567.166,1024,567.166,1024,567.166M1024,859.751C1024,859.751,1024,750.02,1024,750.02C1024,734.788,1018.656,721.827,1007.999,711.171C997.343,700.514,984.383,695.17,969.15,695.17C969.15,695.17,420.557,695.17,420.557,695.17C405.325,695.17,392.364,700.514,381.708,711.171C371.052,721.827,365.707,734.788,365.707,750.02C365.707,750.02,365.707,859.751,365.707,859.751C365.707,874.984,371.052,887.944,381.708,898.601C392.364,909.257,405.325,914.601,420.557,914.601C420.557,914.601,969.15,914.601,969.15,914.601C984.383,914.601,997.343,909.257,1007.999,898.601C1018.656,887.944,1024,874.984,1024,859.751C1024,859.751,1024,859.751,1024,859.751" class="soliloquy-list"/><glyph unicode="&#x0053;" d="M292.553,274.581C292.553,274.581,292.553,164.85,292.553,164.85C292.553,149.617,287.209,136.657,276.553,126.001C265.896,115.344,252.936,110,237.703,110C237.703,110,54.85,110,54.85,110C39.617,110,26.657,115.344,16.001,126.001C5.344,136.657,0,149.617,0,164.85C0,164.85,0,274.581,0,274.581C0,289.814,5.344,302.774,16.001,313.43C26.657,324.087,39.617,329.431,54.85,329.431C54.85,329.431,237.703,329.431,237.703,329.431C252.936,329.431,265.896,324.087,276.553,313.43C287.209,302.774,292.553,289.814,292.553,274.581C292.553,274.581,292.553,274.581,292.553,274.581M292.553,567.166C292.553,567.166,292.553,457.435,292.553,457.435C292.553,442.202,287.209,429.242,276.553,418.586C265.896,407.929,252.936,402.585,237.703,402.585C237.703,402.585,54.85,402.585,54.85,402.585C39.617,402.585,26.657,407.929,16.001,418.586C5.344,429.242,0,442.202,0,457.435C0,457.435,0,567.166,0,567.166C0,582.399,5.344,595.359,16.001,606.016C26.657,616.672,39.617,622.016,54.85,622.016C54.85,622.016,237.703,622.016,237.703,622.016C252.936,622.016,265.896,616.672,276.553,606.016C287.209,595.359,292.553,582.399,292.553,567.166C292.553,567.166,292.553,567.166,292.553,567.166M658.261,274.581C658.261,274.581,658.261,164.85,658.261,164.85C658.261,149.617,652.916,136.657,642.26,126.001C631.604,115.344,618.643,110,603.411,110C603.411,110,420.557,110,420.557,110C405.325,110,392.364,115.344,381.708,126.001C371.052,136.657,365.707,149.617,365.707,164.85C365.707,164.85,365.707,274.581,365.707,274.581C365.707,289.814,371.052,302.774,381.708,313.43C392.364,324.087,405.325,329.431,420.557,329.431C420.557,329.431,603.411,329.431,603.411,329.431C618.643,329.431,631.604,324.087,642.26,313.43C652.916,302.774,658.261,289.814,658.261,274.581C658.261,274.581,658.261,274.581,658.261,274.581M292.553,859.751C292.553,859.751,292.553,750.02,292.553,750.02C292.553,734.788,287.209,721.827,276.553,711.171C265.896,700.514,252.936,695.17,237.703,695.17C237.703,695.17,54.85,695.17,54.85,695.17C39.617,695.17,26.657,700.514,16.001,711.171C5.344,721.827,0,734.788,0,750.02C0,750.02,0,859.751,0,859.751C0,874.984,5.344,887.944,16.001,898.601C26.657,909.257,39.617,914.601,54.85,914.601C54.85,914.601,237.703,914.601,237.703,914.601C252.936,914.601,265.896,909.257,276.553,898.601C287.209,887.944,292.553,874.984,292.553,859.751C292.553,859.751,292.553,859.751,292.553,859.751M658.261,567.166C658.261,567.166,658.261,457.435,658.261,457.435C658.261,442.202,652.916,429.242,642.26,418.586C631.604,407.929,618.643,402.585,603.411,402.585C603.411,402.585,420.557,402.585,420.557,402.585C405.325,402.585,392.364,407.929,381.708,418.586C371.052,429.242,365.707,442.202,365.707,457.435C365.707,457.435,365.707,567.166,365.707,567.166C365.707,582.399,371.052,595.359,381.708,606.016C392.364,616.672,405.325,622.016,420.557,622.016C420.557,622.016,603.411,622.016,603.411,622.016C618.643,622.016,631.604,616.672,642.26,606.016C652.916,595.359,658.261,582.399,658.261,567.166C658.261,567.166,658.261,567.166,658.261,567.166M1024,274.581C1024,274.581,1024,164.85,1024,164.85C1024,149.617,1018.656,136.657,1007.999,126.001C997.343,115.344,984.383,110,969.15,110C969.15,110,786.297,110,786.297,110C771.064,110,758.104,115.344,747.447,126.001C736.791,136.657,731.447,149.617,731.447,164.85C731.447,164.85,731.447,274.581,731.447,274.581C731.447,289.814,736.791,302.774,747.447,313.43C758.104,324.087,771.064,329.431,786.297,329.431C786.297,329.431,969.15,329.431,969.15,329.431C984.383,329.431,997.343,324.087,1007.999,313.43C1018.656,302.774,1024,289.814,1024,274.581C1024,274.581,1024,274.581,1024,274.581M658.261,859.751C658.261,859.751,658.261,750.02,658.261,750.02C658.261,734.788,652.916,721.827,642.26,711.171C631.604,700.514,618.643,695.17,603.411,695.17C603.411,695.17,420.557,695.17,420.557,695.17C405.325,695.17,392.364,700.514,381.708,711.171C371.052,721.827,365.707,734.788,365.707,750.02C365.707,750.02,365.707,859.751,365.707,859.751C365.707,874.984,371.052,887.944,381.708,898.601C392.364,909.257,405.325,914.601,420.557,914.601C420.557,914.601,603.411,914.601,603.411,914.601C618.643,914.601,631.604,909.257,642.26,898.601C652.916,887.944,658.261,874.984,658.261,859.751C658.261,859.751,658.261,859.751,658.261,859.751M1024,567.166C1024,567.166,1024,457.435,1024,457.435C1024,442.202,1018.656,429.242,1007.999,418.586C997.343,407.929,984.383,402.585,969.15,402.585C969.15,402.585,786.297,402.585,786.297,402.585C771.064,402.585,758.104,407.929,747.447,418.586C736.791,429.242,731.447,442.202,731.447,457.435C731.447,457.435,731.447,567.166,731.447,567.166C731.447,582.399,736.791,595.359,747.447,606.016C758.104,616.672,771.064,622.016,786.297,622.016C786.297,622.016,969.15,622.016,969.15,622.016C984.383,622.016,997.343,616.672,1007.999,606.016C1018.656,595.359,1024,582.399,1024,567.166C1024,567.166,1024,567.166,1024,567.166M1024,859.751C1024,859.751,1024,750.02,1024,750.02C1024,734.788,1018.656,721.827,1007.999,711.171C997.343,700.514,984.383,695.17,969.15,695.17C969.15,695.17,786.297,695.17,786.297,695.17C771.064,695.17,758.104,700.514,747.447,711.171C736.791,721.827,731.447,734.788,731.447,750.02C731.447,750.02,731.447,859.751,731.447,859.751C731.447,874.984,736.791,887.944,747.447,898.601C758.104,909.257,771.064,914.601,786.297,914.601C786.297,914.601,969.15,914.601,969.15,914.601C984.383,914.601,997.343,909.257,1007.999,898.601C1018.656,887.944,1024,874.984,1024,859.751C1024,859.751,1024,859.751,1024,859.751" class="soliloquy-grid"/><glyph unicode="&#x0054;" d="M118.5,656.615C118.5,700.923,126.192,742.666,141.577,781.846C156.962,821.026,178.192,855.18,205.269,884.308C232.346,913.436,263.526,938.666,298.808,960C334.09,981.334,372.038,997.334,412.654,1008C453.269,1018.666,494.705,1024,536.962,1024C601.782,1024,662.09,1010.359,717.885,983.077C773.68,955.795,819.013,916.103,853.885,864C888.757,811.897,906.192,753.026,906.192,687.385C906.192,648,902.295,609.436,894.5,571.692C886.705,533.949,874.397,497.641,857.577,462.769C840.757,427.897,820.243,397.231,796.038,370.769C771.834,344.308,742.09,323.18,706.808,307.385C671.526,291.59,632.757,283.692,590.5,283.692C562.603,283.692,534.91,290.257,507.423,303.385C479.936,316.513,460.243,334.564,448.346,357.538C444.243,341.538,438.5,318.462,431.115,288.308C423.731,258.154,418.91,238.666,416.654,229.846C414.397,221.026,410.192,206.462,404.038,186.154C397.885,165.846,392.551,151.282,388.038,142.462C383.526,133.641,376.962,120.82,368.346,104C359.731,87.18,350.295,71.282,340.038,56.308C329.782,41.334,317.064,23.59,301.885,3.077C301.885,3.077,293.269,0,293.269,0C293.269,0,287.731,6.154,287.731,6.154C281.577,70.564,278.5,109.128,278.5,121.846C278.5,159.59,282.91,201.949,291.731,248.923C300.551,295.897,314.192,354.872,332.654,425.846C351.115,496.82,361.782,538.462,364.654,550.769C351.526,577.436,344.962,612.103,344.962,654.769C344.962,688.82,355.628,720.82,376.962,750.769C398.295,780.718,425.372,795.692,458.192,795.692C483.218,795.692,502.705,787.385,516.654,770.769C530.603,754.154,537.577,733.128,537.577,707.692C537.577,680.615,528.551,641.436,510.5,590.154C492.449,538.872,483.423,500.513,483.423,475.077C483.423,449.231,492.654,427.795,511.115,410.769C529.577,393.743,551.936,385.231,578.192,385.231C600.757,385.231,621.68,390.359,640.962,400.615C660.243,410.872,676.346,424.82,689.269,442.462C702.192,460.103,713.68,479.59,723.731,500.923C733.782,522.257,741.577,544.923,747.115,568.923C752.654,592.923,756.757,615.692,759.423,637.231C762.09,658.769,763.423,679.18,763.423,698.462C763.423,769.436,740.962,824.718,696.038,864.308C651.115,903.897,592.551,923.692,520.346,923.692C438.295,923.692,369.782,897.128,314.808,844C259.834,790.872,232.346,723.487,232.346,641.846C232.346,623.795,234.91,606.359,240.038,589.538C245.166,572.718,250.705,559.385,256.654,549.538C262.603,539.692,268.141,530.359,273.269,521.538C278.397,512.718,280.962,506.462,280.962,502.769C280.962,491.282,277.885,476.308,271.731,457.846C265.577,439.385,257.987,430.154,248.962,430.154C248.141,430.154,244.654,430.769,238.5,432C217.577,438.154,199.013,449.641,182.808,466.462C166.603,483.282,154.09,502.666,145.269,524.615C136.449,546.564,129.782,568.718,125.269,591.077C120.757,613.436,118.5,635.282,118.5,656.615C118.5,656.615,118.5,656.615,118.5,656.615" class="soliloquy-pinterest-p"/><glyph unicode="&#x0055;" d="M245.354,86.516C245.354,86.516,306.862,148.024,306.862,148.024C306.862,148.024,148.024,306.862,148.024,306.862C148.024,306.862,86.516,245.354,86.516,245.354C86.516,245.354,86.516,173.032,86.516,173.032C86.516,173.032,173.032,173.032,173.032,173.032C173.032,173.032,173.032,86.516,173.032,86.516C173.032,86.516,245.354,86.516,245.354,86.516C245.354,86.516,245.354,86.516,245.354,86.516M598.854,713.758C598.854,723.672,593.898,728.628,583.984,728.628C579.478,728.628,575.648,727.051,572.494,723.897C572.494,723.897,206.152,357.555,206.152,357.555C202.997,354.401,201.42,350.571,201.42,346.065C201.42,336.151,206.377,331.195,216.29,331.195C220.797,331.195,224.626,332.772,227.781,335.926C227.781,335.926,594.123,702.268,594.123,702.268C597.277,705.422,598.854,709.252,598.854,713.758C598.854,713.758,598.854,713.758,598.854,713.758M562.355,843.533C562.355,843.533,843.533,562.355,843.533,562.355C843.533,562.355,281.178,0,281.178,0C281.178,0,0,0,0,0C0,0,0,281.178,0,281.178C0,281.178,562.355,843.533,562.355,843.533M1024,778.646C1024,754.764,1015.664,734.486,998.991,717.814C998.991,717.814,886.791,605.613,886.791,605.613C886.791,605.613,605.613,886.791,605.613,886.791C605.613,886.791,717.814,998.316,717.814,998.316C734.036,1015.438,754.313,1024,778.646,1024C802.527,1024,823.03,1015.438,840.153,998.316C840.153,998.316,998.991,840.153,998.991,840.153C1015.664,822.58,1024,802.077,1024,778.646C1024,778.646,1024,778.646,1024,778.646" class="soliloquy-pencil"/><glyph unicode="&#x0056;" d="M1024,199.973C1024,176.987,1015.955,157.45,999.865,141.36C999.865,141.36,882.64,24.135,882.64,24.135C866.55,8.045,847.013,0,824.027,0C801.041,0,781.504,8.045,765.414,24.135C765.414,24.135,512,277.549,512,277.549C512,277.549,258.586,24.135,258.586,24.135C242.496,8.045,222.959,0,199.973,0C176.987,0,157.45,8.045,141.36,24.135C141.36,24.135,24.135,141.36,24.135,141.36C8.045,157.45,0,176.987,0,199.973C0,222.959,8.045,242.496,24.135,258.586C24.135,258.586,277.549,512,277.549,512C277.549,512,24.135,765.414,24.135,765.414C8.045,781.504,0,801.041,0,824.027C0,847.013,8.045,866.55,24.135,882.64C24.135,882.64,141.36,999.865,141.36,999.865C157.45,1015.955,176.987,1024,199.973,1024C222.959,1024,242.496,1015.955,258.586,999.865C258.586,999.865,512,746.451,512,746.451C512,746.451,765.414,999.865,765.414,999.865C781.504,1015.955,801.041,1024,824.027,1024C847.013,1024,866.55,1015.955,882.64,999.865C882.64,999.865,999.865,882.64,999.865,882.64C1015.955,866.55,1024,847.013,1024,824.027C1024,801.041,1015.955,781.504,999.865,765.414C999.865,765.414,746.451,512,746.451,512C746.451,512,999.865,258.586,999.865,258.586C1015.955,242.496,1024,222.959,1024,199.973C1024,199.973,1024,199.973,1024,199.973" class="soliloquy-close"/><glyph unicode="&#x0057;" d="M1024,751.577C1024,733.959,1017.834,718.985,1005.502,706.653C1005.502,706.653,527.195,228.346,527.195,228.346C527.195,228.346,437.347,138.498,437.347,138.498C425.015,126.166,410.041,120,392.423,120C374.806,120,359.832,126.166,347.499,138.498C347.499,138.498,257.652,228.346,257.652,228.346C257.652,228.346,18.498,467.499,18.498,467.499C6.166,479.832,0,494.806,0,512.423C0,530.041,6.166,545.015,18.498,557.347C18.498,557.347,108.346,647.195,108.346,647.195C120.678,659.527,135.652,665.693,153.27,665.693C170.887,665.693,185.861,659.527,198.194,647.195C198.194,647.195,392.423,452.305,392.423,452.305C392.423,452.305,825.806,886.348,825.806,886.348C838.139,898.681,853.113,904.846,870.73,904.846C888.348,904.846,903.322,898.681,915.654,886.348C915.654,886.348,1005.502,796.501,1005.502,796.501C1017.834,784.168,1024,769.194,1024,751.577C1024,751.577,1024,751.577,1024,751.577" class="soliloquy-check"/></font></defs></svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
2
+ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>Generated by Glyphter</metadata>
5
+ <defs>
6
+ <font id="soliloquy" horiz-adv-x="0">
7
+ <font-face units-per-em="1024" ascent="1024" descent="0" font-family="soliloquy" font-weight="normal"/>
8
+ <missing-glyph horiz-adv-x="0"/>
9
+ <glyph unicode="&#x0041;"
10
+ d="M960,416C960,416,878.4,401.6,878.4,401.6C870.4,376,860.8,352,848,329.6C848,329.6,896,262.4,896,262.4C921.6,236.8,921.6,196.8,896,171.2C896,171.2,851.2,128,851.2,128C825.6,102.4,785.6,102.4,760,128C760,128,692.8,176,692.8,176C670.4,163.2,646.4,153.6,620.8,145.6C620.8,145.6,608,64,608,64C608,28.8,579.2,0,544,0C544,0,480,0,480,0C444.8,0,416,28.8,416,64C416,64,401.6,145.6,401.6,145.6C376,153.6,352,163.2,329.6,176C329.6,176,262.4,128,262.4,128C236.8,102.4,196.8,102.4,171.2,128C171.2,128,128,172.8,128,172.8C102.4,198.4,102.4,238.4,128,264C128,264,176,331.2,176,331.2C163.2,353.6,153.6,377.6,145.6,403.2C145.6,403.2,64,416,64,416C28.8,416,0,444.8,0,480C0,480,0,544,0,544C0,579.2,28.8,608,64,608C64,608,145.6,622.4,145.6,622.4C153.6,648,163.2,672,176,694.4C176,694.4,128,761.6,128,761.6C102.4,787.2,102.4,827.2,128,852.8C128,852.8,172.8,896,172.8,896C198.4,921.6,238.4,921.6,264,896C264,896,331.2,848,331.2,848C353.6,860.8,377.6,870.4,403.2,878.4C403.2,878.4,416,960,416,960C416,995.2,444.8,1024,480,1024C480,1024,544,1024,544,1024C579.2,1024,608,995.2,608,960C608,960,622.4,878.4,622.4,878.4C648,870.4,672,860.8,694.4,848C694.4,848,761.6,896,761.6,896C787.2,921.6,827.2,921.6,852.8,896C852.8,896,897.6,851.2,897.6,851.2C923.2,825.6,923.2,785.6,897.6,760C897.6,760,849.6,692.8,849.6,692.8C862.4,670.4,872,646.4,880,620.8C880,620.8,960,608,960,608C995.2,608,1024,579.2,1024,544C1024,544,1024,480,1024,480C1024,444.8,995.2,416,960,416C960,416,960,416,960,416M928,544C928,544,827.2,560,827.2,560C819.2,611.2,798.4,659.2,769.6,699.2C769.6,699.2,828.8,782.4,828.8,782.4C841.6,795.2,841.6,814.4,828.8,827.2C816,840,796.8,840,784,827.2C784,827.2,700.8,768,700.8,768C660.8,796.8,612.8,817.6,561.6,825.6C561.6,825.6,544,928,544,928C544,945.6,529.6,960,512,960C494.4,960,480,945.6,480,928C480,928,462.4,827.2,462.4,827.2C411.2,819.2,363.2,798.4,323.2,769.6C323.2,769.6,240,828.8,240,828.8C227.2,841.6,208,841.6,195.2,828.8C182.4,816,182.4,796.8,195.2,784C195.2,784,254.4,700.8,254.4,700.8C224,660.8,204.8,612.8,196.8,561.6C196.8,561.6,96,544,96,544C78.4,544,64,529.6,64,512C64,494.4,78.4,480,96,480C96,480,196.8,464,196.8,464C204.8,412.8,225.6,364.8,254.4,324.8C254.4,324.8,195.2,240,195.2,240C182.4,227.2,182.4,208,195.2,195.2C208,182.4,227.2,182.4,240,195.2C240,195.2,323.2,254.4,323.2,254.4C363.2,225.6,411.2,204.8,462.4,196.8C462.4,196.8,480,96,480,96C480,78.4,494.4,64,512,64C529.6,64,544,78.4,544,96C544,96,560,196.8,560,196.8C611.2,204.8,659.2,225.6,699.2,254.4C699.2,254.4,782.4,195.2,782.4,195.2C795.2,182.4,814.4,182.4,827.2,195.2C840,208,840,227.2,827.2,240C827.2,240,768,323.2,768,323.2C798.4,363.2,817.6,411.2,825.6,462.4C825.6,462.4,926.4,478.4,926.4,478.4C944,478.4,958.4,492.8,958.4,510.4C958.4,528,945.6,544,928,544C928,544,928,544,928,544M512,352C424,352,352,424,352,512C352,600,424,672,512,672C600,672,672,600,672,512C672,424,600,352,512,352C512,352,512,352,512,352M512,608C459.2,608,416,564.8,416,512C416,459.2,459.2,416,512,416C564.8,416,608,459.2,608,512C608,564.8,564.8,608,512,608C512,608,512,608,512,608"
11
+ class="soliloquy-configuration"/>
12
+ <glyph unicode="&#x0042;"
13
+ d="M313.6,251.2C520,89.6,715.2,158.4,804.8,168C804.8,168,964.8,8,964.8,8C964.8,8,1024,8,1024,8C1024,8,840,192,840,192C838.4,302.4,1091.2,1016,0,1016C118.4,604.8,107.2,412.8,313.6,251.2M512,556.8C563.2,459.2,656,312,720,264C784,216,854.4,180.8,705.6,244.8C556.8,307.2,448,486.4,376,622.4C320,726.4,273.6,820.8,169.6,891.2C65.6,961.6,182.4,912,182.4,912C371.2,819.2,440,692.8,512,556.8"
14
+ class="soliloquy-leaf"/>
15
+ <glyph unicode="&#x0044;"
16
+ d="M64,128C64,128,64,832,64,832C64,832,0,832,0,832C0,832,0,128,0,128C0,57.6,60.8,0,136,0C136,0,896,0,896,0C896,0,896,64,896,64C896,64,132.8,64,132.8,64C94.4,64,64,92.8,64,128C64,128,64,128,64,128M864,896C864,896,288,896,288,896C270.4,896,256,881.6,256,864C256,864,256,352,256,352C256,334.4,270.4,320,288,320C288,320,864,320,864,320C881.6,320,896,334.4,896,352C896,352,896,864,896,864C896,881.6,881.6,896,864,896C864,896,864,896,864,896M832,416C832,398.4,817.6,384,800,384C800,384,352,384,352,384C334.4,384,320,398.4,320,416C320,416,320,800,320,800C320,817.6,334.4,832,352,832C352,832,800,832,800,832C817.6,832,832,817.6,832,800C832,800,832,416,832,416C832,416,832,416,832,416M960,1024C960,1024,192,1024,192,1024C156.8,1024,128,995.2,128,960C128,960,128,192,128,192C128,156.8,156.8,128,192,128C192,128,960,128,960,128C995.2,128,1024,156.8,1024,192C1024,192,1024,960,1024,960C1024,995.2,995.2,1024,960,1024C960,1024,960,1024,960,1024M960,224C960,206.4,945.6,192,928,192C928,192,224,192,224,192C206.4,192,192,206.4,192,224C192,224,192,928,192,928C192,945.6,206.4,960,224,960C224,960,928,960,928,960C945.6,960,960,945.6,960,928C960,928,960,224,960,224C960,224,960,224,960,224"
17
+ class="soliloquy-lightbox"/>
18
+ <glyph unicode="&#x0045;"
19
+ d="M992.432,835.643C992.432,835.643,850.042,693.253,850.042,693.253C850.042,693.253,720.451,720.451,720.451,720.451C720.451,720.451,694.852,850.042,694.852,850.042C694.852,850.042,835.643,992.432,835.643,992.432C790.846,1013.231,741.249,1024.43,691.653,1024.43C608.458,1024.43,523.664,992.432,459.669,928.436C368.475,837.243,342.877,704.452,381.274,589.26C381.274,589.26,43.697,251.683,43.697,251.683C-13.899,194.087,-13.899,101.293,43.697,43.697C72.495,14.899,109.293,0.5,147.69,0.5C186.087,0.5,222.885,14.899,251.683,43.697C251.683,43.697,589.26,381.274,589.26,381.274C624.457,370.075,659.655,363.675,696.452,363.675C781.246,363.675,864.441,395.673,928.436,459.669C1030.829,562.062,1050.028,712.451,992.432,835.643C992.432,835.643,992.432,835.643,992.432,835.643M877.24,512.465C829.243,464.468,765.248,437.27,696.452,437.27C667.654,437.27,640.456,442.07,613.258,450.069C613.258,450.069,570.061,464.468,570.061,464.468C570.061,464.468,538.063,432.47,538.063,432.47C538.063,432.47,200.486,94.894,200.486,94.894C186.087,80.495,168.488,72.495,147.69,72.495C128.491,72.495,109.293,80.495,94.894,94.894C80.495,109.293,72.495,126.891,72.495,147.69C72.495,166.889,80.495,186.087,94.894,200.486C94.894,200.486,432.47,538.063,432.47,538.063C432.47,538.063,464.468,570.061,464.468,570.061C464.468,570.061,450.069,613.258,450.069,613.258C418.071,707.652,442.07,808.445,510.865,877.24C558.862,925.237,622.857,952.435,691.653,952.435C691.653,952.435,642.056,902.838,642.056,902.838C642.056,902.838,614.858,875.64,614.858,875.64C614.858,875.64,622.857,837.243,622.857,837.243C622.857,837.243,648.456,707.652,648.456,707.652C648.456,707.652,658.055,659.655,658.055,659.655C658.055,659.655,706.052,650.055,706.052,650.055C706.052,650.055,835.643,624.457,835.643,624.457C835.643,624.457,874.04,616.458,874.04,616.458C874.04,616.458,901.238,643.656,901.238,643.656C901.238,643.656,950.835,693.253,950.835,693.253C950.835,626.057,925.237,560.462,877.24,512.465C877.24,512.465,877.24,512.465,877.24,512.465"
20
+ class="soliloquy-misc"/>
21
+ <glyph unicode="&#x0046;"
22
+ d="M704,1024C704,1024,320,1024,320,1024C249.6,1024,192,966.4,192,896C192,896,192,128,192,128C192,57.6,249.6,0,320,0C320,0,704,0,704,0C774.4,0,832,57.6,832,128C832,128,832,896,832,896C832,966.4,774.4,1024,704,1024C704,1024,704,1024,704,1024M768,128C768,92.8,739.2,64,704,64C704,64,320,64,320,64C284.8,64,256,92.8,256,128C256,128,256,320,256,320C256,320,768,320,768,320C768,320,768,128,768,128C768,128,768,128,768,128M768,384C768,384,256,384,256,384C256,384,256,768,256,768C256,768,768,768,768,768C768,768,768,384,768,384C768,384,768,384,768,384M768,832C768,832,256,832,256,832C256,832,256,896,256,896C256,931.2,284.8,960,320,960C320,960,704,960,704,960C739.2,960,768,931.2,768,896C768,896,768,832,768,832C768,832,768,832,768,832M512,128C547.2,128,576,156.8,576,192C576,227.2,547.2,256,512,256C476.8,256,448,227.2,448,192C448,156.8,476.8,128,512,128C512,128,512,128,512,128"
23
+ class="soliloquy-mobile"/>
24
+ <glyph unicode="&#x0047;"
25
+ d="M416,960C416,960,416,1024,416,1024C416,1024,1024,1024,1024,1024C1024,1024,1024,960,1024,960C1024,960,416,960,416,960C416,960,416,960,416,960C416,960,416,960,416,960M640,720C640,720,640,784,640,784C640,784,896,784,896,784C896,784,896,720,896,720C896,720,640,720,640,720C640,720,640,720,640,720C640,720,640,720,640,720M640,592C640,592,640,656,640,656C640,656,896,656,896,656C896,656,896,592,896,592C896,592,640,592,640,592C640,592,640,592,640,592C640,592,640,592,640,592M640,464C640,464,640,528,640,528C640,528,896,528,896,528C896,528,896,464,896,464C896,464,640,464,640,464C640,464,640,464,640,464C640,464,640,464,640,464M608,224C608,224,608,288,608,288C608,288,1024,288,1024,288C1024,288,1024,224,1024,224C1024,224,608,224,608,224C608,224,608,224,608,224C608,224,608,224,608,224M960,288C960,288,960,960,960,960C960,960,1024,960,1024,960C1024,960,1024,288,1024,288C1024,288,960,288,960,288C960,288,960,288,960,288C960,288,960,288,960,288M416,800C416,800,416,960,416,960C416,960,480,960,480,960C480,960,480,800,480,800C480,800,416,800,416,800C416,800,416,800,416,800C416,800,416,800,416,800M0,736C0,736,0,800,0,800C0,800,608,800,608,800C608,800,608,736,608,736C608,736,0,736,0,736C0,736,0,736,0,736C0,736,0,736,0,736M128,496C128,496,128,560,128,560C128,560,480,560,480,560C480,560,480,496,480,496C480,496,128,496,128,496C128,496,128,496,128,496C128,496,128,496,128,496M128,368C128,368,128,432,128,432C128,432,480,432,480,432C480,432,480,368,480,368C480,368,128,368,128,368C128,368,128,368,128,368C128,368,128,368,128,368M128,240C128,240,128,304,128,304C128,304,480,304,480,304C480,304,480,240,480,240C480,240,128,240,128,240C128,240,128,240,128,240C128,240,128,240,128,240M0,0C0,0,0,64,0,64C0,64,608,64,608,64C608,64,608,0,608,0C608,0,0,0,0,0C0,0,0,0,0,0C0,0,0,0,0,0M544,64C544,64,544,736,544,736C544,736,608,736,608,736C608,736,608,64,608,64C608,64,544,64,544,64C544,64,544,64,544,64C544,64,544,64,544,64M0,64C0,64,0,736,0,736C0,736,64,736,64,736C64,736,64,64,64,64C64,64,0,64,0,64C0,64,0,64,0,64C0,64,0,64,0,64"
26
+ class="soliloquy-pagination"/>
27
+ <glyph unicode="&#x0048;"
28
+ d="M969.6,0C969.6,0,198.4,0,198.4,0C168,0,144,24,144,54.4C144,54.4,144,192,144,192C144,193.6,144,195.2,144,196.8C144,196.8,144,825.6,144,825.6C144,856,168,880,198.4,880C198.4,880,968,880,968,880C998.4,880,1022.4,856,1022.4,825.6C1022.4,825.6,1022.4,56,1022.4,56C1024,24,1000,0,969.6,0C969.6,0,969.6,0,969.6,0M198.4,83.2C198.4,68.8,211.2,56,225.6,56C225.6,56,713.6,56,713.6,56C713.6,56,440,371.2,440,371.2C440,371.2,198.4,176,198.4,176C198.4,176,198.4,83.2,198.4,83.2C198.4,83.2,198.4,83.2,198.4,83.2M969.6,796.8C969.6,811.2,956.8,824,942.4,824C942.4,824,227.2,824,227.2,824C212.8,824,200,811.2,200,796.8C200,796.8,200,251.2,200,251.2C200,251.2,420.8,432,420.8,432C425.6,435.2,430.4,436.8,435.2,438.4C436.8,438.4,436.8,438.4,438.4,440C440,440,443.2,441.6,444.8,441.6C452.8,443.2,462.4,440,467.2,433.6C467.2,433.6,552,334.4,552,334.4C552,334.4,809.6,544,809.6,544C816,550.4,824,552,832,550.4C841.6,550.4,849.6,548.8,857.6,544C857.6,544,969.6,422.4,969.6,422.4C969.6,422.4,969.6,796.8,969.6,796.8C969.6,796.8,969.6,796.8,969.6,796.8M969.6,337.6C968,337.6,968,337.6,969.6,337.6C969.6,337.6,828.8,488,828.8,488C828.8,488,587.2,291.2,587.2,291.2C587.2,291.2,792,54.4,792,54.4C792,54.4,940.8,54.4,940.8,54.4C955.2,54.4,968,67.2,968,81.6C968,81.6,968,337.6,968,337.6C968,337.6,969.6,337.6,969.6,337.6M364.8,550.4C304,550.4,254.4,600,254.4,660.8C254.4,721.6,304,771.2,364.8,771.2C425.6,771.2,475.2,721.6,475.2,660.8C473.6,600,425.6,550.4,364.8,550.4C364.8,550.4,364.8,550.4,364.8,550.4M364.8,715.2C334.4,715.2,310.4,691.2,310.4,660.8C310.4,630.4,334.4,606.4,364.8,606.4C395.2,606.4,419.2,630.4,419.2,660.8C419.2,689.6,395.2,715.2,364.8,715.2C364.8,715.2,364.8,715.2,364.8,715.2M256,960C256,960,192,960,192,960C192,960,192,1024,192,1024C192,1024,256,1024,256,1024C256,1024,256,960,256,960C256,960,256,960,256,960M448,960C448,960,384,960,384,960C384,960,384,1024,384,1024C384,1024,448,1024,448,1024C448,1024,448,960,448,960C448,960,448,960,448,960M640,960C640,960,576,960,576,960C576,960,576,1024,576,1024C576,1024,640,1024,640,1024C640,1024,640,960,640,960C640,960,640,960,640,960M832,960C832,960,768,960,768,960C768,960,768,1024,768,1024C768,1024,832,1024,832,1024C832,1024,832,960,832,960C832,960,832,960,832,960M1024,960C1024,960,960,960,960,960C960,960,960,1024,960,1024C960,1024,1024,1024,1024,1024C1024,1024,1024,960,1024,960C1024,960,1024,960,1024,960M64,960C64,960,0,960,0,960C0,960,0,1024,0,1024C0,1024,64,1024,64,1024C64,1024,64,960,64,960C64,960,64,960,64,960M64,768C64,768,0,768,0,768C0,768,0,832,0,832C0,832,64,832,64,832C64,832,64,768,64,768C64,768,64,768,64,768M64,576C64,576,0,576,0,576C0,576,0,640,0,640C0,640,64,640,64,640C64,640,64,576,64,576C64,576,64,576,64,576M64,384C64,384,0,384,0,384C0,384,0,448,0,448C0,448,64,448,64,448C64,448,64,384,64,384C64,384,64,384,64,384M64,192C64,192,0,192,0,192C0,192,0,256,0,256C0,256,64,256,64,256C64,256,64,192,64,192C64,192,64,192,64,192M64,0C64,0,0,0,0,0C0,0,0,64,0,64C0,64,64,64,64,64C64,64,64,0,64,0C64,0,64,0,64,0"
29
+ class="soliloquy-proofing"/>
30
+ <glyph unicode="&#x0049;"
31
+ d="M992,960.654C992,960.654,32,960.654,32,960.654C14.4,960.654,0,946.254,0,928.654C0,911.054,14.4,896.654,32,896.654C32,896.654,64,896.654,64,896.654C64,896.654,64,320.654,64,320.654C64,285.454,92.8,256.654,128,256.654C128,256.654,404.8,256.654,404.8,256.654C404.8,256.654,324.8,109.454,324.8,109.454C315.2,95.054,321.6,75.854,337.6,67.854C355.2,59.854,376,64.654,385.6,79.054C385.6,79.054,475.2,242.254,475.2,242.254C478.4,247.054,480,250.254,480,255.054C480,255.054,544,255.054,544,255.054C544,250.254,545.6,245.454,548.8,242.254C548.8,242.254,638.4,79.054,638.4,79.054C648,64.654,670.4,59.854,686.4,67.854C704,75.854,708.8,95.054,699.2,109.454C699.2,109.454,619.2,256.654,619.2,256.654C619.2,256.654,896,256.654,896,256.654C931.2,256.654,960,285.454,960,320.654C960,320.654,960,896.654,960,896.654C960,896.654,992,896.654,992,896.654C1009.6,896.654,1024,911.054,1024,928.654C1024,946.254,1009.6,960.654,992,960.654C992,960.654,992,960.654,992,960.654M896,832.654C896,832.654,896,832.654,896,832.654C896,832.654,896,352.654,896,352.654C896,335.054,881.6,320.654,864,320.654C864,320.654,160,320.654,160,320.654C142.4,320.654,128,335.054,128,352.654C128,352.654,128,864.654,128,864.654C128,864.654,128,864.654,128,864.654C128,864.654,128,896.654,128,896.654C128,896.654,160,896.654,160,896.654C160,896.654,160,896.654,160,896.654C160,896.654,864,896.654,864,896.654C864,896.654,864,896.654,864,896.654C864,896.654,896,896.654,896,896.654C896,896.654,896,832.654,896,832.654C896,832.654,896,832.654,896,832.654M816,770.254C800,779.854,780.8,773.454,772.8,759.054C772.8,759.054,574.4,578.254,574.4,578.254C574.4,578.254,417.6,690.254,417.6,690.254C409.6,701.454,393.6,707.854,379.2,704.654C376,704.654,374.4,703.054,371.2,703.054C371.2,703.054,369.6,703.054,369.6,703.054C369.6,703.054,368,703.054,368,701.454C366.4,699.854,363.2,698.254,361.6,696.654C360,695.054,358.4,693.454,356.8,691.854C356.8,691.854,356.8,691.854,355.2,690.254C355.2,690.254,195.2,498.254,195.2,498.254C185.6,482.254,192,463.054,206.4,453.454C220.8,443.854,241.6,450.254,249.6,464.654C249.6,464.654,390.4,632.654,390.4,632.654C390.4,632.654,539.2,527.054,539.2,527.054C542.4,522.254,547.2,519.054,553.6,515.854C555.2,514.254,555.2,511.054,558.4,509.454C574.4,501.454,593.6,506.254,601.6,520.654C601.6,520.654,825.6,725.454,825.6,725.454C836.8,743.054,832,762.254,816,770.254C816,770.254,816,770.254,816,770.254"
32
+ class="soliloquy-slideshow"/>
33
+ <glyph unicode="&#x004a;"
34
+ d="M195.829,420.092C195.829,420.092,420.092,195.829,420.092,195.829C420.092,195.829,464.945,240.682,464.945,240.682C464.945,240.682,240.682,464.945,240.682,464.945C240.682,464.945,195.829,420.092,195.829,420.092C195.829,420.092,195.829,420.092,195.829,420.092M532.224,1024C532.224,1024,18.021,509.797,18.021,509.797C-6.007,485.769,-6.007,445.722,18.021,420.092C18.021,420.092,420.092,18.021,420.092,18.021C444.12,-6.007,484.167,-6.007,509.797,18.021C509.797,18.021,1024,532.224,1024,532.224C1024,532.224,1024,1024,1024,1024C1024,1024,532.224,1024,532.224,1024C532.224,1024,532.224,1024,532.224,1024M956.721,554.65C956.721,554.65,487.371,83.698,487.371,83.698C474.556,70.883,455.334,70.883,442.519,83.698C442.519,83.698,83.698,442.519,83.698,442.519C70.883,455.334,70.883,474.556,83.698,487.371C83.698,487.371,554.65,956.721,554.65,956.721C554.65,956.721,959.925,959.925,959.925,959.925C959.925,959.925,956.721,554.65,956.721,554.65C956.721,554.65,956.721,554.65,956.721,554.65M859.007,676.393C908.665,726.051,908.665,807.747,859.007,857.405C809.348,907.063,727.653,907.063,677.995,857.405C628.336,807.747,628.336,726.051,677.995,676.393C726.051,626.734,807.747,626.734,859.007,676.393C859.007,676.393,859.007,676.393,859.007,676.393M722.847,814.154C748.477,839.784,788.524,839.784,814.154,814.154C839.784,788.524,839.784,748.477,814.154,722.847C788.524,697.217,748.477,697.217,722.847,722.847C697.217,748.477,697.217,788.524,722.847,814.154C722.847,814.154,722.847,814.154,722.847,814.154"
35
+ class="soliloquy-tags"/>
36
+ <glyph unicode="&#x004b;"
37
+ d="M960,1024C960,1024,64,1024,64,1024C28.8,1024,0,995.2,0,960C0,960,0,228.8,0,228.8C0,227.2,0,225.6,0,224C0,224,0,64,0,64C0,28.8,28.8,0,64,0C64,0,960,0,960,0C995.2,0,1024,28.8,1024,64C1024,64,1024,960,1024,960C1024,995.2,995.2,1024,960,1024C960,1024,960,1024,960,1024M96,64C78.4,64,64,78.4,64,96C64,96,64,204.8,64,204.8C64,204.8,345.6,432,345.6,432C345.6,432,664,64,664,64C664,64,96,64,96,64C96,64,96,64,96,64M960,96C960,78.4,945.6,64,928,64C928,64,755.2,64,755.2,64C755.2,64,516.8,339.2,516.8,339.2C516.8,339.2,796.8,568,796.8,568C796.8,568,958.4,392,958.4,392C958.4,392,958.4,392,960,392C960,392,960,96,960,96C960,96,960,96,960,96M960,491.2C960,491.2,830.4,632,830.4,632C822.4,638.4,811.2,640,800,640C790.4,640,780.8,638.4,774.4,632C774.4,632,475.2,387.2,475.2,387.2C475.2,387.2,376,502.4,376,502.4C368,510.4,358.4,513.6,348.8,512C345.6,512,344,510.4,340.8,510.4C339.2,510.4,339.2,510.4,337.6,508.8C331.2,507.2,324.8,507.2,320,502.4C320,502.4,64,292.8,64,292.8C64,292.8,64,928,64,928C64,945.6,78.4,960,96,960C96,960,928,960,928,960C945.6,960,960,945.6,960,928C960,928,960,491.2,960,491.2C960,491.2,960,491.2,960,491.2M256,896C185.6,896,128,838.4,128,768C128,697.6,185.6,640,256,640C326.4,640,384,697.6,384,768C384,838.4,326.4,896,256,896C256,896,256,896,256,896M256,704C220.8,704,192,732.8,192,768C192,803.2,220.8,832,256,832C291.2,832,320,803.2,320,768C320,732.8,291.2,704,256,704C256,704,256,704,256,704"
38
+ class="soliloquy-thumbnails"/>
39
+ <glyph unicode="&#x004c;"
40
+ d="M992,768C992,768,768,619.2,768,619.2C768,619.2,768,704,768,704C768,774.4,710.4,832,640,832C640,832,128,832,128,832C57.6,832,0,774.4,0,704C0,704,0,320,0,320C0,249.6,57.6,192,128,192C128,192,640,192,640,192C710.4,192,768,249.6,768,320C768,320,768,404.8,768,404.8C768,404.8,992,256,992,256C1009.6,256,1024,270.4,1024,288C1024,288,1024,736,1024,736C1024,753.6,1009.6,768,992,768C992,768,992,768,992,768M704,320C704,284.8,675.2,256,640,256C640,256,128,256,128,256C92.8,256,64,284.8,64,320C64,320,64,704,64,704C64,739.2,92.8,768,128,768C128,768,640,768,640,768C675.2,768,704,739.2,704,704C704,704,704,320,704,320C704,320,704,320,704,320M960,353.6C960,353.6,768,481.6,768,481.6C768,481.6,768,540.8,768,540.8C768,540.8,960,668.8,960,668.8C960,668.8,960,353.6,960,353.6C960,353.6,960,353.6,960,353.6"
41
+ class="soliloquy-video"/>
42
+ <glyph unicode="&#x004d;"
43
+ d="M800,640C800,640,800,736,800,736C800,894.4,670.4,1024,512,1024C353.6,1024,224,894.4,224,736C224,736,224,640,224,640C224,640,224,640,224,640C153.6,640,96,582.4,96,512C96,512,96,128,96,128C96,57.6,153.6,0,224,0C224,0,800,0,800,0C870.4,0,928,57.6,928,128C928,128,928,512,928,512C928,582.4,870.4,640,800,640C800,640,800,640,800,640M288,736C288,859.2,388.8,960,512,960C635.2,960,736,859.2,736,736C736,736,736,640,736,640C736,640,288,640,288,640C288,640,288,736,288,736C288,736,288,736,288,736M864,128C864,92.8,835.2,64,800,64C800,64,224,64,224,64C188.8,64,160,92.8,160,128C160,128,160,512,160,512C160,547.2,188.8,576,224,576C224,576,800,576,800,576C835.2,576,864,547.2,864,512C864,512,864,128,864,128C864,128,864,128,864,128M512,448C494.4,448,480,433.6,480,416C480,416,480,224,480,224C480,206.4,494.4,192,512,192C529.6,192,544,206.4,544,224C544,224,544,416,544,416C544,433.6,529.6,448,512,448C512,448,512,448,512,448"
44
+ class="soliloquy-watermark"/>
45
+ <glyph unicode="&#x004e;"
46
+ d="M682.667,461.267C682.667,466.244,681.067,470.333,677.867,473.533C674.667,476.733,670.578,478.333,665.6,478.333C665.6,478.333,546.133,478.333,546.133,478.333C546.133,478.333,546.133,666.067,546.133,666.067C546.133,670.689,544.444,674.689,541.067,678.067C537.689,681.444,533.689,683.133,529.067,683.133C529.067,683.133,426.667,683.133,426.667,683.133C422.044,683.133,418.044,681.444,414.667,678.067C411.289,674.689,409.6,670.689,409.6,666.067C409.6,666.067,409.6,478.333,409.6,478.333C409.6,478.333,290.133,478.333,290.133,478.333C285.511,478.333,281.511,476.644,278.133,473.267C274.756,469.889,273.067,465.889,273.067,461.267C273.067,456.289,274.667,452.2,277.867,449C277.867,449,465.6,261.267,465.6,261.267C468.8,258.067,472.889,256.467,477.867,256.467C482.844,256.467,486.933,258.067,490.133,261.267C490.133,261.267,677.333,448.467,677.333,448.467C680.889,452.733,682.667,457,682.667,461.267C682.667,461.267,682.667,461.267,682.667,461.267M1024,341.8C1024,285.267,1004,237,964,197C924,157,875.733,137,819.2,137C819.2,137,238.933,137,238.933,137C173.156,137,116.889,160.378,70.133,207.133C23.378,253.889,0,310.156,0,375.933C0,422.156,12.444,464.822,37.333,503.933C62.222,543.044,95.644,572.378,137.6,591.933C136.889,602.6,136.533,610.244,136.533,614.867C136.533,690.244,163.2,754.6,216.533,807.933C269.867,861.267,334.222,887.933,409.6,887.933C465.067,887.933,515.822,872.467,561.867,841.533C607.911,810.6,641.422,769.533,662.4,718.333C687.644,740.378,717.156,751.4,750.933,751.4C788.622,751.4,820.8,738.067,847.467,711.4C874.133,684.733,887.467,652.556,887.467,614.867C887.467,587.844,880.178,563.311,865.6,541.267C911.822,530.244,949.778,506.156,979.467,469C1009.156,431.844,1024,389.444,1024,341.8C1024,341.8,1024,341.8,1024,341.8"
47
+ class="soliloquy-cloud-download"/>
48
+ <glyph unicode="&#x004f;"
49
+ d="M0,512C0,555.333,8.5,596.75,25.5,636.25C42.5,675.75,65.25,709.75,93.75,738.25C122.25,766.75,156.25,789.5,195.75,806.5C235.25,823.5,276.667,832,320,832C320,832,704,832,704,832C747.333,832,788.75,823.5,828.25,806.5C867.75,789.5,901.75,766.75,930.25,738.25C958.75,709.75,981.5,675.75,998.5,636.25C1015.5,596.75,1024,555.333,1024,512C1024,468.667,1015.5,427.25,998.5,387.75C981.5,348.25,958.75,314.25,930.25,285.75C901.75,257.25,867.75,234.5,828.25,217.5C788.75,200.5,747.333,192,704,192C704,192,320,192,320,192C276.667,192,235.25,200.5,195.75,217.5C156.25,234.5,122.25,257.25,93.75,285.75C65.25,314.25,42.5,348.25,25.5,387.75C8.5,427.25,0,468.667,0,512C0,512,0,512,0,512M704,256C738.667,256,771.75,262.75,803.25,276.25C834.75,289.75,862,308,885,331C908,354,926.25,381.25,939.75,412.75C953.25,444.25,960,477.333,960,512C960,546.667,953.25,579.75,939.75,611.25C926.25,642.75,908,670,885,693C862,716,834.75,734.25,803.25,747.75C771.75,761.25,738.667,768,704,768C669.333,768,636.25,761.25,604.75,747.75C573.25,734.25,546,716,523,693C500,670,481.75,642.75,468.25,611.25C454.75,579.75,448,546.667,448,512C448,477.333,454.75,444.25,468.25,412.75C481.75,381.25,500,354,523,331C546,308,573.25,289.75,604.75,276.25C636.25,262.75,669.333,256,704,256C704,256,704,256,704,256"
50
+ class="soliloquy-toggle-on"/>
51
+ <glyph unicode="&#x0050;"
52
+ d="M810.667,469.333C810.667,469.333,810.667,554.667,810.667,554.667C810.667,566.222,806.445,576.222,798,584.667C789.555,593.111,779.555,597.333,768,597.333C768,597.333,597.333,597.333,597.333,597.333C597.333,597.333,597.333,768,597.333,768C597.333,779.555,593.111,789.555,584.667,798C576.222,806.445,566.222,810.667,554.667,810.667C554.667,810.667,469.333,810.667,469.333,810.667C457.778,810.667,447.778,806.445,439.333,798C430.889,789.555,426.667,779.555,426.667,768C426.667,768,426.667,597.333,426.667,597.333C426.667,597.333,256,597.333,256,597.333C244.445,597.333,234.445,593.111,226,584.667C217.555,576.222,213.333,566.222,213.333,554.667C213.333,554.667,213.333,469.333,213.333,469.333C213.333,457.778,217.555,447.778,226,439.333C234.445,430.889,244.445,426.667,256,426.667C256,426.667,426.667,426.667,426.667,426.667C426.667,426.667,426.667,256,426.667,256C426.667,244.445,430.889,234.445,439.333,226C447.778,217.555,457.778,213.333,469.333,213.333C469.333,213.333,554.667,213.333,554.667,213.333C566.222,213.333,576.222,217.555,584.667,226C593.111,234.445,597.333,244.445,597.333,256C597.333,256,597.333,426.667,597.333,426.667C597.333,426.667,768,426.667,768,426.667C779.555,426.667,789.555,430.889,798,439.333C806.445,447.778,810.667,457.778,810.667,469.333C810.667,469.333,810.667,469.333,810.667,469.333M1024,512C1024,419.111,1001.111,333.445,955.333,255C909.555,176.555,847.445,114.445,769,68.667C690.555,22.889,604.889,0,512,0C419.111,0,333.445,22.889,255,68.667C176.555,114.445,114.445,176.555,68.667,255C22.889,333.445,0,419.111,0,512C0,604.889,22.889,690.555,68.667,769C114.445,847.445,176.555,909.555,255,955.333C333.445,1001.111,419.111,1024,512,1024C604.889,1024,690.555,1001.111,769,955.333C847.445,909.555,909.555,847.445,955.333,769C1001.111,690.555,1024,604.889,1024,512C1024,512,1024,512,1024,512"
53
+ class="soliloquy-plus-circle"/>
54
+ <glyph unicode="&#x0051;"
55
+ d="M1024,736C1024,718.696,1017.672,703.689,1005.016,690.977C1005.016,690.977,557.023,242.984,557.023,242.984C544.367,230.328,529.36,224,512,224C494.64,224,479.633,230.328,466.977,242.984C466.977,242.984,18.984,690.977,18.984,690.977C6.328,703.633,0,718.64,0,736C0,753.36,6.328,768.367,18.984,781.023C31.64,793.679,46.647,800.007,64.007,800.007C64.007,800.007,959.993,800.007,959.993,800.007C977.297,800.007,992.304,793.679,1005.016,781.023C1017.728,768.367,1024.056,753.36,1024,736C1024,736,1024,736,1024,736"
56
+ class="soliloquy-down-arrow"/>
57
+ <glyph unicode="&#x0052;"
58
+ d="M292.553,274.581C292.553,274.581,292.553,164.85,292.553,164.85C292.553,149.617,287.209,136.657,276.553,126.001C265.896,115.344,252.936,110,237.703,110C237.703,110,54.85,110,54.85,110C39.617,110,26.657,115.344,16.001,126.001C5.344,136.657,0,149.617,0,164.85C0,164.85,0,274.581,0,274.581C0,289.814,5.344,302.774,16.001,313.43C26.657,324.087,39.617,329.431,54.85,329.431C54.85,329.431,237.703,329.431,237.703,329.431C252.936,329.431,265.896,324.087,276.553,313.43C287.209,302.774,292.553,289.814,292.553,274.581C292.553,274.581,292.553,274.581,292.553,274.581M292.553,567.166C292.553,567.166,292.553,457.435,292.553,457.435C292.553,442.202,287.209,429.242,276.553,418.586C265.896,407.929,252.936,402.585,237.703,402.585C237.703,402.585,54.85,402.585,54.85,402.585C39.617,402.585,26.657,407.929,16.001,418.586C5.344,429.242,0,442.202,0,457.435C0,457.435,0,567.166,0,567.166C0,582.399,5.344,595.359,16.001,606.016C26.657,616.672,39.617,622.016,54.85,622.016C54.85,622.016,237.703,622.016,237.703,622.016C252.936,622.016,265.896,616.672,276.553,606.016C287.209,595.359,292.553,582.399,292.553,567.166C292.553,567.166,292.553,567.166,292.553,567.166M1024,274.581C1024,274.581,1024,164.85,1024,164.85C1024,149.617,1018.656,136.657,1007.999,126.001C997.343,115.344,984.383,110,969.15,110C969.15,110,420.557,110,420.557,110C405.325,110,392.364,115.344,381.708,126.001C371.052,136.657,365.707,149.617,365.707,164.85C365.707,164.85,365.707,274.581,365.707,274.581C365.707,289.814,371.052,302.774,381.708,313.43C392.364,324.087,405.325,329.431,420.557,329.431C420.557,329.431,969.15,329.431,969.15,329.431C984.383,329.431,997.343,324.087,1007.999,313.43C1018.656,302.774,1024,289.814,1024,274.581C1024,274.581,1024,274.581,1024,274.581M292.553,859.751C292.553,859.751,292.553,750.02,292.553,750.02C292.553,734.788,287.209,721.827,276.553,711.171C265.896,700.514,252.936,695.17,237.703,695.17C237.703,695.17,54.85,695.17,54.85,695.17C39.617,695.17,26.657,700.514,16.001,711.171C5.344,721.827,0,734.788,0,750.02C0,750.02,0,859.751,0,859.751C0,874.984,5.344,887.944,16.001,898.601C26.657,909.257,39.617,914.601,54.85,914.601C54.85,914.601,237.703,914.601,237.703,914.601C252.936,914.601,265.896,909.257,276.553,898.601C287.209,887.944,292.553,874.984,292.553,859.751C292.553,859.751,292.553,859.751,292.553,859.751M1024,567.166C1024,567.166,1024,457.435,1024,457.435C1024,442.202,1018.656,429.242,1007.999,418.586C997.343,407.929,984.383,402.585,969.15,402.585C969.15,402.585,420.557,402.585,420.557,402.585C405.325,402.585,392.364,407.929,381.708,418.586C371.052,429.242,365.707,442.202,365.707,457.435C365.707,457.435,365.707,567.166,365.707,567.166C365.707,582.399,371.052,595.359,381.708,606.016C392.364,616.672,405.325,622.016,420.557,622.016C420.557,622.016,969.15,622.016,969.15,622.016C984.383,622.016,997.343,616.672,1007.999,606.016C1018.656,595.359,1024,582.399,1024,567.166C1024,567.166,1024,567.166,1024,567.166M1024,859.751C1024,859.751,1024,750.02,1024,750.02C1024,734.788,1018.656,721.827,1007.999,711.171C997.343,700.514,984.383,695.17,969.15,695.17C969.15,695.17,420.557,695.17,420.557,695.17C405.325,695.17,392.364,700.514,381.708,711.171C371.052,721.827,365.707,734.788,365.707,750.02C365.707,750.02,365.707,859.751,365.707,859.751C365.707,874.984,371.052,887.944,381.708,898.601C392.364,909.257,405.325,914.601,420.557,914.601C420.557,914.601,969.15,914.601,969.15,914.601C984.383,914.601,997.343,909.257,1007.999,898.601C1018.656,887.944,1024,874.984,1024,859.751C1024,859.751,1024,859.751,1024,859.751"
59
+ class="soliloquy-list"/>
60
+ <glyph unicode="&#x0053;"
61
+ d="M292.553,274.581C292.553,274.581,292.553,164.85,292.553,164.85C292.553,149.617,287.209,136.657,276.553,126.001C265.896,115.344,252.936,110,237.703,110C237.703,110,54.85,110,54.85,110C39.617,110,26.657,115.344,16.001,126.001C5.344,136.657,0,149.617,0,164.85C0,164.85,0,274.581,0,274.581C0,289.814,5.344,302.774,16.001,313.43C26.657,324.087,39.617,329.431,54.85,329.431C54.85,329.431,237.703,329.431,237.703,329.431C252.936,329.431,265.896,324.087,276.553,313.43C287.209,302.774,292.553,289.814,292.553,274.581C292.553,274.581,292.553,274.581,292.553,274.581M292.553,567.166C292.553,567.166,292.553,457.435,292.553,457.435C292.553,442.202,287.209,429.242,276.553,418.586C265.896,407.929,252.936,402.585,237.703,402.585C237.703,402.585,54.85,402.585,54.85,402.585C39.617,402.585,26.657,407.929,16.001,418.586C5.344,429.242,0,442.202,0,457.435C0,457.435,0,567.166,0,567.166C0,582.399,5.344,595.359,16.001,606.016C26.657,616.672,39.617,622.016,54.85,622.016C54.85,622.016,237.703,622.016,237.703,622.016C252.936,622.016,265.896,616.672,276.553,606.016C287.209,595.359,292.553,582.399,292.553,567.166C292.553,567.166,292.553,567.166,292.553,567.166M658.261,274.581C658.261,274.581,658.261,164.85,658.261,164.85C658.261,149.617,652.916,136.657,642.26,126.001C631.604,115.344,618.643,110,603.411,110C603.411,110,420.557,110,420.557,110C405.325,110,392.364,115.344,381.708,126.001C371.052,136.657,365.707,149.617,365.707,164.85C365.707,164.85,365.707,274.581,365.707,274.581C365.707,289.814,371.052,302.774,381.708,313.43C392.364,324.087,405.325,329.431,420.557,329.431C420.557,329.431,603.411,329.431,603.411,329.431C618.643,329.431,631.604,324.087,642.26,313.43C652.916,302.774,658.261,289.814,658.261,274.581C658.261,274.581,658.261,274.581,658.261,274.581M292.553,859.751C292.553,859.751,292.553,750.02,292.553,750.02C292.553,734.788,287.209,721.827,276.553,711.171C265.896,700.514,252.936,695.17,237.703,695.17C237.703,695.17,54.85,695.17,54.85,695.17C39.617,695.17,26.657,700.514,16.001,711.171C5.344,721.827,0,734.788,0,750.02C0,750.02,0,859.751,0,859.751C0,874.984,5.344,887.944,16.001,898.601C26.657,909.257,39.617,914.601,54.85,914.601C54.85,914.601,237.703,914.601,237.703,914.601C252.936,914.601,265.896,909.257,276.553,898.601C287.209,887.944,292.553,874.984,292.553,859.751C292.553,859.751,292.553,859.751,292.553,859.751M658.261,567.166C658.261,567.166,658.261,457.435,658.261,457.435C658.261,442.202,652.916,429.242,642.26,418.586C631.604,407.929,618.643,402.585,603.411,402.585C603.411,402.585,420.557,402.585,420.557,402.585C405.325,402.585,392.364,407.929,381.708,418.586C371.052,429.242,365.707,442.202,365.707,457.435C365.707,457.435,365.707,567.166,365.707,567.166C365.707,582.399,371.052,595.359,381.708,606.016C392.364,616.672,405.325,622.016,420.557,622.016C420.557,622.016,603.411,622.016,603.411,622.016C618.643,622.016,631.604,616.672,642.26,606.016C652.916,595.359,658.261,582.399,658.261,567.166C658.261,567.166,658.261,567.166,658.261,567.166M1024,274.581C1024,274.581,1024,164.85,1024,164.85C1024,149.617,1018.656,136.657,1007.999,126.001C997.343,115.344,984.383,110,969.15,110C969.15,110,786.297,110,786.297,110C771.064,110,758.104,115.344,747.447,126.001C736.791,136.657,731.447,149.617,731.447,164.85C731.447,164.85,731.447,274.581,731.447,274.581C731.447,289.814,736.791,302.774,747.447,313.43C758.104,324.087,771.064,329.431,786.297,329.431C786.297,329.431,969.15,329.431,969.15,329.431C984.383,329.431,997.343,324.087,1007.999,313.43C1018.656,302.774,1024,289.814,1024,274.581C1024,274.581,1024,274.581,1024,274.581M658.261,859.751C658.261,859.751,658.261,750.02,658.261,750.02C658.261,734.788,652.916,721.827,642.26,711.171C631.604,700.514,618.643,695.17,603.411,695.17C603.411,695.17,420.557,695.17,420.557,695.17C405.325,695.17,392.364,700.514,381.708,711.171C371.052,721.827,365.707,734.788,365.707,750.02C365.707,750.02,365.707,859.751,365.707,859.751C365.707,874.984,371.052,887.944,381.708,898.601C392.364,909.257,405.325,914.601,420.557,914.601C420.557,914.601,603.411,914.601,603.411,914.601C618.643,914.601,631.604,909.257,642.26,898.601C652.916,887.944,658.261,874.984,658.261,859.751C658.261,859.751,658.261,859.751,658.261,859.751M1024,567.166C1024,567.166,1024,457.435,1024,457.435C1024,442.202,1018.656,429.242,1007.999,418.586C997.343,407.929,984.383,402.585,969.15,402.585C969.15,402.585,786.297,402.585,786.297,402.585C771.064,402.585,758.104,407.929,747.447,418.586C736.791,429.242,731.447,442.202,731.447,457.435C731.447,457.435,731.447,567.166,731.447,567.166C731.447,582.399,736.791,595.359,747.447,606.016C758.104,616.672,771.064,622.016,786.297,622.016C786.297,622.016,969.15,622.016,969.15,622.016C984.383,622.016,997.343,616.672,1007.999,606.016C1018.656,595.359,1024,582.399,1024,567.166C1024,567.166,1024,567.166,1024,567.166M1024,859.751C1024,859.751,1024,750.02,1024,750.02C1024,734.788,1018.656,721.827,1007.999,711.171C997.343,700.514,984.383,695.17,969.15,695.17C969.15,695.17,786.297,695.17,786.297,695.17C771.064,695.17,758.104,700.514,747.447,711.171C736.791,721.827,731.447,734.788,731.447,750.02C731.447,750.02,731.447,859.751,731.447,859.751C731.447,874.984,736.791,887.944,747.447,898.601C758.104,909.257,771.064,914.601,786.297,914.601C786.297,914.601,969.15,914.601,969.15,914.601C984.383,914.601,997.343,909.257,1007.999,898.601C1018.656,887.944,1024,874.984,1024,859.751C1024,859.751,1024,859.751,1024,859.751"
62
+ class="soliloquy-grid"/>
63
+ <glyph unicode="&#x0054;"
64
+ d="M118.5,656.615C118.5,700.923,126.192,742.666,141.577,781.846C156.962,821.026,178.192,855.18,205.269,884.308C232.346,913.436,263.526,938.666,298.808,960C334.09,981.334,372.038,997.334,412.654,1008C453.269,1018.666,494.705,1024,536.962,1024C601.782,1024,662.09,1010.359,717.885,983.077C773.68,955.795,819.013,916.103,853.885,864C888.757,811.897,906.192,753.026,906.192,687.385C906.192,648,902.295,609.436,894.5,571.692C886.705,533.949,874.397,497.641,857.577,462.769C840.757,427.897,820.243,397.231,796.038,370.769C771.834,344.308,742.09,323.18,706.808,307.385C671.526,291.59,632.757,283.692,590.5,283.692C562.603,283.692,534.91,290.257,507.423,303.385C479.936,316.513,460.243,334.564,448.346,357.538C444.243,341.538,438.5,318.462,431.115,288.308C423.731,258.154,418.91,238.666,416.654,229.846C414.397,221.026,410.192,206.462,404.038,186.154C397.885,165.846,392.551,151.282,388.038,142.462C383.526,133.641,376.962,120.82,368.346,104C359.731,87.18,350.295,71.282,340.038,56.308C329.782,41.334,317.064,23.59,301.885,3.077C301.885,3.077,293.269,0,293.269,0C293.269,0,287.731,6.154,287.731,6.154C281.577,70.564,278.5,109.128,278.5,121.846C278.5,159.59,282.91,201.949,291.731,248.923C300.551,295.897,314.192,354.872,332.654,425.846C351.115,496.82,361.782,538.462,364.654,550.769C351.526,577.436,344.962,612.103,344.962,654.769C344.962,688.82,355.628,720.82,376.962,750.769C398.295,780.718,425.372,795.692,458.192,795.692C483.218,795.692,502.705,787.385,516.654,770.769C530.603,754.154,537.577,733.128,537.577,707.692C537.577,680.615,528.551,641.436,510.5,590.154C492.449,538.872,483.423,500.513,483.423,475.077C483.423,449.231,492.654,427.795,511.115,410.769C529.577,393.743,551.936,385.231,578.192,385.231C600.757,385.231,621.68,390.359,640.962,400.615C660.243,410.872,676.346,424.82,689.269,442.462C702.192,460.103,713.68,479.59,723.731,500.923C733.782,522.257,741.577,544.923,747.115,568.923C752.654,592.923,756.757,615.692,759.423,637.231C762.09,658.769,763.423,679.18,763.423,698.462C763.423,769.436,740.962,824.718,696.038,864.308C651.115,903.897,592.551,923.692,520.346,923.692C438.295,923.692,369.782,897.128,314.808,844C259.834,790.872,232.346,723.487,232.346,641.846C232.346,623.795,234.91,606.359,240.038,589.538C245.166,572.718,250.705,559.385,256.654,549.538C262.603,539.692,268.141,530.359,273.269,521.538C278.397,512.718,280.962,506.462,280.962,502.769C280.962,491.282,277.885,476.308,271.731,457.846C265.577,439.385,257.987,430.154,248.962,430.154C248.141,430.154,244.654,430.769,238.5,432C217.577,438.154,199.013,449.641,182.808,466.462C166.603,483.282,154.09,502.666,145.269,524.615C136.449,546.564,129.782,568.718,125.269,591.077C120.757,613.436,118.5,635.282,118.5,656.615C118.5,656.615,118.5,656.615,118.5,656.615"
65
+ class="soliloquy-pinterest-p"/>
66
+ <glyph unicode="&#x0055;"
67
+ d="M245.354,86.516C245.354,86.516,306.862,148.024,306.862,148.024C306.862,148.024,148.024,306.862,148.024,306.862C148.024,306.862,86.516,245.354,86.516,245.354C86.516,245.354,86.516,173.032,86.516,173.032C86.516,173.032,173.032,173.032,173.032,173.032C173.032,173.032,173.032,86.516,173.032,86.516C173.032,86.516,245.354,86.516,245.354,86.516C245.354,86.516,245.354,86.516,245.354,86.516M598.854,713.758C598.854,723.672,593.898,728.628,583.984,728.628C579.478,728.628,575.648,727.051,572.494,723.897C572.494,723.897,206.152,357.555,206.152,357.555C202.997,354.401,201.42,350.571,201.42,346.065C201.42,336.151,206.377,331.195,216.29,331.195C220.797,331.195,224.626,332.772,227.781,335.926C227.781,335.926,594.123,702.268,594.123,702.268C597.277,705.422,598.854,709.252,598.854,713.758C598.854,713.758,598.854,713.758,598.854,713.758M562.355,843.533C562.355,843.533,843.533,562.355,843.533,562.355C843.533,562.355,281.178,0,281.178,0C281.178,0,0,0,0,0C0,0,0,281.178,0,281.178C0,281.178,562.355,843.533,562.355,843.533M1024,778.646C1024,754.764,1015.664,734.486,998.991,717.814C998.991,717.814,886.791,605.613,886.791,605.613C886.791,605.613,605.613,886.791,605.613,886.791C605.613,886.791,717.814,998.316,717.814,998.316C734.036,1015.438,754.313,1024,778.646,1024C802.527,1024,823.03,1015.438,840.153,998.316C840.153,998.316,998.991,840.153,998.991,840.153C1015.664,822.58,1024,802.077,1024,778.646C1024,778.646,1024,778.646,1024,778.646"
68
+ class="soliloquy-pencil"/>
69
+ <glyph unicode="&#x0056;"
70
+ d="M1024,199.973C1024,176.987,1015.955,157.45,999.865,141.36C999.865,141.36,882.64,24.135,882.64,24.135C866.55,8.045,847.013,0,824.027,0C801.041,0,781.504,8.045,765.414,24.135C765.414,24.135,512,277.549,512,277.549C512,277.549,258.586,24.135,258.586,24.135C242.496,8.045,222.959,0,199.973,0C176.987,0,157.45,8.045,141.36,24.135C141.36,24.135,24.135,141.36,24.135,141.36C8.045,157.45,0,176.987,0,199.973C0,222.959,8.045,242.496,24.135,258.586C24.135,258.586,277.549,512,277.549,512C277.549,512,24.135,765.414,24.135,765.414C8.045,781.504,0,801.041,0,824.027C0,847.013,8.045,866.55,24.135,882.64C24.135,882.64,141.36,999.865,141.36,999.865C157.45,1015.955,176.987,1024,199.973,1024C222.959,1024,242.496,1015.955,258.586,999.865C258.586,999.865,512,746.451,512,746.451C512,746.451,765.414,999.865,765.414,999.865C781.504,1015.955,801.041,1024,824.027,1024C847.013,1024,866.55,1015.955,882.64,999.865C882.64,999.865,999.865,882.64,999.865,882.64C1015.955,866.55,1024,847.013,1024,824.027C1024,801.041,1015.955,781.504,999.865,765.414C999.865,765.414,746.451,512,746.451,512C746.451,512,999.865,258.586,999.865,258.586C1015.955,242.496,1024,222.959,1024,199.973C1024,199.973,1024,199.973,1024,199.973"
71
+ class="soliloquy-close"/>
72
+ <glyph unicode="&#x0057;"
73
+ d="M1024,751.577C1024,733.959,1017.834,718.985,1005.502,706.653C1005.502,706.653,527.195,228.346,527.195,228.346C527.195,228.346,437.347,138.498,437.347,138.498C425.015,126.166,410.041,120,392.423,120C374.806,120,359.832,126.166,347.499,138.498C347.499,138.498,257.652,228.346,257.652,228.346C257.652,228.346,18.498,467.499,18.498,467.499C6.166,479.832,0,494.806,0,512.423C0,530.041,6.166,545.015,18.498,557.347C18.498,557.347,108.346,647.195,108.346,647.195C120.678,659.527,135.652,665.693,153.27,665.693C170.887,665.693,185.861,659.527,198.194,647.195C198.194,647.195,392.423,452.305,392.423,452.305C392.423,452.305,825.806,886.348,825.806,886.348C838.139,898.681,853.113,904.846,870.73,904.846C888.348,904.846,903.322,898.681,915.654,886.348C915.654,886.348,1005.502,796.501,1005.502,796.501C1017.834,784.168,1024,769.194,1024,751.577C1024,751.577,1024,751.577,1024,751.577"
74
+ class="soliloquy-check"/>
75
+ </font>
76
+ </defs>
77
+ </svg>
assets/gutenberg/js/editor.min.js CHANGED
@@ -3,4 +3,4 @@
3
  Licensed under the MIT License (MIT), see
4
  http://jedwatson.github.io/classnames
5
  */
6
- !function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var s in r)o.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}var o={}.hasOwnProperty;void 0!==e&&e.exports?(n.default=n,e.exports=n):(r=[],void 0!==(i=function(){return n}.apply(t,r))&&(e.exports=i))}()},function(e,t,n){var r=n(6),i=n(0),o=n(37),a=n(11),s=n(9),l=function(e,t,n){var c,u,d,p=e&l.F,h=e&l.G,m=e&l.S,f=e&l.P,g=e&l.B,w=e&l.W,v=h?i:i[t]||(i[t]={}),y=v.prototype,b=h?r:m?r[t]:(r[t]||{}).prototype;h&&(n=t);for(c in n)(u=!p&&b&&void 0!==b[c])&&s(v,c)||(d=u?b[c]:n[c],v[c]=h&&"function"!=typeof b[c]?n[c]:g&&u?o(d,r):w&&b[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):f&&"function"==typeof d?o(Function.call,d):d,f&&((v.virtual||(v.virtual={}))[c]=d,e&l.R&&y&&!y[c]&&a(y,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){e.exports=!n(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(8),i=n(53),o=n(38),a=Object.defineProperty;t.f=n(5)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(12);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(57),i=n(36);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(7),i=n(15);e.exports=n(5)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(56),i=n(43);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(36);e.exports=function(e){return Object(r(e))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var r={};r.headline=wp.element.createElement("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M13.5 2V12H14.5C14.6458 12 14.7604 12.0521 14.8438 12.1562C14.9479 12.2396 15 12.3542 15 12.5V13.5C15 13.6458 14.9479 13.7604 14.8438 13.8438C14.7604 13.9479 14.6458 14 14.5 14H9.5C9.35417 14 9.22917 13.9479 9.125 13.8438C9.04167 13.7604 9 13.6458 9 13.5V12.5C9 12.3542 9.04167 12.2396 9.125 12.1562C9.22917 12.0521 9.35417 12 9.5 12H10.5V8H4.5V12H5.5C5.64583 12 5.76042 12.0521 5.84375 12.1562C5.94792 12.2396 6 12.3542 6 12.5V13.5C6 13.6458 5.94792 13.7604 5.84375 13.8438C5.76042 13.9479 5.64583 14 5.5 14H0.5C0.354167 14 0.229167 13.9479 0.125 13.8438C0.0416667 13.7604 0 13.6458 0 13.5V12.5C0 12.3542 0.0416667 12.2396 0.125 12.1562C0.229167 12.0521 0.354167 12 0.5 12H1.5V2H0.5C0.354167 2 0.229167 1.95833 0.125 1.875C0.0416667 1.77083 0 1.64583 0 1.5V0.5C0 0.354167 0.0416667 0.239583 0.125 0.15625C0.229167 0.0520833 0.354167 0 0.5 0H5.5C5.64583 0 5.76042 0.0520833 5.84375 0.15625C5.94792 0.239583 6 0.354167 6 0.5V1.5C6 1.64583 5.94792 1.77083 5.84375 1.875C5.76042 1.95833 5.64583 2 5.5 2H4.5V6H10.5V2H9.5C9.35417 2 9.22917 1.95833 9.125 1.875C9.04167 1.77083 9 1.64583 9 1.5V0.5C9 0.354167 9.04167 0.239583 9.125 0.15625C9.22917 0.0520833 9.35417 0 9.5 0H14.5C14.6458 0 14.7604 0.0520833 14.8438 0.15625C14.9479 0.239583 15 0.354167 15 0.5V1.5C15 1.64583 14.9479 1.77083 14.8438 1.875C14.7604 1.95833 14.6458 2 14.5 2H13.5Z",fill:"white"})),r.headlineBlack=wp.element.createElement("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M13.5 2V12H14.5C14.6458 12 14.7604 12.0521 14.8438 12.1562C14.9479 12.2396 15 12.3542 15 12.5V13.5C15 13.6458 14.9479 13.7604 14.8438 13.8438C14.7604 13.9479 14.6458 14 14.5 14H9.5C9.35417 14 9.22917 13.9479 9.125 13.8438C9.04167 13.7604 9 13.6458 9 13.5V12.5C9 12.3542 9.04167 12.2396 9.125 12.1562C9.22917 12.0521 9.35417 12 9.5 12H10.5V8H4.5V12H5.5C5.64583 12 5.76042 12.0521 5.84375 12.1562C5.94792 12.2396 6 12.3542 6 12.5V13.5C6 13.6458 5.94792 13.7604 5.84375 13.8438C5.76042 13.9479 5.64583 14 5.5 14H0.5C0.354167 14 0.229167 13.9479 0.125 13.8438C0.0416667 13.7604 0 13.6458 0 13.5V12.5C0 12.3542 0.0416667 12.2396 0.125 12.1562C0.229167 12.0521 0.354167 12 0.5 12H1.5V2H0.5C0.354167 2 0.229167 1.95833 0.125 1.875C0.0416667 1.77083 0 1.64583 0 1.5V0.5C0 0.354167 0.0416667 0.239583 0.125 0.15625C0.229167 0.0520833 0.354167 0 0.5 0H5.5C5.64583 0 5.76042 0.0520833 5.84375 0.15625C5.94792 0.239583 6 0.354167 6 0.5V1.5C6 1.64583 5.94792 1.77083 5.84375 1.875C5.76042 1.95833 5.64583 2 5.5 2H4.5V6H10.5V2H9.5C9.35417 2 9.22917 1.95833 9.125 1.875C9.04167 1.77083 9 1.64583 9 1.5V0.5C9 0.354167 9.04167 0.239583 9.125 0.15625C9.22917 0.0520833 9.35417 0 9.5 0H14.5C14.6458 0 14.7604 0.0520833 14.8438 0.15625C14.9479 0.239583 15 0.354167 15 0.5V1.5C15 1.64583 14.9479 1.77083 14.8438 1.875C14.7604 1.95833 14.6458 2 14.5 2H13.5Z",fill:"#000"})),r.warning=wp.element.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M16 8C16 6.58065 15.6129 5.22581 14.9032 4C14.1935 2.77419 13.2258 1.80645 12 1.09677C10.7742 0.387097 9.41936 0 8 0C6.54839 0 5.22581 0.387097 4 1.09677C2.77419 1.80645 1.77419 2.77419 1.06452 4C0.354839 5.22581 0 6.58065 0 8C0 9.45161 0.354839 10.7742 1.06452 12C1.77419 13.2258 2.77419 14.2258 4 14.9355C5.22581 15.6452 6.54839 16 8 16C9.41936 16 10.7742 15.6452 12 14.9355C13.2258 14.2258 14.1935 13.2258 14.9032 12C15.6129 10.7742 16 9.45161 16 8ZM8 9.6129C8.3871 9.6129 8.74194 9.77419 9.03226 10.0645C9.32258 10.3548 9.48387 10.7097 9.48387 11.0968C9.48387 11.5161 9.32258 11.871 9.03226 12.1613C8.74194 12.4516 8.3871 12.5806 8 12.5806C7.58065 12.5806 7.22581 12.4516 6.93548 12.1613C6.64516 11.871 6.51613 11.5161 6.51613 11.0968C6.51613 10.7097 6.64516 10.3548 6.93548 10.0645C7.22581 9.77419 7.58065 9.6129 8 9.6129ZM6.58065 4.29032C6.58065 4.16129 6.6129 4.06452 6.67742 4C6.74194 3.93548 6.83871 3.87097 6.96774 3.87097H9.03226C9.12903 3.87097 9.22581 3.93548 9.29032 4C9.35484 4.06452 9.41936 4.16129 9.41936 4.29032L9.16129 8.67742C9.16129 8.77419 9.09677 8.87097 9.03226 8.93548C8.96774 9 8.87097 9.03226 8.77419 9.03226H7.22581C7.09677 9.03226 7 9 6.93548 8.93548C6.87097 8.87097 6.83871 8.77419 6.83871 8.67742L6.58065 4.29032Z",fill:"#F2994A"})),r.smile=wp.element.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M2.32258 2.35484C3.89247 0.784946 5.78495 0 8 0C10.2151 0 12.0968 0.784946 13.6452 2.35484C15.2151 3.90323 16 5.78495 16 8C16 10.2151 15.2151 12.1075 13.6452 13.6774C12.0968 15.2258 10.2151 16 8 16C5.78495 16 3.89247 15.2258 2.32258 13.6774C0.774194 12.1075 0 10.2151 0 8C0 5.78495 0.774194 3.90323 2.32258 2.35484ZM11.2903 5.74194C11.0968 5.52688 10.8602 5.41935 10.5806 5.41935C10.3011 5.41935 10.0538 5.52688 9.83871 5.74194C9.64516 5.93548 9.54839 6.17204 9.54839 6.45161C9.54839 6.73118 9.64516 6.97849 9.83871 7.19355C10.0538 7.3871 10.3011 7.48387 10.5806 7.48387C10.8602 7.48387 11.0968 7.3871 11.2903 7.19355C11.5054 6.97849 11.6129 6.73118 11.6129 6.45161C11.6129 6.17204 11.5054 5.93548 11.2903 5.74194ZM6.12903 5.74194C5.93548 5.52688 5.69892 5.41935 5.41935 5.41935C5.13978 5.41935 4.89247 5.52688 4.67742 5.74194C4.48387 5.93548 4.3871 6.17204 4.3871 6.45161C4.3871 6.73118 4.48387 6.97849 4.67742 7.19355C4.89247 7.3871 5.13978 7.48387 5.41935 7.48387C5.69892 7.48387 5.93548 7.3871 6.12903 7.19355C6.34409 6.97849 6.45161 6.73118 6.45161 6.45161C6.45161 6.17204 6.34409 5.93548 6.12903 5.74194ZM11.7097 10.9032C11.7957 10.8172 11.8387 10.7204 11.8387 10.6129C11.8387 10.4839 11.8065 10.3871 11.7419 10.3226C11.6774 10.2366 11.5914 10.172 11.4839 10.129C11.3978 10.0645 11.3011 10.043 11.1935 10.0645C11.086 10.086 10.9892 10.1505 10.9032 10.2581C10.1505 11.1613 9.1828 11.6129 8 11.6129C6.8172 11.6129 5.84946 11.1613 5.09677 10.2581C5.01075 10.1505 4.91398 10.086 4.80645 10.0645C4.69892 10.043 4.5914 10.0645 4.48387 10.129C4.39785 10.172 4.32258 10.2366 4.25806 10.3226C4.19355 10.3871 4.16129 10.4839 4.16129 10.6129C4.16129 10.7204 4.2043 10.8172 4.29032 10.9032C5.25806 12.0645 6.49462 12.6452 8 12.6452C9.50538 12.6452 10.7419 12.0645 11.7097 10.9032Z",fill:"#1EC185"})),r.neutral=wp.element.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M2.32258 2.35484C3.89247 0.784946 5.78495 0 8 0C10.2151 0 12.0968 0.784946 13.6452 2.35484C15.2151 3.90323 16 5.78495 16 8C16 10.2151 15.2151 12.1075 13.6452 13.6774C12.0968 15.2258 10.2151 16 8 16C5.78495 16 3.89247 15.2258 2.32258 13.6774C0.774194 12.1075 0 10.2151 0 8C0 5.78495 0.774194 3.90323 2.32258 2.35484ZM6.12903 5.74194C5.93548 5.52688 5.69892 5.41935 5.41935 5.41935C5.13978 5.41935 4.89247 5.52688 4.67742 5.74194C4.48387 5.93548 4.3871 6.17204 4.3871 6.45161C4.3871 6.73118 4.48387 6.97849 4.67742 7.19355C4.89247 7.3871 5.13978 7.48387 5.41935 7.48387C5.69892 7.48387 5.93548 7.3871 6.12903 7.19355C6.34409 6.97849 6.45161 6.73118 6.45161 6.45161C6.45161 6.17204 6.34409 5.93548 6.12903 5.74194ZM11.0968 11.6129C11.4409 11.6129 11.6129 11.4409 11.6129 11.0968C11.6129 10.7527 11.4409 10.5806 11.0968 10.5806H4.90323C4.55914 10.5806 4.3871 10.7527 4.3871 11.0968C4.3871 11.4409 4.55914 11.6129 4.90323 11.6129H11.0968ZM9.83871 7.19355C10.0538 7.3871 10.3011 7.48387 10.5806 7.48387C10.8602 7.48387 11.0968 7.3871 11.2903 7.19355C11.5054 6.97849 11.6129 6.73118 11.6129 6.45161C11.6129 6.17204 11.5054 5.93548 11.2903 5.74194C11.0968 5.52688 10.8602 5.41935 10.5806 5.41935C10.3011 5.41935 10.0538 5.52688 9.83871 5.74194C9.64516 5.93548 9.54839 6.17204 9.54839 6.45161C9.54839 6.73118 9.64516 6.97849 9.83871 7.19355Z",fill:"#626D83"})),r.negative=wp.element.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M2.32258 2.35484C3.89247 0.784946 5.78495 0 8 0C10.2151 0 12.0968 0.784946 13.6452 2.35484C15.2151 3.90323 16 5.78495 16 8C16 10.2151 15.2151 12.1075 13.6452 13.6774C12.0968 15.2258 10.2151 16 8 16C5.78495 16 3.89247 15.2258 2.32258 13.6774C0.774194 12.1075 0 10.2151 0 8C0 5.78495 0.774194 3.90323 2.32258 2.35484ZM4.3871 7.48387C4.3871 7.76344 4.48387 8.01075 4.67742 8.22581C4.89247 8.41935 5.13978 8.51613 5.41935 8.51613C5.69892 8.51613 5.93548 8.41935 6.12903 8.22581C6.34409 8.01075 6.45161 7.76344 6.45161 7.48387C6.45161 7.44086 6.43011 7.35484 6.3871 7.22581C6.4086 7.22581 6.41935 7.22581 6.41935 7.22581C6.44086 7.22581 6.45161 7.22581 6.45161 7.22581C6.70968 7.22581 6.87097 7.10753 6.93548 6.87097C6.95699 6.78495 6.96774 6.70968 6.96774 6.64516C6.96774 6.58065 6.94624 6.52688 6.90323 6.48387C6.88172 6.41935 6.83871 6.36559 6.77419 6.32258C6.73118 6.27957 6.67742 6.24731 6.6129 6.22581L4.03226 5.45161C3.88172 5.4086 3.74194 5.41935 3.6129 5.48387C3.50538 5.54839 3.43011 5.64516 3.3871 5.77419C3.36559 5.86021 3.35484 5.93548 3.35484 6C3.37634 6.06452 3.39785 6.12903 3.41935 6.19355C3.44086 6.23656 3.47312 6.27957 3.51613 6.32258C3.58065 6.36559 3.65591 6.39785 3.74194 6.41935L4.70968 6.74194C4.49462 6.93548 4.3871 7.1828 4.3871 7.48387ZM9.80645 12.4516C9.93548 12.6237 10.0968 12.6882 10.2903 12.6452C10.4839 12.6021 10.6129 12.4946 10.6774 12.3226C10.7419 12.1505 10.7097 11.9785 10.5806 11.8065C9.91398 10.9892 9.05376 10.5806 8 10.5806C6.94624 10.5806 6.07527 10.9892 5.3871 11.8065C5.34409 11.871 5.31183 11.9462 5.29032 12.0323C5.26882 12.1183 5.26882 12.1935 5.29032 12.2581C5.31183 12.3226 5.34409 12.3871 5.3871 12.4516C5.43011 12.5161 5.48387 12.5699 5.54839 12.6129C5.6129 12.6344 5.67742 12.6559 5.74194 12.6774C5.82796 12.6774 5.90323 12.6667 5.96774 12.6452C6.05376 12.6021 6.12903 12.5376 6.19355 12.4516C6.64516 11.914 7.24731 11.6452 8 11.6452C8.75269 11.6452 9.35484 11.914 9.80645 12.4516ZM12.2903 6.41935C12.4194 6.37634 12.5161 6.30107 12.5806 6.19355C12.6452 6.06452 12.6559 5.92473 12.6129 5.77419C12.5914 5.68817 12.5484 5.6129 12.4839 5.54839C12.4194 5.48387 12.3441 5.45161 12.2581 5.45161C12.172 5.43011 12.086 5.43011 12 5.45161L9.41935 6.22581C9.26882 6.26882 9.16129 6.35484 9.09677 6.48387C9.03226 6.5914 9.02151 6.72043 9.06452 6.87097C9.12903 7.10753 9.29032 7.22581 9.54839 7.22581C9.56989 7.22581 9.5914 7.22581 9.6129 7.22581C9.56989 7.33333 9.54839 7.41935 9.54839 7.48387C9.54839 7.76344 9.64516 8.01075 9.83871 8.22581C10.0538 8.41935 10.3011 8.51613 10.5806 8.51613C10.8602 8.51613 11.0968 8.41935 11.2903 8.22581C11.5054 8.01075 11.6129 7.76344 11.6129 7.48387C11.6129 7.1828 11.5054 6.93548 11.2903 6.74194L12.2903 6.41935Z",fill:"#626D83"})),r.check=wp.element.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M13.6452 2.35484C15.2151 3.90323 16 5.78495 16 8C16 10.2151 15.2151 12.1075 13.6452 13.6774C12.0968 15.2258 10.2151 16 8 16C5.78495 16 3.89247 15.2258 2.32258 13.6774C0.774194 12.1075 0 10.2151 0 8C0 5.78495 0.774194 3.90323 2.32258 2.35484C3.89247 0.784946 5.78495 0 8 0C10.2151 0 12.0968 0.784946 13.6452 2.35484ZM7.06452 12.2258L13 6.29032C13.2581 6.05376 13.2581 5.8172 13 5.58065L12.2903 4.83871C12.0323 4.60215 11.7849 4.60215 11.5484 4.83871L6.70968 9.67742L4.45161 7.41935C4.21505 7.1828 3.96774 7.1828 3.70968 7.41935L3 8.16129C2.74194 8.39785 2.74194 8.63441 3 8.87097L6.35484 12.2258C6.5914 12.4839 6.82796 12.4839 7.06452 12.2258Z",fill:"#1EC185"})),t.a=r},function(e,t,n){e.exports={default:n(155),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(72),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=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),(0,i.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){"use strict";t.__esModule=!0;var r=n(73),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(172),o=r(i),a=n(176),s=r(a),l=n(73),c=r(l);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,c.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(o.default?(0,o.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";var r=(n(180),n(33));n.d(t,"a",function(){return r.a});n(189),n(191),n(192),n(193),n(81)},function(e,t){e.exports=lodash},function(e,t,n){"use strict";var r=n(94)(!0);n(52)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(106),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=i.default||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(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(110),o=r(i),a=n(62),s=r(a);t.default=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=(0,s.default)(e);!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if((0,o.default)(Object(t)))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){"use strict";var r=wp.element.Fragment,i=function(e){var t=e.barScore,n=e.width?e.width+"px":"80px",i=t>50?0:180-3.6*t,o=e.barColor;return wp.element.createElement(r,null,wp.element.createElement("div",{className:"monsterinsights-donut-container",style:{flexDirection:"column"}},wp.element.createElement("div",{className:"monsterinsights-donut",style:{width:n,paddingBottom:n,backgroundColor:"#f2f2f2"}},wp.element.createElement("div",{className:"monsterinsights-donut-sections",style:{transform:"rotate(0deg)"}},wp.element.createElement("div",{className:"monsterinsights-donut-section monsterinsights-donut-section-right",style:{transform:"rotate(0deg)"}},wp.element.createElement("div",{className:"monsterinsights-donut-filler",style:{backgroundColor:o,transform:"rotate(-"+i+"deg)"}})),function(){if(t>50){var e=180+360*(t-50)/100;return wp.element.createElement("div",{className:"monsterinsights-donut-section monsterinsights-donut-section-left",style:{transform:"rotate(0deg)"}},wp.element.createElement("div",{className:"monsterinsights-donut-filler",style:{backgroundColor:o,transform:"rotate("+e+"deg)"}}))}}()),wp.element.createElement("div",{className:"monsterinsights-donut-overlay",style:{height:"70%",width:"70%",top:"calc(15%)",left:"calc(15%)",backgroundColor:"rgb(255, 255, 255)"}}))))};t.a=i},function(e,t,n){"use strict";var r=(n(34),n(49),n(80)),i=(n.n(r),n(26));n.n(i);n.o(r,"cloneElement")&&n.d(t,"d",function(){return r.cloneElement}),n.o(r,"Component")&&n.d(t,"a",function(){return r.Component}),n.o(r,"createContext")&&n.d(t,"e",function(){return r.createContext}),n.o(r,"createElement")&&n.d(t,"f",function(){return r.createElement}),n.o(r,"forwardRef")&&n.d(t,"g",function(){return r.forwardRef}),n.o(r,"Fragment")&&n.d(t,"b",function(){return r.Fragment}),n.o(r,"isValidElement")&&n.d(t,"h",function(){return r.isValidElement}),n.o(r,"StrictMode")&&n.d(t,"c",function(){return r.StrictMode})},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}t.a=r},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(95);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(12);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(8),i=n(97),o=n(43),a=n(41)("IE_PROTO"),s=function(){},l=function(){var e,t=n(54)("iframe"),r=o.length;for(t.style.display="none",n(100).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(42)("keys"),i=n(29);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(0),i=n(6),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(28)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(7).f,i=n(9),o=n(2)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){n(112);for(var r=n(6),i=n(11),o=n(14),a=n(2)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=r[c],d=u&&u.prototype;d&&!d[a]&&i(d,a,c),o[c]=o.Array}},function(e,t,n){t.f=n(2)},function(e,t,n){var r=n(6),i=n(0),o=n(28),a=n(47),s=n(7).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=Object(i.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=r;var i=n(188)},function(e,t,n){"use strict";function r(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}t.a=r},function(e,t,n){"use strict";t.__esModule=!0;var r=n(92),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,i.default)(e)}},function(e,t,n){"use strict";var r=n(28),i=n(4),o=n(55),a=n(11),s=n(14),l=n(96),c=n(44),u=n(59),d=n(2)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,m,f,g,w){l(n,t,m);var v,y,b,S=function(e){if(!p&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",_="values"==f,C=!1,x=e.prototype,k=x[d]||x["@@iterator"]||f&&x[f],O=k||S(f),T=f?_?S("entries"):O:void 0,N="Array"==t?x.entries||k:k;if(N&&(b=u(N.call(new e)))!==Object.prototype&&b.next&&(c(b,E,!0),r||"function"==typeof b[d]||a(b,d,h)),_&&k&&"values"!==k.name&&(C=!0,O=function(){return k.call(this)}),r&&!w||!p&&!C&&x[d]||a(x,d,O),s[t]=O,s[E]=h,f)if(v={values:_?O:S("values"),keys:g?O:S("keys"),entries:T},w)for(y in v)y in x||o(x,y,v[y]);else i(i.P+i.F*(p||C),t,v);return v}},function(e,t,n){e.exports=!n(5)&&!n(13)(function(){return 7!=Object.defineProperty(n(54)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(12),i=n(6).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){e.exports=n(11)},function(e,t,n){var r=n(9),i=n(10),o=n(98)(!1),a=n(41)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(40);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(35),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(9),i=n(17),o=n(41)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(61),i=n(2)("iterator"),o=n(14);e.exports=n(0).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(40),i=n(2)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){e.exports={default:n(116),__esModule:!0}},function(e,t,n){e.exports=n(118)},function(e,t,n){"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)}}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=n(1);e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var a=[];i.forEach(t,function(e,t){null!==e&&void 0!==e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))}))}),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){function r(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var i=n(1),o=n(124),a={"Content-Type":"application/x-www-form-urlencoded"},s={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=n(68):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(e=n(68)),e}(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){s.headers[e]={}}),i.forEach(["post","put","patch"],function(e){s.headers[e]=i.merge(a)}),e.exports=s}).call(t,n(123))},function(e,t,n){"use strict";var r=n(1),i=n(125),o=n(65),a=n(127),s=n(130),l=n(131),c=n(69);e.exports=function(e){return new Promise(function(t,u){var d=e.data,p=e.headers;r.isFormData(d)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",f=e.auth.password||"";p.Authorization="Basic "+btoa(m+":"+f)}var g=a(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),o(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?h.response:h.responseText,o={data:r,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};i(t,u,o),h=null}},h.onabort=function(){h&&(u(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){u(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),u(c(t,e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var w=n(132),v=(e.withCredentials||l(g))&&e.xsrfCookieName?w.read(e.xsrfCookieName):void 0;v&&(p[e.xsrfHeaderName]=v)}if("setRequestHeader"in h&&r.forEach(p,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:h.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"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(),u(e),h=null)}),void 0===d&&(d=null),h.send(d)})}},function(e,t,n){"use strict";var r=n(126);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,function(e){void 0!==t[e]&&(n[e]=t[e])}),r.forEach(o,function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):void 0!==t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):void 0!==e[i]&&(n[i]=e[i])}),r.forEach(a,function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])});var s=i.concat(o).concat(a),l=Object.keys(t).filter(function(e){return-1===s.indexOf(e)});return r.forEach(l,function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){e.exports={default:n(158),__esModule:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(160),o=r(i),a=n(162),s=r(a),l="function"==typeof s.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===l(o.default)?function(e){return void 0===e?"undefined":l(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":l(e)}},function(e,t,n){var r=n(56),i=n(43).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(18),i=n(15),o=n(10),a=n(38),s=n(9),l=n(53),c=Object.getOwnPropertyDescriptor;t.f=n(5)?c:function(e,t){if(e=o(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";function r(e,t){if(e){if("string"==typeof e)return Object(i.a)(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)?Object(i.a)(e,t):void 0}}t.a=r;var i=n(77)},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}t.a=r},function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";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)}t.a=r},function(e,t,n){"use strict";function r(e){return Object(i.a)(e)||Object(o.a)(e)||Object(a.a)(e)||Object(s.a)()}t.a=r;var i=n(185),o=n(186),a=n(76),s=n(187)},function(e,t){e.exports=React},function(e,t,n){"use strict";function r(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e){var t=e.children,n=Object(s.a)(e,["children"]);return Object(l.f)("div",i({dangerouslySetInnerHTML:{__html:t}},n))}t.a=o;var a=n(34),s=n(49),l=n(33)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(72),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){e.exports=n(200)},function(e,t,n){"use strict";function r(e){var t=e.className,n=e.selected,o=e.help,p=e.onChange,h=e.options,m=void 0===h?[]:h,f=e.icons,g=void 0===f?[]:f,w=u(r),v="inspector-monsterinsights-popular-posts-theme-control-"+w,y=function(e){return p(e.target.value)},b=[],S=0,E=0,_=0;for(var C in m)if(m.hasOwnProperty(C)){var x=m[C];void 0===b[S]&&(b[S]=[]),b[S][E]=x,x.value===n&&(_=S),3===E?(E=0,S++):E++}var k=function(){return wp.element.createElement("span",{className:"monsterinsights-theme-picker-check"},l.a.checkmark)},O=function(e){var t="monsterinsights-theme-picker-label-"+e.value;return e.value===n&&(t+=" monsterinsights-theme-picker-label-selected"),s.a.canaccess(e.level)||(t+=" monsterinsights-theme-picker-label-disabled"),t};return!Object(i.isEmpty)(m)&&wp.element.createElement(d,{id:v,help:o,className:a()(t,"monsterinsights-theme-picker")},wp.element.createElement(c.c,{naturalSlideWidth:250,totalSlides:b.length,className:"monsterinsights-theme-picker-carousel",currentSlide:_,dragEnabled:!1},wp.element.createElement(c.f,null,b.map(function(e,t){return wp.element.createElement(c.e,{className:"monsterinsights-theme-picker-slide",index:t,key:v+"-"+t},e.map(function(e,r){return wp.element.createElement("div",{key:v+"-"+t+"-"+r,className:"monsterinsights-slider-theme-option"},wp.element.createElement("input",{id:v+"-"+t+"-"+r,className:"monsterinsights-slider-theme-input",type:"radio",name:v,value:e.value,onChange:y,checked:e.value===n,"aria-describedby":o?v+"__help":void 0}),wp.element.createElement("label",{htmlFor:v+"-"+t+"-"+r,className:O(e)},e.value===n&&k(),wp.element.createElement("span",{className:"monsterinsights-theme-picker-label-icon"},g[e.value]?g[e.value]:""),wp.element.createElement("span",{className:"monsterinsights-theme-picker-label-text"},e.label)))}))})),function(){if(b.length>1)return wp.element.createElement("div",{className:"monsterinsights-carousel-navigation"},wp.element.createElement(c.a,null,l.a.chevronleft),wp.element.createElement(c.d,{className:"monsterinsights-carousel-navigation-dots"}),wp.element.createElement(c.b,null,l.a.chevronright))}()))}t.a=r;var i=n(26),o=(n.n(i),n(3)),a=n.n(o),s=n(203),l=n(204),c=n(205),u=wp.compose.useInstanceId,d=wp.components.BaseControl},function(e,t,n){"use strict";function r(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){Object(o.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,"a",function(){return c});var o=n(34),a=n(213),s={"":{plural_forms:function(e){return 1===e?0:1}}},l=/^i18n\.(n?gettext|has_translation)(_|$)/,c=function(e,t,n){var r=new a.a({}),o=new Set,c=function(){o.forEach(function(e){return e()})},u=function(e){return o.add(e),function(){return o.delete(e)}},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=i(i(i({},s),r.data[t]),e),r.data[t][""]=i(i({},s[""]),r.data[t][""])},h=function(e,t){p(e,t),c()},m=function(e,t){r.data={},r.pluralForms={},h(e,t)},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return r.data[e]||p(void 0,e),r.dcnpgettext(e,t,n,i,o)},g=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},w=function(e,t){var r=f(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+g(t),r,e,t)):r},v=function(e,t,r){var i=f(r,t,e);return n?(i=n.applyFilters("i18n.gettext_with_context",i,e,t,r),n.applyFilters("i18n.gettext_with_context_"+g(r),i,e,t,r)):i},y=function(e,t,r,i){var o=f(i,void 0,e,t,r);return n?(o=n.applyFilters("i18n.ngettext",o,e,t,r,i),n.applyFilters("i18n.ngettext_"+g(i),o,e,t,r,i)):o},b=function(e,t,r,i,o){var a=f(o,i,e,t,r);return n?(a=n.applyFilters("i18n.ngettext_with_context",a,e,t,r,i,o),n.applyFilters("i18n.ngettext_with_context_"+g(o),a,e,t,r,i,o)):a},S=function(){return"rtl"===v("ltr","text direction")},E=function(e,t,i){var o,a,s=t?t+""+e:e,l=!(null===(o=r.data)||void 0===o||null===(a=o[null!==i&&void 0!==i?i:"default"])||void 0===a||!a[s]);return n&&(l=n.applyFilters("i18n.has_translation",l,e,t,i),l=n.applyFilters("i18n.has_translation_"+g(i),l,e,t,i)),l};if(e&&h(e,t),n){var _=function(e){l.test(e)&&c()};n.addAction("hookAdded","core/i18n",_),n.addAction("hookRemoved","core/i18n",_)}return{getLocaleData:d,setLocaleData:h,resetLocaleData:m,subscribe:u,__:w,_x:v,_n:y,_nx:b,isRTL:S,hasTranslation:E}}},function(e,t,n){"use strict";function r(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(88),i=(n.n(r),n(89)),o=(n.n(i),n(90),n(198),wp.i18n.setLocaleData);void 0!==window.monsterinsights_gutenberg_tool_vars.translations&&o(window.monsterinsights_gutenberg_tool_vars.translations,"google-analytics-for-wordpress")},function(e,t){},function(e,t){},function(e,t,n){"use strict";n(91),n(148)},function(e,t,n){"use strict";var r=n(51),i=n.n(r),o=n(30),a=n.n(o),s=n(31),l=n.n(s),c=n(19),u=n(63),d=n.n(u),p=n(135),h=n(139),m=n(140),f=n(142),g=n(143),w=n(144),v=n(145),y=n(146),b=n(147),S=wp.i18n.__,E=wp.element,_=E.Fragment,C=E.useState,x=E.useEffect,k=wp.plugins.registerPlugin,O=wp.editPost,T=O.PluginSidebar,N=O.PluginSidebarMoreMenuItem,M=wp.data.select,j=function(e){var t=M("core/editor").getEditedPostAttribute("title"),n=S("Headline Analyzer","google-analytics-for-wordpress"),r=S("Write your post title to see the analyzer data. This Headline Analyzer tool enables you to write irresistible SEO headlines that drive traffic, shares, and rank better in search results.","google-analytics-for-wordpress"),o=C({}),s=l()(o,2),u=s[0],E=s[1],k=document.querySelector(".components-button[aria-label='"+n+"'] svg"),O=void 0!==u.previousHeadlinesData?u.previousHeadlinesData:[],j=sprintf(S("This headline analyzer is part of MonsterInsights to help you increase your traffic. See your %1swebsite traffic reports%2s.","google-analytics-for-wordpress"),'<a href="'+monsterinsights_gutenberg_tool_vars.reports_url+'" className="monsterinsights-headline-analyzer-link">',"</a>"),P=document.querySelector(".monsterinsights-headline-analyzer-wrapper");if(k){var D=document.createElement("span");if(u.dataExist&&void 0!==u.currentHeadlineData.score){var F=u.currentHeadlineData.score,A=F<40?"red":F<=60?"orange":"green";k.parentNode.setAttribute("monsterinsights-button-color",A),k.nextElementSibling?k.nextElementSibling.innerHTML=F+"/100":(D.innerHTML=F+"/100",k.parentNode.insertBefore(D,k.nextSibling))}else k.parentNode.setAttribute("monsterinsights-button-color","red"),k.nextElementSibling?k.nextElementSibling.innerHTML="00/100":(D.innerHTML="00/100",k.parentNode.insertBefore(D,k.nextSibling))}if(P){var L=P.parentNode.querySelectorAll(".components-panel__header");L&&L.forEach(function(e){var t=e.querySelector('[aria-pressed="true"]');t&&null!==t&&null!==t.offsetParent&&(t.style.display="none")})}var B=function(e){E(a()({},u,e))};return x(function(){var e=new FormData;e.append("_ajax_nonce",monsterinsights_gutenberg_tool_vars.nonce),e.append("action","monsterinsights_gutenberg_headline_analyzer_get_results"),e.append("dataType","json"),e.append("q",t),d.a.post(monsterinsights_gutenberg_tool_vars.ajaxurl,e).then(function(e){var t={dataExist:!1};e.data.data.analysed&&(t.currentHeadlineData=e.data.data,t.headlineData=e.data.data,t.dataExist=!0,void 0!==u.headlineData&&(t.previousHeadlinesData=[u.headlineData].concat(i()(O)))),E(a()({},u,t))}).catch(function(e){var t={dataExist:!1};E(a()({},u,t)),console.log(e)})},[t]),wp.element.createElement(_,null,wp.element.createElement(N,{target:"monsterinsights-headline-analyzer"},n),wp.element.createElement(T,{name:"monsterinsights-headline-analyzer",title:n,className:"monsterinsights-headline-analyzer-wrapper",icon:c.a.headline},void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed?wp.element.createElement(p.a,{analyzer:u,setAnalyzer:B}):wp.element.createElement("p",{className:"monsterinsights-headline-analyzer-empty-title-warning"},r),void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed&&O.length>0?wp.element.createElement(h.a,{analyzer:u,setAnalyzer:B}):"",void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed?wp.element.createElement(m.a,{data:u.headlineData}):"",void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed?wp.element.createElement(f.a,{data:u.headlineData}):"",void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed?wp.element.createElement(g.a,{data:u.headlineData}):"",void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed?wp.element.createElement(w.a,{data:u.headlineData}):"",void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed?wp.element.createElement(v.a,{data:u.headlineData}):"",void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed?wp.element.createElement(y.a,{data:u.headlineData}):"",void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed?wp.element.createElement(b.a,{data:u.headlineData}):"",wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-bottom-notice"},wp.element.createElement("p",{dangerouslySetInnerHTML:{__html:j}}))))};"undefined"!=typeof monsterinsights_gutenberg_tool_vars&&monsterinsights_gutenberg_tool_vars.allowed_post_types.includes(monsterinsights_gutenberg_tool_vars.current_post_type)&&monsterinsights_gutenberg_tool_vars.is_headline_analyzer_enabled&&k("monsterinsights-headline-analyzer",{icon:c.a.headlineBlack,render:j})},function(e,t,n){e.exports={default:n(93),__esModule:!0}},function(e,t,n){n(27),n(101),e.exports=n(0).Array.from},function(e,t,n){var r=n(35),i=n(36);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(39),i=n(15),o=n(44),a={};n(11)(a,n(2)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(7),i=n(8),o=n(16);e.exports=n(5)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},function(e,t,n){var r=n(10),i=n(58),o=n(99);e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(35),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(6).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(37),i=n(4),o=n(17),a=n(102),s=n(103),l=n(58),c=n(104),u=n(60);i(i.S+i.F*!n(105)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,d,p=o(e),h="function"==typeof this?this:Array,m=arguments.length,f=m>1?arguments[1]:void 0,g=void 0!==f,w=0,v=u(p);if(g&&(f=r(f,m>2?arguments[2]:void 0,2)),void 0==v||h==Array&&s(v))for(t=l(p.length),n=new h(t);t>w;w++)c(n,w,g?f(p[w],w):p[w]);else for(d=v.call(p),n=new h;!(i=d.next()).done;w++)c(n,w,g?a(d,f,[i.value,w],!0):i.value);return n.length=w,n}})},function(e,t,n){var r=n(8);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){var r=n(14),i=n(2)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){"use strict";var r=n(7),i=n(15);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(2)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},function(e,t,n){e.exports={default:n(107),__esModule:!0}},function(e,t,n){n(108),e.exports=n(0).Object.assign},function(e,t,n){var r=n(4);r(r.S+r.F,"Object",{assign:n(109)})},function(e,t,n){"use strict";var r=n(5),i=n(16),o=n(45),a=n(18),s=n(17),l=n(57),c=Object.assign;e.exports=!c||n(13)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=s(e),c=arguments.length,u=1,d=o.f,p=a.f;c>u;)for(var h,m=l(arguments[u++]),f=d?i(m).concat(d(m)):i(m),g=f.length,w=0;g>w;)h=f[w++],r&&!p.call(m,h)||(n[h]=m[h]);return n}:c},function(e,t,n){e.exports={default:n(111),__esModule:!0}},function(e,t,n){n(46),n(27),e.exports=n(115)},function(e,t,n){"use strict";var r=n(113),i=n(114),o=n(14),a=n(10);e.exports=n(52)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(61),i=n(2)("iterator"),o=n(14);e.exports=n(0).isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},function(e,t,n){n(46),n(27),e.exports=n(117)},function(e,t,n){var r=n(8),i=n(60);e.exports=n(0).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){"use strict";function r(e){var t=new a(e),n=o(a.prototype.request,t);return i.extend(n,a.prototype,t),i.extend(n,t),n}var i=n(1),o=n(64),a=n(119),s=n(70),l=n(67),c=r(l);c.Axios=a,c.create=function(e){return r(s(c.defaults,e))},c.Cancel=n(71),c.CancelToken=n(133),c.isCancel=n(66),c.all=function(e){return Promise.all(e)},c.spread=n(134),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new a,response:new a}}var i=n(1),o=n(65),a=n(120),s=n(121),l=n(70);r.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=l(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[s,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},r.prototype.getUri=function(e){return e=l(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";function r(){this.handlers=[]}var i=n(1);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var i=n(1),o=n(122),a=n(66),s=n(67);e.exports=function(e){return r(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return r(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(r(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(u===setTimeout)return setTimeout(e,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function o(e){if(d===clearTimeout)return clearTimeout(e);if((d===r||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){f&&h&&(f=!1,h.length?m=h.concat(m):g=-1,m.length&&s())}function s(){if(!f){var e=i(a);f=!0;for(var t=m.length;t;){for(h=m,m=[];++g<t;)h&&h[g].run();g=-1,t=m.length}h=null,f=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var u,d,p=e.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(e){u=n}try{d="function"==typeof clearTimeout?clearTimeout:r}catch(e){d=r}}();var h,m=[],f=!1,g=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];m.push(new l(e,t)),1!==m.length||f||i(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(69);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,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}},function(e,t,n){"use strict";var r=n(128),i=n(129);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(1),i=["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,o,a={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(i.setAttribute("href",t),t=i.href),i.setAttribute("href",t),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return t=e(window.location.href),function(n){var i=r.isString(n)?e(n):n;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.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)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,n){"use strict";function r(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 i(e),t(n.reason))})}var i=n(71);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";var r=n(31),i=n.n(r),o=n(3),a=n.n(o),s=n(136),l=n(137),c=n(138),u=wp.i18n.__,d=wp.element,p=d.Fragment,h=d.useState,m=d.useEffect,f=function(e){var t=u("Current Score","google-analytics-for-wordpress"),n=u("Try New Headline","google-analytics-for-wordpress"),r=h("current-score"),o=i()(r,2),d=o[0],f=o[1],g=function(){return f("current-score")},w=function(){return f("new-headline")},v=void 0!==e.analyzer.isNewData&&e.analyzer.isNewData;return m(function(){e.setAnalyzer({activeTab:d})},[d]),wp.element.createElement(p,null,wp.element.createElement("div",{className:"monsterinsights-inline-buttons"},wp.element.createElement("button",{onClick:g,className:a()("monsterinsights-switcher-button",{active:"current-score"===d})},t),wp.element.createElement("button",{onClick:w,className:a()("monsterinsights-switcher-button",{active:"new-headline"===d})},n)),"new-headline"===d?wp.element.createElement(l.a,{analyzer:e.analyzer,setAnalyzer:e.setAnalyzer}):wp.element.createElement(s.a,{analyzer:e.analyzer}),v?wp.element.createElement(c.a,{analyzer:e.analyzer}):"")};t.a=f},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=n(32),a=wp.i18n.__,s=wp.element.Fragment,l=wp.components,c=l.PanelBody,u=l.PanelRow,d=function(e){var t=e.analyzer.currentHeadlineData.sentence,n=a("Score","google-analytics-for-wordpress"),r=a("A good score is between 40 and 60. For best results, you should strive for 70 and above.","google-analytics-for-wordpress"),l=e.analyzer.currentHeadlineData.score,d=l<40?"red":l<=60?"orange":"green",p="red"===d?"#EB5757":"orange"===d?"#F2994A":"#1EC185";return wp.element.createElement(s,null,wp.element.createElement(c,{title:n},wp.element.createElement(u,null,wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-current-score-tab"},wp.element.createElement("h4",{className:"monsterinsights-headline-analyzer-current-title"},"“",t,"”"),wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-pie-chart-container"},wp.element.createElement("span",{className:i()("monsterinsights-headline-analyzer-current-score",d)},l),wp.element.createElement(o.a,{barScore:l,barColor:p})),wp.element.createElement("p",null,r)))))};t.a=d},function(e,t,n){"use strict";var r=n(51),i=n.n(r),o=n(63),a=n.n(o),s=wp.i18n.__,l=wp.element.Fragment,c=wp.components,u=c.PanelBody,d=c.PanelRow,p=c.TextControl,h=c.Button,m=function(e){var t=s("Try New Headline","google-analytics-for-wordpress"),n=s("Enter a different headline than your post title to see how it compares.","google-analytics-for-wordpress"),r=s("Analyze","google-analytics-for-wordpress"),o=void 0!==e.analyzer.newHeadline?e.analyzer.newHeadline:"",c=void 0!==e.analyzer.previousHeadlinesData?e.analyzer.previousHeadlinesData:[],m=!o,f=function(t){var n=t.trim();if(n){var r=new FormData;r.append("_ajax_nonce",monsterinsights_gutenberg_tool_vars.nonce),r.append("action","monsterinsights_gutenberg_headline_analyzer_get_results"),r.append("dataType","json"),r.append("q",n),a.a.post(monsterinsights_gutenberg_tool_vars.ajaxurl,r).then(function(t){e.setAnalyzer({newHeadlineData:t.data.data,headlineData:t.data.data,previousHeadlinesData:[e.analyzer.headlineData].concat(i()(c)),isNewData:!0})}).catch(function(t){e.setAnalyzer({isNewData:!1}),console.log(t)})}};return wp.element.createElement(l,null,wp.element.createElement(u,{title:t},wp.element.createElement(d,null,wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-new-tab"},wp.element.createElement("form",{onSubmit:function(e){e.preventDefault(),f(o)}},wp.element.createElement(p,{label:n,value:o,onChange:function(t){" "!==t&&e.setAnalyzer({newHeadline:t})},className:"monsterinsights-headline-analyzer-input-field"}),wp.element.createElement(h,{className:"monsterinsights-headline-analyzer-button",isPrimary:!0,onClick:function(){f(o)},disabled:m},r))))))};t.a=m},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=n(32),a=wp.i18n.__,s=wp.element.Fragment,l=wp.components,c=l.PanelBody,u=l.PanelRow,d=function(e){var t=e.analyzer.currentHeadlineData.sentence,n=a("New Score","google-analytics-for-wordpress"),r=a("A good score is between 40 and 60. For best results, you should strive for 70 and above.","google-analytics-for-wordpress"),l=a("Current Score","google-analytics-for-wordpress"),d=void 0!==e.analyzer.newHeadlineData?e.analyzer.newHeadlineData.sentence:"",p=void 0!==e.analyzer.newHeadlineData?e.analyzer.newHeadlineData.score:"",h=void 0!==e.analyzer.currentHeadlineData.score?e.analyzer.currentHeadlineData.score:"",m=p<40?"red":p<=60?"orange":"green",f="red"===m?"#EB5757":"orange"===m?"#F2994A":"#1EC185",g=h<40?"red-bg":h<=60?"orange-bg":"green-bg",w=Math.abs(p-h);return wp.element.createElement(s,null,wp.element.createElement(c,{title:n},wp.element.createElement(u,null,wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-new-score-panel"},wp.element.createElement("p",null,r),wp.element.createElement("h4",null,"“",d,"”"),wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-pie-chart-container"},wp.element.createElement("span",{className:i()("monsterinsights-headline-analyzer-new-score",m)},p),wp.element.createElement(o.a,{barScore:p,barColor:f})),wp.element.createElement("div",{className:"current-score"},wp.element.createElement("span",{className:i()("monsterinsights-headline-analyzer-score-difference",m)},p>h?"+ ":p===h?"":"- ",w),wp.element.createElement("h5",null,l),wp.element.createElement("span",{className:i()("monsterinsights-headline-analyzer-score",g)},h),wp.element.createElement("p",null,"“",t,"”"))))))};t.a=d},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=wp.i18n.__,a=wp.element.Fragment,s=wp.components,l=s.PanelBody,c=s.PanelRow,u=function(e){var t=o("Previous Scores","google-analytics-for-wordpress"),n="undefined"!==e.analyzer.previousHeadlinesData?e.analyzer.previousHeadlinesData:[],r=document.querySelector(".edit-post-sidebar"),s="undefined"!==e.analyzer.activeTab?e.analyzer.activeTab:"current-score",u="current-score"===s?390:300,d=function(t){e.setAnalyzer({newHeadlineData:n[t],headlineData:n[t],newHeadline:n[t].sentence,isNewData:!0}),r&&(r.scrollTop=u)};return wp.element.createElement(a,null,wp.element.createElement(l,{title:t},wp.element.createElement(c,null,wp.element.createElement("ul",{className:"monsterinsights-headline-analyzer-previous-scores"},n.map(function(e,t){if(t<10&&(void 0!==e.sentence||void 0!==e.score)){var n=e.score<40?"red-bg":e.score<=60?"orange-bg":"green-bg";return wp.element.createElement("li",{key:t,onClick:function(){return d(t)}},wp.element.createElement("span",{className:i()("monsterinsights-headline-analyzer-score",n)},e.score),e.sentence)}})))))};t.a=u},function(e,t,n){"use strict";var r=n(19),i=n(3),o=n.n(i),a=n(141),s=wp.i18n.__,l=wp.element.Fragment,c=wp.components,u=c.PanelBody,d=c.PanelRow,p=function(e){var t=s("Word Balance","google-analytics-for-wordpress"),n=s("Compare the percentages of your results to the goal for each category and adjust as necessary.","google-analytics-for-wordpress"),i=e.data.score<40?"red":e.data.score<=60?"orange":"green",c=(e.data.score<40||e.data.score,0===e.data.result.common_words_per?"red":e.data.result.common_words_per<.2?"orange":"green"),p=0===e.data.result.common_words_per?"red-bg":e.data.result.common_words_per<.2?"orange-bg":"green-bg",h=s("Your headline would be more likely to get clicks if it had more uncommon words.","google-analytics-for-wordpress"),m=e.data.result.common_words_per<.2?h:s("Headlines with 20-30% common words are more likely to get clicks.","google-analytics-for-wordpress"),f=0===e.data.result.uncommon_words_per?"red":e.data.result.uncommon_words_per<.1?"orange":"green",g=0===e.data.result.uncommon_words_per?"red-bg":e.data.result.uncommon_words_per<.1?"orange-bg":"green-bg",w=e.data.result.uncommon_words_per<.1?h:s("Headlines with uncommon words are more likely to get clicks.","google-analytics-for-wordpress"),v=0===e.data.result.emotion_words_per?"red":e.data.result.emotion_words_per<.1?"orange":"green",y=0===e.data.result.emotion_words_per?"red-bg":e.data.result.emotion_words_per<.1?"orange-bg":"green-bg",b=s("Emotionally triggered headlines are likely to drive more clicks.","google-analytics-for-wordpress"),S=0===e.data.result.power_words.length?"orange":"green",E=0===e.data.result.power_words.length?"orange":"green-bg",_=s("Headlines with Power Words are more likely to get clicks.","google-analytics-for-wordpress"),C=s("Common Words","google-analytics-for-wordpress"),x=s("20-30%","google-analytics-for-wordpress"),k=s("Uncommon Words","google-analytics-for-wordpress"),O=s("10-20%","google-analytics-for-wordpress"),T=s("Emotional Words","google-analytics-for-wordpress"),N=s("10-15%","google-analytics-for-wordpress"),M=s("Power Words","google-analytics-for-wordpress"),j=s("At least one","google-analytics-for-wordpress");return wp.element.createElement(l,null,wp.element.createElement(u,{title:t,className:o()("monsterinsights-headline-analyzer-panel-word-balance","monsterinsights-headline-analyzer-panel-has-icon",i),icon:"green"===i?r.a.check:r.a.warning},wp.element.createElement(d,null,wp.element.createElement("h4",null,e.data.result.word_balance),wp.element.createElement("p",null,n),wp.element.createElement(a.a,{title:C,value:Math.round(100*e.data.result.common_words_per),goalValue:x,words:e.data.result.common_words,guideLine:m,classOnScore:c,classOnScoreBg:p}),wp.element.createElement(a.a,{title:k,value:Math.round(100*e.data.result.uncommon_words_per),goalValue:O,words:e.data.result.uncommon_words,guideLine:w,classOnScore:f,classOnScoreBg:g}),wp.element.createElement(a.a,{title:T,value:Math.round(100*e.data.result.emotion_words_per),goalValue:N,words:e.data.result.emotion_words,guideLine:b,classOnScore:v,classOnScoreBg:y}),wp.element.createElement(a.a,{title:M,value:Math.round(100*e.data.result.power_words_per),goalValue:j,words:e.data.result.power_words,guideLine:_,classOnScore:S,classOnScoreBg:E}))))};t.a=p},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=wp.i18n.__,a=function(e){var t=o("Goal: ","google-analytics-for-wordpress"),n={width:e.value+"%"};return wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-words-block"},wp.element.createElement("h5",null,e.title),wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-words-block-data"},wp.element.createElement("span",{className:i()("monsterinsights-headline-analyzer-words-block-percentage",e.classOnScore)},e.value,"%"),wp.element.createElement("span",{className:"monsterinsights-headline-analyzer-words-block-goal"},wp.element.createElement("strong",null,t),e.goalValue),wp.element.createElement("span",{className:"monsterinsights-headline-analyzer-words-block-progressbar"},wp.element.createElement("span",{className:"monsterinsights-headline-analyzer-progressbar-bg"}),wp.element.createElement("span",{className:i()("monsterinsights-headline-analyzer-progressbar-part",e.classOnScoreBg),style:n}))),wp.element.createElement("ul",{className:"monsterinsights-headline-analyzer-words-tag-list"},e.words.length>0?e.words.map(function(e,t){return wp.element.createElement("li",{key:t},e)}):""),wp.element.createElement("p",{className:"monsterinsights-headline-analyzer-words-guideline"},e.guideLine))};t.a=a},function(e,t,n){"use strict";var r=n(19),i=n(3),o=n.n(i),a=wp.i18n.__,s=wp.element.Fragment,l=wp.components,c=l.PanelBody,u=l.PanelRow,d=function(e){var t=a("Your headline has a neutral sentiment.","google-analytics-for-wordpress"),n=a("Headlines that are strongly positive or negative tend to get more engagement then neutral ones.","google-analytics-for-wordpress"),i=a("Your headline has a positive sentiment.","google-analytics-for-wordpress"),l=a("Positive headlines tend to get better engagement than neutral or negative ones.","google-analytics-for-wordpress"),d=a("Your headline has a negative sentiment.","google-analytics-for-wordpress"),p=a("Negative headlines are attention-grabbing and tend to perform better than neutral ones.","google-analytics-for-wordpress"),h=a("Sentiment","google-analytics-for-wordpress"),m="neu"===e.data.result.sentiment?a("Neutral","google-analytics-for-wordpress"):"pos"===e.data.result.sentiment?a("Positive","google-analytics-for-wordpress"):a("Negative","google-analytics-for-wordpress"),f="neu"===e.data.result.sentiment?r.a.neutral:"pos"===e.data.result.sentiment?r.a.smile:r.a.negative,g="neu"===e.data.result.sentiment?"orange":"pos"===e.data.result.sentiment?"green":"red";return wp.element.createElement(s,null,wp.element.createElement(c,{title:h,className:o()("monsterinsights-headline-analyzer-panel-sentiment","monsterinsights-headline-analyzer-panel-has-icon",g),icon:f},wp.element.createElement(u,null,wp.element.createElement("h4",null,m),"neu"===e.data.result.sentiment?wp.element.createElement("p",null,t," ",wp.element.createElement("br",null),wp.element.createElement("br",null)," ",n):"","pos"===e.data.result.sentiment?wp.element.createElement("p",null,i," ",wp.element.createElement("br",null),wp.element.createElement("br",null)," ",l):"","neg"===e.data.result.sentiment?wp.element.createElement("p",null,d," ",wp.element.createElement("br",null),wp.element.createElement("br",null)," ",p):"")))};t.a=d},function(e,t,n){"use strict";var r=wp.i18n,i=r.__,o=r.sprintf,a=wp.element.Fragment,s=wp.components,l=s.PanelBody,c=s.PanelRow,u=function(e){var t=e.data.result.headline_types.join(", "),n=i("Headline Type","google-analytics-for-wordpress"),r=wp.element.createElement("span",{className:"monsterinsights-headline-analyzer-panel-types-title"},n,wp.element.createElement("span",null,t)),s=o(i("Headlines that are lists and how-to get more engagement on average than other types of headlines. %1sRead more about %2sdifferent types of headlines here.%3s","google-analytics-for-wordpress"),"<br/><br/>",'<a href="https://optinmonster.com/why-these-21-headlines-went-viral-and-how-you-can-copy-their-success/" target="_blank" className="monsterinsights-headline-analyzer-link">',"</a>");return wp.element.createElement(a,null,wp.element.createElement(l,{title:r,className:"monsterinsights-headline-analyzer-panel-types"},wp.element.createElement(c,null,wp.element.createElement("h4",null,t),wp.element.createElement("p",{dangerouslySetInnerHTML:{__html:s}}))))};t.a=u},function(e,t,n){"use strict";var r=n(19),i=n(3),o=n.n(i),a=n(32),s=wp.i18n.__,l=wp.element.Fragment,c=wp.components,u=c.PanelBody,d=c.PanelRow,p=function(e){var t=s("Character Count","google-analytics-for-wordpress"),n=e.data.result.length,i=n>=66?100:Math.round(1.51*n),c="",p="",h="#1EC185",m="";return n<=19?(c="red",h="#EB5757"):n>=20&&n<=34?(c="orange",h="#F2994A"):n>=35&&n<=66?(c="green",h="#1EC185"):n>=67&&n<=79?(c="orange",h="#F2994A"):n>=80&&(c="red",h="#EB5757"),n<=34?(p=s("Too Short","google-analytics-for-wordpress"),m=s("You have space to add more keywords and power words to boost your rankings and click-through rate.","google-analytics-for-wordpress")):n>=35&&n<=66?(p=s("Good","google-analytics-for-wordpress"),m=s("Headlines that are about 55 characters long will display fully in search results and tend to get more clicks.","google-analytics-for-wordpress")):n>=67&&(p=s("Too Long","google-analytics-for-wordpress"),m=s("At this length, it will get cut off in search results. Try reducing it to about 55 characters.","google-analytics-for-wordpress")),wp.element.createElement(l,null,wp.element.createElement(u,{title:t,className:o()("monsterinsights-headline-analyzer-panel-character-count","monsterinsights-headline-analyzer-panel-has-icon",c),icon:"green"===c?r.a.check:r.a.warning},wp.element.createElement(d,null,wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-pie-chart-container"},wp.element.createElement("span",{className:o()("monsterinsights-headline-analyzer-character-length",c)},n),wp.element.createElement(a.a,{barScore:i,barColor:h}),wp.element.createElement("span",{className:"monsterinsights-headline-analyzer-status-on-character-length"},p)),wp.element.createElement("p",null,m))))};t.a=p},function(e,t,n){"use strict";var r=n(19),i=n(3),o=n.n(i),a=n(32),s=wp.i18n.__,l=wp.element.Fragment,c=wp.components,u=c.PanelBody,d=c.PanelRow,p=function(e){var t=s("Word Count","google-analytics-for-wordpress"),n=e.data.result.word_count,i=n>=10?100:Math.round(10*n),c="",p="",h="#1EC185",m="";return n<=4?(c="red",h="#EB5757",p=s("Not Enough Words","google-analytics-for-wordpress"),m=s("Your headline doesn’t use enough words. You have more space to add keywords and power words to improve your SEO and get more engagement.","google-analytics-for-wordpress")):n>=5&&n<=9?(c="green",h="#1EC185",p=s("Good","google-analytics-for-wordpress"),m=s("Your headline has the right amount of words. Headlines are more likely to be clicked on in search results if they have about 6 words.","google-analytics-for-wordpress")):n>=10&&n<=11?(c="orange",h="#F2994A",p=s("Reduce Word Count","google-analytics-for-wordpress")):(c="red",h="#EB5757",p=s("Too Many Words","google-analytics-for-wordpress"),m=s("Your headline has too many words. Long headlines will get cut off in search results and won’t get as many clicks.","google-analytics-for-wordpress")),wp.element.createElement(l,null,wp.element.createElement(u,{title:t,className:o()("monsterinsights-headline-analyzer-panel-word-count","monsterinsights-headline-analyzer-panel-has-icon",c),icon:"green"===c?r.a.check:r.a.warning},wp.element.createElement(d,null,wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-pie-chart-container"},wp.element.createElement("span",{className:o()("monsterinsights-headline-analyzer-word-length",c)},n),wp.element.createElement(a.a,{barScore:i,barColor:h}),wp.element.createElement("span",{className:"monsterinsights-headline-analyzer-status-on-word-length"},p)),wp.element.createElement("p",null,m))))};t.a=p},function(e,t,n){"use strict";var r=wp.i18n.__,i=wp.element.Fragment,o=wp.components,a=o.PanelBody,s=o.PanelRow,l=function(e){var t=r("Beginning & Ending Words","google-analytics-for-wordpress"),n=e.data.result.input_array_orig,o=r("Most readers only look at the first and last 3 words of a headline before deciding whether to click.","google-analytics-for-wordpress"),l="",c="";return n.length>=6?(l=n.slice(0,3).join(" "),c=n.slice(-3).join(" ")):n.length>3&&n.length<=5?(l=n.slice(0,3).join(" "),c=n.slice(3).join(" ")):l=n.slice(0,3).join(" "),wp.element.createElement(i,null,wp.element.createElement(a,{title:t,className:"monsterinsights-headline-analyzer-panel-beginning-ending-words"},wp.element.createElement(s,null,l?wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-words beginning"},wp.element.createElement("span",null,l)):"",c?wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-words ending"},wp.element.createElement("span",null,c)):"",wp.element.createElement("p",{className:"monsterinsights-headline-analyzer-words-guideline"},o))))};t.a=l},function(e,t,n){"use strict";var r=n(30),i=n.n(r),o=wp.i18n.__,a=wp.element.Fragment,s=wp.components,l=s.PanelBody,c=s.PanelRow,u=wp.data.select,d=function(e){var t=o("Search Preview","google-analytics-for-wordpress"),n=o("Here is how your headline will look like in google search results page.","google-analytics-for-wordpress"),r=u("core/editor").getPermalink(),s={href:r};return wp.element.createElement(a,null,wp.element.createElement(l,{title:t,className:"monsterinsights-headline-analyzer-panel-search-preview"},wp.element.createElement(c,null,wp.element.createElement("h4",null,e.data.sentence),wp.element.createElement("p",{className:"monsterinsights-headline-analyzer-post-url"},wp.element.createElement("a",i()({},s,{target:"_blank"}),r)),wp.element.createElement("p",null,n))))};t.a=d},function(e,t,n){"use strict";var r=n(31),i=n.n(r),o=n(149),a=n(150),s=wp.components.ToggleControl,l=wp.plugins.registerPlugin,c=wp.data,u=c.dispatch,d=c.select,p=wp.i18n.__,h=wp.editPost.PluginDocumentSettingPanel,m=wp.element,f=m.useState,g=m.Fragment;l("monsterinsights-exclude-page-tracking",{render:function(){var e=window.monsterinsights_gutenberg_tool_vars;if(!e||"1"!==e.supports_custom_fields||"1"!==e.public_post_type)return wp.element.createElement(g,null);var t=d("core/editor").getEditedPostAttribute("meta")||[];t._mi_skip_tracking||(t._mi_skip_tracking=!1);var n=f(!!t._mi_skip_tracking),r=i()(n,2),l=r[0],c=r[1];return wp.element.createElement(h,{name:"monsterinsights-skip-tracking",title:"MonsterInsights",className:"monsterinsights-skip-tracking-wrapper",icon:"mi"},wp.element.createElement(s,{checked:l,help:p("Toggle to prevent Google Analytics from tracking this page.","google-analytics-for-wordpress"),label:p("Exclude page from Google Analytics Tracking","google-analytics-for-wordpress"),disabled:"lite"===e.license_type,onChange:function(e){c(!!e),u("core/editor").editPost({meta:{_mi_skip_tracking:e}})}}),wp.element.createElement(a.a,{addonInstalled:e.page_insights_addon_active,hidden:l}),wp.element.createElement(o.a,{license:e.license_type,upgrade_url:e.upgrade_url}))}})},function(e,t,n){"use strict";var r=wp.i18n.__,i=wp.element.Fragment,o=function(e){if("lite"!==e.license)return wp.element.createElement(i,null);var t={description:r("This is a PRO feature.","google-analytics-for-wordpress"),upgrade:r("Upgrade","google-analytics-for-wordpress")};return wp.element.createElement(i,null,wp.element.createElement("div",{className:"monsterinsights-metabox-pro-badge"},wp.element.createElement("span",null,wp.element.createElement("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M6.57617 1.08203L4.92578 4.45898L1.19336 4.99219C0.533203 5.09375 0.279297 5.90625 0.761719 6.38867L3.42773 9.00391L2.79297 12.6855C2.69141 13.3457 3.40234 13.8535 3.98633 13.5488L7.3125 11.7969L10.6133 13.5488C11.1973 13.8535 11.9082 13.3457 11.8066 12.6855L11.1719 9.00391L13.8379 6.38867C14.3203 5.90625 14.0664 5.09375 13.4062 4.99219L9.69922 4.45898L8.02344 1.08203C7.74414 0.498047 6.88086 0.472656 6.57617 1.08203Z",fill:"#31862D"})),t.description),wp.element.createElement("div",{className:"monsterinsights-metabox-pro-badge-upgrade"},wp.element.createElement("a",{href:e.upgrade_url,target:"_blank",rel:"noopener"},t.upgrade))))};t.a=o},function(e,t,n){"use strict";var r=n(151),i=n.n(r),o=n(62),a=n.n(o),s=n(31),l=n.n(s),c=n(20),u=n.n(c),d=n(21),p=n.n(d),h=n(22),m=n.n(h),f=n(23),g=n.n(f),w=n(24),v=n.n(w),y=n(179),b=n(25),S=n(196),E=n(197),_=wp.i18n.__,C=function(e){function t(){p()(this,t);var e=g()(this,(t.__proto__||u()(t)).call(this));return e.showPageInsightsClick=function(){e.setState({showBtnClicked:!0})},e.hidePageInsightsClick=function(){e.setState({showBtnClicked:!1})},e.tabclick=function(t){var n=e.state.tabs,r=!0,o=!1,s=void 0;try{for(var c,u=a()(i()(n));!(r=(c=u.next()).done);r=!0){var d=c.value,p=l()(d,2),h=p[0];p[1];n[h]=h===t}}catch(e){o=!0,s=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw s}}e.setState({tabs:n})},e.state={showBtnClicked:!1,tabs:{last30days:!0,yesterday:!1}},e.texts={last30days:_("Last 30 days","google-analytics-for-wordpress"),yesterday:_("Yesterday","google-analytics-for-wordpress"),bouncerate:_("Bounce Rate","google-analytics-for-wordpress"),timeonpage:_("Time On Page","google-analytics-for-wordpress"),loadingtime:_("Load Time","google-analytics-for-wordpress"),entrances:_("Entrances","google-analytics-for-wordpress"),pageviews:_("Page Views","google-analytics-for-wordpress"),exits:_("Exits","google-analytics-for-wordpress")},e}return v()(t,e),m()(t,[{key:"render",value:function(){return this.props.hidden?wp.element.createElement(Fragment,null):wp.element.createElement("div",{className:"monsterinsights-metabox lite",id:"monsterinsights-metabox-page-insights"},!this.state.showBtnClicked&&wp.element.createElement(S.a,{onClick:this.showPageInsightsClick}),wp.element.createElement("div",{id:"monsterinsights-page-insights-content",className:this.state.showBtnClicked?"active":""},wp.element.createElement("div",{className:"monsterinsights-page-insights__tabs"},wp.element.createElement(y.a,{text:this.texts.last30days,tab:"tab-last-30-days-content",active:this.state.tabs.last30days,onClick:this.tabclick,interval:"last30days"}),wp.element.createElement(y.a,{text:this.texts.yesterday,tab:"tab-yesterday-content",active:this.state.tabs.yesterday,onClick:this.tabclick,interval:"yesterday"})),wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content"},wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab active",id:"tab-last-30-days-content"},wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-items"},wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item"},wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item__result"},wp.element.createElement("span",null,"53.40%")),wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item__title"},this.texts.bouncerate)),wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item"},wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item__result"},wp.element.createElement("span",null,"1m 43s")),wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item__title"},this.texts.timeonpage)),wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item"},wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item__result"},wp.element.createElement("span",null,"3.9s")),wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item__title"},this.texts.loadingtime)),wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item"},wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item__result"},wp.element.createElement("span",null,"19056")),wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item__title"},this.texts.entrances)),wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item"},wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item__result"},wp.element.createElement("span",null,"26558")),wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item__title"},this.texts.pageviews)),wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item"},wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item__result"},wp.element.createElement("span",null,"13428")),wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item__title"},this.texts.exits)))))),this.state.showBtnClicked&&wp.element.createElement(E.a,{onClick:this.hidePageInsightsClick}))}}]),t}(b.a);t.a=C},function(e,t,n){e.exports={default:n(152),__esModule:!0}},function(e,t,n){n(153),e.exports=n(0).Object.entries},function(e,t,n){var r=n(4),i=n(154)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){var r=n(5),i=n(16),o=n(10),a=n(18).f;e.exports=function(e){return function(t){for(var n,s=o(t),l=i(s),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}}},function(e,t,n){n(156),e.exports=n(0).Object.getPrototypeOf},function(e,t,n){var r=n(17),i=n(59);n(157)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(4),i=n(0),o=n(13);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(e,t,n){n(159);var r=n(0).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(4);r(r.S+r.F*!n(5),"Object",{defineProperty:n(7).f})},function(e,t,n){e.exports={default:n(161),__esModule:!0}},function(e,t,n){n(27),n(46),e.exports=n(47).f("iterator")},function(e,t,n){e.exports={default:n(163),__esModule:!0}},function(e,t,n){n(164),n(169),n(170),n(171),e.exports=n(0).Symbol},function(e,t,n){"use strict";var r=n(6),i=n(9),o=n(5),a=n(4),s=n(55),l=n(165).KEY,c=n(13),u=n(42),d=n(44),p=n(29),h=n(2),m=n(47),f=n(48),g=n(166),w=n(167),v=n(8),y=n(12),b=n(17),S=n(10),E=n(38),_=n(15),C=n(39),x=n(168),k=n(75),O=n(45),T=n(7),N=n(16),M=k.f,j=T.f,P=x.f,D=r.Symbol,F=r.JSON,A=F&&F.stringify,L=h("_hidden"),B=h("toPrimitive"),z={}.propertyIsEnumerable,R=u("symbol-registry"),H=u("symbols"),I=u("op-symbols"),q=Object.prototype,V="function"==typeof D&&!!O.f,W=r.QObject,Z=!W||!W.prototype||!W.prototype.findChild,U=o&&c(function(){return 7!=C(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=M(q,t);r&&delete q[t],j(e,t,n),r&&e!==q&&j(q,t,r)}:j,Y=function(e){var t=H[e]=C(D.prototype);return t._k=e,t},X=V&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},G=function(e,t,n){return e===q&&G(I,t,n),v(e),t=E(t,!0),v(n),i(H,t)?(n.enumerable?(i(e,L)&&e[L][t]&&(e[L][t]=!1),n=C(n,{enumerable:_(0,!1)})):(i(e,L)||j(e,L,_(1,{})),e[L][t]=!0),U(e,t,n)):j(e,t,n)},K=function(e,t){v(e);for(var n,r=g(t=S(t)),i=0,o=r.length;o>i;)G(e,n=r[i++],t[n]);return e},$=function(e,t){return void 0===t?C(e):K(C(e),t)},J=function(e){var t=z.call(this,e=E(e,!0));return!(this===q&&i(H,e)&&!i(I,e))&&(!(t||!i(this,e)||!i(H,e)||i(this,L)&&this[L][e])||t)},Q=function(e,t){if(e=S(e),t=E(t,!0),e!==q||!i(H,t)||i(I,t)){var n=M(e,t);return!n||!i(H,t)||i(e,L)&&e[L][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=P(S(e)),r=[],o=0;n.length>o;)i(H,t=n[o++])||t==L||t==l||r.push(t);return r},te=function(e){for(var t,n=e===q,r=P(n?I:S(e)),o=[],a=0;r.length>a;)!i(H,t=r[a++])||n&&!i(q,t)||o.push(H[t]);return o};V||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===q&&t.call(I,n),i(this,L)&&i(this[L],e)&&(this[L][e]=!1),U(this,e,_(1,n))};return o&&Z&&U(q,e,{configurable:!0,set:t}),Y(e)},s(D.prototype,"toString",function(){return this._k}),k.f=Q,T.f=G,n(74).f=x.f=ee,n(18).f=J,O.f=te,o&&!n(28)&&s(q,"propertyIsEnumerable",J,!0),m.f=function(e){return Y(h(e))}),a(a.G+a.W+a.F*!V,{Symbol:D});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)h(ne[re++]);for(var ie=N(h.store),oe=0;ie.length>oe;)f(ie[oe++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return i(R,e+="")?R[e]:R[e]=D(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in R)if(R[t]===e)return t},useSetter:function(){Z=!0},useSimple:function(){Z=!1}}),a(a.S+a.F*!V,"Object",{create:$,defineProperty:G,defineProperties:K,getOwnPropertyDescriptor:Q,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=c(function(){O.f(1)});a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return O.f(b(e))}}),F&&a(a.S+a.F*(!V||c(function(){var e=D();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(y(t)||void 0!==e)&&!X(e))return w(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!X(t))return t}),r[1]=t,A.apply(F,r)}}),D.prototype[B]||n(11)(D.prototype,B,D.prototype.valueOf),d(D,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(e,t,n){var r=n(29)("meta"),i=n(12),o=n(9),a=n(7).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(13)(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},p=function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},h=function(e){return c&&m.NEED&&l(e)&&!o(e,r)&&u(e),e},m=e.exports={KEY:r,NEED:!1,fastKey:d,getWeak:p,onFreeze:h}},function(e,t,n){var r=n(16),i=n(45),o=n(18);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),l=o.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){var r=n(40);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(10),i=n(74).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},function(e,t){},function(e,t,n){n(48)("asyncIterator")},function(e,t,n){n(48)("observable")},function(e,t,n){e.exports={default:n(173),__esModule:!0}},function(e,t,n){n(174),e.exports=n(0).Object.setPrototypeOf},function(e,t,n){var r=n(4);r(r.S,"Object",{setPrototypeOf:n(175).set})},function(e,t,n){var r=n(12),i=n(8),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(37)(Function.call,n(75).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){e.exports={default:n(177),__esModule:!0}},function(e,t,n){n(178);var r=n(0).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(4);r(r.S,"Object",{create:n(39)})},function(e,t,n){"use strict";var r=n(20),i=n.n(r),o=n(21),a=n.n(o),s=n(22),l=n.n(s),c=n(23),u=n.n(c),d=n(24),p=n.n(d),h=n(25),m=(wp.i18n.__,function(e){function t(e){a()(this,t);var n=u()(this,(t.__proto__||i()(t)).call(this,e));return n.handleClick=function(){n.props.onClick(n.props.interval)},n}return p()(t,e),l()(t,[{key:"render",value:function(){return wp.element.createElement("a",{href:"#",className:"monsterinsights-page-insights__tabs-tab "+(this.props.active?"active":""),"data-tab":"this.props.tab",onClick:this.handleClick},this.props.text)}}]),t}(h.a));t.a=m},function(e,t,n){"use strict";n(181),n(78),n(79),n(33)},function(e,t,n){"use strict";function r(e,t){return Object(i.a)(e)||Object(o.a)(e,t)||Object(a.a)(e,t)||Object(s.a)()}t.a=r;var i=n(182),o=n(183),a=n(76),s=n(184)},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}t.a=r},function(e,t,n){"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}t.a=r},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.")}t.a=r},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return Object(i.a)(e)}t.a=r;var i=n(77)},function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}t.a=r},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.")}t.a=r},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}t.a=r},function(e,t,n){"use strict";var r=n(190);n.n(r)},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";var r=n(26);n.n(r)},function(e,t,n){"use strict"},function(e,t,n){"use strict";var r=(n(34),n(49),n(78),n(26)),i=(n.n(r),n(194),n(33)),o=(n(81),Object(i.e)(void 0));o.Provider,o.Consumer,Object(i.g)(function(){return null}),new Set(["string","boolean","number"]),new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"])},function(e,t,n){"use strict";function r(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&amp;")}function i(e){return e.replace(/"/g,"&quot;")}function o(e){return e.replace(/</g,"&lt;")}function a(e){return Object(c.a)(i(r(e)))}function s(e){return o(r(e))}function l(e){return!u.test(e)}t.a=a,t.b=s,t.c=l;var c=n(195),u=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/},function(e,t,n){"use strict";function r(e){return e.replace(/>/g,"&gt;")}t.a=r},function(e,t,n){"use strict";var r=n(20),i=n.n(r),o=n(21),a=n.n(o),s=n(22),l=n.n(s),c=n(23),u=n.n(c),d=n(24),p=n.n(d),h=n(25),m=wp.i18n.__,f=function(e){function t(){a()(this,t);var e=u()(this,(t.__proto__||i()(t)).call(this));return e.state={},e.btn_show_text=m("Show Page Insights","google-analytics-for-wordpress"),e}return p()(t,e),l()(t,[{key:"render",value:function(){return wp.element.createElement("a",{className:"button",href:"#",id:"monsterinsights_show_page_insights",onClick:this.props.onClick},this.btn_show_text)}}]),t}(h.a);t.a=f},function(e,t,n){"use strict";var r=n(20),i=n.n(r),o=n(21),a=n.n(o),s=n(22),l=n.n(s),c=n(23),u=n.n(c),d=n(24),p=n.n(d),h=n(25),m=wp.i18n.__,f=function(e){function t(){a()(this,t);var e=u()(this,(t.__proto__||i()(t)).call(this));return e.state={},e.btn_text=m("Hide Page Insights","google-analytics-for-wordpress"),e}return p()(t,e),l()(t,[{key:"render",value:function(){return wp.element.createElement("a",{className:"button",href:"#",id:"monsterinsights_hide_page_insights",onClick:this.props.onClick},this.btn_text)}}]),t}(h.a);t.a=f},function(e,t,n){"use strict";n(199),n(206)},function(e,t,n){"use strict";var r=n(82),i=n.n(r),o=n(83),a=n.n(o),s=n(30),l=n.n(s),c=n(202),u=n(84),d=wp.i18n.__,p=wp.blocks.registerBlockType,h=wp,m=h.apiFetch,f=wp.data,g=f.registerStore,w=f.withSelect,v=wp.blockEditor.InspectorControls,y=wp.components,b=y.PanelBody,S=y.PanelRow,E=y.TextControl,_=y.ColorPalette,C=y.RangeControl,x=window.monsterinsights_gutenberg_tool_vars,k={setThemes:function(e){return{type:"SET_THEMES",themes:e}},receiveThemes:function(e){return{type:"RECEIVE_THEMES",path:e}}};g("monsterinsights/v1/popular-posts/inline",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{themes:{}},t=arguments[1];switch(t.type){case"SET_THEMES":return l()({},e,{themes:t.themes})}return e},actions:k,selectors:{receiveThemes:function(e){return e.themes}},controls:{RECEIVE_THEMES:function(e){return m({path:e.path})}},resolvers:{receiveThemes:a.a.mark(function e(t){var n,r;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k.receiveThemes("/monsterinsights/v1/popular-posts/themes/inline");case 2:if(n=e.sent,void 0===n.themes){e.next=6;break}for(r in n.themes)n.themes.hasOwnProperty(r)&&(n.themes[r].value=r);return e.abrupt("return",k.setThemes(n));case 6:case"end":return e.stop()}},e,this)})}}),p("monsterinsights/popular-posts-inline",{title:d("Inline Popular Posts","google-analytics-for-wordpress"),description:d("Add inline popular posts from MonsterInsights","google-analytics-for-wordpress"),category:"widgets",icon:c.a.inlinepop,keywords:[d("Popular","google-analytics-for-wordpress"),d("Posts","google-analytics-for-wordpress"),d("Inline","google-analytics-for-wordpress"),"MonsterInsights"],example:{},attributes:{theme:{type:"string"},title_size:{type:"number"},title_color:{type:"string"},label_color:{type:"string"},label_text:{type:"string"},label_background:{type:"string"},background_color:{type:"string"},background_border:{type:"string"},icon_background:{type:"string"},icon_color:{type:"string"},border_color:{type:"string"},border_color2:{type:"string"}},edit:w(function(e){return{themes:e("monsterinsights/v1/popular-posts/inline").receiveThemes()}})(function(e){var t=e.attributes,n=t.theme,r=(t.title_size,t.title_color,t.label_color,t.label_text,t.label_background,t.background_color,t.background_border,t.icon_background,t.icon_color,t.border_color,t.border_color2,e.themes),o=e.setAttributes,a=[{name:"pink",color:"#F58EA8"},{name:"red",color:"#CD3034"},{name:"orange",color:"#FD6A21"},{name:"yellow",color:"#FBB82B"},{name:"green",color:"#7FDBB6"},{name:"green",color:"#21CF86"},{name:"blue",color:"#91D2FA"},{name:"blue",color:"#1B95E0"},{name:"purple",color:"#9A57DD"},{name:"gray",color:"#EEEEEE"},{name:"gray",color:"#ACB8C3"},{name:"black",color:"#000000"}],s=void 0!==r.themes?r.themes:{},l=void 0===e.attributes.theme?r.selected:n,p=void 0!==l&&void 0!==s[l]?s[l]:{},h=void 0!==p.styles?p.styles:{},m={};for(var f in h)if(h.hasOwnProperty(f))for(var g in h[f])if(h[f].hasOwnProperty(g)){var w=f+"_"+g;void 0===e.attributes[w]?m[w]=h[f][g]:m[w]=e.attributes[w]}var y=function(e,t){var n=m[t];return wp.element.createElement(C,{key:"monsterinsights-popular-posts-input"+t,label:e,value:parseInt(n),min:1,max:100,onChange:function(e){return o(i()({},t,""===e?"":parseInt(e)))}})},k=function(e,t){var n=m[t];return wp.element.createElement(E,{key:"monsterinsights-popular-posts-input"+t,label:e,type:"text",value:n,onChange:function(e){return o(i()({},t,e))}})},O=function(e,t){var n=m[t];return[wp.element.createElement("label",{key:"monsterinsights-popular-posts-label"+t},e),wp.element.createElement(_,{key:"monsterinsights-popular-posts-input"+t,value:n,colors:a,onChange:function(e){o(i()({},t,e))}})]};return[wp.element.createElement(v,{key:"monsterinsights-popular-posts-inline-inspector-controls"},wp.element.createElement(b,{title:d("Theme","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-inline-theme"},wp.element.createElement(S,{key:"monsterinsights-popular-posts-inline-theme-row"},wp.element.createElement(u.a,{id:"monsterinsights-popular-posts-inline-theme",options:s,selected:l,icons:c.a,onChange:function(e){o({theme:e})}}))),function(){if(void 0!==h.title){var e=[];return void 0!==h.title.size&&e.push(y(d("Title Font Size","google-analytics-for-wordpress"),"title_size")),void 0!==h.title.color&&e.push(O(d("Title Color","google-analytics-for-wordpress"),"title_color")),wp.element.createElement(b,{title:d("Title Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-inline-title"},e)}}(),function(){if(void 0!==h.label){var e=[];return void 0!==h.label.text&&e.push(k(d("Label Text","google-analytics-for-wordpress"),"label_text")),void 0!==h.label.color&&e.push(O(d("Label Color","google-analytics-for-wordpress"),"label_color")),void 0!==h.label.background&&e.push(O(d("Label Background","google-analytics-for-wordpress"),"label_background")),wp.element.createElement(b,{title:d("Label Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-inline-label"}," ",e," ")}}(),function(){var e=[];if(void 0!==h.border&&void 0!==h.border.color&&e.push(O(d("Border Color","google-analytics-for-wordpress"),"border_color")),void 0!==h.border&&void 0!==h.border.color2&&e.push(O(d("Bottom Border Color","google-analytics-for-wordpress"),"border_color2")),void 0!==h.background&&void 0!==h.background.border&&e.push(O(d("Border Color","google-analytics-for-wordpress"),"background_border")),0!==e.length)return wp.element.createElement(b,{title:d("Border Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-inline-border"}," ",e," ")}(),function(){if(void 0!==h.background&&void 0!==h.background.color){var e=[];return void 0!==h.background.color&&e.push(O(d("Background Color","google-analytics-for-wordpress"),"background_color")),wp.element.createElement(b,{title:d("Background Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-inline-background"}," ",e," ")}}(),function(){if(void 0!==h.icon){var e=[];return void 0!==h.icon.color&&e.push(O(d("Icon Color","google-analytics-for-wordpress"),"icon_color")),void 0!==h.icon.background&&e.push(O(d("Icon Background Color","google-analytics-for-wordpress"),"icon_background")),wp.element.createElement(b,{title:d("Icon Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-inline-icon"}," ",e," ")}}()),wp.element.createElement("div",{key:"monsterinsights-popular-posts-inline-preview"},wp.element.createElement("div",{className:"monsterinsights-inline-popular-posts-widget monsterinsights-inline-popular-posts-"+l,style:{backgroundColor:m.background_color,borderColor:m.background_border}},function(){if(void 0!==p.image&&p.image){var e=void 0!==h.image?h.image:"theme-preview-image.jpg";return wp.element.createElement("div",{className:"monsterinsights-inline-popular-posts-image"},wp.element.createElement("img",{src:x.vue_assets_path+"img/"+e}))}}(),wp.element.createElement("div",{className:"monsterinsights-inline-popular-posts-text"},function(){if(void 0!==h.icon)return wp.element.createElement("span",{className:"monsterinsights-inline-popular-posts-icon",style:{backgroundColor:m.icon_background}},c.a.themeIcon(m.icon_color))}(),function(){if(void 0!==h.label)return wp.element.createElement("span",{style:{color:m.label_color,backgroundColor:m.label_background},className:"monsterinsights-inline-popular-posts-label"},m.label_text)}(),function(){if(void 0!==h.border&&void 0!==h.border.color)return wp.element.createElement("span",{className:"monsterinsights-inline-popular-posts-border",style:{borderColor:m.border_color}})}(),function(){if(void 0!==h.title&&void 0===p.list&&void 0!==h.title.text)return wp.element.createElement("a",{href:"#",className:"monsterinsights-inline-popular-posts-title",style:{color:m.title_color,fontSize:m.title_size+"px"}},h.title.text)}(),function(){if(void 0!==p.list){var e=[];for(var t in p.list)e.push(wp.element.createElement("li",{key:"monsterinsights-popular-posts-preview-list-item-"+t,style:{color:m.title_color,fontSize:m.title_size+"px"}},p.list[t]));return wp.element.createElement("ul",{className:"monsterinsights-inline-popular-posts-list"},e)}}(),function(){if(void 0!==h.border&&void 0!==h.border.color2)return wp.element.createElement("span",{className:"monsterinsights-inline-popular-posts-border-2",style:{borderColor:m.border_color2}})}())))]}),save:function(e){return null}})},function(e,t,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(201),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function n(e,t,n,r){var o=t&&t.prototype instanceof i?t:i,a=Object.create(o.prototype),s=new h(r||[]);return a._invoke=c(e,n,s),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function i(){}function o(){}function a(){}function s(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function l(e){function t(n,i,o,a){var s=r(e[n],e,i);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&v.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(c).then(function(e){l.value=e,o(l)},a)}a(s.arg)}function n(e,n){function r(){return new Promise(function(r,i){t(e,n,r,i)})}return i=i?i.then(r,r):r()}var i;this._invoke=n}function c(e,t,n){var i=x;return function(o,a){if(i===O)throw new Error("Generator is already running");if(i===T){if("throw"===o)throw a;return f()}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var l=u(s,n);if(l){if(l===N)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===x)throw i=T,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=O;var c=r(e,t,n);if("normal"===c.type){if(i=n.done?T:k,c.arg===N)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=T,n.method="throw",n.arg=c.arg)}}}function u(e,t){var n=e.iterator[t.method];if(n===g){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=g,u(e,t),"throw"===t.method))return N;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return N}var i=r(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,N;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=g),t.delegate=null,N):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,N)}function d(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function h(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(d,this),this.reset(!0)}function m(e){if(e){var t=e[b];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(v.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=g,t.done=!0,t};return r.next=r}}return{next:f}}function f(){return{value:g,done:!0}}var g,w=Object.prototype,v=w.hasOwnProperty,y="function"==typeof Symbol?Symbol:{},b=y.iterator||"@@iterator",S=y.asyncIterator||"@@asyncIterator",E=y.toStringTag||"@@toStringTag",_="object"==typeof e,C=t.regeneratorRuntime;if(C)return void(_&&(e.exports=C));C=t.regeneratorRuntime=_?e.exports:{},C.wrap=n;var x="suspendedStart",k="suspendedYield",O="executing",T="completed",N={},M={};M[b]=function(){return this};var j=Object.getPrototypeOf,P=j&&j(j(m([])));P&&P!==w&&v.call(P,b)&&(M=P);var D=a.prototype=i.prototype=Object.create(M);o.prototype=D.constructor=a,a.constructor=o,a[E]=o.displayName="GeneratorFunction",C.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===o||"GeneratorFunction"===(t.displayName||t.name))},C.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,E in e||(e[E]="GeneratorFunction")),e.prototype=Object.create(D),e},C.awrap=function(e){return{__await:e}},s(l.prototype),l.prototype[S]=function(){return this},C.AsyncIterator=l,C.async=function(e,t,r,i){var o=new l(n(e,t,r,i));return C.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},s(D),D[E]="Generator",D[b]=function(){return this},D.toString=function(){return"[object Generator]"},C.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},C.values=m,h.prototype={constructor:h,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(p),!e)for(var t in this)"t"===t.charAt(0)&&v.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=g)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return o.type="throw",o.arg=e,n.next=t,r&&(n.method="next",n.arg=g),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=v.call(i,"catchLoc"),s=v.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&v.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,N):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),N},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),N}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;p(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:m(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=g),N}}}(function(){return this}()||Function("return this")())},function(e,t,n){"use strict";var r={};r.inlinepop=wp.element.createElement("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0H20V2H0V0ZM20 14V16H0V14H20ZM2 4C0.895431 4 0 4.89543 0 6V10C0 11.1046 0.895431 12 2 12H6C7.10457 12 8 11.1046 8 10V6C8 4.89543 7.10457 4 6 4H2ZM10 5H20V7H10V5ZM18 9H10V11H18V9Z",fill:"#555D66"})),r.alpha=wp.element.createElement("svg",{width:"70",height:"38",viewBox:"0 0 70 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"70",height:"37.8947",rx:"3",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"5.72729",y:"19.8947",width:"58.5455",height:"8.52632",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{x:"5.72729",y:"7.57892",width:"17.1818",height:"8.52632",rx:"3",fill:"#338EEF"})),r.beta=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"31",y:"21",width:"32",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{x:"31",y:"10",width:"18",height:"9",rx:"3",fill:"#338EEF"}),wp.element.createElement("rect",{x:"7",y:"10",width:"20",height:"20",rx:"3",fill:"#338EEF"}),wp.element.createElement("rect",{x:"1.5",y:"1.5",width:"67",height:"37",rx:"1.5",stroke:"#E7F2FD",strokeWidth:"3"})),r.charlie=wp.element.createElement("svg",{width:"70",height:"28",viewBox:"0 0 70 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"16",y:"19",width:"54",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{y:"11",width:"70",height:"3",rx:"1.5",fill:"#B8D8F9"}),wp.element.createElement("rect",{width:"26",height:"7",rx:"3",fill:"#338EEF"}),wp.element.createElement("circle",{cx:"4.5",cy:"23.5",r:"4.5",fill:"#1170D5"})),r.delta=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"8",y:"21",width:"54",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{x:"22",y:"9",width:"18",height:"9",rx:"3",fill:"#338EEF"}),wp.element.createElement("path",{d:"M12.0303 9.5625C12.4613 8.8125 13.5387 8.8125 13.9697 9.5625L17.8483 16.3125C18.2793 17.0625 17.7406 18 16.8787 18H9.12134C8.25942 18 7.72072 17.0625 8.15168 16.3125L12.0303 9.5625Z",fill:"#338EEF"}),wp.element.createElement("rect",{x:"1.5",y:"1.5",width:"67",height:"37",rx:"1.5",stroke:"#E7F2FD",strokeWidth:"3"})),r.echo=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"24.8182",y:"16",width:"39.4545",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{x:"5.72729",y:"16",width:"15.2727",height:"9",rx:"3",fill:"#338EEF"})),r.foxtrot=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"26",y:"22",width:"44",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{x:"26",y:"9",width:"28",height:"9",rx:"3",fill:"#338EEF"}),wp.element.createElement("rect",{y:"9",width:"22",height:"22",rx:"3",fill:"#338EEF"})),r.golf=wp.element.createElement("svg",{width:"70",height:"29",viewBox:"0 0 70 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{y:"11",width:"70",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{y:"26",width:"70",height:"3",rx:"1.5",fill:"#B8D8F9"}),wp.element.createElement("rect",{width:"21",height:"7",rx:"3",fill:"#338EEF"}),wp.element.createElement("rect",{x:"25",y:"1",width:"45",height:"3",rx:"1.5",fill:"#B8D8F9"})),r.hotel=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"22",y:"16",width:"40",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("path",{d:"M12.0303 16.5625C12.4613 15.8125 13.5387 15.8125 13.9697 16.5625L17.8483 23.3125C18.2793 24.0625 17.7406 25 16.8787 25H9.12134C8.25942 25 7.72072 24.0625 8.15168 23.3125L12.0303 16.5625Z",fill:"#338EEF"})),r.india=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("g",{"clip-path":"url(#clip0)"},wp.element.createElement("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"26",y:"16",width:"36",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{x:"8",y:"16",width:"14",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{y:"41",width:"41",height:"4",transform:"rotate(-90 0 41)",fill:"#338EEF"})),wp.element.createElement("defs",null,wp.element.createElement("clipPath",{id:"clip0"},wp.element.createElement("rect",{width:"70",height:"40",rx:"3",fill:"white"})))),r.juliett=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"30",y:"20",width:"32",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("path",{d:"M50 14C50 12.3431 51.3431 11 53 11H60C61.1046 11 62 11.8954 62 13V15C62 16.6569 60.6569 18 59 18H53C51.3431 18 50 16.6569 50 15V14Z",fill:"#338EEF"}),wp.element.createElement("rect",{x:"30",y:"11",width:"32",height:"4",rx:"2",fill:"#338EEF"}),wp.element.createElement("rect",{x:"8",y:"11",width:"18",height:"18",rx:"3",fill:"#338EEF"})),r.kilo=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{y:"22",width:"70",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{y:"9",width:"26",height:"9",rx:"3",fill:"#338EEF"}),wp.element.createElement("rect",{width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"12.7273",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"25.4545",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"38.1818",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"50.9091",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"63.6364",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"12.7273",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"25.4545",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"38.1818",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"50.9091",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"63.6364",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"})),r.lima=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"6",y:"22",width:"32",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{x:"6",y:"8",width:"20",height:"9",rx:"3",fill:"#338EEF"}),wp.element.createElement("rect",{x:"42",y:"9",width:"22",height:"22",rx:"3",fill:"#338EEF"})),r.mike=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"35",y:"15",width:"27",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.8438 28H10.1562C9.55729 28 9.04818 27.7934 8.62891 27.3802C8.20964 26.967 8 26.4653 8 25.875V22.3C8 21.0297 9.02974 20 10.3 20H21.7C22.9703 20 24 18.9703 24 17.7V13.3C24 12.0297 25.0297 11 26.3 11H28.8438C29.4427 11 29.9518 11.2066 30.3711 11.6198C30.7904 12.033 31 12.5347 31 13.125V25.875C31 26.4653 30.7904 26.967 30.3711 27.3802C29.9518 27.7934 29.4427 28 28.8438 28ZM10.3 11C9.02974 11 8 12.0297 8 13.3V15.7C8 16.9703 9.02974 18 10.3 18H19.7C20.9703 18 22 16.9703 22 15.7V13.3C22 12.0297 20.9703 11 19.7 11H10.3Z",fill:"#338EEF"})),r.november=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"29",y:"22",width:"33",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{x:"29",y:"9",width:"18",height:"9",rx:"3",fill:"#338EEF"}),wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 28C21.4183 28 25 24.4183 25 20C25 15.5817 21.4183 12 17 12C12.5817 12 9 15.5817 9 20C9 24.4183 12.5817 28 17 28ZM20.544 21.8756L17.5907 16.7081C17.3281 16.2488 16.6719 16.2488 16.4093 16.7081L13.456 21.8756C13.1935 22.3349 13.5217 22.9091 14.0467 22.9091H19.9533C20.4783 22.9091 20.8065 22.3349 20.544 21.8756Z",fill:"#338EEF"}),wp.element.createElement("rect",{x:"1.5",y:"1.5",width:"67",height:"37",rx:"1.5",stroke:"#E7F2FD",strokeWidth:"3"})),r.themeIcon=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#EB5757";return wp.element.createElement("svg",{width:"14",height:"19",viewBox:"0 0 14 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M7.875 0.899463C7.875 1.59183 8.0816 2.24711 8.49479 2.8653C8.93229 3.48349 9.44271 4.06458 10.026 4.60859C10.6337 5.15259 11.2292 5.73369 11.8125 6.35188C12.4201 6.97007 12.9306 7.76135 13.3438 8.72572C13.7812 9.66537 14 10.7163 14 11.8785C14 13.832 13.3073 15.5011 11.9219 16.8858C10.5608 18.2953 8.92014 19 7 19C5.07986 19 3.42708 18.2953 2.04167 16.8858C0.680556 15.5011 0 13.832 0 11.8785C0 9.94973 0.668403 8.28062 2.00521 6.87116C2.27257 6.57443 2.58854 6.50024 2.95312 6.64861C3.31771 6.79697 3.5 7.08134 3.5 7.50171V10.6545C3.5 11.3221 3.71875 11.8908 4.15625 12.3607C4.61806 12.8305 5.16493 13.0654 5.79688 13.0654C6.45312 13.0654 7.01215 12.8428 7.47396 12.3978C7.93576 11.9279 8.16667 11.3592 8.16667 10.6916C8.16667 10.2712 8.04514 9.86318 7.80208 9.46754C7.58333 9.0719 7.31597 8.71336 7 8.3919C6.68403 8.07044 6.34375 7.73662 5.97917 7.39043C5.63889 7.04425 5.34722 6.66097 5.10417 6.2406C4.88542 5.82024 4.73958 5.35041 4.66667 4.83114C4.59375 4.31186 4.67882 3.68131 4.92188 2.93948C5.18924 2.17293 5.63889 1.33219 6.27083 0.417277C6.51389 0.0463641 6.84201 -0.0772735 7.25521 0.0463641C7.6684 0.170002 7.875 0.454368 7.875 0.899463Z",fill:e}))},t.a=r},function(e,t,n){"use strict";var r={};r.canaccess=function(e){return"lite"===e},t.a=r},function(e,t,n){"use strict";var r={};r.checkmark=wp.element.createElement("svg",{width:"24",height:"20",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M21.0565 2.94355C23.0188 4.87903 24 7.23118 24 10C24 12.7688 23.0188 15.1344 21.0565 17.0968C19.121 19.0323 16.7688 20 14 20C11.2312 20 8.86559 19.0323 6.90323 17.0968C4.96774 15.1344 4 12.7688 4 10C4 7.23118 4.96774 4.87903 6.90323 2.94355C8.86559 0.981183 11.2312 0 14 0C16.7688 0 19.121 0.981183 21.0565 2.94355ZM12.8306 15.2823L20.25 7.8629C20.5726 7.5672 20.5726 7.27151 20.25 6.97581L19.3629 6.04839C19.0403 5.75269 18.7312 5.75269 18.4355 6.04839L12.3871 12.0968L9.56452 9.27419C9.26882 8.97849 8.95968 8.97849 8.6371 9.27419L7.75 10.2016C7.42742 10.4973 7.42742 10.793 7.75 11.0887L11.9435 15.2823C12.2392 15.6048 12.5349 15.6048 12.8306 15.2823Z",fill:"#338EEF"})),r.chevronright=wp.element.createElement("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M7.77369 5.53211L2.28571 0.19266C2.1537 0.0642201 1.9934 -6.52786e-08 1.80481 -5.7035e-08C1.61622 -4.87915e-08 1.45592 0.0642201 1.3239 0.192661L0.701556 0.798165C0.569543 0.926605 0.503536 1.08257 0.503536 1.26605C0.484677 1.44954 0.541254 1.6055 0.673267 1.73394L5.05799 6L0.673268 10.2661C0.541255 10.3945 0.484678 10.5505 0.503537 10.7339C0.503537 10.9174 0.569543 11.0734 0.701556 11.2018L1.3239 11.8073C1.45592 11.9358 1.61622 12 1.80481 12C1.9934 12 2.1537 11.9358 2.28571 11.8073L7.77369 6.46789C7.92456 6.33945 8 6.18349 8 6C8 5.81651 7.92456 5.66055 7.77369 5.53211Z",fill:"#C4C4C4"})),r.chevronleft=wp.element.createElement("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0.226309 5.53211L5.71429 0.19266C5.8463 0.0642201 6.0066 -6.52786e-08 6.19519 -5.7035e-08C6.38378 -4.87915e-08 6.54408 0.0642201 6.6761 0.192661L7.29844 0.798165C7.43046 0.926605 7.49646 1.08257 7.49646 1.26605C7.51532 1.44954 7.45875 1.6055 7.32673 1.73394L2.94201 6L7.32673 10.2661C7.45875 10.3945 7.51532 10.5505 7.49646 10.7339C7.49646 10.9174 7.43046 11.0734 7.29844 11.2018L6.6761 11.8073C6.54408 11.9358 6.38378 12 6.19519 12C6.0066 12 5.8463 11.9358 5.71429 11.8073L0.226309 6.46789C0.0754363 6.33945 6.83386e-07 6.18349 6.91406e-07 6C6.99426e-07 5.81651 0.0754363 5.66055 0.226309 5.53211Z",fill:"#C4C4C4"})),t.a=r},function(e,t,n){"use strict";function r(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return(c=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){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&&p(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(){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}}function m(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function f(e,t){if(null==e)return{};var n,r,i=m(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function v(e){var t=h();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return w(this,n)}}function y(e){return b(e)||S(e)||E(e)||C()}function b(e){if(Array.isArray(e))return _(e)}function S(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function E(e,t){if(e){if("string"==typeof e)return _(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)?_(e,t):void 0}}function _(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 C(){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 x(e,t){return t={exports:{}},e(t,t.exports),t.exports}function k(){}function O(){}function T(e){return e.map(function(e){return!1===e?null:e}).join(" ").replace(/\s+/g," ").trim()}function N(e,t){return 100/e*t/t}function M(e,t){return 100*e/t}function j(e){return"".concat(e,"%")}function P(e,t,n){if(e===t)return!0;var r=ie[re(e)],i=ie[re(t)];return!(!r||r!==i)&&r(e,t,n)}function D(e){return function(t,n,r){if(!r)return e(t,n,[]);for(var i,o=r.length;i=r[--o];)if(i[0]===t&&i[1]===n)return!0;return e(t,n,r)}}function F(e,t,n){var r=e.length;if(r!==t.length)return!1;for(n.push([e,t]);r--;)if(!P(e[r],t[r],n))return!1;return!0}function A(e,t,n){if("function"==typeof e.equal)return n.push([e,t]),e.equal(t,n);var r=L(e),i=L(t),o=r.length;if(o!==i.length)return!1;for(r.sort(),i.sort();o--;)if(r[o]!==i[o])return!1;for(n.push([e,t]),o=r.length;o--;){var a=r[o];if(!P(e[a],t[a],n))return!1}return!0}function L(e){var t=[];for(var n in e)"constructor"!==n&&t.push(n);return t}function B(e){return!!e&&"object"==typeof e}function z(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||R(e)}function R(e){return e.$$typeof===le}function H(e){return Array.isArray(e)?[]:{}}function I(e,t){return!1!==t.clone&&t.isMergeableObject(e)?W(H(e),e,t):e}function q(e,t,n){return e.concat(t).map(function(e){return I(e,n)})}function V(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=I(e[t],n)}),Object.keys(t).forEach(function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=W(e[i],t[i],n):r[i]=I(t[i],n)}),r}function W(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||q,n.isMergeableObject=n.isMergeableObject||ae;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):V(e,t,n):I(t,n)}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return{}},n=function(n){function r(e,n){var s;return o(this,r),s=a.call(this,e,n),s.state=t(i({},n.state)),s.updateStateProps=s.updateStateProps.bind(g(s)),s}u(r,n);var a=v(r);return s(r,[{key:"componentDidMount",value:function(){this.context.subscribe(this.updateStateProps)}},{key:"shouldComponentUpdate",value:function(e,t){return!oe(t,this.state)||!oe(e,this.props)}},{key:"componentWillUnmount",value:function(){this.context.unsubscribe(this.updateStateProps)}},{key:"updateStateProps",value:function(){this.setState(t(i({},this.context.state)))}},{key:"render",value:function(){var t=this,n=de(this.state,this.props);return Y.a.createElement(e,c({ref:function(e){t.instance=e}},n,{carouselStore:{getStoreState:this.context.getStoreState,masterSpinnerError:this.context.masterSpinnerError,masterSpinnerSuccess:this.context.masterSpinnerSuccess,setStoreState:this.context.setStoreState,subscribeMasterSpinner:this.context.subscribeMasterSpinner,unsubscribeAllMasterSpinner:this.context.unsubscribeAllMasterSpinner,unsubscribeMasterSpinner:this.context.unsubscribeMasterSpinner}}),this.props.children)}}]),r}(Y.a.Component);return l(n,"contextType",pe),l(n,"propTypes",{children:J.children}),l(n,"defaultProps",{children:null}),n}n.d(t,"a",function(){return Me}),n.d(t,"b",function(){return Be}),n.d(t,"c",function(){return we}),n.d(t,"d",function(){return Je}),n.d(t,"e",function(){return St}),n.d(t,"f",function(){return Tt});var U=n(80),Y=n.n(U),X="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";O.resetWarningCache=k;var G=function(){function e(e,t,n,r,i,o){if(o!==X){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:O,resetWarningCache:k};return n.PropTypes=n,n},K=x(function(e){e.exports=G()}),$="loading",J={children:K.oneOfType([K.arrayOf(K.node),K.node]),direction:K.oneOf(["forward","backward"]),height:function(e,t){var n=e[t];return"vertical"!==e.orientation||null!==n&&"number"==typeof n?null:new Error("Missing required property '".concat(t,"' when orientation is vertical. You must supply a number representing the height in pixels"))},orientation:K.oneOf(["horizontal","vertical"]),isBgImage:function(e,t){return!0===e[t]&&"img"===e.tag?new Error("HTML img elements should not have a backgroundImage. Please use ".concat(t," for other block-level HTML tags, like div, a, section, etc...")):null}},Q=function(e){var t=e.min,n=e.max,r=e.x;return Math.min(n,Math.max(t,r))},ee={buttonBack:"buttonBack___1mlaL"},te=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],ne=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.handleOnClick=r.handleOnClick.bind(g(r)),r}u(t,e);var n=v(t);return s(t,[{key:"handleOnClick",value:function(e){var t=this.props,n=t.carouselStore,r=t.currentSlide,i=t.onClick,o=t.step,a=t.infinite,s=t.visibleSlides,l=t.totalSlides-s,c=Math.max(r-o,0);a&&(c=0===r?l:c),n.setStoreState({currentSlide:c,isPlaying:!1},null!==i&&i.call(this,e))}},{key:"render",value:function(){var e=this.props,n=(e.carouselStore,e.className),r=(e.currentSlide,e.disabled,e.onClick,e.step,e.totalSlides,e.visibleSlides,e.infinite),i=f(e,te),o=T([ee.buttonBack,"carousel__back-button",n]),a=t.setDisabled(this.props.disabled,this.props.currentSlide,r);return Y.a.createElement("button",c({type:"button","aria-label":"previous",className:o,onClick:this.handleOnClick,disabled:a},i),this.props.children)}}],[{key:"setDisabled",value:function(e,t,n){return null!==e?e:0===t&&!n}}]),t}(Y.a.Component);l(ne,"propTypes",{carouselStore:K.object.isRequired,children:J.children.isRequired,className:K.string,currentSlide:K.number.isRequired,disabled:K.bool,onClick:K.func,step:K.number.isRequired,totalSlides:K.number.isRequired,visibleSlides:K.number.isRequired,infinite:K.bool}),l(ne,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1});var re=x(function(e,t){var n={}.toString,r="undefined"!=typeof window?window.Node:Function;e.exports=t=function(e){var t=typeof e;if("object"!=t)return t;if("object"==(t=i[n.call(e)]))return e instanceof Map?"map":e instanceof Set?"set":"object";if(t)return t;if(e instanceof r)switch(e.nodeType){case 1:return"element";case 3:return"text-node";case 9:return"document";case 11:return"document-fragment";default:return"dom-node"}};var i=t.types={"[object Function]":"function","[object Date]":"date","[object RegExp]":"regexp","[object Arguments]":"arguments","[object Array]":"array","[object Set]":"set","[object String]":"string","[object Null]":"null","[object Undefined]":"undefined","[object Number]":"number","[object Boolean]":"boolean","[object Object]":"object","[object Map]":"map","[object Text]":"text-node","[object Uint8Array]":"bit-array","[object Uint16Array]":"bit-array","[object Uint32Array]":"bit-array","[object Uint8ClampedArray]":"bit-array","[object Error]":"error","[object FormData]":"form-data","[object File]":"file","[object Blob]":"blob"}}),ie=(re.types,{});ie.number=function(e,t){return e!==e&&t!==t},ie.function=function(e,t,n){return e.toString()===t.toString()&&ie.object(e,t,n)&&P(e.prototype,t.prototype)},ie.date=function(e,t){return+e==+t},ie.regexp=function(e,t){return e.toString()===t.toString()},ie.element=function(e,t){return e.outerHTML===t.outerHTML},ie.textnode=function(e,t){return e.textContent===t.textContent},ie.arguments=ie["bit-array"]=ie.array=D(F),ie.object=D(A);var oe=P,ae=function(e){return B(e)&&!z(e)},se="function"==typeof Symbol&&Symbol.for,le=se?Symbol.for("react.element"):60103;W.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return W(e,n,t)},{})};var ce,ue,de=W,pe=Y.a.createContext(),he=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(n){!t.hasOwnProperty(n)||null===t[n]||"object"!=typeof t[n]&&"function"!=typeof t[n]||Object.isFrozen(t[n])||e(t[n])}),t},me={masterSpinnerFinished:!1},fe=function(){function e(t){o(this,e),this.state=he(de(me,t)),this.subscriptions=[],this.masterSpinnerSubscriptions={},this.setStoreState=this.setStoreState.bind(this),this.getStoreState=this.getStoreState.bind(this),this.subscribe=this.subscribe.bind(this),this.unsubscribe=this.unsubscribe.bind(this),this.updateSubscribers=this.updateSubscribers.bind(this),this.subscribeMasterSpinner=this.subscribeMasterSpinner.bind(this),this.unsubscribeMasterSpinner=this.unsubscribeMasterSpinner.bind(this),this.unsubscribeAllMasterSpinner=this.unsubscribeAllMasterSpinner.bind(this),this.masterSpinnerSuccess=this.masterSpinnerSuccess.bind(this),this.masterSpinnerError=this.masterSpinnerError.bind(this)}return s(e,[{key:"setStoreState",value:function(e,t){this.state=he(de(this.state,e)),this.updateSubscribers(t)}},{key:"getStoreState",value:function(){return de({},this.state)}},{key:"subscribe",value:function(e){this.subscriptions.push(e)}},{key:"unsubscribe",value:function(e){var t=this.subscriptions.indexOf(e);-1!==t&&this.subscriptions.splice(t,1)}},{key:"updateSubscribers",value:function(e){this.subscriptions.forEach(function(e){return e()}),"function"==typeof e&&e(this.getStoreState())}},{key:"subscribeMasterSpinner",value:function(e){-1===Object.keys(this.masterSpinnerSubscriptions).indexOf(e)&&(this.masterSpinnerSubscriptions[e]={success:!1,error:!1,complete:!1})}},{key:"unsubscribeMasterSpinner",value:function(e){return-1!==Object.keys(this.masterSpinnerSubscriptions).indexOf(e)&&(this.setMasterSpinnerFinished(),delete this.masterSpinnerSubscriptions[e])}},{key:"unsubscribeAllMasterSpinner",value:function(){this.masterSpinnerSubscriptions={},this.setMasterSpinnerFinished()}},{key:"masterSpinnerSuccess",value:function(e){this.masterSpinnerSubscriptions[e].success=!0,this.masterSpinnerSubscriptions[e].complete=!0,this.setMasterSpinnerFinished()}},{key:"masterSpinnerError",value:function(e){this.masterSpinnerSubscriptions[e].error=!0,this.masterSpinnerSubscriptions[e].complete=!0,this.setMasterSpinnerFinished()}},{key:"setMasterSpinnerFinished",value:function(){this.setStoreState({masterSpinnerFinished:this.isMasterSpinnerFinished()})}},{key:"isMasterSpinnerFinished",value:function(){var e=this;return 0===Object.keys(this.masterSpinnerSubscriptions).filter(function(t){return!0!==e.masterSpinnerSubscriptions[t].complete}).length}}]),e}(),ge=["children","className","currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","naturalSlideHeight","naturalSlideWidth","orientation","playDirection","step","dragStep","tag","totalSlides","touchEnabled","dragEnabled","visibleSlides","infinite","isIntrinsicHeight"],we=(ue=ce=function(e){function t(e){var r;if(o(this,t),r=n.call(this,e),e.isIntrinsicHeight&&"horizontal"!==e.orientation)throw Error('isIntrinsicHeight can only be used in "horizontal" orientation. See Readme for more information.');var i={currentSlide:e.currentSlide,disableAnimation:e.disableAnimation,disableKeyboard:e.disableKeyboard,hasMasterSpinner:e.hasMasterSpinner,imageErrorCount:0,imageSuccessCount:0,interval:e.interval,isPageScrollLocked:e.isPageScrollLocked,isPlaying:e.isPlaying,lockOnWindowScroll:e.lockOnWindowScroll,masterSpinnerThreshold:0,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,playDirection:e.playDirection,privateUnDisableAnimation:!1,slideSize:N(e.totalSlides,e.visibleSlides),slideTraySize:M(e.totalSlides,e.visibleSlides),step:e.step,dragStep:e.dragStep,totalSlides:e.totalSlides,touchEnabled:e.touchEnabled,dragEnabled:e.dragEnabled,visibleSlides:e.visibleSlides,infinite:e.infinite,isIntrinsicHeight:e.isIntrinsicHeight};return r.carouselStore=new fe(i),r}u(t,e);var n=v(t);return s(t,[{key:"componentDidUpdate",value:function(e){var t=this,n={};["currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPlaying","naturalSlideHeight","naturalSlideWidth","lockOnWindowScroll","orientation","playDirection","step","dragStep","totalSlides","touchEnabled","dragEnabled","visibleSlides"].forEach(function(r){e[r]!==t.props[r]&&(n[r]=t.props[r])}),this.props.currentSlide!==e.currentSlide&&!this.props.disableAnimation&&(n.disableAnimation=!0,n.privateUnDisableAnimation=!0),this.props.totalSlides===e.totalSlides&&this.props.visibleSlides===e.visibleSlides||(n.slideSize=N(this.props.totalSlides,this.props.visibleSlides),n.slideTraySize=M(this.props.totalSlides,this.props.visibleSlides)),this.carouselStore.state.currentSlide>=this.props.totalSlides&&(n.currentSlide=Math.max(this.props.totalSlides-1,0)),Object.keys(n).length>0&&this.carouselStore.setStoreState(n)}},{key:"componentWillUnmount",value:function(){this.carouselStore.unsubscribeAllMasterSpinner()}},{key:"getStore",value:function(){return this.carouselStore}},{key:"render",value:function(){var e=this.props,t=(e.children,e.className,e.currentSlide,e.disableAnimation,e.disableKeyboard,e.hasMasterSpinner,e.interval,e.isPageScrollLocked,e.isPlaying,e.lockOnWindowScroll,e.naturalSlideHeight,e.naturalSlideWidth,e.orientation,e.playDirection,e.step,e.dragStep,e.tag),n=(e.totalSlides,e.touchEnabled,e.dragEnabled,e.visibleSlides,e.infinite,e.isIntrinsicHeight,f(e,ge)),r=T(["carousel",this.props.className]);return Y.a.createElement(t,c({className:r},n),Y.a.createElement(pe.Provider,{value:this.carouselStore},this.props.children))}}]),t}(Y.a.Component),l(ce,"propTypes",{children:J.children.isRequired,className:K.string,currentSlide:K.number,disableAnimation:K.bool,disableKeyboard:K.bool,hasMasterSpinner:K.bool,interval:K.number,isPageScrollLocked:K.bool,isPlaying:K.bool,lockOnWindowScroll:K.bool,naturalSlideHeight:K.number.isRequired,naturalSlideWidth:K.number.isRequired,orientation:J.orientation,playDirection:J.direction,step:K.number,dragStep:K.number,tag:K.string,totalSlides:K.number.isRequired,touchEnabled:K.bool,dragEnabled:K.bool,visibleSlides:K.number,infinite:K.bool,isIntrinsicHeight:K.bool}),l(ce,"defaultProps",{className:null,currentSlide:0,disableAnimation:!1,disableKeyboard:!1,hasMasterSpinner:!1,interval:5e3,isPageScrollLocked:!1,isPlaying:!1,lockOnWindowScroll:!1,orientation:"horizontal",playDirection:"forward",step:1,dragStep:1,tag:"div",touchEnabled:!0,dragEnabled:!0,visibleSlides:1,infinite:!1,isIntrinsicHeight:!1}),ue);pe.Consumer;var ve,ye,be,Se,Ee,_e,Ce,xe,ke,Oe,Te,Ne,Me=Z(ne,function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}}),je={buttonFirst:"buttonFirst___2rhFr"},Pe=["carouselStore","className","currentSlide","disabled","onClick","totalSlides"],De=(ye=ve=function(e){function t(){var e;return o(this,t),e=n.call(this),e.handleOnClick=e.handleOnClick.bind(g(e)),e}u(t,e);var n=v(t);return s(t,[{key:"handleOnClick",value:function(e){var t=this.props,n=t.carouselStore,r=t.onClick;n.setStoreState({currentSlide:0,isPlaying:!1},null!==r&&r.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.className),n=e.currentSlide,r=e.disabled,i=(e.onClick,e.totalSlides,f(e,Pe)),o=T([je.buttonFirst,"carousel__first-button",t]),a=null!==r?r:0===n;return Y.a.createElement("button",c({type:"button","aria-label":"first",className:o,onClick:this.handleOnClick,disabled:a},i),this.props.children)}}]),t}(Y.a.Component),l(ve,"propTypes",{carouselStore:K.object.isRequired,children:J.children.isRequired,className:K.string,currentSlide:K.number.isRequired,disabled:K.bool,onClick:K.func,totalSlides:K.number.isRequired}),l(ve,"defaultProps",{className:null,disabled:null,onClick:null}),ye),Fe=(Z(De,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides}}),{buttonNext:"buttonNext___2mOCa"}),Ae=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],Le=(Se=be=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.handleOnClick=r.handleOnClick.bind(g(r)),r}u(t,e);var n=v(t);return s(t,[{key:"handleOnClick",value:function(e){var t=this.props,n=t.currentSlide,r=t.onClick,i=t.step,o=t.carouselStore,a=t.infinite,s=t.totalSlides-t.visibleSlides,l=i+n,c=Math.min(l,s);a&&(c=s===n?0:c),o.setStoreState({currentSlide:c,isPlaying:!1},null!==r&&r.call(this,e))}},{key:"render",value:function(){var e=this.props,n=(e.carouselStore,e.className),r=e.currentSlide,i=e.disabled,o=(e.onClick,e.step,e.totalSlides),a=e.visibleSlides,s=e.infinite,l=f(e,Ae),u=T([Fe.buttonNext,"carousel__next-button",n]),d=t.setDisabled(i,r,a,o,s);return Y.a.createElement("button",c({type:"button","aria-label":"next",className:u,onClick:this.handleOnClick,disabled:d},l),this.props.children)}}],[{key:"setDisabled",value:function(e,t,n,r,i){return null!==e?e:t>=r-n&&!i}}]),t}(Y.a.PureComponent),l(be,"propTypes",{carouselStore:K.object.isRequired,children:J.children.isRequired,className:K.string,currentSlide:K.number.isRequired,disabled:K.bool,onClick:K.func,step:K.number.isRequired,totalSlides:K.number.isRequired,visibleSlides:K.number.isRequired,infinite:K.bool}),l(be,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1}),Se),Be=Z(Le,function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}}),ze={buttonLast:"buttonLast___2yuh0"},Re=["carouselStore","className","currentSlide","disabled","onClick","totalSlides","visibleSlides"],He=(_e=Ee=function(e){function t(){var e;return o(this,t),e=n.call(this),e.handleOnClick=e.handleOnClick.bind(g(e)),e}u(t,e);var n=v(t);return s(t,[{key:"handleOnClick",value:function(e){var t=this.props,n=t.carouselStore,r=t.onClick,i=t.totalSlides,o=t.visibleSlides;n.setStoreState({currentSlide:i-o,isPlaying:!1},null!==r&&r.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.className),n=e.currentSlide,r=e.disabled,i=(e.onClick,e.totalSlides),o=e.visibleSlides,a=f(e,Re),s=T([ze.buttonLast,"carousel__last-button",t]),l=null!==r?r:n>=i-o;return Y.a.createElement("button",c({type:"button","aria-label":"last",className:s,onClick:this.handleOnClick,disabled:l},a),this.props.children)}}]),t}(Y.a.Component),l(Ee,"propTypes",{carouselStore:K.object.isRequired,children:J.children.isRequired,className:K.string,currentSlide:K.number.isRequired,disabled:K.bool,onClick:K.func,totalSlides:K.number.isRequired,visibleSlides:K.number.isRequired}),l(Ee,"defaultProps",{className:null,disabled:null,onClick:null}),_e),Ie=(Z(He,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}}),{buttonNext:"buttonNext___3Lm3s"}),qe=["carouselStore","children","childrenPaused","childrenPlaying","className","isPlaying","onClick"],Ve=(xe=Ce=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.handleOnClick=r.handleOnClick.bind(g(r)),r}u(t,e);var n=v(t);return s(t,[{key:"handleOnClick",value:function(e){var t=this.props.onClick;this.props.carouselStore.setStoreState({isPlaying:!this.props.isPlaying},null!==t&&t.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.childrenPaused),n=e.childrenPlaying,r=e.className,i=e.isPlaying,o=(e.onClick,f(e,qe)),a=T([Ie.buttonNext,"carousel__play-button",r]);return Y.a.createElement("button",c({type:"button","aria-label":"play",className:a,onClick:this.handleOnClick},o),i&&n,!i&&t,this.props.children)}}]),t}(Y.a.PureComponent),l(Ce,"propTypes",{carouselStore:K.object.isRequired,children:K.node,childrenPaused:K.node,childrenPlaying:K.node,className:K.string,isPlaying:K.bool.isRequired,onClick:K.func}),l(Ce,"defaultProps",{children:null,childrenPaused:null,childrenPlaying:null,className:null,onClick:null}),xe),We=(Z(Ve,function(e){return{isPlaying:e.isPlaying}}),{dot:"dot___3c3SI"}),Ze=["carouselStore","children","className","currentSlide","disabled","onClick","selected","slide","totalSlides","visibleSlides"],Ue=(Oe=ke=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.handleOnClick=r.handleOnClick.bind(g(r)),r}u(t,e);var n=v(t);return s(t,[{key:"handleOnClick",value:function(e){var t=this.props,n=t.carouselStore,r=t.onClick,i=t.slide,o=t.totalSlides,a=t.visibleSlides,s=i>=o-a?o-a:i;n.setStoreState({currentSlide:s,isPlaying:!1},null!==r&&r.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.className),n=e.currentSlide,r=e.disabled,i=(e.onClick,e.selected),o=e.slide,a=(e.totalSlides,e.visibleSlides),s=f(e,Ze),l=o>=n&&o<n+a,u="boolean"==typeof i?i:l,d=!0===l,p="boolean"==typeof r?r:d,h=T([We.dot,u&&We.dotSelected,"carousel__dot","carousel__dot--".concat(o),u&&"carousel__dot--selected",t]);return Y.a.createElement("button",c({"aria-label":"slide dot",type:"button",onClick:this.handleOnClick,className:h,disabled:p},s),this.props.children)}}]),t}(Y.a.Component),l(ke,"propTypes",{carouselStore:K.object.isRequired,children:J.children,className:K.string,currentSlide:K.number.isRequired,disabled:K.bool,onClick:K.func,selected:K.bool,slide:K.number.isRequired,totalSlides:K.number.isRequired,visibleSlides:K.number.isRequired}),l(ke,"defaultProps",{children:null,className:null,disabled:null,onClick:null,selected:null}),Oe),Ye=Z(Ue,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}}),Xe={},Ge=["renderDots"],Ke=["carouselStore","children","className","currentSlide","dotNumbers","totalSlides","visibleSlides","disableActiveDots","showAsSelectedForCurrentSlideOnly","renderDots"],$e=(Ne=Te=function(e){function t(){return o(this,t),n.apply(this,arguments)}u(t,e);var n=v(t);return s(t,[{key:"renderDots",value:function(){var e=this.props,t=e.currentSlide,n=e.totalSlides,r=e.visibleSlides,i=e.disableActiveDots,o=e.showAsSelectedForCurrentSlideOnly,a=e.renderDots;if(a){var s=this.props;return s.renderDots,a(f(s,Ge))}for(var l=[],c=0;c<n;c+=1){var u=c>=t&&c<t+r,d=c===t,p=o?d:u,h=c>=n-r?n-r:c;l.push(Y.a.createElement(Ye,{key:c,slide:h,selected:p,disabled:!!i&&p},Y.a.createElement("span",{className:T["carousel__dot-group-dot"]},this.props.dotNumbers&&c+1)))}return l}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children),n=e.className,r=(e.currentSlide,e.dotNumbers,e.totalSlides,e.visibleSlides,e.disableActiveDots,e.showAsSelectedForCurrentSlideOnly,e.renderDots,f(e,Ke)),i=T([Xe.DotGroup,"carousel__dot-group",n]);return Y.a.createElement("div",c({className:i},r),this.renderDots(),t)}}]),t}(Y.a.Component),l(Te,"propTypes",{children:J.children,className:K.string,currentSlide:K.number.isRequired,carouselStore:K.object.isRequired,totalSlides:K.number.isRequired,visibleSlides:K.number.isRequired,dotNumbers:K.bool,disableActiveDots:K.bool,showAsSelectedForCurrentSlideOnly:K.bool,renderDots:K.func}),l(Te,"defaultProps",{children:null,className:null,dotNumbers:!1,disableActiveDots:!0,showAsSelectedForCurrentSlideOnly:!1,renderDots:null}),Ne),Je=Z($e,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}}),Qe={image:"image___xtQGH"},et=["src","alt"],tt=["carouselStore","children","className","hasMasterSpinner","isBgImage","onError","onLoad","renderError","renderLoading","style","tag"],nt=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.state={imageStatus:$},r.handleImageLoad=r.handleImageLoad.bind(g(r)),r.handleImageError=r.handleImageError.bind(g(r)),r.image=null,r}u(t,e);var n=v(t);return s(t,[{key:"componentDidMount",value:function(){t.subscribeMasterSpinner(this.props),this.initImage()}},{key:"componentDidUpdate",value:function(e){e.src!==this.props.src&&(t.unsubscribeMasterSpinner(e),t.subscribeMasterSpinner(this.props),this.initImage())}},{key:"componentWillUnmount",value:function(){t.unsubscribeMasterSpinner(this.props),this.image.removeEventListener("load",this.handleImageLoad),this.image.removeEventListener("error",this.handleImageError),this.image=null}},{key:"initImage",value:function(){if(this.setState({imageStatus:$}),this.image=document.createElement("img"),this.image.addEventListener("load",this.handleImageLoad,!1),this.image.addEventListener("error",this.handleImageError,!1),this.image.src=this.props.src,this.image.readyState||this.image.complete){var e=this.image.src;this.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",this.image.src=e}}},{key:"handleImageLoad",value:function(e){this.setState({imageStatus:"success"}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerSuccess(this.props.src),this.props.onLoad&&this.props.onLoad(e)}},{key:"handleImageError",value:function(e){this.setState({imageStatus:"error"}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerError(this.props.src),this.props.onError&&this.props.onError(e)}},{key:"tempTag",value:function(){return"img"===this.props.tag?"div":this.props.tag}},{key:"customRender",value:function(e){return"function"==typeof this.props[e]?this.props[e]():this.props.children}},{key:"renderLoading",value:function(e){var t=this.tempTag(),n=T([Qe.image,Qe.imageLoading,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--loading",this.props.className]);return Y.a.createElement(t,c({className:n},e),this.customRender("renderLoading"))}},{key:"renderError",value:function(e){var t=this.tempTag(),n=T([Qe.image,Qe.imageError,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--error",this.props.className]);return Y.a.createElement(t,c({className:n},e),this.customRender("renderError"))}},{key:"renderSuccess",value:function(e){var t=this.props,n=t.style,r=t.tag,i=T([Qe.image,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--success",this.props.className]),o=c({},n),a=e;if("img"!==r){var s=e.src;e.alt,a=f(e,et),o=c({},n,{backgroundImage:'url("'.concat(s,'")'),backgroundSize:"cover"})}return Y.a.createElement(r,c({className:i,style:o},a),this.props.children)}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.className,e.hasMasterSpinner,e.isBgImage,e.onError,e.onLoad,e.renderError,e.renderLoading,e.style,e.tag,f(e,tt));switch(this.state.imageStatus){case $:return this.renderLoading(t);case"success":return this.renderSuccess(t);case"error":return this.renderError(t);default:throw new Error("unknown value for this.state.imageStatus")}}}],[{key:"subscribeMasterSpinner",value:function(e){e.hasMasterSpinner&&e.carouselStore.subscribeMasterSpinner(e.src)}},{key:"unsubscribeMasterSpinner",value:function(e){e.hasMasterSpinner&&e.carouselStore.unsubscribeMasterSpinner(e.src)}}]),t}(Y.a.Component);l(nt,"propTypes",{alt:K.string,carouselStore:K.object.isRequired,children:J.children,className:K.string,hasMasterSpinner:K.bool.isRequired,isBgImage:J.isBgImage,onError:K.func,onLoad:K.func,renderError:K.func,renderLoading:K.func,src:K.string.isRequired,style:K.object,tag:K.string}),l(nt,"defaultProps",{alt:"",children:null,className:null,isBgImage:!1,onError:null,onLoad:null,renderError:null,renderLoading:null,style:null,tag:"img"});var rt,it,ot,at,st,lt,ct,ut,dt=Z(nt,function(e){return{hasMasterSpinner:e.hasMasterSpinner,orientation:e.orientation}}),pt={spinner:"spinner___27VUp",spin:"spin___S3UuE"},ht=["className"],mt=(it=rt=function(e){function t(){return o(this,t),n.apply(this,arguments)}u(t,e);var n=v(t);return s(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=f(e,ht),r=T([pt.spinner,"carousel__spinner",t]);return Y.a.createElement("div",c({className:r},n))}}]),t}(Y.a.PureComponent),l(rt,"propTypes",{className:K.string}),l(rt,"defaultProps",{className:null}),it),ft={container:"container___2O72F",overlay:"overlay___IV4qY",hover:"hover___MYy31",zoom:"zoom___3kqYk",loading:"loading___1pvNI",imageLoadingSpinnerContainer:"imageLoadingSpinnerContainer___3UIPD"},gt=["alt","bgImageProps","bgImageTag","carouselStore","className","imageClassName","overlayClassName","isPinchZoomEnabled","spinner","src","srcZoomed","tag"],wt=(at=ot=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.state={isImageLoading:!0,isHovering:!1,isZooming:!1,x:null,y:null,scale:1},r.tpCache={},r.handleImageComplete=r.handleImageComplete.bind(g(r)),r.handleOnMouseMove=r.handleOnMouseMove.bind(g(r)),r.handleOnMouseOut=r.handleOnMouseOut.bind(g(r)),r.handleOnMouseOver=r.handleOnMouseOver.bind(g(r)),r.handleOnTouchEnd=r.handleOnTouchEnd.bind(g(r)),r.handleOnTouchMove=r.handleOnTouchMove.bind(g(r)),r.handleOnTouchStart=r.handleOnTouchStart.bind(g(r)),r}u(t,e);var n=v(t);return s(t,[{key:"componentDidUpdate",value:function(e,t){!1===t.isZooming&&!0===this.state.isZooming&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),!0===t.isZooming&&!1===this.state.isZooming&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1})}},{key:"handleImageComplete",value:function(){this.setState({isImageLoading:!1})}},{key:"handleOnMouseOver",value:function(){this.state.isZooming||this.setState({isHovering:!0,scale:2})}},{key:"handleOnMouseOut",value:function(){this.state.isZooming||this.setState({isHovering:!1,scale:1})}},{key:"handleOnMouseMove",value:function(e){if(!this.state.isZooming){var t=j(e.nativeEvent.offsetX/e.target.offsetWidth*100),n=j(e.nativeEvent.offsetY/e.target.offsetHeight*100);this.setState({x:t,y:n})}}},{key:"handleOnTouchStart",value:function(e){var t=this;this.props.isPinchZoomEnabled&&(y(e.targetTouches).forEach(function(e){t.tpCache[e.identifier]={clientX:e.clientX,clientY:e.clientY}}),this.setState(function(e){return{isZooming:e.isZooming||Object.keys(t.tpCache).length>1}}))}},{key:"handleOnTouchMove",value:function(e){var n=this;if(this.state.isZooming){e.persist();var r=y(e.targetTouches).filter(function(e){return n.tpCache[e.identifier]}).slice(0,2);if(2===r.length){e.stopPropagation();var o=e.target.getBoundingClientRect(),a=r[0].identifier,s=r[1].identifier,l={x1:this.tpCache[a].clientX,y1:this.tpCache[a].clientY,x2:this.tpCache[s].clientX,y2:this.tpCache[s].clientY};l.distance=t.distanceBetweenTwoTouches(i({},l));var c=t.midpointBetweenTwoTouches(i({},l));l.cx=c.x,l.cy=c.y;var u={x1:r[0].clientX,y1:r[0].clientY,x2:r[1].clientX,y2:r[1].clientY};u.distance=t.distanceBetweenTwoTouches(i({},u));var d=t.midpointBetweenTwoTouches(i({},u));u.cx=d.x,u.cy=d.y;var p=j(Q({min:0,max:100,x:(u.cx-o.left)/o.width*100})),h=j(Q({min:0,max:100,x:(u.cy-o.top)/o.height*100})),m=function(e){return Q({min:1,max:3,x:e.scale+(u.distance-l.distance)/100})};this.setState(function(e){return{isZooming:1!==m(e),scale:m(e),x:p,y:h}})}}}},{key:"handleOnTouchEnd",value:function(e){var t=this;this.props.isPinchZoomEnabled&&(y(e.changedTouches).forEach(function(e){delete t.tpCache[e.identifier]}),0===Object.keys(this.tpCache).length&&this.setState({isZooming:!1}))}},{key:"renderLoading",value:function(){if(this.state.isImageLoading){var e=this.props.spinner;return Y.a.createElement("div",{className:T([ft.imageLoadingSpinnerContainer,"carousel__image-loading-spinner-container"])},e&&e(),!e&&Y.a.createElement(mt,null))}return null}},{key:"render",value:function(){var e=this.props,t=e.alt,n=e.bgImageProps,r=e.bgImageTag,i=(e.carouselStore,e.className),o=e.imageClassName,a=e.overlayClassName,s=(e.isPinchZoomEnabled,e.spinner,e.src),l=e.srcZoomed,u=e.tag,d=f(e,gt),p=T([ft.container,i]),h=T([ft.image,"carousel__zoom-image",o]),m=T([ft.overlay,"carousel__zoom-image-overlay",this.state.isHovering&&ft.hover,this.state.isZooming&&ft.zoom,this.state.isHovering&&"carousel__zoom-image-overlay--hovering",this.state.isZooming&&"carousel__zoom-image-overlay--zooming",a]),g={};return(this.state.isHovering||this.state.isZooming)&&(g.transformOrigin="".concat(this.state.x," ").concat(this.state.y),g.transform="scale(".concat(this.state.scale,")")),Y.a.createElement(u,c({className:p},d),Y.a.createElement(dt,c({alt:t,className:h,tag:r,src:s,onLoad:this.handleImageComplete,onError:this.handleImageComplete},n)),Y.a.createElement(dt,{className:m,tag:"div",src:l||s,style:g,isBgImage:!0,onFocus:this.handleOnMouseOver,onMouseOver:this.handleOnMouseOver,onBlur:this.handleOnMouseOut,onMouseOut:this.handleOnMouseOut,onMouseMove:this.handleOnMouseMove,onTouchStart:this.handleOnTouchStart,onTouchEnd:this.handleOnTouchEnd,onTouchMove:this.handleOnTouchMove}),this.renderLoading())}}],[{key:"midpointBetweenTwoTouches",value:function(e){var t=e.x1,n=e.y1;return{x:(t+e.x2)/2,y:(n+e.y2)/2}}},{key:"distanceBetweenTwoTouches",value:function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return Math.sqrt(Math.pow(r-t,2)+Math.pow(i-n,2))}}]),t}(Y.a.Component),l(ot,"propTypes",{alt:K.string,bgImageProps:K.object,bgImageTag:K.string,carouselStore:K.object.isRequired,className:K.string,imageClassName:K.string,overlayClassName:K.string,spinner:K.func,src:K.string.isRequired,srcZoomed:K.string,tag:K.string,isPinchZoomEnabled:K.bool}),l(ot,"defaultProps",{alt:void 0,bgImageProps:{},bgImageTag:"div",className:null,imageClassName:null,overlayClassName:null,isPinchZoomEnabled:!0,spinner:null,srcZoomed:null,tag:"div"}),at),vt=(Z(wt,function(){return{}}),{slide:"slide___3-Nqo",slideHorizontal:"slideHorizontal___1NzNV",slideInner:"slideInner___2mfX9",focusRing:"focusRing___1airF"}),yt=["ariaLabel","carouselStore","children","className","classNameHidden","classNameVisible","currentSlide","index","innerClassName","innerTag","naturalSlideHeight","naturalSlideWidth","onBlur","onFocus","orientation","slideSize","style","tabIndex","tag","totalSlides","visibleSlides","isIntrinsicHeight"],bt=(lt=st=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.handleOnFocus=r.handleOnFocus.bind(g(r)),r.handleOnBlur=r.handleOnBlur.bind(g(r)),r.state={focused:!1},r}u(t,e);var n=v(t);return s(t,[{key:"isVisible",value:function(){var e=this.props,t=e.currentSlide,n=e.index,r=e.visibleSlides;return n>=t&&n<t+r}},{key:"handleOnFocus",value:function(e){var t=this,n=this.props.onFocus;this.setState({focused:!0},function(){null!==n&&n.call(t,e)})}},{key:"handleOnBlur",value:function(e){var t=this,n=this.props.onBlur;this.setState({focused:!1},function(){null!==n&&n.call(t,e)})}},{key:"renderFocusRing",value:function(){return this.state.focused?Y.a.createElement("div",{className:[vt.focusRing,"carousel__slide-focus-ring"].join(" ")}):null}},{key:"render",value:function(){var e=this,t=this.props,n=t.ariaLabel,r=(t.carouselStore,t.children,t.className),i=t.classNameHidden,o=t.classNameVisible,a=(t.currentSlide,t.index,t.innerClassName),s=t.innerTag,l=t.naturalSlideHeight,u=t.naturalSlideWidth,d=(t.onBlur,t.onFocus,t.orientation),p=t.slideSize,h=t.style,m=t.tabIndex,g=t.tag,w=t.totalSlides,v=(t.visibleSlides,t.isIntrinsicHeight),y=f(t,yt),b={};"horizontal"===d?(b.width=j(p),b.paddingBottom=j(100*l/(u*w))):(b.width=j(100),b.paddingBottom=j(100*l/u));var S={};v&&("horizontal"===d?b.height="unset":b.width="unset",b.paddingBottom="unset",S.position="unset");var E=c({},b,h),_=this.isVisible(),C=T([vt.slide,"horizontal"===d&&vt.slideHorizontal,"carousel__slide",this.state.focused&&"carousel__slide--focused",_&&o,_&&"carousel__slide--visible",!_&&i,!_&&"carousel__slide--hidden",r]),x=T([vt.slideInner,"carousel__inner-slide",a]),k=this.isVisible()?0:-1,O="number"==typeof m?m:k;return Y.a.createElement(g,c({ref:function(t){e.tagRef=t},tabIndex:O,"aria-selected":this.isVisible(),"aria-label":n,role:"option",onFocus:this.handleOnFocus,onBlur:this.handleOnBlur,className:C,style:E},y),Y.a.createElement(s,{ref:function(t){e.innerTagRef=t},className:x,style:S},this.props.children,this.renderFocusRing()))}}]),t}(Y.a.PureComponent),l(st,"propTypes",{ariaLabel:K.string,carouselStore:K.object,children:J.children,className:K.string,classNameHidden:K.string,classNameVisible:K.string,currentSlide:K.number.isRequired,index:K.number.isRequired,innerClassName:K.string,innerTag:K.string,naturalSlideHeight:K.number.isRequired,naturalSlideWidth:K.number.isRequired,onBlur:K.func,onFocus:K.func,orientation:J.orientation.isRequired,slideSize:K.number.isRequired,style:K.object,tabIndex:K.number,tag:K.string,totalSlides:K.number.isRequired,visibleSlides:K.number.isRequired,isIntrinsicHeight:K.bool}),l(st,"defaultProps",{ariaLabel:"slide",carouselStore:null,children:null,className:null,classNameHidden:null,classNameVisible:null,innerClassName:null,innerTag:"div",onBlur:null,onFocus:null,style:{},tabIndex:null,tag:"div",isIntrinsicHeight:!1}),lt),St=Z(bt,function(e){return{currentSlide:e.currentSlide,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,slideSize:e.slideSize,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,isIntrinsicHeight:e.isIntrinsicHeight}}),Et=function(){function e(){o(this,e)}return s(e,[{key:"parents",value:function(e,t){return null===e.parentNode?t:this.parents(e.parentNode,t.concat([e]))}},{key:"scrollParent",value:function(t){for(var n=this.parents(t.parentNode,[]),r=0;r<n.length;r+=1)if(e.scroll(n[r]))return n[r];return document.scrollingElement||document.documentElement}},{key:"getScrollParent",value:function(t){return e.isNodeValid(t)?this.scrollParent(t):null}}],[{key:"style",value:function(e,t){return getComputedStyle(e,null).getPropertyValue(t)}},{key:"overflow",value:function(t){return e.style(t,"overflow")+e.style(t,"overflow-y")+e.style(t,"overflow-x")}},{key:"scroll",value:function(t){return/(auto|scroll)/.test(e.overflow(t))}},{key:"isNodeValid",value:function(e){return e instanceof HTMLElement||e instanceof SVGElement}}]),e}(),_t={horizontalSlider:"horizontalSlider___281Ls",horizontalSliderTray:"horizontalSliderTray___1L-0W",verticalSlider:"verticalSlider___34ZFD",verticalSliderTray:"verticalSliderTray___267D8",verticalTray:"verticalTray___12Key",verticalSlideTrayWrap:"verticalSlideTrayWrap___2nO7o",sliderTray:"sliderTray___-vHFQ",sliderAnimation:"sliderAnimation___300FY",masterSpinnerContainer:"masterSpinnerContainer___1Z6hB"},Ct=["ariaLabel","carouselStore","children","className","classNameAnimation","classNameTray","classNameTrayWrap","currentSlide","disableAnimation","disableKeyboard","dragEnabled","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","masterSpinnerFinished","moveThreshold","naturalSlideHeight","naturalSlideWidth","onMasterSpinner","orientation","playDirection","privateUnDisableAnimation","slideSize","slideTraySize","spinner","style","tabIndex","totalSlides","touchEnabled","trayProps","trayTag","visibleSlides","isIntrinsicHeight"],xt=["dragStep","step","infinite"],kt=["className","onClickCapture","onMouseDown","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","ref","style"],Ot=(ut=ct=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.getSliderRef=r.getSliderRef.bind(g(r)),r.handleDocumentScroll=r.handleDocumentScroll.bind(g(r)),r.handleOnClickCapture=r.handleOnClickCapture.bind(g(r)),r.handleOnKeyDown=r.handleOnKeyDown.bind(g(r)),r.handleOnMouseDown=r.handleOnMouseDown.bind(g(r)),r.handleOnMouseMove=r.handleOnMouseMove.bind(g(r)),r.handleOnMouseUp=r.handleOnMouseUp.bind(g(r)),r.handleOnTouchCancel=r.handleOnTouchCancel.bind(g(r)),r.handleOnTouchEnd=r.handleOnTouchEnd.bind(g(r)),r.handleOnTouchMove=r.handleOnTouchMove.bind(g(r)),r.handleOnTouchStart=r.handleOnTouchStart.bind(g(r)),r.playBackward=r.playBackward.bind(g(r)),r.playForward=r.playForward.bind(g(r)),r.callCallback=r.callCallback.bind(g(r)),r.state={cancelNextClick:!1,deltaX:0,deltaY:0,isBeingMouseDragged:!1,isBeingTouchDragged:!1,startX:0,startY:0},r.interval=null,r.isDocumentScrolling=null,r.moveTimer=null,r.originalOverflow=null,r.scrollParent=null,r.scrollStopTimer=null,r}u(t,e);var n=v(t);return s(t,[{key:"componentDidMount",value:function(){this.props.lockOnWindowScroll&&window.addEventListener("scroll",this.handleDocumentScroll,!1),document.documentElement.addEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.addEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.addEventListener("mouseup",this.handleOnMouseUp,!1),this.props.isPlaying&&this.play()}},{key:"componentDidUpdate",value:function(e){!e.isPlaying&&this.props.isPlaying&&this.play(),e.isPlaying&&!this.props.isPlaying&&this.stop(),!e.isPageScrollLocked&&this.props.isPageScrollLocked&&this.lockScroll(),e.isPageScrollLocked&&!this.props.isPageScrollLocked&&this.unlockScroll(),!1===e.privateUnDisableAnimation&&!0===this.props.privateUnDisableAnimation&&this.props.carouselStore.setStoreState({privateUnDisableAnimation:!1,disableAnimation:!1})}},{key:"componentWillUnmount",value:function(){document.documentElement.removeEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.removeEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.removeEventListener("mouseup",this.handleOnMouseUp,!1),window.removeEventListener("scroll",this.handleDocumentScroll,!1),this.stop(),window.cancelAnimationFrame.call(window,this.moveTimer),window.clearTimeout(this.scrollStopTimer),this.isDocumentScrolling=null,this.moveTimer=null,this.scrollStopTimer=null}},{key:"getSliderRef",value:function(e){this.sliderTrayElement=e}},{key:"fakeOnDragStart",value:function(e){var t=e.screenX,n=e.screenY,r=e.touchDrag,i=void 0!==r&&r,o=e.mouseDrag,a=void 0!==o&&o;this.props.carouselStore.setStoreState({isPlaying:!1}),window.cancelAnimationFrame.call(window,this.moveTimer),"vertical"===this.props.orientation&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),this.setState({isBeingTouchDragged:i,isBeingMouseDragged:a,startX:t,startY:n})}},{key:"fakeOnDragMove",value:function(e,t){var n=this;this.moveTimer=window.requestAnimationFrame.call(window,function(){n.setState(function(n){return{deltaX:e-n.startX,deltaY:t-n.startY}})})}},{key:"fakeOnDragEnd",value:function(){window.cancelAnimationFrame.call(window,this.moveTimer),this.computeCurrentSlide(),"vertical"===this.props.orientation&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1}),this.setState({deltaX:0,deltaY:0,isBeingTouchDragged:!1,isBeingMouseDragged:!1}),this.isDocumentScrolling=!this.props.lockOnWindowScroll&&null}},{key:"callCallback",value:function(e,t){var n=this.props.trayProps;n&&"function"==typeof n[e]&&(t.persist(),n[e](t))}},{key:"handleOnMouseDown",value:function(e){if(!this.props.dragEnabled)return void this.callCallback("onMouseDown",e);e.preventDefault(),this.fakeOnDragStart({screenX:e.screenX,screenY:e.screenY,mouseDrag:!0}),this.callCallback("onMouseDown",e)}},{key:"handleOnMouseMove",value:function(e){this.state.isBeingMouseDragged&&(this.setState({cancelNextClick:!0}),e.preventDefault(),this.fakeOnDragMove(e.screenX,e.screenY))}},{key:"handleOnMouseUp",value:function(e){this.state.isBeingMouseDragged&&(e.preventDefault(),this.fakeOnDragEnd())}},{key:"handleOnClickCapture",value:function(e){if(!this.state.cancelNextClick)return void this.callCallback("onClickCapture",e);e.preventDefault(),this.setState({cancelNextClick:!1}),this.callCallback("onClickCapture",e)}},{key:"handleOnTouchStart",value:function(e){if(!this.props.touchEnabled)return void this.callCallback("onTouchStart",e);"vertical"===this.props.orientation&&e.preventDefault();var t=e.targetTouches[0];this.fakeOnDragStart({screenX:t.screenX,screenY:t.screenY,touchDrag:!0}),this.callCallback("onTouchStart",e)}},{key:"handleDocumentScroll",value:function(){var e=this;this.props.touchEnabled&&(this.isDocumentScrolling=!0,window.clearTimeout(this.scrollStopTimer),this.scrollStopTimer=window.setTimeout(function(){e.isDocumentScrolling=!1},66))}},{key:"handleOnTouchMove",value:function(e){if(!this.props.touchEnabled||this.props.lockOnWindowScroll&&this.isDocumentScrolling)return void this.callCallback("onTouchMove",e);window.cancelAnimationFrame.call(window,this.moveTimer);var t=e.targetTouches[0];t&&(this.fakeOnDragMove(t.screenX,t.screenY),this.callCallback("onTouchMove",e))}},{key:"forward",value:function(){var e=this.props,t=e.currentSlide,n=e.step,r=e.totalSlides,i=e.visibleSlides;return Math.min(t+n,r-i)}},{key:"backward",value:function(){var e=this.props,t=e.currentSlide,n=e.step;return Math.max(t-n,0)}},{key:"handleOnKeyDown",value:function(e){var t=e.keyCode,n=this.props,r=n.carouselStore,i=n.currentSlide,o=n.disableKeyboard,a=n.totalSlides,s=n.visibleSlides,l={};!0===o||a<=s||(37===t&&(e.preventDefault(),this.focus(),l.currentSlide=Math.max(0,i-1),l.isPlaying=!1),39===t&&(e.preventDefault(),this.focus(),l.currentSlide=Math.min(a-s,i+1),l.isPlaying=!1),r.setStoreState(l))}},{key:"playForward",value:function(){var e=this.props,t=e.carouselStore,n=e.currentSlide;t.setStoreState({currentSlide:this.forward()===n?0:this.forward()})}},{key:"playBackward",value:function(){var e=this.props,t=e.carouselStore,n=e.currentSlide,r=e.totalSlides,i=e.visibleSlides;t.setStoreState({currentSlide:this.backward()===n?r-i:this.backward()})}},{key:"play",value:function(){var e=this.props.playDirection;this.interval=setInterval("forward"===e?this.playForward:this.playBackward,this.props.interval)}},{key:"stop",value:function(){window.clearInterval(this.interval),this.interval=null}},{key:"lockScroll",value:function(){var e=new Et;this.scrollParent=e.getScrollParent(this.sliderTrayElement),this.scrollParent&&(this.originalOverflow=this.originalOverflow||this.scrollParent.style.overflow,this.scrollParent.style.overflow="hidden")}},{key:"unlockScroll",value:function(){this.scrollParent&&(this.scrollParent.style.overflow=this.originalOverflow,this.originalOverflow=null,this.scrollParent=null)}},{key:"computeCurrentSlide",value:function(){var e=t.slideSizeInPx(this.props.orientation,this.sliderTrayElement.clientWidth,this.sliderTrayElement.clientHeight,this.props.totalSlides),n=t.slidesMoved(this.props.moveThreshold,this.props.orientation,this.state.deltaX,this.state.deltaY,e,this.props.dragStep),r=this.props.totalSlides-Math.min(this.props.totalSlides,this.props.visibleSlides),i=Q({min:0,max:r,x:this.props.currentSlide+n});this.props.infinite&&(this.props.currentSlide>=r&&n>0&&(i=0),0===this.props.currentSlide&&n<0&&(i=r)),this.props.carouselStore.setStoreState({currentSlide:i})}},{key:"focus",value:function(){this.sliderElement.focus()}},{key:"handleOnTouchEnd",value:function(e){this.endTouchMove(),this.callCallback("onTouchEnd",e)}},{key:"handleOnTouchCancel",value:function(e){this.endTouchMove(),this.callCallback("onTouchCancel",e)}},{key:"endTouchMove",value:function(){this.props.touchEnabled&&this.fakeOnDragEnd()}},{key:"renderMasterSpinner",value:function(){var e=this.props,t=e.hasMasterSpinner,n=e.masterSpinnerFinished,r=e.spinner;return t&&!n?("function"==typeof this.props.onMasterSpinner&&this.props.onMasterSpinner(),Y.a.createElement("div",{className:T([_t.masterSpinnerContainer,"carousel__master-spinner-container"])},r&&r(),!r&&Y.a.createElement(mt,null))):null}},{key:"render",value:function(){var e=this,t=this.props,n=t.ariaLabel,r=(t.carouselStore,t.children),i=t.className,o=t.classNameAnimation,a=t.classNameTray,s=t.classNameTrayWrap,l=t.currentSlide,u=t.disableAnimation,d=(t.disableKeyboard,t.dragEnabled,t.hasMasterSpinner,t.interval,t.isPageScrollLocked,t.isPlaying,t.lockOnWindowScroll,t.masterSpinnerFinished,t.moveThreshold,t.naturalSlideHeight),p=t.naturalSlideWidth,h=(t.onMasterSpinner,t.orientation),m=(t.playDirection,t.privateUnDisableAnimation,t.slideSize),g=t.slideTraySize,w=(t.spinner,t.style),v=t.tabIndex,y=(t.totalSlides,t.touchEnabled,t.trayProps),b=t.trayTag,S=t.visibleSlides,E=t.isIntrinsicHeight,_=f(t,Ct),C=c({},w),x={};"vertical"===h&&(x.height=0,x.paddingBottom=j(100*d*S/p),x.width=j(100));var k={},O=j(m*l*-1);(this.state.isBeingTouchDragged||this.state.isBeingMouseDragged||u)&&(k.transition="none"),E&&(k.display="flex",k.alignItems="stretch"),"vertical"===h?(k.transform="translateY(".concat(O,") translateY(").concat(this.state.deltaY,"px)"),k.width=j(100),k.flexDirection="column"):(k.width=j(g),k.transform="translateX(".concat(O,") translateX(").concat(this.state.deltaX,"px)"),k.flexDirection="row");var N=T(["vertical"===h?_t.verticalSlider:_t.horizontalSlider,"carousel__slider","vertical"===h?"carousel__slider--vertical":"carousel__slider--horizontal",i]),M=T([_t.sliderTrayWrap,"carousel__slider-tray-wrapper","vertical"===h?_t.verticalSlideTrayWrap:_t.horizontalTrayWrap,"vertical"===h?"carousel__slider-tray-wrap--vertical":"carousel__slider-tray-wrap--horizontal",s]),P=T([_t.sliderTray,o||_t.sliderAnimation,"carousel__slider-tray","vertical"===h?_t.verticalTray:_t.horizontalTray,"vertical"===h?"carousel__slider-tray--vertical":"carousel__slider-tray--horizontal",a]),D=null!==v?v:0,F=(_.dragStep,_.step,_.infinite,f(_,xt)),A=(y.className,y.onClickCapture,y.onMouseDown,y.onTouchCancel,y.onTouchEnd,y.onTouchMove,y.onTouchStart,y.ref,y.style,f(y,kt));return Y.a.createElement("div",c({ref:function(t){e.sliderElement=t},className:N,"aria-live":"polite","aria-label":n,style:C,tabIndex:D,onKeyDown:this.handleOnKeyDown,role:"listbox"},F),Y.a.createElement("div",{className:M,style:x},Y.a.createElement(b,c({ref:this.getSliderRef,className:P,style:k,onTouchStart:this.handleOnTouchStart,onTouchMove:this.handleOnTouchMove,onTouchEnd:this.handleOnTouchEnd,onTouchCancel:this.handleOnTouchCancel,onMouseDown:this.handleOnMouseDown,onClickCapture:this.handleOnClickCapture},A),r),this.renderMasterSpinner()))}}],[{key:"slideSizeInPx",value:function(e,t,n,r){return("horizontal"===e?t:n)/r}},{key:"slidesMoved",value:function(e,t,n,r,i,o){var a="horizontal"===t?n:r,s=Math.abs(Math.round(a/i)),l=Math.abs(a)>=i*e?o:0,c=Math.max(l,s);if(a<0)return c;var u=-c;return 0===u?0:u}}]),t}(Y.a.Component),l(ct,"propTypes",{ariaLabel:K.string,carouselStore:K.object.isRequired,children:K.node.isRequired,className:K.string,classNameAnimation:K.string,classNameTray:K.string,classNameTrayWrap:K.string,currentSlide:K.number.isRequired,disableAnimation:K.bool,disableKeyboard:K.bool,dragEnabled:K.bool.isRequired,dragStep:K.number,hasMasterSpinner:K.bool.isRequired,infinite:K.bool,interval:K.number.isRequired,isPageScrollLocked:K.bool.isRequired,isPlaying:K.bool.isRequired,lockOnWindowScroll:K.bool.isRequired,masterSpinnerFinished:K.bool.isRequired,moveThreshold:K.number,naturalSlideHeight:K.number.isRequired,naturalSlideWidth:K.number.isRequired,onMasterSpinner:K.func,orientation:J.orientation.isRequired,playDirection:J.direction.isRequired,privateUnDisableAnimation:K.bool,slideSize:K.number.isRequired,slideTraySize:K.number.isRequired,spinner:K.func,step:K.number.isRequired,style:K.object,tabIndex:K.number,totalSlides:K.number.isRequired,touchEnabled:K.bool.isRequired,trayProps:K.shape({className:K.string,onClickCapture:K.func,onMouseDown:K.func,onTouchCancel:K.func,onTouchEnd:K.func,onTouchMove:K.func,onTouchStart:K.func,ref:K.shape({}),style:K.string}),trayTag:K.string,visibleSlides:K.number,isIntrinsicHeight:K.bool}),l(ct,"defaultProps",{ariaLabel:"slider",className:null,classNameAnimation:null,classNameTray:null,classNameTrayWrap:null,disableAnimation:!1,disableKeyboard:!1,dragStep:1,infinite:!1,moveThreshold:.1,onMasterSpinner:null,privateUnDisableAnimation:!1,spinner:null,style:{},tabIndex:null,trayProps:{},trayTag:"div",visibleSlides:1,isIntrinsicHeight:!1}),ut),Tt=Z(Ot,function(e){return{currentSlide:e.currentSlide,disableAnimation:e.disableAnimation,privateUnDisableAnimation:e.privateUnDisableAnimation,disableKeyboard:e.disableKeyboard,dragEnabled:e.dragEnabled,hasMasterSpinner:e.hasMasterSpinner,infinite:e.infinite,interval:e.interval,isPageScrollLocked:e.isPageScrollLocked,isPlaying:e.isPlaying,lockOnWindowScroll:e.lockOnWindowScroll,masterSpinnerFinished:e.masterSpinnerFinished,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,playDirection:e.playDirection,slideSize:e.slideSize,slideTraySize:e.slideTraySize,step:e.step,dragStep:e.dragStep,totalSlides:e.totalSlides,touchEnabled:e.touchEnabled,visibleSlides:e.visibleSlides,isIntrinsicHeight:e.isIntrinsicHeight}})},function(e,t,n){"use strict";var r=n(82),i=n.n(r),o=n(83),a=n.n(o),s=n(30),l=n.n(s),c=n(207),u=n(84),d=n(208),p=wp.i18n.__,h=wp.blocks.registerBlockType,m=wp,f=m.apiFetch,g=wp.data,w=g.registerStore,v=g.withSelect,y=wp.blockEditor.InspectorControls,b=wp.components,S=b.PanelBody,E=b.PanelRow,_=b.TextControl,C=b.ColorPalette,x=b.RadioControl,k=b.ToggleControl,O=b.SelectControl,T=b.RangeControl,N=window.monsterinsights_gutenberg_tool_vars,M={setThemes:function(e){return{type:"SET_THEMES",themes:e}},receiveThemes:function(e){return{type:"RECEIVE_THEMES",path:e}}};w("monsterinsights/v1/popular-posts/widget",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{themes:{}},t=arguments[1];switch(t.type){case"SET_THEMES":return l()({},e,{themes:t.themes})}return e},actions:M,selectors:{receiveThemes:function(e){return e.themes}},controls:{RECEIVE_THEMES:function(e){return f({path:e.path})}},resolvers:{receiveThemes:a.a.mark(function e(t){var n,r;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M.receiveThemes("/monsterinsights/v1/popular-posts/themes/widget");case 2:if(n=e.sent,void 0===n.themes){e.next=6;break}for(r in n.themes)n.themes.hasOwnProperty(r)&&(n.themes[r].value=r);return e.abrupt("return",M.setThemes(n));case 6:case"end":return e.stop()}},e,this)})}}),h("monsterinsights/popular-posts-widget",{title:p("Popular Posts","google-analytics-for-wordpress"),description:p("Add popular posts from MonsterInsights","google-analytics-for-wordpress"),category:"widgets",icon:c.a.widgetpop,keywords:[p("Popular","google-analytics-for-wordpress"),p("Posts","google-analytics-for-wordpress"),p("Widget","google-analytics-for-wordpress"),"MonsterInsights"],example:{},attributes:{theme:{type:"string"},title_size:{type:"number"},title_color:{type:"string"},label_color:{type:"string"},label_text:{type:"string"},label_background:{type:"string"},background_color:{type:"string"},background_border:{type:"string"},meta_color:{type:"string"},meta_size:{type:"string"},meta_author:{type:"boolean"},meta_date:{type:"boolean"},meta_comments:{type:"boolean"},comments_color:{type:"string"},columns:{type:"number",default:1},widget_title:{type:"boolean"},widget_title_text:{type:"string"},post_count:{type:"number",default:5},categories:{type:"array",default:[]}},edit:v(function(e){return{themes:e("monsterinsights/v1/popular-posts/widget").receiveThemes()}})(function(e){var t=e.attributes,n=t.theme,r=(t.title_size,t.title_color,t.label_color,t.label_text,t.label_background,t.background_color,t.background_border,t.meta_color,t.meta_size,t.meta_author,t.meta_comments,t.meta_date,t.comments_color,t.columns),o=t.widget_title,a=t.widget_title_text,s=t.post_count,l=t.categories,h=e.themes,m=e.setAttributes,f=[{name:"pink",color:"#F58EA8"},{name:"red",color:"#CD3034"},{name:"orange",color:"#FD6A21"},{name:"yellow",color:"#FBB82B"},{name:"green",color:"#7FDBB6"},{name:"green",color:"#21CF86"},{name:"blue",color:"#91D2FA"},{name:"blue",color:"#1B95E0"},{name:"purple",color:"#9A57DD"},{name:"gray",color:"#EEEEEE"},{name:"gray",color:"#ACB8C3"},{name:"black",color:"#000000"}],g=void 0!==h.themes?h.themes:{},w=void 0===e.attributes.theme?h.selected:n,v=void 0!==w&&void 0!==g[w]?g[w]:{},b=void 0!==v.styles?v.styles:{},M={};for(var j in b)if(b.hasOwnProperty(j))for(var P in b[j])if(b[j].hasOwnProperty(P)){var D=j+"_"+P;void 0===e.attributes[D]?M[D]=b[j][P]:M[D]=e.attributes[D],"on"===M[D]&&(M[D]=!0),"off"===M[D]&&(M[D]=!1)}var F=function(e,t){var n=[1,2,3,4,5,6,7,8,9,10];return 2===e&&(n=[2,4,6,8,10]),3===e&&(n=[3,6,9]),t&&(n=n.map(function(e){return{value:e,label:e}})),n},A=function(){if(void 0!==b.meta.author)return wp.element.createElement(k,{label:p("Display Author","google-analytics-for-wordpress"),checked:M.meta_author,onChange:function(e){m(i()({},"meta_author",e))}})},L=function(){if(void 0!==b.meta.date)return wp.element.createElement(k,{label:p("Display Date","google-analytics-for-wordpress"),checked:M.meta_date,onChange:function(e){m(i()({},"meta_date",e))}})},B=function(){if(void 0!==b.meta.comments)return wp.element.createElement(k,{label:p("Display Comments","google-analytics-for-wordpress"),checked:M.meta_comments,onChange:function(e){m(i()({},"meta_comments",e))}})},z=function(){return wp.element.createElement("span",{className:"monsterinsights-wide-column monsterinsights-wide-column-one"},wp.element.createElement("span",null),wp.element.createElement("span",null))},R=function(){return wp.element.createElement("span",{className:"monsterinsights-wide-column monsterinsights-wide-column-two"},wp.element.createElement("span",null),wp.element.createElement("span",null),wp.element.createElement("span",null),wp.element.createElement("span",null))},H=function(){return wp.element.createElement("span",{className:"monsterinsights-wide-column monsterinsights-wide-column-three"},wp.element.createElement("span",null),wp.element.createElement("span",null),wp.element.createElement("span",null),wp.element.createElement("span",null),wp.element.createElement("span",null),wp.element.createElement("span",null))},I=function(e,t){var n=M[t];return wp.element.createElement(T,{key:"monsterinsights-popular-posts-input"+t,label:e,value:parseInt(n),min:1,max:100,onChange:function(e){return m(i()({},t,""===e?"":parseInt(e)))}})},q=function(e,t){var n=M[t];return wp.element.createElement(_,{key:"monsterinsights-popular-posts-input"+t,label:e,type:"text",value:n,onChange:function(e){return m(i()({},t,e))}})},V=function(e,t){var n=M[t];return[wp.element.createElement("label",{key:"monsterinsights-popular-posts-label"+t},e),wp.element.createElement(C,{key:"monsterinsights-popular-posts-input"+t,value:n,colors:f,onChange:function(e){m(i()({},t,e))}})]},W=function(e,t){if(e.length>0&&void 0!==e[t]){var n=e[t];return wp.element.createElement("div",{className:"monsterinsights-widget-popular-posts-image"},wp.element.createElement("img",{src:N.vue_assets_path+"img/"+n}))}},Z=function(){if(void 0!==b.label)return wp.element.createElement("span",{style:{color:M.label_color,backgroundColor:M.label_background},className:"monsterinsights-widget-popular-posts-label"},M.label_text)},U=function(){if(void 0!==b.meta)return[wp.element.createElement("div",{className:"monsterinsights-widget-popular-posts-meta",key:"monsterinsights-widget-popular-posts-meta-options",style:{color:M.meta_color,fontSize:M.meta_size+"px"}},Y(),X(),K()),wp.element.createElement("span",{key:"monsterinsights-widget-popular-posts-comments-options"},G())]},Y=function(){if(M.meta_author)return wp.element.createElement("span",{className:"monsterinsights-widget-popular-posts-author"},"by Aazim Akhtar")},X=function(){if(M.meta_author&&M.meta_date)return wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:b.meta.separator}})},G=function(){if(void 0!==b.meta&&void 0!==b.meta.comments&&M.meta_comments){var e=void 0!==b.comments?M.comments_color:M.meta_color;return wp.element.createElement("span",{className:"monsterinsights-widget-popular-posts-comments",style:{color:e,fontSize:M.meta_size+"px"}},c.a.comments(e)," 24")}},K=function(){if(M.meta_date)return wp.element.createElement("span",{className:"monsterinsights-widget-popular-posts-date"},"Yesterday")},$=function(e){for(;e.length<=10;)e=e.concat(e);return e};return[wp.element.createElement(y,{key:"monsterinsights-popular-posts-widget-inspector-controls"},wp.element.createElement(S,{title:p("Theme","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-theme"},wp.element.createElement(E,{key:"monsterinsights-popular-posts-widget-theme-row"},wp.element.createElement(u.a,{id:"monsterinsights-popular-posts-widget-theme",options:g,selected:w,icons:c.a,onChange:function(e){m({theme:e})}}))),function(){if(void 0!==b.title){var e=[];return void 0!==b.title.size&&e.push(I(p("Title Font Size","google-analytics-for-wordpress"),"title_size")),void 0!==b.title.color&&e.push(V(p("Title Color","google-analytics-for-wordpress"),"title_color")),wp.element.createElement(S,{title:p("Title Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-title"},e)}}(),function(){if(void 0!==b.background&&void 0!==b.background.color){var e=[];return void 0!==b.background.color&&e.push(V(p("Background Color","google-analytics-for-wordpress"),"background_color")),wp.element.createElement(S,{title:p("Background Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-background"}," ",e," ")}}(),function(){if(void 0!==b.label){var e=[];return void 0!==b.label.text&&e.push(q(p("Label Text","google-analytics-for-wordpress"),"label_text")),void 0!==b.label.color&&e.push(V(p("Label Color","google-analytics-for-wordpress"),"label_color")),void 0!==b.label.background&&e.push(V(p("Label Background","google-analytics-for-wordpress"),"label_background")),wp.element.createElement(S,{title:p("Label Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-label"}," ",e," ")}}(),function(){var e=[];if(void 0!==b.border&&void 0!==b.border.color&&e.push(V(p("Border Color","google-analytics-for-wordpress"),"borderColor")),void 0!==b.border&&void 0!==b.border.color2&&e.push(V(p("Bottom Border Color","google-analytics-for-wordpress"),"borderColor2")),void 0!==b.background&&void 0!==b.background.border&&e.push(V(p("Border Color","google-analytics-for-wordpress"),"background_border")),0!==e.length)return wp.element.createElement(S,{title:p("Border Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-inline-border"}," ",e," ")}(),function(){if(void 0!==b.meta){var e=[];return void 0!==b.meta.size&&e.push(I(p("Meta Font Size","google-analytics-for-wordpress"),"meta_size")),void 0!==b.meta.color&&e.push(V(p("Meta Color","google-analytics-for-wordpress"),"meta_color")),wp.element.createElement(S,{title:p("Meta Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-meta-styles"},e)}}(),function(){if(void 0!==b.comments)return wp.element.createElement(S,{title:p("Comment Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-comment-styles"},V(p("Comment Color","google-analytics-for-wordpress"),"comments_color"))}(),function(){return wp.element.createElement(S,{title:p("Wide-Layout Options","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-columns"},wp.element.createElement(x,{label:p("Choose Layout","google-analytics-for-wordpress"),help:p("Adjust the number of columns displayed when the widget is placed in a wide container.","google-analytics-for-wordpress"),className:"monsterinsights-wide-column-options",key:"monsterinsights-popular-posts-widget-columns-control",options:[{value:1,label:z()},{value:2,label:R()},{value:3,label:H()}],selected:r,onChange:function(e){m(i()({},"columns",""===e?"":parseInt(e)));var t=F(parseInt(e));-1===t.indexOf(s)&&m(i()({},"post_count",parseInt(t[0])))}}),wp.element.createElement(O,{label:p("Post Count","google-analytics-for-wordpress"),help:p("Number of posts displayed.","google-analytics-for-wordpress"),options:F(r,!0),value:s,key:"monsterinsights-popular-posts-widget-post-count",onChange:function(e){m(i()({},"post_count",parseInt(e)))}}))}(),function(){if(void 0!==b.meta)return wp.element.createElement(S,{title:p("Display Options","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-meta-options"},A(),L(),B())}(),function(){return wp.element.createElement(S,{title:p("Behavior Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-behavior-options"},wp.element.createElement(k,{label:p("Display Widget Title","google-analytics-for-wordpress"),checked:o,onChange:function(e){m(i()({},"widget_title",e))}}),wp.element.createElement(_,{key:"monsterinsights-popular-posts-input-widget-title-text",label:p("Widget Title","google-analytics-for-wordpress"),type:"text",value:a,onChange:function(e){return m(i()({},"widget_title_text",e))}}),wp.element.createElement(d.a,{label:p("Only Show Posts From These Categories","google-analytics-for-wordpress"),slug:"category",onUpdateTerms:function(e){m(i()({},"categories",e))},terms:l}))}()),wp.element.createElement("div",{key:"monsterinsights-popular-posts-widget-preview"},wp.element.createElement("div",{className:"monsterinsights-widget-popular-posts-widget monsterinsights-widget-popular-posts-"+w+" monsterinsights-widget-popular-posts-columns-"+r},function(){if(o)return wp.element.createElement("h2",{className:"monsterinsights-widget-popular-posts-widget-title"},a)}(),wp.element.createElement("div",{className:"monsterinsights-widget-popular-posts-text"},function(){if(void 0!==v.list&&void 0!==v.list.items){var e=$(v.list.items),t=void 0!==v.list.images?$(v.list.images):[],n=[];for(var r in e){if(parseInt(r)===parseInt(s))break;n.push(wp.element.createElement("li",{key:"monsterinsights-popular-posts-preview-list-item-"+r,style:{backgroundColor:M.background_color,borderColor:M.background_border}},W(t,r),wp.element.createElement("div",{className:"monsterinsights-widget-popular-posts-text"},Z(),wp.element.createElement("a",{className:"monsterinsights-widget-popular-posts-title",style:{color:M.title_color,fontSize:M.title_size+"px"}},e[r]),U())))}return wp.element.createElement("ul",{className:"monsterinsights-widget-popular-posts-list"},n)}}())))]}),save:function(e){return null}})},function(e,t,n){"use strict";var r={};r.widgetpop=wp.element.createElement("svg",{width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 0C0.895431 0 0 0.895431 0 2V10C0 11.1046 0.895431 12 2 12H14C15.1046 12 16 11.1046 16 10V2C16 0.895431 15.1046 0 14 0H2ZM8.94046 4.70557L8 2L7.05954 4.70557L4.19577 4.76393L6.47831 6.49443L5.64886 9.23607L8 7.6L10.3511 9.23607L9.52169 6.49443L11.8042 4.76393L8.94046 4.70557ZM0 14H14V16H0V14ZM10 18H0V20H10V18Z",fill:"#555D66"})),r.alpha=wp.element.createElement("svg",{width:"74",height:"46",viewBox:"0 0 74 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"74",height:"46",rx:"5",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"7.40002",y:"12",width:"59.2",height:"9",rx:"2",fill:"#338EEF"}),wp.element.createElement("rect",{x:"7.40002",y:"25",width:"51.8",height:"9",rx:"2",fill:"#338EEF"})),r.beta=wp.element.createElement("svg",{width:"74",height:"46",viewBox:"0 0 74 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 15C0 13.3431 1.34315 12 3 12H4V34H3C1.34315 34 0 32.6569 0 31V15Z",fill:"#1170D5"}),wp.element.createElement("rect",{x:"12",y:"12",width:"54",height:"9",rx:"2",fill:"#4296F0"}),wp.element.createElement("rect",{x:"12",y:"25",width:"44",height:"9",rx:"2",fill:"#4296F0"})),r.charlie=wp.element.createElement("svg",{width:"74",height:"46",viewBox:"0 0 74 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"74",height:"46",rx:"3",fill:"#E7F2FD"}),wp.element.createElement("rect",{width:"74",height:"4",fill:"#1170D5"}),wp.element.createElement("rect",{x:"8",y:"14",width:"58",height:"9",rx:"2",fill:"#4296F0"}),wp.element.createElement("rect",{x:"8",y:"27",width:"40",height:"9",rx:"2",fill:"#4296F0"})),r.delta=wp.element.createElement("svg",{width:"74",height:"39",viewBox:"0 0 74 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"31",y:"12",width:"43",height:"7",rx:"2",fill:"#4296F0"}),wp.element.createElement("rect",{x:"31",y:"23",width:"32",height:"7",rx:"2",fill:"#4296F0"}),wp.element.createElement("rect",{x:"31",y:"34",width:"43",height:"5",rx:"2",fill:"#A0CBF8"}),wp.element.createElement("rect",{y:"12",width:"27",height:"27",rx:"2",fill:"#338EEF"}),wp.element.createElement("rect",{width:"74",height:"4",fill:"#1170D5"})),r.echo=wp.element.createElement("svg",{width:"74",height:"76",viewBox:"0 0 74 76",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"74",height:"76",rx:"5",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"8",y:"41",width:"58",height:"7",rx:"2",fill:"#338EEF"}),wp.element.createElement("rect",{x:"8",y:"61",width:"7",height:"7",rx:"3.5",fill:"#A0CBF8"}),wp.element.createElement("rect",{x:"8",y:"8",width:"58",height:"29",rx:"2",fill:"#338EEF"}),wp.element.createElement("rect",{x:"8",y:"52",width:"34",height:"5",rx:"2",fill:"#A0CBF8"}),wp.element.createElement("rect",{x:"46",y:"52",width:"20",height:"5",rx:"2",fill:"#A0CBF8"})),r.foxtrot=wp.element.createElement("svg",{width:"74",height:"43",viewBox:"0 0 74 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"74",height:"43",rx:"5",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"8",y:"8",width:"58",height:"7",rx:"2",fill:"#338EEF"}),wp.element.createElement("rect",{x:"8",y:"28",width:"7",height:"7",rx:"3.5",fill:"#A0CBF8"}),wp.element.createElement("rect",{x:"8",y:"19",width:"34",height:"5",rx:"2",fill:"#A0CBF8"}),wp.element.createElement("rect",{x:"46",y:"19",width:"20",height:"5",rx:"2",fill:"#A0CBF8"})),r.golf=wp.element.createElement("svg",{width:"74",height:"56",viewBox:"0 0 74 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"74",height:"56",rx:"5",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"8",y:"21",width:"58",height:"7",rx:"2",fill:"#338EEF"}),wp.element.createElement("rect",{x:"8",y:"41",width:"7",height:"7",rx:"3.5",fill:"#A0CBF8"}),wp.element.createElement("rect",{x:"8",y:"8",width:"16",height:"9",rx:"2",fill:"#1170D5"}),wp.element.createElement("rect",{x:"8",y:"32",width:"34",height:"5",rx:"2",fill:"#A0CBF8"}),wp.element.createElement("rect",{x:"46",y:"32",width:"20",height:"5",rx:"2",fill:"#A0CBF8"})),r.hotel=wp.element.createElement("svg",{width:"74",height:"50",viewBox:"0 0 74 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"74",height:"50",rx:"5",fill:"#338EEF"}),wp.element.createElement("path",{d:"M54.0625 42H19.9375C18.8438 42 17.9141 41.6111 17.1484 40.8333C16.3828 40.0556 16 39.1111 16 38V14C16 12.8889 16.3828 11.9444 17.1484 11.1667C17.9141 10.3889 18.8438 10 19.9375 10H54.0625C55.1562 10 56.0859 10.3889 56.8516 11.1667C57.6172 11.9444 58 12.8889 58 14V38C58 39.1111 57.6172 40.0556 56.8516 40.8333C56.0859 41.6111 55.1562 42 54.0625 42ZM28.3867 16.0833C27.5117 15.1389 26.4453 14.6667 25.1875 14.6667C23.9297 14.6667 22.8359 15.1389 21.9062 16.0833C21.0312 16.9722 20.5938 18.0556 20.5938 19.3333C20.5938 20.6111 21.0312 21.7222 21.9062 22.6667C22.8359 23.5556 23.9297 24 25.1875 24C26.4453 24 27.5117 23.5556 28.3867 22.6667C29.3164 21.7222 29.7812 20.6111 29.7812 19.3333C29.7812 18.0556 29.3164 16.9722 28.3867 16.0833ZM21.25 36.6667H52.75V27.3333L45.5312 20C45.0938 19.5556 44.6562 19.5556 44.2188 20L33.0625 31.3333L28.4688 26.6667C28.0312 26.2222 27.5938 26.2222 27.1562 26.6667L21.25 32.6667V36.6667Z",fill:"#59A3F2"}),wp.element.createElement("rect",{x:"8",y:"26",width:"58",height:"7",rx:"2",fill:"#F1F7FE"}),wp.element.createElement("rect",{x:"8",y:"37",width:"34",height:"5",rx:"2",fill:"#A0CBF8"}),wp.element.createElement("rect",{x:"46",y:"37",width:"20",height:"5",rx:"2",fill:"#A0CBF8"})),r.comments=function(e){return wp.element.createElement("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{fill:e}},wp.element.createElement("path",{d:"M7.8251 1.25893C8.70332 2.09821 9.14243 3.10714 9.14243 4.28571C9.14243 5.46429 8.70332 6.47321 7.8251 7.3125C6.94689 8.15179 5.8887 8.57143 4.65056 8.57143C3.78674 8.57143 2.98771 8.34821 2.25346 7.90179C1.63439 8.34821 0.993719 8.57143 0.331456 8.57143C0.302662 8.57143 0.273868 8.5625 0.245074 8.54464C0.216279 8.50893 0.194684 8.47321 0.180287 8.4375C0.151493 8.34821 0.158691 8.26786 0.201882 8.19643C0.50422 7.83929 0.763366 7.35714 0.979321 6.75C0.432235 6.01786 0.158691 5.19643 0.158691 4.28571C0.158691 3.10714 0.5978 2.09821 1.47602 1.25893C2.35424 0.419643 3.41242 0 4.65056 0C5.8887 0 6.94689 0.419643 7.8251 1.25893ZM11.7771 10.1786C11.993 10.7857 12.2522 11.2679 12.5545 11.625C12.5977 11.6964 12.6049 11.7768 12.5761 11.8661C12.5473 11.9554 12.4969 12 12.425 12C11.7627 12 11.122 11.7768 10.5029 11.3304C9.7687 11.7768 8.96967 12 8.10585 12C7.18444 12 6.34941 11.7589 5.60076 11.2768C4.85212 10.7946 4.30503 10.1607 3.9595 9.375C4.21865 9.41071 4.449 9.42857 4.65056 9.42857C6.07587 9.42857 7.29241 8.92857 8.30021 7.92857C9.32239 6.91071 9.83349 5.69643 9.83349 4.28571C9.83349 4.08929 9.82629 3.91071 9.81189 3.75C10.6325 4.07143 11.302 4.59821 11.8203 5.33036C12.3386 6.04464 12.5977 6.83929 12.5977 7.71429C12.5977 8.625 12.3242 9.44643 11.7771 10.1786Z"}))},t.a=r},function(e,t,n){"use strict";var r=n(20),i=n.n(r),o=n(21),a=n.n(o),s=n(22),l=n.n(s),c=n(23),u=n.n(c),d=n(24),p=n.n(d),h=n(26),m=(n.n(h),n(209),n(25)),f=wp.components.CheckboxControl,g=function(e){function t(){a()(this,t);var e=u()(this,(t.__proto__||i()(t)).call(this));return e.state={},e}return p()(t,e),l()(t,[{key:"renderTerms",value:function(e){return e.map(function(e){return wp.element.createElement("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},wp.element.createElement(f,{checked:!0,label:Object(h.unescape)(e.name)}))})}},{key:"render",value:function(){return[wp.element.createElement("label",{key:"monsterinsights-hierarchical-term-list-label",className:"components-base-control__label"},this.props.label,wp.element.createElement("span",{className:"monsterinsights-popular-posts-pro-pill"},"PRO")),wp.element.createElement("div",{className:"editor-post-taxonomies__hierarchical-terms-list monsterinsights-hierarchical-terms monsterinsights-hierarchical-terms-disabled",key:"monsterinsights-hierarchical-term-list",tabIndex:"0",role:"group"},this.renderTerms([{name:"News",id:1},{name:"Technology",id:2}]))]}}]),t}(m.a);t.a=g},function(e,t,n){"use strict";n(210),n(85),n(218)},function(e,t,n){"use strict";var r=n(211),i=n.n(r),o=n(212);n.n(o),i()(console.error)},function(e,t,n){function r(e,t){function n(){var n,a,s=r,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(a=0;a<l;a++)if(s.args[a]!==arguments[a]){s=s.next;continue e}return s!==r&&(s===i&&(i=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(n=new Array(l),a=0;a<l;a++)n[a]=arguments[a];return s={args:n,val:e.apply(null,n)},r?(r.prev=s,s.next=r):i=s,o===t.maxSize?(i=i.prev,i.next=null):o++,r=s,s.val}var r,i,o=0;return t=t||{},n.clear=function(){r=null,i=null,o=0},n}e.exports=r},function(e,t,n){var r;!function(){"use strict";function i(e){return a(s(e),arguments)}function o(e,t){return i.apply(null,[e].concat(t||[]))}function a(e,t){var n,r,o,a,s,c,u,d,p,h=1,m=e.length,f="";for(r=0;r<m;r++)if("string"==typeof e[r])f+=e[r];else if("object"==typeof e[r]){if(a=e[r],a.keys)for(n=t[h],o=0;o<a.keys.length;o++){if(void 0==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',a.keys[o],a.keys[o-1]));n=n[a.keys[o]]}else n=a.param_no?t[a.param_no]:t[h++];if(l.not_type.test(a.type)&&l.not_primitive.test(a.type)&&n instanceof Function&&(n=n()),l.numeric_arg.test(a.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(l.number.test(a.type)&&(d=n>=0),a.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,a.width?parseInt(a.width):0);break;case"e":n=a.precision?parseFloat(n).toExponential(a.precision):parseFloat(n).toExponential();break;case"f":n=a.precision?parseFloat(n).toFixed(a.precision):parseFloat(n);break;case"g":n=a.precision?String(Number(n.toPrecision(a.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=a.precision?n.substring(0,a.precision):n;break;case"t":n=String(!!n),n=a.precision?n.substring(0,a.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=a.precision?n.substring(0,a.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=a.precision?n.substring(0,a.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}l.json.test(a.type)?f+=n:(!l.number.test(a.type)||d&&!a.sign?p="":(p=d?"+":"-",n=n.toString().replace(l.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",u=a.width-(p+n).length,s=a.width&&u>0?c.repeat(u):"",f+=a.align?p+n+s:"0"===c?p+s+n:s+p+n)}return f}function s(e){if(c[e])return c[e];for(var t,n=e,r=[],i=0;n;){if(null!==(t=l.text.exec(n)))r.push(t[0]);else if(null!==(t=l.modulo.exec(n)))r.push("%");else{if(null===(t=l.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var o=[],a=t[2],s=[];if(null===(s=l.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(s[1]);""!==(a=a.substring(s[0].length));)if(null!==(s=l.key_access.exec(a)))o.push(s[1]);else{if(null===(s=l.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(s[1])}t[2]=o}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return c[e]=r}var l={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/},c=Object.create(null);t.sprintf=i,t.vsprintf=o,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=o,void 0!==(r=function(){return{sprintf:i,vsprintf:o}}.call(t,n,t,e))&&(e.exports=r))}()},function(e,t,n){"use strict";function r(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(r=t[n].trim(),0===r.indexOf("plural="))return r.substr(7)}function i(e,t){var n;this.data=e,this.pluralForms={},this.options={};for(n in a)this.options[n]=void 0!==t&&n in t?t[n]:a[n]}t.a=i;var o=n(214),a={contextDelimiter:"",onMissingKey:null};i.prototype.getPluralForm=function(e,t){var n,i,a,s=this.pluralForms[e];return s||(n=this.data[e][""],a=n["Plural-Forms"]||n["plural-forms"]||n.plural_forms,"function"!=typeof a&&(i=r(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),a=Object(o.a)(i)),s=this.pluralForms[e]=a),s(t)},i.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,s;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(s=this.data[e][a])&&s[o]?s[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},function(e,t,n){"use strict";function r(e){var t=Object(i.a)(e);return function(e){return+t({n:e})}}t.a=r;var i=n(215)},function(e,t,n){"use strict";function r(e){var t=Object(i.a)(e);return function(e){return Object(o.a)(t,e)}}t.a=r;var i=n(216),o=n(217)},function(e,t,n){"use strict";function r(e){for(var t,n,r,l,c=[],u=[];t=e.match(s);){for(n=t[0],r=e.substr(0,t.index).trim(),r&&c.push(r);l=u.pop();){if(a[n]){if(a[n][0]===l){n=a[n][1]||n;break}}else if(o.indexOf(l)>=0||i[l]<i[n]){u.push(l);break}c.push(l)}a[n]||u.push(n),e=e.substr(t.index+n.length)}return e=e.trim(),e&&c.push(e),c.concat(u.reverse())}t.a=r;var i,o,a,s;i={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},o=["(","?"],a={")":["("],":":["?","?:"]},s=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},function(e,t,n){"use strict";function r(e,t){var n,r,o,a,s,l,c=[];for(n=0;n<e.length;n++){if(s=e[n],a=i[s]){for(r=a.length,o=Array(r);r--;)o[r]=c.pop();try{l=a.apply(null,o)}catch(e){return e}}else l=t.hasOwnProperty(s)?t[s]:+s;c.push(l)}return c[0]}t.a=r;var i={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}}},function(e,t,n){"use strict";var r=n(85),i=n(219),o=Object(r.a)(void 0,void 0,i.a);o.getLocaleData.bind(o),o.setLocaleData.bind(o),o.resetLocaleData.bind(o),o.subscribe.bind(o),o.__.bind(o),o._x.bind(o),o._n.bind(o),o._nx.bind(o),o.isRTL.bind(o),o.hasTranslation.bind(o)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(220),i=Object(r.a)();i.addAction,i.addFilter,i.removeAction,i.removeFilter,i.hasAction,i.hasFilter,i.removeAllActions,i.removeAllFilters,i.doAction,i.applyFilters,i.currentAction,i.currentFilter,i.doingAction,i.doingFilter,i.didAction,i.didFilter,i.actions,i.filters},function(e,t,n){"use strict";function r(){return new p}var i=n(221),o=n(222),a=n(223),s=n(224),l=n(225),c=n(226),u=n(227),d=n(228),p=function e(){Object(i.a)(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=Object(o.a)(this,"actions"),this.addFilter=Object(o.a)(this,"filters"),this.removeAction=Object(a.a)(this,"actions"),this.removeFilter=Object(a.a)(this,"filters"),this.hasAction=Object(s.a)(this,"actions"),this.hasFilter=Object(s.a)(this,"filters"),this.removeAllActions=Object(a.a)(this,"actions",!0),this.removeAllFilters=Object(a.a)(this,"filters",!0),this.doAction=Object(l.a)(this,"actions"),this.applyFilters=Object(l.a)(this,"filters",!0),this.currentAction=Object(c.a)(this,"actions"),this.currentFilter=Object(c.a)(this,"filters"),this.doingAction=Object(u.a)(this,"actions"),this.doingFilter=Object(u.a)(this,"filters"),this.didAction=Object(d.a)(this,"actions"),this.didFilter=Object(d.a)(this,"filters")};t.a=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.a=r},function(e,t,n){"use strict";function r(e,t){return function(n,r,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,l=e[t];if(Object(o.a)(n)&&Object(i.a)(r)){if("function"!=typeof a)return void console.error("The hook callback must be a function.");if("number"!=typeof s)return void console.error("If specified, the hook priority must be a number.");var c={callback:a,priority:s,namespace:r};if(l[n]){var u,d=l[n].handlers;for(u=d.length;u>0&&!(s>=d[u-1].priority);u--);u===d.length?d[u]=c:d.splice(u,0,c),l.__current.forEach(function(e){e.name===n&&e.currentIndex>=u&&e.currentIndex++})}else l[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,a,s)}}}var i=n(86),o=n(50);t.a=r},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r,a){var s=e[t];if(Object(o.a)(r)&&(n||Object(i.a)(a))){if(!s[r])return 0;var l=0;if(n)l=s[r].handlers.length,s[r]={runs:s[r].runs,handlers:[]};else for(var c=s[r].handlers,u=c.length-1;u>=0;u--)!function(e){c[e].namespace===a&&(c.splice(e,1),l++,s.__current.forEach(function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--}))}(u);return"hookRemoved"!==r&&e.doAction("hookRemoved",r,a),l}}}var i=n(86),o=n(50);t.a=r},function(e,t,n){"use strict";function r(e,t){return function(n,r){var i=e[t];return void 0!==r?n in i&&i[n].handlers.some(function(e){return e.namespace===r}):n in i}}t.a=r},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var i=e[t];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;for(var o=i[r].handlers,a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];if(!o||!o.length)return n?s[0]:void 0;var c={name:r,currentIndex:0};for(i.__current.push(c);c.currentIndex<o.length;){var u=o[c.currentIndex],d=u.callback.apply(null,s);n&&(s[0]=d),c.currentIndex++}return i.__current.pop(),n?s[0]:void 0}}n(79);t.a=r},function(e,t,n){"use strict";function r(e,t){return function(){var n,r,i=e[t];return null!==(n=null===(r=i.__current[i.__current.length-1])||void 0===r?void 0:r.name)&&void 0!==n?n:null}}t.a=r},function(e,t,n){"use strict";function r(e,t){return function(n){var r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}}t.a=r},function(e,t,n){"use strict";function r(e,t){return function(n){var r=e[t];if(Object(i.a)(n))return r[n]&&r[n].runs?r[n].runs:0}}var i=n(50);t.a=r}]);
3
  Licensed under the MIT License (MIT), see
4
  http://jedwatson.github.io/classnames
5
  */
6
+ !function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var s in r)o.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}var o={}.hasOwnProperty;void 0!==e&&e.exports?(n.default=n,e.exports=n):(r=[],void 0!==(i=function(){return n}.apply(t,r))&&(e.exports=i))}()},function(e,t,n){var r=n(6),i=n(0),o=n(37),a=n(11),s=n(9),l=function(e,t,n){var c,u,d,p=e&l.F,h=e&l.G,m=e&l.S,f=e&l.P,g=e&l.B,w=e&l.W,v=h?i:i[t]||(i[t]={}),y=v.prototype,b=h?r:m?r[t]:(r[t]||{}).prototype;h&&(n=t);for(c in n)(u=!p&&b&&void 0!==b[c])&&s(v,c)||(d=u?b[c]:n[c],v[c]=h&&"function"!=typeof b[c]?n[c]:g&&u?o(d,r):w&&b[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):f&&"function"==typeof d?o(Function.call,d):d,f&&((v.virtual||(v.virtual={}))[c]=d,e&l.R&&y&&!y[c]&&a(y,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){e.exports=!n(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(8),i=n(53),o=n(38),a=Object.defineProperty;t.f=n(5)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(12);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(57),i=n(36);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(7),i=n(21);e.exports=n(5)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports={}},function(e,t,n){e.exports={default:n(155),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(72),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=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),(0,i.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){"use strict";t.__esModule=!0;var r=n(73),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(172),o=r(i),a=n(176),s=r(a),l=n(73),c=r(l);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,c.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(o.default?(0,o.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";var r=(n(180),n(33));n.d(t,"a",function(){return r.a});n(189),n(191),n(192),n(193),n(81)},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(56),i=n(43);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(36);e.exports=function(e){return Object(r(e))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var r={};r.headline=wp.element.createElement("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M13.5 2V12H14.5C14.6458 12 14.7604 12.0521 14.8438 12.1562C14.9479 12.2396 15 12.3542 15 12.5V13.5C15 13.6458 14.9479 13.7604 14.8438 13.8438C14.7604 13.9479 14.6458 14 14.5 14H9.5C9.35417 14 9.22917 13.9479 9.125 13.8438C9.04167 13.7604 9 13.6458 9 13.5V12.5C9 12.3542 9.04167 12.2396 9.125 12.1562C9.22917 12.0521 9.35417 12 9.5 12H10.5V8H4.5V12H5.5C5.64583 12 5.76042 12.0521 5.84375 12.1562C5.94792 12.2396 6 12.3542 6 12.5V13.5C6 13.6458 5.94792 13.7604 5.84375 13.8438C5.76042 13.9479 5.64583 14 5.5 14H0.5C0.354167 14 0.229167 13.9479 0.125 13.8438C0.0416667 13.7604 0 13.6458 0 13.5V12.5C0 12.3542 0.0416667 12.2396 0.125 12.1562C0.229167 12.0521 0.354167 12 0.5 12H1.5V2H0.5C0.354167 2 0.229167 1.95833 0.125 1.875C0.0416667 1.77083 0 1.64583 0 1.5V0.5C0 0.354167 0.0416667 0.239583 0.125 0.15625C0.229167 0.0520833 0.354167 0 0.5 0H5.5C5.64583 0 5.76042 0.0520833 5.84375 0.15625C5.94792 0.239583 6 0.354167 6 0.5V1.5C6 1.64583 5.94792 1.77083 5.84375 1.875C5.76042 1.95833 5.64583 2 5.5 2H4.5V6H10.5V2H9.5C9.35417 2 9.22917 1.95833 9.125 1.875C9.04167 1.77083 9 1.64583 9 1.5V0.5C9 0.354167 9.04167 0.239583 9.125 0.15625C9.22917 0.0520833 9.35417 0 9.5 0H14.5C14.6458 0 14.7604 0.0520833 14.8438 0.15625C14.9479 0.239583 15 0.354167 15 0.5V1.5C15 1.64583 14.9479 1.77083 14.8438 1.875C14.7604 1.95833 14.6458 2 14.5 2H13.5Z",fill:"white"})),r.headlineBlack=wp.element.createElement("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M13.5 2V12H14.5C14.6458 12 14.7604 12.0521 14.8438 12.1562C14.9479 12.2396 15 12.3542 15 12.5V13.5C15 13.6458 14.9479 13.7604 14.8438 13.8438C14.7604 13.9479 14.6458 14 14.5 14H9.5C9.35417 14 9.22917 13.9479 9.125 13.8438C9.04167 13.7604 9 13.6458 9 13.5V12.5C9 12.3542 9.04167 12.2396 9.125 12.1562C9.22917 12.0521 9.35417 12 9.5 12H10.5V8H4.5V12H5.5C5.64583 12 5.76042 12.0521 5.84375 12.1562C5.94792 12.2396 6 12.3542 6 12.5V13.5C6 13.6458 5.94792 13.7604 5.84375 13.8438C5.76042 13.9479 5.64583 14 5.5 14H0.5C0.354167 14 0.229167 13.9479 0.125 13.8438C0.0416667 13.7604 0 13.6458 0 13.5V12.5C0 12.3542 0.0416667 12.2396 0.125 12.1562C0.229167 12.0521 0.354167 12 0.5 12H1.5V2H0.5C0.354167 2 0.229167 1.95833 0.125 1.875C0.0416667 1.77083 0 1.64583 0 1.5V0.5C0 0.354167 0.0416667 0.239583 0.125 0.15625C0.229167 0.0520833 0.354167 0 0.5 0H5.5C5.64583 0 5.76042 0.0520833 5.84375 0.15625C5.94792 0.239583 6 0.354167 6 0.5V1.5C6 1.64583 5.94792 1.77083 5.84375 1.875C5.76042 1.95833 5.64583 2 5.5 2H4.5V6H10.5V2H9.5C9.35417 2 9.22917 1.95833 9.125 1.875C9.04167 1.77083 9 1.64583 9 1.5V0.5C9 0.354167 9.04167 0.239583 9.125 0.15625C9.22917 0.0520833 9.35417 0 9.5 0H14.5C14.6458 0 14.7604 0.0520833 14.8438 0.15625C14.9479 0.239583 15 0.354167 15 0.5V1.5C15 1.64583 14.9479 1.77083 14.8438 1.875C14.7604 1.95833 14.6458 2 14.5 2H13.5Z",fill:"#000"})),r.warning=wp.element.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M16 8C16 6.58065 15.6129 5.22581 14.9032 4C14.1935 2.77419 13.2258 1.80645 12 1.09677C10.7742 0.387097 9.41936 0 8 0C6.54839 0 5.22581 0.387097 4 1.09677C2.77419 1.80645 1.77419 2.77419 1.06452 4C0.354839 5.22581 0 6.58065 0 8C0 9.45161 0.354839 10.7742 1.06452 12C1.77419 13.2258 2.77419 14.2258 4 14.9355C5.22581 15.6452 6.54839 16 8 16C9.41936 16 10.7742 15.6452 12 14.9355C13.2258 14.2258 14.1935 13.2258 14.9032 12C15.6129 10.7742 16 9.45161 16 8ZM8 9.6129C8.3871 9.6129 8.74194 9.77419 9.03226 10.0645C9.32258 10.3548 9.48387 10.7097 9.48387 11.0968C9.48387 11.5161 9.32258 11.871 9.03226 12.1613C8.74194 12.4516 8.3871 12.5806 8 12.5806C7.58065 12.5806 7.22581 12.4516 6.93548 12.1613C6.64516 11.871 6.51613 11.5161 6.51613 11.0968C6.51613 10.7097 6.64516 10.3548 6.93548 10.0645C7.22581 9.77419 7.58065 9.6129 8 9.6129ZM6.58065 4.29032C6.58065 4.16129 6.6129 4.06452 6.67742 4C6.74194 3.93548 6.83871 3.87097 6.96774 3.87097H9.03226C9.12903 3.87097 9.22581 3.93548 9.29032 4C9.35484 4.06452 9.41936 4.16129 9.41936 4.29032L9.16129 8.67742C9.16129 8.77419 9.09677 8.87097 9.03226 8.93548C8.96774 9 8.87097 9.03226 8.77419 9.03226H7.22581C7.09677 9.03226 7 9 6.93548 8.93548C6.87097 8.87097 6.83871 8.77419 6.83871 8.67742L6.58065 4.29032Z",fill:"#F2994A"})),r.smile=wp.element.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M2.32258 2.35484C3.89247 0.784946 5.78495 0 8 0C10.2151 0 12.0968 0.784946 13.6452 2.35484C15.2151 3.90323 16 5.78495 16 8C16 10.2151 15.2151 12.1075 13.6452 13.6774C12.0968 15.2258 10.2151 16 8 16C5.78495 16 3.89247 15.2258 2.32258 13.6774C0.774194 12.1075 0 10.2151 0 8C0 5.78495 0.774194 3.90323 2.32258 2.35484ZM11.2903 5.74194C11.0968 5.52688 10.8602 5.41935 10.5806 5.41935C10.3011 5.41935 10.0538 5.52688 9.83871 5.74194C9.64516 5.93548 9.54839 6.17204 9.54839 6.45161C9.54839 6.73118 9.64516 6.97849 9.83871 7.19355C10.0538 7.3871 10.3011 7.48387 10.5806 7.48387C10.8602 7.48387 11.0968 7.3871 11.2903 7.19355C11.5054 6.97849 11.6129 6.73118 11.6129 6.45161C11.6129 6.17204 11.5054 5.93548 11.2903 5.74194ZM6.12903 5.74194C5.93548 5.52688 5.69892 5.41935 5.41935 5.41935C5.13978 5.41935 4.89247 5.52688 4.67742 5.74194C4.48387 5.93548 4.3871 6.17204 4.3871 6.45161C4.3871 6.73118 4.48387 6.97849 4.67742 7.19355C4.89247 7.3871 5.13978 7.48387 5.41935 7.48387C5.69892 7.48387 5.93548 7.3871 6.12903 7.19355C6.34409 6.97849 6.45161 6.73118 6.45161 6.45161C6.45161 6.17204 6.34409 5.93548 6.12903 5.74194ZM11.7097 10.9032C11.7957 10.8172 11.8387 10.7204 11.8387 10.6129C11.8387 10.4839 11.8065 10.3871 11.7419 10.3226C11.6774 10.2366 11.5914 10.172 11.4839 10.129C11.3978 10.0645 11.3011 10.043 11.1935 10.0645C11.086 10.086 10.9892 10.1505 10.9032 10.2581C10.1505 11.1613 9.1828 11.6129 8 11.6129C6.8172 11.6129 5.84946 11.1613 5.09677 10.2581C5.01075 10.1505 4.91398 10.086 4.80645 10.0645C4.69892 10.043 4.5914 10.0645 4.48387 10.129C4.39785 10.172 4.32258 10.2366 4.25806 10.3226C4.19355 10.3871 4.16129 10.4839 4.16129 10.6129C4.16129 10.7204 4.2043 10.8172 4.29032 10.9032C5.25806 12.0645 6.49462 12.6452 8 12.6452C9.50538 12.6452 10.7419 12.0645 11.7097 10.9032Z",fill:"#1EC185"})),r.neutral=wp.element.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M2.32258 2.35484C3.89247 0.784946 5.78495 0 8 0C10.2151 0 12.0968 0.784946 13.6452 2.35484C15.2151 3.90323 16 5.78495 16 8C16 10.2151 15.2151 12.1075 13.6452 13.6774C12.0968 15.2258 10.2151 16 8 16C5.78495 16 3.89247 15.2258 2.32258 13.6774C0.774194 12.1075 0 10.2151 0 8C0 5.78495 0.774194 3.90323 2.32258 2.35484ZM6.12903 5.74194C5.93548 5.52688 5.69892 5.41935 5.41935 5.41935C5.13978 5.41935 4.89247 5.52688 4.67742 5.74194C4.48387 5.93548 4.3871 6.17204 4.3871 6.45161C4.3871 6.73118 4.48387 6.97849 4.67742 7.19355C4.89247 7.3871 5.13978 7.48387 5.41935 7.48387C5.69892 7.48387 5.93548 7.3871 6.12903 7.19355C6.34409 6.97849 6.45161 6.73118 6.45161 6.45161C6.45161 6.17204 6.34409 5.93548 6.12903 5.74194ZM11.0968 11.6129C11.4409 11.6129 11.6129 11.4409 11.6129 11.0968C11.6129 10.7527 11.4409 10.5806 11.0968 10.5806H4.90323C4.55914 10.5806 4.3871 10.7527 4.3871 11.0968C4.3871 11.4409 4.55914 11.6129 4.90323 11.6129H11.0968ZM9.83871 7.19355C10.0538 7.3871 10.3011 7.48387 10.5806 7.48387C10.8602 7.48387 11.0968 7.3871 11.2903 7.19355C11.5054 6.97849 11.6129 6.73118 11.6129 6.45161C11.6129 6.17204 11.5054 5.93548 11.2903 5.74194C11.0968 5.52688 10.8602 5.41935 10.5806 5.41935C10.3011 5.41935 10.0538 5.52688 9.83871 5.74194C9.64516 5.93548 9.54839 6.17204 9.54839 6.45161C9.54839 6.73118 9.64516 6.97849 9.83871 7.19355Z",fill:"#626D83"})),r.negative=wp.element.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M2.32258 2.35484C3.89247 0.784946 5.78495 0 8 0C10.2151 0 12.0968 0.784946 13.6452 2.35484C15.2151 3.90323 16 5.78495 16 8C16 10.2151 15.2151 12.1075 13.6452 13.6774C12.0968 15.2258 10.2151 16 8 16C5.78495 16 3.89247 15.2258 2.32258 13.6774C0.774194 12.1075 0 10.2151 0 8C0 5.78495 0.774194 3.90323 2.32258 2.35484ZM4.3871 7.48387C4.3871 7.76344 4.48387 8.01075 4.67742 8.22581C4.89247 8.41935 5.13978 8.51613 5.41935 8.51613C5.69892 8.51613 5.93548 8.41935 6.12903 8.22581C6.34409 8.01075 6.45161 7.76344 6.45161 7.48387C6.45161 7.44086 6.43011 7.35484 6.3871 7.22581C6.4086 7.22581 6.41935 7.22581 6.41935 7.22581C6.44086 7.22581 6.45161 7.22581 6.45161 7.22581C6.70968 7.22581 6.87097 7.10753 6.93548 6.87097C6.95699 6.78495 6.96774 6.70968 6.96774 6.64516C6.96774 6.58065 6.94624 6.52688 6.90323 6.48387C6.88172 6.41935 6.83871 6.36559 6.77419 6.32258C6.73118 6.27957 6.67742 6.24731 6.6129 6.22581L4.03226 5.45161C3.88172 5.4086 3.74194 5.41935 3.6129 5.48387C3.50538 5.54839 3.43011 5.64516 3.3871 5.77419C3.36559 5.86021 3.35484 5.93548 3.35484 6C3.37634 6.06452 3.39785 6.12903 3.41935 6.19355C3.44086 6.23656 3.47312 6.27957 3.51613 6.32258C3.58065 6.36559 3.65591 6.39785 3.74194 6.41935L4.70968 6.74194C4.49462 6.93548 4.3871 7.1828 4.3871 7.48387ZM9.80645 12.4516C9.93548 12.6237 10.0968 12.6882 10.2903 12.6452C10.4839 12.6021 10.6129 12.4946 10.6774 12.3226C10.7419 12.1505 10.7097 11.9785 10.5806 11.8065C9.91398 10.9892 9.05376 10.5806 8 10.5806C6.94624 10.5806 6.07527 10.9892 5.3871 11.8065C5.34409 11.871 5.31183 11.9462 5.29032 12.0323C5.26882 12.1183 5.26882 12.1935 5.29032 12.2581C5.31183 12.3226 5.34409 12.3871 5.3871 12.4516C5.43011 12.5161 5.48387 12.5699 5.54839 12.6129C5.6129 12.6344 5.67742 12.6559 5.74194 12.6774C5.82796 12.6774 5.90323 12.6667 5.96774 12.6452C6.05376 12.6021 6.12903 12.5376 6.19355 12.4516C6.64516 11.914 7.24731 11.6452 8 11.6452C8.75269 11.6452 9.35484 11.914 9.80645 12.4516ZM12.2903 6.41935C12.4194 6.37634 12.5161 6.30107 12.5806 6.19355C12.6452 6.06452 12.6559 5.92473 12.6129 5.77419C12.5914 5.68817 12.5484 5.6129 12.4839 5.54839C12.4194 5.48387 12.3441 5.45161 12.2581 5.45161C12.172 5.43011 12.086 5.43011 12 5.45161L9.41935 6.22581C9.26882 6.26882 9.16129 6.35484 9.09677 6.48387C9.03226 6.5914 9.02151 6.72043 9.06452 6.87097C9.12903 7.10753 9.29032 7.22581 9.54839 7.22581C9.56989 7.22581 9.5914 7.22581 9.6129 7.22581C9.56989 7.33333 9.54839 7.41935 9.54839 7.48387C9.54839 7.76344 9.64516 8.01075 9.83871 8.22581C10.0538 8.41935 10.3011 8.51613 10.5806 8.51613C10.8602 8.51613 11.0968 8.41935 11.2903 8.22581C11.5054 8.01075 11.6129 7.76344 11.6129 7.48387C11.6129 7.1828 11.5054 6.93548 11.2903 6.74194L12.2903 6.41935Z",fill:"#626D83"})),r.check=wp.element.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M13.6452 2.35484C15.2151 3.90323 16 5.78495 16 8C16 10.2151 15.2151 12.1075 13.6452 13.6774C12.0968 15.2258 10.2151 16 8 16C5.78495 16 3.89247 15.2258 2.32258 13.6774C0.774194 12.1075 0 10.2151 0 8C0 5.78495 0.774194 3.90323 2.32258 2.35484C3.89247 0.784946 5.78495 0 8 0C10.2151 0 12.0968 0.784946 13.6452 2.35484ZM7.06452 12.2258L13 6.29032C13.2581 6.05376 13.2581 5.8172 13 5.58065L12.2903 4.83871C12.0323 4.60215 11.7849 4.60215 11.5484 4.83871L6.70968 9.67742L4.45161 7.41935C4.21505 7.1828 3.96774 7.1828 3.70968 7.41935L3 8.16129C2.74194 8.39785 2.74194 8.63441 3 8.87097L6.35484 12.2258C6.5914 12.4839 6.82796 12.4839 7.06452 12.2258Z",fill:"#1EC185"})),t.a=r},function(e,t){e.exports=lodash},function(e,t,n){"use strict";var r=n(94)(!0);n(52)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(106),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=i.default||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(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(110),o=r(i),a=n(62),s=r(a);t.default=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=(0,s.default)(e);!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if((0,o.default)(Object(t)))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){"use strict";var r=wp.element.Fragment,i=function(e){var t=e.barScore,n=e.width?e.width+"px":"80px",i=t>50?0:180-3.6*t,o=e.barColor;return wp.element.createElement(r,null,wp.element.createElement("div",{className:"monsterinsights-donut-container",style:{flexDirection:"column"}},wp.element.createElement("div",{className:"monsterinsights-donut",style:{width:n,paddingBottom:n,backgroundColor:"#f2f2f2"}},wp.element.createElement("div",{className:"monsterinsights-donut-sections",style:{transform:"rotate(0deg)"}},wp.element.createElement("div",{className:"monsterinsights-donut-section monsterinsights-donut-section-right",style:{transform:"rotate(0deg)"}},wp.element.createElement("div",{className:"monsterinsights-donut-filler",style:{backgroundColor:o,transform:"rotate(-"+i+"deg)"}})),function(){if(t>50){var e=180+360*(t-50)/100;return wp.element.createElement("div",{className:"monsterinsights-donut-section monsterinsights-donut-section-left",style:{transform:"rotate(0deg)"}},wp.element.createElement("div",{className:"monsterinsights-donut-filler",style:{backgroundColor:o,transform:"rotate("+e+"deg)"}}))}}()),wp.element.createElement("div",{className:"monsterinsights-donut-overlay",style:{height:"70%",width:"70%",top:"calc(15%)",left:"calc(15%)",backgroundColor:"rgb(255, 255, 255)"}}))))};t.a=i},function(e,t,n){"use strict";var r=(n(34),n(49),n(80)),i=(n.n(r),n(26));n.n(i);n.o(r,"cloneElement")&&n.d(t,"d",function(){return r.cloneElement}),n.o(r,"Component")&&n.d(t,"a",function(){return r.Component}),n.o(r,"createContext")&&n.d(t,"e",function(){return r.createContext}),n.o(r,"createElement")&&n.d(t,"f",function(){return r.createElement}),n.o(r,"forwardRef")&&n.d(t,"g",function(){return r.forwardRef}),n.o(r,"Fragment")&&n.d(t,"b",function(){return r.Fragment}),n.o(r,"isValidElement")&&n.d(t,"h",function(){return r.isValidElement}),n.o(r,"StrictMode")&&n.d(t,"c",function(){return r.StrictMode})},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}t.a=r},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(95);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(12);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(8),i=n(97),o=n(43),a=n(41)("IE_PROTO"),s=function(){},l=function(){var e,t=n(54)("iframe"),r=o.length;for(t.style.display="none",n(100).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(42)("keys"),i=n(29);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(0),i=n(6),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(28)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(7).f,i=n(9),o=n(2)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){n(112);for(var r=n(6),i=n(11),o=n(14),a=n(2)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=r[c],d=u&&u.prototype;d&&!d[a]&&i(d,a,c),o[c]=o.Array}},function(e,t,n){t.f=n(2)},function(e,t,n){var r=n(6),i=n(0),o=n(28),a=n(47),s=n(7).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=Object(i.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=r;var i=n(188)},function(e,t,n){"use strict";function r(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}t.a=r},function(e,t,n){"use strict";t.__esModule=!0;var r=n(92),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,i.default)(e)}},function(e,t,n){"use strict";var r=n(28),i=n(4),o=n(55),a=n(11),s=n(14),l=n(96),c=n(44),u=n(59),d=n(2)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,m,f,g,w){l(n,t,m);var v,y,b,S=function(e){if(!p&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",_="values"==f,C=!1,x=e.prototype,k=x[d]||x["@@iterator"]||f&&x[f],O=k||S(f),T=f?_?S("entries"):O:void 0,N="Array"==t?x.entries||k:k;if(N&&(b=u(N.call(new e)))!==Object.prototype&&b.next&&(c(b,E,!0),r||"function"==typeof b[d]||a(b,d,h)),_&&k&&"values"!==k.name&&(C=!0,O=function(){return k.call(this)}),r&&!w||!p&&!C&&x[d]||a(x,d,O),s[t]=O,s[E]=h,f)if(v={values:_?O:S("values"),keys:g?O:S("keys"),entries:T},w)for(y in v)y in x||o(x,y,v[y]);else i(i.P+i.F*(p||C),t,v);return v}},function(e,t,n){e.exports=!n(5)&&!n(13)(function(){return 7!=Object.defineProperty(n(54)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(12),i=n(6).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){e.exports=n(11)},function(e,t,n){var r=n(9),i=n(10),o=n(98)(!1),a=n(41)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(40);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(35),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(9),i=n(23),o=n(41)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(61),i=n(2)("iterator"),o=n(14);e.exports=n(0).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(40),i=n(2)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){e.exports={default:n(116),__esModule:!0}},function(e,t,n){e.exports=n(118)},function(e,t,n){"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)}}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=n(1);e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var a=[];i.forEach(t,function(e,t){null!==e&&void 0!==e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))}))}),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){function r(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var i=n(1),o=n(124),a={"Content-Type":"application/x-www-form-urlencoded"},s={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=n(68):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(e=n(68)),e}(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){s.headers[e]={}}),i.forEach(["post","put","patch"],function(e){s.headers[e]=i.merge(a)}),e.exports=s}).call(t,n(123))},function(e,t,n){"use strict";var r=n(1),i=n(125),o=n(65),a=n(127),s=n(130),l=n(131),c=n(69);e.exports=function(e){return new Promise(function(t,u){var d=e.data,p=e.headers;r.isFormData(d)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",f=e.auth.password||"";p.Authorization="Basic "+btoa(m+":"+f)}var g=a(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),o(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?h.response:h.responseText,o={data:r,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};i(t,u,o),h=null}},h.onabort=function(){h&&(u(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){u(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),u(c(t,e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var w=n(132),v=(e.withCredentials||l(g))&&e.xsrfCookieName?w.read(e.xsrfCookieName):void 0;v&&(p[e.xsrfHeaderName]=v)}if("setRequestHeader"in h&&r.forEach(p,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:h.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"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(),u(e),h=null)}),void 0===d&&(d=null),h.send(d)})}},function(e,t,n){"use strict";var r=n(126);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,function(e){void 0!==t[e]&&(n[e]=t[e])}),r.forEach(o,function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):void 0!==t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):void 0!==e[i]&&(n[i]=e[i])}),r.forEach(a,function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])});var s=i.concat(o).concat(a),l=Object.keys(t).filter(function(e){return-1===s.indexOf(e)});return r.forEach(l,function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){e.exports={default:n(158),__esModule:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(160),o=r(i),a=n(162),s=r(a),l="function"==typeof s.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===l(o.default)?function(e){return void 0===e?"undefined":l(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":l(e)}},function(e,t,n){var r=n(56),i=n(43).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(24),i=n(21),o=n(10),a=n(38),s=n(9),l=n(53),c=Object.getOwnPropertyDescriptor;t.f=n(5)?c:function(e,t){if(e=o(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";function r(e,t){if(e){if("string"==typeof e)return Object(i.a)(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)?Object(i.a)(e,t):void 0}}t.a=r;var i=n(77)},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}t.a=r},function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";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)}t.a=r},function(e,t,n){"use strict";function r(e){return Object(i.a)(e)||Object(o.a)(e)||Object(a.a)(e)||Object(s.a)()}t.a=r;var i=n(185),o=n(186),a=n(76),s=n(187)},function(e,t){e.exports=React},function(e,t,n){"use strict";function r(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e){var t=e.children,n=Object(s.a)(e,["children"]);return Object(l.f)("div",i({dangerouslySetInnerHTML:{__html:t}},n))}t.a=o;var a=n(34),s=n(49),l=n(33)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(72),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){e.exports=n(201)},function(e,t,n){"use strict";function r(e){var t=e.className,n=e.selected,o=e.help,p=e.onChange,h=e.options,m=void 0===h?[]:h,f=e.icons,g=void 0===f?[]:f,w=u(r),v="inspector-monsterinsights-popular-posts-theme-control-"+w,y=function(e){return p(e.target.value)},b=[],S=0,E=0,_=0;for(var C in m)if(m.hasOwnProperty(C)){var x=m[C];void 0===b[S]&&(b[S]=[]),b[S][E]=x,x.value===n&&(_=S),3===E?(E=0,S++):E++}var k=function(){return wp.element.createElement("span",{className:"monsterinsights-theme-picker-check"},l.a.checkmark)},O=function(e){var t="monsterinsights-theme-picker-label-"+e.value;return e.value===n&&(t+=" monsterinsights-theme-picker-label-selected"),s.a.canaccess(e.level)||(t+=" monsterinsights-theme-picker-label-disabled"),t};return!Object(i.isEmpty)(m)&&wp.element.createElement(d,{id:v,help:o,className:a()(t,"monsterinsights-theme-picker")},wp.element.createElement(c.c,{naturalSlideWidth:250,totalSlides:b.length,className:"monsterinsights-theme-picker-carousel",currentSlide:_,dragEnabled:!1},wp.element.createElement(c.f,null,b.map(function(e,t){return wp.element.createElement(c.e,{className:"monsterinsights-theme-picker-slide",index:t,key:v+"-"+t},e.map(function(e,r){return wp.element.createElement("div",{key:v+"-"+t+"-"+r,className:"monsterinsights-slider-theme-option"},wp.element.createElement("input",{id:v+"-"+t+"-"+r,className:"monsterinsights-slider-theme-input",type:"radio",name:v,value:e.value,onChange:y,checked:e.value===n,"aria-describedby":o?v+"__help":void 0}),wp.element.createElement("label",{htmlFor:v+"-"+t+"-"+r,className:O(e)},e.value===n&&k(),wp.element.createElement("span",{className:"monsterinsights-theme-picker-label-icon"},g[e.value]?g[e.value]:""),wp.element.createElement("span",{className:"monsterinsights-theme-picker-label-text"},e.label)))}))})),function(){if(b.length>1)return wp.element.createElement("div",{className:"monsterinsights-carousel-navigation"},wp.element.createElement(c.a,null,l.a.chevronleft),wp.element.createElement(c.d,{className:"monsterinsights-carousel-navigation-dots"}),wp.element.createElement(c.b,null,l.a.chevronright))}()))}t.a=r;var i=n(26),o=(n.n(i),n(3)),a=n.n(o),s=n(204),l=n(205),c=n(206),u=wp.compose.useInstanceId,d=wp.components.BaseControl},function(e,t,n){"use strict";function r(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){Object(o.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,"a",function(){return c});var o=n(34),a=n(214),s={"":{plural_forms:function(e){return 1===e?0:1}}},l=/^i18n\.(n?gettext|has_translation)(_|$)/,c=function(e,t,n){var r=new a.a({}),o=new Set,c=function(){o.forEach(function(e){return e()})},u=function(e){return o.add(e),function(){return o.delete(e)}},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=i(i(i({},s),r.data[t]),e),r.data[t][""]=i(i({},s[""]),r.data[t][""])},h=function(e,t){p(e,t),c()},m=function(e,t){r.data={},r.pluralForms={},h(e,t)},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return r.data[e]||p(void 0,e),r.dcnpgettext(e,t,n,i,o)},g=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},w=function(e,t){var r=f(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+g(t),r,e,t)):r},v=function(e,t,r){var i=f(r,t,e);return n?(i=n.applyFilters("i18n.gettext_with_context",i,e,t,r),n.applyFilters("i18n.gettext_with_context_"+g(r),i,e,t,r)):i},y=function(e,t,r,i){var o=f(i,void 0,e,t,r);return n?(o=n.applyFilters("i18n.ngettext",o,e,t,r,i),n.applyFilters("i18n.ngettext_"+g(i),o,e,t,r,i)):o},b=function(e,t,r,i,o){var a=f(o,i,e,t,r);return n?(a=n.applyFilters("i18n.ngettext_with_context",a,e,t,r,i,o),n.applyFilters("i18n.ngettext_with_context_"+g(o),a,e,t,r,i,o)):a},S=function(){return"rtl"===v("ltr","text direction")},E=function(e,t,i){var o,a,s=t?t+""+e:e,l=!(null===(o=r.data)||void 0===o||null===(a=o[null!==i&&void 0!==i?i:"default"])||void 0===a||!a[s]);return n&&(l=n.applyFilters("i18n.has_translation",l,e,t,i),l=n.applyFilters("i18n.has_translation_"+g(i),l,e,t,i)),l};if(e&&h(e,t),n){var _=function(e){l.test(e)&&c()};n.addAction("hookAdded","core/i18n",_),n.addAction("hookRemoved","core/i18n",_)}return{getLocaleData:d,setLocaleData:h,resetLocaleData:m,subscribe:u,__:w,_x:v,_n:y,_nx:b,isRTL:S,hasTranslation:E}}},function(e,t,n){"use strict";function r(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(88),i=(n.n(r),n(89)),o=(n.n(i),n(90),n(199),wp.i18n.setLocaleData);void 0!==window.monsterinsights_gutenberg_tool_vars.translations&&o(window.monsterinsights_gutenberg_tool_vars.translations,"google-analytics-for-wordpress")},function(e,t){},function(e,t){},function(e,t,n){"use strict";n(91),n(148)},function(e,t,n){"use strict";var r=n(51),i=n.n(r),o=n(30),a=n.n(o),s=n(31),l=n.n(s),c=n(25),u=n(63),d=n.n(u),p=n(135),h=n(139),m=n(140),f=n(142),g=n(143),w=n(144),v=n(145),y=n(146),b=n(147),S=wp.i18n.__,E=wp.element,_=E.Fragment,C=E.useState,x=E.useEffect,k=wp.plugins.registerPlugin,O=wp.editPost,T=O.PluginSidebar,N=O.PluginSidebarMoreMenuItem,M=wp.data.select,j=function(e){var t=M("core/editor").getEditedPostAttribute("title"),n=S("Headline Analyzer","google-analytics-for-wordpress"),r=S("Write your post title to see the analyzer data. This Headline Analyzer tool enables you to write irresistible SEO headlines that drive traffic, shares, and rank better in search results.","google-analytics-for-wordpress"),o=C({}),s=l()(o,2),u=s[0],E=s[1],k=document.querySelector(".components-button[aria-label='"+n+"'] svg"),O=void 0!==u.previousHeadlinesData?u.previousHeadlinesData:[],j=sprintf(S("This headline analyzer is part of MonsterInsights to help you increase your traffic. See your %1swebsite traffic reports%2s.","google-analytics-for-wordpress"),'<a href="'+monsterinsights_gutenberg_tool_vars.reports_url+'" className="monsterinsights-headline-analyzer-link">',"</a>"),P=document.querySelector(".monsterinsights-headline-analyzer-wrapper");if(k){var D=document.createElement("span");if(u.dataExist&&void 0!==u.currentHeadlineData.score){var F=u.currentHeadlineData.score,A=F<40?"red":F<=60?"orange":"green";k.parentNode.setAttribute("monsterinsights-button-color",A),k.nextElementSibling?k.nextElementSibling.innerHTML=F+"/100":(D.innerHTML=F+"/100",k.parentNode.insertBefore(D,k.nextSibling))}else k.parentNode.setAttribute("monsterinsights-button-color","red"),k.nextElementSibling?k.nextElementSibling.innerHTML="00/100":(D.innerHTML="00/100",k.parentNode.insertBefore(D,k.nextSibling))}if(P){var L=P.parentNode.querySelectorAll(".components-panel__header");L&&L.forEach(function(e){var t=e.querySelector('[aria-pressed="true"]');t&&null!==t&&null!==t.offsetParent&&(t.style.display="none")})}var B=function(e){E(a()({},u,e))};return x(function(){var e=new FormData;e.append("_ajax_nonce",monsterinsights_gutenberg_tool_vars.nonce),e.append("action","monsterinsights_gutenberg_headline_analyzer_get_results"),e.append("dataType","json"),e.append("q",t),d.a.post(monsterinsights_gutenberg_tool_vars.ajaxurl,e).then(function(e){var t={dataExist:!1};e.data.data.analysed&&(t.currentHeadlineData=e.data.data,t.headlineData=e.data.data,t.dataExist=!0,void 0!==u.headlineData&&(t.previousHeadlinesData=[u.headlineData].concat(i()(O)))),E(a()({},u,t))}).catch(function(e){var t={dataExist:!1};E(a()({},u,t)),console.log(e)})},[t]),wp.element.createElement(_,null,wp.element.createElement(N,{target:"monsterinsights-headline-analyzer"},n),wp.element.createElement(T,{name:"monsterinsights-headline-analyzer",title:n,className:"monsterinsights-headline-analyzer-wrapper",icon:c.a.headline},void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed?wp.element.createElement(p.a,{analyzer:u,setAnalyzer:B}):wp.element.createElement("p",{className:"monsterinsights-headline-analyzer-empty-title-warning"},r),void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed&&O.length>0?wp.element.createElement(h.a,{analyzer:u,setAnalyzer:B}):"",void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed?wp.element.createElement(m.a,{data:u.headlineData}):"",void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed?wp.element.createElement(f.a,{data:u.headlineData}):"",void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed?wp.element.createElement(g.a,{data:u.headlineData}):"",void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed?wp.element.createElement(w.a,{data:u.headlineData}):"",void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed?wp.element.createElement(v.a,{data:u.headlineData}):"",void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed?wp.element.createElement(y.a,{data:u.headlineData}):"",void 0!==u.headlineData&&u.dataExist&&u.headlineData.analysed?wp.element.createElement(b.a,{data:u.headlineData}):"",wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-bottom-notice"},wp.element.createElement("p",{dangerouslySetInnerHTML:{__html:j}}))))};"undefined"!=typeof monsterinsights_gutenberg_tool_vars&&monsterinsights_gutenberg_tool_vars.allowed_post_types.includes(monsterinsights_gutenberg_tool_vars.current_post_type)&&monsterinsights_gutenberg_tool_vars.is_headline_analyzer_enabled&&k("monsterinsights-headline-analyzer",{icon:c.a.headlineBlack,render:j})},function(e,t,n){e.exports={default:n(93),__esModule:!0}},function(e,t,n){n(27),n(101),e.exports=n(0).Array.from},function(e,t,n){var r=n(35),i=n(36);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(39),i=n(21),o=n(44),a={};n(11)(a,n(2)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(7),i=n(8),o=n(22);e.exports=n(5)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},function(e,t,n){var r=n(10),i=n(58),o=n(99);e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(35),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(6).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(37),i=n(4),o=n(23),a=n(102),s=n(103),l=n(58),c=n(104),u=n(60);i(i.S+i.F*!n(105)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,d,p=o(e),h="function"==typeof this?this:Array,m=arguments.length,f=m>1?arguments[1]:void 0,g=void 0!==f,w=0,v=u(p);if(g&&(f=r(f,m>2?arguments[2]:void 0,2)),void 0==v||h==Array&&s(v))for(t=l(p.length),n=new h(t);t>w;w++)c(n,w,g?f(p[w],w):p[w]);else for(d=v.call(p),n=new h;!(i=d.next()).done;w++)c(n,w,g?a(d,f,[i.value,w],!0):i.value);return n.length=w,n}})},function(e,t,n){var r=n(8);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){var r=n(14),i=n(2)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){"use strict";var r=n(7),i=n(21);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(2)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},function(e,t,n){e.exports={default:n(107),__esModule:!0}},function(e,t,n){n(108),e.exports=n(0).Object.assign},function(e,t,n){var r=n(4);r(r.S+r.F,"Object",{assign:n(109)})},function(e,t,n){"use strict";var r=n(5),i=n(22),o=n(45),a=n(24),s=n(23),l=n(57),c=Object.assign;e.exports=!c||n(13)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=s(e),c=arguments.length,u=1,d=o.f,p=a.f;c>u;)for(var h,m=l(arguments[u++]),f=d?i(m).concat(d(m)):i(m),g=f.length,w=0;g>w;)h=f[w++],r&&!p.call(m,h)||(n[h]=m[h]);return n}:c},function(e,t,n){e.exports={default:n(111),__esModule:!0}},function(e,t,n){n(46),n(27),e.exports=n(115)},function(e,t,n){"use strict";var r=n(113),i=n(114),o=n(14),a=n(10);e.exports=n(52)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(61),i=n(2)("iterator"),o=n(14);e.exports=n(0).isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},function(e,t,n){n(46),n(27),e.exports=n(117)},function(e,t,n){var r=n(8),i=n(60);e.exports=n(0).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){"use strict";function r(e){var t=new a(e),n=o(a.prototype.request,t);return i.extend(n,a.prototype,t),i.extend(n,t),n}var i=n(1),o=n(64),a=n(119),s=n(70),l=n(67),c=r(l);c.Axios=a,c.create=function(e){return r(s(c.defaults,e))},c.Cancel=n(71),c.CancelToken=n(133),c.isCancel=n(66),c.all=function(e){return Promise.all(e)},c.spread=n(134),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new a,response:new a}}var i=n(1),o=n(65),a=n(120),s=n(121),l=n(70);r.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=l(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[s,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},r.prototype.getUri=function(e){return e=l(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";function r(){this.handlers=[]}var i=n(1);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var i=n(1),o=n(122),a=n(66),s=n(67);e.exports=function(e){return r(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return r(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(r(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(u===setTimeout)return setTimeout(e,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function o(e){if(d===clearTimeout)return clearTimeout(e);if((d===r||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){f&&h&&(f=!1,h.length?m=h.concat(m):g=-1,m.length&&s())}function s(){if(!f){var e=i(a);f=!0;for(var t=m.length;t;){for(h=m,m=[];++g<t;)h&&h[g].run();g=-1,t=m.length}h=null,f=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var u,d,p=e.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(e){u=n}try{d="function"==typeof clearTimeout?clearTimeout:r}catch(e){d=r}}();var h,m=[],f=!1,g=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];m.push(new l(e,t)),1!==m.length||f||i(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(69);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,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}},function(e,t,n){"use strict";var r=n(128),i=n(129);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(1),i=["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,o,a={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(i.setAttribute("href",t),t=i.href),i.setAttribute("href",t),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return t=e(window.location.href),function(n){var i=r.isString(n)?e(n):n;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.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)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,n){"use strict";function r(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 i(e),t(n.reason))})}var i=n(71);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";var r=n(31),i=n.n(r),o=n(3),a=n.n(o),s=n(136),l=n(137),c=n(138),u=wp.i18n.__,d=wp.element,p=d.Fragment,h=d.useState,m=d.useEffect,f=function(e){var t=u("Current Score","google-analytics-for-wordpress"),n=u("Try New Headline","google-analytics-for-wordpress"),r=h("current-score"),o=i()(r,2),d=o[0],f=o[1],g=function(){return f("current-score")},w=function(){return f("new-headline")},v=void 0!==e.analyzer.isNewData&&e.analyzer.isNewData;return m(function(){e.setAnalyzer({activeTab:d})},[d]),wp.element.createElement(p,null,wp.element.createElement("div",{className:"monsterinsights-inline-buttons"},wp.element.createElement("button",{onClick:g,className:a()("monsterinsights-switcher-button",{active:"current-score"===d})},t),wp.element.createElement("button",{onClick:w,className:a()("monsterinsights-switcher-button",{active:"new-headline"===d})},n)),"new-headline"===d?wp.element.createElement(l.a,{analyzer:e.analyzer,setAnalyzer:e.setAnalyzer}):wp.element.createElement(s.a,{analyzer:e.analyzer}),v?wp.element.createElement(c.a,{analyzer:e.analyzer}):"")};t.a=f},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=n(32),a=wp.i18n.__,s=wp.element.Fragment,l=wp.components,c=l.PanelBody,u=l.PanelRow,d=function(e){var t=e.analyzer.currentHeadlineData.sentence,n=a("Score","google-analytics-for-wordpress"),r=a("A good score is between 40 and 60. For best results, you should strive for 70 and above.","google-analytics-for-wordpress"),l=e.analyzer.currentHeadlineData.score,d=l<40?"red":l<=60?"orange":"green",p="red"===d?"#EB5757":"orange"===d?"#F2994A":"#1EC185";return wp.element.createElement(s,null,wp.element.createElement(c,{title:n},wp.element.createElement(u,null,wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-current-score-tab"},wp.element.createElement("h4",{className:"monsterinsights-headline-analyzer-current-title"},"“",t,"”"),wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-pie-chart-container"},wp.element.createElement("span",{className:i()("monsterinsights-headline-analyzer-current-score",d)},l),wp.element.createElement(o.a,{barScore:l,barColor:p})),wp.element.createElement("p",null,r)))))};t.a=d},function(e,t,n){"use strict";var r=n(51),i=n.n(r),o=n(63),a=n.n(o),s=wp.i18n.__,l=wp.element.Fragment,c=wp.components,u=c.PanelBody,d=c.PanelRow,p=c.TextControl,h=c.Button,m=function(e){var t=s("Try New Headline","google-analytics-for-wordpress"),n=s("Enter a different headline than your post title to see how it compares.","google-analytics-for-wordpress"),r=s("Analyze","google-analytics-for-wordpress"),o=void 0!==e.analyzer.newHeadline?e.analyzer.newHeadline:"",c=void 0!==e.analyzer.previousHeadlinesData?e.analyzer.previousHeadlinesData:[],m=!o,f=function(t){var n=t.trim();if(n){var r=new FormData;r.append("_ajax_nonce",monsterinsights_gutenberg_tool_vars.nonce),r.append("action","monsterinsights_gutenberg_headline_analyzer_get_results"),r.append("dataType","json"),r.append("q",n),a.a.post(monsterinsights_gutenberg_tool_vars.ajaxurl,r).then(function(t){e.setAnalyzer({newHeadlineData:t.data.data,headlineData:t.data.data,previousHeadlinesData:[e.analyzer.headlineData].concat(i()(c)),isNewData:!0})}).catch(function(t){e.setAnalyzer({isNewData:!1}),console.log(t)})}};return wp.element.createElement(l,null,wp.element.createElement(u,{title:t},wp.element.createElement(d,null,wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-new-tab"},wp.element.createElement("form",{onSubmit:function(e){e.preventDefault(),f(o)}},wp.element.createElement(p,{label:n,value:o,onChange:function(t){" "!==t&&e.setAnalyzer({newHeadline:t})},className:"monsterinsights-headline-analyzer-input-field"}),wp.element.createElement(h,{className:"monsterinsights-headline-analyzer-button",isPrimary:!0,onClick:function(){f(o)},disabled:m},r))))))};t.a=m},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=n(32),a=wp.i18n.__,s=wp.element.Fragment,l=wp.components,c=l.PanelBody,u=l.PanelRow,d=function(e){var t=e.analyzer.currentHeadlineData.sentence,n=a("New Score","google-analytics-for-wordpress"),r=a("A good score is between 40 and 60. For best results, you should strive for 70 and above.","google-analytics-for-wordpress"),l=a("Current Score","google-analytics-for-wordpress"),d=void 0!==e.analyzer.newHeadlineData?e.analyzer.newHeadlineData.sentence:"",p=void 0!==e.analyzer.newHeadlineData?e.analyzer.newHeadlineData.score:"",h=void 0!==e.analyzer.currentHeadlineData.score?e.analyzer.currentHeadlineData.score:"",m=p<40?"red":p<=60?"orange":"green",f="red"===m?"#EB5757":"orange"===m?"#F2994A":"#1EC185",g=h<40?"red-bg":h<=60?"orange-bg":"green-bg",w=Math.abs(p-h);return wp.element.createElement(s,null,wp.element.createElement(c,{title:n},wp.element.createElement(u,null,wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-new-score-panel"},wp.element.createElement("p",null,r),wp.element.createElement("h4",null,"“",d,"”"),wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-pie-chart-container"},wp.element.createElement("span",{className:i()("monsterinsights-headline-analyzer-new-score",m)},p),wp.element.createElement(o.a,{barScore:p,barColor:f})),wp.element.createElement("div",{className:"current-score"},wp.element.createElement("span",{className:i()("monsterinsights-headline-analyzer-score-difference",m)},p>h?"+ ":p===h?"":"- ",w),wp.element.createElement("h5",null,l),wp.element.createElement("span",{className:i()("monsterinsights-headline-analyzer-score",g)},h),wp.element.createElement("p",null,"“",t,"”"))))))};t.a=d},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=wp.i18n.__,a=wp.element.Fragment,s=wp.components,l=s.PanelBody,c=s.PanelRow,u=function(e){var t=o("Previous Scores","google-analytics-for-wordpress"),n="undefined"!==e.analyzer.previousHeadlinesData?e.analyzer.previousHeadlinesData:[],r=document.querySelector(".edit-post-sidebar"),s="undefined"!==e.analyzer.activeTab?e.analyzer.activeTab:"current-score",u="current-score"===s?390:300,d=function(t){e.setAnalyzer({newHeadlineData:n[t],headlineData:n[t],newHeadline:n[t].sentence,isNewData:!0}),r&&(r.scrollTop=u)};return wp.element.createElement(a,null,wp.element.createElement(l,{title:t},wp.element.createElement(c,null,wp.element.createElement("ul",{className:"monsterinsights-headline-analyzer-previous-scores"},n.map(function(e,t){if(t<10&&(void 0!==e.sentence||void 0!==e.score)){var n=e.score<40?"red-bg":e.score<=60?"orange-bg":"green-bg";return wp.element.createElement("li",{key:t,onClick:function(){return d(t)}},wp.element.createElement("span",{className:i()("monsterinsights-headline-analyzer-score",n)},e.score),e.sentence)}})))))};t.a=u},function(e,t,n){"use strict";var r=n(25),i=n(3),o=n.n(i),a=n(141),s=wp.i18n.__,l=wp.element.Fragment,c=wp.components,u=c.PanelBody,d=c.PanelRow,p=function(e){var t=s("Word Balance","google-analytics-for-wordpress"),n=s("Compare the percentages of your results to the goal for each category and adjust as necessary.","google-analytics-for-wordpress"),i=e.data.score<40?"red":e.data.score<=60?"orange":"green",c=(e.data.score<40||e.data.score,0===e.data.result.common_words_per?"red":e.data.result.common_words_per<.2?"orange":"green"),p=0===e.data.result.common_words_per?"red-bg":e.data.result.common_words_per<.2?"orange-bg":"green-bg",h=s("Your headline would be more likely to get clicks if it had more uncommon words.","google-analytics-for-wordpress"),m=e.data.result.common_words_per<.2?h:s("Headlines with 20-30% common words are more likely to get clicks.","google-analytics-for-wordpress"),f=0===e.data.result.uncommon_words_per?"red":e.data.result.uncommon_words_per<.1?"orange":"green",g=0===e.data.result.uncommon_words_per?"red-bg":e.data.result.uncommon_words_per<.1?"orange-bg":"green-bg",w=e.data.result.uncommon_words_per<.1?h:s("Headlines with uncommon words are more likely to get clicks.","google-analytics-for-wordpress"),v=0===e.data.result.emotion_words_per?"red":e.data.result.emotion_words_per<.1?"orange":"green",y=0===e.data.result.emotion_words_per?"red-bg":e.data.result.emotion_words_per<.1?"orange-bg":"green-bg",b=s("Emotionally triggered headlines are likely to drive more clicks.","google-analytics-for-wordpress"),S=0===e.data.result.power_words.length?"orange":"green",E=0===e.data.result.power_words.length?"orange":"green-bg",_=s("Headlines with Power Words are more likely to get clicks.","google-analytics-for-wordpress"),C=s("Common Words","google-analytics-for-wordpress"),x=s("20-30%","google-analytics-for-wordpress"),k=s("Uncommon Words","google-analytics-for-wordpress"),O=s("10-20%","google-analytics-for-wordpress"),T=s("Emotional Words","google-analytics-for-wordpress"),N=s("10-15%","google-analytics-for-wordpress"),M=s("Power Words","google-analytics-for-wordpress"),j=s("At least one","google-analytics-for-wordpress");return wp.element.createElement(l,null,wp.element.createElement(u,{title:t,className:o()("monsterinsights-headline-analyzer-panel-word-balance","monsterinsights-headline-analyzer-panel-has-icon",i),icon:"green"===i?r.a.check:r.a.warning},wp.element.createElement(d,null,wp.element.createElement("h4",null,e.data.result.word_balance),wp.element.createElement("p",null,n),wp.element.createElement(a.a,{title:C,value:Math.round(100*e.data.result.common_words_per),goalValue:x,words:e.data.result.common_words,guideLine:m,classOnScore:c,classOnScoreBg:p}),wp.element.createElement(a.a,{title:k,value:Math.round(100*e.data.result.uncommon_words_per),goalValue:O,words:e.data.result.uncommon_words,guideLine:w,classOnScore:f,classOnScoreBg:g}),wp.element.createElement(a.a,{title:T,value:Math.round(100*e.data.result.emotion_words_per),goalValue:N,words:e.data.result.emotion_words,guideLine:b,classOnScore:v,classOnScoreBg:y}),wp.element.createElement(a.a,{title:M,value:Math.round(100*e.data.result.power_words_per),goalValue:j,words:e.data.result.power_words,guideLine:_,classOnScore:S,classOnScoreBg:E}))))};t.a=p},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=wp.i18n.__,a=function(e){var t=o("Goal: ","google-analytics-for-wordpress"),n={width:e.value+"%"};return wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-words-block"},wp.element.createElement("h5",null,e.title),wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-words-block-data"},wp.element.createElement("span",{className:i()("monsterinsights-headline-analyzer-words-block-percentage",e.classOnScore)},e.value,"%"),wp.element.createElement("span",{className:"monsterinsights-headline-analyzer-words-block-goal"},wp.element.createElement("strong",null,t),e.goalValue),wp.element.createElement("span",{className:"monsterinsights-headline-analyzer-words-block-progressbar"},wp.element.createElement("span",{className:"monsterinsights-headline-analyzer-progressbar-bg"}),wp.element.createElement("span",{className:i()("monsterinsights-headline-analyzer-progressbar-part",e.classOnScoreBg),style:n}))),wp.element.createElement("ul",{className:"monsterinsights-headline-analyzer-words-tag-list"},e.words.length>0?e.words.map(function(e,t){return wp.element.createElement("li",{key:t},e)}):""),wp.element.createElement("p",{className:"monsterinsights-headline-analyzer-words-guideline"},e.guideLine))};t.a=a},function(e,t,n){"use strict";var r=n(25),i=n(3),o=n.n(i),a=wp.i18n.__,s=wp.element.Fragment,l=wp.components,c=l.PanelBody,u=l.PanelRow,d=function(e){var t=a("Your headline has a neutral sentiment.","google-analytics-for-wordpress"),n=a("Headlines that are strongly positive or negative tend to get more engagement then neutral ones.","google-analytics-for-wordpress"),i=a("Your headline has a positive sentiment.","google-analytics-for-wordpress"),l=a("Positive headlines tend to get better engagement than neutral or negative ones.","google-analytics-for-wordpress"),d=a("Your headline has a negative sentiment.","google-analytics-for-wordpress"),p=a("Negative headlines are attention-grabbing and tend to perform better than neutral ones.","google-analytics-for-wordpress"),h=a("Sentiment","google-analytics-for-wordpress"),m="neu"===e.data.result.sentiment?a("Neutral","google-analytics-for-wordpress"):"pos"===e.data.result.sentiment?a("Positive","google-analytics-for-wordpress"):a("Negative","google-analytics-for-wordpress"),f="neu"===e.data.result.sentiment?r.a.neutral:"pos"===e.data.result.sentiment?r.a.smile:r.a.negative,g="neu"===e.data.result.sentiment?"orange":"pos"===e.data.result.sentiment?"green":"red";return wp.element.createElement(s,null,wp.element.createElement(c,{title:h,className:o()("monsterinsights-headline-analyzer-panel-sentiment","monsterinsights-headline-analyzer-panel-has-icon",g),icon:f},wp.element.createElement(u,null,wp.element.createElement("h4",null,m),"neu"===e.data.result.sentiment?wp.element.createElement("p",null,t," ",wp.element.createElement("br",null),wp.element.createElement("br",null)," ",n):"","pos"===e.data.result.sentiment?wp.element.createElement("p",null,i," ",wp.element.createElement("br",null),wp.element.createElement("br",null)," ",l):"","neg"===e.data.result.sentiment?wp.element.createElement("p",null,d," ",wp.element.createElement("br",null),wp.element.createElement("br",null)," ",p):"")))};t.a=d},function(e,t,n){"use strict";var r=wp.i18n,i=r.__,o=r.sprintf,a=wp.element.Fragment,s=wp.components,l=s.PanelBody,c=s.PanelRow,u=function(e){var t=e.data.result.headline_types.join(", "),n=i("Headline Type","google-analytics-for-wordpress"),r=wp.element.createElement("span",{className:"monsterinsights-headline-analyzer-panel-types-title"},n,wp.element.createElement("span",null,t)),s=o(i("Headlines that are lists and how-to get more engagement on average than other types of headlines. %1sRead more about %2sdifferent types of headlines here.%3s","google-analytics-for-wordpress"),"<br/><br/>",'<a href="https://optinmonster.com/why-these-21-headlines-went-viral-and-how-you-can-copy-their-success/" target="_blank" className="monsterinsights-headline-analyzer-link">',"</a>");return wp.element.createElement(a,null,wp.element.createElement(l,{title:r,className:"monsterinsights-headline-analyzer-panel-types"},wp.element.createElement(c,null,wp.element.createElement("h4",null,t),wp.element.createElement("p",{dangerouslySetInnerHTML:{__html:s}}))))};t.a=u},function(e,t,n){"use strict";var r=n(25),i=n(3),o=n.n(i),a=n(32),s=wp.i18n.__,l=wp.element.Fragment,c=wp.components,u=c.PanelBody,d=c.PanelRow,p=function(e){var t=s("Character Count","google-analytics-for-wordpress"),n=e.data.result.length,i=n>=66?100:Math.round(1.51*n),c="",p="",h="#1EC185",m="";return n<=19?(c="red",h="#EB5757"):n>=20&&n<=34?(c="orange",h="#F2994A"):n>=35&&n<=66?(c="green",h="#1EC185"):n>=67&&n<=79?(c="orange",h="#F2994A"):n>=80&&(c="red",h="#EB5757"),n<=34?(p=s("Too Short","google-analytics-for-wordpress"),m=s("You have space to add more keywords and power words to boost your rankings and click-through rate.","google-analytics-for-wordpress")):n>=35&&n<=66?(p=s("Good","google-analytics-for-wordpress"),m=s("Headlines that are about 55 characters long will display fully in search results and tend to get more clicks.","google-analytics-for-wordpress")):n>=67&&(p=s("Too Long","google-analytics-for-wordpress"),m=s("At this length, it will get cut off in search results. Try reducing it to about 55 characters.","google-analytics-for-wordpress")),wp.element.createElement(l,null,wp.element.createElement(u,{title:t,className:o()("monsterinsights-headline-analyzer-panel-character-count","monsterinsights-headline-analyzer-panel-has-icon",c),icon:"green"===c?r.a.check:r.a.warning},wp.element.createElement(d,null,wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-pie-chart-container"},wp.element.createElement("span",{className:o()("monsterinsights-headline-analyzer-character-length",c)},n),wp.element.createElement(a.a,{barScore:i,barColor:h}),wp.element.createElement("span",{className:"monsterinsights-headline-analyzer-status-on-character-length"},p)),wp.element.createElement("p",null,m))))};t.a=p},function(e,t,n){"use strict";var r=n(25),i=n(3),o=n.n(i),a=n(32),s=wp.i18n.__,l=wp.element.Fragment,c=wp.components,u=c.PanelBody,d=c.PanelRow,p=function(e){var t=s("Word Count","google-analytics-for-wordpress"),n=e.data.result.word_count,i=n>=10?100:Math.round(10*n),c="",p="",h="#1EC185",m="";return n<=4?(c="red",h="#EB5757",p=s("Not Enough Words","google-analytics-for-wordpress"),m=s("Your headline doesn’t use enough words. You have more space to add keywords and power words to improve your SEO and get more engagement.","google-analytics-for-wordpress")):n>=5&&n<=9?(c="green",h="#1EC185",p=s("Good","google-analytics-for-wordpress"),m=s("Your headline has the right amount of words. Headlines are more likely to be clicked on in search results if they have about 6 words.","google-analytics-for-wordpress")):n>=10&&n<=11?(c="orange",h="#F2994A",p=s("Reduce Word Count","google-analytics-for-wordpress")):(c="red",h="#EB5757",p=s("Too Many Words","google-analytics-for-wordpress"),m=s("Your headline has too many words. Long headlines will get cut off in search results and won’t get as many clicks.","google-analytics-for-wordpress")),wp.element.createElement(l,null,wp.element.createElement(u,{title:t,className:o()("monsterinsights-headline-analyzer-panel-word-count","monsterinsights-headline-analyzer-panel-has-icon",c),icon:"green"===c?r.a.check:r.a.warning},wp.element.createElement(d,null,wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-pie-chart-container"},wp.element.createElement("span",{className:o()("monsterinsights-headline-analyzer-word-length",c)},n),wp.element.createElement(a.a,{barScore:i,barColor:h}),wp.element.createElement("span",{className:"monsterinsights-headline-analyzer-status-on-word-length"},p)),wp.element.createElement("p",null,m))))};t.a=p},function(e,t,n){"use strict";var r=wp.i18n.__,i=wp.element.Fragment,o=wp.components,a=o.PanelBody,s=o.PanelRow,l=function(e){var t=r("Beginning & Ending Words","google-analytics-for-wordpress"),n=e.data.result.input_array_orig,o=r("Most readers only look at the first and last 3 words of a headline before deciding whether to click.","google-analytics-for-wordpress"),l="",c="";return n.length>=6?(l=n.slice(0,3).join(" "),c=n.slice(-3).join(" ")):n.length>3&&n.length<=5?(l=n.slice(0,3).join(" "),c=n.slice(3).join(" ")):l=n.slice(0,3).join(" "),wp.element.createElement(i,null,wp.element.createElement(a,{title:t,className:"monsterinsights-headline-analyzer-panel-beginning-ending-words"},wp.element.createElement(s,null,l?wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-words beginning"},wp.element.createElement("span",null,l)):"",c?wp.element.createElement("div",{className:"monsterinsights-headline-analyzer-words ending"},wp.element.createElement("span",null,c)):"",wp.element.createElement("p",{className:"monsterinsights-headline-analyzer-words-guideline"},o))))};t.a=l},function(e,t,n){"use strict";var r=n(30),i=n.n(r),o=wp.i18n.__,a=wp.element.Fragment,s=wp.components,l=s.PanelBody,c=s.PanelRow,u=wp.data.select,d=function(e){var t=o("Search Preview","google-analytics-for-wordpress"),n=o("Here is how your headline will look like in google search results page.","google-analytics-for-wordpress"),r=u("core/editor").getPermalink(),s={href:r};return wp.element.createElement(a,null,wp.element.createElement(l,{title:t,className:"monsterinsights-headline-analyzer-panel-search-preview"},wp.element.createElement(c,null,wp.element.createElement("h4",null,e.data.sentence),wp.element.createElement("p",{className:"monsterinsights-headline-analyzer-post-url"},wp.element.createElement("a",i()({},s,{target:"_blank"}),r)),wp.element.createElement("p",null,n))))};t.a=d},function(e,t,n){"use strict";var r=n(31),i=n.n(r),o=n(149),a=n(150),s=wp.components.ToggleControl,l=wp.plugins.registerPlugin,c=wp.data,u=c.dispatch,d=c.select,p=wp.i18n.__,h=wp.editPost.PluginDocumentSettingPanel,m=wp.element,f=m.useState,g=m.Fragment;l("monsterinsights-exclude-page-tracking",{render:function(){var e=window.monsterinsights_gutenberg_tool_vars;if(!e||"1"!==e.supports_custom_fields||"1"!==e.public_post_type)return wp.element.createElement(g,null);var t=d("core/editor").getEditedPostAttribute("meta")||[];t._mi_skip_tracking||(t._mi_skip_tracking=!1);var n=f(!!t._mi_skip_tracking),r=i()(n,2),l=r[0],c=r[1];return wp.element.createElement(h,{name:"monsterinsights-skip-tracking",title:"MonsterInsights",className:"monsterinsights-skip-tracking-wrapper",icon:"mi"},wp.element.createElement(s,{checked:l,help:p("Toggle to prevent Google Analytics from tracking this page.","google-analytics-for-wordpress"),label:p("Exclude page from Google Analytics Tracking","google-analytics-for-wordpress"),disabled:"lite"===e.license_type,onChange:function(e){c(!!e),u("core/editor").editPost({meta:{_mi_skip_tracking:e}})}}),wp.element.createElement(a.a,{addonInstalled:e.page_insights_addon_active,hidden:l}),wp.element.createElement(o.a,{license:e.license_type,upgrade_url:e.upgrade_url}))}})},function(e,t,n){"use strict";var r=wp.i18n.__,i=wp.element.Fragment,o=function(e){if("lite"!==e.license)return wp.element.createElement(i,null);var t={description:r("This is a PRO feature.","google-analytics-for-wordpress"),upgrade:r("Upgrade","google-analytics-for-wordpress")};return wp.element.createElement(i,null,wp.element.createElement("div",{className:"monsterinsights-metabox-pro-badge"},wp.element.createElement("span",null,wp.element.createElement("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M6.57617 1.08203L4.92578 4.45898L1.19336 4.99219C0.533203 5.09375 0.279297 5.90625 0.761719 6.38867L3.42773 9.00391L2.79297 12.6855C2.69141 13.3457 3.40234 13.8535 3.98633 13.5488L7.3125 11.7969L10.6133 13.5488C11.1973 13.8535 11.9082 13.3457 11.8066 12.6855L11.1719 9.00391L13.8379 6.38867C14.3203 5.90625 14.0664 5.09375 13.4062 4.99219L9.69922 4.45898L8.02344 1.08203C7.74414 0.498047 6.88086 0.472656 6.57617 1.08203Z",fill:"#31862D"})),t.description),wp.element.createElement("div",{className:"monsterinsights-metabox-pro-badge-upgrade"},wp.element.createElement("a",{href:e.upgrade_url,target:"_blank",rel:"noopener"},t.upgrade))))};t.a=o},function(e,t,n){"use strict";var r=n(151),i=n.n(r),o=n(62),a=n.n(o),s=n(31),l=n.n(s),c=n(15),u=n.n(c),d=n(16),p=n.n(d),h=n(17),m=n.n(h),f=n(18),g=n.n(f),w=n(19),v=n.n(w),y=n(179),b=n(20),S=n(196),E=n(197),_=n(198),C=wp.i18n.__,x=function(e){function t(){p()(this,t);var e=g()(this,(t.__proto__||u()(t)).call(this));return e.showPageInsightsClick=function(){e.setState({showBtnClicked:!0})},e.hidePageInsightsClick=function(){e.setState({showBtnClicked:!1})},e.tabclick=function(t){var n=e.state.tabs,r=!0,o=!1,s=void 0;try{for(var c,u=a()(i()(n));!(r=(c=u.next()).done);r=!0){var d=c.value,p=l()(d,2),h=p[0];p[1];n[h]=h===t}}catch(e){o=!0,s=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw s}}e.setState({tabs:n})},e.state={showBtnClicked:!1,tabs:{last30days:!0,yesterday:!1}},e.texts={last30days:C("Last 30 days","google-analytics-for-wordpress"),yesterday:C("Yesterday","google-analytics-for-wordpress"),bouncerate:C("Bounce Rate","google-analytics-for-wordpress"),timeonpage:C("Time On Page","google-analytics-for-wordpress"),loadingtime:C("Load Time","google-analytics-for-wordpress"),entrances:C("Entrances","google-analytics-for-wordpress"),pageviews:C("Page Views","google-analytics-for-wordpress"),exits:C("Exits","google-analytics-for-wordpress")},e}return v()(t,e),m()(t,[{key:"is_v4",value:function(){return monsterinsights_gutenberg_tool_vars&&"1"===monsterinsights_gutenberg_tool_vars.is_v4}},{key:"render",value:function(){return this.props.hidden?wp.element.createElement(Fragment,null):wp.element.createElement("div",{className:"monsterinsights-metabox lite",id:"monsterinsights-metabox-page-insights"},!this.state.showBtnClicked&&wp.element.createElement(S.a,{onClick:this.showPageInsightsClick}),wp.element.createElement("div",{id:"monsterinsights-page-insights-content",className:this.state.showBtnClicked?"active":""},wp.element.createElement("div",{className:"monsterinsights-page-insights__tabs"},wp.element.createElement(y.a,{text:this.texts.last30days,tab:"tab-last-30-days-content",active:this.state.tabs.last30days,onClick:this.tabclick,interval:"last30days"}),wp.element.createElement(y.a,{text:this.texts.yesterday,tab:"tab-yesterday-content",active:this.state.tabs.yesterday,onClick:this.tabclick,interval:"yesterday"})),wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content"},wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab active",id:"tab-last-30-days-content"},wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-items"},!this.is_v4()&&wp.element.createElement(_.a,{value:"53.40%",label:this.texts.bouncerate}),wp.element.createElement(_.a,{value:"1m 43s",label:this.texts.timeonpage}),!this.is_v4()&&wp.element.createElement(_.a,{value:"3.9s",label:this.texts.loadingtime}),wp.element.createElement(_.a,{value:"19056",label:this.texts.entrances}),wp.element.createElement(_.a,{value:"26558",label:this.texts.pageviews}),wp.element.createElement(_.a,{value:"13428",label:this.texts.exits}))))),this.state.showBtnClicked&&wp.element.createElement(E.a,{onClick:this.hidePageInsightsClick}))}}]),t}(b.a);t.a=x},function(e,t,n){e.exports={default:n(152),__esModule:!0}},function(e,t,n){n(153),e.exports=n(0).Object.entries},function(e,t,n){var r=n(4),i=n(154)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){var r=n(5),i=n(22),o=n(10),a=n(24).f;e.exports=function(e){return function(t){for(var n,s=o(t),l=i(s),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}}},function(e,t,n){n(156),e.exports=n(0).Object.getPrototypeOf},function(e,t,n){var r=n(23),i=n(59);n(157)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(4),i=n(0),o=n(13);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(e,t,n){n(159);var r=n(0).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(4);r(r.S+r.F*!n(5),"Object",{defineProperty:n(7).f})},function(e,t,n){e.exports={default:n(161),__esModule:!0}},function(e,t,n){n(27),n(46),e.exports=n(47).f("iterator")},function(e,t,n){e.exports={default:n(163),__esModule:!0}},function(e,t,n){n(164),n(169),n(170),n(171),e.exports=n(0).Symbol},function(e,t,n){"use strict";var r=n(6),i=n(9),o=n(5),a=n(4),s=n(55),l=n(165).KEY,c=n(13),u=n(42),d=n(44),p=n(29),h=n(2),m=n(47),f=n(48),g=n(166),w=n(167),v=n(8),y=n(12),b=n(23),S=n(10),E=n(38),_=n(21),C=n(39),x=n(168),k=n(75),O=n(45),T=n(7),N=n(22),M=k.f,j=T.f,P=x.f,D=r.Symbol,F=r.JSON,A=F&&F.stringify,L=h("_hidden"),B=h("toPrimitive"),z={}.propertyIsEnumerable,R=u("symbol-registry"),H=u("symbols"),I=u("op-symbols"),q=Object.prototype,V="function"==typeof D&&!!O.f,W=r.QObject,Z=!W||!W.prototype||!W.prototype.findChild,U=o&&c(function(){return 7!=C(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=M(q,t);r&&delete q[t],j(e,t,n),r&&e!==q&&j(q,t,r)}:j,Y=function(e){var t=H[e]=C(D.prototype);return t._k=e,t},X=V&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},G=function(e,t,n){return e===q&&G(I,t,n),v(e),t=E(t,!0),v(n),i(H,t)?(n.enumerable?(i(e,L)&&e[L][t]&&(e[L][t]=!1),n=C(n,{enumerable:_(0,!1)})):(i(e,L)||j(e,L,_(1,{})),e[L][t]=!0),U(e,t,n)):j(e,t,n)},K=function(e,t){v(e);for(var n,r=g(t=S(t)),i=0,o=r.length;o>i;)G(e,n=r[i++],t[n]);return e},$=function(e,t){return void 0===t?C(e):K(C(e),t)},J=function(e){var t=z.call(this,e=E(e,!0));return!(this===q&&i(H,e)&&!i(I,e))&&(!(t||!i(this,e)||!i(H,e)||i(this,L)&&this[L][e])||t)},Q=function(e,t){if(e=S(e),t=E(t,!0),e!==q||!i(H,t)||i(I,t)){var n=M(e,t);return!n||!i(H,t)||i(e,L)&&e[L][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=P(S(e)),r=[],o=0;n.length>o;)i(H,t=n[o++])||t==L||t==l||r.push(t);return r},te=function(e){for(var t,n=e===q,r=P(n?I:S(e)),o=[],a=0;r.length>a;)!i(H,t=r[a++])||n&&!i(q,t)||o.push(H[t]);return o};V||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===q&&t.call(I,n),i(this,L)&&i(this[L],e)&&(this[L][e]=!1),U(this,e,_(1,n))};return o&&Z&&U(q,e,{configurable:!0,set:t}),Y(e)},s(D.prototype,"toString",function(){return this._k}),k.f=Q,T.f=G,n(74).f=x.f=ee,n(24).f=J,O.f=te,o&&!n(28)&&s(q,"propertyIsEnumerable",J,!0),m.f=function(e){return Y(h(e))}),a(a.G+a.W+a.F*!V,{Symbol:D});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)h(ne[re++]);for(var ie=N(h.store),oe=0;ie.length>oe;)f(ie[oe++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return i(R,e+="")?R[e]:R[e]=D(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in R)if(R[t]===e)return t},useSetter:function(){Z=!0},useSimple:function(){Z=!1}}),a(a.S+a.F*!V,"Object",{create:$,defineProperty:G,defineProperties:K,getOwnPropertyDescriptor:Q,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=c(function(){O.f(1)});a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return O.f(b(e))}}),F&&a(a.S+a.F*(!V||c(function(){var e=D();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(y(t)||void 0!==e)&&!X(e))return w(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!X(t))return t}),r[1]=t,A.apply(F,r)}}),D.prototype[B]||n(11)(D.prototype,B,D.prototype.valueOf),d(D,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(e,t,n){var r=n(29)("meta"),i=n(12),o=n(9),a=n(7).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(13)(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},p=function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},h=function(e){return c&&m.NEED&&l(e)&&!o(e,r)&&u(e),e},m=e.exports={KEY:r,NEED:!1,fastKey:d,getWeak:p,onFreeze:h}},function(e,t,n){var r=n(22),i=n(45),o=n(24);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),l=o.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){var r=n(40);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(10),i=n(74).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},function(e,t){},function(e,t,n){n(48)("asyncIterator")},function(e,t,n){n(48)("observable")},function(e,t,n){e.exports={default:n(173),__esModule:!0}},function(e,t,n){n(174),e.exports=n(0).Object.setPrototypeOf},function(e,t,n){var r=n(4);r(r.S,"Object",{setPrototypeOf:n(175).set})},function(e,t,n){var r=n(12),i=n(8),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(37)(Function.call,n(75).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){e.exports={default:n(177),__esModule:!0}},function(e,t,n){n(178);var r=n(0).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(4);r(r.S,"Object",{create:n(39)})},function(e,t,n){"use strict";var r=n(15),i=n.n(r),o=n(16),a=n.n(o),s=n(17),l=n.n(s),c=n(18),u=n.n(c),d=n(19),p=n.n(d),h=n(20),m=(wp.i18n.__,function(e){function t(e){a()(this,t);var n=u()(this,(t.__proto__||i()(t)).call(this,e));return n.handleClick=function(){n.props.onClick(n.props.interval)},n}return p()(t,e),l()(t,[{key:"render",value:function(){return wp.element.createElement("a",{href:"#",className:"monsterinsights-page-insights__tabs-tab "+(this.props.active?"active":""),"data-tab":"this.props.tab",onClick:this.handleClick},this.props.text)}}]),t}(h.a));t.a=m},function(e,t,n){"use strict";n(181),n(78),n(79),n(33)},function(e,t,n){"use strict";function r(e,t){return Object(i.a)(e)||Object(o.a)(e,t)||Object(a.a)(e,t)||Object(s.a)()}t.a=r;var i=n(182),o=n(183),a=n(76),s=n(184)},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}t.a=r},function(e,t,n){"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}t.a=r},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.")}t.a=r},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return Object(i.a)(e)}t.a=r;var i=n(77)},function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}t.a=r},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.")}t.a=r},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}t.a=r},function(e,t,n){"use strict";var r=n(190);n.n(r)},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";var r=n(26);n.n(r)},function(e,t,n){"use strict"},function(e,t,n){"use strict";var r=(n(34),n(49),n(78),n(26)),i=(n.n(r),n(194),n(33)),o=(n(81),Object(i.e)(void 0));o.Provider,o.Consumer,Object(i.g)(function(){return null}),new Set(["string","boolean","number"]),new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"])},function(e,t,n){"use strict";function r(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&amp;")}function i(e){return e.replace(/"/g,"&quot;")}function o(e){return e.replace(/</g,"&lt;")}function a(e){return Object(c.a)(i(r(e)))}function s(e){return o(r(e))}function l(e){return!u.test(e)}t.a=a,t.b=s,t.c=l;var c=n(195),u=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/},function(e,t,n){"use strict";function r(e){return e.replace(/>/g,"&gt;")}t.a=r},function(e,t,n){"use strict";var r=n(15),i=n.n(r),o=n(16),a=n.n(o),s=n(17),l=n.n(s),c=n(18),u=n.n(c),d=n(19),p=n.n(d),h=n(20),m=wp.i18n.__,f=function(e){function t(){a()(this,t);var e=u()(this,(t.__proto__||i()(t)).call(this));return e.state={},e.btn_show_text=m("Show Page Insights","google-analytics-for-wordpress"),e}return p()(t,e),l()(t,[{key:"render",value:function(){return wp.element.createElement("a",{className:"button",href:"#",id:"monsterinsights_show_page_insights",onClick:this.props.onClick},this.btn_show_text)}}]),t}(h.a);t.a=f},function(e,t,n){"use strict";var r=n(15),i=n.n(r),o=n(16),a=n.n(o),s=n(17),l=n.n(s),c=n(18),u=n.n(c),d=n(19),p=n.n(d),h=n(20),m=wp.i18n.__,f=function(e){function t(){a()(this,t);var e=u()(this,(t.__proto__||i()(t)).call(this));return e.state={},e.btn_text=m("Hide Page Insights","google-analytics-for-wordpress"),e}return p()(t,e),l()(t,[{key:"render",value:function(){return wp.element.createElement("a",{className:"button",href:"#",id:"monsterinsights_hide_page_insights",onClick:this.props.onClick},this.btn_text)}}]),t}(h.a);t.a=f},function(e,t,n){"use strict";var r=n(15),i=n.n(r),o=n(16),a=n.n(o),s=n(17),l=n.n(s),c=n(18),u=n.n(c),d=n(19),p=n.n(d),h=n(20),m=(wp.i18n.__,function(e){function t(e){return a()(this,t),u()(this,(t.__proto__||i()(t)).call(this,e))}return p()(t,e),l()(t,[{key:"render",value:function(){return wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item"},wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item__result"},wp.element.createElement("span",null,this.props.value)),wp.element.createElement("div",{className:"monsterinsights-page-insights-tabs-content__tab-item__title"},this.props.label))}}]),t}(h.a));t.a=m},function(e,t,n){"use strict";n(200),n(207)},function(e,t,n){"use strict";var r=n(82),i=n.n(r),o=n(83),a=n.n(o),s=n(30),l=n.n(s),c=n(203),u=n(84),d=wp.i18n.__,p=wp.blocks.registerBlockType,h=wp,m=h.apiFetch,f=wp.data,g=f.registerStore,w=f.withSelect,v=wp.blockEditor.InspectorControls,y=wp.components,b=y.PanelBody,S=y.PanelRow,E=y.TextControl,_=y.ColorPalette,C=y.RangeControl,x=window.monsterinsights_gutenberg_tool_vars,k={setThemes:function(e){return{type:"SET_THEMES",themes:e}},receiveThemes:function(e){return{type:"RECEIVE_THEMES",path:e}}};g("monsterinsights/v1/popular-posts/inline",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{themes:{}},t=arguments[1];switch(t.type){case"SET_THEMES":return l()({},e,{themes:t.themes})}return e},actions:k,selectors:{receiveThemes:function(e){return e.themes}},controls:{RECEIVE_THEMES:function(e){return m({path:e.path})}},resolvers:{receiveThemes:a.a.mark(function e(t){var n,r;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k.receiveThemes("/monsterinsights/v1/popular-posts/themes/inline");case 2:if(n=e.sent,void 0===n.themes){e.next=6;break}for(r in n.themes)n.themes.hasOwnProperty(r)&&(n.themes[r].value=r);return e.abrupt("return",k.setThemes(n));case 6:case"end":return e.stop()}},e,this)})}}),p("monsterinsights/popular-posts-inline",{title:d("Inline Popular Posts","google-analytics-for-wordpress"),description:d("Add inline popular posts from MonsterInsights","google-analytics-for-wordpress"),category:"widgets",icon:c.a.inlinepop,keywords:[d("Popular","google-analytics-for-wordpress"),d("Posts","google-analytics-for-wordpress"),d("Inline","google-analytics-for-wordpress"),"MonsterInsights"],example:{},attributes:{theme:{type:"string"},title_size:{type:"number"},title_color:{type:"string"},label_color:{type:"string"},label_text:{type:"string"},label_background:{type:"string"},background_color:{type:"string"},background_border:{type:"string"},icon_background:{type:"string"},icon_color:{type:"string"},border_color:{type:"string"},border_color2:{type:"string"}},edit:w(function(e){return{themes:e("monsterinsights/v1/popular-posts/inline").receiveThemes()}})(function(e){var t=e.attributes,n=t.theme,r=(t.title_size,t.title_color,t.label_color,t.label_text,t.label_background,t.background_color,t.background_border,t.icon_background,t.icon_color,t.border_color,t.border_color2,e.themes),o=e.setAttributes,a=[{name:"pink",color:"#F58EA8"},{name:"red",color:"#CD3034"},{name:"orange",color:"#FD6A21"},{name:"yellow",color:"#FBB82B"},{name:"green",color:"#7FDBB6"},{name:"green",color:"#21CF86"},{name:"blue",color:"#91D2FA"},{name:"blue",color:"#1B95E0"},{name:"purple",color:"#9A57DD"},{name:"gray",color:"#EEEEEE"},{name:"gray",color:"#ACB8C3"},{name:"black",color:"#000000"}],s=void 0!==r.themes?r.themes:{},l=void 0===e.attributes.theme?r.selected:n,p=void 0!==l&&void 0!==s[l]?s[l]:{},h=void 0!==p.styles?p.styles:{},m={};for(var f in h)if(h.hasOwnProperty(f))for(var g in h[f])if(h[f].hasOwnProperty(g)){var w=f+"_"+g;void 0===e.attributes[w]?m[w]=h[f][g]:m[w]=e.attributes[w]}var y=function(e,t){var n=m[t];return wp.element.createElement(C,{key:"monsterinsights-popular-posts-input"+t,label:e,value:parseInt(n),min:1,max:100,onChange:function(e){return o(i()({},t,""===e?"":parseInt(e)))}})},k=function(e,t){var n=m[t];return wp.element.createElement(E,{key:"monsterinsights-popular-posts-input"+t,label:e,type:"text",value:n,onChange:function(e){return o(i()({},t,e))}})},O=function(e,t){var n=m[t];return[wp.element.createElement("label",{key:"monsterinsights-popular-posts-label"+t},e),wp.element.createElement(_,{key:"monsterinsights-popular-posts-input"+t,value:n,colors:a,onChange:function(e){o(i()({},t,e))}})]};return[wp.element.createElement(v,{key:"monsterinsights-popular-posts-inline-inspector-controls"},wp.element.createElement(b,{title:d("Theme","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-inline-theme"},wp.element.createElement(S,{key:"monsterinsights-popular-posts-inline-theme-row"},wp.element.createElement(u.a,{id:"monsterinsights-popular-posts-inline-theme",options:s,selected:l,icons:c.a,onChange:function(e){o({theme:e})}}))),function(){if(void 0!==h.title){var e=[];return void 0!==h.title.size&&e.push(y(d("Title Font Size","google-analytics-for-wordpress"),"title_size")),void 0!==h.title.color&&e.push(O(d("Title Color","google-analytics-for-wordpress"),"title_color")),wp.element.createElement(b,{title:d("Title Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-inline-title"},e)}}(),function(){if(void 0!==h.label){var e=[];return void 0!==h.label.text&&e.push(k(d("Label Text","google-analytics-for-wordpress"),"label_text")),void 0!==h.label.color&&e.push(O(d("Label Color","google-analytics-for-wordpress"),"label_color")),void 0!==h.label.background&&e.push(O(d("Label Background","google-analytics-for-wordpress"),"label_background")),wp.element.createElement(b,{title:d("Label Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-inline-label"}," ",e," ")}}(),function(){var e=[];if(void 0!==h.border&&void 0!==h.border.color&&e.push(O(d("Border Color","google-analytics-for-wordpress"),"border_color")),void 0!==h.border&&void 0!==h.border.color2&&e.push(O(d("Bottom Border Color","google-analytics-for-wordpress"),"border_color2")),void 0!==h.background&&void 0!==h.background.border&&e.push(O(d("Border Color","google-analytics-for-wordpress"),"background_border")),0!==e.length)return wp.element.createElement(b,{title:d("Border Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-inline-border"}," ",e," ")}(),function(){if(void 0!==h.background&&void 0!==h.background.color){var e=[];return void 0!==h.background.color&&e.push(O(d("Background Color","google-analytics-for-wordpress"),"background_color")),wp.element.createElement(b,{title:d("Background Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-inline-background"}," ",e," ")}}(),function(){if(void 0!==h.icon){var e=[];return void 0!==h.icon.color&&e.push(O(d("Icon Color","google-analytics-for-wordpress"),"icon_color")),void 0!==h.icon.background&&e.push(O(d("Icon Background Color","google-analytics-for-wordpress"),"icon_background")),wp.element.createElement(b,{title:d("Icon Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-inline-icon"}," ",e," ")}}()),wp.element.createElement("div",{key:"monsterinsights-popular-posts-inline-preview"},wp.element.createElement("div",{className:"monsterinsights-inline-popular-posts-widget monsterinsights-inline-popular-posts-"+l,style:{backgroundColor:m.background_color,borderColor:m.background_border}},function(){if(void 0!==p.image&&p.image){var e=void 0!==h.image?h.image:"theme-preview-image.jpg";return wp.element.createElement("div",{className:"monsterinsights-inline-popular-posts-image"},wp.element.createElement("img",{src:x.vue_assets_path+"img/"+e}))}}(),wp.element.createElement("div",{className:"monsterinsights-inline-popular-posts-text"},function(){if(void 0!==h.icon)return wp.element.createElement("span",{className:"monsterinsights-inline-popular-posts-icon",style:{backgroundColor:m.icon_background}},c.a.themeIcon(m.icon_color))}(),function(){if(void 0!==h.label)return wp.element.createElement("span",{style:{color:m.label_color,backgroundColor:m.label_background},className:"monsterinsights-inline-popular-posts-label"},m.label_text)}(),function(){if(void 0!==h.border&&void 0!==h.border.color)return wp.element.createElement("span",{className:"monsterinsights-inline-popular-posts-border",style:{borderColor:m.border_color}})}(),function(){if(void 0!==h.title&&void 0===p.list&&void 0!==h.title.text)return wp.element.createElement("a",{href:"#",className:"monsterinsights-inline-popular-posts-title",style:{color:m.title_color,fontSize:m.title_size+"px"}},h.title.text)}(),function(){if(void 0!==p.list){var e=[];for(var t in p.list)e.push(wp.element.createElement("li",{key:"monsterinsights-popular-posts-preview-list-item-"+t,style:{color:m.title_color,fontSize:m.title_size+"px"}},p.list[t]));return wp.element.createElement("ul",{className:"monsterinsights-inline-popular-posts-list"},e)}}(),function(){if(void 0!==h.border&&void 0!==h.border.color2)return wp.element.createElement("span",{className:"monsterinsights-inline-popular-posts-border-2",style:{borderColor:m.border_color2}})}())))]}),save:function(e){return null}})},function(e,t,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(202),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function n(e,t,n,r){var o=t&&t.prototype instanceof i?t:i,a=Object.create(o.prototype),s=new h(r||[]);return a._invoke=c(e,n,s),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function i(){}function o(){}function a(){}function s(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function l(e){function t(n,i,o,a){var s=r(e[n],e,i);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&v.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(c).then(function(e){l.value=e,o(l)},a)}a(s.arg)}function n(e,n){function r(){return new Promise(function(r,i){t(e,n,r,i)})}return i=i?i.then(r,r):r()}var i;this._invoke=n}function c(e,t,n){var i=x;return function(o,a){if(i===O)throw new Error("Generator is already running");if(i===T){if("throw"===o)throw a;return f()}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var l=u(s,n);if(l){if(l===N)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===x)throw i=T,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=O;var c=r(e,t,n);if("normal"===c.type){if(i=n.done?T:k,c.arg===N)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=T,n.method="throw",n.arg=c.arg)}}}function u(e,t){var n=e.iterator[t.method];if(n===g){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=g,u(e,t),"throw"===t.method))return N;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return N}var i=r(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,N;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=g),t.delegate=null,N):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,N)}function d(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function h(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(d,this),this.reset(!0)}function m(e){if(e){var t=e[b];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(v.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=g,t.done=!0,t};return r.next=r}}return{next:f}}function f(){return{value:g,done:!0}}var g,w=Object.prototype,v=w.hasOwnProperty,y="function"==typeof Symbol?Symbol:{},b=y.iterator||"@@iterator",S=y.asyncIterator||"@@asyncIterator",E=y.toStringTag||"@@toStringTag",_="object"==typeof e,C=t.regeneratorRuntime;if(C)return void(_&&(e.exports=C));C=t.regeneratorRuntime=_?e.exports:{},C.wrap=n;var x="suspendedStart",k="suspendedYield",O="executing",T="completed",N={},M={};M[b]=function(){return this};var j=Object.getPrototypeOf,P=j&&j(j(m([])));P&&P!==w&&v.call(P,b)&&(M=P);var D=a.prototype=i.prototype=Object.create(M);o.prototype=D.constructor=a,a.constructor=o,a[E]=o.displayName="GeneratorFunction",C.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===o||"GeneratorFunction"===(t.displayName||t.name))},C.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,E in e||(e[E]="GeneratorFunction")),e.prototype=Object.create(D),e},C.awrap=function(e){return{__await:e}},s(l.prototype),l.prototype[S]=function(){return this},C.AsyncIterator=l,C.async=function(e,t,r,i){var o=new l(n(e,t,r,i));return C.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},s(D),D[E]="Generator",D[b]=function(){return this},D.toString=function(){return"[object Generator]"},C.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},C.values=m,h.prototype={constructor:h,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(p),!e)for(var t in this)"t"===t.charAt(0)&&v.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=g)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return o.type="throw",o.arg=e,n.next=t,r&&(n.method="next",n.arg=g),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=v.call(i,"catchLoc"),s=v.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&v.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,N):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),N},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),N}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;p(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:m(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=g),N}}}(function(){return this}()||Function("return this")())},function(e,t,n){"use strict";var r={};r.inlinepop=wp.element.createElement("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0H20V2H0V0ZM20 14V16H0V14H20ZM2 4C0.895431 4 0 4.89543 0 6V10C0 11.1046 0.895431 12 2 12H6C7.10457 12 8 11.1046 8 10V6C8 4.89543 7.10457 4 6 4H2ZM10 5H20V7H10V5ZM18 9H10V11H18V9Z",fill:"#555D66"})),r.alpha=wp.element.createElement("svg",{width:"70",height:"38",viewBox:"0 0 70 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"70",height:"37.8947",rx:"3",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"5.72729",y:"19.8947",width:"58.5455",height:"8.52632",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{x:"5.72729",y:"7.57892",width:"17.1818",height:"8.52632",rx:"3",fill:"#338EEF"})),r.beta=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"31",y:"21",width:"32",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{x:"31",y:"10",width:"18",height:"9",rx:"3",fill:"#338EEF"}),wp.element.createElement("rect",{x:"7",y:"10",width:"20",height:"20",rx:"3",fill:"#338EEF"}),wp.element.createElement("rect",{x:"1.5",y:"1.5",width:"67",height:"37",rx:"1.5",stroke:"#E7F2FD",strokeWidth:"3"})),r.charlie=wp.element.createElement("svg",{width:"70",height:"28",viewBox:"0 0 70 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"16",y:"19",width:"54",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{y:"11",width:"70",height:"3",rx:"1.5",fill:"#B8D8F9"}),wp.element.createElement("rect",{width:"26",height:"7",rx:"3",fill:"#338EEF"}),wp.element.createElement("circle",{cx:"4.5",cy:"23.5",r:"4.5",fill:"#1170D5"})),r.delta=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"8",y:"21",width:"54",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{x:"22",y:"9",width:"18",height:"9",rx:"3",fill:"#338EEF"}),wp.element.createElement("path",{d:"M12.0303 9.5625C12.4613 8.8125 13.5387 8.8125 13.9697 9.5625L17.8483 16.3125C18.2793 17.0625 17.7406 18 16.8787 18H9.12134C8.25942 18 7.72072 17.0625 8.15168 16.3125L12.0303 9.5625Z",fill:"#338EEF"}),wp.element.createElement("rect",{x:"1.5",y:"1.5",width:"67",height:"37",rx:"1.5",stroke:"#E7F2FD",strokeWidth:"3"})),r.echo=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"24.8182",y:"16",width:"39.4545",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{x:"5.72729",y:"16",width:"15.2727",height:"9",rx:"3",fill:"#338EEF"})),r.foxtrot=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"26",y:"22",width:"44",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{x:"26",y:"9",width:"28",height:"9",rx:"3",fill:"#338EEF"}),wp.element.createElement("rect",{y:"9",width:"22",height:"22",rx:"3",fill:"#338EEF"})),r.golf=wp.element.createElement("svg",{width:"70",height:"29",viewBox:"0 0 70 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{y:"11",width:"70",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{y:"26",width:"70",height:"3",rx:"1.5",fill:"#B8D8F9"}),wp.element.createElement("rect",{width:"21",height:"7",rx:"3",fill:"#338EEF"}),wp.element.createElement("rect",{x:"25",y:"1",width:"45",height:"3",rx:"1.5",fill:"#B8D8F9"})),r.hotel=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"22",y:"16",width:"40",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("path",{d:"M12.0303 16.5625C12.4613 15.8125 13.5387 15.8125 13.9697 16.5625L17.8483 23.3125C18.2793 24.0625 17.7406 25 16.8787 25H9.12134C8.25942 25 7.72072 24.0625 8.15168 23.3125L12.0303 16.5625Z",fill:"#338EEF"})),r.india=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("g",{"clip-path":"url(#clip0)"},wp.element.createElement("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"26",y:"16",width:"36",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{x:"8",y:"16",width:"14",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{y:"41",width:"41",height:"4",transform:"rotate(-90 0 41)",fill:"#338EEF"})),wp.element.createElement("defs",null,wp.element.createElement("clipPath",{id:"clip0"},wp.element.createElement("rect",{width:"70",height:"40",rx:"3",fill:"white"})))),r.juliett=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"30",y:"20",width:"32",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("path",{d:"M50 14C50 12.3431 51.3431 11 53 11H60C61.1046 11 62 11.8954 62 13V15C62 16.6569 60.6569 18 59 18H53C51.3431 18 50 16.6569 50 15V14Z",fill:"#338EEF"}),wp.element.createElement("rect",{x:"30",y:"11",width:"32",height:"4",rx:"2",fill:"#338EEF"}),wp.element.createElement("rect",{x:"8",y:"11",width:"18",height:"18",rx:"3",fill:"#338EEF"})),r.kilo=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{y:"22",width:"70",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{y:"9",width:"26",height:"9",rx:"3",fill:"#338EEF"}),wp.element.createElement("rect",{width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"12.7273",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"25.4545",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"38.1818",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"50.9091",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"63.6364",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"12.7273",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"25.4545",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"38.1818",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"50.9091",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),wp.element.createElement("rect",{x:"63.6364",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"})),r.lima=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"6",y:"22",width:"32",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{x:"6",y:"8",width:"20",height:"9",rx:"3",fill:"#338EEF"}),wp.element.createElement("rect",{x:"42",y:"9",width:"22",height:"22",rx:"3",fill:"#338EEF"})),r.mike=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"35",y:"15",width:"27",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.8438 28H10.1562C9.55729 28 9.04818 27.7934 8.62891 27.3802C8.20964 26.967 8 26.4653 8 25.875V22.3C8 21.0297 9.02974 20 10.3 20H21.7C22.9703 20 24 18.9703 24 17.7V13.3C24 12.0297 25.0297 11 26.3 11H28.8438C29.4427 11 29.9518 11.2066 30.3711 11.6198C30.7904 12.033 31 12.5347 31 13.125V25.875C31 26.4653 30.7904 26.967 30.3711 27.3802C29.9518 27.7934 29.4427 28 28.8438 28ZM10.3 11C9.02974 11 8 12.0297 8 13.3V15.7C8 16.9703 9.02974 18 10.3 18H19.7C20.9703 18 22 16.9703 22 15.7V13.3C22 12.0297 20.9703 11 19.7 11H10.3Z",fill:"#338EEF"})),r.november=wp.element.createElement("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"29",y:"22",width:"33",height:"9",rx:"3",fill:"#1170D5"}),wp.element.createElement("rect",{x:"29",y:"9",width:"18",height:"9",rx:"3",fill:"#338EEF"}),wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 28C21.4183 28 25 24.4183 25 20C25 15.5817 21.4183 12 17 12C12.5817 12 9 15.5817 9 20C9 24.4183 12.5817 28 17 28ZM20.544 21.8756L17.5907 16.7081C17.3281 16.2488 16.6719 16.2488 16.4093 16.7081L13.456 21.8756C13.1935 22.3349 13.5217 22.9091 14.0467 22.9091H19.9533C20.4783 22.9091 20.8065 22.3349 20.544 21.8756Z",fill:"#338EEF"}),wp.element.createElement("rect",{x:"1.5",y:"1.5",width:"67",height:"37",rx:"1.5",stroke:"#E7F2FD",strokeWidth:"3"})),r.themeIcon=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#EB5757";return wp.element.createElement("svg",{width:"14",height:"19",viewBox:"0 0 14 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M7.875 0.899463C7.875 1.59183 8.0816 2.24711 8.49479 2.8653C8.93229 3.48349 9.44271 4.06458 10.026 4.60859C10.6337 5.15259 11.2292 5.73369 11.8125 6.35188C12.4201 6.97007 12.9306 7.76135 13.3438 8.72572C13.7812 9.66537 14 10.7163 14 11.8785C14 13.832 13.3073 15.5011 11.9219 16.8858C10.5608 18.2953 8.92014 19 7 19C5.07986 19 3.42708 18.2953 2.04167 16.8858C0.680556 15.5011 0 13.832 0 11.8785C0 9.94973 0.668403 8.28062 2.00521 6.87116C2.27257 6.57443 2.58854 6.50024 2.95312 6.64861C3.31771 6.79697 3.5 7.08134 3.5 7.50171V10.6545C3.5 11.3221 3.71875 11.8908 4.15625 12.3607C4.61806 12.8305 5.16493 13.0654 5.79688 13.0654C6.45312 13.0654 7.01215 12.8428 7.47396 12.3978C7.93576 11.9279 8.16667 11.3592 8.16667 10.6916C8.16667 10.2712 8.04514 9.86318 7.80208 9.46754C7.58333 9.0719 7.31597 8.71336 7 8.3919C6.68403 8.07044 6.34375 7.73662 5.97917 7.39043C5.63889 7.04425 5.34722 6.66097 5.10417 6.2406C4.88542 5.82024 4.73958 5.35041 4.66667 4.83114C4.59375 4.31186 4.67882 3.68131 4.92188 2.93948C5.18924 2.17293 5.63889 1.33219 6.27083 0.417277C6.51389 0.0463641 6.84201 -0.0772735 7.25521 0.0463641C7.6684 0.170002 7.875 0.454368 7.875 0.899463Z",fill:e}))},t.a=r},function(e,t,n){"use strict";var r={};r.canaccess=function(e){return"lite"===e},t.a=r},function(e,t,n){"use strict";var r={};r.checkmark=wp.element.createElement("svg",{width:"24",height:"20",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M21.0565 2.94355C23.0188 4.87903 24 7.23118 24 10C24 12.7688 23.0188 15.1344 21.0565 17.0968C19.121 19.0323 16.7688 20 14 20C11.2312 20 8.86559 19.0323 6.90323 17.0968C4.96774 15.1344 4 12.7688 4 10C4 7.23118 4.96774 4.87903 6.90323 2.94355C8.86559 0.981183 11.2312 0 14 0C16.7688 0 19.121 0.981183 21.0565 2.94355ZM12.8306 15.2823L20.25 7.8629C20.5726 7.5672 20.5726 7.27151 20.25 6.97581L19.3629 6.04839C19.0403 5.75269 18.7312 5.75269 18.4355 6.04839L12.3871 12.0968L9.56452 9.27419C9.26882 8.97849 8.95968 8.97849 8.6371 9.27419L7.75 10.2016C7.42742 10.4973 7.42742 10.793 7.75 11.0887L11.9435 15.2823C12.2392 15.6048 12.5349 15.6048 12.8306 15.2823Z",fill:"#338EEF"})),r.chevronright=wp.element.createElement("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M7.77369 5.53211L2.28571 0.19266C2.1537 0.0642201 1.9934 -6.52786e-08 1.80481 -5.7035e-08C1.61622 -4.87915e-08 1.45592 0.0642201 1.3239 0.192661L0.701556 0.798165C0.569543 0.926605 0.503536 1.08257 0.503536 1.26605C0.484677 1.44954 0.541254 1.6055 0.673267 1.73394L5.05799 6L0.673268 10.2661C0.541255 10.3945 0.484678 10.5505 0.503537 10.7339C0.503537 10.9174 0.569543 11.0734 0.701556 11.2018L1.3239 11.8073C1.45592 11.9358 1.61622 12 1.80481 12C1.9934 12 2.1537 11.9358 2.28571 11.8073L7.77369 6.46789C7.92456 6.33945 8 6.18349 8 6C8 5.81651 7.92456 5.66055 7.77369 5.53211Z",fill:"#C4C4C4"})),r.chevronleft=wp.element.createElement("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0.226309 5.53211L5.71429 0.19266C5.8463 0.0642201 6.0066 -6.52786e-08 6.19519 -5.7035e-08C6.38378 -4.87915e-08 6.54408 0.0642201 6.6761 0.192661L7.29844 0.798165C7.43046 0.926605 7.49646 1.08257 7.49646 1.26605C7.51532 1.44954 7.45875 1.6055 7.32673 1.73394L2.94201 6L7.32673 10.2661C7.45875 10.3945 7.51532 10.5505 7.49646 10.7339C7.49646 10.9174 7.43046 11.0734 7.29844 11.2018L6.6761 11.8073C6.54408 11.9358 6.38378 12 6.19519 12C6.0066 12 5.8463 11.9358 5.71429 11.8073L0.226309 6.46789C0.0754363 6.33945 6.83386e-07 6.18349 6.91406e-07 6C6.99426e-07 5.81651 0.0754363 5.66055 0.226309 5.53211Z",fill:"#C4C4C4"})),t.a=r},function(e,t,n){"use strict";function r(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return(c=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){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&&p(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(){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}}function m(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function f(e,t){if(null==e)return{};var n,r,i=m(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function v(e){var t=h();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return w(this,n)}}function y(e){return b(e)||S(e)||E(e)||C()}function b(e){if(Array.isArray(e))return _(e)}function S(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function E(e,t){if(e){if("string"==typeof e)return _(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)?_(e,t):void 0}}function _(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 C(){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 x(e,t){return t={exports:{}},e(t,t.exports),t.exports}function k(){}function O(){}function T(e){return e.map(function(e){return!1===e?null:e}).join(" ").replace(/\s+/g," ").trim()}function N(e,t){return 100/e*t/t}function M(e,t){return 100*e/t}function j(e){return"".concat(e,"%")}function P(e,t,n){if(e===t)return!0;var r=ie[re(e)],i=ie[re(t)];return!(!r||r!==i)&&r(e,t,n)}function D(e){return function(t,n,r){if(!r)return e(t,n,[]);for(var i,o=r.length;i=r[--o];)if(i[0]===t&&i[1]===n)return!0;return e(t,n,r)}}function F(e,t,n){var r=e.length;if(r!==t.length)return!1;for(n.push([e,t]);r--;)if(!P(e[r],t[r],n))return!1;return!0}function A(e,t,n){if("function"==typeof e.equal)return n.push([e,t]),e.equal(t,n);var r=L(e),i=L(t),o=r.length;if(o!==i.length)return!1;for(r.sort(),i.sort();o--;)if(r[o]!==i[o])return!1;for(n.push([e,t]),o=r.length;o--;){var a=r[o];if(!P(e[a],t[a],n))return!1}return!0}function L(e){var t=[];for(var n in e)"constructor"!==n&&t.push(n);return t}function B(e){return!!e&&"object"==typeof e}function z(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||R(e)}function R(e){return e.$$typeof===le}function H(e){return Array.isArray(e)?[]:{}}function I(e,t){return!1!==t.clone&&t.isMergeableObject(e)?W(H(e),e,t):e}function q(e,t,n){return e.concat(t).map(function(e){return I(e,n)})}function V(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=I(e[t],n)}),Object.keys(t).forEach(function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=W(e[i],t[i],n):r[i]=I(t[i],n)}),r}function W(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||q,n.isMergeableObject=n.isMergeableObject||ae;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):V(e,t,n):I(t,n)}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return{}},n=function(n){function r(e,n){var s;return o(this,r),s=a.call(this,e,n),s.state=t(i({},n.state)),s.updateStateProps=s.updateStateProps.bind(g(s)),s}u(r,n);var a=v(r);return s(r,[{key:"componentDidMount",value:function(){this.context.subscribe(this.updateStateProps)}},{key:"shouldComponentUpdate",value:function(e,t){return!oe(t,this.state)||!oe(e,this.props)}},{key:"componentWillUnmount",value:function(){this.context.unsubscribe(this.updateStateProps)}},{key:"updateStateProps",value:function(){this.setState(t(i({},this.context.state)))}},{key:"render",value:function(){var t=this,n=de(this.state,this.props);return Y.a.createElement(e,c({ref:function(e){t.instance=e}},n,{carouselStore:{getStoreState:this.context.getStoreState,masterSpinnerError:this.context.masterSpinnerError,masterSpinnerSuccess:this.context.masterSpinnerSuccess,setStoreState:this.context.setStoreState,subscribeMasterSpinner:this.context.subscribeMasterSpinner,unsubscribeAllMasterSpinner:this.context.unsubscribeAllMasterSpinner,unsubscribeMasterSpinner:this.context.unsubscribeMasterSpinner}}),this.props.children)}}]),r}(Y.a.Component);return l(n,"contextType",pe),l(n,"propTypes",{children:J.children}),l(n,"defaultProps",{children:null}),n}n.d(t,"a",function(){return Me}),n.d(t,"b",function(){return Be}),n.d(t,"c",function(){return we}),n.d(t,"d",function(){return Je}),n.d(t,"e",function(){return St}),n.d(t,"f",function(){return Tt});var U=n(80),Y=n.n(U),X="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";O.resetWarningCache=k;var G=function(){function e(e,t,n,r,i,o){if(o!==X){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:O,resetWarningCache:k};return n.PropTypes=n,n},K=x(function(e){e.exports=G()}),$="loading",J={children:K.oneOfType([K.arrayOf(K.node),K.node]),direction:K.oneOf(["forward","backward"]),height:function(e,t){var n=e[t];return"vertical"!==e.orientation||null!==n&&"number"==typeof n?null:new Error("Missing required property '".concat(t,"' when orientation is vertical. You must supply a number representing the height in pixels"))},orientation:K.oneOf(["horizontal","vertical"]),isBgImage:function(e,t){return!0===e[t]&&"img"===e.tag?new Error("HTML img elements should not have a backgroundImage. Please use ".concat(t," for other block-level HTML tags, like div, a, section, etc...")):null}},Q=function(e){var t=e.min,n=e.max,r=e.x;return Math.min(n,Math.max(t,r))},ee={buttonBack:"buttonBack___1mlaL"},te=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],ne=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.handleOnClick=r.handleOnClick.bind(g(r)),r}u(t,e);var n=v(t);return s(t,[{key:"handleOnClick",value:function(e){var t=this.props,n=t.carouselStore,r=t.currentSlide,i=t.onClick,o=t.step,a=t.infinite,s=t.visibleSlides,l=t.totalSlides-s,c=Math.max(r-o,0);a&&(c=0===r?l:c),n.setStoreState({currentSlide:c,isPlaying:!1},null!==i&&i.call(this,e))}},{key:"render",value:function(){var e=this.props,n=(e.carouselStore,e.className),r=(e.currentSlide,e.disabled,e.onClick,e.step,e.totalSlides,e.visibleSlides,e.infinite),i=f(e,te),o=T([ee.buttonBack,"carousel__back-button",n]),a=t.setDisabled(this.props.disabled,this.props.currentSlide,r);return Y.a.createElement("button",c({type:"button","aria-label":"previous",className:o,onClick:this.handleOnClick,disabled:a},i),this.props.children)}}],[{key:"setDisabled",value:function(e,t,n){return null!==e?e:0===t&&!n}}]),t}(Y.a.Component);l(ne,"propTypes",{carouselStore:K.object.isRequired,children:J.children.isRequired,className:K.string,currentSlide:K.number.isRequired,disabled:K.bool,onClick:K.func,step:K.number.isRequired,totalSlides:K.number.isRequired,visibleSlides:K.number.isRequired,infinite:K.bool}),l(ne,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1});var re=x(function(e,t){var n={}.toString,r="undefined"!=typeof window?window.Node:Function;e.exports=t=function(e){var t=typeof e;if("object"!=t)return t;if("object"==(t=i[n.call(e)]))return e instanceof Map?"map":e instanceof Set?"set":"object";if(t)return t;if(e instanceof r)switch(e.nodeType){case 1:return"element";case 3:return"text-node";case 9:return"document";case 11:return"document-fragment";default:return"dom-node"}};var i=t.types={"[object Function]":"function","[object Date]":"date","[object RegExp]":"regexp","[object Arguments]":"arguments","[object Array]":"array","[object Set]":"set","[object String]":"string","[object Null]":"null","[object Undefined]":"undefined","[object Number]":"number","[object Boolean]":"boolean","[object Object]":"object","[object Map]":"map","[object Text]":"text-node","[object Uint8Array]":"bit-array","[object Uint16Array]":"bit-array","[object Uint32Array]":"bit-array","[object Uint8ClampedArray]":"bit-array","[object Error]":"error","[object FormData]":"form-data","[object File]":"file","[object Blob]":"blob"}}),ie=(re.types,{});ie.number=function(e,t){return e!==e&&t!==t},ie.function=function(e,t,n){return e.toString()===t.toString()&&ie.object(e,t,n)&&P(e.prototype,t.prototype)},ie.date=function(e,t){return+e==+t},ie.regexp=function(e,t){return e.toString()===t.toString()},ie.element=function(e,t){return e.outerHTML===t.outerHTML},ie.textnode=function(e,t){return e.textContent===t.textContent},ie.arguments=ie["bit-array"]=ie.array=D(F),ie.object=D(A);var oe=P,ae=function(e){return B(e)&&!z(e)},se="function"==typeof Symbol&&Symbol.for,le=se?Symbol.for("react.element"):60103;W.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return W(e,n,t)},{})};var ce,ue,de=W,pe=Y.a.createContext(),he=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(n){!t.hasOwnProperty(n)||null===t[n]||"object"!=typeof t[n]&&"function"!=typeof t[n]||Object.isFrozen(t[n])||e(t[n])}),t},me={masterSpinnerFinished:!1},fe=function(){function e(t){o(this,e),this.state=he(de(me,t)),this.subscriptions=[],this.masterSpinnerSubscriptions={},this.setStoreState=this.setStoreState.bind(this),this.getStoreState=this.getStoreState.bind(this),this.subscribe=this.subscribe.bind(this),this.unsubscribe=this.unsubscribe.bind(this),this.updateSubscribers=this.updateSubscribers.bind(this),this.subscribeMasterSpinner=this.subscribeMasterSpinner.bind(this),this.unsubscribeMasterSpinner=this.unsubscribeMasterSpinner.bind(this),this.unsubscribeAllMasterSpinner=this.unsubscribeAllMasterSpinner.bind(this),this.masterSpinnerSuccess=this.masterSpinnerSuccess.bind(this),this.masterSpinnerError=this.masterSpinnerError.bind(this)}return s(e,[{key:"setStoreState",value:function(e,t){this.state=he(de(this.state,e)),this.updateSubscribers(t)}},{key:"getStoreState",value:function(){return de({},this.state)}},{key:"subscribe",value:function(e){this.subscriptions.push(e)}},{key:"unsubscribe",value:function(e){var t=this.subscriptions.indexOf(e);-1!==t&&this.subscriptions.splice(t,1)}},{key:"updateSubscribers",value:function(e){this.subscriptions.forEach(function(e){return e()}),"function"==typeof e&&e(this.getStoreState())}},{key:"subscribeMasterSpinner",value:function(e){-1===Object.keys(this.masterSpinnerSubscriptions).indexOf(e)&&(this.masterSpinnerSubscriptions[e]={success:!1,error:!1,complete:!1})}},{key:"unsubscribeMasterSpinner",value:function(e){return-1!==Object.keys(this.masterSpinnerSubscriptions).indexOf(e)&&(this.setMasterSpinnerFinished(),delete this.masterSpinnerSubscriptions[e])}},{key:"unsubscribeAllMasterSpinner",value:function(){this.masterSpinnerSubscriptions={},this.setMasterSpinnerFinished()}},{key:"masterSpinnerSuccess",value:function(e){this.masterSpinnerSubscriptions[e].success=!0,this.masterSpinnerSubscriptions[e].complete=!0,this.setMasterSpinnerFinished()}},{key:"masterSpinnerError",value:function(e){this.masterSpinnerSubscriptions[e].error=!0,this.masterSpinnerSubscriptions[e].complete=!0,this.setMasterSpinnerFinished()}},{key:"setMasterSpinnerFinished",value:function(){this.setStoreState({masterSpinnerFinished:this.isMasterSpinnerFinished()})}},{key:"isMasterSpinnerFinished",value:function(){var e=this;return 0===Object.keys(this.masterSpinnerSubscriptions).filter(function(t){return!0!==e.masterSpinnerSubscriptions[t].complete}).length}}]),e}(),ge=["children","className","currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","naturalSlideHeight","naturalSlideWidth","orientation","playDirection","step","dragStep","tag","totalSlides","touchEnabled","dragEnabled","visibleSlides","infinite","isIntrinsicHeight"],we=(ue=ce=function(e){function t(e){var r;if(o(this,t),r=n.call(this,e),e.isIntrinsicHeight&&"horizontal"!==e.orientation)throw Error('isIntrinsicHeight can only be used in "horizontal" orientation. See Readme for more information.');var i={currentSlide:e.currentSlide,disableAnimation:e.disableAnimation,disableKeyboard:e.disableKeyboard,hasMasterSpinner:e.hasMasterSpinner,imageErrorCount:0,imageSuccessCount:0,interval:e.interval,isPageScrollLocked:e.isPageScrollLocked,isPlaying:e.isPlaying,lockOnWindowScroll:e.lockOnWindowScroll,masterSpinnerThreshold:0,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,playDirection:e.playDirection,privateUnDisableAnimation:!1,slideSize:N(e.totalSlides,e.visibleSlides),slideTraySize:M(e.totalSlides,e.visibleSlides),step:e.step,dragStep:e.dragStep,totalSlides:e.totalSlides,touchEnabled:e.touchEnabled,dragEnabled:e.dragEnabled,visibleSlides:e.visibleSlides,infinite:e.infinite,isIntrinsicHeight:e.isIntrinsicHeight};return r.carouselStore=new fe(i),r}u(t,e);var n=v(t);return s(t,[{key:"componentDidUpdate",value:function(e){var t=this,n={};["currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPlaying","naturalSlideHeight","naturalSlideWidth","lockOnWindowScroll","orientation","playDirection","step","dragStep","totalSlides","touchEnabled","dragEnabled","visibleSlides"].forEach(function(r){e[r]!==t.props[r]&&(n[r]=t.props[r])}),this.props.currentSlide!==e.currentSlide&&!this.props.disableAnimation&&(n.disableAnimation=!0,n.privateUnDisableAnimation=!0),this.props.totalSlides===e.totalSlides&&this.props.visibleSlides===e.visibleSlides||(n.slideSize=N(this.props.totalSlides,this.props.visibleSlides),n.slideTraySize=M(this.props.totalSlides,this.props.visibleSlides)),this.carouselStore.state.currentSlide>=this.props.totalSlides&&(n.currentSlide=Math.max(this.props.totalSlides-1,0)),Object.keys(n).length>0&&this.carouselStore.setStoreState(n)}},{key:"componentWillUnmount",value:function(){this.carouselStore.unsubscribeAllMasterSpinner()}},{key:"getStore",value:function(){return this.carouselStore}},{key:"render",value:function(){var e=this.props,t=(e.children,e.className,e.currentSlide,e.disableAnimation,e.disableKeyboard,e.hasMasterSpinner,e.interval,e.isPageScrollLocked,e.isPlaying,e.lockOnWindowScroll,e.naturalSlideHeight,e.naturalSlideWidth,e.orientation,e.playDirection,e.step,e.dragStep,e.tag),n=(e.totalSlides,e.touchEnabled,e.dragEnabled,e.visibleSlides,e.infinite,e.isIntrinsicHeight,f(e,ge)),r=T(["carousel",this.props.className]);return Y.a.createElement(t,c({className:r},n),Y.a.createElement(pe.Provider,{value:this.carouselStore},this.props.children))}}]),t}(Y.a.Component),l(ce,"propTypes",{children:J.children.isRequired,className:K.string,currentSlide:K.number,disableAnimation:K.bool,disableKeyboard:K.bool,hasMasterSpinner:K.bool,interval:K.number,isPageScrollLocked:K.bool,isPlaying:K.bool,lockOnWindowScroll:K.bool,naturalSlideHeight:K.number.isRequired,naturalSlideWidth:K.number.isRequired,orientation:J.orientation,playDirection:J.direction,step:K.number,dragStep:K.number,tag:K.string,totalSlides:K.number.isRequired,touchEnabled:K.bool,dragEnabled:K.bool,visibleSlides:K.number,infinite:K.bool,isIntrinsicHeight:K.bool}),l(ce,"defaultProps",{className:null,currentSlide:0,disableAnimation:!1,disableKeyboard:!1,hasMasterSpinner:!1,interval:5e3,isPageScrollLocked:!1,isPlaying:!1,lockOnWindowScroll:!1,orientation:"horizontal",playDirection:"forward",step:1,dragStep:1,tag:"div",touchEnabled:!0,dragEnabled:!0,visibleSlides:1,infinite:!1,isIntrinsicHeight:!1}),ue);pe.Consumer;var ve,ye,be,Se,Ee,_e,Ce,xe,ke,Oe,Te,Ne,Me=Z(ne,function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}}),je={buttonFirst:"buttonFirst___2rhFr"},Pe=["carouselStore","className","currentSlide","disabled","onClick","totalSlides"],De=(ye=ve=function(e){function t(){var e;return o(this,t),e=n.call(this),e.handleOnClick=e.handleOnClick.bind(g(e)),e}u(t,e);var n=v(t);return s(t,[{key:"handleOnClick",value:function(e){var t=this.props,n=t.carouselStore,r=t.onClick;n.setStoreState({currentSlide:0,isPlaying:!1},null!==r&&r.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.className),n=e.currentSlide,r=e.disabled,i=(e.onClick,e.totalSlides,f(e,Pe)),o=T([je.buttonFirst,"carousel__first-button",t]),a=null!==r?r:0===n;return Y.a.createElement("button",c({type:"button","aria-label":"first",className:o,onClick:this.handleOnClick,disabled:a},i),this.props.children)}}]),t}(Y.a.Component),l(ve,"propTypes",{carouselStore:K.object.isRequired,children:J.children.isRequired,className:K.string,currentSlide:K.number.isRequired,disabled:K.bool,onClick:K.func,totalSlides:K.number.isRequired}),l(ve,"defaultProps",{className:null,disabled:null,onClick:null}),ye),Fe=(Z(De,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides}}),{buttonNext:"buttonNext___2mOCa"}),Ae=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],Le=(Se=be=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.handleOnClick=r.handleOnClick.bind(g(r)),r}u(t,e);var n=v(t);return s(t,[{key:"handleOnClick",value:function(e){var t=this.props,n=t.currentSlide,r=t.onClick,i=t.step,o=t.carouselStore,a=t.infinite,s=t.totalSlides-t.visibleSlides,l=i+n,c=Math.min(l,s);a&&(c=s===n?0:c),o.setStoreState({currentSlide:c,isPlaying:!1},null!==r&&r.call(this,e))}},{key:"render",value:function(){var e=this.props,n=(e.carouselStore,e.className),r=e.currentSlide,i=e.disabled,o=(e.onClick,e.step,e.totalSlides),a=e.visibleSlides,s=e.infinite,l=f(e,Ae),u=T([Fe.buttonNext,"carousel__next-button",n]),d=t.setDisabled(i,r,a,o,s);return Y.a.createElement("button",c({type:"button","aria-label":"next",className:u,onClick:this.handleOnClick,disabled:d},l),this.props.children)}}],[{key:"setDisabled",value:function(e,t,n,r,i){return null!==e?e:t>=r-n&&!i}}]),t}(Y.a.PureComponent),l(be,"propTypes",{carouselStore:K.object.isRequired,children:J.children.isRequired,className:K.string,currentSlide:K.number.isRequired,disabled:K.bool,onClick:K.func,step:K.number.isRequired,totalSlides:K.number.isRequired,visibleSlides:K.number.isRequired,infinite:K.bool}),l(be,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1}),Se),Be=Z(Le,function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}}),ze={buttonLast:"buttonLast___2yuh0"},Re=["carouselStore","className","currentSlide","disabled","onClick","totalSlides","visibleSlides"],He=(_e=Ee=function(e){function t(){var e;return o(this,t),e=n.call(this),e.handleOnClick=e.handleOnClick.bind(g(e)),e}u(t,e);var n=v(t);return s(t,[{key:"handleOnClick",value:function(e){var t=this.props,n=t.carouselStore,r=t.onClick,i=t.totalSlides,o=t.visibleSlides;n.setStoreState({currentSlide:i-o,isPlaying:!1},null!==r&&r.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.className),n=e.currentSlide,r=e.disabled,i=(e.onClick,e.totalSlides),o=e.visibleSlides,a=f(e,Re),s=T([ze.buttonLast,"carousel__last-button",t]),l=null!==r?r:n>=i-o;return Y.a.createElement("button",c({type:"button","aria-label":"last",className:s,onClick:this.handleOnClick,disabled:l},a),this.props.children)}}]),t}(Y.a.Component),l(Ee,"propTypes",{carouselStore:K.object.isRequired,children:J.children.isRequired,className:K.string,currentSlide:K.number.isRequired,disabled:K.bool,onClick:K.func,totalSlides:K.number.isRequired,visibleSlides:K.number.isRequired}),l(Ee,"defaultProps",{className:null,disabled:null,onClick:null}),_e),Ie=(Z(He,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}}),{buttonNext:"buttonNext___3Lm3s"}),qe=["carouselStore","children","childrenPaused","childrenPlaying","className","isPlaying","onClick"],Ve=(xe=Ce=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.handleOnClick=r.handleOnClick.bind(g(r)),r}u(t,e);var n=v(t);return s(t,[{key:"handleOnClick",value:function(e){var t=this.props.onClick;this.props.carouselStore.setStoreState({isPlaying:!this.props.isPlaying},null!==t&&t.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.childrenPaused),n=e.childrenPlaying,r=e.className,i=e.isPlaying,o=(e.onClick,f(e,qe)),a=T([Ie.buttonNext,"carousel__play-button",r]);return Y.a.createElement("button",c({type:"button","aria-label":"play",className:a,onClick:this.handleOnClick},o),i&&n,!i&&t,this.props.children)}}]),t}(Y.a.PureComponent),l(Ce,"propTypes",{carouselStore:K.object.isRequired,children:K.node,childrenPaused:K.node,childrenPlaying:K.node,className:K.string,isPlaying:K.bool.isRequired,onClick:K.func}),l(Ce,"defaultProps",{children:null,childrenPaused:null,childrenPlaying:null,className:null,onClick:null}),xe),We=(Z(Ve,function(e){return{isPlaying:e.isPlaying}}),{dot:"dot___3c3SI"}),Ze=["carouselStore","children","className","currentSlide","disabled","onClick","selected","slide","totalSlides","visibleSlides"],Ue=(Oe=ke=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.handleOnClick=r.handleOnClick.bind(g(r)),r}u(t,e);var n=v(t);return s(t,[{key:"handleOnClick",value:function(e){var t=this.props,n=t.carouselStore,r=t.onClick,i=t.slide,o=t.totalSlides,a=t.visibleSlides,s=i>=o-a?o-a:i;n.setStoreState({currentSlide:s,isPlaying:!1},null!==r&&r.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.className),n=e.currentSlide,r=e.disabled,i=(e.onClick,e.selected),o=e.slide,a=(e.totalSlides,e.visibleSlides),s=f(e,Ze),l=o>=n&&o<n+a,u="boolean"==typeof i?i:l,d=!0===l,p="boolean"==typeof r?r:d,h=T([We.dot,u&&We.dotSelected,"carousel__dot","carousel__dot--".concat(o),u&&"carousel__dot--selected",t]);return Y.a.createElement("button",c({"aria-label":"slide dot",type:"button",onClick:this.handleOnClick,className:h,disabled:p},s),this.props.children)}}]),t}(Y.a.Component),l(ke,"propTypes",{carouselStore:K.object.isRequired,children:J.children,className:K.string,currentSlide:K.number.isRequired,disabled:K.bool,onClick:K.func,selected:K.bool,slide:K.number.isRequired,totalSlides:K.number.isRequired,visibleSlides:K.number.isRequired}),l(ke,"defaultProps",{children:null,className:null,disabled:null,onClick:null,selected:null}),Oe),Ye=Z(Ue,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}}),Xe={},Ge=["renderDots"],Ke=["carouselStore","children","className","currentSlide","dotNumbers","totalSlides","visibleSlides","disableActiveDots","showAsSelectedForCurrentSlideOnly","renderDots"],$e=(Ne=Te=function(e){function t(){return o(this,t),n.apply(this,arguments)}u(t,e);var n=v(t);return s(t,[{key:"renderDots",value:function(){var e=this.props,t=e.currentSlide,n=e.totalSlides,r=e.visibleSlides,i=e.disableActiveDots,o=e.showAsSelectedForCurrentSlideOnly,a=e.renderDots;if(a){var s=this.props;return s.renderDots,a(f(s,Ge))}for(var l=[],c=0;c<n;c+=1){var u=c>=t&&c<t+r,d=c===t,p=o?d:u,h=c>=n-r?n-r:c;l.push(Y.a.createElement(Ye,{key:c,slide:h,selected:p,disabled:!!i&&p},Y.a.createElement("span",{className:T["carousel__dot-group-dot"]},this.props.dotNumbers&&c+1)))}return l}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children),n=e.className,r=(e.currentSlide,e.dotNumbers,e.totalSlides,e.visibleSlides,e.disableActiveDots,e.showAsSelectedForCurrentSlideOnly,e.renderDots,f(e,Ke)),i=T([Xe.DotGroup,"carousel__dot-group",n]);return Y.a.createElement("div",c({className:i},r),this.renderDots(),t)}}]),t}(Y.a.Component),l(Te,"propTypes",{children:J.children,className:K.string,currentSlide:K.number.isRequired,carouselStore:K.object.isRequired,totalSlides:K.number.isRequired,visibleSlides:K.number.isRequired,dotNumbers:K.bool,disableActiveDots:K.bool,showAsSelectedForCurrentSlideOnly:K.bool,renderDots:K.func}),l(Te,"defaultProps",{children:null,className:null,dotNumbers:!1,disableActiveDots:!0,showAsSelectedForCurrentSlideOnly:!1,renderDots:null}),Ne),Je=Z($e,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}}),Qe={image:"image___xtQGH"},et=["src","alt"],tt=["carouselStore","children","className","hasMasterSpinner","isBgImage","onError","onLoad","renderError","renderLoading","style","tag"],nt=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.state={imageStatus:$},r.handleImageLoad=r.handleImageLoad.bind(g(r)),r.handleImageError=r.handleImageError.bind(g(r)),r.image=null,r}u(t,e);var n=v(t);return s(t,[{key:"componentDidMount",value:function(){t.subscribeMasterSpinner(this.props),this.initImage()}},{key:"componentDidUpdate",value:function(e){e.src!==this.props.src&&(t.unsubscribeMasterSpinner(e),t.subscribeMasterSpinner(this.props),this.initImage())}},{key:"componentWillUnmount",value:function(){t.unsubscribeMasterSpinner(this.props),this.image.removeEventListener("load",this.handleImageLoad),this.image.removeEventListener("error",this.handleImageError),this.image=null}},{key:"initImage",value:function(){if(this.setState({imageStatus:$}),this.image=document.createElement("img"),this.image.addEventListener("load",this.handleImageLoad,!1),this.image.addEventListener("error",this.handleImageError,!1),this.image.src=this.props.src,this.image.readyState||this.image.complete){var e=this.image.src;this.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",this.image.src=e}}},{key:"handleImageLoad",value:function(e){this.setState({imageStatus:"success"}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerSuccess(this.props.src),this.props.onLoad&&this.props.onLoad(e)}},{key:"handleImageError",value:function(e){this.setState({imageStatus:"error"}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerError(this.props.src),this.props.onError&&this.props.onError(e)}},{key:"tempTag",value:function(){return"img"===this.props.tag?"div":this.props.tag}},{key:"customRender",value:function(e){return"function"==typeof this.props[e]?this.props[e]():this.props.children}},{key:"renderLoading",value:function(e){var t=this.tempTag(),n=T([Qe.image,Qe.imageLoading,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--loading",this.props.className]);return Y.a.createElement(t,c({className:n},e),this.customRender("renderLoading"))}},{key:"renderError",value:function(e){var t=this.tempTag(),n=T([Qe.image,Qe.imageError,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--error",this.props.className]);return Y.a.createElement(t,c({className:n},e),this.customRender("renderError"))}},{key:"renderSuccess",value:function(e){var t=this.props,n=t.style,r=t.tag,i=T([Qe.image,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--success",this.props.className]),o=c({},n),a=e;if("img"!==r){var s=e.src;e.alt,a=f(e,et),o=c({},n,{backgroundImage:'url("'.concat(s,'")'),backgroundSize:"cover"})}return Y.a.createElement(r,c({className:i,style:o},a),this.props.children)}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.className,e.hasMasterSpinner,e.isBgImage,e.onError,e.onLoad,e.renderError,e.renderLoading,e.style,e.tag,f(e,tt));switch(this.state.imageStatus){case $:return this.renderLoading(t);case"success":return this.renderSuccess(t);case"error":return this.renderError(t);default:throw new Error("unknown value for this.state.imageStatus")}}}],[{key:"subscribeMasterSpinner",value:function(e){e.hasMasterSpinner&&e.carouselStore.subscribeMasterSpinner(e.src)}},{key:"unsubscribeMasterSpinner",value:function(e){e.hasMasterSpinner&&e.carouselStore.unsubscribeMasterSpinner(e.src)}}]),t}(Y.a.Component);l(nt,"propTypes",{alt:K.string,carouselStore:K.object.isRequired,children:J.children,className:K.string,hasMasterSpinner:K.bool.isRequired,isBgImage:J.isBgImage,onError:K.func,onLoad:K.func,renderError:K.func,renderLoading:K.func,src:K.string.isRequired,style:K.object,tag:K.string}),l(nt,"defaultProps",{alt:"",children:null,className:null,isBgImage:!1,onError:null,onLoad:null,renderError:null,renderLoading:null,style:null,tag:"img"});var rt,it,ot,at,st,lt,ct,ut,dt=Z(nt,function(e){return{hasMasterSpinner:e.hasMasterSpinner,orientation:e.orientation}}),pt={spinner:"spinner___27VUp",spin:"spin___S3UuE"},ht=["className"],mt=(it=rt=function(e){function t(){return o(this,t),n.apply(this,arguments)}u(t,e);var n=v(t);return s(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=f(e,ht),r=T([pt.spinner,"carousel__spinner",t]);return Y.a.createElement("div",c({className:r},n))}}]),t}(Y.a.PureComponent),l(rt,"propTypes",{className:K.string}),l(rt,"defaultProps",{className:null}),it),ft={container:"container___2O72F",overlay:"overlay___IV4qY",hover:"hover___MYy31",zoom:"zoom___3kqYk",loading:"loading___1pvNI",imageLoadingSpinnerContainer:"imageLoadingSpinnerContainer___3UIPD"},gt=["alt","bgImageProps","bgImageTag","carouselStore","className","imageClassName","overlayClassName","isPinchZoomEnabled","spinner","src","srcZoomed","tag"],wt=(at=ot=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.state={isImageLoading:!0,isHovering:!1,isZooming:!1,x:null,y:null,scale:1},r.tpCache={},r.handleImageComplete=r.handleImageComplete.bind(g(r)),r.handleOnMouseMove=r.handleOnMouseMove.bind(g(r)),r.handleOnMouseOut=r.handleOnMouseOut.bind(g(r)),r.handleOnMouseOver=r.handleOnMouseOver.bind(g(r)),r.handleOnTouchEnd=r.handleOnTouchEnd.bind(g(r)),r.handleOnTouchMove=r.handleOnTouchMove.bind(g(r)),r.handleOnTouchStart=r.handleOnTouchStart.bind(g(r)),r}u(t,e);var n=v(t);return s(t,[{key:"componentDidUpdate",value:function(e,t){!1===t.isZooming&&!0===this.state.isZooming&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),!0===t.isZooming&&!1===this.state.isZooming&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1})}},{key:"handleImageComplete",value:function(){this.setState({isImageLoading:!1})}},{key:"handleOnMouseOver",value:function(){this.state.isZooming||this.setState({isHovering:!0,scale:2})}},{key:"handleOnMouseOut",value:function(){this.state.isZooming||this.setState({isHovering:!1,scale:1})}},{key:"handleOnMouseMove",value:function(e){if(!this.state.isZooming){var t=j(e.nativeEvent.offsetX/e.target.offsetWidth*100),n=j(e.nativeEvent.offsetY/e.target.offsetHeight*100);this.setState({x:t,y:n})}}},{key:"handleOnTouchStart",value:function(e){var t=this;this.props.isPinchZoomEnabled&&(y(e.targetTouches).forEach(function(e){t.tpCache[e.identifier]={clientX:e.clientX,clientY:e.clientY}}),this.setState(function(e){return{isZooming:e.isZooming||Object.keys(t.tpCache).length>1}}))}},{key:"handleOnTouchMove",value:function(e){var n=this;if(this.state.isZooming){e.persist();var r=y(e.targetTouches).filter(function(e){return n.tpCache[e.identifier]}).slice(0,2);if(2===r.length){e.stopPropagation();var o=e.target.getBoundingClientRect(),a=r[0].identifier,s=r[1].identifier,l={x1:this.tpCache[a].clientX,y1:this.tpCache[a].clientY,x2:this.tpCache[s].clientX,y2:this.tpCache[s].clientY};l.distance=t.distanceBetweenTwoTouches(i({},l));var c=t.midpointBetweenTwoTouches(i({},l));l.cx=c.x,l.cy=c.y;var u={x1:r[0].clientX,y1:r[0].clientY,x2:r[1].clientX,y2:r[1].clientY};u.distance=t.distanceBetweenTwoTouches(i({},u));var d=t.midpointBetweenTwoTouches(i({},u));u.cx=d.x,u.cy=d.y;var p=j(Q({min:0,max:100,x:(u.cx-o.left)/o.width*100})),h=j(Q({min:0,max:100,x:(u.cy-o.top)/o.height*100})),m=function(e){return Q({min:1,max:3,x:e.scale+(u.distance-l.distance)/100})};this.setState(function(e){return{isZooming:1!==m(e),scale:m(e),x:p,y:h}})}}}},{key:"handleOnTouchEnd",value:function(e){var t=this;this.props.isPinchZoomEnabled&&(y(e.changedTouches).forEach(function(e){delete t.tpCache[e.identifier]}),0===Object.keys(this.tpCache).length&&this.setState({isZooming:!1}))}},{key:"renderLoading",value:function(){if(this.state.isImageLoading){var e=this.props.spinner;return Y.a.createElement("div",{className:T([ft.imageLoadingSpinnerContainer,"carousel__image-loading-spinner-container"])},e&&e(),!e&&Y.a.createElement(mt,null))}return null}},{key:"render",value:function(){var e=this.props,t=e.alt,n=e.bgImageProps,r=e.bgImageTag,i=(e.carouselStore,e.className),o=e.imageClassName,a=e.overlayClassName,s=(e.isPinchZoomEnabled,e.spinner,e.src),l=e.srcZoomed,u=e.tag,d=f(e,gt),p=T([ft.container,i]),h=T([ft.image,"carousel__zoom-image",o]),m=T([ft.overlay,"carousel__zoom-image-overlay",this.state.isHovering&&ft.hover,this.state.isZooming&&ft.zoom,this.state.isHovering&&"carousel__zoom-image-overlay--hovering",this.state.isZooming&&"carousel__zoom-image-overlay--zooming",a]),g={};return(this.state.isHovering||this.state.isZooming)&&(g.transformOrigin="".concat(this.state.x," ").concat(this.state.y),g.transform="scale(".concat(this.state.scale,")")),Y.a.createElement(u,c({className:p},d),Y.a.createElement(dt,c({alt:t,className:h,tag:r,src:s,onLoad:this.handleImageComplete,onError:this.handleImageComplete},n)),Y.a.createElement(dt,{className:m,tag:"div",src:l||s,style:g,isBgImage:!0,onFocus:this.handleOnMouseOver,onMouseOver:this.handleOnMouseOver,onBlur:this.handleOnMouseOut,onMouseOut:this.handleOnMouseOut,onMouseMove:this.handleOnMouseMove,onTouchStart:this.handleOnTouchStart,onTouchEnd:this.handleOnTouchEnd,onTouchMove:this.handleOnTouchMove}),this.renderLoading())}}],[{key:"midpointBetweenTwoTouches",value:function(e){var t=e.x1,n=e.y1;return{x:(t+e.x2)/2,y:(n+e.y2)/2}}},{key:"distanceBetweenTwoTouches",value:function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return Math.sqrt(Math.pow(r-t,2)+Math.pow(i-n,2))}}]),t}(Y.a.Component),l(ot,"propTypes",{alt:K.string,bgImageProps:K.object,bgImageTag:K.string,carouselStore:K.object.isRequired,className:K.string,imageClassName:K.string,overlayClassName:K.string,spinner:K.func,src:K.string.isRequired,srcZoomed:K.string,tag:K.string,isPinchZoomEnabled:K.bool}),l(ot,"defaultProps",{alt:void 0,bgImageProps:{},bgImageTag:"div",className:null,imageClassName:null,overlayClassName:null,isPinchZoomEnabled:!0,spinner:null,srcZoomed:null,tag:"div"}),at),vt=(Z(wt,function(){return{}}),{slide:"slide___3-Nqo",slideHorizontal:"slideHorizontal___1NzNV",slideInner:"slideInner___2mfX9",focusRing:"focusRing___1airF"}),yt=["ariaLabel","carouselStore","children","className","classNameHidden","classNameVisible","currentSlide","index","innerClassName","innerTag","naturalSlideHeight","naturalSlideWidth","onBlur","onFocus","orientation","slideSize","style","tabIndex","tag","totalSlides","visibleSlides","isIntrinsicHeight"],bt=(lt=st=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.handleOnFocus=r.handleOnFocus.bind(g(r)),r.handleOnBlur=r.handleOnBlur.bind(g(r)),r.state={focused:!1},r}u(t,e);var n=v(t);return s(t,[{key:"isVisible",value:function(){var e=this.props,t=e.currentSlide,n=e.index,r=e.visibleSlides;return n>=t&&n<t+r}},{key:"handleOnFocus",value:function(e){var t=this,n=this.props.onFocus;this.setState({focused:!0},function(){null!==n&&n.call(t,e)})}},{key:"handleOnBlur",value:function(e){var t=this,n=this.props.onBlur;this.setState({focused:!1},function(){null!==n&&n.call(t,e)})}},{key:"renderFocusRing",value:function(){return this.state.focused?Y.a.createElement("div",{className:[vt.focusRing,"carousel__slide-focus-ring"].join(" ")}):null}},{key:"render",value:function(){var e=this,t=this.props,n=t.ariaLabel,r=(t.carouselStore,t.children,t.className),i=t.classNameHidden,o=t.classNameVisible,a=(t.currentSlide,t.index,t.innerClassName),s=t.innerTag,l=t.naturalSlideHeight,u=t.naturalSlideWidth,d=(t.onBlur,t.onFocus,t.orientation),p=t.slideSize,h=t.style,m=t.tabIndex,g=t.tag,w=t.totalSlides,v=(t.visibleSlides,t.isIntrinsicHeight),y=f(t,yt),b={};"horizontal"===d?(b.width=j(p),b.paddingBottom=j(100*l/(u*w))):(b.width=j(100),b.paddingBottom=j(100*l/u));var S={};v&&("horizontal"===d?b.height="unset":b.width="unset",b.paddingBottom="unset",S.position="unset");var E=c({},b,h),_=this.isVisible(),C=T([vt.slide,"horizontal"===d&&vt.slideHorizontal,"carousel__slide",this.state.focused&&"carousel__slide--focused",_&&o,_&&"carousel__slide--visible",!_&&i,!_&&"carousel__slide--hidden",r]),x=T([vt.slideInner,"carousel__inner-slide",a]),k=this.isVisible()?0:-1,O="number"==typeof m?m:k;return Y.a.createElement(g,c({ref:function(t){e.tagRef=t},tabIndex:O,"aria-selected":this.isVisible(),"aria-label":n,role:"option",onFocus:this.handleOnFocus,onBlur:this.handleOnBlur,className:C,style:E},y),Y.a.createElement(s,{ref:function(t){e.innerTagRef=t},className:x,style:S},this.props.children,this.renderFocusRing()))}}]),t}(Y.a.PureComponent),l(st,"propTypes",{ariaLabel:K.string,carouselStore:K.object,children:J.children,className:K.string,classNameHidden:K.string,classNameVisible:K.string,currentSlide:K.number.isRequired,index:K.number.isRequired,innerClassName:K.string,innerTag:K.string,naturalSlideHeight:K.number.isRequired,naturalSlideWidth:K.number.isRequired,onBlur:K.func,onFocus:K.func,orientation:J.orientation.isRequired,slideSize:K.number.isRequired,style:K.object,tabIndex:K.number,tag:K.string,totalSlides:K.number.isRequired,visibleSlides:K.number.isRequired,isIntrinsicHeight:K.bool}),l(st,"defaultProps",{ariaLabel:"slide",carouselStore:null,children:null,className:null,classNameHidden:null,classNameVisible:null,innerClassName:null,innerTag:"div",onBlur:null,onFocus:null,style:{},tabIndex:null,tag:"div",isIntrinsicHeight:!1}),lt),St=Z(bt,function(e){return{currentSlide:e.currentSlide,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,slideSize:e.slideSize,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,isIntrinsicHeight:e.isIntrinsicHeight}}),Et=function(){function e(){o(this,e)}return s(e,[{key:"parents",value:function(e,t){return null===e.parentNode?t:this.parents(e.parentNode,t.concat([e]))}},{key:"scrollParent",value:function(t){for(var n=this.parents(t.parentNode,[]),r=0;r<n.length;r+=1)if(e.scroll(n[r]))return n[r];return document.scrollingElement||document.documentElement}},{key:"getScrollParent",value:function(t){return e.isNodeValid(t)?this.scrollParent(t):null}}],[{key:"style",value:function(e,t){return getComputedStyle(e,null).getPropertyValue(t)}},{key:"overflow",value:function(t){return e.style(t,"overflow")+e.style(t,"overflow-y")+e.style(t,"overflow-x")}},{key:"scroll",value:function(t){return/(auto|scroll)/.test(e.overflow(t))}},{key:"isNodeValid",value:function(e){return e instanceof HTMLElement||e instanceof SVGElement}}]),e}(),_t={horizontalSlider:"horizontalSlider___281Ls",horizontalSliderTray:"horizontalSliderTray___1L-0W",verticalSlider:"verticalSlider___34ZFD",verticalSliderTray:"verticalSliderTray___267D8",verticalTray:"verticalTray___12Key",verticalSlideTrayWrap:"verticalSlideTrayWrap___2nO7o",sliderTray:"sliderTray___-vHFQ",sliderAnimation:"sliderAnimation___300FY",masterSpinnerContainer:"masterSpinnerContainer___1Z6hB"},Ct=["ariaLabel","carouselStore","children","className","classNameAnimation","classNameTray","classNameTrayWrap","currentSlide","disableAnimation","disableKeyboard","dragEnabled","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","masterSpinnerFinished","moveThreshold","naturalSlideHeight","naturalSlideWidth","onMasterSpinner","orientation","playDirection","privateUnDisableAnimation","slideSize","slideTraySize","spinner","style","tabIndex","totalSlides","touchEnabled","trayProps","trayTag","visibleSlides","isIntrinsicHeight"],xt=["dragStep","step","infinite"],kt=["className","onClickCapture","onMouseDown","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","ref","style"],Ot=(ut=ct=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.getSliderRef=r.getSliderRef.bind(g(r)),r.handleDocumentScroll=r.handleDocumentScroll.bind(g(r)),r.handleOnClickCapture=r.handleOnClickCapture.bind(g(r)),r.handleOnKeyDown=r.handleOnKeyDown.bind(g(r)),r.handleOnMouseDown=r.handleOnMouseDown.bind(g(r)),r.handleOnMouseMove=r.handleOnMouseMove.bind(g(r)),r.handleOnMouseUp=r.handleOnMouseUp.bind(g(r)),r.handleOnTouchCancel=r.handleOnTouchCancel.bind(g(r)),r.handleOnTouchEnd=r.handleOnTouchEnd.bind(g(r)),r.handleOnTouchMove=r.handleOnTouchMove.bind(g(r)),r.handleOnTouchStart=r.handleOnTouchStart.bind(g(r)),r.playBackward=r.playBackward.bind(g(r)),r.playForward=r.playForward.bind(g(r)),r.callCallback=r.callCallback.bind(g(r)),r.state={cancelNextClick:!1,deltaX:0,deltaY:0,isBeingMouseDragged:!1,isBeingTouchDragged:!1,startX:0,startY:0},r.interval=null,r.isDocumentScrolling=null,r.moveTimer=null,r.originalOverflow=null,r.scrollParent=null,r.scrollStopTimer=null,r}u(t,e);var n=v(t);return s(t,[{key:"componentDidMount",value:function(){this.props.lockOnWindowScroll&&window.addEventListener("scroll",this.handleDocumentScroll,!1),document.documentElement.addEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.addEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.addEventListener("mouseup",this.handleOnMouseUp,!1),this.props.isPlaying&&this.play()}},{key:"componentDidUpdate",value:function(e){!e.isPlaying&&this.props.isPlaying&&this.play(),e.isPlaying&&!this.props.isPlaying&&this.stop(),!e.isPageScrollLocked&&this.props.isPageScrollLocked&&this.lockScroll(),e.isPageScrollLocked&&!this.props.isPageScrollLocked&&this.unlockScroll(),!1===e.privateUnDisableAnimation&&!0===this.props.privateUnDisableAnimation&&this.props.carouselStore.setStoreState({privateUnDisableAnimation:!1,disableAnimation:!1})}},{key:"componentWillUnmount",value:function(){document.documentElement.removeEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.removeEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.removeEventListener("mouseup",this.handleOnMouseUp,!1),window.removeEventListener("scroll",this.handleDocumentScroll,!1),this.stop(),window.cancelAnimationFrame.call(window,this.moveTimer),window.clearTimeout(this.scrollStopTimer),this.isDocumentScrolling=null,this.moveTimer=null,this.scrollStopTimer=null}},{key:"getSliderRef",value:function(e){this.sliderTrayElement=e}},{key:"fakeOnDragStart",value:function(e){var t=e.screenX,n=e.screenY,r=e.touchDrag,i=void 0!==r&&r,o=e.mouseDrag,a=void 0!==o&&o;this.props.carouselStore.setStoreState({isPlaying:!1}),window.cancelAnimationFrame.call(window,this.moveTimer),"vertical"===this.props.orientation&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),this.setState({isBeingTouchDragged:i,isBeingMouseDragged:a,startX:t,startY:n})}},{key:"fakeOnDragMove",value:function(e,t){var n=this;this.moveTimer=window.requestAnimationFrame.call(window,function(){n.setState(function(n){return{deltaX:e-n.startX,deltaY:t-n.startY}})})}},{key:"fakeOnDragEnd",value:function(){window.cancelAnimationFrame.call(window,this.moveTimer),this.computeCurrentSlide(),"vertical"===this.props.orientation&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1}),this.setState({deltaX:0,deltaY:0,isBeingTouchDragged:!1,isBeingMouseDragged:!1}),this.isDocumentScrolling=!this.props.lockOnWindowScroll&&null}},{key:"callCallback",value:function(e,t){var n=this.props.trayProps;n&&"function"==typeof n[e]&&(t.persist(),n[e](t))}},{key:"handleOnMouseDown",value:function(e){if(!this.props.dragEnabled)return void this.callCallback("onMouseDown",e);e.preventDefault(),this.fakeOnDragStart({screenX:e.screenX,screenY:e.screenY,mouseDrag:!0}),this.callCallback("onMouseDown",e)}},{key:"handleOnMouseMove",value:function(e){this.state.isBeingMouseDragged&&(this.setState({cancelNextClick:!0}),e.preventDefault(),this.fakeOnDragMove(e.screenX,e.screenY))}},{key:"handleOnMouseUp",value:function(e){this.state.isBeingMouseDragged&&(e.preventDefault(),this.fakeOnDragEnd())}},{key:"handleOnClickCapture",value:function(e){if(!this.state.cancelNextClick)return void this.callCallback("onClickCapture",e);e.preventDefault(),this.setState({cancelNextClick:!1}),this.callCallback("onClickCapture",e)}},{key:"handleOnTouchStart",value:function(e){if(!this.props.touchEnabled)return void this.callCallback("onTouchStart",e);"vertical"===this.props.orientation&&e.preventDefault();var t=e.targetTouches[0];this.fakeOnDragStart({screenX:t.screenX,screenY:t.screenY,touchDrag:!0}),this.callCallback("onTouchStart",e)}},{key:"handleDocumentScroll",value:function(){var e=this;this.props.touchEnabled&&(this.isDocumentScrolling=!0,window.clearTimeout(this.scrollStopTimer),this.scrollStopTimer=window.setTimeout(function(){e.isDocumentScrolling=!1},66))}},{key:"handleOnTouchMove",value:function(e){if(!this.props.touchEnabled||this.props.lockOnWindowScroll&&this.isDocumentScrolling)return void this.callCallback("onTouchMove",e);window.cancelAnimationFrame.call(window,this.moveTimer);var t=e.targetTouches[0];t&&(this.fakeOnDragMove(t.screenX,t.screenY),this.callCallback("onTouchMove",e))}},{key:"forward",value:function(){var e=this.props,t=e.currentSlide,n=e.step,r=e.totalSlides,i=e.visibleSlides;return Math.min(t+n,r-i)}},{key:"backward",value:function(){var e=this.props,t=e.currentSlide,n=e.step;return Math.max(t-n,0)}},{key:"handleOnKeyDown",value:function(e){var t=e.keyCode,n=this.props,r=n.carouselStore,i=n.currentSlide,o=n.disableKeyboard,a=n.totalSlides,s=n.visibleSlides,l={};!0===o||a<=s||(37===t&&(e.preventDefault(),this.focus(),l.currentSlide=Math.max(0,i-1),l.isPlaying=!1),39===t&&(e.preventDefault(),this.focus(),l.currentSlide=Math.min(a-s,i+1),l.isPlaying=!1),r.setStoreState(l))}},{key:"playForward",value:function(){var e=this.props,t=e.carouselStore,n=e.currentSlide;t.setStoreState({currentSlide:this.forward()===n?0:this.forward()})}},{key:"playBackward",value:function(){var e=this.props,t=e.carouselStore,n=e.currentSlide,r=e.totalSlides,i=e.visibleSlides;t.setStoreState({currentSlide:this.backward()===n?r-i:this.backward()})}},{key:"play",value:function(){var e=this.props.playDirection;this.interval=setInterval("forward"===e?this.playForward:this.playBackward,this.props.interval)}},{key:"stop",value:function(){window.clearInterval(this.interval),this.interval=null}},{key:"lockScroll",value:function(){var e=new Et;this.scrollParent=e.getScrollParent(this.sliderTrayElement),this.scrollParent&&(this.originalOverflow=this.originalOverflow||this.scrollParent.style.overflow,this.scrollParent.style.overflow="hidden")}},{key:"unlockScroll",value:function(){this.scrollParent&&(this.scrollParent.style.overflow=this.originalOverflow,this.originalOverflow=null,this.scrollParent=null)}},{key:"computeCurrentSlide",value:function(){var e=t.slideSizeInPx(this.props.orientation,this.sliderTrayElement.clientWidth,this.sliderTrayElement.clientHeight,this.props.totalSlides),n=t.slidesMoved(this.props.moveThreshold,this.props.orientation,this.state.deltaX,this.state.deltaY,e,this.props.dragStep),r=this.props.totalSlides-Math.min(this.props.totalSlides,this.props.visibleSlides),i=Q({min:0,max:r,x:this.props.currentSlide+n});this.props.infinite&&(this.props.currentSlide>=r&&n>0&&(i=0),0===this.props.currentSlide&&n<0&&(i=r)),this.props.carouselStore.setStoreState({currentSlide:i})}},{key:"focus",value:function(){this.sliderElement.focus()}},{key:"handleOnTouchEnd",value:function(e){this.endTouchMove(),this.callCallback("onTouchEnd",e)}},{key:"handleOnTouchCancel",value:function(e){this.endTouchMove(),this.callCallback("onTouchCancel",e)}},{key:"endTouchMove",value:function(){this.props.touchEnabled&&this.fakeOnDragEnd()}},{key:"renderMasterSpinner",value:function(){var e=this.props,t=e.hasMasterSpinner,n=e.masterSpinnerFinished,r=e.spinner;return t&&!n?("function"==typeof this.props.onMasterSpinner&&this.props.onMasterSpinner(),Y.a.createElement("div",{className:T([_t.masterSpinnerContainer,"carousel__master-spinner-container"])},r&&r(),!r&&Y.a.createElement(mt,null))):null}},{key:"render",value:function(){var e=this,t=this.props,n=t.ariaLabel,r=(t.carouselStore,t.children),i=t.className,o=t.classNameAnimation,a=t.classNameTray,s=t.classNameTrayWrap,l=t.currentSlide,u=t.disableAnimation,d=(t.disableKeyboard,t.dragEnabled,t.hasMasterSpinner,t.interval,t.isPageScrollLocked,t.isPlaying,t.lockOnWindowScroll,t.masterSpinnerFinished,t.moveThreshold,t.naturalSlideHeight),p=t.naturalSlideWidth,h=(t.onMasterSpinner,t.orientation),m=(t.playDirection,t.privateUnDisableAnimation,t.slideSize),g=t.slideTraySize,w=(t.spinner,t.style),v=t.tabIndex,y=(t.totalSlides,t.touchEnabled,t.trayProps),b=t.trayTag,S=t.visibleSlides,E=t.isIntrinsicHeight,_=f(t,Ct),C=c({},w),x={};"vertical"===h&&(x.height=0,x.paddingBottom=j(100*d*S/p),x.width=j(100));var k={},O=j(m*l*-1);(this.state.isBeingTouchDragged||this.state.isBeingMouseDragged||u)&&(k.transition="none"),E&&(k.display="flex",k.alignItems="stretch"),"vertical"===h?(k.transform="translateY(".concat(O,") translateY(").concat(this.state.deltaY,"px)"),k.width=j(100),k.flexDirection="column"):(k.width=j(g),k.transform="translateX(".concat(O,") translateX(").concat(this.state.deltaX,"px)"),k.flexDirection="row");var N=T(["vertical"===h?_t.verticalSlider:_t.horizontalSlider,"carousel__slider","vertical"===h?"carousel__slider--vertical":"carousel__slider--horizontal",i]),M=T([_t.sliderTrayWrap,"carousel__slider-tray-wrapper","vertical"===h?_t.verticalSlideTrayWrap:_t.horizontalTrayWrap,"vertical"===h?"carousel__slider-tray-wrap--vertical":"carousel__slider-tray-wrap--horizontal",s]),P=T([_t.sliderTray,o||_t.sliderAnimation,"carousel__slider-tray","vertical"===h?_t.verticalTray:_t.horizontalTray,"vertical"===h?"carousel__slider-tray--vertical":"carousel__slider-tray--horizontal",a]),D=null!==v?v:0,F=(_.dragStep,_.step,_.infinite,f(_,xt)),A=(y.className,y.onClickCapture,y.onMouseDown,y.onTouchCancel,y.onTouchEnd,y.onTouchMove,y.onTouchStart,y.ref,y.style,f(y,kt));return Y.a.createElement("div",c({ref:function(t){e.sliderElement=t},className:N,"aria-live":"polite","aria-label":n,style:C,tabIndex:D,onKeyDown:this.handleOnKeyDown,role:"listbox"},F),Y.a.createElement("div",{className:M,style:x},Y.a.createElement(b,c({ref:this.getSliderRef,className:P,style:k,onTouchStart:this.handleOnTouchStart,onTouchMove:this.handleOnTouchMove,onTouchEnd:this.handleOnTouchEnd,onTouchCancel:this.handleOnTouchCancel,onMouseDown:this.handleOnMouseDown,onClickCapture:this.handleOnClickCapture},A),r),this.renderMasterSpinner()))}}],[{key:"slideSizeInPx",value:function(e,t,n,r){return("horizontal"===e?t:n)/r}},{key:"slidesMoved",value:function(e,t,n,r,i,o){var a="horizontal"===t?n:r,s=Math.abs(Math.round(a/i)),l=Math.abs(a)>=i*e?o:0,c=Math.max(l,s);if(a<0)return c;var u=-c;return 0===u?0:u}}]),t}(Y.a.Component),l(ct,"propTypes",{ariaLabel:K.string,carouselStore:K.object.isRequired,children:K.node.isRequired,className:K.string,classNameAnimation:K.string,classNameTray:K.string,classNameTrayWrap:K.string,currentSlide:K.number.isRequired,disableAnimation:K.bool,disableKeyboard:K.bool,dragEnabled:K.bool.isRequired,dragStep:K.number,hasMasterSpinner:K.bool.isRequired,infinite:K.bool,interval:K.number.isRequired,isPageScrollLocked:K.bool.isRequired,isPlaying:K.bool.isRequired,lockOnWindowScroll:K.bool.isRequired,masterSpinnerFinished:K.bool.isRequired,moveThreshold:K.number,naturalSlideHeight:K.number.isRequired,naturalSlideWidth:K.number.isRequired,onMasterSpinner:K.func,orientation:J.orientation.isRequired,playDirection:J.direction.isRequired,privateUnDisableAnimation:K.bool,slideSize:K.number.isRequired,slideTraySize:K.number.isRequired,spinner:K.func,step:K.number.isRequired,style:K.object,tabIndex:K.number,totalSlides:K.number.isRequired,touchEnabled:K.bool.isRequired,trayProps:K.shape({className:K.string,onClickCapture:K.func,onMouseDown:K.func,onTouchCancel:K.func,onTouchEnd:K.func,onTouchMove:K.func,onTouchStart:K.func,ref:K.shape({}),style:K.string}),trayTag:K.string,visibleSlides:K.number,isIntrinsicHeight:K.bool}),l(ct,"defaultProps",{ariaLabel:"slider",className:null,classNameAnimation:null,classNameTray:null,classNameTrayWrap:null,disableAnimation:!1,disableKeyboard:!1,dragStep:1,infinite:!1,moveThreshold:.1,onMasterSpinner:null,privateUnDisableAnimation:!1,spinner:null,style:{},tabIndex:null,trayProps:{},trayTag:"div",visibleSlides:1,isIntrinsicHeight:!1}),ut),Tt=Z(Ot,function(e){return{currentSlide:e.currentSlide,disableAnimation:e.disableAnimation,privateUnDisableAnimation:e.privateUnDisableAnimation,disableKeyboard:e.disableKeyboard,dragEnabled:e.dragEnabled,hasMasterSpinner:e.hasMasterSpinner,infinite:e.infinite,interval:e.interval,isPageScrollLocked:e.isPageScrollLocked,isPlaying:e.isPlaying,lockOnWindowScroll:e.lockOnWindowScroll,masterSpinnerFinished:e.masterSpinnerFinished,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,playDirection:e.playDirection,slideSize:e.slideSize,slideTraySize:e.slideTraySize,step:e.step,dragStep:e.dragStep,totalSlides:e.totalSlides,touchEnabled:e.touchEnabled,visibleSlides:e.visibleSlides,isIntrinsicHeight:e.isIntrinsicHeight}})},function(e,t,n){"use strict";var r=n(82),i=n.n(r),o=n(83),a=n.n(o),s=n(30),l=n.n(s),c=n(208),u=n(84),d=n(209),p=wp.i18n.__,h=wp.blocks.registerBlockType,m=wp,f=m.apiFetch,g=wp.data,w=g.registerStore,v=g.withSelect,y=wp.blockEditor.InspectorControls,b=wp.components,S=b.PanelBody,E=b.PanelRow,_=b.TextControl,C=b.ColorPalette,x=b.RadioControl,k=b.ToggleControl,O=b.SelectControl,T=b.RangeControl,N=window.monsterinsights_gutenberg_tool_vars,M={setThemes:function(e){return{type:"SET_THEMES",themes:e}},receiveThemes:function(e){return{type:"RECEIVE_THEMES",path:e}}};w("monsterinsights/v1/popular-posts/widget",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{themes:{}},t=arguments[1];switch(t.type){case"SET_THEMES":return l()({},e,{themes:t.themes})}return e},actions:M,selectors:{receiveThemes:function(e){return e.themes}},controls:{RECEIVE_THEMES:function(e){return f({path:e.path})}},resolvers:{receiveThemes:a.a.mark(function e(t){var n,r;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M.receiveThemes("/monsterinsights/v1/popular-posts/themes/widget");case 2:if(n=e.sent,void 0===n.themes){e.next=6;break}for(r in n.themes)n.themes.hasOwnProperty(r)&&(n.themes[r].value=r);return e.abrupt("return",M.setThemes(n));case 6:case"end":return e.stop()}},e,this)})}}),h("monsterinsights/popular-posts-widget",{title:p("Popular Posts","google-analytics-for-wordpress"),description:p("Add popular posts from MonsterInsights","google-analytics-for-wordpress"),category:"widgets",icon:c.a.widgetpop,keywords:[p("Popular","google-analytics-for-wordpress"),p("Posts","google-analytics-for-wordpress"),p("Widget","google-analytics-for-wordpress"),"MonsterInsights"],example:{},attributes:{theme:{type:"string"},title_size:{type:"number"},title_color:{type:"string"},label_color:{type:"string"},label_text:{type:"string"},label_background:{type:"string"},background_color:{type:"string"},background_border:{type:"string"},meta_color:{type:"string"},meta_size:{type:"string"},meta_author:{type:"boolean"},meta_date:{type:"boolean"},meta_comments:{type:"boolean"},comments_color:{type:"string"},columns:{type:"number",default:1},widget_title:{type:"boolean"},widget_title_text:{type:"string"},post_count:{type:"number",default:5},categories:{type:"array",default:[]}},edit:v(function(e){return{themes:e("monsterinsights/v1/popular-posts/widget").receiveThemes()}})(function(e){var t=e.attributes,n=t.theme,r=(t.title_size,t.title_color,t.label_color,t.label_text,t.label_background,t.background_color,t.background_border,t.meta_color,t.meta_size,t.meta_author,t.meta_comments,t.meta_date,t.comments_color,t.columns),o=t.widget_title,a=t.widget_title_text,s=t.post_count,l=t.categories,h=e.themes,m=e.setAttributes,f=[{name:"pink",color:"#F58EA8"},{name:"red",color:"#CD3034"},{name:"orange",color:"#FD6A21"},{name:"yellow",color:"#FBB82B"},{name:"green",color:"#7FDBB6"},{name:"green",color:"#21CF86"},{name:"blue",color:"#91D2FA"},{name:"blue",color:"#1B95E0"},{name:"purple",color:"#9A57DD"},{name:"gray",color:"#EEEEEE"},{name:"gray",color:"#ACB8C3"},{name:"black",color:"#000000"}],g=void 0!==h.themes?h.themes:{},w=void 0===e.attributes.theme?h.selected:n,v=void 0!==w&&void 0!==g[w]?g[w]:{},b=void 0!==v.styles?v.styles:{},M={};for(var j in b)if(b.hasOwnProperty(j))for(var P in b[j])if(b[j].hasOwnProperty(P)){var D=j+"_"+P;void 0===e.attributes[D]?M[D]=b[j][P]:M[D]=e.attributes[D],"on"===M[D]&&(M[D]=!0),"off"===M[D]&&(M[D]=!1)}var F=function(e,t){var n=[1,2,3,4,5,6,7,8,9,10];return 2===e&&(n=[2,4,6,8,10]),3===e&&(n=[3,6,9]),t&&(n=n.map(function(e){return{value:e,label:e}})),n},A=function(){if(void 0!==b.meta.author)return wp.element.createElement(k,{label:p("Display Author","google-analytics-for-wordpress"),checked:M.meta_author,onChange:function(e){m(i()({},"meta_author",e))}})},L=function(){if(void 0!==b.meta.date)return wp.element.createElement(k,{label:p("Display Date","google-analytics-for-wordpress"),checked:M.meta_date,onChange:function(e){m(i()({},"meta_date",e))}})},B=function(){if(void 0!==b.meta.comments)return wp.element.createElement(k,{label:p("Display Comments","google-analytics-for-wordpress"),checked:M.meta_comments,onChange:function(e){m(i()({},"meta_comments",e))}})},z=function(){return wp.element.createElement("span",{className:"monsterinsights-wide-column monsterinsights-wide-column-one"},wp.element.createElement("span",null),wp.element.createElement("span",null))},R=function(){return wp.element.createElement("span",{className:"monsterinsights-wide-column monsterinsights-wide-column-two"},wp.element.createElement("span",null),wp.element.createElement("span",null),wp.element.createElement("span",null),wp.element.createElement("span",null))},H=function(){return wp.element.createElement("span",{className:"monsterinsights-wide-column monsterinsights-wide-column-three"},wp.element.createElement("span",null),wp.element.createElement("span",null),wp.element.createElement("span",null),wp.element.createElement("span",null),wp.element.createElement("span",null),wp.element.createElement("span",null))},I=function(e,t){var n=M[t];return wp.element.createElement(T,{key:"monsterinsights-popular-posts-input"+t,label:e,value:parseInt(n),min:1,max:100,onChange:function(e){return m(i()({},t,""===e?"":parseInt(e)))}})},q=function(e,t){var n=M[t];return wp.element.createElement(_,{key:"monsterinsights-popular-posts-input"+t,label:e,type:"text",value:n,onChange:function(e){return m(i()({},t,e))}})},V=function(e,t){var n=M[t];return[wp.element.createElement("label",{key:"monsterinsights-popular-posts-label"+t},e),wp.element.createElement(C,{key:"monsterinsights-popular-posts-input"+t,value:n,colors:f,onChange:function(e){m(i()({},t,e))}})]},W=function(e,t){if(e.length>0&&void 0!==e[t]){var n=e[t];return wp.element.createElement("div",{className:"monsterinsights-widget-popular-posts-image"},wp.element.createElement("img",{src:N.vue_assets_path+"img/"+n}))}},Z=function(){if(void 0!==b.label)return wp.element.createElement("span",{style:{color:M.label_color,backgroundColor:M.label_background},className:"monsterinsights-widget-popular-posts-label"},M.label_text)},U=function(){if(void 0!==b.meta)return[wp.element.createElement("div",{className:"monsterinsights-widget-popular-posts-meta",key:"monsterinsights-widget-popular-posts-meta-options",style:{color:M.meta_color,fontSize:M.meta_size+"px"}},Y(),X(),K()),wp.element.createElement("span",{key:"monsterinsights-widget-popular-posts-comments-options"},G())]},Y=function(){if(M.meta_author)return wp.element.createElement("span",{className:"monsterinsights-widget-popular-posts-author"},"by Aazim Akhtar")},X=function(){if(M.meta_author&&M.meta_date)return wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:b.meta.separator}})},G=function(){if(void 0!==b.meta&&void 0!==b.meta.comments&&M.meta_comments){var e=void 0!==b.comments?M.comments_color:M.meta_color;return wp.element.createElement("span",{className:"monsterinsights-widget-popular-posts-comments",style:{color:e,fontSize:M.meta_size+"px"}},c.a.comments(e)," 24")}},K=function(){if(M.meta_date)return wp.element.createElement("span",{className:"monsterinsights-widget-popular-posts-date"},"Yesterday")},$=function(e){for(;e.length<=10;)e=e.concat(e);return e};return[wp.element.createElement(y,{key:"monsterinsights-popular-posts-widget-inspector-controls"},wp.element.createElement(S,{title:p("Theme","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-theme"},wp.element.createElement(E,{key:"monsterinsights-popular-posts-widget-theme-row"},wp.element.createElement(u.a,{id:"monsterinsights-popular-posts-widget-theme",options:g,selected:w,icons:c.a,onChange:function(e){m({theme:e})}}))),function(){if(void 0!==b.title){var e=[];return void 0!==b.title.size&&e.push(I(p("Title Font Size","google-analytics-for-wordpress"),"title_size")),void 0!==b.title.color&&e.push(V(p("Title Color","google-analytics-for-wordpress"),"title_color")),wp.element.createElement(S,{title:p("Title Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-title"},e)}}(),function(){if(void 0!==b.background&&void 0!==b.background.color){var e=[];return void 0!==b.background.color&&e.push(V(p("Background Color","google-analytics-for-wordpress"),"background_color")),wp.element.createElement(S,{title:p("Background Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-background"}," ",e," ")}}(),function(){if(void 0!==b.label){var e=[];return void 0!==b.label.text&&e.push(q(p("Label Text","google-analytics-for-wordpress"),"label_text")),void 0!==b.label.color&&e.push(V(p("Label Color","google-analytics-for-wordpress"),"label_color")),void 0!==b.label.background&&e.push(V(p("Label Background","google-analytics-for-wordpress"),"label_background")),wp.element.createElement(S,{title:p("Label Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-label"}," ",e," ")}}(),function(){var e=[];if(void 0!==b.border&&void 0!==b.border.color&&e.push(V(p("Border Color","google-analytics-for-wordpress"),"borderColor")),void 0!==b.border&&void 0!==b.border.color2&&e.push(V(p("Bottom Border Color","google-analytics-for-wordpress"),"borderColor2")),void 0!==b.background&&void 0!==b.background.border&&e.push(V(p("Border Color","google-analytics-for-wordpress"),"background_border")),0!==e.length)return wp.element.createElement(S,{title:p("Border Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-inline-border"}," ",e," ")}(),function(){if(void 0!==b.meta){var e=[];return void 0!==b.meta.size&&e.push(I(p("Meta Font Size","google-analytics-for-wordpress"),"meta_size")),void 0!==b.meta.color&&e.push(V(p("Meta Color","google-analytics-for-wordpress"),"meta_color")),wp.element.createElement(S,{title:p("Meta Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-meta-styles"},e)}}(),function(){if(void 0!==b.comments)return wp.element.createElement(S,{title:p("Comment Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-comment-styles"},V(p("Comment Color","google-analytics-for-wordpress"),"comments_color"))}(),function(){return wp.element.createElement(S,{title:p("Wide-Layout Options","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-columns"},wp.element.createElement(x,{label:p("Choose Layout","google-analytics-for-wordpress"),help:p("Adjust the number of columns displayed when the widget is placed in a wide container.","google-analytics-for-wordpress"),className:"monsterinsights-wide-column-options",key:"monsterinsights-popular-posts-widget-columns-control",options:[{value:1,label:z()},{value:2,label:R()},{value:3,label:H()}],selected:r,onChange:function(e){m(i()({},"columns",""===e?"":parseInt(e)));var t=F(parseInt(e));-1===t.indexOf(s)&&m(i()({},"post_count",parseInt(t[0])))}}),wp.element.createElement(O,{label:p("Post Count","google-analytics-for-wordpress"),help:p("Number of posts displayed.","google-analytics-for-wordpress"),options:F(r,!0),value:s,key:"monsterinsights-popular-posts-widget-post-count",onChange:function(e){m(i()({},"post_count",parseInt(e)))}}))}(),function(){if(void 0!==b.meta)return wp.element.createElement(S,{title:p("Display Options","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-meta-options"},A(),L(),B())}(),function(){return wp.element.createElement(S,{title:p("Behavior Settings","google-analytics-for-wordpress"),key:"monsterinsights-popular-posts-widget-behavior-options"},wp.element.createElement(k,{label:p("Display Widget Title","google-analytics-for-wordpress"),checked:o,onChange:function(e){m(i()({},"widget_title",e))}}),wp.element.createElement(_,{key:"monsterinsights-popular-posts-input-widget-title-text",label:p("Widget Title","google-analytics-for-wordpress"),type:"text",value:a,onChange:function(e){return m(i()({},"widget_title_text",e))}}),wp.element.createElement(d.a,{label:p("Only Show Posts From These Categories","google-analytics-for-wordpress"),slug:"category",onUpdateTerms:function(e){m(i()({},"categories",e))},terms:l}))}()),wp.element.createElement("div",{key:"monsterinsights-popular-posts-widget-preview"},wp.element.createElement("div",{className:"monsterinsights-widget-popular-posts-widget monsterinsights-widget-popular-posts-"+w+" monsterinsights-widget-popular-posts-columns-"+r},function(){if(o)return wp.element.createElement("h2",{className:"monsterinsights-widget-popular-posts-widget-title"},a)}(),wp.element.createElement("div",{className:"monsterinsights-widget-popular-posts-text"},function(){if(void 0!==v.list&&void 0!==v.list.items){var e=$(v.list.items),t=void 0!==v.list.images?$(v.list.images):[],n=[];for(var r in e){if(parseInt(r)===parseInt(s))break;n.push(wp.element.createElement("li",{key:"monsterinsights-popular-posts-preview-list-item-"+r,style:{backgroundColor:M.background_color,borderColor:M.background_border}},W(t,r),wp.element.createElement("div",{className:"monsterinsights-widget-popular-posts-text"},Z(),wp.element.createElement("a",{className:"monsterinsights-widget-popular-posts-title",style:{color:M.title_color,fontSize:M.title_size+"px"}},e[r]),U())))}return wp.element.createElement("ul",{className:"monsterinsights-widget-popular-posts-list"},n)}}())))]}),save:function(e){return null}})},function(e,t,n){"use strict";var r={};r.widgetpop=wp.element.createElement("svg",{width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 0C0.895431 0 0 0.895431 0 2V10C0 11.1046 0.895431 12 2 12H14C15.1046 12 16 11.1046 16 10V2C16 0.895431 15.1046 0 14 0H2ZM8.94046 4.70557L8 2L7.05954 4.70557L4.19577 4.76393L6.47831 6.49443L5.64886 9.23607L8 7.6L10.3511 9.23607L9.52169 6.49443L11.8042 4.76393L8.94046 4.70557ZM0 14H14V16H0V14ZM10 18H0V20H10V18Z",fill:"#555D66"})),r.alpha=wp.element.createElement("svg",{width:"74",height:"46",viewBox:"0 0 74 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"74",height:"46",rx:"5",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"7.40002",y:"12",width:"59.2",height:"9",rx:"2",fill:"#338EEF"}),wp.element.createElement("rect",{x:"7.40002",y:"25",width:"51.8",height:"9",rx:"2",fill:"#338EEF"})),r.beta=wp.element.createElement("svg",{width:"74",height:"46",viewBox:"0 0 74 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 15C0 13.3431 1.34315 12 3 12H4V34H3C1.34315 34 0 32.6569 0 31V15Z",fill:"#1170D5"}),wp.element.createElement("rect",{x:"12",y:"12",width:"54",height:"9",rx:"2",fill:"#4296F0"}),wp.element.createElement("rect",{x:"12",y:"25",width:"44",height:"9",rx:"2",fill:"#4296F0"})),r.charlie=wp.element.createElement("svg",{width:"74",height:"46",viewBox:"0 0 74 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"74",height:"46",rx:"3",fill:"#E7F2FD"}),wp.element.createElement("rect",{width:"74",height:"4",fill:"#1170D5"}),wp.element.createElement("rect",{x:"8",y:"14",width:"58",height:"9",rx:"2",fill:"#4296F0"}),wp.element.createElement("rect",{x:"8",y:"27",width:"40",height:"9",rx:"2",fill:"#4296F0"})),r.delta=wp.element.createElement("svg",{width:"74",height:"39",viewBox:"0 0 74 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"31",y:"12",width:"43",height:"7",rx:"2",fill:"#4296F0"}),wp.element.createElement("rect",{x:"31",y:"23",width:"32",height:"7",rx:"2",fill:"#4296F0"}),wp.element.createElement("rect",{x:"31",y:"34",width:"43",height:"5",rx:"2",fill:"#A0CBF8"}),wp.element.createElement("rect",{y:"12",width:"27",height:"27",rx:"2",fill:"#338EEF"}),wp.element.createElement("rect",{width:"74",height:"4",fill:"#1170D5"})),r.echo=wp.element.createElement("svg",{width:"74",height:"76",viewBox:"0 0 74 76",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"74",height:"76",rx:"5",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"8",y:"41",width:"58",height:"7",rx:"2",fill:"#338EEF"}),wp.element.createElement("rect",{x:"8",y:"61",width:"7",height:"7",rx:"3.5",fill:"#A0CBF8"}),wp.element.createElement("rect",{x:"8",y:"8",width:"58",height:"29",rx:"2",fill:"#338EEF"}),wp.element.createElement("rect",{x:"8",y:"52",width:"34",height:"5",rx:"2",fill:"#A0CBF8"}),wp.element.createElement("rect",{x:"46",y:"52",width:"20",height:"5",rx:"2",fill:"#A0CBF8"})),r.foxtrot=wp.element.createElement("svg",{width:"74",height:"43",viewBox:"0 0 74 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"74",height:"43",rx:"5",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"8",y:"8",width:"58",height:"7",rx:"2",fill:"#338EEF"}),wp.element.createElement("rect",{x:"8",y:"28",width:"7",height:"7",rx:"3.5",fill:"#A0CBF8"}),wp.element.createElement("rect",{x:"8",y:"19",width:"34",height:"5",rx:"2",fill:"#A0CBF8"}),wp.element.createElement("rect",{x:"46",y:"19",width:"20",height:"5",rx:"2",fill:"#A0CBF8"})),r.golf=wp.element.createElement("svg",{width:"74",height:"56",viewBox:"0 0 74 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"74",height:"56",rx:"5",fill:"#E7F2FD"}),wp.element.createElement("rect",{x:"8",y:"21",width:"58",height:"7",rx:"2",fill:"#338EEF"}),wp.element.createElement("rect",{x:"8",y:"41",width:"7",height:"7",rx:"3.5",fill:"#A0CBF8"}),wp.element.createElement("rect",{x:"8",y:"8",width:"16",height:"9",rx:"2",fill:"#1170D5"}),wp.element.createElement("rect",{x:"8",y:"32",width:"34",height:"5",rx:"2",fill:"#A0CBF8"}),wp.element.createElement("rect",{x:"46",y:"32",width:"20",height:"5",rx:"2",fill:"#A0CBF8"})),r.hotel=wp.element.createElement("svg",{width:"74",height:"50",viewBox:"0 0 74 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{width:"74",height:"50",rx:"5",fill:"#338EEF"}),wp.element.createElement("path",{d:"M54.0625 42H19.9375C18.8438 42 17.9141 41.6111 17.1484 40.8333C16.3828 40.0556 16 39.1111 16 38V14C16 12.8889 16.3828 11.9444 17.1484 11.1667C17.9141 10.3889 18.8438 10 19.9375 10H54.0625C55.1562 10 56.0859 10.3889 56.8516 11.1667C57.6172 11.9444 58 12.8889 58 14V38C58 39.1111 57.6172 40.0556 56.8516 40.8333C56.0859 41.6111 55.1562 42 54.0625 42ZM28.3867 16.0833C27.5117 15.1389 26.4453 14.6667 25.1875 14.6667C23.9297 14.6667 22.8359 15.1389 21.9062 16.0833C21.0312 16.9722 20.5938 18.0556 20.5938 19.3333C20.5938 20.6111 21.0312 21.7222 21.9062 22.6667C22.8359 23.5556 23.9297 24 25.1875 24C26.4453 24 27.5117 23.5556 28.3867 22.6667C29.3164 21.7222 29.7812 20.6111 29.7812 19.3333C29.7812 18.0556 29.3164 16.9722 28.3867 16.0833ZM21.25 36.6667H52.75V27.3333L45.5312 20C45.0938 19.5556 44.6562 19.5556 44.2188 20L33.0625 31.3333L28.4688 26.6667C28.0312 26.2222 27.5938 26.2222 27.1562 26.6667L21.25 32.6667V36.6667Z",fill:"#59A3F2"}),wp.element.createElement("rect",{x:"8",y:"26",width:"58",height:"7",rx:"2",fill:"#F1F7FE"}),wp.element.createElement("rect",{x:"8",y:"37",width:"34",height:"5",rx:"2",fill:"#A0CBF8"}),wp.element.createElement("rect",{x:"46",y:"37",width:"20",height:"5",rx:"2",fill:"#A0CBF8"})),r.comments=function(e){return wp.element.createElement("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{fill:e}},wp.element.createElement("path",{d:"M7.8251 1.25893C8.70332 2.09821 9.14243 3.10714 9.14243 4.28571C9.14243 5.46429 8.70332 6.47321 7.8251 7.3125C6.94689 8.15179 5.8887 8.57143 4.65056 8.57143C3.78674 8.57143 2.98771 8.34821 2.25346 7.90179C1.63439 8.34821 0.993719 8.57143 0.331456 8.57143C0.302662 8.57143 0.273868 8.5625 0.245074 8.54464C0.216279 8.50893 0.194684 8.47321 0.180287 8.4375C0.151493 8.34821 0.158691 8.26786 0.201882 8.19643C0.50422 7.83929 0.763366 7.35714 0.979321 6.75C0.432235 6.01786 0.158691 5.19643 0.158691 4.28571C0.158691 3.10714 0.5978 2.09821 1.47602 1.25893C2.35424 0.419643 3.41242 0 4.65056 0C5.8887 0 6.94689 0.419643 7.8251 1.25893ZM11.7771 10.1786C11.993 10.7857 12.2522 11.2679 12.5545 11.625C12.5977 11.6964 12.6049 11.7768 12.5761 11.8661C12.5473 11.9554 12.4969 12 12.425 12C11.7627 12 11.122 11.7768 10.5029 11.3304C9.7687 11.7768 8.96967 12 8.10585 12C7.18444 12 6.34941 11.7589 5.60076 11.2768C4.85212 10.7946 4.30503 10.1607 3.9595 9.375C4.21865 9.41071 4.449 9.42857 4.65056 9.42857C6.07587 9.42857 7.29241 8.92857 8.30021 7.92857C9.32239 6.91071 9.83349 5.69643 9.83349 4.28571C9.83349 4.08929 9.82629 3.91071 9.81189 3.75C10.6325 4.07143 11.302 4.59821 11.8203 5.33036C12.3386 6.04464 12.5977 6.83929 12.5977 7.71429C12.5977 8.625 12.3242 9.44643 11.7771 10.1786Z"}))},t.a=r},function(e,t,n){"use strict";var r=n(15),i=n.n(r),o=n(16),a=n.n(o),s=n(17),l=n.n(s),c=n(18),u=n.n(c),d=n(19),p=n.n(d),h=n(26),m=(n.n(h),n(210),n(20)),f=wp.components.CheckboxControl,g=function(e){function t(){a()(this,t);var e=u()(this,(t.__proto__||i()(t)).call(this));return e.state={},e}return p()(t,e),l()(t,[{key:"renderTerms",value:function(e){return e.map(function(e){return wp.element.createElement("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},wp.element.createElement(f,{checked:!0,label:Object(h.unescape)(e.name)}))})}},{key:"render",value:function(){return[wp.element.createElement("label",{key:"monsterinsights-hierarchical-term-list-label",className:"components-base-control__label"},this.props.label,wp.element.createElement("span",{className:"monsterinsights-popular-posts-pro-pill"},"PRO")),wp.element.createElement("div",{className:"editor-post-taxonomies__hierarchical-terms-list monsterinsights-hierarchical-terms monsterinsights-hierarchical-terms-disabled",key:"monsterinsights-hierarchical-term-list",tabIndex:"0",role:"group"},this.renderTerms([{name:"News",id:1},{name:"Technology",id:2}]))]}}]),t}(m.a);t.a=g},function(e,t,n){"use strict";n(211),n(85),n(219)},function(e,t,n){"use strict";var r=n(212),i=n.n(r),o=n(213);n.n(o),i()(console.error)},function(e,t,n){function r(e,t){function n(){var n,a,s=r,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(a=0;a<l;a++)if(s.args[a]!==arguments[a]){s=s.next;continue e}return s!==r&&(s===i&&(i=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(n=new Array(l),a=0;a<l;a++)n[a]=arguments[a];return s={args:n,val:e.apply(null,n)},r?(r.prev=s,s.next=r):i=s,o===t.maxSize?(i=i.prev,i.next=null):o++,r=s,s.val}var r,i,o=0;return t=t||{},n.clear=function(){r=null,i=null,o=0},n}e.exports=r},function(e,t,n){var r;!function(){"use strict";function i(e){return a(s(e),arguments)}function o(e,t){return i.apply(null,[e].concat(t||[]))}function a(e,t){var n,r,o,a,s,c,u,d,p,h=1,m=e.length,f="";for(r=0;r<m;r++)if("string"==typeof e[r])f+=e[r];else if("object"==typeof e[r]){if(a=e[r],a.keys)for(n=t[h],o=0;o<a.keys.length;o++){if(void 0==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',a.keys[o],a.keys[o-1]));n=n[a.keys[o]]}else n=a.param_no?t[a.param_no]:t[h++];if(l.not_type.test(a.type)&&l.not_primitive.test(a.type)&&n instanceof Function&&(n=n()),l.numeric_arg.test(a.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(l.number.test(a.type)&&(d=n>=0),a.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,a.width?parseInt(a.width):0);break;case"e":n=a.precision?parseFloat(n).toExponential(a.precision):parseFloat(n).toExponential();break;case"f":n=a.precision?parseFloat(n).toFixed(a.precision):parseFloat(n);break;case"g":n=a.precision?String(Number(n.toPrecision(a.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=a.precision?n.substring(0,a.precision):n;break;case"t":n=String(!!n),n=a.precision?n.substring(0,a.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=a.precision?n.substring(0,a.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=a.precision?n.substring(0,a.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}l.json.test(a.type)?f+=n:(!l.number.test(a.type)||d&&!a.sign?p="":(p=d?"+":"-",n=n.toString().replace(l.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",u=a.width-(p+n).length,s=a.width&&u>0?c.repeat(u):"",f+=a.align?p+n+s:"0"===c?p+s+n:s+p+n)}return f}function s(e){if(c[e])return c[e];for(var t,n=e,r=[],i=0;n;){if(null!==(t=l.text.exec(n)))r.push(t[0]);else if(null!==(t=l.modulo.exec(n)))r.push("%");else{if(null===(t=l.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var o=[],a=t[2],s=[];if(null===(s=l.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(s[1]);""!==(a=a.substring(s[0].length));)if(null!==(s=l.key_access.exec(a)))o.push(s[1]);else{if(null===(s=l.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(s[1])}t[2]=o}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return c[e]=r}var l={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/},c=Object.create(null);t.sprintf=i,t.vsprintf=o,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=o,void 0!==(r=function(){return{sprintf:i,vsprintf:o}}.call(t,n,t,e))&&(e.exports=r))}()},function(e,t,n){"use strict";function r(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(r=t[n].trim(),0===r.indexOf("plural="))return r.substr(7)}function i(e,t){var n;this.data=e,this.pluralForms={},this.options={};for(n in a)this.options[n]=void 0!==t&&n in t?t[n]:a[n]}t.a=i;var o=n(215),a={contextDelimiter:"",onMissingKey:null};i.prototype.getPluralForm=function(e,t){var n,i,a,s=this.pluralForms[e];return s||(n=this.data[e][""],a=n["Plural-Forms"]||n["plural-forms"]||n.plural_forms,"function"!=typeof a&&(i=r(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),a=Object(o.a)(i)),s=this.pluralForms[e]=a),s(t)},i.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,s;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(s=this.data[e][a])&&s[o]?s[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},function(e,t,n){"use strict";function r(e){var t=Object(i.a)(e);return function(e){return+t({n:e})}}t.a=r;var i=n(216)},function(e,t,n){"use strict";function r(e){var t=Object(i.a)(e);return function(e){return Object(o.a)(t,e)}}t.a=r;var i=n(217),o=n(218)},function(e,t,n){"use strict";function r(e){for(var t,n,r,l,c=[],u=[];t=e.match(s);){for(n=t[0],r=e.substr(0,t.index).trim(),r&&c.push(r);l=u.pop();){if(a[n]){if(a[n][0]===l){n=a[n][1]||n;break}}else if(o.indexOf(l)>=0||i[l]<i[n]){u.push(l);break}c.push(l)}a[n]||u.push(n),e=e.substr(t.index+n.length)}return e=e.trim(),e&&c.push(e),c.concat(u.reverse())}t.a=r;var i,o,a,s;i={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},o=["(","?"],a={")":["("],":":["?","?:"]},s=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},function(e,t,n){"use strict";function r(e,t){var n,r,o,a,s,l,c=[];for(n=0;n<e.length;n++){if(s=e[n],a=i[s]){for(r=a.length,o=Array(r);r--;)o[r]=c.pop();try{l=a.apply(null,o)}catch(e){return e}}else l=t.hasOwnProperty(s)?t[s]:+s;c.push(l)}return c[0]}t.a=r;var i={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}}},function(e,t,n){"use strict";var r=n(85),i=n(220),o=Object(r.a)(void 0,void 0,i.a);o.getLocaleData.bind(o),o.setLocaleData.bind(o),o.resetLocaleData.bind(o),o.subscribe.bind(o),o.__.bind(o),o._x.bind(o),o._n.bind(o),o._nx.bind(o),o.isRTL.bind(o),o.hasTranslation.bind(o)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(221),i=Object(r.a)();i.addAction,i.addFilter,i.removeAction,i.removeFilter,i.hasAction,i.hasFilter,i.removeAllActions,i.removeAllFilters,i.doAction,i.applyFilters,i.currentAction,i.currentFilter,i.doingAction,i.doingFilter,i.didAction,i.didFilter,i.actions,i.filters},function(e,t,n){"use strict";function r(){return new p}var i=n(222),o=n(223),a=n(224),s=n(225),l=n(226),c=n(227),u=n(228),d=n(229),p=function e(){Object(i.a)(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=Object(o.a)(this,"actions"),this.addFilter=Object(o.a)(this,"filters"),this.removeAction=Object(a.a)(this,"actions"),this.removeFilter=Object(a.a)(this,"filters"),this.hasAction=Object(s.a)(this,"actions"),this.hasFilter=Object(s.a)(this,"filters"),this.removeAllActions=Object(a.a)(this,"actions",!0),this.removeAllFilters=Object(a.a)(this,"filters",!0),this.doAction=Object(l.a)(this,"actions"),this.applyFilters=Object(l.a)(this,"filters",!0),this.currentAction=Object(c.a)(this,"actions"),this.currentFilter=Object(c.a)(this,"filters"),this.doingAction=Object(u.a)(this,"actions"),this.doingFilter=Object(u.a)(this,"filters"),this.didAction=Object(d.a)(this,"actions"),this.didFilter=Object(d.a)(this,"filters")};t.a=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.a=r},function(e,t,n){"use strict";function r(e,t){return function(n,r,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,l=e[t];if(Object(o.a)(n)&&Object(i.a)(r)){if("function"!=typeof a)return void console.error("The hook callback must be a function.");if("number"!=typeof s)return void console.error("If specified, the hook priority must be a number.");var c={callback:a,priority:s,namespace:r};if(l[n]){var u,d=l[n].handlers;for(u=d.length;u>0&&!(s>=d[u-1].priority);u--);u===d.length?d[u]=c:d.splice(u,0,c),l.__current.forEach(function(e){e.name===n&&e.currentIndex>=u&&e.currentIndex++})}else l[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,a,s)}}}var i=n(86),o=n(50);t.a=r},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r,a){var s=e[t];if(Object(o.a)(r)&&(n||Object(i.a)(a))){if(!s[r])return 0;var l=0;if(n)l=s[r].handlers.length,s[r]={runs:s[r].runs,handlers:[]};else for(var c=s[r].handlers,u=c.length-1;u>=0;u--)!function(e){c[e].namespace===a&&(c.splice(e,1),l++,s.__current.forEach(function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--}))}(u);return"hookRemoved"!==r&&e.doAction("hookRemoved",r,a),l}}}var i=n(86),o=n(50);t.a=r},function(e,t,n){"use strict";function r(e,t){return function(n,r){var i=e[t];return void 0!==r?n in i&&i[n].handlers.some(function(e){return e.namespace===r}):n in i}}t.a=r},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var i=e[t];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;for(var o=i[r].handlers,a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];if(!o||!o.length)return n?s[0]:void 0;var c={name:r,currentIndex:0};for(i.__current.push(c);c.currentIndex<o.length;){var u=o[c.currentIndex],d=u.callback.apply(null,s);n&&(s[0]=d),c.currentIndex++}return i.__current.pop(),n?s[0]:void 0}}n(79);t.a=r},function(e,t,n){"use strict";function r(e,t){return function(){var n,r,i=e[t];return null!==(n=null===(r=i.__current[i.__current.length-1])||void 0===r?void 0:r.name)&&void 0!==n?n:null}}t.a=r},function(e,t,n){"use strict";function r(e,t){return function(n){var r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}}t.a=r},function(e,t,n){"use strict";function r(e,t){return function(n){var r=e[t];if(Object(i.a)(n))return r[n]&&r[n].runs?r[n].runs:0}}var i=n(50);t.a=r}]);
assets/images/index.php CHANGED
@@ -1,4 +1,4 @@
1
  <?php
2
  //Nothing to see here
3
 
4
- header( 'HTTP/1.0 403 Forbidden' );
1
  <?php
2
  //Nothing to see here
3
 
4
+ header( 'HTTP/1.0 403 Forbidden' );
assets/images/plugin-edd.svg CHANGED
@@ -1,5 +1,11 @@
1
  <svg width="28" height="28" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M54.6439 9.35605C48.8466 3.55874 40.8682 0 32.0287 0C23.1892 0 15.1534 3.55874 9.35605 9.35605C3.55874 15.1534 0 23.1892 0 32.0287C0 40.8682 3.55874 48.8466 9.35605 54.6439C15.1534 60.4413 23.1318 64 31.9713 64C40.8108 64 48.7892 60.4413 54.5865 54.6439C60.3839 48.8466 63.9426 40.8682 63.9426 32.0287C63.9426 23.1892 60.4413 15.1534 54.6439 9.35605ZM53.5534 53.5534C48.0431 59.0637 40.409 62.5076 31.9713 62.5076C23.5336 62.5076 15.8996 59.1211 10.3892 53.5534C4.87892 47.9856 1.49238 40.409 1.49238 32.0287C1.49238 23.591 4.93632 15.957 10.4466 10.4466C15.957 4.93632 23.591 1.49238 32.0287 1.49238C40.4664 1.49238 48.1005 4.93632 53.6108 10.4466C59.1211 15.957 62.565 23.591 62.565 32.0287C62.5076 40.409 59.1211 48.043 53.5534 53.5534Z" fill="#2794DA"/>
3
- <path d="M59.5228 31.7417C59.408 16.6457 47.1246 4.47713 32.0287 4.47713C16.9327 4.47713 4.6493 16.6457 4.4771 31.7417L17.1049 19.1139L21.3524 23.3614L12.1112 32.6027H51.9462L42.7049 23.3614L46.9524 19.1139L59.5228 31.7417ZM32.0287 27.035L20.2619 14.6942H28.0681V8.60987C28.0681 7.06009 29.8475 5.73991 32.0287 5.73991C34.2098 5.73991 35.9892 7.00269 35.9892 8.60987V14.6942H43.7955L32.0287 27.035Z" fill="#2794DA"/>
4
- <path d="M35.4153 47.5265C34.7839 47.1247 33.9803 46.7803 33.0619 46.4359C32.3157 46.2063 31.7417 45.9193 31.2825 45.6897C30.8233 45.4601 30.4789 45.2305 30.2493 44.9435C30.0197 44.6565 29.9049 44.3695 29.9049 43.9677C29.9049 43.6807 30.0197 43.3937 30.1919 43.1067C30.3641 42.8197 30.6511 42.5901 31.0529 42.4753C31.4547 42.3031 31.9713 42.1883 32.6027 42.1883C33.1193 42.1883 33.5785 42.2457 34.0377 42.3031C34.4395 42.3605 34.8413 42.4753 35.1283 42.5901C35.4727 42.7049 35.7023 42.8197 35.9318 42.8771L36.6206 40.7534C36.2188 40.5238 35.6449 40.3516 35.0135 40.2368C34.4395 40.122 33.8081 40.0646 33.1193 40.0072V37.7686H31.1677V40.122C30.8807 40.1794 30.5363 40.2368 30.2493 40.3516C29.5031 40.5812 28.9292 40.8682 28.4126 41.27C27.896 41.6717 27.4942 42.0735 27.2646 42.5901C26.9776 43.1067 26.8628 43.6807 26.8628 44.2547C26.8628 44.9435 27.035 45.5749 27.4368 46.0915C27.7812 46.6081 28.2978 47.0673 28.9866 47.4691C29.6753 47.8708 30.4215 48.2152 31.3973 48.5022C32.0861 48.7318 32.6601 48.9614 33.0619 49.191C33.4637 49.4206 33.8081 49.7076 33.9803 49.9946C34.1525 50.2816 34.2673 50.626 34.2673 50.9704C34.2673 51.3722 34.1525 51.7166 33.9229 52.0036C33.6933 52.2906 33.3489 52.5202 32.8897 52.6924C32.4305 52.8646 31.9139 52.922 31.2825 52.922C30.7659 52.922 30.2493 52.8646 29.7901 52.8072C29.331 52.6924 28.8718 52.5776 28.4126 52.4628C28.0108 52.348 27.609 52.1758 27.2646 52.0036L26.5758 54.2421C26.8628 54.4143 27.2646 54.5865 27.7238 54.7013C28.183 54.8161 28.6996 54.9309 29.2736 55.0457C29.8475 55.1031 30.4215 55.1605 30.9955 55.1605H31.1103V57.4565H33.0619V54.9883C33.2915 54.9309 33.5211 54.8735 33.7507 54.8161C34.5543 54.5865 35.1857 54.2422 35.7023 53.8404C36.2188 53.4386 36.6206 52.9794 36.8502 52.4054C37.0798 51.8888 37.252 51.3148 37.252 50.6834C37.252 49.9946 37.0798 49.3632 36.7928 48.8466C36.5058 48.3874 36.0466 47.9282 35.4153 47.5265Z" fill="#2794DA"/>
 
 
 
 
 
 
5
  </svg>
1
  <svg width="28" height="28" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M54.6439 9.35605C48.8466 3.55874 40.8682 0 32.0287 0C23.1892 0 15.1534 3.55874 9.35605 9.35605C3.55874 15.1534 0 23.1892 0 32.0287C0 40.8682 3.55874 48.8466 9.35605 54.6439C15.1534 60.4413 23.1318 64 31.9713 64C40.8108 64 48.7892 60.4413 54.5865 54.6439C60.3839 48.8466 63.9426 40.8682 63.9426 32.0287C63.9426 23.1892 60.4413 15.1534 54.6439 9.35605ZM53.5534 53.5534C48.0431 59.0637 40.409 62.5076 31.9713 62.5076C23.5336 62.5076 15.8996 59.1211 10.3892 53.5534C4.87892 47.9856 1.49238 40.409 1.49238 32.0287C1.49238 23.591 4.93632 15.957 10.4466 10.4466C15.957 4.93632 23.591 1.49238 32.0287 1.49238C40.4664 1.49238 48.1005 4.93632 53.6108 10.4466C59.1211 15.957 62.565 23.591 62.565 32.0287C62.5076 40.409 59.1211 48.043 53.5534 53.5534Z"
4
+ fill="#2794DA"/>
5
+ <path
6
+ d="M59.5228 31.7417C59.408 16.6457 47.1246 4.47713 32.0287 4.47713C16.9327 4.47713 4.6493 16.6457 4.4771 31.7417L17.1049 19.1139L21.3524 23.3614L12.1112 32.6027H51.9462L42.7049 23.3614L46.9524 19.1139L59.5228 31.7417ZM32.0287 27.035L20.2619 14.6942H28.0681V8.60987C28.0681 7.06009 29.8475 5.73991 32.0287 5.73991C34.2098 5.73991 35.9892 7.00269 35.9892 8.60987V14.6942H43.7955L32.0287 27.035Z"
7
+ fill="#2794DA"/>
8
+ <path
9
+ d="M35.4153 47.5265C34.7839 47.1247 33.9803 46.7803 33.0619 46.4359C32.3157 46.2063 31.7417 45.9193 31.2825 45.6897C30.8233 45.4601 30.4789 45.2305 30.2493 44.9435C30.0197 44.6565 29.9049 44.3695 29.9049 43.9677C29.9049 43.6807 30.0197 43.3937 30.1919 43.1067C30.3641 42.8197 30.6511 42.5901 31.0529 42.4753C31.4547 42.3031 31.9713 42.1883 32.6027 42.1883C33.1193 42.1883 33.5785 42.2457 34.0377 42.3031C34.4395 42.3605 34.8413 42.4753 35.1283 42.5901C35.4727 42.7049 35.7023 42.8197 35.9318 42.8771L36.6206 40.7534C36.2188 40.5238 35.6449 40.3516 35.0135 40.2368C34.4395 40.122 33.8081 40.0646 33.1193 40.0072V37.7686H31.1677V40.122C30.8807 40.1794 30.5363 40.2368 30.2493 40.3516C29.5031 40.5812 28.9292 40.8682 28.4126 41.27C27.896 41.6717 27.4942 42.0735 27.2646 42.5901C26.9776 43.1067 26.8628 43.6807 26.8628 44.2547C26.8628 44.9435 27.035 45.5749 27.4368 46.0915C27.7812 46.6081 28.2978 47.0673 28.9866 47.4691C29.6753 47.8708 30.4215 48.2152 31.3973 48.5022C32.0861 48.7318 32.6601 48.9614 33.0619 49.191C33.4637 49.4206 33.8081 49.7076 33.9803 49.9946C34.1525 50.2816 34.2673 50.626 34.2673 50.9704C34.2673 51.3722 34.1525 51.7166 33.9229 52.0036C33.6933 52.2906 33.3489 52.5202 32.8897 52.6924C32.4305 52.8646 31.9139 52.922 31.2825 52.922C30.7659 52.922 30.2493 52.8646 29.7901 52.8072C29.331 52.6924 28.8718 52.5776 28.4126 52.4628C28.0108 52.348 27.609 52.1758 27.2646 52.0036L26.5758 54.2421C26.8628 54.4143 27.2646 54.5865 27.7238 54.7013C28.183 54.8161 28.6996 54.9309 29.2736 55.0457C29.8475 55.1031 30.4215 55.1605 30.9955 55.1605H31.1103V57.4565H33.0619V54.9883C33.2915 54.9309 33.5211 54.8735 33.7507 54.8161C34.5543 54.5865 35.1857 54.2422 35.7023 53.8404C36.2188 53.4386 36.6206 52.9794 36.8502 52.4054C37.0798 51.8888 37.252 51.3148 37.252 50.6834C37.252 49.9946 37.0798 49.3632 36.7928 48.8466C36.5058 48.3874 36.0466 47.9282 35.4153 47.5265Z"
10
+ fill="#2794DA"/>
11
  </svg>
assets/images/plugin-pushengage.svg CHANGED
@@ -1,19 +1,52 @@
1
  <svg width="470" height="74" viewBox="0 0 470 74" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M73.1 30.9C73 40.3 70.2 47.8 64.6 54.2C63.6 55.4 62.4 56.5 61.2 57.5C60.1 58.5 58.5 58.5 57.6 57.5C56.7 56.4 56.9 54.9 58.1 53.9C60.6 51.8 62.6 49.4 64.2 46.6C66.6 42.5 68 38.1 68.2 33.3C68.6 25 66 17.9 60.5 11.8C59.7 11 58.8 10.2 58 9.39998C56.9 8.39998 56.7 6.79998 57.6 5.79998C58.5 4.69998 60 4.69998 61.2 5.79998C67.6 11.3 71.4 18.3 72.8 26.6C73 28.3 73 30 73.1 30.9Z" fill="#3B43FF"/>
3
- <path d="M5 31.7C5.2 21.3 9.1 12.6 17 5.69998C18.1 4.69998 19.7 4.79998 20.5 5.79998C21.4 6.79998 21.2 8.39998 20.1 9.29998C14.7 14 11.3 19.8 10.2 26.9C8.7 36.2 11.2 44.4 17.5 51.4C18.3 52.3 19.3 53.2 20.2 54C21.3 55 21.4 56.5 20.5 57.5C19.6 58.5 18.1 58.5 17 57.6C10 51.6 6 43.9 5.2 34.7C5.2 34.2 5.1 33.7 5.1 33.2C5 32.7 5 32.2 5 31.7Z" fill="#3B43FF"/>
4
- <path d="M14.7 31.6C14.9 24.2 17.6 18 23.3 13.1C24.5 12.1 25.8 12.2 26.8 13.3C27.7 14.3 27.6 15.6 26.4 16.7C23.7 19.2 21.5 22.1 20.4 25.7C18.3 33 19.8 39.5 25 45.1C25.5 45.7 26.1 46.2 26.6 46.8C27.5 47.7 27.6 49.1 26.8 50C26 51 24.4 51.2 23.5 50.3C22 48.9 20.6 47.5 19.3 45.9C16.6 42.3 15.1 38.2 14.8 33.6C14.8 33.3 14.7 33 14.7 32.6C14.7 32.3 14.7 32 14.7 31.6Z" fill="#3B43FF"/>
5
- <path d="M63.4 31.7C63.2 38.9 60.5 45 55.1 49.9C54.3 50.7 53.3 51.1 52.2 50.7C50.6 50 50.2 48.2 51.4 46.8C52.8 45.2 54.4 43.7 55.6 41.9C60.4 34.5 59.3 24.4 53 18.1C52.5 17.6 52 17.1 51.5 16.6C50.6 15.7 50.5 14.3 51.3 13.4C52.2 12.4 53.6 12.2 54.7 13C56.7 14.6 58.4 16.5 59.7 18.7C61.8 22.1 63.1 25.8 63.3 29.8C63.3 30.4 63.3 31 63.4 31.7Z" fill="#3B43FF"/>
6
- <path d="M53.5 31.1C53.5 36.1 51.8 39.6 48.6 42.6C47.5 43.7 45.9 43.7 45 42.6C44.1 41.6 44.1 40.1 45.3 39.1C47.3 37.2 48.6 34.9 48.7 32.1C48.8 29.4 48 27.1 46.2 25.1C45.9 24.7 45.5 24.4 45.2 24.1C44.2 23.1 44.1 21.7 45 20.7C45.9 19.7 47.4 19.6 48.5 20.6C50.2 22.1 51.5 23.9 52.4 26C53.2 27.8 53.6 29.7 53.5 31.1Z" fill="#3B43FF"/>
7
- <path d="M30.9 19.9C32.3 19.9 33 20.4 33.5 21.4C34 22.4 33.7 23.4 32.9 24.1C31.6 25.4 30.5 26.7 29.9 28.5C28.7 32.3 29.5 35.6 32.1 38.5C32.3 38.8 32.6 39 32.9 39.3C33.9 40.4 34 41.8 33 42.8C32.1 43.7 30.6 43.8 29.6 42.9C27.1 40.7 25.4 38.1 24.9 34.8C23.9 29.4 25.4 24.7 29.4 21C29.9 20.3 30.6 20.1 30.9 19.9Z" fill="#3B43FF"/>
8
- <path d="M38.9 36.4C36.2 36.4 34.1 34.3 34.1 31.6C34.1 28.9 36.3 26.8 39 26.8C41.7 26.8 43.8 28.9 43.8 31.6C43.8 34.4 41.7 36.4 38.9 36.4Z" fill="#3B43FF"/>
9
- <path d="M89.752 56H100.624V38.648C101.632 38.792 102.928 38.864 104.368 38.864C110.848 38.864 116.392 37.28 120.136 33.752C123.016 31.016 124.6 26.984 124.6 22.232C124.6 17.48 122.512 13.448 119.416 11C116.176 8.40801 111.352 7.11201 104.584 7.11201C97.888 7.11201 93.136 7.54401 89.752 8.12001V56ZM100.624 15.824C101.416 15.608 102.928 15.392 105.16 15.392C110.632 15.392 113.728 18.056 113.728 22.52C113.728 27.488 110.128 30.44 104.296 30.44C102.712 30.44 101.56 30.368 100.624 30.152V15.824Z" fill="#191A35"/>
10
- <path d="M162.277 20.792H151.261V41.744C151.261 42.608 151.189 43.472 150.901 44.12C150.181 45.848 148.453 47.936 145.429 47.936C141.613 47.936 139.957 44.84 139.957 39.728V20.792H128.941V41.456C128.941 52.328 134.197 56.792 141.325 56.792C147.661 56.792 150.973 53.192 152.341 51.032H152.557L153.061 56H162.565C162.421 53.048 162.277 49.304 162.277 44.696V20.792Z" fill="#191A35"/>
11
- <path d="M167.605 54.272C170.269 55.712 174.373 56.72 178.981 56.72C189.061 56.72 194.245 51.896 194.245 45.344C194.173 40.16 191.365 36.776 184.669 34.472C180.349 32.96 178.981 32.096 178.981 30.44C178.981 28.64 180.493 27.56 183.157 27.56C186.181 27.56 189.205 28.712 190.789 29.576L192.733 22.016C190.573 20.936 186.901 20 182.797 20C174.085 20 168.469 24.968 168.469 31.52C168.397 35.696 171.205 39.656 178.477 42.104C182.581 43.472 183.661 44.336 183.661 46.136C183.661 47.936 182.293 49.088 178.981 49.088C175.741 49.088 171.565 47.648 169.549 46.424L167.605 54.272Z" fill="#191A35"/>
12
- <path d="M199.4 56H210.344V35.12C210.344 34.328 210.416 33.392 210.704 32.672C211.496 30.728 213.296 28.856 216.176 28.856C220.28 28.856 221.864 32.024 221.864 36.632V56H232.808V35.408C232.808 24.824 227.48 20 220.496 20C218.48 20 216.392 20.504 214.808 21.368C213.08 22.304 211.64 23.456 210.488 24.968H210.344V4.88H199.4V56Z" fill="#191A35"/>
13
- <path d="M269.38 26.552H251.524V16.472H270.46V7.47201H240.508V56H271.468V47H251.524V35.48H269.38V26.552Z" fill="#191A35"/>
14
- <path d="M277.169 56H288.113V35.696C288.113 34.688 288.257 33.608 288.545 32.96C289.265 30.944 291.065 28.856 294.089 28.856C298.049 28.856 299.633 31.952 299.633 36.488V56H310.577V35.12C310.577 24.752 305.177 20 297.977 20C292.145 20 288.545 23.384 287.105 25.616H286.889L286.385 20.792H276.881C277.025 23.888 277.169 27.632 277.169 32.024V56Z" fill="#191A35"/>
15
- <path d="M342.036 20.792L341.676 24.968H341.532C339.732 22.088 336.708 20 331.884 20C323.244 20 315.9 27.2 315.9 38.504C315.9 48.656 322.092 55.712 330.804 55.712C334.836 55.712 338.22 54.056 340.308 51.104H340.452V53.408C340.452 59.888 336.492 62.696 331.308 62.696C327.204 62.696 323.316 61.328 321.084 60.032L318.924 68.312C322.092 70.112 326.988 71.048 331.596 71.048C336.78 71.048 342.036 70.04 345.924 66.728C349.884 63.2 351.252 57.656 351.252 50.888V31.232C351.252 25.976 351.396 23.024 351.54 20.792H342.036ZM340.308 40.304C340.308 41.24 340.236 42.392 339.948 43.184C339.228 45.776 336.996 47.648 334.188 47.648C329.58 47.648 326.988 43.544 326.988 38.288C326.988 31.88 330.228 28.28 334.188 28.28C337.212 28.28 339.3 30.224 340.092 33.104C340.236 33.68 340.308 34.4 340.308 35.12V40.304Z" fill="#191A35"/>
16
- <path d="M388.473 56C388.113 54.056 387.969 50.816 387.969 47.432V35.192C387.969 26.912 384.225 20 372.489 20C366.081 20 361.257 21.728 358.809 23.096L360.825 30.152C363.129 28.712 366.945 27.488 370.545 27.488C375.945 27.488 376.953 30.152 376.953 32.024V32.528C364.497 32.456 356.289 36.848 356.289 45.992C356.289 51.608 360.537 56.792 367.665 56.792C371.841 56.792 375.441 55.28 377.745 52.472H377.961L378.609 56H388.473ZM377.313 43.184C377.313 43.832 377.241 44.48 377.097 45.056C376.377 47.288 374.145 49.088 371.409 49.088C368.961 49.088 367.089 47.72 367.089 44.912C367.089 40.664 371.553 39.296 377.313 39.368V43.184Z" fill="#191A35"/>
17
- <path d="M419.312 20.792L418.952 24.968H418.808C417.008 22.088 413.984 20 409.16 20C400.52 20 393.176 27.2 393.176 38.504C393.176 48.656 399.368 55.712 408.08 55.712C412.112 55.712 415.496 54.056 417.584 51.104H417.728V53.408C417.728 59.888 413.768 62.696 408.584 62.696C404.48 62.696 400.592 61.328 398.36 60.032L396.2 68.312C399.368 70.112 404.264 71.048 408.872 71.048C414.056 71.048 419.312 70.04 423.2 66.728C427.16 63.2 428.528 57.656 428.528 50.888V31.232C428.528 25.976 428.672 23.024 428.816 20.792H419.312ZM417.584 40.304C417.584 41.24 417.512 42.392 417.224 43.184C416.504 45.776 414.272 47.648 411.464 47.648C406.856 47.648 404.264 43.544 404.264 38.288C404.264 31.88 407.504 28.28 411.464 28.28C414.488 28.28 416.576 30.224 417.368 33.104C417.512 33.68 417.584 34.4 417.584 35.12V40.304Z" fill="#191A35"/>
18
- <path d="M466.973 41.888C467.117 41.096 467.333 39.44 467.333 37.568C467.333 28.856 463.013 20 451.637 20C439.397 20 433.853 29.864 433.853 38.792C433.853 49.808 440.693 56.72 452.645 56.72C457.397 56.72 461.789 56 465.389 54.56L463.949 47.144C460.997 48.08 457.973 48.584 454.229 48.584C449.117 48.584 444.653 46.424 444.293 41.888H466.973ZM444.221 34.4C444.509 31.448 446.381 27.272 450.989 27.272C456.029 27.272 457.181 31.736 457.181 34.4H444.221Z" fill="#191A35"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </svg>
1
  <svg width="470" height="74" viewBox="0 0 470 74" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M73.1 30.9C73 40.3 70.2 47.8 64.6 54.2C63.6 55.4 62.4 56.5 61.2 57.5C60.1 58.5 58.5 58.5 57.6 57.5C56.7 56.4 56.9 54.9 58.1 53.9C60.6 51.8 62.6 49.4 64.2 46.6C66.6 42.5 68 38.1 68.2 33.3C68.6 25 66 17.9 60.5 11.8C59.7 11 58.8 10.2 58 9.39998C56.9 8.39998 56.7 6.79998 57.6 5.79998C58.5 4.69998 60 4.69998 61.2 5.79998C67.6 11.3 71.4 18.3 72.8 26.6C73 28.3 73 30 73.1 30.9Z"
4
+ fill="#3B43FF"/>
5
+ <path
6
+ d="M5 31.7C5.2 21.3 9.1 12.6 17 5.69998C18.1 4.69998 19.7 4.79998 20.5 5.79998C21.4 6.79998 21.2 8.39998 20.1 9.29998C14.7 14 11.3 19.8 10.2 26.9C8.7 36.2 11.2 44.4 17.5 51.4C18.3 52.3 19.3 53.2 20.2 54C21.3 55 21.4 56.5 20.5 57.5C19.6 58.5 18.1 58.5 17 57.6C10 51.6 6 43.9 5.2 34.7C5.2 34.2 5.1 33.7 5.1 33.2C5 32.7 5 32.2 5 31.7Z"
7
+ fill="#3B43FF"/>
8
+ <path
9
+ d="M14.7 31.6C14.9 24.2 17.6 18 23.3 13.1C24.5 12.1 25.8 12.2 26.8 13.3C27.7 14.3 27.6 15.6 26.4 16.7C23.7 19.2 21.5 22.1 20.4 25.7C18.3 33 19.8 39.5 25 45.1C25.5 45.7 26.1 46.2 26.6 46.8C27.5 47.7 27.6 49.1 26.8 50C26 51 24.4 51.2 23.5 50.3C22 48.9 20.6 47.5 19.3 45.9C16.6 42.3 15.1 38.2 14.8 33.6C14.8 33.3 14.7 33 14.7 32.6C14.7 32.3 14.7 32 14.7 31.6Z"
10
+ fill="#3B43FF"/>
11
+ <path
12
+ d="M63.4 31.7C63.2 38.9 60.5 45 55.1 49.9C54.3 50.7 53.3 51.1 52.2 50.7C50.6 50 50.2 48.2 51.4 46.8C52.8 45.2 54.4 43.7 55.6 41.9C60.4 34.5 59.3 24.4 53 18.1C52.5 17.6 52 17.1 51.5 16.6C50.6 15.7 50.5 14.3 51.3 13.4C52.2 12.4 53.6 12.2 54.7 13C56.7 14.6 58.4 16.5 59.7 18.7C61.8 22.1 63.1 25.8 63.3 29.8C63.3 30.4 63.3 31 63.4 31.7Z"
13
+ fill="#3B43FF"/>
14
+ <path
15
+ d="M53.5 31.1C53.5 36.1 51.8 39.6 48.6 42.6C47.5 43.7 45.9 43.7 45 42.6C44.1 41.6 44.1 40.1 45.3 39.1C47.3 37.2 48.6 34.9 48.7 32.1C48.8 29.4 48 27.1 46.2 25.1C45.9 24.7 45.5 24.4 45.2 24.1C44.2 23.1 44.1 21.7 45 20.7C45.9 19.7 47.4 19.6 48.5 20.6C50.2 22.1 51.5 23.9 52.4 26C53.2 27.8 53.6 29.7 53.5 31.1Z"
16
+ fill="#3B43FF"/>
17
+ <path
18
+ d="M30.9 19.9C32.3 19.9 33 20.4 33.5 21.4C34 22.4 33.7 23.4 32.9 24.1C31.6 25.4 30.5 26.7 29.9 28.5C28.7 32.3 29.5 35.6 32.1 38.5C32.3 38.8 32.6 39 32.9 39.3C33.9 40.4 34 41.8 33 42.8C32.1 43.7 30.6 43.8 29.6 42.9C27.1 40.7 25.4 38.1 24.9 34.8C23.9 29.4 25.4 24.7 29.4 21C29.9 20.3 30.6 20.1 30.9 19.9Z"
19
+ fill="#3B43FF"/>
20
+ <path
21
+ d="M38.9 36.4C36.2 36.4 34.1 34.3 34.1 31.6C34.1 28.9 36.3 26.8 39 26.8C41.7 26.8 43.8 28.9 43.8 31.6C43.8 34.4 41.7 36.4 38.9 36.4Z"
22
+ fill="#3B43FF"/>
23
+ <path
24
+ d="M89.752 56H100.624V38.648C101.632 38.792 102.928 38.864 104.368 38.864C110.848 38.864 116.392 37.28 120.136 33.752C123.016 31.016 124.6 26.984 124.6 22.232C124.6 17.48 122.512 13.448 119.416 11C116.176 8.40801 111.352 7.11201 104.584 7.11201C97.888 7.11201 93.136 7.54401 89.752 8.12001V56ZM100.624 15.824C101.416 15.608 102.928 15.392 105.16 15.392C110.632 15.392 113.728 18.056 113.728 22.52C113.728 27.488 110.128 30.44 104.296 30.44C102.712 30.44 101.56 30.368 100.624 30.152V15.824Z"
25
+ fill="#191A35"/>
26
+ <path
27
+ d="M162.277 20.792H151.261V41.744C151.261 42.608 151.189 43.472 150.901 44.12C150.181 45.848 148.453 47.936 145.429 47.936C141.613 47.936 139.957 44.84 139.957 39.728V20.792H128.941V41.456C128.941 52.328 134.197 56.792 141.325 56.792C147.661 56.792 150.973 53.192 152.341 51.032H152.557L153.061 56H162.565C162.421 53.048 162.277 49.304 162.277 44.696V20.792Z"
28
+ fill="#191A35"/>
29
+ <path
30
+ d="M167.605 54.272C170.269 55.712 174.373 56.72 178.981 56.72C189.061 56.72 194.245 51.896 194.245 45.344C194.173 40.16 191.365 36.776 184.669 34.472C180.349 32.96 178.981 32.096 178.981 30.44C178.981 28.64 180.493 27.56 183.157 27.56C186.181 27.56 189.205 28.712 190.789 29.576L192.733 22.016C190.573 20.936 186.901 20 182.797 20C174.085 20 168.469 24.968 168.469 31.52C168.397 35.696 171.205 39.656 178.477 42.104C182.581 43.472 183.661 44.336 183.661 46.136C183.661 47.936 182.293 49.088 178.981 49.088C175.741 49.088 171.565 47.648 169.549 46.424L167.605 54.272Z"
31
+ fill="#191A35"/>
32
+ <path
33
+ d="M199.4 56H210.344V35.12C210.344 34.328 210.416 33.392 210.704 32.672C211.496 30.728 213.296 28.856 216.176 28.856C220.28 28.856 221.864 32.024 221.864 36.632V56H232.808V35.408C232.808 24.824 227.48 20 220.496 20C218.48 20 216.392 20.504 214.808 21.368C213.08 22.304 211.64 23.456 210.488 24.968H210.344V4.88H199.4V56Z"
34
+ fill="#191A35"/>
35
+ <path d="M269.38 26.552H251.524V16.472H270.46V7.47201H240.508V56H271.468V47H251.524V35.48H269.38V26.552Z"
36
+ fill="#191A35"/>
37
+ <path
38
+ d="M277.169 56H288.113V35.696C288.113 34.688 288.257 33.608 288.545 32.96C289.265 30.944 291.065 28.856 294.089 28.856C298.049 28.856 299.633 31.952 299.633 36.488V56H310.577V35.12C310.577 24.752 305.177 20 297.977 20C292.145 20 288.545 23.384 287.105 25.616H286.889L286.385 20.792H276.881C277.025 23.888 277.169 27.632 277.169 32.024V56Z"
39
+ fill="#191A35"/>
40
+ <path
41
+ d="M342.036 20.792L341.676 24.968H341.532C339.732 22.088 336.708 20 331.884 20C323.244 20 315.9 27.2 315.9 38.504C315.9 48.656 322.092 55.712 330.804 55.712C334.836 55.712 338.22 54.056 340.308 51.104H340.452V53.408C340.452 59.888 336.492 62.696 331.308 62.696C327.204 62.696 323.316 61.328 321.084 60.032L318.924 68.312C322.092 70.112 326.988 71.048 331.596 71.048C336.78 71.048 342.036 70.04 345.924 66.728C349.884 63.2 351.252 57.656 351.252 50.888V31.232C351.252 25.976 351.396 23.024 351.54 20.792H342.036ZM340.308 40.304C340.308 41.24 340.236 42.392 339.948 43.184C339.228 45.776 336.996 47.648 334.188 47.648C329.58 47.648 326.988 43.544 326.988 38.288C326.988 31.88 330.228 28.28 334.188 28.28C337.212 28.28 339.3 30.224 340.092 33.104C340.236 33.68 340.308 34.4 340.308 35.12V40.304Z"
42
+ fill="#191A35"/>
43
+ <path
44
+ d="M388.473 56C388.113 54.056 387.969 50.816 387.969 47.432V35.192C387.969 26.912 384.225 20 372.489 20C366.081 20 361.257 21.728 358.809 23.096L360.825 30.152C363.129 28.712 366.945 27.488 370.545 27.488C375.945 27.488 376.953 30.152 376.953 32.024V32.528C364.497 32.456 356.289 36.848 356.289 45.992C356.289 51.608 360.537 56.792 367.665 56.792C371.841 56.792 375.441 55.28 377.745 52.472H377.961L378.609 56H388.473ZM377.313 43.184C377.313 43.832 377.241 44.48 377.097 45.056C376.377 47.288 374.145 49.088 371.409 49.088C368.961 49.088 367.089 47.72 367.089 44.912C367.089 40.664 371.553 39.296 377.313 39.368V43.184Z"
45
+ fill="#191A35"/>
46
+ <path
47
+ d="M419.312 20.792L418.952 24.968H418.808C417.008 22.088 413.984 20 409.16 20C400.52 20 393.176 27.2 393.176 38.504C393.176 48.656 399.368 55.712 408.08 55.712C412.112 55.712 415.496 54.056 417.584 51.104H417.728V53.408C417.728 59.888 413.768 62.696 408.584 62.696C404.48 62.696 400.592 61.328 398.36 60.032L396.2 68.312C399.368 70.112 404.264 71.048 408.872 71.048C414.056 71.048 419.312 70.04 423.2 66.728C427.16 63.2 428.528 57.656 428.528 50.888V31.232C428.528 25.976 428.672 23.024 428.816 20.792H419.312ZM417.584 40.304C417.584 41.24 417.512 42.392 417.224 43.184C416.504 45.776 414.272 47.648 411.464 47.648C406.856 47.648 404.264 43.544 404.264 38.288C404.264 31.88 407.504 28.28 411.464 28.28C414.488 28.28 416.576 30.224 417.368 33.104C417.512 33.68 417.584 34.4 417.584 35.12V40.304Z"
48
+ fill="#191A35"/>
49
+ <path
50
+ d="M466.973 41.888C467.117 41.096 467.333 39.44 467.333 37.568C467.333 28.856 463.013 20 451.637 20C439.397 20 433.853 29.864 433.853 38.792C433.853 49.808 440.693 56.72 452.645 56.72C457.397 56.72 461.789 56 465.389 54.56L463.949 47.144C460.997 48.08 457.973 48.584 454.229 48.584C449.117 48.584 444.653 46.424 444.293 41.888H466.973ZM444.221 34.4C444.509 31.448 446.381 27.272 450.989 27.272C456.029 27.272 457.181 31.736 457.181 34.4H444.221Z"
51
+ fill="#191A35"/>
52
  </svg>
assets/images/restricted.svg CHANGED
@@ -1,3 +1,5 @@
1
- <svg width="10" height="14" viewBox="0 0 10 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M9.0002 6.19961H8.2002V3.79961C8.2002 2.03961 6.7602 0.599609 5.0002 0.599609C3.2402 0.599609 1.8002 2.03961 1.8002 3.79961V6.19961H1.0002C0.600195 6.19961 0.200195 6.59961 0.200195 6.99961V12.5996C0.200195 12.9996 0.600195 13.3996 1.0002 13.3996H9.0002C9.4002 13.3996 9.8002 12.9996 9.8002 12.5996V6.99961C9.8002 6.59961 9.4002 6.19961 9.0002 6.19961ZM5.8002 11.7996H4.2002L4.5202 10.0396C4.1202 9.87961 3.8002 9.39961 3.8002 8.99961C3.8002 8.35961 4.3602 7.79961 5.0002 7.79961C5.6402 7.79961 6.2002 8.35961 6.2002 8.99961C6.2002 9.47961 5.9602 9.87961 5.4802 10.0396L5.8002 11.7996ZM6.6002 6.19961H3.4002V3.79961C3.4002 2.91961 4.1202 2.19961 5.0002 2.19961C5.8802 2.19961 6.6002 2.91961 6.6002 3.79961V6.19961Z" fill="#1E1E1E"/>
3
- </svg>
 
 
1
+ <svg width="10" height="14" viewBox="0 0 10 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M9.0002 6.19961H8.2002V3.79961C8.2002 2.03961 6.7602 0.599609 5.0002 0.599609C3.2402 0.599609 1.8002 2.03961 1.8002 3.79961V6.19961H1.0002C0.600195 6.19961 0.200195 6.59961 0.200195 6.99961V12.5996C0.200195 12.9996 0.600195 13.3996 1.0002 13.3996H9.0002C9.4002 13.3996 9.8002 12.9996 9.8002 12.5996V6.99961C9.8002 6.59961 9.4002 6.19961 9.0002 6.19961ZM5.8002 11.7996H4.2002L4.5202 10.0396C4.1202 9.87961 3.8002 9.39961 3.8002 8.99961C3.8002 8.35961 4.3602 7.79961 5.0002 7.79961C5.6402 7.79961 6.2002 8.35961 6.2002 8.99961C6.2002 9.47961 5.9602 9.87961 5.4802 10.0396L5.8002 11.7996ZM6.6002 6.19961H3.4002V3.79961C3.4002 2.91961 4.1202 2.19961 5.0002 2.19961C5.8802 2.19961 6.6002 2.91961 6.6002 3.79961V6.19961Z"
4
+ fill="#1E1E1E"/>
5
+ </svg>
assets/images/upsell/chart.svg CHANGED
@@ -3,29 +3,26 @@
3
  <style type="text/css">
4
 
5
 
6
-
7
-
8
  .dataset {
9
- fill-opacity: 0.2;
10
- -webkit-filter: url(#dropshadow);
11
- filter: url(#dropshadow);
12
  }
13
 
14
  #dataset-1 {
15
- fill: #52C0A5;
16
  }
17
 
18
  #dataset-2 {
19
- fill: #21A6EE;
20
  }
21
 
22
  #dataset-3 {
23
- fill: #807CCC;
24
  }
25
 
26
 
27
-
28
- </style>
29
  <filter id='dropshadow'>
30
  <feGaussianBlur in='SourceAlpha' stdDeviation='3'></feGaussianBlur>
31
  <feOffset dx='0' dy='0' result='offsetblur'></feOffset>
@@ -49,6 +46,5 @@
49
  c31.5,0,68.1-47.1,152.7-69.1C519.9,101,565.9,4,565.9,4c-0.5,60-3,256-3,256H-0.1z"/>
50
 
51
 
52
-
53
  </g>
54
  </svg>
3
  <style type="text/css">
4
 
5
 
 
 
6
  .dataset {
7
+ fill-opacity: 0.2;
8
+ -webkit-filter: url(#dropshadow);
9
+ filter: url(#dropshadow);
10
  }
11
 
12
  #dataset-1 {
13
+ fill: #52C0A5;
14
  }
15
 
16
  #dataset-2 {
17
+ fill: #21A6EE;
18
  }
19
 
20
  #dataset-3 {
21
+ fill: #807CCC;
22
  }
23
 
24
 
25
+ </style>
 
26
  <filter id='dropshadow'>
27
  <feGaussianBlur in='SourceAlpha' stdDeviation='3'></feGaussianBlur>
28
  <feOffset dx='0' dy='0' result='offsetblur'></feOffset>
46
  c31.5,0,68.1-47.1,152.7-69.1C519.9,101,565.9,4,565.9,4c-0.5,60-3,256-3,256H-0.1z"/>
47
 
48
 
 
49
  </g>
50
  </svg>
assets/images/upsell/woo-edd-upsell.svg CHANGED
@@ -1,38 +1,22 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="721" height="331" viewBox="0 0 721 331">
2
- <metadata><?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
3
- <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c142 79.160924, 2017/07/13-01:06:39 ">
4
- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
5
- <rdf:Description rdf:about=""/>
6
- </rdf:RDF>
7
- </x:xmpmeta>
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
- <?xpacket end="w"?></metadata>
30
- <defs>
31
- <style>
32
- .cls-1 {
33
- opacity: 0.7;
34
- }
35
- </style>
36
- </defs>
37
- <image id="Vector_Smart_Object" data-name="Vector Smart Object" class="cls-1" width="721" height="331" xlink:href="data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtEAAAFLCAMAAAAnAiCNAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAACSVBMVEUAAAAGhdcGhdcGhdcGhdcGhdcGhdcGhdcGhdcGhdcGhdcGhdcGhdcGhdcGhdcGhdcGhde+3/S+3/RVrOO+3/S+3/S+3/S+3/S+3/S+3/S+3/SQye2+3/S+3/SVy+6GxOt4vehcr+S+3/S+3/S+3/TE4vWx2fKez+6+3/S+3/Sn1PB5vekSi9lXrOSz2fJAoeAdkNtisuYpltyFw+s0nN5Lp+Kczu8vmd6s1vGi0vCf0O8smN09oODj8frW6/jS6fc5nt9uuOcOidgklNwekdsckNoRitl+v+pns+Zfr+Qzmt5bruR3u+g+oOAik9uQyO0XjdpJpeFLpuK43PMMiNhOp+I+n98nldxDouBZrOM4nd5tt+dUquJptOaHw+tHpOEmldxntOb///+DwutEpOHB4fUrl901nN/v9/0WjdrQ6Piv1/IllNyi0fAXjdlUq+Qtl91fr+Qsl93g8Ppjs+Z9vunX6/ix2fN0u+hzuumSyu7////0+v38/v+JxezP5/e22/JesOVxuehWrOM2nN6PyO2v2PJSquNYrON2vOmp1fCq1fAiktv6/f7v9/xhseWn0/AfkduKxutRquObze53vOlAouCEw+oQitiCwepls+U/oeAjk9uVyu0Zjtp6vupvuOdCoeBvt+djseVOqOKh0O+ZzO5Mp+KSye2IxOt/v+lstubF4/Xn8/sTi9mSyu1Tq+NGpOGYzO5st+cgktu53fNfseWLxuvf7/pyuug+oeB8vumr1vCTyu3l8vsllNxDo+EVjdkAAACHFG2mAAAAwnRSTlMALWSGOAuzkRZwe0NPWp2oIgstTxY4WnuGqLOzkU+zs7OznWQis7OzQ3Czs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Nws7Ozs7Ozs7Ozsy1Ps7Ozs7Nws7OGs7Ozs7Ozs7Ozs7Ozs7Ozs7ORs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs4aGhleKvvEAAAABYktHRACIBR1IAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAB3RJTUUH4gILDyoz4X4uSwAAG4FJREFUeNrt3f1jG0deBnDZrjcvrpPY2LItx6R1DPJb3DhxTEiBJhwOKE05DHlzyPXAkrEd7KYQ36UJBxQ4LsCVl4MD2is9jgAHDbnEJekLHMfLf4Z2Z3e1klbSzM776nl+SmVZlnY/HX13ZnYmk0GQZOno7Op8TvebQBBB6e5y3Ozp1v1GEGuyN8TSbSAbArpMWvcbQSyJ2wbuC/+1X/fbqU2HE6RH91tB7Mg+V4tLunuP+6/ndb+fmvSGoo37nw0xM+RbfZ8P2unV/X5qUhHdpfutIHakk3jZR0Ab3Ebv0/1WEDvit82mskEdbV4cExMpLqKkjQOdyexHX4dp0Y23legIaQNBZ7oJ6S4DOxbbNbrxthSd2es/eED3oYpPR29XL8YMDYpuvC1Fm91GI0LT3Xug3HR1cn3j6cbbSrThdTQiMsHJPnhI9zuR/xlBuh0SnuyD6b0uMbw/GhGZnkrb1an7vUiL4WOGiMjsr4g2tBtAQAyf14GITFekwNT9XqTFnXHXGf4L04FSnbYQXZYc8y8klemsgMbELyQF2VsRjWkySBrSiSYaSVf82bn701pgdjito/s9IkKz9/n9Xb2HdL8LaYFoJF2BaLvS1480zw9RiNb9HsWnTzdM5gwMZoeGR3JIy4xSiNb9HqXk8HB2cEC3U0rNY0OwTB0i+ocjOfJCJS+mV7SX8aMTurm25nxY91GyK0T0j0Tyo/lKXki56JyL2uSWenJY9/GxLm0vupypft1w49OXRbHBHoh2M2RgOw3PyQLRJFnTuj8m4TlZINrPuFGlxwQuB5MGosNkdTOuJKv7WFgciK5kyJDKYwANNEcgOpLDRpAebMsKenR0WtALQXQkIwYMuLRlxTEzW3Z2bE7ES0F0VfSTntJ9CHTEn4txTNxrQXSQcb2FR9+Q7gOgJS/5M4imBbwWRNdEay3d16bXhLO+6FEBrwXRtZnSKLpNQeeOQ7TMjGkD3ZY1tJt5AnqW4jnNMu8+D6LrMqJrkkfbgs7NnfCgnWz2HIhOnmE9oCd1f26NmZtfWDi12PQpEM2RSR2gJ3R/asMD0RwZ0dDf0Teu+1MbHojmiYZJS+1bRFPGE/1jpyP58TOVvAzRTaO+kR7U/ZGNjyf6J34ykp96pZKzEN08qhtp1BwtA9FcGVcsui2nJ7EFovkyqBT0gO6Pa0Egmi9qx8JxWdg6EM2XETTRybN43Dm+yP8y1ZElunWnoNCImLqSLCrLjrQ10e7Eo1n+l6kORHPmKJroxJFy6iCaMwondxzV9iElBaJNFJ1TJzp1d8pCtJGild1xmL45d1aJHlUbIXcHJ4uyS8P03Vpolej2iaqB8D7VH4xmEfwGqf31hZqXXjxR8wsnxLmGaN6oEq286JAoerbuN2aFfctCNG+GFIlW3hktT3TcKwtrpCGaN6q675TPupMnejrmV4SNHUI0bxSJVj+8IrHqqL/P5JSwtw3RvFEkWn3f3VzyrqfaX69rgKe9hz0152KfkDwQzRtFolM3YJhD752hUXRlmMbNsNhEj863zEwOovmjqPcujbdjsYmmuMl7IQfR/FEkWvfHlBGINjJqRsFTue6Mp4Z6aAWiFUXNTKV+3R9TRs45LKubQ7SiKAGdTtG5xXMM3XYe1Z/+XCQ/s1TJeYgWFEWdd1h5hlD93M9G8nOFSi5AtKAouisLC3VAtKIomh4N0RCtJqpWN4BoiFYTVSvQjOn+oPoD0Uqi6p6sdPZ1MAWiVUTZSo4QDdFKomy/LIhOiejFUwsLM7oPZeOoWxFd+X2z5iUVome8131J97FsGIULouv+qPqTBtFz/j3DprbSKjetaNdtZitJg+jgVrUF/peSEpW7v6Vv/RnWpEH0jNmile7QiSGWNIhe9EWLu1FYZNTuoozOjjSIzi0Q0cLXgRcStTvOorMjFaLnXNKzZl4Yqt2BBZeG6RBdLjy0rjvaJIdVb86ZxuUNmJIS0aZGOeh03mnIEoiWGbVXhSSpW+KfMRAtMePKFvaPxNqyY1rMivd6RHO9ed1HnjrqSw43dpYdo6fqF4tmj2tDj2iKO9Cb5MQ5M68CazKkBbSVvR0njwvgbLHoco6Zb1rh9KTqWLe10NxLYjw7zqsXL158rbXonw+e1lz0a+WnXXyVQnTwclyZPan7PDSPlhKapM+ya8PP/4Io0M5yYLa56KXgH81FX3B/YZlCdPBynPnFX9J9Kpokq6ni8GLX3I7PX6qc0yXOXNYm+kri93y+8vHP6j4XDTOlodPO1kZ6Lmihr15bKYiIHtE8uXw9UP3Lus9GfDR7tqyR9mvopRtCOFspupzr/heVgVOTxrPaPZcbaXtWkT5JzuQFUZ4tFV24TJpp0yZEHz6q73qwKvYsf3dcNGhLRRdukFbanA6P4aHsoM6rwZrYsnkF6e1dEgjaVtH+H2JppMf6ZcWAOqM2A5ZcHJ7yTqOwGtpm0YWr3mtN0x+8ft3KlMaSYRav6LgqErS9oi97r8Uwy1+3McVRvptykpBdZa9BtBfv4pB+M4N2E91nw/QOUkavQLSXq4yFtG5iqjNhQSk9KhKE9aIvsIlWtpiiMbHgtnCI5hCtdNUMM2L+1SFEc4hWtIuxUTGedJ3oL7zOnS+2Fv0rwdOai/6i+3K/SiGa5+0mF61tujJIM4h+fZU7xdaiS8HTmosuui+3RiGa5+0mF61qlX2zYjhpiOYQbeDAnooMGt3jAdHJRavarMq4TJg8Dw+ik4tuxwtDkj6DZy1BdHLRynZCMTDmbgkH0clFGzJxWU8mTB0Rh+jEottvxLA6Y2ZeIEJ0YtGKNpo3N31GzsWD6MSi27roIBkw0DREJxXd7kUHycCUabUHRCcV3ZZD4DHpmzTrGhGik4pu0wHDuAyMcfdPT8/P+wvEzoX/gmilolXvhWJ4+gazPKqn3XVxvdvhFt1/8dyPD9EJRaOJrs9A/1h2argqlOPlZGHZGR8016IpEJ1MdBtO9k+Yvv6xqZau/aWSZwhoiNYgur3WNeDOwFjzy8dpfzV+AbuxQ3Qi0empont6FeXX5mPj412MbjDBtdEvRCcRrWO/KknpcvQmONoR0ud4QEN0ItEp6os2RXSFNOc+vxCdQHSahgshGqLTdVloiuhI1cFHGqLZRdfUHHtVXVtV0iFOdGeX8ixEc6wONCdpiGYWfbjGRIf6hq1Xd8vOlZi1xmp67zBmqFJ0XT8HRPOTxgiLRtF1RTRE85PGKLg+0ZN1pweiE5CuOarTPmifNMYM1YmOuRXrkPprqx7dIrlTuzDT6Esv+cXz4qkFXBmqE52e0W/dkXY/F0SziAZoYZG2XwBEM4gGaIGRtbg6RNOLTtFsDhNyFKI1i57kP4lIJH1y7iKHaErRI1ieQ3SyEK1R9LBB2xmnJXIaaYimEt3Oy5DKi5RKGqIpRA+j4pCSAYjWInoEl4SyIqNPGqJbic6igpYWGeuqQ3Rz0VPpuUfWwMgoOyC6iegRtM+SI2GLIohuKHoI9bP0SJivBNHxoofG0DwriIRCGqLrRQ8fHQRncenZ4zgHertjfyZhuhJE14nu0k0gXdnnnSBnTyxpCZeGEA3RUtPj+NkX+2OIhmjLsicQ7cQ20hCdItGH9ndZfwds64Sgndhlc8R330G0LtF7DzopuKm7ZVqIFr/BOETrEv18e1Q4B0LRe+N+LH5mB0TrEt2b6G/17nH2WNWw9wag4z+qcNAQbZfofU26DcxMt39pePBQ7I8hur1FB8s3CVybVHq6O70PGltzZPogur1FB1/hVtUdme6Ojr0NfoQxQ72iexIv69UZfZlD+9yHvEumg95Pn6e1YafoJpnkFwzRHKLDqxzmRF/T67arTmfrc+8lGICzf907PxLuNIRo5aLjXoUSgH+ZtUc3RGGRcFsWRJsg+iCtgG5325Subtqnmx4JF4YQbUTVwVAX7214lWVhJJTREM0iuiPxVkBVhS/ZisjbpOpA/U/bKTKW3IVom3rvUhYZRQdEQ7S+yCg6IBqi9UXCneAQDdH6IqWJhmhtonvaXrSUJjo3PT//2oULEK1edLfbiUc9/p3CyGmi3VwsFCBavejM3s79z+lWpTGSlviHaNw5qylD0kBDNESLz6F99SOj+rIWlRkm5iE/68UNiEaiST5fwAjRjrN5E6KRSjp1E67JyV8nebXq0ZiHGpCG6DZPh2NYlqPnN0zMQ5FsQTQSpEu3YBGinW2IRki6vVPyxrVlY7Lin98bVY/GPERClN+CaISEFB2XC/bmzZqyw17R5fyGbg/2p6PynW5plmtQQXR7B6IhOl2BaFWib67Fpvqq4Dc7EkS3IbMC0UpE397ZlNQ15GY/UFcC0SpEb8v07IZ2EZk2CEQrEL0t2bOTpmVheBMV/aUvWxVrRN+RD9rOVrqvv38sKzpvRUQLmMqpMtaI3lIh2qo1cMuYB7PDcibdR+/0g2gpoknNsbm9Kilr694fsGih8r5JiRPuIVq66B3vOTdXpWXDI029ep3uTMhYywiiFYouuU/ZkXkkSKFux4p0/eL3p4JoxaK9p0irOdxsWFNID0gsNyBaqei1VZmxRXRW3h3YEG2c6LulRml9KOwQPSC74IBoo0SXGvbLtT4UVogeVNBAQzREK4u8RYwgGqI1RG6XHURDdFpBSxW9dqdYvEUubu4W763dhuhm2S42SgpEqwMtS/Tt7Z31urZms1QU2YmVMtF8+S3dZptGVQ0tS/TtYr3mMLe2N/j/gheIjsRo0RJ2K1YoemO7CWfSVO+IOb0QHYnJogfUdNvJEb1RpLpbY13EoLCFor8iPL9tgWglAytyRNd5XvemBm8Vi6VSzU+27rSj6FeE5yvmix5TClqo6HtRtet3f+f07779ex6g1wuFL73++u//wVejTyjxzq+EaCtES1xNX7Lom5H6ufSHX3vbO+P3A9F+/ujN85Vn3eW7RoRoK0Qr7LgTK7qytvPmH//J14MzXiu6nGvvVEoPrmYaom0QPaAYtCjRG+GI11bx7cgZjxFdKNy4Gpq+B9FiRP9pv5YMGNdECxJ9MyiQN4tfz+dbiY6a3kleeUB0RPSfqYYTZGQ4O9hnUBMtRnS4HsWf/0U+TyO67PCN4AoyMWmINkG0l6HJRqiPWik6AP2Nv8znaUVXljdfT1pMQ7QxostN9dH4AkRxR4cY0QHov/pmnkV0Ydnv9thMSBqiDRJdzlRMOz2o/m3wiw5A/3U+zya6sOJXHpvJZuVBdCi6VPqbhYVF3aRHxvRfFwoQ7YPe/Ns8s+hC4SpPLQ3RoWjvT4zqFp3LDfdpLzq4RZMT7rz7Xj6J6JA0RKdCdG6kvwr0hIa3wCn69mZT0C1FB6STLNAC0eaJzuUmo6IVT+kQIXq9OejWogPSCSbjQbSJoqtIayijOUXfJRwbgqYQ7ZNO0OEB0UaKjpJWO49UgGi/iP5Wnke03+PBXkpDtJmiI6R1/HUe0RtkYeT381yiCzcuOaEfiE6B6JEJ2aKnTy0sHJsTL5pMt/u7DzhFF66RuoO1VxqiDRWdG/c78WTdX7g4637e2WnRom+3KqJpRZNtY5n7OyDaVNG5IbmiF4i8U6JFk5W+7+f5Ra9cipx1iLZfdK5fpug5x49g0aSJ/vYHAkQXrjgBNIhOIrpY/Pv5+elmCI4dd2ZPNXuG2IzLFL0oSfROq34OBtGFJe/F2HrwIPoV2plKpPB0nBllpCdlVh3+pzkuVrTfROfFiF5OUElDNLXoE36j1uBiSkLGZYqeJ5/mpFjRRZommlq030gzzViCaFrRJ4OvaeeYKtFeIy1tLaVj7v+d5+J/llj0Fk0TTS+a9OAx3XYI0bSi50PRC8pED0sdYZkeHW3QHZ1YNNme6UVhogvn3WduQXRaROcGLBszJNeFH4gTfZ352hCiaUWfC0WfonXBH3f6/2GLRHuzSN9vBZpB9A0nRATRgkXPzQaiFfZZD9s19+6m92vfESi64E1YYpmvVCW68jrLF8r5hweR/GOh5qdXgn/80z9H8s3vVvIv7k+Xvf/T3H9d+NdIPnxYyb95P23+wfSLzs2ob6JzObvmRxfpig4W0ddZezsaiDYu8kQ/OnPme97rtrzP8ORxt3dgXimtfqvuYfGWUHq5JWgW0ZcjZx6iaXL6cfC6FBXFaOPeAUmZtOo+Q6+Mvi9UdOESYyHd7qKfPHYYRKtP1qZ7wcmA4QtiRXuDLLcgmjJHIq9rpOghm9brWKMso5lEX2DskW5v0bvkWu+OuaKHbVpTybswfLc1aCbR1yh6wtpR9KO4xz7yey/+3XDR6ssODtEUF4ZMoglN+jtZ2kP0o11nt870o5eJ50tXvmy4aFvWJi3Rja+wiY6eeoj2c9q1+/hptWm3k8MDfblguujMkEWiKbo61Iq+csG8LPOJPuLbfXYk8uAT/8E3bhTMF610L0MjRdPvoVUneskxLxd4RIfVcjlnz4TK/UeWVgoWiLZkHxYywHK/dbx6b+sinWhvHJy+Qzr1ok8/q3qpjz72HvU7OZyr3qc3WHTWX+Xfir2yStRn1MsbK1SilzhEJ3hXSlJMPlNppu7FPnlUabavFywRbcd+hqx26EhDdFzFcenV++8Gr/Z4JuzkKBgvOlymVO2cUjWi6Uh7z6Rf0rFO9N2SedlOKPpMUHEsrTzMf/p+zeG8dLlgvuhwLWkb9gVnbw3fuEwpOmFfB/VvqU8T0afPPn0UC/ppcNzKdfjD8hX2ey9XHcwbBfNFH9a0dwWH6MdnqRJ8T7Ym3Xai3W64x7sf11ccZ4O22J2i/dDrNfrOt0PQS5EvPHNFH9W0jnQy0d4qu2cpv0B3KUmT6aT092VZLzrohqt0zPkVx+Mqug/9ntAX/XL6avSgmSt6IiJaZRcexyj4M9qakJI0K03bRe+Gja7z7Eik+AgrDr87IxCd/+B+5FHTRY/r2mIomWhyJzj1ZQ4daW/u3Wa7iA4rC5LHT/3i4+OgYj4fHK2HlQGrT78adnKYLjqb0UQ6mWhym+EZsaS9xf4Z1r6zWvTHVZd6XnZPv1IZ4XbeCYvlh9FB2AcFO0SP1G1umDVaNDmEM9SiqUifd59xtz1EB3ON3n0xKvvskU9qKg5rRU/V79Y5qaYTj+c+w4/oRQdXQU1Ik+UN6Kd12Cw6uCZ84wv5/Hu1nc1OTV+njaJH4vYJn1Ay1JJQtNfZ8ZhBdGvSV7yfMyz0b6/o4NrvnZUHXnVcGRT0ezNWCpaLzmZio6LySCj6DmMhTUH6HfenLMuE2Sr6UdDJ8Wah8MDvxfhWpbfZqb34s1D04UyDDMjfPSvpmkrer33CIroF6RWHsYy2VXRw/4njwn0QUn0heLhudNVC0ROZhumXbTqp6FvMZUeF9HLjooOhjLZUdDBFlByFBxGsn77vFh9vrhSsFz2WaZZ+ube1JBVNNrh/koi0cyVGtDfxjqE32lLR4f0npCWOinaHUL5xrf7IWCd6KtMiA2MSrxGTit7w1qChHQhvTfoGc9Fhpeiwk8NviatF5/MPC/aLHm4F2k3f5FFJqhOviE6W2z0tijTZS5lpIxYLRYedGcHHTqHow300okl3Xv9kVnjeSiqaDBvuMopuRJo00WybZdkrujJ8kj7RQ/Sg5aQjqWh/jjRTB15j0qSJpp/tb7PoaO9c6kS3rKENFk1WCmOtpONJk4mkTHtWWCu6qvcyZaJHJvlF6hPtN9JHmEkH038jpJcSNNGWiq6+Py1doocHdHPmE00a6cePmEmfriVNFkNnWd/fUtHLy8tVoFMletyABppPNBllYZqvFE/6RqJtwW0UXac1PaIN8cwn+vZmwrqjhrS38gzjhrMQbZTooUHdkIWIXr1H6g7WTuka0qSfY5Npv1mINkf0+NSk7h47YaL9i8MEpXRI+qo/oYNpRgdEx4l+S/xoRetM9pukmV80GQt3XuYg7S9WxzT+DdFxojt0WzIjfKL9/g4u0qSfg7nmgGiIjg2naL+U5iW9yXDrShiIhuiY8Ir2Zyzxkd5kmqEUBKIhOibcogPSzxL0eAS3J7FfFUZ4QDRER8MvOiD9+Aij53A9WcbR7yAQDdExESA6IO18xFR5hOvJJgRdK/r2moGBaOURITok/ewJfQP9CVcNHSO66BgYiFYeIaKDHg/HOfsxHehgDyhnKzFoiIbouIgRvXpnMziHuxSmj4Rb5pQS9EPHiv7ss//QrTcun5UD0UojSPTq7cqy/7vN72t5VPHs3OP4i9Wic7l53Xrj4s57gGilESW6XHmEzbTzbKZhQ/1ktzKusp684oBoiG4QcaKjzXQZ9SdP6no+Ts98FBn53uRqoOtFx8T7yQt5cfHWPZpnnJsG0UojUPTq6tp6VQP17OzTp0/OeJl5ulu9Arizw1FBQzREN4xQ0aur29WmG2YnyUQOiIbo1hEsutxO77TkvFXkbp8hGqIbRLjo1dWNe80a6s2dZLM4IBqiqSJBtIt6e2crjnOpyHp7LERDNFvkiPZUrxXvloLuj61SqbgtUDNEQ3SDyBMtPRAN0TGBaIhOVyAaotMViIbodAWiITpdgWiITlcgGqLTFYiG6HQl/aK/9j1x+U+INj7pFy1ypLIE0cYnKtrOQDRERwPREJ2uQDREpysQrVL092vz4X9V5wffr88Pok/4sPL4d938N0STdAXZ4x2MJZG51oTfFaF/yQvZxWXBz4zRoumyfatUKt1juc8HojMEspxcutEQ9GWJf5bknPWiN/w55SyrTUF0Zr9MVUuNQK+cly561HrR4S1tDMvEQ3SmVyqr6w1EvyMdtDNnu+jtymcpQTR9npPr6nIs6OvyQc/yVbAGiI7edUzdSEN05pB3DHaKwkOKwPOx13DkNN0S/0e9eLfqLlgvmhyjuwl+qb1FZ7xjIGqdgUg2Np3mof8qTaLtWDpE39mAaNYccI9BUQKsteag2beWZTqr56wX7bUIm1sQzZou78tNhqy7TUULXuGgktvey49aL/pW5P9+6vcF0X5nx7oMWhvNVlTiXY+0cch3w5z1om9WDhb9VyhEZzI93kGQYutm46s3eaDJphWzPJYooqI/Ouy+26F/XxAdzOeQVgOoT0xXh52iV+94H2WT5SIHojN+ZwdDM2B47sVcGJokmqlbaa1YvMN0BQ3RmWAcPC2N9E3SaThtougT7i/dlfnpyTXEId2kNIcU0sl3EzQqawT0/2SrI0f0/2azY/0M+T+5vZarQf+IblHa40+/KwpYbV9zbvqLsB/srvmIpLISPS7Zy3ign/fexrq047xBPv5+3aCEpTOY6tzj/WdPF2UOBNfU6yW7E45SHqj9iI6UHKA9wlVT0OUdZ+a3daiKTSQ9ui2ThOeNtB1yZ9UhKUhHFZtIWL99IBoxIhCNpCsQjaQrpovu6fVDetg7ehGkafZWsYlE8BjN/wNvfyA4x0t3CgAAAABJRU5ErkJggg=="/>
38
  </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="721" height="331"
2
+ viewBox="0 0 721 331">
3
+ <metadata><?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
4
+ <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c142 79.160924, 2017/07/13-01:06:39 ">
5
+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
6
+ <rdf:Description rdf:about=""/>
7
+ </rdf:RDF>
8
+ </x:xmpmeta>
9
+
10
+
11
+ <?xpacket end="w"?>
12
+ </metadata>
13
+ <defs>
14
+ <style>
15
+ .cls-1 {
16
+ opacity: 0.7;
17
+ }
18
+ </style>
19
+ </defs>
20
+ <image id="Vector_Smart_Object" data-name="Vector Smart Object" class="cls-1" width="721" height="331"
21
+ xlink:href="data:img/png;base64,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"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  </svg>
assets/index.php CHANGED
@@ -1,4 +1,4 @@
1
  <?php
2
  //Nothing to see here
3
 
4
- header( 'HTTP/1.0 403 Forbidden' );
1
  <?php
2
  //Nothing to see here
3
 
4
+ header( 'HTTP/1.0 403 Forbidden' );
assets/js/admin-common.js CHANGED
@@ -1,33 +1,34 @@
1
- jQuery( document ).ready( function( $ ) {
2
- /**
3
- * Dismissable Notices
4
- * - Sends an AJAX request to mark the notice as dismissed
5
- */
6
- $( 'div.monsterinsights-notice' ).on( 'click', 'button.notice-dismiss', function( e ) {
7
- e.preventDefault();
8
- $( this ).closest( 'div.monsterinsights-notice' ).fadeOut();
9
 
10
- // If this is a dismissible notice, it means we need to send an AJAX request
11
- if ( $( this ).parent().hasClass( 'is-dismissible' ) ) {
12
- $.post(
13
- monsterinsights_admin_common.ajax,
14
- {
15
- action: 'monsterinsights_ajax_dismiss_notice',
16
- nonce: monsterinsights_admin_common.dismiss_notice_nonce,
17
- notice: $( this ).parent().data( 'notice' )
18
- },
19
- function( response ) {},
20
- 'json'
21
- );
22
- }
 
23
 
24
- } );
25
  });
26
 
27
- var submenu_item = document.querySelector( '.monsterinsights-upgrade-submenu' );
28
- if ( null !== submenu_item ) {
29
- var li = submenu_item.parentNode.parentNode;
30
- if ( li ) {
31
- li.classList.add( 'monsterinsights-submenu-highlight' );
32
- }
33
  }
1
+ jQuery(document).ready(function ($) {
2
+ /**
3
+ * Dismissable Notices
4
+ * - Sends an AJAX request to mark the notice as dismissed
5
+ */
6
+ $('div.monsterinsights-notice').on('click', 'button.notice-dismiss', function (e) {
7
+ e.preventDefault();
8
+ $(this).closest('div.monsterinsights-notice').fadeOut();
9
 
10
+ // If this is a dismissible notice, it means we need to send an AJAX request
11
+ if ($(this).parent().hasClass('is-dismissible')) {
12
+ $.post(
13
+ monsterinsights_admin_common.ajax,
14
+ {
15
+ action: 'monsterinsights_ajax_dismiss_notice',
16
+ nonce: monsterinsights_admin_common.dismiss_notice_nonce,
17
+ notice: $(this).parent().data('notice')
18
+ },
19
+ function (response) {
20
+ },
21
+ 'json'
22
+ );
23
+ }
24
 
25
+ });
26
  });
27
 
28
+ var submenu_item = document.querySelector('.monsterinsights-upgrade-submenu');
29
+ if (null !== submenu_item) {
30
+ var li = submenu_item.parentNode.parentNode;
31
+ if (li) {
32
+ li.classList.add('monsterinsights-submenu-highlight');
33
+ }
34
  }
assets/js/admin-metabox.js CHANGED
@@ -1,29 +1,29 @@
1
- jQuery(document).ready(function(){
2
- if ( 0 === jQuery('#monsterinsights-metabox-page-insights').length ){
3
- return;
4
- }
5
-
6
- jQuery('#monsterinsights_show_page_insights').click(function(event){
7
- event.preventDefault();
8
- jQuery( '#monsterinsights-page-insights-content' ).slideDown( 'slow' );
9
- jQuery('#monsterinsights_show_page_insights').fadeOut( 'slow' );
10
- });
11
-
12
- jQuery('#monsterinsights_hide_page_insights').click(function(event){
13
- event.preventDefault();
14
- jQuery( '#monsterinsights-page-insights-content' ).slideUp( 'slow', function (){
15
- jQuery('#monsterinsights_show_page_insights').fadeIn( 'slow' );
16
- } );
17
- });
18
-
19
- jQuery( '.monsterinsights-page-insights__tabs-tab' ).click(function (event){
20
- event.preventDefault();
21
- let tab_target = jQuery(this).data('tab');
22
-
23
- jQuery( '.monsterinsights-page-insights__tabs-tab.active' ).removeClass('active');
24
- jQuery(this).addClass( 'active' );
25
-
26
- jQuery('.monsterinsights-page-insights-tabs-content__tab.active').removeClass( 'active' );
27
- jQuery('#' + tab_target).addClass('active');
28
- });
29
- });
1
+ jQuery(document).ready(function () {
2
+ if (0 === jQuery('#monsterinsights-metabox-page-insights').length) {
3
+ return;
4
+ }
5
+
6
+ jQuery('#monsterinsights_show_page_insights').click(function (event) {
7
+ event.preventDefault();
8
+ jQuery('#monsterinsights-page-insights-content').slideDown('slow');
9
+ jQuery('#monsterinsights_show_page_insights').fadeOut('slow');
10
+ });
11
+
12
+ jQuery('#monsterinsights_hide_page_insights').click(function (event) {
13
+ event.preventDefault();
14
+ jQuery('#monsterinsights-page-insights-content').slideUp('slow', function () {
15
+ jQuery('#monsterinsights_show_page_insights').fadeIn('slow');
16
+ });
17
+ });
18
+
19
+ jQuery('.monsterinsights-page-insights__tabs-tab').click(function (event) {
20
+ event.preventDefault();
21
+ let tab_target = jQuery(this).data('tab');
22
+
23
+ jQuery('.monsterinsights-page-insights__tabs-tab.active').removeClass('active');
24
+ jQuery(this).addClass('active');
25
+
26
+ jQuery('.monsterinsights-page-insights-tabs-content__tab.active').removeClass('active');
27
+ jQuery('#' + tab_target).addClass('active');
28
+ });
29
+ });
assets/js/admin-widget-settings.js CHANGED
@@ -1,68 +1,68 @@
1
  (
2
- function ( $ ) {
3
 
4
- // Add Color Picker to all inputs that have 'color-field' class.
5
- $( function () {
6
- init_color_picker();
7
- init_multiselect();
8
- $( document ).on( 'widget-updated widget-added', function (e) {
9
- init_color_picker();
10
- init_multiselect();
11
- } );
12
- $( document ).on( 'change', '.monsterinsights-save-on-change', function () {
13
- save_and_refresh_form( $( this ).closest( '.widget' ) );
14
- } );
15
- } );
16
 
17
- function init_color_picker() {
18
- var timeout;
19
- $( '#widgets-right .monsterinsights-color-field' ).wpColorPicker( {
20
- change: function ( event, ui ) {
21
- if ( timeout ) {
22
- clearTimeout( timeout );
23
- }
24
- timeout = setTimeout( function () {
25
- $( event.target ).trigger( 'change' );
26
- }, 300 );
27
- },
28
- } );
29
- }
30
 
31
- function save_and_refresh_form( widget ) {
32
- if ( wpWidgets && 'undefined' !== typeof wpWidgets.save ) {
33
- wpWidgets.save( widget, 0, 0 );
34
- }
35
- }
36
 
37
- function init_multiselect() {
38
- if ( ! jQuery.fn.select300 ) {
39
- return;
40
- }
41
- $('#widgets-right .monsterinsights-multiselect').select300({
42
- ajax: {
43
- type: 'POST',
44
- url: ajaxurl,
45
- delay: 250,
46
- width: 'resolve',
47
- data: function (params) {
48
- var taxonomy = $(this).data('taxonomy');
49
- return {
50
- taxonomy: taxonomy,
51
- keyword: params.term,
52
- action: 'monsterinsights_get_terms',
53
- nonce: monsterinsights_pp.nonce,
54
- };
55
- },
56
- processResults: function (data) {
57
- return {
58
- results: data.data
59
- };
60
- },
61
- dataType: 'json'
62
- }
63
- });
64
 
65
- }
66
 
67
- }
68
- )( jQuery );
1
  (
2
+ function ($) {
3
 
4
+ // Add Color Picker to all inputs that have 'color-field' class.
5
+ $(function () {
6
+ init_color_picker();
7
+ init_multiselect();
8
+ $(document).on('widget-updated widget-added', function (e) {
9
+ init_color_picker();
10
+ init_multiselect();
11
+ });
12
+ $(document).on('change', '.monsterinsights-save-on-change', function () {
13
+ save_and_refresh_form($(this).closest('.widget'));
14
+ });
15
+ });
16
 
17
+ function init_color_picker() {
18
+ var timeout;
19
+ $('#widgets-right .monsterinsights-color-field').wpColorPicker({
20
+ change: function (event, ui) {
21
+ if (timeout) {
22
+ clearTimeout(timeout);
23
+ }
24
+ timeout = setTimeout(function () {
25
+ $(event.target).trigger('change');
26
+ }, 300);
27
+ },
28
+ });
29
+ }
30
 
31
+ function save_and_refresh_form(widget) {
32
+ if (wpWidgets && 'undefined' !== typeof wpWidgets.save) {
33
+ wpWidgets.save(widget, 0, 0);
34
+ }
35
+ }
36
 
37
+ function init_multiselect() {
38
+ if (!jQuery.fn.select300) {
39
+ return;
40
+ }
41
+ $('#widgets-right .monsterinsights-multiselect').select300({
42
+ ajax: {
43
+ type: 'POST',
44
+ url: ajaxurl,
45
+ delay: 250,
46
+ width: 'resolve',
47
+ data: function (params) {
48
+ var taxonomy = $(this).data('taxonomy');
49
+ return {
50
+ taxonomy: taxonomy,
51
+ keyword: params.term,
52
+ action: 'monsterinsights_get_terms',
53
+ nonce: monsterinsights_pp.nonce,
54
+ };
55
+ },
56
+ processResults: function (data) {
57
+ return {
58
+ results: data.data
59
+ };
60
+ },
61
+ dataType: 'json'
62
+ }
63
+ });
64
 
65
+ }
66
 
67
+ }
68
+ )(jQuery);
assets/js/frontend-gtag.js CHANGED
@@ -11,814 +11,814 @@
11
  * @since 7.15.0
12
  */
13
  var MonsterInsights = function () {
14
- /* MonsterInsights JS events tracking works on all major browsers, including IE starting at IE 7, via polyfills for any major JS function used that
15
- is not supported by at least 95% of the global and/or US browser marketshare. Currently, IE 7 & 8 which as of 2/14/17 have under 0.25% global marketshare, require
16
- us to polyfill Array.prototype.lastIndexOf, and if they continue to drop, we might remove this polyfill at some point. In that case note that events tracking
17
- for IE 7/8 will continue to work, with the exception of events tracking of downloads. */
18
- var lastClicked = [];
19
- var internalAsOutboundCategory = '';
20
- var beforeUnloadChanged = false;
21
-
22
- this.setLastClicked = function ( valuesArray, fieldsArray, tracked ) {
23
- valuesArray = typeof valuesArray !== 'undefined' ? valuesArray : [];
24
- fieldsArray = typeof fieldsArray !== 'undefined' ? fieldsArray : [];
25
- tracked = typeof tracked !== 'undefined' ? tracked : false;
26
-
27
- lastClicked.valuesArray = valuesArray;
28
- lastClicked.fieldsArray = fieldsArray;
29
- };
30
-
31
- this.getLastClicked = function () {
32
- return lastClicked;
33
- };
34
-
35
- this.setInternalAsOutboundCategory = function ( category ) {
36
- internalAsOutboundCategory = category;
37
- };
38
-
39
- this.getInternalAsOutboundCategory = function () {
40
- return internalAsOutboundCategory;
41
- };
42
-
43
- this.sendEvent = function ( type, action, fieldsArray ) {
44
- __gtagTrackerSend( type, action, fieldsArray, [] );
45
- };
46
-
47
- function __gtagTrackerIsDebug() {
48
- if ( window.monsterinsights_debug_mode ) {
49
- return true;
50
- } else {
51
- return false;
52
- }
53
- }
54
-
55
- function cloneFields( fields, allowedKeys, disallowedKeys ) {
56
- var clone = {};
57
-
58
- for ( var key in fields ) {
59
- if ( ! fields.hasOwnProperty( key ) ) {
60
- continue
61
- }
62
-
63
- if ( allowedKeys && allowedKeys.indexOf( key ) === -1 ) {
64
- continue
65
- }
66
-
67
- if ( disallowedKeys && disallowedKeys.indexOf( key ) > -1 ) {
68
- continue
69
- }
70
-
71
- clone[ key ] = fields[ key ];
72
- }
73
-
74
- return clone;
75
- }
76
-
77
- function __gtagMaybeTrackerV4( type, action, fieldsArray ) {
78
- if ( ! monsterinsights_frontend.v4_id || type !== 'event' ) {
79
- return;
80
- }
81
-
82
- var eventCategory = fieldsArray.event_category || '';
83
-
84
- var fieldsToRemove = [
85
- 'event_name',
86
- 'event_category',
87
- 'event_label',
88
- 'value',
89
- ];
90
-
91
- var fields = cloneFields( fieldsArray, null, fieldsToRemove );
92
- fields.action = action;
93
- fields.send_to = monsterinsights_frontend.v4_id;
94
-
95
- let hitType = eventCategory.replace( '-', '_' );
96
- if (eventCategory.indexOf('outbound-link') !== -1) {
97
- hitType = 'click'
98
- } else if (eventCategory === 'download') {
99
- hitType = 'file_download'
100
- }
101
-
102
- __gtagTracker( type, hitType, fields );
103
- }
104
-
105
- function __gtagMaybeTrackerUA( type, action, fieldsArray ) {
106
- if ( ! monsterinsights_frontend.ua ) {
107
- return;
108
- }
109
-
110
- var allowedFields = [
111
- 'event_category',
112
- 'event_label',
113
- 'value',
114
- ];
115
-
116
- var uaFields = cloneFields(fieldsArray, allowedFields);
117
- uaFields.send_to = monsterinsights_frontend.ua;
118
-
119
- __gtagTracker( type, action, uaFields );
120
- }
121
-
122
- function __gtagTrackerSendDual( type, action, fieldsArray, valuesArray ) {
123
- type = typeof type !== 'undefined' ? type : 'event';
124
- action = typeof action !== 'undefined' ? action : '';
125
- valuesArray = typeof valuesArray !== 'undefined' ? valuesArray : [];
126
- fieldsArray = typeof fieldsArray !== 'undefined' ? fieldsArray : {};
127
-
128
- __gtagMaybeTrackerUA( type, action, fieldsArray );
129
- __gtagMaybeTrackerV4( type, action, fieldsArray );
130
-
131
- lastClicked.valuesArray = valuesArray;
132
- lastClicked.fieldsArray = fieldsArray;
133
- lastClicked.fieldsArray.event_action = action;
134
- lastClicked.tracked = true;
135
- __gtagTrackerLog( 'Tracked: ' + valuesArray.type );
136
- __gtagTrackerLog( lastClicked );
137
- }
138
-
139
- /**
140
- * This attempts to be compatible with the gtag function.
141
- *
142
- * @see https://developers.google.com/analytics/devguides/collection/gtagjs
143
- * @param type string Type of request, event, timing, config.
144
- * @param action string Event action or UA for config.
145
- * @param fieldsArray object The configuration object.
146
- * @param valuesArray object The values for the log.
147
- * @private
148
- */
149
- function __gtagTrackerSend( type, action, fieldsArray, valuesArray ) {
150
- type = typeof type !== 'undefined' ? type : 'event';
151
- action = typeof action !== 'undefined' ? action : '';
152
- valuesArray = typeof valuesArray !== 'undefined' ? valuesArray : [];
153
- fieldsArray = typeof fieldsArray !== 'undefined' ? fieldsArray : {};
154
-
155
- __gtagTracker( type, action, fieldsArray );
156
-
157
- lastClicked.valuesArray = valuesArray;
158
- lastClicked.fieldsArray = fieldsArray;
159
- lastClicked.fieldsArray.event_action = action;
160
- lastClicked.tracked = true;
161
- __gtagTrackerLog( 'Tracked: ' + valuesArray.type );
162
- __gtagTrackerLog( lastClicked );
163
- }
164
-
165
- function __gtagTrackerNotSend( valuesArray ) {
166
- valuesArray = typeof valuesArray !== 'undefined' ? valuesArray : [];
167
-
168
- lastClicked.valuesArray = valuesArray;
169
- lastClicked.fieldsArray = [];
170
- lastClicked.tracked = false;
171
- __gtagTrackerLog( 'Not Tracked: ' + valuesArray.exit );
172
- __gtagTrackerLog( lastClicked );
173
- }
174
-
175
- function __gtagTrackerLog( message ) {
176
- if ( __gtagTrackerIsDebug() ) {
177
- console.dir( message );
178
- }
179
- }
180
-
181
- function __gtagTrackerStringTrim( x ) {
182
- return x.replace( /^\s+|\s+$/gm, '' );
183
- }
184
-
185
- function __gtagTrackerGetDomain() {
186
- var i = 0, currentdomain = document.domain, p = currentdomain.split( '.' ), s = '_gd' + (
187
- new Date()
188
- ).getTime();
189
- while ( i < ( p.length - 1 ) && document.cookie.indexOf( s + '=' + s ) == - 1 ) {
190
- currentdomain = p.slice( - 1 - (
191
- ++ i
192
- ) ).join( '.' );
193
- document.cookie = s + "=" + s + ";domain=" + currentdomain + ";";
194
- }
195
- document.cookie = s + "=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain=" + currentdomain + ";";
196
- return currentdomain;
197
- }
198
-
199
- function __gtagTrackerGetExtension( extension ) {
200
- extension = extension.toString();
201
- extension = extension.substring( 0, (
202
- extension.indexOf( "#" ) == - 1
203
- ) ? extension.length : extension.indexOf( "#" ) ); /* Remove the anchor at the end, if there is one */
204
- extension = extension.substring( 0, (
205
- extension.indexOf( "?" ) == - 1
206
- ) ? extension.length : extension.indexOf( "?" ) ); /* Remove the query after the file name, if there is one */
207
- extension = extension.substring( extension.lastIndexOf( "/" ) + 1, extension.length ); /* Remove everything before the last slash in the path */
208
- if ( extension.length > 0 && extension.indexOf( '.' ) !== - 1 ) { /* If there's a period left in the URL, then there's a extension. Else it is not a extension. */
209
- extension = extension.substring( extension.lastIndexOf( "." ) + 1 ); /* Remove everything but what's after the first period */
210
- return extension;
211
- } else {
212
- return "";
213
- }
214
- }
215
-
216
- function __gtagTrackerTrackedClick( event ) {
217
- return event.which == 1 || event.which == 2 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
218
- }
219
-
220
- function __gtagTrackerGetDownloadExtensions() {
221
- var download_extensions = [];
222
- if ( typeof monsterinsights_frontend.download_extensions == 'string' ) {
223
- download_extensions = monsterinsights_frontend.download_extensions.split( "," );
224
- }
225
- return download_extensions;
226
- }
227
-
228
- function __gtagTrackerGetInboundPaths() {
229
- var inbound_paths = [];
230
- if ( typeof monsterinsights_frontend.inbound_paths == 'string' ) {
231
- inbound_paths = JSON.parse( monsterinsights_frontend.inbound_paths );
232
- }
233
-
234
- return inbound_paths;
235
- }
236
-
237
- function __gtagTrackerTrackedClickType( event ) {
238
- if ( event.which == 1 ) {
239
- return 'event.which=1';
240
- } else if ( event.which == 2 ) {
241
- return 'event.which=2';
242
- } else if ( event.metaKey ) {
243
- return 'metaKey';
244
- } else if ( event.ctrlKey ) {
245
- return 'ctrlKey';
246
- } else if ( event.shiftKey ) {
247
- return 'shiftKey';
248
- } else if ( event.altKey ) {
249
- return 'altKey';
250
- } else {
251
- return '';
252
- }
253
- }
254
-
255
- function __gtagTrackerLinkType( el ) {
256
- var download_extensions = __gtagTrackerGetDownloadExtensions();
257
- var inbound_paths = __gtagTrackerGetInboundPaths();
258
- var type = 'unknown';
259
- var link = el.href;
260
- var extension = __gtagTrackerGetExtension( el.href );
261
- var currentdomain = __gtagTrackerGetDomain();
262
- var hostname = el.hostname;
263
- var protocol = el.protocol;
264
- var pathname = el.pathname;
265
- link = link.toString();
266
- var index, len;
267
- var category = el.getAttribute( "data-vars-ga-category" );
268
-
269
- if ( category ) {
270
- return category;
271
- }
272
-
273
- if ( link.match( /^javascript\:/i ) ) {
274
- type = 'internal'; /* if it's a JS link, it's internal */
275
- } else if ( protocol && protocol.length > 0 && (
276
- __gtagTrackerStringTrim( protocol ) == 'tel' || __gtagTrackerStringTrim( protocol ) == 'tel:'
277
- ) ) { /* If it's a telephone link */
278
- type = "tel";
279
- } else if ( protocol && protocol.length > 0 && (
280
- __gtagTrackerStringTrim( protocol ) == 'mailto' || __gtagTrackerStringTrim( protocol ) == 'mailto:'
281
- ) ) { /* If it's a email */
282
- type = "mailto";
283
- } else if ( hostname && currentdomain && hostname.length > 0 && currentdomain.length > 0 && !hostname.endsWith( '.' + currentdomain ) && hostname !== currentdomain ) { /* If it's a outbound */
284
- type = "external";
285
- } else if ( pathname && JSON.stringify( inbound_paths ) != "{}" && pathname.length > 0 ) { /* If it's an internal as outbound */
286
- var inbound_paths_length = inbound_paths.length;
287
- for ( var inbound_paths_index = 0; inbound_paths_index < inbound_paths_length; inbound_paths_index ++ ) {
288
- if ( inbound_paths[inbound_paths_index].path && inbound_paths[inbound_paths_index].label && inbound_paths[inbound_paths_index].path.length > 0 && inbound_paths[inbound_paths_index].label.length > 0 && pathname.startsWith( inbound_paths[inbound_paths_index].path ) ) {
289
- type = "internal-as-outbound";
290
- internalAsOutboundCategory = "outbound-link-" + inbound_paths[inbound_paths_index].label;
291
- break;
292
- }
293
- }
294
- /* Enable window.monsterinsights_experimental_mode at your own risk. We might eventually remove it. Also you may/can/will burn through GA quota for your property quickly. */
295
- } else if ( hostname && window.monsterinsights_experimental_mode && hostname.length > 0 && document.domain.length > 0 && hostname !== document.domain ) { /* If it's a cross-hostname link */
296
- type = "cross-hostname";
297
- }
298
-
299
- if ( extension && (
300
- type === 'unknown' || 'external' === type
301
- ) && download_extensions.length > 0 && extension.length > 0 ) { /* If it's a download */
302
- for ( index = 0, len = download_extensions.length; index < len; ++ index ) {
303
- if ( download_extensions[index].length > 0 && (
304
- link.endsWith( download_extensions[index] ) || download_extensions[index] == extension
305
- ) ) {
306
- type = "download";
307
- break;
308
- }
309
- }
310
- }
311
-
312
- if ( type === 'unknown' ) {
313
- type = 'internal';
314
- }
315
- return type;
316
- }
317
-
318
- function __gtagTrackerLinkTarget( el, event ) {
319
-
320
- /* Is actual target set and not _(self|parent|top)? */
321
- var target = (
322
- el.target && !el.target.match( /^_(self|parent|top)$/i )
323
- ) ? el.target : false;
324
-
325
- /* Assume a target if Ctrl|shift|meta-click */
326
- if ( event.ctrlKey || event.shiftKey || event.metaKey || event.which == 2 ) {
327
- target = "_blank";
328
- }
329
- return target;
330
- }
331
-
332
- function __gtagTrackerGetTitle( el ) {
333
- if ( el.getAttribute( "data-vars-ga-label" ) && el.getAttribute( "data-vars-ga-label" ).replace( /\n/ig, '' ) ) {
334
- return el.getAttribute( "data-vars-ga-label" ).replace( /\n/ig, '' );
335
- } else if ( el.title && el.title.replace( /\n/ig, '' ) ) {
336
- return el.title.replace( /\n/ig, '' );
337
- } else if ( el.innerText && el.innerText.replace( /\n/ig, '' ) ) {
338
- return el.innerText.replace( /\n/ig, '' );
339
- } else if ( el.getAttribute( 'aria-label' ) && el.getAttribute( 'aria-label' ).replace( /\n/ig, '' ) ) {
340
- return el.getAttribute( 'aria-label' ).replace( /\n/ig, '' );
341
- } else if ( el.alt && el.alt.replace( /\n/ig, '' ) ) {
342
- return el.alt.replace( /\n/ig, '' );
343
- } else if ( el.textContent && el.textContent.replace( /\n/ig, '' ) ) {
344
- return el.textContent.replace( /\n/ig, '' );
345
- } else {
346
- return undefined;
347
- }
348
- }
349
-
350
- function __gtagTrackerGetInnerTitle( el ) {
351
- var children = el.children;
352
- var count = 0;
353
- var child;
354
- var value;
355
- for ( var i = 0; i < children.length; i ++ ) {
356
- child = children[i];
357
- value = __gtagTrackerGetTitle( child );
358
- if ( value ) {
359
- return value;
360
- }
361
- /* max search 100 elements to ensure performance */
362
- if ( count == 99 ) {
363
- return undefined;
364
- }
365
- count ++;
366
- }
367
- return undefined;
368
- }
369
-
370
- function __gtagTrackerClickEvent( event ) {
371
- var el = event.srcElement || event.target;
372
- var valuesArray = [];
373
- var fieldsArray;
374
-
375
- /* Start Values Array */
376
- valuesArray.el = el;
377
- valuesArray.click_type = __gtagTrackerTrackedClickType( event );
378
-
379
- /* If GA is blocked or not loaded, or not main|middle|touch click then don't track */
380
- if ( 'undefined' === typeof __gtagTracker || ! __gtagTrackerTrackedClick( event ) ) {
381
- valuesArray.exit = 'loaded';
382
- __gtagTrackerNotSend( valuesArray );
383
- return;
384
- }
385
-
386
- /* Loop up the DOM tree through parent elements if clicked element is not a link (eg: an image inside a link) */
387
- while ( el && (
388
- typeof el.tagName == 'undefined' || el.tagName.toLowerCase() != 'a' || !el.href
389
- ) ) {
390
- el = el.parentNode;
391
- }
392
-
393
- /* if a link with valid href has been clicked */
394
- if ( el && el.href && !el.hasAttribute( 'xlink:href' ) ) {
395
- var link = el.href; /* What link are we tracking */
396
- var extension = __gtagTrackerGetExtension( el.href ); /* What extension is this link */
397
- var download_extensions = __gtagTrackerGetDownloadExtensions(); /* Let's get the extensions to track */
398
- var inbound_paths = __gtagTrackerGetInboundPaths(); /* Let's get the internal paths to track */
399
- var home_url = monsterinsights_frontend.home_url; /* Let's get the url to compare for external/internal use */
400
- var currentdomain = __gtagTrackerGetDomain(); /* What domain are we on? */
401
- var type = __gtagTrackerLinkType( el ); /* What type of link is this? */
402
- var target = __gtagTrackerLinkTarget( el, event ); /* Is a new tab/window being opened? */
403
- var action = el.getAttribute( "data-vars-ga-action" );
404
- var label = el.getAttribute( "data-vars-ga-label" );
405
-
406
- /* Element */
407
- valuesArray.el = el; /* el is an a element so we can parse it */
408
- valuesArray.el_href = el.href; /* "http://example.com:3000/pathname/?search=test#hash" */
409
- valuesArray.el_protocol = el.protocol; /* "http:" */
410
- valuesArray.el_hostname = el.hostname; /* "example.com" */
411
- valuesArray.el_port = el.port; /* "3000" */
412
- valuesArray.el_pathname = el.pathname; /* "/pathname/" */
413
- valuesArray.el_search = el.search; /* "?search=test" */
414
- valuesArray.el_hash = el.hash; /* "#hash" */
415
- valuesArray.el_host = el.host; /* "example.com:3000" */
416
- valuesArray.el_classes = el.getAttribute('class')
417
- valuesArray.el_id = el.id
418
-
419
- /* Settings */
420
- valuesArray.debug_mode = __gtagTrackerIsDebug(); /* "example.com:3000" */
421
- valuesArray.download_extensions = download_extensions; /* Let's get the extensions to track */
422
- valuesArray.inbound_paths = inbound_paths; /* Let's get the internal paths to track */
423
- valuesArray.home_url = home_url; /* Let's get the url to compare for external/internal use */
424
-
425
- /* Parsed/Logic */
426
- valuesArray.link = link; /* What link are we tracking */
427
- valuesArray.extension = extension; /* What extension is this link */
428
- valuesArray.type = type; /* What type of link is this */
429
- valuesArray.target = target; /* Is a new tab/window being opened? */
430
- valuesArray.title = __gtagTrackerGetTitle( el ); /* Try link title, then text content */
431
-
432
- /* only find innerTitle if we need one */
433
- if ( ! valuesArray.label && !valuesArray.title ) {
434
- valuesArray.title = __gtagTrackerGetInnerTitle( el );
435
- }
436
-
437
- /* Let's track everything but internals (that aren't internal-as-externals) and javascript */
438
- if ( type !== 'internal' && type !== 'javascript' ) {
439
-
440
- var __gtagTrackerHitBackRun = false; /* Tracker has not yet run */
441
-
442
- /* HitCallback to open link in same window after tracker */
443
- var __gtagTrackerHitBack = function () {
444
- /* Run the hitback only once */
445
- if ( __gtagTrackerHitBackRun ) {
446
- return;
447
- }
448
- maybePreventBeforeUnload();
449
- __gtagTrackerHitBackRun = true;
450
- window.location.href = link;
451
- };
452
-
453
- var __gtagTrackerNoRedirectExternal = function () {
454
- valuesArray.exit = 'external';
455
- __gtagTrackerNotSend( valuesArray );
456
- };
457
-
458
- var __gtagTrackerNoRedirectInboundAsExternal = function () {
459
- valuesArray.exit = 'internal-as-outbound';
460
- __gtagTrackerNotSend( valuesArray );
461
- };
462
- var __gtagTrackerNoRedirectCrossHostname = function () {
463
- valuesArray.exit = 'cross-hostname';
464
- __gtagTrackerNotSend( valuesArray );
465
- };
466
-
467
- if ( target || type == 'mailto' || type == 'tel' ) { /* If target opens a new window then just track */
468
- if ( type == 'download' ) {
469
- fieldsArray = {
470
- event_category: 'download',
471
- event_label: label || valuesArray.title,
472
- file_extension: valuesArray.extension,
473
- file_name: valuesArray.link.replace(/^.*\//g, ''),
474
- link_text: label || valuesArray.title,
475
- link_url: link,
476
- link_domain: valuesArray.el_hostname,
477
- link_classes: valuesArray.el_classes,
478
- link_id: valuesArray.el_id,
479
- };
480
- } else if ( type == 'tel' ) {
481
- fieldsArray = {
482
- event_category: 'tel',
483
- event_label: label || valuesArray.title.replace( 'tel:', '' ),
484
- tel_number: link.replace( 'tel:', '' ),
485
- link_text: label || valuesArray.title,
486
- link_url: link,
487
- link_classes: valuesArray.el_classes,
488
- link_id: valuesArray.el_id,
489
- };
490
- } else if ( type == 'mailto' ) {
491
- fieldsArray = {
492
- event_category: 'mailto',
493
- event_label: label || valuesArray.title.replace( 'mailto:', '' ),
494
- email_address: link.replace( 'mailto:', '' ),
495
- link_text: label || valuesArray.title.replace( 'mailto:', ''),
496
- link_url: link,
497
- link_classes: valuesArray.el_classes,
498
- link_id: valuesArray.el_id,
499
- };
500
- } else if ( type == 'internal-as-outbound' ) {
501
- fieldsArray = {
502
- event_category: internalAsOutboundCategory,
503
- event_label: label || valuesArray.title,
504
- event_name: 'click',
505
- is_affiliate_link: true,
506
- affiliate_label: internalAsOutboundCategory.replace('outbound-link-', ''),
507
- link_text: label || valuesArray.title,
508
- link_url: link,
509
- link_domain: valuesArray.el_hostname,
510
- link_classes: valuesArray.el_classes,
511
- link_id: valuesArray.el_id,
512
- outbound: true,
513
- };
514
- } else if ( type == 'external' ) {
515
- fieldsArray = {
516
- event_category: 'outbound-link',
517
- event_label: label || valuesArray.title,
518
- is_affiliate_link: false,
519
- link_text: label || valuesArray.title,
520
- link_url: link,
521
- link_domain: valuesArray.el_hostname,
522
- link_classes: valuesArray.el_classes,
523
- link_id: valuesArray.el_id,
524
- outbound: true,
525
- };
526
- } else if ( type == 'cross-hostname' ) {
527
- fieldsArray = {
528
- event_category: 'cross-hostname',
529
- event_label: label || valuesArray.title,
530
- link_text: label || valuesArray.title,
531
- link_url: link,
532
- link_domain: valuesArray.el_hostname,
533
- link_classes: valuesArray.el_classes,
534
- link_id: valuesArray.el_id,
535
- };
536
- }
537
-
538
- if ( fieldsArray ) {
539
- __gtagTrackerSendDual( 'event', action || link, fieldsArray, valuesArray );
540
- } else {
541
- if ( type && type != 'internal' ) {
542
- fieldsArray = {
543
- event_category: type,
544
- event_label: label || valuesArray.title,
545
- link_text: label || valuesArray.title,
546
- link_url: link,
547
- link_domain: valuesArray.el_hostname,
548
- link_classes: valuesArray.el_classes,
549
- link_id: valuesArray.el_id,
550
- };
551
-
552
- __gtagTrackerSendDual( 'event', action || link, fieldsArray, valuesArray );
553
- } else {
554
- valuesArray.exit = 'type';
555
- __gtagTrackerNotSend( valuesArray );
556
- }
557
- }
558
- } else {
559
- /* Prevent standard click, track then open */
560
- if ( type != 'cross-hostname' && type != 'external' && type != 'internal-as-outbound' ) {
561
- if ( !event.defaultPrevented ) {
562
- if ( event.preventDefault ) {
563
- event.preventDefault();
564
- } else {
565
- event.returnValue = false;
566
- }
567
- }
568
- }
569
-
570
- if ( type == 'download' ) {
571
- fieldsArray = {
572
- event_category: 'download',
573
- event_label: label || valuesArray.title,
574
- event_callback: __gtagTrackerHitBack,
575
- file_extension: valuesArray.extension,
576
- file_name: valuesArray.link.replace(/^.*\//g, ''),
577
- link_text: label || valuesArray.title,
578
- link_url: link,
579
- link_domain: valuesArray.el_hostname,
580
- link_classes: valuesArray.el_classes,
581
- link_id: valuesArray.el_id,
582
- };
583
-
584
- __gtagTrackerSendDual( 'event', action || link, fieldsArray, valuesArray );
585
- } else if ( type == 'internal-as-outbound' ) {
586
- beforeUnloadChanged = true;
587
- window.onbeforeunload = function ( e ) {
588
- if ( !event.defaultPrevented ) {
589
- if ( event.preventDefault ) {
590
- event.preventDefault();
591
- } else {
592
- event.returnValue = false;
593
- }
594
- }
595
-
596
- fieldsArray = {
597
- event_category: internalAsOutboundCategory,
598
- event_label: label || valuesArray.title,
599
- event_callback: __gtagTrackerHitBack,
600
- is_affiliate_link: true,
601
- affiliate_label: internalAsOutboundCategory.replace('outbound-link-', ''),
602
- link_text: label || valuesArray.title,
603
- link_url: link,
604
- link_domain: valuesArray.el_hostname,
605
- link_classes: valuesArray.el_classes,
606
- link_id: valuesArray.el_id,
607
- outbound: true,
608
- };
609
-
610
- if ( navigator.sendBeacon ) {
611
- fieldsArray.transport = 'beacon';
612
- }
613
-
614
- __gtagTrackerSendDual( 'event', action || link, fieldsArray, valuesArray );
615
-
616
- setTimeout( __gtagTrackerHitBack, 1000 );
617
- };
618
- } else if ( type == 'external' ) {
619
- beforeUnloadChanged = true;
620
- window.onbeforeunload = function ( e ) {
621
-
622
- fieldsArray = {
623
- event_category: 'outbound-link',
624
- event_label: label || valuesArray.title,
625
- event_callback: __gtagTrackerHitBack,
626
- is_affiliate_link: false,
627
- link_text: label || valuesArray.title,
628
- link_url: link,
629
- link_domain: valuesArray.el_hostname,
630
- link_classes: valuesArray.el_classes,
631
- link_id: valuesArray.el_id,
632
- outbound: true,
633
- };
634
-
635
- if ( navigator.sendBeacon ) {
636
- fieldsArray.transport = 'beacon';
637
- }
638
-
639
- __gtagTrackerSendDual( 'event', action || link, fieldsArray, valuesArray );
640
- };
641
- } else if ( type == 'cross-hostname' ) {
642
- beforeUnloadChanged = true;
643
- window.onbeforeunload = function ( e ) {
644
- if ( !event.defaultPrevented ) {
645
- if ( event.preventDefault ) {
646
- event.preventDefault();
647
- } else {
648
- event.returnValue = false;
649
- }
650
- }
651
-
652
- fieldsArray = {
653
- event_category: 'cross-hostname',
654
- event_label: label || valuesArray.title,
655
- event_callback: __gtagTrackerHitBack,
656
- link_text: label || valuesArray.title,
657
- link_url: link,
658
- link_domain: valuesArray.el_hostname,
659
- link_classes: valuesArray.el_classes,
660
- link_id: valuesArray.el_id,
661
- };
662
-
663
- if ( navigator.sendBeacon ) {
664
- fieldsArray.transport = 'beacon';
665
- }
666
-
667
- __gtagTrackerSendDual( 'event', action || link, fieldsArray, valuesArray );
668
- setTimeout( __gtagTrackerHitBack, 1000 );
669
- };
670
- } else {
671
- if ( type && type !== 'internal' ) {
672
- fieldsArray = {
673
- event_category: type,
674
- event_label: label || valuesArray.title,
675
- event_callback: __gtagTrackerHitBack,
676
- link_text: label || valuesArray.title,
677
- link_url: link,
678
- link_domain: valuesArray.el_hostname,
679
- link_classes: valuesArray.el_classes,
680
- link_id: valuesArray.el_id,
681
- };
682
-
683
- __gtagTrackerSendDual( 'event', action || link, fieldsArray, valuesArray );
684
- } else {
685
- valuesArray.exit = 'type';
686
- __gtagTrackerNotSend( valuesArray );
687
- }
688
- }
689
-
690
- if ( type != 'external' && type != 'cross-hostname' && type != 'internal-as-outbound' ) {
691
- /* Run event_callback again if GA takes longer than 1 second */
692
- setTimeout( __gtagTrackerHitBack, 1000 );
693
- } else {
694
- if ( type == 'external' ) {
695
- setTimeout( __gtagTrackerNoRedirectExternal, 1100 );
696
- } else if ( type == 'cross-hostname' ) {
697
- setTimeout( __gtagTrackerNoRedirectCrossHostname, 1100 );
698
- } else {
699
- setTimeout( __gtagTrackerNoRedirectInboundAsExternal, 1100 );
700
- }
701
- }
702
-
703
- // Clear out the beforeunload event if it was set to avoid sending false events.
704
- setTimeout( maybePreventBeforeUnload, 100 );
705
- }
706
- } else {
707
- maybePreventBeforeUnload();
708
- valuesArray.exit = 'internal';
709
- __gtagTrackerNotSend( valuesArray );
710
- }
711
- } else {
712
- valuesArray.exit = 'notlink';
713
- __gtagTrackerNotSend( valuesArray );
714
- }
715
- }
716
-
717
- var prevHash = window.location.hash;
718
-
719
- function __gtagTrackerHashChangeEvent() {
720
- /* Todo: Ready this section for JS unit testing */
721
- if ( monsterinsights_frontend.hash_tracking === "true" && prevHash != window.location.hash && ( monsterinsights_frontend.ua || monsterinsights_frontend.v4_id ) ) {
722
- prevHash = window.location.hash;
723
- if ( monsterinsights_frontend.ua ) {
724
- __gtagTracker( 'config', monsterinsights_frontend.ua, {
725
- page_path: location.pathname + location.search + location.hash,
726
- } );
727
- }
728
-
729
- if ( monsterinsights_frontend.v4_id ) {
730
- __gtagTracker( 'config', monsterinsights_frontend.v4_id, {
731
- page_path: location.pathname + location.search + location.hash,
732
- } );
733
- }
734
- __gtagTrackerLog( "Hash change to: " + location.pathname + location.search + location.hash );
735
- } else {
736
- __gtagTrackerLog( "Hash change to (untracked): " + location.pathname + location.search + location.hash );
737
- }
738
- }
739
-
740
- function maybePreventBeforeUnload() {
741
- if ( beforeUnloadChanged ) {
742
- window.onbeforeunload = null;
743
- }
744
- }
745
-
746
- /* Attach the event to all clicks in the document after page has loaded */
747
- var __gtagTrackerWindow = window;
748
- if ( __gtagTrackerWindow.addEventListener ) {
749
- __gtagTrackerWindow.addEventListener(
750
- "load",
751
- function () {
752
- document.body.addEventListener(
753
- "click",
754
- __gtagTrackerClickEvent,
755
- false
756
- );
757
- },
758
- false
759
- );
760
- window.addEventListener( "hashchange", __gtagTrackerHashChangeEvent, false );
761
- } else {
762
- if ( __gtagTrackerWindow.attachEvent ) {
763
- __gtagTrackerWindow.attachEvent(
764
- "onload",
765
- function () {
766
- document.body.attachEvent( "onclick", __gtagTrackerClickEvent );
767
- }
768
- );
769
- window.attachEvent( "onhashchange", __gtagTrackerHashChangeEvent );
770
- }
771
- }
772
-
773
- if ( typeof String.prototype.endsWith !== 'function' ) {
774
- String.prototype.endsWith = function ( suffix ) {
775
- return this.indexOf( suffix, this.length - suffix.length ) !== - 1;
776
- };
777
- }
778
- if ( typeof String.prototype.startsWith !== 'function' ) {
779
- String.prototype.startsWith = function ( prefix ) {
780
- return this.indexOf( prefix ) === 0;
781
- };
782
- }
783
-
784
- if ( typeof Array.prototype.lastIndexOf !== 'function' ) {
785
- Array.prototype.lastIndexOf = function ( searchElement /*, fromIndex*/ ) {
786
- 'use strict';
787
-
788
- if ( this === void 0 || this === null ) {
789
- throw new TypeError();
790
- }
791
-
792
- var n, k,
793
- t = Object( this ),
794
- len = t.length >>> 0; /* jshint ignore:line */
795
- if ( len === 0 ) {
796
- return - 1;
797
- }
798
-
799
- n = len - 1;
800
- if ( arguments.length > 1 ) {
801
- n = Number( arguments[1] );
802
- if ( n != n ) {
803
- n = 0;
804
- } else if ( n != 0 && n != (
805
- 1 / 0
806
- ) && n != - (
807
- 1 / 0
808
- ) ) { /* jshint ignore:line */
809
- n = (
810
- n > 0 || - 1
811
- ) * Math.floor( Math.abs( n ) );
812
- }
813
- }
814
-
815
- for ( k = n >= 0 ? Math.min( n, len - 1 ) : len - Math.abs( n ); k >= 0; k -- ) {
816
- if ( k in t && t[k] === searchElement ) {
817
- return k;
818
- }
819
- }
820
- return - 1;
821
- };
822
- }
823
  };
824
  var MonsterInsightsObject = new MonsterInsights();
11
  * @since 7.15.0
12
  */
13
  var MonsterInsights = function () {
14
+ /* MonsterInsights JS events tracking works on all major browsers, including IE starting at IE 7, via polyfills for any major JS function used that
15
+ is not supported by at least 95% of the global and/or US browser marketshare. Currently, IE 7 & 8 which as of 2/14/17 have under 0.25% global marketshare, require
16
+ us to polyfill Array.prototype.lastIndexOf, and if they continue to drop, we might remove this polyfill at some point. In that case note that events tracking
17
+ for IE 7/8 will continue to work, with the exception of events tracking of downloads. */
18
+ var lastClicked = [];
19
+ var internalAsOutboundCategory = '';
20
+ var beforeUnloadChanged = false;
21
+
22
+ this.setLastClicked = function (valuesArray, fieldsArray, tracked) {
23
+ valuesArray = typeof valuesArray !== 'undefined' ? valuesArray : [];
24
+ fieldsArray = typeof fieldsArray !== 'undefined' ? fieldsArray : [];
25
+ tracked = typeof tracked !== 'undefined' ? tracked : false;
26
+
27
+ lastClicked.valuesArray = valuesArray;
28
+ lastClicked.fieldsArray = fieldsArray;
29
+ };
30
+
31
+ this.getLastClicked = function () {
32
+ return lastClicked;
33
+ };
34
+
35
+ this.setInternalAsOutboundCategory = function (category) {
36
+ internalAsOutboundCategory = category;
37
+ };
38
+
39
+ this.getInternalAsOutboundCategory = function () {
40
+ return internalAsOutboundCategory;
41
+ };
42
+
43
+ this.sendEvent = function (type, action, fieldsArray) {
44
+ __gtagTrackerSend(type, action, fieldsArray, []);
45
+ };
46
+
47
+ function __gtagTrackerIsDebug() {
48
+ if (window.monsterinsights_debug_mode) {
49
+ return true;
50
+ } else {
51
+ return false;
52
+ }
53
+ }
54
+
55
+ function cloneFields(fields, allowedKeys, disallowedKeys) {
56
+ var clone = {};
57
+
58
+ for (var key in fields) {
59
+ if (!fields.hasOwnProperty(key)) {
60
+ continue
61
+ }
62
+
63
+ if (allowedKeys && allowedKeys.indexOf(key) === -1) {
64
+ continue
65
+ }
66
+
67
+ if (disallowedKeys && disallowedKeys.indexOf(key) > -1) {
68
+ continue
69
+ }
70
+
71
+ clone[key] = fields[key];
72
+ }
73
+
74
+ return clone;
75
+ }
76
+
77
+ function __gtagMaybeTrackerV4(type, action, fieldsArray) {
78
+ if (!monsterinsights_frontend.v4_id || type !== 'event') {
79
+ return;
80
+ }
81
+
82
+ var eventCategory = fieldsArray.event_category || '';
83
+
84
+ var fieldsToRemove = [
85
+ 'event_name',
86
+ 'event_category',
87
+ 'event_label',
88
+ 'value',
89
+ ];
90
+
91
+ var fields = cloneFields(fieldsArray, null, fieldsToRemove);
92
+ fields.action = action;
93
+ fields.send_to = monsterinsights_frontend.v4_id;
94
+
95
+ let hitType = eventCategory.replace('-', '_');
96
+ if (eventCategory.indexOf('outbound-link') !== -1) {
97
+ hitType = 'click'
98
+ } else if (eventCategory === 'download') {
99
+ hitType = 'file_download'
100
+ }
101
+
102
+ __gtagTracker(type, hitType, fields);
103
+ }
104
+
105
+ function __gtagMaybeTrackerUA(type, action, fieldsArray) {
106
+ if (!monsterinsights_frontend.ua) {
107
+ return;
108
+ }
109
+
110
+ var allowedFields = [
111
+ 'event_category',
112
+ 'event_label',
113
+ 'value',
114
+ ];
115
+
116
+ var uaFields = cloneFields(fieldsArray, allowedFields);
117
+ uaFields.send_to = monsterinsights_frontend.ua;
118
+
119
+ __gtagTracker(type, action, uaFields);
120
+ }
121
+
122
+ function __gtagTrackerSendDual(type, action, fieldsArray, valuesArray) {
123
+ type = typeof type !== 'undefined' ? type : 'event';
124
+ action = typeof action !== 'undefined' ? action : '';
125
+ valuesArray = typeof valuesArray !== 'undefined' ? valuesArray : [];
126
+ fieldsArray = typeof fieldsArray !== 'undefined' ? fieldsArray : {};
127
+
128
+ __gtagMaybeTrackerUA(type, action, fieldsArray);
129
+ __gtagMaybeTrackerV4(type, action, fieldsArray);
130
+
131
+ lastClicked.valuesArray = valuesArray;
132
+ lastClicked.fieldsArray = fieldsArray;
133
+ lastClicked.fieldsArray.event_action = action;
134
+ lastClicked.tracked = true;
135
+ __gtagTrackerLog('Tracked: ' + valuesArray.type);
136
+ __gtagTrackerLog(lastClicked);
137
+ }
138
+
139
+ /**
140
+ * This attempts to be compatible with the gtag function.
141
+ *
142
+ * @see https://developers.google.com/analytics/devguides/collection/gtagjs
143
+ * @param type string Type of request, event, timing, config.
144
+ * @param action string Event action or UA for config.
145
+ * @param fieldsArray object The configuration object.
146
+ * @param valuesArray object The values for the log.
147
+ * @private
148
+ */
149
+ function __gtagTrackerSend(type, action, fieldsArray, valuesArray) {
150
+ type = typeof type !== 'undefined' ? type : 'event';
151
+ action = typeof action !== 'undefined' ? action : '';
152
+ valuesArray = typeof valuesArray !== 'undefined' ? valuesArray : [];
153
+ fieldsArray = typeof fieldsArray !== 'undefined' ? fieldsArray : {};
154
+
155
+ __gtagTracker(type, action, fieldsArray);
156
+
157
+ lastClicked.valuesArray = valuesArray;
158
+ lastClicked.fieldsArray = fieldsArray;
159
+ lastClicked.fieldsArray.event_action = action;
160
+ lastClicked.tracked = true;
161
+ __gtagTrackerLog('Tracked: ' + valuesArray.type);
162
+ __gtagTrackerLog(lastClicked);
163
+ }
164
+
165
+ function __gtagTrackerNotSend(valuesArray) {
166
+ valuesArray = typeof valuesArray !== 'undefined' ? valuesArray : [];
167
+
168
+ lastClicked.valuesArray = valuesArray;
169
+ lastClicked.fieldsArray = [];
170
+ lastClicked.tracked = false;
171
+ __gtagTrackerLog('Not Tracked: ' + valuesArray.exit);
172
+ __gtagTrackerLog(lastClicked);
173
+ }
174
+
175
+ function __gtagTrackerLog(message) {
176
+ if (__gtagTrackerIsDebug()) {
177
+ console.dir(message);
178
+ }
179
+ }
180
+
181
+ function __gtagTrackerStringTrim(x) {
182
+ return x.replace(/^\s+|\s+$/gm, '');
183
+ }
184
+
185
+ function __gtagTrackerGetDomain() {
186
+ var i = 0, currentdomain = document.domain, p = currentdomain.split('.'), s = '_gd' + (
187
+ new Date()
188
+ ).getTime();
189
+ while (i < (p.length - 1) && document.cookie.indexOf(s + '=' + s) == -1) {
190
+ currentdomain = p.slice(-1 - (
191
+ ++i
192
+ )).join('.');
193
+ document.cookie = s + "=" + s + ";domain=" + currentdomain + ";";
194
+ }
195
+ document.cookie = s + "=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain=" + currentdomain + ";";
196
+ return currentdomain;
197
+ }
198
+
199
+ function __gtagTrackerGetExtension(extension) {
200
+ extension = extension.toString();
201
+ extension = extension.substring(0, (
202
+ extension.indexOf("#") == -1
203
+ ) ? extension.length : extension.indexOf("#")); /* Remove the anchor at the end, if there is one */
204
+ extension = extension.substring(0, (
205
+ extension.indexOf("?") == -1
206
+ ) ? extension.length : extension.indexOf("?")); /* Remove the query after the file name, if there is one */
207
+ extension = extension.substring(extension.lastIndexOf("/") + 1, extension.length); /* Remove everything before the last slash in the path */
208
+ if (extension.length > 0 && extension.indexOf('.') !== -1) { /* If there's a period left in the URL, then there's a extension. Else it is not a extension. */
209
+ extension = extension.substring(extension.lastIndexOf(".") + 1); /* Remove everything but what's after the first period */
210
+ return extension;
211
+ } else {
212
+ return "";
213
+ }
214
+ }
215
+
216
+ function __gtagTrackerTrackedClick(event) {
217
+ return event.which == 1 || event.which == 2 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
218
+ }
219
+
220
+ function __gtagTrackerGetDownloadExtensions() {
221
+ var download_extensions = [];
222
+ if (typeof monsterinsights_frontend.download_extensions == 'string') {
223
+ download_extensions = monsterinsights_frontend.download_extensions.split(",");
224
+ }
225
+ return download_extensions;
226
+ }
227
+
228
+ function __gtagTrackerGetInboundPaths() {
229
+ var inbound_paths = [];
230
+ if (typeof monsterinsights_frontend.inbound_paths == 'string') {
231
+ inbound_paths = JSON.parse(monsterinsights_frontend.inbound_paths);
232
+ }
233
+
234
+ return inbound_paths;
235
+ }
236
+
237
+ function __gtagTrackerTrackedClickType(event) {
238
+ if (event.which == 1) {
239
+ return 'event.which=1';
240
+ } else if (event.which == 2) {
241
+ return 'event.which=2';
242
+ } else if (event.metaKey) {
243
+ return 'metaKey';
244
+ } else if (event.ctrlKey) {
245
+ return 'ctrlKey';
246
+ } else if (event.shiftKey) {
247
+ return 'shiftKey';
248
+ } else if (event.altKey) {
249
+ return 'altKey';
250
+ } else {
251
+ return '';
252
+ }
253
+ }
254
+
255
+ function __gtagTrackerLinkType(el) {
256
+ var download_extensions = __gtagTrackerGetDownloadExtensions();
257
+ var inbound_paths = __gtagTrackerGetInboundPaths();
258
+ var type = 'unknown';
259
+ var link = el.href;
260
+ var extension = __gtagTrackerGetExtension(el.href);
261
+ var currentdomain = __gtagTrackerGetDomain();
262
+ var hostname = el.hostname;
263
+ var protocol = el.protocol;
264
+ var pathname = el.pathname;
265
+ link = link.toString();
266
+ var index, len;
267
+ var category = el.getAttribute("data-vars-ga-category");
268
+
269
+ if (category) {
270
+ return category;
271
+ }
272
+
273
+ if (link.match(/^javascript\:/i)) {
274
+ type = 'internal'; /* if it's a JS link, it's internal */
275
+ } else if (protocol && protocol.length > 0 && (
276
+ __gtagTrackerStringTrim(protocol) == 'tel' || __gtagTrackerStringTrim(protocol) == 'tel:'
277
+ )) { /* If it's a telephone link */
278
+ type = "tel";
279
+ } else if (protocol && protocol.length > 0 && (
280
+ __gtagTrackerStringTrim(protocol) == 'mailto' || __gtagTrackerStringTrim(protocol) == 'mailto:'
281
+ )) { /* If it's a email */
282
+ type = "mailto";
283
+ } else if (hostname && currentdomain && hostname.length > 0 && currentdomain.length > 0 && !hostname.endsWith('.' + currentdomain) && hostname !== currentdomain) { /* If it's a outbound */
284
+ type = "external";
285
+ } else if (pathname && JSON.stringify(inbound_paths) != "{}" && pathname.length > 0) { /* If it's an internal as outbound */
286
+ var inbound_paths_length = inbound_paths.length;
287
+ for (var inbound_paths_index = 0; inbound_paths_index < inbound_paths_length; inbound_paths_index++) {
288
+ if (inbound_paths[inbound_paths_index].path && inbound_paths[inbound_paths_index].label && inbound_paths[inbound_paths_index].path.length > 0 && inbound_paths[inbound_paths_index].label.length > 0 && pathname.startsWith(inbound_paths[inbound_paths_index].path)) {
289
+ type = "internal-as-outbound";
290
+ internalAsOutboundCategory = "outbound-link-" + inbound_paths[inbound_paths_index].label;
291
+ break;
292
+ }
293
+ }
294
+ /* Enable window.monsterinsights_experimental_mode at your own risk. We might eventually remove it. Also you may/can/will burn through GA quota for your property quickly. */
295
+ } else if (hostname && window.monsterinsights_experimental_mode && hostname.length > 0 && document.domain.length > 0 && hostname !== document.domain) { /* If it's a cross-hostname link */
296
+ type = "cross-hostname";
297
+ }
298
+
299
+ if (extension && (
300
+ type === 'unknown' || 'external' === type
301
+ ) && download_extensions.length > 0 && extension.length > 0) { /* If it's a download */
302
+ for (index = 0, len = download_extensions.length; index < len; ++index) {
303
+ if (download_extensions[index].length > 0 && (
304
+ link.endsWith(download_extensions[index]) || download_extensions[index] == extension
305
+ )) {
306
+ type = "download";
307
+ break;
308
+ }
309
+ }
310
+ }
311
+
312
+ if (type === 'unknown') {
313
+ type = 'internal';
314
+ }
315
+ return type;
316
+ }
317
+
318
+ function __gtagTrackerLinkTarget(el, event) {
319
+
320
+ /* Is actual target set and not _(self|parent|top)? */
321
+ var target = (
322
+ el.target && !el.target.match(/^_(self|parent|top)$/i)
323
+ ) ? el.target : false;
324
+
325
+ /* Assume a target if Ctrl|shift|meta-click */
326
+ if (event.ctrlKey || event.shiftKey || event.metaKey || event.which == 2) {
327
+ target = "_blank";
328
+ }
329
+ return target;
330
+ }
331
+
332
+ function __gtagTrackerGetTitle(el) {
333
+ if (el.getAttribute("data-vars-ga-label") && el.getAttribute("data-vars-ga-label").replace(/\n/ig, '')) {
334
+ return el.getAttribute("data-vars-ga-label").replace(/\n/ig, '');
335
+ } else if (el.title && el.title.replace(/\n/ig, '')) {
336
+ return el.title.replace(/\n/ig, '');
337
+ } else if (el.innerText && el.innerText.replace(/\n/ig, '')) {
338
+ return el.innerText.replace(/\n/ig, '');
339
+ } else if (el.getAttribute('aria-label') && el.getAttribute('aria-label').replace(/\n/ig, '')) {
340
+ return el.getAttribute('aria-label').replace(/\n/ig, '');
341
+ } else if (el.alt && el.alt.replace(/\n/ig, '')) {
342
+ return el.alt.replace(/\n/ig, '');
343
+ } else if (el.textContent && el.textContent.replace(/\n/ig, '')) {
344
+ return el.textContent.replace(/\n/ig, '');
345
+ } else {
346
+ return undefined;
347
+ }
348
+ }
349
+
350
+ function __gtagTrackerGetInnerTitle(el) {
351
+ var children = el.children;
352
+ var count = 0;
353
+ var child;
354
+ var value;
355
+ for (var i = 0; i < children.length; i++) {
356
+ child = children[i];
357
+ value = __gtagTrackerGetTitle(child);
358
+ if (value) {
359
+ return value;
360
+ }
361
+ /* max search 100 elements to ensure performance */
362
+ if (count == 99) {
363
+ return undefined;
364
+ }
365
+ count++;
366
+ }
367
+ return undefined;
368
+ }
369
+
370
+ function __gtagTrackerClickEvent(event) {
371
+ var el = event.srcElement || event.target;
372
+ var valuesArray = [];
373
+ var fieldsArray;
374
+
375
+ /* Start Values Array */
376
+ valuesArray.el = el;
377
+ valuesArray.click_type = __gtagTrackerTrackedClickType(event);
378
+
379
+ /* If GA is blocked or not loaded, or not main|middle|touch click then don't track */
380
+ if ('undefined' === typeof __gtagTracker || !__gtagTrackerTrackedClick(event)) {
381
+ valuesArray.exit = 'loaded';
382
+ __gtagTrackerNotSend(valuesArray);
383
+ return;
384
+ }
385
+
386
+ /* Loop up the DOM tree through parent elements if clicked element is not a link (eg: an image inside a link) */
387
+ while (el && (
388
+ typeof el.tagName == 'undefined' || el.tagName.toLowerCase() != 'a' || !el.href
389
+ )) {
390
+ el = el.parentNode;
391
+ }
392
+
393
+ /* if a link with valid href has been clicked */
394
+ if (el && el.href && !el.hasAttribute('xlink:href')) {
395
+ var link = el.href; /* What link are we tracking */
396
+ var extension = __gtagTrackerGetExtension(el.href); /* What extension is this link */
397
+ var download_extensions = __gtagTrackerGetDownloadExtensions(); /* Let's get the extensions to track */
398
+ var inbound_paths = __gtagTrackerGetInboundPaths(); /* Let's get the internal paths to track */
399
+ var home_url = monsterinsights_frontend.home_url; /* Let's get the url to compare for external/internal use */
400
+ var currentdomain = __gtagTrackerGetDomain(); /* What domain are we on? */
401
+ var type = __gtagTrackerLinkType(el); /* What type of link is this? */
402
+ var target = __gtagTrackerLinkTarget(el, event); /* Is a new tab/window being opened? */
403
+ var action = el.getAttribute("data-vars-ga-action");
404
+ var label = el.getAttribute("data-vars-ga-label");
405
+
406
+ /* Element */
407
+ valuesArray.el = el; /* el is an a element so we can parse it */
408
+ valuesArray.el_href = el.href; /* "http://example.com:3000/pathname/?search=test#hash" */
409
+ valuesArray.el_protocol = el.protocol; /* "http:" */
410
+ valuesArray.el_hostname = el.hostname; /* "example.com" */
411
+ valuesArray.el_port = el.port; /* "3000" */
412
+ valuesArray.el_pathname = el.pathname; /* "/pathname/" */
413
+ valuesArray.el_search = el.search; /* "?search=test" */
414
+ valuesArray.el_hash = el.hash; /* "#hash" */
415
+ valuesArray.el_host = el.host; /* "example.com:3000" */
416
+ valuesArray.el_classes = el.getAttribute('class')
417
+ valuesArray.el_id = el.id
418
+
419
+ /* Settings */
420
+ valuesArray.debug_mode = __gtagTrackerIsDebug(); /* "example.com:3000" */
421
+ valuesArray.download_extensions = download_extensions; /* Let's get the extensions to track */
422
+ valuesArray.inbound_paths = inbound_paths; /* Let's get the internal paths to track */
423
+ valuesArray.home_url = home_url; /* Let's get the url to compare for external/internal use */
424
+
425
+ /* Parsed/Logic */
426
+ valuesArray.link = link; /* What link are we tracking */
427
+ valuesArray.extension = extension; /* What extension is this link */
428
+ valuesArray.type = type; /* What type of link is this */
429
+ valuesArray.target = target; /* Is a new tab/window being opened? */
430
+ valuesArray.title = __gtagTrackerGetTitle(el); /* Try link title, then text content */
431
+
432
+ /* only find innerTitle if we need one */
433
+ if (!valuesArray.label && !valuesArray.title) {
434
+ valuesArray.title = __gtagTrackerGetInnerTitle(el);
435
+ }
436
+
437
+ /* Let's track everything but internals (that aren't internal-as-externals) and javascript */
438
+ if (type !== 'internal' && type !== 'javascript') {
439
+
440
+ var __gtagTrackerHitBackRun = false; /* Tracker has not yet run */
441
+
442
+ /* HitCallback to open link in same window after tracker */
443
+ var __gtagTrackerHitBack = function () {
444
+ /* Run the hitback only once */
445
+ if (__gtagTrackerHitBackRun) {
446
+ return;
447
+ }
448
+ maybePreventBeforeUnload();
449
+ __gtagTrackerHitBackRun = true;
450
+ window.location.href = link;
451
+ };
452
+
453
+ var __gtagTrackerNoRedirectExternal = function () {
454
+ valuesArray.exit = 'external';
455
+ __gtagTrackerNotSend(valuesArray);
456
+ };
457
+
458
+ var __gtagTrackerNoRedirectInboundAsExternal = function () {
459
+ valuesArray.exit = 'internal-as-outbound';
460
+ __gtagTrackerNotSend(valuesArray);
461
+ };
462
+ var __gtagTrackerNoRedirectCrossHostname = function () {
463
+ valuesArray.exit = 'cross-hostname';
464
+ __gtagTrackerNotSend(valuesArray);
465
+ };
466
+
467
+ if (target || type == 'mailto' || type == 'tel') { /* If target opens a new window then just track */
468
+ if (type == 'download') {
469
+ fieldsArray = {
470
+ event_category: 'download',
471
+ event_label: label || valuesArray.title,
472
+ file_extension: valuesArray.extension,
473
+ file_name: valuesArray.link.replace(/^.*\//g, ''),
474
+ link_text: label || valuesArray.title,
475
+ link_url: link,
476
+ link_domain: valuesArray.el_hostname,
477
+ link_classes: valuesArray.el_classes,
478
+ link_id: valuesArray.el_id,
479
+ };
480
+ } else if (type == 'tel') {
481
+ fieldsArray = {
482
+ event_category: 'tel',
483
+ event_label: label || valuesArray.title.replace('tel:', ''),
484
+ tel_number: link.replace('tel:', ''),
485
+ link_text: label || valuesArray.title,
486
+ link_url: link,
487
+ link_classes: valuesArray.el_classes,
488
+ link_id: valuesArray.el_id,
489
+ };
490
+ } else if (type == 'mailto') {
491
+ fieldsArray = {
492
+ event_category: 'mailto',
493
+ event_label: label || valuesArray.title.replace('mailto:', ''),
494
+ email_address: link.replace('mailto:', ''),
495
+ link_text: label || valuesArray.title.replace('mailto:', ''),
496
+ link_url: link,
497
+ link_classes: valuesArray.el_classes,
498
+ link_id: valuesArray.el_id,
499
+ };
500
+ } else if (type == 'internal-as-outbound') {
501
+ fieldsArray = {
502
+ event_category: internalAsOutboundCategory,
503
+ event_label: label || valuesArray.title,
504
+ event_name: 'click',
505
+ is_affiliate_link: true,
506
+ affiliate_label: internalAsOutboundCategory.replace('outbound-link-', ''),
507
+ link_text: label || valuesArray.title,
508
+ link_url: link,
509
+ link_domain: valuesArray.el_hostname,
510
+ link_classes: valuesArray.el_classes,
511
+ link_id: valuesArray.el_id,
512
+ outbound: true,
513
+ };
514
+ } else if (type == 'external') {
515
+ fieldsArray = {
516
+ event_category: 'outbound-link',
517
+ event_label: label || valuesArray.title,
518
+ is_affiliate_link: false,
519
+ link_text: label || valuesArray.title,
520
+ link_url: link,
521
+ link_domain: valuesArray.el_hostname,
522
+ link_classes: valuesArray.el_classes,
523
+ link_id: valuesArray.el_id,
524
+ outbound: true,
525
+ };
526
+ } else if (type == 'cross-hostname') {
527
+ fieldsArray = {
528
+ event_category: 'cross-hostname',
529
+ event_label: label || valuesArray.title,
530
+ link_text: label || valuesArray.title,
531
+ link_url: link,
532
+ link_domain: valuesArray.el_hostname,
533
+ link_classes: valuesArray.el_classes,
534
+ link_id: valuesArray.el_id,
535
+ };
536
+ }
537
+
538
+ if (fieldsArray) {
539
+ __gtagTrackerSendDual('event', action || link, fieldsArray, valuesArray);
540
+ } else {
541
+ if (type && type != 'internal') {
542
+ fieldsArray = {
543
+ event_category: type,
544
+ event_label: label || valuesArray.title,
545
+ link_text: label || valuesArray.title,
546
+ link_url: link,
547
+ link_domain: valuesArray.el_hostname,
548
+ link_classes: valuesArray.el_classes,
549
+ link_id: valuesArray.el_id,
550
+ };
551
+
552
+ __gtagTrackerSendDual('event', action || link, fieldsArray, valuesArray);
553
+ } else {
554
+ valuesArray.exit = 'type';
555
+ __gtagTrackerNotSend(valuesArray);
556
+ }
557
+ }
558
+ } else {
559
+ /* Prevent standard click, track then open */
560
+ if (type != 'cross-hostname' && type != 'external' && type != 'internal-as-outbound') {
561
+ if (!event.defaultPrevented) {
562
+ if (event.preventDefault) {
563
+ event.preventDefault();
564
+ } else {
565
+ event.returnValue = false;
566
+ }
567
+ }
568
+ }
569
+
570
+ if (type == 'download') {
571
+ fieldsArray = {
572
+ event_category: 'download',
573
+ event_label: label || valuesArray.title,
574
+ event_callback: __gtagTrackerHitBack,
575
+ file_extension: valuesArray.extension,
576
+ file_name: valuesArray.link.replace(/^.*\//g, ''),
577
+ link_text: label || valuesArray.title,
578
+ link_url: link,
579
+ link_domain: valuesArray.el_hostname,
580
+ link_classes: valuesArray.el_classes,
581
+ link_id: valuesArray.el_id,
582
+ };
583
+
584
+ __gtagTrackerSendDual('event', action || link, fieldsArray, valuesArray);
585
+ } else if (type == 'internal-as-outbound') {
586
+ beforeUnloadChanged = true;
587
+ window.onbeforeunload = function (e) {
588
+ if (!event.defaultPrevented) {
589
+ if (event.preventDefault) {
590
+ event.preventDefault();
591
+ } else {
592
+ event.returnValue = false;
593
+ }
594
+ }
595
+
596
+ fieldsArray = {
597
+ event_category: internalAsOutboundCategory,
598
+ event_label: label || valuesArray.title,
599
+ event_callback: __gtagTrackerHitBack,
600
+ is_affiliate_link: true,
601
+ affiliate_label: internalAsOutboundCategory.replace('outbound-link-', ''),
602
+ link_text: label || valuesArray.title,
603
+ link_url: link,
604
+ link_domain: valuesArray.el_hostname,
605
+ link_classes: valuesArray.el_classes,
606
+ link_id: valuesArray.el_id,
607
+ outbound: true,
608
+ };
609
+
610
+ if (navigator.sendBeacon) {
611
+ fieldsArray.transport = 'beacon';
612
+ }
613
+
614
+ __gtagTrackerSendDual('event', action || link, fieldsArray, valuesArray);
615
+
616
+ setTimeout(__gtagTrackerHitBack, 1000);
617
+ };
618
+ } else if (type == 'external') {
619
+ beforeUnloadChanged = true;
620
+ window.onbeforeunload = function (e) {
621
+
622
+ fieldsArray = {
623
+ event_category: 'outbound-link',
624
+ event_label: label || valuesArray.title,
625
+ event_callback: __gtagTrackerHitBack,
626
+ is_affiliate_link: false,
627
+ link_text: label || valuesArray.title,
628
+ link_url: link,
629
+ link_domain: valuesArray.el_hostname,
630
+ link_classes: valuesArray.el_classes,
631
+ link_id: valuesArray.el_id,
632
+ outbound: true,
633
+ };
634
+
635
+ if (navigator.sendBeacon) {
636
+ fieldsArray.transport = 'beacon';
637
+ }
638
+
639
+ __gtagTrackerSendDual('event', action || link, fieldsArray, valuesArray);
640
+ };
641
+ } else if (type == 'cross-hostname') {
642
+ beforeUnloadChanged = true;
643
+ window.onbeforeunload = function (e) {
644
+ if (!event.defaultPrevented) {
645
+ if (event.preventDefault) {
646
+ event.preventDefault();
647
+ } else {
648
+ event.returnValue = false;
649
+ }
650
+ }
651
+
652
+ fieldsArray = {
653
+ event_category: 'cross-hostname',
654
+ event_label: label || valuesArray.title,
655
+ event_callback: __gtagTrackerHitBack,
656
+ link_text: label || valuesArray.title,
657
+ link_url: link,
658
+ link_domain: valuesArray.el_hostname,
659
+ link_classes: valuesArray.el_classes,
660
+ link_id: valuesArray.el_id,
661
+ };
662
+
663
+ if (navigator.sendBeacon) {
664
+ fieldsArray.transport = 'beacon';
665
+ }
666
+
667
+ __gtagTrackerSendDual('event', action || link, fieldsArray, valuesArray);
668
+ setTimeout(__gtagTrackerHitBack, 1000);
669
+ };
670
+ } else {
671
+ if (type && type !== 'internal') {
672
+ fieldsArray = {
673
+ event_category: type,
674
+ event_label: label || valuesArray.title,
675
+ event_callback: __gtagTrackerHitBack,
676
+ link_text: label || valuesArray.title,
677
+ link_url: link,
678
+ link_domain: valuesArray.el_hostname,
679
+ link_classes: valuesArray.el_classes,
680
+ link_id: valuesArray.el_id,
681
+ };
682
+
683
+ __gtagTrackerSendDual('event', action || link, fieldsArray, valuesArray);
684
+ } else {
685
+ valuesArray.exit = 'type';
686
+ __gtagTrackerNotSend(valuesArray);
687
+ }
688
+ }
689
+
690
+ if (type != 'external' && type != 'cross-hostname' && type != 'internal-as-outbound') {
691
+ /* Run event_callback again if GA takes longer than 1 second */
692
+ setTimeout(__gtagTrackerHitBack, 1000);
693
+ } else {
694
+ if (type == 'external') {
695
+ setTimeout(__gtagTrackerNoRedirectExternal, 1100);
696
+ } else if (type == 'cross-hostname') {
697
+ setTimeout(__gtagTrackerNoRedirectCrossHostname, 1100);
698
+ } else {
699
+ setTimeout(__gtagTrackerNoRedirectInboundAsExternal, 1100);
700
+ }
701
+ }
702
+
703
+ // Clear out the beforeunload event if it was set to avoid sending false events.
704
+ setTimeout(maybePreventBeforeUnload, 100);
705
+ }
706
+ } else {
707
+ maybePreventBeforeUnload();
708
+ valuesArray.exit = 'internal';
709
+ __gtagTrackerNotSend(valuesArray);
710
+ }
711
+ } else {
712
+ valuesArray.exit = 'notlink';
713
+ __gtagTrackerNotSend(valuesArray);
714
+ }
715
+ }
716
+
717
+ var prevHash = window.location.hash;
718
+
719
+ function __gtagTrackerHashChangeEvent() {
720
+ /* Todo: Ready this section for JS unit testing */
721
+ if (monsterinsights_frontend.hash_tracking === "true" && prevHash != window.location.hash && (monsterinsights_frontend.ua || monsterinsights_frontend.v4_id)) {
722
+ prevHash = window.location.hash;
723
+ if (monsterinsights_frontend.ua) {
724
+ __gtagTracker('config', monsterinsights_frontend.ua, {
725
+ page_path: location.pathname + location.search + location.hash,
726
+ });
727
+ }
728
+
729
+ if (monsterinsights_frontend.v4_id) {
730
+ __gtagTracker('config', monsterinsights_frontend.v4_id, {
731
+ page_path: location.pathname + location.search + location.hash,
732
+ });
733
+ }
734
+ __gtagTrackerLog("Hash change to: " + location.pathname + location.search + location.hash);
735
+ } else {
736
+ __gtagTrackerLog("Hash change to (untracked): " + location.pathname + location.search + location.hash);
737
+ }
738
+ }
739
+
740
+ function maybePreventBeforeUnload() {
741
+ if (beforeUnloadChanged) {
742
+ window.onbeforeunload = null;
743
+ }
744
+ }
745
+
746
+ /* Attach the event to all clicks in the document after page has loaded */
747
+ var __gtagTrackerWindow = window;
748
+ if (__gtagTrackerWindow.addEventListener) {
749
+ __gtagTrackerWindow.addEventListener(
750
+ "load",
751
+ function () {
752
+ document.body.addEventListener(
753
+ "click",
754
+ __gtagTrackerClickEvent,
755
+ false
756
+ );
757
+ },
758
+ false
759
+ );
760
+ window.addEventListener("hashchange", __gtagTrackerHashChangeEvent, false);
761
+ } else {
762
+ if (__gtagTrackerWindow.attachEvent) {
763
+ __gtagTrackerWindow.attachEvent(
764
+ "onload",
765
+ function () {
766
+ document.body.attachEvent("onclick", __gtagTrackerClickEvent);
767
+ }
768
+ );
769
+ window.attachEvent("onhashchange", __gtagTrackerHashChangeEvent);
770
+ }
771
+ }
772
+
773
+ if (typeof String.prototype.endsWith !== 'function') {
774
+ String.prototype.endsWith = function (suffix) {
775
+ return this.indexOf(suffix, this.length - suffix.length) !== -1;
776
+ };
777
+ }
778
+ if (typeof String.prototype.startsWith !== 'function') {
779
+ String.prototype.startsWith = function (prefix) {
780
+ return this.indexOf(prefix) === 0;
781
+ };
782
+ }
783
+
784
+ if (typeof Array.prototype.lastIndexOf !== 'function') {
785
+ Array.prototype.lastIndexOf = function (searchElement /*, fromIndex*/) {
786
+ 'use strict';
787
+
788
+ if (this === void 0 || this === null) {
789
+ throw new TypeError();
790
+ }
791
+
792
+ var n, k,
793
+ t = Object(this),
794
+ len = t.length >>> 0; /* jshint ignore:line */
795
+ if (len === 0) {
796
+ return -1;
797
+ }
798
+
799
+ n = len - 1;
800
+ if (arguments.length > 1) {
801
+ n = Number(arguments[1]);
802
+ if (n != n) {
803
+ n = 0;
804
+ } else if (n != 0 && n != (
805
+ 1 / 0
806
+ ) && n != -(
807
+ 1 / 0
808
+ )) { /* jshint ignore:line */
809
+ n = (
810
+ n > 0 || -1
811
+ ) * Math.floor(Math.abs(n));
812
+ }
813
+ }
814
+
815
+ for (k = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n); k >= 0; k--) {
816
+ if (k in t && t[k] === searchElement) {
817
+ return k;
818
+ }
819
+ }
820
+ return -1;
821
+ };
822
+ }
823
  };
824
  var MonsterInsightsObject = new MonsterInsights();
assets/js/frontend.js CHANGED
@@ -10,634 +10,635 @@
10
  *
11
  * @since 6.0.12
12
  */
13
- var MonsterInsights = function(){
14
- /* MonsterInsights JS events tracking works on all major browsers, including IE starting at IE 7, via polyfills for any major JS function used that
15
- is not supported by at least 95% of the global and/or US browser marketshare. Currently, IE 7 & 8 which as of 2/14/17 have under 0.25% global marketshare, require
16
- us to polyfill Array.prototype.lastIndexOf, and if they continue to drop, we might remove this polyfill at some point. In that case note that events tracking
17
- for IE 7/8 will continue to work, with the exception of events tracking of downloads. */
18
- var lastClicked = [];
19
- var internalAsOutboundCategory = '';
20
-
21
- this.setLastClicked = function(valuesArray,fieldsArray,tracked){
22
- valuesArray = typeof valuesArray !== 'undefined' ? valuesArray : [];
23
- fieldsArray = typeof fieldsArray !== 'undefined' ? fieldsArray : [];
24
- tracked = typeof tracked !== 'undefined' ? tracked : false;
25
-
26
- lastClicked.valuesArray = valuesArray;
27
- lastClicked.fieldsArray = fieldsArray;
28
- };
29
-
30
- this.getLastClicked = function () {
31
- return lastClicked;
32
- };
33
-
34
- this.setInternalAsOutboundCategory = function( category ){
35
- internalAsOutboundCategory = category;
36
- };
37
-
38
- this.getInternalAsOutboundCategory = function () {
39
- return internalAsOutboundCategory;
40
- };
41
-
42
- this.sendEvent = function ( fieldsArray ) {
43
- __gaTrackerSend( [], fieldsArray );
44
- };
45
-
46
- function __gaTrackerIsDebug () {
47
- if ( window.monsterinsights_debug_mode ) {
48
- return true;
49
- } else {
50
- return false;
51
- }
52
- }
53
-
54
- function __gaTrackerSend ( valuesArray, fieldsArray ) {
55
- valuesArray = typeof valuesArray !== 'undefined' ? valuesArray : [];
56
- fieldsArray = typeof fieldsArray !== 'undefined' ? fieldsArray : {};
57
-
58
- __gaTracker( 'send', fieldsArray );
59
-
60
- lastClicked.valuesArray = valuesArray;
61
- lastClicked.fieldsArray = fieldsArray;
62
- lastClicked.tracked = true;
63
- __gaTrackerLog( 'Tracked: ' + valuesArray.type );
64
- __gaTrackerLog( lastClicked );
65
- }
66
-
67
- function __gaTrackerNotSend ( valuesArray ) {
68
- valuesArray = typeof valuesArray !== 'undefined' ? valuesArray : [];
69
-
70
- lastClicked.valuesArray = valuesArray;
71
- lastClicked.fieldsArray = [];
72
- lastClicked.tracked = false;
73
- __gaTrackerLog( 'Not Tracked: ' + valuesArray.exit );
74
- __gaTrackerLog( lastClicked );
75
- }
76
-
77
- function __gaTrackerLog ( message ) {
78
- if ( __gaTrackerIsDebug() ) {
79
- console.dir( message );
80
- }
81
- }
82
-
83
- function __gaTrackerStringTrim( x ) {
84
- return x.replace(/^\s+|\s+$/gm,'');
85
- }
86
-
87
- function __gaTrackerGetDomain() {
88
- var i=0,currentdomain=document.domain,p=currentdomain.split('.'),s='_gd'+(new Date()).getTime();
89
- while(i<(p.length-1) && document.cookie.indexOf(s+'='+s)==-1){
90
- currentdomain = p.slice(-1-(++i)).join('.');
91
- document.cookie = s+"="+s+";domain="+currentdomain+";";
92
- }
93
- document.cookie = s+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain="+currentdomain+";";
94
- return currentdomain;
95
- }
96
-
97
- function __gaTrackerGetExtension( extension ) {
98
- extension = extension.toString();
99
- extension = extension.substring( 0, (extension.indexOf( "#" ) == -1 ) ? extension.length : extension.indexOf( "#" ) ); /* Remove the anchor at the end, if there is one */
100
- extension = extension.substring( 0, (extension.indexOf( "?" ) == -1 ) ? extension.length : extension.indexOf( "?" ) ); /* Remove the query after the file name, if there is one */
101
- extension = extension.substring( extension.lastIndexOf( "/" ) + 1, extension.length ); /* Remove everything before the last slash in the path */
102
- if ( extension.length > 0 && extension.indexOf('.') !== -1 ) { /* If there's a period left in the URL, then there's a extension. Else it is not a extension. */
103
- extension = extension.substring( extension.indexOf( "." ) + 1 ); /* Remove everything but what's after the first period */
104
- return extension;
105
- } else {
106
- return "";
107
- }
108
- }
109
-
110
- function __gaTrackerLoaded() {
111
- return typeof(__gaTracker) !== 'undefined' && __gaTracker && __gaTracker.hasOwnProperty( "loaded" ) && __gaTracker.loaded == true; /* jshint ignore:line */
112
- }
113
-
114
- function __gaTrackerTrackedClick( event ) {
115
- return event.which == 1 || event.which == 2 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
116
- }
117
-
118
- function __gaTrackerGetDownloadExtensions() {
119
- var download_extensions = [];
120
- if ( typeof monsterinsights_frontend.download_extensions == 'string' ) {
121
- download_extensions = monsterinsights_frontend.download_extensions.split(",");
122
- }
123
- return download_extensions;
124
- }
125
-
126
- function __gaTrackerGetInboundPaths() {
127
- var inbound_paths = [];
128
- if ( typeof monsterinsights_frontend.inbound_paths == 'string' ) {
129
- inbound_paths = JSON.parse( monsterinsights_frontend.inbound_paths );
130
- }
131
-
132
- return inbound_paths;
133
- }
134
-
135
- function __gaTrackerTrackedClickType( event ) {
136
- if ( event.which == 1 ) {
137
- return 'event.which=1';
138
- } else if ( event.which == 2 ) {
139
- return 'event.which=2';
140
- } else if ( event.metaKey ){
141
- return 'metaKey';
142
- } else if ( event.ctrlKey ) {
143
- return 'ctrlKey';
144
- } else if ( event.shiftKey ) {
145
- return 'shiftKey';
146
- } else if ( event.altKey ) {
147
- return 'altKey';
148
- } else {
149
- return '';
150
- }
151
- }
152
-
153
- function __gaTrackerLinkType( el ) {
154
- var download_extensions = __gaTrackerGetDownloadExtensions();
155
- var inbound_paths = __gaTrackerGetInboundPaths();
156
- var type = 'unknown';
157
- var link = el.href;
158
- var extension = __gaTrackerGetExtension( el.href );
159
- var currentdomain = __gaTrackerGetDomain();
160
- var hostname = el.hostname;
161
- var protocol = el.protocol;
162
- var pathname = el.pathname;
163
- link = link.toString();
164
- var index, len;
165
- var category = el.getAttribute("data-vars-ga-category");
166
-
167
- if ( category ) {
168
- return category;
169
- }
170
-
171
- if ( link.match( /^javascript\:/i ) ) {
172
- type = 'internal'; /* if it's a JS link, it's internal */
173
- } else if ( protocol && protocol.length > 0 && ( __gaTrackerStringTrim( protocol ) == 'tel' || __gaTrackerStringTrim( protocol ) == 'tel:' ) ) { /* If it's a telephone link */
174
- type = "tel";
175
- } else if ( protocol && protocol.length > 0 && ( __gaTrackerStringTrim( protocol ) == 'mailto' || __gaTrackerStringTrim( protocol ) == 'mailto:' ) ) { /* If it's a email */
176
- type = "mailto";
177
- } else if ( hostname && currentdomain && hostname.length > 0 && currentdomain.length > 0 && ! hostname.endsWith( '.' + currentdomain) && hostname !== currentdomain ) { /* If it's a outbound */
178
- type = "external";
179
- } else if ( pathname && JSON.stringify( inbound_paths ) != "{}" && pathname.length > 0 ) { /* If it's an internal as outbound */
180
- var inbound_paths_length = inbound_paths.length;
181
- for ( var inbound_paths_index = 0; inbound_paths_index < inbound_paths_length; inbound_paths_index ++ ) {
182
- if ( inbound_paths[ inbound_paths_index ].path && inbound_paths[ inbound_paths_index ].label && inbound_paths[ inbound_paths_index ].path.length > 0 && inbound_paths[ inbound_paths_index ].label.length > 0 && pathname.startsWith( inbound_paths[ inbound_paths_index ].path ) ) {
183
- type = "internal-as-outbound";
184
- internalAsOutboundCategory = "outbound-link-" + inbound_paths[ inbound_paths_index ].label;
185
- break;
186
- }
187
- }
188
- /* Enable window.monsterinsights_experimental_mode at your own risk. We might eventually remove it. Also you may/can/will burn through GA quota for your property quickly. */
189
- } else if ( hostname && window.monsterinsights_experimental_mode && hostname.length > 0 && document.domain.length > 0 && hostname !== document.domain ) { /* If it's a cross-hostname link */
190
- type = "cross-hostname";
191
- }
192
-
193
- if ( extension && ( type === 'unknown' || 'external' === type ) && download_extensions.length > 0 && extension.length > 0 ) { /* If it's a download */
194
- for ( index = 0, len = download_extensions.length; index < len; ++index ) {
195
- if ( download_extensions[ index ].length > 0 && ( link.endsWith( download_extensions[ index ] ) || download_extensions[ index ] == extension ) ) {
196
- type = "download";
197
- break;
198
- }
199
- }
200
- }
201
-
202
- if ( type === 'unknown' ) {
203
- type = 'internal';
204
- }
205
- return type;
206
- }
207
-
208
- function __gaTrackerLinkTarget( el, event ) {
209
-
210
- /* Is actual target set and not _(self|parent|top)? */
211
- var target = ( el.target && !el.target.match( /^_(self|parent|top)$/i ) ) ? el.target : false;
212
-
213
- /* Assume a target if Ctrl|shift|meta-click */
214
- if ( event.ctrlKey || event.shiftKey || event.metaKey || event.which == 2 ) {
215
- target = "_blank";
216
- }
217
- return target;
218
- }
219
-
220
- function __gaTrackerGetTitle( el ) {
221
- if ( el.getAttribute("data-vars-ga-label") && el.getAttribute("data-vars-ga-label").replace(/\n/ig, '') ) {
222
- return el.getAttribute("data-vars-ga-label").replace(/\n/ig, '');
223
- } else if ( el.title && el.title.replace(/\n/ig, '') ) {
224
- return el.title.replace(/\n/ig, '');
225
- } else if ( el.innerText && el.innerText.replace(/\n/ig, '') ) {
226
- return el.innerText.replace(/\n/ig, '');
227
- } else if ( el.getAttribute('aria-label') && el.getAttribute('aria-label').replace(/\n/ig, '') ) {
228
- return el.getAttribute('aria-label').replace(/\n/ig, '');
229
- } else if ( el.alt && el.alt.replace(/\n/ig, '') ) {
230
- return el.alt.replace(/\n/ig, '');
231
- } else if ( el.textContent && el.textContent.replace(/\n/ig, '') ) {
232
- return el.textContent.replace(/\n/ig, '');
233
- } else {
234
- return undefined;
235
- }
236
- }
237
-
238
- function __gaTrackerGetInnerTitle( el ) {
239
- var children = el.children;
240
- var count = 0;
241
- var child;
242
- var value;
243
- for (var i = 0; i < children.length; i++) {
244
- child = children[i];
245
- value = __gaTrackerGetTitle( child );
246
- if ( value ) {
247
- return value;
248
- }
249
- /* max search 100 elements to ensure performance */
250
- if ( count == 99 ) {
251
- return undefined;
252
- }
253
- count++;
254
- }
255
- return undefined;
256
- }
257
-
258
- function __gaTrackerClickEvent( event ) {
259
- var el = event.srcElement || event.target;
260
- var valuesArray = [];
261
- var fieldsArray;
262
-
263
- /* Start Values Array */
264
- valuesArray.el = el;
265
- valuesArray.ga_loaded = __gaTrackerLoaded();
266
- valuesArray.click_type = __gaTrackerTrackedClickType( event );
267
-
268
- /* If GA is blocked or not loaded, or not main|middle|touch click then don't track */
269
- if ( ! __gaTrackerLoaded() || ! __gaTrackerTrackedClick( event ) ) {
270
- valuesArray.exit = 'loaded';
271
- __gaTrackerNotSend( valuesArray );
272
- return;
273
- }
274
-
275
- /* Loop up the DOM tree through parent elements if clicked element is not a link (eg: an image inside a link) */
276
- while ( el && (typeof el.tagName == 'undefined' || el.tagName.toLowerCase() != 'a' || ! el.href ) ) {
277
- el = el.parentNode;
278
- }
279
-
280
- /* if a link with valid href has been clicked */
281
- if ( el && el.href && ! el.hasAttribute('xlink:href') ) {
282
- var link = el.href; /* What link are we tracking */
283
- var extension = __gaTrackerGetExtension( el.href ); /* What extension is this link */
284
- var download_extensions = __gaTrackerGetDownloadExtensions(); /* Let's get the extensions to track */
285
- var inbound_paths = __gaTrackerGetInboundPaths(); /* Let's get the internal paths to track */
286
- var home_url = monsterinsights_frontend.home_url; /* Let's get the url to compare for external/internal use */
287
- var currentdomain = __gaTrackerGetDomain(); /* What domain are we on? */
288
- var type = __gaTrackerLinkType( el ); /* What type of link is this? */
289
- var target = __gaTrackerLinkTarget( el, event ); /* Is a new tab/window being opened? */
290
- var action = el.getAttribute("data-vars-ga-action");
291
- var label = el.getAttribute("data-vars-ga-label");
292
-
293
- /* Element */
294
- valuesArray.el = el; /* el is an a element so we can parse it */
295
- valuesArray.el_href = el.href; /* "http://example.com:3000/pathname/?search=test#hash" */
296
- valuesArray.el_protocol = el.protocol; /* "http:" */
297
- valuesArray.el_hostname = el.hostname; /* "example.com" */
298
- valuesArray.el_port = el.port; /* "3000" */
299
- valuesArray.el_pathname = el.pathname; /* "/pathname/" */
300
- valuesArray.el_search = el.search; /* "?search=test" */
301
- valuesArray.el_hash = el.hash; /* "#hash" */
302
- valuesArray.el_host = el.host; /* "example.com:3000" */
303
-
304
- /* Settings */
305
- valuesArray.debug_mode = __gaTrackerIsDebug(); /* "example.com:3000" */
306
- valuesArray.download_extensions = download_extensions; /* Let's get the extensions to track */
307
- valuesArray.inbound_paths = inbound_paths; /* Let's get the internal paths to track */
308
- valuesArray.home_url = home_url; /* Let's get the url to compare for external/internal use */
309
-
310
- /* Parsed/Logic */
311
- valuesArray.link = link; /* What link are we tracking */
312
- valuesArray.extension = extension; /* What extension is this link */
313
- valuesArray.type = type; /* What type of link is this */
314
- valuesArray.target = target; /* Is a new tab/window being opened? */
315
- valuesArray.title = __gaTrackerGetTitle( el ); /* Try link title, then text content */
316
-
317
- /* only find innerTitle if we need one */
318
- if ( ! valuesArray.label && ! valuesArray.title ) {
319
- valuesArray.title = __gaTrackerGetInnerTitle( el );
320
- }
321
-
322
- /* Let's track everything but internals (that aren't internal-as-externals) and javascript */
323
- if ( type !== 'internal' && type !== 'javascript' ) {
324
-
325
- var __gaTrackerHitBackRun = false; /* Tracker has not yet run */
326
-
327
- /* HitCallback to open link in same window after tracker */
328
- var __gaTrackerHitBack = function() {
329
- /* Run the hitback only once */
330
- if ( __gaTrackerHitBackRun ){
331
- return;
332
- }
333
- __gaTrackerHitBackRun = true;
334
- window.location.href = link;
335
- };
336
-
337
- var __gaTrackerNoRedirectExternal = function() {
338
- valuesArray.exit = 'external';
339
- __gaTrackerNotSend( valuesArray );
340
- };
341
-
342
- var __gaTrackerNoRedirectInboundAsExternal = function() {
343
- valuesArray.exit = 'internal-as-outbound';
344
- __gaTrackerNotSend( valuesArray );
345
- };
346
- var __gaTrackerNoRedirectCrossHostname = function() {
347
- valuesArray.exit = 'cross-hostname';
348
- __gaTrackerNotSend( valuesArray );
349
- };
350
-
351
- if ( target || type == 'mailto' || type == 'tel' ) { /* If target opens a new window then just track */
352
- if ( type == 'download' ) {
353
- fieldsArray = {
354
- hitType : 'event',
355
- eventCategory : 'download',
356
- eventAction : action || link,
357
- eventLabel : label || valuesArray.title,
358
- };
359
-
360
- __gaTrackerSend( valuesArray, fieldsArray );
361
- } else if ( type == 'tel' ) {
362
- fieldsArray = {
363
- hitType : 'event',
364
- eventCategory : 'tel',
365
- eventAction : action || link,
366
- eventLabel : label || valuesArray.title.replace('tel:', ''),
367
- };
368
-
369
- __gaTrackerSend( valuesArray, fieldsArray );
370
- } else if ( type == 'mailto' ) {
371
- fieldsArray = {
372
- hitType : 'event',
373
- eventCategory : 'mailto',
374
- eventAction : action || link,
375
- eventLabel : label || valuesArray.title.replace('mailto:', ''),
376
- };
377
-
378
- __gaTrackerSend( valuesArray, fieldsArray );
379
- } else if ( type == 'internal-as-outbound' ) {
380
- fieldsArray = {
381
- hitType : 'event',
382
- eventCategory : internalAsOutboundCategory,
383
- eventAction : action || link,
384
- eventLabel : label || valuesArray.title,
385
- };
386
-
387
- __gaTrackerSend( valuesArray, fieldsArray );
388
- } else if ( type == 'external' ) {
389
- fieldsArray = {
390
- hitType: 'event',
391
- eventCategory:'outbound-link',
392
- eventAction: action || link,
393
- eventLabel: label || valuesArray.title,
394
- };
395
-
396
- __gaTrackerSend( valuesArray, fieldsArray );
397
- } else if ( type == 'cross-hostname' ) {
398
- fieldsArray = {
399
- hitType: 'event',
400
- eventCategory:'cross-hostname',
401
- eventAction: action || link,
402
- eventLabel: label || valuesArray.title,
403
- };
404
-
405
- __gaTrackerSend( valuesArray, fieldsArray );
406
- } else {
407
- if ( type && type != 'internal' ) {
408
- fieldsArray = {
409
- hitType: 'event',
410
- eventCategory: type,
411
- eventAction: action || link,
412
- eventLabel: label || valuesArray.title,
413
- };
414
-
415
- __gaTrackerSend( valuesArray, fieldsArray );
416
- } else {
417
- valuesArray.exit = 'type';
418
- __gaTrackerNotSend( valuesArray );
419
- }
420
- }
421
- } else {
422
- /* Prevent standard click, track then open */
423
- if ( type != 'cross-hostname' && type != 'external' && type != 'internal-as-outbound' ) {
424
- if (! event.defaultPrevented ) {
425
- if ( event.preventDefault ) {
426
- event.preventDefault();
427
- } else {
428
- event.returnValue = false;
429
- }
430
- }
431
- }
432
-
433
- if ( type == 'download' ) {
434
- fieldsArray = {
435
- hitType : 'event',
436
- eventCategory : 'download',
437
- eventAction : action || link,
438
- eventLabel : label || valuesArray.title,
439
- hitCallback : __gaTrackerHitBack,
440
- };
441
-
442
- __gaTrackerSend( valuesArray, fieldsArray );
443
- } else if ( type == 'internal-as-outbound' ) {
444
- window.onbeforeunload = function(e) {
445
- if (! event.defaultPrevented ) {
446
- if ( event.preventDefault ) {
447
- event.preventDefault();
448
- } else {
449
- event.returnValue = false;
450
- }
451
- }
452
-
453
- fieldsArray = {
454
- hitType : 'event',
455
- eventCategory : internalAsOutboundCategory,
456
- eventAction : action || link,
457
- eventLabel : label || valuesArray.title,
458
- hitCallback : __gaTrackerHitBack,
459
- };
460
-
461
- if ( navigator.sendBeacon ) {
462
- fieldsArray.transport = 'beacon';
463
- }
464
-
465
- __gaTrackerSend( valuesArray, fieldsArray );
466
- setTimeout( __gaTrackerHitBack, 1000 );
467
- };
468
- } else if ( type == 'external' ) {
469
- window.onbeforeunload = function(e) {
470
- if (! event.defaultPrevented ) {
471
- if ( event.preventDefault ) {
472
- event.preventDefault();
473
- } else {
474
- event.returnValue = false;
475
- }
476
- }
477
-
478
- fieldsArray = {
479
- hitType : 'event',
480
- eventCategory : 'outbound-link',
481
- eventAction : action || link,
482
- eventLabel : label || valuesArray.title,
483
- hitCallback : __gaTrackerHitBack,
484
- };
485
-
486
- if ( navigator.sendBeacon ) {
487
- fieldsArray.transport = 'beacon';
488
- }
489
-
490
- __gaTrackerSend( valuesArray, fieldsArray );
491
- setTimeout( __gaTrackerHitBack, 1000 );
492
- };
493
- } else if ( type == 'cross-hostname' ) {
494
- window.onbeforeunload = function(e) {
495
- if (! event.defaultPrevented ) {
496
- if ( event.preventDefault ) {
497
- event.preventDefault();
498
- } else {
499
- event.returnValue = false;
500
- }
501
- }
502
-
503
- fieldsArray = {
504
- hitType : 'event',
505
- eventCategory : 'cross-hostname',
506
- eventAction : action || link,
507
- eventLabel : label || valuesArray.title,
508
- hitCallback : __gaTrackerHitBack,
509
- };
510
-
511
- if ( navigator.sendBeacon ) {
512
- fieldsArray.transport = 'beacon';
513
- }
514
-
515
- __gaTrackerSend( valuesArray, fieldsArray );
516
- setTimeout( __gaTrackerHitBack, 1000 );
517
- };
518
- } else {
519
- if ( type && type !== 'internal' ) {
520
- fieldsArray = {
521
- hitType: 'event',
522
- eventCategory: type,
523
- eventAction: action || link,
524
- eventLabel: label || valuesArray.title,
525
- hitCallback : __gaTrackerHitBack,
526
- };
527
-
528
- __gaTrackerSend( valuesArray, fieldsArray );
529
- } else {
530
- valuesArray.exit = 'type';
531
- __gaTrackerNotSend( valuesArray );
532
- }
533
- }
534
-
535
- if ( type != 'external' && type != 'cross-hostname' && type != 'internal-as-outbound' ) {
536
- /* Run hitCallback again if GA takes longer than 1 second */
537
- setTimeout( __gaTrackerHitBack, 1000 );
538
- } else {
539
- if ( type == 'external' ) {
540
- setTimeout( __gaTrackerNoRedirectExternal, 1100 );
541
- } else if ( type == 'cross-hostname' ) {
542
- setTimeout( __gaTrackerNoRedirectCrossHostname, 1100 );
543
- } else {
544
- setTimeout( __gaTrackerNoRedirectInboundAsExternal, 1100 );
545
- }
546
- }
547
- }
548
- } else {
549
- valuesArray.exit = 'internal';
550
- __gaTrackerNotSend( valuesArray );
551
- }
552
- } else {
553
- valuesArray.exit = 'notlink';
554
- __gaTrackerNotSend( valuesArray );
555
- }
556
- }
557
- var prevHash = window.location.hash;
558
- function __gaTrackerHashChangeEvent() {
559
- /* Todo: Ready this section for JS unit testing */
560
- if ( monsterinsights_frontend.hash_tracking === "true" && prevHash != window.location.hash ) {
561
- prevHash = window.location.hash;
562
- __gaTracker('set', 'page', location.pathname + location.search + location.hash );
563
- __gaTracker('send', 'pageview' );
564
- __gaTrackerLog( "Hash change to: " + location.pathname + location.search + location.hash );
565
- } else {
566
- __gaTrackerLog( "Hash change to (untracked): " + location.pathname + location.search + location.hash );
567
- }
568
- }
569
-
570
- /* Attach the event to all clicks in the document after page has loaded */
571
- var __gaTrackerWindow = window;
572
- if ( __gaTrackerWindow.addEventListener ) {
573
- __gaTrackerWindow.addEventListener(
574
- "load",
575
- function() {
576
- document.body.addEventListener(
577
- "click",
578
- __gaTrackerClickEvent,
579
- false
580
- );
581
- },
582
- false
583
- );
584
- window.addEventListener("hashchange", __gaTrackerHashChangeEvent, false );
585
- } else {
586
- if ( __gaTrackerWindow.attachEvent ) {
587
- __gaTrackerWindow.attachEvent(
588
- "onload",
589
- function() {
590
- document.body.attachEvent( "onclick", __gaTrackerClickEvent);
591
- }
592
- );
593
- window.attachEvent( "onhashchange", __gaTrackerHashChangeEvent);
594
- }
595
- }
596
-
597
- if (typeof String.prototype.endsWith !== 'function') {
598
- String.prototype.endsWith = function(suffix) {
599
- return this.indexOf(suffix, this.length - suffix.length) !== -1;
600
- };
601
- }
602
- if (typeof String.prototype.startsWith !== 'function') {
603
- String.prototype.startsWith = function(prefix) {
604
- return this.indexOf(prefix) === 0;
605
- };
606
- }
607
-
608
- if ( typeof Array.prototype.lastIndexOf !== 'function' ) {
609
- Array.prototype.lastIndexOf = function(searchElement /*, fromIndex*/) {
610
- 'use strict';
611
-
612
- if (this === void 0 || this === null) {
613
- throw new TypeError();
614
- }
615
-
616
- var n, k,
617
- t = Object(this),
618
- len = t.length >>> 0; /* jshint ignore:line */
619
- if (len === 0) {
620
- return -1;
621
- }
622
-
623
- n = len - 1;
624
- if (arguments.length > 1) {
625
- n = Number(arguments[1]);
626
- if (n != n) {
627
- n = 0;
628
- }
629
- else if (n != 0 && n != (1 / 0) && n != -(1 / 0)) { /* jshint ignore:line */
630
- n = (n > 0 || -1) * Math.floor(Math.abs(n));
631
- }
632
- }
633
-
634
- for (k = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n); k >= 0; k--) {
635
- if (k in t && t[k] === searchElement) {
636
- return k;
637
- }
638
- }
639
- return -1;
640
- };
641
- }
 
642
  };
643
  var MonsterInsightsObject = new MonsterInsights();
10
  *
11
  * @since 6.0.12
12
  */
13
+ var MonsterInsights = function () {
14
+ /* MonsterInsights JS events tracking works on all major browsers, including IE starting at IE 7, via polyfills for any major JS function used that
15
+ is not supported by at least 95% of the global and/or US browser marketshare. Currently, IE 7 & 8 which as of 2/14/17 have under 0.25% global marketshare, require
16
+ us to polyfill Array.prototype.lastIndexOf, and if they continue to drop, we might remove this polyfill at some point. In that case note that events tracking
17
+ for IE 7/8 will continue to work, with the exception of events tracking of downloads. */
18
+ var lastClicked = [];
19
+ var internalAsOutboundCategory = '';
20
+
21
+ this.setLastClicked = function (valuesArray, fieldsArray, tracked) {
22
+ valuesArray = typeof valuesArray !== 'undefined' ? valuesArray : [];
23
+ fieldsArray = typeof fieldsArray !== 'undefined' ? fieldsArray : [];
24
+ tracked = typeof tracked !== 'undefined' ? tracked : false;
25
+
26
+ lastClicked.valuesArray = valuesArray;
27
+ lastClicked.fieldsArray = fieldsArray;
28
+ };
29
+
30
+ this.getLastClicked = function () {
31
+ return lastClicked;
32
+ };
33
+
34
+ this.setInternalAsOutboundCategory = function (category) {
35
+ internalAsOutboundCategory = category;
36
+ };
37
+
38
+ this.getInternalAsOutboundCategory = function () {
39
+ return internalAsOutboundCategory;
40
+ };
41
+
42
+ this.sendEvent = function (fieldsArray) {
43
+ __gaTrackerSend([], fieldsArray);
44
+ };
45
+
46
+ function __gaTrackerIsDebug() {
47
+ if (window.monsterinsights_debug_mode) {
48
+ return true;
49
+ } else {
50
+ return false;
51
+ }
52
+ }
53
+
54
+ function __gaTrackerSend(valuesArray, fieldsArray) {
55
+ valuesArray = typeof valuesArray !== 'undefined' ? valuesArray : [];
56
+ fieldsArray = typeof fieldsArray !== 'undefined' ? fieldsArray : {};
57
+
58
+ __gaTracker('send', fieldsArray);
59
+
60
+ lastClicked.valuesArray = valuesArray;
61
+ lastClicked.fieldsArray = fieldsArray;
62
+ lastClicked.tracked = true;
63
+ __gaTrackerLog('Tracked: ' + valuesArray.type);
64
+ __gaTrackerLog(lastClicked);
65
+ }
66
+
67
+ function __gaTrackerNotSend(valuesArray) {
68
+ valuesArray = typeof valuesArray !== 'undefined' ? valuesArray : [];
69
+
70
+ lastClicked.valuesArray = valuesArray;
71
+ lastClicked.fieldsArray = [];
72
+ lastClicked.tracked = false;
73
+ __gaTrackerLog('Not Tracked: ' + valuesArray.exit);
74
+ __gaTrackerLog(lastClicked);
75
+ }
76
+
77
+ function __gaTrackerLog(message) {
78
+ if (__gaTrackerIsDebug()) {
79
+ console.dir(message);
80
+ }
81
+ }
82
+
83
+ function __gaTrackerStringTrim(x) {
84
+ return x.replace(/^\s+|\s+$/gm, '');
85
+ }
86
+
87
+ function __gaTrackerGetDomain() {
88
+ var i = 0, currentdomain = document.domain, p = currentdomain.split('.'), s = '_gd' + (new Date()).getTime();
89
+ while (i < (p.length - 1) && document.cookie.indexOf(s + '=' + s) == -1) {
90
+ currentdomain = p.slice(-1 - (++i)).join('.');
91
+ document.cookie = s + "=" + s + ";domain=" + currentdomain + ";";
92
+ }
93
+ document.cookie = s + "=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain=" + currentdomain + ";";
94
+ return currentdomain;
95
+ }
96
+
97
+ function __gaTrackerGetExtension(extension) {
98
+ extension = extension.toString();
99
+ extension = extension.substring(0, (extension.indexOf("#") == -1) ? extension.length : extension.indexOf("#")); /* Remove the anchor at the end, if there is one */
100
+ extension = extension.substring(0, (extension.indexOf("?") == -1) ? extension.length : extension.indexOf("?")); /* Remove the query after the file name, if there is one */
101
+ extension = extension.substring(extension.lastIndexOf("/") + 1, extension.length); /* Remove everything before the last slash in the path */
102
+ if (extension.length > 0 && extension.indexOf('.') !== -1) { /* If there's a period left in the URL, then there's a extension. Else it is not a extension. */
103
+ extension = extension.substring(extension.indexOf(".") + 1); /* Remove everything but what's after the first period */
104
+ return extension;
105
+ } else {
106
+ return "";
107
+ }
108
+ }
109
+
110
+ function __gaTrackerLoaded() {
111
+ return typeof (__gaTracker) !== 'undefined' && __gaTracker && __gaTracker.hasOwnProperty("loaded") && __gaTracker.loaded == true; /* jshint ignore:line */
112
+ }
113
+
114
+ function __gaTrackerTrackedClick(event) {
115
+ return event.which == 1 || event.which == 2 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
116
+ }
117
+
118
+ function __gaTrackerGetDownloadExtensions() {
119
+ var download_extensions = [];
120
+ if (typeof monsterinsights_frontend.download_extensions == 'string') {
121
+ download_extensions = monsterinsights_frontend.download_extensions.split(",");
122
+ }
123
+ return download_extensions;
124
+ }
125
+
126
+ function __gaTrackerGetInboundPaths() {
127
+ var inbound_paths = [];
128
+ if (typeof monsterinsights_frontend.inbound_paths == 'string') {
129
+ inbound_paths = JSON.parse(monsterinsights_frontend.inbound_paths);
130
+ }
131
+
132
+ return inbound_paths;
133
+ }
134
+
135
+ function __gaTrackerTrackedClickType(event) {
136
+ if (event.which == 1) {
137
+ return 'event.which=1';
138
+ } else if (event.which == 2) {
139
+ return 'event.which=2';
140
+ } else if (event.metaKey) {
141
+ return 'metaKey';
142
+ } else if (event.ctrlKey) {
143
+ return 'ctrlKey';
144
+ } else if (event.shiftKey) {
145
+ return 'shiftKey';
146
+ } else if (event.altKey) {
147
+ return 'altKey';
148
+ } else {
149
+ return '';
150
+ }
151
+ }
152
+
153
+ function __gaTrackerLinkType(el) {
154
+ var download_extensions = __gaTrackerGetDownloadExtensions();
155
+ var inbound_paths = __gaTrackerGetInboundPaths();
156
+ var type = 'unknown';
157
+ var link = el.href;
158
+ var extension = __gaTrackerGetExtension(el.href);
159
+ var currentdomain = __gaTrackerGetDomain();
160
+ var hostname = el.hostname;
161
+ var protocol = el.protocol;
162
+ var pathname = el.pathname;
163
+ link = link.toString();
164
+ var index, len;
165
+ var category = el.getAttribute("data-vars-ga-category");
166
+
167
+ if (category) {
168
+ return category;
169
+ }
170
+
171
+ if (link.match(/^javascript\:/i)) {
172
+ type = 'internal'; /* if it's a JS link, it's internal */
173
+ } else if (protocol && protocol.length > 0 && (__gaTrackerStringTrim(protocol) == 'tel' || __gaTrackerStringTrim(protocol) == 'tel:')) { /* If it's a telephone link */
174
+ type = "tel";
175
+ } else if (protocol && protocol.length > 0 && (__gaTrackerStringTrim(protocol) == 'mailto' || __gaTrackerStringTrim(protocol) == 'mailto:')) { /* If it's a email */
176
+ type = "mailto";
177
+ } else if (hostname && currentdomain && hostname.length > 0 && currentdomain.length > 0 && !hostname.endsWith('.' + currentdomain) && hostname !== currentdomain) { /* If it's a outbound */
178
+ type = "external";
179
+ } else if (pathname && JSON.stringify(inbound_paths) != "{}" && pathname.length > 0) { /* If it's an internal as outbound */
180
+ var inbound_paths_length = inbound_paths.length;
181
+ for (var inbound_paths_index = 0; inbound_paths_index < inbound_paths_length; inbound_paths_index++) {
182
+ if (inbound_paths[inbound_paths_index].path && inbound_paths[inbound_paths_index].label && inbound_paths[inbound_paths_index].path.length > 0 && inbound_paths[inbound_paths_index].label.length > 0 && pathname.startsWith(inbound_paths[inbound_paths_index].path)) {
183
+ type = "internal-as-outbound";
184
+ internalAsOutboundCategory = "outbound-link-" + inbound_paths[inbound_paths_index].label;
185
+ break;
186
+ }
187
+ }
188
+ /* Enable window.monsterinsights_experimental_mode at your own risk. We might eventually remove it. Also you may/can/will burn through GA quota for your property quickly. */
189
+ } else if (hostname && window.monsterinsights_experimental_mode && hostname.length > 0 && document.domain.length > 0 && hostname !== document.domain) { /* If it's a cross-hostname link */
190
+ type = "cross-hostname";
191
+ }
192
+
193
+ if (extension && (type === 'unknown' || 'external' === type) && download_extensions.length > 0 && extension.length > 0) { /* If it's a download */
194
+ for (index = 0, len = download_extensions.length; index < len; ++index) {
195
+ if (download_extensions[index].length > 0 && (link.endsWith(download_extensions[index]) || download_extensions[index] == extension)) {
196
+ type = "download";
197
+ break;
198
+ }
199
+ }
200
+ }
201
+
202
+ if (type === 'unknown') {
203
+ type = 'internal';
204
+ }
205
+ return type;
206
+ }
207
+
208
+ function __gaTrackerLinkTarget(el, event) {
209
+
210
+ /* Is actual target set and not _(self|parent|top)? */
211
+ var target = (el.target && !el.target.match(/^_(self|parent|top)$/i)) ? el.target : false;
212
+
213
+ /* Assume a target if Ctrl|shift|meta-click */
214
+ if (event.ctrlKey || event.shiftKey || event.metaKey || event.which == 2) {
215
+ target = "_blank";
216
+ }
217
+ return target;
218
+ }
219
+
220
+ function __gaTrackerGetTitle(el) {
221
+ if (el.getAttribute("data-vars-ga-label") && el.getAttribute("data-vars-ga-label").replace(/\n/ig, '')) {
222
+ return el.getAttribute("data-vars-ga-label").replace(/\n/ig, '');
223
+ } else if (el.title && el.title.replace(/\n/ig, '')) {
224
+ return el.title.replace(/\n/ig, '');
225
+ } else if (el.innerText && el.innerText.replace(/\n/ig, '')) {
226
+ return el.innerText.replace(/\n/ig, '');
227
+ } else if (el.getAttribute('aria-label') && el.getAttribute('aria-label').replace(/\n/ig, '')) {
228
+ return el.getAttribute('aria-label').replace(/\n/ig, '');
229
+ } else if (el.alt && el.alt.replace(/\n/ig, '')) {
230
+ return el.alt.replace(/\n/ig, '');
231
+ } else if (el.textContent && el.textContent.replace(/\n/ig, '')) {
232
+ return el.textContent.replace(/\n/ig, '');
233
+ } else {
234
+ return undefined;
235
+ }
236
+ }
237
+
238
+ function __gaTrackerGetInnerTitle(el) {
239
+ var children = el.children;
240
+ var count = 0;
241
+ var child;
242
+ var value;
243
+ for (var i = 0; i < children.length; i++) {
244
+ child = children[i];
245
+ value = __gaTrackerGetTitle(child);
246
+ if (value) {
247
+ return value;
248
+ }
249
+ /* max search 100 elements to ensure performance */
250
+ if (count == 99) {
251
+ return undefined;
252
+ }
253
+ count++;
254
+ }
255
+ return undefined;
256
+ }
257
+
258
+ function __gaTrackerClickEvent(event) {
259
+ var el = event.srcElement || event.target;
260
+ var valuesArray = [];
261
+ var fieldsArray;
262
+
263
+ /* Start Values Array */
264
+ valuesArray.el = el;
265
+ valuesArray.ga_loaded = __gaTrackerLoaded();
266
+ valuesArray.click_type = __gaTrackerTrackedClickType(event);
267
+
268
+ /* If GA is blocked or not loaded, or not main|middle|touch click then don't track */
269
+ if (!__gaTrackerLoaded() || !__gaTrackerTrackedClick(event)) {
270
+ valuesArray.exit = 'loaded';
271
+ __gaTrackerNotSend(valuesArray);
272
+ return;
273
+ }
274
+
275
+ /* Loop up the DOM tree through parent elements if clicked element is not a link (eg: an image inside a link) */
276
+ while (el && (typeof el.tagName == 'undefined' || el.tagName.toLowerCase() != 'a' || !el.href)) {
277
+ el = el.parentNode;
278
+ }
279
+
280
+ /* if a link with valid href has been clicked */
281
+ if (el && el.href && !el.hasAttribute('xlink:href')) {
282
+ var link = el.href; /* What link are we tracking */
283
+ var extension = __gaTrackerGetExtension(el.href); /* What extension is this link */
284
+ var download_extensions = __gaTrackerGetDownloadExtensions(); /* Let's get the extensions to track */
285
+ var inbound_paths = __gaTrackerGetInboundPaths(); /* Let's get the internal paths to track */
286
+ var home_url = monsterinsights_frontend.home_url; /* Let's get the url to compare for external/internal use */
287
+ var currentdomain = __gaTrackerGetDomain(); /* What domain are we on? */
288
+ var type = __gaTrackerLinkType(el); /* What type of link is this? */
289
+ var target = __gaTrackerLinkTarget(el, event); /* Is a new tab/window being opened? */
290
+ var action = el.getAttribute("data-vars-ga-action");
291
+ var label = el.getAttribute("data-vars-ga-label");
292
+
293
+ /* Element */
294
+ valuesArray.el = el; /* el is an a element so we can parse it */
295
+ valuesArray.el_href = el.href; /* "http://example.com:3000/pathname/?search=test#hash" */
296
+ valuesArray.el_protocol = el.protocol; /* "http:" */
297
+ valuesArray.el_hostname = el.hostname; /* "example.com" */
298
+ valuesArray.el_port = el.port; /* "3000" */
299
+ valuesArray.el_pathname = el.pathname; /* "/pathname/" */
300
+ valuesArray.el_search = el.search; /* "?search=test" */
301
+ valuesArray.el_hash = el.hash; /* "#hash" */
302
+ valuesArray.el_host = el.host; /* "example.com:3000" */
303
+
304
+ /* Settings */
305
+ valuesArray.debug_mode = __gaTrackerIsDebug(); /* "example.com:3000" */
306
+ valuesArray.download_extensions = download_extensions; /* Let's get the extensions to track */
307
+ valuesArray.inbound_paths = inbound_paths; /* Let's get the internal paths to track */
308
+ valuesArray.home_url = home_url; /* Let's get the url to compare for external/internal use */
309
+
310
+ /* Parsed/Logic */
311
+ valuesArray.link = link; /* What link are we tracking */
312
+ valuesArray.extension = extension; /* What extension is this link */
313
+ valuesArray.type = type; /* What type of link is this */
314
+ valuesArray.target = target; /* Is a new tab/window being opened? */
315
+ valuesArray.title = __gaTrackerGetTitle(el); /* Try link title, then text content */
316
+
317
+ /* only find innerTitle if we need one */
318
+ if (!valuesArray.label && !valuesArray.title) {
319
+ valuesArray.title = __gaTrackerGetInnerTitle(el);
320
+ }
321
+
322
+ /* Let's track everything but internals (that aren't internal-as-externals) and javascript */
323
+ if (type !== 'internal' && type !== 'javascript') {
324
+
325
+ var __gaTrackerHitBackRun = false; /* Tracker has not yet run */
326
+
327
+ /* HitCallback to open link in same window after tracker */
328
+ var __gaTrackerHitBack = function () {
329
+ /* Run the hitback only once */
330
+ if (__gaTrackerHitBackRun) {
331
+ return;
332
+ }
333
+ __gaTrackerHitBackRun = true;
334
+ window.location.href = link;
335
+ };
336
+
337
+ var __gaTrackerNoRedirectExternal = function () {
338
+ valuesArray.exit = 'external';
339
+ __gaTrackerNotSend(valuesArray);
340
+ };
341
+
342
+ var __gaTrackerNoRedirectInboundAsExternal = function () {
343
+ valuesArray.exit = 'internal-as-outbound';
344
+ __gaTrackerNotSend(valuesArray);
345
+ };
346
+ var __gaTrackerNoRedirectCrossHostname = function () {
347
+ valuesArray.exit = 'cross-hostname';
348
+ __gaTrackerNotSend(valuesArray);
349
+ };
350
+
351
+ if (target || type == 'mailto' || type == 'tel') { /* If target opens a new window then just track */
352
+ if (type == 'download') {
353
+ fieldsArray = {
354
+ hitType: 'event',
355
+ eventCategory: 'download',
356
+ eventAction: action || link,
357
+ eventLabel: label || valuesArray.title,
358
+ };
359
+
360
+ __gaTrackerSend(valuesArray, fieldsArray);
361
+ } else if (type == 'tel') {
362
+ fieldsArray = {
363
+ hitType: 'event',
364
+ eventCategory: 'tel',
365
+ eventAction: action || link,
366
+ eventLabel: label || valuesArray.title.replace('tel:', ''),
367
+ };
368
+
369
+ __gaTrackerSend(valuesArray, fieldsArray);
370
+ } else if (type == 'mailto') {
371
+ fieldsArray = {
372
+ hitType: 'event',
373
+ eventCategory: 'mailto',
374
+ eventAction: action || link,
375
+ eventLabel: label || valuesArray.title.replace('mailto:', ''),
376
+ };
377
+
378
+ __gaTrackerSend(valuesArray, fieldsArray);
379
+ } else if (type == 'internal-as-outbound') {
380
+ fieldsArray = {
381
+ hitType: 'event',
382
+ eventCategory: internalAsOutboundCategory,
383
+ eventAction: action || link,
384
+ eventLabel: label || valuesArray.title,
385
+ };
386
+
387
+ __gaTrackerSend(valuesArray, fieldsArray);
388
+ } else if (type == 'external') {
389
+ fieldsArray = {
390
+ hitType: 'event',
391
+ eventCategory: 'outbound-link',
392
+ eventAction: action || link,
393
+ eventLabel: label || valuesArray.title,
394
+ };
395
+
396
+ __gaTrackerSend(valuesArray, fieldsArray);
397
+ } else if (type == 'cross-hostname') {
398
+ fieldsArray = {
399
+ hitType: 'event',
400
+ eventCategory: 'cross-hostname',
401
+ eventAction: action || link,
402
+ eventLabel: label || valuesArray.title,
403
+ };
404
+
405
+ __gaTrackerSend(valuesArray, fieldsArray);
406
+ } else {
407
+ if (type && type != 'internal') {
408
+ fieldsArray = {
409
+ hitType: 'event',
410
+ eventCategory: type,
411
+ eventAction: action || link,
412
+ eventLabel: label || valuesArray.title,
413
+ };
414
+
415
+ __gaTrackerSend(valuesArray, fieldsArray);
416
+ } else {
417
+ valuesArray.exit = 'type';
418
+ __gaTrackerNotSend(valuesArray);
419
+ }
420
+ }
421
+ } else {
422
+ /* Prevent standard click, track then open */
423
+ if (type != 'cross-hostname' && type != 'external' && type != 'internal-as-outbound') {
424
+ if (!event.defaultPrevented) {
425
+ if (event.preventDefault) {
426
+ event.preventDefault();
427
+ } else {
428
+ event.returnValue = false;
429
+ }
430
+ }
431
+ }
432
+
433
+ if (type == 'download') {
434
+ fieldsArray = {
435
+ hitType: 'event',
436
+ eventCategory: 'download',
437
+ eventAction: action || link,
438
+ eventLabel: label || valuesArray.title,
439
+ hitCallback: __gaTrackerHitBack,
440
+ };
441
+
442
+ __gaTrackerSend(valuesArray, fieldsArray);
443
+ } else if (type == 'internal-as-outbound') {
444
+ window.onbeforeunload = function (e) {
445
+ if (!event.defaultPrevented) {
446
+ if (event.preventDefault) {
447
+ event.preventDefault();
448
+ } else {
449
+ event.returnValue = false;
450
+ }
451
+ }
452
+
453
+ fieldsArray = {
454
+ hitType: 'event',
455
+ eventCategory: internalAsOutboundCategory,
456
+ eventAction: action || link,
457
+ eventLabel: label || valuesArray.title,
458
+ hitCallback: __gaTrackerHitBack,
459
+ };
460
+
461
+ if (navigator.sendBeacon) {
462
+ fieldsArray.transport = 'beacon';
463
+ }
464
+
465
+ __gaTrackerSend(valuesArray, fieldsArray);
466
+ setTimeout(__gaTrackerHitBack, 1000);
467
+ };
468
+ } else if (type == 'external') {
469
+ window.onbeforeunload = function (e) {
470
+ if (!event.defaultPrevented) {
471
+ if (event.preventDefault) {
472
+ event.preventDefault();
473
+ } else {
474
+ event.returnValue = false;
475
+ }
476
+ }
477
+
478
+ fieldsArray = {
479
+ hitType: 'event',
480
+ eventCategory: 'outbound-link',
481
+ eventAction: action || link,
482
+ eventLabel: label || valuesArray.title,
483
+ hitCallback: __gaTrackerHitBack,
484
+ };
485
+
486
+ if (navigator.sendBeacon) {
487
+ fieldsArray.transport = 'beacon';
488
+ }
489
+
490
+ __gaTrackerSend(valuesArray, fieldsArray);
491
+ setTimeout(__gaTrackerHitBack, 1000);
492
+ };
493
+ } else if (type == 'cross-hostname') {
494
+ window.onbeforeunload = function (e) {
495
+ if (!event.defaultPrevented) {
496
+ if (event.preventDefault) {
497
+ event.preventDefault();
498
+ } else {
499
+ event.returnValue = false;
500
+ }
501
+ }
502
+
503
+ fieldsArray = {
504
+ hitType: 'event',
505
+ eventCategory: 'cross-hostname',
506
+ eventAction: action || link,
507
+ eventLabel: label || valuesArray.title,
508
+ hitCallback: __gaTrackerHitBack,
509
+ };
510
+
511
+ if (navigator.sendBeacon) {
512
+ fieldsArray.transport = 'beacon';
513
+ }
514
+
515
+ __gaTrackerSend(valuesArray, fieldsArray);
516
+ setTimeout(__gaTrackerHitBack, 1000);
517
+ };
518
+ } else {
519
+ if (type && type !== 'internal') {
520
+ fieldsArray = {
521
+ hitType: 'event',
522
+ eventCategory: type,
523
+ eventAction: action || link,
524
+ eventLabel: label || valuesArray.title,
525
+ hitCallback: __gaTrackerHitBack,
526
+ };
527
+
528
+ __gaTrackerSend(valuesArray, fieldsArray);
529
+ } else {
530
+ valuesArray.exit = 'type';
531
+ __gaTrackerNotSend(valuesArray);
532
+ }
533
+ }
534
+
535
+ if (type != 'external' && type != 'cross-hostname' && type != 'internal-as-outbound') {
536
+ /* Run hitCallback again if GA takes longer than 1 second */
537
+ setTimeout(__gaTrackerHitBack, 1000);
538
+ } else {
539
+ if (type == 'external') {
540
+ setTimeout(__gaTrackerNoRedirectExternal, 1100);
541
+ } else if (type == 'cross-hostname') {
542
+ setTimeout(__gaTrackerNoRedirectCrossHostname, 1100);
543
+ } else {
544
+ setTimeout(__gaTrackerNoRedirectInboundAsExternal, 1100);
545
+ }
546
+ }
547
+ }
548
+ } else {
549
+ valuesArray.exit = 'internal';
550
+ __gaTrackerNotSend(valuesArray);
551
+ }
552
+ } else {
553
+ valuesArray.exit = 'notlink';
554
+ __gaTrackerNotSend(valuesArray);
555
+ }
556
+ }
557
+
558
+ var prevHash = window.location.hash;
559
+
560
+ function __gaTrackerHashChangeEvent() {
561
+ /* Todo: Ready this section for JS unit testing */
562
+ if (monsterinsights_frontend.hash_tracking === "true" && prevHash != window.location.hash) {
563
+ prevHash = window.location.hash;
564
+ __gaTracker('set', 'page', location.pathname + location.search + location.hash);
565
+ __gaTracker('send', 'pageview');
566
+ __gaTrackerLog("Hash change to: " + location.pathname + location.search + location.hash);
567
+ } else {
568
+ __gaTrackerLog("Hash change to (untracked): " + location.pathname + location.search + location.hash);
569
+ }
570
+ }
571
+
572
+ /* Attach the event to all clicks in the document after page has loaded */
573
+ var __gaTrackerWindow = window;
574
+ if (__gaTrackerWindow.addEventListener) {
575
+ __gaTrackerWindow.addEventListener(
576
+ "load",
577
+ function () {
578
+ document.body.addEventListener(
579
+ "click",
580
+ __gaTrackerClickEvent,
581
+ false
582
+ );
583
+ },
584
+ false
585
+ );
586
+ window.addEventListener("hashchange", __gaTrackerHashChangeEvent, false);
587
+ } else {
588
+ if (__gaTrackerWindow.attachEvent) {
589
+ __gaTrackerWindow.attachEvent(
590
+ "onload",
591
+ function () {
592
+ document.body.attachEvent("onclick", __gaTrackerClickEvent);
593
+ }
594
+ );
595
+ window.attachEvent("onhashchange", __gaTrackerHashChangeEvent);
596
+ }
597
+ }
598
+
599
+ if (typeof String.prototype.endsWith !== 'function') {
600
+ String.prototype.endsWith = function (suffix) {
601
+ return this.indexOf(suffix, this.length - suffix.length) !== -1;
602
+ };
603
+ }
604
+ if (typeof String.prototype.startsWith !== 'function') {
605
+ String.prototype.startsWith = function (prefix) {
606
+ return this.indexOf(prefix) === 0;
607
+ };
608
+ }
609
+
610
+ if (typeof Array.prototype.lastIndexOf !== 'function') {
611
+ Array.prototype.lastIndexOf = function (searchElement /*, fromIndex*/) {
612
+ 'use strict';
613
+
614
+ if (this === void 0 || this === null) {
615
+ throw new TypeError();
616
+ }
617
+
618
+ var n, k,
619
+ t = Object(this),
620
+ len = t.length >>> 0; /* jshint ignore:line */
621
+ if (len === 0) {
622
+ return -1;
623
+ }
624
+
625
+ n = len - 1;
626
+ if (arguments.length > 1) {
627
+ n = Number(arguments[1]);
628
+ if (n != n) {
629
+ n = 0;
630
+ } else if (n != 0 && n != (1 / 0) && n != -(1 / 0)) { /* jshint ignore:line */
631
+ n = (n > 0 || -1) * Math.floor(Math.abs(n));
632
+ }
633
+ }
634
+
635
+ for (k = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n); k >= 0; k--) {
636
+ if (k in t && t[k] === searchElement) {
637
+ return k;
638
+ }
639
+ }
640
+ return -1;
641
+ };
642
+ }
643
  };
644
  var MonsterInsightsObject = new MonsterInsights();
assets/js/index.php CHANGED
@@ -1,4 +1,4 @@
1
  <?php
2
  //Nothing to see here
3
 
4
- header( 'HTTP/1.0 403 Forbidden' );
1
  <?php
2
  //Nothing to see here
3
 
4
+ header( 'HTTP/1.0 403 Forbidden' );
assets/js/popular-posts.js CHANGED
@@ -1,33 +1,33 @@
1
  var MonsterInsights_Popular_Posts = {
2
 
3
- init: function () {
4
- this.grab_widgets_with_ajax();
5
- },
6
 
7
- grab_widgets_with_ajax: function () {
8
- var xhr = new XMLHttpRequest();
9
- var url = monsterinsights_pp.ajaxurl;
10
- var widgets_jsons = document.querySelectorAll( '.monsterinsights-popular-posts-widget-json' ),
11
- i,
12
- widgets_length = widgets_jsons.length;
13
 
14
- var params = 'action=monsterinsights_popular_posts_get_widget_output&post_id=' + monsterinsights_pp.post_id;
15
 
16
- for ( i = 0; i < widgets_length; ++ i ) {
17
- params += '&data[]=' + widgets_jsons[i].innerHTML
18
- }
19
- xhr.open( 'POST', url );
20
- xhr.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded' );
21
- xhr.onload = function () {
22
- if ( xhr.status === 200 ) {
23
- let rendered_widgets = JSON.parse( xhr.responseText );
24
- for ( i = 0; i < widgets_length; ++ i ) {
25
- widgets_jsons[i].parentElement.innerHTML = rendered_widgets[i];
26
- }
27
- }
28
- };
29
- xhr.send( params );
30
- },
31
  };
32
 
33
  MonsterInsights_Popular_Posts.init();
1
  var MonsterInsights_Popular_Posts = {
2
 
3
+ init: function () {
4
+ this.grab_widgets_with_ajax();
5
+ },
6
 
7
+ grab_widgets_with_ajax: function () {
8
+ var xhr = new XMLHttpRequest();
9
+ var url = monsterinsights_pp.ajaxurl;
10
+ var widgets_jsons = document.querySelectorAll('.monsterinsights-popular-posts-widget-json'),
11
+ i,
12
+ widgets_length = widgets_jsons.length;
13
 
14
+ var params = 'action=monsterinsights_popular_posts_get_widget_output&post_id=' + monsterinsights_pp.post_id;
15
 
16
+ for (i = 0; i < widgets_length; ++i) {
17
+ params += '&data[]=' + widgets_jsons[i].innerHTML
18
+ }
19
+ xhr.open('POST', url);
20
+ xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
21
+ xhr.onload = function () {
22
+ if (xhr.status === 200) {
23
+ let rendered_widgets = JSON.parse(xhr.responseText);
24
+ for (i = 0; i < widgets_length; ++i) {
25
+ widgets_jsons[i].parentElement.innerHTML = rendered_widgets[i];
26
+ }
27
+ }
28
+ };
29
+ xhr.send(params);
30
+ },
31
  };
32
 
33
  MonsterInsights_Popular_Posts.init();
assets/lib/index.php CHANGED
@@ -1,4 +1,4 @@
1
  <?php
2
  //Nothing to see here
3
 
4
- header( 'HTTP/1.0 403 Forbidden' );
1
  <?php
2
  //Nothing to see here
3
 
4
+ header( 'HTTP/1.0 403 Forbidden' );
assets/lib/pandora/class-am-deactivation-survey.php CHANGED
@@ -40,9 +40,10 @@ if ( ! class_exists( 'AM_Deactivation_Survey' ) ) {
40
  /**
41
  * Primary class constructor.
42
  *
43
- * @since 1.0.0
44
  * @param string $name Plugin name.
45
  * @param string $plugin Plugin slug.
 
 
46
  */
47
  public function __construct( $name = '', $plugin = '' ) {
48
 
@@ -54,20 +55,20 @@ if ( ! class_exists( 'AM_Deactivation_Survey' ) ) {
54
  return;
55
  }
56
 
57
- add_action( 'admin_print_scripts', array( $this, 'js' ), 20 );
58
- add_action( 'admin_print_scripts', array( $this, 'css' ) );
59
- add_action( 'admin_footer', array( $this, 'modal' ) );
60
  }
61
 
62
  /**
63
  * Checks if current site is a development one.
64
  *
65
- * @since 1.2.0
66
  * @return bool
 
67
  */
68
  public function is_dev_url() {
69
  // If it is an AM dev site, return false, so we can see them on our dev sites.
70
- if ( defined ('AWESOMEMOTIVE_DEV_MODE' ) && AWESOMEMOTIVE_DEV_MODE ) {
71
  return false;
72
  }
73
 
@@ -94,14 +95,14 @@ if ( ! class_exists( 'AM_Deactivation_Survey' ) ) {
94
 
95
  $tlds_to_check = array( '.dev', '.local', ':8888' );
96
  foreach ( $tlds_to_check as $tld ) {
97
- if ( false !== strpos( $host, $tld ) ) {
98
- $is_local_url = true;
99
- continue;
100
- }
101
 
102
  }
103
  if ( substr_count( $host, '.' ) > 1 ) {
104
- $subdomains_to_check = array( 'dev.', '*.staging.', 'beta.', 'test.' );
105
  foreach ( $subdomains_to_check as $subdomain ) {
106
  $subdomain = str_replace( '.', '(.)', $subdomain );
107
  $subdomain = str_replace( array( '*', '(.)' ), '(.*)', $subdomain );
@@ -112,20 +113,22 @@ if ( ! class_exists( 'AM_Deactivation_Survey' ) ) {
112
  }
113
  }
114
  }
 
115
  return $is_local_url;
116
  }
117
 
118
  /**
119
  * Checks if current admin screen is the plugins page.
120
  *
121
- * @since 1.0.0
122
  * @return bool
 
123
  */
124
  public function is_plugin_page() {
125
  $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
126
  if ( empty( $screen ) ) {
127
  return false;
128
  }
 
129
  return ( ! empty( $screen->id ) && in_array( $screen->id, array( 'plugins', 'plugins-network' ), true ) );
130
  }
131
 
@@ -141,58 +144,58 @@ if ( ! class_exists( 'AM_Deactivation_Survey' ) ) {
141
  }
142
  ?>
143
  <script type="text/javascript">
144
- jQuery(function($){
145
- var $deactivateLink = $('#the-list').find('[data-slug="<?php echo $this->plugin; ?>"] span.deactivate a'),
146
- $overlay = $('#am-deactivate-survey-<?php echo $this->plugin; ?>'),
147
- $form = $overlay.find('form'),
148
- formOpen = false;
149
- // Plugin listing table deactivate link.
150
- $deactivateLink.on('click', function(event) {
151
- event.preventDefault();
152
- $overlay.css('display', 'table');
153
- formOpen = true;
154
- $form.find('.am-deactivate-survey-option:first-of-type input[type=radio]').focus();
155
- });
156
- // Survey radio option selected.
157
- $form.on('change', 'input[type=radio]', function(event) {
158
- event.preventDefault();
159
- $form.find('input[type=text], .error').hide();
160
- $form.find('.am-deactivate-survey-option').removeClass('selected');
161
- $(this).closest('.am-deactivate-survey-option').addClass('selected').find('input[type=text]').show();
162
- });
163
- // Survey Skip & Deactivate.
164
- $form.on('click', '.am-deactivate-survey-deactivate', function(event) {
165
- event.preventDefault();
166
- location.href = $deactivateLink.attr('href');
167
- });
168
- // Survey submit.
169
- $form.submit(function(event) {
170
- event.preventDefault();
171
- if (! $form.find('input[type=radio]:checked').val()) {
172
- $form.find('.am-deactivate-survey-footer').prepend('<span class="error"><?php echo esc_js( __( 'Please select an option', 'google-analytics-for-wordpress' ) ); ?></span>');
173
- return;
174
- }
175
- var data = {
176
- code: $form.find('.selected input[type=radio]').val(),
177
- reason: $form.find('.selected .am-deactivate-survey-option-reason').text(),
178
- details: $form.find('.selected input[type=text]').val(),
179
- site: '<?php echo esc_url( home_url() ); ?>',
180
- plugin: '<?php echo sanitize_key( $this->name ); ?>'
181
- }
182
- var submitSurvey = $.post('<?php echo $this->api_url; ?>', data);
183
- submitSurvey.always(function() {
184
  location.href = $deactivateLink.attr('href');
185
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
  });
187
- // Exit key closes survey when open.
188
- $(document).keyup(function(event) {
189
- if (27 === event.keyCode && formOpen) {
190
- $overlay.hide();
191
- formOpen = false;
192
- $deactivateLink.focus();
193
- }
194
- });
195
- });
196
  </script>
197
  <?php
198
  }
@@ -209,74 +212,85 @@ if ( ! class_exists( 'AM_Deactivation_Survey' ) ) {
209
  }
210
  ?>
211
  <style type="text/css">
212
- .am-deactivate-survey-modal {
213
- display: none;
214
- table-layout: fixed;
215
- position: fixed;
216
- z-index: 9999;
217
- width: 100%;
218
- height: 100%;
219
- text-align: center;
220
- font-size: 14px;
221
- top: 0;
222
- left: 0;
223
- background: rgba(0,0,0,0.8);
224
- }
225
- .am-deactivate-survey-wrap {
226
- display: table-cell;
227
- vertical-align: middle;
228
- }
229
- .am-deactivate-survey {
230
- background-color: #fff;
231
- max-width: 550px;
232
- margin: 0 auto;
233
- padding: 30px;
234
- text-align: left;
235
- }
236
- .am-deactivate-survey .error {
237
- display: block;
238
- color: red;
239
- margin: 0 0 10px 0;
240
- }
241
- .am-deactivate-survey-title {
242
- display: block;
243
- font-size: 18px;
244
- font-weight: 700;
245
- text-transform: uppercase;
246
- border-bottom: 1px solid #ddd;
247
- padding: 0 0 18px 0;
248
- margin: 0 0 18px 0;
249
- }
250
- .am-deactivate-survey-title span {
251
- color: #999;
252
- margin-right: 10px;
253
- }
254
- .am-deactivate-survey-desc {
255
- display: block;
256
- font-weight: 600;
257
- margin: 0 0 18px 0;
258
- }
259
- .am-deactivate-survey-option {
260
- margin: 0 0 10px 0;
261
- }
262
- .am-deactivate-survey-option-input {
263
- margin-right: 10px !important;
264
- }
265
- .am-deactivate-survey-option-details {
266
- display: none;
267
- width: 90%;
268
- margin: 10px 0 0 30px;
269
- }
270
- .am-deactivate-survey-footer {
271
- margin-top: 18px;
272
- }
273
- .am-deactivate-survey-deactivate {
274
- float: right;
275
- font-size: 13px;
276
- color: #ccc;
277
- text-decoration: none;
278
- padding-top: 7px;
279
- }
 
 
 
 
 
 
 
 
 
 
 
280
  </style>
281
  <?php
282
  }
@@ -294,17 +308,17 @@ if ( ! class_exists( 'AM_Deactivation_Survey' ) ) {
294
 
295
  $options = array(
296
  1 => array(
297
- 'title' => esc_html__( 'I no longer need the plugin', 'google-analytics-for-wordpress' ),
298
  ),
299
  2 => array(
300
  'title' => esc_html__( 'I\'m switching to a different plugin', 'google-analytics-for-wordpress' ),
301
  'details' => esc_html__( 'Please share which plugin', 'google-analytics-for-wordpress' ),
302
  ),
303
  3 => array(
304
- 'title' => esc_html__( 'I couldn\'t get the plugin to work', 'google-analytics-for-wordpress' ),
305
  ),
306
  4 => array(
307
- 'title' => esc_html__( 'It\'s a temporary deactivation', 'google-analytics-for-wordpress' ),
308
  ),
309
  5 => array(
310
  'title' => esc_html__( 'Other', 'google-analytics-for-wordpress' ),
@@ -315,37 +329,46 @@ if ( ! class_exists( 'AM_Deactivation_Survey' ) ) {
315
  <div class="am-deactivate-survey-modal" id="am-deactivate-survey-<?php echo $this->plugin; ?>">
316
  <div class="am-deactivate-survey-wrap">
317
  <form class="am-deactivate-survey" method="post">
318
- <span class="am-deactivate-survey-title"><span class="dashicons dashicons-testimonial"></span><?php echo ' ' . esc_html__( 'Quick Feedback', 'google-analytics-for-wordpress' ); ?></span>
 
319
  <span class="am-deactivate-survey-desc">
320
  <?php
321
  // Translators: Placeholder for the plugin name.
322
- echo sprintf( esc_html__('If you have a moment, please share why you are deactivating %s:', 'google-analytics-for-wordpress' ), $this->name );
323
  ?>
324
  </span>
325
  <div class="am-deactivate-survey-options">
326
  <?php foreach ( $options as $id => $option ) : ?>
327
- <div class="am-deactivate-survey-option">
328
- <label for="am-deactivate-survey-option-<?php echo $this->plugin; ?>-<?php echo $id; ?>" class="am-deactivate-survey-option-label">
329
- <input id="am-deactivate-survey-option-<?php echo $this->plugin; ?>-<?php echo $id; ?>" class="am-deactivate-survey-option-input" type="radio" name="code" value="<?php echo $id; ?>" />
330
- <span class="am-deactivate-survey-option-reason"><?php echo $option['title']; ?></span>
331
- </label>
332
- <?php if ( ! empty( $option['details'] ) ) : ?>
333
- <input class="am-deactivate-survey-option-details" type="text" placeholder="<?php echo $option['details']; ?>" />
334
- <?php endif; ?>
335
- </div>
 
 
 
 
 
 
 
336
  <?php endforeach; ?>
337
  </div>
338
  <div class="am-deactivate-survey-footer">
339
- <button type="submit" class="am-deactivate-survey-submit button button-primary button-large">
 
340
  <?php
341
  // Translators: Adds an ampersand.
342
- echo sprintf( esc_html__('Submit %s Deactivate', 'google-analytics-for-wordpress' ), '&amp;' );
343
  ?>
344
  </button>
345
  <a href="#" class="am-deactivate-survey-deactivate">
346
  <?php
347
  // Translators: Adds an ampersand.
348
- echo sprintf( esc_html__('Skip %s Deactivate', 'google-analytics-for-wordpress' ), '&amp;' );
349
  ?>
350
  </a>
351
  </div>
40
  /**
41
  * Primary class constructor.
42
  *
 
43
  * @param string $name Plugin name.
44
  * @param string $plugin Plugin slug.
45
+ *
46
+ * @since 1.0.0
47
  */
48
  public function __construct( $name = '', $plugin = '' ) {
49
 
55
  return;
56
  }
57
 
58
+ add_action( 'admin_print_scripts', array( $this, 'js' ), 20 );
59
+ add_action( 'admin_print_scripts', array( $this, 'css' ) );
60
+ add_action( 'admin_footer', array( $this, 'modal' ) );
61
  }
62
 
63
  /**
64
  * Checks if current site is a development one.
65
  *
 
66
  * @return bool
67
+ * @since 1.2.0
68
  */
69
  public function is_dev_url() {
70
  // If it is an AM dev site, return false, so we can see them on our dev sites.
71
+ if ( defined( 'AWESOMEMOTIVE_DEV_MODE' ) && AWESOMEMOTIVE_DEV_MODE ) {
72
  return false;
73
  }
74
 
95
 
96
  $tlds_to_check = array( '.dev', '.local', ':8888' );
97
  foreach ( $tlds_to_check as $tld ) {
98
+ if ( false !== strpos( $host, $tld ) ) {
99
+ $is_local_url = true;
100
+ continue;
101
+ }
102
 
103
  }
104
  if ( substr_count( $host, '.' ) > 1 ) {
105
+ $subdomains_to_check = array( 'dev.', '*.staging.', 'beta.', 'test.' );
106
  foreach ( $subdomains_to_check as $subdomain ) {
107
  $subdomain = str_replace( '.', '(.)', $subdomain );
108
  $subdomain = str_replace( array( '*', '(.)' ), '(.*)', $subdomain );
113
  }
114
  }
115
  }
116
+
117
  return $is_local_url;
118
  }
119
 
120
  /**
121
  * Checks if current admin screen is the plugins page.
122
  *
 
123
  * @return bool
124
+ * @since 1.0.0
125
  */
126
  public function is_plugin_page() {
127
  $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
128
  if ( empty( $screen ) ) {
129
  return false;
130
  }
131
+
132
  return ( ! empty( $screen->id ) && in_array( $screen->id, array( 'plugins', 'plugins-network' ), true ) );
133
  }
134
 
144
  }
145
  ?>
146
  <script type="text/javascript">
147
+ jQuery(function ($) {
148
+ var $deactivateLink = $('#the-list').find('[data-slug="<?php echo $this->plugin; ?>"] span.deactivate a'),
149
+ $overlay = $('#am-deactivate-survey-<?php echo $this->plugin; ?>'),
150
+ $form = $overlay.find('form'),
151
+ formOpen = false;
152
+ // Plugin listing table deactivate link.
153
+ $deactivateLink.on('click', function (event) {
154
+ event.preventDefault();
155
+ $overlay.css('display', 'table');
156
+ formOpen = true;
157
+ $form.find('.am-deactivate-survey-option:first-of-type input[type=radio]').focus();
158
+ });
159
+ // Survey radio option selected.
160
+ $form.on('change', 'input[type=radio]', function (event) {
161
+ event.preventDefault();
162
+ $form.find('input[type=text], .error').hide();
163
+ $form.find('.am-deactivate-survey-option').removeClass('selected');
164
+ $(this).closest('.am-deactivate-survey-option').addClass('selected').find('input[type=text]').show();
165
+ });
166
+ // Survey Skip & Deactivate.
167
+ $form.on('click', '.am-deactivate-survey-deactivate', function (event) {
168
+ event.preventDefault();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
  location.href = $deactivateLink.attr('href');
170
  });
171
+ // Survey submit.
172
+ $form.submit(function (event) {
173
+ event.preventDefault();
174
+ if (!$form.find('input[type=radio]:checked').val()) {
175
+ $form.find('.am-deactivate-survey-footer').prepend('<span class="error"><?php echo esc_js( __( 'Please select an option', 'google-analytics-for-wordpress' ) ); ?></span>');
176
+ return;
177
+ }
178
+ var data = {
179
+ code: $form.find('.selected input[type=radio]').val(),
180
+ reason: $form.find('.selected .am-deactivate-survey-option-reason').text(),
181
+ details: $form.find('.selected input[type=text]').val(),
182
+ site: '<?php echo esc_url( home_url() ); ?>',
183
+ plugin: '<?php echo sanitize_key( $this->name ); ?>'
184
+ }
185
+ var submitSurvey = $.post('<?php echo $this->api_url; ?>', data);
186
+ submitSurvey.always(function () {
187
+ location.href = $deactivateLink.attr('href');
188
+ });
189
+ });
190
+ // Exit key closes survey when open.
191
+ $(document).keyup(function (event) {
192
+ if (27 === event.keyCode && formOpen) {
193
+ $overlay.hide();
194
+ formOpen = false;
195
+ $deactivateLink.focus();
196
+ }
197
+ });
198
  });
 
 
 
 
 
 
 
 
 
199
  </script>
200
  <?php
201
  }
212
  }
213
  ?>
214
  <style type="text/css">
215
+ .am-deactivate-survey-modal {
216
+ display: none;
217
+ table-layout: fixed;
218
+ position: fixed;
219
+ z-index: 9999;
220
+ width: 100%;
221
+ height: 100%;
222
+ text-align: center;
223
+ font-size: 14px;
224
+ top: 0;
225
+ left: 0;
226
+ background: rgba(0, 0, 0, 0.8);
227
+ }
228
+
229
+ .am-deactivate-survey-wrap {
230
+ display: table-cell;
231
+ vertical-align: middle;
232
+ }
233
+
234
+ .am-deactivate-survey {
235
+ background-color: #fff;
236
+ max-width: 550px;
237
+ margin: 0 auto;
238
+ padding: 30px;
239
+ text-align: left;
240
+ }
241
+
242
+ .am-deactivate-survey .error {
243
+ display: block;
244
+ color: red;
245
+ margin: 0 0 10px 0;
246
+ }
247
+
248
+ .am-deactivate-survey-title {
249
+ display: block;
250
+ font-size: 18px;
251
+ font-weight: 700;
252
+ text-transform: uppercase;
253
+ border-bottom: 1px solid #ddd;
254
+ padding: 0 0 18px 0;
255
+ margin: 0 0 18px 0;
256
+ }
257
+
258
+ .am-deactivate-survey-title span {
259
+ color: #999;
260
+ margin-right: 10px;
261
+ }
262
+
263
+ .am-deactivate-survey-desc {
264
+ display: block;
265
+ font-weight: 600;
266
+ margin: 0 0 18px 0;
267
+ }
268
+
269
+ .am-deactivate-survey-option {
270
+ margin: 0 0 10px 0;
271
+ }
272
+
273
+ .am-deactivate-survey-option-input {
274
+ margin-right: 10px !important;
275
+ }
276
+
277
+ .am-deactivate-survey-option-details {
278
+ display: none;
279
+ width: 90%;
280
+ margin: 10px 0 0 30px;
281
+ }
282
+
283
+ .am-deactivate-survey-footer {
284
+ margin-top: 18px;
285
+ }
286
+
287
+ .am-deactivate-survey-deactivate {
288
+ float: right;
289
+ font-size: 13px;
290
+ color: #ccc;
291
+ text-decoration: none;
292
+ padding-top: 7px;
293
+ }
294
  </style>
295
  <?php
296
  }
308
 
309
  $options = array(
310
  1 => array(
311
+ 'title' => esc_html__( 'I no longer need the plugin', 'google-analytics-for-wordpress' ),
312
  ),
313
  2 => array(
314
  'title' => esc_html__( 'I\'m switching to a different plugin', 'google-analytics-for-wordpress' ),
315
  'details' => esc_html__( 'Please share which plugin', 'google-analytics-for-wordpress' ),
316
  ),
317
  3 => array(
318
+ 'title' => esc_html__( 'I couldn\'t get the plugin to work', 'google-analytics-for-wordpress' ),
319
  ),
320
  4 => array(
321
+ 'title' => esc_html__( 'It\'s a temporary deactivation', 'google-analytics-for-wordpress' ),
322
  ),
323
  5 => array(
324
  'title' => esc_html__( 'Other', 'google-analytics-for-wordpress' ),
329
  <div class="am-deactivate-survey-modal" id="am-deactivate-survey-<?php echo $this->plugin; ?>">
330
  <div class="am-deactivate-survey-wrap">
331
  <form class="am-deactivate-survey" method="post">
332
+ <span class="am-deactivate-survey-title"><span
333
+ class="dashicons dashicons-testimonial"></span><?php echo ' ' . esc_html__( 'Quick Feedback', 'google-analytics-for-wordpress' ); ?></span>
334
  <span class="am-deactivate-survey-desc">
335
  <?php
336
  // Translators: Placeholder for the plugin name.
337
+ echo sprintf( esc_html__( 'If you have a moment, please share why you are deactivating %s:', 'google-analytics-for-wordpress' ), $this->name );
338
  ?>
339
  </span>
340
  <div class="am-deactivate-survey-options">
341
  <?php foreach ( $options as $id => $option ) : ?>
342
+ <div class="am-deactivate-survey-option">
343
+ <label
344
+ for="am-deactivate-survey-option-<?php echo $this->plugin; ?>-<?php echo $id; ?>"
345
+ class="am-deactivate-survey-option-label">
346
+ <input
347
+ id="am-deactivate-survey-option-<?php echo $this->plugin; ?>-<?php echo $id; ?>"
348
+ class="am-deactivate-survey-option-input" type="radio" name="code"
349
+ value="<?php echo $id; ?>"/>
350
+ <span
351
+ class="am-deactivate-survey-option-reason"><?php echo $option['title']; ?></span>
352
+ </label>
353
+ <?php if ( ! empty( $option['details'] ) ) : ?>
354
+ <input class="am-deactivate-survey-option-details" type="text"
355
+ placeholder="<?php echo $option['details']; ?>"/>
356
+ <?php endif; ?>
357
+ </div>
358
  <?php endforeach; ?>
359
  </div>
360
  <div class="am-deactivate-survey-footer">
361
+ <button type="submit"
362
+ class="am-deactivate-survey-submit button button-primary button-large">
363
  <?php
364
  // Translators: Adds an ampersand.
365
+ echo sprintf( esc_html__( 'Submit %s Deactivate', 'google-analytics-for-wordpress' ), '&amp;' );
366
  ?>
367
  </button>
368
  <a href="#" class="am-deactivate-survey-deactivate">
369
  <?php
370
  // Translators: Adds an ampersand.
371
+ echo sprintf( esc_html__( 'Skip %s Deactivate', 'google-analytics-for-wordpress' ), '&amp;' );
372
  ?>
373
  </a>
374
  </div>
googleanalytics.php CHANGED
@@ -1,826 +1,832 @@
1
- <?php
2
- /**
3
- * Plugin Name: Google Analytics for WordPress by MonsterInsights
4
- * Plugin URI: https://www.monsterinsights.com/?utm_source=liteplugin&utm_medium=pluginheader&utm_campaign=pluginurl&utm_content=7%2E0%2E0
5
- * Description: The best Google Analytics plugin for WordPress. See how visitors find and use your website, so you can keep them coming back.
6
- * Author: MonsterInsights
7
- * Author URI: https://www.monsterinsights.com/?utm_source=liteplugin&utm_medium=pluginheader&utm_campaign=authoruri&utm_content=7%2E0%2E0
8
- *
9
- * Version: 8.7.0
10
- * Requires at least: 4.8.0
11
- * Requires PHP: 5.5
12
- *
13
- * License: GPL v3
14
- *
15
- * Text Domain: google-analytics-for-wordpress
16
- * Domain Path: /languages
17
- *
18
- * MonsterInsights Lite
19
- * Copyright (C) 2008-2018, MonsterInsights, support@monsterinsights.com
20
- *
21
- * This program is free software: you can redistribute it and/or modify
22
- * it under the terms of the GNU General Public License as published by
23
- * the Free Software Foundation, either version 3 of the License, or
24
- * (at your option) any later version.
25
- *
26
- * This program is distributed in the hope that it will be useful,
27
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
28
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29
- * GNU General Public License for more details.
30
- *
31
- * You should have received a copy of the GNU General Public License
32
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
33
- *
34
- * @category Plugin
35
- * @copyright Copyright © 2018 Chris Christoff
36
- * @author Chris Christoff
37
- * @package MonsterInsights
38
- */
39
-
40
- // Exit if accessed directly.
41
- if ( ! defined( 'ABSPATH' ) ) {
42
- exit;
43
- }
44
-
45
- /**
46
- * Main plugin class.
47
- *
48
- * @since 6.0.0
49
- *
50
- * @package MonsterInsights
51
- * @author Chris Christoff
52
- * @access public
53
- */
54
- final class MonsterInsights_Lite {
55
-
56
- /**
57
- * Holds the class object.
58
- *
59
- * @since 6.0.0
60
- * @access public
61
- * @var object Instance of instantiated MonsterInsights class.
62
- */
63
- public static $instance;
64
-
65
- /**
66
- * Plugin version, used for cache-busting of style and script file references.
67
- *
68
- * @since 6.0.0
69
- * @access public
70
- * @var string $version Plugin version.
71
- */
72
- public $version = '8.7.0';
73
-
74
- /**
75
- * Plugin file.
76
- *
77
- * @since 6.0.0
78
- * @access public
79
- * @var string $file PHP File constant for main file.
80
- */
81
- public $file;
82
-
83
- /**
84
- * The name of the plugin.
85
- *
86
- * @since 6.0.0
87
- * @access public
88
- * @var string $plugin_name Plugin name.
89
- */
90
- public $plugin_name = 'MonsterInsights Lite';
91
-
92
- /**
93
- * Unique plugin slug identifier.
94
- *
95
- * @since 6.0.0
96
- * @access public
97
- * @var string $plugin_slug Plugin slug.
98
- */
99
- public $plugin_slug = 'monsterinsights-lite';
100
-
101
- /**
102
- * Holds instance of MonsterInsights License class.
103
- *
104
- * @since 6.0.0
105
- * @access public
106
- * @var MonsterInsights_License $license Instance of License class.
107
- */
108
- protected $license;
109
-
110
- /**
111
- * Holds instance of MonsterInsights Admin Notice class.
112
- *
113
- * @since 6.0.0
114
- * @access public
115
- * @var MonsterInsights_Admin_Notice $notices Instance of Admin Notice class.
116
- */
117
- public $notices;
118
-
119
- /**
120
- * Holds instance of MonsterInsights Reporting class.
121
- *
122
- * @since 6.0.0
123
- * @access public
124
- * @var MonsterInsights_Reporting $reporting Instance of Reporting class.
125
- */
126
- public $reporting;
127
-
128
- /**
129
- * Holds instance of MonsterInsights Notifications class.
130
- *
131
- * @since 7.11
132
- * @access public
133
- * @var MonsterInsights_Notifications $notifications Instance of Notifications class.
134
- */
135
- public $notifications;
136
-
137
- /**
138
- * Holds instance of MonsterInsights Notification Events
139
- *
140
- * @since 7.12.3
141
- * @access public
142
- * @var MonsterInsights_Notification_Event $notification_event Instance of MonsterInsights_Notification_Event class.
143
- */
144
- public $notification_event;
145
-
146
- /**
147
- * Holds instance of MonsterInsights Auth class.
148
- *
149
- * @since 7.0.0
150
- * @access public
151
- * @var MonsterInsights_Auth $auth Instance of Auth class.
152
- */
153
- protected $auth;
154
-
155
- /**
156
- * Holds instance of MonsterInsights API Auth class.
157
- *
158
- * @since 6.0.0
159
- * @access public
160
- * @var MonsterInsights_Auth $api_auth Instance of APIAuth class.
161
- */
162
- public $api_auth;
163
-
164
- /**
165
- * Holds instance of MonsterInsights API Rest Routes class.
166
- *
167
- * @since 7.4.0
168
- * @access public
169
- * @var MonsterInsights_Rest_Routes $routes Instance of rest routes.
170
- */
171
- public $routes;
172
-
173
- /**
174
- * The tracking mode used in the frontend.
175
- *
176
- * @since 7.15.0
177
- * @accces public
178
- * @var string
179
- * @deprecated Since 8.3 with the removal of ga compatibility
180
- */
181
- public $tracking_mode;
182
-
183
- /**
184
- * Primary class constructor.
185
- *
186
- * @since 6.0.0
187
- * @access public
188
- */
189
- public function __construct() {
190
- // We don't use this
191
- }
192
-
193
- /**
194
- * Returns the singleton instance of the class.
195
- *
196
- * @access public
197
- * @since 6.0.0
198
- *
199
- * @return object The MonsterInsights_Lite object.
200
- */
201
- public static function get_instance() {
202
-
203
- if ( ! isset( self::$instance ) && ! ( self::$instance instanceof MonsterInsights_Lite ) ) {
204
- self::$instance = new MonsterInsights_Lite();
205
- self::$instance->file = __FILE__;
206
-
207
- // Detect Pro version and return early
208
- if ( defined( 'MONSTERINSIGHTS_PRO_VERSION' ) ) {
209
- add_action( 'admin_notices', array( self::$instance, 'monsterinsights_pro_notice' ) );
210
- return self::$instance;
211
- }
212
-
213
- if ( ! self::$instance->check_compatibility() ) {
214
- return self::$instance;
215
- }
216
-
217
- // Define constants
218
- self::$instance->define_globals();
219
-
220
- // Load in settings
221
- self::$instance->load_settings();
222
-
223
- // Load in Licensing
224
- self::$instance->load_licensing();
225
-
226
- // Load in Auth
227
- self::$instance->load_auth();
228
-
229
- // Load files
230
- self::$instance->require_files();
231
-
232
- // This does the version to version background upgrade routines and initial install
233
- $mi_version = get_option( 'monsterinsights_current_version', '5.5.3' );
234
- if ( version_compare( $mi_version, '7.15.0', '<' ) ) {
235
- monsterinsights_lite_call_install_and_upgrade();
236
- }
237
-
238
- if ( is_admin() ) {
239
- new AM_Deactivation_Survey( 'MonsterInsights', basename( dirname( __FILE__ ) ) );
240
- }
241
-
242
- // Load the plugin textdomain.
243
- add_action( 'plugins_loaded', array( self::$instance, 'load_plugin_textdomain' ), 15 );
244
-
245
- // Load admin only components.
246
- if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
247
- self::$instance->notices = new MonsterInsights_Notice_Admin();
248
- self::$instance->reporting = new MonsterInsights_Reporting();
249
- self::$instance->api_auth = new MonsterInsights_API_Auth();
250
- self::$instance->routes = new MonsterInsights_Rest_Routes();
251
- self::$instance->notifications = new MonsterInsights_Notifications();
252
- self::$instance->notification_event = new MonsterInsights_Notification_Event();
253
- }
254
-
255
- if ( monsterinsights_is_pro_version() ) {
256
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'pro/includes/load.php';
257
- } else {
258
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/load.php';
259
- }
260
-
261
- // Run hook to load MonsterInsights addons.
262
- do_action( 'monsterinsights_load_plugins' ); // the updater class for each addon needs to be instantiated via `monsterinsights_updater`
263
- }
264
-
265
- return self::$instance;
266
-
267
- }
268
-
269
- /**
270
- * Throw error on object clone
271
- *
272
- * The whole idea of the singleton design pattern is that there is a single
273
- * object therefore, we don't want the object to be cloned.
274
- *
275
- * @since 6.0.0
276
- * @access public
277
- *
278
- * @return void
279
- */
280
- public function __clone() {
281
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin&#8217; huh?', 'google-analytics-for-wordpress' ), '6.0.0' );
282
- }
283
-
284
- /**
285
- * Disable unserializing of the class
286
- *
287
- * Attempting to wakeup an MonsterInsights instance will throw a doing it wrong notice.
288
- *
289
- * @since 6.0.0
290
- * @access public
291
- *
292
- * @return void
293
- */
294
- public function __wakeup() {
295
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin&#8217; huh?', 'google-analytics-for-wordpress' ), '6.0.0' );
296
- }
297
-
298
- /**
299
- * Magic get function.
300
- *
301
- * We use this to lazy load certain functionality. Right now used to lazyload
302
- * the API & Auth frontend, so it's only loaded if user is using a plugin
303
- * that requires it.
304
- *
305
- * @since 7.0.0
306
- * @access public
307
- *
308
- * @return void
309
- */
310
- public function __get( $key ) {
311
- if ( $key === 'auth' ) {
312
- if ( empty( self::$instance->auth ) ) {
313
- // LazyLoad Auth for Frontend
314
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/auth.php';
315
- self::$instance->auth = new MonsterInsights_Auth();
316
- }
317
- return self::$instance->$key;
318
- } else {
319
- return self::$instance->$key;
320
- }
321
- }
322
-
323
- /**
324
- * Check compatibility with PHP and WP, and display notices if necessary
325
- *
326
- * @since 8.0.0
327
- * @return bool
328
- */
329
- private function check_compatibility() {
330
- if ( defined( 'MONSTERINSIGHTS_FORCE_ACTIVATION' ) && MONSTERINSIGHTS_FORCE_ACTIVATION ) {
331
- return true;
332
- }
333
-
334
- require_once plugin_dir_path( __FILE__ ) . 'includes/compatibility-check.php';
335
- $compatibility = MonsterInsights_Compatibility_Check::get_instance();
336
- $compatibility->maybe_display_notice();
337
-
338
- return $compatibility->is_php_compatible() && $compatibility->is_wp_compatible();
339
- }
340
-
341
- /**
342
- * Define MonsterInsights constants.
343
- *
344
- * This function defines all of the MonsterInsights PHP constants.
345
- *
346
- * @since 6.0.0
347
- * @access public
348
- *
349
- * @return void
350
- */
351
- public function define_globals() {
352
-
353
- if ( ! defined( 'MONSTERINSIGHTS_VERSION' ) ) {
354
- define( 'MONSTERINSIGHTS_VERSION', $this->version );
355
- }
356
-
357
- if ( ! defined( 'MONSTERINSIGHTS_LITE_VERSION' ) ) {
358
- define( 'MONSTERINSIGHTS_LITE_VERSION', MONSTERINSIGHTS_VERSION );
359
- }
360
-
361
- if ( ! defined( 'MONSTERINSIGHTS_PLUGIN_NAME' ) ) {
362
- define( 'MONSTERINSIGHTS_PLUGIN_NAME', $this->plugin_name );
363
- }
364
-
365
- if ( ! defined( 'MONSTERINSIGHTS_PLUGIN_SLUG' ) ) {
366
- define( 'MONSTERINSIGHTS_PLUGIN_SLUG', $this->plugin_slug );
367
- }
368
-
369
- if ( ! defined( 'MONSTERINSIGHTS_PLUGIN_FILE' ) ) {
370
- define( 'MONSTERINSIGHTS_PLUGIN_FILE', $this->file );
371
- }
372
-
373
- if ( ! defined( 'MONSTERINSIGHTS_PLUGIN_DIR' ) ) {
374
- define( 'MONSTERINSIGHTS_PLUGIN_DIR', plugin_dir_path( $this->file ) );
375
- }
376
-
377
- if ( ! defined( 'MONSTERINSIGHTS_PLUGIN_URL' ) ) {
378
- define( 'MONSTERINSIGHTS_PLUGIN_URL', plugin_dir_url( $this->file ) );
379
- }
380
- }
381
-
382
- /**
383
- * Loads the plugin textdomain for translation.
384
- *
385
- * @access public
386
- * @since 6.0.0
387
- *
388
- * @return void
389
- */
390
- public function load_plugin_textdomain() {
391
-
392
- $mi_locale = get_locale();
393
- if ( function_exists( 'get_user_locale' ) ) {
394
- $mi_locale = get_user_locale();
395
- }
396
-
397
- // Traditional WordPress plugin locale filter.
398
- $mi_locale = apply_filters( 'plugin_locale', $mi_locale, 'google-analytics-for-wordpress' );
399
- $mi_mofile = sprintf( '%1$s-%2$s.mo', 'google-analytics-for-wordpress', $mi_locale );
400
-
401
- // Look for wp-content/languages/google-analytics-for-wordpress/google-analytics-for-wordpress-{lang}_{country}.mo
402
- $mi_mofile1 = WP_LANG_DIR . '/google-analytics-for-wordpress/' . $mi_mofile;
403
-
404
- // Look in wp-content/languages/plugins/google-analytics-for-wordpress/google-analytics-for-wordpress-{lang}_{country}.mo
405
- $mi_mofile2 = WP_LANG_DIR . '/plugins/google-analytics-for-wordpress/' . $mi_mofile;
406
-
407
- // Look in wp-content/languages/plugins/google-analytics-for-wordpress-{lang}_{country}.mo
408
- $mi_mofile3 = WP_LANG_DIR . '/plugins/' . $mi_mofile;
409
-
410
- // Look in wp-content/plugins/google-analytics-for-wordpress/languages/google-analytics-for-wordpress-{lang}_{country}.mo
411
- $mi_mofile4 = dirname( plugin_basename( MONSTERINSIGHTS_PLUGIN_FILE ) ) . '/languages/';
412
- $mi_mofile4 = apply_filters( 'monsterinsights_lite_languages_directory', $mi_mofile4 );
413
-
414
- if ( file_exists( $mi_mofile1 ) ) {
415
- load_textdomain( 'google-analytics-for-wordpress', $mi_mofile1 );
416
- } elseif ( file_exists( $mi_mofile2 ) ) {
417
- load_textdomain( 'google-analytics-for-wordpress', $mi_mofile2 );
418
- } elseif ( file_exists( $mi_mofile3 ) ) {
419
- load_textdomain( 'google-analytics-for-wordpress', $mi_mofile3 );
420
- } else {
421
- load_plugin_textdomain( 'google-analytics-for-wordpress', false, $mi_mofile4 );
422
- }
423
-
424
- }
425
-
426
- /**
427
- * Output a nag notice if the user has both Lite and Pro activated
428
- *
429
- * @access public
430
- * @since 6.0.0
431
- *
432
- * @return void
433
- */
434
- public function monsterinsights_pro_notice() {
435
- $url = admin_url( 'plugins.php' );
436
- // Check for MS dashboard
437
- if( is_network_admin() ) {
438
- $url = network_admin_url( 'plugins.php' );
439
- }
440
- ?>
441
- <div class="error">
442
- <p><?php echo sprintf( esc_html__( 'Please %1$suninstall%2$s the MonsterInsights Lite Plugin. Your Pro version of MonsterInsights may not work as expected until the Lite version is uninstalled.', 'google-analytics-for-wordpress' ), '<a href="' . $url . '">', '</a>' ); ?></p>
443
- </div>
444
- <?php
445
-
446
- }
447
-
448
- /**
449
- * Loads MonsterInsights settings
450
- *
451
- * Adds the items to the base object, and adds the helper functions.
452
- *
453
- * @since 6.0.0
454
- * @access public
455
- *
456
- * @return void
457
- */
458
- public function load_settings() {
459
- global $monsterinsights_settings;
460
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/options.php';
461
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/helpers.php';
462
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/deprecated.php';
463
- $monsterinsights_settings = monsterinsights_get_options();
464
- }
465
-
466
-
467
- /**
468
- * Loads MonsterInsights License
469
- *
470
- * Loads license class used by MonsterInsights
471
- *
472
- * @since 7.0.0
473
- * @access public
474
- *
475
- * @return void
476
- */
477
- public function load_licensing(){
478
- if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
479
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/license-compat.php';
480
- self::$instance->license = new MonsterInsights_License_Compat();
481
- }
482
- }
483
-
484
- /**
485
- * Loads MonsterInsights Auth
486
- *
487
- * Loads auth used by MonsterInsights
488
- *
489
- * @since 7.0.0
490
- * @access public
491
- *
492
- * @return void
493
- */
494
- public function load_auth() {
495
- if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
496
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/auth.php';
497
- self::$instance->auth = new MonsterInsights_Auth();
498
- }
499
- }
500
-
501
- /**
502
- * Loads all files into scope.
503
- *
504
- * @access public
505
- * @since 6.0.0
506
- *
507
- * @return void
508
- */
509
- public function require_files() {
510
-
511
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/capabilities.php';
512
-
513
- if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
514
-
515
- // Lite and Pro files
516
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'assets/lib/pandora/class-am-deactivation-survey.php';
517
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/ajax.php';
518
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/admin.php';
519
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/common.php';
520
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/notice.php';
521
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/licensing/autoupdate.php';
522
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/review.php';
523
-
524
- // Pages
525
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/pages/settings.php';
526
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/pages/tools.php';
527
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/pages/reports.php';
528
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/pages/addons.php';
529
-
530
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/api-auth.php';
531
-
532
- // Reports
533
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/reports/abstract-report.php';
534
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/reports/overview.php';
535
-
536
- // Reporting Functionality
537
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/reporting.php';
538
-
539
- // Routes used by Vue
540
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/routes.php';
541
-
542
- // Load gutenberg editor functions
543
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/gutenberg/gutenberg.php';
544
-
545
- // Emails
546
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/emails/class-emails.php';
547
-
548
- // Notifications class.
549
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/notifications.php';
550
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/notification-event.php';
551
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/notification-event-runner.php';
552
- // Add notification manual events for lite version.
553
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/notifications/notification-events.php';
554
- }
555
-
556
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/exclude-page-metabox.php';
557
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/api-request.php';
558
-
559
- if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
560
- // Late loading classes (self instantiating)
561
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/tracking.php';
562
- }
563
-
564
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/frontend/frontend.php';
565
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/frontend/seedprod.php';
566
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/measurement-protocol.php';
567
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/measurement-protocol-v4.php';
568
- }
569
-
570
- /**
571
- * Get the tracking mode for the frontend scripts.
572
- *
573
- * @deprecated Since 8.3 with the removal of ga compatibility
574
- * @return string
575
- */
576
- public function get_tracking_mode() {
577
-
578
- if ( ! isset( $this->tracking_mode ) ) {
579
- // This will already be set to 'analytics' to anybody already using the plugin before 7.15.0.
580
- $this->tracking_mode = monsterinsights_get_option( 'tracking_mode', 'gtag' );
581
- }
582
-
583
- return $this->tracking_mode;
584
- }
585
- }
586
-
587
- /**
588
- * Fired when the plugin is activated.
589
- *
590
- * @access public
591
- * @since 6.0.0
592
- *
593
- * @global int $wp_version The version of WordPress for this install.
594
- * @global object $wpdb The WordPress database object.
595
- * @param boolean $network_wide True if WPMU superadmin uses "Network Activate" action, false otherwise.
596
- *
597
- * @return void
598
- */
599
- function monsterinsights_lite_activation_hook( $network_wide ) {
600
- $url = admin_url( 'plugins.php' );
601
- // Check for MS dashboard
602
- if ( is_network_admin() ) {
603
- $url = network_admin_url( 'plugins.php' );
604
- }
605
-
606
- if ( class_exists( 'MonsterInsights' ) ) {
607
- deactivate_plugins( plugin_basename( __FILE__ ) );
608
- wp_die( sprintf( esc_html__( 'Please uninstall and remove MonsterInsights Pro before activating Google Analytics for WordPress by MonsterInsights. The Lite version has not been activated. %1$sClick here to return to the Dashboard%2$s.', 'google-analytics-by-wordpress' ), '<a href="' . $url . '">', '</a>' ) );
609
- }
610
-
611
- require_once plugin_dir_path( __FILE__ ) . 'includes/compatibility-check.php';
612
- $compatibility = MonsterInsights_Compatibility_Check::get_instance();
613
- $compatibility->maybe_deactivate_plugin( plugin_basename( __FILE__ ) );
614
-
615
- // Add transient to trigger redirect.
616
- set_transient( '_monsterinsights_activation_redirect', 1, 30 );
617
- }
618
- register_activation_hook( __FILE__, 'monsterinsights_lite_activation_hook' );
619
-
620
- /**
621
- * Fired when the plugin is uninstalled.
622
- *
623
- * @access public
624
- * @since 6.0.0
625
- *
626
- * @return void
627
- */
628
- function monsterinsights_lite_uninstall_hook() {
629
- wp_cache_flush();
630
-
631
- // Note, if both MI Pro and Lite are active, this is an MI Pro instance
632
- // Therefore MI Lite can only use functions of the instance common to
633
- // both plugins. If it needs to be pro specific, then include a file that
634
- // has that method.
635
- $instance = MonsterInsights();
636
-
637
- // If uninstalling via wp-cli load admin-specific files only here.
638
- if ( defined( 'WP_CLI' ) && WP_CLI ) {
639
- define( 'WP_ADMIN', true );
640
- $instance->require_files();
641
- $instance->load_auth();
642
- $instance->notices = new MonsterInsights_Notice_Admin();
643
- $instance->reporting = new MonsterInsights_Reporting();
644
- $instance->api_auth = new MonsterInsights_API_Auth();
645
- }
646
-
647
- // Don't delete any data if the PRO version is already active.
648
- if ( monsterinsights_is_pro_version() ) {
649
- return;
650
- }
651
-
652
- require_once 'includes/admin/uninstall.php';
653
-
654
- if ( is_multisite() ) {
655
- $site_list = get_sites();
656
- foreach ( (array) $site_list as $site ) {
657
- switch_to_blog( $site->blog_id );
658
-
659
- // Deauthenticate.
660
- $instance->api_auth->delete_auth();
661
-
662
- // Delete report cache.
663
- $instance->reporting->delete_aggregate_data();
664
-
665
- // Delete options.
666
- $instance->api_auth->uninstall_auth();
667
-
668
- restore_current_blog();
669
- }
670
- // Delete network auth using a custom function as some variables are not initiated.
671
- $instance->api_auth->uninstall_network_auth();
672
-
673
- // Delete network data.
674
- $instance->reporting->delete_aggregate_data( 'network' );
675
- } else {
676
- // Delete auth.
677
- $instance->api_auth->delete_auth();
678
-
679
- // Delete report cache.
680
- $instance->reporting->delete_aggregate_data();
681
-
682
- // Delete options.
683
- $instance->api_auth->uninstall_auth();
684
- }
685
-
686
- // Clear notification cron schedules.
687
- $schedules = wp_get_schedules();
688
-
689
- if ( is_array( $schedules ) && ! empty( $schedules ) ) {
690
- foreach ( $schedules as $key => $value ) {
691
- if ( 0 === strpos( $key, "monsterinsights_notification_" ) ) {
692
- $cron_hook = implode( "_", explode( "_", $key, - 2 ) ) . '_cron';
693
- wp_clear_scheduled_hook( $cron_hook );
694
- }
695
- }
696
- }
697
-
698
- // Delete the notifications data.
699
- $instance->notifications->delete_notifications_data();
700
-
701
- // Delete Popular Posts data.
702
- MonsterInsights_Popular_Posts_Inline()->get_cache()->delete_data();
703
- MonsterInsights_Popular_Posts_Widget()->get_cache()->delete_data();
704
-
705
- // Delete other options.
706
- monsterinsights_uninstall_remove_options();
707
-
708
- }
709
- register_uninstall_hook( __FILE__, 'monsterinsights_lite_uninstall_hook' );
710
-
711
- /**
712
- * The main function responsible for returning the one true MonsterInsights_Lite
713
- * Instance to functions everywhere.
714
- *
715
- * Use this function like you would a global variable, except without needing
716
- * to declare the global.
717
- *
718
- * Example: <?php $monsterinsights = MonsterInsights_Lite(); ?>
719
- *
720
- * @since 6.0.0
721
- *
722
- * @uses MonsterInsights_Lite::get_instance() Retrieve MonsterInsights_Lite instance.
723
- *
724
- * @return MonsterInsights_Lite The singleton MonsterInsights_Lite instance.
725
- */
726
- function MonsterInsights_Lite() {
727
- return MonsterInsights_Lite::get_instance();
728
- }
729
-
730
- /**
731
- * MonsterInsights Install and Updates.
732
- *
733
- * This function is used install and upgrade MonsterInsights. This is used for upgrade routines
734
- * that can be done automatically, behind the scenes without the need for user interaction
735
- * (for example pagination or user input required), as well as the initial install.
736
- *
737
- * @since 6.0.0
738
- * @access public
739
- *
740
- * @global string $wp_version WordPress version (provided by WordPress core).
741
- * @uses MonsterInsights_Lite::load_settings() Loads MonsterInsights settings
742
- * @uses MonsterInsights_Install::init() Runs upgrade process
743
- *
744
- * @return void
745
- */
746
- function monsterinsights_lite_install_and_upgrade() {
747
- require_once plugin_dir_path( __FILE__ ) . 'includes/compatibility-check.php';
748
- $compatibility = MonsterInsights_Compatibility_Check::get_instance();
749
-
750
- // If the WordPress site doesn't meet the correct WP or PHP version requirements, don't activate MonsterInsights
751
- if ( ! $compatibility->is_php_compatible() || ! $compatibility->is_wp_compatible() ) {
752
- if ( is_plugin_active( plugin_basename( __FILE__ ) ) ) {
753
- return;
754
- }
755
- }
756
-
757
- // Don't run if MI Pro is installed
758
- if ( class_exists( 'MonsterInsights' ) ) {
759
- if ( is_plugin_active( plugin_basename( __FILE__ ) ) ) {
760
- return;
761
- }
762
- }
763
-
764
-
765
- // Load settings and globals (so we can use/set them during the upgrade process)
766
- MonsterInsights_Lite()->define_globals();
767
- MonsterInsights_Lite()->load_settings();
768
-
769
- // Load in Auth
770
- MonsterInsights()->load_auth();
771
-
772
- // Load upgrade file
773
- require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/install.php';
774
-
775
- // Run the MonsterInsights upgrade routines
776
- $updates = new MonsterInsights_Install();
777
- $updates->init();
778
- }
779
-
780
- /**
781
- * MonsterInsights check for install and update processes.
782
- *
783
- * This function is used to call the MonsterInsights automatic upgrade class, which in turn
784
- * checks to see if there are any update procedures to be run, and if
785
- * so runs them. Also installs MonsterInsights for the first time.
786
- *
787
- * @since 6.0.0
788
- * @access public
789
- *
790
- * @uses MonsterInsights_Install() Runs install and upgrade process.
791
- *
792
- * @return void
793
- */
794
- function monsterinsights_lite_call_install_and_upgrade(){
795
- add_action( 'wp_loaded', 'monsterinsights_lite_install_and_upgrade' );
796
- }
797
-
798
- /**
799
- * Returns the MonsterInsights combined object that you can use for both
800
- * MonsterInsights Lite and Pro Users. When both plugins active, defers to the
801
- * more complete Pro object.
802
- *
803
- * Warning: Do not use this in Lite or Pro specific code (use the individual objects instead).
804
- * Also do not use in the MonsterInsights Lite/Pro upgrade and install routines.
805
- *
806
- * Use this function like you would a global variable, except without needing
807
- * to declare the global.
808
- *
809
- * Prevents the need to do conditional global object logic when you have code that you want to work with
810
- * both Pro and Lite.
811
- *
812
- * Example: <?php $monsterinsights = MonsterInsights(); ?>
813
- *
814
- * @since 6.0.0
815
- *
816
- * @uses MonsterInsights::get_instance() Retrieve MonsterInsights Pro instance.
817
- * @uses MonsterInsights_Lite::get_instance() Retrieve MonsterInsights Lite instance.
818
- *
819
- * @return MonsterInsights The singleton MonsterInsights instance.
820
- */
821
- if ( ! function_exists( 'MonsterInsights' ) ) {
822
- function MonsterInsights() {
823
- return ( class_exists( 'MonsterInsights' ) ? MonsterInsights_Pro() : MonsterInsights_Lite() );
824
- }
825
- add_action( 'plugins_loaded', 'MonsterInsights' );
826
- }
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Plugin Name: Google Analytics for WordPress by MonsterInsights
4
+ * Plugin URI: https://www.monsterinsights.com/?utm_source=liteplugin&utm_medium=pluginheader&utm_campaign=pluginurl&utm_content=7%2E0%2E0
5
+ * Description: The best Google Analytics plugin for WordPress. See how visitors find and use your website, so you can keep them coming back.
6
+ * Author: MonsterInsights
7
+ * Author URI: https://www.monsterinsights.com/?utm_source=liteplugin&utm_medium=pluginheader&utm_campaign=authoruri&utm_content=7%2E0%2E0
8
+ *
9
+ * Version: 8.8.0
10
+ * Requires at least: 4.8.0
11
+ * Requires PHP: 5.5
12
+ *
13
+ * License: GPL v3
14
+ *
15
+ * Text Domain: google-analytics-for-wordpress
16
+ * Domain Path: /languages
17
+ *
18
+ * MonsterInsights Lite
19
+ * Copyright (C) 2008-2018, MonsterInsights, support@monsterinsights.com
20
+ *
21
+ * This program is free software: you can redistribute it and/or modify
22
+ * it under the terms of the GNU General Public License as published by
23
+ * the Free Software Foundation, either version 3 of the License, or
24
+ * (at your option) any later version.
25
+ *
26
+ * This program is distributed in the hope that it will be useful,
27
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
28
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29
+ * GNU General Public License for more details.
30
+ *
31
+ * You should have received a copy of the GNU General Public License
32
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
33
+ *
34
+ * @category Plugin
35
+ * @copyright Copyright © 2018 Chris Christoff
36
+ * @author Chris Christoff
37
+ * @package MonsterInsights
38
+ */
39
+
40
+ // Exit if accessed directly.
41
+ if ( ! defined( 'ABSPATH' ) ) {
42
+ exit;
43
+ }
44
+
45
+ /**
46
+ * Main plugin class.
47
+ *
48
+ * @since 6.0.0
49
+ *
50
+ * @package MonsterInsights
51
+ * @author Chris Christoff
52
+ * @access public
53
+ */
54
+ final class MonsterInsights_Lite {
55
+
56
+ /**
57
+ * Holds the class object.
58
+ *
59
+ * @since 6.0.0
60
+ * @access public
61
+ * @var object Instance of instantiated MonsterInsights class.
62
+ */
63
+ public static $instance;
64
+
65
+ /**
66
+ * Plugin version, used for cache-busting of style and script file references.
67
+ *
68
+ * @since 6.0.0
69
+ * @access public
70
+ * @var string $version Plugin version.
71
+ */
72
+ public $version = '8.8.0';
73
+
74
+ /**
75
+ * Plugin file.
76
+ *
77
+ * @since 6.0.0
78
+ * @access public
79
+ * @var string $file PHP File constant for main file.
80
+ */
81
+ public $file;
82
+
83
+ /**
84
+ * The name of the plugin.
85
+ *
86
+ * @since 6.0.0
87
+ * @access public
88
+ * @var string $plugin_name Plugin name.
89
+ */
90
+ public $plugin_name = 'MonsterInsights Lite';
91
+
92
+ /**
93
+ * Unique plugin slug identifier.
94
+ *
95
+ * @since 6.0.0
96
+ * @access public
97
+ * @var string $plugin_slug Plugin slug.
98
+ */
99
+ public $plugin_slug = 'monsterinsights-lite';
100
+
101
+ /**
102
+ * Holds instance of MonsterInsights License class.
103
+ *
104
+ * @since 6.0.0
105
+ * @access public
106
+ * @var MonsterInsights_License $license Instance of License class.
107
+ */
108
+ protected $license;
109
+
110
+ /**
111
+ * Holds instance of MonsterInsights Admin Notice class.
112
+ *
113
+ * @since 6.0.0
114
+ * @access public
115
+ * @var MonsterInsights_Admin_Notice $notices Instance of Admin Notice class.
116
+ */
117
+ public $notices;
118
+
119
+ /**
120
+ * Holds instance of MonsterInsights Reporting class.
121
+ *
122
+ * @since 6.0.0
123
+ * @access public
124
+ * @var MonsterInsights_Reporting $reporting Instance of Reporting class.
125
+ */
126
+ public $reporting;
127
+
128
+ /**
129
+ * Holds instance of MonsterInsights Notifications class.
130
+ *
131
+ * @since 7.11
132
+ * @access public
133
+ * @var MonsterInsights_Notifications $notifications Instance of Notifications class.
134
+ */
135
+ public $notifications;
136
+
137
+ /**
138
+ * Holds instance of MonsterInsights Notification Events
139
+ *
140
+ * @since 7.12.3
141
+ * @access public
142
+ * @var MonsterInsights_Notification_Event $notification_event Instance of MonsterInsights_Notification_Event class.
143
+ */
144
+ public $notification_event;
145
+
146
+ /**
147
+ * Holds instance of MonsterInsights Auth class.
148
+ *
149
+ * @since 7.0.0
150
+ * @access public
151
+ * @var MonsterInsights_Auth $auth Instance of Auth class.
152
+ */
153
+ protected $auth;
154
+
155
+ /**
156
+ * Holds instance of MonsterInsights API Auth class.
157
+ *
158
+ * @since 6.0.0
159
+ * @access public
160
+ * @var MonsterInsights_Auth $api_auth Instance of APIAuth class.
161
+ */
162
+ public $api_auth;
163
+
164
+ /**
165
+ * Holds instance of MonsterInsights API Rest Routes class.
166
+ *
167
+ * @since 7.4.0
168
+ * @access public
169
+ * @var MonsterInsights_Rest_Routes $routes Instance of rest routes.
170
+ */
171
+ public $routes;
172
+
173
+ /**
174
+ * The tracking mode used in the frontend.
175
+ *
176
+ * @since 7.15.0
177
+ * @accces public
178
+ * @var string
179
+ * @deprecated Since 8.3 with the removal of ga compatibility
180
+ */
181
+ public $tracking_mode;
182
+
183
+ /**
184
+ * Primary class constructor.
185
+ *
186
+ * @since 6.0.0
187
+ * @access public
188
+ */
189
+ public function __construct() {
190
+ // We don't use this
191
+ }
192
+
193
+ /**
194
+ * Returns the singleton instance of the class.
195
+ *
196
+ * @access public
197
+ * @return object The MonsterInsights_Lite object.
198
+ * @since 6.0.0
199
+ *
200
+ */
201
+ public static function get_instance() {
202
+
203
+ if ( ! isset( self::$instance ) && ! ( self::$instance instanceof MonsterInsights_Lite ) ) {
204
+ self::$instance = new MonsterInsights_Lite();
205
+ self::$instance->file = __FILE__;
206
+
207
+ // Detect Pro version and return early
208
+ if ( defined( 'MONSTERINSIGHTS_PRO_VERSION' ) ) {
209
+ add_action( 'admin_notices', array( self::$instance, 'monsterinsights_pro_notice' ) );
210
+
211
+ return self::$instance;
212
+ }
213
+
214
+ if ( ! self::$instance->check_compatibility() ) {
215
+ return self::$instance;
216
+ }
217
+
218
+ // Define constants
219
+ self::$instance->define_globals();
220
+
221
+ // Load in settings
222
+ self::$instance->load_settings();
223
+
224
+ // Load in Licensing
225
+ self::$instance->load_licensing();
226
+
227
+ // Load in Auth
228
+ self::$instance->load_auth();
229
+
230
+ // Load files
231
+ self::$instance->require_files();
232
+
233
+ // This does the version to version background upgrade routines and initial install
234
+ $mi_version = get_option( 'monsterinsights_current_version', '5.5.3' );
235
+ if ( version_compare( $mi_version, '7.15.0', '<' ) ) {
236
+ monsterinsights_lite_call_install_and_upgrade();
237
+ }
238
+
239
+ if ( is_admin() ) {
240
+ new AM_Deactivation_Survey( 'MonsterInsights', basename( dirname( __FILE__ ) ) );
241
+ }
242
+
243
+ // Load the plugin textdomain.
244
+ add_action( 'plugins_loaded', array( self::$instance, 'load_plugin_textdomain' ), 15 );
245
+
246
+ // Load admin only components.
247
+ if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
248
+ self::$instance->notices = new MonsterInsights_Notice_Admin();
249
+ self::$instance->reporting = new MonsterInsights_Reporting();
250
+ self::$instance->api_auth = new MonsterInsights_API_Auth();
251
+ self::$instance->routes = new MonsterInsights_Rest_Routes();
252
+ self::$instance->notifications = new MonsterInsights_Notifications();
253
+ self::$instance->notification_event = new MonsterInsights_Notification_Event();
254
+ }
255
+
256
+ if ( monsterinsights_is_pro_version() ) {
257
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'pro/includes/load.php';
258
+ } else {
259
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/load.php';
260
+ }
261
+
262
+ // Run hook to load MonsterInsights addons.
263
+ do_action( 'monsterinsights_load_plugins' ); // the updater class for each addon needs to be instantiated via `monsterinsights_updater`
264
+ }
265
+
266
+ return self::$instance;
267
+
268
+ }
269
+
270
+ /**
271
+ * Throw error on object clone
272
+ *
273
+ * The whole idea of the singleton design pattern is that there is a single
274
+ * object therefore, we don't want the object to be cloned.
275
+ *
276
+ * @return void
277
+ * @since 6.0.0
278
+ * @access public
279
+ *
280
+ */
281
+ public function __clone() {
282
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin&#8217; huh?', 'google-analytics-for-wordpress' ), '6.0.0' );
283
+ }
284
+
285
+ /**
286
+ * Disable unserializing of the class
287
+ *
288
+ * Attempting to wakeup an MonsterInsights instance will throw a doing it wrong notice.
289
+ *
290
+ * @return void
291
+ * @since 6.0.0
292
+ * @access public
293
+ *
294
+ */
295
+ public function __wakeup() {
296
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin&#8217; huh?', 'google-analytics-for-wordpress' ), '6.0.0' );
297
+ }
298
+
299
+ /**
300
+ * Magic get function.
301
+ *
302
+ * We use this to lazy load certain functionality. Right now used to lazyload
303
+ * the API & Auth frontend, so it's only loaded if user is using a plugin
304
+ * that requires it.
305
+ *
306
+ * @return void
307
+ * @since 7.0.0
308
+ * @access public
309
+ *
310
+ */
311
+ public function __get( $key ) {
312
+ if ( $key === 'auth' ) {
313
+ if ( empty( self::$instance->auth ) ) {
314
+ // LazyLoad Auth for Frontend
315
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/auth.php';
316
+ self::$instance->auth = new MonsterInsights_Auth();
317
+ }
318
+
319
+ return self::$instance->$key;
320
+ } else {
321
+ return self::$instance->$key;
322
+ }
323
+ }
324
+
325
+ /**
326
+ * Check compatibility with PHP and WP, and display notices if necessary
327
+ *
328
+ * @return bool
329
+ * @since 8.0.0
330
+ */
331
+ private function check_compatibility() {
332
+ if ( defined( 'MONSTERINSIGHTS_FORCE_ACTIVATION' ) && MONSTERINSIGHTS_FORCE_ACTIVATION ) {
333
+ return true;
334
+ }
335
+
336
+ require_once plugin_dir_path( __FILE__ ) . 'includes/compatibility-check.php';
337
+ $compatibility = MonsterInsights_Compatibility_Check::get_instance();
338
+ $compatibility->maybe_display_notice();
339
+
340
+ return $compatibility->is_php_compatible() && $compatibility->is_wp_compatible();
341
+ }
342
+
343
+ /**
344
+ * Define MonsterInsights constants.
345
+ *
346
+ * This function defines all of the MonsterInsights PHP constants.
347
+ *
348
+ * @return void
349
+ * @since 6.0.0
350
+ * @access public
351
+ *
352
+ */
353
+ public function define_globals() {
354
+
355
+ if ( ! defined( 'MONSTERINSIGHTS_VERSION' ) ) {
356
+ define( 'MONSTERINSIGHTS_VERSION', $this->version );
357
+ }
358
+
359
+ if ( ! defined( 'MONSTERINSIGHTS_LITE_VERSION' ) ) {
360
+ define( 'MONSTERINSIGHTS_LITE_VERSION', MONSTERINSIGHTS_VERSION );
361
+ }
362
+
363
+ if ( ! defined( 'MONSTERINSIGHTS_PLUGIN_NAME' ) ) {
364
+ define( 'MONSTERINSIGHTS_PLUGIN_NAME', $this->plugin_name );
365
+ }
366
+
367
+ if ( ! defined( 'MONSTERINSIGHTS_PLUGIN_SLUG' ) ) {
368
+ define( 'MONSTERINSIGHTS_PLUGIN_SLUG', $this->plugin_slug );
369
+ }
370
+
371
+ if ( ! defined( 'MONSTERINSIGHTS_PLUGIN_FILE' ) ) {
372
+ define( 'MONSTERINSIGHTS_PLUGIN_FILE', $this->file );
373
+ }
374
+
375
+ if ( ! defined( 'MONSTERINSIGHTS_PLUGIN_DIR' ) ) {
376
+ define( 'MONSTERINSIGHTS_PLUGIN_DIR', plugin_dir_path( $this->file ) );
377
+ }
378
+
379
+ if ( ! defined( 'MONSTERINSIGHTS_PLUGIN_URL' ) ) {
380
+ define( 'MONSTERINSIGHTS_PLUGIN_URL', plugin_dir_url( $this->file ) );
381
+ }
382
+ }
383
+
384
+ /**
385
+ * Loads the plugin textdomain for translation.
386
+ *
387
+ * @access public
388
+ * @return void
389
+ * @since 6.0.0
390
+ *
391
+ */
392
+ public function load_plugin_textdomain() {
393
+
394
+ $mi_locale = get_locale();
395
+ if ( function_exists( 'get_user_locale' ) ) {
396
+ $mi_locale = get_user_locale();
397
+ }
398
+
399
+ // Traditional WordPress plugin locale filter.
400
+ $mi_locale = apply_filters( 'plugin_locale', $mi_locale, 'google-analytics-for-wordpress' );
401
+ $mi_mofile = sprintf( '%1$s-%2$s.mo', 'google-analytics-for-wordpress', $mi_locale );
402
+
403
+ // Look for wp-content/languages/google-analytics-for-wordpress/google-analytics-for-wordpress-{lang}_{country}.mo
404
+ $mi_mofile1 = WP_LANG_DIR . '/google-analytics-for-wordpress/' . $mi_mofile;
405
+
406
+ // Look in wp-content/languages/plugins/google-analytics-for-wordpress/google-analytics-for-wordpress-{lang}_{country}.mo
407
+ $mi_mofile2 = WP_LANG_DIR . '/plugins/google-analytics-for-wordpress/' . $mi_mofile;
408
+
409
+ // Look in wp-content/languages/plugins/google-analytics-for-wordpress-{lang}_{country}.mo
410
+ $mi_mofile3 = WP_LANG_DIR . '/plugins/' . $mi_mofile;
411
+
412
+ // Look in wp-content/plugins/google-analytics-for-wordpress/languages/google-analytics-for-wordpress-{lang}_{country}.mo
413
+ $mi_mofile4 = dirname( plugin_basename( MONSTERINSIGHTS_PLUGIN_FILE ) ) . '/languages/';
414
+ $mi_mofile4 = apply_filters( 'monsterinsights_lite_languages_directory', $mi_mofile4 );
415
+
416
+ if ( file_exists( $mi_mofile1 ) ) {
417
+ load_textdomain( 'google-analytics-for-wordpress', $mi_mofile1 );
418
+ } elseif ( file_exists( $mi_mofile2 ) ) {
419
+ load_textdomain( 'google-analytics-for-wordpress', $mi_mofile2 );
420
+ } elseif ( file_exists( $mi_mofile3 ) ) {
421
+ load_textdomain( 'google-analytics-for-wordpress', $mi_mofile3 );
422
+ } else {
423
+ load_plugin_textdomain( 'google-analytics-for-wordpress', false, $mi_mofile4 );
424
+ }
425
+
426
+ }
427
+
428
+ /**
429
+ * Output a nag notice if the user has both Lite and Pro activated
430
+ *
431
+ * @access public
432
+ * @return void
433
+ * @since 6.0.0
434
+ *
435
+ */
436
+ public function monsterinsights_pro_notice() {
437
+ $url = admin_url( 'plugins.php' );
438
+ // Check for MS dashboard
439
+ if ( is_network_admin() ) {
440
+ $url = network_admin_url( 'plugins.php' );
441
+ }
442
+ ?>
443
+ <div class="error">
444
+ <p><?php echo sprintf( esc_html__( 'Please %1$suninstall%2$s the MonsterInsights Lite Plugin. Your Pro version of MonsterInsights may not work as expected until the Lite version is uninstalled.', 'google-analytics-for-wordpress' ), '<a href="' . $url . '">', '</a>' ); ?></p>
445
+ </div>
446
+ <?php
447
+
448
+ }
449
+
450
+ /**
451
+ * Loads MonsterInsights settings
452
+ *
453
+ * Adds the items to the base object, and adds the helper functions.
454
+ *
455
+ * @return void
456
+ * @since 6.0.0
457
+ * @access public
458
+ *
459
+ */
460
+ public function load_settings() {
461
+ global $monsterinsights_settings;
462
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/options.php';
463
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/helpers.php';
464
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/deprecated.php';
465
+ $monsterinsights_settings = monsterinsights_get_options();
466
+ }
467
+
468
+
469
+ /**
470
+ * Loads MonsterInsights License
471
+ *
472
+ * Loads license class used by MonsterInsights
473
+ *
474
+ * @return void
475
+ * @since 7.0.0
476
+ * @access public
477
+ *
478
+ */
479
+ public function load_licensing() {
480
+ if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
481
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/license-compat.php';
482
+ self::$instance->license = new MonsterInsights_License_Compat();
483
+ }
484
+ }
485
+
486
+ /**
487
+ * Loads MonsterInsights Auth
488
+ *
489
+ * Loads auth used by MonsterInsights
490
+ *
491
+ * @return void
492
+ * @since 7.0.0
493
+ * @access public
494
+ *
495
+ */
496
+ public function load_auth() {
497
+ if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
498
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/auth.php';
499
+ self::$instance->auth = new MonsterInsights_Auth();
500
+ }
501
+ }
502
+
503
+ /**
504
+ * Loads all files into scope.
505
+ *
506
+ * @access public
507
+ * @return void
508
+ * @since 6.0.0
509
+ *
510
+ */
511
+ public function require_files() {
512
+
513
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/capabilities.php';
514
+
515
+ if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
516
+
517
+ // Lite and Pro files
518
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'assets/lib/pandora/class-am-deactivation-survey.php';
519
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/ajax.php';
520
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/admin.php';
521
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/common.php';
522
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/notice.php';
523
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/licensing/autoupdate.php';
524
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/review.php';
525
+
526
+ // Pages
527
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/pages/settings.php';
528
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/pages/tools.php';
529
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/pages/reports.php';
530
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/pages/addons.php';
531
+
532
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/api-auth.php';
533
+
534
+ // Reports
535
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/reports/abstract-report.php';
536
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/reports/overview.php';
537
+
538
+ // Reporting Functionality
539
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/reporting.php';
540
+
541
+ // Routes used by Vue
542
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/routes.php';
543
+
544
+ // Load gutenberg editor functions
545
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/gutenberg/gutenberg.php';
546
+
547
+ // Emails
548
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/emails/class-emails.php';
549
+
550
+ // Notifications class.
551
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/notifications.php';
552
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/notification-event.php';
553
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/notification-event-runner.php';
554
+ // Add notification manual events for lite version.
555
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/notifications/notification-events.php';
556
+ }
557
+
558
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/exclude-page-metabox.php';
559
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/api-request.php';
560
+
561
+ if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
562
+ // Late loading classes (self instantiating)
563
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/tracking.php';
564
+ }
565
+
566
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/frontend/frontend.php';
567
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/frontend/seedprod.php';
568
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/measurement-protocol.php';
569
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/measurement-protocol-v4.php';
570
+ }
571
+
572
+ /**
573
+ * Get the tracking mode for the frontend scripts.
574
+ *
575
+ * @return string
576
+ * @deprecated Since 8.3 with the removal of ga compatibility
577
+ */
578
+ public function get_tracking_mode() {
579
+
580
+ if ( ! isset( $this->tracking_mode ) ) {
581
+ // This will already be set to 'analytics' to anybody already using the plugin before 7.15.0.
582
+ $this->tracking_mode = monsterinsights_get_option( 'tracking_mode', 'gtag' );
583
+ }
584
+
585
+ return $this->tracking_mode;
586
+ }
587
+ }
588
+
589
+ /**
590
+ * Fired when the plugin is activated.
591
+ *
592
+ * @access public
593
+ *
594
+ * @param boolean $network_wide True if WPMU superadmin uses "Network Activate" action, false otherwise.
595
+ *
596
+ * @return void
597
+ * @global object $wpdb The WordPress database object.
598
+ * @since 6.0.0
599
+ *
600
+ * @global int $wp_version The version of WordPress for this install.
601
+ */
602
+ function monsterinsights_lite_activation_hook( $network_wide ) {
603
+ $url = admin_url( 'plugins.php' );
604
+ // Check for MS dashboard
605
+ if ( is_network_admin() ) {
606
+ $url = network_admin_url( 'plugins.php' );
607
+ }
608
+
609
+ if ( class_exists( 'MonsterInsights' ) ) {
610
+ deactivate_plugins( plugin_basename( __FILE__ ) );
611
+ wp_die( sprintf( esc_html__( 'Please uninstall and remove MonsterInsights Pro before activating Google Analytics for WordPress by MonsterInsights. The Lite version has not been activated. %1$sClick here to return to the Dashboard%2$s.', 'google-analytics-by-wordpress' ), '<a href="' . $url . '">', '</a>' ) );
612
+ }
613
+
614
+ require_once plugin_dir_path( __FILE__ ) . 'includes/compatibility-check.php';
615
+ $compatibility = MonsterInsights_Compatibility_Check::get_instance();
616
+ $compatibility->maybe_deactivate_plugin( plugin_basename( __FILE__ ) );
617
+
618
+ // Add transient to trigger redirect.
619
+ set_transient( '_monsterinsights_activation_redirect', 1, 30 );
620
+ }
621
+
622
+ register_activation_hook( __FILE__, 'monsterinsights_lite_activation_hook' );
623
+
624
+ /**
625
+ * Fired when the plugin is uninstalled.
626
+ *
627
+ * @access public
628
+ * @return void
629
+ * @since 6.0.0
630
+ *
631
+ */
632
+ function monsterinsights_lite_uninstall_hook() {
633
+ wp_cache_flush();
634
+
635
+ // Note, if both MI Pro and Lite are active, this is an MI Pro instance
636
+ // Therefore MI Lite can only use functions of the instance common to
637
+ // both plugins. If it needs to be pro specific, then include a file that
638
+ // has that method.
639
+ $instance = MonsterInsights();
640
+
641
+ // If uninstalling via wp-cli load admin-specific files only here.
642
+ if ( defined( 'WP_CLI' ) && WP_CLI ) {
643
+ define( 'WP_ADMIN', true );
644
+ $instance->require_files();
645
+ $instance->load_auth();
646
+ $instance->notices = new MonsterInsights_Notice_Admin();
647
+ $instance->reporting = new MonsterInsights_Reporting();
648
+ $instance->api_auth = new MonsterInsights_API_Auth();
649
+ }
650
+
651
+ // Don't delete any data if the PRO version is already active.
652
+ if ( monsterinsights_is_pro_version() ) {
653
+ return;
654
+ }
655
+
656
+ require_once 'includes/admin/uninstall.php';
657
+
658
+ if ( is_multisite() ) {
659
+ $site_list = get_sites();
660
+ foreach ( (array) $site_list as $site ) {
661
+ switch_to_blog( $site->blog_id );
662
+
663
+ // Deauthenticate.
664
+ $instance->api_auth->delete_auth();
665
+
666
+ // Delete report cache.
667
+ $instance->reporting->delete_aggregate_data();
668
+
669
+ // Delete options.
670
+ $instance->api_auth->uninstall_auth();
671
+
672
+ restore_current_blog();
673
+ }
674
+ // Delete network auth using a custom function as some variables are not initiated.
675
+ $instance->api_auth->uninstall_network_auth();
676
+
677
+ // Delete network data.
678
+ $instance->reporting->delete_aggregate_data( 'network' );
679
+ } else {
680
+ // Delete auth.
681
+ $instance->api_auth->delete_auth();
682
+
683
+ // Delete report cache.
684
+ $instance->reporting->delete_aggregate_data();
685
+
686
+ // Delete options.
687
+ $instance->api_auth->uninstall_auth();
688
+ }
689
+
690
+ // Clear notification cron schedules.
691
+ $schedules = wp_get_schedules();
692
+
693
+ if ( is_array( $schedules ) && ! empty( $schedules ) ) {
694
+ foreach ( $schedules as $key => $value ) {
695
+ if ( 0 === strpos( $key, "monsterinsights_notification_" ) ) {
696
+ $cron_hook = implode( "_", explode( "_", $key, - 2 ) ) . '_cron';
697
+ wp_clear_scheduled_hook( $cron_hook );
698
+ }
699
+ }
700
+ }
701
+
702
+ // Delete the notifications data.
703
+ $instance->notifications->delete_notifications_data();
704
+
705
+ // Delete Popular Posts data.
706
+ MonsterInsights_Popular_Posts_Inline()->get_cache()->delete_data();
707
+ MonsterInsights_Popular_Posts_Widget()->get_cache()->delete_data();
708
+
709
+ // Delete other options.
710
+ monsterinsights_uninstall_remove_options();
711
+
712
+ }
713
+
714
+ register_uninstall_hook( __FILE__, 'monsterinsights_lite_uninstall_hook' );
715
+
716
+ /**
717
+ * The main function responsible for returning the one true MonsterInsights_Lite
718
+ * Instance to functions everywhere.
719
+ *
720
+ * Use this function like you would a global variable, except without needing
721
+ * to declare the global.
722
+ *
723
+ * Example: <?php $monsterinsights = MonsterInsights_Lite(); ?>
724
+ *
725
+ * @return MonsterInsights_Lite The singleton MonsterInsights_Lite instance.
726
+ * @uses MonsterInsights_Lite::get_instance() Retrieve MonsterInsights_Lite instance.
727
+ *
728
+ * @since 6.0.0
729
+ *
730
+ */
731
+ function MonsterInsights_Lite() {
732
+ return MonsterInsights_Lite::get_instance();
733
+ }
734
+
735
+ /**
736
+ * MonsterInsights Install and Updates.
737
+ *
738
+ * This function is used install and upgrade MonsterInsights. This is used for upgrade routines
739
+ * that can be done automatically, behind the scenes without the need for user interaction
740
+ * (for example pagination or user input required), as well as the initial install.
741
+ *
742
+ * @return void
743
+ * @global string $wp_version WordPress version (provided by WordPress core).
744
+ * @uses MonsterInsights_Lite::load_settings() Loads MonsterInsights settings
745
+ * @uses MonsterInsights_Install::init() Runs upgrade process
746
+ *
747
+ * @since 6.0.0
748
+ * @access public
749
+ *
750
+ */
751
+ function monsterinsights_lite_install_and_upgrade() {
752
+ require_once plugin_dir_path( __FILE__ ) . 'includes/compatibility-check.php';
753
+ $compatibility = MonsterInsights_Compatibility_Check::get_instance();
754
+
755
+ // If the WordPress site doesn't meet the correct WP or PHP version requirements, don't activate MonsterInsights
756
+ if ( ! $compatibility->is_php_compatible() || ! $compatibility->is_wp_compatible() ) {
757
+ if ( is_plugin_active( plugin_basename( __FILE__ ) ) ) {
758
+ return;
759
+ }
760
+ }
761
+
762
+ // Don't run if MI Pro is installed
763
+ if ( class_exists( 'MonsterInsights' ) ) {
764
+ if ( is_plugin_active( plugin_basename( __FILE__ ) ) ) {
765
+ return;
766
+ }
767
+ }
768
+
769
+
770
+ // Load settings and globals (so we can use/set them during the upgrade process)
771
+ MonsterInsights_Lite()->define_globals();
772
+ MonsterInsights_Lite()->load_settings();
773
+
774
+ // Load in Auth
775
+ MonsterInsights()->load_auth();
776
+
777
+ // Load upgrade file
778
+ require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/install.php';
779
+
780
+ // Run the MonsterInsights upgrade routines
781
+ $updates = new MonsterInsights_Install();
782
+ $updates->init();
783
+ }
784
+
785
+ /**
786
+ * MonsterInsights check for install and update processes.
787
+ *
788
+ * This function is used to call the MonsterInsights automatic upgrade class, which in turn
789
+ * checks to see if there are any update procedures to be run, and if
790
+ * so runs them. Also installs MonsterInsights for the first time.
791
+ *
792
+ * @return void
793
+ * @uses MonsterInsights_Install() Runs install and upgrade process.
794
+ *
795
+ * @since 6.0.0
796
+ * @access public
797
+ *
798
+ */
799
+ function monsterinsights_lite_call_install_and_upgrade() {
800
+ add_action( 'wp_loaded', 'monsterinsights_lite_install_and_upgrade' );
801
+ }
802
+
803
+ /**
804
+ * Returns the MonsterInsights combined object that you can use for both
805
+ * MonsterInsights Lite and Pro Users. When both plugins active, defers to the
806
+ * more complete Pro object.
807
+ *
808
+ * Warning: Do not use this in Lite or Pro specific code (use the individual objects instead).
809
+ * Also do not use in the MonsterInsights Lite/Pro upgrade and install routines.
810
+ *
811
+ * Use this function like you would a global variable, except without needing
812
+ * to declare the global.
813
+ *
814
+ * Prevents the need to do conditional global object logic when you have code that you want to work with
815
+ * both Pro and Lite.
816
+ *
817
+ * Example: <?php $monsterinsights = MonsterInsights(); ?>
818
+ *
819
+ * @return MonsterInsights The singleton MonsterInsights instance.
820
+ * @uses MonsterInsights::get_instance() Retrieve MonsterInsights Pro instance.
821
+ * @uses MonsterInsights_Lite::get_instance() Retrieve MonsterInsights Lite instance.
822
+ *
823
+ * @since 6.0.0
824
+ *
825
+ */
826
+ if ( ! function_exists( 'MonsterInsights' ) ) {
827
+ function MonsterInsights() {
828
+ return ( class_exists( 'MonsterInsights' ) ? MonsterInsights_Pro() : MonsterInsights_Lite() );
829
+ }
830
+
831
+ add_action( 'plugins_loaded', 'MonsterInsights' );
832
+ }
includes/admin/admin.php CHANGED
@@ -1,630 +1,817 @@
1
- <?php
2
- /**
3
- * Admin class.
4
- *
5
- * @since 6.0.0
6
- *
7
- * @package MonsterInsights
8
- * @subpackage Admin
9
- * @author Chris Christoff
10
- */
11
-
12
- // Exit if accessed directly
13
- if ( ! defined( 'ABSPATH' ) ) {
14
- exit;
15
- }
16
-
17
- /**
18
- * Register menu items for MonsterInsights.
19
- *
20
- * @since 6.0.0
21
- * @access public
22
- *
23
- * @return void
24
- */
25
- function monsterinsights_admin_menu() {
26
- $hook = monsterinsights_get_menu_hook();
27
- $menu_icon_inline = monsterinsights_get_inline_menu_icon();
28
-
29
- if ( $hook === 'monsterinsights_settings' ) {
30
- // If dashboards disabled, first settings page
31
- add_menu_page( __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page', $menu_icon_inline, '100.00013467543' );
32
- $hook = 'monsterinsights_settings';
33
-
34
- add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings' );
35
- } else {
36
- // if dashboards enabled, first dashboard
37
- add_menu_page( __( 'General:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page', $menu_icon_inline, '100.00013467543' );
38
-
39
- add_submenu_page( $hook, __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Reports', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page' );
40
-
41
- // then settings page
42
- add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page' );
43
-
44
- // Add dashboard submenu.
45
- add_submenu_page( 'index.php', __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'admin.php?page=monsterinsights_reports' );
46
- }
47
-
48
- $submenu_base = add_query_arg( 'page', 'monsterinsights_settings', admin_url( 'admin.php' ) );
49
-
50
- // Add Popular Posts menu item.
51
- add_submenu_page( $hook, __( 'Popular Posts:', 'google-analytics-for-wordpress' ), __( 'Popular Posts', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', $submenu_base . '#/popular-posts' );
52
-
53
- if ( function_exists( 'aioseo' ) ) {
54
- $seo_url = monsterinsights_aioseo_dashboard_url();
55
- } else {
56
- $seo_url = $submenu_base . '#/seo';
57
- }
58
- // then SEO
59
- add_submenu_page( $hook, __( 'SEO', 'google-analytics-for-wordpress' ), __( 'SEO', 'google-analytics-for-wordpress' ), 'manage_options', $seo_url );
60
-
61
- // then tools
62
- add_submenu_page( $hook, __( 'Tools:', 'google-analytics-for-wordpress' ), __( 'Tools', 'google-analytics-for-wordpress' ), 'manage_options', $submenu_base . '#/tools' );
63
-
64
- // then addons
65
- $network_key = monsterinsights_is_pro_version() ? MonsterInsights()->license->get_network_license_key() : '';
66
- if ( ! monsterinsights_is_network_active() || ( monsterinsights_is_network_active() && empty( $network_key ) ) ) {
67
- add_submenu_page( $hook, __( 'Addons:', 'google-analytics-for-wordpress' ), '<span style="color:' . monsterinsights_menu_highlight_color() . '"> ' . __( 'Addons', 'google-analytics-for-wordpress' ) . '</span>', 'monsterinsights_save_settings', $submenu_base . '#/addons' );
68
- }
69
-
70
- // Add About us page.
71
- add_submenu_page( $hook, __( 'About Us:', 'google-analytics-for-wordpress' ), __( 'About Us', 'google-analytics-for-wordpress' ), 'manage_options', $submenu_base . '#/about' );
72
-
73
- add_submenu_page( $hook, __( 'Growth Tools:', 'google-analytics-for-wordpress' ), __( 'Growth Tools', 'google-analytics-for-wordpress' ), 'manage_options', $submenu_base . '#/growth-tools' );
74
-
75
- if ( ! monsterinsights_is_pro_version() ) {
76
- add_submenu_page( $hook, __( 'Upgrade to Pro:', 'google-analytics-for-wordpress' ), '<span class="monsterinsights-upgrade-submenu"> ' . __( 'Upgrade to Pro', 'google-analytics-for-wordpress' ) . '</span>', 'monsterinsights_save_settings', monsterinsights_get_upgrade_link( 'admin-menu', 'submenu', "https://www.monsterinsights.com/lite/" ) );
77
- }
78
-
79
- }
80
- add_action( 'admin_menu', 'monsterinsights_admin_menu' );
81
-
82
- /**
83
- * Add this separately so all the Woo menu items are loaded and the position parameter works correctly.
84
- */
85
- function monsterinsights_woocommerce_menu_item() {
86
- // Add "Insights" sub menu item for WooCommerce Analytics menu
87
- if ( class_exists( 'WooCommerce' ) && ! apply_filters( 'monsterinsights_disable_woo_analytics_menu', false ) ) {
88
- if ( class_exists( 'MonsterInsights_eCommerce' ) ) {
89
- add_submenu_page( 'wc-admin&path=/analytics/overview', __( 'Insights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', admin_url( 'admin.php?page=monsterinsights_reports#/ecommerce' ), '', 2 );
90
- } else {
91
- $submenu_base = add_query_arg( 'page', 'monsterinsights_settings', admin_url( 'admin.php' ) );
92
- add_submenu_page( 'wc-admin&path=/analytics/overview', __( 'Insights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'manage_options', $submenu_base . '#/woocommerce-insights', '', 1 );
93
- }
94
- }
95
- }
96
-
97
- add_action( 'admin_menu', 'monsterinsights_woocommerce_menu_item', 11 );
98
-
99
- function monsterinsights_get_menu_hook() {
100
- $dashboards_disabled = monsterinsights_get_option( 'dashboards_disabled', false );
101
- if ( $dashboards_disabled || ( current_user_can( 'monsterinsights_save_settings' ) && ! current_user_can( 'monsterinsights_view_dashboard' ) ) ) {
102
- return 'monsterinsights_settings';
103
- } else {
104
- return 'monsterinsights_reports';
105
- }
106
- }
107
-
108
- function monsterinsights_network_admin_menu() {
109
- // Get the base class object.
110
- $base = MonsterInsights();
111
-
112
- // First, let's see if this is an MS network enabled plugin. If it is, we should load the license
113
- // menu page and the updater on the network panel
114
- if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
115
- require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
116
- }
117
-
118
- $plugin = plugin_basename( MONSTERINSIGHTS_PLUGIN_FILE );
119
- if ( ! is_plugin_active_for_network( $plugin ) ) {
120
- return;
121
- }
122
-
123
- $menu_icon_inline = monsterinsights_get_inline_menu_icon();
124
- $hook = 'monsterinsights_network';
125
- $submenu_base = add_query_arg( 'page', 'monsterinsights_network', network_admin_url( 'admin.php' ) );
126
- add_menu_page( __( 'Network Settings:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_save_settings', 'monsterinsights_network', 'monsterinsights_network_page', $menu_icon_inline, '100.00013467543' );
127
-
128
- add_submenu_page( $hook, __( 'Network Settings:', 'google-analytics-for-wordpress' ), __( 'Network Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_network', 'monsterinsights_network_page' );
129
-
130
- add_submenu_page( $hook, __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Reports', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page' );
131
-
132
- if ( function_exists( 'aioseo' ) ) {
133
- $seo_url = monsterinsights_aioseo_dashboard_url();
134
- } else {
135
- $seo_url = $submenu_base . '#/seo';
136
- }
137
- // then seo
138
- add_submenu_page( $hook, __( 'SEO:', 'google-analytics-for-wordpress' ), __( 'SEO', 'google-analytics-for-wordpress' ), 'manage_options', $seo_url, 'monsterinsights_seo_page' );
139
-
140
- // then addons
141
- add_submenu_page( $hook, __( 'Addons:', 'google-analytics-for-wordpress' ), '<span style="color:' . monsterinsights_menu_highlight_color() . '"> ' . __( 'Addons', 'google-analytics-for-wordpress' ) . '</span>', 'monsterinsights_save_settings', $submenu_base . '#/addons' );
142
-
143
- $submenu_base = add_query_arg( 'page', 'monsterinsights_network', network_admin_url( 'admin.php' ) );
144
-
145
- // Add About us page.
146
- add_submenu_page( $hook, __( 'About Us:', 'google-analytics-for-wordpress' ), __( 'About Us', 'google-analytics-for-wordpress' ), 'manage_options', $submenu_base . '#/about' );
147
- }
148
- add_action( 'network_admin_menu', 'monsterinsights_network_admin_menu', 5 );
149
-
150
- /**
151
- * Adds one or more classes to the body tag in the dashboard.
152
- *
153
- * @param String $classes Current body classes.
154
- * @return String Altered body classes.
155
- */
156
- function monsterinsights_add_admin_body_class( $classes ) {
157
- $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
158
- if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights' ) === false ) {
159
- return $classes;
160
- }
161
-
162
- return "$classes monsterinsights_page ";
163
- }
164
- add_filter( 'admin_body_class', 'monsterinsights_add_admin_body_class', 10, 1 );
165
-
166
- /**
167
- * Adds one or more classes to the body tag in the dashboard.
168
- *
169
- * @param String $classes Current body classes.
170
- * @return String Altered body classes.
171
- */
172
- function monsterinsights_add_admin_body_class_tools_page( $classes ) {
173
- $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
174
-
175
- if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_tools' ) === false || 'insights_page_monsterinsights_tools' === $screen->id ) {
176
- return $classes;
177
- }
178
-
179
- return "$classes insights_page_monsterinsights_tools ";
180
- }
181
- add_filter( 'admin_body_class', 'monsterinsights_add_admin_body_class_tools_page', 10, 1 );
182
-
183
- /**
184
- * Adds one or more classes to the body tag in the dashboard.
185
- *
186
- * @param String $classes Current body classes.
187
- * @return String Altered body classes.
188
- */
189
- function monsterinsights_add_admin_body_class_addons_page( $classes ) {
190
- $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
191
- if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_addons' ) === false || 'insights_page_monsterinsights_addons' === $screen->id ) {
192
- return $classes;
193
- }
194
-
195
- return "$classes insights_page_monsterinsights_addons ";
196
- }
197
- add_filter( 'admin_body_class', 'monsterinsights_add_admin_body_class_addons_page', 10, 1 );
198
-
199
- /**
200
- * Add a link to the settings page to the plugins list
201
- *
202
- * @param array $links array of links for the plugins, adapted when the current plugin is found.
203
- *
204
- * @return array $links
205
- */
206
- function monsterinsights_add_action_links( $links ) {
207
- $docs = '<a title="' . esc_html__( 'MonsterInsights Knowledge Base', 'google-analytics-for-wordpress' ) . '" href="'. monsterinsights_get_url( 'all-plugins', 'kb-link', "https://www.monsterinsights.com/docs/" ) .'">' . esc_html__( 'Documentation', 'google-analytics-for-wordpress' ) . '</a>';
208
- array_unshift( $links, $docs );
209
-
210
- // If Lite, support goes to forum. If pro, it goes to our website
211
- if ( monsterinsights_is_pro_version() ) {
212
- $support = '<a title="MonsterInsights Pro Support" href="'. monsterinsights_get_url( 'all-plugins', 'pro-support-link', "https://www.monsterinsights.com/my-account/support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>';
213
- array_unshift( $links, $support );
214
- } else {
215
- $support = '<a title="MonsterInsights Lite Support" href="'. monsterinsights_get_url( 'all-plugins', 'lite-support-link', "https://www.monsterinsights.com/lite-support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>';
216
- array_unshift( $links, $support );
217
- }
218
-
219
- if ( is_network_admin() ) {
220
- $settings_link = '<a href="' . esc_url( network_admin_url( 'admin.php?page=monsterinsights_network' ) ) . '">' . esc_html__( 'Network Settings', 'google-analytics-for-wordpress' ) . '</a>';
221
- } else {
222
- $settings_link = '<a href="' . esc_url( admin_url( 'admin.php?page=monsterinsights_settings' ) ) . '">' . esc_html__( 'Settings', 'google-analytics-for-wordpress' ) . '</a>';
223
- }
224
-
225
- array_unshift( $links, $settings_link );
226
-
227
- // If lite, show a link where they can get pro from
228
- if ( ! monsterinsights_is_pro_version() ) {
229
- $get_pro = '<a title="' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) .'" target="_blank" rel="noopener" href="'. monsterinsights_get_upgrade_link( 'all-plugins', 'upgrade-link', "https://www.monsterinsights.com/lite/" ) .'" style="font-weight:700; color: #1da867;">' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '</a>';
230
- array_unshift( $links, $get_pro );
231
- }
232
-
233
- return $links;
234
- }
235
- add_filter( 'plugin_action_links_' . plugin_basename( MONSTERINSIGHTS_PLUGIN_FILE ), 'monsterinsights_add_action_links' );
236
- add_filter( 'network_admin_plugin_action_links_' . plugin_basename( MONSTERINSIGHTS_PLUGIN_FILE ), 'monsterinsights_add_action_links' );
237
-
238
- /**
239
- * Loads a partial view for the Administration screen
240
- *
241
- * @access public
242
- * @since 6.0.0
243
- *
244
- * @param string $template PHP file at includes/admin/partials, excluding file extension
245
- * @param array $data Any data to pass to the view
246
- * @return void
247
- */
248
- function monsterinsights_load_admin_partial( $template, $data = array() ) {
249
-
250
- if ( monsterinsights_is_pro_version() ) {
251
- $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'pro/includes/admin/partials' );
252
-
253
- if ( file_exists( $dir . $template . '.php' ) ) {
254
- require_once( $dir . $template . '.php' );
255
- return true;
256
- }
257
- } else {
258
- $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'lite/includes/admin/partials' );
259
-
260
- if ( file_exists( $dir . $template . '.php' ) ) {
261
- require_once( $dir . $template . '.php' );
262
- return true;
263
- }
264
- }
265
-
266
- $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'includes/admin/partials' );
267
-
268
- if ( file_exists( $dir . $template . '.php' ) ) {
269
- require_once( $dir . $template . '.php' );
270
- return true;
271
- }
272
-
273
- return false;
274
- }
275
-
276
- /**
277
- * When user is on a MonsterInsights related admin page, display footer text
278
- * that graciously asks them to rate us.
279
- *
280
- * @since 6.0.0
281
- * @param string $text
282
- * @return string
283
- */
284
- function monsterinsights_admin_footer( $text ) {
285
- global $current_screen;
286
- if ( ! empty( $current_screen->id ) && strpos( $current_screen->id, 'monsterinsights' ) !== false ) {
287
- $url = 'https://wordpress.org/support/view/plugin-reviews/google-analytics-for-wordpress?filter=5';
288
- // Translators: Placeholders add a link to the wordpress.org repository.
289
- $text = sprintf( esc_html__( 'Please rate %1$sMonsterInsights%2$s on %3$s %4$sWordPress.org%5$s to help us spread the word. Thank you from the MonsterInsights team!', 'google-analytics-for-wordpress' ), '<strong>', '</strong>', '<a class="monsterinsights-no-text-decoration" href="' . $url . '" target="_blank" rel="noopener noreferrer"><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i></a>', '<a href="' . $url . '" target="_blank" rel="noopener noreferrer">', '</a>' );
290
- }
291
- return $text;
292
- }
293
- add_filter( 'admin_footer_text', 'monsterinsights_admin_footer', 1, 2 );
294
-
295
- function monsterinsights_admin_setup_notices() {
296
-
297
- // Don't show on MonsterInsights pages
298
- $screen = get_current_screen();
299
- if ( empty( $screen->id ) || strpos( $screen->id, 'monsterinsights' ) !== false ) {
300
- return;
301
- }
302
-
303
- // Make sure they have the permissions to do something
304
- if ( ! current_user_can( 'monsterinsights_save_settings' ) ) {
305
- return;
306
- }
307
-
308
- // Priority:
309
- // 1. Google Analytics not authenticated
310
- // 2. License key not entered for pro
311
- // 3. License key not valid/okay for pro
312
- // 4. WordPress + PHP min versions
313
- // 5. (old) Optin setting not configured
314
- // 6. Manual UA code
315
- // 7. Automatic updates not configured
316
- // 8. Woo upsell
317
- // 9. EDD upsell
318
-
319
-
320
- // 1. Google Analytics not authenticated
321
- if ( ! is_network_admin() && ! monsterinsights_get_ua() && ! monsterinsights_get_v4_id() && ! defined( 'MONSTERINSIGHTS_DISABLE_TRACKING' ) ) {
322
-
323
- $submenu_base = is_network_admin() ? add_query_arg( 'page', 'monsterinsights_network', network_admin_url( 'admin.php' ) ) : add_query_arg( 'page', 'monsterinsights_settings', admin_url( 'admin.php' ) );
324
- $title = esc_html__( 'Please Setup Website Analytics to See Audience Insights', 'google-analytics-for-wordpress' );
325
- $primary = esc_html__( 'Connect MonsterInsights and Setup Website Analytics', 'google-analytics-for-wordpress' );
326
- $urlone = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights-onboarding' ) : admin_url( 'admin.php?page=monsterinsights-onboarding' );
327
- $secondary = esc_html__( 'Learn More', 'google-analytics-for-wordpress' );
328
- $urltwo = $submenu_base . '#/about/getting-started';
329
- $message = esc_html__( 'MonsterInsights, WordPress analytics plugin, helps you connect your website with Google Analytics, so you can see how people find and use your website. Over 3 million website owners use MonsterInsights to see the stats that matter and grow their business.', 'google-analytics-for-wordpress' );
330
- echo '<div class="notice notice-info"><p style="font-weight:700">'. $title .'</p><p>'. $message.'</p><p><a href="'. $urlone .'" class="button-primary">'. $primary .'</a>&nbsp;&nbsp;&nbsp;<a href="'. $urltwo .'" class="button-secondary">'. $secondary .'</a></p></div>';
331
- return;
332
- }
333
-
334
- // 2. License key not entered for pro
335
- $key = monsterinsights_is_pro_version() ? MonsterInsights()->license->get_license_key() : '';
336
- if ( monsterinsights_is_pro_version() && empty( $key ) ) {
337
- $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' );
338
- // Translators: Adds a link to retrieve the license.
339
- $message = sprintf( esc_html__( 'Warning: No valid license key has been entered for MonsterInsights. You are currently not getting updates, and are not able to view reports. %1$sPlease click here to enter your license key and begin receiving updates and reports.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' );
340
- echo '<div class="error"><p>'. $message.'</p></div>';
341
- return;
342
- }
343
-
344
- // 3. License key not valid/okay for pro
345
- if ( monsterinsights_is_pro_version() ) {
346
- $message = '';
347
- if ( MonsterInsights()->license->get_site_license_key() ){
348
- if ( MonsterInsights()->license->site_license_expired() ) {
349
- // Translators: Adds a link to the license renewal.
350
- $message = sprintf( esc_html__( 'Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
351
- } else if ( MonsterInsights()->license->site_license_disabled() ) {
352
- $message = esc_html__( 'Your license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' );
353
- } else if ( MonsterInsights()->license->site_license_invalid() ) {
354
- $message = esc_html__( 'Your license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' );
355
- }
356
- } else if ( MonsterInsights()->license->get_network_license_key() ) {
357
- if ( MonsterInsights()->license->network_license_expired() ) {
358
- // Translators: Adds a link to renew license.
359
- $message = sprintf( esc_html__( 'Your network license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
360
- } else if ( MonsterInsights()->license->network_license_disabled() ) {
361
- $message = esc_html__( 'Your network license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' );
362
- } else if ( MonsterInsights()->license->network_license_invalid() ) {
363
- $message = esc_html__( 'Your network license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' );
364
- }
365
- }
366
- if ( ! empty( $message ) ) {
367
- echo '<div class="error"><p>'. $message.'</p></div>';
368
- return;
369
- }
370
- }
371
-
372
- // 4. Notices for PHP/WP version deprecations
373
- if ( current_user_can( 'update_core' ) ) {
374
- global $wp_version;
375
-
376
- $compatible_php_version = apply_filters( 'monsterinsights_compatible_php_version', false );
377
- $compatible_wp_version = apply_filters( 'monsterinsights_compatible_wp_version', false );
378
-
379
- $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' );
380
-
381
- $message = false;
382
- if ( version_compare( phpversion(), $compatible_php_version['required'], '<' ) ) {
383
- // Translators: Placeholders add the PHP version, a link to the MonsterInsights blog and a line break.
384
- $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress stopped supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
385
- } else if ( version_compare( phpversion(), $compatible_php_version['warning'], '<' ) ) {
386
- // Translators: Placeholders add the PHP version, a link to the MonsterInsights blog and a line break.
387
- $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress stopped supporting your PHP version in November, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
388
- } else if ( version_compare( phpversion(), $compatible_php_version['recommended'], '<' ) ) {
389
- // Translators: Placeholders add the PHP version, a link to the MonsterInsights blog and a line break.
390
- $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress is working towards discontinuing support for your PHP version.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
391
- }
392
-
393
- if ( $message ) {
394
- echo '<div class="error"><p>'. $message.'</p></div>';
395
- return;
396
- }
397
-
398
- // WordPress 4.9
399
- /* else if ( version_compare( $wp_version, '5.0', '<' ) ) {
400
- $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' );
401
- // Translators: Placeholders add the current WordPress version and links to the MonsterInsights blog
402
- $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 5.0 in 2021.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
403
- echo '<div class="error"><p>'. $message.'</p></div>';
404
- return;
405
- } */
406
- // PHP 5.4/5.5
407
- // else if ( version_compare( phpversion(), '5.6', '<' ) ) {
408
- // $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' );
409
- // $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress will stop supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
410
- // echo '<div class="error"><p>'. $message.'</p></div>';
411
- // return;
412
- // }
413
- // // WordPress 4.6 - 4.8
414
- // else if ( version_compare( $wp_version, '4.9', '<' ) ) {
415
- // $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' );
416
- // $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 4.9 in October, 2019.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
417
- // echo '<div class="error"><p>'. $message.'</p></div>';
418
- // return;
419
- // }
420
- }
421
-
422
- // 5. Optin setting not configured
423
- // if ( ! is_network_admin() ) {
424
- // if ( ! get_option( 'monsterinsights_tracking_notice' ) ) {
425
- // if ( ! monsterinsights_get_option( 'anonymous_data', false ) ) {
426
- // if ( ! monsterinsights_is_dev_url( network_site_url( '/' ) ) ) {
427
- // if ( monsterinsights_is_pro_version() ) {
428
- // monsterinsights_update_option( 'anonymous_data', 1 );
429
- // return;
430
- // }
431
- // $optin_url = add_query_arg( 'mi_action', 'opt_into_tracking' );
432
- // $optout_url = add_query_arg( 'mi_action', 'opt_out_of_tracking' );
433
- // echo '<div class="updated"><p>';
434
- // echo esc_html__( 'Allow MonsterInsights to track plugin usage? Opt-in to tracking and our newsletter to stay informed of the latest changes to MonsterInsights and help us ensure compatibility.', 'google-analytics-for-wordpress' );
435
- // echo '&nbsp;<a href="' . esc_url( $optin_url ) . '" class="button-secondary">' . __( 'Allow', 'google-analytics-for-wordpress' ) . '</a>';
436
- // echo '&nbsp;<a href="' . esc_url( $optout_url ) . '" class="button-secondary">' . __( 'Do not allow', 'google-analytics-for-wordpress' ) . '</a>';
437
- // echo '</p></div>';
438
- // return;
439
- // } else {
440
- // // is testing site
441
- // update_option( 'monsterinsights_tracking_notice', '1' );
442
- // }
443
- // }
444
- // }
445
- // }
446
-
447
- $notices = get_option( 'monsterinsights_notices' );
448
- if ( ! is_array( $notices ) ) {
449
- $notices = array();
450
- }
451
-
452
- // 6. Authenticate, not manual
453
- $authed = MonsterInsights()->auth->is_authed() || MonsterInsights()->auth->is_network_authed();
454
- $url = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' );
455
- $ua_code = monsterinsights_get_ua_to_output();
456
- // Translators: Placeholders add links to the settings panel.
457
- $manual_text = sprintf( esc_html__( 'Important: You are currently using manual UA code output. We highly recommend %1$sauthenticating with MonsterInsights%2$s so that you can access our new reporting area and take advantage of new MonsterInsights features.', 'google-analytics-for-wordpress' ), '<a href="' . $url . '">', '</a>' );
458
- $migrated = monsterinsights_get_option( 'gadwp_migrated', 0 );
459
- if ( $migrated > 0 ) {
460
- $url = admin_url( 'admin.php?page=monsterinsights-getting-started&monsterinsights-migration=1' );
461
- // Translators: Placeholders add links to the settings panel.
462
- $text = esc_html__( 'Click %1$shere%2$s to reauthenticate to be able to access reports. For more information why this is required, see our %3$sblog post%4$s.', 'google-analytics-for-wordpress' );
463
- $manual_text = sprintf( $text, '<a href="' . $url . '">', '</a>', '<a href="' . monsterinsights_get_url( 'notice', 'manual-ua', 'https://www.exactmetrics.com/why-did-we-implement-the-new-google-analytics-authentication-flow-challenges-explained/' ) . '" target="_blank">', '</a>' );
464
- }
465
-
466
- if ( empty( $authed ) && ! isset( $notices['monsterinsights_auth_not_manual'] ) && ! empty( $ua_code ) ) {
467
- echo '<div class="notice notice-info is-dismissible monsterinsights-notice" data-notice="monsterinsights_auth_not_manual">';
468
- echo '<p>';
469
- echo $manual_text;
470
- echo '</p>';
471
- echo '</div>';
472
-
473
- return;
474
- }
475
-
476
- // 7. Automatic updates not configured
477
- // if ( ! is_network_admin() ) {
478
- // $updates = monsterinsights_get_option( 'automatic_updates', false );
479
- // $url = admin_url( 'admin.php?page=monsterinsights_settings' );
480
-
481
- // if ( empty( $updates) && ! isset( $notices['monsterinsights_automatic_updates' ] ) ) {
482
- // echo '<div class="notice notice-info is-dismissible monsterinsights-notice" data-notice="monsterinsights_automatic_updates">';
483
- // echo '<p>';
484
- // echo sprintf( esc_html__( 'Important: Please %1$sconfigure the Automatic Updates Settings%2$s in MonsterInsights.', 'google-analytics-for-wordpress' ), '<a href="' . $url .'">', '</a>' );
485
- // echo '</p>';
486
- // echo '</div>';
487
- // return;
488
- // }
489
- // }
490
-
491
- // 8. WooUpsell
492
- if ( ! monsterinsights_is_pro_version() && class_exists( 'WooCommerce' ) ) {
493
- if ( ! isset( $notices['monsterinsights_woocommerce_tracking_available' ] ) ) {
494
- echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_woocommerce_tracking_available">';
495
- echo '<div class="monsterinsights-wooedd-upsell-left">';
496
- echo '<p><strong>';
497
- echo esc_html( 'Enhanced Ecommerce Analytics for Your WooCommerce Store', 'google-analytics-for-wordpress' );
498
- echo '</strong></p>';
499
- echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-small" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
500
- echo '<p>';
501
- echo esc_html( 'MonsterInsights Pro gives you detailed stats and insights about your customers.', 'google-analytics-for-wordpress' );
502
- echo '</p>';
503
- echo '<p>';
504
- echo esc_html( 'This helps you make data-driven decisions about your content, and marketing strategy so you can increase your website traffic, leads, and sales.', 'google-analytics-for-wordpress' );
505
- echo '</p>';
506
- echo '<p>';
507
- echo esc_html( 'Pro customers also get Form Tracking, Custom Dimensions Tracking, UserID Tracking and much more.', 'google-analytics-for-wordpress' );
508
- echo '</p>';
509
- echo '<p>';
510
- echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' );
511
- echo '</p>';
512
- // Translators: Placeholders add a link to the MonsterInsights website.
513
- echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" target="_blank" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'woocommerce-upgrade' ) .'">', ' &raquo;</a>' );
514
- echo '</p>';
515
- echo '</div><div class="monsterinsights-wooedd-upsell-right">';
516
- echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
517
- echo '</div>';
518
- echo '</div>';
519
- echo '<style type="text/css">.monsterinsights-wooedd-upsell-left{width:50%;display:table-cell;float:left}.monsterinsights-wooedd-upsell-right{width:50%;display:table-cell;float:left}.monsterinsights-wooedd-upsell-image{width:100%;height:auto;padding:20px}.monsterinsights-wooedd-upsell-image-small{display:none}.monsterinsights-wooedd-upsell-row{display:table}.monsterinsights-wooedd-upsell-left p{margin:1em 0;font-size:16px}@media (max-width:900px){.monsterinsights-wooedd-upsell-left{width:100%}.monsterinsights-wooedd-upsell-right{display:none}.monsterinsights-wooedd-upsell-image-small{display:block}.monsterinsights-wooedd-upsell-image-large{display:none}}</style>';
520
- return;
521
- }
522
- }
523
-
524
- // 9. EDDUpsell
525
- if ( ! monsterinsights_is_pro_version() && class_exists( 'Easy_Digital_Downloads' ) ) {
526
- if ( ! isset( $notices['monsterinsights_edd_tracking_available' ] ) ) {
527
- echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_edd_tracking_available">';
528
- echo '<div class="monsterinsights-wooedd-upsell-left">';
529
- echo '<p><strong>';
530
- echo esc_html( 'Enhanced Ecommerce Analytics for Your Easy Digital Downloads Store', 'google-analytics-for-wordpress' );
531
- echo '</strong></p>';
532
- echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-small" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
533
- echo '<p>';
534
- echo esc_html( 'MonsterInsights Pro gives you detailed stats and insights about your customers.', 'google-analytics-for-wordpress' );
535
- echo '</p>';
536
- echo '<p>';
537
- echo esc_html( 'This helps you make data-driven decisions about your content, and marketing strategy so you can increase your website traffic, leads, and sales.', 'google-analytics-for-wordpress' );
538
- echo '</p>';
539
- echo '<p>';
540
- echo esc_html( 'Pro customers also get Form Tracking, Custom Dimensions Tracking, UserID Tracking and much more.', 'google-analytics-for-wordpress' );
541
- echo '</p>';
542
- echo '<p>';
543
- echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' );
544
- echo '</p>';
545
- echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" target="_blank" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'edd-upgrade' ) .'">', ' &raquo;</a>' );
546
- echo '</p>';
547
- echo '</div><div class="monsterinsights-wooedd-upsell-right">';
548
- echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
549
- echo '</div>';
550
- echo '</div>';
551
- return;
552
- }
553
- }
554
-
555
- if ( isset( $notices['monsterinsights_cross_domains_extracted'] ) && false === $notices['monsterinsights_cross_domains_extracted'] ) {
556
- $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' );
557
- $page = $page . '#/advanced';
558
- // Translators: Adds a link to the settings panel.
559
- $message = sprintf( esc_html__( 'Warning: MonsterInsights found cross-domain settings in the custom code field and converted them to the new settings structure. %1$sPlease click here to review and remove the code no longer needed.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' );
560
- echo '<div class="notice notice-success is-dismissible monsterinsights-notice" data-notice="monsterinsights_cross_domains_extracted"><p>'. $message.'</p></div>';
561
- return;
562
- }
563
- }
564
- add_action( 'admin_notices', 'monsterinsights_admin_setup_notices' );
565
- add_action( 'network_admin_notices', 'monsterinsights_admin_setup_notices' );
566
-
567
-
568
- // AM Notices
569
- function monsterinsights_am_notice_optout( $super_admin ) {
570
- if ( monsterinsights_get_option( 'hide_am_notices', false ) || monsterinsights_get_option( 'network_hide_am_notices', false ) ) {
571
- return false;
572
- }
573
- return $super_admin;
574
- }
575
- add_filter( "am_notifications_display", 'monsterinsights_am_notice_optout', 10, 1 );
576
-
577
- /**
578
- * Inline critical css for the menu to prevent breaking the layout when our scripts get blocked by browsers.
579
- */
580
- function monsterinsights_admin_menu_inline_styles() {
581
- ?>
582
- <style type="text/css">
583
- #toplevel_page_monsterinsights_reports .wp-menu-image img,
584
- #toplevel_page_monsterinsights_settings .wp-menu-image img,
585
- #toplevel_page_monsterinsights_network .wp-menu-image img {
586
- width: 18px;
587
- height: auto;
588
- padding-top: 7px;
589
- }
590
- </style>
591
- <?php
592
- }
593
-
594
- add_action( 'admin_head', 'monsterinsights_admin_menu_inline_styles', 300 );
595
-
596
- /**
597
- * Display notice in admin when measurement protocol is left blank
598
- */
599
- function monsterinsights_empty_measurement_protocol_token() {
600
- if ( ! class_exists( 'MonsterInsights_eCommerce' ) && ! class_exists( 'MonsterInsights_Forms' ) ) {
601
- return;
602
- }
603
-
604
- $page = is_network_admin()
605
- ? network_admin_url( 'admin.php?page=monsterinsights_network' )
606
- : admin_url( 'admin.php?page=monsterinsights_settings' );
607
-
608
- $api_secret = is_network_admin()
609
- ? MonsterInsights()->auth->get_network_measurement_protocol_secret()
610
- : MonsterInsights()->auth->get_measurement_protocol_secret();
611
-
612
- $current_code = monsterinsights_get_v4_id_to_output();
613
-
614
- if ( empty( $current_code ) || ! empty( $api_secret ) ) {
615
- return;
616
- }
617
-
618
- $message = sprintf(
619
- esc_html__(
620
- 'Your Measurement Protocol API Secret is currently left blank, so you won\'t be able to use some of the tracking features with your GA4 property. %1$sPlease enter your Measurement Protocol API Secret here.%2$s',
621
- 'google-analytics-for-wordpress'
622
- ),
623
- '<a href="' . esc_url( $page ). '">',
624
- '</a>'
625
- );
626
- echo '<div class="error"><p>'. $message.'</p></div>';
627
- }
628
-
629
- add_action( 'admin_notices', 'monsterinsights_empty_measurement_protocol_token' );
630
- add_action( 'network_admin_notices', 'monsterinsights_admin_setup_notices' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Admin class.
4
+ *
5
+ * @since 6.0.0
6
+ *
7
+ * @package MonsterInsights
8
+ * @subpackage Admin
9
+ * @author Chris Christoff
10
+ */
11
+
12
+ // Exit if accessed directly
13
+ if ( ! defined( 'ABSPATH' ) ) {
14
+ exit;
15
+ }
16
+
17
+ /**
18
+ * Register menu items for MonsterInsights.
19
+ *
20
+ * @return void
21
+ * @since 6.0.0
22
+ * @access public
23
+ *
24
+ */
25
+ function monsterinsights_admin_menu() {
26
+ $hook = monsterinsights_get_menu_hook();
27
+ $menu_icon_inline = monsterinsights_get_inline_menu_icon();
28
+
29
+ if ( $hook === 'monsterinsights_settings' ) {
30
+ // If dashboards disabled, first settings page
31
+ add_menu_page( __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page', $menu_icon_inline, '100.00013467543' );
32
+ $hook = 'monsterinsights_settings';
33
+
34
+ add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings' );
35
+ } else {
36
+ // if dashboards enabled, first dashboard
37
+ add_menu_page( __( 'General:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page', $menu_icon_inline, '100.00013467543' );
38
+
39
+ add_submenu_page( $hook, __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Reports', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page' );
40
+
41
+ // then settings page
42
+ add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page' );
43
+
44
+ // Add dashboard submenu.
45
+ add_submenu_page( 'index.php', __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'admin.php?page=monsterinsights_reports' );
46
+ }
47
+
48
+ $submenu_base = add_query_arg( 'page', 'monsterinsights_settings', admin_url( 'admin.php' ) );
49
+
50
+ // Add Popular Posts menu item.
51
+ add_submenu_page( $hook, __( 'Popular Posts:', 'google-analytics-for-wordpress' ), __( 'Popular Posts', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', $submenu_base . '#/popular-posts' );
52
+
53
+ if ( function_exists( 'aioseo' ) ) {
54
+ $seo_url = monsterinsights_aioseo_dashboard_url();
55
+ } else {
56
+ $seo_url = $submenu_base . '#/seo';
57
+ }
58
+ // then SEO
59
+ add_submenu_page( $hook, __( 'SEO', 'google-analytics-for-wordpress' ), __( 'SEO', 'google-analytics-for-wordpress' ), 'manage_options', $seo_url );
60
+
61
+ // then tools
62
+ add_submenu_page( $hook, __( 'Tools:', 'google-analytics-for-wordpress' ), __( 'Tools', 'google-analytics-for-wordpress' ), 'manage_options', $submenu_base . '#/tools' );
63
+
64
+ // then addons
65
+ $network_key = monsterinsights_is_pro_version() ? MonsterInsights()->license->get_network_license_key() : '';
66
+ if ( ! monsterinsights_is_network_active() || ( monsterinsights_is_network_active() && empty( $network_key ) ) ) {
67
+ add_submenu_page( $hook, __( 'Addons:', 'google-analytics-for-wordpress' ), '<span style="color:' . monsterinsights_menu_highlight_color() . '"> ' . __( 'Addons', 'google-analytics-for-wordpress' ) . '</span>', 'monsterinsights_save_settings', $submenu_base . '#/addons' );
68
+ }
69
+
70
+ // Add About us page.
71
+ add_submenu_page( $hook, __( 'About Us:', 'google-analytics-for-wordpress' ), __( 'About Us', 'google-analytics-for-wordpress' ), 'manage_options', $submenu_base . '#/about' );
72
+
73
+ add_submenu_page( $hook, __( 'Growth Tools:', 'google-analytics-for-wordpress' ), __( 'Growth Tools', 'google-analytics-for-wordpress' ), 'manage_options', $submenu_base . '#/growth-tools' );
74
+
75
+ if ( ! monsterinsights_is_pro_version() ) {
76
+ add_submenu_page( $hook, __( 'Upgrade to Pro:', 'google-analytics-for-wordpress' ), '<span class="monsterinsights-upgrade-submenu"> ' . __( 'Upgrade to Pro', 'google-analytics-for-wordpress' ) . '</span>', 'monsterinsights_save_settings', monsterinsights_get_upgrade_link( 'admin-menu', 'submenu', "https://www.monsterinsights.com/lite/" ) );
77
+ }
78
+
79
+ }
80
+
81
+ add_action( 'admin_menu', 'monsterinsights_admin_menu' );
82
+
83
+ /**
84
+ * Add this separately so all the Woo menu items are loaded and the position parameter works correctly.
85
+ */
86
+ function monsterinsights_woocommerce_menu_item() {
87
+ // Add "Insights" sub menu item for WooCommerce Analytics menu
88
+ if ( class_exists( 'WooCommerce' ) && ! apply_filters( 'monsterinsights_disable_woo_analytics_menu', false ) ) {
89
+ if ( class_exists( 'MonsterInsights_eCommerce' ) ) {
90
+ add_submenu_page( 'wc-admin&path=/analytics/overview', __( 'Insights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', admin_url( 'admin.php?page=monsterinsights_reports#/ecommerce' ), '', 2 );
91
+ } else {
92
+ $submenu_base = add_query_arg( 'page', 'monsterinsights_settings', admin_url( 'admin.php' ) );
93
+ add_submenu_page( 'wc-admin&path=/analytics/overview', __( 'Insights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'manage_options', $submenu_base . '#/woocommerce-insights', '', 1 );
94
+ }
95
+ }
96
+ }
97
+
98
+ add_action( 'admin_menu', 'monsterinsights_woocommerce_menu_item', 11 );
99
+
100
+ function monsterinsights_get_menu_hook() {
101
+ $dashboards_disabled = monsterinsights_get_option( 'dashboards_disabled', false );
102
+ if ( $dashboards_disabled || ( current_user_can( 'monsterinsights_save_settings' ) && ! current_user_can( 'monsterinsights_view_dashboard' ) ) ) {
103
+ return 'monsterinsights_settings';
104
+ } else {
105
+ return 'monsterinsights_reports';
106
+ }
107
+ }
108
+
109
+ function monsterinsights_network_admin_menu() {
110
+ // Get the base class object.
111
+ $base = MonsterInsights();
112
+
113
+ // First, let's see if this is an MS network enabled plugin. If it is, we should load the license
114
+ // menu page and the updater on the network panel
115
+ if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
116
+ require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
117
+ }
118
+
119
+ $plugin = plugin_basename( MONSTERINSIGHTS_PLUGIN_FILE );
120
+ if ( ! is_plugin_active_for_network( $plugin ) ) {
121
+ return;
122
+ }
123
+
124
+ $menu_icon_inline = monsterinsights_get_inline_menu_icon();
125
+ $hook = 'monsterinsights_network';
126
+ $submenu_base = add_query_arg( 'page', 'monsterinsights_network', network_admin_url( 'admin.php' ) );
127
+ add_menu_page( __( 'Network Settings:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_save_settings', 'monsterinsights_network', 'monsterinsights_network_page', $menu_icon_inline, '100.00013467543' );
128
+
129
+ add_submenu_page( $hook, __( 'Network Settings:', 'google-analytics-for-wordpress' ), __( 'Network Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_network', 'monsterinsights_network_page' );
130
+
131
+ add_submenu_page( $hook, __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Reports', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page' );
132
+
133
+ if ( function_exists( 'aioseo' ) ) {
134
+ $seo_url = monsterinsights_aioseo_dashboard_url();
135
+ } else {
136
+ $seo_url = $submenu_base . '#/seo';
137
+ }
138
+ // then seo
139
+ add_submenu_page( $hook, __( 'SEO:', 'google-analytics-for-wordpress' ), __( 'SEO', 'google-analytics-for-wordpress' ), 'manage_options', $seo_url, 'monsterinsights_seo_page' );
140
+
141
+ // then addons
142
+ add_submenu_page( $hook, __( 'Addons:', 'google-analytics-for-wordpress' ), '<span style="color:' . monsterinsights_menu_highlight_color() . '"> ' . __( 'Addons', 'google-analytics-for-wordpress' ) . '</span>', 'monsterinsights_save_settings', $submenu_base . '#/addons' );
143
+
144
+ $submenu_base = add_query_arg( 'page', 'monsterinsights_network', network_admin_url( 'admin.php' ) );
145
+
146
+ // Add About us page.
147
+ add_submenu_page( $hook, __( 'About Us:', 'google-analytics-for-wordpress' ), __( 'About Us', 'google-analytics-for-wordpress' ), 'manage_options', $submenu_base . '#/about' );
148
+ }
149
+
150
+ add_action( 'network_admin_menu', 'monsterinsights_network_admin_menu', 5 );
151
+
152
+ /**
153
+ * Adds one or more classes to the body tag in the dashboard.
154
+ *
155
+ * @param String $classes Current body classes.
156
+ *
157
+ * @return String Altered body classes.
158
+ */
159
+ function monsterinsights_add_admin_body_class( $classes ) {
160
+ $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
161
+ if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights' ) === false ) {
162
+ return $classes;
163
+ }
164
+
165
+ return "$classes monsterinsights_page ";
166
+ }
167
+
168
+ add_filter( 'admin_body_class', 'monsterinsights_add_admin_body_class', 10, 1 );
169
+
170
+ /**
171
+ * Adds one or more classes to the body tag in the dashboard.
172
+ *
173
+ * @param String $classes Current body classes.
174
+ *
175
+ * @return String Altered body classes.
176
+ */
177
+ function monsterinsights_add_admin_body_class_tools_page( $classes ) {
178
+ $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
179
+
180
+ if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_tools' ) === false || 'insights_page_monsterinsights_tools' === $screen->id ) {
181
+ return $classes;
182
+ }
183
+
184
+ return "$classes insights_page_monsterinsights_tools ";
185
+ }
186
+
187
+ add_filter( 'admin_body_class', 'monsterinsights_add_admin_body_class_tools_page', 10, 1 );
188
+
189
+ /**
190
+ * Adds one or more classes to the body tag in the dashboard.
191
+ *
192
+ * @param String $classes Current body classes.
193
+ *
194
+ * @return String Altered body classes.
195
+ */
196
+ function monsterinsights_add_admin_body_class_addons_page( $classes ) {
197
+ $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
198
+ if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_addons' ) === false || 'insights_page_monsterinsights_addons' === $screen->id ) {
199
+ return $classes;
200
+ }
201
+
202
+ return "$classes insights_page_monsterinsights_addons ";
203
+ }
204
+
205
+ add_filter( 'admin_body_class', 'monsterinsights_add_admin_body_class_addons_page', 10, 1 );
206
+
207
+ /**
208
+ * Add a link to the settings page to the plugins list
209
+ *
210
+ * @param array $links array of links for the plugins, adapted when the current plugin is found.
211
+ *
212
+ * @return array $links
213
+ */
214
+ function monsterinsights_add_action_links( $links ) {
215
+ $docs = '<a title="' . esc_html__( 'MonsterInsights Knowledge Base', 'google-analytics-for-wordpress' ) . '" href="' . monsterinsights_get_url( 'all-plugins', 'kb-link', "https://www.monsterinsights.com/docs/" ) . '">' . esc_html__( 'Documentation', 'google-analytics-for-wordpress' ) . '</a>';
216
+ array_unshift( $links, $docs );
217
+
218
+ // If Lite, support goes to forum. If pro, it goes to our website
219
+ if ( monsterinsights_is_pro_version() ) {
220
+ $support = '<a title="MonsterInsights Pro Support" href="' . monsterinsights_get_url( 'all-plugins', 'pro-support-link', "https://www.monsterinsights.com/my-account/support/" ) . '">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>';
221
+ array_unshift( $links, $support );
222
+ } else {
223
+ $support = '<a title="MonsterInsights Lite Support" href="' . monsterinsights_get_url( 'all-plugins', 'lite-support-link', "https://www.monsterinsights.com/lite-support/" ) . '">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>';
224
+ array_unshift( $links, $support );
225
+ }
226
+
227
+ if ( is_network_admin() ) {
228
+ $settings_link = '<a href="' . esc_url( network_admin_url( 'admin.php?page=monsterinsights_network' ) ) . '">' . esc_html__( 'Network Settings', 'google-analytics-for-wordpress' ) . '</a>';
229
+ } else {
230
+ $settings_link = '<a href="' . esc_url( admin_url( 'admin.php?page=monsterinsights_settings' ) ) . '">' . esc_html__( 'Settings', 'google-analytics-for-wordpress' ) . '</a>';
231
+ }
232
+
233
+ array_unshift( $links, $settings_link );
234
+
235
+ // If lite, show a link where they can get pro from
236
+ if ( ! monsterinsights_is_pro_version() ) {
237
+ $get_pro = '<a title="' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '" target="_blank" rel="noopener" href="' . monsterinsights_get_upgrade_link( 'all-plugins', 'upgrade-link', "https://www.monsterinsights.com/lite/" ) . '" style="font-weight:700; color: #1da867;">' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '</a>';
238
+ array_unshift( $links, $get_pro );
239
+ }
240
+
241
+ return $links;
242
+ }
243
+
244
+ add_filter( 'plugin_action_links_' . plugin_basename( MONSTERINSIGHTS_PLUGIN_FILE ), 'monsterinsights_add_action_links' );
245
+ add_filter( 'network_admin_plugin_action_links_' . plugin_basename( MONSTERINSIGHTS_PLUGIN_FILE ), 'monsterinsights_add_action_links' );
246
+
247
+ /**
248
+ * Loads a partial view for the Administration screen
249
+ *
250
+ * @access public
251
+ *
252
+ * @param string $template PHP file at includes/admin/partials, excluding file extension
253
+ * @param array $data Any data to pass to the view
254
+ *
255
+ * @return void
256
+ * @since 6.0.0
257
+ *
258
+ */
259
+ function monsterinsights_load_admin_partial( $template, $data = array() ) {
260
+
261
+ if ( monsterinsights_is_pro_version() ) {
262
+ $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'pro/includes/admin/partials' );
263
+
264
+ if ( file_exists( $dir . $template . '.php' ) ) {
265
+ require_once( $dir . $template . '.php' );
266
+
267
+ return true;
268
+ }
269
+ } else {
270
+ $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'lite/includes/admin/partials' );
271
+
272
+ if ( file_exists( $dir . $template . '.php' ) ) {
273
+ require_once( $dir . $template . '.php' );
274
+
275
+ return true;
276
+ }
277
+ }
278
+
279
+ $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'includes/admin/partials' );
280
+
281
+ if ( file_exists( $dir . $template . '.php' ) ) {
282
+ require_once( $dir . $template . '.php' );
283
+
284
+ return true;
285
+ }
286
+
287
+ return false;
288
+ }
289
+
290
+ /**
291
+ * When user is on a MonsterInsights related admin page, display footer text
292
+ * that graciously asks them to rate us.
293
+ *
294
+ * @param string $text
295
+ *
296
+ * @return string
297
+ * @since 6.0.0
298
+ */
299
+ function monsterinsights_admin_footer( $text ) {
300
+ global $current_screen;
301
+ if ( ! empty( $current_screen->id ) && strpos( $current_screen->id, 'monsterinsights' ) !== false ) {
302
+ $url = 'https://wordpress.org/support/view/plugin-reviews/google-analytics-for-wordpress?filter=5';
303
+ // Translators: Placeholders add a link to the wordpress.org repository.
304
+ $text = sprintf( esc_html__( 'Please rate %1$sMonsterInsights%2$s on %3$s %4$sWordPress.org%5$s to help us spread the word. Thank you from the MonsterInsights team!', 'google-analytics-for-wordpress' ), '<strong>', '</strong>', '<a class="monsterinsights-no-text-decoration" href="' . $url . '" target="_blank" rel="noopener noreferrer"><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i></a>', '<a href="' . $url . '" target="_blank" rel="noopener noreferrer">', '</a>' );
305
+ }
306
+
307
+ return $text;
308
+ }
309
+
310
+ add_filter( 'admin_footer_text', 'monsterinsights_admin_footer', 1, 2 );
311
+
312
+ function monsterinsights_admin_setup_notices() {
313
+ // Make sure they have the permissions to do something
314
+ if ( ! current_user_can( 'monsterinsights_save_settings' ) ) {
315
+ return;
316
+ }
317
+
318
+ // Priority:
319
+ // 1. Google Analytics not authenticated
320
+ // 2. License key not entered for pro
321
+ // 3. License key not valid/okay for pro
322
+ // 4. WordPress + PHP min versions
323
+ // 5. (old) Optin setting not configured
324
+ // 6. Manual UA code
325
+ // 7. Automatic updates not configured
326
+ // 8. Woo upsell
327
+ // 9. EDD upsell
328
+
329
+
330
+ // 1. Google Analytics not authenticated
331
+ if ( ! is_network_admin() && ! monsterinsights_get_ua() && ! monsterinsights_get_v4_id() && ! defined( 'MONSTERINSIGHTS_DISABLE_TRACKING' ) ) {
332
+
333
+ $submenu_base = is_network_admin() ? add_query_arg( 'page', 'monsterinsights_network', network_admin_url( 'admin.php' ) ) : add_query_arg( 'page', 'monsterinsights_settings', admin_url( 'admin.php' ) );
334
+ $title = esc_html__( 'Please Setup Website Analytics to See Audience Insights', 'google-analytics-for-wordpress' );
335
+ $primary = esc_html__( 'Connect MonsterInsights and Setup Website Analytics', 'google-analytics-for-wordpress' );
336
+ $urlone = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights-onboarding' ) : admin_url( 'admin.php?page=monsterinsights-onboarding' );
337
+ $secondary = esc_html__( 'Learn More', 'google-analytics-for-wordpress' );
338
+ $urltwo = $submenu_base . '#/about/getting-started';
339
+ $message = esc_html__( 'MonsterInsights, WordPress analytics plugin, helps you connect your website with Google Analytics, so you can see how people find and use your website. Over 3 million website owners use MonsterInsights to see the stats that matter and grow their business.', 'google-analytics-for-wordpress' );
340
+ echo '<div class="notice notice-info"><p style="font-weight:700">' . $title . '</p><p>' . $message . '</p><p><a href="' . $urlone . '" class="button-primary">' . $primary . '</a>&nbsp;&nbsp;&nbsp;<a href="' . $urltwo . '" class="button-secondary">' . $secondary . '</a></p></div>';
341
+
342
+ return;
343
+ }
344
+
345
+ // 2. License key not entered for pro
346
+ $key = monsterinsights_is_pro_version() ? MonsterInsights()->license->get_license_key() : '';
347
+ if ( monsterinsights_is_pro_version() && empty( $key ) ) {
348
+ $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' );
349
+ // Translators: Adds a link to retrieve the license.
350
+ $message = sprintf( esc_html__( 'Warning: No valid license key has been entered for MonsterInsights. You are currently not getting updates, and are not able to view reports. %1$sPlease click here to enter your license key and begin receiving updates and reports.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . esc_url( $page ) . '">', '</a>' );
351
+ echo '<div class="error"><p>' . $message . '</p></div>';
352
+
353
+ return;
354
+ }
355
+
356
+ // 3. License key not valid/okay for pro
357
+ if ( monsterinsights_is_pro_version() ) {
358
+ $message = '';
359
+ if ( MonsterInsights()->license->get_site_license_key() ) {
360
+ if ( MonsterInsights()->license->site_license_expired() ) {
361
+ // Translators: Adds a link to the license renewal.
362
+ $message = sprintf( esc_html__( 'Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) . '" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
363
+ } else if ( MonsterInsights()->license->site_license_disabled() ) {
364
+ $message = sprintf( esc_html__( 'Your MonsterInsights license is currently disabled. Please %1$sclick here%2$s to login to your MonsterInsights account and use a different license key or purchase a new one.', 'google-analytics-for-wordpress' ), '<a href="' . monsterinsights_get_url( 'admin-notices', 'disabled-license', "https://www.monsterinsights.com/login/" ) . '" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
365
+ } else if ( MonsterInsights()->license->site_license_invalid() ) {
366
+ $message = esc_html__( 'Your license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' );
367
+ }
368
+ } else if ( MonsterInsights()->license->get_network_license_key() ) {
369
+ if ( MonsterInsights()->license->network_license_expired() ) {
370
+ // Translators: Adds a link to renew license.
371
+ $message = sprintf( esc_html__( 'Your network license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) . '" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
372
+ } else if ( MonsterInsights()->license->network_license_disabled() ) {
373
+ $message = sprintf( esc_html__( 'Your MonsterInsights network license is currently disabled. Please %1$sclick here%2$s to login to your MonsterInsights account and use a different license key.', 'google-analytics-for-wordpress' ), '<a href="' . monsterinsights_get_url( 'admin-notices', 'disabled-network-license', "https://www.monsterinsights.com/login/" ) . '" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
374
+ } else if ( MonsterInsights()->license->network_license_invalid() ) {
375
+ $message = sprintf( esc_html__( 'Your MonsterInsights network license is invalid. Please %1$sclick here%2$s to login to your MonsterInsights account to confirm your license key.', 'google-analytics-for-wordpress' ), '<a href="' . monsterinsights_get_url( 'admin-notices', 'invalid-network-license', "https://www.monsterinsights.com/login/" ) . '" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
376
+ }
377
+ }
378
+ if ( ! empty( $message ) ) {
379
+ echo '<div class="error"><p>' . $message . '</p></div>';
380
+
381
+ return;
382
+ }
383
+ }
384
+
385
+ // 4. Notices for PHP/WP version deprecations
386
+ if ( current_user_can( 'update_core' ) ) {
387
+ global $wp_version;
388
+
389
+ $compatible_php_version = apply_filters( 'monsterinsights_compatible_php_version', false );
390
+ $compatible_wp_version = apply_filters( 'monsterinsights_compatible_wp_version', false );
391
+
392
+ $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' );
393
+
394
+ $message = false;
395
+ if ( version_compare( phpversion(), $compatible_php_version['required'], '<' ) ) {
396
+ // Translators: Placeholders add the PHP version, a link to the MonsterInsights blog and a line break.
397
+ $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress stopped supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
398
+ } else if ( version_compare( phpversion(), $compatible_php_version['warning'], '<' ) ) {
399
+ // Translators: Placeholders add the PHP version, a link to the MonsterInsights blog and a line break.
400
+ $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress stopped supporting your PHP version in November, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
401
+ } else if ( version_compare( phpversion(), $compatible_php_version['recommended'], '<' ) ) {
402
+ // Translators: Placeholders add the PHP version, a link to the MonsterInsights blog and a line break.
403
+ $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress is working towards discontinuing support for your PHP version.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
404
+ }
405
+
406
+ if ( $message ) {
407
+ echo '<div class="error"><p>' . $message . '</p></div>';
408
+
409
+ return;
410
+ }
411
+
412
+ // WordPress 4.9
413
+ /* else if ( version_compare( $wp_version, '5.0', '<' ) ) {
414
+ $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' );
415
+ // Translators: Placeholders add the current WordPress version and links to the MonsterInsights blog
416
+ $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 5.0 in 2021.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
417
+ echo '<div class="error"><p>'. $message.'</p></div>';
418
+ return;
419
+ } */
420
+ // PHP 5.4/5.5
421
+ // else if ( version_compare( phpversion(), '5.6', '<' ) ) {
422
+ // $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' );
423
+ // $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress will stop supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
424
+ // echo '<div class="error"><p>'. $message.'</p></div>';
425
+ // return;
426
+ // }
427
+ // // WordPress 4.6 - 4.8
428
+ // else if ( version_compare( $wp_version, '4.9', '<' ) ) {
429
+ // $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' );
430
+ // $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 4.9 in October, 2019.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
431
+ // echo '<div class="error"><p>'. $message.'</p></div>';
432
+ // return;
433
+ // }
434
+ }
435
+
436
+ // 5. Optin setting not configured
437
+ // if ( ! is_network_admin() ) {
438
+ // if ( ! get_option( 'monsterinsights_tracking_notice' ) ) {
439
+ // if ( ! monsterinsights_get_option( 'anonymous_data', false ) ) {
440
+ // if ( ! monsterinsights_is_dev_url( network_site_url( '/' ) ) ) {
441
+ // if ( monsterinsights_is_pro_version() ) {
442
+ // monsterinsights_update_option( 'anonymous_data', 1 );
443
+ // return;
444
+ // }
445
+ // $optin_url = add_query_arg( 'mi_action', 'opt_into_tracking' );
446
+ // $optout_url = add_query_arg( 'mi_action', 'opt_out_of_tracking' );
447
+ // echo '<div class="updated"><p>';
448
+ // echo esc_html__( 'Allow MonsterInsights to track plugin usage? Opt-in to tracking and our newsletter to stay informed of the latest changes to MonsterInsights and help us ensure compatibility.', 'google-analytics-for-wordpress' );
449
+ // echo '&nbsp;<a href="' . esc_url( $optin_url ) . '" class="button-secondary">' . __( 'Allow', 'google-analytics-for-wordpress' ) . '</a>';
450
+ // echo '&nbsp;<a href="' . esc_url( $optout_url ) . '" class="button-secondary">' . __( 'Do not allow', 'google-analytics-for-wordpress' ) . '</a>';
451
+ // echo '</p></div>';
452
+ // return;
453
+ // } else {
454
+ // // is testing site
455
+ // update_option( 'monsterinsights_tracking_notice', '1' );
456
+ // }
457
+ // }
458
+ // }
459
+ // }
460
+
461
+ $notices = get_option( 'monsterinsights_notices' );
462
+ if ( ! is_array( $notices ) ) {
463
+ $notices = array();
464
+ }
465
+
466
+ // 6. Authenticate, not manual
467
+ $authed = MonsterInsights()->auth->is_authed() || MonsterInsights()->auth->is_network_authed();
468
+ $url = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' );
469
+ $ua_code = monsterinsights_get_ua_to_output();
470
+ // Translators: Placeholders add links to the settings panel.
471
+ $manual_text = sprintf( esc_html__( 'Important: You are currently using manual UA code output. We highly recommend %1$sauthenticating with MonsterInsights%2$s so that you can access our new reporting area and take advantage of new MonsterInsights features.', 'google-analytics-for-wordpress' ), '<a href="' . $url . '">', '</a>' );
472
+ $migrated = monsterinsights_get_option( 'gadwp_migrated', 0 );
473
+ if ( $migrated > 0 ) {
474
+ $url = admin_url( 'admin.php?page=monsterinsights-getting-started&monsterinsights-migration=1' );
475
+ // Translators: Placeholders add links to the settings panel.
476
+ $text = esc_html__( 'Click %1$shere%2$s to reauthenticate to be able to access reports. For more information why this is required, see our %3$sblog post%4$s.', 'google-analytics-for-wordpress' );
477
+ $manual_text = sprintf( $text, '<a href="' . $url . '">', '</a>', '<a href="' . monsterinsights_get_url( 'notice', 'manual-ua', 'https://www.exactmetrics.com/why-did-we-implement-the-new-google-analytics-authentication-flow-challenges-explained/' ) . '" target="_blank">', '</a>' );
478
+ }
479
+
480
+ // Make sure they have the permissions to do something
481
+ if ( ! current_user_can( 'monsterinsights_save_settings' ) ) {
482
+ return;
483
+ }
484
+
485
+ // Priority:
486
+ // 1. Google Analytics not authenticated
487
+ // 2. License key not entered for pro
488
+ // 3. License key not valid/okay for pro
489
+ // 4. WordPress + PHP min versions
490
+ // 5. (old) Optin setting not configured
491
+ // 6. Manual UA code
492
+ // 7. Automatic updates not configured
493
+ // 8. Woo upsell
494
+ // 9. EDD upsell
495
+
496
+
497
+ // 1. Google Analytics not authenticated
498
+ if ( ! is_network_admin() && ! monsterinsights_get_ua() && ! monsterinsights_get_v4_id() && ! defined( 'MONSTERINSIGHTS_DISABLE_TRACKING' ) ) {
499
+
500
+ $submenu_base = is_network_admin() ? add_query_arg( 'page', 'monsterinsights_network', network_admin_url( 'admin.php' ) ) : add_query_arg( 'page', 'monsterinsights_settings', admin_url( 'admin.php' ) );
501
+ $title = esc_html__( 'Please Setup Website Analytics to See Audience Insights', 'google-analytics-for-wordpress' );
502
+ $primary = esc_html__( 'Connect MonsterInsights and Setup Website Analytics', 'google-analytics-for-wordpress' );
503
+ $urlone = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights-onboarding' ) : admin_url( 'admin.php?page=monsterinsights-onboarding' );
504
+ $secondary = esc_html__( 'Learn More', 'google-analytics-for-wordpress' );
505
+ $urltwo = $submenu_base . '#/about/getting-started';
506
+ $message = esc_html__( 'MonsterInsights, WordPress analytics plugin, helps you connect your website with Google Analytics, so you can see how people find and use your website. Over 3 million website owners use MonsterInsights to see the stats that matter and grow their business.', 'google-analytics-for-wordpress' );
507
+ echo '<div class="notice notice-info"><p style="font-weight:700">' . $title . '</p><p>' . $message . '</p><p><a href="' . $urlone . '" class="button-primary">' . $primary . '</a>&nbsp;&nbsp;&nbsp;<a href="' . $urltwo . '" class="button-secondary">' . $secondary . '</a></p></div>';
508
+
509
+ return;
510
+ }
511
+
512
+ // 2. License key not entered for pro
513
+ $key = monsterinsights_is_pro_version() ? MonsterInsights()->license->get_license_key() : '';
514
+ if ( monsterinsights_is_pro_version() && empty( $key ) ) {
515
+ $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' );
516
+ // Translators: Adds a link to retrieve the license.
517
+ $message = sprintf( esc_html__( 'Warning: No valid license key has been entered for MonsterInsights. You are currently not getting updates, and are not able to view reports. %1$sPlease click here to enter your license key and begin receiving updates and reports.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . esc_url( $page ) . '">', '</a>' );
518
+ echo '<div class="error"><p>' . $message . '</p></div>';
519
+
520
+ return;
521
+ }
522
+
523
+ // 3. License key not valid/okay for pro
524
+ if ( monsterinsights_is_pro_version() ) {
525
+ $message = '';
526
+ if ( MonsterInsights()->license->get_site_license_key() ) {
527
+ if ( MonsterInsights()->license->site_license_expired() ) {
528
+ // Translators: Adds a link to the license renewal.
529
+ $message = sprintf( esc_html__( 'Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) . '" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
530
+ } else if ( MonsterInsights()->license->site_license_disabled() ) {
531
+ $message = esc_html__( 'Your license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' );
532
+ } else if ( MonsterInsights()->license->site_license_invalid() ) {
533
+ $message = esc_html__( 'Your license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' );
534
+ }
535
+ } else if ( MonsterInsights()->license->get_network_license_key() ) {
536
+ if ( MonsterInsights()->license->network_license_expired() ) {
537
+ // Translators: Adds a link to renew license.
538
+ $message = sprintf( esc_html__( 'Your network license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) . '" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
539
+ } else if ( MonsterInsights()->license->network_license_disabled() ) {
540
+ $message = esc_html__( 'Your network license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' );
541
+ } else if ( MonsterInsights()->license->network_license_invalid() ) {
542
+ $message = esc_html__( 'Your network license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' );
543
+ }
544
+ }
545
+ if ( ! empty( $message ) ) {
546
+ echo '<div class="error"><p>' . $message . '</p></div>';
547
+
548
+ return;
549
+ }
550
+ }
551
+
552
+ // 4. Notices for PHP/WP version deprecations
553
+ if ( current_user_can( 'update_core' ) ) {
554
+ global $wp_version;
555
+
556
+ $compatible_php_version = apply_filters( 'monsterinsights_compatible_php_version', false );
557
+ $compatible_wp_version = apply_filters( 'monsterinsights_compatible_wp_version', false );
558
+
559
+ $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' );
560
+
561
+ $message = false;
562
+ if ( version_compare( phpversion(), $compatible_php_version['required'], '<' ) ) {
563
+ // Translators: Placeholders add the PHP version, a link to the MonsterInsights blog and a line break.
564
+ $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress stopped supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
565
+ } else if ( version_compare( phpversion(), $compatible_php_version['warning'], '<' ) ) {
566
+ // Translators: Placeholders add the PHP version, a link to the MonsterInsights blog and a line break.
567
+ $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress stopped supporting your PHP version in November, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
568
+ } else if ( version_compare( phpversion(), $compatible_php_version['recommended'], '<' ) ) {
569
+ // Translators: Placeholders add the PHP version, a link to the MonsterInsights blog and a line break.
570
+ $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress is working towards discontinuing support for your PHP version.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
571
+ }
572
+
573
+ if ( $message ) {
574
+ echo '<div class="error"><p>' . $message . '</p></div>';
575
+
576
+ return;
577
+ }
578
+
579
+ // WordPress 4.9
580
+ /* else if ( version_compare( $wp_version, '5.0', '<' ) ) {
581
+ $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' );
582
+ // Translators: Placeholders add the current WordPress version and links to the MonsterInsights blog
583
+ $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 5.0 in 2021.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
584
+ echo '<div class="error"><p>'. $message.'</p></div>';
585
+ return;
586
+ } */
587
+ // PHP 5.4/5.5
588
+ // else if ( version_compare( phpversion(), '5.6', '<' ) ) {
589
+ // $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' );
590
+ // $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress will stop supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
591
+ // echo '<div class="error"><p>'. $message.'</p></div>';
592
+ // return;
593
+ // }
594
+ // // WordPress 4.6 - 4.8
595
+ // else if ( version_compare( $wp_version, '4.9', '<' ) ) {
596
+ // $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' );
597
+ // $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 4.9 in October, 2019.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
598
+ // echo '<div class="error"><p>'. $message.'</p></div>';
599
+ // return;
600
+ // }
601
+ }
602
+
603
+ // 5. Optin setting not configured
604
+ // if ( ! is_network_admin() ) {
605
+ // if ( ! get_option( 'monsterinsights_tracking_notice' ) ) {
606
+ // if ( ! monsterinsights_get_option( 'anonymous_data', false ) ) {
607
+ // if ( ! monsterinsights_is_dev_url( network_site_url( '/' ) ) ) {
608
+ // if ( monsterinsights_is_pro_version() ) {
609
+ // monsterinsights_update_option( 'anonymous_data', 1 );
610
+ // return;
611
+ // }
612
+ // $optin_url = add_query_arg( 'mi_action', 'opt_into_tracking' );
613
+ // $optout_url = add_query_arg( 'mi_action', 'opt_out_of_tracking' );
614
+ // echo '<div class="updated"><p>';
615
+ // echo esc_html__( 'Allow MonsterInsights to track plugin usage? Opt-in to tracking and our newsletter to stay informed of the latest changes to MonsterInsights and help us ensure compatibility.', 'google-analytics-for-wordpress' );
616
+ // echo '&nbsp;<a href="' . esc_url( $optin_url ) . '" class="button-secondary">' . __( 'Allow', 'google-analytics-for-wordpress' ) . '</a>';
617
+ // echo '&nbsp;<a href="' . esc_url( $optout_url ) . '" class="button-secondary">' . __( 'Do not allow', 'google-analytics-for-wordpress' ) . '</a>';
618
+ // echo '</p></div>';
619
+ // return;
620
+ // } else {
621
+ // // is testing site
622
+ // update_option( 'monsterinsights_tracking_notice', '1' );
623
+ // }
624
+ // }
625
+ // }
626
+ // }
627
+
628
+ $notices = get_option( 'monsterinsights_notices' );
629
+ if ( ! is_array( $notices ) ) {
630
+ $notices = array();
631
+ }
632
+
633
+ // 6. Authenticate, not manual
634
+ $authed = MonsterInsights()->auth->is_authed() || MonsterInsights()->auth->is_network_authed();
635
+ $url = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' );
636
+ $ua_code = monsterinsights_get_ua_to_output();
637
+ // Translators: Placeholders add links to the settings panel.
638
+ $manual_text = sprintf( esc_html__( 'Important: You are currently using manual UA code output. We highly recommend %1$sauthenticating with MonsterInsights%2$s so that you can access our new reporting area and take advantage of new MonsterInsights features.', 'google-analytics-for-wordpress' ), '<a href="' . $url . '">', '</a>' );
639
+ $migrated = monsterinsights_get_option( 'gadwp_migrated', 0 );
640
+ if ( $migrated > 0 ) {
641
+ $url = admin_url( 'admin.php?page=monsterinsights-getting-started&monsterinsights-migration=1' );
642
+ // Translators: Placeholders add links to the settings panel.
643
+ $text = esc_html__( 'Click %1$shere%2$s to reauthenticate to be able to access reports. For more information why this is required, see our %3$sblog post%4$s.', 'google-analytics-for-wordpress' );
644
+ $manual_text = sprintf( $text, '<a href="' . $url . '">', '</a>', '<a href="' . monsterinsights_get_url( 'notice', 'manual-ua', 'https://www.exactmetrics.com/why-did-we-implement-the-new-google-analytics-authentication-flow-challenges-explained/' ) . '" target="_blank">', '</a>' );
645
+ }
646
+
647
+ if ( empty( $authed ) && ! isset( $notices['monsterinsights_auth_not_manual'] ) && ! empty( $ua_code ) ) {
648
+ echo '<div class="notice notice-info is-dismissible monsterinsights-notice" data-notice="monsterinsights_auth_not_manual">';
649
+ echo '<p>';
650
+ echo $manual_text;
651
+ echo '</p>';
652
+ echo '</div>';
653
+
654
+ return;
655
+ }
656
+
657
+ // 7. Automatic updates not configured
658
+ // if ( ! is_network_admin() ) {
659
+ // $updates = monsterinsights_get_option( 'automatic_updates', false );
660
+ // $url = admin_url( 'admin.php?page=monsterinsights_settings' );
661
+
662
+ // if ( empty( $updates) && ! isset( $notices['monsterinsights_automatic_updates' ] ) ) {
663
+ // echo '<div class="notice notice-info is-dismissible monsterinsights-notice" data-notice="monsterinsights_automatic_updates">';
664
+ // echo '<p>';
665
+ // echo sprintf( esc_html__( 'Important: Please %1$sconfigure the Automatic Updates Settings%2$s in MonsterInsights.', 'google-analytics-for-wordpress' ), '<a href="' . $url .'">', '</a>' );
666
+ // echo '</p>';
667
+ // echo '</div>';
668
+ // return;
669
+ // }
670
+ // }
671
+
672
+ // 8. WooUpsell
673
+ if ( ! monsterinsights_is_pro_version() && class_exists( 'WooCommerce' ) ) {
674
+ if ( ! isset( $notices['monsterinsights_woocommerce_tracking_available'] ) ) {
675
+ echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_woocommerce_tracking_available">';
676
+ echo '<div class="monsterinsights-wooedd-upsell-left">';
677
+ echo '<p><strong>';
678
+ echo esc_html( 'Enhanced Ecommerce Analytics for Your WooCommerce Store', 'google-analytics-for-wordpress' );
679
+ echo '</strong></p>';
680
+ echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-small" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
681
+ echo '<p>';
682
+ echo esc_html( 'MonsterInsights Pro gives you detailed stats and insights about your customers.', 'google-analytics-for-wordpress' );
683
+ echo '</p>';
684
+ echo '<p>';
685
+ echo esc_html( 'This helps you make data-driven decisions about your content, and marketing strategy so you can increase your website traffic, leads, and sales.', 'google-analytics-for-wordpress' );
686
+ echo '</p>';
687
+ echo '<p>';
688
+ echo esc_html( 'Pro customers also get Form Tracking, Custom Dimensions Tracking, UserID Tracking and much more.', 'google-analytics-for-wordpress' );
689
+ echo '</p>';
690
+ echo '<p>';
691
+ echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' );
692
+ echo '</p>';
693
+ // Translators: Placeholders add a link to the MonsterInsights website.
694
+ echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" target="_blank" href="' . monsterinsights_get_upgrade_link( 'admin-notices', 'woocommerce-upgrade' ) . '">', ' &raquo;</a>' );
695
+ echo '</p>';
696
+ echo '</div><div class="monsterinsights-wooedd-upsell-right">';
697
+ echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
698
+ echo '</div>';
699
+ echo '</div>';
700
+ echo '<style type="text/css">.monsterinsights-wooedd-upsell-left{width:50%;display:table-cell;float:left}.monsterinsights-wooedd-upsell-right{width:50%;display:table-cell;float:left}.monsterinsights-wooedd-upsell-image{width:100%;height:auto;padding:20px}.monsterinsights-wooedd-upsell-image-small{display:none}.monsterinsights-wooedd-upsell-row{display:table}.monsterinsights-wooedd-upsell-left p{margin:1em 0;font-size:16px}@media (max-width:900px){.monsterinsights-wooedd-upsell-left{width:100%}.monsterinsights-wooedd-upsell-right{display:none}.monsterinsights-wooedd-upsell-image-small{display:block}.monsterinsights-wooedd-upsell-image-large{display:none}}</style>';
701
+
702
+ return;
703
+ }
704
+ }
705
+
706
+ // 9. EDDUpsell
707
+ if ( ! monsterinsights_is_pro_version() && class_exists( 'Easy_Digital_Downloads' ) ) {
708
+ if ( ! isset( $notices['monsterinsights_edd_tracking_available'] ) ) {
709
+ echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_edd_tracking_available">';
710
+ echo '<div class="monsterinsights-wooedd-upsell-left">';
711
+ echo '<p><strong>';
712
+ echo esc_html( 'Enhanced Ecommerce Analytics for Your Easy Digital Downloads Store', 'google-analytics-for-wordpress' );
713
+ echo '</strong></p>';
714
+ echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-small" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
715
+ echo '<p>';
716
+ echo esc_html( 'MonsterInsights Pro gives you detailed stats and insights about your customers.', 'google-analytics-for-wordpress' );
717
+ echo '</p>';
718
+ echo '<p>';
719
+ echo esc_html( 'This helps you make data-driven decisions about your content, and marketing strategy so you can increase your website traffic, leads, and sales.', 'google-analytics-for-wordpress' );
720
+ echo '</p>';
721
+ echo '<p>';
722
+ echo esc_html( 'Pro customers also get Form Tracking, Custom Dimensions Tracking, UserID Tracking and much more.', 'google-analytics-for-wordpress' );
723
+ echo '</p>';
724
+ echo '<p>';
725
+ echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' );
726
+ echo '</p>';
727
+ echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" target="_blank" href="' . monsterinsights_get_upgrade_link( 'admin-notices', 'edd-upgrade' ) . '">', ' &raquo;</a>' );
728
+ echo '</p>';
729
+ echo '</div><div class="monsterinsights-wooedd-upsell-right">';
730
+ echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
731
+ echo '</div>';
732
+ echo '</div>';
733
+
734
+ return;
735
+ }
736
+ }
737
+
738
+ if ( isset( $notices['monsterinsights_cross_domains_extracted'] ) && false === $notices['monsterinsights_cross_domains_extracted'] ) {
739
+ $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' );
740
+ $page = $page . '#/advanced';
741
+ // Translators: Adds a link to the settings panel.
742
+ $message = sprintf( esc_html__( 'Warning: MonsterInsights found cross-domain settings in the custom code field and converted them to the new settings structure. %1$sPlease click here to review and remove the code no longer needed.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . esc_url( $page ) . '">', '</a>' );
743
+ echo '<div class="notice notice-success is-dismissible monsterinsights-notice" data-notice="monsterinsights_cross_domains_extracted"><p>' . $message . '</p></div>';
744
+
745
+ return;
746
+ }
747
+ }
748
+
749
+ add_action( 'admin_notices', 'monsterinsights_admin_setup_notices' );
750
+ add_action( 'network_admin_notices', 'monsterinsights_admin_setup_notices' );
751
+
752
+
753
+ // AM Notices
754
+ function monsterinsights_am_notice_optout( $super_admin ) {
755
+ if ( monsterinsights_get_option( 'hide_am_notices', false ) || monsterinsights_get_option( 'network_hide_am_notices', false ) ) {
756
+ return false;
757
+ }
758
+
759
+ return $super_admin;
760
+ }
761
+
762
+ add_filter( "am_notifications_display", 'monsterinsights_am_notice_optout', 10, 1 );
763
+
764
+ /**
765
+ * Inline critical css for the menu to prevent breaking the layout when our scripts get blocked by browsers.
766
+ */
767
+ function monsterinsights_admin_menu_inline_styles() {
768
+ ?>
769
+ <style type="text/css">
770
+ #toplevel_page_monsterinsights_reports .wp-menu-image img,
771
+ #toplevel_page_monsterinsights_settings .wp-menu-image img,
772
+ #toplevel_page_monsterinsights_network .wp-menu-image img {
773
+ width: 18px;
774
+ height: auto;
775
+ padding-top: 7px;
776
+ }
777
+ </style>
778
+ <?php
779
+ }
780
+
781
+ add_action( 'admin_head', 'monsterinsights_admin_menu_inline_styles', 300 );
782
+
783
+ /**
784
+ * Display notice in admin when measurement protocol is left blank
785
+ */
786
+ function monsterinsights_empty_measurement_protocol_token() {
787
+ if ( ! class_exists( 'MonsterInsights_eCommerce' ) && ! class_exists( 'MonsterInsights_Forms' ) ) {
788
+ return;
789
+ }
790
+
791
+ $page = is_network_admin()
792
+ ? network_admin_url( 'admin.php?page=monsterinsights_network' )
793
+ : admin_url( 'admin.php?page=monsterinsights_settings' );
794
+
795
+ $api_secret = is_network_admin()
796
+ ? MonsterInsights()->auth->get_network_measurement_protocol_secret()
797
+ : MonsterInsights()->auth->get_measurement_protocol_secret();
798
+
799
+ $current_code = monsterinsights_get_v4_id_to_output();
800
+
801
+ if ( empty( $current_code ) || ! empty( $api_secret ) ) {
802
+ return;
803
+ }
804
+
805
+ $message = sprintf(
806
+ esc_html__(
807
+ 'Your Measurement Protocol API Secret is currently left blank. To see more advanced analytics please enter a Measurement API Secret. %1$sLearn how to find your API Secret%2$s.',
808
+ 'google-analytics-for-wordpress'
809
+ ),
810
+ '<a target="_blank" href="' . monsterinsights_get_url( 'notice', 'empty-measurement-protocol-secret', 'https://www.monsterinsights.com/docs/how-to-create-your-measurement-protocol-api-secret-in-ga4/' ) . '">',
811
+ '</a>'
812
+ );
813
+ echo '<div class="error"><p>' . $message . '</p></div>';
814
+ }
815
+
816
+ add_action( 'admin_notices', 'monsterinsights_empty_measurement_protocol_token' );
817
+ add_action( 'network_admin_notices', 'monsterinsights_admin_setup_notices' );
includes/admin/ajax.php CHANGED
@@ -1,260 +1,263 @@
1
- <?php
2
- /**
3
- * Handles all admin ajax interactions for the MonsterInsights plugin.
4
- *
5
- * @since 6.0.0
6
- *
7
- * @package MonsterInsights
8
- * @subpackage Ajax
9
- * @author Chris Christoff
10
- */
11
-
12
- // Exit if accessed directly
13
- if ( ! defined( 'ABSPATH' ) ) {
14
- exit;
15
- }
16
-
17
- /**
18
- * Stores a user setting for the logged-in WordPress User
19
- *
20
- * @access public
21
- * @since 6.0.0
22
- */
23
- function monsterinsights_ajax_set_user_setting() {
24
-
25
- // Run a security check first.
26
- check_ajax_referer( 'monsterinsights-set-user-setting', 'nonce' );
27
-
28
- // Prepare variables.
29
- $name = stripslashes( $_POST['name'] );
30
- $value = stripslashes( $_POST['value'] );
31
-
32
- // Set user setting.
33
- set_user_setting( $name, $value );
34
-
35
- // Send back the response.
36
- wp_send_json_success();
37
- wp_die();
38
-
39
- }
40
- add_action( 'wp_ajax_monsterinsights_install_addon', 'monsterinsights_ajax_install_addon' );
41
-
42
- /**
43
- * Installs a MonsterInsights addon.
44
- *
45
- * @access public
46
- * @since 6.0.0
47
- */
48
- function monsterinsights_ajax_install_addon() {
49
-
50
- // Run a security check first.
51
- check_ajax_referer( 'monsterinsights-install', 'nonce' );
52
-
53
- if ( ! monsterinsights_can_install_plugins() ) {
54
- wp_send_json( array(
55
- 'error' => esc_html__( 'You are not allowed to install plugins', 'google-analytics-for-wordpress' ),
56
- ) );
57
- }
58
-
59
- // Install the addon.
60
- if ( isset( $_POST['plugin'] ) ) {
61
- $download_url = $_POST['plugin'];
62
- global $hook_suffix;
63
-
64
- // Set the current screen to avoid undefined notices.
65
- set_current_screen();
66
-
67
- // Prepare variables.
68
- $method = '';
69
- $url = add_query_arg(
70
- array(
71
- 'page' => 'monsterinsights-settings'
72
- ),
73
- admin_url( 'admin.php' )
74
- );
75
- $url = esc_url( $url );
76
-
77
- // Start output bufferring to catch the filesystem form if credentials are needed.
78
- ob_start();
79
- if ( false === ( $creds = request_filesystem_credentials( $url, $method, false, false, null ) ) ) {
80
- $form = ob_get_clean();
81
- echo json_encode( array( 'form' => $form ) );
82
- wp_die();
83
- }
84
-
85
- // If we are not authenticated, make it happen now.
86
- if ( ! WP_Filesystem( $creds ) ) {
87
- ob_start();
88
- request_filesystem_credentials( $url, $method, true, false, null );
89
- $form = ob_get_clean();
90
- echo json_encode( array( 'form' => $form ) );
91
- wp_die();
92
- }
93
-
94
- // We do not need any extra credentials if we have gotten this far, so let's install the plugin.
95
- monsterinsights_require_upgrader( false );
96
-
97
- // Create the plugin upgrader with our custom skin.
98
- $installer = new Plugin_Upgrader( $skin = new MonsterInsights_Skin() );
99
- $installer->install( $download_url );
100
-
101
- // Flush the cache and return the newly installed plugin basename.
102
- wp_cache_flush();
103
- if ( $installer->plugin_info() ) {
104
- $plugin_basename = $installer->plugin_info();
105
- echo json_encode( array( 'plugin' => $plugin_basename ) );
106
- wp_die();
107
- }
108
- }
109
-
110
- // Send back a response.
111
- echo json_encode( true );
112
- wp_die();
113
-
114
- }
115
-
116
- add_action( 'wp_ajax_monsterinsights_activate_addon', 'monsterinsights_ajax_activate_addon' );
117
- /**
118
- * Activates a MonsterInsights addon.
119
- *
120
- * @access public
121
- * @since 6.0.0
122
- */
123
- function monsterinsights_ajax_activate_addon() {
124
-
125
- // Run a security check first.
126
- check_ajax_referer( 'monsterinsights-activate', 'nonce' );
127
-
128
- if ( ! current_user_can( 'activate_plugins' ) ) {
129
- wp_send_json( array(
130
- 'error' => esc_html__( 'You are not allowed to activate plugins', 'google-analytics-for-wordpress' ),
131
- ) );
132
- }
133
-
134
- // Activate the addon.
135
- if ( isset( $_POST['plugin'] ) ) {
136
- if ( isset( $_POST['isnetwork'] ) && $_POST['isnetwork'] ) {
137
- $activate = activate_plugin( $_POST['plugin'], NULL, true );
138
- } else {
139
- $activate = activate_plugin( $_POST['plugin'] );
140
- }
141
-
142
- if ( is_wp_error( $activate ) ) {
143
- echo json_encode( array( 'error' => $activate->get_error_message() ) );
144
- wp_die();
145
- }
146
-
147
- do_action( 'monsterinsights_after_ajax_activate_addon', sanitize_text_field( $_POST['plugin'] ) );
148
- }
149
-
150
- echo json_encode( true );
151
- wp_die();
152
-
153
- }
154
-
155
- add_action( 'wp_ajax_monsterinsights_deactivate_addon', 'monsterinsights_ajax_deactivate_addon' );
156
- /**
157
- * Deactivates a MonsterInsights addon.
158
- *
159
- * @access public
160
- * @since 6.0.0
161
- */
162
- function monsterinsights_ajax_deactivate_addon() {
163
-
164
- // Run a security check first.
165
- check_ajax_referer( 'monsterinsights-deactivate', 'nonce' );
166
-
167
- if ( ! current_user_can( 'deactivate_plugins' ) ) {
168
- wp_send_json( array(
169
- 'error' => esc_html__( 'You are not allowed to deactivate plugins', 'google-analytics-for-wordpress' ),
170
- ) );
171
- }
172
-
173
- // Deactivate the addon.
174
- if ( isset( $_POST['plugin'] ) ) {
175
- if ( isset( $_POST['isnetwork'] ) && $_POST['isnetwork'] ) {
176
- $deactivate = deactivate_plugins( $_POST['plugin'], false, true );
177
- } else {
178
- $deactivate = deactivate_plugins( $_POST['plugin'] );
179
- }
180
- }
181
-
182
- echo json_encode( true );
183
- wp_die();
184
- }
185
-
186
- /**
187
- * Called whenever a notice is dismissed in MonsterInsights or its Addons.
188
- *
189
- * Updates a key's value in the options table to mark the notice as dismissed,
190
- * preventing it from displaying again
191
- *
192
- * @access public
193
- * @since 6.0.0
194
- */
195
- function monsterinsights_ajax_dismiss_notice() {
196
-
197
- // Run a security check first.
198
- check_ajax_referer( 'monsterinsights-dismiss-notice', 'nonce' );
199
-
200
- // Deactivate the notice
201
- if ( isset( $_POST['notice'] ) ) {
202
- // Init the notice class and mark notice as deactivated
203
- MonsterInsights()->notices->dismiss( $_POST['notice'] );
204
-
205
- // Return true
206
- echo json_encode( true );
207
- wp_die();
208
- }
209
-
210
- // If here, an error occurred
211
- echo json_encode( false );
212
- wp_die();
213
-
214
- }
215
- add_action( 'wp_ajax_monsterinsights_ajax_dismiss_notice', 'monsterinsights_ajax_dismiss_notice' );
216
-
217
- /**
218
- * Dismiss SEMRush CTA
219
- *
220
- * @access public
221
- * @since 7.12.3
222
- */
223
- function monsterinsights_ajax_dismiss_semrush_cta() {
224
- check_ajax_referer( 'mi-admin-nonce', 'nonce' );
225
-
226
- if ( ! current_user_can( 'monsterinsights_save_settings' ) ) {
227
- return;
228
- }
229
-
230
- // Deactivate the notice
231
- if ( update_option( 'monsterinsights_dismiss_semrush_cta', 'yes' ) ) {
232
- // Return true
233
- wp_send_json( array(
234
- 'dismissed' => 'yes',
235
- ) );
236
- wp_die();
237
- }
238
-
239
- // If here, an error occurred
240
- wp_send_json( array(
241
- 'dismissed' => 'no',
242
- ) );
243
- wp_die();
244
- }
245
- add_action( 'wp_ajax_monsterinsights_vue_dismiss_semrush_cta', 'monsterinsights_ajax_dismiss_semrush_cta' );
246
-
247
- /**
248
- * Get the sem rush cta dismiss status value
249
- */
250
- function monsterinsights_get_sem_rush_cta_status() {
251
- check_ajax_referer( 'mi-admin-nonce', 'nonce' );
252
-
253
- $dismissed_cta = get_option( 'monsterinsights_dismiss_semrush_cta', 'no' );
254
-
255
- wp_send_json( array(
256
- 'dismissed' => $dismissed_cta,
257
- ) );
258
- }
259
-
260
- add_action( 'wp_ajax_monsterinsights_get_sem_rush_cta_status', 'monsterinsights_get_sem_rush_cta_status' );
 
 
 
1
+ <?php
2
+ /**
3
+ * Handles all admin ajax interactions for the MonsterInsights plugin.
4
+ *
5
+ * @since 6.0.0
6
+ *
7
+ * @package MonsterInsights
8
+ * @subpackage Ajax
9
+ * @author Chris Christoff
10
+ */
11
+
12
+ // Exit if accessed directly
13
+ if ( ! defined( 'ABSPATH' ) ) {
14
+ exit;
15
+ }
16
+
17
+ /**
18
+ * Stores a user setting for the logged-in WordPress User
19
+ *
20
+ * @access public
21
+ * @since 6.0.0
22
+ */
23
+ function monsterinsights_ajax_set_user_setting() {
24
+
25
+ // Run a security check first.
26
+ check_ajax_referer( 'monsterinsights-set-user-setting', 'nonce' );
27
+
28
+ // Prepare variables.
29
+ $name = stripslashes( $_POST['name'] );
30
+ $value = stripslashes( $_POST['value'] );
31
+
32
+ // Set user setting.
33
+ set_user_setting( $name, $value );
34
+
35
+ // Send back the response.
36
+ wp_send_json_success();
37
+ wp_die();
38
+
39
+ }
40
+
41
+ add_action( 'wp_ajax_monsterinsights_install_addon', 'monsterinsights_ajax_install_addon' );
42
+
43
+ /**
44
+ * Installs a MonsterInsights addon.
45
+ *
46
+ * @access public
47
+ * @since 6.0.0
48
+ */
49
+ function monsterinsights_ajax_install_addon() {
50
+
51
+ // Run a security check first.
52
+ check_ajax_referer( 'monsterinsights-install', 'nonce' );
53
+
54
+ if ( ! monsterinsights_can_install_plugins() ) {
55
+ wp_send_json( array(
56
+ 'error' => esc_html__( 'You are not allowed to install plugins', 'google-analytics-for-wordpress' ),
57
+ ) );
58
+ }
59
+
60
+ // Install the addon.
61
+ if ( isset( $_POST['plugin'] ) ) {
62
+ $download_url = $_POST['plugin'];
63
+ global $hook_suffix;
64
+
65
+ // Set the current screen to avoid undefined notices.
66
+ set_current_screen();
67
+
68
+ // Prepare variables.
69
+ $method = '';
70
+ $url = add_query_arg(
71
+ array(
72
+ 'page' => 'monsterinsights-settings'
73
+ ),
74
+ admin_url( 'admin.php' )
75
+ );
76
+ $url = esc_url( $url );
77
+
78
+ // Start output bufferring to catch the filesystem form if credentials are needed.
79
+ ob_start();
80
+ if ( false === ( $creds = request_filesystem_credentials( $url, $method, false, false, null ) ) ) {
81
+ $form = ob_get_clean();
82
+ echo json_encode( array( 'form' => $form ) );
83
+ wp_die();
84
+ }
85
+
86
+ // If we are not authenticated, make it happen now.
87
+ if ( ! WP_Filesystem( $creds ) ) {
88
+ ob_start();
89
+ request_filesystem_credentials( $url, $method, true, false, null );
90
+ $form = ob_get_clean();
91
+ echo json_encode( array( 'form' => $form ) );
92
+ wp_die();
93
+ }
94
+
95
+ // We do not need any extra credentials if we have gotten this far, so let's install the plugin.
96
+ monsterinsights_require_upgrader( false );
97
+
98
+ // Create the plugin upgrader with our custom skin.
99
+ $installer = new Plugin_Upgrader( $skin = new MonsterInsights_Skin() );
100
+ $installer->install( $download_url );
101
+
102
+ // Flush the cache and return the newly installed plugin basename.
103
+ wp_cache_flush();
104
+ if ( $installer->plugin_info() ) {
105
+ $plugin_basename = $installer->plugin_info();
106
+ echo json_encode( array( 'plugin' => $plugin_basename ) );
107
+ wp_die();
108
+ }
109
+ }
110
+
111
+ // Send back a response.
112
+ echo json_encode( true );
113
+ wp_die();
114
+
115
+ }
116
+
117
+ add_action( 'wp_ajax_monsterinsights_activate_addon', 'monsterinsights_ajax_activate_addon' );
118
+ /**
119
+ * Activates a MonsterInsights addon.
120
+ *
121
+ * @access public
122
+ * @since 6.0.0
123
+ */
124
+ function monsterinsights_ajax_activate_addon() {
125
+
126
+ // Run a security check first.
127
+ check_ajax_referer( 'monsterinsights-activate', 'nonce' );
128
+
129
+ if ( ! current_user_can( 'activate_plugins' ) ) {
130
+ wp_send_json( array(
131
+ 'error' => esc_html__( 'You are not allowed to activate plugins', 'google-analytics-for-wordpress' ),
132
+ ) );
133
+ }
134
+
135
+ // Activate the addon.
136
+ if ( isset( $_POST['plugin'] ) ) {
137
+ if ( isset( $_POST['isnetwork'] ) && $_POST['isnetwork'] ) {
138
+ $activate = activate_plugin( $_POST['plugin'], null, true );
139
+ } else {
140
+ $activate = activate_plugin( $_POST['plugin'] );
141
+ }
142
+
143
+ if ( is_wp_error( $activate ) ) {
144
+ echo json_encode( array( 'error' => $activate->get_error_message() ) );
145
+ wp_die();
146
+ }
147
+
148
+ do_action( 'monsterinsights_after_ajax_activate_addon', sanitize_text_field( $_POST['plugin'] ) );
149
+ }
150
+
151
+ echo json_encode( true );
152
+ wp_die();
153
+
154
+ }
155
+
156
+ add_action( 'wp_ajax_monsterinsights_deactivate_addon', 'monsterinsights_ajax_deactivate_addon' );
157
+ /**
158
+ * Deactivates a MonsterInsights addon.
159
+ *
160
+ * @access public
161
+ * @since 6.0.0
162
+ */
163
+ function monsterinsights_ajax_deactivate_addon() {
164
+
165
+ // Run a security check first.
166
+ check_ajax_referer( 'monsterinsights-deactivate', 'nonce' );
167
+
168
+ if ( ! current_user_can( 'deactivate_plugins' ) ) {
169
+ wp_send_json( array(
170
+ 'error' => esc_html__( 'You are not allowed to deactivate plugins', 'google-analytics-for-wordpress' ),
171
+ ) );
172
+ }
173
+
174
+ // Deactivate the addon.
175
+ if ( isset( $_POST['plugin'] ) ) {
176
+ if ( isset( $_POST['isnetwork'] ) && $_POST['isnetwork'] ) {
177
+ $deactivate = deactivate_plugins( $_POST['plugin'], false, true );
178
+ } else {
179
+ $deactivate = deactivate_plugins( $_POST['plugin'] );
180
+ }
181
+ }
182
+
183
+ echo json_encode( true );
184
+ wp_die();
185
+ }
186
+
187
+ /**
188
+ * Called whenever a notice is dismissed in MonsterInsights or its Addons.
189
+ *
190
+ * Updates a key's value in the options table to mark the notice as dismissed,
191
+ * preventing it from displaying again
192
+ *
193
+ * @access public
194
+ * @since 6.0.0
195
+ */
196
+ function monsterinsights_ajax_dismiss_notice() {
197
+
198
+ // Run a security check first.
199
+ check_ajax_referer( 'monsterinsights-dismiss-notice', 'nonce' );
200
+
201
+ // Deactivate the notice
202
+ if ( isset( $_POST['notice'] ) ) {
203
+ // Init the notice class and mark notice as deactivated
204
+ MonsterInsights()->notices->dismiss( $_POST['notice'] );
205
+
206
+ // Return true
207
+ echo json_encode( true );
208
+ wp_die();
209
+ }
210
+
211
+ // If here, an error occurred
212
+ echo json_encode( false );
213
+ wp_die();
214
+
215
+ }
216
+
217
+ add_action( 'wp_ajax_monsterinsights_ajax_dismiss_notice', 'monsterinsights_ajax_dismiss_notice' );
218
+
219
+ /**
220
+ * Dismiss SEMRush CTA
221
+ *
222
+ * @access public
223
+ * @since 7.12.3
224
+ */
225
+ function monsterinsights_ajax_dismiss_semrush_cta() {
226
+ check_ajax_referer( 'mi-admin-nonce', 'nonce' );
227
+
228
+ if ( ! current_user_can( 'monsterinsights_save_settings' ) ) {
229
+ return;
230
+ }
231
+
232
+ // Deactivate the notice
233
+ if ( update_option( 'monsterinsights_dismiss_semrush_cta', 'yes' ) ) {
234
+ // Return true
235
+ wp_send_json( array(
236
+ 'dismissed' => 'yes',
237
+ ) );
238
+ wp_die();
239
+ }
240
+
241
+ // If here, an error occurred
242
+ wp_send_json( array(
243
+ 'dismissed' => 'no',
244
+ ) );
245
+ wp_die();
246
+ }
247
+
248
+ add_action( 'wp_ajax_monsterinsights_vue_dismiss_semrush_cta', 'monsterinsights_ajax_dismiss_semrush_cta' );
249
+
250
+ /**
251
+ * Get the sem rush cta dismiss status value
252
+ */
253
+ function monsterinsights_get_sem_rush_cta_status() {
254
+ check_ajax_referer( 'mi-admin-nonce', 'nonce' );
255
+
256
+ $dismissed_cta = get_option( 'monsterinsights_dismiss_semrush_cta', 'no' );
257
+
258
+ wp_send_json( array(
259
+ 'dismissed' => $dismissed_cta,
260
+ ) );
261
+ }
262
+
263
+ add_action( 'wp_ajax_monsterinsights_get_sem_rush_cta_status', 'monsterinsights_get_sem_rush_cta_status' );
includes/admin/api-auth.php CHANGED
@@ -28,63 +28,71 @@ final class MonsterInsights_API_Auth {
28
  public function __construct() {
29
 
30
  // Authentication Actions
31
- add_action( 'wp_ajax_monsterinsights_maybe_authenticate', array( $this, 'maybe_authenticate' ) );
32
- add_action( 'wp_ajax_monsterinsights_maybe_reauthenticate', array( $this, 'maybe_reauthenticate' ) );
33
- add_action( 'wp_ajax_monsterinsights_maybe_verify', array( $this, 'maybe_verify' ) );
34
- add_action( 'wp_ajax_monsterinsights_maybe_delete', array( $this, 'maybe_delete' ) );
35
 
36
- add_action( 'admin_init', array( $this, 'authenticate_listener' ) );
37
- add_action( 'admin_init', array( $this, 'reauthenticate_listener' ) );
38
 
39
- add_action( 'wp_ajax_nopriv_monsterinsights_is_installed', array( $this, 'is_installed' ) );
40
- add_action( 'wp_ajax_nopriv_monsterinsights_rauthenticate', array( $this, 'rauthenticate' ) );
41
 
42
  add_filter( 'monsterinsights_maybe_authenticate_siteurl', array( $this, 'before_redirect' ) );
43
 
44
  add_action( 'wp_ajax_nopriv_monsterinsights_push_mp_token', array( $this, 'handle_relay_mp_token_push' ) );
45
  }
46
 
47
- public function get_tt(){
48
  $tt = is_network_admin() ? get_site_option( 'monsterinsights_network_tt', '' ) : get_option( 'monsterinsights_site_tt', '' );
49
  if ( empty( $tt ) ) {
50
  // if TT is empty, generate a new one, save it and then return it
51
  $tt = $this->generate_tt();
52
  $this->is_network_admin() ? update_site_option( 'monsterinsights_network_tt', $tt ) : update_option( 'monsterinsights_site_tt', $tt );
53
  }
 
54
  return $tt;
55
  }
56
 
57
- public function rotate_tt(){
58
  $tt = $this->generate_tt();
59
  is_network_admin() ? update_site_option( 'monsterinsights_network_tt', $tt ) : update_option( 'monsterinsights_site_tt', $tt );
60
  }
61
 
62
- public function generate_tt(){
63
  return hash( 'sha512', wp_generate_password( 128, true, true ) . AUTH_SALT . uniqid( "", true ) );
64
  }
65
 
66
  public function validate_tt( $passed_tt = '' ) {
67
  $tt = $this->get_tt();
 
68
  return hash_equals( $tt, $passed_tt );
69
  }
70
 
71
  public function is_installed() {
72
  wp_send_json_success(
73
  array(
74
- 'version' => MONSTERINSIGHTS_VERSION,
75
- 'pro' => monsterinsights_is_pro_version(),
76
  )
77
  );
78
  }
79
 
80
- public function maybe_authenticate(){
81
 
82
  // Check nonce
83
  check_ajax_referer( 'mi-admin-nonce', 'nonce' );
84
 
85
  // current user can authenticate
86
  if ( ! current_user_can( 'monsterinsights_save_settings' ) ) {
87
- wp_send_json_error( array( 'message' => __( "You don't have permission to authenticate MonsterInsights.", 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
88
  }
89
 
90
  if ( ! empty( $_REQUEST['isnetwork'] ) && $_REQUEST['isnetwork'] ) {
@@ -95,15 +103,27 @@ final class MonsterInsights_API_Auth {
95
  if ( monsterinsights_is_pro_version() ) {
96
  $valid = is_network_admin() ? MonsterInsights()->license->is_network_licensed() : MonsterInsights()->license->is_site_licensed();
97
  if ( ! $valid ) {
98
- wp_send_json_error( array( 'message' => __( "Cannot authenticate. Please enter a valid, active license key for MonsterInsights Pro into the settings.", 'google-analytics-for-wordpress' ) ) );
99
  }
100
  }
101
 
102
  // we do not have a current auth
103
  if ( ! $this->is_network_admin() && MonsterInsights()->auth->is_authed() ) {
104
- wp_send_json_error( array( 'message' => __( "Cannot authenticate. Please re-authenticate.", 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
105
  } else if ( $this->is_network_admin() && MonsterInsights()->auth->is_network_authed() ) {
106
- wp_send_json_error( array( 'message' => __( "Cannot network authenticate. Please re-authenticate on the network settings panel.", 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
107
  }
108
 
109
  $sitei = $this->get_sitei();
@@ -118,7 +138,7 @@ final class MonsterInsights_API_Auth {
118
  'siteurl' => is_network_admin() ? network_admin_url() : site_url(),
119
  'return' => is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ),
120
  'testurl' => 'https://' . monsterinsights_get_api_url() . 'test/',
121
- ), $this->get_route( 'https://' . monsterinsights_get_api_url() . 'auth/new/{type}' ) );
122
 
123
  if ( monsterinsights_is_pro_version() ) {
124
  $key = is_network_admin() ? MonsterInsights()->license->get_network_license_key() : MonsterInsights()->license->get_site_license_key();
@@ -134,8 +154,8 @@ final class MonsterInsights_API_Auth {
134
  array(
135
  'error' => 'authenticate_missing_arg',
136
  'message' => 'Authenticate missing parameter: ' . $arg,
137
- 'version' => MONSTERINSIGHTS_VERSION,
138
- 'pro' => monsterinsights_is_pro_version(),
139
  )
140
  );
141
  }
@@ -149,7 +169,7 @@ final class MonsterInsights_API_Auth {
149
  }
150
 
151
  foreach ( $reqd_args as $arg ) {
152
- if ( empty( $_REQUEST[$arg] ) ) {
153
  $this->send_missing_args_error( $arg );
154
  }
155
  }
@@ -163,8 +183,8 @@ final class MonsterInsights_API_Auth {
163
  array(
164
  'error' => 'authenticate_invalid_tt',
165
  'message' => 'Invalid TT sent',
166
- 'version' => MONSTERINSIGHTS_VERSION,
167
- 'pro' => monsterinsights_is_pro_version(),
168
  )
169
  );
170
  }
@@ -173,7 +193,7 @@ final class MonsterInsights_API_Auth {
173
  wp_send_json_success();
174
  }
175
 
176
- public function authenticate_listener(){
177
  // Make sure it's for us
178
  if ( empty( $_REQUEST['mi-oauth-action'] ) || $_REQUEST['mi-oauth-action'] !== 'auth' ) {
179
  return;
@@ -191,22 +211,22 @@ final class MonsterInsights_API_Auth {
191
 
192
  // Make sure has required params
193
  if (
194
- empty( $_REQUEST['key'] ) ||
195
- empty( $_REQUEST['token'] ) ||
196
  empty( $_REQUEST['miview'] ) ||
197
- empty( $_REQUEST['a'] ) ||
198
- empty( $_REQUEST['w'] ) ||
199
- empty( $_REQUEST['p'] ) ||
200
  ( empty( $_REQUEST['ua'] ) && empty( $_REQUEST['v4'] ) )
201
  ) {
202
  return;
203
  }
204
 
205
  if ( ! empty( $_REQUEST['ua'] ) ) {
206
- $code_key = 'ua';
207
  $code_value = monsterinsights_is_valid_ua( $_REQUEST['ua'] );
208
  } else if ( ! empty( $_REQUEST['v4'] ) ) {
209
- $code_key = 'v4';
210
  $code_value = monsterinsights_is_valid_v4_id( $_REQUEST['v4'] );
211
  }
212
 
@@ -244,24 +264,32 @@ final class MonsterInsights_API_Auth {
244
  $where = $this->is_network_admin() ? 'network' : 'site';
245
  MonsterInsights()->reporting->delete_aggregate_data( $where );
246
 
247
- $url = $this->is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ) ;
248
  $url = add_query_arg( array(
249
- 'mi_action' => 'auth',
250
- 'success' => 'true',
251
- ), $url );
252
  $url = apply_filters( 'monsterinsights_auth_success_redirect_url', $url );
253
  wp_safe_redirect( $url );
254
  exit;
255
  }
256
 
257
- public function maybe_reauthenticate(){
258
 
259
  // Check nonce
260
  check_ajax_referer( 'mi-admin-nonce', 'nonce' );
261
 
 
 
262
  // current user can authenticate
263
  if ( ! current_user_can( 'monsterinsights_save_settings' ) ) {
264
- wp_send_json_error( array( 'message' => __( "You don't have permission to re-authenticate MonsterInsights.", 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
265
  }
266
 
267
  if ( ! empty( $_REQUEST['isnetwork'] ) && $_REQUEST['isnetwork'] ) {
@@ -272,15 +300,31 @@ final class MonsterInsights_API_Auth {
272
  if ( monsterinsights_is_pro_version() ) {
273
  $valid = is_network_admin() ? MonsterInsights()->license->is_network_licensed() : MonsterInsights()->license->is_site_licensed();
274
  if ( monsterinsights_is_pro_version() && ! $valid ) {
275
- wp_send_json_error( array( 'message' => __( "Cannot re-authenticate. Please enter a valid, active license key for MonsterInsights Pro into the settings.", 'google-analytics-for-wordpress' ) ) );
276
  }
277
  }
278
 
279
  // we do have a current auth
280
  if ( ! $this->is_network_admin() && ! MonsterInsights()->auth->is_authed() ) {
281
- wp_send_json_error( array( 'message' => __( "Cannot re-authenticate. Please authenticate.", 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
 
 
282
  } else if ( $this->is_network_admin() && ! MonsterInsights()->auth->is_network_authed() ) {
283
- wp_send_json_error( array( 'message' => __( "Cannot re-authenticate the network. Please authenticate on the network settings panel.", 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
 
 
284
  }
285
 
286
  $siteurl = add_query_arg( array(
@@ -294,7 +338,7 @@ final class MonsterInsights_API_Auth {
294
  'token' => is_network_admin() ? MonsterInsights()->auth->get_network_token() : MonsterInsights()->auth->get_token(),
295
  'return' => is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ),
296
  'testurl' => 'https://' . monsterinsights_get_api_url() . 'test/',
297
- ), $this->get_route( 'https://' . monsterinsights_get_api_url() . 'auth/reauth/{type}' ) );
298
 
299
  if ( monsterinsights_is_pro_version() ) {
300
  $key = is_network_admin() ? MonsterInsights()->license->get_network_license_key() : MonsterInsights()->license->get_site_license_key();
@@ -306,7 +350,7 @@ final class MonsterInsights_API_Auth {
306
  wp_send_json_success( array( 'redirect' => $siteurl ) );
307
  }
308
 
309
- public function reauthenticate_listener(){
310
  // Make sure it's for us
311
  if ( empty( $_REQUEST['mi-oauth-action'] ) || $_REQUEST['mi-oauth-action'] !== 'reauth' ) {
312
  return;
@@ -334,10 +378,10 @@ final class MonsterInsights_API_Auth {
334
  }
335
 
336
  if ( ! empty( $_REQUEST['ua'] ) ) {
337
- $code_key = 'ua';
338
  $code_value = monsterinsights_is_valid_ua( $_REQUEST['ua'] );
339
  } else if ( ! empty( $_REQUEST['v4'] ) ) {
340
- $code_key = 'v4';
341
  $code_value = monsterinsights_is_valid_v4_id( $_REQUEST['v4'] );
342
  }
343
 
@@ -352,16 +396,16 @@ final class MonsterInsights_API_Auth {
352
  }
353
 
354
  $profile = array(
355
- 'key' => $existing['key'],
356
- 'token' => $existing['token'],
357
- 'viewname' => sanitize_text_field( $_REQUEST['miview'] ),
358
- 'a' => sanitize_text_field( $_REQUEST['a'] ),
359
- 'w' => sanitize_text_field( $_REQUEST['w'] ),
360
- 'p' => sanitize_text_field( $_REQUEST['p'] ),
361
- 'ua' => $existing['ua'],
362
- 'v4' => $existing['v4'],
363
- 'siteurl' => site_url(),
364
- 'neturl' => network_admin_url(),
365
  'connectedtype' => $code_key,
366
  );
367
 
@@ -378,25 +422,31 @@ final class MonsterInsights_API_Auth {
378
  $where = $this->is_network_admin() ? 'network' : 'site';
379
  MonsterInsights()->reporting->delete_aggregate_data( $where );
380
 
381
- $url = $this->is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ) ;
382
  $url = add_query_arg( array(
383
- 'mi_action' => 'reauth',
384
- 'success' => 'true',
385
- ), $url );
386
  $url = apply_filters( 'monsterinsights_reauth_success_redirect_url', $url );
387
 
388
  wp_safe_redirect( $url );
389
  exit;
390
  }
391
 
392
- public function maybe_verify(){
393
 
394
  // Check nonce
395
  check_ajax_referer( 'mi-admin-nonce', 'nonce' );
396
 
397
  // current user can verify
398
  if ( ! current_user_can( 'monsterinsights_save_settings' ) ) {
399
- wp_send_json_error( array( 'message' => __( "You don't have permission to verify MonsterInsights.", 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
400
  }
401
 
402
  if ( ! empty( $_REQUEST['isnetwork'] ) && $_REQUEST['isnetwork'] ) {
@@ -405,36 +455,73 @@ final class MonsterInsights_API_Auth {
405
 
406
  // we have an auth to verify
407
  if ( $this->is_network_admin() && ! MonsterInsights()->auth->is_network_authed() ) {
408
- wp_send_json_error( array( 'message' => __( "Cannot verify. Please authenticate.", 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
409
  } else if ( ! $this->is_network_admin() && ! MonsterInsights()->auth->is_authed() ) {
410
- wp_send_json_error( array( 'message' => __( "Cannot verify. Please authenticate.", 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
411
  }
412
 
413
  if ( monsterinsights_is_pro_version() ) {
414
  $valid = is_network_admin() ? MonsterInsights()->license->is_network_licensed() : MonsterInsights()->license->is_site_licensed();
415
  if ( ! $valid ) {
416
- wp_send_json_error( array( 'message' => __( "Cannot verify. Please enter a valid, active license key for MonsterInsights Pro into the settings.", 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
417
  }
418
  }
419
 
420
  $worked = $this->verify_auth();
421
- if ( $worked && ! is_wp_error( $worked ) ) {
422
  wp_send_json_success( array( 'message' => __( "Successfully verified.", 'google-analytics-for-wordpress' ) ) );
423
  } else {
424
- wp_send_json_error( array( 'message' => __( "Could not verify.", 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
425
  }
426
  }
427
 
428
- public function verify_auth( $credentials = array() ){
429
  $creds = ! empty( $credentials ) ? $credentials : ( $this->is_network_admin() ? MonsterInsights()->auth->get_network_analytics_profile( true ) : MonsterInsights()->auth->get_analytics_profile( true ) );
430
 
431
  if ( empty( $creds['key'] ) ) {
432
- return new WP_Error( 'validation-error', sprintf( __( 'Verify auth key not passed', 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
 
433
  }
434
 
435
  $network = ! empty( $_REQUEST['network'] ) ? $_REQUEST['network'] === 'network' : $this->is_network_admin();
436
- $api = new MonsterInsights_API_Request( $this->get_route( 'auth/verify/{type}/' ), array( 'network' => $network, 'tt' => $this->get_tt(), 'key' => $creds['key'], 'token' => $creds['token'], 'testurl' => 'https://' . monsterinsights_get_api_url() . 'test/' ) );
437
- $ret = $api->request();
 
 
 
 
 
 
438
 
439
  $this->rotate_tt();
440
  if ( is_wp_error( $ret ) ) {
@@ -444,14 +531,22 @@ final class MonsterInsights_API_Auth {
444
  }
445
  }
446
 
447
- public function maybe_delete(){
448
 
449
  // Check nonce
450
  check_ajax_referer( 'mi-admin-nonce', 'nonce' );
451
 
 
 
452
  // current user can delete
453
  if ( ! current_user_can( 'monsterinsights_save_settings' ) ) {
454
- wp_send_json_error( array( 'message' => __( "You don't have permission to deauthenticate MonsterInsights.", 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
455
  }
456
 
457
  if ( ! empty( $_REQUEST['isnetwork'] ) && $_REQUEST['isnetwork'] ) {
@@ -460,33 +555,63 @@ final class MonsterInsights_API_Auth {
460
 
461
  // we have an auth to delete
462
  if ( $this->is_network_admin() && ! MonsterInsights()->auth->is_network_authed() ) {
463
- wp_send_json_error( array( 'message' => __( "Cannot deauthenticate. You are not currently authed.", 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
 
 
464
  } else if ( ! $this->is_network_admin() && ! MonsterInsights()->auth->is_authed() ) {
465
- wp_send_json_error( array( 'message' => __( "Cannot deauthenticate. You are not currently authed.", 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
 
 
466
  }
467
 
468
  if ( monsterinsights_is_pro_version() ) {
469
  $valid = is_network_admin() ? MonsterInsights()->license->is_network_licensed() : MonsterInsights()->license->is_site_licensed();
470
  if ( ! $valid ) {
471
- wp_send_json_error( array( 'message' => __( "Cannot deauthenticate. Please enter a valid, active license key for MonsterInsights Pro into the settings.", 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
 
 
472
  }
473
  }
474
 
475
  $force = ! empty( $_REQUEST['forcedelete'] ) && $_REQUEST['forcedelete'] === 'true';
476
 
477
  $worked = $this->delete_auth( $force );
478
- if ( $worked && ! is_wp_error( $worked ) ) {
479
  wp_send_json_success( array( 'message' => __( "Successfully deauthenticated.", 'google-analytics-for-wordpress' ) ) );
480
  } else {
481
  if ( $force ) {
482
  wp_send_json_success( array( 'message' => __( "Successfully force deauthenticated.", 'google-analytics-for-wordpress' ) ) );
483
  } else {
484
- wp_send_json_error( array( 'message' => __( "Could not deauthenticate.", 'google-analytics-for-wordpress' ) ) );
 
 
 
 
 
 
485
  }
486
  }
487
  }
488
 
489
- public function delete_auth( $force = false ){
490
  if ( $this->is_network_admin() && ! MonsterInsights()->auth->is_network_authed() ) {
491
  return false;
492
  } else if ( ! $this->is_network_admin() && ! MonsterInsights()->auth->is_authed() ) {
@@ -502,20 +627,28 @@ final class MonsterInsights_API_Auth {
502
  // If we have a new siteurl enabled option and the profile site doesn't match the current site, deactivate anyways
503
  if ( is_network_admin() ) {
504
  $siteurl = network_admin_url();
505
- if ( ! empty( $creds['neturl' ] ) && $creds['neturl'] !== $siteurl ) {
506
  MonsterInsights()->auth->delete_network_analytics_profile( true );
 
507
  return true;
508
  }
509
  } else {
510
  $siteurl = site_url();
511
- if ( ! empty( $creds['siteurl' ] ) && $creds['siteurl'] !== $siteurl ) {
512
  MonsterInsights()->auth->delete_analytics_profile( true );
 
513
  return true;
514
  }
515
  }
516
 
517
- $api = new MonsterInsights_API_Request( $this->get_route( 'auth/delete/{type}/' ), array( 'network' => $this->is_network_admin(), 'tt' => $this->get_tt(), 'key' => $creds['key'], 'token' => $creds['token'], 'testurl' => 'https://' . monsterinsights_get_api_url() . 'test/' ) );
518
- $ret = $api->request();
 
 
 
 
 
 
519
 
520
  $this->rotate_tt();
521
  if ( is_wp_error( $ret ) && ! $force ) {
@@ -527,6 +660,7 @@ final class MonsterInsights_API_Auth {
527
  MonsterInsights()->auth->delete_analytics_profile( true );
528
 
529
  }
 
530
  return true;
531
  }
532
  }
@@ -549,29 +683,32 @@ final class MonsterInsights_API_Auth {
549
  'tt' => $this->get_tt(),
550
  'key' => $creds['key'],
551
  'token' => $creds['token'],
552
- 'testurl' => 'https://' . monsterinsights_get_api_url() . 'test/'
553
  ) );
554
  // Force the network admin url otherwise this will fail not finding the url in relay.
555
  $api->site_url = network_admin_url();
556
- $ret = $api->request();
557
 
558
  $this->rotate_tt();
559
  if ( is_wp_error( $ret ) ) {
560
  return false;
561
  } else {
562
  MonsterInsights()->auth->delete_network_analytics_profile( true );
 
563
  return true;
564
  }
565
  }
566
 
567
  public function get_type() {
568
  $base = monsterinsights_is_pro_version() ? 'pro' : 'lite';
 
569
  return apply_filters( 'monsterinsights_api_auth_get_type', $base );
570
  }
571
 
572
  public function get_route( $route = '' ) {
573
  $route = str_replace( '{type}', $this->get_type(), $route );
574
  $route = trailingslashit( $route );
 
575
  return $route;
576
  }
577
 
@@ -585,15 +722,16 @@ final class MonsterInsights_API_Auth {
585
  // return $sitei;
586
  // }
587
 
588
- $auth_key = defined( 'AUTH_KEY' ) ? AUTH_KEY : '';
589
  $secure_auth_key = defined( 'SECURE_AUTH_KEY' ) ? SECURE_AUTH_KEY : '';
590
- $logged_in_key = defined( 'LOGGED_IN_KEY' ) ? LOGGED_IN_KEY : '';
591
 
592
  $sitei = $auth_key . $secure_auth_key . $logged_in_key;
593
- $sitei = preg_replace('/[^a-zA-Z0-9]/', '', $sitei );
594
  $sitei = sanitize_text_field( $sitei );
595
  $sitei = trim( $sitei );
596
- $sitei = ( strlen($sitei) > 30 ) ? substr($sitei, 0, 30 ) : $sitei;
 
597
  return $sitei;
598
  }
599
 
@@ -631,7 +769,7 @@ final class MonsterInsights_API_Auth {
631
  * Save the measurement protocol that Relay pushes to this site
632
  */
633
  public function handle_relay_mp_token_push() {
634
- $mp_token = sanitize_text_field( $_POST['mp_token'] );
635
  $timestamp = (int) sanitize_text_field( $_POST['timestamp'] );
636
  $signature = sanitize_text_field( $_POST['signature'] );
637
 
@@ -649,7 +787,7 @@ final class MonsterInsights_API_Auth {
649
  : $auth->get_key();
650
 
651
  $hashed_data = array(
652
- 'mp_token' => $_POST['mp_token'],
653
  'timestamp' => $timestamp,
654
  );
655
 
28
  public function __construct() {
29
 
30
  // Authentication Actions
31
+ add_action( 'wp_ajax_monsterinsights_maybe_authenticate', array( $this, 'maybe_authenticate' ) );
32
+ add_action( 'wp_ajax_monsterinsights_maybe_reauthenticate', array( $this, 'maybe_reauthenticate' ) );
33
+ add_action( 'wp_ajax_monsterinsights_maybe_verify', array( $this, 'maybe_verify' ) );
34
+ add_action( 'wp_ajax_monsterinsights_maybe_delete', array( $this, 'maybe_delete' ) );
35
 
36
+ add_action( 'admin_init', array( $this, 'authenticate_listener' ) );
37
+ add_action( 'admin_init', array( $this, 'reauthenticate_listener' ) );
38
 
39
+ add_action( 'wp_ajax_nopriv_monsterinsights_is_installed', array( $this, 'is_installed' ) );
40
+ add_action( 'wp_ajax_nopriv_monsterinsights_rauthenticate', array( $this, 'rauthenticate' ) );
41
 
42
  add_filter( 'monsterinsights_maybe_authenticate_siteurl', array( $this, 'before_redirect' ) );
43
 
44
  add_action( 'wp_ajax_nopriv_monsterinsights_push_mp_token', array( $this, 'handle_relay_mp_token_push' ) );
45
  }
46
 
47
+ public function get_tt() {
48
  $tt = is_network_admin() ? get_site_option( 'monsterinsights_network_tt', '' ) : get_option( 'monsterinsights_site_tt', '' );
49
  if ( empty( $tt ) ) {
50
  // if TT is empty, generate a new one, save it and then return it
51
  $tt = $this->generate_tt();
52
  $this->is_network_admin() ? update_site_option( 'monsterinsights_network_tt', $tt ) : update_option( 'monsterinsights_site_tt', $tt );
53
  }
54
+
55
  return $tt;
56
  }
57
 
58
+ public function rotate_tt() {
59
  $tt = $this->generate_tt();
60
  is_network_admin() ? update_site_option( 'monsterinsights_network_tt', $tt ) : update_option( 'monsterinsights_site_tt', $tt );
61
  }
62
 
63
+ public function generate_tt() {
64
  return hash( 'sha512', wp_generate_password( 128, true, true ) . AUTH_SALT . uniqid( "", true ) );
65
  }
66
 
67
  public function validate_tt( $passed_tt = '' ) {
68
  $tt = $this->get_tt();
69
+
70
  return hash_equals( $tt, $passed_tt );
71
  }
72
 
73
  public function is_installed() {
74
  wp_send_json_success(
75
  array(
76
+ 'version' => MONSTERINSIGHTS_VERSION,
77
+ 'pro' => monsterinsights_is_pro_version(),
78
  )
79
  );
80
  }
81
 
82
+ public function maybe_authenticate() {
83
 
84
  // Check nonce
85
  check_ajax_referer( 'mi-admin-nonce', 'nonce' );
86
 
87
  // current user can authenticate
88
  if ( ! current_user_can( 'monsterinsights_save_settings' ) ) {
89
+ // Translators: link tag starts with url, link tag ends.
90
+ $message = sprintf(
91
+ __( 'You don\'t have the correct WordPress user permissions to authenticate into MonsterInsights. Please check with your site administrator that your role is included in the MonsterInsights permissions settings. %1$sClick here for more information%2$s.', 'google-analytics-for-wordpress' ),
92
+ '<a target="_blank" href="' . monsterinsights_get_url( 'notice', 'cannot-save-settings', 'https://www.monsterinsights.com/docs/how-to-allow-user-roles-to-access-the-monsterinsights-reports-and-settings/' ) . '">',
93
+ '</a>'
94
+ );
95
+ wp_send_json_error( array( 'message' => $message ) );
96
  }
97
 
98
  if ( ! empty( $_REQUEST['isnetwork'] ) && $_REQUEST['isnetwork'] ) {
103
  if ( monsterinsights_is_pro_version() ) {
104
  $valid = is_network_admin() ? MonsterInsights()->license->is_network_licensed() : MonsterInsights()->license->is_site_licensed();
105
  if ( ! $valid ) {
106
+ wp_send_json_error( array( 'message' => __( "Cannot authenticate. Please enter a valid, active license key for MonsterInsights Pro into the settings page.", 'google-analytics-for-wordpress' ) ) );
107
  }
108
  }
109
 
110
  // we do not have a current auth
111
  if ( ! $this->is_network_admin() && MonsterInsights()->auth->is_authed() ) {
112
+ // Translators: Support link tag starts with url, Support link tag ends.
113
+ $message = sprintf(
114
+ __( 'Oops! There has been an error authenticating. Please try again in a few minutes. If the problem persists, please %1$scontact our support%2$s team.', 'google-analytics-for-wordpress' ),
115
+ '<a target="_blank" href="' . monsterinsights_get_url( 'notice', 'error-authenticating', 'https://www.monsterinsights.com/my-account/support/' ) . '">',
116
+ '</a>'
117
+ );
118
+ wp_send_json_error( array( 'message' => $message ) );
119
  } else if ( $this->is_network_admin() && MonsterInsights()->auth->is_network_authed() ) {
120
+ // Translators: Support link tag starts with url, Support link tag ends.
121
+ $message = sprintf(
122
+ __( 'Oops! There has been an error authenticating. Please try again in a few minutes. If the problem persists, please %1$scontact our support%2$s team.', 'google-analytics-for-wordpress' ),
123
+ '<a target="_blank href="' . monsterinsights_get_url( 'notice', 'error-authenticating', 'https://www.monsterinsights.com/my-account/support/' ) . '">',
124
+ '</a>'
125
+ );
126
+ wp_send_json_error( array( 'message' => $message ) );
127
  }
128
 
129
  $sitei = $this->get_sitei();
138
  'siteurl' => is_network_admin() ? network_admin_url() : site_url(),
139
  'return' => is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ),
140
  'testurl' => 'https://' . monsterinsights_get_api_url() . 'test/',
141
+ ), $this->get_route( 'https://' . monsterinsights_get_api_url() . 'auth/new/{type}' ) );
142
 
143
  if ( monsterinsights_is_pro_version() ) {
144
  $key = is_network_admin() ? MonsterInsights()->license->get_network_license_key() : MonsterInsights()->license->get_site_license_key();
154
  array(
155
  'error' => 'authenticate_missing_arg',
156
  'message' => 'Authenticate missing parameter: ' . $arg,
157
+ 'version' => MONSTERINSIGHTS_VERSION,
158
+ 'pro' => monsterinsights_is_pro_version(),
159
  )
160
  );
161
  }
169
  }
170
 
171
  foreach ( $reqd_args as $arg ) {
172
+ if ( empty( $_REQUEST[ $arg ] ) ) {
173
  $this->send_missing_args_error( $arg );
174
  }
175
  }
183
  array(
184
  'error' => 'authenticate_invalid_tt',
185
  'message' => 'Invalid TT sent',
186
+ 'version' => MONSTERINSIGHTS_VERSION,
187
+ 'pro' => monsterinsights_is_pro_version(),
188
  )
189
  );
190
  }
193
  wp_send_json_success();
194
  }
195
 
196
+ public function authenticate_listener() {
197
  // Make sure it's for us
198
  if ( empty( $_REQUEST['mi-oauth-action'] ) || $_REQUEST['mi-oauth-action'] !== 'auth' ) {
199
  return;
211
 
212
  // Make sure has required params
213
  if (
214
+ empty( $_REQUEST['key'] ) ||
215
+ empty( $_REQUEST['token'] ) ||
216
  empty( $_REQUEST['miview'] ) ||
217
+ empty( $_REQUEST['a'] ) ||
218
+ empty( $_REQUEST['w'] ) ||
219
+ empty( $_REQUEST['p'] ) ||
220
  ( empty( $_REQUEST['ua'] ) && empty( $_REQUEST['v4'] ) )
221
  ) {
222
  return;
223
  }
224
 
225
  if ( ! empty( $_REQUEST['ua'] ) ) {
226
+ $code_key = 'ua';
227
  $code_value = monsterinsights_is_valid_ua( $_REQUEST['ua'] );
228
  } else if ( ! empty( $_REQUEST['v4'] ) ) {
229
+ $code_key = 'v4';
230
  $code_value = monsterinsights_is_valid_v4_id( $_REQUEST['v4'] );
231
  }
232
 
264
  $where = $this->is_network_admin() ? 'network' : 'site';
265
  MonsterInsights()->reporting->delete_aggregate_data( $where );
266
 
267
+ $url = $this->is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' );
268
  $url = add_query_arg( array(
269
+ 'mi_action' => 'auth',
270
+ 'success' => 'true',
271
+ ), $url );
272
  $url = apply_filters( 'monsterinsights_auth_success_redirect_url', $url );
273
  wp_safe_redirect( $url );
274
  exit;
275
  }
276
 
277
+ public function maybe_reauthenticate() {
278
 
279
  // Check nonce
280
  check_ajax_referer( 'mi-admin-nonce', 'nonce' );
281
 
282
+ $url = admin_url( 'admin.php?page=monsterinsights-onboarding' );
283
+
284
  // current user can authenticate
285
  if ( ! current_user_can( 'monsterinsights_save_settings' ) ) {
286
+ // Translators: Link tag starts with url and link tag ends.
287
+ $message = sprintf(
288
+ __( 'You don\'t have the correct WordPress user permissions to re-authenticate into MonsterInsights. Please check with your site administrator that your role is included in the MonsterInsights permissions settings. %1$sClick here for more information%2$s.', 'google-analytics-for-wordpress' ),
289
+ '<a target="_blank" href="' . monsterinsights_get_url( 'notice', 'cannot-save-settings', 'https://www.monsterinsights.com/docs/how-to-allow-user-roles-to-access-the-monsterinsights-reports-and-settings/' ) . '">',
290
+ '</a>'
291
+ );
292
+ wp_send_json_error( array( 'message' => $message ) );
293
  }
294
 
295
  if ( ! empty( $_REQUEST['isnetwork'] ) && $_REQUEST['isnetwork'] ) {
300
  if ( monsterinsights_is_pro_version() ) {
301
  $valid = is_network_admin() ? MonsterInsights()->license->is_network_licensed() : MonsterInsights()->license->is_site_licensed();
302
  if ( monsterinsights_is_pro_version() && ! $valid ) {
303
+ wp_send_json_error( array( 'message' => __( "Your license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.", 'google-analytics-for-wordpress' ) ) );
304
  }
305
  }
306
 
307
  // we do have a current auth
308
  if ( ! $this->is_network_admin() && ! MonsterInsights()->auth->is_authed() ) {
309
+ // Translators: Wizard Link tag starts with url, Wizard link tag ends, Support link tag starts, Support link tag ends.
310
+ $message = sprintf(
311
+ __( 'Oops! There was a problem while re-authenticating. Please try to complete the MonsterInsights %1$ssetup wizard%2$s again. If the problem persists, please %3$scontact our support%4$s team.', 'google-analytics-for-wordpress' ),
312
+ '<a href="' . esc_url( $url ) . '">',
313
+ '</a>',
314
+ '<a target="_blank" href="' . monsterinsights_get_url( 'notice', 'cannot-re-authenticate', 'https://www.monsterinsights.com/my-account/support/' ) . '">',
315
+ '</a>'
316
+ );
317
+ wp_send_json_error( array( 'message' => $message ) );
318
  } else if ( $this->is_network_admin() && ! MonsterInsights()->auth->is_network_authed() ) {
319
+ // Translators: Wizard Link tag starts with url, Wizard link tag ends, Support link tag starts, Support link tag ends.
320
+ $message = sprintf(
321
+ __( 'Oops! There was a problem while re-authenticating. Please try to complete the MonsterInsights %1$ssetup wizard%2$s again. If the problem persists, please %3$scontact our support%4$s team.', 'google-analytics-for-wordpress' ),
322
+ '<a href="' . esc_url( $url ) . '">',
323
+ '</a>',
324
+ '<a target="_blank" href="' . monsterinsights_get_url( 'notice', 'cannot-re-authenticate', 'https://www.monsterinsights.com/my-account/support/' ) . '">',
325
+ '</a>'
326
+ );
327
+ wp_send_json_error( array( 'message' => $message ) );
328
  }
329
 
330
  $siteurl = add_query_arg( array(
338
  'token' => is_network_admin() ? MonsterInsights()->auth->get_network_token() : MonsterInsights()->auth->get_token(),
339
  'return' => is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ),
340
  'testurl' => 'https://' . monsterinsights_get_api_url() . 'test/',
341
+ ), $this->get_route( 'https://' . monsterinsights_get_api_url() . 'auth/reauth/{type}' ) );
342
 
343
  if ( monsterinsights_is_pro_version() ) {
344
  $key = is_network_admin() ? MonsterInsights()->license->get_network_license_key() : MonsterInsights()->license->get_site_license_key();
350
  wp_send_json_success( array( 'redirect' => $siteurl ) );
351
  }
352
 
353
+ public function reauthenticate_listener() {
354
  // Make sure it's for us
355
  if ( empty( $_REQUEST['mi-oauth-action'] ) || $_REQUEST['mi-oauth-action'] !== 'reauth' ) {
356
  return;
378
  }
379
 
380
  if ( ! empty( $_REQUEST['ua'] ) ) {
381
+ $code_key = 'ua';
382
  $code_value = monsterinsights_is_valid_ua( $_REQUEST['ua'] );
383
  } else if ( ! empty( $_REQUEST['v4'] ) ) {
384
+ $code_key = 'v4';
385
  $code_value = monsterinsights_is_valid_v4_id( $_REQUEST['v4'] );
386
  }
387
 
396
  }
397
 
398
  $profile = array(
399
+ 'key' => $existing['key'],
400
+ 'token' => $existing['token'],
401
+ 'viewname' => sanitize_text_field( $_REQUEST['miview'] ),
402
+ 'a' => sanitize_text_field( $_REQUEST['a'] ),
403
+ 'w' => sanitize_text_field( $_REQUEST['w'] ),
404
+ 'p' => sanitize_text_field( $_REQUEST['p'] ),
405
+ 'ua' => $existing['ua'],
406
+ 'v4' => $existing['v4'],
407
+ 'siteurl' => site_url(),
408
+ 'neturl' => network_admin_url(),
409
  'connectedtype' => $code_key,
410
  );
411
 
422
  $where = $this->is_network_admin() ? 'network' : 'site';
423
  MonsterInsights()->reporting->delete_aggregate_data( $where );
424
 
425
+ $url = $this->is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' );
426
  $url = add_query_arg( array(
427
+ 'mi_action' => 'reauth',
428
+ 'success' => 'true',
429
+ ), $url );
430
  $url = apply_filters( 'monsterinsights_reauth_success_redirect_url', $url );
431
 
432
  wp_safe_redirect( $url );
433
  exit;
434
  }
435
 
436
+ public function maybe_verify() {
437
 
438
  // Check nonce
439
  check_ajax_referer( 'mi-admin-nonce', 'nonce' );
440
 
441
  // current user can verify
442
  if ( ! current_user_can( 'monsterinsights_save_settings' ) ) {
443
+ // Translators: Link tag starts with url and link tag ends.
444
+ $message = sprintf(
445
+ __( 'You don\'t have the correct user permissions to verify the MonsterInsights license you are trying to use. Please check with your site administrator that your role is included in the MonsterInsights permissions settings. %1$sClick here for more information%2$s.', 'google-analytics-for-wordpress' ),
446
+ '<a target="_blank" rel="noopener" href="' . monsterinsights_get_url( 'notice', 'cannot-save-settings', 'https://www.monsterinsights.com/docs/how-to-allow-user-roles-to-access-the-monsterinsights-reports-and-settings/' ) . '">',
447
+ '</a>'
448
+ );
449
+ wp_send_json_error( array( 'message' => $message ) );
450
  }
451
 
452
  if ( ! empty( $_REQUEST['isnetwork'] ) && $_REQUEST['isnetwork'] ) {
455
 
456
  // we have an auth to verify
457
  if ( $this->is_network_admin() && ! MonsterInsights()->auth->is_network_authed() ) {
458
+ // Translators: Support Link tag starts with url and Support link tag ends.
459
+ $message = sprintf(
460
+ __( 'Please enter a valid license within the MonsterInsights settings panel. You can check your license by logging into your MonsterInsights account by %1$sclicking here%2$s.', 'google-analytics-for-wordpress' ),
461
+ '<a target="_blank" rel="noopener" href="' . monsterinsights_get_url( 'notice', 'cannot-verify-license', 'https://www.monsterinsights.com/my-account/' ) . '">',
462
+ '</a>'
463
+ );
464
+ wp_send_json_error( array( 'message' => $message ) );
465
  } else if ( ! $this->is_network_admin() && ! MonsterInsights()->auth->is_authed() ) {
466
+ // Translators: Support Link tag starts with url and Support link tag ends.
467
+ $message = sprintf(
468
+ __( 'Please enter a valid license within the MonsterInsights settings panel. You can check your license by logging into your MonsterInsights account by %1$sclicking here%2$s.', 'google-analytics-for-wordpress' ),
469
+ '<a target="_blank" rel="noopener" href="' . monsterinsights_get_url( 'notice', 'cannot-verify-license', 'https://www.monsterinsights.com/my-account/' ) . '">',
470
+ '</a>'
471
+ );
472
+ wp_send_json_error( array( 'message' => $message ) );
473
  }
474
 
475
  if ( monsterinsights_is_pro_version() ) {
476
  $valid = is_network_admin() ? MonsterInsights()->license->is_network_licensed() : MonsterInsights()->license->is_site_licensed();
477
  if ( ! $valid ) {
478
+ // Translators: Support Link tag starts with url and Support link tag ends.
479
+ $message = sprintf(
480
+ __( 'Please enter a valid license within the MonsterInsights settings panel. You can check your license by logging into your MonsterInsights account by %1$sclicking here%2$s.', 'google-analytics-for-wordpress' ),
481
+ '<a target="_blank" rel="noopener" href="' . monsterinsights_get_url( 'notice', 'cannot-verify-license', 'https://www.monsterinsights.com/my-account/' ) . '">',
482
+ '</a>'
483
+ );
484
+ wp_send_json_error( array( 'message' => $message ) );
485
  }
486
  }
487
 
488
  $worked = $this->verify_auth();
489
+ if ( $worked && ! is_wp_error( $worked ) ) {
490
  wp_send_json_success( array( 'message' => __( "Successfully verified.", 'google-analytics-for-wordpress' ) ) );
491
  } else {
492
+ // Translators: Support Link tag starts with url and Support link tag ends.
493
+ $message = sprintf(
494
+ __( 'Oops! There has been an error while trying to verify your license. Please try again or contact our support team by %1$sclicking here%2$s.', 'google-analytics-for-wordpress' ),
495
+ '<a target="_blank" href="' . monsterinsights_get_url( 'notice', 'cannot-verify-license', 'https://www.monsterinsights.com/my-account/support/' ) . '">',
496
+ '</a>'
497
+ );
498
+ wp_send_json_error( array( 'message' => $message ) );
499
  }
500
  }
501
 
502
+ public function verify_auth( $credentials = array() ) {
503
  $creds = ! empty( $credentials ) ? $credentials : ( $this->is_network_admin() ? MonsterInsights()->auth->get_network_analytics_profile( true ) : MonsterInsights()->auth->get_analytics_profile( true ) );
504
 
505
  if ( empty( $creds['key'] ) ) {
506
+ // Translators: Support Link tag starts with url and Support link tag ends.
507
+ $message = sprintf(
508
+ __( 'Oops! There has been an error while trying to verify your license. Please try again or contact our support team by %1$sclicking here%2$s.', 'google-analytics-for-wordpress' ),
509
+ '<a target="_blank" href="' . monsterinsights_get_url( 'notice', 'cannot-verify-license', 'https://www.monsterinsights.com/my-account/support/' ) . '">',
510
+ '</a>'
511
+ );
512
+
513
+ return new WP_Error( 'validation-error', $message );
514
  }
515
 
516
  $network = ! empty( $_REQUEST['network'] ) ? $_REQUEST['network'] === 'network' : $this->is_network_admin();
517
+ $api = new MonsterInsights_API_Request( $this->get_route( 'auth/verify/{type}/' ), array(
518
+ 'network' => $network,
519
+ 'tt' => $this->get_tt(),
520
+ 'key' => $creds['key'],
521
+ 'token' => $creds['token'],
522
+ 'testurl' => 'https://' . monsterinsights_get_api_url() . 'test/'
523
+ ) );
524
+ $ret = $api->request();
525
 
526
  $this->rotate_tt();
527
  if ( is_wp_error( $ret ) ) {
531
  }
532
  }
533
 
534
+ public function maybe_delete() {
535
 
536
  // Check nonce
537
  check_ajax_referer( 'mi-admin-nonce', 'nonce' );
538
 
539
+ $url = network_admin_url( 'admin.php?page=monsterinsights-onboarding' );
540
+
541
  // current user can delete
542
  if ( ! current_user_can( 'monsterinsights_save_settings' ) ) {
543
+ // Translators: Link tag starts with url and link tag ends.
544
+ $message = sprintf(
545
+ __( 'You don\'t have the correct WordPress user permissions to deauthenticate into MonsterInsights. Please check with your site administrator that your role is included in the MonsterInsights permissions settings. %1$sClick here for more information%2$s.', 'google-analytics-for-wordpress' ),
546
+ '<a target="_blank" href="' . monsterinsights_get_url( 'notice', 'cannot-save-settings', 'https://www.monsterinsights.com/docs/how-to-allow-user-roles-to-access-the-monsterinsights-reports-and-settings/' ) . '">',
547
+ '</a>'
548
+ );
549
+ wp_send_json_error( array( 'message' => $message ) );
550
  }
551
 
552
  if ( ! empty( $_REQUEST['isnetwork'] ) && $_REQUEST['isnetwork'] ) {
555
 
556
  // we have an auth to delete
557
  if ( $this->is_network_admin() && ! MonsterInsights()->auth->is_network_authed() ) {
558
+ // Translators: Setup Wizard link tag starts, Setup Wizard link tag end, Support link tag starts with url and support link tag ends.
559
+ $message = sprintf(
560
+ __( 'Could not disconnect as you are not currently authenticated properly. Please try to authenticate again with our MonsterInsights %1$ssetup wizard%2$s. If you are still having problems, please %3$scontact our support%4$s team.', 'google-analytics-for-wordpress' ),
561
+ '<a href="' . esc_url( $url ) . '">',
562
+ '</a>',
563
+ '<a target="_blank" href="' . monsterinsights_get_url( 'notice', 'cannot-de-authenticate-license', 'https://www.monsterinsights.com/my-account/support/' ) . '">',
564
+ '</a>'
565
+ );
566
+ wp_send_json_error( array( 'message' => $message ) );
567
  } else if ( ! $this->is_network_admin() && ! MonsterInsights()->auth->is_authed() ) {
568
+ // Translators: Setup Wizard link tag starts, Setup Wizard link tag end, Support link tag starts with url and support link tag ends.
569
+ $message = sprintf(
570
+ __( 'Could not disconnect as you are not currently authenticated properly. Please try to authenticate again with our MonsterInsights %1$ssetup wizard%2$s. If you are still having problems, please %3$scontact our support%4$s team.', 'google-analytics-for-wordpress' ),
571
+ '<a href="' . esc_url( $url ) . '">',
572
+ '</a>',
573
+ '<a target="_blank" href="' . monsterinsights_get_url( 'notice', 'cannot-de-authenticate-license', 'https://www.monsterinsights.com/my-account/support/' ) . '">',
574
+ '</a>'
575
+ );
576
+ wp_send_json_error( array( 'message' => $message ) );
577
  }
578
 
579
  if ( monsterinsights_is_pro_version() ) {
580
  $valid = is_network_admin() ? MonsterInsights()->license->is_network_licensed() : MonsterInsights()->license->is_site_licensed();
581
  if ( ! $valid ) {
582
+ // Translators: Setup Wizard link tag starts, Setup Wizard link tag end, Support link tag starts with url and support link tag ends.
583
+ $message = sprintf(
584
+ __( 'Could not disconnect your account, as you are not currently authenticated properly. Please try to authenticate again with our %1$sMonsterInsights setup wizard%2$s. If you are still having problems, please %3$scontact our support%4$s team.', 'google-analytics-for-wordpress' ),
585
+ '<a href="' . esc_url( $url ) . '">',
586
+ '</a>',
587
+ '<a target="_blank" href="' . monsterinsights_get_url( 'notice', 'cannot-de-authenticate-license', 'https://www.monsterinsights.com/my-account/support/' ) . '">',
588
+ '</a>'
589
+ );
590
+ wp_send_json_error( array( 'message' => $message ) );
591
  }
592
  }
593
 
594
  $force = ! empty( $_REQUEST['forcedelete'] ) && $_REQUEST['forcedelete'] === 'true';
595
 
596
  $worked = $this->delete_auth( $force );
597
+ if ( $worked && ! is_wp_error( $worked ) ) {
598
  wp_send_json_success( array( 'message' => __( "Successfully deauthenticated.", 'google-analytics-for-wordpress' ) ) );
599
  } else {
600
  if ( $force ) {
601
  wp_send_json_success( array( 'message' => __( "Successfully force deauthenticated.", 'google-analytics-for-wordpress' ) ) );
602
  } else {
603
+ // Translators: Support link tag starts with url and support link tag ends.
604
+ $message = sprintf(
605
+ __( 'Oops! There has been an error while trying to deauthenticate. Please try again. If the issue persists, please %1$scontact our support%2$s team.', 'google-analytics-for-wordpress' ),
606
+ '<a target="_blank" href="' . monsterinsights_get_url( 'notice', 'cannot-de-authenticate-license', 'https://www.monsterinsights.com/my-account/support/' ) . '">',
607
+ '</a>'
608
+ );
609
+ wp_send_json_error( array( 'message' => $message ) );
610
  }
611
  }
612
  }
613
 
614
+ public function delete_auth( $force = false ) {
615
  if ( $this->is_network_admin() && ! MonsterInsights()->auth->is_network_authed() ) {
616
  return false;
617
  } else if ( ! $this->is_network_admin() && ! MonsterInsights()->auth->is_authed() ) {
627
  // If we have a new siteurl enabled option and the profile site doesn't match the current site, deactivate anyways
628
  if ( is_network_admin() ) {
629
  $siteurl = network_admin_url();
630
+ if ( ! empty( $creds['neturl'] ) && $creds['neturl'] !== $siteurl ) {
631
  MonsterInsights()->auth->delete_network_analytics_profile( true );
632
+
633
  return true;
634
  }
635
  } else {
636
  $siteurl = site_url();
637
+ if ( ! empty( $creds['siteurl'] ) && $creds['siteurl'] !== $siteurl ) {
638
  MonsterInsights()->auth->delete_analytics_profile( true );
639
+
640
  return true;
641
  }
642
  }
643
 
644
+ $api = new MonsterInsights_API_Request( $this->get_route( 'auth/delete/{type}/' ), array(
645
+ 'network' => $this->is_network_admin(),
646
+ 'tt' => $this->get_tt(),
647
+ 'key' => $creds['key'],
648
+ 'token' => $creds['token'],
649
+ 'testurl' => 'https://' . monsterinsights_get_api_url() . 'test/'
650
+ ) );
651
+ $ret = $api->request();
652
 
653
  $this->rotate_tt();
654
  if ( is_wp_error( $ret ) && ! $force ) {
660
  MonsterInsights()->auth->delete_analytics_profile( true );
661
 
662
  }
663
+
664
  return true;
665
  }
666
  }
683
  'tt' => $this->get_tt(),
684
  'key' => $creds['key'],
685
  'token' => $creds['token'],
686
+ 'testurl' => 'https://' . monsterinsights_get_api_url() . 'test/'
687
  ) );
688
  // Force the network admin url otherwise this will fail not finding the url in relay.
689
  $api->site_url = network_admin_url();
690
+ $ret = $api->request();
691
 
692
  $this->rotate_tt();
693
  if ( is_wp_error( $ret ) ) {
694
  return false;
695
  } else {
696
  MonsterInsights()->auth->delete_network_analytics_profile( true );
697
+
698
  return true;
699
  }
700
  }
701
 
702
  public function get_type() {
703
  $base = monsterinsights_is_pro_version() ? 'pro' : 'lite';
704
+
705
  return apply_filters( 'monsterinsights_api_auth_get_type', $base );
706
  }
707
 
708
  public function get_route( $route = '' ) {
709
  $route = str_replace( '{type}', $this->get_type(), $route );
710
  $route = trailingslashit( $route );
711
+
712
  return $route;
713
  }
714
 
722
  // return $sitei;
723
  // }
724
 
725
+ $auth_key = defined( 'AUTH_KEY' ) ? AUTH_KEY : '';
726
  $secure_auth_key = defined( 'SECURE_AUTH_KEY' ) ? SECURE_AUTH_KEY : '';
727
+ $logged_in_key = defined( 'LOGGED_IN_KEY' ) ? LOGGED_IN_KEY : '';
728
 
729
  $sitei = $auth_key . $secure_auth_key . $logged_in_key;
730
+ $sitei = preg_replace( '/[^a-zA-Z0-9]/', '', $sitei );
731
  $sitei = sanitize_text_field( $sitei );
732
  $sitei = trim( $sitei );
733
+ $sitei = ( strlen( $sitei ) > 30 ) ? substr( $sitei, 0, 30 ) : $sitei;
734
+
735
  return $sitei;
736
  }
737
 
769
  * Save the measurement protocol that Relay pushes to this site
770
  */
771
  public function handle_relay_mp_token_push() {
772
+ $mp_token = sanitize_text_field( $_POST['mp_token'] );
773
  $timestamp = (int) sanitize_text_field( $_POST['timestamp'] );
774
  $signature = sanitize_text_field( $_POST['signature'] );
775
 
787
  : $auth->get_key();
788
 
789
  $hashed_data = array(
790
+ 'mp_token' => $_POST['mp_token'],
791
  'timestamp' => $timestamp,
792
  );
793
 
includes/admin/common.php CHANGED
@@ -1,964 +1,964 @@
1
- <?php
2
- /**
3
- * Common admin class.
4
- *
5
- * @since 6.0.0
6
- *
7
- * @package MonsterInsights
8
- * @subpackage Common
9
- * @author Chris Christoff
10
- */
11
-
12
- // Exit if accessed directly
13
- if ( ! defined( 'ABSPATH' ) ) {
14
- exit;
15
- }
16
-
17
- function monsterinsights_is_settings_page() {
18
- $current_screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
19
- global $admin_page_hooks;
20
-
21
- if ( ! is_object( $current_screen ) || empty( $current_screen->id ) || empty( $admin_page_hooks ) ) {
22
- return false;
23
- }
24
-
25
- $settings_page = false;
26
- if ( ! empty( $admin_page_hooks['monsterinsights_settings'] ) && $current_screen->id === $admin_page_hooks['monsterinsights_settings'] ) {
27
- $settings_page = true;
28
- }
29
-
30
- if ( $current_screen->id === 'toplevel_page_monsterinsights_settings' ) {
31
- $settings_page = true;
32
- }
33
-
34
- if ( $current_screen->id === 'insights_page_monsterinsights_settings' ) {
35
- $settings_page = true;
36
- }
37
-
38
- if ( strpos( $current_screen->id, 'monsterinsights_settings' ) !== false ) {
39
- $settings_page = true;
40
- }
41
-
42
- if ( ! empty( $current_screen->base ) && strpos( $current_screen->base, 'monsterinsights_network' ) !== false ) {
43
- $settings_page = true;
44
- }
45
-
46
- return $settings_page;
47
- }
48
-
49
- /**
50
- * Determine if the current page is the Reports page.
51
- *
52
- * @return bool
53
- */
54
- function monsterinsights_is_reports_page() {
55
- $current_screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
56
- global $admin_page_hooks;
57
-
58
- if ( ! is_object( $current_screen ) || empty( $current_screen->id ) || empty( $admin_page_hooks ) ) {
59
- return false;
60
- }
61
-
62
- $reports_page = false;
63
- if ( ! empty( $admin_page_hooks['monsterinsights_reports'] ) && $current_screen->id === $admin_page_hooks['monsterinsights_reports'] ) {
64
- $reports_page = true;
65
- }
66
-
67
- if ( 'toplevel_page_monsterinsights_reports' === $current_screen->id ) {
68
- $reports_page = true;
69
- }
70
-
71
- if ( strpos( $current_screen->id, 'monsterinsights_reports' ) !== false ) {
72
- $reports_page = true;
73
- }
74
-
75
- return $reports_page;
76
- }
77
-
78
- /**
79
- * Loads styles for all MonsterInsights-based Administration Screens.
80
- *
81
- * @return null Return early if not on the proper screen.
82
- * @since 6.0.0
83
- * @access public
84
- *
85
- */
86
- function monsterinsights_admin_styles() {
87
-
88
- $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
89
-
90
- // Load Common admin styles.
91
- wp_register_style( 'monsterinsights-admin-common-style', plugins_url( 'assets/css/admin-common' . $suffix . '.css', MONSTERINSIGHTS_PLUGIN_FILE ), array(), monsterinsights_get_asset_version() );
92
- wp_enqueue_style( 'monsterinsights-admin-common-style' );
93
-
94
- // Get current screen.
95
- $screen = get_current_screen();
96
-
97
- // Bail if we're not on a MonsterInsights screen.
98
- if ( empty( $screen->id ) || strpos( $screen->id, 'monsterinsights' ) === false ) {
99
- return;
100
- }
101
-
102
- $version_path = monsterinsights_is_pro_version() ? 'pro' : 'lite';
103
- $rtl = is_rtl() ? '.rtl' : '';
104
-
105
- // For the settings page, load the Vue app styles.
106
- if ( monsterinsights_is_settings_page() ) {
107
- if ( ! defined( 'MONSTERINSIGHTS_LOCAL_JS_URL' ) ) {
108
- wp_enqueue_style( 'monsterinsights-vue-style-vendors', plugins_url( $version_path . '/assets/vue/css/chunk-vendors' . $rtl . '.css', MONSTERINSIGHTS_PLUGIN_FILE ), array(), monsterinsights_get_asset_version() );
109
- wp_enqueue_style( 'monsterinsights-vue-style-common', plugins_url( $version_path . '/assets/vue/css/chunk-common' . $rtl . '.css', MONSTERINSIGHTS_PLUGIN_FILE ), array(), monsterinsights_get_asset_version() );
110
- wp_enqueue_style( 'monsterinsights-vue-style', plugins_url( $version_path . '/assets/vue/css/settings' . $rtl . '.css', MONSTERINSIGHTS_PLUGIN_FILE ), array(), monsterinsights_get_asset_version() );
111
- }
112
-
113
- // Don't load other styles on the settings page.
114
- return;
115
- }
116
-
117
- if ( monsterinsights_is_reports_page() ) {
118
- if ( ! defined( 'MONSTERINSIGHTS_LOCAL_REPORTS_JS_URL' ) ) {
119
- wp_enqueue_style( 'monsterinsights-vue-style-vendors', plugins_url( $version_path . '/assets/vue/css/chunk-vendors' . $rtl . '.css', MONSTERINSIGHTS_PLUGIN_FILE ), array(), monsterinsights_get_asset_version() );
120
- wp_enqueue_style( 'monsterinsights-vue-style-common', plugins_url( $version_path . '/assets/vue/css/chunk-common' . $rtl . '.css', MONSTERINSIGHTS_PLUGIN_FILE ), array(), monsterinsights_get_asset_version() );
121
- wp_enqueue_style( 'monsterinsights-vue-style', plugins_url( $version_path . '/assets/vue/css/reports' . $rtl . '.css', MONSTERINSIGHTS_PLUGIN_FILE ), array(), monsterinsights_get_asset_version() );
122
- }
123
-
124
- return;
125
- }
126
-
127
- // Tooltips
128
- wp_enqueue_script( 'jquery-ui-tooltip' );
129
- }
130
-
131
- add_action( 'admin_enqueue_scripts', 'monsterinsights_admin_styles' );
132
-
133
- /**
134
- * Loads scripts for all MonsterInsights-based Administration Screens.
135
- *
136
- * @return null Return early if not on the proper screen.
137
- * @since 6.0.0
138
- * @access public
139
- *
140
- */
141
- function monsterinsights_admin_scripts() {
142
-
143
- // Our Common Admin JS.
144
- $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
145
-
146
- wp_register_script( 'monsterinsights-admin-common-script', plugins_url( 'assets/js/admin-common' . $suffix . '.js', MONSTERINSIGHTS_PLUGIN_FILE ), array( 'jquery' ), monsterinsights_get_asset_version(), true );
147
-
148
- wp_enqueue_script( 'monsterinsights-admin-common-script' );
149
-
150
- wp_localize_script(
151
- 'monsterinsights-admin-common-script',
152
- 'monsterinsights_admin_common',
153
- array(
154
- 'ajax' => admin_url( 'admin-ajax.php' ),
155
- 'dismiss_notice_nonce' => wp_create_nonce( 'monsterinsights-dismiss-notice' ),
156
- )
157
- );
158
-
159
- // Get current screen.
160
- $screen = get_current_screen();
161
-
162
- // Bail if we're not on a MonsterInsights screen.
163
- if ( empty( $screen->id ) || strpos( $screen->id, 'monsterinsights' ) === false ) {
164
- return;
165
- }
166
-
167
- $version_path = monsterinsights_is_pro_version() ? 'pro' : 'lite';
168
-
169
- // For the settings page, load the Vue app.
170
- if ( monsterinsights_is_settings_page() ) {
171
- if ( ! defined( 'MONSTERINSIGHTS_LOCAL_VENDORS_JS_URL' ) ) {
172
- wp_enqueue_script( 'monsterinsights-vue-vendors', plugins_url( $version_path . '/assets/vue/js/chunk-vendors.js', MONSTERINSIGHTS_PLUGIN_FILE ), array(), monsterinsights_get_asset_version(), true );
173
- wp_enqueue_script( 'monsterinsights-vue-common', plugins_url( $version_path . '/assets/vue/js/chunk-common.js', MONSTERINSIGHTS_PLUGIN_FILE ), array(), monsterinsights_get_asset_version(), true );
174
- } else {
175
- wp_enqueue_script( 'monsterinsights-vue-vendors', MONSTERINSIGHTS_LOCAL_VENDORS_JS_URL, array(), monsterinsights_get_asset_version(), true );
176
- wp_enqueue_script( 'monsterinsights-vue-common', MONSTERINSIGHTS_LOCAL_COMMON_JS_URL, array(), monsterinsights_get_asset_version(), true );
177
- }
178
- $app_js_url = defined( 'MONSTERINSIGHTS_LOCAL_JS_URL' ) && MONSTERINSIGHTS_LOCAL_JS_URL ? MONSTERINSIGHTS_LOCAL_JS_URL : plugins_url( $version_path . '/assets/vue/js/settings.js', MONSTERINSIGHTS_PLUGIN_FILE );
179
- wp_register_script( 'monsterinsights-vue-script', $app_js_url, array(), monsterinsights_get_asset_version(), true );
180
- wp_enqueue_script( 'monsterinsights-vue-script' );
181
- $plugins = get_plugins();
182
- $install_amp_url = false;
183
- if ( monsterinsights_can_install_plugins() ) {
184
- $amp_key = 'amp/amp.php';
185
- if ( array_key_exists( $amp_key, $plugins ) ) {
186
- $install_amp_url = wp_nonce_url( self_admin_url( 'plugins.php?action=activate&plugin=' . $amp_key ), 'activate-plugin_' . $amp_key );
187
- } else {
188
- $install_amp_url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=amp' ), 'install-plugin_amp' );
189
- }
190
- }
191
- $install_woocommerce_url = false;
192
- if ( monsterinsights_can_install_plugins() ) {
193
- $woo_key = 'woocommerce/woocommerce.php';
194
- if ( array_key_exists( $woo_key, $plugins ) ) {
195
- $install_woocommerce_url = wp_nonce_url( self_admin_url( 'plugins.php?action=activate&plugin=' . $woo_key ), 'activate-plugin_' . $woo_key );
196
- } else {
197
- $install_woocommerce_url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=woocommerce' ), 'install-plugin_woocommerce' );
198
- }
199
- }
200
- $install_fbia_url = false;
201
- if ( monsterinsights_can_install_plugins() ) {
202
- $fbia_key = 'fb-instant-articles/facebook-instant-articles.php';
203
- if ( array_key_exists( $fbia_key, $plugins ) ) {
204
- $install_fbia_url = wp_nonce_url( self_admin_url( 'plugins.php?action=activate&plugin=' . $fbia_key ), 'activate-plugin_' . $fbia_key );
205
- } else {
206
- $install_fbia_url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=fb-instant-articles' ), 'install-plugin_fb-instant-articles' );
207
- }
208
- }
209
-
210
- $prepared_dimensions = array();
211
- if ( class_exists( 'MonsterInsights_Admin_Custom_Dimensions' ) ) {
212
- $dimensions = new MonsterInsights_Admin_Custom_Dimensions();
213
- $dimensions = $dimensions->custom_dimensions();
214
- $prepared_dimensions = array();
215
- foreach ( $dimensions as $dimension_type => $dimension ) {
216
- $dimension['type'] = $dimension_type;
217
- $prepared_dimensions[] = $dimension;
218
- }
219
- }
220
- $is_authed = ( MonsterInsights()->auth->is_authed() || MonsterInsights()->auth->is_network_authed() );
221
-
222
- wp_localize_script(
223
- 'monsterinsights-vue-script',
224
- 'monsterinsights',
225
- array(
226
- 'ajax' => admin_url( 'admin-ajax.php' ),
227
- 'nonce' => wp_create_nonce( 'mi-admin-nonce' ),
228
- 'network' => is_network_admin(),
229
- 'translations' => wp_get_jed_locale_data( monsterinsights_is_pro_version() ? 'ga-premium' : 'google-analytics-for-wordpress' ),
230
- 'assets' => plugins_url( $version_path . '/assets/vue', MONSTERINSIGHTS_PLUGIN_FILE ),
231
- 'roles' => monsterinsights_get_roles(),
232
- 'roles_manage_options' => monsterinsights_get_manage_options_roles(),
233
- 'shareasale_id' => monsterinsights_get_shareasale_id(),
234
- 'shareasale_url' => monsterinsights_get_shareasale_url( monsterinsights_get_shareasale_id(), '' ),
235
- 'addons_url' => is_multisite() ? network_admin_url( 'admin.php?page=monsterinsights_network#/addons' ) : admin_url( 'admin.php?page=monsterinsights_settings#/addons' ),
236
- 'seo_settings_page_url' => is_multisite() ? network_admin_url( 'admin.php?page=monsterinsights_network#/seo' ) : admin_url( 'admin.php?page=monsterinsights_settings#/seo' ),
237
- 'aioseo_dashboard_url' => is_multisite() ? network_admin_url( 'admin.php?page=aioseo' ) : admin_url( 'admin.php?page=aioseo' ),
238
- 'wp_plugins_page_url' => is_multisite() ? network_admin_url( 'plugins.php' ) : admin_url( 'plugins.php' ),
239
- 'email_summary_url' => admin_url( 'admin.php?monsterinsights_email_preview&monsterinsights_email_template=summary' ),
240
- 'install_amp_url' => $install_amp_url,
241
- 'install_fbia_url' => $install_fbia_url,
242
- 'install_woo_url' => $install_woocommerce_url,
243
- 'dimensions' => $prepared_dimensions,
244
- 'wizard_url' => is_network_admin() ? network_admin_url( 'index.php?page=monsterinsights-onboarding' ) : admin_url( 'index.php?page=monsterinsights-onboarding' ),
245
- 'install_plugins' => monsterinsights_can_install_plugins(),
246
- 'unfiltered_html' => current_user_can( 'unfiltered_html' ),
247
- 'activate_nonce' => wp_create_nonce( 'monsterinsights-activate' ),
248
- 'deactivate_nonce' => wp_create_nonce( 'monsterinsights-deactivate' ),
249
- 'install_nonce' => wp_create_nonce( 'monsterinsights-install' ),
250
- // Used to add notices for future deprecations.
251
- 'versions' => monsterinsights_get_php_wp_version_warning_data(),
252
- 'plugin_version' => MONSTERINSIGHTS_VERSION,
253
- 'is_admin' => true,
254
- 'admin_email' => get_option( 'admin_email' ),
255
- 'site_url' => get_site_url(),
256
- 'reports_url' => add_query_arg( 'page', 'monsterinsights_reports', admin_url( 'admin.php' ) ),
257
- 'ecommerce_report_url' => add_query_arg( 'page', 'monsterinsights_reports#/ecommerce', admin_url( 'admin.php' ) ),
258
- 'ecommerce_settings_tab_url' => add_query_arg( 'page', 'monsterinsights_settings#/ecommerce', admin_url( 'admin.php' ) ),
259
- 'first_run_notice' => apply_filters( 'monsterinsights_settings_first_time_notice_hide', monsterinsights_get_option( 'monsterinsights_first_run_notice' ) ),
260
- 'getting_started_url' => is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network#/about' ) : admin_url( 'admin.php?page=monsterinsights_settings#/about/getting-started' ),
261
- 'authed' => $is_authed,
262
- 'new_pretty_link_url' => admin_url( 'post-new.php?post_type=pretty-link' ),
263
- 'wpmailsmtp_admin_url' => admin_url( 'admin.php?page=wp-mail-smtp' ),
264
- 'load_headline_analyzer_settings' => monsterinsights_load_gutenberg_app() ? 'true' : 'false',
265
- )
266
- );
267
-
268
- // Don't load other scripts on the settings page.
269
- return;
270
- }
271
-
272
- if ( monsterinsights_is_reports_page() ) {
273
- global $wp_version;
274
- if ( ! defined( 'MONSTERINSIGHTS_LOCAL_VENDORS_JS_URL' ) ) {
275
- wp_enqueue_script( 'monsterinsights-vue-vendors', plugins_url( $version_path . '/assets/vue/js/chunk-vendors.js', MONSTERINSIGHTS_PLUGIN_FILE ), array(), monsterinsights_get_asset_version(), true );
276
- wp_enqueue_script( 'monsterinsights-vue-common', plugins_url( $version_path . '/assets/vue/js/chunk-common.js', MONSTERINSIGHTS_PLUGIN_FILE ), array(), monsterinsights_get_asset_version(), true );
277
- } else {
278
- wp_enqueue_script( 'monsterinsights-vue-vendors', MONSTERINSIGHTS_LOCAL_VENDORS_JS_URL, array(), monsterinsights_get_asset_version(), true );
279
- wp_enqueue_script( 'monsterinsights-vue-common', MONSTERINSIGHTS_LOCAL_COMMON_JS_URL, array(), monsterinsights_get_asset_version(), true );
280
- }
281
- $app_js_url = defined( 'MONSTERINSIGHTS_LOCAL_REPORTS_JS_URL' ) && MONSTERINSIGHTS_LOCAL_REPORTS_JS_URL ? MONSTERINSIGHTS_LOCAL_REPORTS_JS_URL : plugins_url( $version_path . '/assets/vue/js/reports.js', MONSTERINSIGHTS_PLUGIN_FILE );
282
- wp_register_script( 'monsterinsights-vue-reports', $app_js_url, array(), monsterinsights_get_asset_version(), true );
283
- wp_enqueue_script( 'monsterinsights-vue-reports' );
284
-
285
- // We do not have a current auth.
286
- $auth = MonsterInsights()->auth;
287
- $site_auth = $auth->get_viewname();
288
- $ms_auth = is_multisite() && $auth->get_network_viewname();
289
-
290
- wp_localize_script(
291
- 'monsterinsights-vue-reports',
292
- 'monsterinsights',
293
- array(
294
- 'ajax' => admin_url( 'admin-ajax.php' ),
295
- 'nonce' => wp_create_nonce( 'mi-admin-nonce' ),
296
- 'network' => is_network_admin(),
297
- 'translations' => wp_get_jed_locale_data( monsterinsights_is_pro_version() ? 'ga-premium' : 'google-analytics-for-wordpress' ),
298
- 'assets' => plugins_url( $version_path . '/assets/vue', MONSTERINSIGHTS_PLUGIN_FILE ),
299
- 'shareasale_id' => monsterinsights_get_shareasale_id(),
300
- 'shareasale_url' => monsterinsights_get_shareasale_url( monsterinsights_get_shareasale_id(), '' ),
301
- 'addons_url' => is_multisite() ? network_admin_url( 'admin.php?page=monsterinsights_network#/addons' ) : admin_url( 'admin.php?page=monsterinsights_settings#/addons' ),
302
- 'timezone' => date( 'e' ),
303
- 'authed' => $site_auth || $ms_auth,
304
- 'auth_connected_type' => $auth->get_connected_type(),
305
- 'settings_url' => add_query_arg( 'page', 'monsterinsights_settings', admin_url( 'admin.php' ) ),
306
- // Used to add notices for future deprecations.
307
- 'versions' => monsterinsights_get_php_wp_version_warning_data(),
308
- 'plugin_version' => MONSTERINSIGHTS_VERSION,
309
- 'is_admin' => true,
310
- 'admin_email' => get_option( 'admin_email' ),
311
- 'site_url' => get_site_url(),
312
- 'wizard_url' => is_network_admin() ? network_admin_url( 'index.php?page=monsterinsights-onboarding' ) : admin_url( 'index.php?page=monsterinsights-onboarding' ),
313
- 'install_nonce' => wp_create_nonce( 'monsterinsights-install' ),
314
- 'activate_nonce' => wp_create_nonce( 'monsterinsights-activate' ),
315
- 'deactivate_nonce' => wp_create_nonce( 'monsterinsights-deactivate' ),
316
- 'update_settings' => current_user_can( 'monsterinsights_save_settings' ),
317
- 'migrated' => monsterinsights_get_option( 'gadwp_migrated', 0 ),
318
- )
319
- );
320
-
321
- return;
322
- }
323
-
324
- // ublock notice
325
- add_action( 'admin_print_footer_scripts', 'monsterinsights_settings_ublock_error_js', 9999999 );
326
- }
327
-
328
- add_action( 'admin_enqueue_scripts', 'monsterinsights_admin_scripts' );
329
-
330
- /**
331
- * Remove Assets that conflict with ours from our screens.
332
- *
333
- * @return null Return early if not on the proper screen.
334
- * @since 6.0.4
335
- * @access public
336
- *
337
- */
338
- function monsterinsights_remove_conflicting_asset_files() {
339
-
340
- // Get current screen.
341
- $screen = get_current_screen();
342
-
343
- // Bail if we're not on a MonsterInsights screen.
344
- if ( empty( $screen->id ) || strpos( $screen->id, 'monsterinsights' ) === false ) {
345
- return;
346
- }
347
-
348
- $styles = array(
349
- 'kt_admin_css', // Pinnacle theme
350
- 'select2-css', // Schema theme
351
- 'tweetshare_style', // TweetShare - Click To Tweet
352
- 'tweetshare_custom_style', // TweetShare - Click To Tweet
353
- 'tweeetshare_custome_style', // TweetShare - Click To Tweet
354
- 'tweeetshare_notice_style', // TweetShare - Click To Tweet
355
- 'tweeetshare_theme_style', // TweetShare - Click To Tweet
356
- 'tweeetshare_tweet_box_style', // TweetShare - Click To Tweet
357
- 'soultype2-admin', // SoulType Plugin
358
- 'thesis-options-stylesheet', // Thesis Options Stylesheet
359
- 'imagify-sweetalert-core', // Imagify
360
- 'imagify-sweetalert', // Imagify
361
- 'smls-backend-style', // Smart Logo Showcase Lite
362
- 'wp-reactjs-starter', // wp-real-media-library
363
- 'control-panel-modal-plugin', // Ken Theme
364
- 'theme-admin-css', // Vitrine Theme
365
- 'qi-framework-styles', // Artisan Nayma Theme
366
- 'artisan-pages-style', // Artisan Pages Plugin
367
- 'control-panel-modal-plugin', // Ken Theme
368
- 'sweetalert', // Church Suite Theme by Webnus
369
- 'woo_stock_alerts_admin_css', // WooCommerce bolder product alerts
370
- 'custom_wp_admin_css', // Fix for Add Social Share
371
- 'fo_css', // Fix for Add Social Share
372
- 'font_css', // Fix for Add Social Share
373
- 'font2_css', // Fix for Add Social Share
374
- 'font3_css', // Fix for Add Social Share
375
- 'hover_css', // Fix for Add Social Share
376
- 'fontend_styling', // Fix for Add Social Share
377
- 'datatable', // WP Todo
378
- 'bootstrap', // WP Todo
379
- 'flipclock', // WP Todo
380
- 'repuso_css_admin', // Social testimonials and reviews by Repuso
381
- );
382
-
383
- $scripts = array(
384
- 'kad_admin_js', // Pinnacle theme
385
- 'dt-chart', // DesignThemes core features plugin
386
- 'tweeetshare_font_script', // TweetShare - Click To Tweet
387
- 'tweeetshare_jquery_script', // TweetShare - Click To Tweet
388
- 'tweeetshare_jqueryui_script', // TweetShare - Click To Tweet
389
- 'tweeetshare_custom_script', // TweetShare - Click To Tweet
390
- 'imagify-promise-polyfill', // Imagify
391
- 'imagify-sweetalert', // Imagify
392
- 'imagify-chart', // Imagify
393
- 'chartjs', // Comet Cache Pro
394
- 'wp-reactjs-starter', // wp-real-media-library
395
- 'jquery-tooltipster', // WP Real Media Library
396
- 'jquery-nested-sortable', // WP Real Media Library
397
- 'jquery-aio-tree', // WP Real Media Library
398
- 'wp-media-picker', // WP Real Media Library
399
- 'rml-general', // WP Real Media Library
400
- 'rml-library', // WP Real Media Library
401
- 'rml-grid', // WP Real Media Library
402
- 'rml-list', // WP Real Media Library
403
- 'rml-modal', // WP Real Media Library
404
- 'rml-order', // WP Real Media Library
405
- 'rml-meta', // WP Real Media Library
406
- 'rml-uploader', // WP Real Media Library
407
- 'rml-options', // WP Real Media Library
408
- 'rml-usersettings', // WP Real Media Library
409
- 'rml-main', // WP Real Media Library
410
- 'control-panel-sweet-alert', // Ken Theme
411
- 'sweet-alert-js', // Vitrine Theme
412
- 'theme-admin-script', // Vitrine Theme
413
- 'sweetalert', // Church Suite Theme by Webnus
414
- 'be_alerts_charts', // WooCommerce bolder product alerts
415
- 'magayo-lottery-results', // Magayo Lottery Results
416
- 'control-panel-sweet-alert', // Ken Theme
417
- 'cpm_chart', // WP Project Manager
418
- 'adminscripts', // Artisan Nayma Theme
419
- 'artisan-pages-script', // Artisan Pages Plugin
420
- 'tooltipster', // Grand News Theme
421
- 'fancybox', // Grand News Theme
422
- 'grandnews-admin-cript', // Grand News Theme
423
- 'colorpicker', // Grand News Theme
424
- 'eye', // Grand News Theme
425
- 'icheck', // Grand News Theme
426
- 'learn-press-chart', // LearnPress
427
- 'theme-script-main', // My Listing Theme by 27collective
428
- 'selz', // Selz eCommerce
429
- 'tie-admin-scripts', // Tie Theme
430
- 'blossomthemes-toolkit', // BlossomThemes Toolkit
431
- 'illdy-widget-upload-image', // Illdy Companion By Colorlib
432
- 'moment.js', // WooCommerce Table Rate Shipping
433
- 'default', // Bridge Theme
434
- 'qode-tax-js', // Bridge Theme
435
- 'wc_smartship_moment_js', // WooCommerce Posti SmartShip by markup.fi
436
- 'ecwid-admin-js', // Fixes Conflict for Ecwid Shopping Cart
437
- 'td-wp-admin-js', // Newspaper by tagDiv
438
- 'moment', // Screets Live Chat
439
- 'wpmf-base', // WP Media Folder Fix
440
- 'wpmf-media-filters', // WP Media Folder Fix
441
- 'wpmf-folder-tree', // WP Media Folder Fix
442
- 'wpmf-assign-tree', // WP Media Folder Fix
443
- 'js_files_for_wp_admin', // TagDiv Composer Fix
444
- 'tdb_js_files_for_wp_admin_last', // TagDiv Composer Fix
445
- 'tdb_js_files_for_wp_admin', // TagDiv Composer Fix
446
- 'wd-functions', // affiliate boxes
447
- 'ellk-aliExpansion', // Ali Dropship Plugin
448
- 'ftmetajs', // Houzez Theme
449
- 'qode_admin_default', // Fix For Stockholm Theme
450
- 'qodef-tax-js', // Fix for Prowess Theme
451
- 'qodef-user-js', // Fix for Prowess Theme
452
- 'qodef-ui-admin', // Fix for Prowess Theme
453
- 'ssi_script', // Fix for Add Social Share
454
- 'live_templates', // Fix for Add Social Share
455
- 'default', // Fix for Add Social Share
456
- 'handsontable', // Fix WP Tables
457
- 'moment-js', // Magee Shortcodes
458
- 'postbox', // Scripts from wp-admin enqueued everywhere by WP Posts Filter
459
- 'link', // Scripts from wp-admin enqueued everywhere by WP Posts Filter
460
- 'wpvr_scripts', // WP Video Robot
461
- 'wpvr_scripts_loaded', // WP Video Robot
462
- 'wpvr_scripts_assets', // WP Video Robot
463
- 'writee_widget_admin', // Fix for the Writtee theme
464
- '__ytprefs_admin__', // Fix for YouTube by EmbedPlus plugin
465
- 'momentjs', // Fix for Blog Time plugin
466
- 'c2c_BlogTime', // Fix for Blog Time plugin
467
- 'material-wp', // Fix for MaterialWP plugin
468
- 'wp-color-picker-alpha', // Fix for MaterialWP plugin
469
- 'grandtour-theme-script', // Grandtour Theme
470
- 'swifty-img-widget-admin-script', // Fix for Swifty Image Widget
471
- 'datatable', // WP Todo
472
- 'flipclock', // WP Todo
473
- 'bootstrap', // WP Todo
474
- 'repuso_js_admin', // Social testimonials and reviews by Repuso
475
- 'chart', // Video Mate Pro Theme
476
- 'reuse_vendor', // RedQ Reuse Form
477
- 'jetpack-onboarding-vendor', // Jetpack Onboarding Bluehost
478
- 'date-js', // Google Analytics by Web Dorado
479
- );
480
-
481
- if ( ! empty( $styles ) ) {
482
- foreach ( $styles as $style ) {
483
- wp_dequeue_style( $style ); // Remove CSS file from MI screen
484
- wp_deregister_style( $style );
485
- }
486
- }
487
- if ( ! empty( $scripts ) ) {
488
- foreach ( $scripts as $script ) {
489
- wp_dequeue_script( $script ); // Remove JS file from MI screen
490
- wp_deregister_script( $script );
491
- }
492
- }
493
-
494
- $third_party = array(
495
- 'select2',
496
- 'sweetalert',
497
- 'clipboard',
498
- 'matchHeight',
499
- 'inputmask',
500
- 'jquery-confirm',
501
- 'list',
502
- 'toastr',
503
- 'tooltipster',
504
- 'flag-icon',
505
- 'bootstrap',
506
- );
507
-
508
- global $wp_styles;
509
- foreach ( $wp_styles->queue as $handle ) {
510
- if ( strpos( $wp_styles->registered[ $handle ]->src, 'wp-content' ) === false ) {
511
- return;
512
- }
513
-
514
- if ( strpos( $wp_styles->registered[ $handle ]->handle, 'monsterinsights' ) !== false ) {
515
- return;
516
- }
517
-
518
- foreach ( $third_party as $partial ) {
519
- if ( strpos( $wp_styles->registered[ $handle ]->handle, $partial ) !== false ) {
520
- wp_dequeue_style( $handle ); // Remove css file from MI screen
521
- wp_deregister_style( $handle );
522
- break;
523
- } else if ( strpos( $wp_styles->registered[ $handle ]->src, $partial ) !== false ) {
524
- wp_dequeue_style( $handle ); // Remove css file from MI screen
525
- wp_deregister_style( $handle );
526
- break;
527
- }
528
- }
529
- }
530
-
531
- global $wp_scripts;
532
- foreach ( $wp_scripts->queue as $handle ) {
533
- if ( strpos( $wp_scripts->registered[ $handle ]->src, 'wp-content' ) === false ) {
534
- return;
535
- }
536
-
537
- if ( strpos( $wp_scripts->registered[ $handle ]->handle, 'monsterinsights' ) !== false ) {
538
- return;
539
- }
540
-
541
- foreach ( $third_party as $partial ) {
542
- if ( strpos( $wp_scripts->registered[ $handle ]->handle, $partial ) !== false ) {
543
- wp_dequeue_script( $handle ); // Remove JS file from MI screen
544
- wp_deregister_script( $handle );
545
- break;
546
- } else if ( strpos( $wp_scripts->registered[ $handle ]->src, $partial ) !== false ) {
547
- wp_dequeue_script( $handle ); // Remove JS file from MI screen
548
- wp_deregister_script( $handle );
549
- break;
550
- }
551
- }
552
- }
553
-
554
- // Remove actions from themes that are not following best practices and break the admin doing so
555
- // Theme: Newspaper by tagDiv
556
- remove_action( 'admin_enqueue_scripts', 'load_wp_admin_js' );
557
- remove_action( 'admin_enqueue_scripts', 'load_wp_admin_css' );
558
- remove_action( 'admin_print_scripts-widgets.php', 'td_on_admin_print_scripts_farbtastic' );
559
- remove_action( 'admin_print_styles-widgets.php', 'td_on_admin_print_styles_farbtastic' );
560
- remove_action( 'admin_print_footer_scripts', 'check_if_media_uploads_is_loaded', 9999 );
561
- remove_action( 'print_media_templates', 'td_custom_gallery_settings_hook' );
562
- remove_action( 'print_media_templates', 'td_change_backbone_js_hook' );
563
- remove_action( 'admin_head', 'tdc_on_admin_head' ); // TagDiv Composer Fix
564
- remove_action( 'print_media_templates', 'us_media_templates' ); // Impreza Theme Fix
565
- remove_action( 'admin_footer', 'gt3pg_add_gallery_template' ); // GT3 Photo & Video Gallery By GT3 Themes Plugin Fix
566
- // Plugin WP Booklist:
567
- remove_action( 'admin_footer', 'wpbooklist_jre_dismiss_prem_notice_forever_action_javascript' );
568
- remove_action( 'admin_footer', 'wpbooklist_dashboard_add_book_action_javascript' );
569
- remove_action( 'admin_footer', 'wpbooklist_edit_book_show_form_action_javascript' );
570
- remove_action( 'admin_footer', 'wpbooklist_show_book_in_colorbox_action_javascript' );
571
- remove_action( 'admin_footer', 'wpbooklist_new_lib_shortcode_action_javascript' );
572
- remove_action( 'admin_footer', 'wpbooklist_dashboard_save_library_display_options_action_javascript' );
573
- remove_action( 'admin_footer', 'wpbooklist_dashboard_save_post_display_options_action_javascript' );
574
- remove_action( 'admin_footer', 'wpbooklist_dashboard_save_page_display_options_action_javascript' );
575
- remove_action( 'admin_footer', 'wpbooklist_update_display_options_action_javascript' );
576
- remove_action( 'admin_footer', 'wpbooklist_edit_book_pagination_action_javascript' );
577
- remove_action( 'admin_footer', 'wpbooklist_edit_book_switch_lib_action_javascript' );
578
- remove_action( 'admin_footer', 'wpbooklist_edit_book_search_action_javascript' );
579
- remove_action( 'admin_footer', 'wpbooklist_edit_book_actual_action_javascript' );
580
- remove_action( 'admin_footer', 'wpbooklist_delete_book_action_javascript' );
581
- remove_action( 'admin_footer', 'wpbooklist_user_apis_action_javascript' );
582
- remove_action( 'admin_footer', 'wpbooklist_upload_new_stylepak_action_javascript' );
583
- remove_action( 'admin_footer', 'wpbooklist_upload_new_post_template_action_javascript' );
584
- remove_action( 'admin_footer', 'wpbooklist_upload_new_page_template_action_javascript' );
585
- remove_action( 'admin_footer', 'wpbooklist_create_db_library_backup_action_javascript' );
586
- remove_action( 'admin_footer', 'wpbooklist_restore_db_library_backup_action_javascript' );
587
- remove_action( 'admin_footer', 'wpbooklist_create_csv_action_javascript' );
588
- remove_action( 'admin_footer', 'wpbooklist_amazon_localization_action_javascript' );
589
- remove_action( 'admin_footer', 'wpbooklist_delete_book_bulk_action_javascript' );
590
- remove_action( 'admin_footer', 'wpbooklist_reorder_action_javascript' );
591
- remove_action( 'admin_footer', 'wpbooklist_exit_results_action_javascript' );
592
- remove_action( 'admin_footer', 'wpbooklist_storytime_select_category_action_javascript' );
593
- remove_action( 'admin_footer', 'wpbooklist_storytime_get_story_action_javascript' );
594
- remove_action( 'admin_footer', 'wpbooklist_storytime_expand_browse_action_javascript' );
595
- remove_action( 'admin_footer', 'wpbooklist_storytime_save_settings_action_javascript' );
596
- remove_action( 'admin_footer', 'wpbooklist_delete_story_action_javascript' );
597
- }
598
-
599
- add_action( 'admin_enqueue_scripts', 'monsterinsights_remove_conflicting_asset_files', 9999 );
600
-
601
- /**
602
- * Remove non-MI notices from MI page.
603
- *
604
- * @return null Return early if not on the proper screen.
605
- * @since 6.0.0
606
- * @access public
607
- *
608
- */
609
- function hide_non_monsterinsights_warnings() {
610
- // Bail if we're not on a MonsterInsights screen.
611
- if ( empty( $_REQUEST['page'] ) || strpos( $_REQUEST['page'], 'monsterinsights' ) === false ) {
612
- return;
613
- }
614
-
615
- global $wp_filter;
616
- if ( ! empty( $wp_filter['user_admin_notices']->callbacks ) && is_array( $wp_filter['user_admin_notices']->callbacks ) ) {
617
- foreach ( $wp_filter['user_admin_notices']->callbacks as $priority => $hooks ) {
618
- foreach ( $hooks as $name => $arr ) {
619
- if ( is_object( $arr['functio