Google Analytics Dashboard for WP (GADWP) - Version 7.5.1

Version Description

Download this release

Release Info

Developer manejaam
Plugin Icon 128x128 Google Analytics Dashboard for WP (GADWP)
Version 7.5.1
Comparing to
See all releases

Code changes from version 7.5.0 to 7.5.1

assets/css/admin-metabox.css CHANGED
@@ -47,3 +47,109 @@
47
  text-decoration: underline;
48
  display: block;
49
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  text-decoration: underline;
48
  display: block;
49
  }
50
+ /*
51
+ ***************************
52
+ ** Page Insights in Meta **
53
+ ***************************
54
+ */
55
+
56
+ #exactmetrics-metabox-page-insights{
57
+ margin-top: 24px;
58
+ }
59
+ #exactmetrics_hide_page_insights{
60
+ margin-top: 8px;
61
+ }
62
+ #exactmetrics-page-insights-content{
63
+ display: none;
64
+ }
65
+ #exactmetrics-page-insights-content.active{
66
+ display: block;
67
+ }
68
+ .exactmetrics-page-insights__tabs{
69
+ display: grid;
70
+ grid-template-columns: 1fr 1fr;
71
+ }
72
+ .exactmetrics-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
+ .exactmetrics-page-insights__tabs-tab.active,
88
+ .exactmetrics-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
+ .exactmetrics-page-insights__tabs-tab:focus{
96
+ outline: none;
97
+ -webkit-box-shadow: none;
98
+ box-shadow: none;
99
+ }
100
+ .exactmetrics-page-insights-tabs-content{
101
+ border-left: 1px solid #C4C4C4;
102
+ border-right: 1px solid #C4C4C4;
103
+ border-bottom: 1px solid #C4C4C4;
104
+ }
105
+ .exactmetrics-page-insights-tabs-content__tab{
106
+ display: none;
107
+ transition: 0.3s all ease-in-out;
108
+ }
109
+ .exactmetrics-page-insights-tabs-content__tab.active{
110
+ display: block;
111
+ }
112
+ .exactmetrics-page-insights-tabs-content__tab-items{
113
+ display: grid;
114
+ grid-template-columns: 1fr 1fr;
115
+ padding: 15px;
116
+ }
117
+ .exactmetrics-page-insights-tabs-content__tab-item{
118
+ padding: 16px;
119
+ }
120
+ .exactmetrics-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 .exactmetrics-page-insights-tabs-content__tab-item__result span{
129
+ filter: blur(3px);
130
+ }
131
+ .lite .exactmetrics-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
+ .exactmetrics-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
+ .exactmetrics-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
+ }
assets/css/admin-metabox.min.css CHANGED
@@ -1 +1 @@
1
- .exactmetrics-metabox-input-checkbox{margin-top:15px}.exactmetrics-metabox-input-checkbox input[disabled]{cursor:not-allowed}.exactmetrics-metabox-helper{font-size:12px;line-height:120%;color:#7D7D7D;margin-top:16.5px}.exactmetrics-metabox-pro-badge{margin-top:15px;padding:15px;background:#EAFAEE;border:1px solid #46BF40;display:flex;position:relative;line-height:100%}.exactmetrics-metabox-pro-badge span{color:#31862D;font-weight:bold;font-size:13px;line-height:100%;letter-spacing:-0.02em;padding-left:20px}.exactmetrics-metabox-pro-badge span svg{position:absolute;left:15px}.exactmetrics-metabox-pro-badge .exactmetrics-metabox-pro-badge-upgrade{text-align:right;flex:1}.exactmetrics-metabox-pro-badge .exactmetrics-metabox-pro-badge-upgrade a{font-size:13px;color:#31862D;text-decoration:underline;display:block}
1
+ .exactmetrics-metabox-input-checkbox{margin-top:15px}.exactmetrics-metabox-input-checkbox input[disabled]{cursor:not-allowed}.exactmetrics-metabox-helper{font-size:12px;line-height:120%;color:#7D7D7D;margin-top:16.5px}.exactmetrics-metabox-pro-badge{margin-top:15px;padding:15px;background:#EAFAEE;border:1px solid #46BF40;display:flex;position:relative;line-height:100%}.exactmetrics-metabox-pro-badge span{color:#31862D;font-weight:bold;font-size:13px;line-height:100%;letter-spacing:-0.02em;padding-left:20px}.exactmetrics-metabox-pro-badge span svg{position:absolute;left:15px}.exactmetrics-metabox-pro-badge .exactmetrics-metabox-pro-badge-upgrade{text-align:right;flex:1}.exactmetrics-metabox-pro-badge .exactmetrics-metabox-pro-badge-upgrade a{font-size:13px;color:#31862D;text-decoration:underline;display:block}#exactmetrics-metabox-page-insights{margin-top:24px}#exactmetrics_hide_page_insights{margin-top:8px}#exactmetrics-page-insights-content{display:none}#exactmetrics-page-insights-content.active{display:block}.exactmetrics-page-insights__tabs{display:grid;grid-template-columns:1fr 1fr}.exactmetrics-page-insights__tabs-tab{padding:4px;font-style:normal;font-weight:400;font-size:13px;line-height:16px;border-left:1px solid transparent;border-right:1px solid transparent;border-top:1px solid transparent;border-bottom:1px solid #C4C4C4;text-decoration:none;text-align:center;transition:0.3s all ease-in-out}.exactmetrics-page-insights__tabs-tab.active,.exactmetrics-page-insights__tabs-tab:focus{color:#2C3338;border-left:1px solid #C4C4C4;border-right:1px solid #C4C4C4;border-top:1px solid #C4C4C4;border-bottom:1px solid transparent}.exactmetrics-page-insights__tabs-tab:focus{outline:none;-webkit-box-shadow:none;box-shadow:none}.exactmetrics-page-insights-tabs-content{border-left:1px solid #C4C4C4;border-right:1px solid #C4C4C4;border-bottom:1px solid #C4C4C4}.exactmetrics-page-insights-tabs-content__tab{display:none;transition:0.3s all ease-in-out}.exactmetrics-page-insights-tabs-content__tab.active{display:block}.exactmetrics-page-insights-tabs-content__tab-items{display:grid;grid-template-columns:1fr 1fr;padding:15px}.exactmetrics-page-insights-tabs-content__tab-item{padding:16px}.exactmetrics-page-insights-tabs-content__tab-item__result{font-style:normal;font-weight:500;font-size:20px;line-height:24px;color:#3C434A;position:relative}.lite .exactmetrics-page-insights-tabs-content__tab-item__result span{filter:blur(3px)}.lite .exactmetrics-page-insights-tabs-content__tab-item__result:after{content:'';width:10px;height:14px;background:url("../images/restricted.svg") no-repeat center center;position:absolute;left:calc(40% - 5px);top:calc(50% - 7px)}.exactmetrics-page-insights-tabs-content__tab-item__title{font-style:normal;font-weight:400;font-size:12px;line-height:14px;color:#7D7D7D;margin-top:4px}.exactmetrics-insights-draft{font-size:12px;font-style:normal;padding:16px;border:1px solid #C4C4C4;margin-top:8px;color:rgb(117, 117, 117)}
assets/gutenberg/js/editor.min.js CHANGED
@@ -1,6 +1,6 @@
1
- !function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=80)}([function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";function r(e){return"[object Array]"===x.call(e)}function i(e){return void 0===e}function o(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function a(e){return"[object ArrayBuffer]"===x.call(e)}function l(e){return"undefined"!=typeof FormData&&e instanceof FormData}function s(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function c(e){return"string"==typeof e}function u(e){return"number"==typeof e}function d(e){return null!==e&&"object"==typeof e}function p(e){return"[object Date]"===x.call(e)}function h(e){return"[object File]"===x.call(e)}function m(e){return"[object Blob]"===x.call(e)}function f(e){return"[object Function]"===x.call(e)}function g(e){return d(e)&&f(e.pipe)}function w(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function v(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function y(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function b(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function S(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=S(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;n<r;n++)b(arguments[n],e);return t}function E(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=E(t[n],e):t[n]="object"==typeof e?E({},e):e}for(var t={},n=0,r=arguments.length;n<r;n++)b(arguments[n],e);return t}function C(e,t,n){return b(t,function(t,r){e[r]=n&&"function"==typeof t?_(t,n):t}),e}var _=n(57),x=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:a,isBuffer:o,isFormData:l,isArrayBufferView:s,isString:c,isNumber:u,isObject:d,isUndefined:i,isDate:p,isFile:h,isBlob:m,isFunction:f,isStream:g,isURLSearchParams:w,isStandardBrowserEnv:y,forEach:b,merge:S,deepMerge:E,extend:C,trim:v}},function(e,t,n){var r=n(35)("wks"),i=n(22),o=n(5).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){var r,i;/*!
2
  Copyright (c) 2018 Jed Watson.
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 l in r)o.call(r,l)&&r[l]&&e.push(l);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(5),i=n(0),o=n(30),a=n(10),l=n(9),s=function(e,t,n){var c,u,d,p=e&s.F,h=e&s.G,m=e&s.S,f=e&s.P,g=e&s.B,w=e&s.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])&&l(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&s.R&&y&&!y[c]&&a(y,c,d)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},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(47),o=n(31),a=Object.defineProperty;t.f=n(7)?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){e.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(11);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(6),i=n(15);e.exports=n(7)?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){var r=n(51),i=n(29);e.exports=function(e){return r(i(e))}},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(29);e.exports=function(e){return Object(r(e))}},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(87)(!0);n(46)(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,n){var r=n(50),i=n(36);e.exports=Object.keys||function(e){return r(e,i)}},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(99),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){t.f={}.propertyIsEnumerable},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:"exactmetrics-donut-container",style:{flexDirection:"column"}},wp.element.createElement("div",{className:"exactmetrics-donut",style:{width:n,paddingBottom:n,backgroundColor:"#f2f2f2"}},wp.element.createElement("div",{className:"exactmetrics-donut-sections",style:{transform:"rotate(0deg)"}},wp.element.createElement("div",{className:"exactmetrics-donut-section exactmetrics-donut-section-right",style:{transform:"rotate(0deg)"}},wp.element.createElement("div",{className:"exactmetrics-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:"exactmetrics-donut-section exactmetrics-donut-section-left",style:{transform:"rotate(0deg)"}},wp.element.createElement("div",{className:"exactmetrics-donut-filler",style:{backgroundColor:o,transform:"rotate("+e+"deg)"}}))}}()),wp.element.createElement("div",{className:"exactmetrics-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";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,n){"use strict";var r=(n(26),n(44),n(69)),i=(n.n(r),n(18));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){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(88);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(11);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(90),o=n(36),a=n(34)("IE_PROTO"),l=function(){},s=function(){var e,t=n(48)("iframe"),r=o.length;for(t.style.display="none",n(93).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s.prototype[o[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=r(e),n=new l,l.prototype=null,n[a]=e):n=s(),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(35)("keys"),i=n(22);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(0),i=n(5),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(20)?"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(6).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){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(103),o=r(i),a=n(109),l=r(a);t.default=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=(0,l.default)(e);!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.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){n(105);for(var r=n(5),i=n(10),o=n(13),a=n(2)("toStringTag"),l="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(","),s=0;s<l.length;s++){var c=l[s],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(5),i=n(0),o=n(20),a=n(41),l=n(6).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},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";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(213)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(85),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(20),i=n(4),o=n(49),a=n(10),l=n(13),s=n(89),c=n(37),u=n(53),d=n(2)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,m,f,g,w){s(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",C="values"==f,_=!1,x=e.prototype,k=x[d]||x["@@iterator"]||f&&x[f],O=k||S(f),T=f?C?S("entries"):O:void 0,F="Array"==t?x.entries||k:k;if(F&&(b=u(F.call(new e)))!==Object.prototype&&b.next&&(c(b,E,!0),r||"function"==typeof b[d]||a(b,d,h)),C&&k&&"values"!==k.name&&(_=!0,O=function(){return k.call(this)}),r&&!w||!p&&!_&&x[d]||a(x,d,O),l[t]=O,l[E]=h,f)if(v={values:C?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||_),t,v);return v}},function(e,t,n){e.exports=!n(7)&&!n(12)(function(){return 7!=Object.defineProperty(n(48)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(11),i=n(5).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){e.exports=n(10)},function(e,t,n){var r=n(9),i=n(14),o=n(91)(!1),a=n(34)("IE_PROTO");e.exports=function(e,t){var n,l=i(e),s=0,c=[];for(n in l)n!=a&&r(l,n)&&c.push(n);for(;t.length>s;)r(l,n=t[s++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(33);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(28),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(16),o=n(34)("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(55),i=n(2)("iterator"),o=n(13);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(33),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,l;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(l=r(t))&&"function"==typeof t.callee?"Arguments":l}},function(e,t,n){e.exports=n(112)},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 l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),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(118),a={"Content-Type":"application/x-www-form-urlencoded"},l={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=n(61):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(e=n(61)),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}};l.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){l.headers[e]={}}),i.forEach(["post","put","patch"],function(e){l.headers[e]=i.merge(a)}),e.exports=l}).call(t,n(117))},function(e,t,n){"use strict";var r=n(1),i=n(119),o=n(58),a=n(121),l=n(124),s=n(125),c=n(62);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?l(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(126),v=(e.withCredentials||s(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(120);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 l=i.concat(o).concat(a),s=Object.keys(t).filter(function(e){return-1===l.indexOf(e)});return r.forEach(s,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){"use strict";t.__esModule=!0;var r=n(66),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={default:n(146),__esModule:!0}},function(e,t,n){e.exports=n(148)},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-exactmetrics-popular-posts-theme-control-"+w,y=function(e){return p(e.target.value)},b=[],S=0,E=0,C=0;for(var _ in m)if(m.hasOwnProperty(_)){var x=m[_];void 0===b[S]&&(b[S]=[]),b[S][E]=x,x.value===n&&(C=S),3===E?(E=0,S++):E++}var k=function(){return wp.element.createElement("span",{className:"exactmetrics-theme-picker-check"},s.a.checkmark)},O=function(e){var t="exactmetrics-theme-picker-label-"+e.value;return e.value===n&&(t+=" exactmetrics-theme-picker-label-selected"),l.a.canaccess(e.level)||(t+=" exactmetrics-theme-picker-label-disabled"),t};return!Object(i.isEmpty)(m)&&wp.element.createElement(d,{id:v,help:o,className:a()(t,"exactmetrics-theme-picker")},wp.element.createElement(c.c,{naturalSlideWidth:250,totalSlides:b.length,className:"exactmetrics-theme-picker-carousel",currentSlide:C,dragEnabled:!1},wp.element.createElement(c.f,null,b.map(function(e,t){return wp.element.createElement(c.e,{className:"exactmetrics-theme-picker-slide",index:t,key:v+"-"+t},e.map(function(e,r){return wp.element.createElement("div",{key:v+"-"+t+"-"+r,className:"exactmetrics-slider-theme-option"},wp.element.createElement("input",{id:v+"-"+t+"-"+r,className:"exactmetrics-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:"exactmetrics-theme-picker-label-icon"},g[e.value]?g[e.value]:""),wp.element.createElement("span",{className:"exactmetrics-theme-picker-label-text"},e.label)))}))})),function(){if(b.length>1)return wp.element.createElement("div",{className:"exactmetrics-carousel-navigation"},wp.element.createElement(c.a,null,s.a.chevronleft),wp.element.createElement(c.d,{className:"exactmetrics-carousel-navigation-dots"}),wp.element.createElement(c.b,null,s.a.chevronright))}()))}t.a=r;var i=n(18),o=(n.n(i),n(3)),a=n.n(o),l=n(151),s=n(152),c=n(153),u=wp.compose.useInstanceId,d=wp.components.BaseControl},function(e,t){e.exports=React},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(164),o=r(i),a=n(166),l=r(a),s="function"==typeof l.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(o.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t,n){var r=n(50),i=n(36).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(24),i=n(15),o=n(14),a=n(31),l=n(9),s=n(47),c=Object.getOwnPropertyDescriptor;t.f=n(7)?c:function(e,t){if(e=o(e),t=a(t,!0),s)try{return c(e,t)}catch(e){}if(l(e,t))return i(!r.f.call(e,t),e[t])}},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(26),a=n(188),l={"":{plural_forms:function(e){return 1===e?0:1}}},s=/^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({},l),r.data[t]),e),r.data[t][""]=i(i({},l[""]),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,l=t?t+""+e:e,s=!(null===(o=r.data)||void 0===o||null===(a=o[null!==i&&void 0!==i?i:"default"])||void 0===a||!a[l]);return n&&(s=n.applyFilters("i18n.has_translation",s,e,t,i),s=n.applyFilters("i18n.has_translation_"+g(i),s,e,t,i)),s};if(e&&h(e,t),n){var C=function(e){s.test(e)&&c()};n.addAction("hookAdded","core/i18n",C),n.addAction("hookRemoved","core/i18n",C)}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";function r(e){return Object(i.a)(e)||Object(o.a)(e)||Object(a.a)(e)||Object(l.a)()}t.a=r;var i=n(201),o=n(202),a=n(77),l=n(203)},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,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(76)},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,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(l.a)(e,["children"]);return Object(s.f)("div",i({dangerouslySetInnerHTML:{__html:t}},n))}t.a=o;var a=n(26),l=n(44),s=n(27)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(81),i=(n.n(r),n(82)),o=(n.n(i),n(83),n(144),wp.i18n.setLocaleData);void 0!==window.exactmetrics_gutenberg_tool_vars.translations&&o(window.exactmetrics_gutenberg_tool_vars.translations,"google-analytics-dashboard-for-wp")},function(e,t){},function(e,t){},function(e,t,n){"use strict";n(84),n(142)},function(e,t,n){"use strict";var r=n(45),i=n.n(r),o=n(23),a=n.n(o),l=n(39),s=n.n(l),c=n(17),u=n(56),d=n.n(u),p=n(129),h=n(133),m=n(134),f=n(136),g=n(137),w=n(138),v=n(139),y=n(140),b=n(141),S=wp.i18n.__,E=wp.element,C=E.Fragment,_=E.useState,x=E.useEffect,k=wp.plugins.registerPlugin,O=wp.editPost,T=O.PluginSidebar,F=O.PluginSidebarMoreMenuItem,M=wp.data.select,N=function(e){var t=M("core/editor").getEditedPostAttribute("title"),n=S("Headline Analyzer","google-analytics-dashboard-for-wp"),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-dashboard-for-wp"),o=_({}),l=s()(o,2),u=l[0],E=l[1],k=document.querySelector(".components-button[aria-label='"+n+"'] svg"),O=void 0!==u.previousHeadlinesData?u.previousHeadlinesData:[],N=sprintf(S("This headline analyzer is part of ExactMetrics to help you increase your traffic. See your %1swebsite traffic reports%2s.","google-analytics-dashboard-for-wp"),'<a href="'+exactmetrics_gutenberg_tool_vars.reports_url+'" className="exactmetrics-headline-analyzer-link">',"</a>"),j=document.querySelector(".exactmetrics-headline-analyzer-wrapper");if(k){var P=document.createElement("span");if(u.dataExist&&void 0!==u.currentHeadlineData.score){var D=u.currentHeadlineData.score,A=D<40?"red":D<=60?"orange":"green";k.parentNode.setAttribute("exactmetrics-button-color",A),k.nextElementSibling?k.nextElementSibling.innerHTML=D+"/100":(P.innerHTML=D+"/100",k.parentNode.insertBefore(P,k.nextSibling))}else k.parentNode.setAttribute("exactmetrics-button-color","red"),k.nextElementSibling?k.nextElementSibling.innerHTML="00/100":(P.innerHTML="00/100",k.parentNode.insertBefore(P,k.nextSibling))}if(j){var L=j.parentNode.querySelectorAll(".components-panel__header");L&&L.forEach(function(e){var t=e.querySelector('[aria-pressed="true"]');t&&null!==t&&(t.style.display="none")})}var B=function(e){E(a()({},u,e))};return x(function(){var e=new FormData;e.append("_ajax_nonce",exactmetrics_gutenberg_tool_vars.nonce),e.append("action","exactmetrics_gutenberg_headline_analyzer_get_results"),e.append("dataType","json"),e.append("q",t),d.a.post(exactmetrics_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(C,null,wp.element.createElement(F,{target:"exactmetrics-headline-analyzer"},n),wp.element.createElement(T,{name:"exactmetrics-headline-analyzer",title:n,className:"exactmetrics-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:"exactmetrics-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:"exactmetrics-headline-analyzer-bottom-notice"},wp.element.createElement("p",{dangerouslySetInnerHTML:{__html:N}}))))};"undefined"!=typeof exactmetrics_gutenberg_tool_vars&&exactmetrics_gutenberg_tool_vars.allowed_post_types.includes(exactmetrics_gutenberg_tool_vars.current_post_type)&&exactmetrics_gutenberg_tool_vars.is_headline_analyzer_enabled&&k("exactmetrics-headline-analyzer",{icon:c.a.headlineBlack,render:N})},function(e,t,n){e.exports={default:n(86),__esModule:!0}},function(e,t,n){n(19),n(94),e.exports=n(0).Array.from},function(e,t,n){var r=n(28),i=n(29);e.exports=function(e){return function(t,n){var o,a,l=String(i(t)),s=r(n),c=l.length;return s<0||s>=c?e?"":void 0:(o=l.charCodeAt(s),o<55296||o>56319||s+1===c||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):o:e?l.slice(s,s+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(32),i=n(15),o=n(37),a={};n(10)(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(6),i=n(8),o=n(21);e.exports=n(7)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),l=a.length,s=0;l>s;)r.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var r=n(14),i=n(52),o=n(92);e.exports=function(e){return function(t,n,a){var l,s=r(t),c=i(s.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((l=s[u++])!=l)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(28),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(5).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(30),i=n(4),o=n(16),a=n(95),l=n(96),s=n(52),c=n(97),u=n(54);i(i.S+i.F*!n(98)(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&&l(v))for(t=s(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(13),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(6),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(100),__esModule:!0}},function(e,t,n){n(101),e.exports=n(0).Object.assign},function(e,t,n){var r=n(4);r(r.S+r.F,"Object",{assign:n(102)})},function(e,t,n){"use strict";var r=n(7),i=n(21),o=n(38),a=n(24),l=n(16),s=n(51),c=Object.assign;e.exports=!c||n(12)(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=l(e),c=arguments.length,u=1,d=o.f,p=a.f;c>u;)for(var h,m=s(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(104),__esModule:!0}},function(e,t,n){n(40),n(19),e.exports=n(108)},function(e,t,n){"use strict";var r=n(106),i=n(107),o=n(13),a=n(14);e.exports=n(46)(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(55),i=n(2)("iterator"),o=n(13);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){e.exports={default:n(110),__esModule:!0}},function(e,t,n){n(40),n(19),e.exports=n(111)},function(e,t,n){var r=n(8),i=n(54);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(57),a=n(113),l=n(63),s=n(60),c=r(s);c.Axios=a,c.create=function(e){return r(l(c.defaults,e))},c.Cancel=n(64),c.CancelToken=n(127),c.isCancel=n(59),c.all=function(e){return Promise.all(e)},c.spread=n(128),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(58),a=n(114),l=n(115),s=n(63);r.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[l,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=s(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(116),a=n(59),l=n(60);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||l.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&&l())}function l(){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 s(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 s(e,t)),1!==m.length||f||i(l)},s.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(62);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(122),i=n(123);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 l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(i)&&l.push("path="+i),r.isString(o)&&l.push("domain="+o),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():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(64);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(39),i=n.n(r),o=n(3),a=n.n(o),l=n(130),s=n(131),c=n(132),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-dashboard-for-wp"),n=u("Try New Headline","google-analytics-dashboard-for-wp"),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:"exactmetrics-inline-buttons"},wp.element.createElement("button",{onClick:g,className:a()("exactmetrics-switcher-button",{active:"current-score"===d})},t),wp.element.createElement("button",{onClick:w,className:a()("exactmetrics-switcher-button",{active:"new-headline"===d})},n)),"new-headline"===d?wp.element.createElement(s.a,{analyzer:e.analyzer,setAnalyzer:e.setAnalyzer}):wp.element.createElement(l.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(25),a=wp.i18n.__,l=wp.element.Fragment,s=wp.components,c=s.PanelBody,u=s.PanelRow,d=function(e){var t=e.analyzer.currentHeadlineData.sentence,n=a("Score","google-analytics-dashboard-for-wp"),r=a("A good score is between 40 and 60. For best results, you should strive for 70 and above.","google-analytics-dashboard-for-wp"),s=e.analyzer.currentHeadlineData.score,d=s<40?"red":s<=60?"orange":"green",p="red"===d?"#EB5757":"orange"===d?"#F2994A":"#1EC185";return wp.element.createElement(l,null,wp.element.createElement(c,{title:n},wp.element.createElement(u,null,wp.element.createElement("div",{className:"exactmetrics-headline-analyzer-current-score-tab"},wp.element.createElement("h4",{className:"exactmetrics-headline-analyzer-current-title"},"“",t,"”"),wp.element.createElement("div",{className:"exactmetrics-headline-analyzer-pie-chart-container"},wp.element.createElement("span",{className:i()("exactmetrics-headline-analyzer-current-score",d)},s),wp.element.createElement(o.a,{barScore:s,barColor:p})),wp.element.createElement("p",null,r)))))};t.a=d},function(e,t,n){"use strict";var r=n(45),i=n.n(r),o=n(56),a=n.n(o),l=wp.i18n.__,s=wp.element.Fragment,c=wp.components,u=c.PanelBody,d=c.PanelRow,p=c.TextControl,h=c.Button,m=function(e){var t=l("Try New Headline","google-analytics-dashboard-for-wp"),n=l("Enter a different headline than your post title to see how it compares.","google-analytics-dashboard-for-wp"),r=l("Analyze","google-analytics-dashboard-for-wp"),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",exactmetrics_gutenberg_tool_vars.nonce),r.append("action","exactmetrics_gutenberg_headline_analyzer_get_results"),r.append("dataType","json"),r.append("q",n),a.a.post(exactmetrics_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(s,null,wp.element.createElement(u,{title:t},wp.element.createElement(d,null,wp.element.createElement("div",{className:"exactmetrics-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:"exactmetrics-headline-analyzer-input-field"}),wp.element.createElement(h,{className:"exactmetrics-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(25),a=wp.i18n.__,l=wp.element.Fragment,s=wp.components,c=s.PanelBody,u=s.PanelRow,d=function(e){var t=e.analyzer.currentHeadlineData.sentence,n=a("New Score","google-analytics-dashboard-for-wp"),r=a("A good score is between 40 and 60. For best results, you should strive for 70 and above.","google-analytics-dashboard-for-wp"),s=a("Current Score","google-analytics-dashboard-for-wp"),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(l,null,wp.element.createElement(c,{title:n},wp.element.createElement(u,null,wp.element.createElement("div",{className:"exactmetrics-headline-analyzer-new-score-panel"},wp.element.createElement("p",null,r),wp.element.createElement("h4",null,"“",d,"”"),wp.element.createElement("div",{className:"exactmetrics-headline-analyzer-pie-chart-container"},wp.element.createElement("span",{className:i()("exactmetrics-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()("exactmetrics-headline-analyzer-score-difference",m)},p>h?"+ ":p===h?"":"- ",w),wp.element.createElement("h5",null,s),wp.element.createElement("span",{className:i()("exactmetrics-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,l=wp.components,s=l.PanelBody,c=l.PanelRow,u=function(e){var t=o("Previous Scores","google-analytics-dashboard-for-wp"),n="undefined"!==e.analyzer.previousHeadlinesData?e.analyzer.previousHeadlinesData:[],r=document.querySelector(".edit-post-sidebar"),l="undefined"!==e.analyzer.activeTab?e.analyzer.activeTab:"current-score",u="current-score"===l?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(s,{title:t},wp.element.createElement(c,null,wp.element.createElement("ul",{className:"exactmetrics-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()("exactmetrics-headline-analyzer-score",n)},e.score),e.sentence)}})))))};t.a=u},function(e,t,n){"use strict";var r=n(17),i=n(3),o=n.n(i),a=n(135),l=wp.i18n.__,s=wp.element.Fragment,c=wp.components,u=c.PanelBody,d=c.PanelRow,p=function(e){var t=l("Word Balance","google-analytics-dashboard-for-wp"),n=l("Compare the percentages of your results to the goal for each category and adjust as necessary.","google-analytics-dashboard-for-wp"),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=l("Your headline would be more likely to get clicks if it had more uncommon words.","google-analytics-dashboard-for-wp"),m=e.data.result.common_words_per<.2?h:l("Headlines with 20-30% common words are more likely to get clicks.","google-analytics-dashboard-for-wp"),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:l("Headlines with uncommon words are more likely to get clicks.","google-analytics-dashboard-for-wp"),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=l("Emotionally triggered headlines are likely to drive more clicks.","google-analytics-dashboard-for-wp"),S=0===e.data.result.power_words.length?"orange":"green",E=0===e.data.result.power_words.length?"orange":"green-bg",C=l("Headlines with Power Words are more likely to get clicks.","google-analytics-dashboard-for-wp"),_=l("Common Words","google-analytics-dashboard-for-wp"),x=l("20-30%","google-analytics-dashboard-for-wp"),k=l("Uncommon Words","google-analytics-dashboard-for-wp"),O=l("10-20%","google-analytics-dashboard-for-wp"),T=l("Emotional Words","google-analytics-dashboard-for-wp"),F=l("10-15%","google-analytics-dashboard-for-wp"),M=l("Power Words","google-analytics-dashboard-for-wp"),N=l("At least one","google-analytics-dashboard-for-wp");return wp.element.createElement(s,null,wp.element.createElement(u,{title:t,className:o()("exactmetrics-headline-analyzer-panel-word-balance","exactmetrics-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:_,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:F,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:N,words:e.data.result.power_words,guideLine:C,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-dashboard-for-wp"),n={width:e.value+"%"};return wp.element.createElement("div",{className:"exactmetrics-headline-analyzer-words-block"},wp.element.createElement("h5",null,e.title),wp.element.createElement("div",{className:"exactmetrics-headline-analyzer-words-block-data"},wp.element.createElement("span",{className:i()("exactmetrics-headline-analyzer-words-block-percentage",e.classOnScore)},e.value,"%"),wp.element.createElement("span",{className:"exactmetrics-headline-analyzer-words-block-goal"},wp.element.createElement("strong",null,t),e.goalValue),wp.element.createElement("span",{className:"exactmetrics-headline-analyzer-words-block-progressbar"},wp.element.createElement("span",{className:"exactmetrics-headline-analyzer-progressbar-bg"}),wp.element.createElement("span",{className:i()("exactmetrics-headline-analyzer-progressbar-part",e.classOnScoreBg),style:n}))),wp.element.createElement("ul",{className:"exactmetrics-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:"exactmetrics-headline-analyzer-words-guideline"},e.guideLine))};t.a=a},function(e,t,n){"use strict";var r=n(17),i=n(3),o=n.n(i),a=wp.i18n.__,l=wp.element.Fragment,s=wp.components,c=s.PanelBody,u=s.PanelRow,d=function(e){var t=a("Your headline has a neutral sentiment.","google-analytics-dashboard-for-wp"),n=a("Headlines that are strongly positive or negative tend to get more engagement then neutral ones.","google-analytics-dashboard-for-wp"),i=a("Your headline has a positive sentiment.","google-analytics-dashboard-for-wp"),s=a("Positive headlines tend to get better engagement than neutral or negative ones.","google-analytics-dashboard-for-wp"),d=a("Your headline has a negative sentiment.","google-analytics-dashboard-for-wp"),p=a("Negative headlines are attention-grabbing and tend to perform better than neutral ones.","google-analytics-dashboard-for-wp"),h=a("Sentiment","google-analytics-dashboard-for-wp"),m="neu"===e.data.result.sentiment?a("Neutral","google-analytics-dashboard-for-wp"):"pos"===e.data.result.sentiment?a("Positive","google-analytics-dashboard-for-wp"):a("Negative","google-analytics-dashboard-for-wp"),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(l,null,wp.element.createElement(c,{title:h,className:o()("exactmetrics-headline-analyzer-panel-sentiment","exactmetrics-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)," ",s):"","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,l=wp.components,s=l.PanelBody,c=l.PanelRow,u=function(e){var t=e.data.result.headline_types.join(", "),n=i("Headline Type","google-analytics-dashboard-for-wp"),r=wp.element.createElement("span",{className:"exactmetrics-headline-analyzer-panel-types-title"},n,wp.element.createElement("span",null,t)),l=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-dashboard-for-wp"),"<br/><br/>",'<a href="https://optinmonster.com/why-these-21-headlines-went-viral-and-how-you-can-copy-their-success/" target="_blank" className="exactmetrics-headline-analyzer-link">',"</a>");return wp.element.createElement(a,null,wp.element.createElement(s,{title:r,className:"exactmetrics-headline-analyzer-panel-types"},wp.element.createElement(c,null,wp.element.createElement("h4",null,t),wp.element.createElement("p",{dangerouslySetInnerHTML:{__html:l}}))))};t.a=u},function(e,t,n){"use strict";var r=n(17),i=n(3),o=n.n(i),a=n(25),l=wp.i18n.__,s=wp.element.Fragment,c=wp.components,u=c.PanelBody,d=c.PanelRow,p=function(e){var t=l("Character Count","google-analytics-dashboard-for-wp"),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=l("Too Short","google-analytics-dashboard-for-wp"),m=l("You have space to add more keywords and power words to boost your rankings and click-through rate.","google-analytics-dashboard-for-wp")):n>=35&&n<=66?(p=l("Good","google-analytics-dashboard-for-wp"),m=l("Headlines that are about 55 characters long will display fully in search results and tend to get more clicks.","google-analytics-dashboard-for-wp")):n>=67&&(p=l("Too Long","google-analytics-dashboard-for-wp"),m=l("At this length, it will get cut off in search results. Try reducing it to about 55 characters.","google-analytics-dashboard-for-wp")),wp.element.createElement(s,null,wp.element.createElement(u,{title:t,className:o()("exactmetrics-headline-analyzer-panel-character-count","exactmetrics-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:"exactmetrics-headline-analyzer-pie-chart-container"},wp.element.createElement("span",{className:o()("exactmetrics-headline-analyzer-character-length",c)},n),wp.element.createElement(a.a,{barScore:i,barColor:h}),wp.element.createElement("span",{className:"exactmetrics-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(17),i=n(3),o=n.n(i),a=n(25),l=wp.i18n.__,s=wp.element.Fragment,c=wp.components,u=c.PanelBody,d=c.PanelRow,p=function(e){var t=l("Word Count","google-analytics-dashboard-for-wp"),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=l("Not Enough Words","google-analytics-dashboard-for-wp"),m=l("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-dashboard-for-wp")):n>=5&&n<=9?(c="green",h="#1EC185",p=l("Good","google-analytics-dashboard-for-wp"),m=l("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-dashboard-for-wp")):n>=10&&n<=11?(c="orange",h="#F2994A",p=l("Reduce Word Count","google-analytics-dashboard-for-wp")):(c="red",h="#EB5757",p=l("Too Many Words","google-analytics-dashboard-for-wp"),m=l("Your headline has too many words. Long headlines will get cut off in search results and won’t get as many clicks.","google-analytics-dashboard-for-wp")),wp.element.createElement(s,null,wp.element.createElement(u,{title:t,className:o()("exactmetrics-headline-analyzer-panel-word-count","exactmetrics-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:"exactmetrics-headline-analyzer-pie-chart-container"},wp.element.createElement("span",{className:o()("exactmetrics-headline-analyzer-word-length",c)},n),wp.element.createElement(a.a,{barScore:i,barColor:h}),wp.element.createElement("span",{className:"exactmetrics-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,l=o.PanelRow,s=function(e){var t=r("Beginning & Ending Words","google-analytics-dashboard-for-wp"),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-dashboard-for-wp"),s="",c="";return n.length>=6?(s=n.slice(0,3).join(" "),c=n.slice(-3).join(" ")):n.length>3&&n.length<=5?(s=n.slice(0,3).join(" "),c=n.slice(3).join(" ")):s=n.slice(0,3).join(" "),wp.element.createElement(i,null,wp.element.createElement(a,{title:t,className:"exactmetrics-headline-analyzer-panel-beginning-ending-words"},wp.element.createElement(l,null,s?wp.element.createElement("div",{className:"exactmetrics-headline-analyzer-words beginning"},wp.element.createElement("span",null,s)):"",c?wp.element.createElement("div",{className:"exactmetrics-headline-analyzer-words ending"},wp.element.createElement("span",null,c)):"",wp.element.createElement("p",{className:"exactmetrics-headline-analyzer-words-guideline"},o))))};t.a=s},function(e,t,n){"use strict";var r=n(23),i=n.n(r),o=wp.i18n.__,a=wp.element.Fragment,l=wp.components,s=l.PanelBody,c=l.PanelRow,u=wp.data.select,d=function(e){var t=o("Search Preview","google-analytics-dashboard-for-wp"),n=o("Here is how your headline will look like in google search results page.","google-analytics-dashboard-for-wp"),r=u("core/editor").getPermalink(),l={href:r};return wp.element.createElement(a,null,wp.element.createElement(s,{title:t,className:"exactmetrics-headline-analyzer-panel-search-preview"},wp.element.createElement(c,null,wp.element.createElement("h4",null,e.data.sentence),wp.element.createElement("p",{className:"exactmetrics-headline-analyzer-post-url"},wp.element.createElement("a",i()({},l,{target:"_blank"}),r)),wp.element.createElement("p",null,n))))};t.a=d},function(e,t,n){"use strict";var r=n(39),i=n.n(r),o=n(143),a=wp.components.ToggleControl,l=wp.plugins.registerPlugin,s=wp.data,c=s.dispatch,u=s.select,d=wp.i18n.__,p=wp.editPost.PluginDocumentSettingPanel,h=wp.element,m=h.useState,f=h.Fragment;l("exactmetrics-exclude-page-tracking",{render:function(){var e=window.exactmetrics_gutenberg_tool_vars;if(!e||"1"!==e.supports_custom_fields)return wp.element.createElement(f,null);var t=u("core/editor").getEditedPostAttribute("meta")||[];t._mi_skip_tracking||(t._mi_skip_tracking=!1);var n=m(!!t._mi_skip_tracking),r=i()(n,2),l=r[0],s=r[1];return wp.element.createElement(p,{name:"exactmetrics-skip-tracking",title:"ExactMetrics",className:"exactmetrics-skip-tracking-wrapper",icon:"mi"},wp.element.createElement(a,{checked:l,help:d("Toggle to prevent Google Analytics from tracking this page.","google-analytics-dashboard-for-wp"),label:d("Exclude page from Google Analytics Tracking","google-analytics-dashboard-for-wp"),disabled:"lite"===e.license_type,onChange:function(e){s(!!e),c("core/editor").editPost({meta:{_mi_skip_tracking:e}})}}),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-dashboard-for-wp"),upgrade:r("Upgrade","google-analytics-dashboard-for-wp")};return wp.element.createElement(i,null,wp.element.createElement("div",{className:"exactmetrics-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:"exactmetrics-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";n(145),n(154)},function(e,t,n){"use strict";var r=n(65),i=n.n(r),o=n(67),a=n.n(o),l=n(23),s=n.n(l),c=n(150),u=n(68),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,C=y.ColorPalette,_=y.RangeControl,x=window.exactmetrics_gutenberg_tool_vars,k={setThemes:function(e){return{type:"SET_THEMES",themes:e}},receiveThemes:function(e){return{type:"RECEIVE_THEMES",path:e}}};g("exactmetrics/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 s()({},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("/exactmetrics/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("exactmetrics/popular-posts-inline",{title:d("Inline Popular Posts","google-analytics-dashboard-for-wp"),description:d("Add inline popular posts from ExactMetrics","google-analytics-dashboard-for-wp"),category:"widgets",icon:c.a.inlinepop,keywords:[d("Popular","google-analytics-dashboard-for-wp"),d("Posts","google-analytics-dashboard-for-wp"),d("Inline","google-analytics-dashboard-for-wp"),"ExactMetrics"],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("exactmetrics/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"}],l=void 0!==r.themes?r.themes:{},s=void 0===e.attributes.theme?r.selected:n,p=void 0!==s&&void 0!==l[s]?l[s]:{},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(_,{key:"exactmetrics-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:"exactmetrics-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:"exactmetrics-popular-posts-label"+t},e),wp.element.createElement(C,{key:"exactmetrics-popular-posts-input"+t,value:n,colors:a,onChange:function(e){o(i()({},t,e))}})]};return[wp.element.createElement(v,{key:"exactmetrics-popular-posts-inline-inspector-controls"},wp.element.createElement(b,{title:d("Theme","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-inline-theme"},wp.element.createElement(S,{key:"exactmetrics-popular-posts-inline-theme-row"},wp.element.createElement(u.a,{id:"exactmetrics-popular-posts-inline-theme",options:l,selected:s,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-dashboard-for-wp"),"title_size")),void 0!==h.title.color&&e.push(O(d("Title Color","google-analytics-dashboard-for-wp"),"title_color")),wp.element.createElement(b,{title:d("Title Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-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-dashboard-for-wp"),"label_text")),void 0!==h.label.color&&e.push(O(d("Label Color","google-analytics-dashboard-for-wp"),"label_color")),void 0!==h.label.background&&e.push(O(d("Label Background","google-analytics-dashboard-for-wp"),"label_background")),wp.element.createElement(b,{title:d("Label Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-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-dashboard-for-wp"),"border_color")),void 0!==h.border&&void 0!==h.border.color2&&e.push(O(d("Bottom Border Color","google-analytics-dashboard-for-wp"),"border_color2")),void 0!==h.background&&void 0!==h.background.border&&e.push(O(d("Border Color","google-analytics-dashboard-for-wp"),"background_border")),0!==e.length)return wp.element.createElement(b,{title:d("Border Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-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-dashboard-for-wp"),"background_color")),wp.element.createElement(b,{title:d("Background Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-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-dashboard-for-wp"),"icon_color")),void 0!==h.icon.background&&e.push(O(d("Icon Background Color","google-analytics-dashboard-for-wp"),"icon_background")),wp.element.createElement(b,{title:d("Icon Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-inline-icon"}," ",e," ")}}()),wp.element.createElement("div",{key:"exactmetrics-popular-posts-inline-preview"},wp.element.createElement("div",{className:"exactmetrics-inline-popular-posts-widget exactmetrics-inline-popular-posts-"+s,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:"exactmetrics-inline-popular-posts-image"},wp.element.createElement("img",{src:x.vue_assets_path+"img/"+e}))}}(),wp.element.createElement("div",{className:"exactmetrics-inline-popular-posts-text"},function(){if(void 0!==h.icon)return wp.element.createElement("span",{className:"exactmetrics-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:"exactmetrics-inline-popular-posts-label"},m.label_text)}(),function(){if(void 0!==h.border&&void 0!==h.border.color)return wp.element.createElement("span",{className:"exactmetrics-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:"exactmetrics-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:"exactmetrics-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:"exactmetrics-inline-popular-posts-list"},e)}}(),function(){if(void 0!==h.border&&void 0!==h.border.color2)return wp.element.createElement("span",{className:"exactmetrics-inline-popular-posts-border-2",style:{borderColor:m.border_color2}})}())))]}),save:function(e){return null}})},function(e,t,n){n(147);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(7),"Object",{defineProperty:n(6).f})},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(149),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),l=new h(r||[]);return a._invoke=c(e,n,l),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 l(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function s(e){function t(n,i,o,a){var l=r(e[n],e,i);if("throw"!==l.type){var s=l.arg,c=s.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){s.value=e,o(s)},a)}a(l.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 l=n.delegate;if(l){var s=u(l,n);if(s){if(s===F)continue;return s}}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===F)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 F;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return F}var i=r(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,F;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,F):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,F)}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",C="object"==typeof e,_=t.regeneratorRuntime;if(_)return void(C&&(e.exports=_));_=t.regeneratorRuntime=C?e.exports:{},_.wrap=n;var x="suspendedStart",k="suspendedYield",O="executing",T="completed",F={},M={};M[b]=function(){return this};var N=Object.getPrototypeOf,j=N&&N(N(m([])));j&&j!==w&&v.call(j,b)&&(M=j);var P=a.prototype=i.prototype=Object.create(M);o.prototype=P.constructor=a,a.constructor=o,a[E]=o.displayName="GeneratorFunction",_.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===o||"GeneratorFunction"===(t.displayName||t.name))},_.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,E in e||(e[E]="GeneratorFunction")),e.prototype=Object.create(P),e},_.awrap=function(e){return{__await:e}},l(s.prototype),s.prototype[S]=function(){return this},_.AsyncIterator=s,_.async=function(e,t,r,i){var o=new s(n(e,t,r,i));return _.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},l(P),P[E]="Generator",P[b]=function(){return this},P.toString=function(){return"[object Generator]"},_.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}},_.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"),l=v.call(i,"finallyLoc");if(a&&l){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(!l)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,F):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),F},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),F}},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),F}}}(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:"#F0EAFE"}),wp.element.createElement("rect",{x:"5.72728",y:"19.8947",width:"58.5455",height:"8.52632",rx:"3",fill:"#6528F5"}),wp.element.createElement("rect",{x:"5.72728",y:"7.57892",width:"17.1818",height:"8.52632",rx:"3",fill:"#8453F7"})),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:"#6528F5"}),wp.element.createElement("rect",{x:"31",y:"10",width:"18",height:"9",rx:"3",fill:"#8453F7"}),wp.element.createElement("rect",{x:"7",y:"10",width:"20",height:"20",rx:"3",fill:"#8453F7"}),wp.element.createElement("rect",{x:"1.5",y:"1.5",width:"67",height:"37",rx:"1.5",stroke:"#F0EAFE",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:"#6528F5"}),wp.element.createElement("rect",{y:"11",width:"70",height:"3",rx:"1.5",fill:"#D1BFFC"}),wp.element.createElement("rect",{width:"26",height:"7",rx:"3",fill:"#8453F7"}),wp.element.createElement("circle",{cx:"4.5",cy:"23.5",r:"4.5",fill:"#6528F5"})),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:"#6528F5"}),wp.element.createElement("rect",{x:"22",y:"9",width:"18",height:"9",rx:"3",fill:"#8453F7"}),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:"#8453F7"}),wp.element.createElement("rect",{x:"1.5",y:"1.5",width:"67",height:"37",rx:"1.5",stroke:"#F0EAFE",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:"#F0EAFE"}),wp.element.createElement("rect",{x:"24.8182",y:"16",width:"39.4545",height:"9",rx:"3",fill:"#6528F5"}),wp.element.createElement("rect",{x:"5.72728",y:"16",width:"15.2727",height:"9",rx:"3",fill:"#8453F7"})),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:"#6528F5"}),wp.element.createElement("rect",{x:"26",y:"9",width:"28",height:"9",rx:"3",fill:"#8453F7"}),wp.element.createElement("rect",{y:"9",width:"22",height:"22",rx:"3",fill:"#8453F7"})),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:"#6528F5"}),wp.element.createElement("rect",{y:"26",width:"70",height:"3",rx:"1.5",fill:"#D1BFFC"}),wp.element.createElement("rect",{width:"21",height:"7",rx:"3",fill:"#8453F7"}),wp.element.createElement("rect",{x:"25",y:"1",width:"45",height:"3",rx:"1.5",fill:"#D1BFFC"})),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:"#F0EAFE"}),wp.element.createElement("rect",{x:"22",y:"16",width:"40",height:"9",rx:"3",fill:"#6528F5"}),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:"#8453F7"})),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",{clipPath:"url(#clip0)"},wp.element.createElement("rect",{width:"70",height:"40",rx:"3",fill:"#F0EAFE"}),wp.element.createElement("rect",{x:"26",y:"16",width:"36",height:"9",rx:"3",fill:"#6528F5"}),wp.element.createElement("rect",{x:"8",y:"16",width:"14",height:"9",rx:"3",fill:"#6528F5"}),wp.element.createElement("rect",{y:"41",width:"41",height:"4",transform:"rotate(-90 0 41)",fill:"#8453F7"})),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:"#F0EAFE"}),wp.element.createElement("rect",{x:"30",y:"20",width:"32",height:"9",rx:"3",fill:"#6528F5"}),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:"#8453F7"}),wp.element.createElement("rect",{x:"30",y:"11",width:"32",height:"4",rx:"2",fill:"#8453F7"}),wp.element.createElement("rect",{x:"8",y:"11",width:"18",height:"18",rx:"3",fill:"#8453F7"})),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:"#6528F5"}),wp.element.createElement("rect",{y:"9",width:"26",height:"9",rx:"3",fill:"#8453F7"}),wp.element.createElement("rect",{width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"12.7273",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"25.4545",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"38.1818",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"50.9091",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"63.6364",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{y:"37",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"12.7273",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"25.4545",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"38.1818",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"50.9091",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"63.6364",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"})),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:"#F0EAFE"}),wp.element.createElement("rect",{x:"6",y:"22",width:"32",height:"9",rx:"3",fill:"#6528F5"}),wp.element.createElement("rect",{x:"6",y:"8",width:"20",height:"9",rx:"3",fill:"#8453F7"}),wp.element.createElement("rect",{x:"42",y:"9",width:"22",height:"22",rx:"3",fill:"#8453F7"})),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:"#F0EAFE"}),wp.element.createElement("rect",{x:"35",y:"15",width:"27",height:"9",rx:"3",fill:"#6528F5"}),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:"#8453F7"})),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:"#6528F5"}),wp.element.createElement("rect",{x:"29",y:"9",width:"18",height:"9",rx:"3",fill:"#8453F7"}),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:"#8453F7"}),wp.element.createElement("rect",{x:"1.5",y:"1.5",width:"67",height:"37",rx:"1.5",stroke:"#F0EAFE",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:"#6528f5"})),r.chevronright=wp.element.createElement("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M4.84913 3.68807L1.19048 0.12844C1.10247 0.0428134 0.995599 -4.3519e-08 0.869873 -3.80233e-08C0.744146 -3.25276e-08 0.637278 0.0428134 0.549269 0.12844L0.134371 0.53211C0.0463618 0.617737 0.00235741 0.721713 0.00235742 0.844037C-0.0102153 0.966361 0.0275028 1.07034 0.115512 1.15596L3.03866 4L0.115512 6.84404C0.0275031 6.92966 -0.010215 7.03364 0.00235769 7.15596C0.0023577 7.27829 0.0463621 7.38226 0.134371 7.46789L0.549269 7.87156C0.637278 7.95719 0.744146 8 0.869873 8C0.9956 8 1.10247 7.95719 1.19048 7.87156L4.84913 4.31193C4.94971 4.2263 5 4.12232 5 4C5 3.87768 4.94971 3.7737 4.84913 3.68807Z",fill:"#C4C4C4"})),r.chevronleft=wp.element.createElement("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0.150873 3.68807L3.80952 0.12844C3.89753 0.0428134 4.0044 -4.3519e-08 4.13013 -3.80233e-08C4.25585 -3.25276e-08 4.36272 0.0428134 4.45073 0.12844L4.86563 0.53211C4.95364 0.617737 4.99764 0.721713 4.99764 0.844037C5.01022 0.966361 4.9725 1.07034 4.88449 1.15596L1.96134 4L4.88449 6.84404C4.9725 6.92966 5.01021 7.03364 4.99764 7.15596C4.99764 7.27829 4.95364 7.38226 4.86563 7.46789L4.45073 7.87156C4.36272 7.95719 4.25585 8 4.13013 8C4.0044 8 3.89753 7.95719 3.80952 7.87156L0.150873 4.31193C0.0502914 4.2263 2.96645e-07 4.12232 3.01992e-07 4C3.07339e-07 3.87768 0.0502914 3.7737 0.150873 3.68807Z",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){s(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 l(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function s(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)||_()}function b(e){if(Array.isArray(e))return C(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 C(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)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _(){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 F(e,t){return 100/e*t/t}function M(e,t){return 100*e/t}function N(e){return"".concat(e,"%")}function j(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 P(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 D(e,t,n){var r=e.length;if(r!==t.length)return!1;for(n.push([e,t]);r--;)if(!j(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(!j(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===se}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 l;return o(this,r),l=a.call(this,e,n),l.state=t(i({},n.state)),l.updateStateProps=l.updateStateProps.bind(g(l)),l}u(r,n);var a=v(r);return l(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 s(n,"contextType",pe),s(n,"propTypes",{children:J.children}),s(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(69),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 l(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,l=t.visibleSlides,s=t.totalSlides-l,c=Math.max(r-o,0);a&&(c=0===r?s: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);s(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}),s(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)&&j(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=P(D),ie.object=P(A);var oe=j,ae=function(e){return B(e)&&!z(e)},le="function"==typeof Symbol&&Symbol.for,se=le?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 l(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:F(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 l(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=F(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),s(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}),s(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,Ce,_e,xe,ke,Oe,Te,Fe,Me=Z(ne,function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}}),Ne={buttonFirst:"buttonFirst___2rhFr"},je=["carouselStore","className","currentSlide","disabled","onClick","totalSlides"],Pe=(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 l(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,je)),o=T([Ne.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),s(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}),s(ve,"defaultProps",{className:null,disabled:null,onClick:null}),ye),De=(Z(Pe,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 l(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,l=t.totalSlides-t.visibleSlides,s=i+n,c=Math.min(s,l);a&&(c=l===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,l=e.infinite,s=f(e,Ae),u=T([De.buttonNext,"carousel__next-button",n]),d=t.setDisabled(i,r,a,o,l);return Y.a.createElement("button",c({type:"button","aria-label":"next",className:u,onClick:this.handleOnClick,disabled:d},s),this.props.children)}}],[{key:"setDisabled",value:function(e,t,n,r,i){return null!==e?e:t>=r-n&&!i}}]),t}(Y.a.PureComponent),s(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}),s(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=(Ce=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 l(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),l=T([ze.buttonLast,"carousel__last-button",t]),s=null!==r?r:n>=i-o;return Y.a.createElement("button",c({type:"button","aria-label":"last",className:l,onClick:this.handleOnClick,disabled:s},a),this.props.children)}}]),t}(Y.a.Component),s(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}),s(Ee,"defaultProps",{className:null,disabled:null,onClick:null}),Ce),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=_e=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 l(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),s(_e,"propTypes",{carouselStore:K.object.isRequired,children:K.node,childrenPaused:K.node,childrenPlaying:K.node,className:K.string,isPlaying:K.bool.isRequired,onClick:K.func}),s(_e,"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 l(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,l=i>=o-a?o-a:i;n.setStoreState({currentSlide:l,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),l=f(e,Ze),s=o>=n&&o<n+a,u="boolean"==typeof i?i:s,d=!0===s,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},l),this.props.children)}}]),t}(Y.a.Component),s(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}),s(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=(Fe=Te=function(e){function t(){return o(this,t),n.apply(this,arguments)}u(t,e);var n=v(t);return l(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 l=this.props;return l.renderDots,a(f(l,Ge))}for(var s=[],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;s.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 s}},{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),s(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}),s(Te,"defaultProps",{children:null,className:null,dotNumbers:!1,disableActiveDots:!0,showAsSelectedForCurrentSlideOnly:!1,renderDots:null}),Fe),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 l(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 l=e.src;e.alt,a=f(e,et),o=c({},n,{backgroundImage:'url("'.concat(l,'")'),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);s(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}),s(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,lt,st,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 l(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),s(rt,"propTypes",{className:K.string}),s(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 l(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=N(e.nativeEvent.offsetX/e.target.offsetWidth*100),n=N(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,l=r[1].identifier,s={x1:this.tpCache[a].clientX,y1:this.tpCache[a].clientY,x2:this.tpCache[l].clientX,y2:this.tpCache[l].clientY};s.distance=t.distanceBetweenTwoTouches(i({},s));var c=t.midpointBetweenTwoTouches(i({},s));s.cx=c.x,s.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=N(Q({min:0,max:100,x:(u.cx-o.left)/o.width*100})),h=N(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-s.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,l=(e.isPinchZoomEnabled,e.spinner,e.src),s=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:l,onLoad:this.handleImageComplete,onError:this.handleImageComplete},n)),Y.a.createElement(dt,{className:m,tag:"div",src:s||l,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),s(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}),s(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=(st=lt=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 l(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),l=t.innerTag,s=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=N(p),b.paddingBottom=N(100*s/(u*w))):(b.width=N(100),b.paddingBottom=N(100*s/u));var S={};v&&("horizontal"===d?b.height="unset":b.width="unset",b.paddingBottom="unset",S.position="unset");var E=c({},b,h),C=this.isVisible(),_=T([vt.slide,"horizontal"===d&&vt.slideHorizontal,"carousel__slide",this.state.focused&&"carousel__slide--focused",C&&o,C&&"carousel__slide--visible",!C&&i,!C&&"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:_,style:E},y),Y.a.createElement(l,{ref:function(t){e.innerTagRef=t},className:x,style:S},this.props.children,this.renderFocusRing()))}}]),t}(Y.a.PureComponent),s(lt,"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}),s(lt,"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}),st),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 l(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}(),Ct={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"},_t=["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 l(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,l=n.visibleSlides,s={};!0===o||a<=l||(37===t&&(e.preventDefault(),this.focus(),s.currentSlide=Math.max(0,i-1),s.isPlaying=!1),39===t&&(e.preventDefault(),this.focus(),s.currentSlide=Math.min(a-l,i+1),s.isPlaying=!1),r.setStoreState(s))}},{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([Ct.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,l=t.classNameTrayWrap,s=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,C=f(t,_t),_=c({},w),x={};"vertical"===h&&(x.height=0,x.paddingBottom=N(100*d*S/p),x.width=N(100));var k={},O=N(m*s*-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=N(100),k.flexDirection="column"):(k.width=N(g),k.transform="translateX(".concat(O,") translateX(").concat(this.state.deltaX,"px)"),k.flexDirection="row");var F=T(["vertical"===h?Ct.verticalSlider:Ct.horizontalSlider,"carousel__slider","vertical"===h?"carousel__slider--vertical":"carousel__slider--horizontal",i]),M=T([Ct.sliderTrayWrap,"carousel__slider-tray-wrapper","vertical"===h?Ct.verticalSlideTrayWrap:Ct.horizontalTrayWrap,"vertical"===h?"carousel__slider-tray-wrap--vertical":"carousel__slider-tray-wrap--horizontal",l]),j=T([Ct.sliderTray,o||Ct.sliderAnimation,"carousel__slider-tray","vertical"===h?Ct.verticalTray:Ct.horizontalTray,"vertical"===h?"carousel__slider-tray--vertical":"carousel__slider-tray--horizontal",a]),P=null!==v?v:0,D=(C.dragStep,C.step,C.infinite,f(C,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:F,"aria-live":"polite","aria-label":n,style:_,tabIndex:P,onKeyDown:this.handleOnKeyDown,role:"listbox"},D),Y.a.createElement("div",{className:M,style:x},Y.a.createElement(b,c({ref:this.getSliderRef,className:j,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,l=Math.abs(Math.round(a/i)),s=Math.abs(a)>=i*e?o:0,c=Math.max(s,l);if(a<0)return c;var u=-c;return 0===u?0:u}}]),t}(Y.a.Component),s(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}),s(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(65),i=n.n(r),o=n(67),a=n.n(o),l=n(23),s=n.n(l),c=n(155),u=n(68),d=n(156),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,C=b.TextControl,_=b.ColorPalette,x=b.RadioControl,k=b.ToggleControl,O=b.SelectControl,T=b.RangeControl,F=window.exactmetrics_gutenberg_tool_vars,M={setThemes:function(e){return{type:"SET_THEMES",themes:e}},receiveThemes:function(e){return{type:"RECEIVE_THEMES",path:e}}};w("exactmetrics/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 s()({},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("/exactmetrics/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("exactmetrics/popular-posts-widget",{title:p("Popular Posts","google-analytics-dashboard-for-wp"),description:p("Add popular posts from ExactMetrics","google-analytics-dashboard-for-wp"),category:"widgets",icon:c.a.widgetpop,keywords:[p("Popular","google-analytics-dashboard-for-wp"),p("Posts","google-analytics-dashboard-for-wp"),p("Widget","google-analytics-dashboard-for-wp"),"ExactMetrics"],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("exactmetrics/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,l=t.post_count,s=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 N in b)if(b.hasOwnProperty(N))for(var j in b[N])if(b[N].hasOwnProperty(j)){var P=N+"_"+j;void 0===e.attributes[P]?M[P]=b[N][j]:M[P]=e.attributes[P],"on"===M[P]&&(M[P]=!0),"off"===M[P]&&(M[P]=!1)}var D=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-dashboard-for-wp"),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-dashboard-for-wp"),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-dashboard-for-wp"),checked:M.meta_comments,onChange:function(e){m(i()({},"meta_comments",e))}})},z=function(){return wp.element.createElement("span",{className:"exactmetrics-wide-column exactmetrics-wide-column-one"},wp.element.createElement("span",null),wp.element.createElement("span",null))},R=function(){return wp.element.createElement("span",{className:"exactmetrics-wide-column exactmetrics-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:"exactmetrics-wide-column exactmetrics-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:"exactmetrics-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(C,{key:"exactmetrics-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:"exactmetrics-popular-posts-label"+t},e),wp.element.createElement(_,{key:"exactmetrics-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:"exactmetrics-widget-popular-posts-image"},wp.element.createElement("img",{src:F.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:"exactmetrics-widget-popular-posts-label"},M.label_text)},U=function(){if(void 0!==b.meta)return[wp.element.createElement("div",{className:"exactmetrics-widget-popular-posts-meta",key:"exactmetrics-widget-popular-posts-meta-options",style:{color:M.meta_color,fontSize:M.meta_size+"px"}},Y(),X(),K()),wp.element.createElement("span",{key:"exactmetrics-widget-popular-posts-comments-options"},G())]},Y=function(){if(M.meta_author)return wp.element.createElement("span",{className:"exactmetrics-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:"exactmetrics-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:"exactmetrics-widget-popular-posts-date"},"Yesterday")},$=function(e){for(;e.length<=10;)e=e.concat(e);return e};return[wp.element.createElement(y,{key:"exactmetrics-popular-posts-widget-inspector-controls"},wp.element.createElement(S,{title:p("Theme","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-widget-theme"},wp.element.createElement(E,{key:"exactmetrics-popular-posts-widget-theme-row"},wp.element.createElement(u.a,{id:"exactmetrics-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-dashboard-for-wp"),"title_size")),void 0!==b.title.color&&e.push(V(p("Title Color","google-analytics-dashboard-for-wp"),"title_color")),wp.element.createElement(S,{title:p("Title Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-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-dashboard-for-wp"),"background_color")),wp.element.createElement(S,{title:p("Background Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-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-dashboard-for-wp"),"label_text")),void 0!==b.label.color&&e.push(V(p("Label Color","google-analytics-dashboard-for-wp"),"label_color")),void 0!==b.label.background&&e.push(V(p("Label Background","google-analytics-dashboard-for-wp"),"label_background")),wp.element.createElement(S,{title:p("Label Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-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-dashboard-for-wp"),"borderColor")),void 0!==b.border&&void 0!==b.border.color2&&e.push(V(p("Bottom Border Color","google-analytics-dashboard-for-wp"),"borderColor2")),void 0!==b.background&&void 0!==b.background.border&&e.push(V(p("Border Color","google-analytics-dashboard-for-wp"),"background_border")),0!==e.length)return wp.element.createElement(S,{title:p("Border Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-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-dashboard-for-wp"),"meta_size")),void 0!==b.meta.color&&e.push(V(p("Meta Color","google-analytics-dashboard-for-wp"),"meta_color")),wp.element.createElement(S,{title:p("Meta Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-widget-meta-styles"},e)}}(),function(){if(void 0!==b.comments)return wp.element.createElement(S,{title:p("Comment Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-widget-comment-styles"},V(p("Comment Color","google-analytics-dashboard-for-wp"),"comments_color"))}(),function(){return wp.element.createElement(S,{title:p("Wide-Layout Options","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-widget-columns"},wp.element.createElement(x,{label:p("Choose Layout","google-analytics-dashboard-for-wp"),help:p("Adjust the number of columns displayed when the widget is placed in a wide container.","google-analytics-dashboard-for-wp"),className:"exactmetrics-wide-column-options",key:"exactmetrics-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=D(parseInt(e));-1===t.indexOf(l)&&m(i()({},"post_count",parseInt(t[0])))}}),wp.element.createElement(O,{label:p("Post Count","google-analytics-dashboard-for-wp"),help:p("Number of posts displayed.","google-analytics-dashboard-for-wp"),options:D(r,!0),value:l,key:"exactmetrics-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-dashboard-for-wp"),key:"exactmetrics-popular-posts-widget-meta-options"},A(),L(),B())}(),function(){return wp.element.createElement(S,{title:p("Behavior Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-widget-behavior-options"},wp.element.createElement(k,{label:p("Display Widget Title","google-analytics-dashboard-for-wp"),checked:o,onChange:function(e){m(i()({},"widget_title",e))}}),wp.element.createElement(C,{key:"exactmetrics-popular-posts-input-widget-title-text",label:p("Widget Title","google-analytics-dashboard-for-wp"),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-dashboard-for-wp"),slug:"category",onUpdateTerms:function(e){m(i()({},"categories",e))},terms:s}))}()),wp.element.createElement("div",{key:"exactmetrics-popular-posts-widget-preview"},wp.element.createElement("div",{className:"exactmetrics-widget-popular-posts-widget exactmetrics-widget-popular-posts-"+w+" exactmetrics-widget-popular-posts-columns-"+r},function(){if(o)return wp.element.createElement("h2",{className:"exactmetrics-widget-popular-posts-widget-title"},a)}(),wp.element.createElement("div",{className:"exactmetrics-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(l))break;n.push(wp.element.createElement("li",{key:"exactmetrics-popular-posts-preview-list-item-"+r,style:{backgroundColor:M.background_color,borderColor:M.background_border}},W(t,r),wp.element.createElement("div",{className:"exactmetrics-widget-popular-posts-text"},Z(),wp.element.createElement("a",{className:"exactmetrics-widget-popular-posts-title",style:{color:M.title_color,fontSize:M.title_size+"px"}},e[r]),U())))}return wp.element.createElement("ul",{className:"exactmetrics-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:"#F0EAFE"}),wp.element.createElement("rect",{x:"7.39999",y:"12",width:"59.2",height:"9",rx:"2",fill:"#6528F5"}),wp.element.createElement("rect",{x:"7.39999",y:"25",width:"51.8",height:"9",rx:"2",fill:"#6528F5"})),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:"#6528F5"}),wp.element.createElement("rect",{x:"12",y:"12",width:"54",height:"9",rx:"2",fill:"#8453F7"}),wp.element.createElement("rect",{x:"12",y:"25",width:"44",height:"9",rx:"2",fill:"#8453F7"})),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:"#F0EAFE"}),wp.element.createElement("rect",{width:"74",height:"4",fill:"#6528F5"}),wp.element.createElement("rect",{x:"8",y:"14",width:"58",height:"9",rx:"2",fill:"#8453F7"}),wp.element.createElement("rect",{x:"8",y:"27",width:"40",height:"9",rx:"2",fill:"#8453F7"})),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:"#8453F7"}),wp.element.createElement("rect",{x:"31",y:"23",width:"32",height:"7",rx:"2",fill:"#8453F7"}),wp.element.createElement("rect",{x:"31",y:"34",width:"43",height:"5",rx:"2",fill:"#D1BFFC"}),wp.element.createElement("rect",{y:"12",width:"27",height:"27",rx:"2",fill:"#6528F5"}),wp.element.createElement("rect",{width:"74",height:"4",fill:"#6528F5"})),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:"#F0EAFE"}),wp.element.createElement("rect",{x:"8",y:"41",width:"58",height:"7",rx:"2",fill:"#6528F5"}),wp.element.createElement("rect",{x:"8",y:"61",width:"7",height:"7",rx:"3.5",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"8",y:"8",width:"58",height:"29",rx:"2",fill:"#6528F5"}),wp.element.createElement("rect",{x:"8",y:"52",width:"34",height:"5",rx:"2",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"46",y:"52",width:"20",height:"5",rx:"2",fill:"#D1BFFC"})),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:"#F0EAFE"}),wp.element.createElement("rect",{x:"8",y:"8",width:"58",height:"7",rx:"2",fill:"#6528F5"}),wp.element.createElement("rect",{x:"8",y:"28",width:"7",height:"7",rx:"3.5",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"8",y:"19",width:"34",height:"5",rx:"2",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"46",y:"19",width:"20",height:"5",rx:"2",fill:"#D1BFFC"})),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:"#F0EAFE"}),wp.element.createElement("rect",{x:"8",y:"21",width:"58",height:"7",rx:"2",fill:"#6528F5"}),wp.element.createElement("rect",{x:"8",y:"41",width:"7",height:"7",rx:"3.5",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"8",y:"8",width:"16",height:"9",rx:"2",fill:"#6528F5"}),wp.element.createElement("rect",{x:"8",y:"32",width:"34",height:"5",rx:"2",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"46",y:"32",width:"20",height:"5",rx:"2",fill:"#D1BFFC"})),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:"#6528F5"}),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:"#8453F7"}),wp.element.createElement("rect",{x:"8",y:"26",width:"58",height:"7",rx:"2",fill:"#F0EAFE"}),wp.element.createElement("rect",{x:"8",y:"37",width:"34",height:"5",rx:"2",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"46",y:"37",width:"20",height:"5",rx:"2",fill:"#D1BFFC"})),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(157),i=n.n(r),o=n(161),a=n.n(o),l=n(162),s=n.n(l),c=n(163),u=n.n(c),d=n(176),p=n.n(d),h=n(18),m=(n.n(h),n(184),n(207)),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),s()(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:"exactmetrics-hierarchical-term-list-label",className:"components-base-control__label"},this.props.label,wp.element.createElement("span",{className:"exactmetrics-popular-posts-pro-pill"},"PRO")),wp.element.createElement("div",{className:"editor-post-taxonomies__hierarchical-terms-list exactmetrics-hierarchical-terms exactmetrics-hierarchical-terms-disabled",key:"exactmetrics-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){e.exports={default:n(158),__esModule:!0}},function(e,t,n){n(159),e.exports=n(0).Object.getPrototypeOf},function(e,t,n){var r=n(16),i=n(53);n(160)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(4),i=n(0),o=n(12);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){"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(66),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(70),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){e.exports={default:n(165),__esModule:!0}},function(e,t,n){n(19),n(40),e.exports=n(41).f("iterator")},function(e,t,n){e.exports={default:n(167),__esModule:!0}},function(e,t,n){n(168),n(173),n(174),n(175),e.exports=n(0).Symbol},function(e,t,n){"use strict";var r=n(5),i=n(9),o=n(7),a=n(4),l=n(49),s=n(169).KEY,c=n(12),u=n(35),d=n(37),p=n(22),h=n(2),m=n(41),f=n(42),g=n(170),w=n(171),v=n(8),y=n(11),b=n(16),S=n(14),E=n(31),C=n(15),_=n(32),x=n(172),k=n(72),O=n(38),T=n(6),F=n(21),M=k.f,N=T.f,j=x.f,P=r.Symbol,D=r.JSON,A=D&&D.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 P&&!!O.f,W=r.QObject,Z=!W||!W.prototype||!W.prototype.findChild,U=o&&c(function(){return 7!=_(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=M(q,t);r&&delete q[t],N(e,t,n),r&&e!==q&&N(q,t,r)}:N,Y=function(e){var t=H[e]=_(P.prototype);return t._k=e,t},X=V&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},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=_(n,{enumerable:C(0,!1)})):(i(e,L)||N(e,L,C(1,{})),e[L][t]=!0),U(e,t,n)):N(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?_(e):K(_(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=j(S(e)),r=[],o=0;n.length>o;)i(H,t=n[o++])||t==L||t==s||r.push(t);return r},te=function(e){for(var t,n=e===q,r=j(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||(P=function(){if(this instanceof P)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,C(1,n))};return o&&Z&&U(q,e,{configurable:!0,set:t}),Y(e)},l(P.prototype,"toString",function(){return this._k}),k.f=Q,T.f=G,n(71).f=x.f=ee,n(24).f=J,O.f=te,o&&!n(20)&&l(q,"propertyIsEnumerable",J,!0),m.f=function(e){return Y(h(e))}),a(a.G+a.W+a.F*!V,{Symbol:P});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=F(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]=P(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))}}),D&&a(a.S+a.F*(!V||c(function(){var e=P();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(D,r)}}),P.prototype[B]||n(10)(P.prototype,B,P.prototype.valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(e,t,n){var r=n(22)("meta"),i=n(11),o=n(9),a=n(6).f,l=0,s=Object.isExtensible||function(){return!0},c=!n(12)(function(){return s(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!s(e))return"F";if(!t)return"E";u(e)}return e[r].i},p=function(e,t){if(!o(e,r)){if(!s(e))return!0;if(!t)return!1;u(e)}return e[r].w},h=function(e){return c&&m.NEED&&s(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(21),i=n(38),o=n(24);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,l=n(e),s=o.f,c=0;l.length>c;)s.call(e,a=l[c++])&&t.push(a);return t}},function(e,t,n){var r=n(33);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(14),i=n(71).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?l(e):i(r(e))}},function(e,t){},function(e,t,n){n(42)("asyncIterator")},function(e,t,n){n(42)("observable")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(177),o=r(i),a=n(181),l=r(a),s=n(70),c=r(s);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,l.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){e.exports={default:n(178),__esModule:!0}},function(e,t,n){n(179),e.exports=n(0).Object.setPrototypeOf},function(e,t,n){var r=n(4);r(r.S,"Object",{setPrototypeOf:n(180).set})},function(e,t,n){var r=n(11),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(30)(Function.call,n(72).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(182),__esModule:!0}},function(e,t,n){n(183);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(32)})},function(e,t,n){"use strict";n(185),n(73),n(193)},function(e,t,n){"use strict";var r=n(186),i=n.n(r),o=n(187);n.n(o),i()(console.error)},function(e,t,n){function r(e,t){function n(){var n,a,l=r,s=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(a=0;a<s;a++)if(l.args[a]!==arguments[a]){l=l.next;continue e}return l!==r&&(l===i&&(i=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=r,l.prev=null,r.prev=l,r=l),l.val}l=l.next}for(n=new Array(s),a=0;a<s;a++)n[a]=arguments[a];return l={args:n,val:e.apply(null,n)},r?(r.prev=l,l.next=r):i=l,o===t.maxSize?(i=i.prev,i.next=null):o++,r=l,l.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(l(e),arguments)}function o(e,t){return i.apply(null,[e].concat(t||[]))}function a(e,t){var n,r,o,a,l,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(s.not_type.test(a.type)&&s.not_primitive.test(a.type)&&n instanceof Function&&(n=n()),s.numeric_arg.test(a.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(s.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()}s.json.test(a.type)?f+=n:(!s.number.test(a.type)||d&&!a.sign?p="":(p=d?"+":"-",n=n.toString().replace(s.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",u=a.width-(p+n).length,l=a.width&&u>0?c.repeat(u):"",f+=a.align?p+n+l:"0"===c?p+l+n:l+p+n)}return f}function l(e){if(c[e])return c[e];for(var t,n=e,r=[],i=0;n;){if(null!==(t=s.text.exec(n)))r.push(t[0]);else if(null!==(t=s.modulo.exec(n)))r.push("%");else{if(null===(t=s.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var o=[],a=t[2],l=[];if(null===(l=s.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(l[1]);""!==(a=a.substring(l[0].length));)if(null!==(l=s.key_access.exec(a)))o.push(l[1]);else{if(null===(l=s.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(l[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 s={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(189),a={contextDelimiter:"",onMissingKey:null};i.prototype.getPluralForm=function(e,t){var n,i,a,l=this.pluralForms[e];return l||(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)),l=this.pluralForms[e]=a),l(t)},i.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,l;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(l=this.data[e][a])&&l[o]?l[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(190)},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(191),o=n(192)},function(e,t,n){"use strict";function r(e){for(var t,n,r,s,c=[],u=[];t=e.match(l);){for(n=t[0],r=e.substr(0,t.index).trim(),r&&c.push(r);s=u.pop();){if(a[n]){if(a[n][0]===s){n=a[n][1]||n;break}}else if(o.indexOf(s)>=0||i[s]<i[n]){u.push(s);break}c.push(s)}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,l;i={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},o=["(","?"],a={")":["("],":":["?","?:"]},l=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},function(e,t,n){"use strict";function r(e,t){var n,r,o,a,l,s,c=[];for(n=0;n<e.length;n++){if(l=e[n],a=i[l]){for(r=a.length,o=Array(r);r--;)o[r]=c.pop();try{s=a.apply(null,o)}catch(e){return e}}else s=t.hasOwnProperty(l)?t[l]:+l;c.push(s)}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(73),i=n(194),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(195),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(196),o=n(197),a=n(198),l=n(199),s=n(200),c=n(204),u=n(205),d=n(206),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(l.a)(this,"actions"),this.hasFilter=Object(l.a)(this,"filters"),this.removeAllActions=Object(a.a)(this,"actions",!0),this.removeAllFilters=Object(a.a)(this,"filters",!0),this.doAction=Object(s.a)(this,"actions"),this.applyFilters=Object(s.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 l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,s=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 l)return void console.error("If specified, the hook priority must be a number.");var c={callback:a,priority:l,namespace:r};if(s[n]){var u,d=s[n].handlers;for(u=d.length;u>0&&!(l>=d[u-1].priority);u--);u===d.length?d[u]=c:d.splice(u,0,c),s.__current.forEach(function(e){e.name===n&&e.currentIndex>=u&&e.currentIndex++})}else s[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,a,l)}}}var i=n(74),o=n(43);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 l=e[t];if(Object(o.a)(r)&&(n||Object(i.a)(a))){if(!l[r])return 0;var s=0;if(n)s=l[r].handlers.length,l[r]={runs:l[r].runs,handlers:[]};else for(var c=l[r].handlers,u=c.length-1;u>=0;u--)!function(e){c[e].namespace===a&&(c.splice(e,1),s++,l.__current.forEach(function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--}))}(u);return"hookRemoved"!==r&&e.doAction("hookRemoved",r,a),s}}}var i=n(74),o=n(43);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,l=new Array(a>1?a-1:0),s=1;s<a;s++)l[s-1]=arguments[s];if(!o||!o.length)return n?l[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,l);n&&(l[0]=d),c.currentIndex++}return i.__current.pop(),n?l[0]:void 0}}n(75);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(76)},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){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(43);t.a=r},function(e,t,n){"use strict";var r=(n(208),n(27));n.d(t,"a",function(){return r.a});n(214),n(216),n(217),n(218),n(79)},function(e,t,n){"use strict";n(209),n(78),n(75),n(27)},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(l.a)()}t.a=r;var i=n(210),o=n(211),a=n(77),l=n(212)},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,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){l=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(l)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,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(215);n.n(r)},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";var r=n(18);n.n(r)},function(e,t,n){"use strict"},function(e,t,n){"use strict";var r=(n(26),n(44),n(78),n(18)),i=(n.n(r),n(219),n(27)),o=(n(79),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 l(e){return o(r(e))}function s(e){return!u.test(e)}t.a=a,t.b=l,t.c=s;var c=n(220),u=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/},function(e,t,n){"use strict";function r(e){return e.replace(/>/g,"&gt;")}t.a=r}]);
1
+ !function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=87)}([function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";function r(e){return"[object Array]"===x.call(e)}function i(e){return void 0===e}function o(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function a(e){return"[object ArrayBuffer]"===x.call(e)}function s(e){return"undefined"!=typeof FormData&&e instanceof FormData}function l(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function c(e){return"string"==typeof e}function u(e){return"number"==typeof e}function d(e){return null!==e&&"object"==typeof e}function p(e){return"[object Date]"===x.call(e)}function h(e){return"[object File]"===x.call(e)}function m(e){return"[object Blob]"===x.call(e)}function f(e){return"[object Function]"===x.call(e)}function g(e){return d(e)&&f(e.pipe)}function w(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function b(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function v(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function y(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function S(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=S(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;n<r;n++)y(arguments[n],e);return t}function E(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=E(t[n],e):t[n]="object"==typeof e?E({},e):e}for(var t={},n=0,r=arguments.length;n<r;n++)y(arguments[n],e);return t}function _(e,t,n){return y(t,function(t,r){e[r]=n&&"function"==typeof t?C(t,n):t}),e}var C=n(64),x=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:a,isBuffer:o,isFormData:s,isArrayBufferView:l,isString:c,isNumber:u,isObject:d,isUndefined:i,isDate:p,isFile:h,isBlob:m,isFunction:f,isStream:g,isURLSearchParams:w,isStandardBrowserEnv:v,forEach:y,merge:S,deepMerge:E,extend:_,trim:b}},function(e,t,n){var r=n(42)("wks"),i=n(29),o=n(6).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){var r,i;/*!
2
  Copyright (c) 2018 Jed Watson.
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,b=h?i:i[t]||(i[t]={}),v=b.prototype,y=h?r:m?r[t]:(r[t]||{}).prototype;h&&(n=t);for(c in n)(u=!p&&y&&void 0!==y[c])&&s(b,c)||(d=u?y[c]:n[c],b[c]=h&&"function"!=typeof y[c]?n[c]:g&&u?o(d,r):w&&y[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&&((b.virtual||(b.virtual={}))[c]=d,e&l.R&&v&&!v[c]&&a(v,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:"exactmetrics-donut-container",style:{flexDirection:"column"}},wp.element.createElement("div",{className:"exactmetrics-donut",style:{width:n,paddingBottom:n,backgroundColor:"#f2f2f2"}},wp.element.createElement("div",{className:"exactmetrics-donut-sections",style:{transform:"rotate(0deg)"}},wp.element.createElement("div",{className:"exactmetrics-donut-section exactmetrics-donut-section-right",style:{transform:"rotate(0deg)"}},wp.element.createElement("div",{className:"exactmetrics-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:"exactmetrics-donut-section exactmetrics-donut-section-left",style:{transform:"rotate(0deg)"}},wp.element.createElement("div",{className:"exactmetrics-donut-filler",style:{backgroundColor:o,transform:"rotate("+e+"deg)"}}))}}()),wp.element.createElement("div",{className:"exactmetrics-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 b,v,y,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&&(y=u(N.call(new e)))!==Object.prototype&&y.next&&(c(y,E,!0),r||"function"==typeof y[d]||a(y,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(b={values:_?O:S("values"),keys:g?O:S("keys"),entries:T},w)for(v in b)v in x||o(x,v,b[v]);else i(i.P+i.F*(p||C),t,b);return b}},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),b=(e.withCredentials||l(g))&&e.xsrfCookieName?w.read(e.xsrfCookieName):void 0;b&&(p[e.xsrfHeaderName]=b)}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),b="inspector-exactmetrics-popular-posts-theme-control-"+w,v=function(e){return p(e.target.value)},y=[],S=0,E=0,_=0;for(var C in m)if(m.hasOwnProperty(C)){var x=m[C];void 0===y[S]&&(y[S]=[]),y[S][E]=x,x.value===n&&(_=S),3===E?(E=0,S++):E++}var k=function(){return wp.element.createElement("span",{className:"exactmetrics-theme-picker-check"},l.a.checkmark)},O=function(e){var t="exactmetrics-theme-picker-label-"+e.value;return e.value===n&&(t+=" exactmetrics-theme-picker-label-selected"),s.a.canaccess(e.level)||(t+=" exactmetrics-theme-picker-label-disabled"),t};return!Object(i.isEmpty)(m)&&wp.element.createElement(d,{id:b,help:o,className:a()(t,"exactmetrics-theme-picker")},wp.element.createElement(c.c,{naturalSlideWidth:250,totalSlides:y.length,className:"exactmetrics-theme-picker-carousel",currentSlide:_,dragEnabled:!1},wp.element.createElement(c.f,null,y.map(function(e,t){return wp.element.createElement(c.e,{className:"exactmetrics-theme-picker-slide",index:t,key:b+"-"+t},e.map(function(e,r){return wp.element.createElement("div",{key:b+"-"+t+"-"+r,className:"exactmetrics-slider-theme-option"},wp.element.createElement("input",{id:b+"-"+t+"-"+r,className:"exactmetrics-slider-theme-input",type:"radio",name:b,value:e.value,onChange:v,checked:e.value===n,"aria-describedby":o?b+"__help":void 0}),wp.element.createElement("label",{htmlFor:b+"-"+t+"-"+r,className:O(e)},e.value===n&&k(),wp.element.createElement("span",{className:"exactmetrics-theme-picker-label-icon"},g[e.value]?g[e.value]:""),wp.element.createElement("span",{className:"exactmetrics-theme-picker-label-text"},e.label)))}))})),function(){if(y.length>1)return wp.element.createElement("div",{className:"exactmetrics-carousel-navigation"},wp.element.createElement(c.a,null,l.a.chevronleft),wp.element.createElement(c.d,{className:"exactmetrics-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},b=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},v=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},y=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"===b("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:b,_n:v,_nx:y,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.exactmetrics_gutenberg_tool_vars.translations&&o(window.exactmetrics_gutenberg_tool_vars.translations,"google-analytics-dashboard-for-wp")},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),b=n(145),v=n(146),y=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,F=wp.data.select,M=function(e){var t=F("core/editor").getEditedPostAttribute("title"),n=S("Headline Analyzer","google-analytics-dashboard-for-wp"),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-dashboard-for-wp"),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:[],M=sprintf(S("This headline analyzer is part of ExactMetrics to help you increase your traffic. See your %1swebsite traffic reports%2s.","google-analytics-dashboard-for-wp"),'<a href="'+exactmetrics_gutenberg_tool_vars.reports_url+'" className="exactmetrics-headline-analyzer-link">',"</a>"),j=document.querySelector(".exactmetrics-headline-analyzer-wrapper");if(k){var P=document.createElement("span");if(u.dataExist&&void 0!==u.currentHeadlineData.score){var D=u.currentHeadlineData.score,A=D<40?"red":D<=60?"orange":"green";k.parentNode.setAttribute("exactmetrics-button-color",A),k.nextElementSibling?k.nextElementSibling.innerHTML=D+"/100":(P.innerHTML=D+"/100",k.parentNode.insertBefore(P,k.nextSibling))}else k.parentNode.setAttribute("exactmetrics-button-color","red"),k.nextElementSibling?k.nextElementSibling.innerHTML="00/100":(P.innerHTML="00/100",k.parentNode.insertBefore(P,k.nextSibling))}if(j){var L=j.parentNode.querySelectorAll(".components-panel__header");L&&L.forEach(function(e){var t=e.querySelector('[aria-pressed="true"]');t&&null!==t&&(t.style.display="none")})}var B=function(e){E(a()({},u,e))};return x(function(){var e=new FormData;e.append("_ajax_nonce",exactmetrics_gutenberg_tool_vars.nonce),e.append("action","exactmetrics_gutenberg_headline_analyzer_get_results"),e.append("dataType","json"),e.append("q",t),d.a.post(exactmetrics_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:"exactmetrics-headline-analyzer"},n),wp.element.createElement(T,{name:"exactmetrics-headline-analyzer",title:n,className:"exactmetrics-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:"exactmetrics-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(b.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}):"",wp.element.createElement("div",{className:"exactmetrics-headline-analyzer-bottom-notice"},wp.element.createElement("p",{dangerouslySetInnerHTML:{__html:M}}))))};"undefined"!=typeof exactmetrics_gutenberg_tool_vars&&exactmetrics_gutenberg_tool_vars.allowed_post_types.includes(exactmetrics_gutenberg_tool_vars.current_post_type)&&exactmetrics_gutenberg_tool_vars.is_headline_analyzer_enabled&&k("exactmetrics-headline-analyzer",{icon:c.a.headlineBlack,render:M})},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,b=u(p);if(g&&(f=r(f,m>2?arguments[2]:void 0,2)),void 0==b||h==Array&&s(b))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=b.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-dashboard-for-wp"),n=u("Try New Headline","google-analytics-dashboard-for-wp"),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")},b=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:"exactmetrics-inline-buttons"},wp.element.createElement("button",{onClick:g,className:a()("exactmetrics-switcher-button",{active:"current-score"===d})},t),wp.element.createElement("button",{onClick:w,className:a()("exactmetrics-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}),b?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-dashboard-for-wp"),r=a("A good score is between 40 and 60. For best results, you should strive for 70 and above.","google-analytics-dashboard-for-wp"),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:"exactmetrics-headline-analyzer-current-score-tab"},wp.element.createElement("h4",{className:"exactmetrics-headline-analyzer-current-title"},"“",t,"”"),wp.element.createElement("div",{className:"exactmetrics-headline-analyzer-pie-chart-container"},wp.element.createElement("span",{className:i()("exactmetrics-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-dashboard-for-wp"),n=s("Enter a different headline than your post title to see how it compares.","google-analytics-dashboard-for-wp"),r=s("Analyze","google-analytics-dashboard-for-wp"),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",exactmetrics_gutenberg_tool_vars.nonce),r.append("action","exactmetrics_gutenberg_headline_analyzer_get_results"),r.append("dataType","json"),r.append("q",n),a.a.post(exactmetrics_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:"exactmetrics-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:"exactmetrics-headline-analyzer-input-field"}),wp.element.createElement(h,{className:"exactmetrics-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-dashboard-for-wp"),r=a("A good score is between 40 and 60. For best results, you should strive for 70 and above.","google-analytics-dashboard-for-wp"),l=a("Current Score","google-analytics-dashboard-for-wp"),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:"exactmetrics-headline-analyzer-new-score-panel"},wp.element.createElement("p",null,r),wp.element.createElement("h4",null,"“",d,"”"),wp.element.createElement("div",{className:"exactmetrics-headline-analyzer-pie-chart-container"},wp.element.createElement("span",{className:i()("exactmetrics-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()("exactmetrics-headline-analyzer-score-difference",m)},p>h?"+ ":p===h?"":"- ",w),wp.element.createElement("h5",null,l),wp.element.createElement("span",{className:i()("exactmetrics-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-dashboard-for-wp"),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:"exactmetrics-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()("exactmetrics-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-dashboard-for-wp"),n=s("Compare the percentages of your results to the goal for each category and adjust as necessary.","google-analytics-dashboard-for-wp"),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-dashboard-for-wp"),m=e.data.result.common_words_per<.2?h:s("Headlines with 20-30% common words are more likely to get clicks.","google-analytics-dashboard-for-wp"),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-dashboard-for-wp"),b=0===e.data.result.emotion_words_per?"red":e.data.result.emotion_words_per<.1?"orange":"green",v=0===e.data.result.emotion_words_per?"red-bg":e.data.result.emotion_words_per<.1?"orange-bg":"green-bg",y=s("Emotionally triggered headlines are likely to drive more clicks.","google-analytics-dashboard-for-wp"),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-dashboard-for-wp"),C=s("Common Words","google-analytics-dashboard-for-wp"),x=s("20-30%","google-analytics-dashboard-for-wp"),k=s("Uncommon Words","google-analytics-dashboard-for-wp"),O=s("10-20%","google-analytics-dashboard-for-wp"),T=s("Emotional Words","google-analytics-dashboard-for-wp"),N=s("10-15%","google-analytics-dashboard-for-wp"),F=s("Power Words","google-analytics-dashboard-for-wp"),M=s("At least one","google-analytics-dashboard-for-wp");return wp.element.createElement(l,null,wp.element.createElement(u,{title:t,className:o()("exactmetrics-headline-analyzer-panel-word-balance","exactmetrics-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:y,classOnScore:b,classOnScoreBg:v}),wp.element.createElement(a.a,{title:F,value:Math.round(100*e.data.result.power_words_per),goalValue:M,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-dashboard-for-wp"),n={width:e.value+"%"};return wp.element.createElement("div",{className:"exactmetrics-headline-analyzer-words-block"},wp.element.createElement("h5",null,e.title),wp.element.createElement("div",{className:"exactmetrics-headline-analyzer-words-block-data"},wp.element.createElement("span",{className:i()("exactmetrics-headline-analyzer-words-block-percentage",e.classOnScore)},e.value,"%"),wp.element.createElement("span",{className:"exactmetrics-headline-analyzer-words-block-goal"},wp.element.createElement("strong",null,t),e.goalValue),wp.element.createElement("span",{className:"exactmetrics-headline-analyzer-words-block-progressbar"},wp.element.createElement("span",{className:"exactmetrics-headline-analyzer-progressbar-bg"}),wp.element.createElement("span",{className:i()("exactmetrics-headline-analyzer-progressbar-part",e.classOnScoreBg),style:n}))),wp.element.createElement("ul",{className:"exactmetrics-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:"exactmetrics-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-dashboard-for-wp"),n=a("Headlines that are strongly positive or negative tend to get more engagement then neutral ones.","google-analytics-dashboard-for-wp"),i=a("Your headline has a positive sentiment.","google-analytics-dashboard-for-wp"),l=a("Positive headlines tend to get better engagement than neutral or negative ones.","google-analytics-dashboard-for-wp"),d=a("Your headline has a negative sentiment.","google-analytics-dashboard-for-wp"),p=a("Negative headlines are attention-grabbing and tend to perform better than neutral ones.","google-analytics-dashboard-for-wp"),h=a("Sentiment","google-analytics-dashboard-for-wp"),m="neu"===e.data.result.sentiment?a("Neutral","google-analytics-dashboard-for-wp"):"pos"===e.data.result.sentiment?a("Positive","google-analytics-dashboard-for-wp"):a("Negative","google-analytics-dashboard-for-wp"),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()("exactmetrics-headline-analyzer-panel-sentiment","exactmetrics-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-dashboard-for-wp"),r=wp.element.createElement("span",{className:"exactmetrics-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-dashboard-for-wp"),"<br/><br/>",'<a href="https://optinmonster.com/why-these-21-headlines-went-viral-and-how-you-can-copy-their-success/" target="_blank" className="exactmetrics-headline-analyzer-link">',"</a>");return wp.element.createElement(a,null,wp.element.createElement(l,{title:r,className:"exactmetrics-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-dashboard-for-wp"),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-dashboard-for-wp"),m=s("You have space to add more keywords and power words to boost your rankings and click-through rate.","google-analytics-dashboard-for-wp")):n>=35&&n<=66?(p=s("Good","google-analytics-dashboard-for-wp"),m=s("Headlines that are about 55 characters long will display fully in search results and tend to get more clicks.","google-analytics-dashboard-for-wp")):n>=67&&(p=s("Too Long","google-analytics-dashboard-for-wp"),m=s("At this length, it will get cut off in search results. Try reducing it to about 55 characters.","google-analytics-dashboard-for-wp")),wp.element.createElement(l,null,wp.element.createElement(u,{title:t,className:o()("exactmetrics-headline-analyzer-panel-character-count","exactmetrics-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:"exactmetrics-headline-analyzer-pie-chart-container"},wp.element.createElement("span",{className:o()("exactmetrics-headline-analyzer-character-length",c)},n),wp.element.createElement(a.a,{barScore:i,barColor:h}),wp.element.createElement("span",{className:"exactmetrics-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-dashboard-for-wp"),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-dashboard-for-wp"),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-dashboard-for-wp")):n>=5&&n<=9?(c="green",h="#1EC185",p=s("Good","google-analytics-dashboard-for-wp"),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-dashboard-for-wp")):n>=10&&n<=11?(c="orange",h="#F2994A",p=s("Reduce Word Count","google-analytics-dashboard-for-wp")):(c="red",h="#EB5757",p=s("Too Many Words","google-analytics-dashboard-for-wp"),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-dashboard-for-wp")),wp.element.createElement(l,null,wp.element.createElement(u,{title:t,className:o()("exactmetrics-headline-analyzer-panel-word-count","exactmetrics-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:"exactmetrics-headline-analyzer-pie-chart-container"},wp.element.createElement("span",{className:o()("exactmetrics-headline-analyzer-word-length",c)},n),wp.element.createElement(a.a,{barScore:i,barColor:h}),wp.element.createElement("span",{className:"exactmetrics-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-dashboard-for-wp"),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-dashboard-for-wp"),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:"exactmetrics-headline-analyzer-panel-beginning-ending-words"},wp.element.createElement(s,null,l?wp.element.createElement("div",{className:"exactmetrics-headline-analyzer-words beginning"},wp.element.createElement("span",null,l)):"",c?wp.element.createElement("div",{className:"exactmetrics-headline-analyzer-words ending"},wp.element.createElement("span",null,c)):"",wp.element.createElement("p",{className:"exactmetrics-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-dashboard-for-wp"),n=o("Here is how your headline will look like in google search results page.","google-analytics-dashboard-for-wp"),r=u("core/editor").getPermalink(),s={href:r};return wp.element.createElement(a,null,wp.element.createElement(l,{title:t,className:"exactmetrics-headline-analyzer-panel-search-preview"},wp.element.createElement(c,null,wp.element.createElement("h4",null,e.data.sentence),wp.element.createElement("p",{className:"exactmetrics-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("exactmetrics-exclude-page-tracking",{render:function(){var e=window.exactmetrics_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:"exactmetrics-skip-tracking",title:"ExactMetrics",className:"exactmetrics-skip-tracking-wrapper",icon:"mi"},wp.element.createElement(s,{checked:l,help:p("Toggle to prevent Google Analytics from tracking this page.","google-analytics-dashboard-for-wp"),label:p("Exclude page from Google Analytics Tracking","google-analytics-dashboard-for-wp"),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-dashboard-for-wp"),upgrade:r("Upgrade","google-analytics-dashboard-for-wp")};return wp.element.createElement(i,null,wp.element.createElement("div",{className:"exactmetrics-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:"exactmetrics-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),b=n.n(w),v=n(179),y=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-dashboard-for-wp"),yesterday:_("Yesterday","google-analytics-dashboard-for-wp"),bouncerate:_("Bounce Rate","google-analytics-dashboard-for-wp"),timeonpage:_("Time On Page","google-analytics-dashboard-for-wp"),loadingtime:_("Load Time","google-analytics-dashboard-for-wp"),entrances:_("Entrances","google-analytics-dashboard-for-wp"),pageviews:_("Page Views","google-analytics-dashboard-for-wp"),exits:_("Exits","google-analytics-dashboard-for-wp")},e}return b()(t,e),m()(t,[{key:"render",value:function(){return this.props.hidden?wp.element.createElement(Fragment,null):wp.element.createElement("div",{className:"exactmetrics-metabox lite",id:"exactmetrics-metabox-page-insights"},!this.state.showBtnClicked&&wp.element.createElement(S.a,{onClick:this.showPageInsightsClick}),wp.element.createElement("div",{id:"exactmetrics-page-insights-content",className:this.state.showBtnClicked?"active":""},wp.element.createElement("div",{className:"exactmetrics-page-insights__tabs"},wp.element.createElement(v.a,{text:this.texts.last30days,tab:"tab-last-30-days-content",active:this.state.tabs.last30days,onClick:this.tabclick,interval:"last30days"}),wp.element.createElement(v.a,{text:this.texts.yesterday,tab:"tab-yesterday-content",active:this.state.tabs.yesterday,onClick:this.tabclick,interval:"yesterday"})),wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content"},wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab active",id:"tab-last-30-days-content"},wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-items"},wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item"},wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item__result"},wp.element.createElement("span",null,"53.40%")),wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item__title"},this.texts.bouncerate)),wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item"},wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item__result"},wp.element.createElement("span",null,"1m 43s")),wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item__title"},this.texts.timeonpage)),wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item"},wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item__result"},wp.element.createElement("span",null,"3.9s")),wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item__title"},this.texts.loadingtime)),wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item"},wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item__result"},wp.element.createElement("span",null,"19056")),wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item__title"},this.texts.entrances)),wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item"},wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item__result"},wp.element.createElement("span",null,"26558")),wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item__title"},this.texts.pageviews)),wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item"},wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item__result"},wp.element.createElement("span",null,"13428")),wp.element.createElement("div",{className:"exactmetrics-page-insights-tabs-content__tab-item__title"},this.texts.exits)))))),this.state.showBtnClicked&&wp.element.createElement(E.a,{onClick:this.hidePageInsightsClick}))}}]),t}(y.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),b=n(8),v=n(12),y=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),F=k.f,M=T.f,j=x.f,P=r.Symbol,D=r.JSON,A=D&&D.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 P&&!!O.f,W=r.QObject,Z=!W||!W.prototype||!W.prototype.findChild,U=o&&c(function(){return 7!=C(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=F(q,t);r&&delete q[t],M(e,t,n),r&&e!==q&&M(q,t,r)}:M,Y=function(e){var t=H[e]=C(P.prototype);return t._k=e,t},X=V&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},G=function(e,t,n){return e===q&&G(I,t,n),b(e),t=E(t,!0),b(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)||M(e,L,_(1,{})),e[L][t]=!0),U(e,t,n)):M(e,t,n)},K=function(e,t){b(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=F(e,t);return!n||!i(H,t)||i(e,L)&&e[L][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=j(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=j(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||(P=function(){if(this instanceof P)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(P.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:P});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]=P(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(y(e))}}),D&&a(a.S+a.F*(!V||c(function(){var e=P();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],(v(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(D,r)}}),P.prototype[B]||n(11)(P.prototype,B,P.prototype.valueOf),d(P,"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:"exactmetrics-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-dashboard-for-wp"),e}return p()(t,e),l()(t,[{key:"render",value:function(){return wp.element.createElement("a",{className:"button",href:"#",id:"exactmetrics_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-dashboard-for-wp"),e}return p()(t,e),l()(t,[{key:"render",value:function(){return wp.element.createElement("a",{className:"button",href:"#",id:"exactmetrics_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,b=wp.blockEditor.InspectorControls,v=wp.components,y=v.PanelBody,S=v.PanelRow,E=v.TextControl,_=v.ColorPalette,C=v.RangeControl,x=window.exactmetrics_gutenberg_tool_vars,k={setThemes:function(e){return{type:"SET_THEMES",themes:e}},receiveThemes:function(e){return{type:"RECEIVE_THEMES",path:e}}};g("exactmetrics/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("/exactmetrics/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("exactmetrics/popular-posts-inline",{title:d("Inline Popular Posts","google-analytics-dashboard-for-wp"),description:d("Add inline popular posts from ExactMetrics","google-analytics-dashboard-for-wp"),category:"widgets",icon:c.a.inlinepop,keywords:[d("Popular","google-analytics-dashboard-for-wp"),d("Posts","google-analytics-dashboard-for-wp"),d("Inline","google-analytics-dashboard-for-wp"),"ExactMetrics"],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("exactmetrics/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 v=function(e,t){var n=m[t];return wp.element.createElement(C,{key:"exactmetrics-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:"exactmetrics-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:"exactmetrics-popular-posts-label"+t},e),wp.element.createElement(_,{key:"exactmetrics-popular-posts-input"+t,value:n,colors:a,onChange:function(e){o(i()({},t,e))}})]};return[wp.element.createElement(b,{key:"exactmetrics-popular-posts-inline-inspector-controls"},wp.element.createElement(y,{title:d("Theme","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-inline-theme"},wp.element.createElement(S,{key:"exactmetrics-popular-posts-inline-theme-row"},wp.element.createElement(u.a,{id:"exactmetrics-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(v(d("Title Font Size","google-analytics-dashboard-for-wp"),"title_size")),void 0!==h.title.color&&e.push(O(d("Title Color","google-analytics-dashboard-for-wp"),"title_color")),wp.element.createElement(y,{title:d("Title Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-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-dashboard-for-wp"),"label_text")),void 0!==h.label.color&&e.push(O(d("Label Color","google-analytics-dashboard-for-wp"),"label_color")),void 0!==h.label.background&&e.push(O(d("Label Background","google-analytics-dashboard-for-wp"),"label_background")),wp.element.createElement(y,{title:d("Label Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-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-dashboard-for-wp"),"border_color")),void 0!==h.border&&void 0!==h.border.color2&&e.push(O(d("Bottom Border Color","google-analytics-dashboard-for-wp"),"border_color2")),void 0!==h.background&&void 0!==h.background.border&&e.push(O(d("Border Color","google-analytics-dashboard-for-wp"),"background_border")),0!==e.length)return wp.element.createElement(y,{title:d("Border Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-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-dashboard-for-wp"),"background_color")),wp.element.createElement(y,{title:d("Background Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-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-dashboard-for-wp"),"icon_color")),void 0!==h.icon.background&&e.push(O(d("Icon Background Color","google-analytics-dashboard-for-wp"),"icon_background")),wp.element.createElement(y,{title:d("Icon Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-inline-icon"}," ",e," ")}}()),wp.element.createElement("div",{key:"exactmetrics-popular-posts-inline-preview"},wp.element.createElement("div",{className:"exactmetrics-inline-popular-posts-widget exactmetrics-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:"exactmetrics-inline-popular-posts-image"},wp.element.createElement("img",{src:x.vue_assets_path+"img/"+e}))}}(),wp.element.createElement("div",{className:"exactmetrics-inline-popular-posts-text"},function(){if(void 0!==h.icon)return wp.element.createElement("span",{className:"exactmetrics-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:"exactmetrics-inline-popular-posts-label"},m.label_text)}(),function(){if(void 0!==h.border&&void 0!==h.border.color)return wp.element.createElement("span",{className:"exactmetrics-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:"exactmetrics-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:"exactmetrics-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:"exactmetrics-inline-popular-posts-list"},e)}}(),function(){if(void 0!==h.border&&void 0!==h.border.color2)return wp.element.createElement("span",{className:"exactmetrics-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&&b.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[y];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(b.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,b=w.hasOwnProperty,v="function"==typeof Symbol?Symbol:{},y=v.iterator||"@@iterator",S=v.asyncIterator||"@@asyncIterator",E=v.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={},F={};F[y]=function(){return this};var M=Object.getPrototypeOf,j=M&&M(M(m([])));j&&j!==w&&b.call(j,y)&&(F=j);var P=a.prototype=i.prototype=Object.create(F);o.prototype=P.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(P),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(P),P[E]="Generator",P[y]=function(){return this},P.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)&&b.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=b.call(i,"catchLoc"),s=b.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&&b.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:"#F0EAFE"}),wp.element.createElement("rect",{x:"5.72728",y:"19.8947",width:"58.5455",height:"8.52632",rx:"3",fill:"#6528F5"}),wp.element.createElement("rect",{x:"5.72728",y:"7.57892",width:"17.1818",height:"8.52632",rx:"3",fill:"#8453F7"})),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:"#6528F5"}),wp.element.createElement("rect",{x:"31",y:"10",width:"18",height:"9",rx:"3",fill:"#8453F7"}),wp.element.createElement("rect",{x:"7",y:"10",width:"20",height:"20",rx:"3",fill:"#8453F7"}),wp.element.createElement("rect",{x:"1.5",y:"1.5",width:"67",height:"37",rx:"1.5",stroke:"#F0EAFE",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:"#6528F5"}),wp.element.createElement("rect",{y:"11",width:"70",height:"3",rx:"1.5",fill:"#D1BFFC"}),wp.element.createElement("rect",{width:"26",height:"7",rx:"3",fill:"#8453F7"}),wp.element.createElement("circle",{cx:"4.5",cy:"23.5",r:"4.5",fill:"#6528F5"})),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:"#6528F5"}),wp.element.createElement("rect",{x:"22",y:"9",width:"18",height:"9",rx:"3",fill:"#8453F7"}),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:"#8453F7"}),wp.element.createElement("rect",{x:"1.5",y:"1.5",width:"67",height:"37",rx:"1.5",stroke:"#F0EAFE",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:"#F0EAFE"}),wp.element.createElement("rect",{x:"24.8182",y:"16",width:"39.4545",height:"9",rx:"3",fill:"#6528F5"}),wp.element.createElement("rect",{x:"5.72728",y:"16",width:"15.2727",height:"9",rx:"3",fill:"#8453F7"})),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:"#6528F5"}),wp.element.createElement("rect",{x:"26",y:"9",width:"28",height:"9",rx:"3",fill:"#8453F7"}),wp.element.createElement("rect",{y:"9",width:"22",height:"22",rx:"3",fill:"#8453F7"})),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:"#6528F5"}),wp.element.createElement("rect",{y:"26",width:"70",height:"3",rx:"1.5",fill:"#D1BFFC"}),wp.element.createElement("rect",{width:"21",height:"7",rx:"3",fill:"#8453F7"}),wp.element.createElement("rect",{x:"25",y:"1",width:"45",height:"3",rx:"1.5",fill:"#D1BFFC"})),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:"#F0EAFE"}),wp.element.createElement("rect",{x:"22",y:"16",width:"40",height:"9",rx:"3",fill:"#6528F5"}),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:"#8453F7"})),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",{clipPath:"url(#clip0)"},wp.element.createElement("rect",{width:"70",height:"40",rx:"3",fill:"#F0EAFE"}),wp.element.createElement("rect",{x:"26",y:"16",width:"36",height:"9",rx:"3",fill:"#6528F5"}),wp.element.createElement("rect",{x:"8",y:"16",width:"14",height:"9",rx:"3",fill:"#6528F5"}),wp.element.createElement("rect",{y:"41",width:"41",height:"4",transform:"rotate(-90 0 41)",fill:"#8453F7"})),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:"#F0EAFE"}),wp.element.createElement("rect",{x:"30",y:"20",width:"32",height:"9",rx:"3",fill:"#6528F5"}),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:"#8453F7"}),wp.element.createElement("rect",{x:"30",y:"11",width:"32",height:"4",rx:"2",fill:"#8453F7"}),wp.element.createElement("rect",{x:"8",y:"11",width:"18",height:"18",rx:"3",fill:"#8453F7"})),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:"#6528F5"}),wp.element.createElement("rect",{y:"9",width:"26",height:"9",rx:"3",fill:"#8453F7"}),wp.element.createElement("rect",{width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"12.7273",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"25.4545",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"38.1818",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"50.9091",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"63.6364",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{y:"37",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"12.7273",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"25.4545",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"38.1818",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"50.9091",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"63.6364",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#D1BFFC"})),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:"#F0EAFE"}),wp.element.createElement("rect",{x:"6",y:"22",width:"32",height:"9",rx:"3",fill:"#6528F5"}),wp.element.createElement("rect",{x:"6",y:"8",width:"20",height:"9",rx:"3",fill:"#8453F7"}),wp.element.createElement("rect",{x:"42",y:"9",width:"22",height:"22",rx:"3",fill:"#8453F7"})),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:"#F0EAFE"}),wp.element.createElement("rect",{x:"35",y:"15",width:"27",height:"9",rx:"3",fill:"#6528F5"}),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:"#8453F7"})),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:"#6528F5"}),wp.element.createElement("rect",{x:"29",y:"9",width:"18",height:"9",rx:"3",fill:"#8453F7"}),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:"#8453F7"}),wp.element.createElement("rect",{x:"1.5",y:"1.5",width:"67",height:"37",rx:"1.5",stroke:"#F0EAFE",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:"#6528f5"})),r.chevronright=wp.element.createElement("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M4.84913 3.68807L1.19048 0.12844C1.10247 0.0428134 0.995599 -4.3519e-08 0.869873 -3.80233e-08C0.744146 -3.25276e-08 0.637278 0.0428134 0.549269 0.12844L0.134371 0.53211C0.0463618 0.617737 0.00235741 0.721713 0.00235742 0.844037C-0.0102153 0.966361 0.0275028 1.07034 0.115512 1.15596L3.03866 4L0.115512 6.84404C0.0275031 6.92966 -0.010215 7.03364 0.00235769 7.15596C0.0023577 7.27829 0.0463621 7.38226 0.134371 7.46789L0.549269 7.87156C0.637278 7.95719 0.744146 8 0.869873 8C0.9956 8 1.10247 7.95719 1.19048 7.87156L4.84913 4.31193C4.94971 4.2263 5 4.12232 5 4C5 3.87768 4.94971 3.7737 4.84913 3.68807Z",fill:"#C4C4C4"})),r.chevronleft=wp.element.createElement("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0.150873 3.68807L3.80952 0.12844C3.89753 0.0428134 4.0044 -4.3519e-08 4.13013 -3.80233e-08C4.25585 -3.25276e-08 4.36272 0.0428134 4.45073 0.12844L4.86563 0.53211C4.95364 0.617737 4.99764 0.721713 4.99764 0.844037C5.01022 0.966361 4.9725 1.07034 4.88449 1.15596L1.96134 4L4.88449 6.84404C4.9725 6.92966 5.01021 7.03364 4.99764 7.15596C4.99764 7.27829 4.95364 7.38226 4.86563 7.46789L4.45073 7.87156C4.36272 7.95719 4.25585 8 4.13013 8C4.0044 8 3.89753 7.95719 3.80952 7.87156L0.150873 4.31193C0.0502914 4.2263 2.96645e-07 4.12232 3.01992e-07 4C3.07339e-07 3.87768 0.0502914 3.7737 0.150873 3.68807Z",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 b(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 v(e){return y(e)||S(e)||E(e)||C()}function y(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 F(e,t){return 100*e/t}function M(e){return"".concat(e,"%")}function j(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 P(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 D(e,t,n){var r=e.length;if(r!==t.length)return!1;for(n.push([e,t]);r--;)if(!j(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(!j(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=b(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 Fe}),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=b(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)&&j(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=P(D),ie.object=P(A);var oe=j,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:F(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=b(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=F(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 be,ve,ye,Se,Ee,_e,Ce,xe,ke,Oe,Te,Ne,Fe=Z(ne,function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}}),Me={buttonFirst:"buttonFirst___2rhFr"},je=["carouselStore","className","currentSlide","disabled","onClick","totalSlides"],Pe=(ve=be=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=b(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,je)),o=T([Me.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(be,"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(be,"defaultProps",{className:null,disabled:null,onClick:null}),ve),De=(Z(Pe,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides}}),{buttonNext:"buttonNext___2mOCa"}),Ae=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],Le=(Se=ye=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=b(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([De.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(ye,"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(ye,"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=b(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=b(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=b(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=b(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=b(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=b(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=b(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=M(e.nativeEvent.offsetX/e.target.offsetWidth*100),n=M(e.nativeEvent.offsetY/e.target.offsetHeight*100);this.setState({x:t,y:n})}}},{key:"handleOnTouchStart",value:function(e){var t=this;this.props.isPinchZoomEnabled&&(v(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=v(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=M(Q({min:0,max:100,x:(u.cx-o.left)/o.width*100})),h=M(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&&(v(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),bt=(Z(wt,function(){return{}}),{slide:"slide___3-Nqo",slideHorizontal:"slideHorizontal___1NzNV",slideInner:"slideInner___2mfX9",focusRing:"focusRing___1airF"}),vt=["ariaLabel","carouselStore","children","className","classNameHidden","classNameVisible","currentSlide","index","innerClassName","innerTag","naturalSlideHeight","naturalSlideWidth","onBlur","onFocus","orientation","slideSize","style","tabIndex","tag","totalSlides","visibleSlides","isIntrinsicHeight"],yt=(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=b(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:[bt.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,b=(t.visibleSlides,t.isIntrinsicHeight),v=f(t,vt),y={};"horizontal"===d?(y.width=M(p),y.paddingBottom=M(100*l/(u*w))):(y.width=M(100),y.paddingBottom=M(100*l/u));var S={};b&&("horizontal"===d?y.height="unset":y.width="unset",y.paddingBottom="unset",S.position="unset");var E=c({},y,h),_=this.isVisible(),C=T([bt.slide,"horizontal"===d&&bt.slideHorizontal,"carousel__slide",this.state.focused&&"carousel__slide--focused",_&&o,_&&"carousel__slide--visible",!_&&i,!_&&"carousel__slide--hidden",r]),x=T([bt.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},v),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(yt,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=b(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),b=t.tabIndex,v=(t.totalSlides,t.touchEnabled,t.trayProps),y=t.trayTag,S=t.visibleSlides,E=t.isIntrinsicHeight,_=f(t,Ct),C=c({},w),x={};"vertical"===h&&(x.height=0,x.paddingBottom=M(100*d*S/p),x.width=M(100));var k={},O=M(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=M(100),k.flexDirection="column"):(k.width=M(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]),F=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]),j=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]),P=null!==b?b:0,D=(_.dragStep,_.step,_.infinite,f(_,xt)),A=(v.className,v.onClickCapture,v.onMouseDown,v.onTouchCancel,v.onTouchEnd,v.onTouchMove,v.onTouchStart,v.ref,v.style,f(v,kt));return Y.a.createElement("div",c({ref:function(t){e.sliderElement=t},className:N,"aria-live":"polite","aria-label":n,style:C,tabIndex:P,onKeyDown:this.handleOnKeyDown,role:"listbox"},D),Y.a.createElement("div",{className:F,style:x},Y.a.createElement(y,c({ref:this.getSliderRef,className:j,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,b=g.withSelect,v=wp.blockEditor.InspectorControls,y=wp.components,S=y.PanelBody,E=y.PanelRow,_=y.TextControl,C=y.ColorPalette,x=y.RadioControl,k=y.ToggleControl,O=y.SelectControl,T=y.RangeControl,N=window.exactmetrics_gutenberg_tool_vars,F={setThemes:function(e){return{type:"SET_THEMES",themes:e}},receiveThemes:function(e){return{type:"RECEIVE_THEMES",path:e}}};w("exactmetrics/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:F,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,F.receiveThemes("/exactmetrics/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",F.setThemes(n));case 6:case"end":return e.stop()}},e,this)})}}),h("exactmetrics/popular-posts-widget",{title:p("Popular Posts","google-analytics-dashboard-for-wp"),description:p("Add popular posts from ExactMetrics","google-analytics-dashboard-for-wp"),category:"widgets",icon:c.a.widgetpop,keywords:[p("Popular","google-analytics-dashboard-for-wp"),p("Posts","google-analytics-dashboard-for-wp"),p("Widget","google-analytics-dashboard-for-wp"),"ExactMetrics"],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:b(function(e){return{themes:e("exactmetrics/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,b=void 0!==w&&void 0!==g[w]?g[w]:{},y=void 0!==b.styles?b.styles:{},F={};for(var M in y)if(y.hasOwnProperty(M))for(var j in y[M])if(y[M].hasOwnProperty(j)){var P=M+"_"+j;void 0===e.attributes[P]?F[P]=y[M][j]:F[P]=e.attributes[P],"on"===F[P]&&(F[P]=!0),"off"===F[P]&&(F[P]=!1)}var D=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!==y.meta.author)return wp.element.createElement(k,{label:p("Display Author","google-analytics-dashboard-for-wp"),checked:F.meta_author,onChange:function(e){m(i()({},"meta_author",e))}})},L=function(){if(void 0!==y.meta.date)return wp.element.createElement(k,{label:p("Display Date","google-analytics-dashboard-for-wp"),checked:F.meta_date,onChange:function(e){m(i()({},"meta_date",e))}})},B=function(){if(void 0!==y.meta.comments)return wp.element.createElement(k,{label:p("Display Comments","google-analytics-dashboard-for-wp"),checked:F.meta_comments,onChange:function(e){m(i()({},"meta_comments",e))}})},z=function(){return wp.element.createElement("span",{className:"exactmetrics-wide-column exactmetrics-wide-column-one"},wp.element.createElement("span",null),wp.element.createElement("span",null))},R=function(){return wp.element.createElement("span",{className:"exactmetrics-wide-column exactmetrics-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:"exactmetrics-wide-column exactmetrics-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=F[t];return wp.element.createElement(T,{key:"exactmetrics-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=F[t];return wp.element.createElement(_,{key:"exactmetrics-popular-posts-input"+t,label:e,type:"text",value:n,onChange:function(e){return m(i()({},t,e))}})},V=function(e,t){var n=F[t];return[wp.element.createElement("label",{key:"exactmetrics-popular-posts-label"+t},e),wp.element.createElement(C,{key:"exactmetrics-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:"exactmetrics-widget-popular-posts-image"},wp.element.createElement("img",{src:N.vue_assets_path+"img/"+n}))}},Z=function(){if(void 0!==y.label)return wp.element.createElement("span",{style:{color:F.label_color,backgroundColor:F.label_background},className:"exactmetrics-widget-popular-posts-label"},F.label_text)},U=function(){if(void 0!==y.meta)return[wp.element.createElement("div",{className:"exactmetrics-widget-popular-posts-meta",key:"exactmetrics-widget-popular-posts-meta-options",style:{color:F.meta_color,fontSize:F.meta_size+"px"}},Y(),X(),K()),wp.element.createElement("span",{key:"exactmetrics-widget-popular-posts-comments-options"},G())]},Y=function(){if(F.meta_author)return wp.element.createElement("span",{className:"exactmetrics-widget-popular-posts-author"},"by Aazim Akhtar")},X=function(){if(F.meta_author&&F.meta_date)return wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:y.meta.separator}})},G=function(){if(void 0!==y.meta&&void 0!==y.meta.comments&&F.meta_comments){var e=void 0!==y.comments?F.comments_color:F.meta_color;return wp.element.createElement("span",{className:"exactmetrics-widget-popular-posts-comments",style:{color:e,fontSize:F.meta_size+"px"}},c.a.comments(e)," 24")}},K=function(){if(F.meta_date)return wp.element.createElement("span",{className:"exactmetrics-widget-popular-posts-date"},"Yesterday")},$=function(e){for(;e.length<=10;)e=e.concat(e);return e};return[wp.element.createElement(v,{key:"exactmetrics-popular-posts-widget-inspector-controls"},wp.element.createElement(S,{title:p("Theme","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-widget-theme"},wp.element.createElement(E,{key:"exactmetrics-popular-posts-widget-theme-row"},wp.element.createElement(u.a,{id:"exactmetrics-popular-posts-widget-theme",options:g,selected:w,icons:c.a,onChange:function(e){m({theme:e})}}))),function(){if(void 0!==y.title){var e=[];return void 0!==y.title.size&&e.push(I(p("Title Font Size","google-analytics-dashboard-for-wp"),"title_size")),void 0!==y.title.color&&e.push(V(p("Title Color","google-analytics-dashboard-for-wp"),"title_color")),wp.element.createElement(S,{title:p("Title Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-widget-title"},e)}}(),function(){if(void 0!==y.background&&void 0!==y.background.color){var e=[];return void 0!==y.background.color&&e.push(V(p("Background Color","google-analytics-dashboard-for-wp"),"background_color")),wp.element.createElement(S,{title:p("Background Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-widget-background"}," ",e," ")}}(),function(){if(void 0!==y.label){var e=[];return void 0!==y.label.text&&e.push(q(p("Label Text","google-analytics-dashboard-for-wp"),"label_text")),void 0!==y.label.color&&e.push(V(p("Label Color","google-analytics-dashboard-for-wp"),"label_color")),void 0!==y.label.background&&e.push(V(p("Label Background","google-analytics-dashboard-for-wp"),"label_background")),wp.element.createElement(S,{title:p("Label Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-widget-label"}," ",e," ")}}(),function(){var e=[];if(void 0!==y.border&&void 0!==y.border.color&&e.push(V(p("Border Color","google-analytics-dashboard-for-wp"),"borderColor")),void 0!==y.border&&void 0!==y.border.color2&&e.push(V(p("Bottom Border Color","google-analytics-dashboard-for-wp"),"borderColor2")),void 0!==y.background&&void 0!==y.background.border&&e.push(V(p("Border Color","google-analytics-dashboard-for-wp"),"background_border")),0!==e.length)return wp.element.createElement(S,{title:p("Border Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-inline-border"}," ",e," ")}(),function(){if(void 0!==y.meta){var e=[];return void 0!==y.meta.size&&e.push(I(p("Meta Font Size","google-analytics-dashboard-for-wp"),"meta_size")),void 0!==y.meta.color&&e.push(V(p("Meta Color","google-analytics-dashboard-for-wp"),"meta_color")),wp.element.createElement(S,{title:p("Meta Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-widget-meta-styles"},e)}}(),function(){if(void 0!==y.comments)return wp.element.createElement(S,{title:p("Comment Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-widget-comment-styles"},V(p("Comment Color","google-analytics-dashboard-for-wp"),"comments_color"))}(),function(){return wp.element.createElement(S,{title:p("Wide-Layout Options","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-widget-columns"},wp.element.createElement(x,{label:p("Choose Layout","google-analytics-dashboard-for-wp"),help:p("Adjust the number of columns displayed when the widget is placed in a wide container.","google-analytics-dashboard-for-wp"),className:"exactmetrics-wide-column-options",key:"exactmetrics-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=D(parseInt(e));-1===t.indexOf(s)&&m(i()({},"post_count",parseInt(t[0])))}}),wp.element.createElement(O,{label:p("Post Count","google-analytics-dashboard-for-wp"),help:p("Number of posts displayed.","google-analytics-dashboard-for-wp"),options:D(r,!0),value:s,key:"exactmetrics-popular-posts-widget-post-count",onChange:function(e){m(i()({},"post_count",parseInt(e)))}}))}(),function(){if(void 0!==y.meta)return wp.element.createElement(S,{title:p("Display Options","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-widget-meta-options"},A(),L(),B())}(),function(){return wp.element.createElement(S,{title:p("Behavior Settings","google-analytics-dashboard-for-wp"),key:"exactmetrics-popular-posts-widget-behavior-options"},wp.element.createElement(k,{label:p("Display Widget Title","google-analytics-dashboard-for-wp"),checked:o,onChange:function(e){m(i()({},"widget_title",e))}}),wp.element.createElement(_,{key:"exactmetrics-popular-posts-input-widget-title-text",label:p("Widget Title","google-analytics-dashboard-for-wp"),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-dashboard-for-wp"),slug:"category",onUpdateTerms:function(e){m(i()({},"categories",e))},terms:l}))}()),wp.element.createElement("div",{key:"exactmetrics-popular-posts-widget-preview"},wp.element.createElement("div",{className:"exactmetrics-widget-popular-posts-widget exactmetrics-widget-popular-posts-"+w+" exactmetrics-widget-popular-posts-columns-"+r},function(){if(o)return wp.element.createElement("h2",{className:"exactmetrics-widget-popular-posts-widget-title"},a)}(),wp.element.createElement("div",{className:"exactmetrics-widget-popular-posts-text"},function(){if(void 0!==b.list&&void 0!==b.list.items){var e=$(b.list.items),t=void 0!==b.list.images?$(b.list.images):[],n=[];for(var r in e){if(parseInt(r)===parseInt(s))break;n.push(wp.element.createElement("li",{key:"exactmetrics-popular-posts-preview-list-item-"+r,style:{backgroundColor:F.background_color,borderColor:F.background_border}},W(t,r),wp.element.createElement("div",{className:"exactmetrics-widget-popular-posts-text"},Z(),wp.element.createElement("a",{className:"exactmetrics-widget-popular-posts-title",style:{color:F.title_color,fontSize:F.title_size+"px"}},e[r]),U())))}return wp.element.createElement("ul",{className:"exactmetrics-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:"#F0EAFE"}),wp.element.createElement("rect",{x:"7.39999",y:"12",width:"59.2",height:"9",rx:"2",fill:"#6528F5"}),wp.element.createElement("rect",{x:"7.39999",y:"25",width:"51.8",height:"9",rx:"2",fill:"#6528F5"})),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:"#6528F5"}),wp.element.createElement("rect",{x:"12",y:"12",width:"54",height:"9",rx:"2",fill:"#8453F7"}),wp.element.createElement("rect",{x:"12",y:"25",width:"44",height:"9",rx:"2",fill:"#8453F7"})),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:"#F0EAFE"}),wp.element.createElement("rect",{width:"74",height:"4",fill:"#6528F5"}),wp.element.createElement("rect",{x:"8",y:"14",width:"58",height:"9",rx:"2",fill:"#8453F7"}),wp.element.createElement("rect",{x:"8",y:"27",width:"40",height:"9",rx:"2",fill:"#8453F7"})),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:"#8453F7"}),wp.element.createElement("rect",{x:"31",y:"23",width:"32",height:"7",rx:"2",fill:"#8453F7"}),wp.element.createElement("rect",{x:"31",y:"34",width:"43",height:"5",rx:"2",fill:"#D1BFFC"}),wp.element.createElement("rect",{y:"12",width:"27",height:"27",rx:"2",fill:"#6528F5"}),wp.element.createElement("rect",{width:"74",height:"4",fill:"#6528F5"})),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:"#F0EAFE"}),wp.element.createElement("rect",{x:"8",y:"41",width:"58",height:"7",rx:"2",fill:"#6528F5"}),wp.element.createElement("rect",{x:"8",y:"61",width:"7",height:"7",rx:"3.5",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"8",y:"8",width:"58",height:"29",rx:"2",fill:"#6528F5"}),wp.element.createElement("rect",{x:"8",y:"52",width:"34",height:"5",rx:"2",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"46",y:"52",width:"20",height:"5",rx:"2",fill:"#D1BFFC"})),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:"#F0EAFE"}),wp.element.createElement("rect",{x:"8",y:"8",width:"58",height:"7",rx:"2",fill:"#6528F5"}),wp.element.createElement("rect",{x:"8",y:"28",width:"7",height:"7",rx:"3.5",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"8",y:"19",width:"34",height:"5",rx:"2",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"46",y:"19",width:"20",height:"5",rx:"2",fill:"#D1BFFC"})),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:"#F0EAFE"}),wp.element.createElement("rect",{x:"8",y:"21",width:"58",height:"7",rx:"2",fill:"#6528F5"}),wp.element.createElement("rect",{x:"8",y:"41",width:"7",height:"7",rx:"3.5",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"8",y:"8",width:"16",height:"9",rx:"2",fill:"#6528F5"}),wp.element.createElement("rect",{x:"8",y:"32",width:"34",height:"5",rx:"2",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"46",y:"32",width:"20",height:"5",rx:"2",fill:"#D1BFFC"})),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:"#6528F5"}),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:"#8453F7"}),wp.element.createElement("rect",{x:"8",y:"26",width:"58",height:"7",rx:"2",fill:"#F0EAFE"}),wp.element.createElement("rect",{x:"8",y:"37",width:"34",height:"5",rx:"2",fill:"#D1BFFC"}),wp.element.createElement("rect",{x:"46",y:"37",width:"20",height:"5",rx:"2",fill:"#D1BFFC"})),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:"exactmetrics-hierarchical-term-list-label",className:"components-base-control__label"},this.props.label,wp.element.createElement("span",{className:"exactmetrics-popular-posts-pro-pill"},"PRO")),wp.element.createElement("div",{className:"editor-post-taxonomies__hierarchical-terms-list exactmetrics-hierarchical-terms exactmetrics-hierarchical-terms-disabled",key:"exactmetrics-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}]);
assets/images/restricted.svg ADDED
@@ -0,0 +1,3 @@
 
 
 
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>
assets/js/admin-metabox.js ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function(){
2
+ if ( 0 === jQuery('#exactmetrics-metabox-page-insights').length ){
3
+ return;
4
+ }
5
+
6
+ jQuery('#exactmetrics_show_page_insights').click(function(event){
7
+ event.preventDefault();
8
+ jQuery( '#exactmetrics-page-insights-content' ).slideDown( 'slow' );
9
+ jQuery('#exactmetrics_show_page_insights').fadeOut( 'slow' );
10
+ });
11
+
12
+ jQuery('#exactmetrics_hide_page_insights').click(function(event){
13
+ event.preventDefault();
14
+ jQuery( '#exactmetrics-page-insights-content' ).slideUp( 'slow', function (){
15
+ jQuery('#exactmetrics_show_page_insights').fadeIn( 'slow' );
16
+ } );
17
+ });
18
+
19
+ jQuery( '.exactmetrics-page-insights__tabs-tab' ).click(function (event){
20
+ event.preventDefault();
21
+ let tab_target = jQuery(this).data('tab');
22
+
23
+ jQuery( '.exactmetrics-page-insights__tabs-tab.active' ).removeClass('active');
24
+ jQuery(this).addClass( 'active' );
25
+
26
+ jQuery('.exactmetrics-page-insights-tabs-content__tab.active').removeClass( 'active' );
27
+ jQuery('#' + tab_target).addClass('active');
28
+ });
29
+ });
assets/js/admin-metabox.min.js ADDED
@@ -0,0 +1 @@
 
1
+ ;jQuery(document).ready(function(){if(0===jQuery('#exactmetrics-metabox-page-insights').length){return};jQuery('#exactmetrics_show_page_insights').click(function(t){t.preventDefault();jQuery('#exactmetrics-page-insights-content').slideDown('slow');jQuery('#exactmetrics_show_page_insights').fadeOut('slow')});jQuery('#exactmetrics_hide_page_insights').click(function(t){t.preventDefault();jQuery('#exactmetrics-page-insights-content').slideUp('slow',function(){jQuery('#exactmetrics_show_page_insights').fadeIn('slow')})});jQuery('.exactmetrics-page-insights__tabs-tab').click(function(t){t.preventDefault();let tab_target=jQuery(this).data('tab');jQuery('.exactmetrics-page-insights__tabs-tab.active').removeClass('active');jQuery(this).addClass('active');jQuery('.exactmetrics-page-insights-tabs-content__tab.active').removeClass('active');jQuery('#'+tab_target).addClass('active')})});
gadwp.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://exactmetrics.com
5
  * Description: Displays Google Analytics Reports and Real-Time Statistics in your Dashboard. Automatically inserts the tracking code in every page of your website.
6
  * Author: ExactMetrics
7
- * Version: 7.5.0
8
  * Requires at least: 4.8.0
9
  * Requires PHP: 5.5
10
  * Author URI: https://exactmetrics.com
@@ -44,7 +44,7 @@ final class ExactMetrics_Lite {
44
  * @access public
45
  * @var string $version Plugin version.
46
  */
47
- public $version = '7.5.0';
48
 
49
  /**
50
  * Plugin file.
4
  * Plugin URI: https://exactmetrics.com
5
  * Description: Displays Google Analytics Reports and Real-Time Statistics in your Dashboard. Automatically inserts the tracking code in every page of your website.
6
  * Author: ExactMetrics
7
+ * Version: 7.5.1
8
  * Requires at least: 4.8.0
9
  * Requires PHP: 5.5
10
  * Author URI: https://exactmetrics.com
44
  * @access public
45
  * @var string $version Plugin version.
46
  */
47
+ public $version = '7.5.1';
48
 
49
  /**
50
  * Plugin file.
includes/admin/admin.php CHANGED
@@ -1,630 +1,630 @@
1
- <?php
2
- /**
3
- * Admin class.
4
- *
5
- * @since 6.0.0
6
- *
7
- * @package ExactMetrics
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 ExactMetrics.
19
- *
20
- * @since 6.0.0
21
- * @access public
22
- *
23
- * @return void
24
- */
25
- function exactmetrics_admin_menu() {
26
- $hook = exactmetrics_get_menu_hook();
27
- $menu_icon_inline = exactmetrics_get_inline_menu_icon();
28
-
29
- if ( $hook === 'exactmetrics_settings' ) {
30
- // If dashboards disabled, first settings page
31
- add_menu_page( __( 'ExactMetrics', 'google-analytics-dashboard-for-wp' ), 'ExactMetrics' . ExactMetrics()->notifications->get_menu_count(), 'exactmetrics_save_settings', 'exactmetrics_settings', 'exactmetrics_settings_page', $menu_icon_inline, '100.00013467543' );
32
- $hook = 'exactmetrics_settings';
33
-
34
- add_submenu_page( $hook, __( 'ExactMetrics', 'google-analytics-dashboard-for-wp' ), __( 'Settings', 'google-analytics-dashboard-for-wp' ), 'exactmetrics_save_settings', 'exactmetrics_settings' );
35
- } else {
36
- // if dashboards enabled, first dashboard
37
- add_menu_page( __( 'General:', 'google-analytics-dashboard-for-wp' ), 'ExactMetrics' . ExactMetrics()->notifications->get_menu_count(), 'exactmetrics_view_dashboard', 'exactmetrics_reports', 'exactmetrics_reports_page', $menu_icon_inline, '100.00013467543' );
38
-
39
- add_submenu_page( $hook, __( 'General Reports:', 'google-analytics-dashboard-for-wp' ), __( 'Reports', 'google-analytics-dashboard-for-wp' ), 'exactmetrics_view_dashboard', 'exactmetrics_reports', 'exactmetrics_reports_page' );
40
-
41
- // then settings page
42
- add_submenu_page( $hook, __( 'ExactMetrics', 'google-analytics-dashboard-for-wp' ), __( 'Settings', 'google-analytics-dashboard-for-wp' ), 'exactmetrics_save_settings', 'exactmetrics_settings', 'exactmetrics_settings_page' );
43
-
44
- // Add dashboard submenu.
45
- add_submenu_page( 'index.php', __( 'General Reports:', 'google-analytics-dashboard-for-wp' ), 'ExactMetrics', 'exactmetrics_view_dashboard', 'admin.php?page=exactmetrics_reports' );
46
- }
47
-
48
- $submenu_base = add_query_arg( 'page', 'exactmetrics_settings', admin_url( 'admin.php' ) );
49
-
50
- // Add Popular Posts menu item.
51
- add_submenu_page( $hook, __( 'Popular Posts:', 'google-analytics-dashboard-for-wp' ), __( 'Popular Posts', 'google-analytics-dashboard-for-wp' ), 'exactmetrics_save_settings', $submenu_base . '#/popular-posts' );
52
-
53
- if ( function_exists( 'aioseo' ) ) {
54
- $seo_url = exactmetrics_aioseo_dashboard_url();
55
- } else {
56
- $seo_url = $submenu_base . '#/seo';
57
- }
58
- // then SEO
59
- add_submenu_page( $hook, __( 'SEO', 'google-analytics-dashboard-for-wp' ), __( 'SEO', 'google-analytics-dashboard-for-wp' ), 'manage_options', $seo_url );
60
-
61
- // then tools
62
- add_submenu_page( $hook, __( 'Tools:', 'google-analytics-dashboard-for-wp' ), __( 'Tools', 'google-analytics-dashboard-for-wp' ), 'manage_options', $submenu_base . '#/tools' );
63
-
64
- // then addons
65
- $network_key = exactmetrics_is_pro_version() ? ExactMetrics()->license->get_network_license_key() : '';
66
- if ( ! exactmetrics_is_network_active() || ( exactmetrics_is_network_active() && empty( $network_key ) ) ) {
67
- add_submenu_page( $hook, __( 'Addons:', 'google-analytics-dashboard-for-wp' ), '<span style="color:' . exactmetrics_menu_highlight_color() . '"> ' . __( 'Addons', 'google-analytics-dashboard-for-wp' ) . '</span>', 'exactmetrics_save_settings', $submenu_base . '#/addons' );
68
- }
69
-
70
- // Add About us page.
71
- add_submenu_page( $hook, __( 'About Us:', 'google-analytics-dashboard-for-wp' ), __( 'About Us', 'google-analytics-dashboard-for-wp' ), 'manage_options', $submenu_base . '#/about' );
72
-
73
- add_submenu_page( $hook, __( 'Growth Tools:', 'google-analytics-dashboard-for-wp' ), __( 'Growth Tools', 'google-analytics-dashboard-for-wp' ), 'manage_options', $submenu_base . '#/growth-tools' );
74
-
75
- if ( ! exactmetrics_is_pro_version() ) {
76
- add_submenu_page( $hook, __( 'Upgrade to Pro:', 'google-analytics-dashboard-for-wp' ), '<span class="exactmetrics-upgrade-submenu"> ' . __( 'Upgrade to Pro', 'google-analytics-dashboard-for-wp' ) . '</span>', 'exactmetrics_save_settings', exactmetrics_get_upgrade_link( 'admin-menu', 'submenu', "https://www.exactmetrics.com/lite/" ) );
77
- }
78
-
79
- }
80
- add_action( 'admin_menu', 'exactmetrics_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 exactmetrics_woocommerce_menu_item() {
86
- // Add "Insights" sub menu item for WooCommerce Analytics menu
87
- if ( class_exists( 'WooCommerce' ) && ! apply_filters( 'exactmetrics_disable_woo_analytics_menu', false ) ) {
88
- if ( class_exists( 'ExactMetrics_eCommerce' ) ) {
89
- add_submenu_page( 'wc-admin&path=/analytics/overview', 'ExactMetrics', 'ExactMetrics', 'exactmetrics_view_dashboard', admin_url( 'admin.php?page=exactmetrics_reports#/ecommerce' ), '', 2 );
90
- } else {
91
- $submenu_base = add_query_arg( 'page', 'exactmetrics_settings', admin_url( 'admin.php' ) );
92
- add_submenu_page( 'wc-admin&path=/analytics/overview', 'ExactMetrics', 'ExactMetrics', 'manage_options', $submenu_base . '#/woocommerce-insights', '', 1 );
93
- }
94
- }
95
- }
96
-
97
- add_action( 'admin_menu', 'exactmetrics_woocommerce_menu_item', 11 );
98
-
99
- function exactmetrics_get_menu_hook() {
100
- $dashboards_disabled = exactmetrics_get_option( 'dashboards_disabled', false );
101
- if ( $dashboards_disabled || ( current_user_can( 'exactmetrics_save_settings' ) && ! current_user_can( 'exactmetrics_view_dashboard' ) ) ) {
102
- return 'exactmetrics_settings';
103
- } else {
104
- return 'exactmetrics_reports';
105
- }
106
- }
107
-
108
- function exactmetrics_network_admin_menu() {
109
- // Get the base class object.
110
- $base = ExactMetrics();
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( EXACTMETRICS_PLUGIN_FILE );
119
- if ( ! is_plugin_active_for_network( $plugin ) ) {
120
- return;
121
- }
122
-
123
- $menu_icon_inline = exactmetrics_get_inline_menu_icon();
124
- $hook = 'exactmetrics_network';
125
- $submenu_base = add_query_arg( 'page', 'exactmetrics_network', network_admin_url( 'admin.php' ) );
126
- add_menu_page( __( 'Network Settings:', 'google-analytics-dashboard-for-wp' ), 'ExactMetrics' . ExactMetrics()->notifications->get_menu_count(), 'exactmetrics_save_settings', 'exactmetrics_network', 'exactmetrics_network_page', $menu_icon_inline, '100.00013467543' );
127
-
128
- add_submenu_page( $hook, __( 'Network Settings:', 'google-analytics-dashboard-for-wp' ), __( 'Network Settings', 'google-analytics-dashboard-for-wp' ), 'exactmetrics_save_settings', 'exactmetrics_network', 'exactmetrics_network_page' );
129
-
130
- add_submenu_page( $hook, __( 'General Reports:', 'google-analytics-dashboard-for-wp' ), __( 'Reports', 'google-analytics-dashboard-for-wp' ), 'exactmetrics_view_dashboard', 'exactmetrics_reports', 'exactmetrics_reports_page' );
131
-
132
- if ( function_exists( 'aioseo' ) ) {
133
- $seo_url = exactmetrics_aioseo_dashboard_url();
134
- } else {
135
- $seo_url = $submenu_base . '#/seo';
136
- }
137
- // then seo
138
- add_submenu_page( $hook, __( 'SEO:', 'google-analytics-dashboard-for-wp' ), __( 'SEO', 'google-analytics-dashboard-for-wp' ), 'manage_options', $seo_url, 'exactmetrics_seo_page' );
139
-
140
- // then addons
141
- add_submenu_page( $hook, __( 'Addons:', 'google-analytics-dashboard-for-wp' ), '<span style="color:' . exactmetrics_menu_highlight_color() . '"> ' . __( 'Addons', 'google-analytics-dashboard-for-wp' ) . '</span>', 'exactmetrics_save_settings', $submenu_base . '#/addons' );
142
-
143
- $submenu_base = add_query_arg( 'page', 'exactmetrics_network', network_admin_url( 'admin.php' ) );
144
-
145
- // Add About us page.
146
- add_submenu_page( $hook, __( 'About Us:', 'google-analytics-dashboard-for-wp' ), __( 'About Us', 'google-analytics-dashboard-for-wp' ), 'manage_options', $submenu_base . '#/about' );
147
- }
148
- add_action( 'network_admin_menu', 'exactmetrics_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 exactmetrics_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, 'exactmetrics' ) === false ) {
159
- return $classes;
160
- }
161
-
162
- return "$classes exactmetrics_page ";
163
- }
164
- add_filter( 'admin_body_class', 'exactmetrics_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 exactmetrics_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, 'exactmetrics_tools' ) === false || 'insights_page_exactmetrics_tools' === $screen->id ) {
176
- return $classes;
177
- }
178
-
179
- return "$classes insights_page_exactmetrics_tools ";
180
- }
181
- add_filter( 'admin_body_class', 'exactmetrics_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 exactmetrics_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, 'exactmetrics_addons' ) === false || 'insights_page_exactmetrics_addons' === $screen->id ) {
192
- return $classes;
193
- }
194
-
195
- return "$classes insights_page_exactmetrics_addons ";
196
- }
197
- add_filter( 'admin_body_class', 'exactmetrics_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 exactmetrics_add_action_links( $links ) {
207
- $docs = '<a title="' . esc_html__( 'ExactMetrics Knowledge Base', 'google-analytics-dashboard-for-wp' ) . '" href="'. exactmetrics_get_url( 'all-plugins', 'kb-link', "https://www.exactmetrics.com/docs/" ) .'">' . esc_html__( 'Documentation', 'google-analytics-dashboard-for-wp' ) . '</a>';
208
- array_unshift( $links, $docs );
209
-
210
- // If Lite, support goes to forum. If pro, it goes to our website
211
- if ( exactmetrics_is_pro_version() ) {
212
- $support = '<a title="ExactMetrics Pro Support" href="'. exactmetrics_get_url( 'all-plugins', 'pro-support-link', "https://www.exactmetrics.com/my-account/support/" ) .'">' . esc_html__( 'Support', 'google-analytics-dashboard-for-wp' ) . '</a>';
213
- array_unshift( $links, $support );
214
- } else {
215
- $support = '<a title="ExactMetrics Lite Support" href="'. exactmetrics_get_url( 'all-plugins', 'lite-support-link', "https://www.exactmetrics.com/lite-support/" ) .'">' . esc_html__( 'Support', 'google-analytics-dashboard-for-wp' ) . '</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=exactmetrics_network' ) ) . '">' . esc_html__( 'Network Settings', 'google-analytics-dashboard-for-wp' ) . '</a>';
221
- } else {
222
- $settings_link = '<a href="' . esc_url( admin_url( 'admin.php?page=exactmetrics_settings' ) ) . '">' . esc_html__( 'Settings', 'google-analytics-dashboard-for-wp' ) . '</a>';
223
- }
224
-
225
- array_unshift( $links, $settings_link );
226
-
227
- // If lite, show a link where they can get pro from
228
- if ( ! exactmetrics_is_pro_version() ) {
229
- $get_pro = '<a title="' . esc_html__( 'Get ExactMetrics Pro', 'google-analytics-dashboard-for-wp' ) .'" href="'. exactmetrics_get_upgrade_link( 'all-plugins', 'upgrade-link', "https://www.exactmetrics.com/lite/" ) .'" style="font-weight:700; color: #1da867;">' . esc_html__( 'Get ExactMetrics Pro', 'google-analytics-dashboard-for-wp' ) . '</a>';
230
- array_unshift( $links, $get_pro );
231
- }
232
-
233
- return $links;
234
- }
235
- add_filter( 'plugin_action_links_' . plugin_basename( EXACTMETRICS_PLUGIN_FILE ), 'exactmetrics_add_action_links' );
236
- add_filter( 'network_admin_plugin_action_links_' . plugin_basename( EXACTMETRICS_PLUGIN_FILE ), 'exactmetrics_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 exactmetrics_load_admin_partial( $template, $data = array() ) {
249
-
250
- if ( exactmetrics_is_pro_version() ) {
251
- $dir = trailingslashit( plugin_dir_path( ExactMetrics()->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( ExactMetrics()->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( ExactMetrics()->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 ExactMetrics 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 exactmetrics_admin_footer( $text ) {
285
- global $current_screen;
286
- if ( ! empty( $current_screen->id ) && strpos( $current_screen->id, 'exactmetrics' ) !== false ) {
287
- $url = 'https://wordpress.org/support/view/plugin-reviews/google-analytics-dashboard-for-wp?filter=5';
288
- // Translators: Placeholders add a link to the wordpress.org repository.
289
- $text = sprintf( esc_html__( 'Please rate %1$sExactMetrics%2$s on %3$s %4$sWordPress.org%5$s to help us spread the word. Thank you from the ExactMetrics team!', 'google-analytics-dashboard-for-wp' ), '<strong>', '</strong>', '<a class="exactmetrics-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', 'exactmetrics_admin_footer', 1, 2 );
294
-
295
- function exactmetrics_admin_setup_notices() {
296
-
297
- // Don't show on ExactMetrics pages
298
- $screen = get_current_screen();
299
- if ( empty( $screen->id ) || strpos( $screen->id, 'exactmetrics' ) !== false ) {
300
- return;
301
- }
302
-
303
- // Make sure they have the permissions to do something
304
- if ( ! current_user_can( 'exactmetrics_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() && ! exactmetrics_get_ua() && ! exactmetrics_get_v4_id() && ! defined( 'EXACTMETRICS_DISABLE_TRACKING' ) ) {
322
-
323
- $submenu_base = is_network_admin() ? add_query_arg( 'page', 'exactmetrics_network', network_admin_url( 'admin.php' ) ) : add_query_arg( 'page', 'exactmetrics_settings', admin_url( 'admin.php' ) );
324
- $title = esc_html__( 'Please Setup Website Analytics to See Audience Insights', 'google-analytics-dashboard-for-wp' );
325
- $primary = esc_html__( 'Connect ExactMetrics and Setup Website Analytics', 'google-analytics-dashboard-for-wp' );
326
- $urlone = is_network_admin() ? network_admin_url( 'admin.php?page=exactmetrics-onboarding' ) : admin_url( 'admin.php?page=exactmetrics-onboarding' );
327
- $secondary = esc_html__( 'Learn More', 'google-analytics-dashboard-for-wp' );
328
- $urltwo = $submenu_base . '#/about/getting-started';
329
- $message = esc_html__( 'ExactMetrics, 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 ExactMetrics to see the stats that matter and grow their business.', 'google-analytics-dashboard-for-wp' );
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 = exactmetrics_is_pro_version() ? ExactMetrics()->license->get_license_key() : '';
336
- if ( exactmetrics_is_pro_version() && empty( $key ) ) {
337
- $page = is_network_admin() ? network_admin_url( 'admin.php?page=exactmetrics_network' ) : admin_url( 'admin.php?page=exactmetrics_settings' );
338
- // Translators: Adds a link to retrieve the license.
339
- $message = sprintf( esc_html__( 'Warning: No valid license key has been entered for ExactMetrics. 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-dashboard-for-wp' ), '<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 ( exactmetrics_is_pro_version() ) {
346
- $message = '';
347
- if ( ExactMetrics()->license->get_site_license_key() ){
348
- if ( ExactMetrics()->license->site_license_expired() ) {
349
- // Translators: Adds a link to the license renewal.
350
- $message = sprintf( esc_html__( 'Your license key for ExactMetrics has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-dashboard-for-wp' ), '<a href="'. exactmetrics_get_url( 'admin-notices', 'expired-license', "https://www.exactmetrics.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
351
- } else if ( ExactMetrics()->license->site_license_disabled() ) {
352
- $message = esc_html__( 'Your license key for ExactMetrics has been disabled. Please use a different key.', 'google-analytics-dashboard-for-wp' );
353
- } else if ( ExactMetrics()->license->site_license_invalid() ) {
354
- $message = esc_html__( 'Your license key for ExactMetrics is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-dashboard-for-wp' );
355
- }
356
- } else if ( ExactMetrics()->license->get_network_license_key() ) {
357
- if ( ExactMetrics()->license->network_license_expired() ) {
358
- // Translators: Adds a link to renew license.
359
- $message = sprintf( esc_html__( 'Your network license key for ExactMetrics has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-dashboard-for-wp' ), '<a href="'. exactmetrics_get_url( 'admin-notices', 'expired-license', "https://www.exactmetrics.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
360
- } else if ( ExactMetrics()->license->network_license_disabled() ) {
361
- $message = esc_html__( 'Your network license key for ExactMetrics has been disabled. Please use a different key.', 'google-analytics-dashboard-for-wp' );
362
- } else if ( ExactMetrics()->license->network_license_invalid() ) {
363
- $message = esc_html__( 'Your network license key for ExactMetrics is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-dashboard-for-wp' );
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( 'exactmetrics_compatible_php_version', false );
377
- $compatible_wp_version = apply_filters( 'exactmetrics_compatible_wp_version', false );
378
-
379
- $url = exactmetrics_get_url( 'global-notice', 'settings-page', 'https://www.exactmetrics.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 ExactMetrics 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-dashboard-for-wp' ), 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 ExactMetrics 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-dashboard-for-wp' ), 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 ExactMetrics 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-dashboard-for-wp' ), 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 = exactmetrics_get_url( 'global-notice', 'settings-page', 'https://www.exactmetrics.com/docs/update-wordpress/' );
401
- // Translators: Placeholders add the current WordPress version and links to the ExactMetrics blog
402
- $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sExactMetrics 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-dashboard-for-wp' ), $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 = exactmetrics_get_url( 'global-notice', 'settings-page', 'https://www.exactmetrics.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-dashboard-for-wp' ), 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 = exactmetrics_get_url( 'global-notice', 'settings-page', 'https://www.exactmetrics.com/docs/update-wordpress/' );
416
- // $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sExactMetrics 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-dashboard-for-wp' ), $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( 'exactmetrics_tracking_notice' ) ) {
425
- // if ( ! exactmetrics_get_option( 'anonymous_data', false ) ) {
426
- // if ( ! exactmetrics_is_dev_url( network_site_url( '/' ) ) ) {
427
- // if ( exactmetrics_is_pro_version() ) {
428
- // exactmetrics_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 ExactMetrics to track plugin usage? Opt-in to tracking and our newsletter to stay informed of the latest changes to ExactMetrics and help us ensure compatibility.', 'google-analytics-dashboard-for-wp' );
435
- // echo '&nbsp;<a href="' . esc_url( $optin_url ) . '" class="button-secondary">' . __( 'Allow', 'google-analytics-dashboard-for-wp' ) . '</a>';
436
- // echo '&nbsp;<a href="' . esc_url( $optout_url ) . '" class="button-secondary">' . __( 'Do not allow', 'google-analytics-dashboard-for-wp' ) . '</a>';
437
- // echo '</p></div>';
438
- // return;
439
- // } else {
440
- // // is testing site
441
- // update_option( 'exactmetrics_tracking_notice', '1' );
442
- // }
443
- // }
444
- // }
445
- // }
446
-
447
- $notices = get_option( 'exactmetrics_notices' );
448
- if ( ! is_array( $notices ) ) {
449
- $notices = array();
450
- }
451
-
452
- // 6. Authenticate, not manual
453
- $authed = ExactMetrics()->auth->is_authed() || ExactMetrics()->auth->is_network_authed();
454
- $url = is_network_admin() ? network_admin_url( 'admin.php?page=exactmetrics_network' ) : admin_url( 'admin.php?page=exactmetrics_settings' );
455
- $ua_code = exactmetrics_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 ExactMetrics%2$s so that you can access our new reporting area and take advantage of new ExactMetrics features.', 'google-analytics-dashboard-for-wp' ), '<a href="' . $url . '">', '</a>' );
458
- $migrated = exactmetrics_get_option( 'gadwp_migrated', 0 );
459
- if ( $migrated > 0 ) {
460
- $url = admin_url( 'admin.php?page=exactmetrics-getting-started&exactmetrics-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-dashboard-for-wp' );
463
- $manual_text = sprintf( $text, '<a href="' . $url . '">', '</a>', '<a href="' . exactmetrics_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['exactmetrics_auth_not_manual'] ) && ! empty( $ua_code ) ) {
467
- echo '<div class="notice notice-info is-dismissible exactmetrics-notice" data-notice="exactmetrics_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 = exactmetrics_get_option( 'automatic_updates', false );
479
- // $url = admin_url( 'admin.php?page=exactmetrics_settings' );
480
-
481
- // if ( empty( $updates) && ! isset( $notices['exactmetrics_automatic_updates' ] ) ) {
482
- // echo '<div class="notice notice-info is-dismissible exactmetrics-notice" data-notice="exactmetrics_automatic_updates">';
483
- // echo '<p>';
484
- // echo sprintf( esc_html__( 'Important: Please %1$sconfigure the Automatic Updates Settings%2$s in ExactMetrics.', 'google-analytics-dashboard-for-wp' ), '<a href="' . $url .'">', '</a>' );
485
- // echo '</p>';
486
- // echo '</div>';
487
- // return;
488
- // }
489
- // }
490
-
491
- // 8. WooUpsell
492
- if ( ! exactmetrics_is_pro_version() && class_exists( 'WooCommerce' ) ) {
493
- if ( ! isset( $notices['exactmetrics_woocommerce_tracking_available' ] ) ) {
494
- echo '<div class="notice notice-success is-dismissible exactmetrics-notice exactmetrics-wooedd-upsell-row" data-notice="exactmetrics_woocommerce_tracking_available">';
495
- echo '<div class="exactmetrics-wooedd-upsell-left">';
496
- echo '<p><strong>';
497
- echo esc_html( 'Enhanced Ecommerce Analytics for Your WooCommerce Store', 'google-analytics-dashboard-for-wp' );
498
- echo '</strong></p>';
499
- echo '<img class="exactmetrics-wooedd-upsell-image exactmetrics-wooedd-upsell-image-small" src="' . trailingslashit( EXACTMETRICS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
500
- echo '<p>';
501
- echo esc_html( 'ExactMetrics Pro gives you detailed stats and insights about your customers.', 'google-analytics-dashboard-for-wp' );
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-dashboard-for-wp' );
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-dashboard-for-wp' );
508
- echo '</p>';
509
- echo '<p>';
510
- echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-dashboard-for-wp' );
511
- echo '</p>';
512
- // Translators: Placeholders add a link to the ExactMetrics website.
513
- echo sprintf( esc_html__( '%1$sGet ExactMetrics Pro%2$s', 'google-analytics-dashboard-for-wp' ), '<a class="button button-primary button-hero" href="'. exactmetrics_get_upgrade_link( 'admin-notices', 'woocommerce-upgrade' ) .'">', ' &raquo;</a>' );
514
- echo '</p>';
515
- echo '</div><div class="exactmetrics-wooedd-upsell-right">';
516
- echo '<img class="exactmetrics-wooedd-upsell-image exactmetrics-wooedd-upsell-image-large" src="' . trailingslashit( EXACTMETRICS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
517
- echo '</div>';
518
- echo '</div>';
519
- echo '<style type="text/css">.exactmetrics-wooedd-upsell-left{width:50%;display:table-cell;float:left}.exactmetrics-wooedd-upsell-right{width:50%;display:table-cell;float:left}.exactmetrics-wooedd-upsell-image{width:100%;height:auto;padding:20px}.exactmetrics-wooedd-upsell-image-small{display:none}.exactmetrics-wooedd-upsell-row{display:table}.exactmetrics-wooedd-upsell-left p{margin:1em 0;font-size:16px}@media (max-width:900px){.exactmetrics-wooedd-upsell-left{width:100%}.exactmetrics-wooedd-upsell-right{display:none}.exactmetrics-wooedd-upsell-image-small{display:block}.exactmetrics-wooedd-upsell-image-large{display:none}}</style>';
520
- return;
521
- }
522
- }
523
-
524
- // 9. EDDUpsell
525
- if ( ! exactmetrics_is_pro_version() && class_exists( 'Easy_Digital_Downloads' ) ) {
526
- if ( ! isset( $notices['exactmetrics_edd_tracking_available' ] ) ) {
527
- echo '<div class="notice notice-success is-dismissible exactmetrics-notice exactmetrics-wooedd-upsell-row" data-notice="exactmetrics_edd_tracking_available">';
528
- echo '<div class="exactmetrics-wooedd-upsell-left">';
529
- echo '<p><strong>';
530
- echo esc_html( 'Enhanced Ecommerce Analytics for Your Easy Digital Downloads Store', 'google-analytics-dashboard-for-wp' );
531
- echo '</strong></p>';
532
- echo '<img class="exactmetrics-wooedd-upsell-image exactmetrics-wooedd-upsell-image-small" src="' . trailingslashit( EXACTMETRICS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
533
- echo '<p>';
534
- echo esc_html( 'ExactMetrics Pro gives you detailed stats and insights about your customers.', 'google-analytics-dashboard-for-wp' );
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-dashboard-for-wp' );
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-dashboard-for-wp' );
541
- echo '</p>';
542
- echo '<p>';
543
- echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-dashboard-for-wp' );
544
- echo '</p>';
545
- echo sprintf( esc_html__( '%1$sGet ExactMetrics Pro%2$s', 'google-analytics-dashboard-for-wp' ), '<a class="button button-primary button-hero" href="'. exactmetrics_get_upgrade_link( 'admin-notices', 'edd-upgrade' ) .'">', ' &raquo;</a>' );
546
- echo '</p>';
547
- echo '</div><div class="exactmetrics-wooedd-upsell-right">';
548
- echo '<img class="exactmetrics-wooedd-upsell-image exactmetrics-wooedd-upsell-image-large" src="' . trailingslashit( EXACTMETRICS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
549
- echo '</div>';
550
- echo '</div>';
551
- return;
552
- }
553
- }
554
-
555
- if ( isset( $notices['exactmetrics_cross_domains_extracted'] ) && false === $notices['exactmetrics_cross_domains_extracted'] ) {
556
- $page = is_network_admin() ? network_admin_url( 'admin.php?page=exactmetrics_network' ) : admin_url( 'admin.php?page=exactmetrics_settings' );
557
- $page = $page . '#/advanced';
558
- // Translators: Adds a link to the settings panel.
559
- $message = sprintf( esc_html__( 'Warning: ExactMetrics 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-dashboard-for-wp' ), '<a href="'. esc_url( $page ) . '">', '</a>' );
560
- echo '<div class="notice notice-success is-dismissible exactmetrics-notice" data-notice="exactmetrics_cross_domains_extracted"><p>'. $message.'</p></div>';
561
- return;
562
- }
563
- }
564
- add_action( 'admin_notices', 'exactmetrics_admin_setup_notices' );
565
- add_action( 'network_admin_notices', 'exactmetrics_admin_setup_notices' );
566
-
567
-
568
- // AM Notices
569
- function exactmetrics_am_notice_optout( $super_admin ) {
570
- if ( exactmetrics_get_option( 'hide_am_notices', false ) || exactmetrics_get_option( 'network_hide_am_notices', false ) ) {
571
- return false;
572
- }
573
- return $super_admin;
574
- }
575
- add_filter( "am_notifications_display", 'exactmetrics_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 exactmetrics_admin_menu_inline_styles() {
581
- ?>
582
- <style type="text/css">
583
- #toplevel_page_exactmetrics_reports .wp-menu-image img,
584
- #toplevel_page_exactmetrics_settings .wp-menu-image img,
585
- #toplevel_page_exactmetrics_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', 'exactmetrics_admin_menu_inline_styles', 300 );
595
-
596
- /**
597
- * Display notice in admin when measurement protocol is left blank
598
- */
599
- function exactmetrics_empty_measurement_protocol_token() {
600
- if ( ! class_exists( 'ExactMetrics_eCommerce' ) && ! class_exists( 'ExactMetrics_Forms' ) ) {
601
- return;
602
- }
603
-
604
- $page = is_network_admin()
605
- ? network_admin_url( 'admin.php?page=exactmetrics_network' )
606
- : admin_url( 'admin.php?page=exactmetrics_settings' );
607
-
608
- $api_secret = is_network_admin()
609
- ? ExactMetrics()->auth->get_network_measurement_protocol_secret()
610
- : ExactMetrics()->auth->get_measurement_protocol_secret();
611
-
612
- $current_code = exactmetrics_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-dashboard-for-wp'
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', 'exactmetrics_empty_measurement_protocol_token' );
630
- add_action( 'network_admin_notices', 'exactmetrics_admin_setup_notices' );
1
+ <?php
2
+ /**
3
+ * Admin class.
4
+ *
5
+ * @since 6.0.0
6
+ *
7
+ * @package ExactMetrics
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 ExactMetrics.
19
+ *
20
+ * @since 6.0.0
21
+ * @access public
22
+ *
23
+ * @return void
24
+ */
25
+ function exactmetrics_admin_menu() {
26
+ $hook = exactmetrics_get_menu_hook();
27
+ $menu_icon_inline = exactmetrics_get_inline_menu_icon();
28
+
29
+ if ( $hook === 'exactmetrics_settings' ) {
30
+ // If dashboards disabled, first settings page
31
+ add_menu_page( __( 'ExactMetrics', 'google-analytics-dashboard-for-wp' ), 'ExactMetrics' . ExactMetrics()->notifications->get_menu_count(), 'exactmetrics_save_settings', 'exactmetrics_settings', 'exactmetrics_settings_page', $menu_icon_inline, '100.00013467543' );
32
+ $hook = 'exactmetrics_settings';
33
+
34
+ add_submenu_page( $hook, __( 'ExactMetrics', 'google-analytics-dashboard-for-wp' ), __( 'Settings', 'google-analytics-dashboard-for-wp' ), 'exactmetrics_save_settings', 'exactmetrics_settings' );
35
+ } else {
36
+ // if dashboards enabled, first dashboard
37
+ add_menu_page( __( 'General:', 'google-analytics-dashboard-for-wp' ), 'ExactMetrics' . ExactMetrics()->notifications->get_menu_count(), 'exactmetrics_view_dashboard', 'exactmetrics_reports', 'exactmetrics_reports_page', $menu_icon_inline, '100.00013467543' );
38
+
39
+ add_submenu_page( $hook, __( 'General Reports:', 'google-analytics-dashboard-for-wp' ), __( 'Reports', 'google-analytics-dashboard-for-wp' ), 'exactmetrics_view_dashboard', 'exactmetrics_reports', 'exactmetrics_reports_page' );
40
+
41
+ // then settings page
42
+ add_submenu_page( $hook, __( 'ExactMetrics', 'google-analytics-dashboard-for-wp' ), __( 'Settings', 'google-analytics-dashboard-for-wp' ), 'exactmetrics_save_settings', 'exactmetrics_settings', 'exactmetrics_settings_page' );
43
+
44
+ // Add dashboard submenu.
45
+ add_submenu_page( 'index.php', __( 'General Reports:', 'google-analytics-dashboard-for-wp' ), 'ExactMetrics', 'exactmetrics_view_dashboard', 'admin.php?page=exactmetrics_reports' );
46
+ }
47
+
48
+ $submenu_base = add_query_arg( 'page', 'exactmetrics_settings', admin_url( 'admin.php' ) );
49
+
50
+ // Add Popular Posts menu item.
51
+ add_submenu_page( $hook, __( 'Popular Posts:', 'google-analytics-dashboard-for-wp' ), __( 'Popular Posts', 'google-analytics-dashboard-for-wp' ), 'exactmetrics_save_settings', $submenu_base . '#/popular-posts' );
52
+
53
+ if ( function_exists( 'aioseo' ) ) {
54
+ $seo_url = exactmetrics_aioseo_dashboard_url();
55
+ } else {
56
+ $seo_url = $submenu_base . '#/seo';
57
+ }
58
+ // then SEO
59
+ add_submenu_page( $hook, __( 'SEO', 'google-analytics-dashboard-for-wp' ), __( 'SEO', 'google-analytics-dashboard-for-wp' ), 'manage_options', $seo_url );
60
+
61
+ // then tools
62
+ add_submenu_page( $hook, __( 'Tools:', 'google-analytics-dashboard-for-wp' ), __( 'Tools', 'google-analytics-dashboard-for-wp' ), 'manage_options', $submenu_base . '#/tools' );
63
+
64
+ // then addons
65
+ $network_key = exactmetrics_is_pro_version() ? ExactMetrics()->license->get_network_license_key() : '';
66
+ if ( ! exactmetrics_is_network_active() || ( exactmetrics_is_network_active() && empty( $network_key ) ) ) {
67
+ add_submenu_page( $hook, __( 'Addons:', 'google-analytics-dashboard-for-wp' ), '<span style="color:' . exactmetrics_menu_highlight_color() . '"> ' . __( 'Addons', 'google-analytics-dashboard-for-wp' ) . '</span>', 'exactmetrics_save_settings', $submenu_base . '#/addons' );
68
+ }
69
+
70
+ // Add About us page.
71
+ add_submenu_page( $hook, __( 'About Us:', 'google-analytics-dashboard-for-wp' ), __( 'About Us', 'google-analytics-dashboard-for-wp' ), 'manage_options', $submenu_base . '#/about' );
72
+
73
+ add_submenu_page( $hook, __( 'Growth Tools:', 'google-analytics-dashboard-for-wp' ), __( 'Growth Tools', 'google-analytics-dashboard-for-wp' ), 'manage_options', $submenu_base . '#/growth-tools' );
74
+
75
+ if ( ! exactmetrics_is_pro_version() ) {
76
+ add_submenu_page( $hook, __( 'Upgrade to Pro:', 'google-analytics-dashboard-for-wp' ), '<span class="exactmetrics-upgrade-submenu"> ' . __( 'Upgrade to Pro', 'google-analytics-dashboard-for-wp' ) . '</span>', 'exactmetrics_save_settings', exactmetrics_get_upgrade_link( 'admin-menu', 'submenu', "https://www.exactmetrics.com/lite/" ) );
77
+ }
78
+
79
+ }
80
+ add_action( 'admin_menu', 'exactmetrics_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 exactmetrics_woocommerce_menu_item() {
86
+ // Add "Insights" sub menu item for WooCommerce Analytics menu
87
+ if ( class_exists( 'WooCommerce' ) && ! apply_filters( 'exactmetrics_disable_woo_analytics_menu', false ) ) {
88
+ if ( class_exists( 'ExactMetrics_eCommerce' ) ) {
89
+ add_submenu_page( 'wc-admin&path=/analytics/overview', 'ExactMetrics', 'ExactMetrics', 'exactmetrics_view_dashboard', admin_url( 'admin.php?page=exactmetrics_reports#/ecommerce' ), '', 2 );
90
+ } else {
91
+ $submenu_base = add_query_arg( 'page', 'exactmetrics_settings', admin_url( 'admin.php' ) );
92
+ add_submenu_page( 'wc-admin&path=/analytics/overview', 'ExactMetrics', 'ExactMetrics', 'manage_options', $submenu_base . '#/woocommerce-insights', '', 1 );
93
+ }
94
+ }
95
+ }
96
+
97
+ add_action( 'admin_menu', 'exactmetrics_woocommerce_menu_item', 11 );
98
+
99
+ function exactmetrics_get_menu_hook() {
100
+ $dashboards_disabled = exactmetrics_get_option( 'dashboards_disabled', false );
101
+ if ( $dashboards_disabled || ( current_user_can( 'exactmetrics_save_settings' ) && ! current_user_can( 'exactmetrics_view_dashboard' ) ) ) {
102
+ return 'exactmetrics_settings';
103
+ } else {
104
+ return 'exactmetrics_reports';
105
+ }
106
+ }
107
+
108
+ function exactmetrics_network_admin_menu() {
109
+ // Get the base class object.
110
+ $base = ExactMetrics();
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( EXACTMETRICS_PLUGIN_FILE );
119
+ if ( ! is_plugin_active_for_network( $plugin ) ) {
120
+ return;
121
+ }
122
+
123
+ $menu_icon_inline = exactmetrics_get_inline_menu_icon();
124
+ $hook = 'exactmetrics_network';
125
+ $submenu_base = add_query_arg( 'page', 'exactmetrics_network', network_admin_url( 'admin.php' ) );
126
+ add_menu_page( __( 'Network Settings:', 'google-analytics-dashboard-for-wp' ), 'ExactMetrics' . ExactMetrics()->notifications->get_menu_count(), 'exactmetrics_save_settings', 'exactmetrics_network', 'exactmetrics_network_page', $menu_icon_inline, '100.00013467543' );
127
+
128
+ add_submenu_page( $hook, __( 'Network Settings:', 'google-analytics-dashboard-for-wp' ), __( 'Network Settings', 'google-analytics-dashboard-for-wp' ), 'exactmetrics_save_settings', 'exactmetrics_network', 'exactmetrics_network_page' );
129
+
130
+ add_submenu_page( $hook, __( 'General Reports:', 'google-analytics-dashboard-for-wp' ), __( 'Reports', 'google-analytics-dashboard-for-wp' ), 'exactmetrics_view_dashboard', 'exactmetrics_reports', 'exactmetrics_reports_page' );
131
+
132
+ if ( function_exists( 'aioseo' ) ) {
133
+ $seo_url = exactmetrics_aioseo_dashboard_url();
134
+ } else {
135
+ $seo_url = $submenu_base . '#/seo';
136
+ }
137
+ // then seo
138
+ add_submenu_page( $hook, __( 'SEO:', 'google-analytics-dashboard-for-wp' ), __( 'SEO', 'google-analytics-dashboard-for-wp' ), 'manage_options', $seo_url, 'exactmetrics_seo_page' );
139
+
140
+ // then addons
141
+ add_submenu_page( $hook, __( 'Addons:', 'google-analytics-dashboard-for-wp' ), '<span style="color:' . exactmetrics_menu_highlight_color() . '"> ' . __( 'Addons', 'google-analytics-dashboard-for-wp' ) . '</span>', 'exactmetrics_save_settings', $submenu_base . '#/addons' );
142
+
143
+ $submenu_base = add_query_arg( 'page', 'exactmetrics_network', network_admin_url( 'admin.php' ) );
144
+
145
+ // Add About us page.
146
+ add_submenu_page( $hook, __( 'About Us:', 'google-analytics-dashboard-for-wp' ), __( 'About Us', 'google-analytics-dashboard-for-wp' ), 'manage_options', $submenu_base . '#/about' );
147
+ }
148
+ add_action( 'network_admin_menu', 'exactmetrics_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 exactmetrics_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, 'exactmetrics' ) === false ) {
159
+ return $classes;
160
+ }
161
+
162
+ return "$classes exactmetrics_page ";
163
+ }
164
+ add_filter( 'admin_body_class', 'exactmetrics_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 exactmetrics_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, 'exactmetrics_tools' ) === false || 'insights_page_exactmetrics_tools' === $screen->id ) {
176
+ return $classes;
177
+ }
178
+
179
+ return "$classes insights_page_exactmetrics_tools ";
180
+ }
181
+ add_filter( 'admin_body_class', 'exactmetrics_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 exactmetrics_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, 'exactmetrics_addons' ) === false || 'insights_page_exactmetrics_addons' === $screen->id ) {
192
+ return $classes;
193
+ }
194
+
195
+ return "$classes insights_page_exactmetrics_addons ";
196
+ }
197
+ add_filter( 'admin_body_class', 'exactmetrics_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 exactmetrics_add_action_links( $links ) {
207
+ $docs = '<a title="' . esc_html__( 'ExactMetrics Knowledge Base', 'google-analytics-dashboard-for-wp' ) . '" href="'. exactmetrics_get_url( 'all-plugins', 'kb-link', "https://www.exactmetrics.com/docs/" ) .'">' . esc_html__( 'Documentation', 'google-analytics-dashboard-for-wp' ) . '</a>';
208
+ array_unshift( $links, $docs );
209
+
210
+ // If Lite, support goes to forum. If pro, it goes to our website
211
+ if ( exactmetrics_is_pro_version() ) {
212
+ $support = '<a title="ExactMetrics Pro Support" href="'. exactmetrics_get_url( 'all-plugins', 'pro-support-link', "https://www.exactmetrics.com/my-account/support/" ) .'">' . esc_html__( 'Support', 'google-analytics-dashboard-for-wp' ) . '</a>';
213
+ array_unshift( $links, $support );
214
+ } else {
215
+ $support = '<a title="ExactMetrics Lite Support" href="'. exactmetrics_get_url( 'all-plugins', 'lite-support-link', "https://www.exactmetrics.com/lite-support/" ) .'">' . esc_html__( 'Support', 'google-analytics-dashboard-for-wp' ) . '</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=exactmetrics_network' ) ) . '">' . esc_html__( 'Network Settings', 'google-analytics-dashboard-for-wp' ) . '</a>';
221
+ } else {
222
+ $settings_link = '<a href="' . esc_url( admin_url( 'admin.php?page=exactmetrics_settings' ) ) . '">' . esc_html__( 'Settings', 'google-analytics-dashboard-for-wp' ) . '</a>';
223
+ }
224
+
225
+ array_unshift( $links, $settings_link );
226
+
227
+ // If lite, show a link where they can get pro from
228
+ if ( ! exactmetrics_is_pro_version() ) {
229
+ $get_pro = '<a title="' . esc_html__( 'Get ExactMetrics Pro', 'google-analytics-dashboard-for-wp' ) .'" target="_blank" rel="noopener" href="'. exactmetrics_get_upgrade_link( 'all-plugins', 'upgrade-link', "https://www.exactmetrics.com/lite/" ) .'" style="font-weight:700; color: #1da867;">' . esc_html__( 'Get ExactMetrics Pro', 'google-analytics-dashboard-for-wp' ) . '</a>';
230
+ array_unshift( $links, $get_pro );
231
+ }
232
+
233
+ return $links;
234
+ }
235
+ add_filter( 'plugin_action_links_' . plugin_basename( EXACTMETRICS_PLUGIN_FILE ), 'exactmetrics_add_action_links' );
236
+ add_filter( 'network_admin_plugin_action_links_' . plugin_basename( EXACTMETRICS_PLUGIN_FILE ), 'exactmetrics_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 exactmetrics_load_admin_partial( $template, $data = array() ) {
249
+
250
+ if ( exactmetrics_is_pro_version() ) {
251
+ $dir = trailingslashit( plugin_dir_path( ExactMetrics()->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( ExactMetrics()->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( ExactMetrics()->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 ExactMetrics 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 exactmetrics_admin_footer( $text ) {
285
+ global $current_screen;
286
+ if ( ! empty( $current_screen->id ) && strpos( $current_screen->id, 'exactmetrics' ) !== false ) {
287
+ $url = 'https://wordpress.org/support/view/plugin-reviews/google-analytics-dashboard-for-wp?filter=5';
288
+ // Translators: Placeholders add a link to the wordpress.org repository.
289
+ $text = sprintf( esc_html__( 'Please rate %1$sExactMetrics%2$s on %3$s %4$sWordPress.org%5$s to help us spread the word. Thank you from the ExactMetrics team!', 'google-analytics-dashboard-for-wp' ), '<strong>', '</strong>', '<a class="exactmetrics-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', 'exactmetrics_admin_footer', 1, 2 );
294
+
295
+ function exactmetrics_admin_setup_notices() {
296
+
297
+ // Don't show on ExactMetrics pages
298
+ $screen = get_current_screen();
299
+ if ( empty( $screen->id ) || strpos( $screen->id, 'exactmetrics' ) !== false ) {
300
+ return;
301
+ }
302
+
303
+ // Make sure they have the permissions to do something
304
+ if ( ! current_user_can( 'exactmetrics_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() && ! exactmetrics_get_ua() && ! exactmetrics_get_v4_id() && ! defined( 'EXACTMETRICS_DISABLE_TRACKING' ) ) {
322
+
323
+ $submenu_base = is_network_admin() ? add_query_arg( 'page', 'exactmetrics_network', network_admin_url( 'admin.php' ) ) : add_query_arg( 'page', 'exactmetrics_settings', admin_url( 'admin.php' ) );
324
+ $title = esc_html__( 'Please Setup Website Analytics to See Audience Insights', 'google-analytics-dashboard-for-wp' );
325
+ $primary = esc_html__( 'Connect ExactMetrics and Setup Website Analytics', 'google-analytics-dashboard-for-wp' );
326
+ $urlone = is_network_admin() ? network_admin_url( 'admin.php?page=exactmetrics-onboarding' ) : admin_url( 'admin.php?page=exactmetrics-onboarding' );
327
+ $secondary = esc_html__( 'Learn More', 'google-analytics-dashboard-for-wp' );
328
+ $urltwo = $submenu_base . '#/about/getting-started';
329
+ $message = esc_html__( 'ExactMetrics, 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 ExactMetrics to see the stats that matter and grow their business.', 'google-analytics-dashboard-for-wp' );
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 = exactmetrics_is_pro_version() ? ExactMetrics()->license->get_license_key() : '';
336
+ if ( exactmetrics_is_pro_version() && empty( $key ) ) {
337
+ $page = is_network_admin() ? network_admin_url( 'admin.php?page=exactmetrics_network' ) : admin_url( 'admin.php?page=exactmetrics_settings' );
338
+ // Translators: Adds a link to retrieve the license.
339
+ $message = sprintf( esc_html__( 'Warning: No valid license key has been entered for ExactMetrics. 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-dashboard-for-wp' ), '<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 ( exactmetrics_is_pro_version() ) {
346
+ $message = '';
347
+ if ( ExactMetrics()->license->get_site_license_key() ){
348
+ if ( ExactMetrics()->license->site_license_expired() ) {
349
+ // Translators: Adds a link to the license renewal.
350
+ $message = sprintf( esc_html__( 'Your license key for ExactMetrics has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-dashboard-for-wp' ), '<a href="'. exactmetrics_get_url( 'admin-notices', 'expired-license', "https://www.exactmetrics.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
351
+ } else if ( ExactMetrics()->license->site_license_disabled() ) {
352
+ $message = esc_html__( 'Your license key for ExactMetrics has been disabled. Please use a different key.', 'google-analytics-dashboard-for-wp' );
353
+ } else if ( ExactMetrics()->license->site_license_invalid() ) {
354
+ $message = esc_html__( 'Your license key for ExactMetrics is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-dashboard-for-wp' );
355
+ }
356
+ } else if ( ExactMetrics()->license->get_network_license_key() ) {
357
+ if ( ExactMetrics()->license->network_license_expired() ) {
358
+ // Translators: Adds a link to renew license.
359
+ $message = sprintf( esc_html__( 'Your network license key for ExactMetrics has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-dashboard-for-wp' ), '<a href="'. exactmetrics_get_url( 'admin-notices', 'expired-license', "https://www.exactmetrics.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
360
+ } else if ( ExactMetrics()->license->network_license_disabled() ) {
361
+ $message = esc_html__( 'Your network license key for ExactMetrics has been disabled. Please use a different key.', 'google-analytics-dashboard-for-wp' );
362
+ } else if ( ExactMetrics()->license->network_license_invalid() ) {
363
+ $message = esc_html__( 'Your network license key for ExactMetrics is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-dashboard-for-wp' );
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( 'exactmetrics_compatible_php_version', false );
377
+ $compatible_wp_version = apply_filters( 'exactmetrics_compatible_wp_version', false );
378
+
379
+ $url = exactmetrics_get_url( 'global-notice', 'settings-page', 'https://www.exactmetrics.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 ExactMetrics 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-dashboard-for-wp' ), 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 ExactMetrics 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-dashboard-for-wp' ), 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 ExactMetrics 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-dashboard-for-wp' ), 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 = exactmetrics_get_url( 'global-notice', 'settings-page', 'https://www.exactmetrics.com/docs/update-wordpress/' );
401
+ // Translators: Placeholders add the current WordPress version and links to the ExactMetrics blog
402
+ $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sExactMetrics 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-dashboard-for-wp' ), $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 = exactmetrics_get_url( 'global-notice', 'settings-page', 'https://www.exactmetrics.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-dashboard-for-wp' ), 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 = exactmetrics_get_url( 'global-notice', 'settings-page', 'https://www.exactmetrics.com/docs/update-wordpress/' );
416
+ // $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sExactMetrics 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-dashboard-for-wp' ), $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( 'exactmetrics_tracking_notice' ) ) {
425
+ // if ( ! exactmetrics_get_option( 'anonymous_data', false ) ) {
426
+ // if ( ! exactmetrics_is_dev_url( network_site_url( '/' ) ) ) {
427
+ // if ( exactmetrics_is_pro_version() ) {
428
+ // exactmetrics_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 ExactMetrics to track plugin usage? Opt-in to tracking and our newsletter to stay informed of the latest changes to ExactMetrics and help us ensure compatibility.', 'google-analytics-dashboard-for-wp' );
435
+ // echo '&nbsp;<a href="' . esc_url( $optin_url ) . '" class="button-secondary">' . __( 'Allow', 'google-analytics-dashboard-for-wp' ) . '</a>';
436
+ // echo '&nbsp;<a href="' . esc_url( $optout_url ) . '" class="button-secondary">' . __( 'Do not allow', 'google-analytics-dashboard-for-wp' ) . '</a>';
437
+ // echo '</p></div>';
438
+ // return;
439
+ // } else {
440
+ // // is testing site
441
+ // update_option( 'exactmetrics_tracking_notice', '1' );
442
+ // }
443
+ // }
444
+ // }
445
+ // }
446
+
447
+ $notices = get_option( 'exactmetrics_notices' );
448
+ if ( ! is_array( $notices ) ) {
449
+ $notices = array();
450
+ }
451
+
452
+ // 6. Authenticate, not manual
453
+ $authed = ExactMetrics()->auth->is_authed() || ExactMetrics()->auth->is_network_authed();
454
+ $url = is_network_admin() ? network_admin_url( 'admin.php?page=exactmetrics_network' ) : admin_url( 'admin.php?page=exactmetrics_settings' );
455
+ $ua_code = exactmetrics_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 ExactMetrics%2$s so that you can access our new reporting area and take advantage of new ExactMetrics features.', 'google-analytics-dashboard-for-wp' ), '<a href="' . $url . '">', '</a>' );
458
+ $migrated = exactmetrics_get_option( 'gadwp_migrated', 0 );
459
+ if ( $migrated > 0 ) {
460
+ $url = admin_url( 'admin.php?page=exactmetrics-getting-started&exactmetrics-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-dashboard-for-wp' );
463
+ $manual_text = sprintf( $text, '<a href="' . $url . '">', '</a>', '<a href="' . exactmetrics_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['exactmetrics_auth_not_manual'] ) && ! empty( $ua_code ) ) {
467
+ echo '<div class="notice notice-info is-dismissible exactmetrics-notice" data-notice="exactmetrics_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 = exactmetrics_get_option( 'automatic_updates', false );
479
+ // $url = admin_url( 'admin.php?page=exactmetrics_settings' );
480
+
481
+ // if ( empty( $updates) && ! isset( $notices['exactmetrics_automatic_updates' ] ) ) {
482
+ // echo '<div class="notice notice-info is-dismissible exactmetrics-notice" data-notice="exactmetrics_automatic_updates">';
483
+ // echo '<p>';
484
+ // echo sprintf( esc_html__( 'Important: Please %1$sconfigure the Automatic Updates Settings%2$s in ExactMetrics.', 'google-analytics-dashboard-for-wp' ), '<a href="' . $url .'">', '</a>' );
485
+ // echo '</p>';
486
+ // echo '</div>';
487
+ // return;
488
+ // }
489
+<